isdata-customer-sdk 0.3.5 → 0.3.6

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.
@@ -1 +1 @@
1
- "use strict";var t=require("axios"),e={},a=Object.prototype.hasOwnProperty;function r(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var r,s,n=[];for(s in"string"!=typeof e&&(e="?"),t)if(a.call(t,s)){if((r=t[s])||null!=r&&!isNaN(r)||(r=""),s=o(s),r=o(r),null===s||null===r)continue;n.push(s+"="+r)}return n.length?e+n.join("&"):""},e.parse=function(t){for(var e,a=/([^=?#&]+)=?([^&]*)/g,o={};e=a.exec(t);){var s=r(e[1]),n=r(e[2]);null===s||null===n||s in o||(o[s]=n)}return o};const s="development"===process.env.NODE_ENV,n="true"===process.env.VUE_APP_ONLINE_DEVELOPMENT_MODE||"true"===process.env.REACT_APP_ONLINE_DEVELOPMENT_MODE;window.isDevopmentMode=s,window.isOnlineDevelopmentMode=n;var p=((a="")=>{a&&(a.startsWith("/")&&(a=a.slice(1,a.length)),a.endsWith("/")&&(a=a.slice(0,-1)));const r=t.create({baseURL:`/${a?a+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&e.parse(window.location.search).token||window.token?{token:e.parse(window.location.search).token||window.token}:{}});let o=r.post;return r.post=(t,e,a)=>{let s=window.VITE_SERVICE_BASE_URL||"";if(s){let n=s+t;return o.call(r,n,e,a)}return o.call(r,t,e,a)},r.interceptors.request.use(t=>{if(!n&&s){let e=window.mockData.PORTAL_SERVER_ADDRESS,a=window.mockData.VITE_SERVICE_BASE_URL;t.url=`${e}${a}${t.url}`}return t},t=>Promise.reject(t)),r.defaults.headers.post["Content-Type"]="application/json",r.interceptors.response.use(t=>{let{data:e}=t;return"string"==typeof e&&(e=JSON.parse(e)),!e||200===e.status||e instanceof Blob?e instanceof Blob?(t.data=e,t):(t.data=e&&e.result,t):Promise.reject(t)},t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)}),r})(window.prefixPath||"");const i=()=>{let t=window.sessionStorage.getItem("iportal_app_id");return t||(t=l()),t},l=()=>window?.appSdk?.getAppId()||window.localStorage.MobileAppId,c=async(t,e)=>{let a={param:{id:t}},r=await p.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",a),o=r.data.resultDatas,s=r.data.menuTypes;r=await p.post("/dataservice/rest/orchestration/getPortalDefaultQuickMenus",{});let n=r.data.resultDatas,i=r.data.menuTypes,l=o.concat(n),c=s.concat(i),u=[],g=[],I={};for(const t of l){let e=t.id;I[e]||(u.push(t),I[e]=t)}let m={};for(const t of c){let e=t.id;m[e]||(g.push(t),m[e]=t)}if(e&&e.length>0){r=await d(e,t);let a=r.data.quickMenuMappingDatas||[],o={};for(const t of a){let e=t.menu_mapping_id,a=I[e];o[e]=a}return f(u,g,o)}return f(u,g,[])},d=async(t,e)=>{let a={param:{role_ids:t,group_id:e}};return await p.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",a)},u=async(t,e,a)=>{let r={param:{user_id:t,app_id:e,group_id:a}};return(await p.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",r)).data.portal_role_ids},g=async(t,e)=>{let a={param:{role_ids:t,app_id:e}};return(await p.post("/dataservice/rest/orchestration/getPlatformMenuMappingsByRoleIDs",a)).data.mappingDatas},f=(t,e,a)=>{let r={},o={},s={};for(let t in a){let e=a[t];if(!e)continue;let r=e.parent_id;r&&(s[r]=!0)}for(const e of t){let t=e.id,o={id:t,index:e.menu_id,name:e.title,sort:e.sort,actionType:e.actionType,url:e.url,iconClass:e.image?e.image:"4"==e.type?"":"el-icon-menu",parent_id:e.parent_id,isLeftMenuShow:"1"==e.is_left_menu_show,topMenuDisplayType:e.top_menu_display_type,initialBg:e.top_bar_initialBg,initHeight:e.top_bar_initHeight,scrolledBg:e.top_bar_scrolledBg,scrollHeight:e.top_bar_scrollHeight,initialTextColor:e.top_bar_initialTextColor,scrolledTextColor:e.top_bar_scrolledTextColor,menuHoverColor:e.top_bar_menuHoverColor,menuHoverBgColor:e.top_bar_menuHoverBgColor,side_offset:e.top_menu_side_offset,app_logo:e.app_logo,app_scrolled_logo:e.app_scrolled_logo,isList:"1"==e.status,children:[],app_id:e.app_id,menu_id:e.menu_id,beyond_type:e.menu_type?e.menu_type:"RJVIEW-OTHERS",beyond_type_sort:e.menu_type_sort?e.menu_type_sort:999,type:"MenuItem",typeID:e.type};(a&&a[t]||"4"==e.type||s[t]||"1"==e.is_app_defalut)&&(r[t]=o)}for(const t of e){o[t.id]=t}for(const e of t){if("5"==e.type){let t=r[e.id];if(!t)continue;let a=e.parent_id,s=t.beyond_type,n=r[a];if(!n)continue;let p=n.children,i=p.find(t=>t.id==s);if(i){i.children.push(t),t.typeItem=i}else{let e=o[s],r=e?{id:s,index:s,name:e.title,children:[],sort:e.value,parent_id:a,type:"MenuType"}:{id:s,index:s,name:"其他",children:[],sort:999,parent_id:a,type:"MenuType"};r.children.push(t),p.push(r),t.typeItem=r}}}const n=[];for(const e of t){if("4"==e.type){let t=r[e.id];if(!t)continue;let o=t.children,s=0;for(const t of o){let e=t.children.length;if(s+=e,e>0)break}if("1"!=e.is_app_defalut&&a&&!a[e.id]&&0==s)continue;n.push(t);let p=t.children;p.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort);for(let t of p){t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}}return n.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),n},I=(t,e)=>{if(e&&e.length>0)for(let a=0;a<e.length;a++)if(e[a].name==t)return e[a].default_value;return""};exports.addIMMapping=async(t,e,a,r)=>{let o={param:{data:{userID:t,im_type:e,group_id:a,userSig:r}}};return(await p.post("/dataservice/rest/orchestration/addIMMapping",o)).data},exports.addObjTipMapping=(t,e,a,r)=>{let o={param:{sourceID:t,tipID:e,userID:a,groupID:r}};return p.post("/dataservice/rest/orchestration/addObjTipMapping",o).data.operatorResult||{}},exports.addObjectUsedTimes=t=>{let e={param:{operateData:t}};return p.post("/dataservice/rest/orchestration/addObjectUsedTimes",e)},exports.addTips=t=>{let e={param:{tipInfos:t}};return p.post("/dataservice/rest/orchestration/addTips",e).data.operateResult||{}},exports.addTipsAndMapping=(t,e,a)=>{let r={param:{tipInfos:t,objectID:e,userID:a}};return p.post("/dataservice/rest/orchestration/addTipsAndMapping",r)||{}},exports.deleteObjTipMapping=(t,e,a)=>{let r={param:{sourceID:t,tipID:e,userID:a}};return p.post("/dataservice/rest/orchestration/deleteObjTipMapping",r).data.operatorResult||{}},exports.deleteTips=t=>{let e={param:{tipIDs:t}};return p.post("/dataservice/rest/orchestration/deleteTips",e).data.operateResult||{}},exports.deleteTipsAndMapping=(t,e,a)=>{let r={param:{tipIDs:t,userID:e,objectID:a}};return p.post("/dataservice/rest/orchestration/deleteTipsAndMapping",r)||{}},exports.getAIRobotInfos=async(t,e)=>{let a={param:{userID:t,groupID:e}};return(await p.post("/dataservice/rest/orchestration/getAIRobotInfos",a)).data.robotInfos},exports.getAPPInfosByID=async t=>{let e={param:{id:t}};return(await p.post("/dataservice/rest/orchestration/getAPPInfosByID",e)).data.appInfo},exports.getAllUserInfosByGroupID=async t=>{let e={param:{groupID:t}};return(await p.post("/dataservice/rest/orchestration/getAllUserInfosByGroupID",e)).data.resultDatas},exports.getAppCustomData=async t=>{let e={param:{appID:t}},a=(await p.post("/dataservice/rest/orchestration/getAppCustomData",e)).data.customData;return a=a?JSON.parse(a):{},a},exports.getAppPortalMenuDatas=async(t,e,a,r)=>{let o=i(),s=await u(t,o,e),n=await c(e,s),p=window?.appSdk?.getAppId();return n.filter(t=>{if(a)return!0;if(t.app_id==o)return!0;{let e=t.children,a=!1;return e&&e.length>0&&e.forEach(t=>{let e=t.children;if(e&&e.length>0){let t=e.filter(t=>t.app_id===p);t&&t.length>0&&(a=!0)}}),a}})},exports.getChildrenOfficeInfosByID=async t=>{let e={param:{officeID:t}};return(await p.post("/dataservice/rest/orchestration/getChildrenOfficeInfosByID",e)).data.resultDatas},exports.getCurrentAppID=l,exports.getCurrentUserPortalMapping=async t=>{let e={param:{userData:t}};return(await p.post("/dataservice/rest/orchestration/getPortalMappingInfo",e)).data.portal_info},exports.getCurrentUserPortalPageID=async t=>{let e={param:{userData:t}};return(await p.post("/dataservice/rest/orchestration/getPortalPageID",e)).data.portal_id},exports.getGourpMappingsByPhoneNumber=async t=>{let e={param:{phone:t}};return(await p.post("/dataservice/rest/orchestration/getGourpMappingsByPhoneNumber",e)).data.resultGroups},exports.getGroupMappingsByAccount=async t=>{let e={param:{account:t}};return(await p.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",e)).data.resultGroups},exports.getIntegrateAppInfoByID=async t=>{let e={param:{appID:t}};return(await p.post("/dataservice/rest/orchestration/getIntegrateAppInfoByID",e)).data.appInfo},exports.getLoginPageNotices=async t=>{let e={param:{id:"1005",groupID:t}};return(await p.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",e)).data.resultDatas},exports.getMappingAppInfoByID=async(t,e)=>{let a={param:{appID:t,groupID:e}};return(await p.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",a)).data.appInfo},exports.getMenuDatasByGroupID=c,exports.getMenuMappingDatasByRoleIDs=d,exports.getObjectAllTipsInfos=(t,e)=>{let a={param:{objectID:t,userID:e}};return p.post("/dataservice/rest/orchestration/getObjectAllTipsInfos",a).data.resultDatas||[]},exports.getObjectUseTimes=t=>{let e={param:{objectInfo:t}};return p.post("/dataservice/rest/orchestration/getObjectUseTimes",e)},exports.getOfficeInfosByIDs=async t=>{let e={param:{ids:t}};return(await p.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",e)).data.officeInfos},exports.getPageIDByComponentID=async t=>{let e={param:{componentID:t}};return(await p.post("/dataservice/rest/orchestration/getPageIDByComponentID",e)).data.page_id},exports.getPhoneNumberByAccountName=async(t,e)=>{let a={param:{accountName:t,groupID:e}};return(await p.post("/dataservice/rest/orchestration/getPhoneNumberByAccountName",a)).data.phone},exports.getPlatformBortherMenusByMenuID=async(t,e,a)=>{let r={param:{menu_id:t}},o=(await p.post("/dataservice/rest/orchestration/getPlatformBortherMenusByMenuID",r)).data.menuDatas||[],s=await g(e,a),n={};for(const t of s){n[t.menu_id]=t}let i={};for(const t of o){let e=t.id;if((1!==t.leaf_flag||n[e])&&!i[e]){let a="el-icon-menu",r={id:t.id,index:t.id,name:t.name,isSys:!0,iconClass:a,actionType:t.action_type||"1",app_id:t.datapp_id,menu_id:t.id,url:t.url||"",children:t.children||[],sort:t.sort||0};i[e]=r}}for(const t of o){let e=t.parent_id;if(!e)continue;let a=i[e];if(a){let e=i[t.id];if(!e)continue;a.children.push(e)}}let l=[];for(const t in i){let e=i[t];if(e.children&&e.children.length>0){l.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}if(0==l.length)for(const t in i){let e=i[t];e&&l.push(e)}return l.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),l},exports.getPlatformMenuMappingsByRoleIDs=g,exports.getPojectDptsByUserAndGroupID=async(t,e)=>{let a={param:{userID:t,groupID:e}},r=await p.post("/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID",a);return{dptDatas:r.data.officeDatas,userMappings:r.data.userMappings}},exports.getPoratlAppID=i,exports.getPortalAccessToken=async(t,e)=>(await p.get(`/appAuth/getAccessToken?appKey=${t}&appSecret=${e}`)).data,exports.getPortalAppCustomConfig=async t=>{let e={param:{groupID:t}};return(await p.post("/dataservice/rest/orchestration/getPortalAppCustomConfig",e)).data.configInfo},exports.getPortalAppCustomConfigs=async t=>{let e={param:{ids:t}};return(await p.post("/dataservice/rest/orchestration/getPortalAppCustomConfigs",e)).data.configInfos},exports.getPortalDocmentInfo=async t=>{let e={param:{kb_doc_id:t}};return(await p.post("/dataservice/rest/orchestration/getPortalDocmentInfoByKBID",e)).data.docInfo},exports.getPortalInfosByID=async t=>{let e={param:{id:t}};return(await p.post("/dataservice/rest/orchestration/getPortalInfosByID",e)).data.portalInfo},exports.getPortalNotices=async t=>{let e={param:{id:t}};return await p.post("/dataservice/rest/orchestration/getNoticesInfosByGroupID",e)},exports.getPortalPageConfig=async t=>{let e={param:{id:t}};return(await p.post("/dataservice/rest/orchestration/getPortalPageConfig",e)).data.portal_page_config||"[]"},exports.getPortalPageMenuID=async(t,e)=>{let a={param:{id:t,appid:e}};return(await p.post("/dataservice/rest/orchestration/getPortalPageMenuID",a)).data.menu_id},exports.getPortalUserInfo=async(t,e)=>(await p.get(`/systhirdapp/user/getUserByCode?code=${t}&access_token=${e}`)).data,exports.getPortalUserMappingInfos=async t=>{let e={param:{operateData:t}};return(await p.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",e)).data.portalMapping},exports.getPortalUserSig=async(t,e,a)=>{let r={param:{userID:t,im_type:e,group_id:a}};return(await p.post("/dataservice/rest/orchestration/getIMUserSigByID",r)).data.userSig},exports.getRoleIDsByUserAndGroupID=u,exports.getRoleIDsByUserID=async(t,e)=>{let a={param:{user_id:t,app_id:e}};return(await p.post("/dataservice/rest/orchestration/getRoleIDsByUserID",a)).data.portal_role_ids},exports.getTenetInfoByName=async t=>{let e={param:{name:t}};return(await p.post("/dataservice/rest/orchestration/getTenetInfoByName",e)).data.resultDatas},exports.getThirdAppPathByKey=async(t,e,a)=>{let r={param:{appKey:t,appSecret:e,groupID:a}};return(await p.post("/dataservice/rest/orchestration/getThirdAppPathByKey",r)).data.path},exports.getUserAllMappngPortal=t=>{let e={param:{userData:t}};return p.post("/dataservice/rest/orchestration/getUserAllMappngPortal",e)},exports.queryAndStoreAppVariable=(t,e)=>{let a=window.sessionStorage.getItem("isdata_app_variable_"+t);return a||(a=I(t,e),a&&window.sessionStorage.setItem("isdata_app_variable_"+t,a)),a},exports.queryAppVariable=I,exports.queryGroupIDByOfficeId=async t=>{let e={param:{id:t}},a=(await p.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData,r=a?.id;return r},exports.queryGroupInfosByOfficeId=async t=>{let e={param:{id:t}};return(await p.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData},exports.queryOfficeInfosById=async t=>{let e={param:{id:t}};return(await p.post("/dataservice/rest/orchestration/getOfficeInfosByID",e)).data.officeData},exports.savePortalI18nText=async(t,e,a,r,o)=>{let s={param:{key:t,value:e,appID:i(),lang:a,beyondID:r,i18nType:o}};return(await p.post("/dataservice/rest/orchestration/savePortalI18nText",s)).data.resultData},exports.setPortalPageConfig=t=>{let e={param:t};return p.post("/dataservice/rest/orchestration/setPortalPageConfig",e)},exports.transformPortalQuickMenuDatas=(t,e)=>{e=e||[];let a=(t=t||[]).concat(e),r={},o=[];for(const t of a){let e=t.id;r[e]||(r[e]=t,o.push(t))}let s={};for(const t of o){let e=t.id,a={id:e,label:t.title,sort:t.sort,children:[],parent_id:t.parent_id,type:t.type};s[e]=a}for(const t of o){let e=s[t.id];if("5"==e.type){let t=s[e.parent_id];if(t){t.children.push(e)}}}const n=[];for(const t of o){let e=s[t.id];if("4"==e.type){n.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return n.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),n},exports.transformPortalSystemMenuDatas=t=>{let e={};for(const a of t){let t=a.id,r={id:t,label:a.name,sort:a.sort,icon:a.icon,children:[],app_id:a.datapp_id,parent_id:a.parent_id,leaf_flag:a.leaf_flag};e[t]=r}for(const a of t){if(1==a.leaf_flag){let t=e[a.id],r=e[a.parent_id];if(r){r.children.push(t)}}}const a=[];for(const r of t){if(0==r.leaf_flag){let t=e[r.id];a.push(t),t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return a.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),a},exports.updateIMMapping=async(t,e,a,r)=>{let o={param:{userID:t,im_type:e,groupID:a,userSig:r}};return(await p.post("/dataservice/rest/orchestration/updateIMMapping",o)).data},exports.updateUserSelectPortal=t=>{let e={param:{portalMappingData:t}};return p.post("/dataservice/rest/orchestration/updateUserSelectPortal",e)},exports.validateSSOPageLoaded=async(t,e,a)=>{let r={param:{app_id:t,appSecret:e,returnUrl:a}};return(await p.post("/dataservice/rest/orchestration/validateSSOPageLoaded",r)).data.count};
1
+ "use strict";var t=require("axios"),e={},r=Object.prototype.hasOwnProperty;function a(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function o(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var a,s,n=[];for(s in"string"!=typeof e&&(e="?"),t)if(r.call(t,s)){if((a=t[s])||null!=a&&!isNaN(a)||(a=""),s=o(s),a=o(a),null===s||null===a)continue;n.push(s+"="+a)}return n.length?e+n.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,o={};e=r.exec(t);){var s=a(e[1]),n=a(e[2]);null===s||null===n||s in o||(o[s]=n)}return o};const s="development"===process.env.NODE_ENV,n="true"===process.env.VUE_APP_ONLINE_DEVELOPMENT_MODE||"true"===process.env.REACT_APP_ONLINE_DEVELOPMENT_MODE;window.isDevopmentMode=s,window.isOnlineDevelopmentMode=n;var i=((r="")=>{r&&(r.startsWith("/")&&(r=r.slice(1,r.length)),r.endsWith("/")&&(r=r.slice(0,-1)));const a=t.create({baseURL:`/${r?r+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&e.parse(window.location.search).token||window.token?{token:e.parse(window.location.search).token||window.token}:{}});let o=a.post;return a.post=(t,e,r)=>{let s=window.VITE_SERVICE_BASE_URL||"";if(s){let n=s+t;return o.call(a,n,e,r)}return o.call(a,t,e,r)},a.interceptors.request.use(t=>{if(!n&&s){let e=window.mockData.PORTAL_SERVER_ADDRESS,r=window.mockData.VITE_SERVICE_BASE_URL;t.url=`${e}${r}${t.url}`}return t},t=>Promise.reject(t)),a.defaults.headers.post["Content-Type"]="application/json",a.interceptors.response.use(t=>{let{data:e}=t;return"string"==typeof e&&(e=JSON.parse(e)),!e||200===e.status||e instanceof Blob?e instanceof Blob?(t.data=e,t):(t.data=e&&e.result,t):Promise.reject(t)},t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)}),a})(window.prefixPath||"");const p=()=>{let t=window.sessionStorage.getItem("iportal_app_id");return t||(t=l()),t},l=()=>window?.appSdk?.getAppId()||window.localStorage.MobileAppId,c=async(t,e)=>{let r={param:{id:t}},a=await i.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",r),o=a.data.resultDatas,s=a.data.menuTypes;a=await i.post("/dataservice/rest/orchestration/getPortalDefaultQuickMenus",{});let n=a.data.resultDatas,p=a.data.menuTypes,l=o.concat(n),c=s.concat(p),u=[],g=[],I={};for(const t of l){let e=t.id;I[e]||(u.push(t),I[e]=t)}let m={};for(const t of c){let e=t.id;m[e]||(g.push(t),m[e]=t)}if(e&&e.length>0){a=await d(e,t);let r=a.data.quickMenuMappingDatas||[],o={};for(const t of r){let e=t.menu_mapping_id,r=I[e];o[e]=r}return f(u,g,o)}return f(u,g,[])},d=async(t,e)=>{let r={param:{role_ids:t,group_id:e}};return await i.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",r)},u=async(t,e,r)=>{let a={param:{user_id:t,app_id:e,group_id:r}};return(await i.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",a)).data.portal_role_ids},g=async(t,e)=>{let r={param:{role_ids:t,app_id:e}};return(await i.post("/dataservice/rest/orchestration/getPlatformMenuMappingsByRoleIDs",r)).data.mappingDatas},f=(t,e,r)=>{let a={},o={},s={};for(let t in r){let e=r[t];if(!e)continue;let a=e.parent_id;a&&(s[a]=!0)}for(const e of t){let t=e.id,o={id:t,index:e.menu_id,name:e.title,sort:e.sort,actionType:e.actionType,url:e.url,iconClass:e.image?e.image:"4"==e.type?"":"el-icon-menu",parent_id:e.parent_id,isLeftMenuShow:"1"==e.is_left_menu_show,topMenuDisplayType:e.top_menu_display_type,initialBg:e.top_bar_initialBg,initHeight:e.top_bar_initHeight,scrolledBg:e.top_bar_scrolledBg,scrollHeight:e.top_bar_scrollHeight,initialTextColor:e.top_bar_initialTextColor,scrolledTextColor:e.top_bar_scrolledTextColor,menuHoverColor:e.top_bar_menuHoverColor,menuHoverBgColor:e.top_bar_menuHoverBgColor,side_offset:e.top_menu_side_offset,app_logo:e.app_logo,app_scrolled_logo:e.app_scrolled_logo,isList:"1"==e.status,children:[],app_id:e.app_id,menu_id:e.menu_id,beyond_type:e.menu_type?e.menu_type:"RJVIEW-OTHERS",beyond_type_sort:e.menu_type_sort?e.menu_type_sort:999,type:"MenuItem",typeID:e.type};(r&&r[t]||"4"==e.type||s[t]||"1"==e.is_app_defalut)&&(a[t]=o)}for(const t of e){o[t.id]=t}for(const e of t){if("5"==e.type){let t=a[e.id];if(!t)continue;let r=e.parent_id,s=t.beyond_type,n=a[r];if(!n)continue;let i=n.children,p=i.find(t=>t.id==s);if(p){p.children.push(t),t.typeItem=p}else{let e=o[s],a=e?{id:s,index:s,name:e.title,children:[],sort:e.value,parent_id:r,type:"MenuType"}:{id:s,index:s,name:"其他",children:[],sort:999,parent_id:r,type:"MenuType"};a.children.push(t),i.push(a),t.typeItem=a}}}const n=[];for(const e of t){if("4"==e.type){let t=a[e.id];if(!t)continue;let o=t.children,s=0;for(const t of o){let e=t.children.length;if(s+=e,e>0)break}if("1"!=e.is_app_defalut&&r&&!r[e.id]&&0==s)continue;n.push(t);let i=t.children;i.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort);for(let t of i){t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}}return n.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),n},I=(t,e)=>{if(e&&e.length>0)for(let r=0;r<e.length;r++)if(e[r].name==t)return e[r].default_value;return""};exports.addIMMapping=async(t,e,r,a)=>{let o={param:{data:{userID:t,im_type:e,group_id:r,userSig:a}}};return(await i.post("/dataservice/rest/orchestration/addIMMapping",o)).data},exports.addObjTipMapping=(t,e,r,a)=>{let o={param:{sourceID:t,tipID:e,userID:r,groupID:a}};return i.post("/dataservice/rest/orchestration/addObjTipMapping",o).data.operatorResult||{}},exports.addObjectUsedTimes=t=>{let e={param:{operateData:t}};return i.post("/dataservice/rest/orchestration/addObjectUsedTimes",e)},exports.addTips=t=>{let e={param:{tipInfos:t}};return i.post("/dataservice/rest/orchestration/addTips",e).data.operateResult||{}},exports.addTipsAndMapping=(t,e,r)=>{let a={param:{tipInfos:t,objectID:e,userID:r}};return i.post("/dataservice/rest/orchestration/addTipsAndMapping",a)||{}},exports.deleteObjTipMapping=(t,e,r)=>{let a={param:{sourceID:t,tipID:e,userID:r}};return i.post("/dataservice/rest/orchestration/deleteObjTipMapping",a).data.operatorResult||{}},exports.deleteTips=t=>{let e={param:{tipIDs:t}};return i.post("/dataservice/rest/orchestration/deleteTips",e).data.operateResult||{}},exports.deleteTipsAndMapping=(t,e,r)=>{let a={param:{tipIDs:t,userID:e,objectID:r}};return i.post("/dataservice/rest/orchestration/deleteTipsAndMapping",a)||{}},exports.getAIRobotInfos=async(t,e)=>{let r={param:{userID:t,groupID:e}};return(await i.post("/dataservice/rest/orchestration/getAIRobotInfos",r)).data.robotInfos},exports.getAPPInfosByID=async t=>{let e={param:{id:t}};return(await i.post("/dataservice/rest/orchestration/getAPPInfosByID",e)).data.appInfo},exports.getAllUserIdByDptId=async t=>{let e={param:{dptId:t}};return(await i.post("/dataservice/rest/orchestration/getAllUserIdByDptId",e)).data.userIdList||[]},exports.getAllUserInfosByGroupID=async t=>{let e={param:{groupID:t}};return(await i.post("/dataservice/rest/orchestration/getAllUserInfosByGroupID",e)).data.resultDatas},exports.getAppAccountById=async t=>{let e={param:{accountId:t}};return(await i.post("/dataservice/rest/orchestration/getAppAccountById",e)).data.accountInfo||{}},exports.getAppCustomData=async t=>{let e={param:{appID:t}},r=(await i.post("/dataservice/rest/orchestration/getAppCustomData",e)).data.customData;return r=r?JSON.parse(r):{},r},exports.getAppPortalMenuDatas=async(t,e,r,a)=>{let o=p(),s=await u(t,o,e),n=await c(e,s),i=window?.appSdk?.getAppId();return n.filter(t=>{if(r)return!0;if(t.app_id==o)return!0;{let e=t.children,r=!1;return e&&e.length>0&&e.forEach(t=>{let e=t.children;if(e&&e.length>0){let t=e.filter(t=>t.app_id===i);t&&t.length>0&&(r=!0)}}),r}})},exports.getChildrenOfficeInfosByID=async t=>{let e={param:{officeID:t}};return(await i.post("/dataservice/rest/orchestration/getChildrenOfficeInfosByID",e)).data.resultDatas},exports.getCurrUserPermissionCode=async(t,e,r)=>{let a={param:{roleIdList:t,groupId:e,type:r}};return(await i.post("/dataservice/rest/orchestration/getCurrUserPermissionCode",a)).data.permissionCodeList||[]},exports.getCurrentAppID=l,exports.getCurrentUserPortalMapping=async t=>{let e={param:{userData:t}};return(await i.post("/dataservice/rest/orchestration/getPortalMappingInfo",e)).data.portal_info},exports.getCurrentUserPortalPageID=async t=>{let e={param:{userData:t}};return(await i.post("/dataservice/rest/orchestration/getPortalPageID",e)).data.portal_id},exports.getGourpMappingsByPhoneNumber=async(t,e)=>{let r={param:{phone:t,accountType:e}};return(await i.post("/dataservice/rest/orchestration/getGourpMappingsByPhoneNumber",r)).data.resultGroups.filter(t=>e.includes(t.account_type))},exports.getGroupMappingsByAccount=async t=>{let e={param:{account:t}};return(await i.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",e)).data.resultGroups},exports.getIntegrateAppInfoByID=async t=>{let e={param:{appID:t}};return(await i.post("/dataservice/rest/orchestration/getIntegrateAppInfoByID",e)).data.appInfo},exports.getLoginPageNotices=async t=>{let e={param:{id:"1005",groupID:t}};return(await i.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",e)).data.resultDatas},exports.getMappingAppInfoByID=async(t,e)=>{let r={param:{appID:t,groupID:e}};return(await i.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",r)).data.appInfo},exports.getMenuDatasByGroupID=c,exports.getMenuMappingDatasByRoleIDs=d,exports.getObjectAllTipsInfos=(t,e)=>{let r={param:{objectID:t,userID:e}};return i.post("/dataservice/rest/orchestration/getObjectAllTipsInfos",r).data.resultDatas||[]},exports.getObjectUseTimes=t=>{let e={param:{objectInfo:t}};return i.post("/dataservice/rest/orchestration/getObjectUseTimes",e)},exports.getOfficeInfosByIDs=async t=>{let e={param:{ids:t}};return(await i.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",e)).data.officeInfos},exports.getPageIDByComponentID=async t=>{let e={param:{componentID:t}};return(await i.post("/dataservice/rest/orchestration/getPageIDByComponentID",e)).data.page_id},exports.getPhoneNumberByAccountName=async(t,e)=>{let r={param:{accountName:t,groupID:e}};return(await i.post("/dataservice/rest/orchestration/getPhoneNumberByAccountName",r)).data.phone},exports.getPlatformBortherMenusByMenuID=async(t,e,r)=>{let a={param:{menu_id:t}},o=(await i.post("/dataservice/rest/orchestration/getPlatformBortherMenusByMenuID",a)).data.menuDatas||[],s=await g(e,r),n={};for(const t of s){n[t.menu_id]=t}let p={};for(const t of o){let e=t.id;if((1!==t.leaf_flag||n[e])&&!p[e]){let r="el-icon-menu",a={id:t.id,index:t.id,name:t.name,isSys:!0,iconClass:r,actionType:t.action_type||"1",app_id:t.datapp_id,menu_id:t.id,url:t.url||"",children:t.children||[],sort:t.sort||0};p[e]=a}}for(const t of o){let e=t.parent_id;if(!e)continue;let r=p[e];if(r){let e=p[t.id];if(!e)continue;r.children.push(e)}}let l=[];for(const t in p){let e=p[t];if(e.children&&e.children.length>0){l.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}if(0==l.length)for(const t in p){let e=p[t];e&&l.push(e)}return l.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),l},exports.getPlatformMenuMappingsByRoleIDs=g,exports.getPojectDptsByUserAndGroupID=async(t,e)=>{let r={param:{userID:t,groupID:e}},a=await i.post("/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID",r);return{dptDatas:a.data.officeDatas,userMappings:a.data.userMappings}},exports.getPoratlAppID=p,exports.getPortalAccessToken=async(t,e)=>(await i.get(`/appAuth/getAccessToken?appKey=${t}&appSecret=${e}`)).data,exports.getPortalAppCustomConfig=async t=>{let e={param:{groupID:t}};return(await i.post("/dataservice/rest/orchestration/getPortalAppCustomConfig",e)).data.configInfo},exports.getPortalAppCustomConfigs=async t=>{let e={param:{ids:t}};return(await i.post("/dataservice/rest/orchestration/getPortalAppCustomConfigs",e)).data.configInfos},exports.getPortalDocmentInfo=async t=>{let e={param:{kb_doc_id:t}};return(await i.post("/dataservice/rest/orchestration/getPortalDocmentInfoByKBID",e)).data.docInfo},exports.getPortalInfosByID=async t=>{let e={param:{id:t}};return(await i.post("/dataservice/rest/orchestration/getPortalInfosByID",e)).data.portalInfo},exports.getPortalNotices=async t=>{let e={param:{id:t}};return await i.post("/dataservice/rest/orchestration/getNoticesInfosByGroupID",e)},exports.getPortalPageConfig=async t=>{let e={param:{id:t}};return(await i.post("/dataservice/rest/orchestration/getPortalPageConfig",e)).data.portal_page_config||"[]"},exports.getPortalPageMenuID=async(t,e)=>{let r={param:{id:t,appid:e}};return(await i.post("/dataservice/rest/orchestration/getPortalPageMenuID",r)).data.menu_id},exports.getPortalUserInfo=async(t,e)=>(await i.get(`/systhirdapp/user/getUserByCode?code=${t}&access_token=${e}`)).data,exports.getPortalUserMappingInfos=async t=>{let e={param:{operateData:t}};return(await i.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",e)).data.portalMapping},exports.getPortalUserSig=async(t,e,r)=>{let a={param:{userID:t,im_type:e,group_id:r}};return(await i.post("/dataservice/rest/orchestration/getIMUserSigByID",a)).data.userSig},exports.getRoleIDsByUserAndGroupID=u,exports.getRoleIDsByUserID=async(t,e)=>{let r={param:{user_id:t,app_id:e}};return(await i.post("/dataservice/rest/orchestration/getRoleIDsByUserID",r)).data.portal_role_ids},exports.getRolePermissionConfig=async(t,e)=>{let r={param:{roleIds:t,groupId:e}};return(await i.post("/dataservice/rest/orchestration/getFunctionPermission",r)).data.permissionConfigList||[]},exports.getTenetInfoByName=async t=>{let e={param:{name:t}};return(await i.post("/dataservice/rest/orchestration/getTenetInfoByName",e)).data.resultDatas},exports.getThirdAppPathByKey=async(t,e,r)=>{let a={param:{appKey:t,appSecret:e,groupID:r}};return(await i.post("/dataservice/rest/orchestration/getThirdAppPathByKey",a)).data.path},exports.getUserAllMappngPortal=t=>{let e={param:{userData:t}};return i.post("/dataservice/rest/orchestration/getUserAllMappngPortal",e)},exports.queryAndStoreAppVariable=(t,e)=>{let r=window.sessionStorage.getItem("isdata_app_variable_"+t);return r||(r=I(t,e),r&&window.sessionStorage.setItem("isdata_app_variable_"+t,r)),r},exports.queryAppVariable=I,exports.queryGroupIDByOfficeId=async t=>{let e={param:{id:t}},r=(await i.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData,a=r?.id;return a},exports.queryGroupInfosByOfficeId=async t=>{let e={param:{id:t}};return(await i.post("/dataservice/rest/orchestration/getGroupIDByDptID",e)).data.resultDptData},exports.queryOfficeInfosById=async t=>{let e={param:{id:t}};return(await i.post("/dataservice/rest/orchestration/getOfficeInfosByID",e)).data.officeData},exports.savePortalI18nText=async(t,e,r,a,o)=>{let s={param:{key:t,value:e,appID:p(),lang:r,beyondID:a,i18nType:o}};return(await i.post("/dataservice/rest/orchestration/savePortalI18nText",s)).data.resultData},exports.setPortalPageConfig=t=>{let e={param:t};return i.post("/dataservice/rest/orchestration/setPortalPageConfig",e)},exports.transformPortalQuickMenuDatas=(t,e)=>{e=e||[];let r=(t=t||[]).concat(e),a={},o=[];for(const t of r){let e=t.id;a[e]||(a[e]=t,o.push(t))}let s={};for(const t of o){let e=t.id,r={id:e,label:t.title,sort:t.sort,children:[],parent_id:t.parent_id,type:t.type};s[e]=r}for(const t of o){let e=s[t.id];if("5"==e.type){let t=s[e.parent_id];if(t){t.children.push(e)}}}const n=[];for(const t of o){let e=s[t.id];if("4"==e.type){n.push(e),e.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return n.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),n},exports.transformPortalSystemMenuDatas=t=>{let e={};for(const r of t){let t=r.id,a={id:t,label:r.name,sort:r.sort,icon:r.icon,children:[],app_id:r.datapp_id,parent_id:r.parent_id,leaf_flag:r.leaf_flag};e[t]=a}for(const r of t){if(1==r.leaf_flag){let t=e[r.id],a=e[r.parent_id];if(a){a.children.push(t)}}}const r=[];for(const a of t){if(0==a.leaf_flag){let t=e[a.id];r.push(t),t.children.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort)}}return r.sort((t,e)=>Number.isNaN(t.sort)?1:Number.isNaN(e.sort)?-1:t.sort-e.sort),r},exports.updateIMMapping=async(t,e,r,a)=>{let o={param:{userID:t,im_type:e,groupID:r,userSig:a}};return(await i.post("/dataservice/rest/orchestration/updateIMMapping",o)).data},exports.updateUserSelectPortal=t=>{let e={param:{portalMappingData:t}};return i.post("/dataservice/rest/orchestration/updateUserSelectPortal",e)},exports.validateSSOPageLoaded=async(t,e,r)=>{let a={param:{app_id:t,appSecret:e,returnUrl:r}};return(await i.post("/dataservice/rest/orchestration/validateSSOPageLoaded",a)).data.count};
@@ -1 +1 @@
1
- "use strict";var e=require("axios"),i=require("crypto-js"),t={},o=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,i){i=i||"";var t,r,s=[];for(r in"string"!=typeof i&&(i="?"),e)if(o.call(e,r)){if((t=e[r])||null!=t&&!isNaN(t)||(t=""),r=a(r),t=a(t),null===r||null===t)continue;s.push(r+"="+t)}return s.length?i+s.join("&"):""},t.parse=function(e){for(var i,t=/([^=?#&]+)=?([^&]*)/g,o={};i=t.exec(e);){var a=r(i[1]),s=r(i[2]);null===a||null===s||a in o||(o[a]=s)}return o};const s="development"===process.env.NODE_ENV,n="true"===process.env.VUE_APP_ONLINE_DEVELOPMENT_MODE||"true"===process.env.REACT_APP_ONLINE_DEVELOPMENT_MODE;window.isDevopmentMode=s,window.isOnlineDevelopmentMode=n;var w,c=((i="")=>{i&&(i.startsWith("/")&&(i=i.slice(1,i.length)),i.endsWith("/")&&(i=i.slice(0,-1)));const o=e.create({baseURL:`/${i?i+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(e){return e>=200&&e<300},headers:window.location.search&&t.parse(window.location.search).token||window.token?{token:t.parse(window.location.search).token||window.token}:{}});let r=o.post;return o.post=(e,i,t)=>{let a=window.VITE_SERVICE_BASE_URL||"";if(a){let s=a+e;return r.call(o,s,i,t)}return r.call(o,e,i,t)},o.interceptors.request.use(e=>{if(!n&&s){let i=window.mockData.PORTAL_SERVER_ADDRESS,t=window.mockData.VITE_SERVICE_BASE_URL;e.url=`${i}${t}${e.url}`}return e},e=>Promise.reject(e)),o.defaults.headers.post["Content-Type"]="application/json",o.interceptors.response.use(e=>{let{data:i}=e;return"string"==typeof i&&(i=JSON.parse(i)),!i||200===i.status||i instanceof Blob?i instanceof Blob?(e.data=i,e):(e.data=i&&i.result,e):Promise.reject(e)},e=>{if(!e.response||401!==e.response.status)return Promise.reject(e.response)}),o})(window.prefixPath||""),d="user-agent",l="",p="function",u="object",b="string",h="undefined",m="browser",g="cpu",f="device",v="engine",y="os",k="result",x="name",_="type",S="vendor",C="version",A="architecture",E="major",I="model",O="console",q="mobile",N="tablet",P="smarttv",T="wearable",V="xr",R="embedded",M="inapp",z="brands",B="formFactors",D="fullVersionList",j="platform",L="platformVersion",H="bitness",U="sec-ch-ua",$=U+"-full-version-list",W=U+"-arch",F=U+"-"+H,G=U+"-form-factors",J=U+"-"+q,X=U+"-"+I,K=U+"-"+j,Y=K+"-version",Z=[z,D,q,I,j,L,A,B,H],Q="Amazon",ee="Apple",ie="ASUS",te="BlackBerry",oe="Google",re="Huawei",ae="Lenovo",se="Honor",ne="LG",we="Microsoft",ce="Motorola",de="Nvidia",le="OnePlus",pe="OPPO",ue="Samsung",be="Sharp",he="Sony",me="Xiaomi",ge="Zebra",fe="Chrome",ve="Chromium",ye="Chromecast",ke="Edge",xe="Firefox",_e="Opera",Se="Facebook",Ce="Sogou",Ae="Mobile ",Ee=" Browser",Ie="Windows",Oe=typeof window!==h&&window.navigator?window.navigator:void 0,qe=Oe&&Oe.userAgentData?Oe.userAgentData:void 0,Ne=function(e){for(var i={},t=0;t<e.length;t++)i[e[t].toUpperCase()]=e[t];return i},Pe=function(e,i){if(typeof e===u&&e.length>0){for(var t in e)if(Me(i)==Me(e[t]))return!0;return!1}return!!Ve(e)&&Me(i)==Me(e)},Te=function(e,i){for(var t in e)return/^(browser|cpu|device|engine|os)$/.test(t)||!!i&&Te(e[t])},Ve=function(e){return typeof e===b},Re=function(e){if(e){for(var i=[],t=De(/\\?\"/g,e).split(","),o=0;o<t.length;o++)if(t[o].indexOf(";")>-1){var r=Le(t[o]).split(";v=");i[o]={brand:r[0],version:r[1]}}else i[o]=Le(t[o]);return i}},Me=function(e){return Ve(e)?e.toLowerCase():e},ze=function(e){return Ve(e)?De(/[^\d\.]/g,e).split(".")[0]:void 0},Be=function(e){for(var i in e)if(e.hasOwnProperty(i)){var t=e[i];typeof t==u&&2==t.length?this[t[0]]=t[1]:this[t]=void 0}return this},De=function(e,i){return Ve(i)?i.replace(e,l):i},je=function(e){return De(/\\?\"/g,e)},Le=function(e,i){return e=De(/^\s\s*/,String(e)),typeof i===h?e:e.substring(0,i)},He=function(e,i){if(e&&i)for(var t,o,r,a,s,n,w=0;w<i.length&&!s;){var c=i[w],d=i[w+1];for(t=o=0;t<c.length&&!s&&c[t];)if(s=c[t++].exec(e))for(r=0;r<d.length;r++)n=s[++o],typeof(a=d[r])===u&&a.length>0?2===a.length?typeof a[1]==p?this[a[0]]=a[1].call(this,n):this[a[0]]=a[1]:a.length>=3&&(typeof a[1]!==p||a[1].exec&&a[1].test?3==a.length?this[a[0]]=n?n.replace(a[1],a[2]):void 0:4==a.length?this[a[0]]=n?a[3].call(this,n.replace(a[1],a[2])):void 0:a.length>4&&(this[a[0]]=n?a[3].apply(this,[n.replace(a[1],a[2])].concat(a.slice(4))):void 0):a.length>3?this[a[0]]=n?a[1].apply(this,a.slice(2)):void 0:this[a[0]]=n?a[1].call(this,n,a[2]):void 0):this[a]=n||void 0;w+=2}},Ue=function(e,i){for(var t in i)if(typeof i[t]===u&&i[t].length>0){for(var o=0;o<i[t].length;o++)if(Pe(i[t][o],e))return"?"===t?void 0:t}else if(Pe(i[t],e))return"?"===t?void 0:t;return i.hasOwnProperty("*")?i["*"]:e},$e={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},We={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Fe={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Ge={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[C,[x,Ae+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[C,[x,ke+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[C,[x,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[x,C],[/opios[\/ ]+([\w\.]+)/i],[C,[x,_e+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[C,[x,_e+" GX"]],[/\bopr\/([\w\.]+)/i],[C,[x,_e]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[C,[x,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[C,[x,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[x,C],[/quark(?:pc)?\/([-\w\.]+)/i],[C,[x,"Quark"]],[/\bddg\/([\w\.]+)/i],[C,[x,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[C,[x,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[C,[x,"WeChat"]],[/konqueror\/([\w\.]+)/i],[C,[x,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[C,[x,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[C,[x,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[C,[x,"Smart "+ae+Ee]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[x,/(.+)/,"$1 Secure"+Ee],C],[/norton\/([\w\.]+)/i],[C,[x,"Norton Private"+Ee]],[/\bfocus\/([\w\.]+)/i],[C,[x,xe+" Focus"]],[/ mms\/([\w\.]+)$/i],[C,[x,_e+" Neon"]],[/ opt\/([\w\.]+)$/i],[C,[x,_e+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[C,[x,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[C,[x,"Dolphin"]],[/coast\/([\w\.]+)/i],[C,[x,_e+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[C,[x,"MIUI"+Ee]],[/fxios\/([\w\.-]+)/i],[C,[x,Ae+xe]],[/\bqihoobrowser\/?([\w\.]*)/i],[C,[x,"360"]],[/\b(qq)\/([\w\.]+)/i],[[x,/(.+)/,"$1Browser"],C],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[x,/(.+)/,"$1"+Ee],C],[/samsungbrowser\/([\w\.]+)/i],[C,[x,ue+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[C,[x,Ce+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[x,Ce+" Mobile"],C],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[x,C],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[x],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[C,x],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[x,Se],C,[_,M]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[x,C,[_,M]],[/\bgsa\/([\w\.]+) .*safari\//i],[C,[x,"GSA"],[_,M]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[C,[x,"TikTok"],[_,M]],[/\[(linkedin)app\]/i],[x,[_,M]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[x,/(.+)/,"Zalo"],C,[_,M]],[/(chromium)[\/ ]([-\w\.]+)/i],[x,C],[/ome-(lighthouse)$/i],[x,[_,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[C,[x,fe+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[C,[x,ke+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[x,fe+" WebView"],C],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[C,[x,"Android"+Ee]],[/chrome\/([\w\.]+) mobile/i],[C,[x,Ae+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[x,C],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[C,[x,Ae+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[x,Ae+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[C,x],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[x,[C,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[x,C],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[x,Ae+xe],C],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[x,"Netscape"],C],[/(wolvic|librewolf)\/([\w\.]+)/i],[x,C],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[C,[x,xe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[x,[C,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[x,[C,/[^\d\.]+./,l]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[A,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[A,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[A,"arm"]],[/ sun4\w[;\)]/i],[[A,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[A,/ower/,l,Me]],[/mc680.0/i],[[A,"68k"]],[/winnt.+\[axp/i],[[A,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[I,[S,ue],[_,N]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[I,[S,ue],[_,q]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[I,[S,ee],[_,q]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[I,[S,ee],[_,N]],[/(macintosh);/i],[I,[S,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[I,[S,be],[_,q]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[I,[S,se],[_,N]],[/honor([-\w ]+)[;\)]/i],[I,[S,se],[_,q]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[I,[S,re],[_,N]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[I,[S,re],[_,q]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[I,/_/g," "],[S,me],[_,N]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[I,/_/g," "],[S,me],[_,q]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[I,[S,le],[_,q]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[I,[S,pe],[_,q]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[I,[S,Ue,{OnePlus:["203","304","403","404","413","415"],"*":pe}],[_,N]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[I,[S,"BLU"],[_,q]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[I,[S,"Vivo"],[_,q]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[I,[S,"Realme"],[_,q]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[I,[S,ae],[_,N]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[I,[S,ae],[_,q]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[I,[S,ce],[_,q]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[I,[S,ce],[_,N]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[I,[S,ne],[_,N]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[I,[S,ne],[_,q]],[/(nokia) (t[12][01])/i],[S,I,[_,N]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[I,/_/g," "],[_,q],[S,"Nokia"]],[/(pixel (c|tablet))\b/i],[I,[S,oe],[_,N]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[I,[S,oe],[_,q]],[/(google) (pixelbook( go)?)/i],[S,I],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[I,[S,he],[_,q]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[I,"Xperia Tablet"],[S,he],[_,N]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[I,[S,Q],[_,N]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[I,/(.+)/g,"Fire Phone $1"],[S,Q],[_,q]],[/(playbook);[-\w\),; ]+(rim)/i],[I,S,[_,N]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[I,[S,te],[_,q]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[I,[S,ie],[_,N]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[I,[S,ie],[_,q]],[/(nexus 9)/i],[I,[S,"HTC"],[_,N]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[I,/_/g," "],[_,q]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[I,[S,"TCL"],[_,N]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[I,[S,"TCL"],[_,q]],[/(itel) ((\w+))/i],[[S,Me],I,[_,Ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[I,[S,"Acer"],[_,N]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[I,[S,"Meizu"],[_,q]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[I,[S,"Ulefone"],[_,q]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[I,[S,"Energizer"],[_,q]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[I,[S,"Cat"],[_,q]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[I,[S,"Smartfren"],[_,q]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[I,[S,"Nothing"],[_,q]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[I,[S,"Archos"],[_,N]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[I,[S,"Archos"],[_,q]],[/; (n159v)/i],[I,[S,"HMD"],[_,q]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[S,I,[_,N]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[S,I,[_,q]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[S,I,[_,N]],[/(surface duo)/i],[I,[S,we],[_,N]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[I,[S,"Fairphone"],[_,q]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[I,[S,de],[_,N]],[/(sprint) (\w+)/i],[S,I,[_,q]],[/(kin\.[onetw]{3})/i],[[I,/\./g," "],[S,we],[_,q]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[I,[S,ge],[_,N]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[I,[S,ge],[_,q]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[S,[_,P]],[/hbbtv.+maple;(\d+)/i],[[I,/^/,"SmartTV"],[S,ue],[_,P]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[S,I,[_,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,ne],[_,P]],[/(apple) ?tv/i],[S,[I,ee+" TV"],[_,P]],[/crkey.*devicetype\/chromecast/i],[[I,ye+" Third Generation"],[S,oe],[_,P]],[/crkey.*devicetype\/([^/]*)/i],[[I,/^/,"Chromecast "],[S,oe],[_,P]],[/fuchsia.*crkey/i],[[I,ye+" Nest Hub"],[S,oe],[_,P]],[/crkey/i],[[I,ye],[S,oe],[_,P]],[/(portaltv)/i],[I,[S,Se],[_,P]],[/droid.+aft(\w+)( bui|\))/i],[I,[S,Q],[_,P]],[/(shield \w+ tv)/i],[I,[S,de],[_,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[I,[S,be],[_,P]],[/(bravia[\w ]+)( bui|\))/i],[I,[S,he],[_,P]],[/(mi(tv|box)-?\w+) bui/i],[I,[S,me],[_,P]],[/Hbbtv.*(technisat) (.*);/i],[S,I,[_,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,/.+\/(\w+)/,"$1",Ue,{LG:"lge"}],[I,Le],[_,P]],[/(playstation \w+)/i],[I,[S,he],[_,O]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[I,[S,we],[_,O]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[S,Ue,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],I,[_,O]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[I,[S,ue],[_,T]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[S,I,[_,T]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[I,[S,pe],[_,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[I,[S,ee],[_,T]],[/(opwwe\d{3})/i],[I,[S,le],[_,T]],[/(moto 360)/i],[I,[S,ce],[_,T]],[/(smartwatch 3)/i],[I,[S,he],[_,T]],[/(g watch r)/i],[I,[S,ne],[_,T]],[/droid.+; (wt63?0{2,3})\)/i],[I,[S,ge],[_,T]],[/droid.+; (glass) \d/i],[I,[S,oe],[_,V]],[/(pico) ([\w ]+) os\d/i],[S,I,[_,V]],[/(quest( \d| pro)?s?).+vr/i],[I,[S,Se],[_,V]],[/mobile vr; rv.+firefox/i],[[_,V]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[_,R]],[/(aeobc)\b/i],[I,[S,Q],[_,R]],[/(homepod).+mac os/i],[I,[S,ee],[_,R]],[/windows iot/i],[[_,R]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[I,[_,P]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[_,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[I,[_,Ue,{mobile:"Mobile",xr:"VR","*":N}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_,N]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_,q]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[I,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[C,[x,ke+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[x,C],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[C,[x,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[x,C],[/ladybird\//i],[[x,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[C,x]],os:[[/(windows nt) (6\.[23]); arm/i],[[x,/N/,"R"],[C,Ue,$e]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[x,C],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[C,/(;|\))/g,"",Ue,$e],[x,Ie]],[/(windows ce)\/?([\d\.]*)/i],[x,C],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[C,/_/g,"."],[x,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[x,"macOS"],[C,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[C,[x,ye+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[C,[x,ye+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[C,[x,ye+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[C,[x,ye+" Linux"]],[/crkey\/([\d\.]+)/i],[C,[x,ye]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[C,x],[/(ubuntu) ([\w\.]+) like android/i],[[x,/(.+)/,"$1 Touch"],C],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[x,C],[/\(bb(10);/i],[C,[x,te]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[C,[x,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[C,[x,xe+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[C,[x,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[C,Ue,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[x,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[C,[x,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[C,[x,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[C,[x,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[x,C],[/(sunos) ?([\d\.]*)/i],[[x,"Solaris"],C],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[x,C]]},Je=(Be.call((w={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[m,[x,C,E,_]],[g,[A]],[f,[_,I,S]],[v,[x,C]],[y,[x,C]]]),Be.call(w.isIgnore,[[m,[C,E]],[v,[C]],[y,[C]]]),Be.call(w.isIgnoreRgx,[[m,/ ?browser$/i],[y,/ ?os$/i]]),Be.call(w.toString,[[m,[x,C]],[g,[A]],[f,[S,I]],[v,[x,C]],[y,[x,C]]]),w),Xe=function(e,i){var t=Je.init[i],o=Je.isIgnore[i]||0,r=Je.isIgnoreRgx[i]||0,a=Je.toString[i]||0;function s(){Be.call(this,t)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return qe?qe.getHighEntropyValues(Z).then(function(i){return e.setCH(new Ke(i,!1)).parseCH().get()}):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},i!=k&&(s.prototype.is=function(e){var i=!1;for(var t in this)if(this.hasOwnProperty(t)&&!Pe(o,t)&&Me(r?De(r,this[t]):this[t])==Me(r?De(r,e):e)){if(i=!0,e!=h)break}else if(e==h&&i){i=!i;break}return i},s.prototype.toString=function(){var e=l;for(var i in a)typeof this[a[i]]!==h&&(e+=(e?" ":l)+this[a[i]]);return e||h}),s.prototype.then=function(e){var i=this,t=function(){for(var e in i)i.hasOwnProperty(e)&&(this[e]=i[e])};t.prototype={is:s.prototype.is,toString:s.prototype.toString,withClientHints:s.prototype.withClientHints,withFeatureCheck:s.prototype.withFeatureCheck};var o=new t;return e(o),o},new s};function Ke(e,i){if(e=e||{},Be.call(this,Z),i)Be.call(this,[[z,Re(e[U])],[D,Re(e[$])],[q,/\?1/.test(e[J])],[I,je(e[X])],[j,je(e[K])],[L,je(e[Y])],[A,je(e[W])],[B,Re(e[G])],[H,je(e[F])]]);else for(var t in e)this.hasOwnProperty(t)&&typeof e[t]!==h&&(this[t]=e[t])}function Ye(e,i,t,o){return Be.call(this,[["itemType",e],["ua",i],["uaCH",o],["rgxMap",t],["data",Xe(this,e)]]),this}function Ze(e,i,t){if(typeof e===u?(Te(e,!0)?(typeof i===u&&(t=i),i=e):(t=e,i=void 0),e=void 0):typeof e!==b||Te(i,!0)||(t=i,i=void 0),t)if(typeof t.append===p){var o={};t.forEach(function(e,i){o[String(i).toLowerCase()]=e}),t=o}else{var r={};for(var a in t)t.hasOwnProperty(a)&&(r[String(a).toLowerCase()]=t[a]);t=r}if(!(this instanceof Ze))return new Ze(e,i,t).getResult();var s=typeof e===b?e:t&&t[d]?t[d]:Oe&&Oe.userAgent?Oe.userAgent:l,n=new Ke(t,!0),w=i?function(e,i){var t={},o=i;if(!Te(i))for(var r in o={},i)for(var a in i[r])o[a]=i[r][a].concat(o[a]?o[a]:[]);for(var s in e)t[s]=o[s]&&o[s].length%2==0?o[s].concat(e[s]):e[s];return t}(Ge,i):Ge,c=function(e){return e==k?function(){return new Ye(e,s,w,n).set("ua",s).set(m,this.getBrowser()).set(g,this.getCPU()).set(f,this.getDevice()).set(v,this.getEngine()).set(y,this.getOS()).get()}:function(){return new Ye(e,s,w[e],n).parseUA().get()}};return Be.call(this,[["getBrowser",c(m)],["getCPU",c(g)],["getDevice",c(f)],["getEngine",c(v)],["getOS",c(y)],["getResult",c(k)],["getUA",function(){return s}],["setUA",function(e){return Ve(e)&&(s=Le(e,500)),this}]]).setUA(s),this}Ye.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},Ye.prototype.set=function(e,i){return this.data[e]=i,this},Ye.prototype.setCH=function(e){return this.uaCH=e,this},Ye.prototype.detectFeature=function(){if(Oe&&Oe.userAgent==this.ua)switch(this.itemType){case m:Oe.brave&&typeof Oe.brave.isBrave==p&&this.set(x,"Brave");break;case f:!this.get(_)&&qe&&qe[q]&&this.set(_,q),"Macintosh"==this.get(I)&&Oe&&typeof Oe.standalone!==h&&Oe.maxTouchPoints&&Oe.maxTouchPoints>2&&this.set(I,"iPad").set(_,N);break;case y:!this.get(x)&&qe&&qe[j]&&this.set(x,qe[j]);break;case k:var e=this.data,i=function(i){return e[i].getItem().detectFeature().get()};this.set(m,i(m)).set(g,i(g)).set(f,i(f)).set(v,i(v)).set(y,i(y))}return this},Ye.prototype.parseUA=function(){switch(this.itemType!=k&&He.call(this.data,this.ua,this.rgxMap),this.itemType){case m:this.set(E,ze(this.get(C)));break;case y:if("iOS"==this.get(x)&&"18.6"==this.get(C)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(C,e[1])}}return this},Ye.prototype.parseCH=function(){var e=this.uaCH,i=this.rgxMap;switch(this.itemType){case m:case v:var t,o=e[D]||e[z];if(o)for(var r=0;r<o.length;r++){var a=o[r].brand||o[r],s=o[r].version;this.itemType==m&&!/not.a.brand/i.test(a)&&(!t||/Chrom/.test(t)&&a!=ve||t==ke&&/WebView2/.test(a))&&(a=Ue(a,Fe),(t=this.get(x))&&!/Chrom/.test(t)&&/Chrom/.test(a)||this.set(x,a).set(C,s).set(E,ze(s)),t=a),this.itemType==v&&a==ve&&this.set(C,s)}break;case g:var n=e[A];n&&(n&&"64"==e[H]&&(n+="64"),He.call(this.data,n+";",i));break;case f:if(e[q]&&this.set(_,q),e[I]&&(this.set(I,e[I]),!this.get(_)||!this.get(S))){var w={};He.call(w,"droid 9; "+e[I]+")",i),!this.get(_)&&w.type&&this.set(_,w.type),!this.get(S)&&w.vendor&&this.set(S,w.vendor)}if(e[B]){var c;if("string"!=typeof e[B])for(var d=0;!c&&d<e[B].length;)c=Ue(e[B][d++],We);else c=Ue(e[B],We);this.set(_,c)}break;case y:var l=e[j];if(l){var p=e[L];l==Ie&&(p=parseInt(ze(p),10)>=13?"11":"10"),this.set(x,l).set(C,p)}this.get(x)==Ie&&"Xbox"==e[I]&&this.set(x,"Xbox").set(C,void 0);break;case k:var u=this.data,b=function(i){return u[i].getItem().setCH(e).parseCH().get()};this.set(m,b(m)).set(g,b(g)).set(f,b(f)).set(v,b(v)).set(y,b(y))}return this},Ze.VERSION="2.0.9",Ze.BROWSER=Ne([x,C,E,_]),Ze.CPU=Ne([A]),Ze.DEVICE=Ne([I,S,_,O,q,P,N,T,R]),Ze.ENGINE=Ze.OS=Ne([x,C]);const Qe=()=>window?.appSdk?.getAppId()||window.localStorage.MobileAppId;function ei(e){return((e,i,t)=>window.customI18nObject?.get(`${i}-${e}-${t}`)||e)(e,(()=>{let e=window.sessionStorage.getItem("iportal_app_id");return e||(e=Qe()),e})(),window.localStorage.getItem("iportal_localID")||"zh-CN")}const ii=async e=>{let i=await c.get(`/system/authority/logout?isMobileLogout=${e}`),t=JSON.parse(i.request.response),o=t.code;return"10110020"==o?(window.sessionStorage.clear(),{code:o,message:ei(t.message)}):{code:o,message:ei(t.message)}},ti=async e=>{let t=await ai();return i.AES.decrypt(e,t).toString(i.enc.Utf8)},oi=async e=>{let t=await ai();return i.AES.encrypt(e,t).toString()},ri=async(e,i)=>{let t=await oi(e.password),o={param:{account_view:e.account_view,groupid:e.groupid,password:t,account:e.account,appid:i}},r=await c.post("/ext/loginAccount",JSON.stringify(o)),a=r.data.code,s=r.data.key_code,n=r.data.old_code,w=r.data.id,d=r.data.message;if(10110004==a){s=await ti(s),s=window?.appSdk?.Encrypt(s),o.param.password=s,r=await c.post(`/system/authority/loginAccount4Application?authPicCode=${e.imageCode}&dataappId=${i}&mobileOrWeb=web`,o.param);let t=JSON.parse(r.request.response);if(a=t.code,d=t.message,10110004==a){let t=w;const o=(new Ze).getBrowser();let r=(new Date).getTime(),s=o.name+"_"+o.version+"_"+r;return window.sessionStorage.setItem("iportal_login_user_id",t),window.sessionStorage.setItem("iportal_group_id",e.groupid),window.sessionStorage.setItem("iportal_login_user_key",n),window.sessionStorage.setItem("iportal_client_id",s),window.sessionStorage.setItem("iportal_app_id",i),{code:a,message:ei(d)}}return{code:a,message:ei(d)}}return{code:a,message:ei(d)}},ai=async()=>(await c.post("/dataservice/rest/orchestration/getViewKey",{param:{}})).data.key,si=async e=>{let i={param:{accountName:e}};return(await c.post("/dataservice/rest/orchestration/getUserIDByLoginAccount",i)).data.id};exports.adminLogin=async(e,i)=>{let t={param:{password:e.password,account:e.account_view,appid:i}},o=window?.appSdk?.Encrypt(t.param.password);t.param.password=o;let r=await c.post(`/system/authority/loginAccount4Application?authPicCode=${e.imageCode}&dataappId=${i}&mobileOrWeb=web`,t.param),a=JSON.parse(r.request.response),s=a.code,n=a.message;if(10110004==s){let t=await si(e.account_view);const r=(new Ze).getBrowser();let a=o,w=(new Date).getTime(),c=r.name+"_"+r.version+"_"+w;return window.sessionStorage.setItem("iportal_login_user_id",t),window.sessionStorage.setItem("iportal_group_id",e.groupid),window.sessionStorage.setItem("iportal_login_user_key",a),window.sessionStorage.setItem("iportal_client_id",c),window.sessionStorage.setItem("iportal_app_id",i),{code:s,message:ei(n)}}return{code:s,message:ei(n)}},exports.createRegistApply=async e=>{let i={param:{registInfo:e}};return(await c.post("/dataservice/rest/orchestration/createRegistApply",i)).data.operateResult},exports.getAccountCountByName=async e=>{let i={param:{accountName:e}};return(await c.post("/dataservice/rest/orchestration/getAccountCountByName",i)).data.count},exports.getAuthPic=()=>c.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),exports.getUserIDByLoginAccount=si,exports.getViewKey=ai,exports.isAdminAccount=async e=>{let i={param:{accountName:e}};return(await c.post("/dataservice/rest/orchestration/isAdminAccount",i)).data.checkResult},exports.isSecurityAccount=async(e,i)=>{let t={param:{account_name:e,group_id:i}};return(await c.post("/dataservice/rest/orchestration/isSecurityAccount",t)).data.isSecurityAccount},exports.loginAccount=ri,exports.logoutAccount=ii,exports.serverDecrypt=async e=>{let i={param:{decryptStr:e}};return e=(await c.post("/ext/serverDecrypt",JSON.stringify(i))).data.decryptStr},exports.serverEncrypt=async e=>{let i={param:{encryptStr:e}};return e=(await c.post("/ext/serverEncrypt",JSON.stringify(i))).data.encryptStr},exports.switchPortalLogin=async(e,i,t)=>{let o=window.sessionStorage.getItem("iportal_login_user_key");o=await ti(o),e.password=o;let r=await ii(t),a=r.code,s=r.message;if("10110020"==a){return await ri(e,i)}return{code:a,message:ei(s)}},exports.viewDecrypt=ti,exports.viewEncrypt=oi;
1
+ "use strict";var e=require("axios"),i=require("crypto-js"),t={},o=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,i){i=i||"";var t,r,s=[];for(r in"string"!=typeof i&&(i="?"),e)if(o.call(e,r)){if((t=e[r])||null!=t&&!isNaN(t)||(t=""),r=a(r),t=a(t),null===r||null===t)continue;s.push(r+"="+t)}return s.length?i+s.join("&"):""},t.parse=function(e){for(var i,t=/([^=?#&]+)=?([^&]*)/g,o={};i=t.exec(e);){var a=r(i[1]),s=r(i[2]);null===a||null===s||a in o||(o[a]=s)}return o};const s="development"===process.env.NODE_ENV,n="true"===process.env.VUE_APP_ONLINE_DEVELOPMENT_MODE||"true"===process.env.REACT_APP_ONLINE_DEVELOPMENT_MODE;window.isDevopmentMode=s,window.isOnlineDevelopmentMode=n;var c,w=((i="")=>{i&&(i.startsWith("/")&&(i=i.slice(1,i.length)),i.endsWith("/")&&(i=i.slice(0,-1)));const o=e.create({baseURL:`/${i?i+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(e){return e>=200&&e<300},headers:window.location.search&&t.parse(window.location.search).token||window.token?{token:t.parse(window.location.search).token||window.token}:{}});let r=o.post;return o.post=(e,i,t)=>{let a=window.VITE_SERVICE_BASE_URL||"";if(a){let s=a+e;return r.call(o,s,i,t)}return r.call(o,e,i,t)},o.interceptors.request.use(e=>{if(!n&&s){let i=window.mockData.PORTAL_SERVER_ADDRESS,t=window.mockData.VITE_SERVICE_BASE_URL;e.url=`${i}${t}${e.url}`}return e},e=>Promise.reject(e)),o.defaults.headers.post["Content-Type"]="application/json",o.interceptors.response.use(e=>{let{data:i}=e;return"string"==typeof i&&(i=JSON.parse(i)),!i||200===i.status||i instanceof Blob?i instanceof Blob?(e.data=i,e):(e.data=i&&i.result,e):Promise.reject(e)},e=>{if(!e.response||401!==e.response.status)return Promise.reject(e.response)}),o})(window.prefixPath||""),d="user-agent",l="",p="function",u="object",b="string",h="undefined",m="browser",g="cpu",f="device",v="engine",y="os",k="result",x="name",_="type",S="vendor",C="version",A="architecture",E="major",I="model",O="console",q="mobile",N="tablet",P="smarttv",T="wearable",V="xr",R="embedded",L="inapp",M="brands",z="formFactors",B="fullVersionList",D="platform",j="platformVersion",H="bitness",U="sec-ch-ua",$=U+"-full-version-list",W=U+"-arch",F=U+"-"+H,G=U+"-form-factors",J=U+"-"+q,X=U+"-"+I,K=U+"-"+D,Y=K+"-version",Z=[M,B,q,I,D,j,A,z,H],Q="Amazon",ee="Apple",ie="ASUS",te="BlackBerry",oe="Google",re="Huawei",ae="Lenovo",se="Honor",ne="LG",ce="Microsoft",we="Motorola",de="Nvidia",le="OnePlus",pe="OPPO",ue="Samsung",be="Sharp",he="Sony",me="Xiaomi",ge="Zebra",fe="Chrome",ve="Chromium",ye="Chromecast",ke="Edge",xe="Firefox",_e="Opera",Se="Facebook",Ce="Sogou",Ae="Mobile ",Ee=" Browser",Ie="Windows",Oe=typeof window!==h&&window.navigator?window.navigator:void 0,qe=Oe&&Oe.userAgentData?Oe.userAgentData:void 0,Ne=function(e){for(var i={},t=0;t<e.length;t++)i[e[t].toUpperCase()]=e[t];return i},Pe=function(e,i){if(typeof e===u&&e.length>0){for(var t in e)if(Le(i)==Le(e[t]))return!0;return!1}return!!Ve(e)&&Le(i)==Le(e)},Te=function(e,i){for(var t in e)return/^(browser|cpu|device|engine|os)$/.test(t)||!!i&&Te(e[t])},Ve=function(e){return typeof e===b},Re=function(e){if(e){for(var i=[],t=Be(/\\?\"/g,e).split(","),o=0;o<t.length;o++)if(t[o].indexOf(";")>-1){var r=je(t[o]).split(";v=");i[o]={brand:r[0],version:r[1]}}else i[o]=je(t[o]);return i}},Le=function(e){return Ve(e)?e.toLowerCase():e},Me=function(e){return Ve(e)?Be(/[^\d\.]/g,e).split(".")[0]:void 0},ze=function(e){for(var i in e)if(e.hasOwnProperty(i)){var t=e[i];typeof t==u&&2==t.length?this[t[0]]=t[1]:this[t]=void 0}return this},Be=function(e,i){return Ve(i)?i.replace(e,l):i},De=function(e){return Be(/\\?\"/g,e)},je=function(e,i){return e=Be(/^\s\s*/,String(e)),typeof i===h?e:e.substring(0,i)},He=function(e,i){if(e&&i)for(var t,o,r,a,s,n,c=0;c<i.length&&!s;){var w=i[c],d=i[c+1];for(t=o=0;t<w.length&&!s&&w[t];)if(s=w[t++].exec(e))for(r=0;r<d.length;r++)n=s[++o],typeof(a=d[r])===u&&a.length>0?2===a.length?typeof a[1]==p?this[a[0]]=a[1].call(this,n):this[a[0]]=a[1]:a.length>=3&&(typeof a[1]!==p||a[1].exec&&a[1].test?3==a.length?this[a[0]]=n?n.replace(a[1],a[2]):void 0:4==a.length?this[a[0]]=n?a[3].call(this,n.replace(a[1],a[2])):void 0:a.length>4&&(this[a[0]]=n?a[3].apply(this,[n.replace(a[1],a[2])].concat(a.slice(4))):void 0):a.length>3?this[a[0]]=n?a[1].apply(this,a.slice(2)):void 0:this[a[0]]=n?a[1].call(this,n,a[2]):void 0):this[a]=n||void 0;c+=2}},Ue=function(e,i){for(var t in i)if(typeof i[t]===u&&i[t].length>0){for(var o=0;o<i[t].length;o++)if(Pe(i[t][o],e))return"?"===t?void 0:t}else if(Pe(i[t],e))return"?"===t?void 0:t;return i.hasOwnProperty("*")?i["*"]:e},$e={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},We={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Fe={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Ge={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[C,[x,Ae+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[C,[x,ke+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[C,[x,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[x,C],[/opios[\/ ]+([\w\.]+)/i],[C,[x,_e+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[C,[x,_e+" GX"]],[/\bopr\/([\w\.]+)/i],[C,[x,_e]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[C,[x,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[C,[x,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[x,C],[/quark(?:pc)?\/([-\w\.]+)/i],[C,[x,"Quark"]],[/\bddg\/([\w\.]+)/i],[C,[x,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[C,[x,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[C,[x,"WeChat"]],[/konqueror\/([\w\.]+)/i],[C,[x,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[C,[x,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[C,[x,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[C,[x,"Smart "+ae+Ee]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[x,/(.+)/,"$1 Secure"+Ee],C],[/norton\/([\w\.]+)/i],[C,[x,"Norton Private"+Ee]],[/\bfocus\/([\w\.]+)/i],[C,[x,xe+" Focus"]],[/ mms\/([\w\.]+)$/i],[C,[x,_e+" Neon"]],[/ opt\/([\w\.]+)$/i],[C,[x,_e+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[C,[x,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[C,[x,"Dolphin"]],[/coast\/([\w\.]+)/i],[C,[x,_e+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[C,[x,"MIUI"+Ee]],[/fxios\/([\w\.-]+)/i],[C,[x,Ae+xe]],[/\bqihoobrowser\/?([\w\.]*)/i],[C,[x,"360"]],[/\b(qq)\/([\w\.]+)/i],[[x,/(.+)/,"$1Browser"],C],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[x,/(.+)/,"$1"+Ee],C],[/samsungbrowser\/([\w\.]+)/i],[C,[x,ue+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[C,[x,Ce+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[x,Ce+" Mobile"],C],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[x,C],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[x],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[C,x],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[x,Se],C,[_,L]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[x,C,[_,L]],[/\bgsa\/([\w\.]+) .*safari\//i],[C,[x,"GSA"],[_,L]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[C,[x,"TikTok"],[_,L]],[/\[(linkedin)app\]/i],[x,[_,L]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[x,/(.+)/,"Zalo"],C,[_,L]],[/(chromium)[\/ ]([-\w\.]+)/i],[x,C],[/ome-(lighthouse)$/i],[x,[_,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[C,[x,fe+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[C,[x,ke+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[x,fe+" WebView"],C],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[C,[x,"Android"+Ee]],[/chrome\/([\w\.]+) mobile/i],[C,[x,Ae+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[x,C],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[C,[x,Ae+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[x,Ae+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[C,x],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[x,[C,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[x,C],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[x,Ae+xe],C],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[x,"Netscape"],C],[/(wolvic|librewolf)\/([\w\.]+)/i],[x,C],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[C,[x,xe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[x,[C,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[x,[C,/[^\d\.]+./,l]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[A,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[A,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[A,"arm"]],[/ sun4\w[;\)]/i],[[A,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[A,/ower/,l,Le]],[/mc680.0/i],[[A,"68k"]],[/winnt.+\[axp/i],[[A,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[I,[S,ue],[_,N]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[I,[S,ue],[_,q]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[I,[S,ee],[_,q]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[I,[S,ee],[_,N]],[/(macintosh);/i],[I,[S,ee]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[I,[S,be],[_,q]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[I,[S,se],[_,N]],[/honor([-\w ]+)[;\)]/i],[I,[S,se],[_,q]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[I,[S,re],[_,N]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[I,[S,re],[_,q]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[I,/_/g," "],[S,me],[_,N]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[I,/_/g," "],[S,me],[_,q]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[I,[S,le],[_,q]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[I,[S,pe],[_,q]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[I,[S,Ue,{OnePlus:["203","304","403","404","413","415"],"*":pe}],[_,N]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[I,[S,"BLU"],[_,q]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[I,[S,"Vivo"],[_,q]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[I,[S,"Realme"],[_,q]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[I,[S,ae],[_,N]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[I,[S,ae],[_,q]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[I,[S,we],[_,q]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[I,[S,we],[_,N]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[I,[S,ne],[_,N]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[I,[S,ne],[_,q]],[/(nokia) (t[12][01])/i],[S,I,[_,N]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[I,/_/g," "],[_,q],[S,"Nokia"]],[/(pixel (c|tablet))\b/i],[I,[S,oe],[_,N]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[I,[S,oe],[_,q]],[/(google) (pixelbook( go)?)/i],[S,I],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[I,[S,he],[_,q]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[I,"Xperia Tablet"],[S,he],[_,N]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[I,[S,Q],[_,N]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[I,/(.+)/g,"Fire Phone $1"],[S,Q],[_,q]],[/(playbook);[-\w\),; ]+(rim)/i],[I,S,[_,N]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[I,[S,te],[_,q]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[I,[S,ie],[_,N]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[I,[S,ie],[_,q]],[/(nexus 9)/i],[I,[S,"HTC"],[_,N]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[S,[I,/_/g," "],[_,q]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[I,[S,"TCL"],[_,N]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[I,[S,"TCL"],[_,q]],[/(itel) ((\w+))/i],[[S,Le],I,[_,Ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[I,[S,"Acer"],[_,N]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[I,[S,"Meizu"],[_,q]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[I,[S,"Ulefone"],[_,q]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[I,[S,"Energizer"],[_,q]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[I,[S,"Cat"],[_,q]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[I,[S,"Smartfren"],[_,q]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[I,[S,"Nothing"],[_,q]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[I,[S,"Archos"],[_,N]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[I,[S,"Archos"],[_,q]],[/; (n159v)/i],[I,[S,"HMD"],[_,q]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[S,I,[_,N]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[S,I,[_,q]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[S,I,[_,N]],[/(surface duo)/i],[I,[S,ce],[_,N]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[I,[S,"Fairphone"],[_,q]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[I,[S,de],[_,N]],[/(sprint) (\w+)/i],[S,I,[_,q]],[/(kin\.[onetw]{3})/i],[[I,/\./g," "],[S,ce],[_,q]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[I,[S,ge],[_,N]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[I,[S,ge],[_,q]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[S,[_,P]],[/hbbtv.+maple;(\d+)/i],[[I,/^/,"SmartTV"],[S,ue],[_,P]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[S,I,[_,P]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[S,ne],[_,P]],[/(apple) ?tv/i],[S,[I,ee+" TV"],[_,P]],[/crkey.*devicetype\/chromecast/i],[[I,ye+" Third Generation"],[S,oe],[_,P]],[/crkey.*devicetype\/([^/]*)/i],[[I,/^/,"Chromecast "],[S,oe],[_,P]],[/fuchsia.*crkey/i],[[I,ye+" Nest Hub"],[S,oe],[_,P]],[/crkey/i],[[I,ye],[S,oe],[_,P]],[/(portaltv)/i],[I,[S,Se],[_,P]],[/droid.+aft(\w+)( bui|\))/i],[I,[S,Q],[_,P]],[/(shield \w+ tv)/i],[I,[S,de],[_,P]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[I,[S,be],[_,P]],[/(bravia[\w ]+)( bui|\))/i],[I,[S,he],[_,P]],[/(mi(tv|box)-?\w+) bui/i],[I,[S,me],[_,P]],[/Hbbtv.*(technisat) (.*);/i],[S,I,[_,P]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[S,/.+\/(\w+)/,"$1",Ue,{LG:"lge"}],[I,je],[_,P]],[/(playstation \w+)/i],[I,[S,he],[_,O]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[I,[S,ce],[_,O]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[S,Ue,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],I,[_,O]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[I,[S,ue],[_,T]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[S,I,[_,T]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[I,[S,pe],[_,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[I,[S,ee],[_,T]],[/(opwwe\d{3})/i],[I,[S,le],[_,T]],[/(moto 360)/i],[I,[S,we],[_,T]],[/(smartwatch 3)/i],[I,[S,he],[_,T]],[/(g watch r)/i],[I,[S,ne],[_,T]],[/droid.+; (wt63?0{2,3})\)/i],[I,[S,ge],[_,T]],[/droid.+; (glass) \d/i],[I,[S,oe],[_,V]],[/(pico) ([\w ]+) os\d/i],[S,I,[_,V]],[/(quest( \d| pro)?s?).+vr/i],[I,[S,Se],[_,V]],[/mobile vr; rv.+firefox/i],[[_,V]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[S,[_,R]],[/(aeobc)\b/i],[I,[S,Q],[_,R]],[/(homepod).+mac os/i],[I,[S,ee],[_,R]],[/windows iot/i],[[_,R]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[I,[_,P]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[_,P]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[I,[_,Ue,{mobile:"Mobile",xr:"VR","*":N}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[_,N]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[_,q]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[I,[S,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[C,[x,ke+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[x,C],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[C,[x,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[x,C],[/ladybird\//i],[[x,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[C,x]],os:[[/(windows nt) (6\.[23]); arm/i],[[x,/N/,"R"],[C,Ue,$e]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[x,C],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[C,/(;|\))/g,"",Ue,$e],[x,Ie]],[/(windows ce)\/?([\d\.]*)/i],[x,C],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[C,/_/g,"."],[x,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[x,"macOS"],[C,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[C,[x,ye+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[C,[x,ye+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[C,[x,ye+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[C,[x,ye+" Linux"]],[/crkey\/([\d\.]+)/i],[C,[x,ye]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[C,x],[/(ubuntu) ([\w\.]+) like android/i],[[x,/(.+)/,"$1 Touch"],C],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[x,C],[/\(bb(10);/i],[C,[x,te]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[C,[x,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[C,[x,xe+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[C,[x,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[C,Ue,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[x,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[C,[x,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[C,[x,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[C,[x,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[x,C],[/(sunos) ?([\d\.]*)/i],[[x,"Solaris"],C],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[x,C]]},Je=(ze.call((c={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[m,[x,C,E,_]],[g,[A]],[f,[_,I,S]],[v,[x,C]],[y,[x,C]]]),ze.call(c.isIgnore,[[m,[C,E]],[v,[C]],[y,[C]]]),ze.call(c.isIgnoreRgx,[[m,/ ?browser$/i],[y,/ ?os$/i]]),ze.call(c.toString,[[m,[x,C]],[g,[A]],[f,[S,I]],[v,[x,C]],[y,[x,C]]]),c),Xe=function(e,i){var t=Je.init[i],o=Je.isIgnore[i]||0,r=Je.isIgnoreRgx[i]||0,a=Je.toString[i]||0;function s(){ze.call(this,t)}return s.prototype.getItem=function(){return e},s.prototype.withClientHints=function(){return qe?qe.getHighEntropyValues(Z).then(function(i){return e.setCH(new Ke(i,!1)).parseCH().get()}):e.parseCH().get()},s.prototype.withFeatureCheck=function(){return e.detectFeature().get()},i!=k&&(s.prototype.is=function(e){var i=!1;for(var t in this)if(this.hasOwnProperty(t)&&!Pe(o,t)&&Le(r?Be(r,this[t]):this[t])==Le(r?Be(r,e):e)){if(i=!0,e!=h)break}else if(e==h&&i){i=!i;break}return i},s.prototype.toString=function(){var e=l;for(var i in a)typeof this[a[i]]!==h&&(e+=(e?" ":l)+this[a[i]]);return e||h}),s.prototype.then=function(e){var i=this,t=function(){for(var e in i)i.hasOwnProperty(e)&&(this[e]=i[e])};t.prototype={is:s.prototype.is,toString:s.prototype.toString,withClientHints:s.prototype.withClientHints,withFeatureCheck:s.prototype.withFeatureCheck};var o=new t;return e(o),o},new s};function Ke(e,i){if(e=e||{},ze.call(this,Z),i)ze.call(this,[[M,Re(e[U])],[B,Re(e[$])],[q,/\?1/.test(e[J])],[I,De(e[X])],[D,De(e[K])],[j,De(e[Y])],[A,De(e[W])],[z,Re(e[G])],[H,De(e[F])]]);else for(var t in e)this.hasOwnProperty(t)&&typeof e[t]!==h&&(this[t]=e[t])}function Ye(e,i,t,o){return ze.call(this,[["itemType",e],["ua",i],["uaCH",o],["rgxMap",t],["data",Xe(this,e)]]),this}function Ze(e,i,t){if(typeof e===u?(Te(e,!0)?(typeof i===u&&(t=i),i=e):(t=e,i=void 0),e=void 0):typeof e!==b||Te(i,!0)||(t=i,i=void 0),t)if(typeof t.append===p){var o={};t.forEach(function(e,i){o[String(i).toLowerCase()]=e}),t=o}else{var r={};for(var a in t)t.hasOwnProperty(a)&&(r[String(a).toLowerCase()]=t[a]);t=r}if(!(this instanceof Ze))return new Ze(e,i,t).getResult();var s=typeof e===b?e:t&&t[d]?t[d]:Oe&&Oe.userAgent?Oe.userAgent:l,n=new Ke(t,!0),c=i?function(e,i){var t={},o=i;if(!Te(i))for(var r in o={},i)for(var a in i[r])o[a]=i[r][a].concat(o[a]?o[a]:[]);for(var s in e)t[s]=o[s]&&o[s].length%2==0?o[s].concat(e[s]):e[s];return t}(Ge,i):Ge,w=function(e){return e==k?function(){return new Ye(e,s,c,n).set("ua",s).set(m,this.getBrowser()).set(g,this.getCPU()).set(f,this.getDevice()).set(v,this.getEngine()).set(y,this.getOS()).get()}:function(){return new Ye(e,s,c[e],n).parseUA().get()}};return ze.call(this,[["getBrowser",w(m)],["getCPU",w(g)],["getDevice",w(f)],["getEngine",w(v)],["getOS",w(y)],["getResult",w(k)],["getUA",function(){return s}],["setUA",function(e){return Ve(e)&&(s=je(e,500)),this}]]).setUA(s),this}Ye.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},Ye.prototype.set=function(e,i){return this.data[e]=i,this},Ye.prototype.setCH=function(e){return this.uaCH=e,this},Ye.prototype.detectFeature=function(){if(Oe&&Oe.userAgent==this.ua)switch(this.itemType){case m:Oe.brave&&typeof Oe.brave.isBrave==p&&this.set(x,"Brave");break;case f:!this.get(_)&&qe&&qe[q]&&this.set(_,q),"Macintosh"==this.get(I)&&Oe&&typeof Oe.standalone!==h&&Oe.maxTouchPoints&&Oe.maxTouchPoints>2&&this.set(I,"iPad").set(_,N);break;case y:!this.get(x)&&qe&&qe[D]&&this.set(x,qe[D]);break;case k:var e=this.data,i=function(i){return e[i].getItem().detectFeature().get()};this.set(m,i(m)).set(g,i(g)).set(f,i(f)).set(v,i(v)).set(y,i(y))}return this},Ye.prototype.parseUA=function(){switch(this.itemType!=k&&He.call(this.data,this.ua,this.rgxMap),this.itemType){case m:this.set(E,Me(this.get(C)));break;case y:if("iOS"==this.get(x)&&"18.6"==this.get(C)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(C,e[1])}}return this},Ye.prototype.parseCH=function(){var e=this.uaCH,i=this.rgxMap;switch(this.itemType){case m:case v:var t,o=e[B]||e[M];if(o)for(var r=0;r<o.length;r++){var a=o[r].brand||o[r],s=o[r].version;this.itemType==m&&!/not.a.brand/i.test(a)&&(!t||/Chrom/.test(t)&&a!=ve||t==ke&&/WebView2/.test(a))&&(a=Ue(a,Fe),(t=this.get(x))&&!/Chrom/.test(t)&&/Chrom/.test(a)||this.set(x,a).set(C,s).set(E,Me(s)),t=a),this.itemType==v&&a==ve&&this.set(C,s)}break;case g:var n=e[A];n&&(n&&"64"==e[H]&&(n+="64"),He.call(this.data,n+";",i));break;case f:if(e[q]&&this.set(_,q),e[I]&&(this.set(I,e[I]),!this.get(_)||!this.get(S))){var c={};He.call(c,"droid 9; "+e[I]+")",i),!this.get(_)&&c.type&&this.set(_,c.type),!this.get(S)&&c.vendor&&this.set(S,c.vendor)}if(e[z]){var w;if("string"!=typeof e[z])for(var d=0;!w&&d<e[z].length;)w=Ue(e[z][d++],We);else w=Ue(e[z],We);this.set(_,w)}break;case y:var l=e[D];if(l){var p=e[j];l==Ie&&(p=parseInt(Me(p),10)>=13?"11":"10"),this.set(x,l).set(C,p)}this.get(x)==Ie&&"Xbox"==e[I]&&this.set(x,"Xbox").set(C,void 0);break;case k:var u=this.data,b=function(i){return u[i].getItem().setCH(e).parseCH().get()};this.set(m,b(m)).set(g,b(g)).set(f,b(f)).set(v,b(v)).set(y,b(y))}return this},Ze.VERSION="2.0.9",Ze.BROWSER=Ne([x,C,E,_]),Ze.CPU=Ne([A]),Ze.DEVICE=Ne([I,S,_,O,q,P,N,T,R]),Ze.ENGINE=Ze.OS=Ne([x,C]);const Qe=()=>window?.appSdk?.getAppId()||window.localStorage.MobileAppId;function ei(e){return((e,i,t)=>window.customI18nObject?.get(`${i}-${e}-${t}`)||e)(e,(()=>{let e=window.sessionStorage.getItem("iportal_app_id");return e||(e=Qe()),e})(),window.localStorage.getItem("iportal_localID")||"zh-CN")}const ii=async e=>{let i=await w.get(`/system/authority/logout?isMobileLogout=${e}`),t=JSON.parse(i.request.response),o=t.code;return"10110020"==o?(window.sessionStorage.clear(),{code:o,message:ei(t.message)}):{code:o,message:ei(t.message)}},ti=async e=>{let t=await ai();return i.AES.decrypt(e,t).toString(i.enc.Utf8)},oi=async e=>{let t=await ai();return i.AES.encrypt(e,t).toString()},ri=async(e,i)=>{let t=await oi(e.password),o={param:{account_view:e.account_view,groupid:e.groupid,password:t,account:e.account,appid:i}},r=await w.post("/ext/loginAccount",JSON.stringify(o)),a=r.data.code,s=r.data.key_code,n=r.data.old_code,c=r.data.id,d=r.data.message;if(10110004==a){s=await ti(s),s=window?.appSdk?.Encrypt(s),o.param.password=s,r=await w.post(`/system/authority/loginAccount4Application?authPicCode=${e.imageCode}&dataappId=${i}&mobileOrWeb=web`,o.param);let t=JSON.parse(r.request.response);if(a=t.code,d=t.message,10110004==a){let t=c;const o=(new Ze).getBrowser();let r=(new Date).getTime(),s=o.name+"_"+o.version+"_"+r;return window.sessionStorage.setItem("iportal_login_user_id",t),window.sessionStorage.setItem("iportal_group_id",e.groupid),window.sessionStorage.setItem("iportal_login_user_key",n),window.sessionStorage.setItem("iportal_client_id",s),window.sessionStorage.setItem("iportal_app_id",i),{code:a,message:ei(d)}}return{code:a,message:ei(d)}}return{code:a,message:ei(d)}},ai=async()=>(await w.post("/dataservice/rest/orchestration/getViewKey",{param:{}})).data.key,si=async e=>{let i={param:{accountName:e}};return(await w.post("/dataservice/rest/orchestration/getUserIDByLoginAccount",i)).data.id};exports.adminLogin=async(e,i)=>{let t={param:{password:e.password,account:e.account_view,appid:i}},o=window?.appSdk?.Encrypt(t.param.password);t.param.password=o;let r=await w.post(`/system/authority/loginAccount4Application?authPicCode=${e.imageCode}&dataappId=${i}&mobileOrWeb=web`,t.param),a=JSON.parse(r.request.response),s=a.code,n=a.message;if(10110004==s){let t=await si(e.account_view);const r=(new Ze).getBrowser();let a=o,c=(new Date).getTime(),w=r.name+"_"+r.version+"_"+c;return window.sessionStorage.setItem("iportal_login_user_id",t),window.sessionStorage.setItem("iportal_group_id",e.groupid),window.sessionStorage.setItem("iportal_login_user_key",a),window.sessionStorage.setItem("iportal_client_id",w),window.sessionStorage.setItem("iportal_app_id",i),{code:s,message:ei(n)}}return{code:s,message:ei(n)}},exports.checkLockStatus=async(e,i)=>{let t={param:{account_view:e,groupid:i}};return(await w.post("/ext/checkLockStatus",t)).data},exports.createRegistApply=async e=>{let i={param:{registInfo:e}};return(await w.post("/dataservice/rest/orchestration/createRegistApply",i)).data.operateResult},exports.getAccountCountByName=async(e,i)=>{let t={param:{accountName:e,accountType:i}};return(await w.post("/dataservice/rest/orchestration/getAccountCountByName",t)).data.count},exports.getAuthPic=()=>w.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),exports.getUserIDByLoginAccount=si,exports.getViewKey=ai,exports.isAdminAccount=async e=>{let i={param:{accountName:e}};return(await w.post("/dataservice/rest/orchestration/isAdminAccount",i)).data.checkResult},exports.isSecurityAccount=async(e,i)=>{let t={param:{account_name:e,group_id:i}};return(await w.post("/dataservice/rest/orchestration/isSecurityAccount",t)).data.isSecurityAccount},exports.loginAccount=ri,exports.logoutAccount=ii,exports.recordLoginFailure=async(e,i)=>{let t={param:{account_view:e,groupid:i}};await w.post("/ext/recordLoginFailure",t)},exports.serverDecrypt=async e=>{let i={param:{decryptStr:e}};return e=(await w.post("/ext/serverDecrypt",JSON.stringify(i))).data.decryptStr},exports.serverEncrypt=async e=>{let i={param:{encryptStr:e}};return e=(await w.post("/ext/serverEncrypt",JSON.stringify(i))).data.encryptStr},exports.switchPortalLogin=async(e,i,t)=>{let o=window.sessionStorage.getItem("iportal_login_user_key");o=await ti(o),e.password=o;let r=await ii(t),a=r.code,s=r.message;if("10110020"==a){return await ri(e,i)}return{code:a,message:ei(s)}},exports.viewDecrypt=ti,exports.viewEncrypt=oi;