@elcrm/telegram 0.0.69 → 0.0.71

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