@elcrm/telegram 0.0.79 → 0.0.80

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 Pt=document.createElement("style");Pt.textContent=`*{-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_rl5ga_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_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._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}
2
- /*$vite$:1*/`,document.head.appendChild(Pt);var tt={exports:{}},ke={};/**
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_rl5ga_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_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._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={};/**
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 Tt;function Ht(){if(Tt)return ke;Tt=1;var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var h,y={},k=null,D=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(D=g.ref);for(h in g)f.call(g,h)&&!m.hasOwnProperty(h)&&(y[h]=g[h]);if(_&&_.defaultProps)for(h in g=_.defaultProps,g)y[h]===void 0&&(y[h]=g[h]);return{$$typeof:n,type:_,key:k,ref:D,props:y,_owner:d.current}}return ke.Fragment=i,ke.jsx=P,ke.jsxs=P,ke}var Re={};/**
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={};/**
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 It;function Kt(){return It||(It=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),I=Symbol.iterator,Ee="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ee];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,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];_e("error",e,o)}}function _e(e,t,o){{var a=L.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",o=o.concat([u]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Oe=!1,Ce=!1,v=!1,R=!1,B=!1,F;F=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===m||B||e===d||e===j||e===h||R||e===D||Oe||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ie(e,t,o){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?o+"("+u+")":o}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 m:return"Profiler";case d:return"StrictMode";case j:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var o=e;return se(o._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 u=e,p=u._payload,l=u._init;try{return $(l(p))}catch{return null}}}return null}var M=Object.assign,N=0,K,G,Z,Ae,Pe,Te,Ie;function $e(){}$e.__reactDisabledLog=!0;function nt(){{if(N===0){K=console.log,G=console.info,Z=console.warn,Ae=console.error,Pe=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function at(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:Z}),error:M({},e,{value:Ae}),group:M({},e,{value:Pe}),groupCollapsed:M({},e,{value:Te}),groupEnd:M({},e,{value:Ie})})}N<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=L.ReactCurrentDispatcher,fe;function te(e,t,o){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
19
- `+fe+e}}var de=!1,re;{var it=typeof WeakMap=="function"?WeakMap:Map;re=new it}function Be(e,t){if(!e||de)return"";{var o=re.get(e);if(o!==void 0)return o}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
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
20
  `),O=a.stack.split(`
21
- `),b=s.length-1,x=O.length-1;b>=1&&x>=0&&s[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(s[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||s[b]!==O[x]){var T=`
22
- `+s[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{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function st(e,t,o){return Be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,lt(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case h:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return st(e.render);case y:return oe(e.type,t,o);case k:{var a=e,u=a._payload,p=a._init;try{return oe(p(u),t,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Me={},De=L.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}function ct(e,t,o,a,u){{var p=Function.call.bind(q);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var O=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(ne(u),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",o,l,typeof s),ne(null)),s instanceof Error&&!(s.message in Me)&&(Me[s.message]=!0,ne(u),E("Failed %s type: %s",o,s.message),ne(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Le=L.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Ue,ze;function gt(e){if(q.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(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&Le.current}function vt(e,t){{var o=function(){Ue||(Ue=!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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function bt(e,t){{var o=function(){ze||(ze=!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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var yt=function(e,t,o,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,o,a,u){{var p,l={},s=null,O=null;o!==void 0&&(Ne(o),s=""+o),ht(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(O=t.ref,mt(t,u));for(p in t)q.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,x),O&&bt(l,x)}return yt(e,s,O,u,a,Le.current,l)}}var ge=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=$(ge.current.type);if(e)return`
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 q=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(q);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(q.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(q.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)q.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`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function _t(e){return""}var Ve={};function kt(e){{var t=We();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
24
+ Check the render method of \``+e+"`."}return""}}function kt(e){return""}var Je={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
25
25
 
26
- Check the top-level render call using <`+o+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=kt(t);if(Ve[o])return;Ve[o]=!0;var a="";e&&e._owner&&e._owner!==ge.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.',o,a),Y(null)}}function qe(e,t){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var a=e[o];me(a)&&Je(a,t)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)me(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=$(t);ct(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!he){he=!0;var u=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"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 wt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];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 He={};function Ke(e,t,o,a,u,p){{var l=z(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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=_t();O?s+=O:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+($(e.type)||"Unknown")+" />",s=" 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,s)}var x=xt(e,t,o,u,p);if(x==null)return x;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var W=0;W<T.length;W++)qe(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 qe(T,e)}if(q.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(At){return At!=="key"}),ve=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!He[U+ve]){var Ct=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 qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(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 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)&&qe(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)&&qe(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(q.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:
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} />`,ve,U,Ct,U),He[U+ve]=!0}}return e===f?wt(x):Rt(x),x}}function St(e,t,o){return Ke(e,t,o,!0)}function Et(e,t,o){return Ke(e,t,o,!1)}var jt=Et,Ot=St;Re.Fragment=f,Re.jsx=jt,Re.jsxs=Ot}()),Re}process.env.NODE_ENV==="production"?tt.exports=Ht():tt.exports=Kt();var c=tt.exports;let H={};var rt;(r=>{function n({children:_}){const[g,j]=S.useState(!1),[h,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 c.jsx("div",{className:`modal-overlay ${h?"closing":""}`,children:c.jsx("div",{className:`modal-popup ${h?"closing":""}`,children:c.jsx("div",{children:_})})})}r.Content=n;function i({import_modules:_}){let[g,j]=S.useState([]);return H.x=h=>{j(h?g.filter(y=>y.key!==h):[])},S.useEffect(()=>{_&&(H.i=_)},[]),H.add=(h,y=Date.now())=>{j([...g,{key:y,item:h}])},c.jsx(c.Fragment,{children:g.map(h=>h.item)})}r.Init=i;function f(_,g){H.add(c.jsx(n,{children:_},String(Date.now())),g)}r.Add=f;function d(_){return{Open:h=>{r.Add(c.jsx(_,{...h},new Date().getTime()))}}}r.Create=d;function m(){H.onClose()}r.Close=m;function P(_,g,j){H.i&&H.i(`${_}/modals/${g}.tsx`).then(h=>{h.default.Open(j)})}r.Open=P})(rt||(rt={}));function $t(){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 Mt(r){const n=$t();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Bt,...r}}function Ge(){return $t().CRYPTO_PARAMS||Bt}const Ze=r=>{let n=0;for(let f=0;f<r.length;f++){const d=r.charCodeAt(f);n=(n<<5)-n+d,n=n&n}n=Math.abs(n);let i="";for(let f=0;f<64;f++){const d=(n^f*197)&255;i+=d.toString(16).padStart(2,"0")}return i},Dt=(r,n)=>{let i=r+n;for(let d=0;d<Ge().iterations;d++)i=Ze(i);const f=new Uint8Array(32);for(let d=0;d<32;d++)f[d]=parseInt(i.substring(d*2,d*2+2),16);return f},Ft=(r,n)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let d=0;for(let m=0;m<r.length;m++){const P=m%n.length;d=n[P]+m+d&255,f[m]=d}for(let m=0;m<r.length;m++)i[m]=r[m]^f[m];return i},Gt=r=>new TextEncoder().encode(r),Zt=r=>new TextDecoder().decode(r),Xt=r=>{let n="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},Qt=r=>{const n=atob(r),i=new Uint8Array(n.length);for(let f=0;f<n.length;f++)i[f]=n.charCodeAt(f);return i},er=r=>{try{const n=Ze(Date.now().toString()+Math.random()).substring(0,Ge().saltLength*2),i=Ze(r+n).substring(0,8),f=Dt(Ge().key,n),d=Gt(r),m=Ft(d,f),P=Xt(m);return`${n}.${P}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},tr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],f=n[1],d=n[2],m=Dt(Ge().key,i),P=Qt(f),_=Ft(P,m),g=Zt(_);if(Ze(g+i).substring(0,8)!==d)throw new Error("Контрольная сумма не совпадает");return g}catch{return""}};var ae;(r=>{r.setKey=n=>{Mt({key:n})},r.enCode=n=>{try{const i=JSON.stringify(n);return er(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const i=tr(n);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(n,i)=>{Mt({iterations:n,saltLength:i})}})(ae||(ae={}));var we={};/**
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={};/**
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 Nt;function rr(){if(Nt)return we;Nt=1;var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var h,y={},k=null,D=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(D=g.ref);for(h in g)f.call(g,h)&&!m.hasOwnProperty(h)&&(y[h]=g[h]);if(_&&_.defaultProps)for(h in g=_.defaultProps,g)y[h]===void 0&&(y[h]=g[h]);return{$$typeof:n,type:_,key:k,ref:D,props:y,_owner:d.current}}return we.Fragment=i,we.jsx=P,we.jsxs=P,we}var Xe={};/**
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={};/**
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 Lt;function or(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),I=Symbol.iterator,Ee="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ee];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,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];_e("error",e,o)}}function _e(e,t,o){{var a=L.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",o=o.concat([u]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Oe=!1,Ce=!1,v=!1,R=!1,B=!1,F;F=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===m||B||e===d||e===j||e===h||R||e===D||Oe||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ie(e,t,o){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?o+"("+u+")":o}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 m:return"Profiler";case d:return"StrictMode";case j:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var o=e;return se(o._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 u=e,p=u._payload,l=u._init;try{return $(l(p))}catch{return null}}}return null}var M=Object.assign,N=0,K,G,Z,Ae,Pe,Te,Ie;function $e(){}$e.__reactDisabledLog=!0;function nt(){{if(N===0){K=console.log,G=console.info,Z=console.warn,Ae=console.error,Pe=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function at(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:Z}),error:M({},e,{value:Ae}),group:M({},e,{value:Pe}),groupCollapsed:M({},e,{value:Te}),groupEnd:M({},e,{value:Ie})})}N<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=L.ReactCurrentDispatcher,fe;function te(e,t,o){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
48
- `+fe+e}}var de=!1,re;{var it=typeof WeakMap=="function"?WeakMap:Map;re=new it}function Be(e,t){if(!e||de)return"";{var o=re.get(e);if(o!==void 0)return o}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();try{if(t){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
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
49
  `),O=a.stack.split(`
50
- `),b=s.length-1,x=O.length-1;b>=1&&x>=0&&s[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(s[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||s[b]!==O[x]){var T=`
51
- `+s[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{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function st(e,t,o){return Be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,lt(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case h:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return st(e.render);case y:return oe(e.type,t,o);case k:{var a=e,u=a._payload,p=a._init;try{return oe(p(u),t,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Me={},De=L.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}function ct(e,t,o,a,u){{var p=Function.call.bind(q);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var O=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(ne(u),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",o,l,typeof s),ne(null)),s instanceof Error&&!(s.message in Me)&&(Me[s.message]=!0,ne(u),E("Failed %s type: %s",o,s.message),ne(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Le=L.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Ue,ze;function gt(e){if(q.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(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&Le.current}function vt(e,t){{var o=function(){Ue||(Ue=!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))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function bt(e,t){{var o=function(){ze||(ze=!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))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var yt=function(e,t,o,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,o,a,u){{var p,l={},s=null,O=null;o!==void 0&&(Ne(o),s=""+o),ht(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(O=t.ref,mt(t));for(p in t)q.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,x),O&&bt(l,x)}return yt(e,s,O,u,a,Le.current,l)}}var ge=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=$(ge.current.type);if(e)return`
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 q=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(q);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(q.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(q.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)q.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`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function _t(e){return""}var Ve={};function kt(e){{var t=We();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
53
+ Check the render method of \``+e+"`."}return""}}function kt(e){return""}var Je={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
54
54
 
55
- Check the top-level render call using <`+o+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=kt(t);if(Ve[o])return;Ve[o]=!0;var a="";e&&e._owner&&e._owner!==ge.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.',o,a),Y(null)}}function qe(e,t){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var a=e[o];me(a)&&Je(a,t)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)me(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=$(t);ct(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!he){he=!0;var u=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"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 wt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];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 He={};function Ke(e,t,o,a,u,p){{var l=z(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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=_t();O?s+=O:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+($(e.type)||"Unknown")+" />",s=" 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,s)}var x=xt(e,t,o,u,p);if(x==null)return x;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var W=0;W<T.length;W++)qe(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 qe(T,e)}if(q.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(At){return At!=="key"}),ve=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!He[U+ve]){var Ct=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 qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(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 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)&&qe(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)&&qe(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(q.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:
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} />`,ve,U,Ct,U),He[U+ve]=!0}}return e===f?wt(x):Rt(x),x}}function St(e,t,o){return Ke(e,t,o,!0)}function Et(e,t,o){return Ke(e,t,o,!1)}var jt=Et,Ot=St;Xe.Fragment=f,Xe.jsx=jt,Xe.jsxs=Ot}()),Xe}process.env.NODE_ENV==="production"?rr():or();const nr="0.0.37",Ut={version:nr},X={},ot={module:"",v:Ut.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:Ut.version});function Q(r){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...ot,...r}}function A(){return le().ROUTER_PARAMS||ot}function be(r){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ye;(r=>{function n(){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 f({module:v=A().module,page:R=A().page,auth:B=A().auth}){Q({page:R,module:v,auth:B}),n()}r.Default=f;function d(v){let R=z=>(Q({page:z}),z);const[B,F]=S.useState(P()||v&&R(v)||A().page);return be({page:z=>{F(z)}}),B}r.usePage=d;function m(v,R=!0,B={}){Q({page:v,...B}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().page(v)}r.setPage=m;function P(){return A().page}r.getPage=P;function _(v){return A().page===v}r.isPage=_;function g(v,R){const[B,F]=S.useState(h()||v||A().module);return be({module:F}),B}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 h(){return A().module||""}r.getModule=h;function y(v){return A().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[B,F]=S.useState(!R),[z,ie]=S.useState(v||I());return be({tabs:ie}),R&&S.useEffect(()=>{F(!0)},[]),[z,B]}else be({tabs:v})}r.useTabs=k;async function D(v,R=!0){Q({tab:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=D;function I(){return A().tab}r.getTabs=I;function Ee(v){return A().tab===v}r.isTabs=Ee;function je(v){if(typeof v!="function"){const[R,B]=S.useState(v||_e());return be({id:F=>{B(F)}}),R}else be({id:v})}r.useId=je;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 _e(){return A().id}r.getId=_e;function Oe(v){return Number(A().id)===v}r.isId=Oe;async function Ce(v){var R,B,F,z,ie,se,$,M;const{page:N,module:K,tab:G,id:Z}=v;N!==void 0&&(X.page=N),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((B=(R=ee()).id)==null||B.call(R,Z)),G!==void 0&&((z=(F=ee()).tabs)==null||z.call(F,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),N!==void 0&&((M=($=ee()).page)==null||M.call($,N)),sessionStorage.setItem(A().STORAGE,ae.enCode(A()))}r.navigate=Ce})(ye||(ye={}));let Qe={};function ar(){const[r,n]=S.useState([]);return Qe.set=i=>{n([...r,i])},Qe.del=i=>{r.forEach((f,d)=>{f.key===i&&r.splice(d,1)}),n(r)},r.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function ir(r){let n=new Date().getTime();r.key=n,Qe.set({item:c.jsx(sr,{data:r},n),key:n})}function sr(r){const n=r.data;let[i]=S.useState("show"),[f,d]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){d(!0),Qe.del(n.key)},5e3)},[n.key]);let m;switch(n.type){case"error":m=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":m=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":m=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:m="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:f?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:m}),c.jsx("span",{className:"text",children:n.text})]})})}let et={Send:ir,Init:ar},Se=()=>{};const zt=({children:r,title:n,isOverlay:i=!0})=>{const[f,d]=S.useState(!1);return Se=()=>{d(!0),setTimeout(()=>{Wt.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${f?"closing":""}`,onClick:Se,children:c.jsxs("div",{className:`footer-menu-popup-book ${f?"closing":""}`,onClick:m=>m.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Se,children:"✕"})]}),r]})})},Yt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Wt=[],Vt=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),Jt=({actions:r,children:n,className:i,toHide:f=!1,page:d,onPageChange:m,direction:P="row"})=>{const[_,g]=S.useState(null),[j,h]=S.useState(d?Vt(r||[],d):0);return Wt.onClose=()=>{g(null),h(d?Vt(r||[],d):0)},S.useEffect(()=>{if(!f)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},D=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",D,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",D,!0),I.removeEventListener("blur",k,!0)})}},[]),c.jsxs(c.Fragment,{children:[_,c.jsxs("footer",{className:`${Yt.h} ${Yt[P]} ${i} `,children:[n,r&&r.map((y,k)=>c.jsx("div",{"data-active":j===k?"true":"false",onClick:()=>{y.page&&(h(k),m==null||m(y.page)),y.callback&&(y.callback(),h(k)),y.component&&(j===k?Se():(g(y.component),h(k)))},children:y.icon},k))]})]})},ce={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 lr=()=>{if(location.hostname==="localhost"){let[r,n]=S.useState(!1),[i,f]=S.useState(!1),[d,m]=S.useState("dark"),[P,_]=S.useState(!1),[g,j]=S.useState(!1);ce.is=!0,ce.MainButton.set=n,ce.BackButton.set=f,S.useEffect(()=>{V[d]["--tg-theme-bg-color-alpha"]=V[d]["--tg-theme-bg-color"]+"b3",V[d]["--tg-theme-secondary-bg-color-alpha"]=V[d]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[d])document.documentElement.style.setProperty(k,V[d][k]);xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=k=>{for(let D in V[k])document.documentElement.style.setProperty(D,V[k][D]);m(k),_(!1)},y=()=>{_(!1),j(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[i===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ye.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>_(!P),children:"Меню"})]}),c.jsx(et.Init,{}),r&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{r.page&&ye.setPage(r.page),r.callback&&r.callback()},children:r.text})}),P?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:y,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>h("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_(!P),children:"Closed"})})]})]}):"",g?c.jsx(cr,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",xe.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",xe.themeParams.bg_color+"b3"),xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(et.Init,{})})},cr=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:i,children:" Сохранить "})]})})},qt={p:"_p_12hh1_1",s:"_s_12hh1_17"},ur=({className:r,children:n,isScroll:i=!0})=>c.jsx("div",{className:[qt.p,i&&qt.s,r].filter(f=>f!==void 0).join(" "),children:n}),fr={l:"_l_gfyud_1"},dr=({children:r,className:n})=>c.jsx("div",{className:[fr.l,n].filter(i=>i!==void 0).join(" "),children:r}),J={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.state.length!==1&&J.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.listen.push(()=>{var i;let n=J.state.pop();n.page!==void 0?ye.setPage(n.page):(i=n.callback)==null||i.call(n)}),xe.BackButton.onClick(J.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(n,i,f)=>{var d,m;i!==void 0?(et.Send({type:n,text:i,thema:f}),(d=r.WebApp.HapticFeedback)==null||d.notificationOccurred(n)):(et.Send(n),(m=r.WebApp.HapticFeedback)==null||m.notificationOccurred(n.type))},r.Header=lr,r.Footer=Jt,r.BottomSheet=zt,r.toggleBottomSheet=Se,r.SafeArea=ur,r.Loading=dr,r.Modal=rt,r.MainButton={callback:[],set:n=>{ce.is?ce.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ye.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=n=>{ce.is?ce.BackButton.set(n):(J.state.push(n),J.router(n))}})(w.default||(w.default={}));const pr=Jt,gr=zt,hr=w.default.BackButton,mr=w.default.Notice,vr=w.default.SafeArea,br=w.default.Loading,{Header:yr,toggleBottomSheet:xr,Modal:_r,MainButton:kr,WebApp:xe,getUser:Rr}=w.default;w.BackButton=hr,w.BottomSheet=gr,w.Footer=pr,w.Header=yr,w.Loading=br,w.MainButton=kr,w.Modal=_r,w.Notice=mr,w.SafeArea=vr,w.WebApp=xe,w.getUser=Rr,w.toggleBottomSheet=xr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Vt=[],Jt=(r,o)=>r.findIndex(i=>(i==null?void 0:i.page)===o),qt=({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?Jt(r||[],f):0);return Vt.onClose=()=>{g(null),m(f?Jt(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))})},J={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.state.length!==1&&J.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.listen.push(()=>{var i;let o=J.state.pop();o.page!==void 0?ce.setPage(o.page):(i=o.callback)==null||i.call(o)}),de.BackButton.onClick(J.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=qt,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):(J.state.push(o),J.router(o))}})(w.default||(w.default={}));const mr=qt,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"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",