bmp-layout 0.0.25-beta.6 → 0.0.25-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bmp-layout.es.js +14 -2
- package/bmp-layout.umd.js +1 -1
- package/package.json +1 -1
- package/svgs/language.svg +3 -0
package/bmp-layout.es.js
CHANGED
|
@@ -1214,14 +1214,26 @@ function buildChildPaths(router) {
|
|
|
1214
1214
|
const parentPath = router.path ? router.path.startsWith("/") ? router.path : `/${router.path}` : "";
|
|
1215
1215
|
return (router.children || []).map((child) => {
|
|
1216
1216
|
const childPath = child.path ? parentPath.endsWith("/") ? child.path.startsWith("/") ? child.path.substring(1) : child.path : child.path.startsWith("/") ? child.path : `/${child.path}` : "";
|
|
1217
|
-
|
|
1217
|
+
let fullPath = `${parentPath}${childPath}`;
|
|
1218
|
+
if (fullPath.length > 1 && fullPath.endsWith("/")) {
|
|
1219
|
+
fullPath = fullPath.slice(0, -1);
|
|
1220
|
+
}
|
|
1221
|
+
return { ...child, path: fullPath };
|
|
1218
1222
|
});
|
|
1219
1223
|
}
|
|
1220
1224
|
function prependPathToRoutes(routes, parentPath) {
|
|
1221
1225
|
if (!parentPath || !routes)
|
|
1222
1226
|
return routes;
|
|
1223
1227
|
return routes.map((route) => {
|
|
1224
|
-
|
|
1228
|
+
let newPath;
|
|
1229
|
+
if (!route.path) {
|
|
1230
|
+
newPath = parentPath;
|
|
1231
|
+
} else {
|
|
1232
|
+
newPath = parentPath + (route.path.startsWith("/") ? route.path : `/${route.path}`);
|
|
1233
|
+
}
|
|
1234
|
+
if (newPath.length > 1 && newPath.endsWith("/")) {
|
|
1235
|
+
newPath = newPath.slice(0, -1);
|
|
1236
|
+
}
|
|
1225
1237
|
return {
|
|
1226
1238
|
...route,
|
|
1227
1239
|
path: newPath,
|
package/bmp-layout.umd.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Version 1.1.1
|
|
5
5
|
https://github.com/WQTeam/web-storage-cache
|
|
6
6
|
(c) 2013-2016 WQTeam, MIT license
|
|
7
|
-
*/f.exports=function(){function e(e,t){for(var o in t)e[o]=t[o];return e}function t(e){var t=!1;if(e&&e.setItem){t=!0;var o="__"+Math.round(1e7*Math.random());try{e.setItem(o,o),e.removeItem(o)}catch(r){t=!1}}return t}function o(e){return"string"==typeof e&&window[e]instanceof Storage?window[e]:e}function r(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function n(e,t){if(t=t||new Date,"number"==typeof e?e=e===1/0?d:new Date(t.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!r(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e}function i(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}function l(e,t){this.c=(new Date).getTime();var o=n(t=t||f);this.e=o.getTime(),this.v=e}function a(e){return"object"==typeof e&&!!(e&&"c"in e&&"e"in e&&"v"in e)}function s(e){return(new Date).getTime()<e.e}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(n){var i=e({storage:"localStorage",exp:1/0},n),l=i.exp;if(l&&"number"!=typeof l&&!r(l))throw new Error("Constructor `exp` parameter cannot be converted to a valid Date instance");f=l;var a=o(i.storage),s=t(a);this.isSupported=function(){return s},s?(this.storage=a,this.quotaExceedHandler=function(e,t,o){if(o&&!0===o.force){this.deleteAllExpires();try{o.force=!1,this.set(e,t,o)}catch(r){}}}):e(this,m)}var d=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),f=d,p={serialize:function(e){return JSON.stringify(e)},deserialize:function(e){return e&&JSON.parse(e)}},m={set:function(){},get:function(){},delete:function(){},deleteAllExpires:function(){},clear:function(){},add:function(){},replace:function(){},touch:function(){}},h={set:function(t,o,r){if(t=c(t),"number"==typeof r&&(r={exp:r}),r=e({force:!0},r),void 0===o)return this.delete(t);var n=p.serialize(o),a=new l(n,r.exp);try{this.storage.setItem(t,p.serialize(a))}catch(s){i(s)&&this.quotaExceedHandler(t,n,r,s)}return o},get:function(e){e=c(e);var t=null;try{t=p.deserialize(this.storage.getItem(e))}catch(r){return null}if(a(t)){if(s(t)){var o=t.v;return p.deserialize(o)}this.delete(e)}return null},delete:function(e){return e=c(e),this.storage.removeItem(e),e},deleteAllExpires:function(){for(var e=this.storage.length,t=[],o=this,r=0;e>r;r++){var n=this.storage.key(r),i=null;try{i=p.deserialize(this.storage.getItem(n))}catch(l){}null!==i&&void 0!==i.e&&(new Date).getTime()>=i.e&&t.push(n)}return t.forEach((function(e){o.delete(e)})),t},clear:function(){this.storage.clear()},add:function(t,o,r){t=c(t),"number"==typeof r&&(r={exp:r}),r=e({force:!0},r);try{var n=p.deserialize(this.storage.getItem(t));if(!a(n)||!s(n))return this.set(t,o,r),!0}catch(i){return this.set(t,o,r),!0}return!1},replace:function(e,t,o){e=c(e);var r=null;try{r=p.deserialize(this.storage.getItem(e))}catch(n){return!1}if(a(r)){if(s(r))return this.set(e,t,o),!0;this.delete(e)}return!1},touch:function(e,t){e=c(e);var o=null;try{o=p.deserialize(this.storage.getItem(e))}catch(r){return!1}if(a(o)){if(s(o))return this.set(e,this.get(e),{exp:t}),!0;this.delete(e)}return!1}};return u.prototype=h,u}();const p=d(f.exports),m="user",h="visitTenantId",g="lang",v="theme",C="layout",y="TopNav",b=(e="localStorage")=>({wsCache:new p({storage:e})}),B={elColorDanger:"#f50000",elBorderColor:"#d2d5e4",elMenuItemHeight:"40px",elMenuSubItemHeight:"40px",elMenuLevelPadding:"14px",elMenuBaseLevelPadding:"22px",elMenuIconWidth:"16px",elButtonDefaultBgColor:"#fff",elButtonDefaultHoverBgColor:"#fff",elButtonDefaultActiveBgColor:"#fff",elButtonDefaultDisabledBgColor:"rgba(0, 0, 0, 0.04)",elButtonDefaultDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDefaultDisabledBorderColor:"#d9d9d9",elButtonLinkDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDangerBgColor:"#ff4d4f",elButtonDangerTextColor:"#fff",elButtonDangerBorderColor:"#ff4d4f",elButtonDangerHoverBgColor:"#ff7875",elButtonDangerHoverTextColor:"#fff",elButtonDangerHoverBorderColor:"#ff7875",elButtonDangerActiveBgColor:"#d9363e",elButtonDangerActiveTextColor:"#fff",elButtonDangerActiveBorderColor:"#d9363e",elButtonDangerLinkTextColor:"#ff4d4f",elButtonDangerLinkHoverTextColor:"#ff7875",elButtonDangerLinkActiveTextColor:"#d9363e",elUploadBgColor:"#f6f7fc",elUploadIconColor:"#d2d5e4",elUploadTextColor:"#b9bdcd",elUploadTipColor:"#9fa3b9",elDropdownMenuItemHoverTextColor:"#333",elTableHeaderColumnBgColor:"#eeeff4",elTableDefaultBorderColor:"#e5e5e5",elTableStripedBgColor:"#f7f8fd",elPaginationButtonBorderColor:"#eeeff4",elTagPrimaryBgColor:"#e6f4ff",elTagPrimaryTextColor:"#1677FF",elTagSuccessBgColor:"#f6ffed",elTagSuccessTextColor:"#52c41a",elTagDangerBgColor:"#fff1f0",elTagDangerTextColor:"#ff4d4f",elTagWarningBgColor:"#fffbe6",elTagWarningTextColor:"#ffaa00",elTagInfoBgColor:"rgba(0, 0, 0, 0.02)",elTagInfoTextColor:"rgba(0, 0, 0, 0.88)",elMessageSuccessBorderColor:"#d9f7be",elMessageWarningBorderColor:"#fff1b8",elMessageErrorBorderColor:"#ffccc7",elDialogBorderColor:"#eeeff4",elAlertSuccessBorderColor:"rgba(82,196,26,0.6)",elAlertSuccessBgColor:"#f6ffed",elAlertInfoBorderColor:"rgba(0, 0, 0, 0.12)",elAlertInfoBgColor:"rgba(0, 0, 0, 0.02)",elAlertWarningBorderColor:"#ffe58f",elAlertWarningBgColor:"#fffbe6",elAlertErrorBorderColor:"#ffccc7",elAlertErrorBgColor:"#fff1f0"},w={whiteLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"rgba(255,255,255,0.8)",leftMenuItemBgActiveColor:"rgba(36,104,242,1)",leftMenuItemBgHoverColor:"#eef4ff",leftMenuTextColor:"#333",leftMenuTextHoverColor:"#333",topMenuItemBgActiveColor:"rgba(36,104,242,1)",topMenuItemBgHoverColor:"rgba(36,104,242,0.8)",topHeaderBgColor:"#fff",topHeaderIconColor:"#3f5172",topHeaderTextColor:"#333",topHeaderHoverColor:"#2567f0",topHeaderCompanyIconColor:"#88a0c3",topHeaderCompanyBgColor:"rgba(246,248,255,1)",menuTriggerBgColor:"#2468F2",tagsViewTextColor:"#7b7e90",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"#dce4f5",tagsViewBgActiveColor:"#3d65ff",tagsViewArrowColor:"#a4aec4",tagsViewArrowHoverColor:"#7d8595",tagsViewArrowBgColor:"transparent",tagsViewArrowBgHoverColor:"#e5eaf0",tagsViewArrowBgDisabledColor:"#e5eaf080"},blueLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"0, #2897FB 0%, #1B61EE 100%",leftMenuItemBgActiveColor:"rgba(103,153,255,1)",leftMenuItemBgHoverColor:"rgba(103,153,255,0.5)",leftMenuTextColor:"#fff",leftMenuTextHoverColor:"#fff",topMenuItemBgActiveColor:"rgba(103,153,255,1)",topMenuItemBgHoverColor:"rgba(103,153,255,0.5)",topHeaderBgColor:"270deg, #29ACFE 0%, #2468F2 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},redLight:{...B,elColorPrimary:"#ea4636",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#d23f30",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#bb382b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#ea4636",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#ea4636",elButtonPrimaryHoverBgColor:"#d23f30",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#d23f30",elButtonPrimaryActiveBgColor:"#bb382b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#bb382b",elButtonPrimaryLinkTextColor:"#ea4636",elButtonPrimaryLinkHoverTextColor:"#d23f30",elButtonPrimaryLinkActiveTextColor:"#bb382b",elDropdownMenuItemHoverBgColor:"#ffebeb",elTableColumnHoverBgColor:"#ffebeb",elTreeItemHoverBgColor:"#ffebeb",bgColor:"#ffebeb",leftMenuBgColor:"0, #cf271c, #cf271c",leftMenuItemBgActiveColor:"rgba(221, 98, 90, 1)",leftMenuItemBgHoverColor:"rgba(221, 98, 90, 0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(244, 101, 85, 1)",topMenuItemBgHoverColor:"rgba(244, 101, 85, 0.5)",topHeaderBgColor:"0, #ea4636, #ea4636",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},greenLight:{...B,elColorPrimary:"#0acfa5",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#09ba94",elButtonDefaultHoverBorderColor:"#09ba94",elButtonDefaultActiveTextColor:"#08a684",elButtonDefaultActiveBorderColor:"#08a684",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#0acfa5",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#0acfa5",elButtonPrimaryHoverBgColor:"#09ba94",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#09ba94",elButtonPrimaryActiveBgColor:"#08a684",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#08a684",elButtonPrimaryLinkTextColor:"#0acfa5",elButtonPrimaryLinkHoverTextColor:"#09ba94",elButtonPrimaryLinkActiveTextColor:"#08a684",elDropdownMenuItemHoverBgColor:"#e4f6f2",elTableColumnHoverBgColor:"#e4f6f2",elTreeItemHoverBgColor:"#e4f6f2",bgColor:"#e4f6f2",leftMenuBgColor:"0, #01b18b, #01b18b",leftMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",leftMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",topMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",topHeaderBgColor:"0, #0acfa5, #0acfa5",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},springFestival:{...B,elColorPrimary:"#e42b22",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#cd271f",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#b6221b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#e42b22",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#e42b22",elButtonPrimaryHoverBgColor:"#cd271f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#cd271f",elButtonPrimaryActiveBgColor:"#b6221b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#b6221b",elButtonPrimaryLinkTextColor:"#e42b22",elButtonPrimaryLinkHoverTextColor:"#cd271f",elButtonPrimaryLinkActiveTextColor:"#b6221b",elDropdownMenuItemHoverBgColor:"#fee2e2",elTableColumnHoverBgColor:"#fee2e2",elTreeItemHoverBgColor:"#fee2e2",bgColor:"#fee2e2",leftMenuBgColor:"0, #f53a19 0%, #bf241f 100%",leftMenuItemBgActiveColor:"rgba(255,95,83,1)",leftMenuItemBgHoverColor:"rgba(255,95,83,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,95,83,1)",topMenuItemBgHoverColor:"rgba(255,95,83,0.5)",topHeaderBgColor:"270deg, #f25416 0%, #ef2704 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},dragonBoatFestival:{...B,elColorPrimary:"#1ebc74",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#1ba968",elButtonDefaultHoverBorderColor:"#1ba968",elButtonDefaultActiveTextColor:"#18965d",elButtonDefaultActiveBorderColor:"#18965d",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#1ebc74",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#1ebc74",elButtonPrimaryHoverBgColor:"#1ba968",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#1ba968",elButtonPrimaryActiveBgColor:"#18965d",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#18965d",elButtonPrimaryLinkTextColor:"#1ebc74",elButtonPrimaryLinkHoverTextColor:"#1ba968",elButtonPrimaryLinkActiveTextColor:"#18965d",elDropdownMenuItemHoverBgColor:"#d3f4e6",elTableColumnHoverBgColor:"#d3f4e6",elTreeItemHoverBgColor:"#d3f4e6",bgColor:"#d3f4e6",leftMenuBgColor:"0, #3ac777 0%, #1baa59 100%",leftMenuItemBgActiveColor:"rgba(129,207,161,1)",leftMenuItemBgHoverColor:"rgba(129,207,161,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(93,215,135,1)",topMenuItemBgHoverColor:"rgba(93,215,135,0.5)",topHeaderBgColor:"270deg, #3ac677 0%, #0dc35c 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},midAutumnFestival:{...B,elColorPrimary:"#fc8522",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#e2771f",elButtonDefaultHoverBorderColor:"#e2771f",elButtonDefaultActiveTextColor:"#ca6a1b",elButtonDefaultActiveBorderColor:"#ca6a1b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#fc8522",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#fc8522",elButtonPrimaryHoverBgColor:"#e2771f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#e2771f",elButtonPrimaryActiveBgColor:"#ca6a1b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#ca6a1b",elButtonPrimaryLinkTextColor:"#fc8522",elButtonPrimaryLinkHoverTextColor:"#e2771f",elButtonPrimaryLinkActiveTextColor:"#ca6a1b",elDropdownMenuItemHoverBgColor:"#ffe6d2",elTableColumnHoverBgColor:"#ffe6d2",elTreeItemHoverBgColor:"#ffe6d2",bgColor:"#ffe6d2",leftMenuBgColor:"0, #fc9b4b 0%, #ed6715 100%",leftMenuItemBgActiveColor:"rgba(255,176,129,1)",leftMenuItemBgHoverColor:"rgba(255,176,129,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,180,75,1)",topMenuItemBgHoverColor:"rgba(255,180,75,0.5)",topHeaderBgColor:"270deg, #fc9b4b 0%, #fa771d 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},newYearsDay:{...B,elColorPrimary:"#f63344",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#dd2e3d",elButtonDefaultHoverBorderColor:"#dd2e3d",elButtonDefaultActiveTextColor:"#c52936",elButtonDefaultActiveBorderColor:"#c52936",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#f63344",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#f63344",elButtonPrimaryHoverBgColor:"#dd2e3d",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#dd2e3d",elButtonPrimaryActiveBgColor:"#c52936",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#c52936",elButtonPrimaryLinkTextColor:"#f63344",elButtonPrimaryLinkHoverTextColor:"#dd2e3d",elButtonPrimaryLinkActiveTextColor:"#c52936",elDropdownMenuItemHoverBgColor:"#fed8dc",elTableColumnHoverBgColor:"#fed8dc",elTreeItemHoverBgColor:"#fed8dc",bgColor:"#fed8dc",leftMenuBgColor:"0, #f83d4d 0%, #dc2035 100%",leftMenuItemBgActiveColor:"rgba(255,78,96,1)",leftMenuItemBgHoverColor:"rgba(255,78,96,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,78,96,1)",topMenuItemBgHoverColor:"rgba(255,78,96,0.5)",topHeaderBgColor:"270deg, #f84958 0%, #f63344 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"}},{wsCache:E}=b(),x=o.defineStore("layout-app",{state:()=>({userInfo:"userInfo",sizeMap:["default","large","small"],title:"浪潮信链",pageLoading:!1,breadcrumb:!1,breadcrumbIcon:!0,collapse:!1,uniqueOpened:!0,hamburger:!0,search:!1,locale:!1,setting:!0,message:!0,tagsView:!0,logo:!0,footer:!1,greyMode:!1,layout:"top",currentSize:E.get("default")||"default",theme:E.get(v)||"whiteLight",isSetTheme:!1,topNav:"normal"}),getters:{getBreadcrumb(){return this.breadcrumb},getBreadcrumbIcon(){return this.breadcrumbIcon},getCollapse(){return this.collapse},getUniqueOpened(){return this.uniqueOpened},getHamburger(){return this.hamburger},getLocale(){return this.locale},getSetting(){return this.setting},getMessage(){return this.message},getTagsView(){return this.tagsView},getLogo(){return this.logo},getGreyMode(){return this.greyMode},getPageLoading(){return this.pageLoading},getLayout(){return this.layout},getTitle(){return this.title},getUserInfo(){return this.userInfo},getCurrentSize(){return this.currentSize},getSizeMap(){return this.sizeMap},getTheme(){return this.theme},getCurrentTheme(){return w[this.theme]},getFooter(){return this.footer},getIsSetTheme(){return this.isSetTheme},getTopNav(){return this.topNav}},actions:{setBreadcrumb(e){this.breadcrumb=e},setBreadcrumbIcon(e){this.breadcrumbIcon=e},setCollapse(e){this.collapse=e},setUniqueOpened(e){this.uniqueOpened=e},setHamburger(e){this.hamburger=e},setLocale(e){this.locale=e},setMessage(e){this.message=e},setTagsView(e){this.tagsView=e},setLogo(e){this.logo=e},setGreyMode(e){this.greyMode=e},setPageLoading(e){this.pageLoading=e},setLayout(e){this.layout=e,E.set(C,this.layout)},setTitle(e){this.title=e},setCurrentSize(e){this.currentSize=e,E.set("currentSize",this.currentSize)},setTheme(e){this.theme=e,E.set(v,e)},setCssVarTheme(){this.isSetTheme=!0;const e=w[this.theme];for(const o in e)c(`--${t=o,t.replace(/([A-Z])/g,"-$1").toLowerCase()}`,e[o]);var t},setFooter(e){this.footer=e},setTopNav(e){this.topNav=e,E.set(y,e)},async setUserTheme(){}},persist:!1}),S={namespace:"v",elNamespace:"el"},T=()=>{const e=S;return{variables:e,getPrefixCls:t=>`${e.namespace}-${t}`}},k=Object.assign({name:"BackTop"},{__name:"Backtop",setup(e){const{getPrefixCls:o,variables:r}=T(),n=o("backtop");return(e,o)=>(t.openBlock(),t.createBlock(t.unref(i.ElBacktop),{class:t.normalizeClass(`${t.unref(n)}-backtop`),target:`.${t.unref(r).namespace}-layout-content-scrollbar .${t.unref(r).elNamespace}-scrollbar__wrap`},null,8,["class","target"]))}}),A=Object.prototype.toString,V=(e,t)=>A.call(e)===`[object ${t}]`,I=e=>V(e,"String"),P=!("undefined"==typeof window),N=e=>/(((^https?:(?:\/\/)?)(?:[-:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%#\/.\w-_]*)?\??(?:[-\+=&%@.\w_]*)#?(?:[\w]*))?)$/.test(e),D=e=>{var t,o;if(!e||!Reflect.has(e,"children")||!(null==(t=e.children)?void 0:t.length))return!1;const r=e.children;let n=!1;for(let i=0;i<r.length;i++){if(null==(o=r[i].children)?void 0:o.length){n=!0;break}}return n},M=e=>{var t;let o=l.createRouter({routes:[e],history:l.createWebHashHistory()});const r=o.getRoutes();L(r,e.children||[],e),o=null,e.children=null==(t=e.children)?void 0:t.map((e=>n.omit(e,"children")))},L=(e,t,o)=>{var r,n;for(let i=0;i<t.length;i++){const l=t[i],a=e.find((e=>e.name===l.name));a&&(o.children=o.children||[],o.children.find((e=>e.name===a.name))||null==(r=o.children)||r.push(a),(null==(n=l.children)?void 0:n.length)&&L(e,l.children,o))}};function R(e,t,o){var r;for(const n of e){if(n[t]===o)return n;if(null==(r=n.children)?void 0:r.length){const e=R(n.children,t,o);if(e)return e}}}function F(e){const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return(e.children||[]).map((e=>{const o=e.path?t.endsWith("/")?e.path.startsWith("/")?e.path.substring(1):e.path:e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${t}${o}`}}))}function j(e,t){return t&&e?e.map((e=>{const o=t+(e.path.startsWith("/")?e.path:`/${e.path}`);return{...e,path:o,children:e.children?j(e.children,o):e.children}})):e}function O(e,t,o="start"){if(!t||0===t.length)return;const r=e=>{var t,o,n,i,l,a;return{name:(null==(t=e.meta)?void 0:t.title)||e.name||"",path:e.path,icon:(null==(o=e.meta)?void 0:o.icon)||"",visible:!0!==(null==(n=e.meta)?void 0:n.hidden),redirect:e.redirect||"",meta:{title:(null==(i=e.meta)?void 0:i.title)||e.name||"",icon:(null==(l=e.meta)?void 0:l.icon)||"",hidden:!0===(null==(a=e.meta)?void 0:a.hidden)},children:(e.children||[]).map(r)}},n=t.map(r);e.children="start"===o?n.concat(e.children||[]):(e.children||[]).concat(n)}const H=o.defineStore("layout-permission",{state:()=>({routers:[],addRouters:[],menuTabRouters:[],leftMenuRouters:[],moduleRouters:[],moduleId:void 0,moduleName:void 0,roleRouters:[]}),getters:{getRouters(){return this.routers},getRouterMap(){return this.addRouters},getAddRouters(){return(e=>{const t=n.cloneDeep(e);for(let o=0;o<t.length;o++){const e=t[o];D(e)&&M(e)}return t})(n.cloneDeep(this.addRouters))},getMenuTabRouters(){return this.menuTabRouters},getLeftMenuRouters(){return this.leftMenuRouters},getRoleRouters(){return this.roleRouters},getModuleRouters(){return this.moduleRouters},getModuleId(){return this.moduleId},getModuleName(){return this.moduleName}},actions:{setRouters(e){this.routers=e},setAddRouters(e){this.addRouters=e},setMenuTabRouters(e){this.menuTabRouters=e},setRoleRouters(e){this.roleRouters=e||[]},setLeftMenuRouters(e="",t=[]){const o=e?e.startsWith("/")?e:`/${e}`:"",r=t.map((e=>{const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${o}${t}`}}));this.leftMenuRouters=r},setModuleRouters(e,t=[],o="start"){const r=R(this.getRoleRouters,"id",e);if(r){this.moduleId=r.id,this.moduleName=r.name,this.moduleRouters=F(r);const e=j(t,r.path||"");return O(r,e,o),e}return t},resetState(){this.routers=[],this.addRouters=[],this.menuTabRouters=[],this.leftMenuRouters=[],this.moduleRouters=[],this.moduleId=void 0,this.moduleName=void 0,this.roleRouters=[]},setModuleRoutersByCode(e,t=[],o="start"){const r=R(this.getRoleRouters,"moduleCode",e);if(r){this.moduleId=r.id,this.moduleName=r.name,this.moduleRouters=F(r);const e=j(t,r.path||"");return O(r,e,o),e}return t}},persist:!1}),U=()=>H(s),Q={id:"id",children:"children",pid:"pid"},K=e=>Object.assign({},Q,e),q=(e=[],o)=>{const r=t.ref(),n=e.filter((e=>!(e.meta??{}).hidden&&(r.value=e,!0)));return 1===n.length?{oneShowingChild:!0,onlyOneChild:t.unref(r)}:n.length?{oneShowingChild:!1,onlyOneChild:t.unref(r)}:(r.value={...o,path:"",noShowingChildren:!0},{oneShowingChild:!0,onlyOneChild:t.unref(r)})},J=(e,t)=>{const o=U(),r=o.getRouters.find((t=>t.path==e));if(r){const n=r.meta??{},{oneShowingChild:i,onlyOneChild:l}=q(r.children,r);if(!i||(null==l?void 0:l.children)&&!(null==l?void 0:l.noShowingChildren)||(null==n?void 0:n.alwaysShow)){o.setLeftMenuRouters(r.path,r.children);const e=z(r.path,r.children);t&&t(e)}else o.setLeftMenuRouters(),t&&t(e)}},z=(e,t)=>{const o=t.find((e=>!1!==e.meta));return o?o.children&&o.children.length>0?z(`${e}/${o.path}`,o.children):`${e}/${o.path}`:e},Y=Object.freeze({left:0,top:0,width:16,height:16}),G=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),W=Object.freeze({...Y,...G}),X=Object.freeze({...W,body:"",hidden:!1});function Z(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(o.rotate=r),o}(e,t);for(const r in X)r in G?r in e&&!(r in o)&&(o[r]=G[r]):r in t?o[r]=t[r]:r in e&&(o[r]=e[r]);return o}function _(e,t,o){const r=e.icons,n=e.aliases||Object.create(null);let i={};function l(e){i=Z(r[e]||n[e],i)}return l(t),o.forEach(l),Z(e,i)}function $(e,t){const o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),o.push(e)}));const r=function(e){const t=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return Object.keys(t).concat(Object.keys(o)).forEach((function e(n){if(t[n])return r[n]=[];if(!(n in r)){r[n]=null;const t=o[n]&&o[n].parent,i=t&&e(t);i&&(r[n]=[t].concat(i))}return r[n]})),r}(e);for(const n in r){const i=r[n];i&&(t(n,_(e,n,i)),o.push(n))}return o}const ee=/^[a-z0-9]+(-[a-z0-9]+)*$/,te=(e,t,o,r="")=>{const n=e.split(":");if("@"===e.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const e=n.pop(),o=n.pop(),i={provider:n.length>0?n[0]:r,prefix:o,name:e};return t&&!oe(i)?null:i}const i=n[0],l=i.split("-");if(l.length>1){const e={provider:r,prefix:l.shift(),name:l.join("-")};return t&&!oe(e)?null:e}if(o&&""===r){const e={provider:r,prefix:"",name:i};return t&&!oe(e,o)?null:e}return null},oe=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(ee)||!(t&&""===e.prefix||e.prefix.match(ee))||!e.name.match(ee)),re={provider:"",aliases:{},not_found:{},...Y};function ne(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}const ie=Object.create(null);function le(e,t){const o=ie[e]||(ie[e]=Object.create(null));return o[t]||(o[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ae(e,t){return function(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!ne(e,re))return null;const o=t.icons;for(const n in o){const e=o[n];if(!n.match(ee)||"string"!=typeof e.body||!ne(e,X))return null}const r=t.aliases||Object.create(null);for(const n in r){const e=r[n],t=e.parent;if(!n.match(ee)||"string"!=typeof t||!o[t]&&!r[t]||!ne(e,X))return null}return t}(t)?$(t,((t,o)=>{o?e.icons[t]=o:e.missing.add(t)})):[]}let se=!1;function ce(e){const t="string"==typeof e?te(e,!0,se):e;if(t){const e=le(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function ue(e,t){if("object"!=typeof e)return!1;"string"!=typeof t&&(t=e.provider||"");const o=e.prefix;if(!oe({provider:t,prefix:o,name:"a"}))return!1;return!!ae(le(t,o),e)}const de=Object.freeze({width:null,height:null}),fe=Object.freeze({...de,...G}),pe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,me=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const r=e.split(pe);if(null===r||!r.length)return e;const n=[];let i=r.shift(),l=me.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?n.push(i):n.push(Math.ceil(e*t*o)/o)}else n.push(i);if(i=r.shift(),void 0===i)return n.join("");l=!l}}function ge(e,t){const o={...W,...e},r={...fe,...t},n={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach((e=>{const t=[],o=e.hFlip,r=e.vFlip;let l,a=e.rotate;switch(o?r?a+=2:(t.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),t.push("scale(-1 1)"),n.top=n.left=0):r&&(t.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),t.push("scale(1 -1)"),n.top=n.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=n.height/2+n.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:l=n.width/2+n.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(n.left!==n.top&&(l=n.left,n.left=n.top,n.top=l),n.width!==n.height&&(l=n.width,n.width=n.height,n.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=r.width,a=r.height,s=n.width,c=n.height;let u,d;null===l?(d=null===a?"1em":"auto"===a?c:a,u=he(d,s/c)):(u="auto"===l?s:l,d=null===a?he(u,c/s):"auto"===a?c:a);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",u),p("height",d),f.viewBox=n.left.toString()+" "+n.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:i}}const ve=/\sid="(\S+)"/g,Ce="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let ye=0;function be(e,t=Ce){const o=[];let r;for(;r=ve.exec(e);)o.push(r[1]);if(!o.length)return e;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach((o=>{const r="function"==typeof t?t(o):t+(ye++).toString(),i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")})),e=e.replace(new RegExp(n,"g"),"")}const Be={local:!0,session:!0},we={local:new Set,session:new Set};let Ee=!1;const xe="iconify2",Se="iconify",Te=Se+"-count",ke=Se+"-version",Ae=36e5;function Ve(e,t){try{return e.getItem(t)}catch(o){}}function Ie(e,t,o){try{return e.setItem(t,o),!0}catch(r){}}function Pe(e,t){try{e.removeItem(t)}catch(o){}}function Ne(e,t){return Ie(e,Te,t.toString())}function De(e){return parseInt(Ve(e,Te))||0}let Me="undefined"==typeof window?{}:window;function Le(e){const t=e+"Storage";try{if(Me&&Me[t]&&"number"==typeof Me[t].length)return Me[t]}catch(o){}Be[e]=!1}function Re(e,t){const o=Le(e);if(!o)return;const r=Ve(o,ke);if(r!==xe){if(r){const e=De(o);for(let t=0;t<e;t++)Pe(o,Se+t.toString())}return Ie(o,ke,xe),void Ne(o,0)}const n=Math.floor(Date.now()/Ae)-168,i=e=>{const r=Se+e.toString(),i=Ve(o,r);if("string"==typeof i){try{const o=JSON.parse(i);if("object"==typeof o&&"number"==typeof o.cached&&o.cached>n&&"string"==typeof o.provider&&"object"==typeof o.data&&"string"==typeof o.data.prefix&&t(o,e))return!0}catch(l){}Pe(o,r)}};let l=De(o);for(let a=l-1;a>=0;a--)i(a)||(a===l-1?(l--,Ne(o,l)):we[e].add(a))}function Fe(){if(!Ee){Ee=!0;for(const e in Be)Re(e,(e=>{const t=e.data,o=le(e.provider,t.prefix);if(!ae(o,t).length)return!1;const r=t.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,r):r,!0}))}}function je(e,t){switch(e){case"local":case"session":Be[e]=t;break;case"all":for(const e in Be)Be[e]=t}}const Oe=Object.create(null);function He(e,t){Oe[e]=t}function Ue(e){return Oe[e]||Oe[""]}function Qe(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ke=Object.create(null),qe=["https://api.simplesvg.com","https://api.unisvg.com"],Je=[];for(;qe.length>0;)1===qe.length||Math.random()>.5?Je.push(qe.shift()):Je.push(qe.pop());function ze(e,t){const o=Qe(t);return null!==o&&(Ke[e]=o,!0)}function Ye(e){return Ke[e]}Ke[""]=Qe({resources:["https://api.iconify.design"].concat(Je)});let Ge=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const We={prepare:(e,t,o)=>{const r=[],n=function(e,t){const o=Ye(e);if(!o)return 0;let r;if(o.maxURL){let e=0;o.resources.forEach((t=>{const o=t;e=Math.max(e,o.length)}));const n=t+".json?icons=";r=o.maxURL-e-o.path.length-n.length}else r=0;return r}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return o.forEach(((o,s)=>{a+=o.length+1,a>=n&&s>0&&(r.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=o.length),l.icons.push(o)})),r.push(l),r},send:(e,t,o)=>{if(!Ge)return void o("abort",424);let r=function(e){if("string"==typeof e){const t=Ye(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,o=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void o("abort",400)}let n=503;Ge(e+r).then((e=>{const t=e.status;if(200===t)return n=501,e.json();setTimeout((()=>{o(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{o("success",e)})):setTimeout((()=>{404===e?o("abort",e):o("next",n)}))})).catch((()=>{o("next",n)}))}};function Xe(e,t){e.forEach((e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter((e=>e.id!==t)))}))}let Ze=0;var _e={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $e(e,t,o,r){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,c="pending",u=0,d=null,f=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function h(){"pending"===c&&(c="aborted"),m(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,s)}))}function C(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function y(){if("pending"!==c)return;m();const r=l.shift();if(void 0===r)return f.length?void(d=setTimeout((()=>{m(),"pending"===c&&(C(),v())}),e.timeout)):void v();const n={status:"pending",resource:r,callback:(t,o)=>{!function(t,o,r){const n="success"!==o;switch(f=f.filter((e=>e!==t)),c){case"pending":break;case"failed":if(n||!e.dataAfterTimeout)return;break;default:return}if("abort"===o)return s=r,void v();if(n)return s=r,void(f.length||(l.length?y():v()));if(m(),C(),!e.random){const o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}c="completed",p.forEach((e=>{e(r)}))}(n,t,o)}};f.push(n),u++,d=setTimeout(y,e.rotate),o(r,t,n.callback)}return"function"==typeof r&&p.push(r),setTimeout(y),function(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:g,abort:h}}}function et(e){const t={..._e,...e};let o=[];function r(){o=o.filter((e=>"pending"===e().status))}return{query:function(e,n,i){const l=$e(t,e,n,((e,t)=>{r(),i&&i(e,t)}));return o.push(l),l},find:function(e){return o.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function tt(){}const ot=Object.create(null);function rt(e,t,o){let r,n;if("string"==typeof e){const t=Ue(e);if(!t)return o(void 0,424),tt;n=t.send;const i=function(e){if(!ot[e]){const t=Ye(e);if(!t)return;const o={config:t,redundancy:et(t)};ot[e]=o}return ot[e]}(e);i&&(r=i.redundancy)}else{const t=Qe(e);if(t){r=et(t);const o=Ue(e.resources?e.resources[0]:"");o&&(n=o.send)}}return r&&n?r.query(t,n,o)().abort:(o(void 0,424),tt)}function nt(e,t){function o(o){let r;if(!Be[o]||!(r=Le(o)))return;const n=we[o];let i;if(n.size)n.delete(i=Array.from(n).shift());else if(i=De(r),!Ne(r,i+1))return;const l={cached:Math.floor(Date.now()/Ae),provider:e.provider,data:t};return Ie(r,Se+i.toString(),JSON.stringify(l))}Ee||Fe(),t.lastModified&&!function(e,t){const o=e.lastModifiedCached;if(o&&o>=t)return o===t;if(e.lastModifiedCached=t,o)for(const r in Be)Re(r,(o=>{const r=o.data;return o.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,o("local")||o("session"))}function it(){}function lt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const r=e.provider,n=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==n)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:r,prefix:n,name:l});else{if(!e.missing.has(l))return o=!0,!0;i.missing.push({provider:r,prefix:n,name:l})}return!1})),i.pending.length!==l&&(o||Xe([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const at=(e,t)=>{const o=function(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const n=e.provider,i=e.prefix,l=e.name,a=o[n]||(o[n]=Object.create(null)),s=a[i]||(a[i]=le(n,i));let c;c=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const u={provider:n,prefix:i,name:l};c.push(u)})),t}(function(e,t=!0,o=!1){const r=[];return e.forEach((e=>{const n="string"==typeof e?te(e,t,o):e;n&&r.push(n)})),r}(e,!0,se));if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,it)})),()=>{e=!1}}const r=Object.create(null),n=[];let i,l;return o.pending.forEach((e=>{const{provider:t,prefix:o}=e;if(o===l&&t===i)return;i=t,l=o,n.push(le(t,o));const a=r[t]||(r[t]=Object.create(null));a[o]||(a[o]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:o,name:n}=e,i=le(t,o),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(n)||(l.add(n),r[t][o].push(n))})),n.forEach((e=>{const{provider:t,prefix:o}=e;r[t][o].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:o}=e,r=e.iconsToLoad;let n;delete e.iconsToLoad,r&&(n=Ue(t))&&n.prepare(t,o,r).forEach((o=>{rt(t,o,(t=>{if("object"!=typeof t)o.icons.forEach((t=>{e.missing.add(t)}));else try{const o=ae(e,t);if(!o.length)return;const r=e.pendingIcons;r&&o.forEach((e=>{r.delete(e)})),nt(e,t)}catch(r){}lt(e)}))}))})))}(e,r[t][o])})),t?function(e,t,o){const r=Ze++,n=Xe.bind(null,o,r);if(!t.pending.length)return n;const i={id:r,icons:t,callback:e,abort:n};return o.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),n}(t,o,n):it};function st(e,t){const o={...e};for(const r in t){const e=t[r],n=typeof e;r in de?(null===e||e&&("string"===n||"number"===n))&&(o[r]=e):n===typeof o[r]&&(o[r]="rotate"===r?e%4:e)}return o}const ct={...fe,inline:!1},ut="iconify",dt="iconify-inline",ft="iconifyData"+Date.now();let pt=[];function mt(e){for(let t=0;t<pt.length;t++){const o=pt[t];if(("function"==typeof o.node?o.node():o.node)===e)return o}}function ht(e,t=!1){let o=mt(e);return o?(o.temporary&&(o.temporary=t),o):(o={node:e,temporary:t},pt.push(o),o)}function gt(){return pt}let vt=null;const Ct={childList:!0,subtree:!0,attributes:!0};function yt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,vt&&vt(e)})))}function bt(e,t){if(!e.observer)return;const o=e.observer;if(!o.pendingScan)for(let r=0;r<t.length;r++){const n=t[r];if(n.addedNodes&&n.addedNodes.length>0||"attributes"===n.type&&void 0!==n.target[ft])return void(o.paused||yt(e))}}function Bt(e,t){e.observer.instance.observe(t,Ct)}function wt(e){let t=e.observer;if(t&&t.instance)return;const o="function"==typeof e.node?e.node():e.node;o&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(bt.bind(null,e)),Bt(e,o),t.paused||yt(e))}function Et(){gt().forEach(wt)}function xt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function St(e){const t=null!==vt;vt!==e&&(vt=e,t&>().forEach(xt)),t?Et():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(Et)}function Tt(e){(e?[e]:gt()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function kt(e){(e?[e]:gt()).forEach((e=>{if(!e.observer)return void wt(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const o="function"==typeof e.node?e.node():e.node;if(!o)return;t.instance?Bt(e,o):wt(e)}}))}function At(e,t=!1){const o=ht(e,t);return wt(o),o}function Vt(e){const t=mt(e);t&&(xt(t),function(e){pt=pt.filter((t=>e!==t&&e!==("function"==typeof t.node?t.node():t.node)))}(e))}const It=/[\s,]+/;const Pt=["width","height"],Nt=["inline","hFlip","vFlip"];function Dt(e){const t=e.getAttribute("data-icon"),o="string"==typeof t&&te(t,!0);if(!o)return null;const r={...ct,inline:e.classList&&e.classList.contains(dt)};Pt.forEach((t=>{const o=e.getAttribute("data-"+t);o&&(r[t]=o)}));const n=e.getAttribute("data-rotate");"string"==typeof n&&(r.rotate=function(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===o){const t=parseInt(e);return isNaN(t)?0:r(t)}if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let n=parseFloat(e.slice(0,e.length-o.length));return isNaN(n)?0:(n/=t,n%1==0?r(n):0)}}return t}(n));const i=e.getAttribute("data-flip");"string"==typeof i&&function(e,t){t.split(It).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(r,i),Nt.forEach((t=>{const o="data-"+t,n=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(o),o);"boolean"==typeof n&&(r[t]=n)}));const l=e.getAttribute("data-mode");return{name:t,icon:o,customisations:r,mode:l}}const Mt="svg."+ut+", i."+ut+", span."+ut+", i."+dt+", span."+dt;function Lt(e,t){let o=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)o+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}let Rt;function Ft(e){return void 0===Rt&&function(){try{Rt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){Rt=null}}(),Rt?Rt.createHTML(e):e}function jt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach((o=>{e[o]&&t.add("iconify--"+e[o])})),t}function Ot(e,t,o,r){const n=e.classList;if(r){const e=r.classList;Array.from(e).forEach((e=>{n.add(e)}))}const i=[];return t.forEach((e=>{n.contains(e)?o.has(e)&&i.push(e):(n.add(e),i.push(e))})),o.forEach((e=>{t.has(e)||n.remove(e)})),i}function Ht(e,t,o){const r=e.style;(o||[]).forEach((e=>{r.removeProperty(e)}));const n=[];for(const i in t)r.getPropertyValue(i)||(n.push(i),r.setProperty(i,t[i]));return n}function Ut(e,t,o){let r;try{r=document.createElement("span")}catch(p){return e}const n=t.customisations,i=ge(o,n),l=e[ft],a=Lt(be(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Ft(a);const s=r.childNodes[0],c=e.attributes;for(let m=0;m<c.length;m++){const e=c.item(m),t=e.name;"class"===t||s.hasAttribute(t)||s.setAttribute(t,e.value)}const u=Ot(s,jt(t.icon),new Set(l&&l.addedClasses),e),d=Ht(s,n.inline?{"vertical-align":"-0.125em"}:{},l&&l.addedStyles),f={...t,status:"loaded",addedClasses:u,addedStyles:d};return s[ft]=f,e.parentNode&&e.parentNode.replaceChild(s,e),s}const Qt={display:"inline-block"},Kt={"background-color":"currentColor"},qt={"background-color":"transparent"},Jt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},zt={"-webkit-mask":Kt,mask:Kt,background:qt};for(const il in zt){const e=zt[il];for(const t in Jt)e[il+"-"+t]=Jt[t]}function Yt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let Gt=!1;function Wt(){Gt||(Gt=!0,setTimeout((()=>{Gt&&(Gt=!1,Xt())})))}function Xt(e,t=!1){const o=Object.create(null);function r(e,t){const{provider:r,prefix:n,name:i}=e,l=le(r,n),a=l.icons[i];if(a)return{status:"loaded",icon:a};if(l.missing.has(i))return{status:"missing"};if(t&&!(e=>{const t=le(e.provider,e.prefix).pendingIcons;return!(!t||!t.has(e.name))})(e)){const e=o[r]||(o[r]=Object.create(null));(e[n]||(e[n]=new Set)).add(i)}return{status:"loading"}}(e?[e]:gt()).forEach((e=>{const o="function"==typeof e.node?e.node():e.node;if(!o||!o.querySelectorAll)return;let n=!1,i=!1;function l(t,o,r){if(i||(i=!0,Tt(e)),"SVG"!==t.tagName.toUpperCase()){const e=o.mode,n="mask"===e||"bg"!==e&&("style"===e?-1!==r.body.indexOf("currentColor"):null);if("boolean"==typeof n)return void function(e,t,o,r){const n=t.customisations,i=ge(o,n),l=i.attributes,a=e[ft],s=Lt(i.body,{...l,width:o.width+"",height:o.height+""}),c=Ot(e,jt(t.icon),new Set(a&&a.addedClasses)),u={"--svg":'url("'+(d=s,"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(d)+'")'),width:Yt(l.width),height:Yt(l.height),...Qt,...r?Kt:qt};var d;n.inline&&(u["vertical-align"]="-0.125em");const f=Ht(e,u,a&&a.addedStyles),p={...t,status:"loaded",addedClasses:c,addedStyles:f};e[ft]=p}(t,o,{...W,...r},n)}Ut(t,o,r)}(function(e){const t=[];return e.querySelectorAll(Mt).forEach((e=>{const o=e[ft]||"svg"!==e.tagName.toLowerCase()?Dt(e):null;o&&t.push({node:e,props:o})})),t})(o).forEach((({node:e,props:t})=>{const o=e[ft];if(!o){const{status:o,icon:i}=r(t.icon,!0);return i?void l(e,t,i):(n=n||"loading"===o,void(e[ft]={...t,status:o}))}let i;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const o=e.customisations,r=t.customisations;for(const n in ct)if(o[n]!==r[n])return!0;return!1}(o,t)){if(i=r(t.icon,o.name!==t.name),!i.icon)return n=n||"loading"===i.status,void Object.assign(o,{...t,status:i.status})}else{if("loading"!==o.status)return;if(i=r(t.icon,!1),!i.icon)return void(o.status=i.status)}l(e,t,i.icon)})),e.temporary&&!n?Vt(o):t&&n?At(o,!0):i&&e.observer&&kt(e)}));for(const n in o){const e=o[n];for(const t in e){const o=e[t];at(Array.from(o).map((e=>({provider:n,prefix:t,name:e}))),Wt)}}}function Zt(e,t,o=!1){const r=ce(e);if(!r)return null;const n=te(e),i=st(ct,t||{}),l=Ut(document.createElement("span"),{name:e,icon:n,customisations:i},r);return o?l.outerHTML:l}if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return ht(document.documentElement);pt.push({node:()=>document.documentElement})}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload;"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{"object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||ue(e)}catch(t){}}))}setTimeout((()=>{St(Xt),Xt()}))}if(He("",We),"undefined"!=typeof document&&"undefined"!=typeof window){Fe();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(const e in t){try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;ze(e,o)}catch(rl){}}}}const _t={_api:{getAPIConfig:Ye,setAPIModule:He,sendAPIQuery:rt,setFetch:function(e){Ge=e},getFetch:function(){return Ge},listAPIProviders:function(){return Object.keys(Ke)}},addAPIProvider:ze,loadIcons:at,loadIcon:e=>new Promise(((t,o)=>{const r="string"==typeof e?te(e,!0):e;r?at([r||e],(n=>{if(n.length&&r){const e=ce(r);if(e)return void t({...W,...e})}o(e)})):o(e)})),iconExists:function(e){return!!ce(e)},getIcon:function(e){const t=ce(e);return t?{...W,...t}:null},listIcons:function(e,t){let o=[];return("string"==typeof e?[e]:Object.keys(ie)).forEach((e=>{("string"==typeof e&&"string"==typeof t?[t]:Object.keys(ie[e]||{})).forEach((t=>{const r=le(e,t);o=o.concat(Object.keys(r.icons).map((o=>(""!==e?"@"+e+":":"")+t+":"+o)))}))})),o},addIcon:function(e,t){const o=te(e,!0,se);return!!o&&function(e,t,o){try{if("string"==typeof o.body)return e.icons[t]={...o},!0}catch(r){}return!1}(le(o.provider,o.prefix),o.name,t)},addCollection:ue,replaceIDs:be,calculateSize:he,buildIcon:ge,getVersion:function(){return"3.1.1"},renderSVG:function(e,t){return Zt(e,t,!1)},renderHTML:function(e,t){return Zt(e,t,!0)},renderIcon:function(e,t){const o=ce(e);return o?ge(o,st(ct,t||{})):null},scan:function(e){e?function(e){const t=mt(e);t?Xt(t):Xt({node:e,temporary:!0},!0)}(e):Xt()},observe:At,stopObserving:Vt,pauseObserver:function(e){if(e){const t=mt(e);t&&Tt(t)}else Tt()},resumeObserver:function(e){if(e){const t=mt(e);t&&kt(t)}else kt()},enableCache:function(e,t){je(e,!1!==t)},disableCache:function(e){je(e,!0)}};try{void 0===self.Iconify&&(self.Iconify=_t)}catch(nl){}const $t=["xlink:href"],eo=["data-icon"],to=Object.assign({name:"Icon"},{__name:"Icon",props:{icon:String,color:String,size:{type:Number,default:16},svgClass:{type:String,default:""}},setup(e){const{getPrefixCls:o}=T(),r=o("icon"),n=e,l=t.ref(null),a=t.computed((()=>{var e;return null==(e=n.icon)?void 0:e.startsWith("svg-icon:")})),s=t.computed((()=>t.unref(a)?`#icon-${n.icon.split("svg-icon:")[1]}`:n.icon)),c=t.computed((()=>{const{color:e,size:t}=n;return{fontSize:`${t}px`,height:"1em",color:e}})),u=t.computed((()=>{const{svgClass:e}=n;return`iconify ${e}`}));return t.watch((()=>n.icon),(e=>{(async e=>{if(t.unref(a))return;const o=t.unref(l);if(!o)return;if(await t.nextTick(),!e)return;const r=_t.renderSVG(e,{});if(r)o.textContent="",o.appendChild(r);else{const t=document.createElement("span");t.className="iconify",t.dataset.icon=e,o.textContent="",o.appendChild(t)}})(e)})),(o,n)=>(t.openBlock(),t.createBlock(t.unref(i.ElIcon),{class:t.normalizeClass(t.unref(r)),color:e.color,size:e.size},{default:t.withCtx((()=>[t.unref(a)?(t.openBlock(),t.createElementBlock("svg",{key:0,class:t.normalizeClass(t.unref(u))},[t.createElementVNode("use",{"xlink:href":t.unref(s)},null,8,$t)],2)):(t.openBlock(),t.createElementBlock("span",{key:1,ref_key:"elRef",ref:l,class:t.normalizeClass(o.$attrs.class),style:t.normalizeStyle(t.unref(c))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(u)),"data-icon":t.unref(s)},null,10,eo)],6))])),_:1},8,["class","color","size"]))}}),oo=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o};let ro=null;const no=(e,t)=>t,io=e=>{if(!ro)return{t:e=>no(0,e)};const{t:t,...o}=ro.global;return{...o,t:(o,...r)=>o?o.includes(".")||e?t(no(0,o),...r):o:""}},{getPrefixCls:lo}=T(),ao=lo("menu"),so=e=>{if(!e)return e;const{matched:t,...o}=e;return{...o,matched:t?t.map((e=>({meta:e.meta,name:e.name,path:e.path}))):void 0}},co=(e,t)=>{if(N(t))return t;return`${e}${t.startsWith("/")||!t?t:`/${t}`}`.replace(/\/\//g,"/")},{renderMenuTitle:uo}=(()=>{const e=x(),o=t.computed((()=>e.getLayout));return{renderMenuTitle:(e,r,n)=>{const{t:i}=io(),{title:l="Please set title",icon:a}=e,s=t.computed((()=>"top"!==o.value));return t.createVNode(t.Fragment,null,[s.value&&t.createVNode(to,{icon:a||"ep:house"},null),t.createVNode("span",{class:[`${ao}__title`,"overflow-hidden overflow-ellipsis whitespace-nowrap text-ellipsis"]},[i(l)])])}}})(),fo=oo(Object.assign({name:"Collapse"},{__name:"Collapse",props:{color:{type:String,default:""}},setup(e){const{getPrefixCls:o}=T(),r=o("collapse"),n=x(),i=t.computed((()=>n.getCollapse)),l=()=>{const e=t.unref(i);n.setCollapse(!e)};return(o,n)=>{const a=t.resolveComponent("Icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`${t.unref(r)} ${t.unref(i)?"!px-16px":"!px-20px"}`),onClick:l},[t.createVNode(a,{color:e.color,icon:t.unref(i)?"svg-icon:menu-fold":"svg-icon:menu-unfold",class:"cursor-pointer"},null,8,["color","icon"])],2)}}}),[["__scopeId","data-v-6fa09378"]]);const{getPrefixCls:po}=T(),mo=po("menu"),ho=oo(t.defineComponent({name:"Menu",props:{menuSelect:{type:Function,default:void 0},mode:{type:String,default:"vertical"}},setup(e){const o=x(),r=t.computed((()=>o.getLayout)),{push:n,currentRoute:a}=l.useRouter(),s=H(),c=t.computed((()=>{switch(t.unref(r)){case"left":return"vertical";case"top":return"horizontal";case"topLeft":return e.mode}})),u=t.computed((()=>"topLeft"==r.value&&"vertical"==e.mode?s.getLeftMenuRouters:s.getRouters)),d=t.computed((()=>o.getCollapse)),f=t.computed((()=>o.getUniqueOpened)),p=t.computed((()=>{const{meta:e,path:o}=t.unref(a);return e.activeMenu?e.activeMenu:o})),m=t=>{e.menuSelect&&e.menuSelect(t),N(t)?window.open(t):"topLeft"==r.value&&"horizontal"==e.mode?J(t,n):n(t)},h=()=>{if("top"===t.unref(r))return g();{let o;return t.createVNode(i.ElScrollbar,null,"function"==typeof(e=o=g())||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?o:{default:()=>[o]})}var e},g=()=>t.createVNode(i.ElMenu,{defaultActive:t.unref(p),mode:t.unref(c),collapse:"top"!==t.unref(r)&&("topLeft"!==t.unref(r)||"horizontal"!==e.mode)&&t.unref(d),uniqueOpened:"top"!==t.unref(r)&&t.unref(f),backgroundColor:"transparent",textColor:"var(--left-menu-text-color)",activeTextColor:"var(--left-menu-text-active-color)",popperClass:"vertical"===t.unref(c)?`${mo}-popper--vertical`:`${mo}-popper--horizontal`,onSelect:m},{default:()=>{const{renderMenuItem:o}=(()=>{const e=x(),o=t.computed((()=>e.getLayout)),r=(e,n,a="/",s=0)=>{const c=l.useRoute();return e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})).map((e=>{const l=e.meta??{},{oneShowingChild:u,onlyOneChild:d}=q(e.children,e),f=N(e.path)?e.path:co(a,e.path);if(!u||(null==d?void 0:d.children)&&!(null==d?void 0:d.noShowingChildren)||(null==l?void 0:l.alwaysShow)){if("topLeft"==o.value&&"horizontal"==n){const e=c.path.includes(f);return e&&J(f),t.createVNode(i.ElMenuItem,{index:f,class:e?"is-active":""},{default:()=>uo(l,l,n)})}return t.createVNode(i.ElSubMenu,{index:f},{title:()=>uo(l,s,n),default:()=>r(e.children,n,f,s+1)})}return t.createVNode(i.ElMenuItem,{index:d?co(f,d.path):f},{default:()=>uo(d?null==d?void 0:d.meta:l,s,n)})}))};return{renderMenuItem:r}})();return o(u.value,e.mode)}}),v=t.computed((()=>"left"==r.value||"topLeft"==t.unref(r)&&"vertical"==e.mode)),C=t.computed((()=>s.getModuleName)),y=t.computed((()=>("left"==r.value||"topLeft"==r.value&&"vertical"==e.mode)&&!d.value));return()=>t.createVNode("div",{id:mo,class:[`${mo} ${mo}__${t.unref(c)}`,"flex flex-col",{"w-[var(--left-menu-min-width)]":t.unref(d),"w-[var(--left-menu-max-width)]":!t.unref(d),"bg-[linear-gradient(var(--left-menu-bg-color))]":"left"==t.unref(r)||"topLeft"==t.unref(r)&&"vertical"==e.mode,collapse:t.unref(d),"un-collapse":!t.unref(d)}]},[y.value&&t.createVNode("div",{class:"text-center text-16px font-500 p-16px pb-10px text-[var(--left-menu-text-color)]"},[C.value]),t.createVNode("div",{class:"flex-1 overflow-hidden"},[h()]),t.unref(v)?t.createVNode(fo,{color:"var(--top-header-text-color)"},null):void 0])}}),[["__scopeId","data-v-ca95b9cd"]]);function go(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function vo(e,t){return e&t}function Co(e,t){return e|t}function yo(e,t){return e^t}function bo(e,t){return e&~t}function Bo(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function wo(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var Eo,xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function So(e){var t,o,r="";for(t=0;t+3<=e.length;t+=3)o=parseInt(e.substring(t,t+3),16),r+=xo.charAt(o>>6)+xo.charAt(63&o);for(t+1==e.length?(o=parseInt(e.substring(t,t+1),16),r+=xo.charAt(o<<2)):t+2==e.length&&(o=parseInt(e.substring(t,t+2),16),r+=xo.charAt(o>>2)+xo.charAt((3&o)<<4));(3&r.length)>0;)r+="=";return r}var To,ko=function(e){var t;if(void 0===Eo){var o="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Eo={},t=0;t<16;++t)Eo[o.charAt(t)]=t;for(o=o.toLowerCase(),t=10;t<16;++t)Eo[o.charAt(t)]=t;for(t=0;t<8;++t)Eo[r.charAt(t)]=-1}var n=[],i=0,l=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=Eo[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++l>=2?(n[n.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return n},Ao={decode:function(e){var t;if(void 0===To){var o="= \f\n\r\t \u2028\u2029";for(To=Object.create(null),t=0;t<64;++t)To["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(To["-"]=62,To._=63,t=0;t<9;++t)To[o.charAt(t)]=-1}var r=[],n=0,i=0;for(t=0;t<e.length;++t){var l=e.charAt(t);if("="==l)break;if(-1!=(l=To[l])){if(void 0===l)throw new Error("Illegal character at offset "+t);n|=l,++i>=4?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,n=0,i=0):n<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Ao.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Ao.decode(e)}},Vo=1e13,Io=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var o,r,n=this.buf,i=n.length;for(o=0;o<i;++o)(r=n[o]*e+t)<Vo?t=0:r-=(t=0|r/Vo)*Vo,n[o]=r;t>0&&(n[o]=t)},e.prototype.sub=function(e){var t,o,r=this.buf,n=r.length;for(t=0;t<n;++t)(o=r[t]-e)<0?(o+=Vo,e=1):e=0,r[t]=o;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,o=t[t.length-1].toString(),r=t.length-2;r>=0;--r)o+=(Vo+t[r]).toString().substring(1);return o},e.prototype.valueOf=function(){for(var e=this.buf,t=0,o=e.length-1;o>=0;--o)t=t*Vo+e[o];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Po=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,No=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Do(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var Mo,Lo=function(){function e(t,o){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=o)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,o){for(var r="",n=e;n<t;++n)if(r+=this.hexByte(this.get(n)),!0!==o)switch(15&n){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var o=e;o<t;++o){var r=this.get(o);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var o="",r=e;r<t;++r)o+=String.fromCharCode(this.get(r));return o},e.prototype.parseStringUTF=function(e,t){for(var o="",r=e;r<t;){var n=this.get(r++);o+=n<128?String.fromCharCode(n):n>191&&n<224?String.fromCharCode((31&n)<<6|63&this.get(r++)):String.fromCharCode((15&n)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return o},e.prototype.parseStringBMP=function(e,t){for(var o,r,n="",i=e;i<t;)o=this.get(i++),r=this.get(i++),n+=String.fromCharCode(o<<8|r);return n},e.prototype.parseTime=function(e,t,o){var r=this.parseStringISO(e,t),n=(o?Po:No).exec(r);return n?(o&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),r=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(r+=":"+n[5],n[6]&&(r+=":"+n[6],n[7]&&(r+="."+n[7]))),n[8]&&(r+=" UTC","Z"!=n[8]&&(r+=n[8],n[9]&&(r+=":"+n[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var o,r=this.get(e),n=r>127,i=n?255:0,l="";r==i&&++e<t;)r=this.get(e);if(0===(o=t-e))return n?-1:0;if(o>4){for(l=r,o<<=3;!(128&(+l^i));)l=+l<<1,--o;l="("+o+" bit)\n"}n&&(r-=256);for(var a=new Io(r),s=e+1;s<t;++s)a.mulAdd(256,this.get(s));return l+a.toString()},e.prototype.parseBitString=function(e,t,o){for(var r=this.get(e),n="("+((t-e-1<<3)-r)+" bit)\n",i="",l=e+1;l<t;++l){for(var a=this.get(l),s=l==t-1?r:0,c=7;c>=s;--c)i+=a>>c&1?"1":"0";if(i.length>o)return n+Do(i,o)}return n+i},e.prototype.parseOctetString=function(e,t,o){if(this.isASCII(e,t))return Do(this.parseStringISO(e,t),o);var r=t-e,n="("+r+" byte)\n";r>(o/=2)&&(t=e+o);for(var i=e;i<t;++i)n+=this.hexByte(this.get(i));return r>o&&(n+="…"),n},e.prototype.parseOID=function(e,t,o){for(var r="",n=new Io,i=0,l=e;l<t;++l){var a=this.get(l);if(n.mulAdd(128,127&a),i+=7,!(128&a)){if(""===r)if((n=n.simplify())instanceof Io)n.sub(80),r="2."+n.toString();else{var s=n<80?n<40?0:1:2;r=s+"."+(n-40*s)}else r+="."+n.toString();if(r.length>o)return Do(r,o);n=new Io,i=0}}return i>0&&(r+=".incomplete"),r},e}(),Ro=function(){function e(e,t,o,r,n){if(!(r instanceof Fo))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=o,this.tag=r,this.sub=n}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),o=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+o,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,e);case 6:return this.stream.parseOID(t,t+o,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Do(this.stream.parseStringUTF(t,t+o),e);case 18:case 19:case 20:case 21:case 22:case 26:return Do(this.stream.parseStringISO(t,t+o),e);case 30:return Do(this.stream.parseStringBMP(t,t+o),e);case 23:case 24:return this.stream.parseTime(t,t+o,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var o=0,r=this.sub.length;o<r;++o)t+=this.sub[o].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),o=127&t;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===o)return null;t=0;for(var r=0;r<o;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,o=2*this.length;return e.substr(t,o)},e.decode=function(t){var o;o=t instanceof Lo?t:new Lo(t,0);var r=new Lo(o),n=new Fo(o),i=e.decodeLength(o),l=o.pos,a=l-r.pos,s=null,c=function(){var t=[];if(null!==i){for(var r=l+i;o.pos<r;)t[t.length]=e.decode(o);if(o.pos!=r)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var n=e.decode(o);if(n.tag.isEOC())break;t[t.length]=n}i=l-o.pos}catch(rl){throw new Error("Exception while decoding undefined length content: "+rl)}return t};if(n.tagConstructed)s=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=o.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");s=c();for(var u=0;u<s.length;++u)if(s[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(rl){s=null}if(null===s){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+l);o.pos=l+Math.abs(i)}return new e(r,a,i,n,s)},e}(),Fo=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var o=new Io;do{t=e.get(),o.mulAdd(128,127&t)}while(128&t);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),jo=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Oo=(1<<26)/jo[jo.length-1],Ho=function(){function e(e,t,o){null!=e&&("number"==typeof e?this.fromNumber(e,t,o):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var o,r=(1<<t)-1,n=!1,i="",l=this.t,a=this.DB-l*this.DB%t;if(l-- >0)for(a<this.DB&&(o=this[l]>>a)>0&&(n=!0,i=go(o));l>=0;)a<t?(o=(this[l]&(1<<a)-1)<<t-a,o|=this[--l]>>(a+=this.DB-t)):(o=this[l]>>(a-=t)&r,a<=0&&(a+=this.DB,--l)),o>0&&(n=!0),n&&(i+=go(o));return n?i:"0"},e.prototype.negate=function(){var t=Jo();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var o=this.t;if(0!=(t=o-e.t))return this.s<0?-t:t;for(;--o>=0;)if(0!=(t=this[o]-e[o]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+$o(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var o=Jo();return this.abs().divRemTo(t,null,o),this.s<0&&o.compareTo(e.ZERO)>0&&t.subTo(o,o),o},e.prototype.modPowInt=function(e,t){var o;return o=e<256||t.isEven()?new Qo(t):new Ko(t),this.exp(e,o)},e.prototype.clone=function(){var e=Jo();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var o,r=this.DB-e*this.DB%8,n=0;if(e-- >0)for(r<this.DB&&(o=this[e]>>r)!=(this.s&this.DM)>>r&&(t[n++]=o|this.s<<this.DB-r);e>=0;)r<8?(o=(this[e]&(1<<r)-1)<<8-r,o|=this[--e]>>(r+=this.DB-8)):(o=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&o&&(o|=-256),0==n&&(128&this.s)!=(128&o)&&++n,(n>0||o!=this.s)&&(t[n++]=o);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Jo();return this.bitwiseTo(e,vo,t),t},e.prototype.or=function(e){var t=Jo();return this.bitwiseTo(e,Co,t),t},e.prototype.xor=function(e){var t=Jo();return this.bitwiseTo(e,yo,t),t},e.prototype.andNot=function(e){var t=Jo();return this.bitwiseTo(e,bo,t),t},e.prototype.not=function(){for(var e=Jo(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Jo();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Jo();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Bo(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,o=0;o<this.t;++o)e+=wo(this[o]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Co)},e.prototype.clearBit=function(e){return this.changeBit(e,bo)},e.prototype.flipBit=function(e){return this.changeBit(e,yo)},e.prototype.add=function(e){var t=Jo();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Jo();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Jo();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Jo();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Jo();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Jo(),o=Jo();return this.divRemTo(e,t,o),[t,o]},e.prototype.modPow=function(e,t){var o,r,n=e.bitLength(),i=_o(1);if(n<=0)return i;o=n<18?1:n<48?3:n<144?4:n<768?5:6,r=n<8?new Qo(t):t.isEven()?new qo(t):new Ko(t);var l=[],a=3,s=o-1,c=(1<<o)-1;if(l[1]=r.convert(this),o>1){var u=Jo();for(r.sqrTo(l[1],u);a<=c;)l[a]=Jo(),r.mulTo(u,l[a-2],l[a]),a+=2}var d,f,p=e.t-1,m=!0,h=Jo();for(n=$o(e[p])-1;p>=0;){for(n>=s?d=e[p]>>n-s&c:(d=(e[p]&(1<<n+1)-1)<<s-n,p>0&&(d|=e[p-1]>>this.DB+n-s)),a=o;!(1&d);)d>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),m)l[d].copyTo(i),m=!1;else{for(;a>1;)r.sqrTo(i,h),r.sqrTo(h,i),a-=2;a>0?r.sqrTo(i,h):(f=i,i=h,h=f),r.mulTo(h,l[d],i)}for(;p>=0&&!(e[p]&1<<n);)r.sqrTo(i,h),f=i,i=h,h=f,--n<0&&(n=this.DB-1,--p)}return r.revert(i)},e.prototype.modInverse=function(t){var o=t.isEven();if(this.isEven()&&o||0==t.signum())return e.ZERO;for(var r=t.clone(),n=this.clone(),i=_o(1),l=_o(0),a=_o(0),s=_o(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),o?(i.isEven()&&l.isEven()||(i.addTo(this,i),l.subTo(t,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);for(;n.isEven();)n.rShiftTo(1,n),o?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(t,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);r.compareTo(n)>=0?(r.subTo(n,r),o&&i.subTo(a,i),l.subTo(s,l)):(n.subTo(r,n),o&&a.subTo(i,a),s.subTo(l,s))}return 0!=n.compareTo(e.ONE)?e.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},e.prototype.pow=function(e){return this.exp(e,new Uo)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),o=e.s<0?e.negate():e.clone();if(t.compareTo(o)<0){var r=t;t=o,o=r}var n=t.getLowestSetBit(),i=o.getLowestSetBit();if(i<0)return t;for(n<i&&(i=n),i>0&&(t.rShiftTo(i,t),o.rShiftTo(i,o));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=o.getLowestSetBit())>0&&o.rShiftTo(n,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return i>0&&o.lShiftTo(i,o),o},e.prototype.isProbablePrime=function(e){var t,o=this.abs();if(1==o.t&&o[0]<=jo[jo.length-1]){for(t=0;t<jo.length;++t)if(o[0]==jo[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<jo.length;){for(var r=jo[t],n=t+1;n<jo.length&&r<Oo;)r*=jo[n++];for(r=o.modInt(r);t<n;)if(r%jo[t++]==0)return!1}return o.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,o){var r;if(16==o)r=4;else if(8==o)r=3;else if(256==o)r=8;else if(2==o)r=1;else if(32==o)r=5;else{if(4!=o)return void this.fromRadix(t,o);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,l=0;--n>=0;){var a=8==r?255&+t[n]:Zo(t,n);a<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==l?this[this.t++]=a:l+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-l)-1)<<l,this[this.t++]=a>>this.DB-l):this[this.t-1]|=a<<l,(l+=r)>=this.DB&&(l-=this.DB))}8==r&&128&+t[0]&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var o;for(o=this.t-1;o>=0;--o)t[o+e]=this[o];for(o=e-1;o>=0;--o)t[o]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var o=e;o<this.t;++o)t[o-e]=this[o];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var o=e%this.DB,r=this.DB-o,n=(1<<r)-1,i=Math.floor(e/this.DB),l=this.s<<o&this.DM,a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>r|l,l=(this[a]&n)<<o;for(a=i-1;a>=0;--a)t[a]=0;t[i]=l,t.t=this.t+i+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var o=Math.floor(e/this.DB);if(o>=this.t)t.t=0;else{var r=e%this.DB,n=this.DB-r,i=(1<<r)-1;t[0]=this[o]>>r;for(var l=o+1;l<this.t;++l)t[l-o-1]|=(this[l]&i)<<n,t[l-o]=this[l]>>r;r>0&&(t[this.t-o-1]|=(this.s&i)<<n),t.t=this.t-o,t.clamp()}},e.prototype.subTo=function(e,t){for(var o=0,r=0,n=Math.min(e.t,this.t);o<n;)r+=this[o]-e[o],t[o++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<e.t;)r-=e[o],t[o++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[o++]=this.DV+r:r>0&&(t[o++]=r),t.t=o,t.clamp()},e.prototype.multiplyTo=function(t,o){var r=this.abs(),n=t.abs(),i=r.t;for(o.t=i+n.t;--i>=0;)o[i]=0;for(i=0;i<n.t;++i)o[i+r.t]=r.am(0,n[i],o,i,0,r.t);o.s=0,o.clamp(),this.s!=t.s&&e.ZERO.subTo(o,o)},e.prototype.squareTo=function(e){for(var t=this.abs(),o=e.t=2*t.t;--o>=0;)e[o]=0;for(o=0;o<t.t-1;++o){var r=t.am(o,t[o],e,2*o,0,1);(e[o+t.t]+=t.am(o+1,2*t[o],e,2*o+1,r,t.t-o-1))>=t.DV&&(e[o+t.t]-=t.DV,e[o+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(o,t[o],e,2*o,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,o,r){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=o&&o.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Jo());var l=Jo(),a=this.s,s=t.s,c=this.DB-$o(n[n.t-1]);c>0?(n.lShiftTo(c,l),i.lShiftTo(c,r)):(n.copyTo(l),i.copyTo(r));var u=l.t,d=l[u-1];if(0!=d){var f=d*(1<<this.F1)+(u>1?l[u-2]>>this.F2:0),p=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,g=r.t,v=g-u,C=null==o?Jo():o;for(l.dlShiftTo(v,C),r.compareTo(C)>=0&&(r[r.t++]=1,r.subTo(C,r)),e.ONE.dlShiftTo(u,C),C.subTo(l,l);l.t<u;)l[l.t++]=0;for(;--v>=0;){var y=r[--g]==d?this.DM:Math.floor(r[g]*p+(r[g-1]+h)*m);if((r[g]+=l.am(0,y,r,v,0,u))<y)for(l.dlShiftTo(v,C),r.subTo(C,r);r[g]<--y;)r.subTo(C,r)}null!=o&&(r.drShiftTo(u,o),a!=s&&e.ZERO.subTo(o,o)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,o){if(t>4294967295||t<1)return e.ONE;var r=Jo(),n=Jo(),i=o.convert(this),l=$o(t)-1;for(i.copyTo(r);--l>=0;)if(o.sqrTo(r,n),(t&1<<l)>0)o.mulTo(n,i,r);else{var a=r;r=n,n=a}return o.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),o=Math.pow(e,t),r=_o(o),n=Jo(),i=Jo(),l="";for(this.divRemTo(r,n,i);n.signum()>0;)l=(o+i.intValue()).toString(e).substr(1)+l,n.divRemTo(r,n,i);return i.intValue().toString(e)+l},e.prototype.fromRadix=function(t,o){this.fromInt(0),null==o&&(o=10);for(var r=this.chunkSize(o),n=Math.pow(o,r),i=!1,l=0,a=0,s=0;s<t.length;++s){var c=Zo(t,s);c<0?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(a=o*a+c,++l>=r&&(this.dMultiply(n),this.dAddOffset(a,0),l=0,a=0))}l>0&&(this.dMultiply(Math.pow(o,l)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,o,r){if("number"==typeof o)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Co,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(o);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var n=[],i=7&t;n.length=1+(t>>3),o.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},e.prototype.bitwiseTo=function(e,t,o){var r,n,i=Math.min(e.t,this.t);for(r=0;r<i;++r)o[r]=t(this[r],e[r]);if(e.t<this.t){for(n=e.s&this.DM,r=i;r<this.t;++r)o[r]=t(this[r],n);o.t=this.t}else{for(n=this.s&this.DM,r=i;r<e.t;++r)o[r]=t(n,e[r]);o.t=e.t}o.s=t(this.s,e.s),o.clamp()},e.prototype.changeBit=function(t,o){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,o,r),r},e.prototype.addTo=function(e,t){for(var o=0,r=0,n=Math.min(e.t,this.t);o<n;)r+=this[o]+e[o],t[o++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<e.t;)r+=e[o],t[o++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[o++]=r:r<-1&&(t[o++]=this.DV+r),t.t=o,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,o){var r=Math.min(this.t+e.t,t);for(o.s=0,o.t=r;r>0;)o[--r]=0;for(var n=o.t-this.t;r<n;++r)o[r+this.t]=this.am(0,e[r],o,r,0,this.t);for(n=Math.min(e.t,t);r<n;++r)this.am(0,e[r],o,r,0,t-r);o.clamp()},e.prototype.multiplyUpperTo=function(e,t,o){--t;var r=o.t=this.t+e.t-t;for(o.s=0;--r>=0;)o[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)o[this.t+r-t]=this.am(t-r,e[r],o,0,0,this.t+r-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,o=this.s<0?e-1:0;if(this.t>0)if(0==t)o=this[0]%e;else for(var r=this.t-1;r>=0;--r)o=(t*o+this[r])%e;return o},e.prototype.millerRabin=function(t){var o=this.subtract(e.ONE),r=o.getLowestSetBit();if(r<=0)return!1;var n=o.shiftRight(r);(t=t+1>>1)>jo.length&&(t=jo.length);for(var i=Jo(),l=0;l<t;++l){i.fromInt(jo[Math.floor(Math.random()*jo.length)]);var a=i.modPow(n,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(o)){for(var s=1;s++<r&&0!=a.compareTo(o);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(o))return!1}}return!0},e.prototype.square=function(){var e=Jo();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var o=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(o.compareTo(r)<0){var n=o;o=r,r=n}var i=o.getLowestSetBit(),l=r.getLowestSetBit();if(l<0)t(o);else{i<l&&(l=i),l>0&&(o.rShiftTo(l,o),r.rShiftTo(l,r));var a=function(){(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),o.compareTo(r)>=0?(o.subTo(r,o),o.rShiftTo(1,o)):(r.subTo(o,r),r.rShiftTo(1,r)),o.signum()>0?setTimeout(a,0):(l>0&&r.lShiftTo(l,r),setTimeout((function(){t(r)}),0))};setTimeout(a,10)}},e.prototype.fromNumberAsync=function(t,o,r,n){if("number"==typeof o)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Co,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(o)?setTimeout((function(){n()}),0):setTimeout(l,0)};setTimeout(l,0)}else{var a=[],s=7&t;a.length=1+(t>>3),o.nextBytes(a),s>0?a[0]&=(1<<s)-1:a[0]=0,this.fromString(a,256)}},e}(),Uo=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Qo=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Ko=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Jo();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ho.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Jo();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var o=32767&e[t],r=o*this.mpl+((o*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[o=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[o]>=e.DV;)e[o]-=e.DV,e[++o]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),qo=function(){function e(e){this.m=e,this.r2=Jo(),this.q3=Jo(),Ho.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Jo();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Jo(){return new Ho(null)}function zo(e,t){return new Ho(e,t)}var Yo="undefined"!=typeof navigator;Yo&&"Microsoft Internet Explorer"==navigator.appName?(Ho.prototype.am=function(e,t,o,r,n,i){for(var l=32767&t,a=t>>15;--i>=0;){var s=32767&this[e],c=this[e++]>>15,u=a*s+c*l;n=((s=l*s+((32767&u)<<15)+o[r]+(1073741823&n))>>>30)+(u>>>15)+a*c+(n>>>30),o[r++]=1073741823&s}return n},Mo=30):Yo&&"Netscape"!=navigator.appName?(Ho.prototype.am=function(e,t,o,r,n,i){for(;--i>=0;){var l=t*this[e++]+o[r]+n;n=Math.floor(l/67108864),o[r++]=67108863&l}return n},Mo=26):(Ho.prototype.am=function(e,t,o,r,n,i){for(var l=16383&t,a=t>>14;--i>=0;){var s=16383&this[e],c=this[e++]>>14,u=a*s+c*l;n=((s=l*s+((16383&u)<<14)+o[r]+n)>>28)+(u>>14)+a*c,o[r++]=268435455&s}return n},Mo=28),Ho.prototype.DB=Mo,Ho.prototype.DM=(1<<Mo)-1,Ho.prototype.DV=1<<Mo;Ho.prototype.FV=Math.pow(2,52),Ho.prototype.F1=52-Mo,Ho.prototype.F2=2*Mo-52;var Go,Wo,Xo=[];for(Go="0".charCodeAt(0),Wo=0;Wo<=9;++Wo)Xo[Go++]=Wo;for(Go="a".charCodeAt(0),Wo=10;Wo<36;++Wo)Xo[Go++]=Wo;for(Go="A".charCodeAt(0),Wo=10;Wo<36;++Wo)Xo[Go++]=Wo;function Zo(e,t){var o=Xo[e.charCodeAt(t)];return null==o?-1:o}function _o(e){var t=Jo();return t.fromInt(e),t}function $o(e){var t,o=1;return 0!=(t=e>>>16)&&(e=t,o+=16),0!=(t=e>>8)&&(e=t,o+=8),0!=(t=e>>4)&&(e=t,o+=4),0!=(t=e>>2)&&(e=t,o+=2),0!=(t=e>>1)&&(e=t,o+=1),o}Ho.ZERO=_o(0),Ho.ONE=_o(1);var er=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,o,r;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[o],this.S[o]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();var tr,or,rr=null;if(null==rr){rr=[],or=0;var nr=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var ir=new Uint32Array(256);for(window.crypto.getRandomValues(ir),nr=0;nr<ir.length;++nr)rr[or++]=255&ir[nr]}var lr=0,ar=function(e){if((lr=lr||0)>=256||or>=256)window.removeEventListener?window.removeEventListener("mousemove",ar,!1):window.detachEvent&&window.detachEvent("onmousemove",ar);else try{var t=e.x+e.y;rr[or++]=255&t,lr+=1}catch(rl){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",ar,!1):window.attachEvent&&window.attachEvent("onmousemove",ar))}function sr(){if(null==tr){for(tr=new er;or<256;){var e=Math.floor(65536*Math.random());rr[or++]=255&e}for(tr.init(rr),or=0;or<rr.length;++or)rr[or]=0;or=0}return tr.next()}var cr=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=sr()},e}();var ur=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),o=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=zo(e,16),this.e=parseInt(t,16))},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,o=function(e,t){if(t<e.length+11)return null;for(var o=[],r=e.length-1;r>=0&&t>0;){var n=e.charCodeAt(r--);n<128?o[--t]=n:n>127&&n<2048?(o[--t]=63&n|128,o[--t]=n>>6|192):(o[--t]=63&n|128,o[--t]=n>>6&63|128,o[--t]=n>>12|224)}o[--t]=0;for(var i=new cr,l=[];t>2;){for(l[0]=0;0==l[0];)i.nextBytes(l);o[--t]=l[0]}return o[--t]=2,o[--t]=0,new Ho(o)}(e,t);if(null==o)return null;var r=this.doPublic(o);if(null==r)return null;for(var n=r.toString(16),i=n.length,l=0;l<2*t-i;l++)n="0"+n;return n},e.prototype.setPrivate=function(e,t,o){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=zo(e,16),this.e=parseInt(t,16),this.d=zo(o,16))},e.prototype.setPrivateEx=function(e,t,o,r,n,i,l,a){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=zo(e,16),this.e=parseInt(t,16),this.d=zo(o,16),this.p=zo(r,16),this.q=zo(n,16),this.dmp1=zo(i,16),this.dmq1=zo(l,16),this.coeff=zo(a,16))},e.prototype.generate=function(e,t){var o=new cr,r=e>>1;this.e=parseInt(t,16);for(var n=new Ho(t,16);;){for(;this.p=new Ho(e-r,1,o),0!=this.p.subtract(Ho.ONE).gcd(n).compareTo(Ho.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Ho(r,1,o),0!=this.q.subtract(Ho.ONE).gcd(n).compareTo(Ho.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var l=this.p.subtract(Ho.ONE),a=this.q.subtract(Ho.ONE),s=l.multiply(a);if(0==s.gcd(n).compareTo(Ho.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(s),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=zo(e,16),o=this.doPrivate(t);return null==o?null:function(e,t){var o=e.toByteArray(),r=0;for(;r<o.length&&0==o[r];)++r;if(o.length-r!=t-1||2!=o[r])return null;++r;for(;0!=o[r];)if(++r>=o.length)return null;var n="";for(;++r<o.length;){var i=255&o[r];i<128?n+=String.fromCharCode(i):i>191&&i<224?(n+=String.fromCharCode((31&i)<<6|63&o[r+1]),++r):(n+=String.fromCharCode((15&i)<<12|(63&o[r+1])<<6|63&o[r+2]),r+=2)}return n}(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,o){var r=new cr,n=e>>1;this.e=parseInt(t,16);var i=new Ho(t,16),l=this,a=function(){var t=function(){if(l.p.compareTo(l.q)<=0){var e=l.p;l.p=l.q,l.q=e}var t=l.p.subtract(Ho.ONE),r=l.q.subtract(Ho.ONE),n=t.multiply(r);0==n.gcd(i).compareTo(Ho.ONE)?(l.n=l.p.multiply(l.q),l.d=i.modInverse(n),l.dmp1=l.d.mod(t),l.dmq1=l.d.mod(r),l.coeff=l.q.modInverse(l.p),setTimeout((function(){o()}),0)):setTimeout(a,0)},s=function(){l.q=Jo(),l.q.fromNumberAsync(n,1,r,(function(){l.q.subtract(Ho.ONE).gcda(i,(function(e){0==e.compareTo(Ho.ONE)&&l.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(s,0)}))}))},c=function(){l.p=Jo(),l.p.fromNumberAsync(e-n,1,r,(function(){l.p.subtract(Ho.ONE).gcda(i,(function(e){0==e.compareTo(Ho.ONE)&&l.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(a,0)},e.prototype.sign=function(e,t,o){var r=function(e,t){if(t<e.length+22)return null;for(var o=t-e.length-6,r="",n=0;n<o;n+=2)r+="ff";return zo("0001"+r+"00"+e,16)}((dr[o]||"")+t(e).toString(),this.n.bitLength()/4);if(null==r)return null;var n=this.doPrivate(r);if(null==n)return null;var i=n.toString(16);return 1&i.length?"0"+i:i},e.prototype.verify=function(e,t,o){var r=zo(t,16),n=this.doPublic(r);return null==n?null:function(e){for(var t in dr)if(dr.hasOwnProperty(t)){var o=dr[t],r=o.length;if(e.substr(0,r)==o)return e.substr(r)}return e}
|
|
7
|
+
*/f.exports=function(){function e(e,t){for(var o in t)e[o]=t[o];return e}function t(e){var t=!1;if(e&&e.setItem){t=!0;var o="__"+Math.round(1e7*Math.random());try{e.setItem(o,o),e.removeItem(o)}catch(r){t=!1}}return t}function o(e){return"string"==typeof e&&window[e]instanceof Storage?window[e]:e}function r(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function n(e,t){if(t=t||new Date,"number"==typeof e?e=e===1/0?d:new Date(t.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!r(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e}function i(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}function l(e,t){this.c=(new Date).getTime();var o=n(t=t||f);this.e=o.getTime(),this.v=e}function a(e){return"object"==typeof e&&!!(e&&"c"in e&&"e"in e&&"v"in e)}function s(e){return(new Date).getTime()<e.e}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(n){var i=e({storage:"localStorage",exp:1/0},n),l=i.exp;if(l&&"number"!=typeof l&&!r(l))throw new Error("Constructor `exp` parameter cannot be converted to a valid Date instance");f=l;var a=o(i.storage),s=t(a);this.isSupported=function(){return s},s?(this.storage=a,this.quotaExceedHandler=function(e,t,o){if(o&&!0===o.force){this.deleteAllExpires();try{o.force=!1,this.set(e,t,o)}catch(r){}}}):e(this,m)}var d=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),f=d,p={serialize:function(e){return JSON.stringify(e)},deserialize:function(e){return e&&JSON.parse(e)}},m={set:function(){},get:function(){},delete:function(){},deleteAllExpires:function(){},clear:function(){},add:function(){},replace:function(){},touch:function(){}},h={set:function(t,o,r){if(t=c(t),"number"==typeof r&&(r={exp:r}),r=e({force:!0},r),void 0===o)return this.delete(t);var n=p.serialize(o),a=new l(n,r.exp);try{this.storage.setItem(t,p.serialize(a))}catch(s){i(s)&&this.quotaExceedHandler(t,n,r,s)}return o},get:function(e){e=c(e);var t=null;try{t=p.deserialize(this.storage.getItem(e))}catch(r){return null}if(a(t)){if(s(t)){var o=t.v;return p.deserialize(o)}this.delete(e)}return null},delete:function(e){return e=c(e),this.storage.removeItem(e),e},deleteAllExpires:function(){for(var e=this.storage.length,t=[],o=this,r=0;e>r;r++){var n=this.storage.key(r),i=null;try{i=p.deserialize(this.storage.getItem(n))}catch(l){}null!==i&&void 0!==i.e&&(new Date).getTime()>=i.e&&t.push(n)}return t.forEach((function(e){o.delete(e)})),t},clear:function(){this.storage.clear()},add:function(t,o,r){t=c(t),"number"==typeof r&&(r={exp:r}),r=e({force:!0},r);try{var n=p.deserialize(this.storage.getItem(t));if(!a(n)||!s(n))return this.set(t,o,r),!0}catch(i){return this.set(t,o,r),!0}return!1},replace:function(e,t,o){e=c(e);var r=null;try{r=p.deserialize(this.storage.getItem(e))}catch(n){return!1}if(a(r)){if(s(r))return this.set(e,t,o),!0;this.delete(e)}return!1},touch:function(e,t){e=c(e);var o=null;try{o=p.deserialize(this.storage.getItem(e))}catch(r){return!1}if(a(o)){if(s(o))return this.set(e,this.get(e),{exp:t}),!0;this.delete(e)}return!1}};return u.prototype=h,u}();const p=d(f.exports),m="user",h="visitTenantId",g="lang",v="theme",C="layout",y="TopNav",b=(e="localStorage")=>({wsCache:new p({storage:e})}),B={elColorDanger:"#f50000",elBorderColor:"#d2d5e4",elMenuItemHeight:"40px",elMenuSubItemHeight:"40px",elMenuLevelPadding:"14px",elMenuBaseLevelPadding:"22px",elMenuIconWidth:"16px",elButtonDefaultBgColor:"#fff",elButtonDefaultHoverBgColor:"#fff",elButtonDefaultActiveBgColor:"#fff",elButtonDefaultDisabledBgColor:"rgba(0, 0, 0, 0.04)",elButtonDefaultDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDefaultDisabledBorderColor:"#d9d9d9",elButtonLinkDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDangerBgColor:"#ff4d4f",elButtonDangerTextColor:"#fff",elButtonDangerBorderColor:"#ff4d4f",elButtonDangerHoverBgColor:"#ff7875",elButtonDangerHoverTextColor:"#fff",elButtonDangerHoverBorderColor:"#ff7875",elButtonDangerActiveBgColor:"#d9363e",elButtonDangerActiveTextColor:"#fff",elButtonDangerActiveBorderColor:"#d9363e",elButtonDangerLinkTextColor:"#ff4d4f",elButtonDangerLinkHoverTextColor:"#ff7875",elButtonDangerLinkActiveTextColor:"#d9363e",elUploadBgColor:"#f6f7fc",elUploadIconColor:"#d2d5e4",elUploadTextColor:"#b9bdcd",elUploadTipColor:"#9fa3b9",elDropdownMenuItemHoverTextColor:"#333",elTableHeaderColumnBgColor:"#eeeff4",elTableDefaultBorderColor:"#e5e5e5",elTableStripedBgColor:"#f7f8fd",elPaginationButtonBorderColor:"#eeeff4",elTagPrimaryBgColor:"#e6f4ff",elTagPrimaryTextColor:"#1677FF",elTagSuccessBgColor:"#f6ffed",elTagSuccessTextColor:"#52c41a",elTagDangerBgColor:"#fff1f0",elTagDangerTextColor:"#ff4d4f",elTagWarningBgColor:"#fffbe6",elTagWarningTextColor:"#ffaa00",elTagInfoBgColor:"rgba(0, 0, 0, 0.02)",elTagInfoTextColor:"rgba(0, 0, 0, 0.88)",elMessageSuccessBorderColor:"#d9f7be",elMessageWarningBorderColor:"#fff1b8",elMessageErrorBorderColor:"#ffccc7",elDialogBorderColor:"#eeeff4",elAlertSuccessBorderColor:"rgba(82,196,26,0.6)",elAlertSuccessBgColor:"#f6ffed",elAlertInfoBorderColor:"rgba(0, 0, 0, 0.12)",elAlertInfoBgColor:"rgba(0, 0, 0, 0.02)",elAlertWarningBorderColor:"#ffe58f",elAlertWarningBgColor:"#fffbe6",elAlertErrorBorderColor:"#ffccc7",elAlertErrorBgColor:"#fff1f0"},w={whiteLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"rgba(255,255,255,0.8)",leftMenuItemBgActiveColor:"rgba(36,104,242,1)",leftMenuItemBgHoverColor:"#eef4ff",leftMenuTextColor:"#333",leftMenuTextHoverColor:"#333",topMenuItemBgActiveColor:"rgba(36,104,242,1)",topMenuItemBgHoverColor:"rgba(36,104,242,0.8)",topHeaderBgColor:"#fff",topHeaderIconColor:"#3f5172",topHeaderTextColor:"#333",topHeaderHoverColor:"#2567f0",topHeaderCompanyIconColor:"#88a0c3",topHeaderCompanyBgColor:"rgba(246,248,255,1)",menuTriggerBgColor:"#2468F2",tagsViewTextColor:"#7b7e90",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"#dce4f5",tagsViewBgActiveColor:"#3d65ff",tagsViewArrowColor:"#a4aec4",tagsViewArrowHoverColor:"#7d8595",tagsViewArrowBgColor:"transparent",tagsViewArrowBgHoverColor:"#e5eaf0",tagsViewArrowBgDisabledColor:"#e5eaf080"},blueLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"0, #2897FB 0%, #1B61EE 100%",leftMenuItemBgActiveColor:"rgba(103,153,255,1)",leftMenuItemBgHoverColor:"rgba(103,153,255,0.5)",leftMenuTextColor:"#fff",leftMenuTextHoverColor:"#fff",topMenuItemBgActiveColor:"rgba(103,153,255,1)",topMenuItemBgHoverColor:"rgba(103,153,255,0.5)",topHeaderBgColor:"270deg, #29ACFE 0%, #2468F2 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},redLight:{...B,elColorPrimary:"#ea4636",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#d23f30",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#bb382b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#ea4636",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#ea4636",elButtonPrimaryHoverBgColor:"#d23f30",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#d23f30",elButtonPrimaryActiveBgColor:"#bb382b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#bb382b",elButtonPrimaryLinkTextColor:"#ea4636",elButtonPrimaryLinkHoverTextColor:"#d23f30",elButtonPrimaryLinkActiveTextColor:"#bb382b",elDropdownMenuItemHoverBgColor:"#ffebeb",elTableColumnHoverBgColor:"#ffebeb",elTreeItemHoverBgColor:"#ffebeb",bgColor:"#ffebeb",leftMenuBgColor:"0, #cf271c, #cf271c",leftMenuItemBgActiveColor:"rgba(221, 98, 90, 1)",leftMenuItemBgHoverColor:"rgba(221, 98, 90, 0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(244, 101, 85, 1)",topMenuItemBgHoverColor:"rgba(244, 101, 85, 0.5)",topHeaderBgColor:"0, #ea4636, #ea4636",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},greenLight:{...B,elColorPrimary:"#0acfa5",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#09ba94",elButtonDefaultHoverBorderColor:"#09ba94",elButtonDefaultActiveTextColor:"#08a684",elButtonDefaultActiveBorderColor:"#08a684",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#0acfa5",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#0acfa5",elButtonPrimaryHoverBgColor:"#09ba94",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#09ba94",elButtonPrimaryActiveBgColor:"#08a684",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#08a684",elButtonPrimaryLinkTextColor:"#0acfa5",elButtonPrimaryLinkHoverTextColor:"#09ba94",elButtonPrimaryLinkActiveTextColor:"#08a684",elDropdownMenuItemHoverBgColor:"#e4f6f2",elTableColumnHoverBgColor:"#e4f6f2",elTreeItemHoverBgColor:"#e4f6f2",bgColor:"#e4f6f2",leftMenuBgColor:"0, #01b18b, #01b18b",leftMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",leftMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",topMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",topHeaderBgColor:"0, #0acfa5, #0acfa5",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},springFestival:{...B,elColorPrimary:"#e42b22",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#cd271f",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#b6221b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#e42b22",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#e42b22",elButtonPrimaryHoverBgColor:"#cd271f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#cd271f",elButtonPrimaryActiveBgColor:"#b6221b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#b6221b",elButtonPrimaryLinkTextColor:"#e42b22",elButtonPrimaryLinkHoverTextColor:"#cd271f",elButtonPrimaryLinkActiveTextColor:"#b6221b",elDropdownMenuItemHoverBgColor:"#fee2e2",elTableColumnHoverBgColor:"#fee2e2",elTreeItemHoverBgColor:"#fee2e2",bgColor:"#fee2e2",leftMenuBgColor:"0, #f53a19 0%, #bf241f 100%",leftMenuItemBgActiveColor:"rgba(255,95,83,1)",leftMenuItemBgHoverColor:"rgba(255,95,83,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,95,83,1)",topMenuItemBgHoverColor:"rgba(255,95,83,0.5)",topHeaderBgColor:"270deg, #f25416 0%, #ef2704 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},dragonBoatFestival:{...B,elColorPrimary:"#1ebc74",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#1ba968",elButtonDefaultHoverBorderColor:"#1ba968",elButtonDefaultActiveTextColor:"#18965d",elButtonDefaultActiveBorderColor:"#18965d",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#1ebc74",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#1ebc74",elButtonPrimaryHoverBgColor:"#1ba968",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#1ba968",elButtonPrimaryActiveBgColor:"#18965d",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#18965d",elButtonPrimaryLinkTextColor:"#1ebc74",elButtonPrimaryLinkHoverTextColor:"#1ba968",elButtonPrimaryLinkActiveTextColor:"#18965d",elDropdownMenuItemHoverBgColor:"#d3f4e6",elTableColumnHoverBgColor:"#d3f4e6",elTreeItemHoverBgColor:"#d3f4e6",bgColor:"#d3f4e6",leftMenuBgColor:"0, #3ac777 0%, #1baa59 100%",leftMenuItemBgActiveColor:"rgba(129,207,161,1)",leftMenuItemBgHoverColor:"rgba(129,207,161,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(93,215,135,1)",topMenuItemBgHoverColor:"rgba(93,215,135,0.5)",topHeaderBgColor:"270deg, #3ac677 0%, #0dc35c 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},midAutumnFestival:{...B,elColorPrimary:"#fc8522",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#e2771f",elButtonDefaultHoverBorderColor:"#e2771f",elButtonDefaultActiveTextColor:"#ca6a1b",elButtonDefaultActiveBorderColor:"#ca6a1b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#fc8522",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#fc8522",elButtonPrimaryHoverBgColor:"#e2771f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#e2771f",elButtonPrimaryActiveBgColor:"#ca6a1b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#ca6a1b",elButtonPrimaryLinkTextColor:"#fc8522",elButtonPrimaryLinkHoverTextColor:"#e2771f",elButtonPrimaryLinkActiveTextColor:"#ca6a1b",elDropdownMenuItemHoverBgColor:"#ffe6d2",elTableColumnHoverBgColor:"#ffe6d2",elTreeItemHoverBgColor:"#ffe6d2",bgColor:"#ffe6d2",leftMenuBgColor:"0, #fc9b4b 0%, #ed6715 100%",leftMenuItemBgActiveColor:"rgba(255,176,129,1)",leftMenuItemBgHoverColor:"rgba(255,176,129,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,180,75,1)",topMenuItemBgHoverColor:"rgba(255,180,75,0.5)",topHeaderBgColor:"270deg, #fc9b4b 0%, #fa771d 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"},newYearsDay:{...B,elColorPrimary:"#f63344",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#dd2e3d",elButtonDefaultHoverBorderColor:"#dd2e3d",elButtonDefaultActiveTextColor:"#c52936",elButtonDefaultActiveBorderColor:"#c52936",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#f63344",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#f63344",elButtonPrimaryHoverBgColor:"#dd2e3d",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#dd2e3d",elButtonPrimaryActiveBgColor:"#c52936",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#c52936",elButtonPrimaryLinkTextColor:"#f63344",elButtonPrimaryLinkHoverTextColor:"#dd2e3d",elButtonPrimaryLinkActiveTextColor:"#c52936",elDropdownMenuItemHoverBgColor:"#fed8dc",elTableColumnHoverBgColor:"#fed8dc",elTreeItemHoverBgColor:"#fed8dc",bgColor:"#fed8dc",leftMenuBgColor:"0, #f83d4d 0%, #dc2035 100%",leftMenuItemBgActiveColor:"rgba(255,78,96,1)",leftMenuItemBgHoverColor:"rgba(255,78,96,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,78,96,1)",topMenuItemBgHoverColor:"rgba(255,78,96,0.5)",topHeaderBgColor:"270deg, #f84958 0%, #f63344 100%",topHeaderIconColor:"#fff",topHeaderTextColor:"#fff",topHeaderHoverColor:"#f6f6f6",topHeaderCompanyIconColor:"#fff",topHeaderCompanyBgColor:"rgba(246,248,255,.3)",menuTriggerBgColor:"transparent",tagsViewTextColor:"#fff",tagsViewTextActiveColor:"#fff",tagsViewBgColor:"transparent",tagsViewBgHoverColor:"rgba(255,255,255,.3)",tagsViewBgActiveColor:"rgba(255,255,255,.2)",tagsViewArrowColor:"#fff",tagsViewArrowHoverColor:"rgba(255,255,255,.8)",tagsViewArrowBgColor:"rgba(255,255,255,.2)",tagsViewArrowBgHoverColor:"rgba(255,255,255,.3)",tagsViewArrowBgDisabledColor:"rgba(255,255,255,.5)"}},{wsCache:E}=b(),x=o.defineStore("layout-app",{state:()=>({userInfo:"userInfo",sizeMap:["default","large","small"],title:"浪潮信链",pageLoading:!1,breadcrumb:!1,breadcrumbIcon:!0,collapse:!1,uniqueOpened:!0,hamburger:!0,search:!1,locale:!1,setting:!0,message:!0,tagsView:!0,logo:!0,footer:!1,greyMode:!1,layout:"top",currentSize:E.get("default")||"default",theme:E.get(v)||"whiteLight",isSetTheme:!1,topNav:"normal"}),getters:{getBreadcrumb(){return this.breadcrumb},getBreadcrumbIcon(){return this.breadcrumbIcon},getCollapse(){return this.collapse},getUniqueOpened(){return this.uniqueOpened},getHamburger(){return this.hamburger},getLocale(){return this.locale},getSetting(){return this.setting},getMessage(){return this.message},getTagsView(){return this.tagsView},getLogo(){return this.logo},getGreyMode(){return this.greyMode},getPageLoading(){return this.pageLoading},getLayout(){return this.layout},getTitle(){return this.title},getUserInfo(){return this.userInfo},getCurrentSize(){return this.currentSize},getSizeMap(){return this.sizeMap},getTheme(){return this.theme},getCurrentTheme(){return w[this.theme]},getFooter(){return this.footer},getIsSetTheme(){return this.isSetTheme},getTopNav(){return this.topNav}},actions:{setBreadcrumb(e){this.breadcrumb=e},setBreadcrumbIcon(e){this.breadcrumbIcon=e},setCollapse(e){this.collapse=e},setUniqueOpened(e){this.uniqueOpened=e},setHamburger(e){this.hamburger=e},setLocale(e){this.locale=e},setMessage(e){this.message=e},setTagsView(e){this.tagsView=e},setLogo(e){this.logo=e},setGreyMode(e){this.greyMode=e},setPageLoading(e){this.pageLoading=e},setLayout(e){this.layout=e,E.set(C,this.layout)},setTitle(e){this.title=e},setCurrentSize(e){this.currentSize=e,E.set("currentSize",this.currentSize)},setTheme(e){this.theme=e,E.set(v,e)},setCssVarTheme(){this.isSetTheme=!0;const e=w[this.theme];for(const o in e)c(`--${t=o,t.replace(/([A-Z])/g,"-$1").toLowerCase()}`,e[o]);var t},setFooter(e){this.footer=e},setTopNav(e){this.topNav=e,E.set(y,e)},async setUserTheme(){}},persist:!1}),S={namespace:"v",elNamespace:"el"},T=()=>{const e=S;return{variables:e,getPrefixCls:t=>`${e.namespace}-${t}`}},k=Object.assign({name:"BackTop"},{__name:"Backtop",setup(e){const{getPrefixCls:o,variables:r}=T(),n=o("backtop");return(e,o)=>(t.openBlock(),t.createBlock(t.unref(i.ElBacktop),{class:t.normalizeClass(`${t.unref(n)}-backtop`),target:`.${t.unref(r).namespace}-layout-content-scrollbar .${t.unref(r).elNamespace}-scrollbar__wrap`},null,8,["class","target"]))}}),A=Object.prototype.toString,V=(e,t)=>A.call(e)===`[object ${t}]`,I=e=>V(e,"String"),P=!("undefined"==typeof window),N=e=>/(((^https?:(?:\/\/)?)(?:[-:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%#\/.\w-_]*)?\??(?:[-\+=&%@.\w_]*)#?(?:[\w]*))?)$/.test(e),D=e=>{var t,o;if(!e||!Reflect.has(e,"children")||!(null==(t=e.children)?void 0:t.length))return!1;const r=e.children;let n=!1;for(let i=0;i<r.length;i++){if(null==(o=r[i].children)?void 0:o.length){n=!0;break}}return n},M=e=>{var t;let o=l.createRouter({routes:[e],history:l.createWebHashHistory()});const r=o.getRoutes();L(r,e.children||[],e),o=null,e.children=null==(t=e.children)?void 0:t.map((e=>n.omit(e,"children")))},L=(e,t,o)=>{var r,n;for(let i=0;i<t.length;i++){const l=t[i],a=e.find((e=>e.name===l.name));a&&(o.children=o.children||[],o.children.find((e=>e.name===a.name))||null==(r=o.children)||r.push(a),(null==(n=l.children)?void 0:n.length)&&L(e,l.children,o))}};function R(e,t,o){var r;for(const n of e){if(n[t]===o)return n;if(null==(r=n.children)?void 0:r.length){const e=R(n.children,t,o);if(e)return e}}}function F(e){const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return(e.children||[]).map((e=>{const o=e.path?t.endsWith("/")?e.path.startsWith("/")?e.path.substring(1):e.path:e.path.startsWith("/")?e.path:`/${e.path}`:"";let r=`${t}${o}`;return r.length>1&&r.endsWith("/")&&(r=r.slice(0,-1)),{...e,path:r}}))}function j(e,t){return t&&e?e.map((e=>{let o;return o=e.path?t+(e.path.startsWith("/")?e.path:`/${e.path}`):t,o.length>1&&o.endsWith("/")&&(o=o.slice(0,-1)),{...e,path:o,children:e.children?j(e.children,o):e.children}})):e}function O(e,t,o="start"){if(!t||0===t.length)return;const r=e=>{var t,o,n,i,l,a;return{name:(null==(t=e.meta)?void 0:t.title)||e.name||"",path:e.path,icon:(null==(o=e.meta)?void 0:o.icon)||"",visible:!0!==(null==(n=e.meta)?void 0:n.hidden),redirect:e.redirect||"",meta:{title:(null==(i=e.meta)?void 0:i.title)||e.name||"",icon:(null==(l=e.meta)?void 0:l.icon)||"",hidden:!0===(null==(a=e.meta)?void 0:a.hidden)},children:(e.children||[]).map(r)}},n=t.map(r);e.children="start"===o?n.concat(e.children||[]):(e.children||[]).concat(n)}const H=o.defineStore("layout-permission",{state:()=>({routers:[],addRouters:[],menuTabRouters:[],leftMenuRouters:[],moduleRouters:[],moduleId:void 0,moduleName:void 0,roleRouters:[]}),getters:{getRouters(){return this.routers},getRouterMap(){return this.addRouters},getAddRouters(){return(e=>{const t=n.cloneDeep(e);for(let o=0;o<t.length;o++){const e=t[o];D(e)&&M(e)}return t})(n.cloneDeep(this.addRouters))},getMenuTabRouters(){return this.menuTabRouters},getLeftMenuRouters(){return this.leftMenuRouters},getRoleRouters(){return this.roleRouters},getModuleRouters(){return this.moduleRouters},getModuleId(){return this.moduleId},getModuleName(){return this.moduleName}},actions:{setRouters(e){this.routers=e},setAddRouters(e){this.addRouters=e},setMenuTabRouters(e){this.menuTabRouters=e},setRoleRouters(e){this.roleRouters=e||[]},setLeftMenuRouters(e="",t=[]){const o=e?e.startsWith("/")?e:`/${e}`:"",r=t.map((e=>{const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${o}${t}`}}));this.leftMenuRouters=r},setModuleRouters(e,t=[],o="start"){const r=R(this.getRoleRouters,"id",e);if(r){this.moduleId=r.id,this.moduleName=r.name,this.moduleRouters=F(r);const e=j(t,r.path||"");return O(r,e,o),e}return t},resetState(){this.routers=[],this.addRouters=[],this.menuTabRouters=[],this.leftMenuRouters=[],this.moduleRouters=[],this.moduleId=void 0,this.moduleName=void 0,this.roleRouters=[]},setModuleRoutersByCode(e,t=[],o="start"){const r=R(this.getRoleRouters,"moduleCode",e);if(r){this.moduleId=r.id,this.moduleName=r.name,this.moduleRouters=F(r);const e=j(t,r.path||"");return O(r,e,o),e}return t}},persist:!1}),U=()=>H(s),Q={id:"id",children:"children",pid:"pid"},K=e=>Object.assign({},Q,e),q=(e=[],o)=>{const r=t.ref(),n=e.filter((e=>!(e.meta??{}).hidden&&(r.value=e,!0)));return 1===n.length?{oneShowingChild:!0,onlyOneChild:t.unref(r)}:n.length?{oneShowingChild:!1,onlyOneChild:t.unref(r)}:(r.value={...o,path:"",noShowingChildren:!0},{oneShowingChild:!0,onlyOneChild:t.unref(r)})},J=(e,t)=>{const o=U(),r=o.getRouters.find((t=>t.path==e));if(r){const n=r.meta??{},{oneShowingChild:i,onlyOneChild:l}=q(r.children,r);if(!i||(null==l?void 0:l.children)&&!(null==l?void 0:l.noShowingChildren)||(null==n?void 0:n.alwaysShow)){o.setLeftMenuRouters(r.path,r.children);const e=z(r.path,r.children);t&&t(e)}else o.setLeftMenuRouters(),t&&t(e)}},z=(e,t)=>{const o=t.find((e=>!1!==e.meta));return o?o.children&&o.children.length>0?z(`${e}/${o.path}`,o.children):`${e}/${o.path}`:e},Y=Object.freeze({left:0,top:0,width:16,height:16}),G=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),W=Object.freeze({...Y,...G}),X=Object.freeze({...W,body:"",hidden:!1});function Z(e,t){const o=function(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(o.rotate=r),o}(e,t);for(const r in X)r in G?r in e&&!(r in o)&&(o[r]=G[r]):r in t?o[r]=t[r]:r in e&&(o[r]=e[r]);return o}function _(e,t,o){const r=e.icons,n=e.aliases||Object.create(null);let i={};function l(e){i=Z(r[e]||n[e],i)}return l(t),o.forEach(l),Z(e,i)}function $(e,t){const o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),o.push(e)}));const r=function(e){const t=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return Object.keys(t).concat(Object.keys(o)).forEach((function e(n){if(t[n])return r[n]=[];if(!(n in r)){r[n]=null;const t=o[n]&&o[n].parent,i=t&&e(t);i&&(r[n]=[t].concat(i))}return r[n]})),r}(e);for(const n in r){const i=r[n];i&&(t(n,_(e,n,i)),o.push(n))}return o}const ee=/^[a-z0-9]+(-[a-z0-9]+)*$/,te=(e,t,o,r="")=>{const n=e.split(":");if("@"===e.slice(0,1)){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const e=n.pop(),o=n.pop(),i={provider:n.length>0?n[0]:r,prefix:o,name:e};return t&&!oe(i)?null:i}const i=n[0],l=i.split("-");if(l.length>1){const e={provider:r,prefix:l.shift(),name:l.join("-")};return t&&!oe(e)?null:e}if(o&&""===r){const e={provider:r,prefix:"",name:i};return t&&!oe(e,o)?null:e}return null},oe=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(ee)||!(t&&""===e.prefix||e.prefix.match(ee))||!e.name.match(ee)),re={provider:"",aliases:{},not_found:{},...Y};function ne(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}const ie=Object.create(null);function le(e,t){const o=ie[e]||(ie[e]=Object.create(null));return o[t]||(o[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ae(e,t){return function(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!ne(e,re))return null;const o=t.icons;for(const n in o){const e=o[n];if(!n.match(ee)||"string"!=typeof e.body||!ne(e,X))return null}const r=t.aliases||Object.create(null);for(const n in r){const e=r[n],t=e.parent;if(!n.match(ee)||"string"!=typeof t||!o[t]&&!r[t]||!ne(e,X))return null}return t}(t)?$(t,((t,o)=>{o?e.icons[t]=o:e.missing.add(t)})):[]}let se=!1;function ce(e){const t="string"==typeof e?te(e,!0,se):e;if(t){const e=le(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function ue(e,t){if("object"!=typeof e)return!1;"string"!=typeof t&&(t=e.provider||"");const o=e.prefix;if(!oe({provider:t,prefix:o,name:"a"}))return!1;return!!ae(le(t,o),e)}const de=Object.freeze({width:null,height:null}),fe=Object.freeze({...de,...G}),pe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,me=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function he(e,t,o){if(1===t)return e;if(o=o||100,"number"==typeof e)return Math.ceil(e*t*o)/o;if("string"!=typeof e)return e;const r=e.split(pe);if(null===r||!r.length)return e;const n=[];let i=r.shift(),l=me.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?n.push(i):n.push(Math.ceil(e*t*o)/o)}else n.push(i);if(i=r.shift(),void 0===i)return n.join("");l=!l}}function ge(e,t){const o={...W,...e},r={...fe,...t},n={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach((e=>{const t=[],o=e.hFlip,r=e.vFlip;let l,a=e.rotate;switch(o?r?a+=2:(t.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),t.push("scale(-1 1)"),n.top=n.left=0):r&&(t.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),t.push("scale(1 -1)"),n.top=n.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=n.height/2+n.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:l=n.width/2+n.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(n.left!==n.top&&(l=n.left,n.left=n.top,n.top=l),n.width!==n.height&&(l=n.width,n.width=n.height,n.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=r.width,a=r.height,s=n.width,c=n.height;let u,d;null===l?(d=null===a?"1em":"auto"===a?c:a,u=he(d,s/c)):(u="auto"===l?s:l,d=null===a?he(u,c/s):"auto"===a?c:a);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",u),p("height",d),f.viewBox=n.left.toString()+" "+n.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:i}}const ve=/\sid="(\S+)"/g,Ce="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let ye=0;function be(e,t=Ce){const o=[];let r;for(;r=ve.exec(e);)o.push(r[1]);if(!o.length)return e;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return o.forEach((o=>{const r="function"==typeof t?t(o):t+(ye++).toString(),i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+n+"$3")})),e=e.replace(new RegExp(n,"g"),"")}const Be={local:!0,session:!0},we={local:new Set,session:new Set};let Ee=!1;const xe="iconify2",Se="iconify",Te=Se+"-count",ke=Se+"-version",Ae=36e5;function Ve(e,t){try{return e.getItem(t)}catch(o){}}function Ie(e,t,o){try{return e.setItem(t,o),!0}catch(r){}}function Pe(e,t){try{e.removeItem(t)}catch(o){}}function Ne(e,t){return Ie(e,Te,t.toString())}function De(e){return parseInt(Ve(e,Te))||0}let Me="undefined"==typeof window?{}:window;function Le(e){const t=e+"Storage";try{if(Me&&Me[t]&&"number"==typeof Me[t].length)return Me[t]}catch(o){}Be[e]=!1}function Re(e,t){const o=Le(e);if(!o)return;const r=Ve(o,ke);if(r!==xe){if(r){const e=De(o);for(let t=0;t<e;t++)Pe(o,Se+t.toString())}return Ie(o,ke,xe),void Ne(o,0)}const n=Math.floor(Date.now()/Ae)-168,i=e=>{const r=Se+e.toString(),i=Ve(o,r);if("string"==typeof i){try{const o=JSON.parse(i);if("object"==typeof o&&"number"==typeof o.cached&&o.cached>n&&"string"==typeof o.provider&&"object"==typeof o.data&&"string"==typeof o.data.prefix&&t(o,e))return!0}catch(l){}Pe(o,r)}};let l=De(o);for(let a=l-1;a>=0;a--)i(a)||(a===l-1?(l--,Ne(o,l)):we[e].add(a))}function Fe(){if(!Ee){Ee=!0;for(const e in Be)Re(e,(e=>{const t=e.data,o=le(e.provider,t.prefix);if(!ae(o,t).length)return!1;const r=t.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,r):r,!0}))}}function je(e,t){switch(e){case"local":case"session":Be[e]=t;break;case"all":for(const e in Be)Be[e]=t}}const Oe=Object.create(null);function He(e,t){Oe[e]=t}function Ue(e){return Oe[e]||Oe[""]}function Qe(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const Ke=Object.create(null),qe=["https://api.simplesvg.com","https://api.unisvg.com"],Je=[];for(;qe.length>0;)1===qe.length||Math.random()>.5?Je.push(qe.shift()):Je.push(qe.pop());function ze(e,t){const o=Qe(t);return null!==o&&(Ke[e]=o,!0)}function Ye(e){return Ke[e]}Ke[""]=Qe({resources:["https://api.iconify.design"].concat(Je)});let Ge=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const We={prepare:(e,t,o)=>{const r=[],n=function(e,t){const o=Ye(e);if(!o)return 0;let r;if(o.maxURL){let e=0;o.resources.forEach((t=>{const o=t;e=Math.max(e,o.length)}));const n=t+".json?icons=";r=o.maxURL-e-o.path.length-n.length}else r=0;return r}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return o.forEach(((o,s)=>{a+=o.length+1,a>=n&&s>0&&(r.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=o.length),l.icons.push(o)})),r.push(l),r},send:(e,t,o)=>{if(!Ge)return void o("abort",424);let r=function(e){if("string"==typeof e){const t=Ye(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,o=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:o}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void o("abort",400)}let n=503;Ge(e+r).then((e=>{const t=e.status;if(200===t)return n=501,e.json();setTimeout((()=>{o(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{o("success",e)})):setTimeout((()=>{404===e?o("abort",e):o("next",n)}))})).catch((()=>{o("next",n)}))}};function Xe(e,t){e.forEach((e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter((e=>e.id!==t)))}))}let Ze=0;var _e={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $e(e,t,o,r){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,c="pending",u=0,d=null,f=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function h(){"pending"===c&&(c="aborted"),m(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,s)}))}function C(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function y(){if("pending"!==c)return;m();const r=l.shift();if(void 0===r)return f.length?void(d=setTimeout((()=>{m(),"pending"===c&&(C(),v())}),e.timeout)):void v();const n={status:"pending",resource:r,callback:(t,o)=>{!function(t,o,r){const n="success"!==o;switch(f=f.filter((e=>e!==t)),c){case"pending":break;case"failed":if(n||!e.dataAfterTimeout)return;break;default:return}if("abort"===o)return s=r,void v();if(n)return s=r,void(f.length||(l.length?y():v()));if(m(),C(),!e.random){const o=e.resources.indexOf(t.resource);-1!==o&&o!==e.index&&(e.index=o)}c="completed",p.forEach((e=>{e(r)}))}(n,t,o)}};f.push(n),u++,d=setTimeout(y,e.rotate),o(r,t,n.callback)}return"function"==typeof r&&p.push(r),setTimeout(y),function(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:g,abort:h}}}function et(e){const t={..._e,...e};let o=[];function r(){o=o.filter((e=>"pending"===e().status))}return{query:function(e,n,i){const l=$e(t,e,n,((e,t)=>{r(),i&&i(e,t)}));return o.push(l),l},find:function(e){return o.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function tt(){}const ot=Object.create(null);function rt(e,t,o){let r,n;if("string"==typeof e){const t=Ue(e);if(!t)return o(void 0,424),tt;n=t.send;const i=function(e){if(!ot[e]){const t=Ye(e);if(!t)return;const o={config:t,redundancy:et(t)};ot[e]=o}return ot[e]}(e);i&&(r=i.redundancy)}else{const t=Qe(e);if(t){r=et(t);const o=Ue(e.resources?e.resources[0]:"");o&&(n=o.send)}}return r&&n?r.query(t,n,o)().abort:(o(void 0,424),tt)}function nt(e,t){function o(o){let r;if(!Be[o]||!(r=Le(o)))return;const n=we[o];let i;if(n.size)n.delete(i=Array.from(n).shift());else if(i=De(r),!Ne(r,i+1))return;const l={cached:Math.floor(Date.now()/Ae),provider:e.provider,data:t};return Ie(r,Se+i.toString(),JSON.stringify(l))}Ee||Fe(),t.lastModified&&!function(e,t){const o=e.lastModifiedCached;if(o&&o>=t)return o===t;if(e.lastModifiedCached=t,o)for(const r in Be)Re(r,(o=>{const r=o.data;return o.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,o("local")||o("session"))}function it(){}function lt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const r=e.provider,n=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==n)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:r,prefix:n,name:l});else{if(!e.missing.has(l))return o=!0,!0;i.missing.push({provider:r,prefix:n,name:l})}return!1})),i.pending.length!==l&&(o||Xe([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const at=(e,t)=>{const o=function(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const n=e.provider,i=e.prefix,l=e.name,a=o[n]||(o[n]=Object.create(null)),s=a[i]||(a[i]=le(n,i));let c;c=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const u={provider:n,prefix:i,name:l};c.push(u)})),t}(function(e,t=!0,o=!1){const r=[];return e.forEach((e=>{const n="string"==typeof e?te(e,t,o):e;n&&r.push(n)})),r}(e,!0,se));if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,it)})),()=>{e=!1}}const r=Object.create(null),n=[];let i,l;return o.pending.forEach((e=>{const{provider:t,prefix:o}=e;if(o===l&&t===i)return;i=t,l=o,n.push(le(t,o));const a=r[t]||(r[t]=Object.create(null));a[o]||(a[o]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:o,name:n}=e,i=le(t,o),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(n)||(l.add(n),r[t][o].push(n))})),n.forEach((e=>{const{provider:t,prefix:o}=e;r[t][o].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:o}=e,r=e.iconsToLoad;let n;delete e.iconsToLoad,r&&(n=Ue(t))&&n.prepare(t,o,r).forEach((o=>{rt(t,o,(t=>{if("object"!=typeof t)o.icons.forEach((t=>{e.missing.add(t)}));else try{const o=ae(e,t);if(!o.length)return;const r=e.pendingIcons;r&&o.forEach((e=>{r.delete(e)})),nt(e,t)}catch(r){}lt(e)}))}))})))}(e,r[t][o])})),t?function(e,t,o){const r=Ze++,n=Xe.bind(null,o,r);if(!t.pending.length)return n;const i={id:r,icons:t,callback:e,abort:n};return o.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),n}(t,o,n):it};function st(e,t){const o={...e};for(const r in t){const e=t[r],n=typeof e;r in de?(null===e||e&&("string"===n||"number"===n))&&(o[r]=e):n===typeof o[r]&&(o[r]="rotate"===r?e%4:e)}return o}const ct={...fe,inline:!1},ut="iconify",dt="iconify-inline",ft="iconifyData"+Date.now();let pt=[];function mt(e){for(let t=0;t<pt.length;t++){const o=pt[t];if(("function"==typeof o.node?o.node():o.node)===e)return o}}function ht(e,t=!1){let o=mt(e);return o?(o.temporary&&(o.temporary=t),o):(o={node:e,temporary:t},pt.push(o),o)}function gt(){return pt}let vt=null;const Ct={childList:!0,subtree:!0,attributes:!0};function yt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,vt&&vt(e)})))}function bt(e,t){if(!e.observer)return;const o=e.observer;if(!o.pendingScan)for(let r=0;r<t.length;r++){const n=t[r];if(n.addedNodes&&n.addedNodes.length>0||"attributes"===n.type&&void 0!==n.target[ft])return void(o.paused||yt(e))}}function Bt(e,t){e.observer.instance.observe(t,Ct)}function wt(e){let t=e.observer;if(t&&t.instance)return;const o="function"==typeof e.node?e.node():e.node;o&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(bt.bind(null,e)),Bt(e,o),t.paused||yt(e))}function Et(){gt().forEach(wt)}function xt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function St(e){const t=null!==vt;vt!==e&&(vt=e,t&>().forEach(xt)),t?Et():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(Et)}function Tt(e){(e?[e]:gt()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function kt(e){(e?[e]:gt()).forEach((e=>{if(!e.observer)return void wt(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const o="function"==typeof e.node?e.node():e.node;if(!o)return;t.instance?Bt(e,o):wt(e)}}))}function At(e,t=!1){const o=ht(e,t);return wt(o),o}function Vt(e){const t=mt(e);t&&(xt(t),function(e){pt=pt.filter((t=>e!==t&&e!==("function"==typeof t.node?t.node():t.node)))}(e))}const It=/[\s,]+/;const Pt=["width","height"],Nt=["inline","hFlip","vFlip"];function Dt(e){const t=e.getAttribute("data-icon"),o="string"==typeof t&&te(t,!0);if(!o)return null;const r={...ct,inline:e.classList&&e.classList.contains(dt)};Pt.forEach((t=>{const o=e.getAttribute("data-"+t);o&&(r[t]=o)}));const n=e.getAttribute("data-rotate");"string"==typeof n&&(r.rotate=function(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===o){const t=parseInt(e);return isNaN(t)?0:r(t)}if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let n=parseFloat(e.slice(0,e.length-o.length));return isNaN(n)?0:(n/=t,n%1==0?r(n):0)}}return t}(n));const i=e.getAttribute("data-flip");"string"==typeof i&&function(e,t){t.split(It).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(r,i),Nt.forEach((t=>{const o="data-"+t,n=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(o),o);"boolean"==typeof n&&(r[t]=n)}));const l=e.getAttribute("data-mode");return{name:t,icon:o,customisations:r,mode:l}}const Mt="svg."+ut+", i."+ut+", span."+ut+", i."+dt+", span."+dt;function Lt(e,t){let o=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)o+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}let Rt;function Ft(e){return void 0===Rt&&function(){try{Rt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){Rt=null}}(),Rt?Rt.createHTML(e):e}function jt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach((o=>{e[o]&&t.add("iconify--"+e[o])})),t}function Ot(e,t,o,r){const n=e.classList;if(r){const e=r.classList;Array.from(e).forEach((e=>{n.add(e)}))}const i=[];return t.forEach((e=>{n.contains(e)?o.has(e)&&i.push(e):(n.add(e),i.push(e))})),o.forEach((e=>{t.has(e)||n.remove(e)})),i}function Ht(e,t,o){const r=e.style;(o||[]).forEach((e=>{r.removeProperty(e)}));const n=[];for(const i in t)r.getPropertyValue(i)||(n.push(i),r.setProperty(i,t[i]));return n}function Ut(e,t,o){let r;try{r=document.createElement("span")}catch(p){return e}const n=t.customisations,i=ge(o,n),l=e[ft],a=Lt(be(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=Ft(a);const s=r.childNodes[0],c=e.attributes;for(let m=0;m<c.length;m++){const e=c.item(m),t=e.name;"class"===t||s.hasAttribute(t)||s.setAttribute(t,e.value)}const u=Ot(s,jt(t.icon),new Set(l&&l.addedClasses),e),d=Ht(s,n.inline?{"vertical-align":"-0.125em"}:{},l&&l.addedStyles),f={...t,status:"loaded",addedClasses:u,addedStyles:d};return s[ft]=f,e.parentNode&&e.parentNode.replaceChild(s,e),s}const Qt={display:"inline-block"},Kt={"background-color":"currentColor"},qt={"background-color":"transparent"},Jt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},zt={"-webkit-mask":Kt,mask:Kt,background:qt};for(const il in zt){const e=zt[il];for(const t in Jt)e[il+"-"+t]=Jt[t]}function Yt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let Gt=!1;function Wt(){Gt||(Gt=!0,setTimeout((()=>{Gt&&(Gt=!1,Xt())})))}function Xt(e,t=!1){const o=Object.create(null);function r(e,t){const{provider:r,prefix:n,name:i}=e,l=le(r,n),a=l.icons[i];if(a)return{status:"loaded",icon:a};if(l.missing.has(i))return{status:"missing"};if(t&&!(e=>{const t=le(e.provider,e.prefix).pendingIcons;return!(!t||!t.has(e.name))})(e)){const e=o[r]||(o[r]=Object.create(null));(e[n]||(e[n]=new Set)).add(i)}return{status:"loading"}}(e?[e]:gt()).forEach((e=>{const o="function"==typeof e.node?e.node():e.node;if(!o||!o.querySelectorAll)return;let n=!1,i=!1;function l(t,o,r){if(i||(i=!0,Tt(e)),"SVG"!==t.tagName.toUpperCase()){const e=o.mode,n="mask"===e||"bg"!==e&&("style"===e?-1!==r.body.indexOf("currentColor"):null);if("boolean"==typeof n)return void function(e,t,o,r){const n=t.customisations,i=ge(o,n),l=i.attributes,a=e[ft],s=Lt(i.body,{...l,width:o.width+"",height:o.height+""}),c=Ot(e,jt(t.icon),new Set(a&&a.addedClasses)),u={"--svg":'url("'+(d=s,"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(d)+'")'),width:Yt(l.width),height:Yt(l.height),...Qt,...r?Kt:qt};var d;n.inline&&(u["vertical-align"]="-0.125em");const f=Ht(e,u,a&&a.addedStyles),p={...t,status:"loaded",addedClasses:c,addedStyles:f};e[ft]=p}(t,o,{...W,...r},n)}Ut(t,o,r)}(function(e){const t=[];return e.querySelectorAll(Mt).forEach((e=>{const o=e[ft]||"svg"!==e.tagName.toLowerCase()?Dt(e):null;o&&t.push({node:e,props:o})})),t})(o).forEach((({node:e,props:t})=>{const o=e[ft];if(!o){const{status:o,icon:i}=r(t.icon,!0);return i?void l(e,t,i):(n=n||"loading"===o,void(e[ft]={...t,status:o}))}let i;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const o=e.customisations,r=t.customisations;for(const n in ct)if(o[n]!==r[n])return!0;return!1}(o,t)){if(i=r(t.icon,o.name!==t.name),!i.icon)return n=n||"loading"===i.status,void Object.assign(o,{...t,status:i.status})}else{if("loading"!==o.status)return;if(i=r(t.icon,!1),!i.icon)return void(o.status=i.status)}l(e,t,i.icon)})),e.temporary&&!n?Vt(o):t&&n?At(o,!0):i&&e.observer&&kt(e)}));for(const n in o){const e=o[n];for(const t in e){const o=e[t];at(Array.from(o).map((e=>({provider:n,prefix:t,name:e}))),Wt)}}}function Zt(e,t,o=!1){const r=ce(e);if(!r)return null;const n=te(e),i=st(ct,t||{}),l=Ut(document.createElement("span"),{name:e,icon:n,customisations:i},r);return o?l.outerHTML:l}if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return ht(document.documentElement);pt.push({node:()=>document.documentElement})}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload;"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{"object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||ue(e)}catch(t){}}))}setTimeout((()=>{St(Xt),Xt()}))}if(He("",We),"undefined"!=typeof document&&"undefined"!=typeof window){Fe();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(const e in t){try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;ze(e,o)}catch(rl){}}}}const _t={_api:{getAPIConfig:Ye,setAPIModule:He,sendAPIQuery:rt,setFetch:function(e){Ge=e},getFetch:function(){return Ge},listAPIProviders:function(){return Object.keys(Ke)}},addAPIProvider:ze,loadIcons:at,loadIcon:e=>new Promise(((t,o)=>{const r="string"==typeof e?te(e,!0):e;r?at([r||e],(n=>{if(n.length&&r){const e=ce(r);if(e)return void t({...W,...e})}o(e)})):o(e)})),iconExists:function(e){return!!ce(e)},getIcon:function(e){const t=ce(e);return t?{...W,...t}:null},listIcons:function(e,t){let o=[];return("string"==typeof e?[e]:Object.keys(ie)).forEach((e=>{("string"==typeof e&&"string"==typeof t?[t]:Object.keys(ie[e]||{})).forEach((t=>{const r=le(e,t);o=o.concat(Object.keys(r.icons).map((o=>(""!==e?"@"+e+":":"")+t+":"+o)))}))})),o},addIcon:function(e,t){const o=te(e,!0,se);return!!o&&function(e,t,o){try{if("string"==typeof o.body)return e.icons[t]={...o},!0}catch(r){}return!1}(le(o.provider,o.prefix),o.name,t)},addCollection:ue,replaceIDs:be,calculateSize:he,buildIcon:ge,getVersion:function(){return"3.1.1"},renderSVG:function(e,t){return Zt(e,t,!1)},renderHTML:function(e,t){return Zt(e,t,!0)},renderIcon:function(e,t){const o=ce(e);return o?ge(o,st(ct,t||{})):null},scan:function(e){e?function(e){const t=mt(e);t?Xt(t):Xt({node:e,temporary:!0},!0)}(e):Xt()},observe:At,stopObserving:Vt,pauseObserver:function(e){if(e){const t=mt(e);t&&Tt(t)}else Tt()},resumeObserver:function(e){if(e){const t=mt(e);t&&kt(t)}else kt()},enableCache:function(e,t){je(e,!1!==t)},disableCache:function(e){je(e,!0)}};try{void 0===self.Iconify&&(self.Iconify=_t)}catch(nl){}const $t=["xlink:href"],eo=["data-icon"],to=Object.assign({name:"Icon"},{__name:"Icon",props:{icon:String,color:String,size:{type:Number,default:16},svgClass:{type:String,default:""}},setup(e){const{getPrefixCls:o}=T(),r=o("icon"),n=e,l=t.ref(null),a=t.computed((()=>{var e;return null==(e=n.icon)?void 0:e.startsWith("svg-icon:")})),s=t.computed((()=>t.unref(a)?`#icon-${n.icon.split("svg-icon:")[1]}`:n.icon)),c=t.computed((()=>{const{color:e,size:t}=n;return{fontSize:`${t}px`,height:"1em",color:e}})),u=t.computed((()=>{const{svgClass:e}=n;return`iconify ${e}`}));return t.watch((()=>n.icon),(e=>{(async e=>{if(t.unref(a))return;const o=t.unref(l);if(!o)return;if(await t.nextTick(),!e)return;const r=_t.renderSVG(e,{});if(r)o.textContent="",o.appendChild(r);else{const t=document.createElement("span");t.className="iconify",t.dataset.icon=e,o.textContent="",o.appendChild(t)}})(e)})),(o,n)=>(t.openBlock(),t.createBlock(t.unref(i.ElIcon),{class:t.normalizeClass(t.unref(r)),color:e.color,size:e.size},{default:t.withCtx((()=>[t.unref(a)?(t.openBlock(),t.createElementBlock("svg",{key:0,class:t.normalizeClass(t.unref(u))},[t.createElementVNode("use",{"xlink:href":t.unref(s)},null,8,$t)],2)):(t.openBlock(),t.createElementBlock("span",{key:1,ref_key:"elRef",ref:l,class:t.normalizeClass(o.$attrs.class),style:t.normalizeStyle(t.unref(c))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(u)),"data-icon":t.unref(s)},null,10,eo)],6))])),_:1},8,["class","color","size"]))}}),oo=(e,t)=>{const o=e.__vccOpts||e;for(const[r,n]of t)o[r]=n;return o};let ro=null;const no=(e,t)=>t,io=e=>{if(!ro)return{t:e=>no(0,e)};const{t:t,...o}=ro.global;return{...o,t:(o,...r)=>o?o.includes(".")||e?t(no(0,o),...r):o:""}},{getPrefixCls:lo}=T(),ao=lo("menu"),so=e=>{if(!e)return e;const{matched:t,...o}=e;return{...o,matched:t?t.map((e=>({meta:e.meta,name:e.name,path:e.path}))):void 0}},co=(e,t)=>{if(N(t))return t;return`${e}${t.startsWith("/")||!t?t:`/${t}`}`.replace(/\/\//g,"/")},{renderMenuTitle:uo}=(()=>{const e=x(),o=t.computed((()=>e.getLayout));return{renderMenuTitle:(e,r,n)=>{const{t:i}=io(),{title:l="Please set title",icon:a}=e,s=t.computed((()=>"top"!==o.value));return t.createVNode(t.Fragment,null,[s.value&&t.createVNode(to,{icon:a||"ep:house"},null),t.createVNode("span",{class:[`${ao}__title`,"overflow-hidden overflow-ellipsis whitespace-nowrap text-ellipsis"]},[i(l)])])}}})(),fo=oo(Object.assign({name:"Collapse"},{__name:"Collapse",props:{color:{type:String,default:""}},setup(e){const{getPrefixCls:o}=T(),r=o("collapse"),n=x(),i=t.computed((()=>n.getCollapse)),l=()=>{const e=t.unref(i);n.setCollapse(!e)};return(o,n)=>{const a=t.resolveComponent("Icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`${t.unref(r)} ${t.unref(i)?"!px-16px":"!px-20px"}`),onClick:l},[t.createVNode(a,{color:e.color,icon:t.unref(i)?"svg-icon:menu-fold":"svg-icon:menu-unfold",class:"cursor-pointer"},null,8,["color","icon"])],2)}}}),[["__scopeId","data-v-6fa09378"]]);const{getPrefixCls:po}=T(),mo=po("menu"),ho=oo(t.defineComponent({name:"Menu",props:{menuSelect:{type:Function,default:void 0},mode:{type:String,default:"vertical"}},setup(e){const o=x(),r=t.computed((()=>o.getLayout)),{push:n,currentRoute:a}=l.useRouter(),s=H(),c=t.computed((()=>{switch(t.unref(r)){case"left":return"vertical";case"top":return"horizontal";case"topLeft":return e.mode}})),u=t.computed((()=>"topLeft"==r.value&&"vertical"==e.mode?s.getLeftMenuRouters:s.getRouters)),d=t.computed((()=>o.getCollapse)),f=t.computed((()=>o.getUniqueOpened)),p=t.computed((()=>{const{meta:e,path:o}=t.unref(a);return e.activeMenu?e.activeMenu:o})),m=t=>{e.menuSelect&&e.menuSelect(t),N(t)?window.open(t):"topLeft"==r.value&&"horizontal"==e.mode?J(t,n):n(t)},h=()=>{if("top"===t.unref(r))return g();{let o;return t.createVNode(i.ElScrollbar,null,"function"==typeof(e=o=g())||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?o:{default:()=>[o]})}var e},g=()=>t.createVNode(i.ElMenu,{defaultActive:t.unref(p),mode:t.unref(c),collapse:"top"!==t.unref(r)&&("topLeft"!==t.unref(r)||"horizontal"!==e.mode)&&t.unref(d),uniqueOpened:"top"!==t.unref(r)&&t.unref(f),backgroundColor:"transparent",textColor:"var(--left-menu-text-color)",activeTextColor:"var(--left-menu-text-active-color)",popperClass:"vertical"===t.unref(c)?`${mo}-popper--vertical`:`${mo}-popper--horizontal`,onSelect:m},{default:()=>{const{renderMenuItem:o}=(()=>{const e=x(),o=t.computed((()=>e.getLayout)),r=(e,n,a="/",s=0)=>{const c=l.useRoute();return e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})).map((e=>{const l=e.meta??{},{oneShowingChild:u,onlyOneChild:d}=q(e.children,e),f=N(e.path)?e.path:co(a,e.path);if(!u||(null==d?void 0:d.children)&&!(null==d?void 0:d.noShowingChildren)||(null==l?void 0:l.alwaysShow)){if("topLeft"==o.value&&"horizontal"==n){const e=c.path.includes(f);return e&&J(f),t.createVNode(i.ElMenuItem,{index:f,class:e?"is-active":""},{default:()=>uo(l,l,n)})}return t.createVNode(i.ElSubMenu,{index:f},{title:()=>uo(l,s,n),default:()=>r(e.children,n,f,s+1)})}return t.createVNode(i.ElMenuItem,{index:d?co(f,d.path):f},{default:()=>uo(d?null==d?void 0:d.meta:l,s,n)})}))};return{renderMenuItem:r}})();return o(u.value,e.mode)}}),v=t.computed((()=>"left"==r.value||"topLeft"==t.unref(r)&&"vertical"==e.mode)),C=t.computed((()=>s.getModuleName)),y=t.computed((()=>("left"==r.value||"topLeft"==r.value&&"vertical"==e.mode)&&!d.value));return()=>t.createVNode("div",{id:mo,class:[`${mo} ${mo}__${t.unref(c)}`,"flex flex-col",{"w-[var(--left-menu-min-width)]":t.unref(d),"w-[var(--left-menu-max-width)]":!t.unref(d),"bg-[linear-gradient(var(--left-menu-bg-color))]":"left"==t.unref(r)||"topLeft"==t.unref(r)&&"vertical"==e.mode,collapse:t.unref(d),"un-collapse":!t.unref(d)}]},[y.value&&t.createVNode("div",{class:"text-center text-16px font-500 p-16px pb-10px text-[var(--left-menu-text-color)]"},[C.value]),t.createVNode("div",{class:"flex-1 overflow-hidden"},[h()]),t.unref(v)?t.createVNode(fo,{color:"var(--top-header-text-color)"},null):void 0])}}),[["__scopeId","data-v-ca95b9cd"]]);function go(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function vo(e,t){return e&t}function Co(e,t){return e|t}function yo(e,t){return e^t}function bo(e,t){return e&~t}function Bo(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function wo(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var Eo,xo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function So(e){var t,o,r="";for(t=0;t+3<=e.length;t+=3)o=parseInt(e.substring(t,t+3),16),r+=xo.charAt(o>>6)+xo.charAt(63&o);for(t+1==e.length?(o=parseInt(e.substring(t,t+1),16),r+=xo.charAt(o<<2)):t+2==e.length&&(o=parseInt(e.substring(t,t+2),16),r+=xo.charAt(o>>2)+xo.charAt((3&o)<<4));(3&r.length)>0;)r+="=";return r}var To,ko=function(e){var t;if(void 0===Eo){var o="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Eo={},t=0;t<16;++t)Eo[o.charAt(t)]=t;for(o=o.toLowerCase(),t=10;t<16;++t)Eo[o.charAt(t)]=t;for(t=0;t<8;++t)Eo[r.charAt(t)]=-1}var n=[],i=0,l=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=Eo[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++l>=2?(n[n.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return n},Ao={decode:function(e){var t;if(void 0===To){var o="= \f\n\r\t \u2028\u2029";for(To=Object.create(null),t=0;t<64;++t)To["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(To["-"]=62,To._=63,t=0;t<9;++t)To[o.charAt(t)]=-1}var r=[],n=0,i=0;for(t=0;t<e.length;++t){var l=e.charAt(t);if("="==l)break;if(-1!=(l=To[l])){if(void 0===l)throw new Error("Illegal character at offset "+t);n|=l,++i>=4?(r[r.length]=n>>16,r[r.length]=n>>8&255,r[r.length]=255&n,n=0,i=0):n<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=n>>10;break;case 3:r[r.length]=n>>16,r[r.length]=n>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Ao.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Ao.decode(e)}},Vo=1e13,Io=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var o,r,n=this.buf,i=n.length;for(o=0;o<i;++o)(r=n[o]*e+t)<Vo?t=0:r-=(t=0|r/Vo)*Vo,n[o]=r;t>0&&(n[o]=t)},e.prototype.sub=function(e){var t,o,r=this.buf,n=r.length;for(t=0;t<n;++t)(o=r[t]-e)<0?(o+=Vo,e=1):e=0,r[t]=o;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,o=t[t.length-1].toString(),r=t.length-2;r>=0;--r)o+=(Vo+t[r]).toString().substring(1);return o},e.prototype.valueOf=function(){for(var e=this.buf,t=0,o=e.length-1;o>=0;--o)t=t*Vo+e[o];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Po=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,No=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Do(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var Mo,Lo=function(){function e(t,o){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=o)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,o){for(var r="",n=e;n<t;++n)if(r+=this.hexByte(this.get(n)),!0!==o)switch(15&n){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var o=e;o<t;++o){var r=this.get(o);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var o="",r=e;r<t;++r)o+=String.fromCharCode(this.get(r));return o},e.prototype.parseStringUTF=function(e,t){for(var o="",r=e;r<t;){var n=this.get(r++);o+=n<128?String.fromCharCode(n):n>191&&n<224?String.fromCharCode((31&n)<<6|63&this.get(r++)):String.fromCharCode((15&n)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return o},e.prototype.parseStringBMP=function(e,t){for(var o,r,n="",i=e;i<t;)o=this.get(i++),r=this.get(i++),n+=String.fromCharCode(o<<8|r);return n},e.prototype.parseTime=function(e,t,o){var r=this.parseStringISO(e,t),n=(o?Po:No).exec(r);return n?(o&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),r=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(r+=":"+n[5],n[6]&&(r+=":"+n[6],n[7]&&(r+="."+n[7]))),n[8]&&(r+=" UTC","Z"!=n[8]&&(r+=n[8],n[9]&&(r+=":"+n[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var o,r=this.get(e),n=r>127,i=n?255:0,l="";r==i&&++e<t;)r=this.get(e);if(0===(o=t-e))return n?-1:0;if(o>4){for(l=r,o<<=3;!(128&(+l^i));)l=+l<<1,--o;l="("+o+" bit)\n"}n&&(r-=256);for(var a=new Io(r),s=e+1;s<t;++s)a.mulAdd(256,this.get(s));return l+a.toString()},e.prototype.parseBitString=function(e,t,o){for(var r=this.get(e),n="("+((t-e-1<<3)-r)+" bit)\n",i="",l=e+1;l<t;++l){for(var a=this.get(l),s=l==t-1?r:0,c=7;c>=s;--c)i+=a>>c&1?"1":"0";if(i.length>o)return n+Do(i,o)}return n+i},e.prototype.parseOctetString=function(e,t,o){if(this.isASCII(e,t))return Do(this.parseStringISO(e,t),o);var r=t-e,n="("+r+" byte)\n";r>(o/=2)&&(t=e+o);for(var i=e;i<t;++i)n+=this.hexByte(this.get(i));return r>o&&(n+="…"),n},e.prototype.parseOID=function(e,t,o){for(var r="",n=new Io,i=0,l=e;l<t;++l){var a=this.get(l);if(n.mulAdd(128,127&a),i+=7,!(128&a)){if(""===r)if((n=n.simplify())instanceof Io)n.sub(80),r="2."+n.toString();else{var s=n<80?n<40?0:1:2;r=s+"."+(n-40*s)}else r+="."+n.toString();if(r.length>o)return Do(r,o);n=new Io,i=0}}return i>0&&(r+=".incomplete"),r},e}(),Ro=function(){function e(e,t,o,r,n){if(!(r instanceof Fo))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=o,this.tag=r,this.sub=n}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),o=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+o);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+o,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+o,e);case 6:return this.stream.parseOID(t,t+o,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Do(this.stream.parseStringUTF(t,t+o),e);case 18:case 19:case 20:case 21:case 22:case 26:return Do(this.stream.parseStringISO(t,t+o),e);case 30:return Do(this.stream.parseStringBMP(t,t+o),e);case 23:case 24:return this.stream.parseTime(t,t+o,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var o=0,r=this.sub.length;o<r;++o)t+=this.sub[o].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),o=127&t;if(o==t)return o;if(o>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===o)return null;t=0;for(var r=0;r<o;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,o=2*this.length;return e.substr(t,o)},e.decode=function(t){var o;o=t instanceof Lo?t:new Lo(t,0);var r=new Lo(o),n=new Fo(o),i=e.decodeLength(o),l=o.pos,a=l-r.pos,s=null,c=function(){var t=[];if(null!==i){for(var r=l+i;o.pos<r;)t[t.length]=e.decode(o);if(o.pos!=r)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var n=e.decode(o);if(n.tag.isEOC())break;t[t.length]=n}i=l-o.pos}catch(rl){throw new Error("Exception while decoding undefined length content: "+rl)}return t};if(n.tagConstructed)s=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=o.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");s=c();for(var u=0;u<s.length;++u)if(s[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(rl){s=null}if(null===s){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+l);o.pos=l+Math.abs(i)}return new e(r,a,i,n,s)},e}(),Fo=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var o=new Io;do{t=e.get(),o.mulAdd(128,127&t)}while(128&t);this.tagNumber=o.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),jo=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],Oo=(1<<26)/jo[jo.length-1],Ho=function(){function e(e,t,o){null!=e&&("number"==typeof e?this.fromNumber(e,t,o):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var o,r=(1<<t)-1,n=!1,i="",l=this.t,a=this.DB-l*this.DB%t;if(l-- >0)for(a<this.DB&&(o=this[l]>>a)>0&&(n=!0,i=go(o));l>=0;)a<t?(o=(this[l]&(1<<a)-1)<<t-a,o|=this[--l]>>(a+=this.DB-t)):(o=this[l]>>(a-=t)&r,a<=0&&(a+=this.DB,--l)),o>0&&(n=!0),n&&(i+=go(o));return n?i:"0"},e.prototype.negate=function(){var t=Jo();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var o=this.t;if(0!=(t=o-e.t))return this.s<0?-t:t;for(;--o>=0;)if(0!=(t=this[o]-e[o]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+$o(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var o=Jo();return this.abs().divRemTo(t,null,o),this.s<0&&o.compareTo(e.ZERO)>0&&t.subTo(o,o),o},e.prototype.modPowInt=function(e,t){var o;return o=e<256||t.isEven()?new Qo(t):new Ko(t),this.exp(e,o)},e.prototype.clone=function(){var e=Jo();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var o,r=this.DB-e*this.DB%8,n=0;if(e-- >0)for(r<this.DB&&(o=this[e]>>r)!=(this.s&this.DM)>>r&&(t[n++]=o|this.s<<this.DB-r);e>=0;)r<8?(o=(this[e]&(1<<r)-1)<<8-r,o|=this[--e]>>(r+=this.DB-8)):(o=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),128&o&&(o|=-256),0==n&&(128&this.s)!=(128&o)&&++n,(n>0||o!=this.s)&&(t[n++]=o);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Jo();return this.bitwiseTo(e,vo,t),t},e.prototype.or=function(e){var t=Jo();return this.bitwiseTo(e,Co,t),t},e.prototype.xor=function(e){var t=Jo();return this.bitwiseTo(e,yo,t),t},e.prototype.andNot=function(e){var t=Jo();return this.bitwiseTo(e,bo,t),t},e.prototype.not=function(){for(var e=Jo(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Jo();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Jo();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Bo(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,o=0;o<this.t;++o)e+=wo(this[o]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Co)},e.prototype.clearBit=function(e){return this.changeBit(e,bo)},e.prototype.flipBit=function(e){return this.changeBit(e,yo)},e.prototype.add=function(e){var t=Jo();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Jo();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Jo();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Jo();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Jo();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Jo(),o=Jo();return this.divRemTo(e,t,o),[t,o]},e.prototype.modPow=function(e,t){var o,r,n=e.bitLength(),i=_o(1);if(n<=0)return i;o=n<18?1:n<48?3:n<144?4:n<768?5:6,r=n<8?new Qo(t):t.isEven()?new qo(t):new Ko(t);var l=[],a=3,s=o-1,c=(1<<o)-1;if(l[1]=r.convert(this),o>1){var u=Jo();for(r.sqrTo(l[1],u);a<=c;)l[a]=Jo(),r.mulTo(u,l[a-2],l[a]),a+=2}var d,f,p=e.t-1,m=!0,h=Jo();for(n=$o(e[p])-1;p>=0;){for(n>=s?d=e[p]>>n-s&c:(d=(e[p]&(1<<n+1)-1)<<s-n,p>0&&(d|=e[p-1]>>this.DB+n-s)),a=o;!(1&d);)d>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),m)l[d].copyTo(i),m=!1;else{for(;a>1;)r.sqrTo(i,h),r.sqrTo(h,i),a-=2;a>0?r.sqrTo(i,h):(f=i,i=h,h=f),r.mulTo(h,l[d],i)}for(;p>=0&&!(e[p]&1<<n);)r.sqrTo(i,h),f=i,i=h,h=f,--n<0&&(n=this.DB-1,--p)}return r.revert(i)},e.prototype.modInverse=function(t){var o=t.isEven();if(this.isEven()&&o||0==t.signum())return e.ZERO;for(var r=t.clone(),n=this.clone(),i=_o(1),l=_o(0),a=_o(0),s=_o(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),o?(i.isEven()&&l.isEven()||(i.addTo(this,i),l.subTo(t,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);for(;n.isEven();)n.rShiftTo(1,n),o?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(t,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);r.compareTo(n)>=0?(r.subTo(n,r),o&&i.subTo(a,i),l.subTo(s,l)):(n.subTo(r,n),o&&a.subTo(i,a),s.subTo(l,s))}return 0!=n.compareTo(e.ONE)?e.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},e.prototype.pow=function(e){return this.exp(e,new Uo)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),o=e.s<0?e.negate():e.clone();if(t.compareTo(o)<0){var r=t;t=o,o=r}var n=t.getLowestSetBit(),i=o.getLowestSetBit();if(i<0)return t;for(n<i&&(i=n),i>0&&(t.rShiftTo(i,t),o.rShiftTo(i,o));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=o.getLowestSetBit())>0&&o.rShiftTo(n,o),t.compareTo(o)>=0?(t.subTo(o,t),t.rShiftTo(1,t)):(o.subTo(t,o),o.rShiftTo(1,o));return i>0&&o.lShiftTo(i,o),o},e.prototype.isProbablePrime=function(e){var t,o=this.abs();if(1==o.t&&o[0]<=jo[jo.length-1]){for(t=0;t<jo.length;++t)if(o[0]==jo[t])return!0;return!1}if(o.isEven())return!1;for(t=1;t<jo.length;){for(var r=jo[t],n=t+1;n<jo.length&&r<Oo;)r*=jo[n++];for(r=o.modInt(r);t<n;)if(r%jo[t++]==0)return!1}return o.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,o){var r;if(16==o)r=4;else if(8==o)r=3;else if(256==o)r=8;else if(2==o)r=1;else if(32==o)r=5;else{if(4!=o)return void this.fromRadix(t,o);r=2}this.t=0,this.s=0;for(var n=t.length,i=!1,l=0;--n>=0;){var a=8==r?255&+t[n]:Zo(t,n);a<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==l?this[this.t++]=a:l+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-l)-1)<<l,this[this.t++]=a>>this.DB-l):this[this.t-1]|=a<<l,(l+=r)>=this.DB&&(l-=this.DB))}8==r&&128&+t[0]&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var o;for(o=this.t-1;o>=0;--o)t[o+e]=this[o];for(o=e-1;o>=0;--o)t[o]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var o=e;o<this.t;++o)t[o-e]=this[o];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var o=e%this.DB,r=this.DB-o,n=(1<<r)-1,i=Math.floor(e/this.DB),l=this.s<<o&this.DM,a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>r|l,l=(this[a]&n)<<o;for(a=i-1;a>=0;--a)t[a]=0;t[i]=l,t.t=this.t+i+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var o=Math.floor(e/this.DB);if(o>=this.t)t.t=0;else{var r=e%this.DB,n=this.DB-r,i=(1<<r)-1;t[0]=this[o]>>r;for(var l=o+1;l<this.t;++l)t[l-o-1]|=(this[l]&i)<<n,t[l-o]=this[l]>>r;r>0&&(t[this.t-o-1]|=(this.s&i)<<n),t.t=this.t-o,t.clamp()}},e.prototype.subTo=function(e,t){for(var o=0,r=0,n=Math.min(e.t,this.t);o<n;)r+=this[o]-e[o],t[o++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<e.t;)r-=e[o],t[o++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[o++]=this.DV+r:r>0&&(t[o++]=r),t.t=o,t.clamp()},e.prototype.multiplyTo=function(t,o){var r=this.abs(),n=t.abs(),i=r.t;for(o.t=i+n.t;--i>=0;)o[i]=0;for(i=0;i<n.t;++i)o[i+r.t]=r.am(0,n[i],o,i,0,r.t);o.s=0,o.clamp(),this.s!=t.s&&e.ZERO.subTo(o,o)},e.prototype.squareTo=function(e){for(var t=this.abs(),o=e.t=2*t.t;--o>=0;)e[o]=0;for(o=0;o<t.t-1;++o){var r=t.am(o,t[o],e,2*o,0,1);(e[o+t.t]+=t.am(o+1,2*t[o],e,2*o+1,r,t.t-o-1))>=t.DV&&(e[o+t.t]-=t.DV,e[o+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(o,t[o],e,2*o,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,o,r){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=o&&o.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Jo());var l=Jo(),a=this.s,s=t.s,c=this.DB-$o(n[n.t-1]);c>0?(n.lShiftTo(c,l),i.lShiftTo(c,r)):(n.copyTo(l),i.copyTo(r));var u=l.t,d=l[u-1];if(0!=d){var f=d*(1<<this.F1)+(u>1?l[u-2]>>this.F2:0),p=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,g=r.t,v=g-u,C=null==o?Jo():o;for(l.dlShiftTo(v,C),r.compareTo(C)>=0&&(r[r.t++]=1,r.subTo(C,r)),e.ONE.dlShiftTo(u,C),C.subTo(l,l);l.t<u;)l[l.t++]=0;for(;--v>=0;){var y=r[--g]==d?this.DM:Math.floor(r[g]*p+(r[g-1]+h)*m);if((r[g]+=l.am(0,y,r,v,0,u))<y)for(l.dlShiftTo(v,C),r.subTo(C,r);r[g]<--y;)r.subTo(C,r)}null!=o&&(r.drShiftTo(u,o),a!=s&&e.ZERO.subTo(o,o)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,o){if(t>4294967295||t<1)return e.ONE;var r=Jo(),n=Jo(),i=o.convert(this),l=$o(t)-1;for(i.copyTo(r);--l>=0;)if(o.sqrTo(r,n),(t&1<<l)>0)o.mulTo(n,i,r);else{var a=r;r=n,n=a}return o.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),o=Math.pow(e,t),r=_o(o),n=Jo(),i=Jo(),l="";for(this.divRemTo(r,n,i);n.signum()>0;)l=(o+i.intValue()).toString(e).substr(1)+l,n.divRemTo(r,n,i);return i.intValue().toString(e)+l},e.prototype.fromRadix=function(t,o){this.fromInt(0),null==o&&(o=10);for(var r=this.chunkSize(o),n=Math.pow(o,r),i=!1,l=0,a=0,s=0;s<t.length;++s){var c=Zo(t,s);c<0?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(a=o*a+c,++l>=r&&(this.dMultiply(n),this.dAddOffset(a,0),l=0,a=0))}l>0&&(this.dMultiply(Math.pow(o,l)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,o,r){if("number"==typeof o)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Co,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(o);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var n=[],i=7&t;n.length=1+(t>>3),o.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},e.prototype.bitwiseTo=function(e,t,o){var r,n,i=Math.min(e.t,this.t);for(r=0;r<i;++r)o[r]=t(this[r],e[r]);if(e.t<this.t){for(n=e.s&this.DM,r=i;r<this.t;++r)o[r]=t(this[r],n);o.t=this.t}else{for(n=this.s&this.DM,r=i;r<e.t;++r)o[r]=t(n,e[r]);o.t=e.t}o.s=t(this.s,e.s),o.clamp()},e.prototype.changeBit=function(t,o){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,o,r),r},e.prototype.addTo=function(e,t){for(var o=0,r=0,n=Math.min(e.t,this.t);o<n;)r+=this[o]+e[o],t[o++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;o<this.t;)r+=this[o],t[o++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;o<e.t;)r+=e[o],t[o++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[o++]=r:r<-1&&(t[o++]=this.DV+r),t.t=o,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,o){var r=Math.min(this.t+e.t,t);for(o.s=0,o.t=r;r>0;)o[--r]=0;for(var n=o.t-this.t;r<n;++r)o[r+this.t]=this.am(0,e[r],o,r,0,this.t);for(n=Math.min(e.t,t);r<n;++r)this.am(0,e[r],o,r,0,t-r);o.clamp()},e.prototype.multiplyUpperTo=function(e,t,o){--t;var r=o.t=this.t+e.t-t;for(o.s=0;--r>=0;)o[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)o[this.t+r-t]=this.am(t-r,e[r],o,0,0,this.t+r-t);o.clamp(),o.drShiftTo(1,o)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,o=this.s<0?e-1:0;if(this.t>0)if(0==t)o=this[0]%e;else for(var r=this.t-1;r>=0;--r)o=(t*o+this[r])%e;return o},e.prototype.millerRabin=function(t){var o=this.subtract(e.ONE),r=o.getLowestSetBit();if(r<=0)return!1;var n=o.shiftRight(r);(t=t+1>>1)>jo.length&&(t=jo.length);for(var i=Jo(),l=0;l<t;++l){i.fromInt(jo[Math.floor(Math.random()*jo.length)]);var a=i.modPow(n,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(o)){for(var s=1;s++<r&&0!=a.compareTo(o);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(o))return!1}}return!0},e.prototype.square=function(){var e=Jo();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var o=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(o.compareTo(r)<0){var n=o;o=r,r=n}var i=o.getLowestSetBit(),l=r.getLowestSetBit();if(l<0)t(o);else{i<l&&(l=i),l>0&&(o.rShiftTo(l,o),r.rShiftTo(l,r));var a=function(){(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),o.compareTo(r)>=0?(o.subTo(r,o),o.rShiftTo(1,o)):(r.subTo(o,r),r.rShiftTo(1,r)),o.signum()>0?setTimeout(a,0):(l>0&&r.lShiftTo(l,r),setTimeout((function(){t(r)}),0))};setTimeout(a,10)}},e.prototype.fromNumberAsync=function(t,o,r,n){if("number"==typeof o)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Co,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(o)?setTimeout((function(){n()}),0):setTimeout(l,0)};setTimeout(l,0)}else{var a=[],s=7&t;a.length=1+(t>>3),o.nextBytes(a),s>0?a[0]&=(1<<s)-1:a[0]=0,this.fromString(a,256)}},e}(),Uo=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Qo=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Ko=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Jo();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ho.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Jo();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var o=32767&e[t],r=o*this.mpl+((o*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[o=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[o]>=e.DV;)e[o]-=e.DV,e[++o]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),qo=function(){function e(e){this.m=e,this.r2=Jo(),this.q3=Jo(),Ho.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Jo();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,o){e.multiplyTo(t,o),this.reduce(o)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Jo(){return new Ho(null)}function zo(e,t){return new Ho(e,t)}var Yo="undefined"!=typeof navigator;Yo&&"Microsoft Internet Explorer"==navigator.appName?(Ho.prototype.am=function(e,t,o,r,n,i){for(var l=32767&t,a=t>>15;--i>=0;){var s=32767&this[e],c=this[e++]>>15,u=a*s+c*l;n=((s=l*s+((32767&u)<<15)+o[r]+(1073741823&n))>>>30)+(u>>>15)+a*c+(n>>>30),o[r++]=1073741823&s}return n},Mo=30):Yo&&"Netscape"!=navigator.appName?(Ho.prototype.am=function(e,t,o,r,n,i){for(;--i>=0;){var l=t*this[e++]+o[r]+n;n=Math.floor(l/67108864),o[r++]=67108863&l}return n},Mo=26):(Ho.prototype.am=function(e,t,o,r,n,i){for(var l=16383&t,a=t>>14;--i>=0;){var s=16383&this[e],c=this[e++]>>14,u=a*s+c*l;n=((s=l*s+((16383&u)<<14)+o[r]+n)>>28)+(u>>14)+a*c,o[r++]=268435455&s}return n},Mo=28),Ho.prototype.DB=Mo,Ho.prototype.DM=(1<<Mo)-1,Ho.prototype.DV=1<<Mo;Ho.prototype.FV=Math.pow(2,52),Ho.prototype.F1=52-Mo,Ho.prototype.F2=2*Mo-52;var Go,Wo,Xo=[];for(Go="0".charCodeAt(0),Wo=0;Wo<=9;++Wo)Xo[Go++]=Wo;for(Go="a".charCodeAt(0),Wo=10;Wo<36;++Wo)Xo[Go++]=Wo;for(Go="A".charCodeAt(0),Wo=10;Wo<36;++Wo)Xo[Go++]=Wo;function Zo(e,t){var o=Xo[e.charCodeAt(t)];return null==o?-1:o}function _o(e){var t=Jo();return t.fromInt(e),t}function $o(e){var t,o=1;return 0!=(t=e>>>16)&&(e=t,o+=16),0!=(t=e>>8)&&(e=t,o+=8),0!=(t=e>>4)&&(e=t,o+=4),0!=(t=e>>2)&&(e=t,o+=2),0!=(t=e>>1)&&(e=t,o+=1),o}Ho.ZERO=_o(0),Ho.ONE=_o(1);var er=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,o,r;for(t=0;t<256;++t)this.S[t]=t;for(o=0,t=0;t<256;++t)o=o+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[o],this.S[o]=r;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();var tr,or,rr=null;if(null==rr){rr=[],or=0;var nr=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var ir=new Uint32Array(256);for(window.crypto.getRandomValues(ir),nr=0;nr<ir.length;++nr)rr[or++]=255&ir[nr]}var lr=0,ar=function(e){if((lr=lr||0)>=256||or>=256)window.removeEventListener?window.removeEventListener("mousemove",ar,!1):window.detachEvent&&window.detachEvent("onmousemove",ar);else try{var t=e.x+e.y;rr[or++]=255&t,lr+=1}catch(rl){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",ar,!1):window.attachEvent&&window.attachEvent("onmousemove",ar))}function sr(){if(null==tr){for(tr=new er;or<256;){var e=Math.floor(65536*Math.random());rr[or++]=255&e}for(tr.init(rr),or=0;or<rr.length;++or)rr[or]=0;or=0}return tr.next()}var cr=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=sr()},e}();var ur=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),o=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(o)<0;)t=t.add(this.p);return t.subtract(o).multiply(this.coeff).mod(this.p).multiply(this.q).add(o)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=zo(e,16),this.e=parseInt(t,16))},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,o=function(e,t){if(t<e.length+11)return null;for(var o=[],r=e.length-1;r>=0&&t>0;){var n=e.charCodeAt(r--);n<128?o[--t]=n:n>127&&n<2048?(o[--t]=63&n|128,o[--t]=n>>6|192):(o[--t]=63&n|128,o[--t]=n>>6&63|128,o[--t]=n>>12|224)}o[--t]=0;for(var i=new cr,l=[];t>2;){for(l[0]=0;0==l[0];)i.nextBytes(l);o[--t]=l[0]}return o[--t]=2,o[--t]=0,new Ho(o)}(e,t);if(null==o)return null;var r=this.doPublic(o);if(null==r)return null;for(var n=r.toString(16),i=n.length,l=0;l<2*t-i;l++)n="0"+n;return n},e.prototype.setPrivate=function(e,t,o){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=zo(e,16),this.e=parseInt(t,16),this.d=zo(o,16))},e.prototype.setPrivateEx=function(e,t,o,r,n,i,l,a){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=zo(e,16),this.e=parseInt(t,16),this.d=zo(o,16),this.p=zo(r,16),this.q=zo(n,16),this.dmp1=zo(i,16),this.dmq1=zo(l,16),this.coeff=zo(a,16))},e.prototype.generate=function(e,t){var o=new cr,r=e>>1;this.e=parseInt(t,16);for(var n=new Ho(t,16);;){for(;this.p=new Ho(e-r,1,o),0!=this.p.subtract(Ho.ONE).gcd(n).compareTo(Ho.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Ho(r,1,o),0!=this.q.subtract(Ho.ONE).gcd(n).compareTo(Ho.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var l=this.p.subtract(Ho.ONE),a=this.q.subtract(Ho.ONE),s=l.multiply(a);if(0==s.gcd(n).compareTo(Ho.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(s),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=zo(e,16),o=this.doPrivate(t);return null==o?null:function(e,t){var o=e.toByteArray(),r=0;for(;r<o.length&&0==o[r];)++r;if(o.length-r!=t-1||2!=o[r])return null;++r;for(;0!=o[r];)if(++r>=o.length)return null;var n="";for(;++r<o.length;){var i=255&o[r];i<128?n+=String.fromCharCode(i):i>191&&i<224?(n+=String.fromCharCode((31&i)<<6|63&o[r+1]),++r):(n+=String.fromCharCode((15&i)<<12|(63&o[r+1])<<6|63&o[r+2]),r+=2)}return n}(o,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,o){var r=new cr,n=e>>1;this.e=parseInt(t,16);var i=new Ho(t,16),l=this,a=function(){var t=function(){if(l.p.compareTo(l.q)<=0){var e=l.p;l.p=l.q,l.q=e}var t=l.p.subtract(Ho.ONE),r=l.q.subtract(Ho.ONE),n=t.multiply(r);0==n.gcd(i).compareTo(Ho.ONE)?(l.n=l.p.multiply(l.q),l.d=i.modInverse(n),l.dmp1=l.d.mod(t),l.dmq1=l.d.mod(r),l.coeff=l.q.modInverse(l.p),setTimeout((function(){o()}),0)):setTimeout(a,0)},s=function(){l.q=Jo(),l.q.fromNumberAsync(n,1,r,(function(){l.q.subtract(Ho.ONE).gcda(i,(function(e){0==e.compareTo(Ho.ONE)&&l.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(s,0)}))}))},c=function(){l.p=Jo(),l.p.fromNumberAsync(e-n,1,r,(function(){l.p.subtract(Ho.ONE).gcda(i,(function(e){0==e.compareTo(Ho.ONE)&&l.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(a,0)},e.prototype.sign=function(e,t,o){var r=function(e,t){if(t<e.length+22)return null;for(var o=t-e.length-6,r="",n=0;n<o;n+=2)r+="ff";return zo("0001"+r+"00"+e,16)}((dr[o]||"")+t(e).toString(),this.n.bitLength()/4);if(null==r)return null;var n=this.doPrivate(r);if(null==n)return null;var i=n.toString(16);return 1&i.length?"0"+i:i},e.prototype.verify=function(e,t,o){var r=zo(t,16),n=this.doPublic(r);return null==n?null:function(e){for(var t in dr)if(dr.hasOwnProperty(t)){var o=dr[t],r=o.length;if(e.substr(0,r)==o)return e.substr(r)}return e}
|
|
8
8
|
/*!
|
|
9
9
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
10
10
|
Code licensed under the BSD License:
|
package/package.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M24 12C24 5.37063 18.6294 0 12 0C5.37063 0 0 5.37063 0 12C0 18.6294 5.37063 24 12 24C15.1748 24 18.0559 22.7692 20.1958 20.7552C20.3357 20.7133 20.4615 20.6434 20.5594 20.5175C20.6434 20.4336 20.6993 20.3357 20.7413 20.2238C22.7552 18.0699 24 15.1888 24 12ZM11.0629 22.3636C11.049 22.3357 11.021 22.3217 10.993 22.2937C9.70629 21.1748 8.65734 19.8462 7.87413 18.3776C8.92308 17.9441 10.042 17.6783 11.2028 17.5944V22.3636C11.1608 22.3636 11.1049 22.3636 11.0629 22.3636ZM1.62238 12.7692H4.71329C4.7972 14.4476 5.16084 16.0839 5.77622 17.6224C5.18881 17.958 4.64336 18.3357 4.11189 18.7692C2.6993 17.1329 1.79021 15.0489 1.62238 12.7692ZM4.1958 5.11888C4.71329 5.53846 5.25874 5.9021 5.81818 6.23776C5.17482 7.79021 4.7972 9.46853 4.71329 11.1748H1.63636C1.81818 8.86713 2.75524 6.76923 4.1958 5.11888ZM12.9091 1.63636C12.9371 1.66434 12.951 1.69231 12.993 1.72028C14.2378 2.7972 15.2727 4.08392 16.042 5.4965C15.007 5.91608 13.9161 6.16783 12.7972 6.25175V1.63636C12.8392 1.63636 12.8811 1.63636 12.9091 1.63636ZM22.3636 11.1748H19.2727C19.1748 9.46853 18.7972 7.8042 18.1538 6.23776C18.7273 5.91608 19.2727 5.53846 19.7902 5.11888C21.2448 6.76923 22.1818 8.86713 22.3636 11.1748ZM11.2028 11.1748H6.32168C6.40559 9.70629 6.74126 8.27972 7.27273 6.93706C8.51748 7.45455 9.84615 7.76224 11.2028 7.84615V11.1748ZM11.2028 12.7692V15.986C9.81818 16.0699 8.47552 16.3916 7.21678 16.9091C6.71329 15.5944 6.40559 14.1958 6.32168 12.7692H11.2028ZM12.7972 12.7692H17.6643C17.5804 14.2098 17.2727 15.6084 16.7692 16.9231C15.5105 16.3916 14.1678 16.0839 12.7972 15.986V12.7692ZM12.7972 11.1748V7.84615C14.1538 7.76224 15.4825 7.45454 16.7133 6.95105C17.2448 8.29371 17.5664 9.72028 17.6643 11.1748H12.7972ZM17.4825 4.78322C17.007 3.91608 16.4615 3.09091 15.8182 2.32168C16.8531 2.72727 17.8042 3.3007 18.6434 4C18.2657 4.29371 17.8741 4.55944 17.4825 4.78322ZM11.2028 1.62238V6.23776C10.0839 6.15385 8.97902 5.9021 7.95804 5.48252C8.72727 4.06993 9.74825 2.7972 10.993 1.72028C11.021 1.69231 11.0629 1.65035 11.0909 1.62238C11.1189 1.63636 11.1608 1.63636 11.2028 1.62238ZM6.51748 4.78322C6.11189 4.54545 5.73427 4.27972 5.35664 4C6.1958 3.3007 7.14685 2.74126 8.16783 2.33566C7.53846 3.09091 6.97902 3.91608 6.51748 4.78322ZM6.44755 19.0909C6.92308 20 7.4965 20.8671 8.15385 21.6643C7.09091 21.2448 6.11189 20.6434 5.24475 19.9161C5.63636 19.6084 6.04196 19.3427 6.44755 19.0909ZM12.7972 22.3776V17.6084C13.9441 17.6923 15.0629 17.958 16.1119 18.3916C15.3287 19.8601 14.2797 21.1888 12.993 22.3077C12.965 22.3357 12.951 22.3496 12.9231 22.3776C12.8811 22.3636 12.8392 22.3636 12.7972 22.3776ZM17.5385 19.1049C17.9441 19.3566 18.3496 19.6224 18.7273 19.9301C17.8741 20.6573 16.8951 21.2448 15.8322 21.6643C16.4895 20.8811 17.0629 20.014 17.5385 19.1049ZM18.2238 17.6364C18.8392 16.0979 19.2028 14.4476 19.2867 12.7692H22.3776C22.2098 15.0629 21.2867 17.1469 19.8741 18.7972C19.3427 18.3636 18.7972 17.972 18.2238 17.6364Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|