elcrm 0.9.12 → 0.9.13
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/Lang/Lang.d.ts +1 -1
- package/dist/Lang/index.d.ts +1 -1
- package/dist/index.es.js +873 -873
- package/dist/index.umd.js +10 -10
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(T,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(T=typeof globalThis<"u"?globalThis:T||self,f((T.elCRM=T.elCRM||{},T.elCRM.components={}),T.React))})(this,function(T,f){"use strict";var cl=Object.defineProperty;var _l=(T,f,Ce)=>f in T?cl(T,f,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):T[f]=Ce;var Wt=(T,f,Ce)=>_l(T,typeof f!="symbol"?f+"":f,Ce);var Ce=document.createElement("style");Ce.textContent=`@charset "UTF-8";._notice_9i5tr_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_9i5tr_2 ._error_9i5tr_9{color:#bb2014}._notice_9i5tr_2 ._success_9i5tr_12{color:#367738}._notice_9i5tr_2 ._remark_9i5tr_15{color:#b77513}._notice_9i5tr_2 ._copy_9i5tr_18{color:#3f51b5}._notice_9i5tr_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_9i5tr_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_9i5tr_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}._notice_9i5tr_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_9i5tr_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_9i5tr_1{0%{opacity:1}to{opacity:0}}._alerts_1pds5_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1pds5_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1pds5_1 .4s 0s both;animation:_menuAnimation_1pds5_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1pds5_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1pds5_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1pds5_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1pds5_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1pds5_1 .2s 0s both;animation:_menuItemAnimation_1pds5_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1pds5_1 button[color=blue]{color:#1b6ac0}._alerts_1pds5_1 button[color=red]{color:#c21c0d}._alerts_1pds5_1 button:hover{background:var(--system-hover)}._alerts_1pds5_1 ._--body_1pds5_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1pds5_111 ._--form_1pds5_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}._al_1pds5_1{display:flex;color:#fff;font-weight:700;height:40px;align-items:center}._al_1pds5_1 svg{fill:#fff;width:25px;height:25px;margin:0 15px}._al_1pds5_1[active=success]{background:#4caf51}._al_1pds5_1[active=error]{background:#f44336}._al_1pds5_1[active=remark]{background:#ff9800}._al_1pds5_1[active=none],._al_1pds5_1[active="0"]{display:none}._al_1pds5_1[active="1"]{background:#ff9800}._al_1pds5_1[active="2"]{background:#f44336}._al_1pds5_1[active="3"]{background:#4caf51}._al_1pds5_1[active="4"]{background:#abb6d2}._al_1pds5_1[active="5"]{background:#506290}._al_1pds5_1 button{height:30px;line-height:30px;padding:0 20px;font-weight:400;margin-left:20px;background:#e6e6e6}._n_euuvm_1{flex:0 0 50px;cursor:pointer;color:#fff;border-right:1px solid #000;display:flex;justify-content:center;align-items:center}._n_euuvm_1 svg{width:30px;height:30px;color:#fff}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_swayt_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_swayt_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_swayt_1;animation-name:_shake_swayt_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_swayt_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_swayt_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_swayt_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_swayt_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_swayt_107{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_swayt_121{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_swayt_121 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_swayt_121 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_swayt_121 li:last-child{border-bottom:0}._l_swayt_121 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_swayt_159{padding-right:10px}._m_swayt_73{flex:1}._x_swayt_167{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_swayt_167 svg{width:20px}._s_swayt_177{flex:1;overflow-y:scroll}._c_swayt_182{text-align:center;margin:20px}._f_swayt_187{padding:0 20px;display:flex;flex-direction:column}._f_swayt_187 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_swayt_187 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_swayt_187 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_swayt_187 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_swayt_167:hover{opacity:1}._g_swayt_230{display:flex;gap:10px}._c_swayt_182{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_swayt_182:first-child{margin-left:20px}._c_swayt_182:last-child{margin-right:20px}._c_swayt_182:hover{opacity:1;background:var(--tinge)}._c_swayt_182 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_swayt_182 b{text-align:center;display:block;color:var(--color)}._c_swayt_182 p{text-align:center;font-size:15px;color:var(--text)}._modal_swayt_73._size-a_swayt_279 ._w_swayt_14{width:auto}._modal_swayt_73._size-s_swayt_283 ._w_swayt_14{width:400px}._modal_swayt_73._size-m_swayt_287 ._w_swayt_14{width:500px}._modal_swayt_73._size-l_swayt_291 ._w_swayt_14{width:800px}._modal_swayt_73._size-x_swayt_295 ._w_swayt_14{width:1000px}._modal_swayt_73._size-f_swayt_299 ._w_swayt_14{width:100%;max-width:1200px;min-width:910px}._m_swayt_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_swayt_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_swayt_73 big i:hover{box-shadow:var(--inset)}._m_swayt_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_swayt_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_swayt_73 span._active_swayt_348{box-shadow:var(--inset);color:var(--color)}._coincidence_swayt_354{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_swayt_354 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_swayt_354 dl{display:flex;padding:0;margin:5px}._coincidence_swayt_354 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}._sa_swayt_390{width:auto}._ss_swayt_394{width:400px}._sm_swayt_398{width:500px}._sl_swayt_402{width:800px}._sx_swayt_406{width:1000px}._sf_swayt_410{width:100%;max-width:1200px;min-width:910px}._btn_swayt_416{margin:10px auto 20px}button{background:#b95656;font-weight:700}._btn_1d6a6_6{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1d6a6_6:hover{opacity:1}._confirm_1d6a6_20{background:#4caf50;color:#fff}._cancel_1d6a6_25{background:#f44336;color:#fff}._disabled_1d6a6_30,._await_1d6a6_37{background:#efefef;color:#000;opacity:1;cursor:default}._m_1d6a6_44{min-width:200px}._l_1d6a6_48{flex:1}._h_1usnu_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._g_1usnu_11{display:flex;gap:5px}._hr_1usnu_16{text-align:center;position:absolute;display:flex;top:0;right:0;align-items:center;gap:6px;padding-right:4px;height:35px}._hl_1usnu_28{text-align:center;position:absolute;display:flex;top:0;left:0;align-items:center;gap:6px;padding-left:4px;height:35px}._t_1usnu_40{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_1usnu_60{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_1usnu_69{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_1usnu_76{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._o_1usnu_76 ul{border-top:1px solid var(--separator);display:flex;flex-direction:column;gap:1px;background:var(--separator)}._o_1usnu_76 li{background:var(--content);display:flex}._o_1usnu_76 li[data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}._l_1usnu_105{flex:1;overflow:hidden;overflow-y:scroll;border-radius:0 0 5px 5px}._l_1usnu_105:last-child{border-radius:0}._hh_1usnu_115{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._c_1usnu_128{width:300px;height:150px;margin:auto;border-radius:5px;text-align:center;background:#0000004a;line-height:150px;color:#fff}[type=load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}[type=load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}[type=load] i:nth-last-child(1){animation:_loadingB_1usnu_1 1.5s 1s infinite}[type=load] i:nth-last-child(2){animation:_loadingB_1usnu_1 1.5s .5s infinite}[type=load] i:nth-last-child(3){animation:_loadingB_1usnu_1 1.5s 0s infinite}@keyframes _loadingB_1usnu_1{0%{width:15px}50%{width:35px}to{width:15px}}._m_1usnu_180{-webkit-app-region:no-drag;overflow:hidden;border-radius:5px;margin-top:5px;background:#fff;display:block;min-height:35px;padding:10px;text-align:justify;white-space:pre-line}._m_1usnu_180 dd{min-height:35px}._ul_1usnu_196{overflow:hidden;border-radius:0;background:var(--separator);list-style-type:none;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}._ul_1usnu_196 li{display:flex;font-size:12px;min-height:25px;cursor:pointer;align-items:center;gap:1px}._ul_1usnu_196 span{background:var(--content);flex:1;height:25px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._f_1usnu_226{border-top:1px solid var(--separator)}._f_1usnu_226 dl{display:flex;border-bottom:1px solid #ddd;margin:0}._f_1usnu_226 dt{flex:0 120px;font-size:13px;color:#999;margin:0;padding:6px 0 5px 9px}._f_1usnu_226 dd{flex:1;margin:0;border-left:1px solid #ddd;padding:5px;font-size:15px;min-height:17px;margin-inline-start:0px;overflow:hidden;overflow-x:scroll}._f_1usnu_226[edit] [edit=true]{color:red}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_dva4m_2{width:100%;overflow:auto}._setting_dva4m_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_dva4m_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_dva4m_2 nav li[tabs-active=true]{opacity:1}._setting_dva4m_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_dva4m_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_dva4m_2 li{font-size:20px;line-height:40px}._setting_dva4m_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;color:var(--setting-color);background:var(--setting-bg)}._setting_dva4m_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_dva4m_2 dt{flex:1;padding:0 15px}._setting_dva4m_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_dva4m_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_dva4m_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_dva4m_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_dva4m_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_dva4m_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_dva4m_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_dva4m_2 [role=button]:hover{background:var(--setting-action)}._setting_dva4m_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_dva4m_2 [role=button-outline]:hover{background:#00000038}._setting_dva4m_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_dva4m_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_dva4m_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_dva4m_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_dva4m_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_dva4m_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}._s_18bde_1{flex:1;overflow:scroll}._s_18bde_1 [data-load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._s_18bde_1 [data-load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._s_18bde_1 [data-load] i:nth-last-child(1){animation:_loadingB_18bde_1 1.5s 1s infinite}._s_18bde_1 [data-load] i:nth-last-child(2){animation:_loadingB_18bde_1 1.5s .5s infinite}._s_18bde_1 [data-load] i:nth-last-child(3){animation:_loadingB_18bde_1 1.5s 0s infinite}._ul_18bde_31{overflow:hidden;border-radius:0 0 5px 5px;background:var(--separator);display:block;list-style-type:none;list-style:none;padding:0;margin:0}._ul_18bde_31 [data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}@keyframes _loadingB_18bde_1{0%{width:15px}50%{width:35px}to{width:15px}}._o_66f7n_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_66f7n_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:#394264;z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_66f7n_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_66f7n_11 [grid-month]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:250px}._c_66f7n_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_66f7n_11 b:hover{background:#00000073}._c_66f7n_11 p{color:#abb6d2;text-align:center;padding:0;margin:3px;cursor:default}._c_66f7n_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_66f7n_11 i:hover{background:#00000073}._c_66f7n_11 i:before{cursor:pointer;display:block}._c_66f7n_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_66f7n_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_66f7n_11 span{padding:2px;text-align:center}._c_66f7n_11 ._as_66f7n_87{cursor:ns-resize}._c_66f7n_11 ._ap_66f7n_90{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password] dd:before{-webkit-text-security:none}[field=code] div{display:flex;gap:8px}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;position:relative;cursor:pointer}[field=file] img{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;cursor:pointer}[field=file] label{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;position:absolute;cursor:pointer}._spinner_o487n_1{fill:var(--spunner-color, #fff);display:block;width:70px;height:70px;margin:70px auto;animation:_spinner_o487n_1 1.5s infinite linear;border-radius:50%}@-webkit-keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}._l_o487n_75{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._l_o487n_75 i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:var(--spunner-color, #fff);margin:0 5px}._l_o487n_75 i:nth-last-child(1){animation:_loadingB_o487n_1 1.5s 1s infinite}._l_o487n_75 i:nth-last-child(2){animation:_loadingB_o487n_1 1.5s .5s infinite}._l_o487n_75 i:nth-last-child(3){animation:_loadingB_o487n_1 1.5s 0s infinite}@keyframes _loadingB_o487n_1{0%{width:15px}50%{width:35px}to{width:15px}}._s_t9swc_1{flex:0 0 200px;cursor:text;text-align:left;line-height:30px;max-width:200px;overflow:hidden;white-space:nowrap;outline:none;height:30px;padding:0 5px 0 10px;color:#fff;margin-top:10px;margin-left:5px;background:#0000004d;border:1px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:inset 0 -5px 45px #64646433,0 1px 1px #fff3}._s_t9swc_1:empty:before{content:attr(placeholder);display:block;color:#ccc}._f_q3r0i_1{flex:0 0 50px;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}._f_q3r0i_1 svg{width:30px;height:30px;color:#fff}._f_q3r0i_1 i{width:15px;height:15px;color:#fff;position:absolute;background:red;border-radius:50%;font-style:normal;top:5px;right:0;display:flex;align-items:center;justify-content:center;padding:10px}._p_djnh1_1{background:#fff;display:none;height:35px;line-height:35px;margin-top:2px;display:flex}._p_djnh1_1 span{flex:1 1;display:flex;text-align:center;cursor:pointer;color:#999;font-style:normal}._p_djnh1_1 span[active]{color:#000}._p_djnh1_1 i{cursor:pointer;flex:0 1 40px;align-items:center;display:flex;fill:#999;justify-content:center}._p_djnh1_1 i:hover{fill:#000}._p_djnh1_1 i:first-child{transform:rotate(180deg)}._p_djnh1_1 svg{width:20px}._l_djnh1_38{flex:1;overflow:scroll}
|
|
2
|
-
`,document.head.appendChild(Ce);let ct={enCode:e=>e,deCode:e=>e};const
|
|
1
|
+
(function(T,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],f):(T=typeof globalThis<"u"?globalThis:T||self,f((T.elCRM=T.elCRM||{},T.elCRM.components={}),T.React))})(this,function(T,f){"use strict";var _l=Object.defineProperty;var ul=(T,f,Ce)=>f in T?_l(T,f,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):T[f]=Ce;var Kt=(T,f,Ce)=>ul(T,typeof f!="symbol"?f+"":f,Ce);var Ce=document.createElement("style");Ce.textContent=`@charset "UTF-8";._notice_9i5tr_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_9i5tr_2 ._error_9i5tr_9{color:#bb2014}._notice_9i5tr_2 ._success_9i5tr_12{color:#367738}._notice_9i5tr_2 ._remark_9i5tr_15{color:#b77513}._notice_9i5tr_2 ._copy_9i5tr_18{color:#3f51b5}._notice_9i5tr_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_9i5tr_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_9i5tr_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}._notice_9i5tr_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_9i5tr_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_9i5tr_1{0%{opacity:1}to{opacity:0}}._alerts_1pds5_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1pds5_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1pds5_1 .4s 0s both;animation:_menuAnimation_1pds5_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1pds5_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1pds5_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1pds5_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1pds5_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1pds5_1 .2s 0s both;animation:_menuItemAnimation_1pds5_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1pds5_1 button[color=blue]{color:#1b6ac0}._alerts_1pds5_1 button[color=red]{color:#c21c0d}._alerts_1pds5_1 button:hover{background:var(--system-hover)}._alerts_1pds5_1 ._--body_1pds5_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1pds5_111 ._--form_1pds5_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}._al_1pds5_1{display:flex;color:#fff;font-weight:700;height:40px;align-items:center}._al_1pds5_1 svg{fill:#fff;width:25px;height:25px;margin:0 15px}._al_1pds5_1[active=success]{background:#4caf51}._al_1pds5_1[active=error]{background:#f44336}._al_1pds5_1[active=remark]{background:#ff9800}._al_1pds5_1[active=none],._al_1pds5_1[active="0"]{display:none}._al_1pds5_1[active="1"]{background:#ff9800}._al_1pds5_1[active="2"]{background:#f44336}._al_1pds5_1[active="3"]{background:#4caf51}._al_1pds5_1[active="4"]{background:#abb6d2}._al_1pds5_1[active="5"]{background:#506290}._al_1pds5_1 button{height:30px;line-height:30px;padding:0 20px;font-weight:400;margin-left:20px;background:#e6e6e6}._n_euuvm_1{flex:0 0 50px;cursor:pointer;color:#fff;border-right:1px solid #000;display:flex;justify-content:center;align-items:center}._n_euuvm_1 svg{width:30px;height:30px;color:#fff}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_swayt_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_swayt_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_swayt_1;animation-name:_shake_swayt_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_swayt_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_swayt_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_swayt_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_swayt_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_swayt_107{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_swayt_121{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_swayt_121 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_swayt_121 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_swayt_121 li:last-child{border-bottom:0}._l_swayt_121 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_swayt_159{padding-right:10px}._m_swayt_73{flex:1}._x_swayt_167{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_swayt_167 svg{width:20px}._s_swayt_177{flex:1;overflow-y:scroll}._c_swayt_182{text-align:center;margin:20px}._f_swayt_187{padding:0 20px;display:flex;flex-direction:column}._f_swayt_187 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_swayt_187 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_swayt_187 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_swayt_187 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_swayt_167:hover{opacity:1}._g_swayt_230{display:flex;gap:10px}._c_swayt_182{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_swayt_182:first-child{margin-left:20px}._c_swayt_182:last-child{margin-right:20px}._c_swayt_182:hover{opacity:1;background:var(--tinge)}._c_swayt_182 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_swayt_182 b{text-align:center;display:block;color:var(--color)}._c_swayt_182 p{text-align:center;font-size:15px;color:var(--text)}._modal_swayt_73._size-a_swayt_279 ._w_swayt_14{width:auto}._modal_swayt_73._size-s_swayt_283 ._w_swayt_14{width:400px}._modal_swayt_73._size-m_swayt_287 ._w_swayt_14{width:500px}._modal_swayt_73._size-l_swayt_291 ._w_swayt_14{width:800px}._modal_swayt_73._size-x_swayt_295 ._w_swayt_14{width:1000px}._modal_swayt_73._size-f_swayt_299 ._w_swayt_14{width:100%;max-width:1200px;min-width:910px}._m_swayt_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_swayt_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_swayt_73 big i:hover{box-shadow:var(--inset)}._m_swayt_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_swayt_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_swayt_73 span._active_swayt_348{box-shadow:var(--inset);color:var(--color)}._coincidence_swayt_354{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_swayt_354 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_swayt_354 dl{display:flex;padding:0;margin:5px}._coincidence_swayt_354 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}._sa_swayt_390{width:auto}._ss_swayt_394{width:400px}._sm_swayt_398{width:500px}._sl_swayt_402{width:800px}._sx_swayt_406{width:1000px}._sf_swayt_410{width:100%;max-width:1200px;min-width:910px}._btn_swayt_416{margin:10px auto 20px}button{background:#b95656;font-weight:700}._btn_1d6a6_6{opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._btn_1d6a6_6:hover{opacity:1}._confirm_1d6a6_20{background:#4caf50;color:#fff}._cancel_1d6a6_25{background:#f44336;color:#fff}._disabled_1d6a6_30,._await_1d6a6_37{background:#efefef;color:#000;opacity:1;cursor:default}._m_1d6a6_44{min-width:200px}._l_1d6a6_48{flex:1}._h_1usnu_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._g_1usnu_11{display:flex;gap:5px}._hr_1usnu_16{text-align:center;position:absolute;display:flex;top:0;right:0;align-items:center;gap:6px;padding-right:4px;height:35px}._hl_1usnu_28{text-align:center;position:absolute;display:flex;top:0;left:0;align-items:center;gap:6px;padding-left:4px;height:35px}._t_1usnu_40{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_1usnu_60{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_1usnu_69{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_1usnu_76{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._o_1usnu_76 ul{border-top:1px solid var(--separator);display:flex;flex-direction:column;gap:1px;background:var(--separator)}._o_1usnu_76 li{background:var(--content);display:flex}._o_1usnu_76 li[data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}._l_1usnu_105{flex:1;overflow:hidden;overflow-y:scroll;border-radius:0 0 5px 5px}._l_1usnu_105:last-child{border-radius:0}._hh_1usnu_115{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._c_1usnu_128{width:300px;height:150px;margin:auto;border-radius:5px;text-align:center;background:#0000004a;line-height:150px;color:#fff}[type=load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}[type=load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}[type=load] i:nth-last-child(1){animation:_loadingB_1usnu_1 1.5s 1s infinite}[type=load] i:nth-last-child(2){animation:_loadingB_1usnu_1 1.5s .5s infinite}[type=load] i:nth-last-child(3){animation:_loadingB_1usnu_1 1.5s 0s infinite}@keyframes _loadingB_1usnu_1{0%{width:15px}50%{width:35px}to{width:15px}}._m_1usnu_180{-webkit-app-region:no-drag;overflow:hidden;border-radius:5px;margin-top:5px;background:#fff;display:block;min-height:35px;padding:10px;text-align:justify;white-space:pre-line}._m_1usnu_180 dd{min-height:35px}._ul_1usnu_196{overflow:hidden;border-radius:0;background:var(--separator);list-style-type:none;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}._ul_1usnu_196 li{display:flex;font-size:12px;min-height:25px;cursor:pointer;align-items:center;gap:1px}._ul_1usnu_196 span{background:var(--content);flex:1;height:25px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._f_1usnu_226{border-top:1px solid var(--separator)}._f_1usnu_226 dl{display:flex;border-bottom:1px solid #ddd;margin:0}._f_1usnu_226 dt{flex:0 120px;font-size:13px;color:#999;margin:0;padding:6px 0 5px 9px}._f_1usnu_226 dd{flex:1;margin:0;border-left:1px solid #ddd;padding:5px;font-size:15px;min-height:17px;margin-inline-start:0px;overflow:hidden;overflow-x:scroll}._f_1usnu_226[edit] [edit=true]{color:red}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_dva4m_2{width:100%;overflow:auto}._setting_dva4m_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_dva4m_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_dva4m_2 nav li[tabs-active=true]{opacity:1}._setting_dva4m_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_dva4m_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_dva4m_2 li{font-size:20px;line-height:40px}._setting_dva4m_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;color:var(--setting-color);background:var(--setting-bg)}._setting_dva4m_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_dva4m_2 dt{flex:1;padding:0 15px}._setting_dva4m_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_dva4m_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_dva4m_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_dva4m_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_dva4m_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_dva4m_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_dva4m_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_dva4m_2 [role=button]:hover{background:var(--setting-action)}._setting_dva4m_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_dva4m_2 [role=button-outline]:hover{background:#00000038}._setting_dva4m_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_dva4m_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_dva4m_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_dva4m_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_dva4m_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_dva4m_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}._s_18bde_1{flex:1;overflow:scroll}._s_18bde_1 [data-load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._s_18bde_1 [data-load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._s_18bde_1 [data-load] i:nth-last-child(1){animation:_loadingB_18bde_1 1.5s 1s infinite}._s_18bde_1 [data-load] i:nth-last-child(2){animation:_loadingB_18bde_1 1.5s .5s infinite}._s_18bde_1 [data-load] i:nth-last-child(3){animation:_loadingB_18bde_1 1.5s 0s infinite}._ul_18bde_31{overflow:hidden;border-radius:0 0 5px 5px;background:var(--separator);display:block;list-style-type:none;list-style:none;padding:0;margin:0}._ul_18bde_31 [data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}@keyframes _loadingB_18bde_1{0%{width:15px}50%{width:35px}to{width:15px}}._o_66f7n_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_66f7n_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:#394264;z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_66f7n_11 [grid-calendar]{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_66f7n_11 [grid-month]{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;width:250px}._c_66f7n_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_66f7n_11 b:hover{background:#00000073}._c_66f7n_11 p{color:#abb6d2;text-align:center;padding:0;margin:3px;cursor:default}._c_66f7n_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_66f7n_11 i:hover{background:#00000073}._c_66f7n_11 i:before{cursor:pointer;display:block}._c_66f7n_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_66f7n_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_66f7n_11 span{padding:2px;text-align:center}._c_66f7n_11 ._as_66f7n_87{cursor:ns-resize}._c_66f7n_11 ._ap_66f7n_90{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password] dd:before{-webkit-text-security:none}[field=code] div{display:flex;gap:8px}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;position:relative;cursor:pointer}[field=file] img{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;cursor:pointer}[field=file] label{aspect-ratio:16/9;display:block;width:-webkit-fill-available;object-fit:contain;position:absolute;cursor:pointer}._spinner_o487n_1{fill:var(--spunner-color, #fff);display:block;width:70px;height:70px;margin:70px auto;animation:_spinner_o487n_1 1.5s infinite linear;border-radius:50%}@-webkit-keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _spinner_o487n_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}._l_o487n_75{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._l_o487n_75 i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:var(--spunner-color, #fff);margin:0 5px}._l_o487n_75 i:nth-last-child(1){animation:_loadingB_o487n_1 1.5s 1s infinite}._l_o487n_75 i:nth-last-child(2){animation:_loadingB_o487n_1 1.5s .5s infinite}._l_o487n_75 i:nth-last-child(3){animation:_loadingB_o487n_1 1.5s 0s infinite}@keyframes _loadingB_o487n_1{0%{width:15px}50%{width:35px}to{width:15px}}._s_t9swc_1{flex:0 0 200px;cursor:text;text-align:left;line-height:30px;max-width:200px;overflow:hidden;white-space:nowrap;outline:none;height:30px;padding:0 5px 0 10px;color:#fff;margin-top:10px;margin-left:5px;background:#0000004d;border:1px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:inset 0 -5px 45px #64646433,0 1px 1px #fff3}._s_t9swc_1:empty:before{content:attr(placeholder);display:block;color:#ccc}._f_q3r0i_1{flex:0 0 50px;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}._f_q3r0i_1 svg{width:30px;height:30px;color:#fff}._f_q3r0i_1 i{width:15px;height:15px;color:#fff;position:absolute;background:red;border-radius:50%;font-style:normal;top:5px;right:0;display:flex;align-items:center;justify-content:center;padding:10px}._p_djnh1_1{background:#fff;display:none;height:35px;line-height:35px;margin-top:2px;display:flex}._p_djnh1_1 span{flex:1 1;display:flex;text-align:center;cursor:pointer;color:#999;font-style:normal}._p_djnh1_1 span[active]{color:#000}._p_djnh1_1 i{cursor:pointer;flex:0 1 40px;align-items:center;display:flex;fill:#999;justify-content:center}._p_djnh1_1 i:hover{fill:#000}._p_djnh1_1 i:first-child{transform:rotate(180deg)}._p_djnh1_1 svg{width:20px}._l_djnh1_38{flex:1;overflow:scroll}
|
|
2
|
+
`,document.head.appendChild(Ce);let ct={enCode:e=>e,deCode:e=>e};const Yt=e=>{ct=e},R={enCode:e=>ct.enCode(e),deCode:e=>ct.deCode(e),New:Yt},I={},X={},Ie={},Ht={},fe={};let Ve="M06";function ua(e){Ve=e}function fa(){return Ve}function ma(e){let t=localStorage.getItem("d");if(console.log(t),t){let n=sessionStorage.getItem("f");n?(n=R.deCode(n),n||ie(),I.id=n.id,I.tab=n.tab,I.page=n.page,I.module=n.module,I.time=n.time,I.payment={active:!0},I.module_admin=n.module_admin):(I.id=0,I.tab="",I.page="Main",I.module=I.module||Ve)}else["a","b","c","d","e","m","u","s","q","p"].forEach(n=>localStorage.removeItem(n)),["f"].forEach(n=>sessionStorage.removeItem(n)),I.id=0,I.tab="",I.page="Auth",I.module=Ve;return e}function ie(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function pa(e){e=e.split("/"),I.page="Main",I.module=e[0],I.tab=e[1],I.id=0,sessionStorage.setItem("f",R.enCode({module:I.module,page:I.page,tab:I.tab,id:I.id,time:new Date().getTime()})),X.page(I.page)}function ha(e){return localStorage.setItem("d",e)}function xa(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function ga(e){return localStorage.setItem("a",e)}function va(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function ba(e){localStorage.setItem("p",R.enCode(e))}function _t(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=R.deCode(e);return t||ie(),t}else return ie(),!1}function ya(){const[e,t]=f.useState(qt()),n=r=>{t(r)};return X.page=n,[e]}function wa(e,t=!0){I.page=e,sessionStorage.setItem("f",R.enCode(I)),t&&X.page(e)}function qt(){return I.page}function ka(e){return I.page===e}function Ca(e){if(typeof e!="function"){const[t,n]=f.useState(e||Vt()),r=i=>{n(i)};return X.module=r,[t]}else X.module=e}function ja(e,t=!0){I.module=e,sessionStorage.setItem("f",R.enCode(I)),t&&X.module(e)}function Vt(){return I.module}function Sa(e){return I.module===e}function Ea(e){if(typeof e!="function"){const[t,n]=f.useState(e||Je());return X.tabs=n,[t]}else X.tabs=e}function Da(e,t=!0){if(I.tab=e,sessionStorage.setItem("f",R.enCode(I)),!!t)if(X.tabs)X.tabs(e);else throw new Error("useTabs not found")}function Je(){return I.tab}function Ia(e){return I.tab===e}function Na(e){if(typeof e!="function"){const[t,n]=f.useState(e||Jt()),r=i=>{n(i)};return X.id=r,[t]}else X.id=e}function Ta(e){X.id=e}function Ma(e,t=!0){I.id=e,sessionStorage.setItem("f",R.enCode(I)),t&&X.id(e)}function Jt(){return I.id}function $a(e){return Number(I.id)===e}function La(e,t,n){I.module=e,I.id=n,I.tab=t,sessionStorage.setItem("f",R.enCode(I)),X.module(e),X.tabs(t)}function Ba(e){Ie.data=e[0],delete Ie.data.id,document.body.dataset.theme=Ie.data.s15,localStorage.setItem("s",R.enCode(Ie.data))}function Fa(e,t){Ie.data[e]=t,localStorage.setItem("s",R.enCode(Ie.data))}function Pa(e){let t=localStorage.getItem("s");return t===null?{}:(t=R.deCode(t),t?e!==void 0?t[e]:t:ie())}function Xt(e){localStorage.setItem("m",R.enCode({data:e}))}function Ra(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),n=R.deCode(t);n||ie();const r=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return n.data.split(",").map(o=>"M"+r(2,o))}else return ie(),!1}function Aa(e){X.sort=e}function Qt(e){let t=localStorage.getItem("b");t=t===null?{}:R.deCode(t),t[Je()]=e,localStorage.setItem("b",R.enCode(t))}function ut(){let e=localStorage.getItem("b");return e===null?{}:(e=R.deCode(e),e=e[Je()],e=e===void 0?{active:1,sort:"<"}:e,e)}function en(e){localStorage.setItem("c",R.enCode(e))}function tn(e,t){var r;let n=localStorage.getItem("c");if(n!==""&&n!=="undefined"&&n!==null){let i=R.deCode(n);return i||ie(),e===void 0?i:t?(r=i[e][t])==null?void 0:r.n:i[e]}else return ie(),!1}function Be(e){fe.data=e,localStorage.setItem("q",R.enCode(fe.data))}function Oa(e,t){fe.data={...fe.data,[e]:t},localStorage.setItem("q",R.enCode(fe.data))}function xe(e,t){if(!fe.data){let n=localStorage.getItem("q");n&&(fe.data=R.deCode(n))}return e===void 0&&t===void 0?fe.data:e!==void 0&&t===void 0?fe.data[e]:fe.data[e][t]}function za(e){Ht.data=e}function Ga(e){return Ht.data[e]}function Za(e){I.payment=e}function Ua(){return I.payment}function nn(e){localStorage.setItem("u",R.enCode(e))}function Wa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=R.deCode(e);return t||ie(),t}else return ie(),!1}function an(e){localStorage.setItem("e",R.enCode(e))}function Ka(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=R.deCode(e);return t||ie(),t}catch{return{}}else return{}}function Ya(e){const t=n=>{let r=localStorage.getItem(n);if(r!==""&&r!=="undefined"&&r!==null)try{let i=R.deCode(r);if(!i)return;I[n]={is:!0,time:i.time,data:i.data}}catch{I[n]={is:!1,time:0,data:{}}}else I[n]={is:!1,time:0,data:{}}};e.forEach(n=>t(n))}function Ha(e){return I[e]===void 0?(I[e]={data:{},time:0},{data:{},time:0}):I[e]}function qa(e,t){I[e]={data:t.data,time:t.time},localStorage.setItem(e,R.enCode(I[e]))}function Va(e,t,n){I[e].time=n,I[e].data[t.item][t.name]=t.value,localStorage.setItem(e,R.enCode(I[e]))}const te={setSSID:ha,getSSID:xa,getPORT:_t,setPORT:ba,setAUTH:ga,getAUTH:va,Logaut:ie,Start:pa,setMenu:Xt,getMenu:Ra,useSort:Aa,setSort:Qt,getSort:ut,setCompany:en,getCompany:tn,setSelect:Be,addSelect:Oa,getSelect:xe,setApi:za,getApi:Ga,setPayment:Za,getPayment:Ua,setUser:nn,getUser:Wa,getDefaultModules:fa,getBase:Ha,setBase:qa,editBase:Va,loadBase:Ya},rn="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyBhPT57bGV0IHM9YS5kYXRhLmRhdGEgaW5zdGFuY2VvZiBGb3JtRGF0YT97fTp7IkNvbnRlbnQtdHlwZSI6ImFwcGxpY2F0aW9uL2pzb247Y2hhcnNldD11dGYtOCJ9O3RyeXtsZXQgdD1hd2FpdCBmZXRjaChgJHthLmRhdGEuaG9zdH0ke2EuZGF0YS5saW5rfWAse21ldGhvZDoiUE9TVCIsaGVhZGVyczp7c3NpZDphLmRhdGEuc3NpZCwuLi5zfSxib2R5OmEuZGF0YS5kYXRhIGluc3RhbmNlb2YgRm9ybURhdGE/YS5kYXRhLmRhdGE6SlNPTi5zdHJpbmdpZnkoYS5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgdC5qc29uKCkpfWNhdGNoKHQpe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIixkYXRhOiJ3b3JrZXIiLG1lc3NhZ2U6dH0pfX19KSgpOwo=",Ja=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),on=typeof self<"u"&&self.Blob&&new Blob([Ja(rn)],{type:"text/javascript;charset=utf-8"});function sn(e){let t;try{if(t=on&&(self.URL||self.webkitURL).createObjectURL(on),!t)throw"";const n=new Worker(t,{name:e==null?void 0:e.name});return n.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker("data:text/javascript;base64,"+rn,{name:e==null?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}const _e={};function Xa(e){return e&&(_e.s=e),_e.s}function Qa(e){return e&&(_e.a=e),_e.a}function er(e){return e&&(_e.c=e),_e.c}function tr(e){return e&&(_e.h=e),_e.h}function nr(e){return e&&(_e.i=e),_e.i}function ft(e){return _e.i(e)}function ar(e){Yt(e)}const Fe={version:{Api:Qa,Server:Xa,Client:er},Host:tr,Import:nr,Crypto:ar,defaultModule:ua};let rr="api",ir="elcrm",or="online";function sr(){let e=te.getPORT(),t="",n="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,n=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",n="https://"+e.address+"/files"),{documents:t,files:n}}let mt=`${rr}.${ir}.${or}`;function lr(e){return"https://"+te.getPORT().address+"/audio/"+e}function dr(e){return"https://"+te.getPORT().address+"/image/"+e}function Pe(e,t={},n=te.getAUTH()){return new Promise(r=>{const i=new sn;i.onmessage=o=>{r(o.data),i.terminate()},i.postMessage({link:e,data:t,ssid:n,host:Fe.Host()||`https://${mt}/`})})}async function cr(e,t={},n=te.getAUTH()){try{return await(await Pe(Fe.Host()||`https://${mt}/`+e,{method:"POST",headers:{ssid:n},body:t})).json()}catch(r){return{status:"error",message:r}}}function _r(e,t={},n=te.getAUTH()){return new Promise(r=>{const i=new sn;i.onmessage=o=>{r(o.data),i.terminate()},i.postMessage({link:e,data:t,ssid:n,host:Fe.Host()+"modules/"||`https://${mt}/modules`})})}function ur(e,t={},n){const[r,i]=f.useState({status:"load"}),o=async s=>{let l=await Pe(e,s,n);i(l)};return f.useEffect(()=>{o(t)},[]),[r,o]}let ln={"Content-type":"application/json;charset=utf-8",ssid:te.getAUTH()||""};async function fr(e,t,n={}){try{return await(await Pe("https://"+e+"/"+t,{method:"POST",headers:ln,body:JSON.stringify(n)})).json()}catch{return{status:"error"}}}async function mr(e,t={}){try{return await(await Pe("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:ln,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}function pr(e="qJqEtGe93RVTRF1gTKmdEXw6gCgrSx31"){return e[(e.length/2).toFixed()]+e[(e.length/3).toFixed()]+e[(e.length/4).toFixed()]+e[(e.length/2).toFixed()]}async function hr(e,t={}){return new Promise(n=>{setTimeout(()=>n(t),e)})}const pt={audio:lr,image:dr,fetch:Pe,modules:_r,remoute:fr,url:sr,test:hr,telegram:mr,use:ur,token:pr,formData:cr};var ht={exports:{}},Re={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var dn;function xr(){if(dn)return Re;dn=1;var e=f,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(l,d,_){var u,p={},m=null,x=null;_!==void 0&&(m=""+_),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(x=d.ref);for(u in d)r.call(d,u)&&!o.hasOwnProperty(u)&&(p[u]=d[u]);if(l&&l.defaultProps)for(u in d=l.defaultProps,d)p[u]===void 0&&(p[u]=d[u]);return{$$typeof:t,type:l,key:m,ref:x,props:p,_owner:i.current}}return Re.Fragment=n,Re.jsx=s,Re.jsxs=s,Re}var Ae={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,17 +15,17 @@
|
|
|
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
|
|
19
|
-
`+
|
|
20
|
-
`),ee
|
|
18
|
+
*/var cn;function gr(){return cn||(cn=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),b=Symbol.iterator,h="@@iterator";function g(c){if(c===null||typeof c!="object")return null;var v=b&&c[b]||c[h];return typeof v=="function"?v:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(c){{for(var v=arguments.length,k=new Array(v>1?v-1:0),L=1;L<v;L++)k[L-1]=arguments[L];M("error",c,k)}}function M(c,v,k){{var L=y.ReactDebugCurrentFrame,G=L.getStackAddendum();G!==""&&(v+="%s",k=k.concat([G]));var Z=k.map(function(A){return String(A)});Z.unshift("Warning: "+v),Function.prototype.apply.call(console[c],console,Z)}}var B=!1,j=!1,S=!1,D=!1,w=!1,O;O=Symbol.for("react.module.reference");function $(c){return!!(typeof c=="string"||typeof c=="function"||c===r||c===o||w||c===i||c===_||c===u||D||c===x||B||j||S||typeof c=="object"&&c!==null&&(c.$$typeof===m||c.$$typeof===p||c.$$typeof===s||c.$$typeof===l||c.$$typeof===d||c.$$typeof===O||c.getModuleId!==void 0))}function W(c,v,k){var L=c.displayName;if(L)return L;var G=v.displayName||v.name||"";return G!==""?k+"("+G+")":k}function z(c){return c.displayName||"Context"}function N(c){if(c==null)return null;if(typeof c.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case _:return"Suspense";case u:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case l:var v=c;return z(v)+".Consumer";case s:var k=c;return z(k._context)+".Provider";case d:return W(c,c.render,"ForwardRef");case p:var L=c.displayName||null;return L!==null?L:N(c.type)||"Memo";case m:{var G=c,Z=G._payload,A=G._init;try{return N(A(Z))}catch{return null}}}return null}var F=Object.assign,Y=0,ae,se,ve,Me,Ye,it,Vn;function Jn(){}Jn.__reactDisabledLog=!0;function Rs(){{if(Y===0){ae=console.log,se=console.info,ve=console.warn,Me=console.error,Ye=console.group,it=console.groupCollapsed,Vn=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Jn,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}Y++}}function As(){{if(Y--,Y===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},c,{value:ae}),info:F({},c,{value:se}),warn:F({},c,{value:ve}),error:F({},c,{value:Me}),group:F({},c,{value:Ye}),groupCollapsed:F({},c,{value:it}),groupEnd:F({},c,{value:Vn})})}Y<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Pt=y.ReactCurrentDispatcher,Rt;function ot(c,v,k){{if(Rt===void 0)try{throw Error()}catch(G){var L=G.stack.trim().match(/\n( *(at )?)/);Rt=L&&L[1]||""}return`
|
|
19
|
+
`+Rt+c}}var At=!1,st;{var Os=typeof WeakMap=="function"?WeakMap:Map;st=new Os}function Xn(c,v){if(!c||At)return"";{var k=st.get(c);if(k!==void 0)return k}var L;At=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=Pt.current,Pt.current=null,Rs();try{if(v){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(re){L=re}Reflect.construct(c,[],A)}else{try{A.call()}catch(re){L=re}c.call(A.prototype)}}else{try{throw Error()}catch(re){L=re}c()}}catch(re){if(re&&L&&typeof re.stack=="string"){for(var P=re.stack.split(`
|
|
20
|
+
`),ee=L.stack.split(`
|
|
21
21
|
`),V=P.length-1,J=ee.length-1;V>=1&&J>=0&&P[V]!==ee[J];)J--;for(;V>=1&&J>=0;V--,J--)if(P[V]!==ee[J]){if(V!==1||J!==1)do if(V--,J--,J<0||P[V]!==ee[J]){var ce=`
|
|
22
|
-
`+P[V].replace(" at new "," at ");return c.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",c.displayName)),typeof c=="function"&&st.set(c,ce),ce}while(V>=1&&J>=0);break}}}finally{
|
|
22
|
+
`+P[V].replace(" at new "," at ");return c.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",c.displayName)),typeof c=="function"&&st.set(c,ce),ce}while(V>=1&&J>=0);break}}}finally{At=!1,Pt.current=Z,As(),Error.prepareStackTrace=G}var Le=c?c.displayName||c.name:"",De=Le?ot(Le):"";return typeof c=="function"&&st.set(c,De),De}function zs(c,v,k){return Xn(c,!1)}function Gs(c){var v=c.prototype;return!!(v&&v.isReactComponent)}function lt(c,v,k){if(c==null)return"";if(typeof c=="function")return Xn(c,Gs(c));if(typeof c=="string")return ot(c);switch(c){case _:return ot("Suspense");case u:return ot("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case d:return zs(c.render);case p:return lt(c.type,v,k);case m:{var L=c,G=L._payload,Z=L._init;try{return lt(Z(G),v,k)}catch{}}}return""}var He=Object.prototype.hasOwnProperty,Qn={},ea=y.ReactDebugCurrentFrame;function dt(c){if(c){var v=c._owner,k=lt(c.type,c._source,v?v.type:null);ea.setExtraStackFrame(k)}else ea.setExtraStackFrame(null)}function Zs(c,v,k,L,G){{var Z=Function.call.bind(He);for(var A in c)if(Z(c,A)){var P=void 0;try{if(typeof c[A]!="function"){var ee=Error((L||"React class")+": "+k+" type `"+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[A]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}P=c[A](v,A,L,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){P=V}P&&!(P instanceof Error)&&(dt(G),C("%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).",L||"React class",k,A,typeof P),dt(null)),P instanceof Error&&!(P.message in Qn)&&(Qn[P.message]=!0,dt(G),C("Failed %s type: %s",k,P.message),dt(null))}}}var Us=Array.isArray;function Ot(c){return Us(c)}function Ws(c){{var v=typeof Symbol=="function"&&Symbol.toStringTag,k=v&&c[Symbol.toStringTag]||c.constructor.name||"Object";return k}}function Ks(c){try{return ta(c),!1}catch{return!0}}function ta(c){return""+c}function na(c){if(Ks(c))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ws(c)),ta(c)}var qe=y.ReactCurrentOwner,Ys={key:!0,ref:!0,__self:!0,__source:!0},aa,ra,zt;zt={};function Hs(c){if(He.call(c,"ref")){var v=Object.getOwnPropertyDescriptor(c,"ref").get;if(v&&v.isReactWarning)return!1}return c.ref!==void 0}function qs(c){if(He.call(c,"key")){var v=Object.getOwnPropertyDescriptor(c,"key").get;if(v&&v.isReactWarning)return!1}return c.key!==void 0}function Vs(c,v){if(typeof c.ref=="string"&&qe.current&&v&&qe.current.stateNode!==v){var k=N(qe.current.type);zt[k]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(qe.current.type),c.ref),zt[k]=!0)}}function Js(c,v){{var k=function(){aa||(aa=!0,C("%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)",v))};k.isReactWarning=!0,Object.defineProperty(c,"key",{get:k,configurable:!0})}}function Xs(c,v){{var k=function(){ra||(ra=!0,C("%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)",v))};k.isReactWarning=!0,Object.defineProperty(c,"ref",{get:k,configurable:!0})}}var Qs=function(c,v,k,L,G,Z,A){var P={$$typeof:t,type:c,key:v,ref:k,props:A,_owner:Z};return P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(P,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(P,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P};function el(c,v,k,L,G){{var Z,A={},P=null,ee=null;k!==void 0&&(na(k),P=""+k),qs(v)&&(na(v.key),P=""+v.key),Hs(v)&&(ee=v.ref,Vs(v,G));for(Z in v)He.call(v,Z)&&!Ys.hasOwnProperty(Z)&&(A[Z]=v[Z]);if(c&&c.defaultProps){var V=c.defaultProps;for(Z in V)A[Z]===void 0&&(A[Z]=V[Z])}if(P||ee){var J=typeof c=="function"?c.displayName||c.name||"Unknown":c;P&&Js(A,J),ee&&Xs(A,J)}return Qs(c,P,ee,G,L,qe.current,A)}}var Gt=y.ReactCurrentOwner,ia=y.ReactDebugCurrentFrame;function $e(c){if(c){var v=c._owner,k=lt(c.type,c._source,v?v.type:null);ia.setExtraStackFrame(k)}else ia.setExtraStackFrame(null)}var Zt;Zt=!1;function Ut(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function oa(){{if(Gt.current){var c=N(Gt.current.type);if(c)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+c+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+c+"`."}return""}}function tl(c){return""}var sa={};function nl(c){{var v=oa();if(!v){var k=typeof c=="string"?c:c.displayName||c.name;k&&(v=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+k+">.")}return v}}function
|
|
26
|
+
Check the top-level render call using <`+k+">.")}return v}}function la(c,v){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var k=nl(v);if(sa[k])return;sa[k]=!0;var L="";c&&c._owner&&c._owner!==Gt.current&&(L=" It was passed a child from "+N(c._owner.type)+"."),$e(c),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,L),$e(null)}}function da(c,v){{if(typeof c!="object")return;if(Ot(c))for(var k=0;k<c.length;k++){var L=c[k];Ut(L)&&la(L,v)}else if(Ut(c))c._store&&(c._store.validated=!0);else if(c){var G=g(c);if(typeof G=="function"&&G!==c.entries)for(var Z=G.call(c),A;!(A=Z.next()).done;)Ut(A.value)&&la(A.value,v)}}}function al(c){{var v=c.type;if(v==null||typeof v=="string")return;var k;if(typeof v=="function")k=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===d||v.$$typeof===p))k=v.propTypes;else return;if(k){var L=N(v);Zs(k,c.props,"prop",L,c)}else if(v.PropTypes!==void 0&&!Zt){Zt=!0;var G=N(v);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rl(c){{for(var v=Object.keys(c.props),k=0;k<v.length;k++){var L=v[k];if(L!=="children"&&L!=="key"){$e(c),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),$e(null);break}}c.ref!==null&&($e(c),C("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}var ca={};function _a(c,v,k,L,G,Z){{var A=$(c);if(!A){var P="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(P+=" 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 ee=tl();ee?P+=ee:P+=oa();var V;c===null?V="null":Ot(c)?V="array":c!==void 0&&c.$$typeof===t?(V="<"+(N(c.type)||"Unknown")+" />",P=" Did you accidentally export a JSX literal instead of a component?"):V=typeof c,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",V,P)}var J=el(c,v,k,G,Z);if(J==null)return J;if(A){var ce=v.children;if(ce!==void 0)if(L)if(Ot(ce)){for(var Le=0;Le<ce.length;Le++)da(ce[Le],c);Object.freeze&&Object.freeze(ce)}else C("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 da(ce,c)}if(He.call(v,"key")){var De=N(c),re=Object.keys(v).filter(function(cl){return cl!=="key"}),Wt=re.length>0?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}";if(!ca[De+Wt]){var dl=re.length>0?"{"+re.join(": ..., ")+": ...}":"{}";C(`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} />`,Ut,De,ll,De),da[De+Ut]=!0}}return c===r?al(J):nl(J),J}}function rl(c,v,k){return ca(c,v,k,!0)}function il(c,v,k){return ca(c,v,k,!1)}var ol=il,sl=rl;Ae.Fragment=r,Ae.jsx=ol,Ae.jsxs=sl}()),Ae}process.env.NODE_ENV==="production"?ht.exports=hr():ht.exports=xr();var a=ht.exports;function gr(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let n={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const r in n)t=t.replace(r,n[r]);return t}function vr(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],n=new Date(e);return{day:(""+n.getFullYear()).slice(-2)+""+("0"+(n.getMonth()+1)).slice(-2)+("0"+n.getDate()).slice(-2),name:n.getDate()+" "+t[n.getMonth()]}}const br=e=>{function t(M,B){var j,D,S;M=M??"",B=B??1;for(var j=[],S=0,D=M.length;S<D;)j.push(M.slice(S,S+=B));return j}function n(M,B){var j=[2,0,1,1,1,2];return B[M>4&&M<20?2:j[Math.min(M,5)]]}var r={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},i,o,s,l,g,d,_,h,u,p,m,x;u=parseFloat(e).toFixed(2).split("."),d=u[0],l=u[1];var b=12-d.length;if(b<0)return!1;for(var h=[];b--;)h.push("0");d=h.join("")+d;var g=[];if(d>0){p=t(d,3);for(var y=-1;y<p.length;y++)if(_=p[y],_>0&&(m=t(_,1),i=parseInt(m[0]),o=parseInt(m[1]),s=parseInt(m[2]),g.push(r.a100[i-1]),x=y+1==3?"a2":"a1",o>1?g.push(r.a20[o-2]+(s>0?" "+r[x][s-1]:"")):g.push(o>0?r.a10[s]:r[x][s-1]),p.length>y+1)){var C=r["u"+(y+1)];g.push(n(_,C))}}else g.push(r.null);return g.push(n(d,r.ur)),g.push(l+" "+n(l,r.uc)),g.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function yr(e){let t=-1,n=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+n[t]}function wr(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function kr(e,t,n,r){let i={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var s in this.rules)for(var l in this.rules[s])for(var d=0,_=this.rules[s][l].length;d<_;d++)this.rules[s][l][d]=this.rule(this.rules[s][l][d])},rule:function(s){var l=s.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return l?{sex:l[1],test:l[2].split(","),mods:[l[3],l[4],l[5],l[6],l[7]]}:!1},word:function(s,l,d,_){if(_===this.gcaseNom)return s;if(s.match(/[-]/)){for(var u=s.split("-"),p=0,m=u.length;p<m;p++)u[p]=this.word(u[p],l,d,_);return u.join("-")}if(s.match(/^[А-ЯЁ]\.?$/i))return s;this.init();var x=this.rules[d];let b;return x.exceptions&&(b=this.pick(s,l,_,x.exceptions,!0),b)?b:(b=this.pick(s,l,_,x.suffixes,!1),b||s)},pick:function(s,l,d,_,u){let p=s.toLowerCase();for(var m=0,x=_.length;m<x;m++)if(this.ruleMatch(p,l,_[m],u))return this.applyMod(s,d,_[m]);return!1},ruleMatch:function(s,l,d,_){if(d.sex===this.sexM&&l===this.sexF||d.sex===this.sexF&&l!==this.sexF)return!1;for(var u=0,p=d.test.length;u<p;u++){var m=_?s:s.substr(Math.max(s.length-d.test[u].length,0));if(m===d.test[u])return!0}return!1},applyMod:function(s,l,d){let _;switch(l){case this.gcaseNom:_=".";break;case this.gcaseGen:_=d.mods[0];break;case this.gcaseDat:_=d.mods[1];break;case this.gcaseAcc:_=d.mods[2];break;case this.gcaseIns:_=d.mods[3];break;case this.gcasePos:_=d.mods[4];break}for(var u=0,p=_.length;u<p;u++){var m=_.substr(u,1);switch(m){case".":break;case"-":s=s.substr(0,s.length-1);break;default:s+=m}}return s},getSex:()=>{if(i.mn.length>2)switch(i.mn.substr(i.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:s=>((i.fullNameSurnameLast?"":i.lastName(s)+" ")+i.firstName(s)+" "+i.middleName(s)+(i.fullNameSurnameLast?" "+i.lastName(s):"")).replace(/^ +| +$/g,""),lastName:s=>i.word(i.ln,i.sex,"lastName",s),firstName:s=>i.word(i.fn,i.sex,"firstName",s),middleName:s=>i.word(i.mn,i.sex,"middleName",s)};if(typeof t>"u"){var o=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!o)return"Cannot parse supplied name";o[5]&&o[3].match(/(ич|на)$/)&&!o[5].match(/(ич|на)$/)?(e=o[5],t=o[1],n=o[3],i.fullNameSurnameLast=!0):(e=o[1],t=o[3],n=o[5])}return i.ln=e,i.fn=t||"",i.mn=n||"",i.sex=r||i.getSex(),i}function Cr(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function jr(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Sr(e,t){return t&&(e=Number(e)/t),parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Er(e,t){let n=t+"";for(;n.length<e;)n="0"+n;return n}function Dr(e,t,n){let r=t/e*n;return(typeof r!="number"||r===1/0)&&(r=0),parseFloat(r).toFixed(1)}function Ir(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Nr(e,t){e=Math.abs(e)%100;let n=e%10;return e>10&&e<20?t[2]:n>1&&n<5?t[1]:n===1?t[0]:t[2]}function Tr(e,t,n){return xe(e,t)?xe(e,t).n:n||""}function Mr(e,t,n,r){return xe(e,t)?xe(e,t)[n]:r||""}function Lr(e,t){return t&&(e=e===0?7:e),{1:{name:"Понедельник",names:"Понедельника",abc:"пн"},2:{name:"Вторник",names:"Вторника",abc:"вт"},3:{name:"Среда",names:"Среды",abc:"ср"},4:{name:"Четверг",names:"Четверга",abc:"чт"},5:{name:"Пятница",names:"Пятницы",abc:"пт"},6:{name:"Суббота",names:"Субботы",abc:"сб"},7:{name:"Воскресенье",names:"Воскресенья",abc:"вс"}}[e]}function $r(e,t){return e.reduce(function(n,r){let i=t instanceof Function?t(r):r[t];return n[i]!==void 0||(n[i]={}),n[i][r.id]=r,n},{})}function Br(e){return parseInt((Date.now()-new Date(e).getTime())/31536e6+"")+""}function Fr(e){return typeof e!="string"?!1:!isNaN(Number(e))&&!isNaN(parseFloat(e))}function Pr(e){var t="",n={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ь:"",ы:"y",ъ:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"E",Ж:"Zh",З:"Z",И:"I",Й:"Y",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sch",Ь:"",Ы:"Y",Ъ:"",Э:"E",Ю:"Yu",Я:"Ya"};for(let r=0;r<e.length;++r)n[e[r]]==null?t+=e[r]:t+=n[e[r]];return t}function Rr(e,t,n=!1){return n?e.sort((r,i)=>i[t]-r[t]):e.sort((r,i)=>r[t]-i[t])}function Ar(e,t){return e.reduce(function(n,r){let i=t instanceof Function?t(r):r[t];return n[i]!==void 0||(n[i]={}),n[i][r.id]=r,n},{})}function Or(e,t,n=!1){return n?e.sort((r,i)=>new Date(i[t]).getTime()-new Date(r[t]).getTime()):e.sort((r,i)=>new Date(r[t]).getTime()-new Date(i[t]).getTime())}function zr(e,t){return e.reduce((n,r)=>n+(r[t]||0),0)}function Gr(e,t,n,r=!1){return r?e.sort((i,o)=>n(o[t])-n(i[t])):e.sort((i,o)=>n(i[t])-n(o[t]))}const K={Age:Br,ArraySort:Rr,ArrayGroup:Ar,ArraySortDate:Or,ArraySortFunction:Gr,ArraySumma:zr,Translit:Pr,Date:gr,MoneyString:br,DateSort:vr,Size:yr,TypeFiles:wr,Cases:kr,Initials:Cr,Month:jr,Money:Sr,Number:Er,Percent:Dr,CapitalizeFirstLetter:Ir,DeclensionWord:Nr,Select:Tr,SelectParams:Mr,ObjectByArray:$r,isNumeric:Fr,Week:Lr},Zr={Counter:({before:e,from:t=0,to:n})=>{const r=f.useRef();return f.useEffect(()=>{r.n=0;let s=Math.round(1e3/(n/10)),l=setInterval(()=>{r.n=r.n+10,r.n>=n&&clearInterval(l);let d=e?e+" ":"";r.current.textContent=`${d}`+K.Money(r.n)},s)},[t,n]),a.jsx("span",{ref:r})}},Ur={notice:"_notice_9i5tr_2",error:"_error_9i5tr_9",success:"_success_9i5tr_12",remark:"_remark_9i5tr_15",copy:"_copy_9i5tr_18","show-notice":"_show-notice_9i5tr_1","hide-notice":"_hide-notice_9i5tr_1"};let be={};function Wr(){let[e,t]=f.useState([]);return be.set=n=>{t([...e,n])},be.del=n=>{t(e.filter(r=>r.key!==n))},e.length===0?"":a.jsx("ul",{className:Ur.notice,children:e.map(n=>n.item)})}function Oe({data:e}){let[t,n]=f.useState("show");f.useEffect(()=>{setTimeout(function(){n("hide")},1800),setTimeout(function(){be.del(e.key)},2500)},[e.key]);let r,i;switch(e.type){case"error":r=a.jsx(je.error,{}),i="Ошибка:";break;case"success":r=a.jsx(je.success,{}),i="Информация:";break;case"copy":r=a.jsx(je.success,{}),i="Копирование:";break;case"remark":r=a.jsx(je.success,{}),i="Подсказка:";break;default:r=a.jsx(je.success,{}),i="Предупреждение:";break}return a.jsxs("li",{className:"item "+e.type,"data-status":t,children:[r,a.jsx("b",{children:i}),a.jsx("p",{children:e.text})]})}function Kr(e){let t=Date.now(),n={key:t,...e};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function Yr(e){let t=Date.now(),n={key:t,text:e,type:"error"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function Hr(e){let t=Date.now(),n={key:t,text:e,type:"success"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function qr(e){let t=Date.now(),n={key:t,text:e,type:"remark"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function Vr(e){let t=Date.now(),n={key:t,text:e,type:"copy"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}const je={};je.error=()=>a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),a.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),je.success=()=>a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),a.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const xt={alerts:"_alerts_1pds5_1",menuAnimation:"_menuAnimation_1pds5_1",menuItemAnimation:"_menuItemAnimation_1pds5_1","--body":"_--body_1pds5_103",allert:"_allert_1pds5_111","--form":"_--form_1pds5_111",al:"_al_1pds5_1"};let ze={};function Jr(){let[e,t]=f.useState("");return ze.set=n=>t(n),ze.del=()=>t(""),a.jsx(a.Fragment,{children:e})}const Xr=({data:e,callback:t,cancel:n})=>(e.button=e.button===void 0?"Подтвердить":e.button,a.jsxs("div",{className:xt.alerts,children:[a.jsxs("dl",{children:[a.jsx("dt",{children:e.title}),a.jsx("dd",{children:e.text}),a.jsx("ul",{children:a.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),ze.del()},children:e.button})})]}),a.jsx("div",{className:xt["--body"],onClick:()=>{n==null||n(),ze.del()}})]}));function Qr(e,t,n){ze.set(a.jsx(Xr,{data:e,callback:t,cancel:n}))}const Se={Send:Kr,Error:Yr,Remark:qr,Success:Hr,Copy:Vr},Ne={Path:La,setPage:ya,getPage:Ht,usePage:ba,isPage:wa,setModule:Ca,getModule:qt,useModule:ka,isModule:ja,setTabs:Ea,getTabs:Je,useTabs:Sa,isTabs:Da,useId:Ia,setId:Ta,subId:Na,getId:Vt,isId:Ma};function ei(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M5.15837 11.491C5.08489 12.887 5.16936 14.373 3.92213 15.3084C3.34164 15.7438 3 16.427 3 17.1527C3 18.1508 3.7818 19 4.8 19H19.2C20.2182 19 21 18.1508 21 17.1527C21 16.427 20.6584 15.7438 20.0779 15.3084C18.8306 14.373 18.9151 12.887 18.8416 11.491C18.6501 7.85223 15.6438 5 12 5C8.35617 5 5.34988 7.85222 5.15837 11.491Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),a.jsx("path",{d:"M10.5 3.125C10.5 3.95343 11.1716 5 12 5C12.8284 5 13.5 3.95343 13.5 3.125C13.5 2.29657 12.8284 2 12 2C11.1716 2 10.5 2.29657 10.5 3.125Z",stroke:"currentColor",strokeWidth:"1",fill:"none"}),a.jsx("path",{d:"M15 19C15 20.6569 13.6569 22 12 22C10.3431 22 9 20.6569 9 19",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function ti(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M4.4094 11.4516C4.62188 7.41446 7.95728 4.25 12 4.25C16.0427 4.25 19.3781 7.41446 19.5906 11.4516C19.5997 11.6241 19.6064 11.7893 19.6129 11.9485C19.6351 12.49 19.6544 12.9615 19.7525 13.4133C19.8698 13.9531 20.0867 14.3775 20.5279 14.7084C21.2972 15.2854 21.75 16.191 21.75 17.1527C21.75 18.534 20.6628 19.75 19.2 19.75H4.8C3.33719 19.75 2.25 18.534 2.25 17.1527C2.25 16.191 2.70278 15.2854 3.47213 14.7084C3.91329 14.3775 4.13025 13.9531 4.24749 13.4133C4.34561 12.9615 4.3649 12.49 4.38705 11.9485V11.9485L4.38705 11.9485C4.39356 11.7893 4.40032 11.6241 4.4094 11.4516Z",fill:"#141B34"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5286 1.37434C10.9737 1.08296 11.517 1 12 1C12.483 1 13.0263 1.08296 13.4714 1.37434C13.9652 1.69759 14.25 2.22083 14.25 2.875C14.25 3.47116 14.017 4.09375 13.6626 4.57057C13.3138 5.03989 12.7415 5.5 12 5.5C11.2585 5.5 10.6862 5.03989 10.3374 4.57057C9.98299 4.09375 9.75 3.47116 9.75 2.875C9.75 2.22083 10.0348 1.69759 10.5286 1.37434Z",fill:"#141B34"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9.55228 18 10 18.4477 10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 18.4477 14.4477 18 15 18C15.5523 18 16 18.4477 16 19C16 21.2091 14.2091 23 12 23C9.79086 23 8 21.2091 8 19C8 18.4477 8.44772 18 9 18Z",fill:"#141B34"})]})}function ni(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M8.85746 12.5061C6.36901 10.6456 4.59564 8.59915 3.62734 7.44867C3.3276 7.09253 3.22938 6.8319 3.17033 6.3728C2.96811 4.8008 2.86701 4.0148 3.32795 3.5074C3.7889 3 4.60404 3 6.23433 3H17.7657C19.396 3 20.2111 3 20.672 3.5074C21.133 4.0148 21.0319 4.8008 20.8297 6.37281C20.7706 6.83191 20.6724 7.09254 20.3726 7.44867C19.403 8.60062 17.6261 10.6507 15.1326 12.5135C14.907 12.6821 14.7583 12.9567 14.7307 13.2614C14.4837 15.992 14.2559 17.4876 14.1141 18.2442C13.8853 19.4657 12.1532 20.2006 11.226 20.8563C10.6741 21.2466 10.0043 20.782 9.93278 20.1778C9.79643 19.0261 9.53961 16.6864 9.25927 13.2614C9.23409 12.9539 9.08486 12.6761 8.85746 12.5061Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}const ai={n:"_n_euuvm_1"};let Ge={},Ze=[];const ri=(e,t)=>{switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"add":return{...e,news:[...e.news,t.data],active:!0};case"news":return{...e,news:t.data,active:t.data.length!==0};case"hide":let n=e.news.filter(i=>i.id!==t.id);return{...e,news:n,active:n.length!==0};case"size":return{...e,size:t.size};case"take":let r={[t.list]:t.take};r={...e.take,...r},e.active=!1;for(let i in r)r[i]!=="999"&&(e.active=!0);return Ge.get(r,e.active),{...e,take:r,active:e.active};case"exit":return e;default:throw new Error}};function ii(e){Ge.fn({action:"add",data:e})}function oi(e){Ge.fn({action:"add",data:e})}function si(e){Ge.fn({action:"new",data:e})}function li(e){Ge.fn=e}function di(){const[e,t]=f.useReducer(ri,{open:!1,active:!1,news:[],take:{}});me.useListener("bell",async r=>{console.log(r)}),li(async r=>{switch(console.log(r),r.action){case"add":Ze.push(r.data);break}}),f.useEffect(()=>{(async()=>{let r=await me.Send({type:"module",module:"M00",query:"x0054",array:["M01","M02"]});console.log(r);for(let i in r)switch(i){case"news":t({type:"news",data:r.news});break;case"M01":r[i].forEach(o=>{Ze.push({module:"M01",type:1,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break;case"M02":r[i].forEach(o=>{Ze.push({module:"M02",type:117,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break}})(),setInterval(()=>{Ze.forEach((r,i)=>{t({type:"add",data:{module:r.module,type:r.type,id:r.id,datetime:r.datetime,txt:r.title}}),r.datetime<new Date().getTime()&&Ze.splice(i,1)})},6e4)},[]);let n=async r=>{t({type:"hide",id:r.id})};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:ai.n,onClick:()=>{t({type:"open",open:!0})},children:e.active?a.jsx(ti,{}):a.jsx(ei,{})}),e.open?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"notify-o",onClick:()=>{t({type:"open",open:!1})}}),a.jsxs("div",{className:"notify-m",children:[a.jsx("div",{className:"notify-l",children:e.news.map((r,i)=>a.jsx(ci,{data:r,dispatch:t},i))}),a.jsx("div",{className:"notify-b",onClick:n,children:"История"})]})]}):""]})}const ci=({data:e,dispatch:t})=>{let n=async r=>{console.log(r),t({type:"hide",id:r.id});let i=await me.Send({type:"module",module:"M00",query:"x0055",data:{id:r.id,type:r.type,db:r.db}});console.log(i)};return a.jsxs("div",{className:"notify-i",children:[a.jsx("div",{className:"--icon","data-icon":e.type}),a.jsxs("div",{className:"--body",children:[a.jsx("div",{className:"--name",children:e.type}),a.jsx("div",{className:"--text",children:e.txt})]}),a.jsx("div",{className:"--hide","data-icon":"F038",onClick:()=>n(e),children:" "})]})},_i="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function ui(e){return new SharedWorker("data:text/javascript;base64,"+_i,{name:e==null?void 0:e.name})}function fi(e){let t={},n={};e.data.forEach(i=>{t[i.id]={s:i.v,n:i.a},n[i.id]=i});let r={...xe(),901:t};Qt(n),Be(r)}function mi(){let e=en(),t={};return Object.keys(e).forEach(n=>{t[e[n].id]={},t[e[n].id].name=e[n].a}),t}let ue={},Q={},Xe=["filter","online","users","company","select","setting","info","job"];function pi(){const[e,t]=f.useState(!1),[n,r]=f.useState(!1);function i(o){const s=new ui;ue.laodData=l=>{let d=Xe.indexOf(l);d>=0&&Xe.splice(d,1),Xe.length===0&&t(!0)},ue.send=l=>{s.port.postMessage({type:"send",json:l})},s.port.onmessage=l=>{let d=l.data;d.type==="error"&&r(!0),d.type==="true"&&t(!0),d.type==="closed"&&s.port.postMessage({type:"connect",ukey:o,lk:_t()}),Xe.length!==0&&ue.laodData(d.type),Q[d.type]&&Q[d.type](d)},s.port.postMessage({type:"connect",ukey:o,lk:_t()})}return[i,e,n]}Q.module=e=>{ue[e.listen]!==void 0&&(ue[e.listen](e),delete ue[e.listen])},Q.bell=si,Q.company=fi,Q.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),tn(t),Jt(e.data.menu)},Q.version=async e=>{Fe.version.Server(e.data)},Q.online=async e=>{},Q.offline=async e=>{},Q.chat=e=>{switch(console.log(e.data.action),e.data.action){case"new_message":Ne.getModule();break;case"view_message":Ne.getModule();break;case"write_message":Ne.getModule();break}console.log(e)},Q.users=e=>{console.log("users",e);let t={};e.data.forEach(r=>{let i=r.p01+" "+r.p02+" "+r.p03,o=r.p01+" "+r.p02.substring(0,1)+"."+r.p03.substring(0,1)+".",s=r.p01.substring(0,1)+""+r.p02.substring(0,1)+r.p03.substring(0,1);t[r.id]={id:r.id,admin:r.m.includes("99"),ava:JSON.parse(r.a),job:r.j,login:"",online:{time:r.o,status:0},sts:r.s,nameFull:i,name:o,number:s}});let n={...xe(),user:t};Be(n)},Q.api=e=>{let t={};e.data.forEach(n=>{t[n.api]={key:n.key,p01:n.p01,p02:n.p02}})},Q.delete=()=>{ie()},Q.select=e=>{let t={...xe()};e.data.forEach(n=>{t[n.n]=JSON.parse(n.s)}),Be(t)},Q.job=e=>{let t={...xe()},n={};Object.keys(e.data).forEach(r=>{n[r]={s:1,n:e.data[r]}}),t[1]=n,Be(t)},Q.setting=e=>{$a(e.data)},Q.app=()=>{};const hi=(e,t)=>{ue[e]=t},xi=(e,t)=>{ue[e](t)};function gi(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(n=>{ue[t]=r=>{r.error!==void 0?n({error:r.error}):n(r.data),delete ue[t]},e={...e,listen:t},e.type="modules",ue.send(e)})}const me={useConnect:pi,useListener:hi,setListener:xi,Send:gi};function vi({children:e}){return a.jsx("div",{className:"l",children:a.jsx("ul",{children:e})})}const oe={white:"_white_swayt_14",black:"_black_swayt_26",shake:"_shake_swayt_1",modal:"_modal_swayt_73",o:"_o_swayt_83",w:"_w_swayt_14",h:"_h_swayt_107",l:"_l_swayt_121",t:"_t_swayt_159",m:"_m_swayt_73",x:"_x_swayt_167",s:"_s_swayt_177",c:"_c_swayt_182",f:"_f_swayt_187",g:"_g_swayt_230","size-a":"_size-a_swayt_279","size-s":"_size-s_swayt_283","size-m":"_size-m_swayt_287","size-l":"_size-l_swayt_291","size-x":"_size-x_swayt_295","size-f":"_size-f_swayt_299",active:"_active_swayt_348",coincidence:"_coincidence_swayt_354",sa:"_sa_swayt_390",ss:"_ss_swayt_394",sm:"_sm_swayt_398",sl:"_sl_swayt_402",sx:"_sx_swayt_406",sf:"_sf_swayt_410",btn:"_btn_swayt_416"};function bi({children:e}){return a.jsx("div",{className:oe.s,children:e})}function yi({children:e,className:t}){let n={};return t&&(n.className=t),a.jsx("div",{"data-form":"outline",className:[oe.f,n.className].join(" "),children:a.jsx("ul",{children:e})})}function wi({children:e}){return a.jsx("div",{className:oe.c,children:e})}const Qe={btn:"_btn_1d6a6_6",confirm:"_confirm_1d6a6_20",cancel:"_cancel_1d6a6_25",disabled:"_disabled_1d6a6_30",await:"_await_1d6a6_37",m:"_m_1d6a6_44",l:"_l_1d6a6_48"};function cn({onClick:e,onSend:t,size:n="m",view:r="confirm",mode:i="primary",className:o,label:s,onRef:l}){let[d,_]=f.useState(!1);const u=p=>{if(e)return e();d||(t?(_(!0),t(_)):p.preventDefault())};return a.jsx("button",{ref:l,className:[Qe.btn,d?Qe.disabled:Qe[r],n&&Qe[n],o].join(" "),onClick:u,children:d?"Ожидайте":s})}let et={};function ki(){let[e,t]=f.useState([]);return et.x=n=>{n||t([])},et.add=n=>{t([...e,n])},a.jsx(a.Fragment,{children:e.map(n=>n)})}function Ci({title:e,children:t,button:n,tabs:r,size:i="m",menu:o}){const[s,l]=f.useState(!0),d=f.useRef(),_=p=>{if(n){if(n.onClick)return p(!1),n.onClick({setOpen:l});if(n.onSend)return n.onSend({setOpen:l,disabled:p})}},u=()=>{d.current.setAttribute("shake",!0),setTimeout(()=>{d.current.setAttribute("shake",!1)},1e3)};return a.jsx(a.Fragment,{children:s?a.jsxs("div",{className:`${oe.modal} ${oe.white}`,children:[a.jsx("div",{className:oe.o,onClick:u}),a.jsxs("div",{className:[oe.w,oe[`s${i}`]].join(" "),ref:d,children:[a.jsxs("div",{className:oe.h,children:[a.jsx("div",{className:oe.t,children:e}),a.jsxs("div",{className:oe.m,children:[r&&a.jsx("nav",{children:r.map((p,m)=>a.jsx("span",{onClick:p.onClick,className:p.active?"active":"",children:p.name},m))}),o]}),a.jsx("div",{className:oe.x,onClick:()=>{l(!1)},children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t,n!==void 0?a.jsx(cn,{label:n.label,onSend:_,className:oe.btn}):""]})]}):""})}function ji(e){et.add(a.jsx(Si,{children:e},String(Date.now())))}function Si({children:e}){return a.jsx(a.Fragment,{children:e})}function Ei(e){if(e.target.classList[0]!=="modal")return;let t=e.target.children[0];t.setAttribute("shake",!0),setTimeout(()=>{t.setAttribute("shake",!1)},1e3)}function Di({type:e,name:t,params:n}){let[r,i]=f.useState(null);return f.useEffect(()=>{ft(`${e}/modal/${t}.tsx`).then(o=>{i(o.default.Icon(n))})},[n.id]),a.jsx(a.Fragment,{children:r})}function Ii(e,t,n){ft(`${e}/modal/${t}.tsx`).then(r=>{r.default.Open(n)})}function Ni(e){et.x(e)}const Ue={List:vi,Scroll:bi,Main:Ci,Add:ji,Icon:Di,Open:Ii,Shake:Ei,Form:yi,Center:wi,Close:Ni};function _n({text:e,type:t,button:n}){let[r,i]=f.useState(!1),o={active:t};const s=()=>{if(n){if(n.onClick)return n.onClick({});if(n.onSend)return r?void 0:(i(!0),n.onSend(i))}};return a.jsxs("div",{className:xt.al,...o,children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",clipRule:"evenodd",children:a.jsx("path",{fill:"#fff",d:"M10.362 2.015C11.4264 1.66167 12.5736 1.66167 13.638 2.015C14.6981 2.36687 15.5304 3.20141 16.3665 4.37395C17.1999 5.5426 18.1208 7.17206 19.3078 9.2725L19.3544 9.35496C20.5417 11.4557 21.4625 13.0851 22.0364 14.4065C22.613 15.7343 22.9002 16.8807 22.6711 17.9821C22.4403 19.0911 21.8714 20.0995 21.0428 20.8617C20.2162 21.622 19.0907 21.9428 17.6736 22.0968C16.2645 22.25 14.4212 22.25 12.0488 22.25H11.9513C9.57882 22.25 7.73554 22.25 6.32642 22.0968C4.90927 21.9428 3.78379 21.622 2.95722 20.8617C2.12862 20.0995 1.55968 19.0911 1.32895 17.9821C1.0998 16.8807 1.387 15.7343 1.96365 14.4065C2.53752 13.0851 3.45835 11.4557 4.64558 9.35495L4.69218 9.2725L4.69218 9.27249C5.87921 7.17206 6.80008 5.5426 7.63347 4.37395C8.46963 3.20141 9.30194 2.36687 10.362 2.015ZM11 17C11 16.4477 11.4457 16 11.9955 16H12.0045C12.5543 16 13 16.4477 13 17C13 17.5523 12.5543 18 12.0045 18H11.9955C11.4457 18 11 17.5523 11 17ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V9C13 8.44772 12.5523 8 12 8C11.4477 8 11 8.44772 11 9V13Z"})}),a.jsx("span",{children:e}),n&&a.jsx("button",{onClick:s,children:n.label})]})}const ne={h:"_h_1usnu_1",g:"_g_1usnu_11",hr:"_hr_1usnu_16",hl:"_hl_1usnu_28",t:"_t_1usnu_40",s:"_s_1usnu_60",u:"_u_1usnu_69",o:"_o_1usnu_76",l:"_l_1usnu_105",hh:"_hh_1usnu_115",c:"_c_1usnu_128",loadingB:"_loadingB_1usnu_1",m:"_m_1usnu_180",ul:"_ul_1usnu_196",f:"_f_1usnu_226"},un=({title:e,left:t,right:n,children:r})=>a.jsxs("div",{className:ne.h,children:[a.jsx("div",{className:ne.t,children:e}),t&&a.jsx("div",{className:ne.hl,children:t}),n&&a.jsx("div",{className:ne.hr,children:n}),r]}),fn=({children:e,...t})=>a.jsx("div",{className:ne.l,children:e}),mn=({children:e})=>a.jsx("div",{className:ne.s,children:e}),pn=({children:e,edit:t})=>{const n={};return t&&(n.edit=""),console.log(n),a.jsx("div",{...n,className:ne.f,children:e})};function hn({children:e}){return a.jsx("div",{className:ne.g,children:e})}const gt={Header:un,Section:mn,Group:hn,Form:pn,List:fn,A:_n,U:({children:e})=>a.jsx("div",{className:ne.u,children:e}),G:hn,C:({children:e})=>a.jsx("div",{className:ne.c,children:e}),L:fn,O:({children:e,className:t,title:n})=>a.jsxs("div",{className:[ne.o,t].join(" "),children:[n&&a.jsx("div",{className:ne.hh,children:n}),e]}),S:mn,H:un,M:({children:e})=>a.jsx("div",{className:ne.m,children:e}),F:pn},Ti=(e,t)=>{switch(t.type){case"load":return{...e,list:t.list.reverse(),load:!1};case"id":return{...e,id:t.id};case"add":return{...e,list:[t.data,...e.list]};case"update":return{...e,list:e.list.map(n=>n.id===t.data.id?Object.assign({},n,{[t.data.name]:t.data.value}):n),temp:e.temp.map(n=>n.id===t.data.id?Object.assign({},n,{[t.data.name]:t.data.value}):n)};case"view":return{...e,view:e.view==="card"?"item":"card"};case"revers":return{...e,list:[...e.list.reverse()],temp:[...e.temp.reverse()],revers:!e.revers};case"delete":return{...e,list:e.list.filter(n=>n.id!==t.id)};case"edit":return{...e,list:e.list.map(n=>n.id===t.j.item?Object.assign({},n,{[t.j.name]:t.j.value}):n)};default:return e}},Mi=()=>({load:!0,list:[],name:"Файлы",add:!1,search:!1,revers:!0}),Li=()=>{let[e,t]=f.useState([]);return a.jsx(a.Fragment,{children:e.length!==0?a.jsxs("div",{className:"upload view",children:[a.jsxs("div",{className:"--head",children:[a.jsx("b",{children:"Загрузки"}),a.jsx("i",{className:"x",onClick:()=>t([]),"data-icon":"F038"})]}),a.jsx("div",{className:"--list",children:e.map(n=>n)})]}):""})},$i=({id:e,name:t,listen:n,dir:r})=>{t=t||"Файлы";const[i,o]=f.useReducer(Ti,{},Mi);console.log(n);const s=()=>{Ue.Add(a.jsx(Bi,{dir:r,dispatch:o,id:e},new Date().getTime()))};return f.useEffect(()=>{(async()=>{let l=await me.Send({type:"module",module:"M09",query:"x0900",data:{dir:r,id:e}});o({type:"load",list:l})})()},[e,r]),a.jsxs(gt.O,{children:[" ",a.jsx(gt.H,{title:t,right:a.jsx("i",{className:"f025","data-icon":"C005 25 pointer","data-color":"_b5b9cc :506290",onClick:s}),left:a.jsx("i",{className:"f025","data-icon":"E009 25","data-color":"_2196f3"})}),a.jsx("ul",{"data-empty":"Файлов нет",className:"files_list",children:i.load?a.jsxs("div",{"type-load":"load",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]}):i.list.length===0?a.jsx(a.Fragment,{}):i.list.map((l,d)=>a.jsx(Fi,{dispatch:o,data:l},d))})]})},Bi=({id:e,dir:t,dispatch:n})=>{let[r,i]=f.useState(!0),o=f.useRef(null),s=_=>{_.preventDefault(),_.stopPropagation()},l=_=>{},d=_=>{};return f.useEffect(()=>{let _=o.current;["dragenter","dragover","dragleave","drop"].forEach(u=>{_.addEventListener(u,s,!1),document.body.addEventListener(u,s,!1)}),["dragenter","dragover"].forEach(u=>{_.addEventListener(u,l,!1)}),["dragleave","drop"].forEach(u=>{_.addEventListener(u,d,!1)})},[]),a.jsx(a.Fragment,{children:r?a.jsx(a.Fragment,{children:a.jsx("div",{className:"modal o ",onClick:Ue.Shake,children:a.jsxs("div",{className:"b",children:[a.jsx("div",{className:"h",children:"Загрузка файлов"}),a.jsx("div",{className:"x","data-icon":"F038",onClick:()=>{i(!1)}}),a.jsxs("div",{className:"upload",ref:o,children:[a.jsx("input",{type:"file",id:"fileElem",name:"files",multiple:!0}),a.jsx("dd",{}),a.jsx("i",{"data-icon":"F061"})]})]})},new Date().getTime())}):""})},Fi=({data:e,dispatch:t})=>{let n=async()=>{let o=await(await fetch(pt.url().files+"/yandex/data/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:te.getSSID()||""}})).blob();if(o.size!==2){let s=new Blob([o],{type:o.type});s=URL.createObjectURL(s);let l=document.createElement("a");l.setAttribute("href",s),l.setAttribute("download",e.name),l.click()}},r=async()=>{(await(await fetch(pt.url().files+"/yandex/delete/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:te.getSSID()||""}})).json()).status==="success"&&(t({type:"delete",id:e.id}),Se.Send({type:"success",text:"Файл успешно удалён"}))};return a.jsxs("li",{children:[a.jsx("div",{className:"f035",children:K.TypeFiles(e.type)}),a.jsx("div",{className:"f100",children:K.Date(e.uDate,"dd.mm.yy")}),a.jsx("div",{className:"f000",children:e.name}),a.jsxs("div",{className:"f050 flex button",children:[a.jsx("i",{className:"f025","data-icon":"F060 35 pointer","data-color":"_b5b9cc :4CAF50",onClick:n}),a.jsx("i",{className:"f025","data-icon":"F048 35 pointer","data-color":"_b5b9cc :FF9800",onClick:r})]}),a.jsx("div",{className:"f080",children:K.Size(e.size)})]})},tt={setSetting:Ba,getSetting:Fa};let H={};H.list=Wa(),H.active=null;const Pi=()=>{var i;let[e,t]=f.useState([]),[n,r]=f.useState(tt.getSetting("s03"));return f.useEffect(()=>{(async()=>{let o=Object.keys(H.list);if(o.length!==0){let s=[];o.forEach((l,d)=>{s.push({item:a.jsx(vt,{data:H.list[l]},H.list[l].id),link:H.list[l].link})}),t(s)}})()},[]),H.active=o=>{var s;r(o),(s=document.querySelector("app-body"))==null||s.setAttribute("bookmarks",o===1?"bottom":"")},H.set=o=>{t([...e,{item:a.jsx(vt,{data:o},o.id),link:o.link}])},H.del=o=>{e.forEach((s,l)=>{s.link===o&&e.splice(l,1)}),t([...e])},(i=document.querySelector("app-body"))==null||i.setAttribute("bookmarks",n===1&&e.length!==0?"bottom":""),n!==0?a.jsx(a.Fragment,{children:e.length!==0?a.jsx("div",{className:"bookmarks",children:e.map(o=>o.item)}):""}):""},Ri=({id:e,type:t,name:n})=>{let r=t+"-"+e,[i,o]=f.useState(H.list[r]!==void 0);f.useEffect(()=>{o(H.list[r]!==void 0)},[r]);let s=()=>{H.list[r]!==void 0?(H.del(r),delete H.list[r],nn(H.list),o(!1),Se.Send({type:"success",text:"Запись удален из закладок"})):(H.list[r]={id:e,name:n,type:t,link:r},H.set(H.list[r]),nn(H.list),o(!0),Se.Send({type:"success",text:"Запись добавлен в закладки"}))};return a.jsx(a.Fragment,{children:tt.getSetting("s03")!==0?a.jsx("i",{"data-icon":"C018","data-color":i?"_F44333 :F44333":"_b5b9cc :F44333",onClick:s}):""})},vt=({data:e})=>{let t=r=>{r.preventDefault(),delete H.list[e.link],H.del(e.link)},n=()=>{Ne.setId(e.id)};return a.jsx("span",{onContextMenu:t,onClick:n,children:e.name})},Ai=e=>{H.active(e)},U={},bt={},E={};E.config={iceServers:[{url:"stun:stun.l.google.com:19302"}]},E.constraints={optional:[{DtlsSrtpKeyAgreement:!0}]},E.other=[],E.users={},E.asset=0,E.remoute=!1,E.stream=null,E.user=0,E.connect=!1,E.offer=null,E.btnRefuse=null,E.time=!1;let Ee;Ee=document.createElement("audio"),Ee.setAttribute("autoplay","true"),Ee.setAttribute("muted","true"),U.start=async e=>{E.rtc=new RTCPeerConnection(E.config),E.other=[],E.remoute=!1,E.rtc.onicecandidate=n=>{n.candidate&&E.other.push(n.candidate)},E.rtc.ontrack=n=>{if(n.streams&&n.streams[0])Ee.srcObject=n.streams[0];else{console.log(!1);let r=new MediaStream(n.track);Ee.srcObject=r}};const t=await navigator.mediaDevices.getUserMedia({video:!1,audio:{echoCancellation:!1,autoGainControl:!0}});t.getTracks().forEach(n=>{E.rtc.addTrack(n,t)}),E.rtc.onconnectionstatechange=()=>{console.log(E.rtc.connectionState),E.rtc.connectionState},E.rtc.ontrack=async n=>{if(n.streams&&n.streams[0])Ee.srcObject=n.streams[0];else{console.log(!1);let r=new MediaStream(n.track);Ee.srcObject=r}},E.rtc.onaddstream=n=>{console.log(n)},E.rtc.onnegotiationneeded=n=>{console.log(n)},E.rtc.oniceconnectionstatechange=n=>{console.log(n.target)},E.rtc.onsignalingstatechange=n=>{console.log(n.target.connectionState)},E.rtc.onicegatheringstatechange=n=>{console.log(n)},E.rtc.onicecandidateerror=n=>{console.log(n)},E.rtc.ondatachannel=n=>{console.log(n)},console.log(E.rtc),E.rtc.onerror=n=>{console.log("error",n)},e()},U.useListener=e=>{bt.rtc=e},U.setListener=e=>{bt.rtc&&bt.rtc(e)},U.callTo=async e=>{U.start(async()=>{const t=await E.rtc.createOffer();await E.rtc.setLocalDescription(t),E.uid=e,me.Send({type:"module",module:"M00",query:"x0050",data:{type:"offer",offer:btoa(JSON.stringify(t)),user:E.uid}})})},U.callIn=async e=>{console.log("callIn"),E.asset=e.id,E.offer=e.offer,E.uid=e.id},U.callRise=async()=>{U.start(async()=>{E.rtc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(E.offer))));const e=await E.rtc.createAnswer();await E.rtc.setLocalDescription(e),me.Send({type:"module",module:"M00",query:"x0050",data:{type:"answer",answer:btoa(JSON.stringify(e)),user:E.uid}}),console.log("согласилась")})},U.callOk=async e=>{E.asset=e.id;const t=new RTCSessionDescription(JSON.parse(atob(e.answer)));await E.rtc.setRemoteDescription(t),console.log("ok"),me.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(E.other)),user:E.uid,send:!0}})},U.IceCandidate=async e=>{console.log(e),console.log("candidate"),e.candidate.forEach(t=>{E.rtc.addIceCandidate(new RTCIceCandidate(t))}),e.send&&me.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(E.other)),user:E.uid,send:!1}})},U.callFrom=async()=>{},U.callNo=()=>{console.log("Пользователь не в сети или отклонил"),E.asset=0,E.time=!1,E.rtc&&E.rtc.close(),U.setListener({type:"state",data:"closed"})},U.callOf=()=>{E.asset=0,E.time=!1,E.rtc.close()},U.callRefuser=async()=>{me.Send({type:"module",module:"M00",query:"x0050",data:{type:"callRefuser",user:E.uid}}),E.asset=0,E.time=!1,E.rtc&&E.rtc.close()},U.Run=async e=>{U[e.data.type]&&U[e.data.type](e.data)};let We={};function Oi(){let[e,t]=f.useState([]),n=f.useRef(null);return f.useEffect(()=>{},[]),We.set=r=>{t([...e,r])},We.del=()=>{t([])},We.audio=(r,i)=>{n.current.volume=.5,n.current.loop=i,n.current.src="/audio/"+r,n.current.muted=!1},a.jsxs(a.Fragment,{children:[e.map(r=>r.item),a.jsx("audio",{id:"audio",ref:n,autoPlay:!0,muted:!0})]})}function zi(e,t){let n=new Date().getTime();We.set({item:a.jsx(Gi,{type:t,id:e},n),key:n})}function Gi({id:e,type:t}){const[n,r]=f.useState({}),[i,o]=f.useState(t);console.log(i),f.useEffect(()=>{r(te.getSelect("user")[e])},[]),console.log(i),U.useListener(d=>{switch(d.type){case"state":o(d.data)}});const s=()=>{switch(i){case"out":return a.jsx("span",{onClick:()=>{U.callTo(n.id),o("call")},children:a.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})});case"in":return a.jsxs(a.Fragment,{children:[a.jsx("span",{onClick:l,children:a.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})}),a.jsx("span",{onClick:U.callRise,children:a.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})]});case"call":return a.jsx("span",{onClick:()=>U.callNo(n.id),children:a.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})});case"closed":return a.jsx("span",{onClick:()=>{U.callTo(n.id),o("call")},children:a.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})}},l=()=>{U.callRefuser(n.id),We.del()};return a.jsx("div",{className:"web-phone white",children:a.jsxs("div",{className:"w",children:[a.jsx("div",{className:"x","data-icon":"F038",onClick:l}),a.jsx("div",{className:"a"}),a.jsx("div",{className:"n",children:n.name}),a.jsx("div",{className:"b",children:s()})]})})}const yt={};function Zi(e){yt.add(e)}function Ui({color:e,size:t,name:n}){return a.jsx("svg",{width:t,height:t,color:e,children:a.jsx("use",{href:`#${n}`})})}function Wi(){let[e,t]=f.useState([]);if(yt.x=()=>{t([])},yt.add=r=>{t(r)},e.length===0)return"";const n={sprite:""};return a.jsx("svg",{...n,xmlns:"http://www.w3.org/2000/svg",children:e.map((r,i)=>a.jsx("symbol",{id:r.name,viewBox:"0 0 24 24",fillRule:"evenodd",clipRule:"evenodd",children:a.jsx(r.path,{})},i))})}let nt={},xn={};const Ki=e=>{xn=e},gn=f.createContext(localStorage.getItem("lang")||navigator.language),Yi=({children:e})=>{const[t,n]=f.useState(localStorage.getItem("lang")||navigator.language);return nt.update=n,a.jsx(gn.Provider,{value:xn[t],children:e})},Hi=e=>{var t;localStorage.setItem("lang",e),(t=nt.update)==null||t.call(nt,e)},qi=()=>f.useContext(gn),Vi=localStorage.getItem("lang")||navigator.language,wt={};function Ji(e,t){wt[e]=t}function Xi(e,t){wt[e]!==void 0&&wt[e](t)}const ye={};function Qi(e,t){const[n,r]=f.useState(t);return f.useEffect(()=>{if(ye[e])return ye[e].push(r);ye[e]=[r]},[]),[n]}function eo(e,t){if(ye[e])return ye[e].push(t);ye[e]=[t]}function to(e,t){ye[e]&&ye[e].forEach(n=>n(t))}const ge={setListener:Xi,useListener:Ji,setEmitter:to,useEmitter:Qi,subEmitter:eo};function no(){let[e,t]=f.useState([]);return ge.useListener("form",n=>{t([n])}),a.jsx(a.Fragment,{children:e.map(n=>n)})}const vn=({children:e,lang:t})=>fa(a.jsxs(Yi,{children:[a.jsx(ki,{}),a.jsx(Wr,{}),a.jsx(Jr,{}),a.jsx(Li,{}),a.jsx(Wi,{}),a.jsx(no,{}),a.jsx(Oi,{}),a.jsx(Pi,{}),e]})),ao=({children:e,...t})=>a.jsx("menu",{children:e}),ro=({children:e,...t})=>a.jsxs("header",{children:["xz",e]}),io={payment:"_payment_1lxfv_1"};function oo(){let[e,t]=f.useState({});return!e.active&&!e.payment?"":a.jsx("div",{className:io.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const so=({children:e,...t})=>a.jsxs("div",{className:"app",children:[a.jsx(oo,{}),a.jsx(ao,{}),a.jsx(ro,{}),a.jsx(vn,{}),e]}),bn=({list:e,onClick:t,active:n,size:r,view:i})=>a.jsx("nav",{children:a.jsx("ul",{className:[r,i].join(" "),children:e.map(o=>a.jsx(lo,{onClick:t,active:n,label:o.label,link:o.link},o.link))})}),lo=({onClick:e,label:t,link:n,active:r})=>a.jsx("li",{"tabs-active":String(r===n),onClick:()=>e(n),children:t});bn.defaultProps={size:"M",view:"H"};const co=({title:e="",button:t,description:n="",children:r})=>a.jsxs("fieldset",{children:[e&&a.jsxs("legend",{children:[e,t&&a.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),a.jsx("ul",{children:r}),n&&a.jsx("article",{children:n})]}),_o={setting:"_setting_dva4m_2"},uo=({children:e})=>a.jsx("div",{className:_o.setting,children:e}),fo=({label:e,children:t})=>{let[n,r]=f.useState(!1);return a.jsxs("li",{"data-item":"accordion",children:[a.jsxs("dl",{onClick:()=>r(!n),children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:a.jsx("div",{"data-close":String(n)})})]}),n&&a.jsx("div",{children:t})]})},mo=({label:e,onClick:t,button:n})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{role:"button",onClick:()=>t(),children:n})]})}),yn={Switch:({active:e,onClick:t})=>(console.log(e),e=typeof e=="number"?!!e:e,a.jsx("div",{role:"switch",onClick:()=>{console.log("Wewew"),t()},"aria-checked":e?"true":"false"}))},po={Accordion:fo,Button:mo,Switch:({label:e,onClick:t,active:n})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:a.jsx(yn.Switch,{onClick:t,active:n})})]})}),Info:({label:e,info:t})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:n})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:t})]})})};function wn({list:e,onClick:t,active:n,size:r,view:i}){return a.jsx("nav",{children:a.jsx("ul",{className:[r,i].join(" "),children:e.map(o=>a.jsx(ho,{onClick:t,active:n,label:o.label,link:o.link},o.link))})})}const ho=({onClick:e,label:t,link:n,active:r})=>a.jsx("li",{"tabs-active":String(r===n),onClick:()=>e(n),children:t});wn.defaultProps={size:"M",view:"H"};const xo={Section:co,Main:uo,Item:po,Tabs:wn},go={Icon:Ri,Item:vt,Active:Ai},vo={Send:Qr,Line:_n};function bo(){return a.jsx("svg",{viewBox:"0 0 462.86 359.96",children:a.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const yo={Logo:bo,Sprite:Zi,Symbol:Ui},wo={sort:"_sort_1yrvt_1"};let at={};function ko(e,t){switch(t.type){case"active":let n="<";return e.active===t.data&&(n=e.sort==="<"?">":"<"),at.get({active:t.data,sort:n},!1),Xt({active:t.data,sort:n}),{...e,active:t.data,sort:n};default:throw new Error}}function Co(){const[e,t]=f.useReducer(ko,ut()===void 0?{active:1,sort:"<"}:ut());return a.jsxs("div",{className:wo.sort,children:[a.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),a.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),a.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function jo(e){at.get=e}function So(e){at.set(e)}function Eo(e,t,n){let r=1,i=0,o={},s=50;o[r]=[];let l={},d="s1a";switch(l.s1a=(_,u)=>u.s1-_.s1,l.s1d=(_,u)=>_.s1-u.s1,l.s2a=(_,u)=>_.s2-u.s2,l.s2d=(_,u)=>u.s2-_.s2,l.s3a=(_,u)=>_.s3.localeCompare(u.s3),l.s3d=(_,u)=>u.s3.localeCompare(_.s3),n.active){case 1:d=n.sort===">"?"s1d":"s1a";break;case 2:d=n.sort===">"?"s2d":"s2a";break;case 3:d=n.sort===">"?"s3d":"s3a";break}return t.sort(l[d]).forEach(_=>{i++,i<=s||(r++,i=1,o[r]=[]),o[r].push(e[_.id])}),{data:o}}function Do(e){at.count(e)}const Io={Init:Co,useValue:jo,Set:So,Run:Eo,Count:Do},rt={},kn={};function No(e){const[t,n]=f.useState({}),r=async i=>{n(Object.keys(rt).reduce((o,s)=>(o?o[s]=rt[s].all:o={},o),{}))};return f.useEffect(()=>{e.forEach(i=>rt[i]={all:0}),kn.menu=r,r()},[e]),t}function To(e,t){switch(typeof t){case"number":rt[e].all+=t,kn.menu();break}}const Mo={useMenu:No,setUpdate:To};class Lo{constructor(t="el",n="db"){Wt(this,"storeName");Wt(this,"_dbp");this.storeName=n,this._dbp=new Promise((r,i)=>{const o=indexedDB.open(t,1);o.onerror=()=>i(o.error),o.onsuccess=()=>r(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(n)}})}_withIDBStore(t,n){return this._dbp.then(r=>new Promise((i,o)=>{const s=r.transaction(this.storeName,t);s.oncomplete=()=>i(),s.onabort=s.onerror=()=>o(s.error),n(s.objectStore(this.storeName))}))}}let kt,q={};const Te=()=>(kt||(kt=new Lo),kt),we=(e,t,n=Te())=>n._withIDBStore("readwrite",r=>{q[e]=t,r.put(R.enCode(t),e)}),pe=(e,t=Te())=>q[e]===void 0?new Promise((n,r)=>{let i;t._withIDBStore("readonly",o=>{i=o.get(e)}).then(()=>{if(i.result!==void 0){let o=R.deCode(i.result);q[e]=o,n(o)}else n({})})}):q[e],$o=(e,t=Te())=>t._withIDBStore("readwrite",n=>{n.delete(e)}),Ct=(e=Te())=>e._withIDBStore("readwrite",t=>{t.clear()}),Bo={id:async(e,t,n)=>{let r=await pe(t);if(n!==void 0)n({type:"load",base:r});else return r[e]},get:pe,set:we,add:async(e,t,n,r)=>{let i,o;o=await pe(n),o[e.id]=e,await we(n,o),i!==null&&(i=await pe(t),i[e.id]=e.eDate,await we(t,i)),r!==void 0&&r({type:"load",page:i,base:o})},del:$o,upd:(e,t,n,r=Te())=>{if(q[e]===void 0)return new Promise((i,o)=>{let s;r._withIDBStore("readonly",l=>{s=l.get(e)}).then(()=>{if(s.result!==void 0){let l=R.deCode(s.result);q[e]=l,q[e][t.id]={...q[e][t.id],...t.data},r.put(R.enCode(q[e]),e),i({})}else i({})})});if(q[e][t.id]!==void 0)return q[e][t.id]={...q[e][t.id],...t.data},n!==void 0&&q[n]!==void 0?q[n][t.id]!==void 0&&(q[n][t.id]=t.data.eDate):q[n]=[],delete q[e][t.id].$_item,delete q[e][t.id].$_send,r._withIDBStore("readwrite",i=>{i.put(R.enCode(q[e]),e),n!==void 0&&i.put(R.enCode(q[n]),n)})},key:(e=Te())=>{const t=[];return e._withIDBStore("readonly",n=>{(n.openKeyCursor||n.openCursor).call(n).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>q[e],split:(e,t,n=[],r={})=>{let i=n.length!==0,o=[],s=r.sort,l=Object.keys(r).length!==0,d=Object.keys(r),_=Object.keys(e),u=[],p=x=>{let b="";if(n.forEach(h=>{b+=t[x][h]}),l){let h={};d.forEach(g=>{h[g]=t[x][g]});for(let g in s)t[x][s[g]]===void 0&&(Ct(),location.reload()),g==="s1"&&(h[g]=new Date(t[x][s[g]]).getTime()),g==="s2"&&(h[g]=t[x][s[g]]),g==="s3"&&(h[g]=t[x][s[g]].replace(/[^a-zа-яё]/gi,"").substring(0,1));o.push({id:x,text:b,...h})}else o.push({id:x,text:b})},m=x=>{};return _.forEach(x=>{u.push(t[x])}),u.forEach(x=>{x===void 0?(Ct(),location.reload()):(i&&p(x.id),l&&m(x.id))}),{list:u,search:o,filter:r}},clear:Ct,updAll:async(e,t,n,r)=>{let i=await pe(t),o=await pe(n);for(let s in e)o[s]=e[s],i[s]=e[s].eDate;await we(t,i),await we(n,o),r!==void 0&&r({type:"load",page:i,base:o})},delAll:async(e,t,n,r)=>{let i=await pe(t),o=await pe(n);e.forEach(s=>delete i[s]),await we(t,i),r!==void 0&&r({type:"load",page:i,base:o})},delList:async(e,t,n)=>{let r=await pe(t);e.forEach(i=>delete r[i]),await we(t,r)},addList:async(e,t,n)=>{let r=await pe(t);e.forEach(i=>r[i.id]=i.eDate),await we(t,r)}},Fo={useKey:(e,t)=>{const n=[];t=t.map(r=>r.charCodeAt(0)),document.onkeydown=function(r){n.push(r.keyCode);for(var i=0;i<t.length;i++)if(n.indexOf(t[i])==-1)return;e(),n.length=0},document.onkeyup=function(r){n.length=0}}},Po={s:"_s_18bde_1",loadingB:"_loadingB_18bde_1",ul:"_ul_18bde_31"};function Cn({children:e}){return a.jsx("ul",{className:ne.ul,children:e})}function Ro(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,item:1,data:t.data,list:t.data[1],size:Object.keys(t.data).length};case"update":let n=Object.keys(e.data).length,r=e.item+1;return r=n<r?1:r,e.item===r?e:{...e,wait:e.size===r,item:r,list:[...e.list,...e.data[r]]};case"clear":return{load:!1,list:[],data:{},item:1,wait:!1,size:0};default:throw new Error}}function jn({list:e,load:t,className:n,...r}){const i=f.useRef(null),[o,s]=f.useReducer(Ro,{load:!1,list:[],data:{},item:1,wait:!1,size:0});f.useEffect(()=>{i.current.scrollTop=0,e!==null&&s({type:"load",load:!0,data:e})},[t]);let l=()=>{i.current.scrollHeight-i.current.scrollTop-300<=i.current.clientHeight&&!o.wait&&s({type:"update"})};return a.jsx("div",{className:[Po.s,n].join(" "),ref:i,onScroll:l,children:a.jsx(Cn,{"el-empty":"Данные не найдены",children:o.load&&o.list!==void 0?o.list.map(d=>a.jsx(r.item,{data:d},d.id)):a.jsxs("div",{"data-load":"load",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})})})}const Ao={Widget:$i},Sn=({onClick:e,active:t})=>(t=!!t,a.jsx("div",{role:"switch",onClick:()=>e,"aria-checked":`${t?"true":"false"}`}));let le={};le.KeyDown=e=>{e.key==="Enter"&&e.preventDefault()},le.PasteOne=e=>{e.preventDefault(),navigator.clipboard.readText().then(t=>{t=t.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,t)}).catch(t=>{})},le.Focus=e=>{e.target.textContent.length===0&&(e.target.innerHTML="<br>")},le.Blur=e=>{e.target.scrollLeft=0,e.target.querySelector("br")!==null&&e.target.querySelector("br").remove()};function Ke({id:e,value:t,onValue:n,name:r,placeholder:i="",title:o="",error:s="",hide:l=!1,edit:d=!0,active:_=!0,after:u="",show:p=!0,view:m,onBlur:x,onSave:b,className:h=""}){let g=!!(l&&(t===""||t===void 0)),y=w=>{n&&n({value:w.target.textContent,name:r})},C=w=>{w.key==="Enter"&&w.preventDefault()},M=w=>{w.preventDefault(),navigator.clipboard.writeText(w.target.textContent).then(function(){Se.Copy("Данные в буфер обмене")},function(O){console.error("Async: Could not copy text: ",O)})},B=w=>{};if(!(d&&_)&&!p||!(d&&_)&&g)return"";const j={};j.field="input",h&&(j.className=h);const S={};i&&(S.placeholder=i),d&&_&&(S.edit="");const D=w=>{le.Blur(w),b&&b({value:w.target.textContent,name:r})};return a.jsxs("dl",{...j,children:[o?a.jsx("dt",{children:o}):"",a.jsx("dd",{onPaste:B,onInput:y,onBlur:D,onKeyDown:C,onContextMenu:M,contentEditable:d&&_?"plaintext-only":"false",suppressContentEditableWarning:!0,...S,children:t}),s?a.jsx("em",{children:s}):""]})}function En({onClick:e,onSend:t,name:n,onRef:r}){let[i,o]=f.useState(!1);const s=()=>{if(e)return e();i||(o(!0),t&&t(o))};return a.jsx("button",{ref:r,"data-form":"button",className:i?"btn await":"btn confirm pointer",onClick:s,children:i?"Ожидайте":n})}function Dn({value:e,onValue:t,onActive:n,data:r,name:i,view:o,edit:s=!0,active:l=!0,placeholder:d="Введите сообщение"}){const _=f.useRef({value:e,timerId:null,shift:!1,send:!0}),u=()=>{_.current.value.length>0?_.current.send&&(n(!0),_.current.send=!1,_.current.timerId=setTimeout(()=>{_.current.send=!0},3e3)):n(!1)},p=y=>{_.current.value=y.target.textContent,u()},m=y=>{y.keyCode===16&&(_.current.shift=!0),y.keyCode===13&&!_.current.shift&&(y.preventDefault(),_.current.value.length!==0&&(y.target.textContent="",r&&r(_.current.value),t&&t(_.current.value),_.current.value="",n(!1)))},x=y=>{y.keyCode===16&&(_.current.shift=!1)},b=y=>{y.preventDefault(),navigator.clipboard.readText().then(C=>{window.document.execCommand("insertText",!1,C)}).catch(C=>{})},h=()=>{n(!1)},g={spellCheck:"true"};return d&&(g.placeholder=d),s&&l&&(g.contentEditable="plaintext-only"),a.jsx("dl",{"data-form":"message",children:a.jsx("dd",{onPaste:b,onInput:p,onKeyUp:x,onKeyDown:m,onBlur:h,...g,suppressContentEditableWarning:!0,children:e})})}function In(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,i=e.placeholder!==void 0?e.placeholder:"",o=d=>{e.onValue({value:d.target.textContent,name:e.name})},s=d=>{d.key==="Enter"&&d.preventDefault()},l=d=>{d.preventDefault(),navigator.clipboard.readText().then(_=>{window.document.execCommand("insertText",!1,_)}).catch(_=>{console.log("Something went wrong",_)})};return a.jsxs("dl",{"data-form":"input","type-data":"generator",children:[t(),a.jsx("dd",{onPaste:l,onInput:o,onKeyDown:s,contentEditable:n&&r?"plaintext-only":"false","data-placeholder":i,suppressContentEditableWarning:!0,children:e.value})]})}function Nn({value:e,onValue:t,placeholder:n="",name:r}){let i=(x,b)=>Number(Math.round(x+Math.random()*(b-x))),o=f.useRef(null),s=f.useRef(null),l=i(1e4,99999),d=x=>{x.key!=="Backspace"&&(x.key==="Enter"&&x.preventDefault(),x.target.textContent.length===5&&x.preventDefault(),/\d/.test(x.key)||x.preventDefault())},_=x=>{t({value:Number(x.target.textContent)===l,name:r})},u=x=>{x.preventDefault(),navigator.clipboard.readText().then(b=>{window.document.execCommand("insertText",!1,b.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(b=>{console.log("Something went wrong",b)})};f.useEffect(()=>{const x=o.current,b=x.getContext("2d");b.clearRect(0,0,x.width,x.height),b.font="30px brush script mt",b.fillStyle="#eee",b.textAlign="center",b.fillText(l,50,27),s.current.textContent=""},[l]);const p={};p.field="captcha";const m={};return n&&(m.placeholder=n),a.jsxs("dl",{...p,children:[a.jsx("dd",{ref:s,onPaste:u,onInput:_,onBlur:le.Blur,onKeyDown:d,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,...m}),a.jsx("canvas",{ref:o,width:"100",height:"35"})]})}function Tn({className:e,title:t,error:n,edit:r=!0,real:i,onValue:o,empty:s,name:l}){let d={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},_=h=>{if(h.preventDefault(),!r)return;h.target.textContent=h.target.textContent.slice(-1).replace(/[^+\d]/g,"");let g=window.getSelection(),y=h.target.textContent.length;if(d[h.target.id]=h.target.textContent,d.code=d.n1+""+d.n2+d.n3+d.n4+d.n5+d.n6,g.collapse(h.target.firstChild,1),y===0){h.target.blur(),h.target.focus();return}h.target.nextSibling!=null&&h.target.nextSibling.focus()},u=h=>{if(r&&(h.key==="Enter"&&h.preventDefault(),h.key==="Backspace")){if(h.preventDefault(),h.target.textContent="",d[h.target.id]="",h.target.previousSibling!=null){let g=h.target.previousSibling.id.slice(1);h.target.previousSibling.textContent="",d["n"+g]="",h.target.previousSibling.focus()}d.code=d.n1+""+d.n2+d.n3+d.n4+d.n5+d.n6}},p=h=>{if(r){if(i)o&&o({value:d.code,name:l});else if(d.code.length===6&&(o&&o({value:d.code,name:l}),s)){d={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let g=1;g<=6;g++){let y=document.getElementById("n"+g);y&&(y.textContent="")}}}},m=h=>{h.target.textContent=""},x=h=>{h.preventDefault(),navigator.clipboard.readText().then(g=>{let y=g.split("");for(let C=1;C<=y.length;C++){let M=document.getElementById("n"+C);M&&(M.textContent=y[C-1])}}).catch(g=>{console.log("Something went wrong",g)})};const b={};return b.field="code",e&&(b.className=e),a.jsxs("dl",{...b,children:[t?a.jsx("dt",{children:t}):"",a.jsxs("div",{children:[a.jsx("dd",{id:"n1",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n2",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n3",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n4",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n5",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n6",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0})]}),n?a.jsx("em",{children:n}):""]})}function Mn(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"";e.edit!==void 0&&e.edit,e.active!==void 0&&e.active;let[r,i]=f.useState(e.value),o=s=>{let l=s.target.getAttribute("set-color");i(l),e.onValue({value:l,name:e.name})};return a.jsx(a.Fragment,{children:e.view==="icon"?a.jsx("i",{"data-icon":"F043"}):a.jsxs("dl",{children:[t(),a.jsxs("dd",{"el-val":r,children:[a.jsx("em",{onClick:o,"set-color":"0"}),a.jsx("em",{onClick:o,"set-color":"1"}),a.jsx("em",{onClick:o,"set-color":"2"}),a.jsx("em",{onClick:o,"set-color":"3"}),a.jsx("em",{onClick:o,"set-color":"4"}),a.jsx("em",{onClick:o,"set-color":"5"})]}),n()]})})}const he={o:"_o_66f7n_1",c:"_c_66f7n_11",as:"_as_66f7n_87",ap:"_ap_66f7n_90"};function jt(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"",r=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",[s,l]=f.useState(e.value===void 0?new Date:e.value),d=!r&&i;f.useEffect(()=>{l(e.value===void 0?new Date:e.value)},[e.value]);let _=x=>{l(x),e.onValue({value:x,name:e.name})},u=x=>{const b=x.target.getBoundingClientRect(),h=b.left,g=b.top;ge.setListener("form",a.jsx(Oo,{position:{x:h,y:g},onValue:_,date:s},new Date().getTime()))};const p={};p.field="input";const m={};return o&&(m.placeholder=o),d?a.jsx(a.Fragment,{}):a.jsx(a.Fragment,{children:e.view==="icon"?a.jsx("i",{"data-icon":"F043",className:"pointer","data-color":"_b5b9cc :506290",onClick:u}):a.jsxs("dl",{...p,children:[t(),a.jsx("dd",{onClick:u,...m,"data-edit":(r&&i)+"",children:K.Date(s,"dd.mm.yyyy")}),n()]})})}const Oo=e=>{let[t,n]=f.useState(!0),r=new Date,i=new Date(e.date),o={y:parseInt(r.getFullYear()),d:parseInt(r.getDate()),m:parseInt(r.getMonth())+1},s={y:parseInt(i.getFullYear()),d:parseInt(i.getDate()),m:parseInt(i.getMonth())+1},[l,d]=f.useState({y:s.y,m:s.m}),_=j=>{let S=j.getDay();return S===0&&(S=7),S-1},u=["пн","вт","ср","чт","пт","сб","вс"],p=l.m-1,m=new Date(l.y,p),x=[];for(let j=0;j<_(m);j++)x.push(0);for(;m.getMonth()===p;)x.push(m.getDate()),m.setDate(m.getDate()+1);let b=()=>{n(!1)},h=()=>{C(l.m+1,l.y)},g=()=>{C(l.m-1,l.y)},y=j=>{e.onValue(l.y+"-"+K.Number(2,l.m)+"-"+K.Number(2,j)),b()},C=(j,S)=>{S=j>12?S+1:j<1?S-1:S,j=j>12?1:j<1?12:j,d({y:S,m:j})},M=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,B=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return a.jsx(a.Fragment,{children:t?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:he.o,onClick:()=>b()},new Date().getTime()),a.jsxs("div",{className:he.c,style:{top:M+"px",left:B+"px"},children:[a.jsxs("s",{children:[a.jsx("i",{onClick:g,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),a.jsxs("h2",{children:[K.Month(l.m).name," ",l.y]}),a.jsx("i",{onClick:h,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),a.jsxs("div",{"grid-calendar":"",children:[u.map((j,S)=>a.jsx("p",{children:j},"v"+S)),x.map((j,S)=>a.jsx("span",{children:j!==0?a.jsx("b",{color:o.y===l.y&&o.m===l.m&&o.d===j?"_FFEB3B":"",onClick:()=>y(j),children:j}):a.jsx("p",{})},S))]})]})]}):""})};function St({value:e,onValue:t,name:n,placeholder:r="",title:i,error:o,hide:s=!1,edit:l=!0,show:d=!0,active:_=!0,after:u="",view:p,modal:m,module:x,options:b,className:h}){let[g,y]=f.useState(e),C=j=>{if(!(l&&_))return;if(!m)return console.error("modal - empty");let S=m.split(".");Ue.Open(S[0],S[1],{callback:D=>{t&&t({value:D,name:n}),y(D)},onValue:t,options:b,name:n,value:e})};const M={};M.field="input",h&&(M.className=h);const B={};return r&&(B.placeholder=r),s?a.jsx(a.Fragment,{}):a.jsxs("dl",{...M,children:[i&&a.jsx("dt",{children:i}),a.jsx("dd",{...B,onClick:C,edit:(l&&_)+"","data-after":u,children:g}),o&&a.jsx("em",{children:o})]})}function Et({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,course:p=100,view:m,onBlur:x,type:b,onSave:h,className:g=""}){let y=!!(s&&(e===""||e===void 0));e=K.isNumeric(e)?Number(e)/p:0;let C=L=>b==="multi"?L.replace(/[^+\d.+-]/g,""):L.replace(/[^+\d.]/g,""),M=(L,W)=>{let z=document.createRange(),N=window.getSelection();z.setStart(W.childNodes[0],L),z.collapse(!0),N.removeAllRanges(),N.addRange(z),W.focus()},B=L=>{t==null||t({value:C(L.target.textContent)*p,name:n}),L.target.textContent=C(L.target.textContent),L.target.textContent.length>0&&M(L.target.textContent.length,L.target)},j=L=>{le.Blur(L),L.target.textContent===""&&(L.target.textContent=0),h==null||h({value:C(L.target.textContent)*p,name:n}),t==null||t({value:C(L.target.textContent)*p,name:n}),L.target.textContent=K.Money(L.target.textContent)},S=L=>{L.target.textContent=C(L.target.textContent)},D=L=>{L.key==="Enter"&&L.preventDefault()},w=L=>{L.preventDefault(),navigator.clipboard.readText().then(W=>{W=W.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,W)}).catch(W=>{console.log("Something went wrong",W)})};if(!(l&&d)&&!u||!(l&&d)&&y)return"";const O={};return O.field="input",g&&(O.className=g),a.jsxs("dl",{...O,children:[i?a.jsx("dt",{children:i}):"",a.jsx("dd",{onInput:B,onPaste:w,onBlur:j,onKeyDown:D,onFocus:S,contentEditable:l&&d?"plaintext-only":"false",suppressContentEditableWarning:!0,"e-after":_,children:K.Money(e)}),o?a.jsx("em",{children:o}):""]})}function Ln({value:e,onValue:t,name:n,view:r,error:i,edit:o=!0,active:s=!0,title:l,placeholder:d="",className:_,after:u}){let[p,m]=f.useState(e);f.useEffect(()=>{m(e)},[e]);let x=g=>{m(g),t&&t({value:g,name:n})},b=g=>{if(!o||!s)return;const y=g.target.getBoundingClientRect(),C=y.left,M=y.top;ge.setListener("form",a.jsx(zo,{position:{x:C,y:M},onValue:x,date:p},new Date().getTime()))};const h={};return d&&(h.placeholder=d),r==="icon"?a.jsx("i",{"data-icon":"F043",onClick:b}):a.jsxs("dl",{children:[l&&a.jsx("dt",{children:l}),a.jsx("dd",{onClick:b,...h,children:K.Date(p,"mm.yyyy")}),i&&a.jsx("em",{children:i})]})}const zo=e=>{let[t,n]=f.useState(!0),r=new Date,i=new Date(e.date),o={y:parseInt(r.getFullYear()),m:parseInt(r.getMonth())+1},s={y:parseInt(i.getFullYear()),m:parseInt(i.getMonth())+1},[l,d]=f.useState(s.y),_=()=>{n(!1)},u=()=>{d(l+1)},p=()=>{d(l-1)},m=y=>{e.onValue(l+"-"+K.Number(2,y)),_()},x=y=>o.y===s.y&&o.m===y?"_FFEB3B":"",b=Array(12).fill("").map((y,C)=>C+1),h=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,g=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return a.jsx(a.Fragment,{children:t?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:he.o,onClick:()=>_()},new Date().getTime()),a.jsxs("div",{className:he.c,style:{top:h+"px",left:g+"px"},children:[a.jsxs("s",{children:[a.jsx("i",{onClick:p,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),a.jsx("h2",{children:l}),a.jsx("i",{onClick:u,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),a.jsx("div",{"grid-month":"",children:b.map((y,C)=>a.jsx("span",{onClick:()=>{m(y)},color:x(y),children:a.jsx("b",{children:K.Month(y).abc})},C))})]})]}):""})};function $n(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"",[r,i]=f.useState(!1),o=e.edit!==void 0?e.edit:!0,s=e.active!==void 0?e.active:!0,d=!!(e.hide&&(e.value===""||e.value===void 0))&&!(o&&s);r=o?!0:r;let _=e.placeholder!==void 0?e.placeholder:"",u=g=>{e.onValue&&e.onValue({value:g.target.innerText,name:e.name})},p=g=>{g.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{console.log("Something went wrong",y)})},m=g=>{o||i(!r)};const x=g=>{e.onSave&&e.onSave({value:g.target.innerText,name:e.name})},b={};b.field="notes",e.className&&(b.className=e.className);const h={};return _&&(h.placeholder=_),r&&(h.open=""),o&&s&&(h.edit=""),d?a.jsx(a.Fragment,{}):a.jsxs("dl",{...b,children:[t(),a.jsx("dd",{onPaste:p,onInput:u,onBlur:x,contentEditable:o&&s?"plaintext-only":"false",...h,onDoubleClick:m,suppressContentEditableWarning:!0,children:e.value}),n()]})}function Dt({onValue:e,onSave:t,active:n,max:r,edit:i,title:o,error:s,show:l,hide:d,value:_,placeholder:u,className:p,name:m,after:x,view:b}){i=i!==void 0?i:!0,n=n!==void 0?n:!0,d=!!(d&&(_===""||_===void 0))&&!(i&&n),u=u!==void 0?u:"",r=r!==void 0?r:99;let g=!1,y=w=>{e==null||e({value:w.target.textContent,name:m})},C=w=>{if(!(g&&w.which===86)){if(w.which===17||w.which===91)return g=!0;w.key!=="Backspace"&&(w.target.textContent.length===r&&w.preventDefault(),w.key==="Enter"&&w.preventDefault(),isNaN(parseInt(String.fromCharCode(w.which)))&&w.preventDefault())}},M=w=>{if(w.which===17||w.which===91)return g=!1},B=w=>{w.preventDefault(),navigator.clipboard.readText().then(O=>{O=O.replace(/\D/g,""),console.log(O),window.document.execCommand("insertText",!1,""+O.replace(/\D/g,""))}).catch(O=>{console.log("Something went wrong",O)})};const j=w=>{le.Blur(w),t==null||t({value:w.target.textContent,name:m})},S={};S.field="input",p&&(S.className=p);let D={};return i&&n?(D.edit="true",D.contentEditable="plaintext-only"):D.contentEditable="false",u&&(D.placeholder=u),x&&(D.after=x),d?a.jsx(a.Fragment,{}):a.jsxs("dl",{...S,children:[o&&a.jsx("dt",{children:o}),a.jsx("dd",{...D,onPaste:B,onInput:y,onBlur:j,onKeyDown:C,onKeyUp:M,suppressContentEditableWarning:!0,children:_}),s&&a.jsx("em",{children:s})]})}function Bn({value:e,onValue:t,name:n,placeholder:r="",className:i,title:o,error:s,edit:l=!0,active:d=!0,reload:_=!1,native:u=!1,after:p=""}){let m=y=>{t&&t({value:y.target.textContent,name:n,reload:_})},x=y=>{y.key==="Enter"&&y.preventDefault()},b=y=>{y.preventDefault(),navigator.clipboard.readText().then(C=>{window.document.execCommand("insertText",!1,C.replace(/(\r\n|\n|\r)/gm," "))}).catch(C=>{console.log("Something went wrong",C)})};const h={};h.field="password",i&&(h.className=i);const g={};return r&&(g.placeholder=r),u?"":a.jsxs("dl",{...h,children:[o?a.jsx("dt",{children:o}):"",a.jsx("dd",{onPaste:b,onInput:m,onKeyDown:x,onBlur:le.Blur,contentEditable:l&&d?"plaintext-only":"false",...g,suppressContentEditableWarning:!0,children:e}),s?a.jsx("em",{children:s}):""]})}const It={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function Nt({value:e,onValue:t,onSave:n,name:r,placeholder:i="",title:o="",error:s="",hide:l=!1,edit:d=!0,active:_=!0,after:u="",show:p=!0,view:m,className:x=""}){d=d!==void 0?d:!0,_=_!==void 0?_:!0,l=!!(l&&(e===""||e===void 0))&&!(d&&_),f.useRef(null);let h="+_(___) ___-__-__",g=!0,y=0,C=(z,N)=>{let F=document.createRange(),Y=window.getSelection();F.setStart(N.childNodes[0],z),F.collapse(!0),Y.removeAllRanges(),Y.addRange(F),N.focus()},M=z=>{z.preventDefault(),navigator.clipboard.readText().then(N=>{window.document.execCommand("insertText",!1,N)}).catch(N=>{console.log("Something went wrong",N)})},B=z=>{let N=0,F="",Y=z.replace(/\D/g,"");Y===""&&(g=!0);let ae=Y.split(""),se="";ae.forEach(Ye=>{g&&(se+=Ye,It[se]!==void 0&&g?(g=!1,h=It[se].mask.replace(new RegExp("[0-9]","g"),"_"),F=It[se].code):(g&&(y=(""+se).length,h=`+${se}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),F=""),y>(""+se).length&&(g=!0,h=`+${se}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),F="")))});let ve=h.replace(/\D/g,"");return ve.length>=Y.length&&(Y=ve),{q:h.replace(/[_\d]/g,function(){return Y.charAt(N++)||"_"}),i:N,v:Y,f:F}},j=z=>{z.preventDefault(),navigator.clipboard.writeText(z.target.textContent.replace(/\D/g,"")).then(function(){Se.Copy("Данные в буфер обмене")},function(N){console.error("Async: Could not copy text: ",N)})},S=B(e),D=z=>{let N=B(z.target.textContent);z.target.textContent=N.q,N.i=N.q.lastIndexOf(N.v.substr(-1)),N.i<N.q.length&&N.q!==h?N.i++:N.i=N.q.indexOf("_"),C(N.i,z.target),t&&t({value:N.q.replace(/\D/g,""),name:r})},w=z=>{z.key==="Enter"&&z.preventDefault()};const O=z=>{le.Blur(z),n&&n({value:z.target.textContent.replace(/\D/g,""),name:r})},L={};L.field="input",x&&(L.className=x);let W={};return d&&_?(W.edit="true",W.contentEditable="plaintext-only"):W.contentEditable="false",i&&(W.placeholder=i),u&&(W.after=u),l?a.jsx(a.Fragment,{}):a.jsxs("dl",{...L,children:[o&&a.jsx("dt",{children:o}),a.jsx("dd",{...W,onPaste:M,onInput:D,onKeyDown:w,onContextMenu:j,onBlur:O,suppressContentEditableWarning:!0,children:S.q}),s&&a.jsx("em",{children:s})]})}const Fn=e=>{let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,i=e.placeholder!==void 0?e.placeholder:"",o=0,s=()=>{clearTimeout(o),o=setTimeout(()=>console.log("rerrwere"),1e3)},l=u=>{u.key==="Enter"&&u.preventDefault()},d=u=>{u.preventDefault(),navigator.clipboard.readText().then(p=>{window.document.execCommand("insertText",!1,p)}).catch(p=>{console.log("Something went wrong",p)})};const _={};return i&&(_.placeholder=i),a.jsxs("dl",{"data-form":"input",children:[t(),a.jsx("dd",{onPaste:d,onInput:s,onKeyDown:l,contentEditable:n&&r?"plaintext-only":"false",..._,suppressContentEditableWarning:!0,children:e.value})]})};function Tt({title:e,error:t,edit:n=!0,active:r=!0,hide:i,value:o="0",onValue:s,options:l,placeholder:d="",className:_,name:u,after:p,view:m,order:x}){var j,S;const b=f.useRef();i=!!(i&&(o===""||((j=l[o])==null?void 0:j.n)===void 0))&&!(n&&r);let g=o!==void 0&&o!==""?(S=l[o])==null?void 0:S.n:o,y=D=>{var w;b.current.textContent=(w=l[D])==null?void 0:w.n,s&&s({value:D,name:u})},C=D=>{if(!(n&&r))return;const w=D.target.getBoundingClientRect();ge.setListener("form",a.jsx(Go,{parent:w,onValue:y,view:m,className:_,options:l,order:x},new Date().getTime()))},M={field:"select",className:_},B={onClick:C};return d&&(B.placeholder=d),p&&(B.after=p),n&&r&&(B.edit=""),i?"":a.jsxs("dl",{...M,children:[e&&a.jsx("dt",{children:e}),a.jsx("dd",{...B,ref:b,children:g}),t&&a.jsx("em",{children:t})]})}const Go=({onValue:e,parent:t,view:n,className:r,options:i,order:o})=>{let[s,l]=f.useState(!0),d=()=>{l(!1)},_=m=>{l(!1),e(m)},u=window.innerHeight-t.y+t.height<320?t.y-312:t.y+33,p=window.innerWidth-t.x<265?t.x-235:t.x;return a.jsx(a.Fragment,{children:s?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-select":"backdrop",onClick:d},new Date().getTime()),a.jsx("div",{className:r,"data-select":"background "+n,style:{top:u+"px",left:p+"px",width:t.width},children:a.jsx(Zo,{order:o,options:i,link:_})})]}):""})},Zo=({order:e,options:t,link:n})=>e?a.jsx("ul",{children:e.map((r,i)=>t[r].s===1?a.jsx("li",{onClick:()=>{n(r)},children:t[r].n},i):"")}):a.jsx("ul",{children:Object.keys(t).map((r,i)=>t[r].s===1?a.jsx("li",{onClick:()=>{n(r)},children:t[r].n},i):"")});function Mt(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"",r=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,s=!!(e.hide&&(e.default===""||e.options[e.default]===void 0))&&!(r&&i),l=e.placeholder!==void 0?e.placeholder:"",d=x=>{u(e.options[x]),e.onValue({value:x,name:e.name})},[_,u]=f.useState(e.default!==void 0?e.options[e.default]:e.default),p=x=>{if(!(r&&i))return;const b=x.target.getBoundingClientRect();ge.setListener("form",a.jsx(Uo,{parent:b,onValue:d,view:e.view,options:e.options},new Date().getTime()))};const m={};return l&&(m.placeholder=l),s?a.jsx(a.Fragment,{}):a.jsxs("dl",{"data-form":"select",children:[t(),a.jsx("dd",{onClick:p,"data-edit":(r&&i)+"",...m,children:_}),n()]})}const Uo=({onValue:e,parent:t,view:n,options:r})=>{let[i,o]=f.useState(!0),s=()=>{o(!1)},l=p=>{o(!1),e(p)},d=Object.keys(r).length*36,_=window.innerHeight-t.y+t.height<d?t.y-(d-33):t.y+33,u=window.innerWidth-t.x<265?t.x-235:t.x;return a.jsx(a.Fragment,{children:i?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-select":"backdrop",onClick:s},new Date().getTime()),a.jsx("div",{"data-select":"background "+n,style:{top:_+"px",left:u+"px",width:t.width},children:a.jsx("ul",{children:Object.keys(r).map((p,m)=>a.jsx("li",{onClick:()=>{l(p)},children:r[p]},m))})})]}):""})};function Lt({set:e,value:t,onValue:n,name:r,placeholder:i="",title:o="",error:s="",hide:l=!1,edit:d=!0,show:_=!0,active:u=!0,after:p="",view:m,module:x,item:b,className:h=""}){let g={};switch(e){case"Input":return a.jsx(Ke,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Select":return b&&(g=te.getSelect(parseInt(b))?te.getSelect(parseInt(b)):{0:{s:"1",n:"не известно"}}),a.jsx(Tt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h,options:g});case"Users":return te.getSelect("user"),a.jsx(Mt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h,options:g});case"Date":return a.jsx(jt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Phone":return a.jsx(Nt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Number":return a.jsx(Dt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Money":return a.jsx(Et,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Modal":return a.jsx(St,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r||"",placeholder:i,className:h,options:g,module:x||""})}}function Pn({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,view:p,onBlur:m,onSave:x,className:b=""}){let h=!!(s&&(e===""||e===void 0));if(!(l&&d)&&!u||!(l&&d)&&h)return"";let g=j=>{t&&t({value:j.target.innerText,name:n})},y=j=>{x&&x({value:j.target.innerText,name:n})},C=j=>{j.preventDefault(),navigator.clipboard.readText().then(S=>{window.document.execCommand("insertText",!1,S)}).catch(S=>{console.log("Something went wrong",S)})};const M={};M.field="text",b&&(M.className=b);const B={};return r&&(B.placeholder=r),a.jsxs("dl",{...M,children:[i&&a.jsx("dt",{children:i}),a.jsx("dd",{onPaste:C,onBlur:y,onInput:g,contentEditable:l&&d?"plaintext-only":"false",...B,suppressContentEditableWarning:!0,children:e}),o&&a.jsx("em",{children:o})]})}function Rn({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,view:p,onBlur:m,onSave:x,className:b=""}){let h=!!(s&&(e===""||e===void 0)),g=K.Date(e===void 0?new Date:e,"HH:MM"),y=f.useRef(null);if(!(l&&d)&&!u||!(l&&d)&&h)return"";let C=D=>{y.current.textContent=D,t&&t({value:D,name:n})},M=D=>{x&&x({value:D,name:n})},B=D=>{const w=D.target.getBoundingClientRect(),O=w.left,L=w.top;ge.setListener("form",a.jsx(Wo,{positions:{x:O,y:L},onSave:M,onValue:C,date:g},new Date().getTime()))};const j={};j.field="input",b&&(j.className=b);const S={};return r&&(S.placeholder=r),a.jsx(a.Fragment,{children:p==="icon"?a.jsx("i",{"data-icon":"F043",onClick:B}):a.jsxs("dl",{...j,children:[i?a.jsx("dt",{children:i}):"",a.jsx("dd",{onClick:B,ref:y,...S,children:g}),o?a.jsx("em",{children:o}):""]})})}const Wo=({positions:e,onSave:t,onValue:n,date:r})=>{let i=r.split(":"),o={h:K.Number(2,i[0]),m:K.Number(2,i[1])},s="hour",[l,d]=f.useState({}),_=!1,u=0,p=0,m={body:f.useRef(null),time:f.useRef(null),hour:f.useRef(null),timeText:f.useRef(null),hourText:f.useRef(null)};f.useEffect(()=>{d(m.body.current.getBoundingClientRect()),m.hour.current.style.transform="rotate("+o.h*15+"deg)",m.time.current.style.transform="rotate("+o.m*6+"deg)"},[m.body,m.hour,m.time,o.m,o.h]);let x=()=>{_=!0},b=()=>{_=!1,s=s==="hour"?"time":"hour",m.body.current.setAttribute("active",s)},h=S=>{if(_){let w=Math.atan2(S.pageX-(l.x+78),S.pageY-(l.y+78))*(180/Math.PI)*-1+180;m[s].current.style.transform="rotate("+w+"deg)",s==="hour"?(o={...o,h:K.Number(2,parseInt(String(w/15),10))},m.hourText.current.textContent=o.h):(o={...o,m:K.Number(2,parseInt(String(w/6),10))},m.timeText.current.textContent=o.m),n(o.h+":"+o.m)}},g=S=>{if(s==="hour")if(S.deltaY>0){u+=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.h,10)+1;w=w>23?0:w,o={...o,h:K.Number(2,w)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else{u-=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.h,10)-1;w=w<0?23:w,o={...o,h:K.Number(2,w)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else if(S.deltaY>0){u+=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.m,10)+1;w=w>59?0:w,o={...o,m:K.Number(2,w)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}else{u-=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.m,10)-1;w=w<0?59:w,o={...o,m:K.Number(2,w)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}n(o.h+":"+o.m)},[y,C]=f.useState(!0),M=()=>{C(!1),t(o.h+":"+o.m)},B=window.innerHeight-e.y+33<320?e.y-312:e.y+33,j=window.innerWidth-e.x<265?e.x-235:e.x;return a.jsx(a.Fragment,{children:y?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:he.o,onClick:()=>M()},new Date().getTime()),a.jsxs("div",{className:he.c,onMouseDown:x,onMouseUp:b,onMouseMove:h,onWheel:g,ref:m.body,style:{top:B+"px",left:j+"px"},children:[a.jsx("div",{className:"b"}),a.jsxs("div",{className:"s",children:[a.jsx("span",{className:["hour",s==="hour"?he.as:he.ap].join(" "),ref:m.hourText,children:o.h})," ",":"," ",a.jsx("span",{className:["min",s==="time"?he.as:he.ap].join(" "),ref:m.timeText,children:o.m})]}),a.jsx("div",{className:"h",ref:m.hour}),a.jsx("div",{className:"t",ref:m.time})]})]}):""})};function An({onValue:e,label:t,value:n,title:r,className:i,name:o,text:s,id:l,reload:d}){const[_,u]=f.useState(!!n),p=t||r;f.useEffect(()=>{u(!!n)},[n]);let m=()=>{e&&e({value:_?0:1,name:o,id:l}),u(!_)};const x={};return x.field="check",i&&(x.className=i),a.jsxs("dl",{...x,children:[p?a.jsx("dt",{children:p}):"",a.jsxs("dd",{onClick:m,children:[a.jsx("span",{children:s}),a.jsx("div",{role:"switch","aria-checked":`${_?"true":"false"}`})]})]})}const Ko=({label:e,onValue:t,value:n,name:r,item:i})=>{const[o,s]=f.useState(!!n);f.useEffect(()=>{s(!!n)},[n]);let l=()=>{let d=parseInt(o)===0?1:0;s(d),t({value:d,name:r,key:i,item:i})};return a.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})},On=({onValue:e,value:t,name:n,item:r})=>{const[i,o]=f.useState(!!t);f.useEffect(()=>{o(!!t)},[t]);let s=()=>{let l=parseInt(i)===0?1:0;o(l),e({value:l,name:n,key:r,item:r})};return a.jsx("div",{role:"switch",onClick:s,"aria-checked":`${i?"true":"false"}`})};function zn({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,view:p,onSave:m,className:x="",separator:b=","}){const[h,g]=f.useState(e!==void 0?e.split(b):[]);f.useEffect(()=>{g(e!==void 0?e!==void 0?e.split(b):[]:[])},[e]);let y=()=>{g([...h,""])},C=O=>{h.splice(O,1),h.length===0&&h.push(""),g([...h]),m!==void 0&&m({value:h.join(b),name:n})},M=!!(s&&(e===""||e===void 0)),B=O=>{};if(!(l&&d)&&!u||!(l&&d)&&M)return"";const j={};j.field="group",x&&(j.className=x);const S=(O,L)=>{le.Blur(O),h[L]=O.target.textContent,m&&m({value:h.join(b),name:n})};let D=(O,L)=>{h[L]=O.target.textContent,t&&t({value:h.join(b),name:n})},w=O=>{O.key==="Enter"&&O.preventDefault()};return a.jsxs("dl",{...j,children:[a.jsxs("dt",{children:[i,a.jsx("i",{onClick:y,children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[a.jsx("path",{d:"M12 5.25v13.5"}),a.jsx("path",{d:"M18.75 12H5.25"})]})})]}),a.jsx("dd",{children:h.map((O,L)=>a.jsxs("li",{className:"field_group_item",children:[a.jsx("span",{onInput:W=>D(W,L),edit:"true",name:n,placeholder:r,onPaste:B,contentEditable:l&&d?"plaintext-only":"false",onKeyDown:w,onBlur:W=>S(W,L),suppressContentEditableWarning:!0,children:h[L]}),a.jsx("i",{onClick:()=>{C(L)},children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[a.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),a.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},L))}),o&&a.jsx("em",{children:o})]})}const Yo=e=>(e=e!==void 0&&e!==""?e.split(","):[],e.reduce((t,n)=>(t[n]=!0,t),{}));function Gn({value:e,onValue:t,name:n,placeholder:r="",title:i,error:o,hide:s=!1,edit:l=!0,show:d=!0,active:_=!0,after:u="",view:p,modal:m,module:x,options:b,className:h}){const[g,y]=f.useState(Yo(e)),C=j=>{if(!(l&&_))return;if(!m)return console.error("modal - empty");let S=m.split(".");Ue.Open(S[0],S[1],{callback:D=>{t&&t({value:D,name:n}),y(D)},onValue:t,options:b,name:n,value:g})},M={};M.field="group",h&&(M.className=h);const B={};return r&&(B.placeholder=r),s?a.jsx(a.Fragment,{}):a.jsxs("dl",{...M,children:[a.jsxs("dt",{children:[i,a.jsx("i",{onClick:C,children:a.jsxs("svg",{width:"20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M12 5.25v13.5"}),a.jsx("path",{d:"M18.75 12H5.25"})]})})]}),a.jsx("dd",{...B,onClick:open,edit:(l&&_)+"","data-after":u,children:Object.keys(g).map(j=>{var S;return a.jsx("div",{className:"field_group_item",children:(S=b[j])==null?void 0:S.label},j)})}),o&&a.jsx("em",{children:o})]})}function Zn({value:e,onValue:t,name:n,placeholder:r="",title:i="",link:o="",error:s="",hide:l=!1,edit:d=!0,active:_=!0,after:u="",show:p=!0,type:m,view:x,onBlur:b,onSave:h,className:g=""}){const y=f.useId();let C=!!(l&&(e===""||e===void 0)),[M,B]=f.useState(o);if(!(d&&_)&&!p||!(d&&_)&&C)return"";const j=async D=>{if(m){let w=qo(D,m,e||"default");t==null||t({name:n,value:w}),B(URL.createObjectURL(w))}else t==null||t({name:n,value:D}),B(URL.createObjectURL(D))},S={};return S.field="file",g&&(S.className=g),a.jsxs("dl",{...S,children:[i&&a.jsxs("dt",{children:[i," "]}),a.jsxs(Ho,{onFiles:j,children:[a.jsx("input",{id:y,type:"file",multiple:!0,onChange:D=>{D.target.files[0]&&j(D.target.files[0])}}),a.jsx("label",{htmlFor:y}),a.jsx("img",{src:M})]}),s&&a.jsx("em",{children:s})]})}const Ho=({children:e,onFiles:t})=>{const n=f.useRef(null);return f.useEffect(()=>{if(n.preventDefaults)return;n.preventDefaults=i=>{i.preventDefault(),i.stopPropagation()},n.highlight=i=>{console.log(i)},n.unhighlight=i=>{console.log(i)},n.onHandleDrop=i=>{let l=i.dataTransfer.files[0];t&&t(l)};let r=n.current;["dragenter","dragover","dragleave","drop"].forEach(i=>{r.addEventListener(i,n.preventDefaults,!1),document.body.addEventListener(i,n.preventDefaults,!1)}),["dragenter","dragover"].forEach(i=>{r.addEventListener(i,n.highlight,!1)}),["dragleave","drop"].forEach(i=>{r.addEventListener(i,n.unhighlight,!1)}),r.addEventListener("drop",n.onHandleDrop,!1)},[]),a.jsx("dd",{ref:n,children:e})},qo=(e,t,n)=>{var r=document.getElementsByTagName("body")[0],i=document.createElement("canvas");r.appendChild(i);const o=i.getContext("2d"),s=new Image;s.addEventListener("load",()=>{o.drawImage(s,0,0);const l=t==="png"?i.toDataURL():i.toDataURL(`image/${t}`),d=Vo(l,n);return i.remove(),d}),s.src=URL.createObjectURL(e)};function Vo(e,t){let n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,s=new Uint8Array(o);for(;o--;)s[o]=i.charCodeAt(o);return new File([s],t,{type:r})}const ke={};function Jo(e){const[t,n]=f.useState({}),r=f.useRef(e);return ke.u=i=>{r.current={...r.current,[i.name]:i.value}},ke.n=i=>{r.current=i,n(Date.now())},ke.r=()=>{n(Date.now())},[r.current,ke.n]}function Xo(e){ke.u(e),e.reload&&ke.r()}function Qo(){ke.r&&ke.r()}const es={Color:Mn,Date:jt,Mask:Zn,Image:Zn,Code:Tn,Check:An,Switch:Sn,Input:Ke,Button:En,Message:Dn,Generator:In,Captcha:Nn,Modal:St,Money:Et,Month:Ln,Notes:$n,Number:Dt,Password:Bn,Phone:Nt,Search:Fn,Select:Tt,Set:Lt,Textarea:Pn,Time:Rn,Users:Mt,String:Ke,Form:Lt,runReload:Qo,useData:Jo,setValue:Xo,Palette:Ko,Toogle:On,Group:zn,Options:Gn};function ts({value:e="",onValue:t,onSave:n,name:r,format:i="+_(___) ___-__-__",placeholder:o="",title:s="",error:l="",hide:d=!1,edit:_=!0,active:u=!0,after:p="",show:m=!0,view:x,className:b=""}){_=_!==void 0?_:!0,u=u!==void 0?u:!0,d=!!(d&&(e===""||e===void 0))&&!(_&&u),f.useRef(null);let g=i,y=!0,C=0,M=(N,F)=>{let Y=document.createRange(),ae=window.getSelection();Y.setStart(F.childNodes[0],N),Y.collapse(!0),ae.removeAllRanges(),ae.addRange(Y),F.focus()},B=N=>{N.preventDefault(),navigator.clipboard.readText().then(F=>{window.document.execCommand("insertText",!1,F)}).catch(F=>{console.log("Something went wrong",F)})},j=N=>{let F=0,Y="",ae=N.replace(/\D/g,"");ae===""&&(y=!0);let se=ae.split(""),ve="";se.forEach(it=>{y&&(ve+=it,y&&(C=(""+ve).length,g=i.replace(new RegExp("[0-9]","g"),"_"),Y=""),C>(""+ve).length&&(y=!0,g=i.replace(new RegExp("[0-9]","g"),"_"),Y=""))});let Me=g.replace(/\D/g,"");return Me.length>=ae.length&&(ae=Me),{q:g.replace(/[_\d]/g,function(){return ae.charAt(F++)||"_"}),i:F,v:ae,f:Y}},S=N=>{N.preventDefault(),navigator.clipboard.writeText(N.target.textContent.replace(/\D/g,"")).then(function(){Se.Copy("Данные в буфер обмене")},function(F){console.error("Async: Could not copy text: ",F)})},D=j(e),w=N=>{let F=j(N.target.textContent);N.target.textContent=F.q,F.i=F.q.lastIndexOf(F.v.substr(-1)),F.i<F.q.length&&F.q!==g?F.i++:F.i=F.q.indexOf("_"),M(F.i,N.target),t&&t({value:F.q.replace(/\D/g,""),name:r})},O=N=>{N.key==="Enter"&&N.preventDefault()};const L=N=>{le.Blur(N),n&&n({value:N.target.textContent.replace(/\D/g,""),name:r})},W={};W.field="input",b&&(W.className=b);let z={};return _&&u?(z.edit="true",z.contentEditable="plaintext-only"):z.contentEditable="false",o&&(z.placeholder=o),p&&(z.after=p),d?a.jsx(a.Fragment,{}):a.jsxs("dl",{...W,children:[s&&a.jsx("dt",{children:s}),a.jsx("dd",{...z,onPaste:B,onInput:w,onKeyDown:O,onContextMenu:S,onBlur:L,suppressContentEditableWarning:!0,children:D.q}),l&&a.jsx("em",{children:l})]})}const ns={Color:Mn,Date:jt,Code:Tn,Check:An,Switch:Sn,Input:Ke,Button:En,Message:Dn,Generator:In,Captcha:Nn,Modal:St,Money:Et,Mask:ts,Month:Ln,Notes:$n,Number:Dt,Password:Bn,Phone:Nt,Search:Fn,Select:Tt,Set:Lt,Textarea:Pn,Time:Rn,Users:Mt,String:Ke,Toogle:On,Group:zn,Options:Gn},Un={spinner:"_spinner_o487n_1",l:"_l_o487n_75",loadingB:"_loadingB_o487n_1"};function as(){return a.jsx("div",{className:Un.spinner,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 483 484",children:a.jsx("path",{d:"M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",transform:"translate(-9 -8)"})})})}function rs(){return a.jsxs("div",{className:Un.l,children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})}const is={Spinner:as,Inline:rs},Wn={s:"_s_t9swc_1"};let $t;function os({className:e,placeholder:t}){let n=s=>{$t(s.target.textContent)},r=s=>{s.key==="Enter"&&s.preventDefault()},i=s=>{s.preventDefault(),navigator.clipboard.readText().then(l=>{window.document.execCommand("insertText",!1,l)}).catch(l=>{console.log("Something went wrong",l)})};const o={};return t&&(o.placeholder=t),o.className=e?[Wn.s,e].join(" "):Wn.s,a.jsx("div",{onPaste:i,onInput:n,onKeyDown:r,contentEditable:"plaintext-only",...o,suppressContentEditableWarning:!0})}function ss(e,t,n){let r=[],i=1,o=0,s={},l=50;return s[i]=[],e.forEach(d=>{d.text.toLowerCase().indexOf(t)>-1&&r.push(d.id)}),r.forEach(d=>{o++,o<=l||(i++,o=1,s[i]=[]),s[i].push(n[d])}),s}function ls(e){$t=e}function ds(e){$t=e}const cs={Field:os,Run:ss,Get:ls,useValue:ds},_s={f:"_f_q3r0i_1"};let de={};function us(e,t){switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"data":let n={};return Object.keys(t.data).forEach(i=>{i!=="sort"&&(n[i]=t.data[i],e.take[i]="999")}),{...e,data:n,take:e.take};case"size":return{...e,size:t.size};case"take":let r={[t.list]:t.take};r={...e.take,...r},e.active=!1;for(let i in r)r[i]!=="999"&&(e.active=!0);return de.get(r,e.active),{...e,take:r,active:e.active};case"exit":for(let i in e.take)e.take[i]="999";return de.get&&de.get([],!1),{...e,size:0,active:!1,take:e.take,open:!1};default:throw new Error}}function fs(){const[e,t]=f.useReducer(us,{open:!1,view:null,data:{},take:{},size:0,active:!1});return de.set=n=>{t({type:"data",data:n})},de.count=n=>{t({type:"size",size:n})},de.reset=()=>{t({type:"exit"})},a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:_s.f,onClick:()=>{t({type:"open",open:!0})},children:[a.jsx(ni,{}),e.active&&a.jsxs("i",{children:[e.size,"1"]})]}),e.open?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"filter o",onClick:()=>{t({type:"open",open:!1})}}),a.jsxs("div",{className:"filter m",children:[a.jsx("div",{className:"filter l",children:Object.keys(e.data).map(n=>a.jsx(gs,{data:n,dispatch:t,state:e},n))}),a.jsx("div",{className:"filter b",onClick:()=>{t({type:"exit"})},children:"Убрать фильтер"})]})]}):a.jsx(a.Fragment,{})]})}function ms(e){de.get=e}function ps(e){de.set!==void 0&&de.set(e)}function hs(e){de.reset!==void 0&&de.reset(e)}function xs(e,t,n,r){let i=[],o=1,s=0,l={},d=50;return l[o]=[],r===!0&&(Object.keys(t).forEach(_=>{Number.parseInt(t[_])!==999&&(e=e.filter(u=>Number.parseInt(u[_])===Number.parseInt(t[_])))}),Kn(e.length)),e.forEach(_=>{i.push(_.id)}),i.forEach(_=>{s++,s<=d||(o++,s=1,l[o]=[]),l[o].push(n[_])}),l}function Kn(e){de.count(e)}function gs({data:e,state:t,dispatch:n}){let r=()=>{n({type:"view",view:e})},i=()=>{n({type:"take",list:e,take:"999"})};return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"filter s",children:[a.jsxs("div",{onClick:r,children:[" ",t.data[e].name," "]}),t.take[e]!=="999"?a.jsx("div",{onClick:i,className:"filter x","data-icon":"F038"}):""]}),a.jsx("div",{className:"filter u","set-active":(t.view===e)+"",children:Object.keys(t.data[e].list).map((o,s)=>a.jsx(vs,{data:t.data[e].list[o],head:e,type:o,dispatch:n,state:t},s))})]})}function vs({data:e,head:t,state:n,dispatch:r,type:i}){if(i!=="999"&&e.count===void 0)return"";const o=()=>{r({type:"take",list:t,take:i})};return a.jsxs("div",{className:"filter a",onClick:o,"set-active":(n.take[t]===i)+"",children:[e.name,a.jsx("div",{className:"filter e",children:e.count})]})}const bs={Button:fs,useValue:ms,Set:ps,Run:xs,Count:Kn,Reset:hs},ys={Bell:di,Send:oi,Add:ii},Yn={p:"_p_djnh1_1",l:"_l_djnh1_38"};function ws(e){let t=3,n=e.page,r=e.count,i=[],o=()=>{i.push({page:1}),i.push({text:"..."})},s=()=>{i.push({text:"..."}),i.push({page:r})},l=(d,_)=>{for(let u=d;u<_;u++)i.push({page:u})};return r<t*2+6?l(1,r+1):n<t*2+1?(l(1,t*2+4),s()):n>r-t*2?(t=r>1e4?1:t,o(),l(r-t*2-2,r+1)):(t=r>1e4?1:t,o(),l(n-t,n+t+1),s()),i.length===1?a.jsx(a.Fragment,{}):a.jsxs("div",{className:Yn.p,children:[a.jsx("i",{onClick:()=>e.onChangePage(n-1),children:a.jsx("svg",{viewBox:"0 0 24 24",children:a.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})}),i.map((d,_)=>{console.log(d,e);const u={};return d.page&&(u.onClick=()=>e.onChangePage(d.page)),d.page===e.page&&(u.active=""),f.createElement("span",{...u,key:_},d.page||d.text)}),a.jsx("i",{onClick:()=>e.onChangePage(n+1),children:a.jsx("svg",{viewBox:"0 0 24 24",children:a.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})})]})}function ks(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,data:t.data,list:t.data[e.page],size:Object.keys(t.data).length};case"page":return{...e,page:t.page,list:e.data[t.page]};default:throw new Error}}function Hn({load:e,list:t,item:n}){const r=f.useRef(null),[i,o]=f.useReducer(ks,{load:!1,list:[],data:{},page:1,wait:!1,item:n});console.log("load",e),f.useEffect(()=>{t!==null&&o({type:"load",load:e,data:t})},[e]);let s=l=>{if(l===0)return l=1;if(l>i.size)return l=i.size;o({type:"page",page:l})};return f.useEffect(()=>{},[i]),console.log(i),a.jsxs(a.Fragment,{children:[a.jsx("div",{className:Yn.l,ref:r,children:a.jsx(Cn,{"el-empty":"Данные не найдены",children:i.load&&i.list!==void 0?i.list.map(l=>a.jsx(i.item,{data:l},l.id)):a.jsxs("div",{"type-data":"load",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})})}),i.load&&i.list!==void 0?a.jsx(ws,{page:i.page,count:i.size,onChangePage:s}):a.jsx(a.Fragment,{})]})}const Cs={Pagination:Hn};function js({head:e,load:t,list:n,item:r}){const i=e;return a.jsxs(a.Fragment,{children:[a.jsx(i,{}),tt.getSetting("s05")===1?a.jsx(Hn,{list:n,load:t,item:r}):a.jsx(jn,{list:n,load:t,item:r})]})}function Ss(e,t){switch(t.type){case"load":return{...e,time:Date.now(),load:t.load,list:t.list,temp:t.temp};case"filter":return{...e,list:t.list,filter:t.active,band:t.band,time:Date.now()};case"search":return{...e,time:Date.now(),list:t.list};case"triage":return{...e,time:Date.now(),list:t.list,sort:t.sort};case"noload":return{...e,load:!0,time:Date.now()};default:throw new Error}}const Bt={};function Es(e){Bt.get=e}function Ds(e){Bt.get&&Bt.get(e)}const Is={View:js,Reducer:Ss,useValue:Es,setValue:Ds},Ns={addDictionary:Ki,getDictionary:qi,setDictionary:Hi,current:Vi},Ts={Get:mi},Ms=function({title:e,children:t,imp:n,button:r,page:i,tabs:o,modules:s}){const[l]=Ne.useTabs(i),[d,_]=f.useState(!1);return f.useEffect(()=>{_(!0)},[]),a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"list-info",children:[a.jsx("h2",{children:e}),a.jsx("div",{className:"empty"}),a.jsx($s,{button:r})]}),d&&a.jsx(Ls,{imp:n,modules:s,t:l}),t]})};let Ls=({modules:e,t})=>{const n=f.lazy(()=>ft(e+"/pages/"+t+".tsx"));return a.jsx(f.Suspense,{fallback:"",children:a.jsx(n,{})})},$s=({button:e})=>{const[t,n]=f.useState(e);return ge.useListener("button",n),a.jsxs(a.Fragment,{children:[" ",t]})};const Bs={Open:zi};function Fs({active:e,onActive:t,id:n,name:r}){const[i,o]=f.useState(!!e);f.useEffect(()=>{o(!!e)},[e]);let s=()=>{let l=i?0:1;o(!i),t&&t({value:l,is:!i,name:r,id:n,setActive:o})};return a.jsx("div",{role:"switch",onClick:s,"aria-checked":`${i?"true":"false"}`})}T.Action=yn,T.Alert=vo,T.Animation=Zr,T.Api=pt,T.Badge=Mo,T.Bookmarks=go,T.Browser=so,T.Button=cn,T.Company=Ts,T.Component=gt,T.DataBase=Bo,T.Event=ge,T.Events=ge,T.Files=Ao,T.Filter=bs,T.Form=es,T.Format=K,T.HotKey=Fo,T.Icon=yo,T.Init=vn,T.Input=ns,T.Lang=Ns,T.List=Is,T.Loading=is,T.Modal=Ue,T.Notice=Se,T.Notifications=ys,T.Pagination=Cs,T.Phone=Bs,T.Router=Ne,T.Scrolling=jn,T.Search=cs,T.Setting=xo,T.Sistym=Fe,T.Socket=me,T.Store=te,T.Switch=Fs,T.Tabs=bn,T.Test=Ms,T.Triage=Io,T.User=tt,T.WebRTC=U,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|
|
31
|
+
<%s key={someKey} {...props} />`,Wt,De,dl,De),ca[De+Wt]=!0}}return c===r?rl(J):al(J),J}}function il(c,v,k){return _a(c,v,k,!0)}function ol(c,v,k){return _a(c,v,k,!1)}var sl=ol,ll=il;Ae.Fragment=r,Ae.jsx=sl,Ae.jsxs=ll}()),Ae}process.env.NODE_ENV==="production"?ht.exports=xr():ht.exports=gr();var a=ht.exports;function vr(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let n={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const r in n)t=t.replace(r,n[r]);return t}function br(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],n=new Date(e);return{day:(""+n.getFullYear()).slice(-2)+""+("0"+(n.getMonth()+1)).slice(-2)+("0"+n.getDate()).slice(-2),name:n.getDate()+" "+t[n.getMonth()]}}const yr=e=>{function t(M,B){var j,D,S;M=M??"",B=B??1;for(var j=[],S=0,D=M.length;S<D;)j.push(M.slice(S,S+=B));return j}function n(M,B){var j=[2,0,1,1,1,2];return B[M>4&&M<20?2:j[Math.min(M,5)]]}var r={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},i,o,s,l,g,d,_,h,u,p,m,x;u=parseFloat(e).toFixed(2).split("."),d=u[0],l=u[1];var b=12-d.length;if(b<0)return!1;for(var h=[];b--;)h.push("0");d=h.join("")+d;var g=[];if(d>0){p=t(d,3);for(var y=-1;y<p.length;y++)if(_=p[y],_>0&&(m=t(_,1),i=parseInt(m[0]),o=parseInt(m[1]),s=parseInt(m[2]),g.push(r.a100[i-1]),x=y+1==3?"a2":"a1",o>1?g.push(r.a20[o-2]+(s>0?" "+r[x][s-1]:"")):g.push(o>0?r.a10[s]:r[x][s-1]),p.length>y+1)){var C=r["u"+(y+1)];g.push(n(_,C))}}else g.push(r.null);return g.push(n(d,r.ur)),g.push(l+" "+n(l,r.uc)),g.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function wr(e){let t=-1,n=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+n[t]}function kr(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function Cr(e,t,n,r){let i={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var s in this.rules)for(var l in this.rules[s])for(var d=0,_=this.rules[s][l].length;d<_;d++)this.rules[s][l][d]=this.rule(this.rules[s][l][d])},rule:function(s){var l=s.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return l?{sex:l[1],test:l[2].split(","),mods:[l[3],l[4],l[5],l[6],l[7]]}:!1},word:function(s,l,d,_){if(_===this.gcaseNom)return s;if(s.match(/[-]/)){for(var u=s.split("-"),p=0,m=u.length;p<m;p++)u[p]=this.word(u[p],l,d,_);return u.join("-")}if(s.match(/^[А-ЯЁ]\.?$/i))return s;this.init();var x=this.rules[d];let b;return x.exceptions&&(b=this.pick(s,l,_,x.exceptions,!0),b)?b:(b=this.pick(s,l,_,x.suffixes,!1),b||s)},pick:function(s,l,d,_,u){let p=s.toLowerCase();for(var m=0,x=_.length;m<x;m++)if(this.ruleMatch(p,l,_[m],u))return this.applyMod(s,d,_[m]);return!1},ruleMatch:function(s,l,d,_){if(d.sex===this.sexM&&l===this.sexF||d.sex===this.sexF&&l!==this.sexF)return!1;for(var u=0,p=d.test.length;u<p;u++){var m=_?s:s.substr(Math.max(s.length-d.test[u].length,0));if(m===d.test[u])return!0}return!1},applyMod:function(s,l,d){let _;switch(l){case this.gcaseNom:_=".";break;case this.gcaseGen:_=d.mods[0];break;case this.gcaseDat:_=d.mods[1];break;case this.gcaseAcc:_=d.mods[2];break;case this.gcaseIns:_=d.mods[3];break;case this.gcasePos:_=d.mods[4];break}for(var u=0,p=_.length;u<p;u++){var m=_.substr(u,1);switch(m){case".":break;case"-":s=s.substr(0,s.length-1);break;default:s+=m}}return s},getSex:()=>{if(i.mn.length>2)switch(i.mn.substr(i.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:s=>((i.fullNameSurnameLast?"":i.lastName(s)+" ")+i.firstName(s)+" "+i.middleName(s)+(i.fullNameSurnameLast?" "+i.lastName(s):"")).replace(/^ +| +$/g,""),lastName:s=>i.word(i.ln,i.sex,"lastName",s),firstName:s=>i.word(i.fn,i.sex,"firstName",s),middleName:s=>i.word(i.mn,i.sex,"middleName",s)};if(typeof t>"u"){var o=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!o)return"Cannot parse supplied name";o[5]&&o[3].match(/(ич|на)$/)&&!o[5].match(/(ич|на)$/)?(e=o[5],t=o[1],n=o[3],i.fullNameSurnameLast=!0):(e=o[1],t=o[3],n=o[5])}return i.ln=e,i.fn=t||"",i.mn=n||"",i.sex=r||i.getSex(),i}function jr(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Sr(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Er(e,t){return t&&(e=Number(e)/t),parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Dr(e,t){let n=t+"";for(;n.length<e;)n="0"+n;return n}function Ir(e,t,n){let r=t/e*n;return(typeof r!="number"||r===1/0)&&(r=0),parseFloat(r).toFixed(1)}function Nr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Tr(e,t){e=Math.abs(e)%100;let n=e%10;return e>10&&e<20?t[2]:n>1&&n<5?t[1]:n===1?t[0]:t[2]}function Mr(e,t,n){return xe(e,t)?xe(e,t).n:n||""}function $r(e,t,n,r){return xe(e,t)?xe(e,t)[n]:r||""}function Lr(e,t){return t&&(e=e===0?7:e),{1:{name:"Понедельник",names:"Понедельника",abc:"пн"},2:{name:"Вторник",names:"Вторника",abc:"вт"},3:{name:"Среда",names:"Среды",abc:"ср"},4:{name:"Четверг",names:"Четверга",abc:"чт"},5:{name:"Пятница",names:"Пятницы",abc:"пт"},6:{name:"Суббота",names:"Субботы",abc:"сб"},7:{name:"Воскресенье",names:"Воскресенья",abc:"вс"}}[e]}function Br(e,t){return e.reduce(function(n,r){let i=t instanceof Function?t(r):r[t];return n[i]!==void 0||(n[i]={}),n[i][r.id]=r,n},{})}function Fr(e){return parseInt((Date.now()-new Date(e).getTime())/31536e6+"")+""}function Pr(e){return typeof e!="string"?!1:!isNaN(Number(e))&&!isNaN(parseFloat(e))}function Rr(e){var t="",n={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"e",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ь:"",ы:"y",ъ:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"E",Ж:"Zh",З:"Z",И:"I",Й:"Y",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"H",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sch",Ь:"",Ы:"Y",Ъ:"",Э:"E",Ю:"Yu",Я:"Ya"};for(let r=0;r<e.length;++r)n[e[r]]==null?t+=e[r]:t+=n[e[r]];return t}function Ar(e,t,n=!1){return n?e.sort((r,i)=>i[t]-r[t]):e.sort((r,i)=>r[t]-i[t])}function Or(e,t){return e.reduce(function(n,r){let i=t instanceof Function?t(r):r[t];return n[i]!==void 0||(n[i]={}),n[i][r.id]=r,n},{})}function zr(e,t,n=!1){return n?e.sort((r,i)=>new Date(i[t]).getTime()-new Date(r[t]).getTime()):e.sort((r,i)=>new Date(r[t]).getTime()-new Date(i[t]).getTime())}function Gr(e,t){return e.reduce((n,r)=>n+(r[t]||0),0)}function Zr(e,t,n,r=!1){return r?e.sort((i,o)=>n(o[t])-n(i[t])):e.sort((i,o)=>n(i[t])-n(o[t]))}const K={Age:Fr,ArraySort:Ar,ArrayGroup:Or,ArraySortDate:zr,ArraySortFunction:Zr,ArraySumma:Gr,Translit:Rr,Date:vr,MoneyString:yr,DateSort:br,Size:wr,TypeFiles:kr,Cases:Cr,Initials:jr,Month:Sr,Money:Er,Number:Dr,Percent:Ir,CapitalizeFirstLetter:Nr,DeclensionWord:Tr,Select:Mr,SelectParams:$r,ObjectByArray:Br,isNumeric:Pr,Week:Lr},Ur={Counter:({before:e,from:t=0,to:n})=>{const r=f.useRef();return f.useEffect(()=>{r.n=0;let s=Math.round(1e3/(n/10)),l=setInterval(()=>{r.n=r.n+10,r.n>=n&&clearInterval(l);let d=e?e+" ":"";r.current.textContent=`${d}`+K.Money(r.n)},s)},[t,n]),a.jsx("span",{ref:r})}},Wr={notice:"_notice_9i5tr_2",error:"_error_9i5tr_9",success:"_success_9i5tr_12",remark:"_remark_9i5tr_15",copy:"_copy_9i5tr_18","show-notice":"_show-notice_9i5tr_1","hide-notice":"_hide-notice_9i5tr_1"};let be={};function Kr(){let[e,t]=f.useState([]);return be.set=n=>{t([...e,n])},be.del=n=>{t(e.filter(r=>r.key!==n))},e.length===0?"":a.jsx("ul",{className:Wr.notice,children:e.map(n=>n.item)})}function Oe({data:e}){let[t,n]=f.useState("show");f.useEffect(()=>{setTimeout(function(){n("hide")},1800),setTimeout(function(){be.del(e.key)},2500)},[e.key]);let r,i;switch(e.type){case"error":r=a.jsx(je.error,{}),i="Ошибка:";break;case"success":r=a.jsx(je.success,{}),i="Информация:";break;case"copy":r=a.jsx(je.success,{}),i="Копирование:";break;case"remark":r=a.jsx(je.success,{}),i="Подсказка:";break;default:r=a.jsx(je.success,{}),i="Предупреждение:";break}return a.jsxs("li",{className:"item "+e.type,"data-status":t,children:[r,a.jsx("b",{children:i}),a.jsx("p",{children:e.text})]})}function Yr(e){let t=Date.now(),n={key:t,...e};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function Hr(e){let t=Date.now(),n={key:t,text:e,type:"error"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function qr(e){let t=Date.now(),n={key:t,text:e,type:"success"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function Vr(e){let t=Date.now(),n={key:t,text:e,type:"remark"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}function Jr(e){let t=Date.now(),n={key:t,text:e,type:"copy"};be.set({item:a.jsx(Oe,{data:n},t),key:t})}const je={};je.error=()=>a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),a.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),je.success=()=>a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),a.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const xt={alerts:"_alerts_1pds5_1",menuAnimation:"_menuAnimation_1pds5_1",menuItemAnimation:"_menuItemAnimation_1pds5_1","--body":"_--body_1pds5_103",allert:"_allert_1pds5_111","--form":"_--form_1pds5_111",al:"_al_1pds5_1"};let ze={};function Xr(){let[e,t]=f.useState("");return ze.set=n=>t(n),ze.del=()=>t(""),a.jsx(a.Fragment,{children:e})}const Qr=({data:e,callback:t,cancel:n})=>(e.button=e.button===void 0?"Подтвердить":e.button,a.jsxs("div",{className:xt.alerts,children:[a.jsxs("dl",{children:[a.jsx("dt",{children:e.title}),a.jsx("dd",{children:e.text}),a.jsx("ul",{children:a.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),ze.del()},children:e.button})})]}),a.jsx("div",{className:xt["--body"],onClick:()=>{n==null||n(),ze.del()}})]}));function ei(e,t,n){ze.set(a.jsx(Qr,{data:e,callback:t,cancel:n}))}const Se={Send:Yr,Error:Hr,Remark:Vr,Success:qr,Copy:Jr},Ne={Path:La,setPage:wa,getPage:qt,usePage:ya,isPage:ka,setModule:ja,getModule:Vt,useModule:Ca,isModule:Sa,setTabs:Da,getTabs:Je,useTabs:Ea,isTabs:Ia,useId:Na,setId:Ma,subId:Ta,getId:Jt,isId:$a};function ti(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M5.15837 11.491C5.08489 12.887 5.16936 14.373 3.92213 15.3084C3.34164 15.7438 3 16.427 3 17.1527C3 18.1508 3.7818 19 4.8 19H19.2C20.2182 19 21 18.1508 21 17.1527C21 16.427 20.6584 15.7438 20.0779 15.3084C18.8306 14.373 18.9151 12.887 18.8416 11.491C18.6501 7.85223 15.6438 5 12 5C8.35617 5 5.34988 7.85222 5.15837 11.491Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),a.jsx("path",{d:"M10.5 3.125C10.5 3.95343 11.1716 5 12 5C12.8284 5 13.5 3.95343 13.5 3.125C13.5 2.29657 12.8284 2 12 2C11.1716 2 10.5 2.29657 10.5 3.125Z",stroke:"currentColor",strokeWidth:"1",fill:"none"}),a.jsx("path",{d:"M15 19C15 20.6569 13.6569 22 12 22C10.3431 22 9 20.6569 9 19",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function ni(){return a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[a.jsx("path",{d:"M4.4094 11.4516C4.62188 7.41446 7.95728 4.25 12 4.25C16.0427 4.25 19.3781 7.41446 19.5906 11.4516C19.5997 11.6241 19.6064 11.7893 19.6129 11.9485C19.6351 12.49 19.6544 12.9615 19.7525 13.4133C19.8698 13.9531 20.0867 14.3775 20.5279 14.7084C21.2972 15.2854 21.75 16.191 21.75 17.1527C21.75 18.534 20.6628 19.75 19.2 19.75H4.8C3.33719 19.75 2.25 18.534 2.25 17.1527C2.25 16.191 2.70278 15.2854 3.47213 14.7084C3.91329 14.3775 4.13025 13.9531 4.24749 13.4133C4.34561 12.9615 4.3649 12.49 4.38705 11.9485V11.9485L4.38705 11.9485C4.39356 11.7893 4.40032 11.6241 4.4094 11.4516Z",fill:"#141B34"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5286 1.37434C10.9737 1.08296 11.517 1 12 1C12.483 1 13.0263 1.08296 13.4714 1.37434C13.9652 1.69759 14.25 2.22083 14.25 2.875C14.25 3.47116 14.017 4.09375 13.6626 4.57057C13.3138 5.03989 12.7415 5.5 12 5.5C11.2585 5.5 10.6862 5.03989 10.3374 4.57057C9.98299 4.09375 9.75 3.47116 9.75 2.875C9.75 2.22083 10.0348 1.69759 10.5286 1.37434Z",fill:"#141B34"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9.55228 18 10 18.4477 10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 18.4477 14.4477 18 15 18C15.5523 18 16 18.4477 16 19C16 21.2091 14.2091 23 12 23C9.79086 23 8 21.2091 8 19C8 18.4477 8.44772 18 9 18Z",fill:"#141B34"})]})}function ai(){return a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M8.85746 12.5061C6.36901 10.6456 4.59564 8.59915 3.62734 7.44867C3.3276 7.09253 3.22938 6.8319 3.17033 6.3728C2.96811 4.8008 2.86701 4.0148 3.32795 3.5074C3.7889 3 4.60404 3 6.23433 3H17.7657C19.396 3 20.2111 3 20.672 3.5074C21.133 4.0148 21.0319 4.8008 20.8297 6.37281C20.7706 6.83191 20.6724 7.09254 20.3726 7.44867C19.403 8.60062 17.6261 10.6507 15.1326 12.5135C14.907 12.6821 14.7583 12.9567 14.7307 13.2614C14.4837 15.992 14.2559 17.4876 14.1141 18.2442C13.8853 19.4657 12.1532 20.2006 11.226 20.8563C10.6741 21.2466 10.0043 20.782 9.93278 20.1778C9.79643 19.0261 9.53961 16.6864 9.25927 13.2614C9.23409 12.9539 9.08486 12.6761 8.85746 12.5061Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}const ri={n:"_n_euuvm_1"};let Ge={},Ze=[];const ii=(e,t)=>{switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"add":return{...e,news:[...e.news,t.data],active:!0};case"news":return{...e,news:t.data,active:t.data.length!==0};case"hide":let n=e.news.filter(i=>i.id!==t.id);return{...e,news:n,active:n.length!==0};case"size":return{...e,size:t.size};case"take":let r={[t.list]:t.take};r={...e.take,...r},e.active=!1;for(let i in r)r[i]!=="999"&&(e.active=!0);return Ge.get(r,e.active),{...e,take:r,active:e.active};case"exit":return e;default:throw new Error}};function oi(e){Ge.fn({action:"add",data:e})}function si(e){Ge.fn({action:"add",data:e})}function li(e){Ge.fn({action:"new",data:e})}function di(e){Ge.fn=e}function ci(){const[e,t]=f.useReducer(ii,{open:!1,active:!1,news:[],take:{}});me.useListener("bell",async r=>{console.log(r)}),di(async r=>{switch(console.log(r),r.action){case"add":Ze.push(r.data);break}}),f.useEffect(()=>{(async()=>{let r=await me.Send({type:"module",module:"M00",query:"x0054",array:["M01","M02"]});console.log(r);for(let i in r)switch(i){case"news":t({type:"news",data:r.news});break;case"M01":r[i].forEach(o=>{Ze.push({module:"M01",type:1,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break;case"M02":r[i].forEach(o=>{Ze.push({module:"M02",type:117,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break}})(),setInterval(()=>{Ze.forEach((r,i)=>{t({type:"add",data:{module:r.module,type:r.type,id:r.id,datetime:r.datetime,txt:r.title}}),r.datetime<new Date().getTime()&&Ze.splice(i,1)})},6e4)},[]);let n=async r=>{t({type:"hide",id:r.id})};return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:ri.n,onClick:()=>{t({type:"open",open:!0})},children:e.active?a.jsx(ni,{}):a.jsx(ti,{})}),e.open?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"notify-o",onClick:()=>{t({type:"open",open:!1})}}),a.jsxs("div",{className:"notify-m",children:[a.jsx("div",{className:"notify-l",children:e.news.map((r,i)=>a.jsx(_i,{data:r,dispatch:t},i))}),a.jsx("div",{className:"notify-b",onClick:n,children:"История"})]})]}):""]})}const _i=({data:e,dispatch:t})=>{let n=async r=>{console.log(r),t({type:"hide",id:r.id});let i=await me.Send({type:"module",module:"M00",query:"x0055",data:{id:r.id,type:r.type,db:r.db}});console.log(i)};return a.jsxs("div",{className:"notify-i",children:[a.jsx("div",{className:"--icon","data-icon":e.type}),a.jsxs("div",{className:"--body",children:[a.jsx("div",{className:"--name",children:e.type}),a.jsx("div",{className:"--text",children:e.txt})]}),a.jsx("div",{className:"--hide","data-icon":"F038",onClick:()=>n(e),children:" "})]})},ui="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function fi(e){return new SharedWorker("data:text/javascript;base64,"+ui,{name:e==null?void 0:e.name})}function mi(e){let t={},n={};e.data.forEach(i=>{t[i.id]={s:i.v,n:i.a},n[i.id]=i});let r={...xe(),901:t};en(n),Be(r)}function pi(){let e=tn(),t={};return Object.keys(e).forEach(n=>{t[e[n].id]={},t[e[n].id].name=e[n].a}),t}let ue={},Q={},Xe=["filter","online","users","company","select","setting","info","job"];function hi(){const[e,t]=f.useState(!1),[n,r]=f.useState(!1);function i(o){const s=new fi;ue.laodData=l=>{let d=Xe.indexOf(l);d>=0&&Xe.splice(d,1),Xe.length===0&&t(!0)},ue.send=l=>{s.port.postMessage({type:"send",json:l})},s.port.onmessage=l=>{let d=l.data;d.type==="error"&&r(!0),d.type==="true"&&t(!0),d.type==="closed"&&s.port.postMessage({type:"connect",ukey:o,lk:_t()}),Xe.length!==0&&ue.laodData(d.type),Q[d.type]&&Q[d.type](d)},s.port.postMessage({type:"connect",ukey:o,lk:_t()})}return[i,e,n]}Q.module=e=>{ue[e.listen]!==void 0&&(ue[e.listen](e),delete ue[e.listen])},Q.bell=li,Q.company=mi,Q.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),nn(t),Xt(e.data.menu)},Q.version=async e=>{Fe.version.Server(e.data)},Q.online=async e=>{},Q.offline=async e=>{},Q.chat=e=>{switch(console.log(e.data.action),e.data.action){case"new_message":Ne.getModule();break;case"view_message":Ne.getModule();break;case"write_message":Ne.getModule();break}console.log(e)},Q.users=e=>{console.log("users",e);let t={};e.data.forEach(r=>{let i=r.p01+" "+r.p02+" "+r.p03,o=r.p01+" "+r.p02.substring(0,1)+"."+r.p03.substring(0,1)+".",s=r.p01.substring(0,1)+""+r.p02.substring(0,1)+r.p03.substring(0,1);t[r.id]={id:r.id,admin:r.m.includes("99"),ava:JSON.parse(r.a),job:r.j,login:"",online:{time:r.o,status:0},sts:r.s,nameFull:i,name:o,number:s}});let n={...xe(),user:t};Be(n)},Q.api=e=>{let t={};e.data.forEach(n=>{t[n.api]={key:n.key,p01:n.p01,p02:n.p02}})},Q.delete=()=>{ie()},Q.select=e=>{let t={...xe()};e.data.forEach(n=>{t[n.n]=JSON.parse(n.s)}),Be(t)},Q.job=e=>{let t={...xe()},n={};Object.keys(e.data).forEach(r=>{n[r]={s:1,n:e.data[r]}}),t[1]=n,Be(t)},Q.setting=e=>{Ba(e.data)},Q.app=()=>{};const xi=(e,t)=>{ue[e]=t},gi=(e,t)=>{ue[e](t)};function vi(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(n=>{ue[t]=r=>{r.error!==void 0?n({error:r.error}):n(r.data),delete ue[t]},e={...e,listen:t},e.type="modules",ue.send(e)})}const me={useConnect:hi,useListener:xi,setListener:gi,Send:vi};function bi({children:e}){return a.jsx("div",{className:"l",children:a.jsx("ul",{children:e})})}const oe={white:"_white_swayt_14",black:"_black_swayt_26",shake:"_shake_swayt_1",modal:"_modal_swayt_73",o:"_o_swayt_83",w:"_w_swayt_14",h:"_h_swayt_107",l:"_l_swayt_121",t:"_t_swayt_159",m:"_m_swayt_73",x:"_x_swayt_167",s:"_s_swayt_177",c:"_c_swayt_182",f:"_f_swayt_187",g:"_g_swayt_230","size-a":"_size-a_swayt_279","size-s":"_size-s_swayt_283","size-m":"_size-m_swayt_287","size-l":"_size-l_swayt_291","size-x":"_size-x_swayt_295","size-f":"_size-f_swayt_299",active:"_active_swayt_348",coincidence:"_coincidence_swayt_354",sa:"_sa_swayt_390",ss:"_ss_swayt_394",sm:"_sm_swayt_398",sl:"_sl_swayt_402",sx:"_sx_swayt_406",sf:"_sf_swayt_410",btn:"_btn_swayt_416"};function yi({children:e}){return a.jsx("div",{className:oe.s,children:e})}function wi({children:e,className:t}){let n={};return t&&(n.className=t),a.jsx("div",{"data-form":"outline",className:[oe.f,n.className].join(" "),children:a.jsx("ul",{children:e})})}function ki({children:e}){return a.jsx("div",{className:oe.c,children:e})}const Qe={btn:"_btn_1d6a6_6",confirm:"_confirm_1d6a6_20",cancel:"_cancel_1d6a6_25",disabled:"_disabled_1d6a6_30",await:"_await_1d6a6_37",m:"_m_1d6a6_44",l:"_l_1d6a6_48"};function _n({onClick:e,onSend:t,size:n="m",view:r="confirm",mode:i="primary",className:o,label:s,onRef:l}){let[d,_]=f.useState(!1);const u=p=>{if(e)return e();d||(t?(_(!0),t(_)):p.preventDefault())};return a.jsx("button",{ref:l,className:[Qe.btn,d?Qe.disabled:Qe[r],n&&Qe[n],o].join(" "),onClick:u,children:d?"Ожидайте":s})}let et={};function Ci(){let[e,t]=f.useState([]);return et.x=n=>{n||t([])},et.add=n=>{t([...e,n])},a.jsx(a.Fragment,{children:e.map(n=>n)})}function ji({title:e,children:t,button:n,tabs:r,size:i="m",menu:o}){const[s,l]=f.useState(!0),d=f.useRef(),_=p=>{if(n){if(n.onClick)return p(!1),n.onClick({setOpen:l});if(n.onSend)return n.onSend({setOpen:l,disabled:p})}},u=()=>{d.current.setAttribute("shake",!0),setTimeout(()=>{d.current.setAttribute("shake",!1)},1e3)};return a.jsx(a.Fragment,{children:s?a.jsxs("div",{className:`${oe.modal} ${oe.white}`,children:[a.jsx("div",{className:oe.o,onClick:u}),a.jsxs("div",{className:[oe.w,oe[`s${i}`]].join(" "),ref:d,children:[a.jsxs("div",{className:oe.h,children:[a.jsx("div",{className:oe.t,children:e}),a.jsxs("div",{className:oe.m,children:[r&&a.jsx("nav",{children:r.map((p,m)=>a.jsx("span",{onClick:p.onClick,className:p.active?"active":"",children:p.name},m))}),o]}),a.jsx("div",{className:oe.x,onClick:()=>{l(!1)},children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t,n!==void 0?a.jsx(_n,{label:n.label,onSend:_,className:oe.btn}):""]})]}):""})}function Si(e){et.add(a.jsx(Ei,{children:e},String(Date.now())))}function Ei({children:e}){return a.jsx(a.Fragment,{children:e})}function Di(e){if(e.target.classList[0]!=="modal")return;let t=e.target.children[0];t.setAttribute("shake",!0),setTimeout(()=>{t.setAttribute("shake",!1)},1e3)}function Ii({type:e,name:t,params:n}){let[r,i]=f.useState(null);return f.useEffect(()=>{ft(`${e}/modal/${t}.tsx`).then(o=>{i(o.default.Icon(n))})},[n.id]),a.jsx(a.Fragment,{children:r})}function Ni(e,t,n){ft(`${e}/modal/${t}.tsx`).then(r=>{r.default.Open(n)})}function Ti(e){et.x(e)}const Ue={List:bi,Scroll:yi,Main:ji,Add:Si,Icon:Ii,Open:Ni,Shake:Di,Form:wi,Center:ki,Close:Ti};function un({text:e,type:t,button:n}){let[r,i]=f.useState(!1),o={active:t};const s=()=>{if(n){if(n.onClick)return n.onClick({});if(n.onSend)return r?void 0:(i(!0),n.onSend(i))}};return a.jsxs("div",{className:xt.al,...o,children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",clipRule:"evenodd",children:a.jsx("path",{fill:"#fff",d:"M10.362 2.015C11.4264 1.66167 12.5736 1.66167 13.638 2.015C14.6981 2.36687 15.5304 3.20141 16.3665 4.37395C17.1999 5.5426 18.1208 7.17206 19.3078 9.2725L19.3544 9.35496C20.5417 11.4557 21.4625 13.0851 22.0364 14.4065C22.613 15.7343 22.9002 16.8807 22.6711 17.9821C22.4403 19.0911 21.8714 20.0995 21.0428 20.8617C20.2162 21.622 19.0907 21.9428 17.6736 22.0968C16.2645 22.25 14.4212 22.25 12.0488 22.25H11.9513C9.57882 22.25 7.73554 22.25 6.32642 22.0968C4.90927 21.9428 3.78379 21.622 2.95722 20.8617C2.12862 20.0995 1.55968 19.0911 1.32895 17.9821C1.0998 16.8807 1.387 15.7343 1.96365 14.4065C2.53752 13.0851 3.45835 11.4557 4.64558 9.35495L4.69218 9.2725L4.69218 9.27249C5.87921 7.17206 6.80008 5.5426 7.63347 4.37395C8.46963 3.20141 9.30194 2.36687 10.362 2.015ZM11 17C11 16.4477 11.4457 16 11.9955 16H12.0045C12.5543 16 13 16.4477 13 17C13 17.5523 12.5543 18 12.0045 18H11.9955C11.4457 18 11 17.5523 11 17ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V9C13 8.44772 12.5523 8 12 8C11.4477 8 11 8.44772 11 9V13Z"})}),a.jsx("span",{children:e}),n&&a.jsx("button",{onClick:s,children:n.label})]})}const ne={h:"_h_1usnu_1",g:"_g_1usnu_11",hr:"_hr_1usnu_16",hl:"_hl_1usnu_28",t:"_t_1usnu_40",s:"_s_1usnu_60",u:"_u_1usnu_69",o:"_o_1usnu_76",l:"_l_1usnu_105",hh:"_hh_1usnu_115",c:"_c_1usnu_128",loadingB:"_loadingB_1usnu_1",m:"_m_1usnu_180",ul:"_ul_1usnu_196",f:"_f_1usnu_226"},fn=({title:e,left:t,right:n,children:r})=>a.jsxs("div",{className:ne.h,children:[a.jsx("div",{className:ne.t,children:e}),t&&a.jsx("div",{className:ne.hl,children:t}),n&&a.jsx("div",{className:ne.hr,children:n}),r]}),mn=({children:e,...t})=>a.jsx("div",{className:ne.l,children:e}),pn=({children:e})=>a.jsx("div",{className:ne.s,children:e}),hn=({children:e,edit:t})=>{const n={};return t&&(n.edit=""),console.log(n),a.jsx("div",{...n,className:ne.f,children:e})};function xn({children:e}){return a.jsx("div",{className:ne.g,children:e})}const gt={Header:fn,Section:pn,Group:xn,Form:hn,List:mn,A:un,U:({children:e})=>a.jsx("div",{className:ne.u,children:e}),G:xn,C:({children:e})=>a.jsx("div",{className:ne.c,children:e}),L:mn,O:({children:e,className:t,title:n})=>a.jsxs("div",{className:[ne.o,t].join(" "),children:[n&&a.jsx("div",{className:ne.hh,children:n}),e]}),S:pn,H:fn,M:({children:e})=>a.jsx("div",{className:ne.m,children:e}),F:hn},Mi=(e,t)=>{switch(t.type){case"load":return{...e,list:t.list.reverse(),load:!1};case"id":return{...e,id:t.id};case"add":return{...e,list:[t.data,...e.list]};case"update":return{...e,list:e.list.map(n=>n.id===t.data.id?Object.assign({},n,{[t.data.name]:t.data.value}):n),temp:e.temp.map(n=>n.id===t.data.id?Object.assign({},n,{[t.data.name]:t.data.value}):n)};case"view":return{...e,view:e.view==="card"?"item":"card"};case"revers":return{...e,list:[...e.list.reverse()],temp:[...e.temp.reverse()],revers:!e.revers};case"delete":return{...e,list:e.list.filter(n=>n.id!==t.id)};case"edit":return{...e,list:e.list.map(n=>n.id===t.j.item?Object.assign({},n,{[t.j.name]:t.j.value}):n)};default:return e}},$i=()=>({load:!0,list:[],name:"Файлы",add:!1,search:!1,revers:!0}),Li=()=>{let[e,t]=f.useState([]);return a.jsx(a.Fragment,{children:e.length!==0?a.jsxs("div",{className:"upload view",children:[a.jsxs("div",{className:"--head",children:[a.jsx("b",{children:"Загрузки"}),a.jsx("i",{className:"x",onClick:()=>t([]),"data-icon":"F038"})]}),a.jsx("div",{className:"--list",children:e.map(n=>n)})]}):""})},Bi=({id:e,name:t,listen:n,dir:r})=>{t=t||"Файлы";const[i,o]=f.useReducer(Mi,{},$i);console.log(n);const s=()=>{Ue.Add(a.jsx(Fi,{dir:r,dispatch:o,id:e},new Date().getTime()))};return f.useEffect(()=>{(async()=>{let l=await me.Send({type:"module",module:"M09",query:"x0900",data:{dir:r,id:e}});o({type:"load",list:l})})()},[e,r]),a.jsxs(gt.O,{children:[" ",a.jsx(gt.H,{title:t,right:a.jsx("i",{className:"f025","data-icon":"C005 25 pointer","data-color":"_b5b9cc :506290",onClick:s}),left:a.jsx("i",{className:"f025","data-icon":"E009 25","data-color":"_2196f3"})}),a.jsx("ul",{"data-empty":"Файлов нет",className:"files_list",children:i.load?a.jsxs("div",{"type-load":"load",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]}):i.list.length===0?a.jsx(a.Fragment,{}):i.list.map((l,d)=>a.jsx(Pi,{dispatch:o,data:l},d))})]})},Fi=({id:e,dir:t,dispatch:n})=>{let[r,i]=f.useState(!0),o=f.useRef(null),s=_=>{_.preventDefault(),_.stopPropagation()},l=_=>{},d=_=>{};return f.useEffect(()=>{let _=o.current;["dragenter","dragover","dragleave","drop"].forEach(u=>{_.addEventListener(u,s,!1),document.body.addEventListener(u,s,!1)}),["dragenter","dragover"].forEach(u=>{_.addEventListener(u,l,!1)}),["dragleave","drop"].forEach(u=>{_.addEventListener(u,d,!1)})},[]),a.jsx(a.Fragment,{children:r?a.jsx(a.Fragment,{children:a.jsx("div",{className:"modal o ",onClick:Ue.Shake,children:a.jsxs("div",{className:"b",children:[a.jsx("div",{className:"h",children:"Загрузка файлов"}),a.jsx("div",{className:"x","data-icon":"F038",onClick:()=>{i(!1)}}),a.jsxs("div",{className:"upload",ref:o,children:[a.jsx("input",{type:"file",id:"fileElem",name:"files",multiple:!0}),a.jsx("dd",{}),a.jsx("i",{"data-icon":"F061"})]})]})},new Date().getTime())}):""})},Pi=({data:e,dispatch:t})=>{let n=async()=>{let o=await(await fetch(pt.url().files+"/yandex/data/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:te.getSSID()||""}})).blob();if(o.size!==2){let s=new Blob([o],{type:o.type});s=URL.createObjectURL(s);let l=document.createElement("a");l.setAttribute("href",s),l.setAttribute("download",e.name),l.click()}},r=async()=>{(await(await fetch(pt.url().files+"/yandex/delete/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:te.getSSID()||""}})).json()).status==="success"&&(t({type:"delete",id:e.id}),Se.Send({type:"success",text:"Файл успешно удалён"}))};return a.jsxs("li",{children:[a.jsx("div",{className:"f035",children:K.TypeFiles(e.type)}),a.jsx("div",{className:"f100",children:K.Date(e.uDate,"dd.mm.yy")}),a.jsx("div",{className:"f000",children:e.name}),a.jsxs("div",{className:"f050 flex button",children:[a.jsx("i",{className:"f025","data-icon":"F060 35 pointer","data-color":"_b5b9cc :4CAF50",onClick:n}),a.jsx("i",{className:"f025","data-icon":"F048 35 pointer","data-color":"_b5b9cc :FF9800",onClick:r})]}),a.jsx("div",{className:"f080",children:K.Size(e.size)})]})},tt={setSetting:Fa,getSetting:Pa};let H={};H.list=Ka(),H.active=null;const Ri=()=>{var i;let[e,t]=f.useState([]),[n,r]=f.useState(tt.getSetting("s03"));return f.useEffect(()=>{(async()=>{let o=Object.keys(H.list);if(o.length!==0){let s=[];o.forEach((l,d)=>{s.push({item:a.jsx(vt,{data:H.list[l]},H.list[l].id),link:H.list[l].link})}),t(s)}})()},[]),H.active=o=>{var s;r(o),(s=document.querySelector("app-body"))==null||s.setAttribute("bookmarks",o===1?"bottom":"")},H.set=o=>{t([...e,{item:a.jsx(vt,{data:o},o.id),link:o.link}])},H.del=o=>{e.forEach((s,l)=>{s.link===o&&e.splice(l,1)}),t([...e])},(i=document.querySelector("app-body"))==null||i.setAttribute("bookmarks",n===1&&e.length!==0?"bottom":""),n!==0?a.jsx(a.Fragment,{children:e.length!==0?a.jsx("div",{className:"bookmarks",children:e.map(o=>o.item)}):""}):""},Ai=({id:e,type:t,name:n})=>{let r=t+"-"+e,[i,o]=f.useState(H.list[r]!==void 0);f.useEffect(()=>{o(H.list[r]!==void 0)},[r]);let s=()=>{H.list[r]!==void 0?(H.del(r),delete H.list[r],an(H.list),o(!1),Se.Send({type:"success",text:"Запись удален из закладок"})):(H.list[r]={id:e,name:n,type:t,link:r},H.set(H.list[r]),an(H.list),o(!0),Se.Send({type:"success",text:"Запись добавлен в закладки"}))};return a.jsx(a.Fragment,{children:tt.getSetting("s03")!==0?a.jsx("i",{"data-icon":"C018","data-color":i?"_F44333 :F44333":"_b5b9cc :F44333",onClick:s}):""})},vt=({data:e})=>{let t=r=>{r.preventDefault(),delete H.list[e.link],H.del(e.link)},n=()=>{Ne.setId(e.id)};return a.jsx("span",{onContextMenu:t,onClick:n,children:e.name})},Oi=e=>{H.active(e)},U={},bt={},E={};E.config={iceServers:[{url:"stun:stun.l.google.com:19302"}]},E.constraints={optional:[{DtlsSrtpKeyAgreement:!0}]},E.other=[],E.users={},E.asset=0,E.remoute=!1,E.stream=null,E.user=0,E.connect=!1,E.offer=null,E.btnRefuse=null,E.time=!1;let Ee;Ee=document.createElement("audio"),Ee.setAttribute("autoplay","true"),Ee.setAttribute("muted","true"),U.start=async e=>{E.rtc=new RTCPeerConnection(E.config),E.other=[],E.remoute=!1,E.rtc.onicecandidate=n=>{n.candidate&&E.other.push(n.candidate)},E.rtc.ontrack=n=>{if(n.streams&&n.streams[0])Ee.srcObject=n.streams[0];else{console.log(!1);let r=new MediaStream(n.track);Ee.srcObject=r}};const t=await navigator.mediaDevices.getUserMedia({video:!1,audio:{echoCancellation:!1,autoGainControl:!0}});t.getTracks().forEach(n=>{E.rtc.addTrack(n,t)}),E.rtc.onconnectionstatechange=()=>{console.log(E.rtc.connectionState),E.rtc.connectionState},E.rtc.ontrack=async n=>{if(n.streams&&n.streams[0])Ee.srcObject=n.streams[0];else{console.log(!1);let r=new MediaStream(n.track);Ee.srcObject=r}},E.rtc.onaddstream=n=>{console.log(n)},E.rtc.onnegotiationneeded=n=>{console.log(n)},E.rtc.oniceconnectionstatechange=n=>{console.log(n.target)},E.rtc.onsignalingstatechange=n=>{console.log(n.target.connectionState)},E.rtc.onicegatheringstatechange=n=>{console.log(n)},E.rtc.onicecandidateerror=n=>{console.log(n)},E.rtc.ondatachannel=n=>{console.log(n)},console.log(E.rtc),E.rtc.onerror=n=>{console.log("error",n)},e()},U.useListener=e=>{bt.rtc=e},U.setListener=e=>{bt.rtc&&bt.rtc(e)},U.callTo=async e=>{U.start(async()=>{const t=await E.rtc.createOffer();await E.rtc.setLocalDescription(t),E.uid=e,me.Send({type:"module",module:"M00",query:"x0050",data:{type:"offer",offer:btoa(JSON.stringify(t)),user:E.uid}})})},U.callIn=async e=>{console.log("callIn"),E.asset=e.id,E.offer=e.offer,E.uid=e.id},U.callRise=async()=>{U.start(async()=>{E.rtc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(E.offer))));const e=await E.rtc.createAnswer();await E.rtc.setLocalDescription(e),me.Send({type:"module",module:"M00",query:"x0050",data:{type:"answer",answer:btoa(JSON.stringify(e)),user:E.uid}}),console.log("согласилась")})},U.callOk=async e=>{E.asset=e.id;const t=new RTCSessionDescription(JSON.parse(atob(e.answer)));await E.rtc.setRemoteDescription(t),console.log("ok"),me.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(E.other)),user:E.uid,send:!0}})},U.IceCandidate=async e=>{console.log(e),console.log("candidate"),e.candidate.forEach(t=>{E.rtc.addIceCandidate(new RTCIceCandidate(t))}),e.send&&me.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(E.other)),user:E.uid,send:!1}})},U.callFrom=async()=>{},U.callNo=()=>{console.log("Пользователь не в сети или отклонил"),E.asset=0,E.time=!1,E.rtc&&E.rtc.close(),U.setListener({type:"state",data:"closed"})},U.callOf=()=>{E.asset=0,E.time=!1,E.rtc.close()},U.callRefuser=async()=>{me.Send({type:"module",module:"M00",query:"x0050",data:{type:"callRefuser",user:E.uid}}),E.asset=0,E.time=!1,E.rtc&&E.rtc.close()},U.Run=async e=>{U[e.data.type]&&U[e.data.type](e.data)};let We={};function zi(){let[e,t]=f.useState([]),n=f.useRef(null);return f.useEffect(()=>{},[]),We.set=r=>{t([...e,r])},We.del=()=>{t([])},We.audio=(r,i)=>{n.current.volume=.5,n.current.loop=i,n.current.src="/audio/"+r,n.current.muted=!1},a.jsxs(a.Fragment,{children:[e.map(r=>r.item),a.jsx("audio",{id:"audio",ref:n,autoPlay:!0,muted:!0})]})}function Gi(e,t){let n=new Date().getTime();We.set({item:a.jsx(Zi,{type:t,id:e},n),key:n})}function Zi({id:e,type:t}){const[n,r]=f.useState({}),[i,o]=f.useState(t);console.log(i),f.useEffect(()=>{r(te.getSelect("user")[e])},[]),console.log(i),U.useListener(d=>{switch(d.type){case"state":o(d.data)}});const s=()=>{switch(i){case"out":return a.jsx("span",{onClick:()=>{U.callTo(n.id),o("call")},children:a.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})});case"in":return a.jsxs(a.Fragment,{children:[a.jsx("span",{onClick:l,children:a.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})}),a.jsx("span",{onClick:U.callRise,children:a.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})]});case"call":return a.jsx("span",{onClick:()=>U.callNo(n.id),children:a.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})});case"closed":return a.jsx("span",{onClick:()=>{U.callTo(n.id),o("call")},children:a.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})}},l=()=>{U.callRefuser(n.id),We.del()};return a.jsx("div",{className:"web-phone white",children:a.jsxs("div",{className:"w",children:[a.jsx("div",{className:"x","data-icon":"F038",onClick:l}),a.jsx("div",{className:"a"}),a.jsx("div",{className:"n",children:n.name}),a.jsx("div",{className:"b",children:s()})]})})}const yt={};function Ui(e){yt.add(e)}function Wi({color:e,size:t,name:n}){return a.jsx("svg",{width:t,height:t,color:e,children:a.jsx("use",{href:`#${n}`})})}function Ki(){let[e,t]=f.useState([]);if(yt.x=()=>{t([])},yt.add=r=>{t(r)},e.length===0)return"";const n={sprite:""};return a.jsx("svg",{...n,xmlns:"http://www.w3.org/2000/svg",children:e.map((r,i)=>a.jsx("symbol",{id:r.name,viewBox:"0 0 24 24",fillRule:"evenodd",clipRule:"evenodd",children:a.jsx(r.path,{})},i))})}let nt={},gn={},wt="";const Yi=e=>{gn=e},vn=f.createContext(localStorage.getItem("lang")||navigator.language),Hi=({children:e})=>{const[t,n]=f.useState(localStorage.getItem("lang")||navigator.language);return wt=t,nt.update=n,a.jsx(vn.Provider,{value:gn[t],children:e})},qi=e=>{var t;localStorage.setItem("lang",e),wt=e,(t=nt.update)==null||t.call(nt,e)},Vi=()=>f.useContext(vn),Ji=wt,kt={};function Xi(e,t){kt[e]=t}function Qi(e,t){kt[e]!==void 0&&kt[e](t)}const ye={};function eo(e,t){const[n,r]=f.useState(t);return f.useEffect(()=>{if(ye[e])return ye[e].push(r);ye[e]=[r]},[]),[n]}function to(e,t){if(ye[e])return ye[e].push(t);ye[e]=[t]}function no(e,t){ye[e]&&ye[e].forEach(n=>n(t))}const ge={setListener:Qi,useListener:Xi,setEmitter:no,useEmitter:eo,subEmitter:to};function ao(){let[e,t]=f.useState([]);return ge.useListener("form",n=>{t([n])}),a.jsx(a.Fragment,{children:e.map(n=>n)})}const bn=({children:e,lang:t})=>ma(a.jsxs(Hi,{children:[a.jsx(Ci,{}),a.jsx(Kr,{}),a.jsx(Xr,{}),a.jsx(Li,{}),a.jsx(Ki,{}),a.jsx(ao,{}),a.jsx(zi,{}),a.jsx(Ri,{}),e]})),ro=({children:e,...t})=>a.jsx("menu",{children:e}),io=({children:e,...t})=>a.jsxs("header",{children:["xz",e]}),oo={payment:"_payment_1lxfv_1"};function so(){let[e,t]=f.useState({});return!e.active&&!e.payment?"":a.jsx("div",{className:oo.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const lo=({children:e,...t})=>a.jsxs("div",{className:"app",children:[a.jsx(so,{}),a.jsx(ro,{}),a.jsx(io,{}),a.jsx(bn,{}),e]}),yn=({list:e,onClick:t,active:n,size:r,view:i})=>a.jsx("nav",{children:a.jsx("ul",{className:[r,i].join(" "),children:e.map(o=>a.jsx(co,{onClick:t,active:n,label:o.label,link:o.link},o.link))})}),co=({onClick:e,label:t,link:n,active:r})=>a.jsx("li",{"tabs-active":String(r===n),onClick:()=>e(n),children:t});yn.defaultProps={size:"M",view:"H"};const _o=({title:e="",button:t,description:n="",children:r})=>a.jsxs("fieldset",{children:[e&&a.jsxs("legend",{children:[e,t&&a.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),a.jsx("ul",{children:r}),n&&a.jsx("article",{children:n})]}),uo={setting:"_setting_dva4m_2"},fo=({children:e})=>a.jsx("div",{className:uo.setting,children:e}),mo=({label:e,children:t})=>{let[n,r]=f.useState(!1);return a.jsxs("li",{"data-item":"accordion",children:[a.jsxs("dl",{onClick:()=>r(!n),children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:a.jsx("div",{"data-close":String(n)})})]}),n&&a.jsx("div",{children:t})]})},po=({label:e,onClick:t,button:n})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{role:"button",onClick:()=>t(),children:n})]})}),wn={Switch:({active:e,onClick:t})=>(console.log(e),e=typeof e=="number"?!!e:e,a.jsx("div",{role:"switch",onClick:()=>{console.log("Wewew"),t()},"aria-checked":e?"true":"false"}))},ho={Accordion:mo,Button:po,Switch:({label:e,onClick:t,active:n})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:a.jsx(wn.Switch,{onClick:t,active:n})})]})}),Info:({label:e,info:t})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:n})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>a.jsx("li",{children:a.jsxs("dl",{children:[a.jsx("dt",{children:e}),a.jsx("dd",{children:t})]})})};function kn({list:e,onClick:t,active:n,size:r,view:i}){return a.jsx("nav",{children:a.jsx("ul",{className:[r,i].join(" "),children:e.map(o=>a.jsx(xo,{onClick:t,active:n,label:o.label,link:o.link},o.link))})})}const xo=({onClick:e,label:t,link:n,active:r})=>a.jsx("li",{"tabs-active":String(r===n),onClick:()=>e(n),children:t});kn.defaultProps={size:"M",view:"H"};const go={Section:_o,Main:fo,Item:ho,Tabs:kn},vo={Icon:Ai,Item:vt,Active:Oi},bo={Send:ei,Line:un};function yo(){return a.jsx("svg",{viewBox:"0 0 462.86 359.96",children:a.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const wo={Logo:yo,Sprite:Ui,Symbol:Wi},ko={sort:"_sort_1yrvt_1"};let at={};function Co(e,t){switch(t.type){case"active":let n="<";return e.active===t.data&&(n=e.sort==="<"?">":"<"),at.get({active:t.data,sort:n},!1),Qt({active:t.data,sort:n}),{...e,active:t.data,sort:n};default:throw new Error}}function jo(){const[e,t]=f.useReducer(Co,ut()===void 0?{active:1,sort:"<"}:ut());return a.jsxs("div",{className:ko.sort,children:[a.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),a.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),a.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function So(e){at.get=e}function Eo(e){at.set(e)}function Do(e,t,n){let r=1,i=0,o={},s=50;o[r]=[];let l={},d="s1a";switch(l.s1a=(_,u)=>u.s1-_.s1,l.s1d=(_,u)=>_.s1-u.s1,l.s2a=(_,u)=>_.s2-u.s2,l.s2d=(_,u)=>u.s2-_.s2,l.s3a=(_,u)=>_.s3.localeCompare(u.s3),l.s3d=(_,u)=>u.s3.localeCompare(_.s3),n.active){case 1:d=n.sort===">"?"s1d":"s1a";break;case 2:d=n.sort===">"?"s2d":"s2a";break;case 3:d=n.sort===">"?"s3d":"s3a";break}return t.sort(l[d]).forEach(_=>{i++,i<=s||(r++,i=1,o[r]=[]),o[r].push(e[_.id])}),{data:o}}function Io(e){at.count(e)}const No={Init:jo,useValue:So,Set:Eo,Run:Do,Count:Io},rt={},Cn={};function To(e){const[t,n]=f.useState({}),r=async i=>{n(Object.keys(rt).reduce((o,s)=>(o?o[s]=rt[s].all:o={},o),{}))};return f.useEffect(()=>{e.forEach(i=>rt[i]={all:0}),Cn.menu=r,r()},[e]),t}function Mo(e,t){switch(typeof t){case"number":rt[e].all+=t,Cn.menu();break}}const $o={useMenu:To,setUpdate:Mo};class Lo{constructor(t="el",n="db"){Kt(this,"storeName");Kt(this,"_dbp");this.storeName=n,this._dbp=new Promise((r,i)=>{const o=indexedDB.open(t,1);o.onerror=()=>i(o.error),o.onsuccess=()=>r(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(n)}})}_withIDBStore(t,n){return this._dbp.then(r=>new Promise((i,o)=>{const s=r.transaction(this.storeName,t);s.oncomplete=()=>i(),s.onabort=s.onerror=()=>o(s.error),n(s.objectStore(this.storeName))}))}}let Ct,q={};const Te=()=>(Ct||(Ct=new Lo),Ct),we=(e,t,n=Te())=>n._withIDBStore("readwrite",r=>{q[e]=t,r.put(R.enCode(t),e)}),pe=(e,t=Te())=>q[e]===void 0?new Promise((n,r)=>{let i;t._withIDBStore("readonly",o=>{i=o.get(e)}).then(()=>{if(i.result!==void 0){let o=R.deCode(i.result);q[e]=o,n(o)}else n({})})}):q[e],Bo=(e,t=Te())=>t._withIDBStore("readwrite",n=>{n.delete(e)}),jt=(e=Te())=>e._withIDBStore("readwrite",t=>{t.clear()}),Fo={id:async(e,t,n)=>{let r=await pe(t);if(n!==void 0)n({type:"load",base:r});else return r[e]},get:pe,set:we,add:async(e,t,n,r)=>{let i,o;o=await pe(n),o[e.id]=e,await we(n,o),i!==null&&(i=await pe(t),i[e.id]=e.eDate,await we(t,i)),r!==void 0&&r({type:"load",page:i,base:o})},del:Bo,upd:(e,t,n,r=Te())=>{if(q[e]===void 0)return new Promise((i,o)=>{let s;r._withIDBStore("readonly",l=>{s=l.get(e)}).then(()=>{if(s.result!==void 0){let l=R.deCode(s.result);q[e]=l,q[e][t.id]={...q[e][t.id],...t.data},r.put(R.enCode(q[e]),e),i({})}else i({})})});if(q[e][t.id]!==void 0)return q[e][t.id]={...q[e][t.id],...t.data},n!==void 0&&q[n]!==void 0?q[n][t.id]!==void 0&&(q[n][t.id]=t.data.eDate):q[n]=[],delete q[e][t.id].$_item,delete q[e][t.id].$_send,r._withIDBStore("readwrite",i=>{i.put(R.enCode(q[e]),e),n!==void 0&&i.put(R.enCode(q[n]),n)})},key:(e=Te())=>{const t=[];return e._withIDBStore("readonly",n=>{(n.openKeyCursor||n.openCursor).call(n).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>q[e],split:(e,t,n=[],r={})=>{let i=n.length!==0,o=[],s=r.sort,l=Object.keys(r).length!==0,d=Object.keys(r),_=Object.keys(e),u=[],p=x=>{let b="";if(n.forEach(h=>{b+=t[x][h]}),l){let h={};d.forEach(g=>{h[g]=t[x][g]});for(let g in s)t[x][s[g]]===void 0&&(jt(),location.reload()),g==="s1"&&(h[g]=new Date(t[x][s[g]]).getTime()),g==="s2"&&(h[g]=t[x][s[g]]),g==="s3"&&(h[g]=t[x][s[g]].replace(/[^a-zа-яё]/gi,"").substring(0,1));o.push({id:x,text:b,...h})}else o.push({id:x,text:b})},m=x=>{};return _.forEach(x=>{u.push(t[x])}),u.forEach(x=>{x===void 0?(jt(),location.reload()):(i&&p(x.id),l&&m(x.id))}),{list:u,search:o,filter:r}},clear:jt,updAll:async(e,t,n,r)=>{let i=await pe(t),o=await pe(n);for(let s in e)o[s]=e[s],i[s]=e[s].eDate;await we(t,i),await we(n,o),r!==void 0&&r({type:"load",page:i,base:o})},delAll:async(e,t,n,r)=>{let i=await pe(t),o=await pe(n);e.forEach(s=>delete i[s]),await we(t,i),r!==void 0&&r({type:"load",page:i,base:o})},delList:async(e,t,n)=>{let r=await pe(t);e.forEach(i=>delete r[i]),await we(t,r)},addList:async(e,t,n)=>{let r=await pe(t);e.forEach(i=>r[i.id]=i.eDate),await we(t,r)}},Po={useKey:(e,t)=>{const n=[];t=t.map(r=>r.charCodeAt(0)),document.onkeydown=function(r){n.push(r.keyCode);for(var i=0;i<t.length;i++)if(n.indexOf(t[i])==-1)return;e(),n.length=0},document.onkeyup=function(r){n.length=0}}},Ro={s:"_s_18bde_1",loadingB:"_loadingB_18bde_1",ul:"_ul_18bde_31"};function jn({children:e}){return a.jsx("ul",{className:ne.ul,children:e})}function Ao(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,item:1,data:t.data,list:t.data[1],size:Object.keys(t.data).length};case"update":let n=Object.keys(e.data).length,r=e.item+1;return r=n<r?1:r,e.item===r?e:{...e,wait:e.size===r,item:r,list:[...e.list,...e.data[r]]};case"clear":return{load:!1,list:[],data:{},item:1,wait:!1,size:0};default:throw new Error}}function Sn({list:e,load:t,className:n,...r}){const i=f.useRef(null),[o,s]=f.useReducer(Ao,{load:!1,list:[],data:{},item:1,wait:!1,size:0});f.useEffect(()=>{i.current.scrollTop=0,e!==null&&s({type:"load",load:!0,data:e})},[t]);let l=()=>{i.current.scrollHeight-i.current.scrollTop-300<=i.current.clientHeight&&!o.wait&&s({type:"update"})};return a.jsx("div",{className:[Ro.s,n].join(" "),ref:i,onScroll:l,children:a.jsx(jn,{"el-empty":"Данные не найдены",children:o.load&&o.list!==void 0?o.list.map(d=>a.jsx(r.item,{data:d},d.id)):a.jsxs("div",{"data-load":"load",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})})})}const Oo={Widget:Bi},En=({onClick:e,active:t})=>(t=!!t,a.jsx("div",{role:"switch",onClick:()=>e,"aria-checked":`${t?"true":"false"}`}));let le={};le.KeyDown=e=>{e.key==="Enter"&&e.preventDefault()},le.PasteOne=e=>{e.preventDefault(),navigator.clipboard.readText().then(t=>{t=t.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,t)}).catch(t=>{})},le.Focus=e=>{e.target.textContent.length===0&&(e.target.innerHTML="<br>")},le.Blur=e=>{e.target.scrollLeft=0,e.target.querySelector("br")!==null&&e.target.querySelector("br").remove()};function Ke({id:e,value:t,onValue:n,name:r,placeholder:i="",title:o="",error:s="",hide:l=!1,edit:d=!0,active:_=!0,after:u="",show:p=!0,view:m,onBlur:x,onSave:b,className:h=""}){let g=!!(l&&(t===""||t===void 0)),y=w=>{n&&n({value:w.target.textContent,name:r})},C=w=>{w.key==="Enter"&&w.preventDefault()},M=w=>{w.preventDefault(),navigator.clipboard.writeText(w.target.textContent).then(function(){Se.Copy("Данные в буфер обмене")},function(O){console.error("Async: Could not copy text: ",O)})},B=w=>{};if(!(d&&_)&&!p||!(d&&_)&&g)return"";const j={};j.field="input",h&&(j.className=h);const S={};i&&(S.placeholder=i),d&&_&&(S.edit="");const D=w=>{le.Blur(w),b&&b({value:w.target.textContent,name:r})};return a.jsxs("dl",{...j,children:[o?a.jsx("dt",{children:o}):"",a.jsx("dd",{onPaste:B,onInput:y,onBlur:D,onKeyDown:C,onContextMenu:M,contentEditable:d&&_?"plaintext-only":"false",suppressContentEditableWarning:!0,...S,children:t}),s?a.jsx("em",{children:s}):""]})}function Dn({onClick:e,onSend:t,name:n,onRef:r}){let[i,o]=f.useState(!1);const s=()=>{if(e)return e();i||(o(!0),t&&t(o))};return a.jsx("button",{ref:r,"data-form":"button",className:i?"btn await":"btn confirm pointer",onClick:s,children:i?"Ожидайте":n})}function In({value:e,onValue:t,onActive:n,data:r,name:i,view:o,edit:s=!0,active:l=!0,placeholder:d="Введите сообщение"}){const _=f.useRef({value:e,timerId:null,shift:!1,send:!0}),u=()=>{_.current.value.length>0?_.current.send&&(n(!0),_.current.send=!1,_.current.timerId=setTimeout(()=>{_.current.send=!0},3e3)):n(!1)},p=y=>{_.current.value=y.target.textContent,u()},m=y=>{y.keyCode===16&&(_.current.shift=!0),y.keyCode===13&&!_.current.shift&&(y.preventDefault(),_.current.value.length!==0&&(y.target.textContent="",r&&r(_.current.value),t&&t(_.current.value),_.current.value="",n(!1)))},x=y=>{y.keyCode===16&&(_.current.shift=!1)},b=y=>{y.preventDefault(),navigator.clipboard.readText().then(C=>{window.document.execCommand("insertText",!1,C)}).catch(C=>{})},h=()=>{n(!1)},g={spellCheck:"true"};return d&&(g.placeholder=d),s&&l&&(g.contentEditable="plaintext-only"),a.jsx("dl",{"data-form":"message",children:a.jsx("dd",{onPaste:b,onInput:p,onKeyUp:x,onKeyDown:m,onBlur:h,...g,suppressContentEditableWarning:!0,children:e})})}function Nn(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,i=e.placeholder!==void 0?e.placeholder:"",o=d=>{e.onValue({value:d.target.textContent,name:e.name})},s=d=>{d.key==="Enter"&&d.preventDefault()},l=d=>{d.preventDefault(),navigator.clipboard.readText().then(_=>{window.document.execCommand("insertText",!1,_)}).catch(_=>{console.log("Something went wrong",_)})};return a.jsxs("dl",{"data-form":"input","type-data":"generator",children:[t(),a.jsx("dd",{onPaste:l,onInput:o,onKeyDown:s,contentEditable:n&&r?"plaintext-only":"false","data-placeholder":i,suppressContentEditableWarning:!0,children:e.value})]})}function Tn({value:e,onValue:t,placeholder:n="",name:r}){let i=(x,b)=>Number(Math.round(x+Math.random()*(b-x))),o=f.useRef(null),s=f.useRef(null),l=i(1e4,99999),d=x=>{x.key!=="Backspace"&&(x.key==="Enter"&&x.preventDefault(),x.target.textContent.length===5&&x.preventDefault(),/\d/.test(x.key)||x.preventDefault())},_=x=>{t({value:Number(x.target.textContent)===l,name:r})},u=x=>{x.preventDefault(),navigator.clipboard.readText().then(b=>{window.document.execCommand("insertText",!1,b.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(b=>{console.log("Something went wrong",b)})};f.useEffect(()=>{const x=o.current,b=x.getContext("2d");b.clearRect(0,0,x.width,x.height),b.font="30px brush script mt",b.fillStyle="#eee",b.textAlign="center",b.fillText(l,50,27),s.current.textContent=""},[l]);const p={};p.field="captcha";const m={};return n&&(m.placeholder=n),a.jsxs("dl",{...p,children:[a.jsx("dd",{ref:s,onPaste:u,onInput:_,onBlur:le.Blur,onKeyDown:d,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,...m}),a.jsx("canvas",{ref:o,width:"100",height:"35"})]})}function Mn({className:e,title:t,error:n,edit:r=!0,real:i,onValue:o,empty:s,name:l}){let d={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},_=h=>{if(h.preventDefault(),!r)return;h.target.textContent=h.target.textContent.slice(-1).replace(/[^+\d]/g,"");let g=window.getSelection(),y=h.target.textContent.length;if(d[h.target.id]=h.target.textContent,d.code=d.n1+""+d.n2+d.n3+d.n4+d.n5+d.n6,g.collapse(h.target.firstChild,1),y===0){h.target.blur(),h.target.focus();return}h.target.nextSibling!=null&&h.target.nextSibling.focus()},u=h=>{if(r&&(h.key==="Enter"&&h.preventDefault(),h.key==="Backspace")){if(h.preventDefault(),h.target.textContent="",d[h.target.id]="",h.target.previousSibling!=null){let g=h.target.previousSibling.id.slice(1);h.target.previousSibling.textContent="",d["n"+g]="",h.target.previousSibling.focus()}d.code=d.n1+""+d.n2+d.n3+d.n4+d.n5+d.n6}},p=h=>{if(r){if(i)o&&o({value:d.code,name:l});else if(d.code.length===6&&(o&&o({value:d.code,name:l}),s)){d={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let g=1;g<=6;g++){let y=document.getElementById("n"+g);y&&(y.textContent="")}}}},m=h=>{h.target.textContent=""},x=h=>{h.preventDefault(),navigator.clipboard.readText().then(g=>{let y=g.split("");for(let C=1;C<=y.length;C++){let M=document.getElementById("n"+C);M&&(M.textContent=y[C-1])}}).catch(g=>{console.log("Something went wrong",g)})};const b={};return b.field="code",e&&(b.className=e),a.jsxs("dl",{...b,children:[t?a.jsx("dt",{children:t}):"",a.jsxs("div",{children:[a.jsx("dd",{id:"n1",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n2",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n3",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n4",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n5",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0}),a.jsx("dd",{id:"n6",onKeyDown:u,onKeyUp:p,onFocus:m,onPaste:x,onInput:_,contentEditable:!0})]}),n?a.jsx("em",{children:n}):""]})}function $n(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"";e.edit!==void 0&&e.edit,e.active!==void 0&&e.active;let[r,i]=f.useState(e.value),o=s=>{let l=s.target.getAttribute("set-color");i(l),e.onValue({value:l,name:e.name})};return a.jsx(a.Fragment,{children:e.view==="icon"?a.jsx("i",{"data-icon":"F043"}):a.jsxs("dl",{children:[t(),a.jsxs("dd",{"el-val":r,children:[a.jsx("em",{onClick:o,"set-color":"0"}),a.jsx("em",{onClick:o,"set-color":"1"}),a.jsx("em",{onClick:o,"set-color":"2"}),a.jsx("em",{onClick:o,"set-color":"3"}),a.jsx("em",{onClick:o,"set-color":"4"}),a.jsx("em",{onClick:o,"set-color":"5"})]}),n()]})})}const he={o:"_o_66f7n_1",c:"_c_66f7n_11",as:"_as_66f7n_87",ap:"_ap_66f7n_90"};function St(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"",r=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",[s,l]=f.useState(e.value===void 0?new Date:e.value),d=!r&&i;f.useEffect(()=>{l(e.value===void 0?new Date:e.value)},[e.value]);let _=x=>{l(x),e.onValue({value:x,name:e.name})},u=x=>{const b=x.target.getBoundingClientRect(),h=b.left,g=b.top;ge.setListener("form",a.jsx(zo,{position:{x:h,y:g},onValue:_,date:s},new Date().getTime()))};const p={};p.field="input";const m={};return o&&(m.placeholder=o),d?a.jsx(a.Fragment,{}):a.jsx(a.Fragment,{children:e.view==="icon"?a.jsx("i",{"data-icon":"F043",className:"pointer","data-color":"_b5b9cc :506290",onClick:u}):a.jsxs("dl",{...p,children:[t(),a.jsx("dd",{onClick:u,...m,"data-edit":(r&&i)+"",children:K.Date(s,"dd.mm.yyyy")}),n()]})})}const zo=e=>{let[t,n]=f.useState(!0),r=new Date,i=new Date(e.date),o={y:parseInt(r.getFullYear()),d:parseInt(r.getDate()),m:parseInt(r.getMonth())+1},s={y:parseInt(i.getFullYear()),d:parseInt(i.getDate()),m:parseInt(i.getMonth())+1},[l,d]=f.useState({y:s.y,m:s.m}),_=j=>{let S=j.getDay();return S===0&&(S=7),S-1},u=["пн","вт","ср","чт","пт","сб","вс"],p=l.m-1,m=new Date(l.y,p),x=[];for(let j=0;j<_(m);j++)x.push(0);for(;m.getMonth()===p;)x.push(m.getDate()),m.setDate(m.getDate()+1);let b=()=>{n(!1)},h=()=>{C(l.m+1,l.y)},g=()=>{C(l.m-1,l.y)},y=j=>{e.onValue(l.y+"-"+K.Number(2,l.m)+"-"+K.Number(2,j)),b()},C=(j,S)=>{S=j>12?S+1:j<1?S-1:S,j=j>12?1:j<1?12:j,d({y:S,m:j})},M=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,B=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return a.jsx(a.Fragment,{children:t?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:he.o,onClick:()=>b()},new Date().getTime()),a.jsxs("div",{className:he.c,style:{top:M+"px",left:B+"px"},children:[a.jsxs("s",{children:[a.jsx("i",{onClick:g,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),a.jsxs("h2",{children:[K.Month(l.m).name," ",l.y]}),a.jsx("i",{onClick:h,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),a.jsxs("div",{"grid-calendar":"",children:[u.map((j,S)=>a.jsx("p",{children:j},"v"+S)),x.map((j,S)=>a.jsx("span",{children:j!==0?a.jsx("b",{color:o.y===l.y&&o.m===l.m&&o.d===j?"_FFEB3B":"",onClick:()=>y(j),children:j}):a.jsx("p",{})},S))]})]})]}):""})};function Et({value:e,onValue:t,name:n,placeholder:r="",title:i,error:o,hide:s=!1,edit:l=!0,show:d=!0,active:_=!0,after:u="",view:p,modal:m,module:x,options:b,className:h}){let[g,y]=f.useState(e),C=j=>{if(!(l&&_))return;if(!m)return console.error("modal - empty");let S=m.split(".");Ue.Open(S[0],S[1],{callback:D=>{t&&t({value:D,name:n}),y(D)},onValue:t,options:b,name:n,value:e})};const M={};M.field="input",h&&(M.className=h);const B={};return r&&(B.placeholder=r),s?a.jsx(a.Fragment,{}):a.jsxs("dl",{...M,children:[i&&a.jsx("dt",{children:i}),a.jsx("dd",{...B,onClick:C,edit:(l&&_)+"","data-after":u,children:g}),o&&a.jsx("em",{children:o})]})}function Dt({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,course:p=100,view:m,onBlur:x,type:b,onSave:h,className:g=""}){let y=!!(s&&(e===""||e===void 0));e=K.isNumeric(e)?Number(e)/p:0;let C=$=>b==="multi"?$.replace(/[^+\d.+-]/g,""):$.replace(/[^+\d.]/g,""),M=($,W)=>{let z=document.createRange(),N=window.getSelection();z.setStart(W.childNodes[0],$),z.collapse(!0),N.removeAllRanges(),N.addRange(z),W.focus()},B=$=>{t==null||t({value:C($.target.textContent)*p,name:n}),$.target.textContent=C($.target.textContent),$.target.textContent.length>0&&M($.target.textContent.length,$.target)},j=$=>{le.Blur($),$.target.textContent===""&&($.target.textContent=0),h==null||h({value:C($.target.textContent)*p,name:n}),t==null||t({value:C($.target.textContent)*p,name:n}),$.target.textContent=K.Money($.target.textContent)},S=$=>{$.target.textContent=C($.target.textContent)},D=$=>{$.key==="Enter"&&$.preventDefault()},w=$=>{$.preventDefault(),navigator.clipboard.readText().then(W=>{W=W.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,W)}).catch(W=>{console.log("Something went wrong",W)})};if(!(l&&d)&&!u||!(l&&d)&&y)return"";const O={};return O.field="input",g&&(O.className=g),a.jsxs("dl",{...O,children:[i?a.jsx("dt",{children:i}):"",a.jsx("dd",{onInput:B,onPaste:w,onBlur:j,onKeyDown:D,onFocus:S,contentEditable:l&&d?"plaintext-only":"false",suppressContentEditableWarning:!0,"e-after":_,children:K.Money(e)}),o?a.jsx("em",{children:o}):""]})}function Ln({value:e,onValue:t,name:n,view:r,error:i,edit:o=!0,active:s=!0,title:l,placeholder:d="",className:_,after:u}){let[p,m]=f.useState(e);f.useEffect(()=>{m(e)},[e]);let x=g=>{m(g),t&&t({value:g,name:n})},b=g=>{if(!o||!s)return;const y=g.target.getBoundingClientRect(),C=y.left,M=y.top;ge.setListener("form",a.jsx(Go,{position:{x:C,y:M},onValue:x,date:p},new Date().getTime()))};const h={};return d&&(h.placeholder=d),r==="icon"?a.jsx("i",{"data-icon":"F043",onClick:b}):a.jsxs("dl",{children:[l&&a.jsx("dt",{children:l}),a.jsx("dd",{onClick:b,...h,children:K.Date(p,"mm.yyyy")}),i&&a.jsx("em",{children:i})]})}const Go=e=>{let[t,n]=f.useState(!0),r=new Date,i=new Date(e.date),o={y:parseInt(r.getFullYear()),m:parseInt(r.getMonth())+1},s={y:parseInt(i.getFullYear()),m:parseInt(i.getMonth())+1},[l,d]=f.useState(s.y),_=()=>{n(!1)},u=()=>{d(l+1)},p=()=>{d(l-1)},m=y=>{e.onValue(l+"-"+K.Number(2,y)),_()},x=y=>o.y===s.y&&o.m===y?"_FFEB3B":"",b=Array(12).fill("").map((y,C)=>C+1),h=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,g=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return a.jsx(a.Fragment,{children:t?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:he.o,onClick:()=>_()},new Date().getTime()),a.jsxs("div",{className:he.c,style:{top:h+"px",left:g+"px"},children:[a.jsxs("s",{children:[a.jsx("i",{onClick:p,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m15.09 4.594-7.646 6.553a1.126 1.126 0 0 0 0 1.708l7.647 6.552c.73.625 1.857.107 1.857-.854V5.447c0-.961-1.127-1.48-1.857-.853Z"})})}),a.jsx("h2",{children:l}),a.jsx("i",{onClick:u,children:a.jsx("svg",{width:"16",height:"16",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{d:"m8.91 19.406 7.646-6.552a1.125 1.125 0 0 0 0-1.709L8.91 4.593c-.73-.625-1.857-.107-1.857.854v13.107c0 .96 1.127 1.479 1.857.852Z"})})})]}),a.jsx("div",{"grid-month":"",children:b.map((y,C)=>a.jsx("span",{onClick:()=>{m(y)},color:x(y),children:a.jsx("b",{children:K.Month(y).abc})},C))})]})]}):""})};function Bn(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"",[r,i]=f.useState(!1),o=e.edit!==void 0?e.edit:!0,s=e.active!==void 0?e.active:!0,d=!!(e.hide&&(e.value===""||e.value===void 0))&&!(o&&s);r=o?!0:r;let _=e.placeholder!==void 0?e.placeholder:"",u=g=>{e.onValue&&e.onValue({value:g.target.innerText,name:e.name})},p=g=>{g.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{console.log("Something went wrong",y)})},m=g=>{o||i(!r)};const x=g=>{e.onSave&&e.onSave({value:g.target.innerText,name:e.name})},b={};b.field="notes",e.className&&(b.className=e.className);const h={};return _&&(h.placeholder=_),r&&(h.open=""),o&&s&&(h.edit=""),d?a.jsx(a.Fragment,{}):a.jsxs("dl",{...b,children:[t(),a.jsx("dd",{onPaste:p,onInput:u,onBlur:x,contentEditable:o&&s?"plaintext-only":"false",...h,onDoubleClick:m,suppressContentEditableWarning:!0,children:e.value}),n()]})}function It({onValue:e,onSave:t,active:n,max:r,edit:i,title:o,error:s,show:l,hide:d,value:_,placeholder:u,className:p,name:m,after:x,view:b}){i=i!==void 0?i:!0,n=n!==void 0?n:!0,d=!!(d&&(_===""||_===void 0))&&!(i&&n),u=u!==void 0?u:"",r=r!==void 0?r:99;let g=!1,y=w=>{e==null||e({value:w.target.textContent,name:m})},C=w=>{if(!(g&&w.which===86)){if(w.which===17||w.which===91)return g=!0;w.key!=="Backspace"&&(w.target.textContent.length===r&&w.preventDefault(),w.key==="Enter"&&w.preventDefault(),isNaN(parseInt(String.fromCharCode(w.which)))&&w.preventDefault())}},M=w=>{if(w.which===17||w.which===91)return g=!1},B=w=>{w.preventDefault(),navigator.clipboard.readText().then(O=>{O=O.replace(/\D/g,""),console.log(O),window.document.execCommand("insertText",!1,""+O.replace(/\D/g,""))}).catch(O=>{console.log("Something went wrong",O)})};const j=w=>{le.Blur(w),t==null||t({value:w.target.textContent,name:m})},S={};S.field="input",p&&(S.className=p);let D={};return i&&n?(D.edit="true",D.contentEditable="plaintext-only"):D.contentEditable="false",u&&(D.placeholder=u),x&&(D.after=x),d?a.jsx(a.Fragment,{}):a.jsxs("dl",{...S,children:[o&&a.jsx("dt",{children:o}),a.jsx("dd",{...D,onPaste:B,onInput:y,onBlur:j,onKeyDown:C,onKeyUp:M,suppressContentEditableWarning:!0,children:_}),s&&a.jsx("em",{children:s})]})}function Fn({value:e,onValue:t,name:n,placeholder:r="",className:i,title:o,error:s,edit:l=!0,active:d=!0,reload:_=!1,native:u=!1,after:p=""}){let m=y=>{t&&t({value:y.target.textContent,name:n,reload:_})},x=y=>{y.key==="Enter"&&y.preventDefault()},b=y=>{y.preventDefault(),navigator.clipboard.readText().then(C=>{window.document.execCommand("insertText",!1,C.replace(/(\r\n|\n|\r)/gm," "))}).catch(C=>{console.log("Something went wrong",C)})};const h={};h.field="password",i&&(h.className=i);const g={};return r&&(g.placeholder=r),u?"":a.jsxs("dl",{...h,children:[o?a.jsx("dt",{children:o}):"",a.jsx("dd",{onPaste:b,onInput:m,onKeyDown:x,onBlur:le.Blur,contentEditable:l&&d?"plaintext-only":"false",...g,suppressContentEditableWarning:!0,children:e}),s?a.jsx("em",{children:s}):""]})}const Nt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function Tt({value:e,onValue:t,onSave:n,name:r,placeholder:i="",title:o="",error:s="",hide:l=!1,edit:d=!0,active:_=!0,after:u="",show:p=!0,view:m,className:x=""}){d=d!==void 0?d:!0,_=_!==void 0?_:!0,l=!!(l&&(e===""||e===void 0))&&!(d&&_),f.useRef(null);let h="+_(___) ___-__-__",g=!0,y=0,C=(z,N)=>{let F=document.createRange(),Y=window.getSelection();F.setStart(N.childNodes[0],z),F.collapse(!0),Y.removeAllRanges(),Y.addRange(F),N.focus()},M=z=>{z.preventDefault(),navigator.clipboard.readText().then(N=>{window.document.execCommand("insertText",!1,N)}).catch(N=>{console.log("Something went wrong",N)})},B=z=>{let N=0,F="",Y=z.replace(/\D/g,"");Y===""&&(g=!0);let ae=Y.split(""),se="";ae.forEach(Ye=>{g&&(se+=Ye,Nt[se]!==void 0&&g?(g=!1,h=Nt[se].mask.replace(new RegExp("[0-9]","g"),"_"),F=Nt[se].code):(g&&(y=(""+se).length,h=`+${se}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),F=""),y>(""+se).length&&(g=!0,h=`+${se}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),F="")))});let ve=h.replace(/\D/g,"");return ve.length>=Y.length&&(Y=ve),{q:h.replace(/[_\d]/g,function(){return Y.charAt(N++)||"_"}),i:N,v:Y,f:F}},j=z=>{z.preventDefault(),navigator.clipboard.writeText(z.target.textContent.replace(/\D/g,"")).then(function(){Se.Copy("Данные в буфер обмене")},function(N){console.error("Async: Could not copy text: ",N)})},S=B(e),D=z=>{let N=B(z.target.textContent);z.target.textContent=N.q,N.i=N.q.lastIndexOf(N.v.substr(-1)),N.i<N.q.length&&N.q!==h?N.i++:N.i=N.q.indexOf("_"),C(N.i,z.target),t&&t({value:N.q.replace(/\D/g,""),name:r})},w=z=>{z.key==="Enter"&&z.preventDefault()};const O=z=>{le.Blur(z),n&&n({value:z.target.textContent.replace(/\D/g,""),name:r})},$={};$.field="input",x&&($.className=x);let W={};return d&&_?(W.edit="true",W.contentEditable="plaintext-only"):W.contentEditable="false",i&&(W.placeholder=i),u&&(W.after=u),l?a.jsx(a.Fragment,{}):a.jsxs("dl",{...$,children:[o&&a.jsx("dt",{children:o}),a.jsx("dd",{...W,onPaste:M,onInput:D,onKeyDown:w,onContextMenu:j,onBlur:O,suppressContentEditableWarning:!0,children:S.q}),s&&a.jsx("em",{children:s})]})}const Pn=e=>{let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,i=e.placeholder!==void 0?e.placeholder:"",o=0,s=()=>{clearTimeout(o),o=setTimeout(()=>console.log("rerrwere"),1e3)},l=u=>{u.key==="Enter"&&u.preventDefault()},d=u=>{u.preventDefault(),navigator.clipboard.readText().then(p=>{window.document.execCommand("insertText",!1,p)}).catch(p=>{console.log("Something went wrong",p)})};const _={};return i&&(_.placeholder=i),a.jsxs("dl",{"data-form":"input",children:[t(),a.jsx("dd",{onPaste:d,onInput:s,onKeyDown:l,contentEditable:n&&r?"plaintext-only":"false",..._,suppressContentEditableWarning:!0,children:e.value})]})};function Mt({title:e,error:t,edit:n=!0,active:r=!0,hide:i,value:o="0",onValue:s,options:l,placeholder:d="",className:_,name:u,after:p,view:m,order:x}){var j,S;const b=f.useRef();i=!!(i&&(o===""||((j=l[o])==null?void 0:j.n)===void 0))&&!(n&&r);let g=o!==void 0&&o!==""?(S=l[o])==null?void 0:S.n:o,y=D=>{var w;b.current.textContent=(w=l[D])==null?void 0:w.n,s&&s({value:D,name:u})},C=D=>{if(!(n&&r))return;const w=D.target.getBoundingClientRect();ge.setListener("form",a.jsx(Zo,{parent:w,onValue:y,view:m,className:_,options:l,order:x},new Date().getTime()))},M={field:"select",className:_},B={onClick:C};return d&&(B.placeholder=d),p&&(B.after=p),n&&r&&(B.edit=""),i?"":a.jsxs("dl",{...M,children:[e&&a.jsx("dt",{children:e}),a.jsx("dd",{...B,ref:b,children:g}),t&&a.jsx("em",{children:t})]})}const Zo=({onValue:e,parent:t,view:n,className:r,options:i,order:o})=>{let[s,l]=f.useState(!0),d=()=>{l(!1)},_=m=>{l(!1),e(m)},u=window.innerHeight-t.y+t.height<320?t.y-312:t.y+33,p=window.innerWidth-t.x<265?t.x-235:t.x;return a.jsx(a.Fragment,{children:s?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-select":"backdrop",onClick:d},new Date().getTime()),a.jsx("div",{className:r,"data-select":"background "+n,style:{top:u+"px",left:p+"px",width:t.width},children:a.jsx(Uo,{order:o,options:i,link:_})})]}):""})},Uo=({order:e,options:t,link:n})=>e?a.jsx("ul",{children:e.map((r,i)=>t[r].s===1?a.jsx("li",{onClick:()=>{n(r)},children:t[r].n},i):"")}):a.jsx("ul",{children:Object.keys(t).map((r,i)=>t[r].s===1?a.jsx("li",{onClick:()=>{n(r)},children:t[r].n},i):"")});function $t(e){let t=()=>e.title?a.jsx("dt",{children:e.title}):"",n=()=>e.error?a.jsx("em",{children:e.error}):"",r=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,s=!!(e.hide&&(e.default===""||e.options[e.default]===void 0))&&!(r&&i),l=e.placeholder!==void 0?e.placeholder:"",d=x=>{u(e.options[x]),e.onValue({value:x,name:e.name})},[_,u]=f.useState(e.default!==void 0?e.options[e.default]:e.default),p=x=>{if(!(r&&i))return;const b=x.target.getBoundingClientRect();ge.setListener("form",a.jsx(Wo,{parent:b,onValue:d,view:e.view,options:e.options},new Date().getTime()))};const m={};return l&&(m.placeholder=l),s?a.jsx(a.Fragment,{}):a.jsxs("dl",{"data-form":"select",children:[t(),a.jsx("dd",{onClick:p,"data-edit":(r&&i)+"",...m,children:_}),n()]})}const Wo=({onValue:e,parent:t,view:n,options:r})=>{let[i,o]=f.useState(!0),s=()=>{o(!1)},l=p=>{o(!1),e(p)},d=Object.keys(r).length*36,_=window.innerHeight-t.y+t.height<d?t.y-(d-33):t.y+33,u=window.innerWidth-t.x<265?t.x-235:t.x;return a.jsx(a.Fragment,{children:i?a.jsxs(a.Fragment,{children:[a.jsx("div",{"data-select":"backdrop",onClick:s},new Date().getTime()),a.jsx("div",{"data-select":"background "+n,style:{top:_+"px",left:u+"px",width:t.width},children:a.jsx("ul",{children:Object.keys(r).map((p,m)=>a.jsx("li",{onClick:()=>{l(p)},children:r[p]},m))})})]}):""})};function Lt({set:e,value:t,onValue:n,name:r,placeholder:i="",title:o="",error:s="",hide:l=!1,edit:d=!0,show:_=!0,active:u=!0,after:p="",view:m,module:x,item:b,className:h=""}){let g={};switch(e){case"Input":return a.jsx(Ke,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Select":return b&&(g=te.getSelect(parseInt(b))?te.getSelect(parseInt(b)):{0:{s:"1",n:"не известно"}}),a.jsx(Mt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h,options:g});case"Users":return te.getSelect("user"),a.jsx($t,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h,options:g});case"Date":return a.jsx(St,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Phone":return a.jsx(Tt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Number":return a.jsx(It,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Money":return a.jsx(Dt,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r,placeholder:i,className:h});case"Modal":return a.jsx(Et,{title:o,show:_,hide:l,view:m,edit:d,active:u,value:t,onValue:n,name:r||"",placeholder:i,className:h,options:g,module:x||""})}}function Rn({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,view:p,onBlur:m,onSave:x,className:b=""}){let h=!!(s&&(e===""||e===void 0));if(!(l&&d)&&!u||!(l&&d)&&h)return"";let g=j=>{t&&t({value:j.target.innerText,name:n})},y=j=>{x&&x({value:j.target.innerText,name:n})},C=j=>{j.preventDefault(),navigator.clipboard.readText().then(S=>{window.document.execCommand("insertText",!1,S)}).catch(S=>{console.log("Something went wrong",S)})};const M={};M.field="text",b&&(M.className=b);const B={};return r&&(B.placeholder=r),a.jsxs("dl",{...M,children:[i&&a.jsx("dt",{children:i}),a.jsx("dd",{onPaste:C,onBlur:y,onInput:g,contentEditable:l&&d?"plaintext-only":"false",...B,suppressContentEditableWarning:!0,children:e}),o&&a.jsx("em",{children:o})]})}function An({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,view:p,onBlur:m,onSave:x,className:b=""}){let h=!!(s&&(e===""||e===void 0)),g=K.Date(e===void 0?new Date:e,"HH:MM"),y=f.useRef(null);if(!(l&&d)&&!u||!(l&&d)&&h)return"";let C=D=>{y.current.textContent=D,t&&t({value:D,name:n})},M=D=>{x&&x({value:D,name:n})},B=D=>{const w=D.target.getBoundingClientRect(),O=w.left,$=w.top;ge.setListener("form",a.jsx(Ko,{positions:{x:O,y:$},onSave:M,onValue:C,date:g},new Date().getTime()))};const j={};j.field="input",b&&(j.className=b);const S={};return r&&(S.placeholder=r),a.jsx(a.Fragment,{children:p==="icon"?a.jsx("i",{"data-icon":"F043",onClick:B}):a.jsxs("dl",{...j,children:[i?a.jsx("dt",{children:i}):"",a.jsx("dd",{onClick:B,ref:y,...S,children:g}),o?a.jsx("em",{children:o}):""]})})}const Ko=({positions:e,onSave:t,onValue:n,date:r})=>{let i=r.split(":"),o={h:K.Number(2,i[0]),m:K.Number(2,i[1])},s="hour",[l,d]=f.useState({}),_=!1,u=0,p=0,m={body:f.useRef(null),time:f.useRef(null),hour:f.useRef(null),timeText:f.useRef(null),hourText:f.useRef(null)};f.useEffect(()=>{d(m.body.current.getBoundingClientRect()),m.hour.current.style.transform="rotate("+o.h*15+"deg)",m.time.current.style.transform="rotate("+o.m*6+"deg)"},[m.body,m.hour,m.time,o.m,o.h]);let x=()=>{_=!0},b=()=>{_=!1,s=s==="hour"?"time":"hour",m.body.current.setAttribute("active",s)},h=S=>{if(_){let w=Math.atan2(S.pageX-(l.x+78),S.pageY-(l.y+78))*(180/Math.PI)*-1+180;m[s].current.style.transform="rotate("+w+"deg)",s==="hour"?(o={...o,h:K.Number(2,parseInt(String(w/15),10))},m.hourText.current.textContent=o.h):(o={...o,m:K.Number(2,parseInt(String(w/6),10))},m.timeText.current.textContent=o.m),n(o.h+":"+o.m)}},g=S=>{if(s==="hour")if(S.deltaY>0){u+=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.h,10)+1;w=w>23?0:w,o={...o,h:K.Number(2,w)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else{u-=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.h,10)-1;w=w<0?23:w,o={...o,h:K.Number(2,w)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else if(S.deltaY>0){u+=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.m,10)+1;w=w>59?0:w,o={...o,m:K.Number(2,w)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}else{u-=S.deltaY;let D=parseInt(String(u/50));if(p!==D){p=D;let w=parseInt(o.m,10)-1;w=w<0?59:w,o={...o,m:K.Number(2,w)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}n(o.h+":"+o.m)},[y,C]=f.useState(!0),M=()=>{C(!1),t(o.h+":"+o.m)},B=window.innerHeight-e.y+33<320?e.y-312:e.y+33,j=window.innerWidth-e.x<265?e.x-235:e.x;return a.jsx(a.Fragment,{children:y?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:he.o,onClick:()=>M()},new Date().getTime()),a.jsxs("div",{className:he.c,onMouseDown:x,onMouseUp:b,onMouseMove:h,onWheel:g,ref:m.body,style:{top:B+"px",left:j+"px"},children:[a.jsx("div",{className:"b"}),a.jsxs("div",{className:"s",children:[a.jsx("span",{className:["hour",s==="hour"?he.as:he.ap].join(" "),ref:m.hourText,children:o.h})," ",":"," ",a.jsx("span",{className:["min",s==="time"?he.as:he.ap].join(" "),ref:m.timeText,children:o.m})]}),a.jsx("div",{className:"h",ref:m.hour}),a.jsx("div",{className:"t",ref:m.time})]})]}):""})};function On({onValue:e,label:t,value:n,title:r,className:i,name:o,text:s,id:l,reload:d}){const[_,u]=f.useState(!!n),p=t||r;f.useEffect(()=>{u(!!n)},[n]);let m=()=>{e&&e({value:_?0:1,name:o,id:l}),u(!_)};const x={};return x.field="check",i&&(x.className=i),a.jsxs("dl",{...x,children:[p?a.jsx("dt",{children:p}):"",a.jsxs("dd",{onClick:m,children:[a.jsx("span",{children:s}),a.jsx("div",{role:"switch","aria-checked":`${_?"true":"false"}`})]})]})}const Yo=({label:e,onValue:t,value:n,name:r,item:i})=>{const[o,s]=f.useState(!!n);f.useEffect(()=>{s(!!n)},[n]);let l=()=>{let d=parseInt(o)===0?1:0;s(d),t({value:d,name:r,key:i,item:i})};return a.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})},zn=({onValue:e,value:t,name:n,item:r})=>{const[i,o]=f.useState(!!t);f.useEffect(()=>{o(!!t)},[t]);let s=()=>{let l=parseInt(i)===0?1:0;o(l),e({value:l,name:n,key:r,item:r})};return a.jsx("div",{role:"switch",onClick:s,"aria-checked":`${i?"true":"false"}`})};function Gn({value:e,onValue:t,name:n,placeholder:r="",title:i="",error:o="",hide:s=!1,edit:l=!0,active:d=!0,after:_="",show:u=!0,view:p,onSave:m,className:x="",separator:b=","}){const[h,g]=f.useState(e!==void 0?e.split(b):[]);f.useEffect(()=>{g(e!==void 0?e!==void 0?e.split(b):[]:[])},[e]);let y=()=>{g([...h,""])},C=O=>{h.splice(O,1),h.length===0&&h.push(""),g([...h]),m!==void 0&&m({value:h.join(b),name:n})},M=!!(s&&(e===""||e===void 0)),B=O=>{};if(!(l&&d)&&!u||!(l&&d)&&M)return"";const j={};j.field="group",x&&(j.className=x);const S=(O,$)=>{le.Blur(O),h[$]=O.target.textContent,m&&m({value:h.join(b),name:n})};let D=(O,$)=>{h[$]=O.target.textContent,t&&t({value:h.join(b),name:n})},w=O=>{O.key==="Enter"&&O.preventDefault()};return a.jsxs("dl",{...j,children:[a.jsxs("dt",{children:[i,a.jsx("i",{onClick:y,children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[a.jsx("path",{d:"M12 5.25v13.5"}),a.jsx("path",{d:"M18.75 12H5.25"})]})})]}),a.jsx("dd",{children:h.map((O,$)=>a.jsxs("li",{className:"field_group_item",children:[a.jsx("span",{onInput:W=>D(W,$),edit:"true",name:n,placeholder:r,onPaste:B,contentEditable:l&&d?"plaintext-only":"false",onKeyDown:w,onBlur:W=>S(W,$),suppressContentEditableWarning:!0,children:h[$]}),a.jsx("i",{onClick:()=>{C($)},children:a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[a.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),a.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},$))}),o&&a.jsx("em",{children:o})]})}const Ho=e=>(e=e!==void 0&&e!==""?e.split(","):[],e.reduce((t,n)=>(t[n]=!0,t),{}));function Zn({value:e,onValue:t,name:n,placeholder:r="",title:i,error:o,hide:s=!1,edit:l=!0,show:d=!0,active:_=!0,after:u="",view:p,modal:m,module:x,options:b,className:h}){const[g,y]=f.useState(Ho(e)),C=j=>{if(!(l&&_))return;if(!m)return console.error("modal - empty");let S=m.split(".");Ue.Open(S[0],S[1],{callback:D=>{t&&t({value:D,name:n}),y(D)},onValue:t,options:b,name:n,value:g})},M={};M.field="group",h&&(M.className=h);const B={};return r&&(B.placeholder=r),s?a.jsx(a.Fragment,{}):a.jsxs("dl",{...M,children:[a.jsxs("dt",{children:[i,a.jsx("i",{onClick:C,children:a.jsxs("svg",{width:"20",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M12 5.25v13.5"}),a.jsx("path",{d:"M18.75 12H5.25"})]})})]}),a.jsx("dd",{...B,onClick:open,edit:(l&&_)+"","data-after":u,children:Object.keys(g).map(j=>{var S;return a.jsx("div",{className:"field_group_item",children:(S=b[j])==null?void 0:S.label},j)})}),o&&a.jsx("em",{children:o})]})}function Un({value:e,onValue:t,name:n,placeholder:r="",title:i="",link:o="",error:s="",hide:l=!1,edit:d=!0,active:_=!0,after:u="",show:p=!0,type:m,view:x,onBlur:b,onSave:h,className:g=""}){const y=f.useId();let C=!!(l&&(e===""||e===void 0)),[M,B]=f.useState(o);if(!(d&&_)&&!p||!(d&&_)&&C)return"";const j=async D=>{if(m){let w=Vo(D,m,e||"default");t==null||t({name:n,value:w}),B(URL.createObjectURL(w))}else t==null||t({name:n,value:D}),B(URL.createObjectURL(D))},S={};return S.field="file",g&&(S.className=g),a.jsxs("dl",{...S,children:[i&&a.jsxs("dt",{children:[i," "]}),a.jsxs(qo,{onFiles:j,children:[a.jsx("input",{id:y,type:"file",multiple:!0,onChange:D=>{D.target.files[0]&&j(D.target.files[0])}}),a.jsx("label",{htmlFor:y}),a.jsx("img",{src:M})]}),s&&a.jsx("em",{children:s})]})}const qo=({children:e,onFiles:t})=>{const n=f.useRef(null);return f.useEffect(()=>{if(n.preventDefaults)return;n.preventDefaults=i=>{i.preventDefault(),i.stopPropagation()},n.highlight=i=>{console.log(i)},n.unhighlight=i=>{console.log(i)},n.onHandleDrop=i=>{let l=i.dataTransfer.files[0];t&&t(l)};let r=n.current;["dragenter","dragover","dragleave","drop"].forEach(i=>{r.addEventListener(i,n.preventDefaults,!1),document.body.addEventListener(i,n.preventDefaults,!1)}),["dragenter","dragover"].forEach(i=>{r.addEventListener(i,n.highlight,!1)}),["dragleave","drop"].forEach(i=>{r.addEventListener(i,n.unhighlight,!1)}),r.addEventListener("drop",n.onHandleDrop,!1)},[]),a.jsx("dd",{ref:n,children:e})},Vo=(e,t,n)=>{var r=document.getElementsByTagName("body")[0],i=document.createElement("canvas");r.appendChild(i);const o=i.getContext("2d"),s=new Image;s.addEventListener("load",()=>{o.drawImage(s,0,0);const l=t==="png"?i.toDataURL():i.toDataURL(`image/${t}`),d=Jo(l,n);return i.remove(),d}),s.src=URL.createObjectURL(e)};function Jo(e,t){let n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,s=new Uint8Array(o);for(;o--;)s[o]=i.charCodeAt(o);return new File([s],t,{type:r})}const ke={};function Xo(e){const[t,n]=f.useState({}),r=f.useRef(e);return ke.u=i=>{r.current={...r.current,[i.name]:i.value}},ke.n=i=>{r.current=i,n(Date.now())},ke.r=()=>{n(Date.now())},[r.current,ke.n]}function Qo(e){ke.u(e),e.reload&&ke.r()}function es(){ke.r&&ke.r()}const ts={Color:$n,Date:St,Mask:Un,Image:Un,Code:Mn,Check:On,Switch:En,Input:Ke,Button:Dn,Message:In,Generator:Nn,Captcha:Tn,Modal:Et,Money:Dt,Month:Ln,Notes:Bn,Number:It,Password:Fn,Phone:Tt,Search:Pn,Select:Mt,Set:Lt,Textarea:Rn,Time:An,Users:$t,String:Ke,Form:Lt,runReload:es,useData:Xo,setValue:Qo,Palette:Yo,Toogle:zn,Group:Gn,Options:Zn};function ns({value:e="",onValue:t,onSave:n,name:r,format:i="+_(___) ___-__-__",placeholder:o="",title:s="",error:l="",hide:d=!1,edit:_=!0,active:u=!0,after:p="",show:m=!0,view:x,className:b=""}){_=_!==void 0?_:!0,u=u!==void 0?u:!0,d=!!(d&&(e===""||e===void 0))&&!(_&&u),f.useRef(null);let g=i,y=!0,C=0,M=(N,F)=>{let Y=document.createRange(),ae=window.getSelection();Y.setStart(F.childNodes[0],N),Y.collapse(!0),ae.removeAllRanges(),ae.addRange(Y),F.focus()},B=N=>{N.preventDefault(),navigator.clipboard.readText().then(F=>{window.document.execCommand("insertText",!1,F)}).catch(F=>{console.log("Something went wrong",F)})},j=N=>{let F=0,Y="",ae=N.replace(/\D/g,"");ae===""&&(y=!0);let se=ae.split(""),ve="";se.forEach(it=>{y&&(ve+=it,y&&(C=(""+ve).length,g=i.replace(new RegExp("[0-9]","g"),"_"),Y=""),C>(""+ve).length&&(y=!0,g=i.replace(new RegExp("[0-9]","g"),"_"),Y=""))});let Me=g.replace(/\D/g,"");return Me.length>=ae.length&&(ae=Me),{q:g.replace(/[_\d]/g,function(){return ae.charAt(F++)||"_"}),i:F,v:ae,f:Y}},S=N=>{N.preventDefault(),navigator.clipboard.writeText(N.target.textContent.replace(/\D/g,"")).then(function(){Se.Copy("Данные в буфер обмене")},function(F){console.error("Async: Could not copy text: ",F)})},D=j(e),w=N=>{let F=j(N.target.textContent);N.target.textContent=F.q,F.i=F.q.lastIndexOf(F.v.substr(-1)),F.i<F.q.length&&F.q!==g?F.i++:F.i=F.q.indexOf("_"),M(F.i,N.target),t&&t({value:F.q.replace(/\D/g,""),name:r})},O=N=>{N.key==="Enter"&&N.preventDefault()};const $=N=>{le.Blur(N),n&&n({value:N.target.textContent.replace(/\D/g,""),name:r})},W={};W.field="input",b&&(W.className=b);let z={};return _&&u?(z.edit="true",z.contentEditable="plaintext-only"):z.contentEditable="false",o&&(z.placeholder=o),p&&(z.after=p),d?a.jsx(a.Fragment,{}):a.jsxs("dl",{...W,children:[s&&a.jsx("dt",{children:s}),a.jsx("dd",{...z,onPaste:B,onInput:w,onKeyDown:O,onContextMenu:S,onBlur:$,suppressContentEditableWarning:!0,children:D.q}),l&&a.jsx("em",{children:l})]})}const as={Color:$n,Date:St,Code:Mn,Check:On,Switch:En,Input:Ke,Button:Dn,Message:In,Generator:Nn,Captcha:Tn,Modal:Et,Money:Dt,Mask:ns,Month:Ln,Notes:Bn,Number:It,Password:Fn,Phone:Tt,Search:Pn,Select:Mt,Set:Lt,Textarea:Rn,Time:An,Users:$t,String:Ke,Toogle:zn,Group:Gn,Options:Zn},Wn={spinner:"_spinner_o487n_1",l:"_l_o487n_75",loadingB:"_loadingB_o487n_1"};function rs(){return a.jsx("div",{className:Wn.spinner,children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 483 484",children:a.jsx("path",{d:"M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",transform:"translate(-9 -8)"})})})}function is(){return a.jsxs("div",{className:Wn.l,children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})}const os={Spinner:rs,Inline:is},Kn={s:"_s_t9swc_1"};let Bt;function ss({className:e,placeholder:t}){let n=s=>{Bt(s.target.textContent)},r=s=>{s.key==="Enter"&&s.preventDefault()},i=s=>{s.preventDefault(),navigator.clipboard.readText().then(l=>{window.document.execCommand("insertText",!1,l)}).catch(l=>{console.log("Something went wrong",l)})};const o={};return t&&(o.placeholder=t),o.className=e?[Kn.s,e].join(" "):Kn.s,a.jsx("div",{onPaste:i,onInput:n,onKeyDown:r,contentEditable:"plaintext-only",...o,suppressContentEditableWarning:!0})}function ls(e,t,n){let r=[],i=1,o=0,s={},l=50;return s[i]=[],e.forEach(d=>{d.text.toLowerCase().indexOf(t)>-1&&r.push(d.id)}),r.forEach(d=>{o++,o<=l||(i++,o=1,s[i]=[]),s[i].push(n[d])}),s}function ds(e){Bt=e}function cs(e){Bt=e}const _s={Field:ss,Run:ls,Get:ds,useValue:cs},us={f:"_f_q3r0i_1"};let de={};function fs(e,t){switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"data":let n={};return Object.keys(t.data).forEach(i=>{i!=="sort"&&(n[i]=t.data[i],e.take[i]="999")}),{...e,data:n,take:e.take};case"size":return{...e,size:t.size};case"take":let r={[t.list]:t.take};r={...e.take,...r},e.active=!1;for(let i in r)r[i]!=="999"&&(e.active=!0);return de.get(r,e.active),{...e,take:r,active:e.active};case"exit":for(let i in e.take)e.take[i]="999";return de.get&&de.get([],!1),{...e,size:0,active:!1,take:e.take,open:!1};default:throw new Error}}function ms(){const[e,t]=f.useReducer(fs,{open:!1,view:null,data:{},take:{},size:0,active:!1});return de.set=n=>{t({type:"data",data:n})},de.count=n=>{t({type:"size",size:n})},de.reset=()=>{t({type:"exit"})},a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:us.f,onClick:()=>{t({type:"open",open:!0})},children:[a.jsx(ai,{}),e.active&&a.jsxs("i",{children:[e.size,"1"]})]}),e.open?a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"filter o",onClick:()=>{t({type:"open",open:!1})}}),a.jsxs("div",{className:"filter m",children:[a.jsx("div",{className:"filter l",children:Object.keys(e.data).map(n=>a.jsx(vs,{data:n,dispatch:t,state:e},n))}),a.jsx("div",{className:"filter b",onClick:()=>{t({type:"exit"})},children:"Убрать фильтер"})]})]}):a.jsx(a.Fragment,{})]})}function ps(e){de.get=e}function hs(e){de.set!==void 0&&de.set(e)}function xs(e){de.reset!==void 0&&de.reset(e)}function gs(e,t,n,r){let i=[],o=1,s=0,l={},d=50;return l[o]=[],r===!0&&(Object.keys(t).forEach(_=>{Number.parseInt(t[_])!==999&&(e=e.filter(u=>Number.parseInt(u[_])===Number.parseInt(t[_])))}),Yn(e.length)),e.forEach(_=>{i.push(_.id)}),i.forEach(_=>{s++,s<=d||(o++,s=1,l[o]=[]),l[o].push(n[_])}),l}function Yn(e){de.count(e)}function vs({data:e,state:t,dispatch:n}){let r=()=>{n({type:"view",view:e})},i=()=>{n({type:"take",list:e,take:"999"})};return a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"filter s",children:[a.jsxs("div",{onClick:r,children:[" ",t.data[e].name," "]}),t.take[e]!=="999"?a.jsx("div",{onClick:i,className:"filter x","data-icon":"F038"}):""]}),a.jsx("div",{className:"filter u","set-active":(t.view===e)+"",children:Object.keys(t.data[e].list).map((o,s)=>a.jsx(bs,{data:t.data[e].list[o],head:e,type:o,dispatch:n,state:t},s))})]})}function bs({data:e,head:t,state:n,dispatch:r,type:i}){if(i!=="999"&&e.count===void 0)return"";const o=()=>{r({type:"take",list:t,take:i})};return a.jsxs("div",{className:"filter a",onClick:o,"set-active":(n.take[t]===i)+"",children:[e.name,a.jsx("div",{className:"filter e",children:e.count})]})}const ys={Button:ms,useValue:ps,Set:hs,Run:gs,Count:Yn,Reset:xs},ws={Bell:ci,Send:si,Add:oi},Hn={p:"_p_djnh1_1",l:"_l_djnh1_38"};function ks(e){let t=3,n=e.page,r=e.count,i=[],o=()=>{i.push({page:1}),i.push({text:"..."})},s=()=>{i.push({text:"..."}),i.push({page:r})},l=(d,_)=>{for(let u=d;u<_;u++)i.push({page:u})};return r<t*2+6?l(1,r+1):n<t*2+1?(l(1,t*2+4),s()):n>r-t*2?(t=r>1e4?1:t,o(),l(r-t*2-2,r+1)):(t=r>1e4?1:t,o(),l(n-t,n+t+1),s()),i.length===1?a.jsx(a.Fragment,{}):a.jsxs("div",{className:Hn.p,children:[a.jsx("i",{onClick:()=>e.onChangePage(n-1),children:a.jsx("svg",{viewBox:"0 0 24 24",children:a.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})}),i.map((d,_)=>{console.log(d,e);const u={};return d.page&&(u.onClick=()=>e.onChangePage(d.page)),d.page===e.page&&(u.active=""),f.createElement("span",{...u,key:_},d.page||d.text)}),a.jsx("i",{onClick:()=>e.onChangePage(n+1),children:a.jsx("svg",{viewBox:"0 0 24 24",children:a.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})})]})}function Cs(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,data:t.data,list:t.data[e.page],size:Object.keys(t.data).length};case"page":return{...e,page:t.page,list:e.data[t.page]};default:throw new Error}}function qn({load:e,list:t,item:n}){const r=f.useRef(null),[i,o]=f.useReducer(Cs,{load:!1,list:[],data:{},page:1,wait:!1,item:n});console.log("load",e),f.useEffect(()=>{t!==null&&o({type:"load",load:e,data:t})},[e]);let s=l=>{if(l===0)return l=1;if(l>i.size)return l=i.size;o({type:"page",page:l})};return f.useEffect(()=>{},[i]),console.log(i),a.jsxs(a.Fragment,{children:[a.jsx("div",{className:Hn.l,ref:r,children:a.jsx(jn,{"el-empty":"Данные не найдены",children:i.load&&i.list!==void 0?i.list.map(l=>a.jsx(i.item,{data:l},l.id)):a.jsxs("div",{"type-data":"load",children:[a.jsx("i",{}),a.jsx("i",{}),a.jsx("i",{})]})})}),i.load&&i.list!==void 0?a.jsx(ks,{page:i.page,count:i.size,onChangePage:s}):a.jsx(a.Fragment,{})]})}const js={Pagination:qn};function Ss({head:e,load:t,list:n,item:r}){const i=e;return a.jsxs(a.Fragment,{children:[a.jsx(i,{}),tt.getSetting("s05")===1?a.jsx(qn,{list:n,load:t,item:r}):a.jsx(Sn,{list:n,load:t,item:r})]})}function Es(e,t){switch(t.type){case"load":return{...e,time:Date.now(),load:t.load,list:t.list,temp:t.temp};case"filter":return{...e,list:t.list,filter:t.active,band:t.band,time:Date.now()};case"search":return{...e,time:Date.now(),list:t.list};case"triage":return{...e,time:Date.now(),list:t.list,sort:t.sort};case"noload":return{...e,load:!0,time:Date.now()};default:throw new Error}}const Ft={};function Ds(e){Ft.get=e}function Is(e){Ft.get&&Ft.get(e)}const Ns={View:Ss,Reducer:Es,useValue:Ds,setValue:Is},Ts={addDictionary:Yi,getDictionary:Vi,setDictionary:qi,current:Ji},Ms={Get:pi},$s=function({title:e,children:t,imp:n,button:r,page:i,tabs:o,modules:s}){const[l]=Ne.useTabs(i),[d,_]=f.useState(!1);return f.useEffect(()=>{_(!0)},[]),a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"list-info",children:[a.jsx("h2",{children:e}),a.jsx("div",{className:"empty"}),a.jsx(Bs,{button:r})]}),d&&a.jsx(Ls,{imp:n,modules:s,t:l}),t]})};let Ls=({modules:e,t})=>{const n=f.lazy(()=>ft(e+"/pages/"+t+".tsx"));return a.jsx(f.Suspense,{fallback:"",children:a.jsx(n,{})})},Bs=({button:e})=>{const[t,n]=f.useState(e);return ge.useListener("button",n),a.jsxs(a.Fragment,{children:[" ",t]})};const Fs={Open:Gi};function Ps({active:e,onActive:t,id:n,name:r}){const[i,o]=f.useState(!!e);f.useEffect(()=>{o(!!e)},[e]);let s=()=>{let l=i?0:1;o(!i),t&&t({value:l,is:!i,name:r,id:n,setActive:o})};return a.jsx("div",{role:"switch",onClick:s,"aria-checked":`${i?"true":"false"}`})}T.Action=wn,T.Alert=bo,T.Animation=Ur,T.Api=pt,T.Badge=$o,T.Bookmarks=vo,T.Browser=lo,T.Button=_n,T.Company=Ms,T.Component=gt,T.DataBase=Fo,T.Event=ge,T.Events=ge,T.Files=Oo,T.Filter=ys,T.Form=ts,T.Format=K,T.HotKey=Po,T.Icon=wo,T.Init=bn,T.Input=as,T.Lang=Ts,T.List=Ns,T.Loading=os,T.Modal=Ue,T.Notice=Se,T.Notifications=ws,T.Pagination=js,T.Phone=Fs,T.Router=Ne,T.Scrolling=Sn,T.Search=_s,T.Setting=go,T.Sistym=Fe,T.Socket=me,T.Store=te,T.Switch=Ps,T.Tabs=yn,T.Test=$s,T.Triage=No,T.User=tt,T.WebRTC=U,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
|