tent}</h6>
            `,i=Object.assign({},{type:n,message:o},e||{},a||{});return Qr.open(i)};return Object.freeze({info:t("info"),success:t("success"),error:t("error"),extended:ag,dismiss:Qr.dismiss.bind(Qr),dismissAll:Qr.dismissAll.bind(Qr),open:Qr.open.bind(Qr)})}const og=()=>new Date().getTime(),K8=(()=>{let e=null,t=0,n=null;return{start(r){e&&Qr.dismiss(e);const a=`
                <h6>${D("Loading")}</h6>
                <div>${r}</div>
            `;e=Qr.open({type:"loading",message:a,duration:0,dismissible:!1}),t=og(),n&&(clearTimeout(n),n=null)},stop(){if(e&&t&&n===null){const r=Math.max(og()-t,0);n=setTimeout(()=>{e&&(Qr.dismiss(e),n=null)},pq-r)}}}})(),hq=On(Kd,lr(m6("=")),m6("&"),sP(Ys,Rx("?"))),mq=e=>(e=oS(/\?|\//g,"",e),e.replace(/\?|\//g,"").split("&").filter(Boolean).map(iS("=")).reduce((n,r)=>r[0]&&r[1]?{...n,[r[0]]:r[1]}:n,{})),q8=e=>{const t=document.createElement("a"),n=e.includes("//")||e.startsWith("/")?e:`//${e}`;t.href=n;const r=t.port?`:${t.port}`:"";return{path:[t.protocol,"//",t.hostname,r,t.pathname].join(""),query:mq(t.search),hash:t.hash}},vq=e=>m6("",[e.path,Object.keys(e.query).length?hq(e.query):"",e.hash]);Xb((e,t)=>{const n=q8(t);return delete n.query[e],vq(n)});const ig={"/CMD_TICKET":({query:e})=>e.action==="view"?{name:E.USER_MESSAGES,query:{id:e.number}}:!1,"/CMD_TICKET_MANAGE":({query:e})=>e.action==="view"?{name:E.RESELLER_TICKETS,query:{id:e.number}}:!1,"/CMD_SHOW_USER":({query:e})=>e.user?{name:E.RESELLER_USERS_VIEW,params:{user:e.user.toString()}}:!1,"/CMD_SHOW_DOMAIN":({query:e})=>e.domain?{name:E.USER_DOMAINS_EDIT_INDEX,params:{domain:e.domain.toString()}}:!1},gq=e=>{const t=window.location,n=q8(e),[r,a,...o]=n.path.replace(`${t.protocol}//${t.host}/`,"").split("/"),i={CMD_PLUGINS:"user",CMD_PLUGINS_RESELLER:"reseller",CMD_PLUGINS_ADMIN:"admin"}[r]||"user";let s=o.join("/");return s.startsWith("/")&&(s=s.slice(1)),{name:E.USER_PLUGINS,params:{level:i,id:a},query:{...n.query,path:s||void 0}}},_q=e=>{if(ig[e.path]){const t=ig[e.path](e);if(t)return t}else if(e.path.includes("PLUGINS"))return gq(e.path);return null},yq=l.Union(l.Literal("/CMD_ACCOUNT_ADMIN"),l.Literal("/CMD_ACCOUNT_RESELLER"),l.Literal("/CMD_ACCOUNT_USER"),l.Literal("/CMD_ADDITIONAL_DOMAINS"),l.Literal("/CMD_ADMIN_BACKUP"),l.Literal("/CMD_ADMIN_BACKUP_MODIFY"),l.Literal("/CMD_ADMIN_CRON_JOBS"),l.Literal("/CMD_ADMIN_FILE_EDITOR"),l.Literal("/CMD_ADMIN_HISTORY"),l.Literal("/CMD_ADMIN_LIMITS"),l.Literal("/CMD_ADMIN_SETTINGS"),l.Literal("/CMD_ADMIN_SHOW"),l.Literal("/CMD_ADMIN_SSL"),l.Literal("/CMD_ADMIN_STATS"),l.Literal("/CMD_AJAX_CHECK_DOMAIN"),l.Literal("/CMD_AJAX_CHECK_PASSWORD"),l.Literal("/CMD_AJAX_CHECK_USERNAME"),l.Literal("/CMD_AJAX_GET_COUNTS"),l.Literal("/CMD_AJAX_SEARCH"),l.Literal("/CMD_AJAX_USERS"),l.Literal("/CMD_ALL_USER_SHOW"),l.Literal("/CMD_API_ACCOUNT_ADMIN"),l.Literal("/CMD_API_ACCOUNT_RESELLER"),l.Literal("/CMD_API_ACCOUNT_USER"),l.Literal("/CMD_API_ADDITIONAL_DOMAINS"),l.Literal("/CMD_API_ADMIN_BACKUP"),l.Literal("/CMD_API_ADMIN_BACKUP_MODIFY"),l.Literal("/CMD_API_ADMIN_FILE_EDITOR"),l.Literal("/CMD_API_ADMIN_LIMITS"),l.Literal("/CMD_API_ADMIN_STATS"),l.Literal("/CMD_API_ALL_USER_USAGE"),l.Literal("/CMD_API_BANDWIDTH_BREAKDOWN"),l.Literal("/CMD_API_BRUTE_FORCE_MONITOR"),l.Literal("/CMD_API_CHANGE_DOMAIN"),l.Literal("/CMD_API_CHANGE_INFO"),l.Literal("/CMD_API_COMMENTS"),l.Literal("/CMD_API_CRON_JOBS"),l.Literal("/CMD_API_CUSTOM_HTTPD"),l.Literal("/CMD_API_DATABASES"),l.Literal("/CMD_API_DB_USER"),l.Literal("/CMD_API_DB_USER_PRIVS"),l.Literal("/CMD_API_DIRECTADMIN_CONF"),l.Literal("/CMD_API_DNS_ADMIN"),l.Literal("/CMD_API_DNS_CONTROL"),l.Literal("/CMD_API_DNS_MX"),l.Literal("/CMD_API_DNS_RESELLER"),l.Literal("/CMD_API_DOMAIN"),l.Literal("/CMD_API_DOMAIN_OWNERS"),l.Literal("/CMD_API_DOMAIN_POINTER"),l.Literal("/CMD_API_DU_BREAKDOWN"),l.Literal("/CMD_API_EDIT_USER_MESSAGE"),l.Literal("/CMD_API_EMAIL_AUTH"),l.Literal("/CMD_API_EMAIL_AUTORESPONDER"),l.Literal("/CMD_API_EMAIL_AUTORESPONDER_CREATE"),l.Literal("/CMD_API_EMAIL_AUTORESPONDER_MODIFY"),l.Literal("/CMD_API_EMAIL_CATCH_ALL"),l.Literal("/CMD_API_EMAIL_FILTER"),l.Literal("/CMD_API_EMAIL_FORWARDERS"),l.Literal("/CMD_API_EMAIL_LIST"),l.Literal("/CMD_API_EMAIL_POP"),l.Literal("/CMD_API_EMAIL_USAGE"),l.Literal("/CMD_API_EMAIL_VACATION"),l.Literal("/CMD_API_EMAIL_VACATION_MODIFY"),l.Literal("/CMD_API_EXEC"),l.Literal("/CMD_API_FILE_MANAGER"),l.Literal("/CMD_API_FTP"),l.Literal("/CMD_API_FTP_SETTINGS"),l.Literal("/CMD_API_FTP_SHOW"),l.Literal("/CMD_API_GET_SESSION"),l.Literal("/CMD_API_HANDLERS"),l.Literal("/CMD_API_HOTLINK"),l.Literal("/CMD_API_IP_CONFIG"),l.Literal("/CMD_API_IP_MANAGER"),l.Literal("/CMD_API_IP_MANAGER_DETAILS"),l.Literal("/CMD_API_LICENSE"),l.Literal("/CMD_API_LOAD_AVERAGE"),l.Literal("/CMD_API_LOGIN_KEYS"),l.Literal("/CMD_API_LOGIN_TEST"),l.Literal("/CMD_API_LOG_VIEWER"),l.Literal("/CMD_API_MAIL_QUEUE"),l.Literal("/CMD_API_MANAGE_RESELLER_PACKAGES"),l.Literal("/CMD_API_MANAGE_USER_PACKAGES"),l.Literal("/CMD_API_MODIFY_RESELLER"),l.Literal("/CMD_API_MODIFY_USER"),l.Literal("/CMD_API_MOVE_USERS"),l.Literal("/CMD_API_MULTI_SERVER"),l.Literal("/CMD_API_NAME_SERVER"),l.Literal("/CMD_API_NGINX_TEMPLATES"),l.Literal("/CMD_API_OWNERS_OWNER"),l.Literal("/CMD_API_PACKAGES_RESELLER"),l.Literal("/CMD_API_PACKAGES_USER"),l.Literal("/CMD_API_PASSWD"),l.Literal("/CMD_API_PERL_MODULES"),l.Literal("/CMD_API_PHP_SAFE_MODE"),l.Literal("/CMD_API_POP"),l.Literal("/CMD_API_PROCESS_MONITOR"),l.Literal("/CMD_API_PROTECTED_DIRECTORIES"),l.Literal("/CMD_API_PUBLIC_STATS"),l.Literal("/CMD_API_REBOOT"),l.Literal("/CMD_API_REDIRECT"),l.Literal("/CMD_API_REDIS"),l.Literal("/CMD_API_RESELLER_HISTORY"),l.Literal("/CMD_API_RESELLER_LIMITS"),l.Literal("/CMD_API_RESELLER_STATS"),l.Literal("/CMD_API_RESEND_EMAIL"),l.Literal("/CMD_API_SELECT_USERS"),l.Literal("/CMD_API_SERVICE"),l.Literal("/CMD_API_SHOW_ADMINS"),l.Literal("/CMD_API_SHOW_ALL_USERS"),l.Literal("/CMD_API_SHOW_DOMAINS"),l.Literal("/CMD_API_SHOW_RESELLERS"),l.Literal("/CMD_API_SHOW_RESELLER_CONFIG"),l.Literal("/CMD_API_SHOW_RESELLER_IPS"),l.Literal("/CMD_API_SHOW_SERVICES"),l.Literal("/CMD_API_SHOW_USERS"),l.Literal("/CMD_API_SHOW_USER_CONFIG"),l.Literal("/CMD_API_SHOW_USER_DOMAINS"),l.Literal("/CMD_API_SHOW_USER_USAGE"),l.Literal("/CMD_API_SITE_BACKUP"),l.Literal("/CMD_API_SKINS"),l.Literal("/CMD_API_SPAMASSASSIN"),l.Literal("/CMD_API_SSH_KEYS"),l.Literal("/CMD_API_SSL"),l.Literal("/CMD_API_SUBDOMAIN"),l.Literal("/CMD_API_SUBDOMAINS"),l.Literal("/CMD_API_SUBDOMAIN_BANDWIDTH"),l.Literal("/CMD_API_SYSTEM_INFO"),l.Literal("/CMD_API_TEMPLATE_DIFF"),l.Literal("/CMD_API_TICKET"),l.Literal("/CMD_API_TICKET_CREATE"),l.Literal("/CMD_API_TICKET_MANAGE"),l.Literal("/CMD_API_TIMEZONE"),l.Literal("/CMD_API_TWOSTEP_AUTH"),l.Literal("/CMD_API_UNIT"),l.Literal("/CMD_API_USER_BACKUP"),l.Literal("/CMD_API_USER_BACKUP_MODIFY"),l.Literal("/CMD_API_USER_EXISTS"),l.Literal("/CMD_API_USER_HISTORY"),l.Literal("/CMD_API_USER_LIMITS"),l.Literal("/CMD_API_USER_PASSWD"),l.Literal("/CMD_API_VERIFY_PASSWORD"),l.Literal("/CMD_AWSTATS"),l.Literal("/CMD_BANDWIDTH_BREAKDOWN"),l.Literal("/CMD_BRUTE_FORCE_MONITOR"),l.Literal("/CMD_CHANGE_DOMAIN"),l.Literal("/CMD_CHANGE_INFO"),l.Literal("/CMD_COMMENTS"),l.Literal("/CMD_CRON_JOBS"),l.Literal("/CMD_CUSTOM_HTTPD"),l.Literal("/CMD_DB"),l.Literal("/CMD_DB_ACCESS"),l.Literal("/CMD_DB_CREATE"),l.Literal("/CMD_DB_USER_CREATE"),l.Literal("/CMD_DB_USER_PRIVS"),l.Literal("/CMD_DB_VIEW"),l.Literal("/CMD_DNS_ADMIN"),l.Literal("/CMD_DNS_CONTROL"),l.Literal("/CMD_DNS_MX"),l.Literal("/CMD_DNS_RESELLER"),l.Literal("/CMD_DOMAIN"),l.Literal("/CMD_DOMAIN_POINTER"),l.Literal("/CMD_DU_BREAKDOWN"),l.Literal("/CMD_EDIT_ADMIN_MESSAGE"),l.Literal("/CMD_EDIT_RESELLER_MESSAGE"),l.Literal("/CMD_EDIT_USER_MESSAGE"),l.Literal("/CMD_EMAIL_AUTORESPONDER"),l.Literal("/CMD_EMAIL_AUTORESPONDER_CREATE"),l.Literal("/CMD_EMAIL_AUTORESPONDER_MODIFY"),l.Literal("/CMD_EMAIL_CATCH_ALL"),l.Literal("/CMD_EMAIL_FILTER"),l.Literal("/CMD_EMAIL_FORWARDER"),l.Literal("/CMD_EMAIL_FORWARDER_MODIFY"),l.Literal("/CMD_EMAIL_LIST"),l.Literal("/CMD_EMAIL_POP"),l.Literal("/CMD_EMAIL_REG"),l.Literal("/CMD_EMAIL_USAGE"),l.Literal("/CMD_EMAIL_VACATION"),l.Literal("/CMD_EMAIL_VACATION_CREATE"),l.Literal("/CMD_EMAIL_VACATION_MODIFY"),l.Literal("/CMD_FILE_MANAGER"),l.Literal("/CMD_FTP"),l.Literal("/CMD_FTP_SETTINGS"),l.Literal("/CMD_FTP_SHOW"),l.Literal("/CMD_HANDLERS"),l.Literal("/CMD_HOTLINK"),l.Literal("/CMD_IP_CONFIG"),l.Literal("/CMD_IP_MANAGER"),l.Literal("/CMD_IP_MANAGER_DETAILS"),l.Literal("/CMD_JSON_VALIDATE"),l.Literal("/CMD_LICENSE"),l.Literal("/CMD_LICENSE_VERIFY"),l.Literal("/CMD_LOGIN"),l.Literal("/CMD_LOGIN_KEYS"),l.Literal("/CMD_LOG_VIEWER"),l.Literal("/CMD_MAIL_QUEUE"),l.Literal("/CMD_MANAGE_RESELLER_PACKAGES"),l.Literal("/CMD_MANAGE_USER_PACKAGES"),l.Literal("/CMD_MIME_TYPES"),l.Literal("/CMD_MODIFY_RESELLER"),l.Literal("/CMD_MODIFY_USER"),l.Literal("/CMD_MODSECURITY"),l.Literal("/CMD_MOVE_USERS"),l.Literal("/CMD_MULTI_SERVER"),l.Literal("/CMD_NAME_SERVER"),l.Literal("/CMD_NETDATA_SOCK"),l.Literal("/CMD_NGINX_TEMPLATES"),l.Literal("/CMD_PERL_MODULES"),l.Literal("/CMD_PHP_SAFE_MODE"),l.Literal("/CMD_PHP_SETTINGS"),l.Literal("/CMD_PLUGINS"),l.Literal("/CMD_PLUGINS_ADMIN"),l.Literal("/CMD_PLUGINS_RESELLER"),l.Literal("/CMD_PLUGIN_MANAGER"),l.Literal("/CMD_PMA_LOGIN"),l.Literal("/CMD_PROCESS_MONITOR"),l.Literal("/CMD_PROTECTED_DIRECTORIES"),l.Literal("/CMD_PUBLIC_STATS"),l.Literal("/CMD_REBOOT"),l.Literal("/CMD_REDIRECT"),l.Literal("/CMD_REDIS"),l.Literal("/CMD_RESELLER_HISTORY"),l.Literal("/CMD_RESELLER_LIMITS"),l.Literal("/CMD_RESELLER_SHOW"),l.Literal("/CMD_RESELLER_STATS"),l.Literal("/CMD_RESEND_EMAIL"),l.Literal("/CMD_RSPAMD_SOCK"),l.Literal("/CMD_SELECT_USERS"),l.Literal("/CMD_SERVICE"),l.Literal("/CMD_SHOW_DOMAIN"),l.Literal("/CMD_SHOW_LOG"),l.Literal("/CMD_SHOW_RESELLER"),l.Literal("/CMD_SHOW_RESELLER_PACKAGE"),l.Literal("/CMD_SHOW_SERVICES"),l.Literal("/CMD_SHOW_USER"),l.Literal("/CMD_SHOW_USER_PACKAGE"),l.Literal("/CMD_SITE_BACKUP"),l.Literal("/CMD_SKINS"),l.Literal("/CMD_SPAMASSASSIN"),l.Literal("/CMD_SSH_KEYS"),l.Literal("/CMD_SSL"),l.Literal("/CMD_SUBDOMAIN"),l.Literal("/CMD_SUSPENSION_MESSAGE"),l.Literal("/CMD_SYSTEM_BACKUP"),l.Literal("/CMD_SYSTEM_INFO"),l.Literal("/CMD_TEMPLATE_DIFF"),l.Literal("/CMD_TICKET"),l.Literal("/CMD_TICKET_CREATE"),l.Literal("/CMD_TICKET_MANAGE"),l.Literal("/CMD_TIMEZONE"),l.Literal("/CMD_TWOSTEP_AUTH"),l.Literal("/CMD_UNIT"),l.Literal("/CMD_USER_BACKUP"),l.Literal("/CMD_USER_BACKUP_MODIFY"),l.Literal("/CMD_USER_HISTORY"),l.Literal("/CMD_USER_LIMITS"),l.Literal("/CMD_USER_PASSWD"),l.Literal("/CMD_USER_SHOW"),l.Literal("/CMD_USER_STATS"),l.Literal("/CMD_WEBALIZER"),l.Literal("/CMD_WEBMAIL_LOGIN"),l.Literal("/CMD_WIDGET"),l.Literal("/api/admin-usage"),l.Literal("/api/change-password"),l.Literal("/api/change-user-creator"),l.Literal("/api/clamav"),l.Literal("/api/convert-reseller-to-user"),l.Literal("/api/convert-user-to-reseller"),l.Literal("/api/cpanel-import"),l.Literal("/api/custombuild"),l.Literal("/api/db-manage"),l.Literal("/api/db-monitor"),l.Literal("/api/db-show"),l.Literal("/api/email-config"),l.Literal("/api/email-logs-summary"),l.Literal("/api/email-logs"),l.Literal("/api/emailvacation"),l.Literal("/api/execute"),l.Literal("/api/git"),l.Literal("/api/imapsync"),l.Literal("/api/license"),l.Literal("/api/login-history"),l.Literal("/api/login-keys"),l.Literal("/api/maintenance"),l.Literal("/api/messages"),l.Literal("/api/phpmyadmin-sso"),l.Literal("/api/redis"),l.Literal("/api/resellers"),l.Literal("/api/restart"),l.Literal("/api/security-txt"),l.Literal("/api/system-info"),l.Literal("/api/server-tls"),l.Literal("/api/skin-customization"),l.Literal("/api/skin-global-options"),l.Literal("/api/terminal"),l.Literal("/api/ticket-requests"),l.Literal("/api/tickets"),l.Literal("/api/multi-factor-auth"),l.Literal("/api/users"),l.Literal("/api/version"),l.Literal("/api/wordpress")),Eq=l.Union(l.Literal("user"),l.Literal("reseller"),l.Literal("admin")),sg=l.String.withConstraint(e=>Object.values(E).includes(e)),bq=l.Record({commands:l.Array(yq),enabled:l.Function,level:Eq,searchable:l.Boolean,needsDomain:l.Boolean,directRender:l.Boolean,renderHeader:l.Boolean,ancestors:l.Array(sg),forceLayout:l.Union(l.Literal("fm"),l.Literal("none")),useLoadingNotify:l.Boolean,title:l.Function,adminRedirect:sg.nullable()}),Fr=Dr("user",()=>{const{sessionData:e}=Eo();if(!e)throw new Kr("User Data","Could not init user store, session data is not defined",{store:"user",action:"definition"});const t=K(e.values.user.name),n=ur(),r=e.effectiveUser