ss-component-new 1.3.321 → 1.3.323

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.
Files changed (121) hide show
  1. package/dist/{MTLLoader-CK9k2OkC.js → MTLLoader-CWm4zRXg.js} +1 -1
  2. package/dist/{MTLLoader-sFjooHYy.cjs → MTLLoader-D31u_J1I.cjs} +1 -1
  3. package/dist/{OrbitControls-s3zz-OdY.js → OrbitControls-BHymD-uS.js} +1 -1
  4. package/dist/{OrbitControls-C8tvN177.cjs → OrbitControls-CNPfT-k2.cjs} +1 -1
  5. package/dist/{URDFLoader-F13ne6AZ.cjs → URDFLoader-B6fSdZBW.cjs} +1 -1
  6. package/dist/{URDFLoader-C4CxlYaQ.js → URDFLoader-CwxwkM1Z.js} +2 -2
  7. package/dist/{animationData-30iUya9L.cjs → animationData-Cj4Vg9K7.cjs} +1 -1
  8. package/dist/{animationData-Bq0ZKGU5.js → animationData-Dr4AL7Tn.js} +15 -15
  9. package/dist/{array-Bv-GB6_m.js → array-4MUsfO8Y.js} +4 -4
  10. package/dist/{array-Bnm7Uy8H.cjs → array-DhFIb8Ci.cjs} +1 -1
  11. package/dist/clone-D6y-bsE3.cjs +1 -0
  12. package/dist/{clone-BkoeZZPJ.js → clone-DkUTKKWA.js} +1 -1
  13. package/dist/{dayjs.min-D2kum5JL.js → dayjs.min-BL2Zt4iO.js} +1 -1
  14. package/dist/{dayjs.min-CKeZNApM.cjs → dayjs.min-DYXCWUDw.cjs} +1 -1
  15. package/dist/{iconfont-CAf85VWB.js → iconfont-B4tW5MMA.js} +2 -2
  16. package/dist/{iconfont-m42I_Zch.cjs → iconfont-sC2feAth.cjs} +1 -1
  17. package/dist/{JSEncrypt-B36c1iN5.js → index-4L13fekz.js} +743 -453
  18. package/dist/index-7psGt_5p.cjs +1 -0
  19. package/dist/{index-BVH050w0.cjs → index-8S3bQzsS.cjs} +1 -1
  20. package/dist/{index-DwxZZ2Rv.js → index-B1u8xeDs.js} +2 -2
  21. package/dist/{index-86Qtt4Gi.cjs → index-B88VGc4X.cjs} +2 -2
  22. package/dist/{index-DG7fwVK4.js → index-BBFKG5Lg.js} +3667 -3954
  23. package/dist/{index-TdRQ4U-0.cjs → index-BBtFM-Ge.cjs} +1 -1
  24. package/dist/{index-BuytoK__.cjs → index-BE9ZWUsI.cjs} +1 -1
  25. package/dist/{index-_WSPThGL.cjs → index-BFlrYtOA.cjs} +1 -1
  26. package/dist/{index-BG_BTIbd.js → index-BGsbzbfR.js} +1 -1
  27. package/dist/{index-CQVWTddk.js → index-BNEyTIe4.js} +4 -4
  28. package/dist/{index-BhssV5Si.js → index-BRxMnV1e.js} +3 -3
  29. package/dist/{index-B1vAZHjo.js → index-BU1ISY19.js} +1 -1
  30. package/dist/{index-C6e8tITh.js → index-BWNRm72Z.js} +1194 -1185
  31. package/dist/{index-Cf8X898z.cjs → index-BbtC7Ji7.cjs} +1 -1
  32. package/dist/{index-BbN4AWqw.js → index-BiHyvosO.js} +2 -2
  33. package/dist/index-Bkqa7S3G.js +132 -0
  34. package/dist/{index-C4FN-3yG.cjs → index-BlX6PtgC.cjs} +1 -1
  35. package/dist/{index-DyNe1ivN.js → index-BnKm-Z6I.js} +3 -3
  36. package/dist/index-BnpnirTe.js +9581 -0
  37. package/dist/{index-DcEc7R08.js → index-BoX2OxZA.js} +4 -4
  38. package/dist/{index-xRIUu3ui.js → index-ByOP4S4w.js} +70 -71
  39. package/dist/{index-BY8CAuth.cjs → index-C1eYjrgp.cjs} +1 -1
  40. package/dist/{index-DLlv5Kx4.js → index-C5Ftg2Ji.js} +9 -9
  41. package/dist/{index-BfoNwJYn.cjs → index-CO4nfCVV.cjs} +1 -1
  42. package/dist/{index-DTia9oJS.js → index-CURV4Sc-.js} +4 -4
  43. package/dist/{index-BfGzv-hd.js → index-CXS2rLtC.js} +1 -1
  44. package/dist/{index-EwzDPuOE.js → index-CdBuyUt1.js} +6 -6
  45. package/dist/{JSEncrypt-IYbV4kRj.cjs → index-Cg7sjq06.cjs} +11 -11
  46. package/dist/index-ChruFvf_.cjs +2 -0
  47. package/dist/{index-C8xNjOoe.cjs → index-Ci8QRYNC.cjs} +1 -1
  48. package/dist/index-CkhEA2q9.cjs +1 -0
  49. package/dist/{index-CG6BDUaD.js → index-CmuaqOdl.js} +1 -1
  50. package/dist/{index-CB-G5qY8.cjs → index-CoGh0s71.cjs} +1 -1
  51. package/dist/{index-D6Rv9ZER.cjs → index-D8TUy7GH.cjs} +1 -1
  52. package/dist/{index-Dxa2zPqr.cjs → index-D8sIT3Vh.cjs} +1 -1
  53. package/dist/{index-MSe7REup.cjs → index-DBT-8yul.cjs} +1 -1
  54. package/dist/{index-kCIwjtpa.cjs → index-DM4xlAcv.cjs} +1 -1
  55. package/dist/{index-CUvGyQdt.js → index-DN-7yQww.js} +11 -10
  56. package/dist/{index-BS1qv-TP.cjs → index-DON2Zslz.cjs} +1 -1
  57. package/dist/{index-CCMOSYej.js → index-DPBG_wGE.js} +61 -60
  58. package/dist/{index-CgyXQw5s.cjs → index-DR7h_uyW.cjs} +1 -1
  59. package/dist/index-DUvD0wQS.cjs +1 -0
  60. package/dist/index-DayoUCBG.cjs +1 -0
  61. package/dist/{index-CTi_kU2w.cjs → index-Dfv0Mqza.cjs} +1 -1
  62. package/dist/index-DjT2Wfww.cjs +7 -0
  63. package/dist/index-DmGKehIr.js +666 -0
  64. package/dist/{index-EZOEpeg0.js → index-Dn7_myZr.js} +1 -1
  65. package/dist/index-DqCM7s8O.cjs +104 -0
  66. package/dist/{index-CBshL1g5.js → index-DuIvsQ90.js} +6 -6
  67. package/dist/{index-DKlVcN6L.cjs → index-JU7i7uT2.cjs} +1 -1
  68. package/dist/{index-DtjSUQQ4.cjs → index-MoS_Z1Sz.cjs} +1 -1
  69. package/dist/{index-Chkv6RvP.js → index-bSrw4Jt0.js} +2 -2
  70. package/dist/{index-0hNM9dP5.js → index-d9w5FXdk.js} +3 -3
  71. package/dist/{index-B-TORwhC.js → index-gbjjuq3H.js} +2 -2
  72. package/dist/{index-DH0ChZga.js → index-lH4Qm1Ga.js} +1 -1
  73. package/dist/{index-BmDdag7O.cjs → index-tIBP_Zfx.cjs} +1 -1
  74. package/dist/{index-DweESdia.js → index-umip598j.js} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js} +1843 -1848
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B1YdRpLC.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DXfPRq7d.cjs} +62 -62
  77. package/dist/{main-vQ17tgzX.cjs → main-DQcF01Xl.cjs} +1 -1
  78. package/dist/{main-BjTVrhEn.js → main-eAThV5_B.js} +4 -4
  79. package/dist/{menu-B5Ed9tCx.js → menu-B6brhvAI.js} +2 -1
  80. package/dist/{menu-FU5yiMy8.cjs → menu-D-MiErGd.cjs} +1 -1
  81. package/dist/{menuIndex-CqjGgoWs.cjs → menuIndex-B0wuhry0.cjs} +1 -1
  82. package/dist/{menuIndex-Bofzhsc4.js → menuIndex-uEOgSHtu.js} +1 -1
  83. package/dist/ss-component.cjs +1 -1
  84. package/dist/ss-component.css +1 -1
  85. package/dist/ss-component.js +12 -12
  86. package/dist/ss-component2.cjs +1 -1
  87. package/dist/ss-component2.js +12 -12
  88. package/dist/{threeModel-DV88nk0c.js → threeModel-BEEBOb-O.js} +4 -4
  89. package/dist/{threeModel-B0JqdXMa.cjs → threeModel-VpTZXnvK.cjs} +1 -1
  90. package/dist/{threePreview-YeMZY7Qw.cjs → threePreview-Q8fSB5U0.cjs} +1 -1
  91. package/dist/{threePreview-fM_yCMMk.js → threePreview-w_rSKqjy.js} +4 -4
  92. package/dist/{threeSceneView-B0Si-K-g.js → threeSceneView-BEX9gMj3.js} +16 -15
  93. package/dist/{threeSceneView-DNqHyTyD.cjs → threeSceneView-_RnUHKEx.cjs} +1 -1
  94. package/dist/{threeSceneViewForCPMPIP-QqobgKqL.js → threeSceneViewForCPMPIP-C9VdJLKv.js} +8 -8
  95. package/dist/{threeSceneViewForCPMPIP-B7VfFwXj.cjs → threeSceneViewForCPMPIP-CB2f5jlV.cjs} +1 -1
  96. package/dist/{threeTrackPathView-7k2jorHI.cjs → threeTrackPathView-92QVfAiq.cjs} +1 -1
  97. package/dist/{threeTrackPathView-4fzrYO07.js → threeTrackPathView-BeCkYlv6.js} +4 -4
  98. package/dist/{threeViewerHost-BfyPonp9.cjs → threeViewerHost-72UwjSXh.cjs} +1 -1
  99. package/dist/{threeViewerHost-_yA6hGHE.js → threeViewerHost-DdoyfVK0.js} +3 -3
  100. package/dist/{urdfTree-DK450tLa.cjs → urdfTree-B72ps0XA.cjs} +1 -1
  101. package/dist/{urdfTree-Crc6_c_f.js → urdfTree-DY_PJG4H.js} +1 -1
  102. package/dist/{workpieceTreePanel-g8lvT_yP.js → workpieceTreePanel-B3oPVOh9.js} +4 -4
  103. package/dist/{workpieceTreePanel-a72VDGqM.cjs → workpieceTreePanel-ZO1UvaT0.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-D6Ofpm75.cjs +0 -1
  106. package/dist/index-BBuhs0ay.cjs +0 -1
  107. package/dist/index-B_K-miXW.cjs +0 -1
  108. package/dist/index-Bi3chwDQ.cjs +0 -104
  109. package/dist/index-C7RuokDP.cjs +0 -1
  110. package/dist/index-CFjmSYEv.cjs +0 -1
  111. package/dist/index-CLiXOvYt.js +0 -159
  112. package/dist/index-CMDhafac.js +0 -620
  113. package/dist/index-CjYwnKjV.js +0 -56
  114. package/dist/index-CwTW_wuh.js +0 -9561
  115. package/dist/index-DLQrTFGN.cjs +0 -1
  116. package/dist/index-DmBnQ7BX.cjs +0 -2
  117. package/dist/index-aziCJXBJ.cjs +0 -7
  118. package/dist/obj/model.mtl +0 -42
  119. package/dist/obj/model.obj +0 -26110
  120. package/public/obj/model.mtl +0 -42
  121. package/public/obj/model.obj +0 -26110
@@ -1,9 +1,9 @@
1
1
  import { watch as ze, ref as v, computed as qe, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, createElementBlock as ue, openBlock as pe, createElementVNode as i, createVNode as a, unref as f, withCtx as l, createTextVNode as C, toDisplayString as we, Fragment as Fe, renderList as Re, withModifiers as Me } from "vue";
2
2
  import { s as G, u as Ge, g as Qe } from "./request-CoGtW0Ux.js";
3
- import { f as de, w as Oe } from "./index-DG7fwVK4.js";
4
- import { s as je, b as He, p as he, n as Je, g as Ke, c as We, u as Xe } from "./menu-B5Ed9tCx.js";
5
- import { E as Ye, f as be } from "./index-C6e8tITh.js";
6
- import { f as Ze, i as et, e as tt, a as ot } from "./index-BhssV5Si.js";
3
+ import { f as de, w as Oe } from "./index-BBFKG5Lg.js";
4
+ import { s as je, b as He, p as he, n as Je, g as Ke, c as We, u as Xe } from "./menu-B6brhvAI.js";
5
+ import { E as Ye, f as be } from "./index-BWNRm72Z.js";
6
+ import { f as Ze, i as et, e as tt, a as ot } from "./index-BRxMnV1e.js";
7
7
  import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
8
  import { s as at } from "./index-CnjGqJZS.js";
9
9
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,4 +1,4 @@
1
- import { s as h, b as l, p as w, n as F } from "./menu-B5Ed9tCx.js";
1
+ import { s as h, b as l, p as w, n as F } from "./menu-B6brhvAI.js";
2
2
  import { s as f } from "./request-CoGtW0Ux.js";
3
3
  import { watch as p } from "vue";
4
4
  const P = l(w), { systemUrl: s, extraUrl: o } = h(P);
@@ -1,18 +1,18 @@
1
1
  import { ref as L, resolveComponent as Q, createBlock as q, openBlock as y, defineComponent as i0, computed as i2, watch as W2, createElementBlock as A, createVNode as t2, withCtx as H, createElementVNode as n2, Fragment as O2, renderList as V2, withModifiers as xe, normalizeClass as Ze, toDisplayString as I2, createSlots as ye, renderSlot as S2, nextTick as O0, onMounted as ue, createTextVNode as I0, isRef as ur, isReactive as fr, toRaw as pr, createCommentVNode as c2, onBeforeUnmount as I4, normalizeStyle as L0, resolveDynamicComponent as g3, normalizeProps as gr, guardReactiveProps as mr, unref as H0, mergeProps as w1, reactive as F3, inject as r6, withDirectives as i3, vShow as a6, watchEffect as Le, onUnmounted as Pt, resolveDirective as vr, h as Ei, toRefs as wr } from "vue";
2
- import { aa as xr, ab as br, U as Fs, g as _r, ac as yr, ad as Sr, ae as Cr, a8 as Bi, af as kr, ag as Dr, ah as Or, ai as Mr, aj as Li, ak as Hi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js";
2
+ import { aa as xr, ab as br, U as Fs, g as _r, ac as yr, ad as Sr, ae as Cr, a8 as Bi, af as kr, ag as Dr, ah as Or, ai as Mr, aj as Li, ak as Hi } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js";
3
3
  import { _ as A2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { S as yt } from "./index-BHtNKL1L.js";
5
5
  import { m as qs, n as Ys, E as ze, i as G6, K as Tr, s as zr, N as Pr, z as Vr, A as Ar, J as Er, b as Br } from "./request-CoGtW0Ux.js";
6
- import { d as me } from "./dayjs.min-D2kum5JL.js";
6
+ import { d as me } from "./dayjs.min-BL2Zt4iO.js";
7
7
  import { _ as be } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
- import { i as Ii, L as Ks } from "./index-DG7fwVK4.js";
9
- import { R as Lr, T as Gi, a as G4, p as gt, s as St, u as N4, c as G0, h as Xs, N as m3, f as Hr } from "./menu-B5Ed9tCx.js";
8
+ import { h as Ii, K as Ks } from "./index-BBFKG5Lg.js";
9
+ import { R as Lr, T as Gi, a as G4, p as gt, s as St, u as N4, c as G0, h as Xs, N as m3, f as Hr } from "./menu-B6brhvAI.js";
10
10
  /* empty css */
11
11
  import { u as N6 } from "./index-BIV-s4QY.js";
12
12
  import { s as R4 } from "./index-CnjGqJZS.js";
13
- import { T as Ni, a as Ir } from "./threeViewerHost-_yA6hGHE.js";
13
+ import { T as Ni, a as Ir } from "./threeViewerHost-DdoyfVK0.js";
14
14
  import { E as Gr } from "./index-C81Qb0f2.js";
15
- import { A as Nr } from "./index-DH0ChZga.js";
15
+ import { A as Nr } from "./index-lH4Qm1Ga.js";
16
16
  var Rr = "[object Date]";
17
17
  function $r(n) {
18
18
  return qs(n) && Ys(n) == Rr;
@@ -1,26 +1,26 @@
1
- "use strict";var Et="0123456789abcdefghijklmnopqrstuvwxyz";function A(r){return Et.charAt(r)}function Dt(r,t){return r&t}function Z(r,t){return r|t}function ut(r,t){return r^t}function at(r,t){return r&~t}function xt(r){if(r==0)return-1;var t=0;return(r&65535)==0&&(r>>=16,t+=16),(r&255)==0&&(r>>=8,t+=8),(r&15)==0&&(r>>=4,t+=4),(r&3)==0&&(r>>=2,t+=2),(r&1)==0&&++t,t}function Rt(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Tt="=";function W(r){var t,e,i="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),i+=_.charAt(e>>6)+_.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),i+=_.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),i+=_.charAt(e>>2)+_.charAt((e&3)<<4));(i.length&3)>0;)i+=Tt;return i}function lt(r){var t="",e,i=0,n=0;for(e=0;e<r.length&&r.charAt(e)!=Tt;++e){var s=_.indexOf(r.charAt(e));s<0||(i==0?(t+=A(s>>2),n=s&3,i=1):i==1?(t+=A(n<<2|s>>4),n=s&15,i=2):i==2?(t+=A(n),t+=A(s>>2),n=s&3,i=3):(t+=A(n<<2|s>>4),t+=A(s&15),i=0))}return i==1&&(t+=A(n<<2)),t}var H,Bt={decode:function(r){var t;if(H===void 0){var e="0123456789ABCDEF",i=` \f
2
- \r  \u2028\u2029`;for(H={},t=0;t<16;++t)H[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)H[e.charAt(t)]=t;for(t=0;t<i.length;++t)H[i.charAt(t)]=-1}var n=[],s=0,h=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if(o=H[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++h>=2?(n[n.length]=s,s=0,h=0):s<<=4}}if(h)throw new Error("Hex encoding incomplete: 4 bits missing");return n}},P,st={decode:function(r){var t;if(P===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=`= \f
3
- \r  \u2028\u2029`;for(P=Object.create(null),t=0;t<64;++t)P[e.charAt(t)]=t;for(P["-"]=62,P._=63,t=0;t<i.length;++t)P[i.charAt(t)]=-1}var n=[],s=0,h=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if(o=P[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++h>=4?(n[n.length]=s>>16,n[n.length]=s>>8&255,n[n.length]=s&255,s=0,h=0):s<<=6}}switch(h){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16,n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=st.re.exec(r);if(t)if(t[1])r=t[1];else if(t[2])r=t[2];else throw new Error("RegExp out of sync");return st.decode(r)}},C=1e13,j=function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var i=this.buf,n=i.length,s,h;for(s=0;s<n;++s)h=i[s]*t+e,h<C?e=0:(e=0|h/C,h-=e*C),i[s]=h;e>0&&(i[s]=e)},r.prototype.sub=function(t){var e=this.buf,i=e.length,n,s;for(n=0;n<i;++n)s=e[n]-t,s<0?(s+=C,t=1):t=0,e[n]=s;for(;e[e.length-1]===0;)e.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),n=e.length-2;n>=0;--n)i+=(C+e[n]).toString().substring(1);return i},r.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;i>=0;--i)e=e*C+t[i];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),mt="…",At=/^(\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)?)?$/,Ot=/^(\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 F(r,t){return r.length>t&&(r=r.substring(0,t)+mt),r}var it=function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},r.prototype.hexDump=function(t,e,i){for(var n="",s=t;s<e;++s)if(n+=this.hexByte(this.get(s)),i!==!0)switch(s&15){case 7:n+=" ";break;case 15:n+=`
4
- `;break;default:n+=" "}return n},r.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var n=this.get(i);if(n<32||n>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var i="",n=t;n<e;++n)i+=String.fromCharCode(this.get(n));return i},r.prototype.parseStringUTF=function(t,e){for(var i="",n=t;n<e;){var s=this.get(n++);s<128?i+=String.fromCharCode(s):s>191&&s<224?i+=String.fromCharCode((s&31)<<6|this.get(n++)&63):i+=String.fromCharCode((s&15)<<12|(this.get(n++)&63)<<6|this.get(n++)&63)}return i},r.prototype.parseStringBMP=function(t,e){for(var i="",n,s,h=t;h<e;)n=this.get(h++),s=this.get(h++),i+=String.fromCharCode(n<<8|s);return i},r.prototype.parseTime=function(t,e,i){var n=this.parseStringISO(t,e),s=(i?At:Ot).exec(n);return s?(i&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),n=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(n+=":"+s[5],s[6]&&(n+=":"+s[6],s[7]&&(n+="."+s[7]))),s[8]&&(n+=" UTC",s[8]!="Z"&&(n+=s[8],s[9]&&(n+=":"+s[9]))),n):"Unrecognized time: "+n},r.prototype.parseInteger=function(t,e){for(var i=this.get(t),n=i>127,s=n?255:0,h,o="";i==s&&++t<e;)i=this.get(t);if(h=e-t,h===0)return n?-1:0;if(h>4){for(o=i,h<<=3;((+o^s)&128)==0;)o=+o<<1,--h;o="("+h+` bit)
5
- `}n&&(i=i-256);for(var f=new j(i),a=t+1;a<e;++a)f.mulAdd(256,this.get(a));return o+f.toString()},r.prototype.parseBitString=function(t,e,i){for(var n=this.get(t),s=(e-t-1<<3)-n,h="("+s+` bit)
6
- `,o="",f=t+1;f<e;++f){for(var a=this.get(f),l=f==e-1?n:0,g=7;g>=l;--g)o+=a>>g&1?"1":"0";if(o.length>i)return h+F(o,i)}return h+o},r.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return F(this.parseStringISO(t,e),i);var n=e-t,s="("+n+` byte)
7
- `;i/=2,n>i&&(e=t+i);for(var h=t;h<e;++h)s+=this.hexByte(this.get(h));return n>i&&(s+=mt),s},r.prototype.parseOID=function(t,e,i){for(var n="",s=new j,h=0,o=t;o<e;++o){var f=this.get(o);if(s.mulAdd(128,f&127),h+=7,!(f&128)){if(n==="")if(s=s.simplify(),s instanceof j)s.sub(80),n="2."+s.toString();else{var a=s<80?s<40?0:1:2;n=a+"."+(s-a*40)}else n+="."+s.toString();if(n.length>i)return F(n,i);s=new j,h=0}}return h>0&&(n+=".incomplete"),n},r}(),Vt=function(){function r(t,e,i,n,s){if(!(n instanceof ct))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=i,this.tag=n,this.sub=s}return r.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()}},r.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return F(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return F(this.stream.parseStringISO(e,e+i),t);case 30:return F(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
8
- `,this.sub!==null){t+=" ";for(var i=0,n=this.sub.length;i<n;++i)e+=this.sub[i].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),i=e&127;if(i==e)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(i===0)return null;e=0;for(var n=0;n<i;++n)e=e*256+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,i=this.length*2;return t.substr(e,i)},r.decode=function(t){var e;t instanceof it?e=t:e=new it(t,0);var i=new it(e),n=new ct(e),s=r.decodeLength(e),h=e.pos,o=h-i.pos,f=null,a=function(){var g=[];if(s!==null){for(var d=h+s;e.pos<d;)g[g.length]=r.decode(e);if(e.pos!=d)throw new Error("Content size is not correct for container starting at offset "+h)}else try{for(;;){var y=r.decode(e);if(y.tag.isEOC())break;g[g.length]=y}s=h-e.pos}catch(T){throw new Error("Exception while decoding undefined length content: "+T)}return g};if(n.tagConstructed)f=a();else if(n.isUniversal()&&(n.tagNumber==3||n.tagNumber==4))try{if(n.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");f=a();for(var l=0;l<f.length;++l)if(f[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{f=null}if(f===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+h);e.pos=h+Math.abs(s)}return new r(i,o,s,n,f)},r}(),ct=function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var i=new j;do e=t.get(),i.mulAdd(128,e&127);while(e&128);this.tagNumber=i.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r}(),I,It=0xdeadbeefcafe,pt=(It&16777215)==15715070,w=[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],Nt=(1<<26)/w[w.length-1],c=function(){function r(t,e,i){t!=null&&(typeof t=="number"?this.fromNumber(t,e,i):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var i=(1<<e)-1,n,s=!1,h="",o=this.t,f=this.DB-o*this.DB%e;if(o-- >0)for(f<this.DB&&(n=this[o]>>f)>0&&(s=!0,h=A(n));o>=0;)f<e?(n=(this[o]&(1<<f)-1)<<e-f,n|=this[--o]>>(f+=this.DB-e)):(n=this[o]>>(f-=e)&i,f<=0&&(f+=this.DB,--o)),n>0&&(s=!0),s&&(h+=A(n));return s?h:"0"},r.prototype.negate=function(){var t=p();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var i=this.t;if(e=i-t.t,e!=0)return this.s<0?-e:e;for(;--i>=0;)if((e=this[i]-t[i])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+G(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=p();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var i;return t<256||e.isEven()?i=new gt(e):i=new vt(e),this.exp(t,i)},r.prototype.clone=function(){var t=p();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i=this.DB-t*this.DB%8,n,s=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[s++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),(n&128)!=0&&(n|=-256),s==0&&(this.s&128)!=(n&128)&&++s,(s>0||n!=this.s)&&(e[s++]=n);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=p();return this.bitwiseTo(t,Dt,e),e},r.prototype.or=function(t){var e=p();return this.bitwiseTo(t,Z,e),e},r.prototype.xor=function(t){var e=p();return this.bitwiseTo(t,ut,e),e},r.prototype.andNot=function(t){var e=p();return this.bitwiseTo(t,at,e),e},r.prototype.not=function(){for(var t=p(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=p();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=p();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+xt(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,i=0;i<this.t;++i)t+=Rt(this[i]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,Z)},r.prototype.clearBit=function(t){return this.changeBit(t,at)},r.prototype.flipBit=function(t){return this.changeBit(t,ut)},r.prototype.add=function(t){var e=p();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=p();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=p();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=p();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=p();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=p(),i=p();return this.divRemTo(t,e,i),[e,i]},r.prototype.modPow=function(t,e){var i=t.bitLength(),n,s=O(1),h;if(i<=0)return s;i<18?n=1:i<48?n=3:i<144?n=4:i<768?n=5:n=6,i<8?h=new gt(e):e.isEven()?h=new Mt(e):h=new vt(e);var o=[],f=3,a=n-1,l=(1<<n)-1;if(o[1]=h.convert(this),n>1){var g=p();for(h.sqrTo(o[1],g);f<=l;)o[f]=p(),h.mulTo(g,o[f-2],o[f]),f+=2}var d=t.t-1,y,T=!0,b=p(),E;for(i=G(t[d])-1;d>=0;){for(i>=a?y=t[d]>>i-a&l:(y=(t[d]&(1<<i+1)-1)<<a-i,d>0&&(y|=t[d-1]>>this.DB+i-a)),f=n;(y&1)==0;)y>>=1,--f;if((i-=f)<0&&(i+=this.DB,--d),T)o[y].copyTo(s),T=!1;else{for(;f>1;)h.sqrTo(s,b),h.sqrTo(b,s),f-=2;f>0?h.sqrTo(s,b):(E=s,s=b,b=E),h.mulTo(b,o[y],s)}for(;d>=0&&(t[d]&1<<i)==0;)h.sqrTo(s,b),E=s,s=b,b=E,--i<0&&(i=this.DB-1,--d)}return h.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var i=t.clone(),n=this.clone(),s=O(1),h=O(0),o=O(0),f=O(1);i.signum()!=0;){for(;i.isEven();)i.rShiftTo(1,i),e?((!s.isEven()||!h.isEven())&&(s.addTo(this,s),h.subTo(t,h)),s.rShiftTo(1,s)):h.isEven()||h.subTo(t,h),h.rShiftTo(1,h);for(;n.isEven();)n.rShiftTo(1,n),e?((!o.isEven()||!f.isEven())&&(o.addTo(this,o),f.subTo(t,f)),o.rShiftTo(1,o)):f.isEven()||f.subTo(t,f),f.rShiftTo(1,f);i.compareTo(n)>=0?(i.subTo(n,i),e&&s.subTo(o,s),h.subTo(f,h)):(n.subTo(i,n),e&&o.subTo(s,o),f.subTo(h,f))}if(n.compareTo(r.ONE)!=0)return r.ZERO;if(f.compareTo(t)>=0)return f.subtract(t);if(f.signum()<0)f.addTo(t,f);else return f;return f.signum()<0?f.add(t):f},r.prototype.pow=function(t){return this.exp(t,new Pt)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),h=i.getLowestSetBit();if(h<0)return e;for(s<h&&(h=s),h>0&&(e.rShiftTo(h,e),i.rShiftTo(h,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return h>0&&i.lShiftTo(h,i),i},r.prototype.isProbablePrime=function(t){var e,i=this.abs();if(i.t==1&&i[0]<=w[w.length-1]){for(e=0;e<w.length;++e)if(i[0]==w[e])return!0;return!1}if(i.isEven())return!1;for(e=1;e<w.length;){for(var n=w[e],s=e+1;s<w.length&&n<Nt;)n*=w[s++];for(n=i.modInt(n);e<s;)if(n%w[e++]==0)return!1}return i.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var i;if(e==16)i=4;else if(e==8)i=3;else if(e==256)i=8;else if(e==2)i=1;else if(e==32)i=5;else if(e==4)i=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var n=t.length,s=!1,h=0;--n>=0;){var o=i==8?+t[n]&255:yt(t,n);if(o<0){t.charAt(n)=="-"&&(s=!0);continue}s=!1,h==0?this[this.t++]=o:h+i>this.DB?(this[this.t-1]|=(o&(1<<this.DB-h)-1)<<h,this[this.t++]=o>>this.DB-h):this[this.t-1]|=o<<h,h+=i,h>=this.DB&&(h-=this.DB)}i==8&&(+t[0]&128)!=0&&(this.s=-1,h>0&&(this[this.t-1]|=(1<<this.DB-h)-1<<h)),this.clamp(),s&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var i=t%this.DB,n=this.DB-i,s=(1<<n)-1,h=Math.floor(t/this.DB),o=this.s<<i&this.DM,f=this.t-1;f>=0;--f)e[f+h+1]=this[f]>>n|o,o=(this[f]&s)<<i;for(var f=h-1;f>=0;--f)e[f]=0;e[h]=o,e.t=this.t+h+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t){e.t=0;return}var n=t%this.DB,s=this.DB-n,h=(1<<n)-1;e[0]=this[i]>>n;for(var o=i+1;o<this.t;++o)e[o-i-1]|=(this[o]&h)<<s,e[o-i]=this[o]>>n;n>0&&(e[this.t-i-1]|=(this.s&h)<<s),e.t=this.t-i,e.clamp()},r.prototype.subTo=function(t,e){for(var i=0,n=0,s=Math.min(t.t,this.t);i<s;)n+=this[i]-t[i],e[i++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;i<this.t;)n+=this[i],e[i++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;i<t.t;)n-=t[i],e[i++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},r.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s<n.t;++s)e[s+i.t]=i.am(0,n[s],e,s,0,i.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),i=t.t=2*e.t;--i>=0;)t[i]=0;for(i=0;i<e.t-1;++i){var n=e.am(i,e[i],t,2*i,0,1);(t[i+e.t]+=e.am(i+1,2*e[i],t,2*i+1,n,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t<n.t){e!=null&&e.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=p());var h=p(),o=this.s,f=t.s,a=this.DB-G(n[n.t-1]);a>0?(n.lShiftTo(a,h),s.lShiftTo(a,i)):(n.copyTo(h),s.copyTo(i));var l=h.t,g=h[l-1];if(g!=0){var d=g*(1<<this.F1)+(l>1?h[l-2]>>this.F2:0),y=this.FV/d,T=(1<<this.F1)/d,b=1<<this.F2,E=i.t,M=E-l,B=e??p();for(h.dlShiftTo(M,B),i.compareTo(B)>=0&&(i[i.t++]=1,i.subTo(B,i)),r.ONE.dlShiftTo(l,B),B.subTo(h,h);h.t<l;)h[h.t++]=0;for(;--M>=0;){var q=i[--E]==g?this.DM:Math.floor(i[E]*y+(i[E-1]+b)*T);if((i[E]+=h.am(0,q,i,M,0,l))<q)for(h.dlShiftTo(M,B),i.subTo(B,i);i[E]<--q;)i.subTo(B,i)}e!=null&&(i.drShiftTo(l,e),o!=f&&r.ZERO.subTo(e,e)),i.t=l,i.clamp(),a>0&&i.rShiftTo(a,i),o<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var i=p(),n=p(),s=e.convert(this),h=G(t)-1;for(s.copyTo(i);--h>=0;)if(e.sqrTo(i,n),(t&1<<h)>0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=O(i),s=p(),h=p(),o="";for(this.divRemTo(n,s,h);s.signum()>0;)o=(i+h.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,h);return h.intValue().toString(t)+o},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,h=0,o=0,f=0;f<t.length;++f){var a=yt(t,f);if(a<0){t.charAt(f)=="-"&&this.signum()==0&&(s=!0);continue}o=e*o+a,++h>=i&&(this.dMultiply(n),this.dAddOffset(o,0),h=0,o=0)}h>0&&(this.dMultiply(Math.pow(e,h)),this.dAddOffset(o,0)),s&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,i){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Z,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var n=[],s=t&7;n.length=(t>>3)+1,e.nextBytes(n),s>0?n[0]&=(1<<s)-1:n[0]=0,this.fromString(n,256)}},r.prototype.bitwiseTo=function(t,e,i){var n,s,h=Math.min(t.t,this.t);for(n=0;n<h;++n)i[n]=e(this[n],t[n]);if(t.t<this.t){for(s=t.s&this.DM,n=h;n<this.t;++n)i[n]=e(this[n],s);i.t=this.t}else{for(s=this.s&this.DM,n=h;n<t.t;++n)i[n]=e(s,t[n]);i.t=t.t}i.s=e(this.s,t.s),i.clamp()},r.prototype.changeBit=function(t,e){var i=r.ONE.shiftLeft(t);return this.bitwiseTo(i,e,i),i},r.prototype.addTo=function(t,e){for(var i=0,n=0,s=Math.min(t.t,this.t);i<s;)n+=this[i]+t[i],e[i++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;i<this.t;)n+=this[i],e[i++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;i<t.t;)n+=t[i],e[i++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,i){var n=Math.min(this.t+t.t,e);for(i.s=0,i.t=n;n>0;)i[--n]=0;for(var s=i.t-this.t;n<s;++n)i[n+this.t]=this.am(0,t[n],i,n,0,this.t);for(var s=Math.min(t.t,e);n<s;++n)this.am(0,t[n],i,n,0,e-n);i.clamp()},r.prototype.multiplyUpperTo=function(t,e,i){--e;var n=i.t=this.t+t.t-e;for(i.s=0;--n>=0;)i[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)i[this.t+n-e]=this.am(e-n,t[n],i,0,0,this.t+n-e);i.clamp(),i.drShiftTo(1,i)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,i=this.s<0?t-1:0;if(this.t>0)if(e==0)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);t=t+1>>1,t>w.length&&(t=w.length);for(var s=p(),h=0;h<t;++h){s.fromInt(w[Math.floor(Math.random()*w.length)]);var o=s.modPow(n,this);if(o.compareTo(r.ONE)!=0&&o.compareTo(e)!=0){for(var f=1;f++<i&&o.compareTo(e)!=0;)if(o=o.modPowInt(2,this),o.compareTo(r.ONE)==0)return!1;if(o.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=p();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var i=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(i.compareTo(n)<0){var s=i;i=n,n=s}var h=i.getLowestSetBit(),o=n.getLowestSetBit();if(o<0){e(i);return}h<o&&(o=h),o>0&&(i.rShiftTo(o,i),n.rShiftTo(o,n));var f=function(){(h=i.getLowestSetBit())>0&&i.rShiftTo(h,i),(h=n.getLowestSetBit())>0&&n.rShiftTo(h,n),i.compareTo(n)>=0?(i.subTo(n,i),i.rShiftTo(1,i)):(n.subTo(i,n),n.rShiftTo(1,n)),i.signum()>0?setTimeout(f,0):(o>0&&n.lShiftTo(o,n),setTimeout(function(){e(n)},0))};setTimeout(f,10)},r.prototype.fromNumberAsync=function(t,e,i,n){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),Z,this),this.isEven()&&this.dAddOffset(1,0);var s=this,h=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(r.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){n()},0):setTimeout(h,0)};setTimeout(h,0)}else{var o=[],f=t&7;o.length=(t>>3)+1,e.nextBytes(o),f>0?o[0]&=(1<<f)-1:o[0]=0,this.fromString(o,256)}},r}(),Pt=function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r}(),gt=function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),vt=function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=p();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(c.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=p();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var i=t[e]&32767,n=i*this.mpl+((i*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(i=e+this.m.t,t[i]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),Mt=function(){function r(t){this.m=t,this.r2=p(),this.q3=p(),c.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=p();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}();function p(){return new c(null)}function S(r,t){return new c(r,t)}var dt=typeof navigator<"u";dt&&pt&&navigator.appName=="Microsoft Internet Explorer"?(c.prototype.am=function(t,e,i,n,s,h){for(var o=e&32767,f=e>>15;--h>=0;){var a=this[t]&32767,l=this[t++]>>15,g=f*a+l*o;a=o*a+((g&32767)<<15)+i[n]+(s&1073741823),s=(a>>>30)+(g>>>15)+f*l+(s>>>30),i[n++]=a&1073741823}return s},I=30):dt&&pt&&navigator.appName!="Netscape"?(c.prototype.am=function(t,e,i,n,s,h){for(;--h>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=o&67108863}return s},I=26):(c.prototype.am=function(t,e,i,n,s,h){for(var o=e&16383,f=e>>14;--h>=0;){var a=this[t]&16383,l=this[t++]>>14,g=f*a+l*o;a=o*a+((g&16383)<<14)+i[n]+s,s=(a>>28)+(g>>14)+f*l,i[n++]=a&268435455}return s},I=28);c.prototype.DB=I;c.prototype.DM=(1<<I)-1;c.prototype.DV=1<<I;var ht=52;c.prototype.FV=Math.pow(2,ht);c.prototype.F1=ht-I;c.prototype.F2=2*I-ht;var tt=[],L,D;L=48;for(D=0;D<=9;++D)tt[L++]=D;L=97;for(D=10;D<36;++D)tt[L++]=D;L=65;for(D=10;D<36;++D)tt[L++]=D;function yt(r,t){var e=tt[r.charCodeAt(t)];return e??-1}function O(r){var t=p();return t.fromInt(r),t}function G(r){var t=1,e;return(e=r>>>16)!=0&&(r=e,t+=16),(e=r>>8)!=0&&(r=e,t+=8),(e=r>>4)!=0&&(r=e,t+=4),(e=r>>2)!=0&&(r=e,t+=2),(e=r>>1)!=0&&(r=e,t+=1),t}c.ZERO=O(0);c.ONE=O(1);var qt=function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,i,n;for(e=0;e<256;++e)this.S[e]=e;for(i=0,e=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[i],this.S[i]=n;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r}();function Ht(){return new qt}var bt=256,$,V=null,R;if(V==null){V=[],R=0;var J=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var rt=new Uint32Array(256);for(window.crypto.getRandomValues(rt),J=0;J<rt.length;++J)V[R++]=rt[J]&255}var Y=0,X=function(r){if(Y=Y||0,Y>=256||R>=bt){window.removeEventListener?window.removeEventListener("mousemove",X,!1):window.detachEvent&&window.detachEvent("onmousemove",X);return}try{var t=r.x+r.y;V[R++]=t&255,Y+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",X,!1):window.attachEvent&&window.attachEvent("onmousemove",X))}function Ct(){if($==null){for($=Ht();R<bt;){var r=Math.floor(65536*Math.random());V[R++]=r&255}for($.init(V),R=0;R<V.length;++R)V[R]=0;R=0}return $.next()}var ot=function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Ct()},r}();function _t(r,t){if(t<r.length+22)return console.error("Message too long for RSA"),null;for(var e=t-r.length-6,i="",n=0;n<e;n+=2)i+="ff";var s="0001"+i+"00"+r;return S(s,16)}function Ft(r,t){if(t<r.length+11)return console.error("Message too long for RSA"),null;for(var e=[],i=r.length-1;i>=0&&t>0;){var n=r.charCodeAt(i--);n<128?e[--t]=n:n>127&&n<2048?(e[--t]=n&63|128,e[--t]=n>>6|192):(e[--t]=n&63|128,e[--t]=n>>6&63|128,e[--t]=n>>12|224)}e[--t]=0;for(var s=new ot,h=[];t>2;){for(h[0]=0;h[0]==0;)s.nextBytes(h);e[--t]=h[0]}return e[--t]=2,e[--t]=0,new c(e)}var Lt=function(){function r(){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 r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),i=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(i)<0;)e=e.add(this.p);return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=S(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,i=Ft(t,e);if(i==null)return null;var n=this.doPublic(i);if(n==null)return null;for(var s=n.toString(16),h=s.length,o=0;o<e*2-h;o++)s="0"+s;return s},r.prototype.setPrivate=function(t,e,i){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=S(t,16),this.e=parseInt(e,16),this.d=S(i,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,i,n,s,h,o,f){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=S(t,16),this.e=parseInt(e,16),this.d=S(i,16),this.p=S(n,16),this.q=S(s,16),this.dmp1=S(h,16),this.dmq1=S(o,16),this.coeff=S(f,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var i=new ot,n=t>>1;this.e=parseInt(e,16);for(var s=new c(e,16);;){for(;this.p=new c(t-n,1,i),!(this.p.subtract(c.ONE).gcd(s).compareTo(c.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new c(n,1,i),!(this.q.subtract(c.ONE).gcd(s).compareTo(c.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var h=this.p;this.p=this.q,this.q=h}var o=this.p.subtract(c.ONE),f=this.q.subtract(c.ONE),a=o.multiply(f);if(a.gcd(s).compareTo(c.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(a),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(f),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=S(t,16),i=this.doPrivate(e);return i==null?null:Kt(i,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,i){var n=new ot,s=t>>1;this.e=parseInt(e,16);var h=new c(e,16),o=this,f=function(){var a=function(){if(o.p.compareTo(o.q)<=0){var d=o.p;o.p=o.q,o.q=d}var y=o.p.subtract(c.ONE),T=o.q.subtract(c.ONE),b=y.multiply(T);b.gcd(h).compareTo(c.ONE)==0?(o.n=o.p.multiply(o.q),o.d=h.modInverse(b),o.dmp1=o.d.mod(y),o.dmq1=o.d.mod(T),o.coeff=o.q.modInverse(o.p),setTimeout(function(){i()},0)):setTimeout(f,0)},l=function(){o.q=p(),o.q.fromNumberAsync(s,1,n,function(){o.q.subtract(c.ONE).gcda(h,function(d){d.compareTo(c.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(a,0):setTimeout(l,0)})})},g=function(){o.p=p(),o.p.fromNumberAsync(t-s,1,n,function(){o.p.subtract(c.ONE).gcda(h,function(d){d.compareTo(c.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(g,0)})})};setTimeout(g,0)};setTimeout(f,0)},r.prototype.sign=function(t,e,i){var n=Ut(i),s=n+e(t).toString(),h=_t(s,this.n.bitLength()/4);if(h==null)return null;var o=this.doPrivate(h);if(o==null)return null;var f=o.toString(16);return(f.length&1)==0?f:"0"+f},r.prototype.verify=function(t,e,i){var n=S(e,16),s=this.doPublic(n);if(s==null)return null;var h=s.toString(16).replace(/^1f+00/,""),o=jt(h);return o==i(t).toString()},r}();function Kt(r,t){for(var e=r.toByteArray(),i=0;i<e.length&&e[i]==0;)++i;if(e.length-i!=t-1||e[i]!=2)return null;for(++i;e[i]!=0;)if(++i>=e.length)return null;for(var n="";++i<e.length;){var s=e[i]&255;s<128?n+=String.fromCharCode(s):s>191&&s<224?(n+=String.fromCharCode((s&31)<<6|e[i+1]&63),++i):(n+=String.fromCharCode((s&15)<<12|(e[i+1]&63)<<6|e[i+2]&63),i+=2)}return n}var Q={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Ut(r){return Q[r]||""}function jt(r){for(var t in Q)if(Q.hasOwnProperty(t)){var e=Q[t],i=e.length;if(r.substr(0,i)==e)return r.substr(i)}return r}/*!
1
+ "use strict";const S=require("vue"),lt=require("./request-BC2w2vGr.cjs"),w=require("./menu-D-MiErGd.cjs"),xt=w.defineStore("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(r){this.routerPageStructures=r}}}),Nt=w.useMenuState(w.pinia),{activeMenuPath:Be}=w.storeToRefs(Nt),Pt=w.useLoginState(w.pinia),{structureData:Mt,loginUserInfo:Oe}=w.storeToRefs(Pt),Ct=xt(w.pinia),{routerPageStructures:qt}=w.storeToRefs(Ct);w.useModelComp(w.pinia);S.ref([{label:"角色名称",value:"",name:"roleName"}]);S.ref([{label:"查询"},{label:"重置"}]);S.reactive({isFilter:!1,filterForm:{}});S.ref(!1);const Ht=S.ref([]),Ft=S.ref([]),_t=S.ref("");S.computed(()=>{var t,e,i,n,s;const r=(t=qt.value)==null?void 0:t.find(h=>{var o;return((o=h==null?void 0:h.comp)==null?void 0:o.toUpperCase())==="TABLE"});if(r){_t.value=r.name,Ft.value=(n=(i=(e=r==null?void 0:r.compData)==null?void 0:e.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:i.contents)==null?void 0:n.filter(o=>(o==null?void 0:o.label)!=="操作");const h=(s=r==null?void 0:r.compData)==null?void 0:s.map(o=>{var a;if((o==null?void 0:o.key)==="rowButton"){let f=[];return De.value?f=[...o==null?void 0:o.contents,{label:"授权"}]:f=o==null?void 0:o.contents,{...o,contents:f}}return(o==null?void 0:o.key)==="header"?{...o,contents:(a=o==null?void 0:o.contents)==null?void 0:a.map(f=>{var l,c;return{...f,isTableColHidden:(l=f==null?void 0:f.prop)==null?void 0:l.includes("授权"),isFormColHidden:(c=f==null?void 0:f.prop)==null?void 0:c.includes("授权")}})}:o});return zt(h),h}return[]});S.ref({});const kt=S.ref(),Rt=r=>r==null?void 0:r.map(t=>{var i;const e={...t,checkedButtons:[]};return e.children&&((i=e.children)==null?void 0:i.length)>0&&(e.children=Rt(e.children)),e}),Ut=r=>{for(const t in r)if(Array.isArray(r[t]))return t;return""},Lt=r=>Object.prototype.toString.call(r)==="[object Object]"&&r!==null,Kt=(r,t)=>{const e={},i=Array.isArray(r)?r==null?void 0:r.filter(n=>{var s;return!(Lt(n)&&((s=Object.keys(n))!=null&&s.includes("id")))}):null;return i&&(i==null||i.forEach((n,s)=>{var h;e[(h=t[s])==null?void 0:h.prop]=n})),e},jt=S.ref(""),zt=r=>{var s;const t=r==null?void 0:r.find(h=>(h==null?void 0:h.key)==="tableContents"),e=r==null?void 0:r.find(h=>(h==null?void 0:h.key)==="header");if(!t||!e)return"";const i=(s=t==null?void 0:t.contents)==null?void 0:s[0],n=Kt(i,e==null?void 0:e.contents);jt.value=Ut(n)};S.ref();const $t=S.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0});S.ref(0);const ct=S.ref([]);S.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]);const pt=S.ref([]);S.watch(()=>pt.value.length,()=>{var r;(r=kt.value)==null||r.setCheckedKeys([...pt.value])});S.watch(()=>$t.show,r=>{r||(ct.value=Rt(ct.value))});S.computed(()=>{var e;const r=(e=w.cloneDeep(Mt.value))==null?void 0:e.filter(i=>{var n,s;return((s=(n=i==null?void 0:i.key)==null?void 0:n.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...r==null?void 0:r.map(i=>{var h,o,a,f,l,c,g,v;const n=/button/i;let s=(a=(o=(h=i==null?void 0:i.value)==null?void 0:h.pageData)==null?void 0:o.compData)==null?void 0:a.filter(T=>n.test(T==null?void 0:T.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(T=>T.contents.map(E=>E.label)))),{path:(l=(f=i==null?void 0:i.key)==null?void 0:f.pageKey)!=null&&l.startsWith("/")?(g=(c=i==null?void 0:i.key)==null?void 0:c.pageKey)==null?void 0:g.substring(1):(v=i==null?void 0:i.key)==null?void 0:v.pageKey,buttons:s}}),...Zt.value]});const Zt=S.ref([]);Ht.value;var Gt="0123456789abcdefghijklmnopqrstuvwxyz";function V(r){return Gt.charAt(r)}function Jt(r,t){return r&t}function G(r,t){return r|t}function gt(r,t){return r^t}function dt(r,t){return r&~t}function Yt(r){if(r==0)return-1;var t=0;return(r&65535)==0&&(r>>=16,t+=16),(r&255)==0&&(r>>=8,t+=8),(r&15)==0&&(r>>=4,t+=4),(r&3)==0&&(r>>=2,t+=2),(r&1)==0&&++t,t}function Wt(r){for(var t=0;r!=0;)r&=r-1,++t;return t}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",At="=";function et(r){var t,e,i="";for(t=0;t+3<=r.length;t+=3)e=parseInt(r.substring(t,t+3),16),i+=k.charAt(e>>6)+k.charAt(e&63);for(t+1==r.length?(e=parseInt(r.substring(t,t+1),16),i+=k.charAt(e<<2)):t+2==r.length&&(e=parseInt(r.substring(t,t+2),16),i+=k.charAt(e>>2)+k.charAt((e&3)<<4));(i.length&3)>0;)i+=At;return i}function vt(r){var t="",e,i=0,n=0;for(e=0;e<r.length&&r.charAt(e)!=At;++e){var s=k.indexOf(r.charAt(e));s<0||(i==0?(t+=V(s>>2),n=s&3,i=1):i==1?(t+=V(n<<2|s>>4),n=s&15,i=2):i==2?(t+=V(n),t+=V(s>>2),n=s&3,i=3):(t+=V(n<<2|s>>4),t+=V(s&15),i=0))}return i==1&&(t+=V(n<<2)),t}var F,Xt={decode:function(r){var t;if(F===void 0){var e="0123456789ABCDEF",i=` \f
2
+ \r  \u2028\u2029`;for(F={},t=0;t<16;++t)F[e.charAt(t)]=t;for(e=e.toLowerCase(),t=10;t<16;++t)F[e.charAt(t)]=t;for(t=0;t<i.length;++t)F[i.charAt(t)]=-1}var n=[],s=0,h=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if(o=F[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++h>=2?(n[n.length]=s,s=0,h=0):s<<=4}}if(h)throw new Error("Hex encoding incomplete: 4 bits missing");return n}},C,ht={decode:function(r){var t;if(C===void 0){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=`= \f
3
+ \r  \u2028\u2029`;for(C=Object.create(null),t=0;t<64;++t)C[e.charAt(t)]=t;for(C["-"]=62,C._=63,t=0;t<i.length;++t)C[i.charAt(t)]=-1}var n=[],s=0,h=0;for(t=0;t<r.length;++t){var o=r.charAt(t);if(o=="=")break;if(o=C[o],o!=-1){if(o===void 0)throw new Error("Illegal character at offset "+t);s|=o,++h>=4?(n[n.length]=s>>16,n[n.length]=s>>8&255,n[n.length]=s&255,s=0,h=0):s<<=6}}switch(h){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16,n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(r){var t=ht.re.exec(r);if(t)if(t[1])r=t[1];else if(t[2])r=t[2];else throw new Error("RegExp out of sync");return ht.decode(r)}},_=1e13,z=function(){function r(t){this.buf=[+t||0]}return r.prototype.mulAdd=function(t,e){var i=this.buf,n=i.length,s,h;for(s=0;s<n;++s)h=i[s]*t+e,h<_?e=0:(e=0|h/_,h-=e*_),i[s]=h;e>0&&(i[s]=e)},r.prototype.sub=function(t){var e=this.buf,i=e.length,n,s;for(n=0;n<i;++n)s=e[n]-t,s<0?(s+=_,t=1):t=0,e[n]=s;for(;e[e.length-1]===0;)e.pop()},r.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),n=e.length-2;n>=0;--n)i+=(_+e[n]).toString().substring(1);return i},r.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;i>=0;--i)e=e*_+t[i];return e},r.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},r}(),Bt="…",Qt=/^(\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)?)?$/,te=/^(\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 U(r,t){return r.length>t&&(r=r.substring(0,t)+Bt),r}var nt=function(){function r(t,e){this.hexDigits="0123456789ABCDEF",t instanceof r?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=e)}return r.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},r.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},r.prototype.hexDump=function(t,e,i){for(var n="",s=t;s<e;++s)if(n+=this.hexByte(this.get(s)),i!==!0)switch(s&15){case 7:n+=" ";break;case 15:n+=`
4
+ `;break;default:n+=" "}return n},r.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var n=this.get(i);if(n<32||n>176)return!1}return!0},r.prototype.parseStringISO=function(t,e){for(var i="",n=t;n<e;++n)i+=String.fromCharCode(this.get(n));return i},r.prototype.parseStringUTF=function(t,e){for(var i="",n=t;n<e;){var s=this.get(n++);s<128?i+=String.fromCharCode(s):s>191&&s<224?i+=String.fromCharCode((s&31)<<6|this.get(n++)&63):i+=String.fromCharCode((s&15)<<12|(this.get(n++)&63)<<6|this.get(n++)&63)}return i},r.prototype.parseStringBMP=function(t,e){for(var i="",n,s,h=t;h<e;)n=this.get(h++),s=this.get(h++),i+=String.fromCharCode(n<<8|s);return i},r.prototype.parseTime=function(t,e,i){var n=this.parseStringISO(t,e),s=(i?Qt:te).exec(n);return s?(i&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),n=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(n+=":"+s[5],s[6]&&(n+=":"+s[6],s[7]&&(n+="."+s[7]))),s[8]&&(n+=" UTC",s[8]!="Z"&&(n+=s[8],s[9]&&(n+=":"+s[9]))),n):"Unrecognized time: "+n},r.prototype.parseInteger=function(t,e){for(var i=this.get(t),n=i>127,s=n?255:0,h,o="";i==s&&++t<e;)i=this.get(t);if(h=e-t,h===0)return n?-1:0;if(h>4){for(o=i,h<<=3;((+o^s)&128)==0;)o=+o<<1,--h;o="("+h+` bit)
5
+ `}n&&(i=i-256);for(var a=new z(i),f=t+1;f<e;++f)a.mulAdd(256,this.get(f));return o+a.toString()},r.prototype.parseBitString=function(t,e,i){for(var n=this.get(t),s=(e-t-1<<3)-n,h="("+s+` bit)
6
+ `,o="",a=t+1;a<e;++a){for(var f=this.get(a),l=a==e-1?n:0,c=7;c>=l;--c)o+=f>>c&1?"1":"0";if(o.length>i)return h+U(o,i)}return h+o},r.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return U(this.parseStringISO(t,e),i);var n=e-t,s="("+n+` byte)
7
+ `;i/=2,n>i&&(e=t+i);for(var h=t;h<e;++h)s+=this.hexByte(this.get(h));return n>i&&(s+=Bt),s},r.prototype.parseOID=function(t,e,i){for(var n="",s=new z,h=0,o=t;o<e;++o){var a=this.get(o);if(s.mulAdd(128,a&127),h+=7,!(a&128)){if(n==="")if(s=s.simplify(),s instanceof z)s.sub(80),n="2."+s.toString();else{var f=s<80?s<40?0:1:2;n=f+"."+(s-f*40)}else n+="."+s.toString();if(n.length>i)return U(n,i);s=new z,h=0}}return h>0&&(n+=".incomplete"),n},r}(),ee=function(){function r(t,e,i,n,s){if(!(n instanceof yt))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=i,this.tag=n,this.sub=s}return r.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()}},r.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return this.stream.get(e)===0?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return U(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return U(this.stream.parseStringISO(e,e+i),t);case 30:return U(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,this.tag.tagNumber==23)}return null},r.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},r.prototype.toPrettyString=function(t){t===void 0&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(e+=" (encapsulates)"),e+=`
8
+ `,this.sub!==null){t+=" ";for(var i=0,n=this.sub.length;i<n;++i)e+=this.sub[i].toPrettyString(t)}return e},r.prototype.posStart=function(){return this.stream.pos},r.prototype.posContent=function(){return this.stream.pos+this.header},r.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},r.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},r.decodeLength=function(t){var e=t.get(),i=e&127;if(i==e)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(i===0)return null;e=0;for(var n=0;n<i;++n)e=e*256+t.get();return e},r.prototype.getHexStringValue=function(){var t=this.toHexString(),e=this.header*2,i=this.length*2;return t.substr(e,i)},r.decode=function(t){var e;t instanceof nt?e=t:e=new nt(t,0);var i=new nt(e),n=new yt(e),s=r.decodeLength(e),h=e.pos,o=h-i.pos,a=null,f=function(){var c=[];if(s!==null){for(var g=h+s;e.pos<g;)c[c.length]=r.decode(e);if(e.pos!=g)throw new Error("Content size is not correct for container starting at offset "+h)}else try{for(;;){var v=r.decode(e);if(v.tag.isEOC())break;c[c.length]=v}s=h-e.pos}catch(T){throw new Error("Exception while decoding undefined length content: "+T)}return c};if(n.tagConstructed)a=f();else if(n.isUniversal()&&(n.tagNumber==3||n.tagNumber==4))try{if(n.tagNumber==3&&e.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=f();for(var l=0;l<a.length;++l)if(a[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{a=null}if(a===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+h);e.pos=h+Math.abs(s)}return new r(i,o,s,n,a)},r}(),yt=function(){function r(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=(e&32)!==0,this.tagNumber=e&31,this.tagNumber==31){var i=new z;do e=t.get(),i.mulAdd(128,e&127);while(e&128);this.tagNumber=i.simplify()}}return r.prototype.isUniversal=function(){return this.tagClass===0},r.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},r}(),P,ie=0xdeadbeefcafe,St=(ie&16777215)==15715070,m=[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],re=(1<<26)/m[m.length-1],p=function(){function r(t,e,i){t!=null&&(typeof t=="number"?this.fromNumber(t,e,i):e==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,e))}return r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t==8)e=3;else if(t==2)e=1;else if(t==32)e=5;else if(t==4)e=2;else return this.toRadix(t);var i=(1<<e)-1,n,s=!1,h="",o=this.t,a=this.DB-o*this.DB%e;if(o-- >0)for(a<this.DB&&(n=this[o]>>a)>0&&(s=!0,h=V(n));o>=0;)a<e?(n=(this[o]&(1<<a)-1)<<e-a,n|=this[--o]>>(a+=this.DB-e)):(n=this[o]>>(a-=e)&i,a<=0&&(a+=this.DB,--o)),n>0&&(s=!0),s&&(h+=V(n));return s?h:"0"},r.prototype.negate=function(){var t=d();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(e!=0)return e;var i=this.t;if(e=i-t.t,e!=0)return this.s<0?-e:e;for(;--i>=0;)if((e=this[i]-t[i])!=0)return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+J(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=d();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var i;return t<256||e.isEven()?i=new Tt(e):i=new bt(e),this.exp(t,i)},r.prototype.clone=function(){var t=d();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i=this.DB-t*this.DB%8,n,s=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[s++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),(n&128)!=0&&(n|=-256),s==0&&(this.s&128)!=(n&128)&&++s,(s>0||n!=this.s)&&(e[s++]=n);return e},r.prototype.equals=function(t){return this.compareTo(t)==0},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=d();return this.bitwiseTo(t,Jt,e),e},r.prototype.or=function(t){var e=d();return this.bitwiseTo(t,G,e),e},r.prototype.xor=function(t){var e=d();return this.bitwiseTo(t,gt,e),e},r.prototype.andNot=function(t){var e=d();return this.bitwiseTo(t,dt,e),e},r.prototype.not=function(){for(var t=d(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=d();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=d();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+Yt(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,i=0;i<this.t;++i)t+=Wt(this[i]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?this.s!=0:(this[e]&1<<t%this.DB)!=0},r.prototype.setBit=function(t){return this.changeBit(t,G)},r.prototype.clearBit=function(t){return this.changeBit(t,dt)},r.prototype.flipBit=function(t){return this.changeBit(t,gt)},r.prototype.add=function(t){var e=d();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=d();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=d();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=d();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=d();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=d(),i=d();return this.divRemTo(t,e,i),[e,i]},r.prototype.modPow=function(t,e){var i=t.bitLength(),n,s=I(1),h;if(i<=0)return s;i<18?n=1:i<48?n=3:i<144?n=4:i<768?n=5:n=6,i<8?h=new Tt(e):e.isEven()?h=new se(e):h=new bt(e);var o=[],a=3,f=n-1,l=(1<<n)-1;if(o[1]=h.convert(this),n>1){var c=d();for(h.sqrTo(o[1],c);a<=l;)o[a]=d(),h.mulTo(c,o[a-2],o[a]),a+=2}var g=t.t-1,v,T=!0,E=d(),x;for(i=J(t[g])-1;g>=0;){for(i>=f?v=t[g]>>i-f&l:(v=(t[g]&(1<<i+1)-1)<<f-i,g>0&&(v|=t[g-1]>>this.DB+i-f)),a=n;(v&1)==0;)v>>=1,--a;if((i-=a)<0&&(i+=this.DB,--g),T)o[v].copyTo(s),T=!1;else{for(;a>1;)h.sqrTo(s,E),h.sqrTo(E,s),a-=2;a>0?h.sqrTo(s,E):(x=s,s=E,E=x),h.mulTo(E,o[v],s)}for(;g>=0&&(t[g]&1<<i)==0;)h.sqrTo(s,E),x=s,s=E,E=x,--i<0&&(i=this.DB-1,--g)}return h.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||t.signum()==0)return r.ZERO;for(var i=t.clone(),n=this.clone(),s=I(1),h=I(0),o=I(0),a=I(1);i.signum()!=0;){for(;i.isEven();)i.rShiftTo(1,i),e?((!s.isEven()||!h.isEven())&&(s.addTo(this,s),h.subTo(t,h)),s.rShiftTo(1,s)):h.isEven()||h.subTo(t,h),h.rShiftTo(1,h);for(;n.isEven();)n.rShiftTo(1,n),e?((!o.isEven()||!a.isEven())&&(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);i.compareTo(n)>=0?(i.subTo(n,i),e&&s.subTo(o,s),h.subTo(a,h)):(n.subTo(i,n),e&&o.subTo(s,o),a.subTo(h,a))}if(n.compareTo(r.ONE)!=0)return r.ZERO;if(a.compareTo(t)>=0)return a.subtract(t);if(a.signum()<0)a.addTo(t,a);else return a;return a.signum()<0?a.add(t):a},r.prototype.pow=function(t){return this.exp(t,new ne)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var s=e.getLowestSetBit(),h=i.getLowestSetBit();if(h<0)return e;for(s<h&&(h=s),h>0&&(e.rShiftTo(h,e),i.rShiftTo(h,i));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return h>0&&i.lShiftTo(h,i),i},r.prototype.isProbablePrime=function(t){var e,i=this.abs();if(i.t==1&&i[0]<=m[m.length-1]){for(e=0;e<m.length;++e)if(i[0]==m[e])return!0;return!1}if(i.isEven())return!1;for(e=1;e<m.length;){for(var n=m[e],s=e+1;s<m.length&&n<re;)n*=m[s++];for(n=i.modInt(n);e<s;)if(n%m[e++]==0)return!1}return i.millerRabin(t)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var i;if(e==16)i=4;else if(e==8)i=3;else if(e==256)i=8;else if(e==2)i=1;else if(e==32)i=5;else if(e==4)i=2;else{this.fromRadix(t,e);return}this.t=0,this.s=0;for(var n=t.length,s=!1,h=0;--n>=0;){var o=i==8?+t[n]&255:Et(t,n);if(o<0){t.charAt(n)=="-"&&(s=!0);continue}s=!1,h==0?this[this.t++]=o:h+i>this.DB?(this[this.t-1]|=(o&(1<<this.DB-h)-1)<<h,this[this.t++]=o>>this.DB-h):this[this.t-1]|=o<<h,h+=i,h>=this.DB&&(h-=this.DB)}i==8&&(+t[0]&128)!=0&&(this.s=-1,h>0&&(this[this.t-1]|=(1<<this.DB-h)-1<<h)),this.clamp(),s&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){for(var i=t%this.DB,n=this.DB-i,s=(1<<n)-1,h=Math.floor(t/this.DB),o=this.s<<i&this.DM,a=this.t-1;a>=0;--a)e[a+h+1]=this[a]>>n|o,o=(this[a]&s)<<i;for(var a=h-1;a>=0;--a)e[a]=0;e[h]=o,e.t=this.t+h+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t){e.t=0;return}var n=t%this.DB,s=this.DB-n,h=(1<<n)-1;e[0]=this[i]>>n;for(var o=i+1;o<this.t;++o)e[o-i-1]|=(this[o]&h)<<s,e[o-i]=this[o]>>n;n>0&&(e[this.t-i-1]|=(this.s&h)<<s),e.t=this.t-i,e.clamp()},r.prototype.subTo=function(t,e){for(var i=0,n=0,s=Math.min(t.t,this.t);i<s;)n+=this[i]-t[i],e[i++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;i<this.t;)n+=this[i],e[i++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;i<t.t;)n-=t[i],e[i++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},r.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),s=i.t;for(e.t=s+n.t;--s>=0;)e[s]=0;for(s=0;s<n.t;++s)e[s+i.t]=i.am(0,n[s],e,s,0,i.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),i=t.t=2*e.t;--i>=0;)t[i]=0;for(i=0;i<e.t-1;++i){var n=e.am(i,e[i],t,2*i,0,1);(t[i+e.t]+=e.am(i+1,2*e[i],t,2*i+1,n,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var s=this.abs();if(s.t<n.t){e!=null&&e.fromInt(0),i!=null&&this.copyTo(i);return}i==null&&(i=d());var h=d(),o=this.s,a=t.s,f=this.DB-J(n[n.t-1]);f>0?(n.lShiftTo(f,h),s.lShiftTo(f,i)):(n.copyTo(h),s.copyTo(i));var l=h.t,c=h[l-1];if(c!=0){var g=c*(1<<this.F1)+(l>1?h[l-2]>>this.F2:0),v=this.FV/g,T=(1<<this.F1)/g,E=1<<this.F2,x=i.t,q=x-l,O=e??d();for(h.dlShiftTo(q,O),i.compareTo(O)>=0&&(i[i.t++]=1,i.subTo(O,i)),r.ONE.dlShiftTo(l,O),O.subTo(h,h);h.t<l;)h[h.t++]=0;for(;--q>=0;){var H=i[--x]==c?this.DM:Math.floor(i[x]*v+(i[x-1]+E)*T);if((i[x]+=h.am(0,H,i,q,0,l))<H)for(h.dlShiftTo(q,O),i.subTo(O,i);i[x]<--H;)i.subTo(O,i)}e!=null&&(i.drShiftTo(l,e),o!=a&&r.ZERO.subTo(e,e)),i.t=l,i.clamp(),f>0&&i.rShiftTo(f,i),o<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},r.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var i=d(),n=d(),s=e.convert(this),h=J(t)-1;for(s.copyTo(i);--h>=0;)if(e.sqrTo(i,n),(t&1<<h)>0)e.mulTo(n,s,i);else{var o=i;i=n,n=o}return e.revert(i)},r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=I(i),s=d(),h=d(),o="";for(this.divRemTo(n,s,h);s.signum()>0;)o=(i+h.intValue()).toString(t).substr(1)+o,s.divRemTo(n,s,h);return h.intValue().toString(t)+o},r.prototype.fromRadix=function(t,e){this.fromInt(0),e==null&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),s=!1,h=0,o=0,a=0;a<t.length;++a){var f=Et(t,a);if(f<0){t.charAt(a)=="-"&&this.signum()==0&&(s=!0);continue}o=e*o+f,++h>=i&&(this.dMultiply(n),this.dAddOffset(o,0),h=0,o=0)}h>0&&(this.dMultiply(Math.pow(e,h)),this.dAddOffset(o,0)),s&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,i){if(typeof e=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),G,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var n=[],s=t&7;n.length=(t>>3)+1,e.nextBytes(n),s>0?n[0]&=(1<<s)-1:n[0]=0,this.fromString(n,256)}},r.prototype.bitwiseTo=function(t,e,i){var n,s,h=Math.min(t.t,this.t);for(n=0;n<h;++n)i[n]=e(this[n],t[n]);if(t.t<this.t){for(s=t.s&this.DM,n=h;n<this.t;++n)i[n]=e(this[n],s);i.t=this.t}else{for(s=this.s&this.DM,n=h;n<t.t;++n)i[n]=e(s,t[n]);i.t=t.t}i.s=e(this.s,t.s),i.clamp()},r.prototype.changeBit=function(t,e){var i=r.ONE.shiftLeft(t);return this.bitwiseTo(i,e,i),i},r.prototype.addTo=function(t,e){for(var i=0,n=0,s=Math.min(t.t,this.t);i<s;)n+=this[i]+t[i],e[i++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;i<this.t;)n+=this[i],e[i++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;i<t.t;)n+=t[i],e[i++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(t!=0){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,i){var n=Math.min(this.t+t.t,e);for(i.s=0,i.t=n;n>0;)i[--n]=0;for(var s=i.t-this.t;n<s;++n)i[n+this.t]=this.am(0,t[n],i,n,0,this.t);for(var s=Math.min(t.t,e);n<s;++n)this.am(0,t[n],i,n,0,e-n);i.clamp()},r.prototype.multiplyUpperTo=function(t,e,i){--e;var n=i.t=this.t+t.t-e;for(i.s=0;--n>=0;)i[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)i[this.t+n-e]=this.am(e-n,t[n],i,0,0,this.t+n-e);i.clamp(),i.drShiftTo(1,i)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,i=this.s<0?t-1:0;if(this.t>0)if(e==0)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);t=t+1>>1,t>m.length&&(t=m.length);for(var s=d(),h=0;h<t;++h){s.fromInt(m[Math.floor(Math.random()*m.length)]);var o=s.modPow(n,this);if(o.compareTo(r.ONE)!=0&&o.compareTo(e)!=0){for(var a=1;a++<i&&o.compareTo(e)!=0;)if(o=o.modPowInt(2,this),o.compareTo(r.ONE)==0)return!1;if(o.compareTo(e)!=0)return!1}}return!0},r.prototype.square=function(){var t=d();return this.squareTo(t),t},r.prototype.gcda=function(t,e){var i=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(i.compareTo(n)<0){var s=i;i=n,n=s}var h=i.getLowestSetBit(),o=n.getLowestSetBit();if(o<0){e(i);return}h<o&&(o=h),o>0&&(i.rShiftTo(o,i),n.rShiftTo(o,n));var a=function(){(h=i.getLowestSetBit())>0&&i.rShiftTo(h,i),(h=n.getLowestSetBit())>0&&n.rShiftTo(h,n),i.compareTo(n)>=0?(i.subTo(n,i),i.rShiftTo(1,i)):(n.subTo(i,n),n.rShiftTo(1,n)),i.signum()>0?setTimeout(a,0):(o>0&&n.lShiftTo(o,n),setTimeout(function(){e(n)},0))};setTimeout(a,10)},r.prototype.fromNumberAsync=function(t,e,i,n){if(typeof e=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),G,this),this.isEven()&&this.dAddOffset(1,0);var s=this,h=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(r.ONE.shiftLeft(t-1),s),s.isProbablePrime(e)?setTimeout(function(){n()},0):setTimeout(h,0)};setTimeout(h,0)}else{var o=[],a=t&7;o.length=(t>>3)+1,e.nextBytes(o),a>0?o[0]&=(1<<a)-1:o[0]=0,this.fromString(o,256)}},r}(),ne=function(){function r(){}return r.prototype.convert=function(t){return t},r.prototype.revert=function(t){return t},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},r.prototype.sqrTo=function(t,e){t.squareTo(e)},r}(),Tt=function(){function r(t){this.m=t}return r.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),bt=function(){function r(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return r.prototype.convert=function(t){var e=d();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(p.ZERO)>0&&this.m.subTo(e,e),e},r.prototype.revert=function(t){var e=d();return t.copyTo(e),this.reduce(e),e},r.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var i=t[e]&32767,n=i*this.mpl+((i*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(i=e+this.m.t,t[i]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}(),se=function(){function r(t){this.m=t,this.r2=d(),this.q3=d(),p.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return r.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=d();return t.copyTo(e),this.reduce(e),e},r.prototype.revert=function(t){return t},r.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},r.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},r.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r}();function d(){return new p(null)}function b(r,t){return new p(r,t)}var wt=typeof navigator<"u";wt&&St&&navigator.appName=="Microsoft Internet Explorer"?(p.prototype.am=function(t,e,i,n,s,h){for(var o=e&32767,a=e>>15;--h>=0;){var f=this[t]&32767,l=this[t++]>>15,c=a*f+l*o;f=o*f+((c&32767)<<15)+i[n]+(s&1073741823),s=(f>>>30)+(c>>>15)+a*l+(s>>>30),i[n++]=f&1073741823}return s},P=30):wt&&St&&navigator.appName!="Netscape"?(p.prototype.am=function(t,e,i,n,s,h){for(;--h>=0;){var o=e*this[t++]+i[n]+s;s=Math.floor(o/67108864),i[n++]=o&67108863}return s},P=26):(p.prototype.am=function(t,e,i,n,s,h){for(var o=e&16383,a=e>>14;--h>=0;){var f=this[t]&16383,l=this[t++]>>14,c=a*f+l*o;f=o*f+((c&16383)<<14)+i[n]+s,s=(f>>28)+(c>>14)+a*l,i[n++]=f&268435455}return s},P=28);p.prototype.DB=P;p.prototype.DM=(1<<P)-1;p.prototype.DV=1<<P;var ut=52;p.prototype.FV=Math.pow(2,ut);p.prototype.F1=ut-P;p.prototype.F2=2*P-ut;var it=[],L,R;L=48;for(R=0;R<=9;++R)it[L++]=R;L=97;for(R=10;R<36;++R)it[L++]=R;L=65;for(R=10;R<36;++R)it[L++]=R;function Et(r,t){var e=it[r.charCodeAt(t)];return e??-1}function I(r){var t=d();return t.fromInt(r),t}function J(r){var t=1,e;return(e=r>>>16)!=0&&(r=e,t+=16),(e=r>>8)!=0&&(r=e,t+=8),(e=r>>4)!=0&&(r=e,t+=4),(e=r>>2)!=0&&(r=e,t+=2),(e=r>>1)!=0&&(r=e,t+=1),t}p.ZERO=I(0);p.ONE=I(1);var oe=function(){function r(){this.i=0,this.j=0,this.S=[]}return r.prototype.init=function(t){var e,i,n;for(e=0;e<256;++e)this.S[e]=e;for(i=0,e=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[i],this.S[i]=n;this.i=0,this.j=0},r.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},r}();function he(){return new oe}var Ot=256,Y,N=null,B;if(N==null){N=[],B=0;var W=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var st=new Uint32Array(256);for(window.crypto.getRandomValues(st),W=0;W<st.length;++W)N[B++]=st[W]&255}var X=0,Q=function(r){if(X=X||0,X>=256||B>=Ot){window.removeEventListener?window.removeEventListener("mousemove",Q,!1):window.detachEvent&&window.detachEvent("onmousemove",Q);return}try{var t=r.x+r.y;N[B++]=t&255,X+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Q,!1):window.attachEvent&&window.attachEvent("onmousemove",Q))}function ae(){if(Y==null){for(Y=he();B<Ot;){var r=Math.floor(65536*Math.random());N[B++]=r&255}for(Y.init(N),B=0;B<N.length;++B)N[B]=0;B=0}return Y.next()}var at=function(){function r(){}return r.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=ae()},r}();function ue(r,t){if(t<r.length+22)return console.error("Message too long for RSA"),null;for(var e=t-r.length-6,i="",n=0;n<e;n+=2)i+="ff";var s="0001"+i+"00"+r;return b(s,16)}function fe(r,t){if(t<r.length+11)return console.error("Message too long for RSA"),null;for(var e=[],i=r.length-1;i>=0&&t>0;){var n=r.charCodeAt(i--);n<128?e[--t]=n:n>127&&n<2048?(e[--t]=n&63|128,e[--t]=n>>6|192):(e[--t]=n&63|128,e[--t]=n>>6&63|128,e[--t]=n>>12|224)}e[--t]=0;for(var s=new at,h=[];t>2;){for(h[0]=0;h[0]==0;)s.nextBytes(h);e[--t]=h[0]}return e[--t]=2,e[--t]=0,new p(e)}var le=function(){function r(){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 r.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},r.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),i=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(i)<0;)e=e.add(this.p);return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},r.prototype.setPublic=function(t,e){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},r.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,i=fe(t,e);if(i==null)return null;var n=this.doPublic(i);if(n==null)return null;for(var s=n.toString(16),h=s.length,o=0;o<e*2-h;o++)s="0"+s;return s},r.prototype.setPrivate=function(t,e,i){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16),this.d=b(i,16)):console.error("Invalid RSA private key")},r.prototype.setPrivateEx=function(t,e,i,n,s,h,o,a){t!=null&&e!=null&&t.length>0&&e.length>0?(this.n=b(t,16),this.e=parseInt(e,16),this.d=b(i,16),this.p=b(n,16),this.q=b(s,16),this.dmp1=b(h,16),this.dmq1=b(o,16),this.coeff=b(a,16)):console.error("Invalid RSA private key")},r.prototype.generate=function(t,e){var i=new at,n=t>>1;this.e=parseInt(e,16);for(var s=new p(e,16);;){for(;this.p=new p(t-n,1,i),!(this.p.subtract(p.ONE).gcd(s).compareTo(p.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new p(n,1,i),!(this.q.subtract(p.ONE).gcd(s).compareTo(p.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var h=this.p;this.p=this.q,this.q=h}var o=this.p.subtract(p.ONE),a=this.q.subtract(p.ONE),f=o.multiply(a);if(f.gcd(s).compareTo(p.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(f),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},r.prototype.decrypt=function(t){var e=b(t,16),i=this.doPrivate(e);return i==null?null:ce(i,this.n.bitLength()+7>>3)},r.prototype.generateAsync=function(t,e,i){var n=new at,s=t>>1;this.e=parseInt(e,16);var h=new p(e,16),o=this,a=function(){var f=function(){if(o.p.compareTo(o.q)<=0){var g=o.p;o.p=o.q,o.q=g}var v=o.p.subtract(p.ONE),T=o.q.subtract(p.ONE),E=v.multiply(T);E.gcd(h).compareTo(p.ONE)==0?(o.n=o.p.multiply(o.q),o.d=h.modInverse(E),o.dmp1=o.d.mod(v),o.dmq1=o.d.mod(T),o.coeff=o.q.modInverse(o.p),setTimeout(function(){i()},0)):setTimeout(a,0)},l=function(){o.q=d(),o.q.fromNumberAsync(s,1,n,function(){o.q.subtract(p.ONE).gcda(h,function(g){g.compareTo(p.ONE)==0&&o.q.isProbablePrime(10)?setTimeout(f,0):setTimeout(l,0)})})},c=function(){o.p=d(),o.p.fromNumberAsync(t-s,1,n,function(){o.p.subtract(p.ONE).gcda(h,function(g){g.compareTo(p.ONE)==0&&o.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)})})};setTimeout(c,0)};setTimeout(a,0)},r.prototype.sign=function(t,e,i){var n=pe(i),s=n+e(t).toString(),h=ue(s,this.n.bitLength()/4);if(h==null)return null;var o=this.doPrivate(h);if(o==null)return null;var a=o.toString(16);return(a.length&1)==0?a:"0"+a},r.prototype.verify=function(t,e,i){var n=b(e,16),s=this.doPublic(n);if(s==null)return null;var h=s.toString(16).replace(/^1f+00/,""),o=ge(h);return o==i(t).toString()},r}();function ce(r,t){for(var e=r.toByteArray(),i=0;i<e.length&&e[i]==0;)++i;if(e.length-i!=t-1||e[i]!=2)return null;for(++i;e[i]!=0;)if(++i>=e.length)return null;for(var n="";++i<e.length;){var s=e[i]&255;s<128?n+=String.fromCharCode(s):s>191&&s<224?(n+=String.fromCharCode((s&31)<<6|e[i+1]&63),++i):(n+=String.fromCharCode((s&15)<<12|(e[i+1]&63)<<6|e[i+2]&63),i+=2)}return n}var tt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function pe(r){return tt[r]||""}function ge(r){for(var t in tt)if(tt.hasOwnProperty(t)){var e=tt[t],i=e.length;if(r.substr(0,i)==e)return r.substr(i)}return r}/*!
9
9
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
10
10
  Code licensed under the BSD License:
11
11
  http://developer.yahoo.com/yui/license.html
12
12
  version: 2.9.0
13
- */var m={};m.lang={extend:function(r,t,e){if(!t||!r)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,r.prototype=new i,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var n;for(n in e)r.prototype[n]=e[n];var s=function(){},h=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(o,f){for(n=0;n<h.length;n=n+1){var a=h[n],l=f[a];typeof l=="function"&&l!=Object.prototype[a]&&(o[a]=l)}})}catch{}s(r.prototype,e)}}};/**
13
+ */var D={};D.lang={extend:function(r,t,e){if(!t||!r)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,r.prototype=new i,r.prototype.constructor=r,r.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),e){var n;for(n in e)r.prototype[n]=e[n];var s=function(){},h=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(o,a){for(n=0;n<h.length;n=n+1){var f=h[n],l=a[f];typeof l=="function"&&l!=Object.prototype[f]&&(o[f]=l)}})}catch{}s(r.prototype,e)}}};/**
14
14
  * @fileOverview
15
15
  * @name asn1-1.0.js
16
16
  * @author Kenji Urushima kenji.urushima@gmail.com
17
17
  * @version asn1 1.0.13 (2017-Jun-02)
18
18
  * @since jsrsasign 2.1
19
19
  * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
20
- */var u={};(typeof u.asn1>"u"||!u.asn1)&&(u.asn1={});u.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substr(1),i=e.length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s<i;s++)n+="f";var h=new c(n,16),o=h.xor(r).add(c.ONE);t=o.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=u,e=t.asn1,i=e.DERBoolean,n=e.DERInteger,s=e.DERBitString,h=e.DEROctetString,o=e.DERNull,f=e.DERObjectIdentifier,a=e.DEREnumerated,l=e.DERUTF8String,g=e.DERNumericString,d=e.DERPrintableString,y=e.DERTeletexString,T=e.DERIA5String,b=e.DERUTCTime,E=e.DERGeneralizedTime,M=e.DERSequence,B=e.DERSet,q=e.DERTaggedObject,k=e.ASN1Util.newObject,ft=Object.keys(r);if(ft.length!=1)throw"key of param shall be only one.";var v=ft[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new i(r[v]);if(v=="int")return new n(r[v]);if(v=="bitstr")return new s(r[v]);if(v=="octstr")return new h(r[v]);if(v=="null")return new o(r[v]);if(v=="oid")return new f(r[v]);if(v=="enum")return new a(r[v]);if(v=="utf8str")return new l(r[v]);if(v=="numstr")return new g(r[v]);if(v=="prnstr")return new d(r[v]);if(v=="telstr")return new y(r[v]);if(v=="ia5str")return new T(r[v]);if(v=="utctime")return new b(r[v]);if(v=="gentime")return new E(r[v]);if(v=="seq"){for(var K=r[v],U=[],N=0;N<K.length;N++){var et=k(K[N]);U.push(et)}return new M({array:U})}if(v=="set"){for(var K=r[v],U=[],N=0;N<K.length;N++){var et=k(K[N]);U.push(et)}return new B({array:U})}if(v=="tag"){var x=r[v];if(Object.prototype.toString.call(x)==="[object Array]"&&x.length==3){var wt=k(x[2]);return new q({tag:x[0],explicit:x[1],obj:wt})}else{var z={};if(x.explicit!==void 0&&(z.explicit=x.explicit),x.tag!==void 0&&(z.tag=x.tag),x.obj===void 0)throw"obj shall be specified for 'tag'.";return z.obj=k(x.obj),new q(z)}}},this.jsonToASN1HEX=function(r){var t=this.newObject(r);return t.getEncodedHex()}};u.asn1.ASN1Util.oidHexToInt=function(r){for(var n="",t=parseInt(r.substr(0,2),16),e=Math.floor(t/40),i=t%40,n=e+"."+i,s="",h=2;h<r.length;h+=2){var o=parseInt(r.substr(h,2),16),f=("00000000"+o.toString(2)).slice(-8);if(s=s+f.substr(1,7),f.substr(0,1)=="0"){var a=new c(s,2);n=n+"."+a.toString(10),s=""}}return n};u.asn1.ASN1Util.oidIntToHex=function(r){var t=function(o){var f=o.toString(16);return f.length==1&&(f="0"+f),f},e=function(o){var f="",a=new c(o,10),l=a.toString(2),g=7-l.length%7;g==7&&(g=0);for(var d="",y=0;y<g;y++)d+="0";l=d+l;for(var y=0;y<l.length-1;y+=7){var T=l.substr(y,7);y!=l.length-7&&(T="1"+T),f+=t(parseInt(T,2))}return f};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",n=r.split("."),s=parseInt(n[0])*40+parseInt(n[1]);i+=t(s),n.splice(0,2);for(var h=0;h<n.length;h++)i+=e(n[h]);return i};u.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var i=e.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var n=128+i;return n.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};u.asn1.DERAbstractString=function(r){u.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"?this.setString(r):typeof r.str<"u"?this.setString(r.str):typeof r.hex<"u"&&this.setStringHex(r.hex))};m.lang.extend(u.asn1.DERAbstractString,u.asn1.ASN1Object);u.asn1.DERAbstractTime=function(r){u.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),h=String(s.getFullYear());e=="utc"&&(h=h.substr(2,2));var o=n(String(s.getMonth()+1),2),f=n(String(s.getDate()),2),a=n(String(s.getHours()),2),l=n(String(s.getMinutes()),2),g=n(String(s.getSeconds()),2),d=h+o+f+a+l+g;if(i===!0){var y=s.getMilliseconds();if(y!=0){var T=n(String(y),3);T=T.replace(/[0]+$/,""),d=d+"."+T}}return d+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,i,n,s,h){var o=new Date(Date.UTC(t,e-1,i,n,s,h,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};m.lang.extend(u.asn1.DERAbstractTime,u.asn1.ASN1Object);u.asn1.DERAbstractStructured=function(r){u.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof r<"u"&&typeof r.array<"u"&&(this.asn1Array=r.array)};m.lang.extend(u.asn1.DERAbstractStructured,u.asn1.ASN1Object);u.asn1.DERBoolean=function(){u.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};m.lang.extend(u.asn1.DERBoolean,u.asn1.ASN1Object);u.asn1.DERInteger=function(r){u.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new c(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.bigint<"u"?this.setByBigInteger(r.bigint):typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))};m.lang.extend(u.asn1.DERInteger,u.asn1.ASN1Object);u.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=u.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}u.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,i){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+i},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var i=8-e.length%8;i==8&&(i=0);for(var n=0;n<=i;n++)e+="0";for(var s="",n=0;n<e.length-1;n+=8){var h=e.substr(n,8),o=parseInt(h,2).toString(16);o.length==1&&(o="0"+o),s+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+i+s},this.setByBooleanArray=function(e){for(var i="",n=0;n<e.length;n++)e[n]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(e){for(var i=new Array(e),n=0;n<e;n++)i[n]=!1;return i},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex<"u"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin<"u"?this.setByBinaryString(r.bin):typeof r.array<"u"&&this.setByBooleanArray(r.array))};m.lang.extend(u.asn1.DERBitString,u.asn1.ASN1Object);u.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=u.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}u.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"};m.lang.extend(u.asn1.DEROctetString,u.asn1.DERAbstractString);u.asn1.DERNull=function(){u.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};m.lang.extend(u.asn1.DERNull,u.asn1.ASN1Object);u.asn1.DERObjectIdentifier=function(r){var t=function(i){var n=i.toString(16);return n.length==1&&(n="0"+n),n},e=function(i){var n="",s=new c(i,10),h=s.toString(2),o=7-h.length%7;o==7&&(o=0);for(var f="",a=0;a<o;a++)f+="0";h=f+h;for(var a=0;a<h.length-1;a+=7){var l=h.substr(a,7);a!=h.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};u.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueOidString=function(i){if(!i.match(/^[0-9.]+$/))throw"malformed oid string: "+i;var n="",s=i.split("."),h=parseInt(s[0])*40+parseInt(s[1]);n+=t(h),s.splice(0,2);for(var o=0;o<s.length;o++)n+=e(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(i){var n=u.asn1.x509.OID.name2oid(i);if(n!=="")this.setValueOidString(n);else throw"DERObjectIdentifier oidName undefined: "+i},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))};m.lang.extend(u.asn1.DERObjectIdentifier,u.asn1.ASN1Object);u.asn1.DEREnumerated=function(r){u.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new c(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))};m.lang.extend(u.asn1.DEREnumerated,u.asn1.ASN1Object);u.asn1.DERUTF8String=function(r){u.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"};m.lang.extend(u.asn1.DERUTF8String,u.asn1.DERAbstractString);u.asn1.DERNumericString=function(r){u.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"};m.lang.extend(u.asn1.DERNumericString,u.asn1.DERAbstractString);u.asn1.DERPrintableString=function(r){u.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"};m.lang.extend(u.asn1.DERPrintableString,u.asn1.DERAbstractString);u.asn1.DERTeletexString=function(r){u.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"};m.lang.extend(u.asn1.DERTeletexString,u.asn1.DERAbstractString);u.asn1.DERIA5String=function(r){u.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"};m.lang.extend(u.asn1.DERIA5String,u.asn1.DERAbstractString);u.asn1.DERUTCTime=function(r){u.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))};m.lang.extend(u.asn1.DERUTCTime,u.asn1.DERAbstractTime);u.asn1.DERGeneralizedTime=function(r){u.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))};m.lang.extend(u.asn1.DERGeneralizedTime,u.asn1.DERAbstractTime);u.asn1.DERSequence=function(r){u.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t+=i.getEncodedHex()}return this.hV=t,this.hV}};m.lang.extend(u.asn1.DERSequence,u.asn1.DERAbstractStructured);u.asn1.DERSet=function(r){u.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t.push(i.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof r<"u"&&typeof r.sortflag<"u"&&r.sortflag==!1&&(this.sortFlag=!1)};m.lang.extend(u.asn1.DERSet,u.asn1.DERAbstractStructured);u.asn1.DERTaggedObject=function(r){u.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,i){this.hT=e,this.isExplicit=t,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.tag<"u"&&(this.hT=r.tag),typeof r.explicit<"u"&&(this.isExplicit=r.explicit),typeof r.obj<"u"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};m.lang.extend(u.asn1.DERTaggedObject,u.asn1.ASN1Object);var kt=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),St=function(r){kt(t,r);function t(e){var i=r.call(this)||this;return e&&(typeof e=="string"?i.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&i.parsePropertiesFrom(e)),i}return t.prototype.parseKey=function(e){try{var i=0,n=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,h=s.test(e)?Bt.decode(e):st.unarmor(e),o=Vt.decode(h);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){i=o.sub[1].getHexStringValue(),this.n=S(i,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var f=o.sub[3].getHexStringValue();this.d=S(f,16);var a=o.sub[4].getHexStringValue();this.p=S(a,16);var l=o.sub[5].getHexStringValue();this.q=S(l,16);var g=o.sub[6].getHexStringValue();this.dmp1=S(g,16);var d=o.sub[7].getHexStringValue();this.dmq1=S(d,16);var y=o.sub[8].getHexStringValue();this.coeff=S(y,16)}else if(o.sub.length===2)if(o.sub[0].sub){var T=o.sub[1],b=T.sub[0];i=b.sub[0].getHexStringValue(),this.n=S(i,16),n=b.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else i=o.sub[0].getHexStringValue(),this.n=S(i,16),n=o.sub[1].getHexStringValue(),this.e=parseInt(n,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new u.asn1.DERInteger({int:0}),new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e}),new u.asn1.DERInteger({bigint:this.d}),new u.asn1.DERInteger({bigint:this.p}),new u.asn1.DERInteger({bigint:this.q}),new u.asn1.DERInteger({bigint:this.dmp1}),new u.asn1.DERInteger({bigint:this.dmq1}),new u.asn1.DERInteger({bigint:this.coeff})]},i=new u.asn1.DERSequence(e);return i.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return W(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new u.asn1.DERSequence({array:[new u.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new u.asn1.DERNull]}),i=new u.asn1.DERSequence({array:[new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e})]}),n=new u.asn1.DERBitString({hex:"00"+i.getEncodedHex()}),s=new u.asn1.DERSequence({array:[e,n]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return W(this.getPublicBaseKey())},t.wordwrap=function(e,i){if(i=i||64,!e)return e;var n="(.{1,"+i+`})( +|$
20
+ */var u={};(typeof u.asn1>"u"||!u.asn1)&&(u.asn1={});u.asn1.ASN1Util=new function(){this.integerToByteHex=function(r){var t=r.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(r){var t=r.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var e=t.substr(1),i=e.length;i%2==1?i+=1:t.match(/^[0-7]/)||(i+=2);for(var n="",s=0;s<i;s++)n+="f";var h=new p(n,16),o=h.xor(r).add(p.ONE);t=o.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(r,t){return hextopem(r,t)},this.newObject=function(r){var t=u,e=t.asn1,i=e.DERBoolean,n=e.DERInteger,s=e.DERBitString,h=e.DEROctetString,o=e.DERNull,a=e.DERObjectIdentifier,f=e.DEREnumerated,l=e.DERUTF8String,c=e.DERNumericString,g=e.DERPrintableString,v=e.DERTeletexString,T=e.DERIA5String,E=e.DERUTCTime,x=e.DERGeneralizedTime,q=e.DERSequence,O=e.DERSet,H=e.DERTaggedObject,$=e.ASN1Util.newObject,ft=Object.keys(r);if(ft.length!=1)throw"key of param shall be only one.";var y=ft[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+y+":")==-1)throw"undefined key: "+y;if(y=="bool")return new i(r[y]);if(y=="int")return new n(r[y]);if(y=="bitstr")return new s(r[y]);if(y=="octstr")return new h(r[y]);if(y=="null")return new o(r[y]);if(y=="oid")return new a(r[y]);if(y=="enum")return new f(r[y]);if(y=="utf8str")return new l(r[y]);if(y=="numstr")return new c(r[y]);if(y=="prnstr")return new g(r[y]);if(y=="telstr")return new v(r[y]);if(y=="ia5str")return new T(r[y]);if(y=="utctime")return new E(r[y]);if(y=="gentime")return new x(r[y]);if(y=="seq"){for(var K=r[y],j=[],M=0;M<K.length;M++){var rt=$(K[M]);j.push(rt)}return new q({array:j})}if(y=="set"){for(var K=r[y],j=[],M=0;M<K.length;M++){var rt=$(K[M]);j.push(rt)}return new O({array:j})}if(y=="tag"){var A=r[y];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var It=$(A[2]);return new H({tag:A[0],explicit:A[1],obj:It})}else{var Z={};if(A.explicit!==void 0&&(Z.explicit=A.explicit),A.tag!==void 0&&(Z.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return Z.obj=$(A.obj),new H(Z)}}},this.jsonToASN1HEX=function(r){var t=this.newObject(r);return t.getEncodedHex()}};u.asn1.ASN1Util.oidHexToInt=function(r){for(var n="",t=parseInt(r.substr(0,2),16),e=Math.floor(t/40),i=t%40,n=e+"."+i,s="",h=2;h<r.length;h+=2){var o=parseInt(r.substr(h,2),16),a=("00000000"+o.toString(2)).slice(-8);if(s=s+a.substr(1,7),a.substr(0,1)=="0"){var f=new p(s,2);n=n+"."+f.toString(10),s=""}}return n};u.asn1.ASN1Util.oidIntToHex=function(r){var t=function(o){var a=o.toString(16);return a.length==1&&(a="0"+a),a},e=function(o){var a="",f=new p(o,10),l=f.toString(2),c=7-l.length%7;c==7&&(c=0);for(var g="",v=0;v<c;v++)g+="0";l=g+l;for(var v=0;v<l.length-1;v+=7){var T=l.substr(v,7);v!=l.length-7&&(T="1"+T),a+=t(parseInt(T,2))}return a};if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var i="",n=r.split("."),s=parseInt(n[0])*40+parseInt(n[1]);i+=t(s),n.splice(0,2);for(var h=0;h<n.length;h++)i+=e(n[h]);return i};u.asn1.ASN1Object=function(){var r="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+r.length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var i=e.length/2;if(i>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var n=128+i;return n.toString(16)+e},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};u.asn1.DERAbstractString=function(r){u.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"?this.setString(r):typeof r.str<"u"?this.setString(r.str):typeof r.hex<"u"&&this.setStringHex(r.hex))};D.lang.extend(u.asn1.DERAbstractString,u.asn1.ASN1Object);u.asn1.DERAbstractTime=function(r){u.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var e=new Date(utc);return e},this.formatDate=function(t,e,i){var n=this.zeroPadding,s=this.localDateToUTC(t),h=String(s.getFullYear());e=="utc"&&(h=h.substr(2,2));var o=n(String(s.getMonth()+1),2),a=n(String(s.getDate()),2),f=n(String(s.getHours()),2),l=n(String(s.getMinutes()),2),c=n(String(s.getSeconds()),2),g=h+o+a+f+l+c;if(i===!0){var v=s.getMilliseconds();if(v!=0){var T=n(String(v),3);T=T.replace(/[0]+$/,""),g=g+"."+T}}return g+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,i,n,s,h){var o=new Date(Date.UTC(t,e-1,i,n,s,h,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};D.lang.extend(u.asn1.DERAbstractTime,u.asn1.ASN1Object);u.asn1.DERAbstractStructured=function(r){u.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof r<"u"&&typeof r.array<"u"&&(this.asn1Array=r.array)};D.lang.extend(u.asn1.DERAbstractStructured,u.asn1.ASN1Object);u.asn1.DERBoolean=function(){u.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};D.lang.extend(u.asn1.DERBoolean,u.asn1.ASN1Object);u.asn1.DERInteger=function(r){u.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new p(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.bigint<"u"?this.setByBigInteger(r.bigint):typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))};D.lang.extend(u.asn1.DERInteger,u.asn1.ASN1Object);u.asn1.DERBitString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=u.asn1.ASN1Util.newObject(r.obj);r.hex="00"+t.getEncodedHex()}u.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,i){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+i},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var i=8-e.length%8;i==8&&(i=0);for(var n=0;n<=i;n++)e+="0";for(var s="",n=0;n<e.length-1;n+=8){var h=e.substr(n,8),o=parseInt(h,2).toString(16);o.length==1&&(o="0"+o),s+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+i+s},this.setByBooleanArray=function(e){for(var i="",n=0;n<e.length;n++)e[n]==!0?i+="1":i+="0";this.setByBinaryString(i)},this.newFalseArray=function(e){for(var i=new Array(e),n=0;n<e;n++)i[n]=!1;return i},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r=="string"&&r.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(r):typeof r.hex<"u"?this.setHexValueIncludingUnusedBits(r.hex):typeof r.bin<"u"?this.setByBinaryString(r.bin):typeof r.array<"u"&&this.setByBooleanArray(r.array))};D.lang.extend(u.asn1.DERBitString,u.asn1.ASN1Object);u.asn1.DEROctetString=function(r){if(r!==void 0&&typeof r.obj<"u"){var t=u.asn1.ASN1Util.newObject(r.obj);r.hex=t.getEncodedHex()}u.asn1.DEROctetString.superclass.constructor.call(this,r),this.hT="04"};D.lang.extend(u.asn1.DEROctetString,u.asn1.DERAbstractString);u.asn1.DERNull=function(){u.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};D.lang.extend(u.asn1.DERNull,u.asn1.ASN1Object);u.asn1.DERObjectIdentifier=function(r){var t=function(i){var n=i.toString(16);return n.length==1&&(n="0"+n),n},e=function(i){var n="",s=new p(i,10),h=s.toString(2),o=7-h.length%7;o==7&&(o=0);for(var a="",f=0;f<o;f++)a+="0";h=a+h;for(var f=0;f<h.length-1;f+=7){var l=h.substr(f,7);f!=h.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};u.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueOidString=function(i){if(!i.match(/^[0-9.]+$/))throw"malformed oid string: "+i;var n="",s=i.split("."),h=parseInt(s[0])*40+parseInt(s[1]);n+=t(h),s.splice(0,2);for(var o=0;o<s.length;o++)n+=e(s[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueName=function(i){var n=u.asn1.x509.OID.name2oid(i);if(n!=="")this.setValueOidString(n);else throw"DERObjectIdentifier oidName undefined: "+i},this.getFreshValueHex=function(){return this.hV},r!==void 0&&(typeof r=="string"?r.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(r):this.setValueName(r):r.oid!==void 0?this.setValueOidString(r.oid):r.hex!==void 0?this.setValueHex(r.hex):r.name!==void 0&&this.setValueName(r.name))};D.lang.extend(u.asn1.DERObjectIdentifier,u.asn1.ASN1Object);u.asn1.DEREnumerated=function(r){u.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=u.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new p(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.int<"u"?this.setByInteger(r.int):typeof r=="number"?this.setByInteger(r):typeof r.hex<"u"&&this.setValueHex(r.hex))};D.lang.extend(u.asn1.DEREnumerated,u.asn1.ASN1Object);u.asn1.DERUTF8String=function(r){u.asn1.DERUTF8String.superclass.constructor.call(this,r),this.hT="0c"};D.lang.extend(u.asn1.DERUTF8String,u.asn1.DERAbstractString);u.asn1.DERNumericString=function(r){u.asn1.DERNumericString.superclass.constructor.call(this,r),this.hT="12"};D.lang.extend(u.asn1.DERNumericString,u.asn1.DERAbstractString);u.asn1.DERPrintableString=function(r){u.asn1.DERPrintableString.superclass.constructor.call(this,r),this.hT="13"};D.lang.extend(u.asn1.DERPrintableString,u.asn1.DERAbstractString);u.asn1.DERTeletexString=function(r){u.asn1.DERTeletexString.superclass.constructor.call(this,r),this.hT="14"};D.lang.extend(u.asn1.DERTeletexString,u.asn1.DERAbstractString);u.asn1.DERIA5String=function(r){u.asn1.DERIA5String.superclass.constructor.call(this,r),this.hT="16"};D.lang.extend(u.asn1.DERIA5String,u.asn1.DERAbstractString);u.asn1.DERUTCTime=function(r){u.asn1.DERUTCTime.superclass.constructor.call(this,r),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{12}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date))};D.lang.extend(u.asn1.DERUTCTime,u.asn1.DERAbstractTime);u.asn1.DERGeneralizedTime=function(r){u.asn1.DERGeneralizedTime.superclass.constructor.call(this,r),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},r!==void 0&&(r.str!==void 0?this.setString(r.str):typeof r=="string"&&r.match(/^[0-9]{14}Z$/)?this.setString(r):r.hex!==void 0?this.setStringHex(r.hex):r.date!==void 0&&this.setByDate(r.date),r.millis===!0&&(this.withMillis=!0))};D.lang.extend(u.asn1.DERGeneralizedTime,u.asn1.DERAbstractTime);u.asn1.DERSequence=function(r){u.asn1.DERSequence.superclass.constructor.call(this,r),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t+=i.getEncodedHex()}return this.hV=t,this.hV}};D.lang.extend(u.asn1.DERSequence,u.asn1.DERAbstractStructured);u.asn1.DERSet=function(r){u.asn1.DERSet.superclass.constructor.call(this,r),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t.push(i.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof r<"u"&&typeof r.sortflag<"u"&&r.sortflag==!1&&(this.sortFlag=!1)};D.lang.extend(u.asn1.DERSet,u.asn1.DERAbstractStructured);u.asn1.DERTaggedObject=function(r){u.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,i){this.hT=e,this.isExplicit=t,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof r<"u"&&(typeof r.tag<"u"&&(this.hT=r.tag),typeof r.explicit<"u"&&(this.isExplicit=r.explicit),typeof r.obj<"u"&&(this.asn1Object=r.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};D.lang.extend(u.asn1.DERTaggedObject,u.asn1.ASN1Object);var de=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Dt=function(r){de(t,r);function t(e){var i=r.call(this)||this;return e&&(typeof e=="string"?i.parseKey(e):(t.hasPrivateKeyProperty(e)||t.hasPublicKeyProperty(e))&&i.parsePropertiesFrom(e)),i}return t.prototype.parseKey=function(e){try{var i=0,n=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,h=s.test(e)?Xt.decode(e):ht.unarmor(e),o=ee.decode(h);if(o.sub.length===3&&(o=o.sub[2].sub[0]),o.sub.length===9){i=o.sub[1].getHexStringValue(),this.n=b(i,16),n=o.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=o.sub[3].getHexStringValue();this.d=b(a,16);var f=o.sub[4].getHexStringValue();this.p=b(f,16);var l=o.sub[5].getHexStringValue();this.q=b(l,16);var c=o.sub[6].getHexStringValue();this.dmp1=b(c,16);var g=o.sub[7].getHexStringValue();this.dmq1=b(g,16);var v=o.sub[8].getHexStringValue();this.coeff=b(v,16)}else if(o.sub.length===2)if(o.sub[0].sub){var T=o.sub[1],E=T.sub[0];i=E.sub[0].getHexStringValue(),this.n=b(i,16),n=E.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else i=o.sub[0].getHexStringValue(),this.n=b(i,16),n=o.sub[1].getHexStringValue(),this.e=parseInt(n,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new u.asn1.DERInteger({int:0}),new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e}),new u.asn1.DERInteger({bigint:this.d}),new u.asn1.DERInteger({bigint:this.p}),new u.asn1.DERInteger({bigint:this.q}),new u.asn1.DERInteger({bigint:this.dmp1}),new u.asn1.DERInteger({bigint:this.dmq1}),new u.asn1.DERInteger({bigint:this.coeff})]},i=new u.asn1.DERSequence(e);return i.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return et(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new u.asn1.DERSequence({array:[new u.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new u.asn1.DERNull]}),i=new u.asn1.DERSequence({array:[new u.asn1.DERInteger({bigint:this.n}),new u.asn1.DERInteger({int:this.e})]}),n=new u.asn1.DERBitString({hex:"00"+i.getEncodedHex()}),s=new u.asn1.DERSequence({array:[e,n]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return et(this.getPublicBaseKey())},t.wordwrap=function(e,i){if(i=i||64,!e)return e;var n="(.{1,"+i+`})( +|$
21
21
  ?)|(.{1,`+i+"})";return e.match(RegExp(n,"g")).join(`
22
22
  `)},t.prototype.getPrivateKey=function(){var e=`-----BEGIN RSA PRIVATE KEY-----
23
23
  `;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
24
24
  `,e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
25
25
  `;return e+=t.wordwrap(this.getPublicBaseKeyB64())+`
26
- `,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Lt),nt,zt=typeof process<"u"?(nt=process.env)===null||nt===void 0?void 0:nt.npm_package_version:void 0,Zt=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new St(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(lt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return W(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,i){try{return W(this.getKey().sign(t,e,i))}catch{return!1}},r.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,lt(e),i)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new St,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=zt,r}();exports.JSEncrypt=Zt;
26
+ `,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(le),ot,ve=typeof process<"u"?(ot=process.env)===null||ot===void 0?void 0:ot.npm_package_version:void 0,ye=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Dt(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(vt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return et(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,i){try{return et(this.getKey().sign(t,e,i))}catch{return!1}},r.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,vt(e),i)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new Dt,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=ve,r}();const Vt=w.useLoginState(w.pinia),{superAdminInfo:Ve,cryptoInfo:Ie,loginUserInfo:Ne}=w.storeToRefs(Vt),Se=w.useMenuState(w.pinia),{activeMenuPath:Te}=w.storeToRefs(Se),mt=w.useModelComp(w.pinia),be="123456",we=xt(w.pinia),{routerPageStructures:Ee}=w.storeToRefs(we);S.ref(0);S.ref([{label:"用户名称",value:"",name:"userName"}]);const De=S.computed(()=>{const r=sessionStorage.getItem("isSuperAdmin");return r?JSON.parse(r):!1}),me=S.ref([]),xe=S.ref(""),Re=S.computed(()=>{var t,e,i,n,s;const r=(t=Ee.value)==null?void 0:t.find(h=>{var o;return((o=h==null?void 0:h.comp)==null?void 0:o.toUpperCase())==="TABLE"});return r?(xe.value=r.name,me.value=(n=(i=(e=r==null?void 0:r.compData)==null?void 0:e.find(o=>(o==null?void 0:o.key)==="header"))==null?void 0:i.contents)==null?void 0:n.filter(o=>(o==null?void 0:o.label)!=="操作"),(s=r==null?void 0:r.compData)==null?void 0:s.map(o=>{var a;if((o==null?void 0:o.key)==="rowButton"){const f=[...o==null?void 0:o.contents,{label:"重置密码"}];return{...o,contents:f}}return(o==null?void 0:o.key)==="header"?{...o,contents:(a=o==null?void 0:o.contents)==null?void 0:a.map(f=>{var l,c,g,v;return{...f,isTableColHidden:((l=f==null?void 0:f.prop)==null?void 0:l.includes("头像"))||((c=f==null?void 0:f.prop)==null?void 0:c.includes("签名")),isFormColHidden:((g=f==null?void 0:f.prop)==null?void 0:g.includes("头像"))||((v=f==null?void 0:f.prop)==null?void 0:v.includes("签名"))}})}:o})):[]});S.ref();const Ae=async(r,t,e)=>{var i,n;try{const s=await r(t);return((i=s==null?void 0:s.data)==null?void 0:i.code)===200?(e!=="查询"&&await Vt.setLogRecordAsync({type:e,data:t},Te.value),lt.ElMessage.success("保存成功"),mt.setRefreshCurStructure(!0),s.data.result||((n=s==null?void 0:s.data)==null?void 0:n.code)===200):null}catch(s){lt.ElMessage.error(s)}finally{mt.setCacheUpdatingData(null)}};Re.value;exports.JSEncrypt=ye;exports.handleSubmitAsync=Ae;exports.resetPassword=be;