@elcrm/telegram 0.0.81 → 0.0.82

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(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(w=typeof globalThis<"u"?globalThis:w||self,S((w.elCRM=w.elCRM||{},w.elCRM.components={}),w.React))})(this,function(w,S){"use strict";var Tt=document.createElement("style");Tt.textContent=`@charset "UTF-8";*{-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}.debug{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}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{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)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm 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)}.tm ol:hover{display:flex}.tm li{position:relative}.tm 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)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{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}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{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)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.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);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.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}}._h_1ryiq_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);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ryiq_1._row_1ryiq_14{flex-direction:row}._h_1ryiq_1._column_1ryiq_17{flex-direction:column}._h_1ryiq_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_1ryiq_1 div[data-active=true]{color:var(--tg-theme-button-color)}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 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_12hh1_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_12hh1_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}
2
- /*$vite$:1*/`,document.head.appendChild(Tt);var rt={exports:{}},we={};/**
1
+ (function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(w=typeof globalThis<"u"?globalThis:w||self,S((w.elCRM=w.elCRM||{},w.elCRM.components={}),w.React))})(this,function(w,S){"use strict";var It=document.createElement("style");It.textContent=`@charset "UTF-8";*{-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}.debug{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}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{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)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm 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)}.tm ol:hover{display:flex}.tm li{position:relative}.tm 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)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{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}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{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)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.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}}._h_1ryiq_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);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ryiq_1._row_1ryiq_14{flex-direction:row}._h_1ryiq_1._column_1ryiq_17{flex-direction:column}._h_1ryiq_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_1ryiq_1 div[data-active=true]{color:var(--tg-theme-button-color)}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 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_12hh1_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_12hh1_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}
2
+ /*$vite$:1*/`,document.head.appendChild(It);var nt={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 It;function Kt(){if(It)return we;It=1;var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,f=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var m,y={},k=null,B=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(B=g.ref);for(m in g)u.call(g,m)&&!h.hasOwnProperty(m)&&(y[m]=g[m]);if(_&&_.defaultProps)for(m in g=_.defaultProps,g)y[m]===void 0&&(y[m]=g[m]);return{$$typeof:o,type:_,key:k,ref:B,props:y,_owner:f.current}}return we.Fragment=i,we.jsx=P,we.jsxs=P,we}var Re={};/**
10
+ */var $t;function Kt(){if($t)return Re;$t=1;var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(_,p,O){var m,y={},k=null,B=null;O!==void 0&&(k=""+O),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(B=p.ref);for(m in p)f.call(p,m)&&!h.hasOwnProperty(m)&&(y[m]=p[m]);if(_&&_.defaultProps)for(m in p=_.defaultProps,p)y[m]===void 0&&(y[m]=p[m]);return{$$typeof:o,type:_,key:k,ref:B,props:y,_owner:u.current}}return Re.Fragment=i,Re.jsx=j,Re.jsxs=j,Re}var Se={};/**
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 $t;function Gt(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),I=Symbol.iterator,je="@@iterator";function Oe(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[je];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];ke("error",e,n)}}function ke(e,t,n){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",n=n.concat([d]));var p=n.map(function(c){return String(c)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Ce=!1,Ae=!1,v=!1,R=!1,M=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===h||M||e===f||e===j||e===m||R||e===B||Ce||Ae||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,n){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?n+"("+d+")":n}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 u:return"Fragment";case i:return"Portal";case h:return"Profiler";case f:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var n=e;return se(n._context)+".Provider";case g:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,p=d._payload,c=d._init;try{return $(c(p))}catch{return null}}}return null}var N=Object.assign,F=0,K,G,Z,Pe,Te,Ie,$e;function Me(){}Me.__reactDisabledLog=!0;function at(){{if(F===0){K=console.log,G=console.info,Z=console.warn,Pe=console.error,Te=console.group,Ie=console.groupCollapsed,$e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function it(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:K}),info:N({},e,{value:G}),warn:N({},e,{value:Z}),error:N({},e,{value:Pe}),group:N({},e,{value:Te}),groupCollapsed:N({},e,{value:Ie}),groupEnd:N({},e,{value:$e})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=L.ReactCurrentDispatcher,ge;function te(e,t,n){{if(ge===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ge=a&&a[1]||""}return`
19
- `+ge+e}}var me=!1,re;{var st=typeof WeakMap=="function"?WeakMap:Map;re=new st}function Ne(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=pe.current,pe.current=null,at();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(C){a=C}Reflect.construct(e,[],c)}else{try{c.call()}catch(C){a=C}e.call(c.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var l=C.stack.split(`
20
- `),O=a.stack.split(`
21
- `),b=l.length-1,x=O.length-1;b>=1&&x>=0&&l[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==O[x]){var T=`
22
- `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=p,it(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function lt(e,t,n){return Ne(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Ne(e,ct(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return lt(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,p=a._init;try{return ne(p(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Be={},De=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function ut(e,t,n,a,d){{var p=Function.call.bind(J);for(var c in e)if(p(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var O=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%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).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in Be)&&(Be[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var ft=Array.isArray;function he(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function pt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Le(e){if(pt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),Fe(e)}var Ue=L.ReactCurrentOwner,gt={key:!0,ref:!0,__self:!0,__source:!0},ze,Ye;function mt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function vt(e,t){typeof e.ref=="string"&&Ue.current}function bt(e,t){{var n=function(){ze||(ze=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var xt=function(e,t,n,a,d,p,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function _t(e,t,n,a,d){{var p,c={},l=null,O=null;n!==void 0&&(Le(n),l=""+n),ht(t)&&(Le(t.key),l=""+t.key),mt(t)&&(O=t.ref,vt(t,d));for(p in t)J.call(t,p)&&!gt.hasOwnProperty(p)&&(c[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)c[p]===void 0&&(c[p]=b[p])}if(l||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&bt(c,x),O&&yt(c,x)}return xt(e,l,O,d,a,Ue.current,c)}}var ve=L.ReactCurrentOwner,We=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ve(){{if(ve.current){var e=$(ve.current.type);if(e)return`
18
+ */var Mt;function Gt(){return Mt||(Mt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),I=Symbol.iterator,Oe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Oe];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];we("error",e,n)}}function we(e,t,n){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",n=n.concat([d]));var g=n.map(function(c){return String(c)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ae=!1,Pe=!1,v=!1,R=!1,M=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||M||e===u||e===O||e===m||R||e===B||Ae||Pe||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,n){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?n+"("+d+")":n}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 f:return"Fragment";case i:return"Portal";case h:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case j:var n=e;return se(n._context)+".Provider";case p:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,g=d._payload,c=d._init;try{return $(c(g))}catch{return null}}}return null}var N=Object.assign,F=0,K,G,Z,Te,Ie,$e,Me;function Ne(){}Ne.__reactDisabledLog=!0;function it(){{if(F===0){K=console.log,G=console.info,Z=console.warn,Te=console.error,Ie=console.group,$e=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function st(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:K}),info:N({},e,{value:G}),warn:N({},e,{value:Z}),error:N({},e,{value:Te}),group:N({},e,{value:Ie}),groupCollapsed:N({},e,{value:$e}),groupEnd:N({},e,{value:Me})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=L.ReactCurrentDispatcher,ge;function te(e,t,n){{if(ge===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ge=a&&a[1]||""}return`
19
+ `+ge+e}}var me=!1,re;{var lt=typeof WeakMap=="function"?WeakMap:Map;re=new lt}function Be(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=pe.current,pe.current=null,it();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(A){a=A}Reflect.construct(e,[],c)}else{try{c.call()}catch(A){a=A}e.call(c.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
20
+ `),C=a.stack.split(`
21
+ `),b=l.length-1,x=C.length-1;b>=1&&x>=0&&l[b]!==C[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==C[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==C[x]){var T=`
22
+ `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=g,st(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function ct(e,t,n){return Be(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Be(e,ut(e));if(typeof e=="string")return te(e);switch(e){case O:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ct(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,g=a._init;try{return ne(g(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},Fe=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Fe.setExtraStackFrame(n)}else Fe.setExtraStackFrame(null)}function ft(e,t,n,a,d){{var g=Function.call.bind(J);for(var c in e)if(g(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var C=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%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).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var dt=Array.isArray;function he(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function gt(e){try{return Le(e),!1}catch{return!0}}function Le(e){return""+e}function Ue(e){if(gt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Le(e)}var ze=L.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Ye,We;function ht(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&ze.current}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function xt(e,t){{var n=function(){We||(We=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var _t=function(e,t,n,a,d,g,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:g};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,n,a,d){{var g,c={},l=null,C=null;n!==void 0&&(Ue(n),l=""+n),vt(t)&&(Ue(t.key),l=""+t.key),ht(t)&&(C=t.ref,bt(t,d));for(g in t)J.call(t,g)&&!mt.hasOwnProperty(g)&&(c[g]=t[g]);if(e&&e.defaultProps){var b=e.defaultProps;for(g in b)c[g]===void 0&&(c[g]=b[g])}if(l||C){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(c,x),C&&xt(c,x)}return _t(e,l,C,d,a,ze.current,c)}}var ve=L.ReactCurrentOwner,Ve=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function qe(){{if(ve.current){var e=$(ve.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function kt(e){return""}var qe={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
24
+ Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Je={};function Rt(e){{var t=qe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
25
25
 
26
- Check the top-level render call using <`+n+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(t);if(qe[n])return;qe[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function He(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&Je(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Oe(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),c;!(c=p.next()).done;)ye(c.value)&&Je(c.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ut(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function St(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ke={};function Ge(e,t,n,a,d,p){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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=kt();O?l+=O:l+=Ve();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=_t(e,t,n,d,p);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)He(T[W],e);Object.freeze&&Object.freeze(T)}else E("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 He(T,e)}if(J.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(Pt){return Pt!=="key"}),xe=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ke[U+xe]){var At=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+n+">.")}return t}}function He(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Rt(t);if(Je[n])return;Je[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function Ke(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&He(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Ce(e);if(typeof d=="function"&&d!==e.entries)for(var g=d.call(e),c;!(c=g.next()).done;)ye(c.value)&&He(c.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ft(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ge={};function Ze(e,t,n,a,d,g){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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 C=wt();C?l+=C:l+=qe();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=kt(e,t,n,d,g);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)Ke(T[W],e);Object.freeze&&Object.freeze(T)}else E("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 Ke(T,e)}if(J.call(t,"key")){var U=$(e),A=Object.keys(t).filter(function(Tt){return Tt!=="key"}),xe=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[U+xe]){var Pt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`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} />`,xe,U,At,U),Ke[U+xe]=!0}}return e===u?St(x):Rt(x),x}}function Et(e,t,n){return Ge(e,t,n,!0)}function jt(e,t,n){return Ge(e,t,n,!1)}var Ot=jt,Ct=Et;Re.Fragment=u,Re.jsx=Ot,Re.jsxs=Ct}()),Re}process.env.NODE_ENV==="production"?rt.exports=Kt():rt.exports=Gt();var s=rt.exports;let H={};var nt;(r=>{function o({children:_}){const[g,j]=S.useState(!1),[m,y]=S.useState(!1);if(H.onClose=()=>{w.default.BackButton(!1),y(!0),setTimeout(()=>{j(!1),y(!1)},300)},S.useEffect(()=>{g?H.onClose():(w.default.BackButton({callback:()=>H.onClose()}),j(!0))},[]),!!g)return s.jsx("div",{className:`modal-overlay ${m?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${m?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=o;function i({import_modules:_}){let[g,j]=S.useState([]);return H.x=m=>{j(m?g.filter(y=>y.key!==m):[])},S.useEffect(()=>{_&&(H.i=_)},[]),H.add=(m,y=Date.now())=>{j([...g,{key:y,item:m}])},s.jsx(s.Fragment,{children:g.map(m=>m.item)})}r.Init=i;function u(_,g){H.add(s.jsx(o,{children:_},String(Date.now())),g)}r.Add=u;function f(_){return{Open:m=>{r.Add(s.jsx(_,{...m},new Date().getTime()))}}}r.Create=f;function h(){H.onClose()}r.Close=h;function P(_,g,j){H.i&&H.i(`${_}/modals/${g}.tsx`).then(m=>{m.default.Open(j)})}r.Open=P})(nt||(nt={}));function Mt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Nt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Bt(r){const o=Mt();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Nt,...r}}function Ze(){return Mt().CRYPTO_PARAMS||Nt}const Xe=r=>{let o=0;for(let u=0;u<r.length;u++){const f=r.charCodeAt(u);o=(o<<5)-o+f,o=o&o}o=Math.abs(o);let i="";for(let u=0;u<64;u++){const f=(o^u*197)&255;i+=f.toString(16).padStart(2,"0")}return i},Dt=(r,o)=>{let i=r+o;for(let f=0;f<Ze().iterations;f++)i=Xe(i);const u=new Uint8Array(32);for(let f=0;f<32;f++)u[f]=parseInt(i.substring(f*2,f*2+2),16);return u},Ft=(r,o)=>{const i=new Uint8Array(r.length),u=new Uint8Array(r.length);let f=0;for(let h=0;h<r.length;h++){const P=h%o.length;f=o[P]+h+f&255,u[h]=f}for(let h=0;h<r.length;h++)i[h]=r[h]^u[h];return i},Zt=r=>new TextEncoder().encode(r),Xt=r=>new TextDecoder().decode(r),Qt=r=>{let o="";for(let i=0;i<r.length;i+=8192){const u=r.slice(i,Math.min(i+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(u))}return btoa(o)},er=r=>{const o=atob(r),i=new Uint8Array(o.length);for(let u=0;u<o.length;u++)i[u]=o.charCodeAt(u);return i},tr=r=>{try{const o=Xe(Date.now().toString()+Math.random()).substring(0,Ze().saltLength*2),i=Xe(r+o).substring(0,8),u=Dt(Ze().key,o),f=Zt(r),h=Ft(f,u),P=Qt(h);return`${o}.${P}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},rr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=o[0],u=o[1],f=o[2],h=Dt(Ze().key,i),P=er(u),_=Ft(P,h),g=Xt(_);if(Xe(g+i).substring(0,8)!==f)throw new Error("Контрольная сумма не совпадает");return g}catch{return""}};var ae;(r=>{r.setKey=o=>{Bt({key:o})},r.enCode=o=>{try{const i=JSON.stringify(o);return tr(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const i=rr(o);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(o,i)=>{Bt({iterations:o,saltLength:i})}})(ae||(ae={}));var Se={};/**
31
+ <%s key={someKey} {...props} />`,xe,U,Pt,U),Ge[U+xe]=!0}}return e===f?Et(x):St(x),x}}function jt(e,t,n){return Ze(e,t,n,!0)}function Ot(e,t,n){return Ze(e,t,n,!1)}var Ct=Ot,At=jt;Se.Fragment=f,Se.jsx=Ct,Se.jsxs=At}()),Se}process.env.NODE_ENV==="production"?nt.exports=Kt():nt.exports=Gt();var s=nt.exports;let H={};var ot;(r=>{function o({children:_}){const[p,O]=S.useState(!1),[m,y]=S.useState(!1);if(H.onClose=()=>{w.default.BackButton(!1),y(!0),setTimeout(()=>{O(!1),y(!1)},300)},S.useEffect(()=>{p?H.onClose():(w.default.BackButton({callback:()=>H.onClose()}),O(!0))},[]),!!p)return s.jsx("div",{className:`modal-overlay ${m?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${m?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=o;function i({import_modules:_}){let[p,O]=S.useState([]);return H.x=m=>{O(m?p.filter(y=>y.key!==m):[])},S.useEffect(()=>{_&&(H.i=_)},[]),H.add=(m,y=Date.now())=>{O([...p,{key:y,item:m}])},s.jsx(s.Fragment,{children:p.map(m=>m.item)})}r.Init=i;function f(_,p){H.add(s.jsx(o,{children:_},String(Date.now())),p)}r.Add=f;function u(_){return{Open:m=>{r.Add(s.jsx(_,{...m},new Date().getTime()))}}}r.Create=u;function h(){H.onClose()}r.Close=h;function j(_,p,O){H.i&&H.i(`${_}/modals/${p}.tsx`).then(m=>{m.default.Open(O)})}r.Open=j})(ot||(ot={}));function Nt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Bt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Dt(r){const o=Nt();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Bt,...r}}function Xe(){return Nt().CRYPTO_PARAMS||Bt}const Qe=r=>{let o=0;for(let f=0;f<r.length;f++){const u=r.charCodeAt(f);o=(o<<5)-o+u,o=o&o}o=Math.abs(o);let i="";for(let f=0;f<64;f++){const u=(o^f*197)&255;i+=u.toString(16).padStart(2,"0")}return i},Ft=(r,o)=>{let i=r+o;for(let u=0;u<Xe().iterations;u++)i=Qe(i);const f=new Uint8Array(32);for(let u=0;u<32;u++)f[u]=parseInt(i.substring(u*2,u*2+2),16);return f},Lt=(r,o)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let u=0;for(let h=0;h<r.length;h++){const j=h%o.length;u=o[j]+h+u&255,f[h]=u}for(let h=0;h<r.length;h++)i[h]=r[h]^f[h];return i},Zt=r=>new TextEncoder().encode(r),Xt=r=>new TextDecoder().decode(r),Qt=r=>{let o="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(f))}return btoa(o)},er=r=>{const o=atob(r),i=new Uint8Array(o.length);for(let f=0;f<o.length;f++)i[f]=o.charCodeAt(f);return i},tr=r=>{try{const o=Qe(Date.now().toString()+Math.random()).substring(0,Xe().saltLength*2),i=Qe(r+o).substring(0,8),f=Ft(Xe().key,o),u=Zt(r),h=Lt(u,f),j=Qt(h);return`${o}.${j}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},rr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=o[0],f=o[1],u=o[2],h=Ft(Xe().key,i),j=er(f),_=Lt(j,h),p=Xt(_);if(Qe(p+i).substring(0,8)!==u)throw new Error("Контрольная сумма не совпадает");return p}catch{return""}};var ae;(r=>{r.setKey=o=>{Dt({key:o})},r.enCode=o=>{try{const i=JSON.stringify(o);return tr(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const i=rr(o);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(o,i)=>{Dt({iterations:o,saltLength:i})}})(ae||(ae={}));var Ee={};/**
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 Lt;function nr(){if(Lt)return Se;Lt=1;var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,f=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var m,y={},k=null,B=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(B=g.ref);for(m in g)u.call(g,m)&&!h.hasOwnProperty(m)&&(y[m]=g[m]);if(_&&_.defaultProps)for(m in g=_.defaultProps,g)y[m]===void 0&&(y[m]=g[m]);return{$$typeof:o,type:_,key:k,ref:B,props:y,_owner:f.current}}return Se.Fragment=i,Se.jsx=P,Se.jsxs=P,Se}var Qe={};/**
39
+ */var Ut;function nr(){if(Ut)return Ee;Ut=1;var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(_,p,O){var m,y={},k=null,B=null;O!==void 0&&(k=""+O),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(B=p.ref);for(m in p)f.call(p,m)&&!h.hasOwnProperty(m)&&(y[m]=p[m]);if(_&&_.defaultProps)for(m in p=_.defaultProps,p)y[m]===void 0&&(y[m]=p[m]);return{$$typeof:o,type:_,key:k,ref:B,props:y,_owner:u.current}}return Ee.Fragment=i,Ee.jsx=j,Ee.jsxs=j,Ee}var et={};/**
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 Ut;function or(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),I=Symbol.iterator,je="@@iterator";function Oe(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[je];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];ke("error",e,n)}}function ke(e,t,n){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",n=n.concat([d]));var p=n.map(function(c){return String(c)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Ce=!1,Ae=!1,v=!1,R=!1,M=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===h||M||e===f||e===j||e===m||R||e===B||Ce||Ae||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,n){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?n+"("+d+")":n}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 u:return"Fragment";case i:return"Portal";case h:return"Profiler";case f:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var n=e;return se(n._context)+".Provider";case g:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,p=d._payload,c=d._init;try{return $(c(p))}catch{return null}}}return null}var N=Object.assign,F=0,K,G,Z,Pe,Te,Ie,$e;function Me(){}Me.__reactDisabledLog=!0;function at(){{if(F===0){K=console.log,G=console.info,Z=console.warn,Pe=console.error,Te=console.group,Ie=console.groupCollapsed,$e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function it(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:K}),info:N({},e,{value:G}),warn:N({},e,{value:Z}),error:N({},e,{value:Pe}),group:N({},e,{value:Te}),groupCollapsed:N({},e,{value:Ie}),groupEnd:N({},e,{value:$e})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=L.ReactCurrentDispatcher,ge;function te(e,t,n){{if(ge===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ge=a&&a[1]||""}return`
48
- `+ge+e}}var me=!1,re;{var st=typeof WeakMap=="function"?WeakMap:Map;re=new st}function Ne(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=pe.current,pe.current=null,at();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(C){a=C}Reflect.construct(e,[],c)}else{try{c.call()}catch(C){a=C}e.call(c.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var l=C.stack.split(`
49
- `),O=a.stack.split(`
50
- `),b=l.length-1,x=O.length-1;b>=1&&x>=0&&l[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==O[x]){var T=`
51
- `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=p,it(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function lt(e,t,n){return Ne(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Ne(e,ct(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return lt(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,p=a._init;try{return ne(p(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Be={},De=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);De.setExtraStackFrame(n)}else De.setExtraStackFrame(null)}function ut(e,t,n,a,d){{var p=Function.call.bind(J);for(var c in e)if(p(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var O=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%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).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in Be)&&(Be[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var ft=Array.isArray;function he(e){return ft(e)}function dt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function pt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Le(e){if(pt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dt(e)),Fe(e)}var Ue=L.ReactCurrentOwner,gt={key:!0,ref:!0,__self:!0,__source:!0},ze,Ye;function mt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function vt(e,t){typeof e.ref=="string"&&Ue.current}function bt(e,t){{var n=function(){ze||(ze=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var xt=function(e,t,n,a,d,p,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:p};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function _t(e,t,n,a,d){{var p,c={},l=null,O=null;n!==void 0&&(Le(n),l=""+n),ht(t)&&(Le(t.key),l=""+t.key),mt(t)&&(O=t.ref,vt(t));for(p in t)J.call(t,p)&&!gt.hasOwnProperty(p)&&(c[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)c[p]===void 0&&(c[p]=b[p])}if(l||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&bt(c,x),O&&yt(c,x)}return xt(e,l,O,d,a,Ue.current,c)}}var ve=L.ReactCurrentOwner,We=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ve(){{if(ve.current){var e=$(ve.current.type);if(e)return`
47
+ */var zt;function or(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),I=Symbol.iterator,Oe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Oe];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];we("error",e,n)}}function we(e,t,n){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",n=n.concat([d]));var g=n.map(function(c){return String(c)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ae=!1,Pe=!1,v=!1,R=!1,M=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||M||e===u||e===O||e===m||R||e===B||Ae||Pe||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,n){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?n+"("+d+")":n}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("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 f:return"Fragment";case i:return"Portal";case h:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case j:var n=e;return se(n._context)+".Provider";case p:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,g=d._payload,c=d._init;try{return $(c(g))}catch{return null}}}return null}var N=Object.assign,F=0,K,G,Z,Te,Ie,$e,Me;function Ne(){}Ne.__reactDisabledLog=!0;function it(){{if(F===0){K=console.log,G=console.info,Z=console.warn,Te=console.error,Ie=console.group,$e=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function st(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:K}),info:N({},e,{value:G}),warn:N({},e,{value:Z}),error:N({},e,{value:Te}),group:N({},e,{value:Ie}),groupCollapsed:N({},e,{value:$e}),groupEnd:N({},e,{value:Me})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=L.ReactCurrentDispatcher,ge;function te(e,t,n){{if(ge===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ge=a&&a[1]||""}return`
48
+ `+ge+e}}var me=!1,re;{var lt=typeof WeakMap=="function"?WeakMap:Map;re=new lt}function Be(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=pe.current,pe.current=null,it();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(A){a=A}Reflect.construct(e,[],c)}else{try{c.call()}catch(A){a=A}e.call(c.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
49
+ `),C=a.stack.split(`
50
+ `),b=l.length-1,x=C.length-1;b>=1&&x>=0&&l[b]!==C[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==C[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==C[x]){var T=`
51
+ `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=g,st(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function ct(e,t,n){return Be(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Be(e,ut(e));if(typeof e=="string")return te(e);switch(e){case O:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ct(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,g=a._init;try{return ne(g(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},Fe=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Fe.setExtraStackFrame(n)}else Fe.setExtraStackFrame(null)}function ft(e,t,n,a,d){{var g=Function.call.bind(J);for(var c in e)if(g(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var C=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%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).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var dt=Array.isArray;function he(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function gt(e){try{return Le(e),!1}catch{return!0}}function Le(e){return""+e}function Ue(e){if(gt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Le(e)}var ze=L.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Ye,We;function ht(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&ze.current}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function xt(e,t){{var n=function(){We||(We=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var _t=function(e,t,n,a,d,g,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:g};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,n,a,d){{var g,c={},l=null,C=null;n!==void 0&&(Ue(n),l=""+n),vt(t)&&(Ue(t.key),l=""+t.key),ht(t)&&(C=t.ref,bt(t));for(g in t)J.call(t,g)&&!mt.hasOwnProperty(g)&&(c[g]=t[g]);if(e&&e.defaultProps){var b=e.defaultProps;for(g in b)c[g]===void 0&&(c[g]=b[g])}if(l||C){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(c,x),C&&xt(c,x)}return _t(e,l,C,d,a,ze.current,c)}}var ve=L.ReactCurrentOwner,Ve=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function qe(){{if(ve.current){var e=$(ve.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function kt(e){return""}var qe={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
53
+ Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Je={};function Rt(e){{var t=qe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
54
54
 
55
- Check the top-level render call using <`+n+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(t);if(qe[n])return;qe[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function He(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&Je(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Oe(e);if(typeof d=="function"&&d!==e.entries)for(var p=d.call(e),c;!(c=p.next()).done;)ye(c.value)&&Je(c.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ut(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function St(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ke={};function Ge(e,t,n,a,d,p){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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=kt();O?l+=O:l+=Ve();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=_t(e,t,n,d,p);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)He(T[W],e);Object.freeze&&Object.freeze(T)}else E("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 He(T,e)}if(J.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(Pt){return Pt!=="key"}),xe=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Ke[U+xe]){var At=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+n+">.")}return t}}function He(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Rt(t);if(Je[n])return;Je[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function Ke(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&He(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Ce(e);if(typeof d=="function"&&d!==e.entries)for(var g=d.call(e),c;!(c=g.next()).done;)ye(c.value)&&He(c.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ft(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ge={};function Ze(e,t,n,a,d,g){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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 C=wt();C?l+=C:l+=qe();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=kt(e,t,n,d,g);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)Ke(T[W],e);Object.freeze&&Object.freeze(T)}else E("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 Ke(T,e)}if(J.call(t,"key")){var U=$(e),A=Object.keys(t).filter(function(Tt){return Tt!=="key"}),xe=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[U+xe]){var Pt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`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} />`,xe,U,At,U),Ke[U+xe]=!0}}return e===u?St(x):Rt(x),x}}function Et(e,t,n){return Ge(e,t,n,!0)}function jt(e,t,n){return Ge(e,t,n,!1)}var Ot=jt,Ct=Et;Qe.Fragment=u,Qe.jsx=Ot,Qe.jsxs=Ct}()),Qe}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.37",zt={version:ar},X={},ot={module:"",v:zt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:zt.version});function Q(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS={...o.ROUTER_PARAMS,...r}:o.ROUTER_PARAMS={...ot,...r}}function A(){return le().ROUTER_PARAMS||ot}function _e(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ce;(r=>{function o(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?A().page:A().auth,module:A().module});return!0}function i(){X.id=0,X.tab="",X.page=A().page,X.module=A().module}r.Reset=i;function u({module:v=A().module,page:R=A().page,auth:M=A().auth}){Q({page:R,module:v,auth:M}),o()}r.Default=u;function f(v){let R=z=>(Q({page:z}),z);const[M,D]=S.useState(P()||v&&R(v)||A().page);return _e({page:z=>{D(z)}}),M}r.usePage=f;function h(v,R=!0,M={}){Q({page:v,...M}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().page(v)}r.setPage=h;function P(){return A().page}r.getPage=P;function _(v){return A().page===v}r.isPage=_;function g(v,R){const[M,D]=S.useState(m()||v||A().module);return _e({module:D}),M}r.useModule=g;function j(v,R=!0){Q({module:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().module(v)}r.setModule=j;function m(){return A().module||""}r.getModule=m;function y(v){return A().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[M,D]=S.useState(!R),[z,ie]=S.useState(v||I());return _e({tabs:ie}),R&&S.useEffect(()=>{D(!0)},[]),[z,M]}else _e({tabs:v})}r.useTabs=k;async function B(v,R=!0){Q({tab:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=B;function I(){return A().tab}r.getTabs=I;function je(v){return A().tab===v}r.isTabs=je;function Oe(v){if(typeof v!="function"){const[R,M]=S.useState(v||ke());return _e({id:D=>{M(D)}}),R}else _e({id:v})}r.useId=Oe;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().id(v)}r.setId=E;function ke(){return A().id}r.getId=ke;function Ce(v){return Number(A().id)===v}r.isId=Ce;async function Ae(v){var R,M,D,z,ie,se,$,N;const{page:F,module:K,tab:G,id:Z}=v;F!==void 0&&(X.page=F),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((M=(R=ee()).id)==null||M.call(R,Z)),G!==void 0&&((z=(D=ee()).tabs)==null||z.call(D,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),F!==void 0&&((N=($=ee()).page)==null||N.call($,F)),sessionStorage.setItem(A().STORAGE,ae.enCode(A()))}r.navigate=Ae})(ce||(ce={}));let et={};function ir(){const[r,o]=S.useState([]);return et.set=i=>{o([...r,i])},et.del=i=>{r.forEach((u,f)=>{u.key===i&&r.splice(f,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function sr(r){let o=new Date().getTime();r.key=o,et.set({item:s.jsx(lr,{data:r},o),key:o})}function lr(r){const o=r.data;let[i]=S.useState("show"),[u,f]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){f(!0),et.del(o.key)},5e3)},[o.key]);let h;switch(o.type){case"error":h=s.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":h=s.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":h=s.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:h="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:u?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":i,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),s.jsx("span",{className:"text",children:o.text})]})})}let tt={Send:sr,Init:ir},Ee=()=>{};const Yt=({children:r,title:o,isOverlay:i=!0})=>{const[u,f]=S.useState(!1);return Ee=()=>{f(!0),setTimeout(()=>{Vt.onClose()},300)},s.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${u?"closing":""}`,onClick:Ee,children:s.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:h=>h.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ee,children:"✕"})]}),r]})})},Wt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},Vt=[],qt=(r,o)=>r.findIndex(i=>(i==null?void 0:i.page)===o),Jt=({actions:r,children:o,className:i,toHide:u=!1,page:f,onPageChange:h,direction:P="row"})=>{const[_,g]=S.useState(null),[j,m]=S.useState(f?qt(r||[],f):0);return Vt.onClose=()=>{g(null),m(f?qt(r||[],f):0)},S.useEffect(()=>{if(!u)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},B=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",B,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",B,!0),I.removeEventListener("blur",k,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Wt.h} ${Wt[P]} ${i} `,children:[o,r&&r.map((y,k)=>s.jsx("div",{"data-active":j===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(j===k?Ee():(g(y.component),m(k)))},children:y.icon},k))]})]})},ue={is:!1,MainButton:{},BackButton:{}};let V={};V.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"},V.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"},V.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 cr=()=>{if(location.hostname==="localhost"){let[r,o]=S.useState(!1),[i,u]=S.useState(!1),[f,h]=S.useState("dark"),[P,_]=S.useState(!1),[g,j]=S.useState(!1);ue.is=!0,ue.MainButton.set=o,ue.BackButton.set=u,S.useEffect(()=>{V[f]["--tg-theme-bg-color-alpha"]=V[f]["--tg-theme-bg-color"]+"b3",V[f]["--tg-theme-secondary-bg-color-alpha"]=V[f]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[f])document.documentElement.style.setProperty(k,V[f][k]);de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let B in V[k])document.documentElement.style.setProperty(B,V[k][B]);h(k),_(!1)},y=()=>{_(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[i===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ce.setPage(i.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!P),children:"Меню"})]}),s.jsx(tt.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),P?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!P),children:"Closed"})})]})]}):"",g?s.jsx(ur,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",de.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",de.themeParams.bg_color+"b3"),de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(tt.Init,{})})},ur=({setAuthorization:r})=>{let o={},i=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:i,children:" Сохранить "})]})})},Ht={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:o,isScroll:i=!0})=>s.jsx("div",{className:[Ht.p,i&&Ht.s,r].filter(u=>u!==void 0).join(" "),children:o}),dr={l:"_l_gfyud_1"},pr=({children:r,className:o})=>s.jsx("div",{className:[dr.l,o].filter(i=>i!==void 0).join(" "),children:r}),fe={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"},gr=({items:r})=>{const o=u=>{ce.setPage(u)},i=u=>{de.openTelegramLink(u)};return s.jsx("div",{className:fe.m,children:r.map(u=>s.jsx("div",{className:fe.g,children:u.items.map((f,h)=>s.jsxs("div",{className:fe.i,onClick:()=>f.link?i(f.link):o(f.page||""),children:[s.jsxs("div",{className:fe.c,children:[s.jsx("span",{className:fe.l,style:{background:f.color},children:f.icon}),f.title,f.count&&s.jsx("span",{className:fe.n,children:f.count})]}),s.jsx("span",{className:fe.a,children:"›"})]},h))},u.id))})},q={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.state.length!==1&&q.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.listen.push(()=>{var i;let o=q.state.pop();o.page!==void 0?ce.setPage(o.page):(i=o.callback)==null||i.call(o)}),de.BackButton.onClick(q.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(o,i,u)=>{var f,h;i!==void 0?(tt.Send({type:o,text:i,thema:u}),(f=r.WebApp.HapticFeedback)==null||f.notificationOccurred(o)):(tt.Send(o),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(o.type))},r.Header=cr,r.Footer=Jt,r.BottomSheet=Yt,r.toggleBottomSheet=Ee,r.SafeArea=fr,r.Loading=pr,r.Modal=nt,r.Menu=gr,r.MainButton={callback:[],set:o=>{ue.is?ue.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var i;o.page===void 0?(i=o.callback)==null||i.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=o=>{ue.is?ue.BackButton.set(o):(q.state.push(o),q.router(o))}})(w.default||(w.default={}));const mr=Jt,hr=Yt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Rr,MainButton:Sr,WebApp:de,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=hr,w.Footer=mr,w.Header=kr,w.Loading=xr,w.MainButton=Sr,w.Menu=_r,w.Modal=Rr,w.Notice=br,w.SafeArea=yr,w.WebApp=de,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,xe,U,Pt,U),Ge[U+xe]=!0}}return e===f?Et(x):St(x),x}}function jt(e,t,n){return Ze(e,t,n,!0)}function Ot(e,t,n){return Ze(e,t,n,!1)}var Ct=Ot,At=jt;et.Fragment=f,et.jsx=Ct,et.jsxs=At}()),et}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.37",Yt={version:ar},X={},at={module:"",v:Yt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:Yt.version});function Q(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS={...o.ROUTER_PARAMS,...r}:o.ROUTER_PARAMS={...at,...r}}function P(){return le().ROUTER_PARAMS||at}function _e(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||at.LISTENER}var ce;(r=>{function o(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?P().page:P().auth,module:P().module});return!0}function i(){X.id=0,X.tab="",X.page=P().page,X.module=P().module}r.Reset=i;function f({module:v=P().module,page:R=P().page,auth:M=P().auth}){Q({page:R,module:v,auth:M}),o()}r.Default=f;function u(v){let R=z=>(Q({page:z}),z);const[M,D]=S.useState(j()||v&&R(v)||P().page);return _e({page:z=>{D(z)}}),M}r.usePage=u;function h(v,R=!0,M={}){Q({page:v,...M}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().page(v)}r.setPage=h;function j(){return P().page}r.getPage=j;function _(v){return P().page===v}r.isPage=_;function p(v,R){const[M,D]=S.useState(m()||v||P().module);return _e({module:D}),M}r.useModule=p;function O(v,R=!0){Q({module:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().module(v)}r.setModule=O;function m(){return P().module||""}r.getModule=m;function y(v){return P().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[M,D]=S.useState(!R),[z,ie]=S.useState(v||I());return _e({tabs:ie}),R&&S.useEffect(()=>{D(!0)},[]),[z,M]}else _e({tabs:v})}r.useTabs=k;async function B(v,R=!0){Q({tab:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=B;function I(){return P().tab}r.getTabs=I;function Oe(v){return P().tab===v}r.isTabs=Oe;function Ce(v){if(typeof v!="function"){const[R,M]=S.useState(v||we());return _e({id:D=>{M(D)}}),R}else _e({id:v})}r.useId=Ce;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().id(v)}r.setId=E;function we(){return P().id}r.getId=we;function Ae(v){return Number(P().id)===v}r.isId=Ae;async function Pe(v){var R,M,D,z,ie,se,$,N;const{page:F,module:K,tab:G,id:Z}=v;F!==void 0&&(X.page=F),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((M=(R=ee()).id)==null||M.call(R,Z)),G!==void 0&&((z=(D=ee()).tabs)==null||z.call(D,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),F!==void 0&&((N=($=ee()).page)==null||N.call($,F)),sessionStorage.setItem(P().STORAGE,ae.enCode(P()))}r.navigate=Pe})(ce||(ce={}));let tt={};function ir(){const[r,o]=S.useState([]);return tt.set=i=>{o([...r,i])},tt.del=i=>{r.forEach((f,u)=>{f.key===i&&r.splice(u,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function sr(r){let o=new Date().getTime();r.key=o,tt.set({item:s.jsx(lr,{data:r},o),key:o})}function lr(r){const o=r.data;let[i]=S.useState("show"),[f,u]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){u(!0),tt.del(o.key)},5e3)},[o.key]);let h;switch(o.type){case"error":h=s.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":h=s.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":h=s.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:h="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:f?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":i,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),s.jsx("span",{className:"text",children:o.text})]})})}let rt={Send:sr,Init:ir},je=()=>{};const Wt=({children:r,title:o,isOverlay:i=!0,footer:f=!0,className:u,onOpen:h})=>{const[j,_]=S.useState(!1);return je=()=>{_(!0),setTimeout(()=>{var p;h==null||h(!1),(p=ke==null?void 0:ke.onClose)==null||p.call(ke)},300)},s.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${j?"closing":""} `,onClick:je,children:s.jsxs("div",{className:`footer-menu-popup-book ${j?"closing":""} ${u||""} ${f?"footer":""}`,onClick:p=>p.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:je,children:"✕"})]}),r]})})},Vt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},ke=[],qt=(r,o)=>r.findIndex(i=>(i==null?void 0:i.page)===o),Jt=({actions:r,children:o,className:i,toHide:f=!1,page:u,onPageChange:h,direction:j="row"})=>{const[_,p]=S.useState(null),[O,m]=S.useState(u?qt(r||[],u):0);return ke.onClose=()=>{p(null),m(u?qt(r||[],u):0)},S.useEffect(()=>{if(!f)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},B=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",B,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",B,!0),I.removeEventListener("blur",k,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Vt.h} ${Vt[j]} ${i} `,children:[o,r&&r.map((y,k)=>s.jsx("div",{"data-active":O===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(O===k?je():(p(y.component),m(k)))},children:y.icon},k))]})]})},ue={is:!1,MainButton:{},BackButton:{}};let V={};V.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"},V.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"},V.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 cr=()=>{if(location.hostname==="localhost"){let[r,o]=S.useState(!1),[i,f]=S.useState(!1),[u,h]=S.useState("dark"),[j,_]=S.useState(!1),[p,O]=S.useState(!1);ue.is=!0,ue.MainButton.set=o,ue.BackButton.set=f,S.useEffect(()=>{V[u]["--tg-theme-bg-color-alpha"]=V[u]["--tg-theme-bg-color"]+"b3",V[u]["--tg-theme-secondary-bg-color-alpha"]=V[u]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[u])document.documentElement.style.setProperty(k,V[u][k]);de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let B in V[k])document.documentElement.style.setProperty(B,V[k][B]);h(k),_(!1)},y=()=>{_(!1),O(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[i===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ce.setPage(i.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!j),children:"Меню"})]}),s.jsx(rt.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),j?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!j),children:"Closed"})})]})]}):"",p?s.jsx(ur,{setAuthorization:O}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",de.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",de.themeParams.bg_color+"b3"),de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(rt.Init,{})})},ur=({setAuthorization:r})=>{let o={},i=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:i,children:" Сохранить "})]})})},Ht={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:o,isScroll:i=!0})=>s.jsx("div",{className:[Ht.p,i&&Ht.s,r].filter(f=>f!==void 0).join(" "),children:o}),dr={l:"_l_gfyud_1"},pr=({children:r,className:o})=>s.jsx("div",{className:[dr.l,o].filter(i=>i!==void 0).join(" "),children:r}),fe={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"},gr=({items:r})=>{const o=f=>{ce.setPage(f)},i=f=>{de.openTelegramLink(f)};return s.jsx("div",{className:fe.m,children:r.map(f=>s.jsx("div",{className:fe.g,children:f.items.map((u,h)=>s.jsxs("div",{className:fe.i,onClick:()=>u.link?i(u.link):o(u.page||""),children:[s.jsxs("div",{className:fe.c,children:[s.jsx("span",{className:fe.l,style:{background:u.color},children:u.icon}),u.title,u.count&&s.jsx("span",{className:fe.n,children:u.count})]}),s.jsx("span",{className:fe.a,children:"›"})]},h))},f.id))})},q={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.state.length!==1&&q.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.listen.push(()=>{var i;let o=q.state.pop();o.page!==void 0?ce.setPage(o.page):(i=o.callback)==null||i.call(o)}),de.BackButton.onClick(q.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(o,i,f)=>{var u,h;i!==void 0?(rt.Send({type:o,text:i,thema:f}),(u=r.WebApp.HapticFeedback)==null||u.notificationOccurred(o)):(rt.Send(o),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(o.type))},r.Header=cr,r.Footer=Jt,r.BottomSheet=Wt,r.toggleBottomSheet=je,r.SafeArea=fr,r.Loading=pr,r.Modal=ot,r.Menu=gr,r.MainButton={callback:[],set:o=>{ue.is?ue.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var i;o.page===void 0?(i=o.callback)==null||i.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=o=>{ue.is?ue.BackButton.set(o):(q.state.push(o),q.router(o))}})(w.default||(w.default={}));const mr=Jt,hr=Wt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Rr,MainButton:Sr,WebApp:de,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=hr,w.Footer=mr,w.Header=kr,w.Loading=xr,w.MainButton=Sr,w.Menu=_r,w.Modal=Rr,w.Notice=br,w.SafeArea=yr,w.WebApp=de,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",