ss-component-new 1.3.71 → 1.3.73

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 (118) hide show
  1. package/dist/{MTLLoader-Bk-3r2ef.cjs → MTLLoader-BmVWiY_L.cjs} +1 -1
  2. package/dist/{MTLLoader-BC8AAkj3.js → MTLLoader-BnW0QbvD.js} +1 -1
  3. package/dist/{OrbitControls-DVV_dd2I.cjs → OrbitControls-DT_fJft5.cjs} +1 -1
  4. package/dist/{OrbitControls-BLar7zWU.js → OrbitControls-aj7APKeL.js} +1 -1
  5. package/dist/{URDFLoader-DBxceMJh.cjs → URDFLoader-DJRlNIJX.cjs} +1 -1
  6. package/dist/{URDFLoader-CJKEHX6W.js → URDFLoader-DwZ7u4OY.js} +2 -2
  7. package/dist/{animationData-CeSmYvhE.js → animationData-CjkMBYd2.js} +2 -2
  8. package/dist/{animationData-CWZF2q9d.cjs → animationData-G7GPUUPU.cjs} +1 -1
  9. package/dist/{array-DzSQJpzE.cjs → array-Dh-A7jle.cjs} +1 -1
  10. package/dist/{array-Cob9-erO.js → array-sJwvZynh.js} +5 -5
  11. package/dist/{iconfont-LHF1s2fv.cjs → iconfont-BQYJXZ0j.cjs} +1 -1
  12. package/dist/{iconfont-DUOFjGTn.js → iconfont-CKL4t_qj.js} +2 -2
  13. package/dist/{index-DGJ5KO3g.cjs → index-5MpPq33s.cjs} +1 -1
  14. package/dist/index-94WFs02l.cjs +1 -0
  15. package/dist/{index-CsKMsplc.cjs → index-9KGs7whM.cjs} +1 -1
  16. package/dist/{index-DAFYxRFH.js → index-BDPv6PGL.js} +2 -2
  17. package/dist/{index-lz-ekKYh.js → index-BHrQS0PO.js} +1 -1
  18. package/dist/{index-Dol0o7Tn.js → index-BKKLS83Q.js} +1 -1
  19. package/dist/{index-CmzjWp3L.js → index-BKQu8b42.js} +1 -1
  20. package/dist/index-BO2SzicS.js +3871 -0
  21. package/dist/{index-6owInJCL.cjs → index-BPIqIM_a.cjs} +1 -1
  22. package/dist/{index-BZ9wEgPo.cjs → index-BPPcQ4_M.cjs} +1 -1
  23. package/dist/{index-0OisJOpx.cjs → index-BQu6Fpbk.cjs} +1 -1
  24. package/dist/{index-CglCPKf7.cjs → index-B_j1sFJ7.cjs} +1 -1
  25. package/dist/{index-B7xsjItC.cjs → index-B_vXxIGd.cjs} +13 -13
  26. package/dist/{index-VLg62SAv.js → index-BbREGM4J.js} +13 -13
  27. package/dist/{index-D14GEmO2.js → index-BjRRaKW2.js} +1353 -1384
  28. package/dist/{index-CVCJuzlD.cjs → index-C036vLtM.cjs} +1 -1
  29. package/dist/{index-D-tWss8l.js → index-C0ar9TXN.js} +1 -1
  30. package/dist/{index-CUP4nxxS.cjs → index-C3qSTp9J.cjs} +1 -1
  31. package/dist/index-C5pQXH0_.cjs +11 -0
  32. package/dist/{index-DoCSUnCZ.js → index-CD4F-OmC.js} +4 -4
  33. package/dist/{index-DMQNKzW2.js → index-CEJJB1_A.js} +2 -2
  34. package/dist/{index-DH_CI9BF.cjs → index-CEyDjpWD.cjs} +1 -1
  35. package/dist/{index-G3aOn9P2.js → index-CIqvcKX_.js} +2 -2
  36. package/dist/{index-Dhf1rxFg.js → index-CM8QEOIe.js} +3 -3
  37. package/dist/{index-D_AzaoXr.js → index-COtwZu5v.js} +8 -8
  38. package/dist/{index-Bc0DjeGJ.js → index-CYAEfACa.js} +4 -4
  39. package/dist/{index-D36u9cVc.js → index-CbNN_p1y.js} +8 -8
  40. package/dist/{index-DKPpY9O7.cjs → index-Ceiu-jba.cjs} +1 -1
  41. package/dist/{index-Dc4I56Pa.cjs → index-Cf0Y4zav.cjs} +1 -1
  42. package/dist/{index-CwbNBszS.cjs → index-CjXOUGmo.cjs} +1 -1
  43. package/dist/{index-IXSeTLub.js → index-Cn7cuOeM.js} +4 -4
  44. package/dist/{index-ydWa0VvV.js → index-CnmkPahV.js} +1 -1
  45. package/dist/index-Cp68Aa8G.cjs +11 -0
  46. package/dist/{index-CqABPmeY.js → index-Cr4PDNa4.js} +3371 -3363
  47. package/dist/{index-DgN3eeTQ.js → index-Ct1Ul4ea.js} +4 -4
  48. package/dist/{index-DA0ojcIK.cjs → index-Cwb3YO5-.cjs} +1 -1
  49. package/dist/{index-B0eaVCBU.js → index-Cwmin1ye.js} +1 -1
  50. package/dist/{index-CuhlLpft.js → index-D0hhR7_L.js} +2612 -2665
  51. package/dist/{index-CcQOgqpN.cjs → index-D3QoZ29d.cjs} +1 -1
  52. package/dist/{index-nRi860fp.cjs → index-D8f_yaYM.cjs} +1 -1
  53. package/dist/{index-BQtjyT2j.cjs → index-DFZOCQ_1.cjs} +1 -1
  54. package/dist/{index-DcqWejmU.cjs → index-DHdrBDP4.cjs} +1 -1
  55. package/dist/{index-iEZCBYSk.cjs → index-DRIJn74B.cjs} +1 -1
  56. package/dist/{index-CbttDXoB.js → index-DZAoe0YQ.js} +1 -1
  57. package/dist/index-Dkb93gli.cjs +13 -0
  58. package/dist/{index-Qn_oY_Pi.js → index-DlhGQC5h.js} +2 -2
  59. package/dist/{index-DI6S1RKN.cjs → index-DolfKJiF.cjs} +1 -1
  60. package/dist/{index-dey2A0N0.js → index-DtWkoC81.js} +5 -5
  61. package/dist/{index-D4m9mcwv.cjs → index-DtvBUVyE.cjs} +1 -1
  62. package/dist/{index-Dpot0iM5.js → index-DwTVLqfZ.js} +957 -954
  63. package/dist/{index-B5i-XCGU.js → index-Dyhg1YNv.js} +1 -1
  64. package/dist/{index-jkHlUTog.js → index-K1n-pA4G.js} +2545 -2616
  65. package/dist/index-Lx9WVRw6.cjs +42 -0
  66. package/dist/{index-D2GQJyQD.cjs → index-M1TyGRiF.cjs} +1 -1
  67. package/dist/{index-DLgz-UTm.js → index-N83NRi2K.js} +6 -6
  68. package/dist/{index-CqwcMpin.js → index-SHqJ0cwG.js} +2 -2
  69. package/dist/{index-CERm48fB.cjs → index-V5cMOBtr.cjs} +1 -1
  70. package/dist/{index-CH4zGd4t.cjs → index-VZzCfKCC.cjs} +1 -1
  71. package/dist/{index-i8BgzHL7.cjs → index-ciCCkZew.cjs} +1 -1
  72. package/dist/{index-Cq00epFc.js → index-gHhE4tiq.js} +4 -4
  73. package/dist/{index-RB2IVQbr.cjs → index-iIWkjzE_.cjs} +1 -1
  74. package/dist/{index-2xfpCKJQ.cjs → index-int00xes.cjs} +1 -1
  75. package/dist/{index-CTl5T386.js → index-oa1r-ylv.js} +2 -2
  76. package/dist/{index-C6bhcF6O.js → index-tEu4f9lM.js} +2 -2
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CgO3Meij.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-5bWuAGGO.js} +2076 -2071
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIKeq3VK.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CcGgDB4E.cjs} +49 -49
  79. package/dist/{index.vue_vue_type_style_index_1_lang-CVorpatQ.js → index.vue_vue_type_style_index_1_lang-C9ZWGOE_.js} +5 -5
  80. package/dist/{index.vue_vue_type_style_index_1_lang-dIqvfFII.cjs → index.vue_vue_type_style_index_1_lang-DVJ-x-dv.cjs} +1 -1
  81. package/dist/{isString-DhPkQDQg.cjs → isString-Cdf6R00a.cjs} +1 -1
  82. package/dist/{isString-Bn5VcA2n.js → isString-D4Yi9bDE.js} +1 -1
  83. package/dist/{main-BBMo5Awc.js → main-BKdjwR7r.js} +4 -4
  84. package/dist/{main-B0fNqy8l.cjs → main-CyV6vjiF.cjs} +1 -1
  85. package/dist/{menuIndex-TS0rz6PO.js → menuIndex-19Ruf69F.js} +1 -1
  86. package/dist/{menuIndex-DkJgWkrd.cjs → menuIndex-BtkpgAAq.cjs} +1 -1
  87. package/dist/obj/model.mtl +42 -0
  88. package/dist/obj/model.obj +26110 -0
  89. package/dist/ss-component.cjs +1 -1
  90. package/dist/ss-component.css +2 -2
  91. package/dist/ss-component.js +11 -11
  92. package/dist/ss-component2.cjs +1 -1
  93. package/dist/ss-component2.js +14 -14
  94. package/dist/{threeModel-CXgDk4Ef.js → threeModel-DFNXfXRG.js} +6 -6
  95. package/dist/{threeModel--Du5basO.cjs → threeModel-DJuzBw05.cjs} +1 -1
  96. package/dist/{threePreview-BMfkXUjK.cjs → threePreview-BrZjF4eC.cjs} +1 -1
  97. package/dist/{threePreview-81glBl9g.js → threePreview-D_Wos3LS.js} +5 -5
  98. package/dist/{threeSceneView-DrBd5uFQ.cjs → threeSceneView-BEYAcypx.cjs} +1 -1
  99. package/dist/{threeSceneView-Cf1CB9Fh.js → threeSceneView-DpTiFJaa.js} +11 -11
  100. package/dist/{threeSceneViewForCPMPIP-Cfs37U13.cjs → threeSceneViewForCPMPIP-BxeILghC.cjs} +1 -1
  101. package/dist/{threeSceneViewForCPMPIP-1_LFM8oX.js → threeSceneViewForCPMPIP-CISy1L0U.js} +9 -9
  102. package/dist/{threeTrackPathView-DMUyCZEJ.cjs → threeTrackPathView-B3Pv2bdS.cjs} +1 -1
  103. package/dist/{threeTrackPathView-C_FxpF48.js → threeTrackPathView-DMVNt168.js} +6 -6
  104. package/dist/{threeViewerHost-BMVZLvwa.js → threeViewerHost-ATO1eJ5g.js} +3 -3
  105. package/dist/{threeViewerHost-lgbdeDTc.cjs → threeViewerHost-DPRAryxf.cjs} +1 -1
  106. package/dist/{urdfTree-O0EiSftj.cjs → urdfTree-BFkOOnWh.cjs} +1 -1
  107. package/dist/{urdfTree-DJZR1glz.js → urdfTree-_wSayOr_.js} +1 -1
  108. package/dist/{workpieceTreePanel-BA8SD3g9.js → workpieceTreePanel-CFmrXk2r.js} +4 -4
  109. package/dist/{workpieceTreePanel-1qt7IOrl.cjs → workpieceTreePanel-D_VSdlXy.cjs} +1 -1
  110. package/package.json +1 -1
  111. package/public/obj/model.mtl +42 -0
  112. package/public/obj/model.obj +26110 -0
  113. package/dist/index-B3c-zTPP.cjs +0 -42
  114. package/dist/index-B5BgK7go.cjs +0 -11
  115. package/dist/index-CJc9ck5O.cjs +0 -13
  116. package/dist/index-CyuxBQNL.cjs +0 -1
  117. package/dist/index-D-dmY4ht.js +0 -3869
  118. package/dist/index-Dc6Q0f3F.cjs +0 -11
@@ -1,42 +0,0 @@
1
- "use strict";const u=require("vue"),d=require("./index-Dc6Q0f3F.cjs");function di(e){return e}var Un=d.getNative(d.root,"WeakMap"),ro=Object.create,Eu=function(){function e(){}return function(t){if(!d.isObject(t))return{};if(ro)return ro(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function bu(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _u=800,Su=16,Tu=Date.now;function wu(e){var t=0,n=0;return function(){var r=Tu(),o=Su-(r-n);if(n=r,o>0){if(++t>=_u)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Au(e){return function(){return e}}var sn=function(){try{var e=d.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Cu=sn?function(e,t){return sn(e,"toString",{configurable:!0,enumerable:!1,value:Au(t),writable:!0})}:di,hi=wu(Cu);function Ou(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Du=9007199254740991,Iu=/^(?:0|[1-9]\d*)$/;function hn(e,t){var n=typeof e;return t=t??Du,!!t&&(n=="number"||n!="symbol"&&Iu.test(e))&&e>-1&&e%1==0&&e<t}function pi(e,t,n){t=="__proto__"&&sn?sn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ku=Object.prototype,xu=ku.hasOwnProperty;function hr(e,t,n){var r=e[t];(!(xu.call(e,t)&&d.eq(r,n))||n===void 0&&!(t in e))&&pi(e,t,n)}var oo=Math.max;function gi(e,t,n){return t=oo(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=oo(r.length-t,0),i=Array(s);++o<s;)i[o]=r[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=r[o];return a[t]=n(i),bu(e,this,a)}}var Ru=9007199254740991;function pr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ru}function vi(e){return e!=null&&pr(e.length)&&!d.isFunction(e)}var Nu=Object.prototype;function gr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Nu;return e===n}function Bu(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Pu="[object Arguments]";function so(e){return d.isObjectLike(e)&&d.baseGetTag(e)==Pu}var yi=Object.prototype,Vu=yi.hasOwnProperty,Mu=yi.propertyIsEnumerable,pn=so(function(){return arguments}())?so:function(e){return d.isObjectLike(e)&&Vu.call(e,"callee")&&!Mu.call(e,"callee")};function Lu(){return!1}var mi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,io=mi&&typeof module=="object"&&module&&!module.nodeType&&module,Fu=io&&io.exports===mi,ao=Fu?d.root.Buffer:void 0,Uu=ao?ao.isBuffer:void 0,vr=Uu||Lu,$u="[object Arguments]",ju="[object Array]",Hu="[object Boolean]",Ku="[object Date]",zu="[object Error]",qu="[object Function]",Gu="[object Map]",Wu="[object Number]",Yu="[object Object]",Zu="[object RegExp]",Xu="[object Set]",Ju="[object String]",Qu="[object WeakMap]",el="[object ArrayBuffer]",tl="[object DataView]",nl="[object Float32Array]",rl="[object Float64Array]",ol="[object Int8Array]",sl="[object Int16Array]",il="[object Int32Array]",al="[object Uint8Array]",ul="[object Uint8ClampedArray]",ll="[object Uint16Array]",cl="[object Uint32Array]",H={};H[nl]=H[rl]=H[ol]=H[sl]=H[il]=H[al]=H[ul]=H[ll]=H[cl]=!0;H[$u]=H[ju]=H[el]=H[Hu]=H[tl]=H[Ku]=H[zu]=H[qu]=H[Gu]=H[Wu]=H[Yu]=H[Zu]=H[Xu]=H[Ju]=H[Qu]=!1;function fl(e){return d.isObjectLike(e)&&pr(e.length)&&!!H[d.baseGetTag(e)]}function gn(e){return function(t){return e(t)}}var Ei=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_t=Ei&&typeof module=="object"&&module&&!module.nodeType&&module,dl=_t&&_t.exports===Ei,wn=dl&&d.freeGlobal.process,Le=function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||wn&&wn.binding&&wn.binding("util")}catch{}}(),uo=Le&&Le.isTypedArray,bi=uo?gn(uo):fl,hl=Object.prototype,pl=hl.hasOwnProperty;function _i(e,t){var n=d.isArray(e),r=!n&&pn(e),o=!n&&!r&&vr(e),s=!n&&!r&&!o&&bi(e),i=n||r||o||s,a=i?Bu(e.length,String):[],l=a.length;for(var c in e)(t||pl.call(e,c))&&!(i&&(c=="length"||o&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||hn(c,l)))&&a.push(c);return a}function Si(e,t){return function(n){return e(t(n))}}var gl=Si(Object.keys,Object),vl=Object.prototype,yl=vl.hasOwnProperty;function ml(e){if(!gr(e))return gl(e);var t=[];for(var n in Object(e))yl.call(e,n)&&n!="constructor"&&t.push(n);return t}function El(e){return vi(e)?_i(e):ml(e)}function Ti(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var lo=d.Symbol?d.Symbol.isConcatSpreadable:void 0;function bl(e){return d.isArray(e)||pn(e)||!!(lo&&e&&e[lo])}function _l(e,t,n,r,o){var s=-1,i=e.length;for(n||(n=bl),o||(o=[]);++s<i;){var a=e[s];n(a)?Ti(o,a):o[o.length]=a}return o}function Sl(e){var t=e==null?0:e.length;return t?_l(e):[]}function Tl(e){return hi(gi(e,void 0,Sl),e+"")}var wi=Si(Object.getPrototypeOf,Object);function wl(){this.__data__=new d.ListCache,this.size=0}function Al(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Cl(e){return this.__data__.get(e)}function Ol(e){return this.__data__.has(e)}var Dl=200;function Il(e,t){var n=this.__data__;if(n instanceof d.ListCache){var r=n.__data__;if(!d.Map||r.length<Dl-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new d.MapCache(r)}return n.set(e,t),this.size=n.size,this}function je(e){var t=this.__data__=new d.ListCache(e);this.size=t.size}je.prototype.clear=wl;je.prototype.delete=Al;je.prototype.get=Cl;je.prototype.has=Ol;je.prototype.set=Il;var Ai=typeof exports=="object"&&exports&&!exports.nodeType&&exports,co=Ai&&typeof module=="object"&&module&&!module.nodeType&&module,kl=co&&co.exports===Ai,fo=kl?d.root.Buffer:void 0,ho=fo?fo.allocUnsafe:void 0;function Ci(e,t){if(t)return e.slice();var n=e.length,r=ho?ho(n):new e.constructor(n);return e.copy(r),r}function xl(e,t){for(var n=-1,r=e==null?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}function Rl(){return[]}var Nl=Object.prototype,Bl=Nl.propertyIsEnumerable,po=Object.getOwnPropertySymbols,Pl=po?function(e){return e==null?[]:(e=Object(e),xl(po(e),function(t){return Bl.call(e,t)}))}:Rl;function Vl(e,t,n){var r=t(e);return d.isArray(e)?r:Ti(r,n(e))}function Oi(e){return Vl(e,El,Pl)}var $n=d.getNative(d.root,"DataView"),jn=d.getNative(d.root,"Promise"),Hn=d.getNative(d.root,"Set"),go="[object Map]",Ml="[object Object]",vo="[object Promise]",yo="[object Set]",mo="[object WeakMap]",Eo="[object DataView]",Ll=d.toSource($n),Fl=d.toSource(d.Map),Ul=d.toSource(jn),$l=d.toSource(Hn),jl=d.toSource(Un);exports.getTag=d.baseGetTag;($n&&exports.getTag(new $n(new ArrayBuffer(1)))!=Eo||d.Map&&exports.getTag(new d.Map)!=go||jn&&exports.getTag(jn.resolve())!=vo||Hn&&exports.getTag(new Hn)!=yo||Un&&exports.getTag(new Un)!=mo)&&(exports.getTag=function(e){var t=d.baseGetTag(e),n=t==Ml?e.constructor:void 0,r=n?d.toSource(n):"";if(r)switch(r){case Ll:return Eo;case Fl:return go;case Ul:return vo;case $l:return yo;case jl:return mo}return t});var Hl=Object.prototype,Kl=Hl.hasOwnProperty;function zl(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Kl.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Kn=d.root.Uint8Array;function yr(e){var t=new e.constructor(e.byteLength);return new Kn(t).set(new Kn(e)),t}function ql(e,t){var n=yr(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Gl=/\w*$/;function Wl(e){var t=new e.constructor(e.source,Gl.exec(e));return t.lastIndex=e.lastIndex,t}var bo=d.Symbol?d.Symbol.prototype:void 0,_o=bo?bo.valueOf:void 0;function Yl(e){return _o?Object(_o.call(e)):{}}function Di(e,t){var n=t?yr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Zl="[object Boolean]",Xl="[object Date]",Jl="[object Map]",Ql="[object Number]",ec="[object RegExp]",tc="[object Set]",nc="[object String]",rc="[object Symbol]",oc="[object ArrayBuffer]",sc="[object DataView]",ic="[object Float32Array]",ac="[object Float64Array]",uc="[object Int8Array]",lc="[object Int16Array]",cc="[object Int32Array]",fc="[object Uint8Array]",dc="[object Uint8ClampedArray]",hc="[object Uint16Array]",pc="[object Uint32Array]";function gc(e,t,n){var r=e.constructor;switch(t){case oc:return yr(e);case Zl:case Xl:return new r(+e);case sc:return ql(e);case ic:case ac:case uc:case lc:case cc:case fc:case dc:case hc:case pc:return Di(e,n);case Jl:return new r;case Ql:case nc:return new r(e);case ec:return Wl(e);case tc:return new r;case rc:return Yl(e)}}function Ii(e){return typeof e.constructor=="function"&&!gr(e)?Eu(wi(e)):{}}var vc="[object Map]";function yc(e){return d.isObjectLike(e)&&exports.getTag(e)==vc}var So=Le&&Le.isMap,mc=So?gn(So):yc,Ec="[object Set]";function bc(e){return d.isObjectLike(e)&&exports.getTag(e)==Ec}var To=Le&&Le.isSet,_c=To?gn(To):bc,Sc=1,ki="[object Arguments]",Tc="[object Array]",wc="[object Boolean]",Ac="[object Date]",Cc="[object Error]",xi="[object Function]",Oc="[object GeneratorFunction]",Dc="[object Map]",Ic="[object Number]",Ri="[object Object]",kc="[object RegExp]",xc="[object Set]",Rc="[object String]",Nc="[object Symbol]",Bc="[object WeakMap]",Pc="[object ArrayBuffer]",Vc="[object DataView]",Mc="[object Float32Array]",Lc="[object Float64Array]",Fc="[object Int8Array]",Uc="[object Int16Array]",$c="[object Int32Array]",jc="[object Uint8Array]",Hc="[object Uint8ClampedArray]",Kc="[object Uint16Array]",zc="[object Uint32Array]",$={};$[ki]=$[Tc]=$[Pc]=$[Vc]=$[wc]=$[Ac]=$[Mc]=$[Lc]=$[Fc]=$[Uc]=$[$c]=$[Dc]=$[Ic]=$[Ri]=$[kc]=$[xc]=$[Rc]=$[Nc]=$[jc]=$[Hc]=$[Kc]=$[zc]=!0;$[Cc]=$[xi]=$[Bc]=!1;function Wt(e,t,n,r,o,s){var i,a=t&Sc;if(i!==void 0)return i;if(!d.isObject(e))return e;var l=d.isArray(e);if(l)i=zl(e);else{var c=exports.getTag(e),h=c==xi||c==Oc;if(vr(e))return Ci(e,a);if(c==Ri||c==ki||h&&!o)i=h?{}:Ii(e);else{if(!$[c])return o?e:{};i=gc(e,c,a)}}s||(s=new je);var p=s.get(e);if(p)return p;s.set(e,i),_c(e)?e.forEach(function(f){i.add(Wt(f,t,n,f,e,s))}):mc(e)&&e.forEach(function(f,m){i.set(m,Wt(f,t,n,m,e,s))});var v=Oi,g=l?void 0:v(e);return Ou(g||e,function(f,m){g&&(m=f,f=e[m]),hr(i,m,Wt(f,t,n,m,e,s))}),i}var qc=1,Gc=4;function ke(e){return Wt(e,qc|Gc)}function Wc(e,t){return e!=null&&t in Object(e)}function Yc(e,t,n){t=d.castPath(t,e);for(var r=-1,o=t.length,s=!1;++r<o;){var i=d.toKey(t[r]);if(!(s=e!=null&&n(e,i)))break;e=e[i]}return s||++r!=o?s:(o=e==null?0:e.length,!!o&&pr(o)&&hn(i,o)&&(d.isArray(e)||pn(e)))}function Zc(e,t){return e!=null&&Yc(e,t,Wc)}function mr(e){return e==null}function Xc(e,t,n,r){if(!d.isObject(e))return e;t=d.castPath(t,e);for(var o=-1,s=t.length,i=s-1,a=e;a!=null&&++o<s;){var l=d.toKey(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=i){var h=a[l];c=void 0,c===void 0&&(c=d.isObject(h)?h:hn(t[o+1])?[]:{})}hr(a,l,c),a=a[l]}return e}function Jc(e,t,n){for(var r=-1,o=t.length,s={};++r<o;){var i=t[r],a=d.baseGet(e,i);n(a,i)&&Xc(s,d.castPath(i,e),a)}return s}function Qc(e,t){return Jc(e,t,function(n,r){return Zc(e,r)})}var ef=Tl(function(e,t){return e==null?{}:Qc(e,t)});const Yt="update:modelValue",wo="change",An="input";let Pt;const tf=e=>{var t;if(!d.isClient)return 0;if(Pt!==void 0)return Pt;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const s=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Pt=r-s,Pt};let oe;const nf={height:"0",visibility:"hidden",overflow:d.isFirefox()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},rf=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Ao=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function of(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:rf.map(i=>[i,t.getPropertyValue(i)]),paddingSize:r,borderSize:o,boxSizing:n}}function Co(e,t=1,n){var r,o;oe||(oe=document.createElement("textarea"),((r=e.parentNode)!=null?r:document.body).appendChild(oe));const{paddingSize:s,borderSize:i,boxSizing:a,contextStyle:l}=of(e);l.forEach(([v,g])=>oe==null?void 0:oe.style.setProperty(v,g)),Object.entries(nf).forEach(([v,g])=>oe==null?void 0:oe.style.setProperty(v,g,"important")),oe.value=e.value||e.placeholder||"";let c=oe.scrollHeight;const h={};a==="border-box"?c=c+i:a==="content-box"&&(c=c-s),oe.value="";const p=oe.scrollHeight-s;if(d.isNumber(t)){let v=p*t;a==="border-box"&&(v=v+s+i),c=Math.max(v,c),h.minHeight=`${v}px`}if(d.isNumber(n)){let v=p*n;a==="border-box"&&(v=v+s+i),c=Math.min(v,c)}return h.height=`${c}px`,(o=oe.parentNode)==null||o.removeChild(oe),oe=void 0,h}const sf=d.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),af=e=>ef(sf,e),uf=d.buildProps({id:{type:String,default:void 0},size:d.useSizeProp,disabled:Boolean,modelValue:{type:d.definePropType([String,Number,Object]),default:""},modelModifiers:{type:d.definePropType(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:d.definePropType([Boolean,Object]),default:!1},autocomplete:{type:d.definePropType(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:d.iconPropType,default:d.circle_close_default},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:d.iconPropType},prefixIcon:{type:d.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:d.definePropType([Object,Array,String]),default:()=>d.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...af(["ariaLabel"]),inputmode:{type:d.definePropType(String),default:void 0},name:String}),lf={[Yt]:e=>d.isString(e),input:e=>d.isString(e),change:e=>d.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},cf=["class","style"],ff=/^on[A-Z]/,df=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=u.computed(()=>((n==null?void 0:n.value)||[]).concat(cf)),o=u.getCurrentInstance();return o?u.computed(()=>{var s;return d.fromPairs(Object.entries((s=o.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(t&&ff.test(i))))}):(d.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),u.computed(()=>({})))},zn={prefix:Math.floor(Math.random()*1e4),current:0},hf=Symbol("elIdInjection"),pf=()=>u.getCurrentInstance()?u.inject(hf,zn):zn,qn=e=>{const t=pf();!d.isClient&&t===zn&&d.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
2
- usage: app.provide(ID_INJECTION_KEY, {
3
- prefix: number,
4
- current: number,
5
- })`);const n=d.useGetDerivedNamespace();return d.computedEager(()=>u.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Er=Symbol("formContextKey"),Ni=Symbol("formItemContextKey"),Bi=()=>{const e=u.inject(Er,void 0),t=u.inject(Ni,void 0);return{form:e,formItem:t}},gf=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=u.ref(!1)),r||(r=u.ref(!1));const o=u.getCurrentInstance(),s=()=>{let c=o==null?void 0:o.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},i=u.ref();let a;const l=u.computed(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return u.onMounted(()=>{a=u.watch([u.toRef(e,"id"),n],([c,h])=>{const p=c??(h?void 0:qn().value);p!==i.value&&(t!=null&&t.removeInputId&&!s()&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!h&&p&&t.addInputId(p)),i.value=p)},{immediate:!0})}),u.onUnmounted(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:l,inputId:i}},Pi=e=>{const t=u.getCurrentInstance();return u.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},Vi=(e,t={})=>{const n=u.ref(void 0),r=t.prop?n:Pi("size"),o=t.global?n:d.useGlobalSize(),s=t.form?{size:void 0}:u.inject(Er,void 0),i=t.formItem?{size:void 0}:u.inject(Ni,void 0);return u.computed(()=>r.value||u.unref(e)||(i==null?void 0:i.size)||(s==null?void 0:s.size)||o.value||"")},br=e=>{const t=Pi("disabled"),n=u.inject(Er,void 0);return u.computed(()=>t.value||u.unref(e)||(n==null?void 0:n.disabled)||!1)},vf='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Oo=e=>typeof Element>"u"?!1:e instanceof Element,yf=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Do=e=>Array.from(e.querySelectorAll(vf)).filter(t=>_r(t)&&yf(t)),_r=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},mf=(e,t)=>{if(!e||!e.focus)return;let n=!1;Oo(e)&&!_r(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Oo(e)&&n&&e.removeAttribute("tabindex")};function Ef(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:o,afterBlur:s}={}){const i=u.getCurrentInstance(),{emit:a}=i,l=u.shallowRef(),c=u.ref(!1),h=g=>{const f=d.isFunction$1(n)?n(g):!1;u.unref(t)||c.value||f||(c.value=!0,a("focus",g),r==null||r())},p=g=>{var f;const m=d.isFunction$1(o)?o(g):!1;u.unref(t)||g.relatedTarget&&((f=l.value)!=null&&f.contains(g.relatedTarget))||m||(c.value=!1,a("blur",g),s==null||s())},v=g=>{var f,m;u.unref(t)||_r(g.target)||(f=l.value)!=null&&f.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return u.watch([l,()=>u.unref(t)],([g,f])=>{g&&(f?g.removeAttribute("tabindex"):g.setAttribute("tabindex","-1"))}),d.useEventListener(l,"focus",h,!0),d.useEventListener(l,"blur",p,!0),d.useEventListener(l,"click",v,!0),{isFocused:c,wrapperRef:l,handleFocus:h,handleBlur:p}}const bf=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function _f({afterComposition:e,emit:t}){const n=u.ref(!1),r=a=>{t==null||t("compositionstart",a),n.value=!0},o=a=>{var l;t==null||t("compositionupdate",a);const c=(l=a.target)==null?void 0:l.value,h=c[c.length-1]||"";n.value=!bf(h)},s=a=>{t==null||t("compositionend",a),n.value&&(n.value=!1,u.nextTick(()=>e(a)))};return{isComposing:n,handleComposition:a=>{a.type==="compositionend"?s(a):o(a)},handleCompositionStart:r,handleCompositionUpdate:o,handleCompositionEnd:s}}function Sf(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:s,value:i}=e.value;if(o==null||s==null)return;const a=i.slice(0,Math.max(0,o)),l=i.slice(Math.max(0,s));t={selectionStart:o,selectionEnd:s,value:i,beforeTxt:a,afterTxt:l}}function r(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:s,afterTxt:i,selectionStart:a}=t;if(s==null||i==null||a==null)return;let l=o.length;if(o.endsWith(i))l=o.length-i.length;else if(o.startsWith(s))l=s.length;else{const c=s[a-1],h=o.indexOf(c,a-1);h!==-1&&(l=h+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Mi="ElInput",Tf=u.defineComponent({name:Mi,inheritAttrs:!1}),wf=u.defineComponent({...Tf,props:uf,emits:lf,setup(e,{expose:t,emit:n}){const r=e,o=u.useAttrs(),s=df(),i=u.useSlots(),a=u.computed(()=>[r.type==="textarea"?m.b():f.b(),f.m(v.value),f.is("disabled",g.value),f.is("exceed",se.value),{[f.b("group")]:i.prepend||i.append,[f.m("prefix")]:i.prefix||r.prefixIcon,[f.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[f.bm("suffix","password-clear")]:U.value&&N.value,[f.b("hidden")]:r.type==="hidden"},o.class]),l=u.computed(()=>[f.e("wrapper"),f.is("focus",F.value)]),{form:c,formItem:h}=Bi(),{inputId:p}=gf(r,{formItemContext:h}),v=Vi(),g=br(),f=d.useNamespace("input"),m=d.useNamespace("textarea"),b=u.shallowRef(),y=u.shallowRef(),T=u.ref(!1),C=u.ref(!1),P=u.ref(),K=u.shallowRef(r.inputStyle),D=u.computed(()=>b.value||y.value),{wrapperRef:k,isFocused:F,handleFocus:V,handleBlur:A}=Ef(D,{disabled:g,afterBlur(){var S;r.validateEvent&&((S=h==null?void 0:h.validate)==null||S.call(h,"blur").catch(L=>d.debugWarn(L)))}}),w=u.computed(()=>{var S;return(S=c==null?void 0:c.statusIcon)!=null?S:!1}),x=u.computed(()=>(h==null?void 0:h.validateState)||""),M=u.computed(()=>x.value&&d.ValidateComponentsMap[x.value]),X=u.computed(()=>C.value?d.view_default:d.hide_default),fe=u.computed(()=>[o.style]),J=u.computed(()=>[r.inputStyle,K.value,{resize:r.resize}]),O=u.computed(()=>mr(r.modelValue)?"":String(r.modelValue)),U=u.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!O.value&&(F.value||T.value)),N=u.computed(()=>r.showPassword&&!g.value&&!!O.value),Q=u.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),ue=u.computed(()=>O.value.length),se=u.computed(()=>!!Q.value&&ue.value>Number(r.maxlength)),Re=u.computed(()=>!!i.suffix||!!r.suffixIcon||U.value||r.showPassword||Q.value||!!x.value&&w.value),Bt=u.computed(()=>!!Object.keys(r.modelModifiers).length),[pt,fu]=Sf(b);d.useResizeObserver(y,S=>{if(du(),!Q.value||r.resize!=="both")return;const L=S[0],{width:Y}=L.contentRect;P.value={right:`calc(100% - ${Y+15+6}px)`}});const gt=()=>{const{type:S,autosize:L}=r;if(!(!d.isClient||S!=="textarea"||!y.value))if(L){const Y=d.isObject$1(L)?L.minRows:void 0,ze=d.isObject$1(L)?L.maxRows:void 0,vt=Co(y.value,Y,ze);K.value={overflowY:"hidden",...vt},u.nextTick(()=>{y.value.offsetHeight,K.value=vt})}else K.value={minHeight:Co(y.value).minHeight}},du=(S=>{let L=!1;return()=>{var Y;if(L||!r.autosize)return;((Y=y.value)==null?void 0:Y.offsetParent)===null||(setTimeout(S),L=!0)}})(gt),Ke=()=>{const S=D.value,L=r.formatter?r.formatter(O.value):O.value;!S||S.value===L||(S.value=L)},Yr=S=>{const{trim:L,number:Y}=r.modelModifiers;return L&&(S=S.trim()),Y&&(S=`${Ao(S)}`),r.formatter&&r.parser&&(S=r.parser(S)),S},Tn=async S=>{if(Xr.value)return;const{lazy:L}=r.modelModifiers;let{value:Y}=S.target;if(L){n(An,Y);return}if(Y=Yr(Y),String(Y)===O.value){r.formatter&&Ke();return}pt(),n(Yt,Y),n(An,Y),await u.nextTick(),(r.formatter&&r.parser||!Bt.value)&&Ke(),fu()},Zr=async S=>{let{value:L}=S.target;L=Yr(L),r.modelModifiers.lazy&&n(Yt,L),n(wo,L),await u.nextTick(),Ke()},{isComposing:Xr,handleCompositionStart:Jr,handleCompositionUpdate:Qr,handleCompositionEnd:eo}=_f({emit:n,afterComposition:Tn}),hu=()=>{C.value=!C.value},pu=()=>{var S;return(S=D.value)==null?void 0:S.focus()},gu=()=>{var S;return(S=D.value)==null?void 0:S.blur()},vu=S=>{T.value=!1,n("mouseleave",S)},yu=S=>{T.value=!0,n("mouseenter",S)},to=S=>{n("keydown",S)},mu=()=>{var S;(S=D.value)==null||S.select()},no=()=>{n(Yt,""),n(wo,""),n("clear"),n(An,"")};return u.watch(()=>r.modelValue,()=>{var S;u.nextTick(()=>gt()),r.validateEvent&&((S=h==null?void 0:h.validate)==null||S.call(h,"change").catch(L=>d.debugWarn(L)))}),u.watch(O,S=>{if(!D.value)return;const{trim:L,number:Y}=r.modelModifiers,ze=D.value.value,vt=(Y||r.type==="number")&&!/^0\d/.test(ze)?`${Ao(ze)}`:ze;vt!==S&&(document.activeElement===D.value&&D.value.type!=="range"&&L&&vt.trim()===S||Ke())}),u.watch(()=>r.type,async()=>{await u.nextTick(),Ke(),gt()}),u.onMounted(()=>{!r.formatter&&r.parser&&d.debugWarn(Mi,"If you set the parser, you also need to set the formatter."),Ke(),u.nextTick(gt)}),t({input:b,textarea:y,ref:D,textareaStyle:J,autosize:u.toRef(r,"autosize"),isComposing:Xr,focus:pu,blur:gu,select:mu,clear:no,resizeTextarea:gt}),(S,L)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass([u.unref(a),{[u.unref(f).bm("group","append")]:S.$slots.append,[u.unref(f).bm("group","prepend")]:S.$slots.prepend}]),style:u.normalizeStyle(u.unref(fe)),onMouseenter:yu,onMouseleave:vu},[u.createCommentVNode(" input "),S.type!=="textarea"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createCommentVNode(" prepend slot "),S.$slots.prepend?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(u.unref(f).be("group","prepend"))},[u.renderSlot(S.$slots,"prepend")],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{ref_key:"wrapperRef",ref:k,class:u.normalizeClass(u.unref(l))},[u.createCommentVNode(" prefix slot "),S.$slots.prefix||S.prefixIcon?(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass(u.unref(f).e("prefix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("prefix-inner"))},[u.renderSlot(S.$slots,"prefix"),S.prefixIcon?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:0,class:u.normalizeClass(u.unref(f).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(S.prefixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("input",u.mergeProps({id:u.unref(p),ref_key:"input",ref:b,class:u.unref(f).e("inner")},u.unref(s),{name:S.name,minlength:S.minlength,maxlength:S.maxlength,type:S.showPassword?C.value?"text":"password":S.type,disabled:u.unref(g),readonly:S.readonly,autocomplete:S.autocomplete,tabindex:S.tabindex,"aria-label":S.ariaLabel,placeholder:S.placeholder,style:S.inputStyle,form:S.form,autofocus:S.autofocus,role:S.containerRole,inputmode:S.inputmode,onCompositionstart:u.unref(Jr),onCompositionupdate:u.unref(Qr),onCompositionend:u.unref(eo),onInput:Tn,onChange:Zr,onKeydown:to}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),u.createCommentVNode(" suffix slot "),u.unref(Re)?(u.openBlock(),u.createElementBlock("span",{key:1,class:u.normalizeClass(u.unref(f).e("suffix"))},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("suffix-inner"))},[!u.unref(U)||!u.unref(N)||!u.unref(Q)?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.renderSlot(S.$slots,"suffix"),S.suffixIcon?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:0,class:u.normalizeClass(u.unref(f).e("icon"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(S.suffixIcon)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],64)):u.createCommentVNode("v-if",!0),u.unref(U)?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:1,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("clear")]),onMousedown:u.withModifiers(u.unref(d.NOOP),["prevent"]),onClick:no},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(S.clearIcon)))]),_:1},8,["class","onMousedown"])):u.createCommentVNode("v-if",!0),u.unref(N)?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:2,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("password")]),onClick:hu,onMousedown:u.withModifiers(u.unref(d.NOOP),["prevent"]),onMouseup:u.withModifiers(u.unref(d.NOOP),["prevent"])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(X))))]),_:1},8,["class","onMousedown","onMouseup"])):u.createCommentVNode("v-if",!0),u.unref(Q)?(u.openBlock(),u.createElementBlock("span",{key:3,class:u.normalizeClass([u.unref(f).e("count"),u.unref(f).is("outside",S.wordLimitPosition==="outside")])},[u.createElementVNode("span",{class:u.normalizeClass(u.unref(f).e("count-inner"))},u.toDisplayString(u.unref(ue))+" / "+u.toDisplayString(S.maxlength),3)],2)):u.createCommentVNode("v-if",!0),u.unref(x)&&u.unref(M)&&u.unref(w)?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:4,class:u.normalizeClass([u.unref(f).e("icon"),u.unref(f).e("validateIcon"),u.unref(f).is("loading",u.unref(x)==="validating")])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(M))))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0)],2)],2)):u.createCommentVNode("v-if",!0)],2),u.createCommentVNode(" append slot "),S.$slots.append?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(u.unref(f).be("group","append"))},[u.renderSlot(S.$slots,"append")],2)):u.createCommentVNode("v-if",!0)],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" textarea "),u.createElementVNode("textarea",u.mergeProps({id:u.unref(p),ref_key:"textarea",ref:y,class:[u.unref(m).e("inner"),u.unref(f).is("focus",u.unref(F))]},u.unref(s),{minlength:S.minlength,maxlength:S.maxlength,tabindex:S.tabindex,disabled:u.unref(g),readonly:S.readonly,autocomplete:S.autocomplete,style:u.unref(J),"aria-label":S.ariaLabel,placeholder:S.placeholder,form:S.form,autofocus:S.autofocus,rows:S.rows,role:S.containerRole,onCompositionstart:u.unref(Jr),onCompositionupdate:u.unref(Qr),onCompositionend:u.unref(eo),onInput:Tn,onFocus:u.unref(V),onBlur:u.unref(A),onChange:Zr,onKeydown:to}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),u.unref(Q)?(u.openBlock(),u.createElementBlock("span",{key:0,style:u.normalizeStyle(P.value),class:u.normalizeClass([u.unref(f).e("count"),u.unref(f).is("outside",S.wordLimitPosition==="outside")])},u.toDisplayString(u.unref(ue))+" / "+u.toDisplayString(S.maxlength),7)):u.createCommentVNode("v-if",!0)],64))],38))}});var Af=d._export_sfc(wf,[["__file","input.vue"]]);const Cf=d.withInstall(Af),Cn="focus-trap.focus-after-trapped",On="focus-trap.focus-after-released",Of="focus-trap.focusout-prevented",Io={cancelable:!0,bubbles:!1},Df={cancelable:!0,bubbles:!1},ko="focusAfterTrapped",xo="focusAfterReleased",If=Symbol("elFocusTrap"),Sr=u.ref(),vn=u.ref(0),Tr=u.ref(0);let Vt=0;const Li=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Ro=(e,t)=>{for(const n of e)if(!kf(n,t))return n},kf=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},xf=e=>{const t=Li(e),n=Ro(t,e),r=Ro(t.reverse(),e);return[n,r]},Rf=e=>e instanceof HTMLInputElement&&"select"in e,Se=(e,t)=>{if(e){const n=document.activeElement;mf(e,{preventScroll:!0}),Tr.value=window.performance.now(),e!==n&&Rf(e)&&t&&e.select()}};function No(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Nf=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=No(e,r),e.unshift(r)},remove:r=>{var o,s;e=No(e,r),(s=(o=e[0])==null?void 0:o.resume)==null||s.call(o)}}},Bf=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Se(r,t),document.activeElement!==n)return},Bo=Nf(),Pf=()=>vn.value>Tr.value,Mt=()=>{Sr.value="pointer",vn.value=window.performance.now()},Po=()=>{Sr.value="keyboard",vn.value=window.performance.now()},Vf=()=>(u.onMounted(()=>{Vt===0&&(document.addEventListener("mousedown",Mt),document.addEventListener("touchstart",Mt),document.addEventListener("keydown",Po)),Vt++}),u.onBeforeUnmount(()=>{Vt--,Vt<=0&&(document.removeEventListener("mousedown",Mt),document.removeEventListener("touchstart",Mt),document.removeEventListener("keydown",Po))}),{focusReason:Sr,lastUserFocusTimestamp:vn,lastAutomatedFocusTimestamp:Tr}),Lt=e=>new CustomEvent(Of,{...Df,detail:e});let Ye=[];const Vo=e=>{d.getEventCode(e)===d.EVENT_CODE.esc&&Ye.forEach(n=>n(e))},Mf=e=>{u.onMounted(()=>{Ye.length===0&&document.addEventListener("keydown",Vo),d.isClient&&Ye.push(e)}),u.onBeforeUnmount(()=>{Ye=Ye.filter(t=>t!==e),Ye.length===0&&d.isClient&&document.removeEventListener("keydown",Vo)})},Lf=u.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ko,xo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=u.ref();let r,o;const{focusReason:s}=Vf();Mf(f=>{e.trapped&&!i.paused&&t("release-requested",f)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=f=>{if(!e.loop&&!e.trapped||i.paused)return;const{altKey:m,ctrlKey:b,metaKey:y,currentTarget:T,shiftKey:C}=f,{loop:P}=e,D=d.getEventCode(f)===d.EVENT_CODE.tab&&!m&&!b&&!y,k=document.activeElement;if(D&&k){const F=T,[V,A]=xf(F);if(V&&A){if(!C&&k===A){const x=Lt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||(f.preventDefault(),P&&Se(V,!0))}else if(C&&[V,F].includes(k)){const x=Lt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||(f.preventDefault(),P&&Se(A,!0))}}else if(k===F){const x=Lt({focusReason:s.value});t("focusout-prevented",x),x.defaultPrevented||f.preventDefault()}}};u.provide(If,{focusTrapRef:n,onKeydown:a}),u.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),u.watch([n],([f],[m])=>{f&&(f.addEventListener("keydown",a),f.addEventListener("focusin",h),f.addEventListener("focusout",p)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",h),m.removeEventListener("focusout",p))});const l=f=>{t(ko,f)},c=f=>t(xo,f),h=f=>{const m=u.unref(n);if(!m)return;const b=f.target,y=f.relatedTarget,T=b&&m.contains(b);e.trapped||y&&m.contains(y)||(r=y),T&&t("focusin",f),!i.paused&&e.trapped&&(T?o=b:Se(o,!0))},p=f=>{const m=u.unref(n);if(!(i.paused||!m))if(e.trapped){const b=f.relatedTarget;!mr(b)&&!m.contains(b)&&setTimeout(()=>{if(!i.paused&&e.trapped){const y=Lt({focusReason:s.value});t("focusout-prevented",y),y.defaultPrevented||Se(o,!0)}},0)}else{const b=f.target;b&&m.contains(b)||t("focusout",f)}};async function v(){await u.nextTick();const f=u.unref(n);if(f){Bo.push(i);const m=f.contains(document.activeElement)?r:document.activeElement;if(r=m,!f.contains(m)){const y=new Event(Cn,Io);f.addEventListener(Cn,l),f.dispatchEvent(y),y.defaultPrevented||u.nextTick(()=>{let T=e.focusStartEl;d.isString(T)||(Se(T),document.activeElement!==T&&(T="first")),T==="first"&&Bf(Li(f),!0),(document.activeElement===m||T==="container")&&Se(f)})}}}function g(){const f=u.unref(n);if(f){f.removeEventListener(Cn,l);const m=new CustomEvent(On,{...Io,detail:{focusReason:s.value}});f.addEventListener(On,c),f.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!Pf()||f.contains(document.activeElement))&&Se(r??document.body),f.removeEventListener(On,c),Bo.remove(i),r=null,o=null}}return u.onMounted(()=>{e.trapped&&v(),u.watch(()=>e.trapped,f=>{f?v():g()})}),u.onBeforeUnmount(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",h),n.value.removeEventListener("focusout",p),n.value=void 0)}),{onKeydown:a}}});function Ff(e,t,n,r,o,s){return u.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Uf=d._export_sfc(Lf,[["render",Ff],["__file","focus-trap.vue"]]);const Fi=Symbol("buttonGroupContextKey"),$f=({from:e,replacement:t,scope:n,version:r,ref:o,type:s="API"},i)=>{u.watch(()=>u.unref(i),a=>{a&&d.debugWarn(n,`[${s}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
6
- For more detail, please visit: ${o}
7
- `)},{immediate:!0})},jf=(e,t)=>{$f({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},u.computed(()=>e.type==="text"));const n=u.inject(Fi,void 0),r=d.useGlobalConfig("button"),{form:o}=Bi(),s=Vi(u.computed(()=>n==null?void 0:n.size)),i=br(),a=u.ref(),l=u.useSlots(),c=u.computed(()=>{var y;return e.type||(n==null?void 0:n.type)||((y=r.value)==null?void 0:y.type)||""}),h=u.computed(()=>{var y,T,C;return(C=(T=e.autoInsertSpace)!=null?T:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?C:!1}),p=u.computed(()=>{var y,T,C;return(C=(T=e.plain)!=null?T:(y=r.value)==null?void 0:y.plain)!=null?C:!1}),v=u.computed(()=>{var y,T,C;return(C=(T=e.round)!=null?T:(y=r.value)==null?void 0:y.round)!=null?C:!1}),g=u.computed(()=>{var y,T,C;return(C=(T=e.text)!=null?T:(y=r.value)==null?void 0:y.text)!=null?C:!1}),f=u.computed(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=u.computed(()=>{var y;const T=(y=l.default)==null?void 0:y.call(l);if(h.value&&(T==null?void 0:T.length)===1){const C=T[0];if((C==null?void 0:C.type)===u.Text){const P=C.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(P.trim())}}return!1});return{_disabled:i,_size:s,_type:c,_ref:a,_props:f,_plain:p,_round:v,_text:g,shouldAddSpace:m,handleClick:y=>{if(i.value||e.loading){y.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",y)}}},Hf=["default","primary","success","warning","info","danger","text",""],Kf=["button","submit","reset"],Gn=d.buildProps({size:d.useSizeProp,disabled:Boolean,type:{type:String,values:Hf,default:""},icon:{type:d.iconPropType},nativeType:{type:String,values:Kf,default:"button"},loading:Boolean,loadingIcon:{type:d.iconPropType,default:()=>d.loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:d.definePropType([String,Object]),default:"button"}}),zf={click:e=>e instanceof MouseEvent};function Z(e,t){qf(e)&&(e="100%");var n=Gf(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Ft(e){return Math.min(1,Math.max(0,e))}function qf(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gf(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ui(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ut(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Pe(e){return e.length===1?"0"+e:String(e)}function Wf(e,t,n){return{r:Z(e,255)*255,g:Z(t,255)*255,b:Z(n,255)*255}}function Mo(e,t,n){e=Z(e,255),t=Z(t,255),n=Z(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=0,a=(r+o)/2;if(r===o)i=0,s=0;else{var l=r-o;switch(i=a>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:i,l:a}}function Dn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yf(e,t,n){var r,o,s;if(e=Z(e,360),t=Z(t,100),n=Z(n,100),t===0)o=n,s=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=Dn(a,i,e+1/3),o=Dn(a,i,e),s=Dn(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function Lo(e,t,n){e=Z(e,255),t=Z(t,255),n=Z(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=r,a=r-o,l=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4;break}s/=6}return{h:s,s:l,v:i}}function Zf(e,t,n){e=Z(e,360)*6,t=Z(t,100),n=Z(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),i=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,c=[n,i,s,s,a,n][l],h=[a,n,n,i,s,s][l],p=[s,s,a,n,n,i][l];return{r:c*255,g:h*255,b:p*255}}function Fo(e,t,n,r){var o=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Xf(e,t,n,r,o){var s=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(n).toString(16)),Pe(Jf(r))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function Jf(e){return Math.round(parseFloat(e)*255).toString(16)}function Uo(e){return ie(e)/255}function ie(e){return parseInt(e,16)}function Qf(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Wn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ed(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,i=!1,a=!1;return typeof e=="string"&&(e=rd(e)),typeof e=="object"&&(me(e.r)&&me(e.g)&&me(e.b)?(t=Wf(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):me(e.h)&&me(e.s)&&me(e.v)?(r=Ut(e.s),o=Ut(e.v),t=Zf(e.h,r,o),i=!0,a="hsv"):me(e.h)&&me(e.s)&&me(e.l)&&(r=Ut(e.s),s=Ut(e.l),t=Yf(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ui(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var td="[-\\+]?\\d+%?",nd="[-\\+]?\\d*\\.\\d+%?",Ae="(?:".concat(nd,")|(?:").concat(td,")"),In="[\\s|\\(]+(".concat(Ae,")[,|\\s]+(").concat(Ae,")[,|\\s]+(").concat(Ae,")\\s*\\)?"),kn="[\\s|\\(]+(".concat(Ae,")[,|\\s]+(").concat(Ae,")[,|\\s]+(").concat(Ae,")[,|\\s]+(").concat(Ae,")\\s*\\)?"),de={CSS_UNIT:new RegExp(Ae),rgb:new RegExp("rgb"+In),rgba:new RegExp("rgba"+kn),hsl:new RegExp("hsl"+In),hsla:new RegExp("hsla"+kn),hsv:new RegExp("hsv"+In),hsva:new RegExp("hsva"+kn),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function rd(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Wn[e])e=Wn[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=de.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=de.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=de.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=de.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=de.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=de.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=de.hex8.exec(e),n?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),a:Uo(n[4]),format:t?"name":"hex8"}:(n=de.hex6.exec(e),n?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),format:t?"name":"hex"}:(n=de.hex4.exec(e),n?{r:ie(n[1]+n[1]),g:ie(n[2]+n[2]),b:ie(n[3]+n[3]),a:Uo(n[4]+n[4]),format:t?"name":"hex8"}:(n=de.hex3.exec(e),n?{r:ie(n[1]+n[1]),g:ie(n[2]+n[2]),b:ie(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function me(e){return!!de.CSS_UNIT.exec(String(e))}var od=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Qf(t)),this.originalInput=t;var o=ed(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,s=t.r/255,i=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Ui(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Lo(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Lo(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Mo(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Mo(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fo(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Xf(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Z(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Z(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Fo(this.r,this.g,this.b,!1),n=0,r=Object.entries(Wn);n<r.length;n++){var o=r[n],s=o[0],i=o[1];if(t===i)return s}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Ft(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Ft(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ft(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Ft(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),s=n/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(new e(r));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,s=n.v,i=[],a=1/t;t--;)i.push(new e({h:r,s:o,v:s})),s=(s+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],s=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*s)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function _e(e,t=20){return e.mix("#141414",t).toString()}function sd(e){const t=br(),n=d.useNamespace("button");return u.computed(()=>{let r={},o=e.color;if(o){const s=o.match(/var\((.*?)\)/);s&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const i=new od(o),a=e.dark?i.tint(20).toString():_e(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?_e(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?_e(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?_e(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?_e(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?_e(i,80):i.tint(80).toString());else{const l=e.dark?_e(i,30):i.tint(30).toString(),c=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":l,"hover-text-color":c,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),t.value){const h=e.dark?_e(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=h,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=h}}}return r})}const id=u.defineComponent({name:"ElButton"}),ad=u.defineComponent({...id,props:Gn,emits:zf,setup(e,{expose:t,emit:n}){const r=e,o=sd(r),s=d.useNamespace("button"),{_ref:i,_size:a,_type:l,_disabled:c,_props:h,_plain:p,_round:v,_text:g,shouldAddSpace:f,handleClick:m}=jf(r,n),b=u.computed(()=>[s.b(),s.m(l.value),s.m(a.value),s.is("disabled",c.value),s.is("loading",r.loading),s.is("plain",p.value),s.is("round",v.value),s.is("circle",r.circle),s.is("text",g.value),s.is("link",r.link),s.is("has-bg",r.bg)]);return t({ref:i,size:a,type:l,disabled:c,shouldAddSpace:f}),(y,T)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(y.tag),u.mergeProps({ref_key:"_ref",ref:i},u.unref(h),{class:u.unref(b),style:u.unref(o),onClick:u.unref(m)}),{default:u.withCtx(()=>[y.loading?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[y.$slots.loading?u.renderSlot(y.$slots,"loading",{key:0}):(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:1,class:u.normalizeClass(u.unref(s).is("loading"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(u.openBlock(),u.createBlock(u.unref(d.ElIcon),{key:1},{default:u.withCtx(()=>[y.icon?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(y.icon),{key:0})):u.renderSlot(y.$slots,"icon",{key:1})]),_:3})):u.createCommentVNode("v-if",!0),y.$slots.default?(u.openBlock(),u.createElementBlock("span",{key:2,class:u.normalizeClass({[u.unref(s).em("text","expand")]:u.unref(f)})},[u.renderSlot(y.$slots,"default")],2)):u.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var ud=d._export_sfc(ad,[["__file","button.vue"]]);const ld={size:Gn.size,type:Gn.type},cd=u.defineComponent({name:"ElButtonGroup"}),fd=u.defineComponent({...cd,props:ld,setup(e){const t=e;u.provide(Fi,u.reactive({size:u.toRef(t,"size"),type:u.toRef(t,"type")}));const n=d.useNamespace("button");return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n).b("group"))},[u.renderSlot(r.$slots,"default")],2))}});var $i=d._export_sfc(fd,[["__file","button-group.vue"]]);const dd=d.withInstall(ud,{ButtonGroup:$i});d.withNoopInstall($i);var Zt=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Zt||{});const ji=e=>{if(!e)return{onClick:d.NOOP,onMousedown:d.NOOP,onMouseup:d.NOOP};let t=!1,n=!1;return{onClick:i=>{t&&n&&e(i),t=n=!1},onMousedown:i=>{t=i.target===i.currentTarget},onMouseup:i=>{n=i.target===i.currentTarget}}},hd=d.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:d.definePropType([String,Array,Object])},zIndex:{type:d.definePropType([String,Number])}}),pd={click:e=>e instanceof MouseEvent},gd="overlay";var vd=u.defineComponent({name:"ElOverlay",props:hd,emits:pd,setup(e,{slots:t,emit:n}){const r=d.useNamespace(gd),o=l=>{n("click",l)},{onClick:s,onMousedown:i,onMouseup:a}=ji(e.customMaskEvent?void 0:o);return()=>e.mask?u.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:i,onMouseup:a},[u.renderSlot(t,"default")],Zt.STYLE|Zt.CLASS|Zt.PROPS,["onClick","onMouseup","onMousedown"]):u.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[u.renderSlot(t,"default")])}});const yd=vd,md=(e,t,n,r)=>{const o={offsetX:0,offsetY:0},s=u.ref(!1),i=(v,g)=>{if(e.value){const{offsetX:f,offsetY:m}=o,b=e.value.getBoundingClientRect(),y=b.left,T=b.top,C=b.width,P=b.height,K=document.documentElement.clientWidth,D=document.documentElement.clientHeight,k=-y+f,F=-T+m,V=K-y-C+f,A=D-T-(P<D?P:0)+m;r!=null&&r.value||(v=Math.min(Math.max(v,k),V),g=Math.min(Math.max(g,F),A)),o.offsetX=v,o.offsetY=g,e.value.style.transform=`translate(${d.addUnit(v)}, ${d.addUnit(g)})`}},a=v=>{const g=v.clientX,f=v.clientY,{offsetX:m,offsetY:b}=o,y=C=>{s.value||(s.value=!0);const P=m+C.clientX-g,K=b+C.clientY-f;i(P,K)},T=()=>{s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",T)},l=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",a),window.addEventListener("resize",p))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",a),window.removeEventListener("resize",p))},h=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},p=()=>{const{offsetX:v,offsetY:g}=o;i(v,g)};return u.onMounted(()=>{u.watchEffect(()=>{n.value?l():c()})}),u.onBeforeUnmount(()=>{c()}),{isDragging:s,resetPosition:h,updatePosition:p}},Ed=(e,t={})=>{u.isRef(e)||d.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||d.useNamespace("popup"),r=u.computed(()=>n.bm("parent","hidden"));let o=0,s=!1,i="0";const a=()=>{setTimeout(()=>{typeof document>"u"||s&&document&&(document.body.style.width=i,d.removeClass(document.body,r.value))},200)};u.watch(e,l=>{if(!l){a();return}s=!d.hasClass(document.body,r.value),s&&(i=document.body.style.width,d.addClass(document.body,r.value)),o=tf(n.namespace.value);const c=document.documentElement.clientHeight<document.body.scrollHeight,h=d.getStyle(document.body,"overflowY");o>0&&(c||h==="scroll")&&s&&(document.body.style.width=`calc(100% - ${o}px)`)}),u.onScopeDispose(()=>a())},bd=e=>["",...d.componentSizes].includes(e),Yn="_trap-focus-children",Ve=[],$o=e=>{if(Ve.length===0)return;const t=d.getEventCode(e),n=Ve[Ve.length-1][Yn];if(n.length>0&&t===d.EVENT_CODE.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,o=e.target===n[0],s=e.target===n[n.length-1];o&&r&&(e.preventDefault(),n[n.length-1].focus()),s&&!r&&(e.preventDefault(),n[0].focus())}},_d={beforeMount(e){e[Yn]=Do(e),Ve.push(e),Ve.length<=1&&document.addEventListener("keydown",$o)},updated(e){u.nextTick(()=>{e[Yn]=Do(e)})},unmounted(){Ve.shift(),Ve.length===0&&document.removeEventListener("keydown",$o)}},Sd=u.defineComponent({name:"ElMessageBox",directives:{TrapFocus:_d},components:{ElButton:dd,ElFocusTrap:Uf,ElInput:Cf,ElOverlay:yd,ElIcon:d.ElIcon,...d.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:bd},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:o,size:s}=d.useGlobalComponentSettings("message-box",u.computed(()=>e.buttonSize)),{t:i}=n,{nextZIndex:a}=r,l=u.ref(!1),c=u.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:u.markRaw(d.loading_default),cancelButtonLoadingIcon:u.markRaw(d.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:a()}),h=u.computed(()=>{const O=c.type;return{[o.bm("icon",O)]:O&&d.TypeComponentsMap[O]}}),p=qn(),v=qn(),g=u.computed(()=>{const O=c.type;return c.icon||O&&d.TypeComponentsMap[O]||""}),f=u.computed(()=>!!c.message),m=u.ref(),b=u.ref(),y=u.ref(),T=u.ref(),C=u.ref(),P=u.computed(()=>c.confirmButtonClass);u.watch(()=>c.inputValue,async O=>{await u.nextTick(),e.boxType==="prompt"&&O&&M()},{immediate:!0}),u.watch(()=>l.value,O=>{var U,N;O&&(e.boxType!=="prompt"&&(c.autofocus?y.value=(N=(U=C.value)==null?void 0:U.$el)!=null?N:m.value:y.value=m.value),c.zIndex=a()),e.boxType==="prompt"&&(O?u.nextTick().then(()=>{var Q;T.value&&T.value.$el&&(c.autofocus?y.value=(Q=X())!=null?Q:m.value:y.value=m.value)}):(c.editorErrorMessage="",c.validateError=!1))});const K=u.computed(()=>e.draggable),D=u.computed(()=>e.overflow),{isDragging:k}=md(m,b,K,D);u.onMounted(async()=>{await u.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",F)}),u.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",F)});function F(){l.value&&(l.value=!1,u.nextTick(()=>{c.action&&t("action",c.action)}))}const V=()=>{e.closeOnClickModal&&x(c.distinguishCancelAndClose?"close":"cancel")},A=ji(V),w=O=>{if(c.inputType!=="textarea")return O.preventDefault(),x("confirm")},x=O=>{var U;e.boxType==="prompt"&&O==="confirm"&&!M()||(c.action=O,c.beforeClose?(U=c.beforeClose)==null||U.call(c,O,c,F):F())},M=()=>{if(e.boxType==="prompt"){const O=c.inputPattern;if(O&&!O.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;const U=c.inputValidator;if(d.isFunction$1(U)){const N=U(c.inputValue);if(N===!1)return c.editorErrorMessage=c.inputErrorMessage||i("el.messagebox.error"),c.validateError=!0,!1;if(d.isString(N))return c.editorErrorMessage=N,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},X=()=>{var O,U;const N=(O=T.value)==null?void 0:O.$refs;return(U=N==null?void 0:N.input)!=null?U:N==null?void 0:N.textarea},fe=()=>{x("close")},J=()=>{e.closeOnPressEscape&&fe()};return e.lockScroll&&Ed(l,{ns:o}),{...u.toRefs(c),ns:o,overlayEvent:A,visible:l,hasMessage:f,typeClass:h,contentId:p,inputId:v,btnSize:s,iconComponent:g,confirmButtonClasses:P,rootRef:m,focusStartRef:y,headerRef:b,inputRef:T,isDragging:k,confirmRef:C,doClose:F,handleClose:fe,onCloseRequested:J,handleWrapperClick:V,handleInputEnter:w,handleAction:x,t:i}}});function Td(e,t,n,r,o,s){const i=u.resolveComponent("el-icon"),a=u.resolveComponent("el-input"),l=u.resolveComponent("el-button"),c=u.resolveComponent("el-focus-trap"),h=u.resolveComponent("el-overlay");return u.openBlock(),u.createBlock(u.Transition,{name:"fade-in-linear",onAfterLeave:p=>e.$emit("vanish"),persisted:""},{default:u.withCtx(()=>[u.withDirectives(u.createVNode(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:u.withCtx(()=>[u.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:u.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[u.createVNode(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"rootRef",class:u.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:u.normalizeStyle(e.customStyle),tabindex:"-1",onClick:u.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(u.openBlock(),u.createElementBlock("div",{key:0,ref:"headerRef",class:u.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(u.openBlock(),u.createBlock(i,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),u.createElementVNode("span",null,u.toDisplayString(e.title),1)],2),e.showClose?(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:u.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:u.withKeys(u.withModifiers(p=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[u.createVNode(i,{class:u.normalizeClass(e.ns.e("close"))},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):u.createCommentVNode("v-if",!0)],2)):u.createCommentVNode("v-if",!0),u.createElementVNode("div",{id:e.contentId,class:u.normalizeClass(e.ns.e("content"))},[u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(u.openBlock(),u.createBlock(i,{key:0,class:u.normalizeClass([e.ns.e("status"),e.typeClass])},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):u.createCommentVNode("v-if",!0),e.hasMessage?(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(e.ns.e("message"))},[u.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:u.toDisplayString(e.message)},null,8,["for","textContent"]))])],2)):u.createCommentVNode("v-if",!0)],2),u.withDirectives(u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("input"))},[u.createVNode(a,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":p=>e.inputValue=p,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:u.normalizeClass({invalid:e.validateError}),onKeydown:u.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("errormsg")),style:u.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},u.toDisplayString(e.editorErrorMessage),7)],2),[[u.vShow,e.showInput]])],10,["id"]),u.createElementVNode("div",{class:u.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(u.openBlock(),u.createBlock(l,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:u.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:p=>e.handleAction("cancel"),onKeydown:u.withKeys(u.withModifiers(p=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):u.createCommentVNode("v-if",!0),u.withDirectives(u.createVNode(l,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:u.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:p=>e.handleAction("confirm"),onKeydown:u.withKeys(u.withModifiers(p=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[u.vShow,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[u.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var wd=d._export_sfc(Sd,[["render",Td],["__file","index.vue"]]);const wt=new Map,Ad=e=>{let t=document.body;return e.appendTo&&(d.isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),d.isElement(e.appendTo)&&(t=e.appendTo),d.isElement(t)||(d.debugWarn("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},Cd=(e,t,n=null)=>{const r=u.createVNode(wd,e,d.isFunction$1(e.message)||u.isVNode(e.message)?{default:d.isFunction$1(e.message)?e.message:()=>e.message}:null);return r.appContext=n,u.render(r,t),Ad(e).appendChild(t.firstElementChild),r.component},Od=()=>document.createElement("div"),Dd=(e,t)=>{const n=Od();e.onVanish=()=>{u.render(null,n),wt.delete(o)},e.onAction=s=>{const i=wt.get(o);let a;e.showInput?a={value:o.inputValue,action:s}:a=s,e.callback?e.callback(a,r.proxy):s==="cancel"||s==="close"?e.distinguishCancelAndClose&&s!=="cancel"?i.reject("close"):i.reject("cancel"):i.resolve(a)};const r=Cd(e,n,t),o=r.proxy;for(const s in e)d.hasOwn(e,s)&&!d.hasOwn(o.$props,s)&&(s==="closeIcon"&&d.isObject$1(e[s])?o[s]=u.markRaw(e[s]):o[s]=e[s]);return o.visible=!0,o};function ct(e,t=null){if(!d.isClient)return Promise.reject();let n;return d.isString(e)||u.isVNode(e)?e={message:e}:n=e.callback,new Promise((r,o)=>{const s=Dd(e,t??ct._context);wt.set(s,{options:e,callback:n,resolve:r,reject:o})})}const Id=["alert","confirm","prompt"],kd={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Id.forEach(e=>{ct[e]=xd(e)});function xd(e){return(t,n,r,o)=>{let s="";return d.isObject$1(n)?(r=n,s=""):d.isUndefined(n)?s="":s=n,ct(Object.assign({title:s,message:t,type:"",...kd[e]},r,{boxType:e}),o)}}ct.close=()=>{wt.forEach((e,t)=>{t.doClose()}),wt.clear()};ct._context=null;const Te=ct;Te.install=e=>{Te._context=e._context,e.config.globalProperties.$msgbox=Te,e.config.globalProperties.$messageBox=Te,e.config.globalProperties.$alert=Te.alert,e.config.globalProperties.$confirm=Te.confirm,e.config.globalProperties.$prompt=Te.prompt};const Hi=Te;var Rd=Object.create,Ki=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,wr=Object.getOwnPropertyNames,Bd=Object.getPrototypeOf,Pd=Object.prototype.hasOwnProperty,Vd=(e,t)=>function(){return e&&(t=(0,e[wr(e)[0]])(e=0)),t},Md=(e,t)=>function(){return t||(0,e[wr(e)[0]])((t={exports:{}}).exports,t),t.exports},Ld=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wr(t))!Pd.call(e,o)&&o!==n&&Ki(e,o,{get:()=>t[o],enumerable:!(r=Nd(t,o))||r.enumerable});return e},Fd=(e,t,n)=>(n=e!=null?Rd(Bd(e)):{},Ld(Ki(n,"default",{value:e,enumerable:!0}),e)),Rt=Vd({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),Ud=Md({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){Rt(),t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const i=new Map;if(i.set(Date,p=>new Date(p)),i.set(Map,(p,v)=>new Map(l(Array.from(p),v))),i.set(Set,(p,v)=>new Set(l(Array.from(p),v))),s.constructorHandlers)for(const p of s.constructorHandlers)i.set(p[0],p[1]);let a=null;return s.proto?h:c;function l(p,v){const g=Object.keys(p),f=new Array(g.length);for(let m=0;m<g.length;m++){const b=g[m],y=p[b];typeof y!="object"||y===null?f[b]=y:y.constructor!==Object&&(a=i.get(y.constructor))?f[b]=a(y,v):ArrayBuffer.isView(y)?f[b]=n(y):f[b]=v(y)}return f}function c(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return l(p,c);if(p.constructor!==Object&&(a=i.get(p.constructor)))return a(p,c);const v={};for(const g in p){if(Object.hasOwnProperty.call(p,g)===!1)continue;const f=p[g];typeof f!="object"||f===null?v[g]=f:f.constructor!==Object&&(a=i.get(f.constructor))?v[g]=a(f,c):ArrayBuffer.isView(f)?v[g]=n(f):v[g]=c(f)}return v}function h(p){if(typeof p!="object"||p===null)return p;if(Array.isArray(p))return l(p,h);if(p.constructor!==Object&&(a=i.get(p.constructor)))return a(p,h);const v={};for(const g in p){const f=p[g];typeof f!="object"||f===null?v[g]=f:f.constructor!==Object&&(a=i.get(f.constructor))?v[g]=a(f,h):ArrayBuffer.isView(f)?v[g]=n(f):v[g]=h(f)}return v}}function o(s){const i=[],a=[],l=new Map;if(l.set(Date,g=>new Date(g)),l.set(Map,(g,f)=>new Map(h(Array.from(g),f))),l.set(Set,(g,f)=>new Set(h(Array.from(g),f))),s.constructorHandlers)for(const g of s.constructorHandlers)l.set(g[0],g[1]);let c=null;return s.proto?v:p;function h(g,f){const m=Object.keys(g),b=new Array(m.length);for(let y=0;y<m.length;y++){const T=m[y],C=g[T];if(typeof C!="object"||C===null)b[T]=C;else if(C.constructor!==Object&&(c=l.get(C.constructor)))b[T]=c(C,f);else if(ArrayBuffer.isView(C))b[T]=n(C);else{const P=i.indexOf(C);P!==-1?b[T]=a[P]:b[T]=f(C)}}return b}function p(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return h(g,p);if(g.constructor!==Object&&(c=l.get(g.constructor)))return c(g,p);const f={};i.push(g),a.push(f);for(const m in g){if(Object.hasOwnProperty.call(g,m)===!1)continue;const b=g[m];if(typeof b!="object"||b===null)f[m]=b;else if(b.constructor!==Object&&(c=l.get(b.constructor)))f[m]=c(b,p);else if(ArrayBuffer.isView(b))f[m]=n(b);else{const y=i.indexOf(b);y!==-1?f[m]=a[y]:f[m]=p(b)}}return i.pop(),a.pop(),f}function v(g){if(typeof g!="object"||g===null)return g;if(Array.isArray(g))return h(g,v);if(g.constructor!==Object&&(c=l.get(g.constructor)))return c(g,v);const f={};i.push(g),a.push(f);for(const m in g){const b=g[m];if(typeof b!="object"||b===null)f[m]=b;else if(b.constructor!==Object&&(c=l.get(b.constructor)))f[m]=c(b,v);else if(ArrayBuffer.isView(b))f[m]=n(b);else{const y=i.indexOf(b);y!==-1?f[m]=a[y]:f[m]=v(b)}}return i.pop(),a.pop(),f}}}});Rt();Rt();Rt();var zi=typeof navigator<"u",I=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof I.chrome<"u"&&I.chrome.devtools;zi&&(I.self,I.top);var jo;typeof navigator<"u"&&((jo=navigator.userAgent)==null||jo.toLowerCase().includes("electron"));Rt();var $d=Fd(Ud()),jd=/(?:^|[-_/])(\w)/g;function Hd(e,t){return t?t.toUpperCase():""}function Kd(e){return e&&`${e}`.replace(jd,Hd)}function zd(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}var Ho=(0,$d.default)({circles:!0});const qd={trailing:!0};function ot(e,t=25,n={}){if(n={...qd,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const l=(c,h)=>(i=Gd(e,c,h),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const p=l(c,a);return a=null,p}}),i);return function(...c){return i?(n.trailing&&(a=c),i):new Promise(h=>{const p=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const v=n.leading?r:l(this,c);for(const g of s)g(v);s=[]},t),p?(r=l(this,c),h(r)):s.push(h)})}}async function Gd(e,t,n){return await e.apply(t,n)}function Zn(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Zn(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Wd={run:e=>e()},Yd=()=>Wd,qi=typeof console.createTask<"u"?console.createTask:Yd;function Zd(e,t){const n=t.shift(),r=qi(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Xd(e,t){const n=t.shift(),r=qi(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function xn(e,t){for(const n of[...e])n(t)}class Jd{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Zn(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=Zn(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Zd,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Xd,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&xn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&xn(this._after,o)}):(this._after&&o&&xn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Gi(){return new Jd}var Qd=Object.create,Wi=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,Ar=Object.getOwnPropertyNames,th=Object.getPrototypeOf,nh=Object.prototype.hasOwnProperty,rh=(e,t)=>function(){return e&&(t=(0,e[Ar(e)[0]])(e=0)),t},Yi=(e,t)=>function(){return t||(0,e[Ar(e)[0]])((t={exports:{}}).exports,t),t.exports},oh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ar(t))!nh.call(e,o)&&o!==n&&Wi(e,o,{get:()=>t[o],enumerable:!(r=eh(t,o))||r.enumerable});return e},sh=(e,t,n)=>(n=e!=null?Qd(th(e)):{},oh(Wi(n,"default",{value:e,enumerable:!0}),e)),_=rh({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),ih=Yi({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){_(),function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),c=[";","?",":","@","&","=","+","$",","].join(""),h=[".","!","~","*","'","(",")"].join(""),p=function(b,y){var T="-",C="",P="",K=!0,D={},k,F,V,A,w,x,M,X,fe,J,O,U,N,Q,ue="";if(typeof b!="string")return"";if(typeof y=="string"&&(T=y),M=a.en,X=i.en,typeof y=="object"){k=y.maintainCase||!1,D=y.custom&&typeof y.custom=="object"?y.custom:D,V=+y.truncate>1&&y.truncate||!1,A=y.uric||!1,w=y.uricNoSlash||!1,x=y.mark||!1,K=!(y.symbols===!1||y.lang===!1),T=y.separator||T,A&&(ue+=l),w&&(ue+=c),x&&(ue+=h),M=y.lang&&a[y.lang]&&K?a[y.lang]:K?a.en:{},X=y.lang&&i[y.lang]?i[y.lang]:y.lang===!1||y.lang===!0?{}:i.en,y.titleCase&&typeof y.titleCase.length=="number"&&Array.prototype.toString.call(y.titleCase)?(y.titleCase.forEach(function(se){D[se+""]=se+""}),F=!0):F=!!y.titleCase,y.custom&&typeof y.custom.length=="number"&&Array.prototype.toString.call(y.custom)&&y.custom.forEach(function(se){D[se+""]=se+""}),Object.keys(D).forEach(function(se){var Re;se.length>1?Re=new RegExp("\\b"+g(se)+"\\b","gi"):Re=new RegExp(g(se),"gi"),b=b.replace(Re,D[se])});for(O in D)ue+=O}for(ue+=T,ue=g(ue),b=b.replace(/(^\s+|\s+$)/g,""),N=!1,Q=!1,J=0,U=b.length;J<U;J++)O=b[J],f(O,D)?N=!1:X[O]?(O=N&&X[O].match(/[A-Za-z0-9]/)?" "+X[O]:X[O],N=!1):O in r?(J+1<U&&o.indexOf(b[J+1])>=0?(P+=O,O=""):Q===!0?(O=s[P]+r[O],P=""):O=N&&r[O].match(/[A-Za-z0-9]/)?" "+r[O]:r[O],N=!1,Q=!1):O in s?(P+=O,O="",J===U-1&&(O=s[P]),Q=!0):M[O]&&!(A&&l.indexOf(O)!==-1)&&!(w&&c.indexOf(O)!==-1)?(O=N||C.substr(-1).match(/[A-Za-z0-9]/)?T+M[O]:M[O],O+=b[J+1]!==void 0&&b[J+1].match(/[A-Za-z0-9]/)?T:"",N=!0):(Q===!0?(O=s[P]+O,P="",Q=!1):N&&(/[A-Za-z0-9]/.test(O)||C.substr(-1).match(/A-Za-z0-9]/))&&(O=" "+O),N=!1),C+=O.replace(new RegExp("[^\\w\\s"+ue+"_-]","g"),T);return F&&(C=C.replace(/(\w)(\S*)/g,function(se,Re,Bt){var pt=Re.toUpperCase()+(Bt!==null?Bt:"");return Object.keys(D).indexOf(pt.toLowerCase())<0?pt:pt.toLowerCase()})),C=C.replace(/\s+/g,T).replace(new RegExp("\\"+T+"+","g"),T).replace(new RegExp("(^\\"+T+"+|\\"+T+"+$)","g"),""),V&&C.length>V&&(fe=C.charAt(V)===T,C=C.slice(0,V),fe||(C=C.slice(0,C.lastIndexOf(T)))),!k&&!F&&(C=C.toLowerCase()),C},v=function(b){return function(T){return p(T,b)}},g=function(b){return b.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},f=function(m,b){for(var y in b)if(b[y]===m)return!0};if(typeof t<"u"&&t.exports)t.exports=p,t.exports.createSlug=v;else if(typeof define<"u"&&define.amd)define([],function(){return p});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=p,n.createSlug=v}catch{}}(e)}}),ah=Yi({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){_(),t.exports=ih()}});_();_();_();_();_();_();_();_();function uh(e){var t;const n=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return n==="index"&&((t=e.__file)!=null&&t.endsWith("index.vue"))?"":n}function lh(e){const t=e.__file;if(t)return Kd(zd(t,".vue"))}function Ko(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Cr(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Zi(e){var t,n;const r=(t=e.subTree)==null?void 0:t.type,o=Cr(e);return o?((n=o==null?void 0:o.types)==null?void 0:n.Fragment)===r:!1}function yn(e){var t,n,r;const o=uh((e==null?void 0:e.type)||{});if(o)return o;if((e==null?void 0:e.root)===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===(e==null?void 0:e.type))return Ko(e,i);for(const i in(r=e.appContext)==null?void 0:r.components)if(e.appContext.components[i]===(e==null?void 0:e.type))return Ko(e,i);const s=lh((e==null?void 0:e.type)||{});return s||"Anonymous Component"}function ch(e){var t,n,r;const o=(r=(n=(t=e==null?void 0:e.appContext)==null?void 0:t.app)==null?void 0:n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?r:0,s=e===(e==null?void 0:e.root)?"root":e.uid;return`${o}:${s}`}function Xn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function fh(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}var $t;function dh(e){return $t||($t=document.createRange()),$t.selectNode(e),$t.getBoundingClientRect()}function hh(e){const t=fh();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=Fe(o.component);else if(o.el){const i=o.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=dh(i))}s&&ph(t,s)}return t}function ph(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}var zo={top:0,left:0,right:0,bottom:0,width:0,height:0};function Fe(e){const t=e.subTree.el;return typeof window>"u"?zo:Zi(e)?hh(e.subTree):(t==null?void 0:t.nodeType)===1?t==null?void 0:t.getBoundingClientRect():e.subTree.component?Fe(e.subTree.component):zo}_();function Or(e){return Zi(e)?gh(e.subTree):e.subTree?[e.subTree.el]:[]}function gh(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...Or(n.component)):n!=null&&n.el&&t.push(n.el)}),t}var Xi="__vue-devtools-component-inspector__",Ji="__vue-devtools-component-inspector__card__",Qi="__vue-devtools-component-inspector__name__",ea="__vue-devtools-component-inspector__indicator__",ta={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},vh={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},yh={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function ft(){return document.getElementById(Xi)}function mh(){return document.getElementById(Ji)}function Eh(){return document.getElementById(ea)}function bh(){return document.getElementById(Qi)}function Dr(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function Ir(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Xi,Object.assign(n.style,{...ta,...Dr(e.bounds),...e.style});const r=document.createElement("span");r.id=Ji,Object.assign(r.style,{...vh,top:e.bounds.top<35?0:"-35px"});const o=document.createElement("span");o.id=Qi,o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const s=document.createElement("i");return s.id=ea,s.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(s.style,yh),r.appendChild(o),r.appendChild(s),n.appendChild(r),document.body.appendChild(n),n}function kr(e){const t=ft(),n=mh(),r=bh(),o=Eh();t&&(Object.assign(t.style,{...ta,...Dr(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function _h(e){const t=Fe(e);if(!t.width&&!t.height)return;const n=yn(e);ft()?kr({bounds:t,name:n}):Ir({bounds:t,name:n})}function na(){const e=ft();e&&(e.style.display="none")}var Jn=null;function Qn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Jn=n,n.vnode.el)){const o=Fe(n),s=yn(n);ft()?kr({bounds:o,name:s}):Ir({bounds:o,name:s})}}}function Sh(e,t){if(e.preventDefault(),e.stopPropagation(),Jn){const n=ch(Jn);t(n)}}var an=null;function Th(){na(),window.removeEventListener("mouseover",Qn),window.removeEventListener("click",an,!0),an=null}function wh(){return window.addEventListener("mouseover",Qn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Sh(n,r=>{window.removeEventListener("click",t,!0),an=null,window.removeEventListener("mouseover",Qn);const o=ft();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}an=t,window.addEventListener("click",t,!0)})}function Ah(e){const t=Xn(re.value,e.id);if(t){const[n]=Or(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=Fe(t),o=document.createElement("div"),s={...Dr(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=Fe(t);if(r.width||r.height){const o=yn(t),s=ft();s?kr({...e,name:o,bounds:r}):Ir({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}_();var qo,Go;(Go=(qo=I).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__)!=null||(qo.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0);function Ch(e){let t=0;const n=setInterval(()=>{I.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function Oh(){const e=I.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Dh(){return new Promise(e=>{function t(){Oh(),e(I.__VUE_INSPECTOR__)}I.__VUE_INSPECTOR__?t():Ch(()=>{t()})})}_();_();function Ih(e){return!!(e&&e.__v_isReadonly)}function ra(e){return Ih(e)?ra(e.__v_raw):!!(e&&e.__v_isReactive)}function Rn(e){return!!(e&&e.__v_isRef===!0)}function yt(e){const t=e&&e.__v_raw;return t?yt(t):e}var kh=class{constructor(){this.refEditor=new xh}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],i=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):yt(t)instanceof Map?t.delete(n):yt(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):yt(t)instanceof Map?t.set(e.newKey||n,r):yt(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},xh=class{set(e,t){if(Rn(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Rn(e)?e.value:e}isRef(e){return Rn(e)||ra(e)}};_();_();_();var Rh="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Nh(){if(!zi||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem(Rh);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}_();_();_();var Wo,Yo;(Yo=(Wo=I).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS)!=null||(Wo.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var Bh=new Proxy(I.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Ph(e,t){G.timelineLayersState[t.id]=!1,Bh.push({...e,descriptorId:t.id,appRecord:Cr(t.app)})}var Zo,Xo;(Xo=(Zo=I).__VUE_DEVTOOLS_KIT_INSPECTOR__)!=null||(Zo.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var xr=new Proxy(I.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),oa=ot(()=>{dt.hooks.callHook("sendInspectorToClient",sa())});function Vh(e,t){var n,r;xr.push({options:e,descriptor:t,treeFilterPlaceholder:(n=e.treeFilterPlaceholder)!=null?n:"Search tree...",stateFilterPlaceholder:(r=e.stateFilterPlaceholder)!=null?r:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Cr(t.app)}),oa()}function sa(){return xr.filter(e=>e.descriptor.app===re.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,r=e.options;return{id:r.id,label:r.label,logo:n.logo,icon:`custom-ic-baseline-${(t=r==null?void 0:r.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function Xt(e,t){return xr.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}function Mh(){const e=Gi();e.hook("addInspector",({inspector:r,plugin:o})=>{Vh(r,o.descriptor)});const t=ot(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||G.highPerfModeEnabled)return;const i=Xt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,filter:(i==null?void 0:i.treeFilter)||"",rootNodes:[]};await new Promise(l=>{e.callHookWith(async c=>{await Promise.all(c.map(h=>h(a))),l()},"getInspectorTree")}),e.callHookWith(async l=>{await Promise.all(l.map(c=>c({inspectorId:r,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=ot(async({inspectorId:r,plugin:o})=>{var s;if(!r||!((s=o==null?void 0:o.descriptor)!=null&&s.app)||G.highPerfModeEnabled)return;const i=Xt(r,o.descriptor.app),a={app:o.descriptor.app,inspectorId:r,nodeId:(i==null?void 0:i.selectedNodeId)||"",state:null},l={currentTab:`custom-inspector:${r}`};a.nodeId&&await new Promise(c=>{e.callHookWith(async h=>{await Promise.all(h.map(p=>p(a,l))),c()},"getInspectorState")}),e.callHookWith(async c=>{await Promise.all(c.map(h=>h({inspectorId:r,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:r,nodeId:o,plugin:s})=>{const i=Xt(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook("timelineLayerAdded",({options:r,plugin:o})=>{Ph(r,o.descriptor)}),e.hook("timelineEventAdded",({options:r,plugin:o})=>{var s;const i=["performance","component-event","keyboard","mouse"];G.highPerfModeEnabled||!((s=G.timelineLayersState)!=null&&s[o.descriptor.id])&&!i.includes(r.layerId)||e.callHookWith(async a=>{await Promise.all(a.map(l=>l(r)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([a])=>a.split(":")[0]===s).map(([,a])=>a)}),e.hook("getComponentBounds",async({instance:r})=>Fe(r)),e.hook("getComponentName",({instance:r})=>yn(r)),e.hook("componentHighlight",({uid:r})=>{const o=re.value.instanceMap.get(r);o&&_h(o)}),e.hook("componentUnhighlight",()=>{na()}),e}var Jo,Qo;(Qo=(Jo=I).__VUE_DEVTOOLS_KIT_APP_RECORDS__)!=null||(Jo.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]);var es,ts;(ts=(es=I).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__)!=null||(es.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={});var ns,rs;(rs=(ns=I).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__)!=null||(ns.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__="");var os,ss;(ss=(os=I).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__)!=null||(os.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]);var is,as;(as=(is=I).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__)!=null||(is.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var Me="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Lh(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Nh()}}var us,ls;(ls=(us=I)[Me])!=null||(us[Me]=Lh());var Fh=ot(e=>{dt.hooks.callHook("devtoolsStateUpdated",{state:e})});ot((e,t)=>{dt.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var mn=new Proxy(I.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?I.__VUE_DEVTOOLS_KIT_APP_RECORDS__:I.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),re=new Proxy(I.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?I.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?I.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:I.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ia(){Fh({...I[Me],appRecords:mn.value,activeAppRecordId:re.id,tabs:I.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:I.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Uh(e){I.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ia()}function $h(e){I.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ia()}var G=new Proxy(I[Me],{get(e,t){return t==="appRecords"?mn:t==="activeAppRecordId"?re.id:t==="tabs"?I.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?I.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:I[Me][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...I[Me]},e[t]=n,I[Me][t]=n,!0}});function jh(e={}){var t,n,r;const{file:o,host:s,baseUrl:i=window.location.origin,line:a=0,column:l=0}=e;if(o){if(s==="chrome-extension"){const c=o.replace(/\\/g,"\\\\"),h=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${h}__open-in-editor?file=${encodeURI(o)}`).then(p=>{if(!p.ok){const v=`Opening component ${c} failed`;console.log(`%c${v}`,"color:red")}})}else if(G.vitePluginDetected){const c=(r=I.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?r:i;I.__VUE_INSPECTOR__.openInEditor(c,o,a,l)}}}_();_();_();_();_();var cs,fs;(fs=(cs=I).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__)!=null||(cs.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var Rr=new Proxy(I.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function er(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Nr(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Hh(e){var t,n,r;const o=(n=(t=Rr.find(s=>{var i;return s[0].id===e&&!!((i=s[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(r=o==null?void 0:o.settings)!=null?r:null}function aa(e,t){var n,r,o;const s=Nr(e);if(s){const i=localStorage.getItem(s);if(i)return JSON.parse(i)}if(e){const i=(r=(n=Rr.find(a=>a[0].id===e))==null?void 0:n[0])!=null?r:null;return er((o=i==null?void 0:i.settings)!=null?o:{})}return er(t)}function Kh(e,t){const n=Nr(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(er(t)))}function zh(e,t,n){const r=Nr(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),dt.hooks.callHookWith(a=>{a.forEach(l=>l({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},"setPluginSettings")}_();_();_();_();_();_();_();_();_();_();_();var ds,hs,ae=(hs=(ds=I).__VUE_DEVTOOLS_HOOK)!=null?hs:ds.__VUE_DEVTOOLS_HOOK=Gi(),qh={vueAppInit(e){ae.hook("app:init",e)},vueAppUnmount(e){ae.hook("app:unmount",e)},vueAppConnected(e){ae.hook("app:connected",e)},componentAdded(e){return ae.hook("component:added",e)},componentEmit(e){return ae.hook("component:emit",e)},componentUpdated(e){return ae.hook("component:updated",e)},componentRemoved(e){return ae.hook("component:removed",e)},setupDevtoolsPlugin(e){ae.hook("devtools-plugin:setup",e)},perfStart(e){return ae.hook("perf:start",e)},perfEnd(e){return ae.hook("perf:end",e)}},ua={on:qh,setupDevToolsPlugin(e,t){return ae.callHook("devtools-plugin:setup",e,t)}},Gh=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(G.highPerfModeEnabled)return;const n=sa().find(r=>r.packageName===this.plugin.descriptor.packageName);if(n!=null&&n.id){if(e){const r=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];ae.callHook("component:updated",...r)}else ae.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Kh(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){G.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){G.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return G.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){G.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return aa(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}},Wh=Gh;_();_();_();_();var Yh="__vue_devtool_undefined__",Zh="__vue_devtool_infinity__",Xh="__vue_devtool_negative_infinity__",Jh="__vue_devtool_nan__";_();_();var Qh={[Yh]:"undefined",[Jh]:"NaN",[Zh]:"Infinity",[Xh]:"-Infinity"};Object.entries(Qh).reduce((e,[t,n])=>(e[n]=t,e),{});_();_();_();_();_();var ps,gs;(gs=(ps=I).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__)!=null||(ps.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set);function la(e,t){return ua.setupDevToolsPlugin(e,t)}function ep(e,t){const[n,r]=e;if(n.app!==t)return;const o=new Wh({plugin:{setupFn:r,descriptor:n},ctx:dt});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function ca(e,t){I.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||G.highPerfModeEnabled&&!(t!=null&&t.inspectingComponent)||(I.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Rr.forEach(n=>{ep(n,e)}))}_();_();var At="__VUE_DEVTOOLS_ROUTER__",st="__VUE_DEVTOOLS_ROUTER_INFO__",vs,ys;(ys=(vs=I)[st])!=null||(vs[st]={currentRoute:null,routes:[]});var ms,Es;(Es=(ms=I)[At])!=null||(ms[At]={});new Proxy(I[st],{get(e,t){return I[st][t]}});new Proxy(I[At],{get(e,t){if(t==="value")return I[At]}});function tp(e){const t=new Map;return((e==null?void 0:e.getRoutes())||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Br(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o!=null&&o.length&&(o=Br(o)),{path:n,name:r,children:o,meta:s}})}function np(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:l}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:l,matched:Br(i)}}return e}function rp(e,t){function n(){var r;const o=(r=e.app)==null?void 0:r.config.globalProperties.$router,s=np(o==null?void 0:o.currentRoute.value),i=Br(tp(o)),a=console.warn;console.warn=()=>{},I[st]={currentRoute:s?Ho(s):{},routes:Ho(i)},I[At]=o,console.warn=a}n(),ua.on.componentUpdated(ot(()=>{var r;((r=t.value)==null?void 0:r.app)===e.app&&(n(),!G.highPerfModeEnabled&&dt.hooks.callHook("routerInfoUpdated",{state:I[st]}))},200))}function op(e){return{async getInspectorTree(t){const n={...t,app:re.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},"getInspectorTree")}),n.rootNodes},async getInspectorState(t){const n={...t,app:re.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,r))),o()},"getInspectorState")}),n.state},editInspectorState(t){const n=new kh,r={...t,app:re.value.app,set:(o,s=t.path,i=t.state.value,a)=>{n.set(o,s,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},"editInspectorState")},sendInspectorState(t){const n=Xt(t);e.callHook("sendInspectorState",{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return wh()},cancelInspectComponentInspector(){return Th()},getComponentRenderCode(t){const n=Xn(re.value,t);if(n)return typeof(n==null?void 0:n.type)!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Ah({id:t})},openInEditor:jh,getVueInspector:Dh,toggleApp(t,n){const r=mn.value.find(o=>o.id===t);r&&($h(t),Uh(r),rp(r,re),oa(),ca(r.app,n))},inspectDOM(t){const n=Xn(re.value,t);if(n){const[r]=Or(n);r&&(I.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){zh(t,n,r)},getPluginSettings(t){return{options:Hh(t),values:aa(t)}}}}_();var bs,_s;(_s=(bs=I).__VUE_DEVTOOLS_ENV__)!=null||(bs.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var Ss=Mh(),Ts,ws;(ws=(Ts=I).__VUE_DEVTOOLS_KIT_CONTEXT__)!=null||(Ts.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:Ss,get state(){return{...G,activeAppRecordId:re.id,activeAppRecord:re.value,appRecords:mn.value}},api:op(Ss)});var dt=I.__VUE_DEVTOOLS_KIT_CONTEXT__;_();sh(ah());var As,Cs;(Cs=(As=I).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__)!=null||(As.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set});_();_();function sp(e){G.highPerfModeEnabled=e??!G.highPerfModeEnabled,!e&&re.value&&ca(re.value.app)}_();_();_();function ip(e){G.devtoolsClientDetected={...G.devtoolsClientDetected,...e};const t=Object.values(G.devtoolsClientDetected).some(Boolean);sp(!t)}var Os,Ds;(Ds=(Os=I).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__)!=null||(Os.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=ip);_();_();_();_();_();_();_();var ap=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},fa=class{constructor(e){this.generateIdentifier=e,this.kv=new ap}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},up=class extends fa{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};_();_();function lp(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function cp(e,t){const n=lp(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function it(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Jt(e,t){return e.indexOf(t)!==-1}function Is(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var fp=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return cp(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};_();_();var dp=e=>Object.prototype.toString.call(e).slice(8,-1),da=e=>typeof e>"u",hp=e=>e===null,Ct=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,tr=e=>Ct(e)&&Object.keys(e).length===0,xe=e=>Array.isArray(e),pp=e=>typeof e=="string",gp=e=>typeof e=="number"&&!isNaN(e),vp=e=>typeof e=="boolean",yp=e=>e instanceof RegExp,Ot=e=>e instanceof Map,Dt=e=>e instanceof Set,ha=e=>dp(e)==="Symbol",mp=e=>e instanceof Date&&!isNaN(e.valueOf()),Ep=e=>e instanceof Error,ks=e=>typeof e=="number"&&isNaN(e),bp=e=>vp(e)||hp(e)||da(e)||gp(e)||pp(e)||ha(e),_p=e=>typeof e=="bigint",Sp=e=>e===1/0||e===-1/0,Tp=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),wp=e=>e instanceof URL;_();var pa=e=>e.replace(/\./g,"\\."),Nn=e=>e.map(String).map(pa).join("."),St=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};_();function ge(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var ga=[ge(da,"undefined",()=>null,()=>{}),ge(_p,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),ge(mp,"Date",e=>e.toISOString(),e=>new Date(e)),ge(Ep,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ge(yp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ge(Dt,"set",e=>[...e.values()],e=>new Set(e)),ge(Ot,"map",e=>[...e.entries()],e=>new Map(e)),ge(e=>ks(e)||Sp(e),"number",e=>ks(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ge(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ge(wp,"URL",e=>e.toString(),e=>new URL(e))];function En(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var va=En((e,t)=>ha(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Ap=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),ya=En(Tp,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Ap[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function ma(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Ea=En(ma,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),ba=En((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Cp=[Ea,va,ba,ya],xs=(e,t)=>{const n=Is(Cp,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Is(ga,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},_a={};ga.forEach(e=>{_a[e.annotation]=e});var Op=(e,t,n)=>{if(xe(t))switch(t[0]){case"symbol":return va.untransform(e,t,n);case"class":return Ea.untransform(e,t,n);case"custom":return ba.untransform(e,t,n);case"typed-array":return ya.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=_a[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}};_();var Xe=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Sa(e){if(Jt(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Jt(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Jt(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Dp=(e,t)=>{Sa(t);for(let n=0;n<t.length;n++){const r=t[n];if(Dt(e))e=Xe(e,+r);else if(Ot(e)){const o=+r,s=+t[++n]==0?"key":"value",i=Xe(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},nr=(e,t,n)=>{if(Sa(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(xe(r)){const a=+i;r=r[a]}else if(Ct(r))r=r[i];else if(Dt(r)){const a=+i;r=Xe(r,a)}else if(Ot(r)){if(s===t.length-2)break;const l=+i,c=+t[++s]==0?"key":"value",h=Xe(r,l);switch(c){case"key":r=h;break;case"value":r=r.get(h);break}}}const o=t[t.length-1];if(xe(r)?r[+o]=n(r[+o]):Ct(r)&&(r[o]=n(r[o])),Dt(r)){const s=Xe(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(Ot(r)){const s=+t[t.length-2],i=Xe(r,s);switch(+o==0?"key":"value"){case"key":{const l=n(i);r.set(l,r.get(i)),l!==i&&r.delete(i);break}case"value":{r.set(i,n(r.get(i)));break}}}return e};function rr(e,t,n=[]){if(!e)return;if(!xe(e)){it(e,(s,i)=>rr(s,t,[...n,...St(i)]));return}const[r,o]=e;o&&it(o,(s,i)=>{rr(s,t,[...n,...St(i)])}),t(r,n)}function Ip(e,t,n){return rr(t,(r,o)=>{e=nr(e,o,s=>Op(s,r,n))}),e}function kp(e,t){function n(r,o){const s=Dp(e,St(o));r.map(St).forEach(i=>{e=nr(e,i,()=>s)})}if(xe(t)){const[r,o]=t;r.forEach(s=>{e=nr(e,St(s),()=>e)}),o&&it(o,n)}else it(t,n);return e}var xp=(e,t)=>Ct(e)||xe(e)||Ot(e)||Dt(e)||ma(e,t);function Rp(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Np(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,l)=>a.length-l.length));const[s,...i]=o;s.length===0?r=i.map(Nn):n[Nn(s)]=i.map(Nn)}),r?tr(n)?[r]:[r,n]:tr(n)?void 0:n}var Ta=(e,t,n,r,o=[],s=[],i=new Map)=>{var a;const l=bp(e);if(!l){Rp(e,o,t);const f=i.get(e);if(f)return r?{transformedValue:null}:f}if(!xp(e,n)){const f=xs(e,n),m=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return l||i.set(e,m),m}if(Jt(s,e))return{transformedValue:null};const c=xs(e,n),h=(a=c==null?void 0:c.value)!=null?a:e,p=xe(h)?[]:{},v={};it(h,(f,m)=>{if(m==="__proto__"||m==="constructor"||m==="prototype")throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);const b=Ta(f,t,n,r,[...o,m],[...s,e],i);p[m]=b.transformedValue,xe(b.annotations)?v[m]=b.annotations:Ct(b.annotations)&&it(b.annotations,(y,T)=>{v[pa(m)+"."+T]=y})});const g=tr(v)?{transformedValue:p,annotations:c?[c.type]:void 0}:{transformedValue:p,annotations:c?[c.type,v]:v};return l||i.set(e,g),g};_();_();function wa(e){return Object.prototype.toString.call(e).slice(8,-1)}function Rs(e){return wa(e)==="Array"}function Bp(e){if(wa(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Pp(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function or(e,t={}){if(Rs(e))return e.map(o=>or(o,t));if(!Bp(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Rs(t.props)&&!t.props.includes(s))return o;const i=e[s],a=or(i,t);return Pp(o,s,a,e,t.nonenumerable),o},{})}var j=class{constructor({dedupe:e=!1}={}){this.classRegistry=new up,this.symbolRegistry=new fa(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new fp,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Ta(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Np(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=or(t);return n!=null&&n.values&&(r=Ip(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=kp(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};j.defaultInstance=new j;j.serialize=j.defaultInstance.serialize.bind(j.defaultInstance);j.deserialize=j.defaultInstance.deserialize.bind(j.defaultInstance);j.stringify=j.defaultInstance.stringify.bind(j.defaultInstance);j.parse=j.defaultInstance.parse.bind(j.defaultInstance);j.registerClass=j.defaultInstance.registerClass.bind(j.defaultInstance);j.registerSymbol=j.defaultInstance.registerSymbol.bind(j.defaultInstance);j.registerCustom=j.defaultInstance.registerCustom.bind(j.defaultInstance);j.allowErrorProps=j.defaultInstance.allowErrorProps.bind(j.defaultInstance);_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();_();var Ns,Bs;(Bs=(Ns=I).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__)!=null||(Ns.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]);var Ps,Vs;(Vs=(Ps=I).__VUE_DEVTOOLS_KIT_RPC_CLIENT__)!=null||(Ps.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null);var Ms,Ls;(Ls=(Ms=I).__VUE_DEVTOOLS_KIT_RPC_SERVER__)!=null||(Ms.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null);var Fs,Us;(Us=(Fs=I).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__)!=null||(Fs.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null);var $s,js;(js=($s=I).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__)!=null||($s.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null);var Hs,Ks;(Ks=(Hs=I).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__)!=null||(Hs.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null);_();_();_();_();_();_();_();/*!
8
- * pinia v3.0.3
9
- * (c) 2025 Eduardo San Martin Morote
10
- * @license MIT
11
- */let mt;const It=e=>mt=e,Aa=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function Ue(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ve;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ve||(ve={}));const Ce=typeof window<"u",zs=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Vp(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function Pr(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){Da(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function Ca(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Qt(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(n)}}const en=typeof navigator=="object"?navigator:{userAgent:""},Oa=/Macintosh/.test(en.userAgent)&&/AppleWebKit/.test(en.userAgent)&&!/Safari/.test(en.userAgent),Da=Ce?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Oa?Mp:"msSaveOrOpenBlob"in en?Lp:Fp:()=>{};function Mp(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener",typeof e=="string"?(r.href=e,r.origin!==location.origin?Ca(r.href)?Pr(e,t,n):(r.target="_blank",Qt(r)):Qt(r)):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Qt(r)},0))}function Lp(e,t="download",n){if(typeof e=="string")if(Ca(e))Pr(e,t,n);else{const r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Qt(r)})}else navigator.msSaveOrOpenBlob(Vp(e,n),t)}function Fp(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Pr(e,t,n);const o=e.type==="application/octet-stream",s=/constructor/i.test(String(zs.HTMLElement))||"safari"in zs,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||Oa)&&typeof FileReader<"u"){const a=new FileReader;a.onloadend=function(){let l=a.result;if(typeof l!="string")throw r=null,new Error("Wrong reader.result type");l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location.assign(l),r=null},a.readAsDataURL(e)}else{const a=URL.createObjectURL(e);r?r.location.assign(a):location.href=a,r=null,setTimeout(function(){URL.revokeObjectURL(a)},4e4)}}function W(e,t){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,t):t==="error"?console.error(n):t==="warn"?console.warn(n):console.log(n)}function Vr(e){return"_a"in e&&"install"in e}function Ia(){if(!("clipboard"in navigator))return W("Your browser doesn't support the Clipboard API","error"),!0}function ka(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(W('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Up(e){if(!Ia())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),W("Global state copied to clipboard.")}catch(t){if(ka(t))return;W("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function $p(e){if(!Ia())try{xa(e,JSON.parse(await navigator.clipboard.readText())),W("Global state pasted from clipboard.")}catch(t){if(ka(t))return;W("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function jp(e){try{Da(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){W("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Ee;function Hp(){Ee||(Ee=document.createElement("input"),Ee.type="file",Ee.accept=".json");function e(){return new Promise((t,n)=>{Ee.onchange=async()=>{const r=Ee.files;if(!r)return t(null);const o=r.item(0);return t(o?{text:await o.text(),file:o}:null)},Ee.oncancel=()=>t(null),Ee.onerror=n,Ee.click()})}return e}async function Kp(e){try{const n=await Hp()();if(!n)return;const{text:r,file:o}=n;xa(e,JSON.parse(r)),W(`Global state imported from "${o.name}".`)}catch(t){W("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function xa(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function he(e){return{_custom:{display:e}}}const Ra="🍍 Pinia (root)",tn="_root";function zp(e){return Vr(e)?{id:tn,label:Ra}:{id:e.$id,label:e.$id}}function qp(e){if(Vr(e)){const n=Array.from(e._s.keys()),r=e._s;return{state:n.map(s=>({editable:!0,key:s,value:e.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const i=r.get(s);return{editable:!1,key:s,value:i._getters.reduce((a,l)=>(a[l]=i[l],a),{})}})}}const t={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),t}function Gp(e){return e?Array.isArray(e)?e.reduce((t,n)=>(t.keys.push(n.key),t.operations.push(n.type),t.oldValue[n.key]=n.oldValue,t.newValue[n.key]=n.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:he(e.type),key:he(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function Wp(e){switch(e){case ve.direct:return"mutation";case ve.patchFunction:return"$patch";case ve.patchObject:return"$patch";default:return"unknown"}}let Je=!0;const nn=[],Be="pinia:mutations",ee="pinia",{assign:Yp}=Object,un=e=>"🍍 "+e;function Zp(e,t){la({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:nn,app:e},n=>{typeof n.now!="function"&&W("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:Be,label:"Pinia 🍍",color:15064968}),n.addInspector({id:ee,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Up(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await $p(t),n.sendInspectorTree(ee),n.sendInspectorState(ee)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{jp(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Kp(t),n.sendInspectorTree(ee),n.sendInspectorState(ee)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=t._s.get(r);o?typeof o.$reset!="function"?W(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),W(`Store "${r}" reset.`)):W(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(r=>{const o=r.componentInstance&&r.componentInstance.proxy;if(o&&o._pStores){const s=r.componentInstance.proxy._pStores;Object.values(s).forEach(i=>{r.instanceData.state.push({type:un(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:u.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((a,l)=>(a[l]=i.$state[l],a),{})}),i._getters&&i._getters.length&&r.instanceData.state.push({type:un(i.$id),key:"getters",editable:!1,value:i._getters.reduce((a,l)=>{try{a[l]=i[l]}catch(c){a[l]=c}return a},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===ee){let o=[t];o=o.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):Ra.toLowerCase().includes(r.filter.toLowerCase())):o).map(zp)}}),globalThis.$pinia=t,n.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===ee){const o=r.nodeId===tn?t:t._s.get(r.nodeId);if(!o)return;o&&(r.nodeId!==tn&&(globalThis.$store=u.toRaw(o)),r.state=qp(o))}}),n.on.editInspectorState(r=>{if(r.app===e&&r.inspectorId===ee){const o=r.nodeId===tn?t:t._s.get(r.nodeId);if(!o)return W(`store "${r.nodeId}" not found`,"error");const{path:s}=r;Vr(o)?s.unshift("state"):(s.length!==1||!o._customProperties.has(s[0])||s[0]in o.$state)&&s.unshift("$state"),Je=!1,r.set(o,s,r.state.value),Je=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("🍍")){const o=r.type.replace(/^🍍\s*/,""),s=t._s.get(o);if(!s)return W(`store "${o}" not found`,"error");const{path:i}=r;if(i[0]!=="state")return W(`Invalid path for store "${o}":
12
- ${i}
13
- Only state can be modified.`);i[0]="$state",Je=!1,r.set(s,i,r.state.value),Je=!0}})})}function Xp(e,t){nn.includes(un(t.$id))||nn.push(un(t.$id)),la({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:nn,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;t.$onAction(({after:i,onError:a,name:l,args:c})=>{const h=Na++;n.addTimelineEvent({layerId:Be,event:{time:r(),title:"🛫 "+l,subtitle:"start",data:{store:he(t.$id),action:he(l),args:c},groupId:h}}),i(p=>{Oe=void 0,n.addTimelineEvent({layerId:Be,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:he(t.$id),action:he(l),args:c,result:p},groupId:h}})}),a(p=>{Oe=void 0,n.addTimelineEvent({layerId:Be,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:he(t.$id),action:he(l),args:c,error:p},groupId:h}})})},!0),t._customProperties.forEach(i=>{u.watch(()=>u.unref(t[i]),(a,l)=>{n.notifyComponentUpdate(),n.sendInspectorState(ee),Je&&n.addTimelineEvent({layerId:Be,event:{time:r(),title:"Change",subtitle:i,data:{newValue:a,oldValue:l},groupId:Oe}})},{deep:!0})}),t.$subscribe(({events:i,type:a},l)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(ee),!Je)return;const c={time:r(),title:Wp(a),data:Yp({store:he(t.$id)},Gp(i)),groupId:Oe};a===ve.patchFunction?c.subtitle="⤵️":a===ve.patchObject?c.subtitle="🧩":i&&!Array.isArray(i)&&(c.subtitle=i.type),i&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:Be,event:c})},{detached:!0,flush:"sync"});const o=t._hotUpdate;t._hotUpdate=u.markRaw(i=>{o(i),n.addTimelineEvent({layerId:Be,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:he(t.$id),info:he("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(ee),n.sendInspectorState(ee)});const{$dispose:s}=t;t.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(ee),n.sendInspectorState(ee),n.getSettings().logStoreChanges&&W(`Disposed "${t.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(ee),n.sendInspectorState(ee),n.getSettings().logStoreChanges&&W(`"${t.$id}" store installed 🆕`)})}let Na=0,Oe;function qs(e,t,n){const r=t.reduce((o,s)=>(o[s]=u.toRaw(e)[s],o),{});for(const o in r)e[o]=function(){const s=Na,i=n?new Proxy(e,{get(...l){return Oe=s,Reflect.get(...l)},set(...l){return Oe=s,Reflect.set(...l)}}):e;Oe=s;const a=r[o].apply(i,arguments);return Oe=void 0,a}}function Jp({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(t._isOptionsAPI=!!n.state,!t._p._testing){qs(t,Object.keys(n.actions),t._isOptionsAPI);const r=t._hotUpdate;u.toRaw(t)._hotUpdate=function(o){r.apply(this,arguments),qs(t,Object.keys(o._hmrPayload.actions),!!t._isOptionsAPI)}}Xp(e,t)}}function Qp(){const e=u.effectScope(!0),t=e.run(()=>u.ref({}));let n=[],r=[];const o=u.markRaw({install(s){It(o),o._a=s,s.provide(Aa,o),s.config.globalProperties.$pinia=o,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ce&&Zp(s,o),r.forEach(i=>n.push(i)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ce&&typeof Proxy<"u"&&o.use(Jp),o}function Ba(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Ue(o)&&Ue(r)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=Ba(o,r):e[n]=r}return e}const Pa=()=>{};function Gs(e,t,n,r=Pa){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&u.getCurrentScope()&&u.onScopeDispose(o),o}function qe(e,...t){e.slice().forEach(n=>{n(...t)})}const e0=e=>e(),Ws=Symbol(),Bn=Symbol();function sr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ue(o)&&Ue(r)&&e.hasOwnProperty(n)&&!u.isRef(r)&&!u.isReactive(r)?e[n]=sr(o,r):e[n]=r}return e}const t0=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function n0(e){return!Ue(e)||!Object.prototype.hasOwnProperty.call(e,t0)}const{assign:le}=Object;function Ys(e){return!!(u.isRef(e)&&e.effect)}function Zs(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){!a&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[e]=o?o():{});const h=process.env.NODE_ENV!=="production"&&r?u.toRefs(u.ref(o?o():{}).value):u.toRefs(n.state.value[e]);return le(h,s,Object.keys(i||{}).reduce((p,v)=>(process.env.NODE_ENV!=="production"&&v in h&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${v}" in store "${e}".`),p[v]=u.markRaw(u.computed(()=>{It(n);const g=n._s.get(e);return i[v].call(g,g)})),p),{}))}return l=ir(e,c,t,n,r,!0),l}function ir(e,t,n={},r,o,s){let i;const a=le({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};process.env.NODE_ENV!=="production"&&(l.onTrigger=A=>{c?g=A:c==!1&&!k._hotUpdating&&(Array.isArray(g)?g.push(A):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,h,p=[],v=[],g;const f=r.state.value[e];!s&&!f&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[e]={});const m=u.ref({});let b;function y(A){let w;c=h=!1,process.env.NODE_ENV!=="production"&&(g=[]),typeof A=="function"?(A(r.state.value[e]),w={type:ve.patchFunction,storeId:e,events:g}):(sr(r.state.value[e],A),w={type:ve.patchObject,payload:A,storeId:e,events:g});const x=b=Symbol();u.nextTick().then(()=>{b===x&&(c=!0)}),h=!0,qe(p,w,r.state.value[e])}const T=s?function(){const{state:w}=n,x=w?w():{};this.$patch(M=>{le(M,x)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Pa;function C(){i.stop(),p=[],v=[],r._s.delete(e)}const P=(A,w="")=>{if(Ws in A)return A[Bn]=w,A;const x=function(){It(r);const M=Array.from(arguments),X=[],fe=[];function J(N){X.push(N)}function O(N){fe.push(N)}qe(v,{args:M,name:x[Bn],store:k,after:J,onError:O});let U;try{U=A.apply(this&&this.$id===e?this:k,M)}catch(N){throw qe(fe,N),N}return U instanceof Promise?U.then(N=>(qe(X,N),N)).catch(N=>(qe(fe,N),Promise.reject(N))):(qe(X,U),U)};return x[Ws]=!0,x[Bn]=w,x},K=u.markRaw({actions:{},getters:{},state:[],hotState:m}),D={_p:r,$id:e,$onAction:Gs.bind(null,v),$patch:y,$reset:T,$subscribe(A,w={}){const x=Gs(p,A,w.detached,()=>M()),M=i.run(()=>u.watch(()=>r.state.value[e],X=>{(w.flush==="sync"?h:c)&&A({storeId:e,type:ve.direct,events:g},X)},le({},l,w)));return x},$dispose:C},k=u.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ce?le({_hmrPayload:K,_customProperties:u.markRaw(new Set)},D):D);r._s.set(e,k);const V=(r._a&&r._a.runWithContext||e0)(()=>r._e.run(()=>(i=u.effectScope()).run(()=>t({action:P}))));for(const A in V){const w=V[A];if(u.isRef(w)&&!Ys(w)||u.isReactive(w))process.env.NODE_ENV!=="production"&&o?m.value[A]=u.toRef(V,A):s||(f&&n0(w)&&(u.isRef(w)?w.value=f[A]:sr(w,f[A])),r.state.value[e][A]=w),process.env.NODE_ENV!=="production"&&K.state.push(A);else if(typeof w=="function"){const x=process.env.NODE_ENV!=="production"&&o?w:P(w,A);V[A]=x,process.env.NODE_ENV!=="production"&&(K.actions[A]=w),a.actions[A]=w}else process.env.NODE_ENV!=="production"&&Ys(w)&&(K.getters[A]=s?n.getters[A]:w,Ce&&(V._getters||(V._getters=u.markRaw([]))).push(A))}if(le(k,V),le(u.toRaw(k),V),Object.defineProperty(k,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?m.value:r.state.value[e],set:A=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");y(w=>{le(w,A)})}}),process.env.NODE_ENV!=="production"&&(k._hotUpdate=u.markRaw(A=>{k._hotUpdating=!0,A._hmrPayload.state.forEach(w=>{if(w in k.$state){const x=A.$state[w],M=k.$state[w];typeof x=="object"&&Ue(x)&&Ue(M)?Ba(x,M):A.$state[w]=M}k[w]=u.toRef(A.$state,w)}),Object.keys(k.$state).forEach(w=>{w in A.$state||delete k[w]}),c=!1,h=!1,r.state.value[e]=u.toRef(A._hmrPayload,"hotState"),h=!0,u.nextTick().then(()=>{c=!0});for(const w in A._hmrPayload.actions){const x=A[w];k[w]=P(x,w)}for(const w in A._hmrPayload.getters){const x=A._hmrPayload.getters[w],M=s?u.computed(()=>(It(r),x.call(k,k))):x;k[w]=M}Object.keys(k._hmrPayload.getters).forEach(w=>{w in A._hmrPayload.getters||delete k[w]}),Object.keys(k._hmrPayload.actions).forEach(w=>{w in A._hmrPayload.actions||delete k[w]}),k._hmrPayload=A._hmrPayload,k._getters=A._getters,k._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ce){const A={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(w=>{Object.defineProperty(k,w,le({value:k[w]},A))})}return r._p.forEach(A=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ce){const w=i.run(()=>A({store:k,app:r._a,pinia:r,options:a}));Object.keys(w||{}).forEach(x=>k._customProperties.add(x)),le(k,w)}else le(k,i.run(()=>A({store:k,app:r._a,pinia:r,options:a})))}),process.env.NODE_ENV!=="production"&&k.$state&&typeof k.$state=="object"&&typeof k.$state.constructor=="function"&&!k.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
14
- state: () => new MyClass()
15
- Found in store "${k.$id}".`),f&&s&&n.hydrate&&n.hydrate(k.$state,f),c=!0,h=!0,k}/*! #__NO_SIDE_EFFECTS__ */function Nt(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function s(i,a){const l=u.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&mt&&mt._testing?null:i)||(l?u.inject(Aa,null):null),i&&It(i),process.env.NODE_ENV!=="production"&&!mt)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
16
- See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
17
- This will fail in production.`);i=mt,i._s.has(e)||(o?ir(e,t,r,i):Zs(e,r,i),process.env.NODE_ENV!=="production"&&(s._pinia=i));const c=i._s.get(e);if(process.env.NODE_ENV!=="production"&&a){const h="__hot:"+e,p=o?ir(h,t,r,i,!0):Zs(h,le({},r),i,!0);a._hotUpdate(p),delete i.state.value[h],i._s.delete(h)}if(process.env.NODE_ENV!=="production"&&Ce){const h=u.getCurrentInstance();if(h&&h.proxy&&!a){const p=h.proxy,v="_pStores"in p?p._pStores:p._pStores={};v[e]=c}}return c}return s.$id=e,s}function He(e){const t=u.toRaw(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=u.computed({get:()=>e[r],set(s){e[r]=s}}):(u.isRef(o)||u.isReactive(o))&&(n[r]=u.toRef(e,r))}return n}const r0=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o0=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s0=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function i0(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){a0(e);return}return t}function a0(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function u0(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!s0.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(r0.test(e)||o0.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,i0)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function l0(e,t){if(e==null)return;let n=e;for(let r=0;r<t.length;r++){if(n==null||n[t[r]]==null)return;n=n[t[r]]}return n}function Mr(e,t,n){if(n.length===0)return t;const r=n[0];return n.length>1&&(t=Mr(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function Va(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return Mr(e,Va(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Ma(e,t){return t.map(n=>n.split(".")).map(n=>[n,l0(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Mr(n,r[1],r[0]),{})}function La(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>Va(n,r),e)}function Xs(e,{storage:t,serializer:n,key:r,debug:o,pick:s,omit:i,beforeHydrate:a,afterHydrate:l},c,h=!0){try{h&&(a==null||a(c));const p=t.getItem(r);if(p){const v=n.deserialize(p),g=s?Ma(v,s):v,f=i?La(g,i):g;e.$patch(f)}h&&(l==null||l(c))}catch(p){o&&console.error("[pinia-plugin-persistedstate]",p)}}function Js(e,{storage:t,serializer:n,key:r,debug:o,pick:s,omit:i}){try{const a=s?Ma(e,s):e,l=i?La(a,i):a,c=n.serialize(l);t.setItem(r,c)}catch(a){o&&console.error("[pinia-plugin-persistedstate]",a)}}function c0(e,t,n){const{pinia:r,store:o,options:{persist:s=n}}=e;if(!s)return;if(!(o.$id in r.state.value)){const l=r._s.get(o.$id.replace("__hot:",""));l&&Promise.resolve().then(()=>l.$persist());return}const a=(Array.isArray(s)?s:s===!0?[{}]:[s]).map(t);o.$hydrate=({runHooks:l=!0}={})=>{a.forEach(c=>{Xs(o,c,e,l)})},o.$persist=()=>{a.forEach(l=>{Js(o.$state,l)})},a.forEach(l=>{Xs(o,l,e),o.$subscribe((c,h)=>Js(h,l),{detached:!0})})}function f0(e={}){return function(t){c0(t,n=>({key:(e.key?e.key:r=>r)(n.key??t.store.$id),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:r=>JSON.stringify(r),deserialize:r=>u0(r)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate,afterHydrate:n.afterHydrate,pick:n.pick,omit:n.omit}),e.auto??!1)}}var d0=f0();const ye=Qp();ye.use(d0);const Lr=Nt("loginState",{state:()=>({superAdminInfo:{},cryptoInfo:{publicKey:"",privateKey:""},loginUserInfo:{},structureData:[],isStructureExist:!1,systemKey:"",systemInfo:null}),actions:{setSystemInfo(e){this.systemInfo=e},setSystemKey(e){this.systemKey=e},setSuperAdminInfo(e){this.superAdminInfo=e},setLoginUserInfo(e){this.loginUserInfo=e},setStructureData(e){this.structureData=e},setIsStructureExist(e){this.isStructureExist=e},async getModelSecretAsync(e){},async setLogRecordAsync(e,t,n="operate"){}}}),h0=[],Fr=Nt("menuState",{state:()=>({isRefreshMenus:!1,activeMenuStructureIds:[],cacheInputMenu:{},configMenu:{form:{},options:[],structure:[]},cacheStructures:[],rawMenus:[],menus:[],activeTopMenuPath:"",updateMenuStatus:!0,activeMenuPath:"",currentMenuPath:"",activeOldMenuPath:"",activeMainMenu:{},activeAsideMenu:{},activeMenuOpenPaths:[],systemKey:"",buttonTriggerType:"contentConfig",menuTriggerType:"open",permissionSideMenus:[],importLoading:!1,contentLoading:!1,asideMenuLoading:!1,asideMenus:[],platform:"browser",platName:"",childMenu:"",linkMenuInfo:null}),actions:{setCurrentMenuPath(e){this.currentMenuPath=e},setUpdateMenuStatus(e){this.updateMenuStatus=e},setLinkMenuInfo(e){this.linkMenuInfo=e},setAsideMenuLoading(e){this.asideMenuLoading=e},setCacheStructures(e){var n,r;const t=(n=this.cacheStructures)==null?void 0:n.map(o=>o.key);e?t!=null&&t.includes(e==null?void 0:e.key)?this.cacheStructures=(r=this.cacheStructures)==null?void 0:r.map(o=>o.key===(e==null?void 0:e.key)?{...o,data:e==null?void 0:e.data}:o):this.cacheStructures.push(e):this.cacheStructures=[]},setChildMenu(e){this.childMenu=e},async setConfigMenu(e){this.configMenu=e},setActiveMainMenu(e){this.activeMainMenu=e},setContentLoading(e){this.contentLoading=e},setActiveAsideMenu(e){this.activeAsideMenu=e},setActiveTopMenuPath(e){this.activeTopMenuPath=e},setCacheInputMenu(e){this.cacheInputMenu=e},setIsRefreshMenus(e){this.isRefreshMenus=e},setButtonTriggerType(e){this.buttonTriggerType=e},setAsideMenus(e){this.asideMenus=e},setMenus(e){this.menus=e},setPlatName(e){this.platName=e},setImportLoading(e){this.importLoading=e},setPlatform(e){this.platform=e},getPlatform(){return this.platform},setMenuTriggerType(e){this.menuTriggerType=e},setSystemKey(e){this.systemKey=e},setActiveMenuPath(e){!e&&e!==null||(this.activeOldMenuPath=ke(this.activeMenuPath),this.activeMenuPath=e)},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e},setRawMenus(e){this.rawMenus=e,this.permissionSideMenus=h0}}}),Ur=Nt("modelComp",{state:()=>({lockingPage:"",itemData:[],itemGridData:[],itemExtendData:{},originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:"",cacheUpdatingData:null,tableViewContents:[],activeItemIndex:-1,tableLoading:!1,pageMapState:{},payloadTypes:"data,structure,structureMethod,gridLayout,extend,related",fixMenuStatus:!1}),actions:{setLockingPage(e){this.lockingPage=e},setFixMenuStatus(e){this.fixMenuStatus=e},setPageMapState(e){this.pageMapState=e},setItemGridData(e){this.itemGridData=e},setItemExtendData(e){this.itemExtendData=e},setItemData(e){this.itemData=e},setTableLoading(e){this.tableLoading=e},setTableViewContents(e){this.tableViewContents=e},setCacheUpdatingData(e){this.cacheUpdatingData=e},setFreshContent(e){this.freshContent=e},setRouteToChildPath(e){this.routeToChildPath=e},setSubmitCurStructure(e){this.isSubmitCurStructure=e},setCurStructureCompIds(e){this.curStructureCompIds=e},setRefreshCurStructure(e){this.isRefreshCurStructure=e},setOriginalData(e){this.originalData=e},setExtraContents(e){this.extraContents=e},setNodeDev(e){this.nodeDev=e},setIsEdit(e){this.isEdit=e},setSystemPath(e){this.systemPath=e},setActiveItemIndex(e){this.activeItemIndex=e}}}),$r=Nt("authorityState",{state:()=>({routerPageStructures:[]}),actions:{setRouterPageStructure(e){this.routerPageStructures=e}}}),p0=Fr(ye),{activeMenuPath:rn}=He(p0),Fa=Lr(ye),{structureData:g0,loginUserInfo:Pn}=He(Fa),v0=$r(ye),{routerPageStructures:y0}=He(v0),ln=Ur(ye),m0=u.ref([{label:"角色名称",value:"",name:"roleName"}]),E0=u.ref([{label:"查询"},{label:"重置"}]),Qs=u.reactive({isFilter:!1,filterForm:{}}),b0=u.ref(!1),_0=e=>{Qs.isFilter=!0,Qs.filterForm=e},Ua=u.ref([]),ar=u.ref([]),$a=u.ref(""),S0=u.computed(()=>{var t,n,r,o,s;const e=(t=y0.value)==null?void 0:t.find(i=>{var a;return((a=i==null?void 0:i.comp)==null?void 0:a.toUpperCase())==="TABLE"});if(e){$a.value=e.name,ar.value=(o=(r=(n=e==null?void 0:e.compData)==null?void 0:n.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:r.contents)==null?void 0:o.filter(a=>(a==null?void 0:a.label)!=="操作");const i=(s=e==null?void 0:e.compData)==null?void 0:s.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){let c=[];return tt.value?c=[...a==null?void 0:a.contents,{label:"授权"}]:c=a==null?void 0:a.contents,{...a,contents:c}}return(a==null?void 0:a.key)==="header"?{...a,contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(c=>{var h,p;return{...c,isTableColHidden:(h=c==null?void 0:c.prop)==null?void 0:h.includes("授权"),isFormColHidden:(p=c==null?void 0:c.prop)==null?void 0:p.includes("授权")}})}:a});return Za(i),i}return[]}),T0=e=>{ln.setRefreshCurStructure(!1),Kr(e.singleContent,e.buttonName,bn.value,e==null?void 0:e.selectItems)},Qe=u.ref({}),jr=u.ref(),kt=async(e,t,n)=>{var r,o;try{const s=await e(t);return((r=s==null?void 0:s.data)==null?void 0:r.code)===200?(n!=="查询"&&await Fa.setLogRecordAsync({type:n,data:t},rn.value),d.ElMessage.success("保存成功"),ln.setRefreshCurStructure(!0),s.data.result||((o=s==null?void 0:s.data)==null?void 0:o.code)===200):null}catch(s){d.ElMessage.error(s)}finally{ln.setCacheUpdatingData(null)}},ja=(e,t)=>{const n=[];for(const r of e)t!=null&&t.has(r.path)&&n.push(r),r.children&&n.push(...ja(r.children,t));return n},w0=(e,t)=>{var n,r;try{const o=new Map(e==null?void 0:e.map(a=>[a.path,a.checkedButtons])),s=ja(t,o),i=(n=s==null?void 0:s.filter(a=>{var l,c;return((l=a==null?void 0:a.checkedButtons)==null?void 0:l.length)===((c=a==null?void 0:a.renderButtons)==null?void 0:c.length)}))==null?void 0:n.map(a=>a==null?void 0:a.path);(r=jr.value)==null||r.setCheckedKeys(i)}catch{throw new Error("数据显示处理失败")}},A0=(e,t)=>{const n=new Map(t==null?void 0:t.map(o=>[o.path,o.checkedButtons]));function r(o){var i,a;const s=(i=o==null?void 0:o.path)!=null&&i.startsWith("/")?(a=o==null?void 0:o.path)==null?void 0:a.substring(1):o==null?void 0:o.path;n.has(s)&&(o.checkedButtons=n.get(s)),o.children&&o.children.length>0&&o.children.forEach(r)}e.forEach(r)},Ha=e=>e==null?void 0:e.map(t=>{var r;const n={...t,checkedButtons:[]};return n.children&&((r=n.children)==null?void 0:r.length)>0&&(n.children=Ha(n.children)),n}),Ka=e=>{for(const t in e)if(Array.isArray(e[t]))return t;return""},za=e=>{const t=[];let n=0;for(;n<e.length;)if(typeof e[n]=="string"){const r={title:e[n]};n+1<e.length&&Array.isArray(e[n+1])?(r.children=za(e[n+1]),n+=2):n+=1,t.push(r)}return t},qa=e=>{const t=[];let n=0;for(;n<(e==null?void 0:e.length);){const r={title:e==null?void 0:e[n]};n+1<(e==null?void 0:e.length)&&Array.isArray(e==null?void 0:e[n+1])?(r.children=za(e==null?void 0:e[n+1]),n+=2):n+=1,t.push(r)}return t},Hr=(e,t="",n=new Map)=>e==null?void 0:e.map(r=>{const o=t?`${t}/${r.title}`:r.title;if(n.has(o))return n.get(o);const s={...r,path:o};return r.children&&r.children.length>0&&(s.children=Hr(r.children,o,n)),n.set(o,s),s}),Ga=(e,t)=>e.reduce((n,r)=>{const o=r[t];return n[o]||(n[o]=[]),n[o].push(r),n},{}),Wa=e=>{const t=[];function n(r,o){!r.children||r.children.length===0?t.push({...r,parentPath:o||""}):r.children.forEach(s=>n(s,r.path||o))}return e.forEach(r=>n(r,"")),t},Ya=e=>Object.entries(e).map(([n,r])=>({path:n,checkedButtons:r==null?void 0:r.map(o=>o==null?void 0:o.path)})),C0=e=>Object.prototype.toString.call(e)==="[object Object]"&&e!==null,O0=(e,t)=>{const n={},r=Array.isArray(e)?e==null?void 0:e.filter(o=>{var s;return!(C0(o)&&((s=Object.keys(o))!=null&&s.includes("id")))}):null;return r&&(r==null||r.forEach((o,s)=>{var i;n[(i=t[s])==null?void 0:i.prop]=o})),n},et=u.ref(""),Za=e=>{var s;const t=e==null?void 0:e.find(i=>(i==null?void 0:i.key)==="tableContents"),n=e==null?void 0:e.find(i=>(i==null?void 0:i.key)==="header");if(!t||!n)return"";const r=(s=t==null?void 0:t.contents)==null?void 0:s[0],o=O0(r,n==null?void 0:n.contents);et.value=Ka(o)},D0=e=>{if(!Array.isArray(e))return!1;for(let t of e){if(typeof t!="object"||t===null||typeof t.path!="string"||!Array.isArray(t.checkedButtons))return!1;for(let n of t.checkedButtons)if(typeof n!="string")return!1}return!0},I0=e=>{const t=[];for(const n in e)e[n].forEach(o=>{var l,c;const s=(l=o.path)!=null&&l.startsWith("/")?(c=o.path)==null?void 0:c.substring(1):o.path,i=s==null?void 0:s.split("/");let a=t;i.forEach(h=>{let p=a.find(v=>v.title===h);p||(p={title:h,path:o.path,children:[]},a.push(p)),a=p.children})});return t},k0=e=>{const t={};return e.forEach(n=>{const{path:r,checkedButtons:o}=n,s=r,i=o.map(a=>({title:a.split("/").pop()||"",path:a,parentPath:s}));t[s]=i}),t},Xa=e=>{let t=[];for(const n of e){let r=[n.title];if(n.children&&Array.isArray(n.children)){let o=Xa(n.children);o.length>0&&r.push(o)}t.push(r)}return t},x0=e=>{const t=[];for(const n of e){if(!Array.isArray(n)||n.length!==2)continue;const[r,o]=n,s=Ja(o),i=t.indexOf(r);i===-1?t.push(r,s):t[i+1]=Qa(t[i+1],s)}return t},Ja=e=>{const t=[];for(const n of e)if(Array.isArray(n)){if(n.length===1&&typeof n[0]=="string")t.push(n[0]);else if(n.length===2&&typeof n[0]=="string"){const[r,o]=n;t.push(r,Ja(o))}}return t},Qa=(e,t)=>{const n=[...e];let r=0;for(;r<t.length;){const o=t[r];if(typeof o=="string"){const s=n.indexOf(o);s===-1?n.push(o,t[r+1]):n[s+1]=Qa(n[s+1],t[r+1]),r+=2}else n.push(o),r+=1}return n},R0=async(e,t)=>{var n;if(Qe.value=ke(t),ln.setRefreshCurStructure(!1),(n=nt.value)==null||n.splice(0),e==="授权"){if(!et.value){d.ElMessage.error("请正确定义角色权限");return}const r=D0(Qe.value[et.value]);let o;if(r)o=Qe.value[et.value];else{const s=qa(Qe.value[et.value]),i=Hr(s),a=Wa(i),l=Ga(a,"parentPath");o=Ya(l)}if(!o||!Array.isArray(o)){d.ElMessage.error("权限数据处理出错了,请联系管理员");return}$e.title=`【${t.角色名称}】授权`,$e.show=!0,await u.nextTick(),A0(at.value,o),w0(o,at.value)}},N0=()=>{$e.show=!1},ur=u.ref(),B0=async e=>{const t=await kt(d.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o;return{id:r.id,tableData:(o=r==null?void 0:r.value)==null?void 0:o.tableData}});return n==null?void 0:n.map(r=>{var o;if(Array.isArray(r==null?void 0:r.tableData)){let s={id:r.id};return(o=r==null?void 0:r.tableData)==null||o.forEach((i,a)=>{s[`a${a}`]=i}),s}else return{...r.tableData,id:r.id}})},xt=(e,t)=>{let n={};if(t==null||t.forEach(r=>{r.label&&e&&(n[r.label]=(e==null?void 0:e[r==null?void 0:r.prop])??null)}),n!=null&&n.id){const{id:r,...o}=n;return o}return n},P0=async(e,t)=>{var s,i;let n=[];Array.isArray(e)?n=ke(e):n=[ke(e)];const r=(s=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:s.map(a=>{var l,c,h,p,v;return{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:(l=rn.value)!=null&&l.startsWith("/")?(c=rn.value)==null?void 0:c.substring(1):rn.value,tableId:t,createUserId:(h=Pn.value)==null?void 0:h.id,createUserOrg:((p=Pn.value)==null?void 0:p.dept)||((v=Pn.value)==null?void 0:v.部门名称)},value:{tableData:xt(a,ar.value)}}}),o=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:i.map(a=>({id:a==null?void 0:a.id,value:{tableData:xt(a,ar.value)}}));r.length>0&&await kt(d.batchAddInsofDataApi,{dataList:r},"新增"),o.length>0&&(await kt(d.batchUpdateInsofDataApi,{dataList:o},"编辑"),$e.show=!1)},Kr=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await P0(e,n);else{let o=[];t!=null&&t.includes("批量")?o=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(s=>s==null?void 0:s.id):[]:o=[e==null?void 0:e.id],await kt(d.batchDeleteInsofDataApi,{ids:o},"编辑")}},eu=e=>{let t=[];return e==null||e.forEach(n=>{var r;if(n.checkedButtons&&((r=n.checkedButtons)==null?void 0:r.length)>0){const o={path:n.path,checkedButtons:n.checkedButtons};t=t.concat(o)}n.children&&(t=t.concat(eu(n.children)))}),t},V0=()=>{const e=eu(at.value),t=k0(e),n=I0(t),r=Xa(n),o=x0(r);ur.value={...Qe.value,[et.value]:o},u.nextTick(()=>{Kr(ur.value,"编辑",bn.value)})},$e=u.reactive({show:!1,title:"角色授权",width:"30%",draggable:!0}),M0=({isPenultimate:e},t)=>{var n,r;return console.log("isPenultimate",e,t),((r=(n=t==null?void 0:t.data)==null?void 0:n.renderButtons)==null?void 0:r.length)>0?"is-penultimate":""},bn=u.ref(0),tu=async e=>{var r,o,s,i,a;let t;const n=await d.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:e!=null&&e.startsWith("/")?e==null?void 0:e.substring(1):e}});return((r=n==null?void 0:n.data)==null?void 0:r.code)===200&&(o=n==null?void 0:n.data)!=null&&o.result&&((s=n==null?void 0:n.data)==null?void 0:s.result.length)>0&&(t=(a=(i=n==null?void 0:n.data.result)==null?void 0:i[0])==null?void 0:a.id,bn.value=t),t},at=u.ref([]),L0=u.ref([{path:"资源管理",buttons:["查询","新增","编辑","删除"]},{path:"资源管理/人员",buttons:["查询","新增","编辑","删除"]}]),F0=(e,t)=>{var n;e.checkedButtons=t?(n=e.renderButtons)==null?void 0:n.map(r=>r.path):[]},nt=u.ref([]),U0=(e,t)=>{var n,r,o;t.checkedButtons=e,((n=t.checkedButtons)==null?void 0:n.length)===((r=t.renderButtons)==null?void 0:r.length)?nt.value.push(t.path):(e==null?void 0:e.length)===0&&(nt.value=(o=nt.value)==null?void 0:o.filter(s=>s!==t.path))};u.watch(()=>nt.value.length,()=>{var e;(e=jr.value)==null||e.setCheckedKeys([...nt.value])});u.watch(()=>$e.show,e=>{e||(at.value=Ha(at.value))});const nu=u.computed(()=>{var n;const e=(n=ke(g0.value))==null?void 0:n.filter(r=>{var o,s;return((s=(o=r==null?void 0:r.key)==null?void 0:o.pageKey)==null?void 0:s.toUpperCase())!=="MENU"});return[...e==null?void 0:e.map(r=>{var i,a,l,c,h,p,v,g;const o=/button/i;let s=(l=(a=(i=r==null?void 0:r.value)==null?void 0:i.pageData)==null?void 0:a.compData)==null?void 0:l.filter(f=>o.test(f==null?void 0:f.key));return s=Array.from(new Set(s==null?void 0:s.flatMap(f=>f.contents.map(m=>m.label)))),{path:(h=(c=r==null?void 0:r.key)==null?void 0:c.pageKey)!=null&&h.startsWith("/")?(v=(p=r==null?void 0:r.key)==null?void 0:p.pageKey)==null?void 0:v.substring(1):(g=r==null?void 0:r.key)==null?void 0:g.pageKey,buttons:s}}),...ru.value]}),ru=u.ref([]),$0=(e,t,n)=>{const o=[e==null?void 0:e.find(s=>(s==null?void 0:s.title)===t)].flatMap(s=>s==null?void 0:s.children);return o==null?void 0:o.map(s=>{var i,a;return{path:(i=s==null?void 0:s.path)!=null&&i.startsWith("/")?(a=s==null?void 0:s.path)==null?void 0:a.substring(1):s==null?void 0:s.path,buttons:n}})},ei=(e,t)=>{var n;if(e.carryData){if(e.path==="系统管理/个人中心"){const o=["基本信息","上传头像","签名","修改密码"];return o==null?void 0:o.map(s=>{var i,a;return{title:s,path:(i=e==null?void 0:e.path)!=null&&i.startsWith("/")?((a=e==null?void 0:e.path)==null?void 0:a.substring(1))+"/"+s:e.path+"/"+s}})}if(!(t!=null&&t.buttons)||!Array.isArray(t==null?void 0:t.buttons))return[];const r=(n=t==null?void 0:t.buttons)!=null&&n.includes("查看")?t==null?void 0:t.buttons:["查看",...t==null?void 0:t.buttons];return r==null?void 0:r.map(o=>{var s,i;return{title:o,path:(s=e==null?void 0:e.path)!=null&&s.startsWith("/")?((i=e==null?void 0:e.path)==null?void 0:i.substring(1))+"/"+o:e.path+"/"+o}})}return[]},ou=(e,t)=>{if(Array.isArray(e))return e==null?void 0:e.map(n=>{var s,i;const r=(s=n==null?void 0:n.path)!=null&&s.startsWith("/")?(i=n==null?void 0:n.path)==null?void 0:i.substring(1):n==null?void 0:n.path,o=t==null?void 0:t.find(a=>(a==null?void 0:a.path)===r);return n.children&&n.children.length>0?{...n,renderButtons:ei(n,o),checkedButtons:[],children:ou(n.children,nu.value)}:{...n,renderButtons:ei(n,o),checkedButtons:[]}})},j0={comp:"Group",name:"/系统管理/角色管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:Ua.value,name:""}]}]},H0=Object.freeze(Object.defineProperty({__proto__:null,addButtonsToTree:ou,addPathToTree:Hr,authorizeDialog:$e,buttonValue:E0,changedRow:ur,clickRow:Qe,clickRowButton:R0,clickSubmitAuthority:V0,closeAuthorizeDialog:N0,compName:$a,convertArrayToTree:qa,convertIndexToLabel:xt,customNodeClass:M0,getActivePageStructureId:tu,getAuthorityKey:Za,getFirstArrayProperty:Ka,getLeafNodesRecursive:Wa,getPageDataAsync:B0,groupByField:Ga,handleAddSysMenusButtons:$0,handleItemDataChange:T0,handleNodeBtnChange:U0,handleNodeCheckChange:F0,handleQueryChange:_0,handleRowAuthorityRender:Ya,handleSubmitAsync:kt,isPageDataExist:b0,menuData:at,menusButtons:L0,pageData:Ua,pageDataFiltered:S0,queryFormData:m0,structureButtons:nu,structureId:bn,submitTableAsyncByVerify:Kr,tempRolePageData:j0,tempSysMenus:ru,treeRef:jr},Symbol.toStringTag,{value:"Module"}));var K0="0123456789abcdefghijklmnopqrstuvwxyz";function be(e){return K0.charAt(e)}function z0(e,t){return e&t}function jt(e,t){return e|t}function ti(e,t){return e^t}function ni(e,t){return e&~t}function q0(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function G0(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",su="=";function cn(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Ze.charAt(n>>6)+Ze.charAt(n&63);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Ze.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Ze.charAt(n>>2)+Ze.charAt((n&3)<<4));(r.length&3)>0;)r+=su;return r}function ri(e){var t="",n,r=0,o=0;for(n=0;n<e.length&&e.charAt(n)!=su;++n){var s=Ze.indexOf(e.charAt(n));s<0||(r==0?(t+=be(s>>2),o=s&3,r=1):r==1?(t+=be(o<<2|s>>4),o=s&15,r=2):r==2?(t+=be(o),t+=be(s>>2),o=s&3,r=3):(t+=be(o<<2|s>>4),t+=be(s&15),r=0))}return r==1&&(t+=be(o<<2)),t}var Ge,W0={decode:function(e){var t;if(Ge===void 0){var n="0123456789ABCDEF",r=` \f
18
- \r  \u2028\u2029`;for(Ge={},t=0;t<16;++t)Ge[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Ge[n.charAt(t)]=t;for(t=0;t<r.length;++t)Ge[r.charAt(t)]=-1}var o=[],s=0,i=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Ge[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++i>=2?(o[o.length]=s,s=0,i=0):s<<=4}}if(i)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},Ne,lr={decode:function(e){var t;if(Ne===void 0){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=`= \f
19
- \r  \u2028\u2029`;for(Ne=Object.create(null),t=0;t<64;++t)Ne[n.charAt(t)]=t;for(Ne["-"]=62,Ne._=63,t=0;t<r.length;++t)Ne[r.charAt(t)]=-1}var o=[],s=0,i=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Ne[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++i>=4?(o[o.length]=s>>16,o[o.length]=s>>8&255,o[o.length]=s&255,s=0,i=0):s<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=s>>10;break;case 3:o[o.length]=s>>16,o[o.length]=s>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=lr.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return lr.decode(e)}},We=1e13,Et=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,n){var r=this.buf,o=r.length,s,i;for(s=0;s<o;++s)i=r[s]*t+n,i<We?n=0:(n=0|i/We,i-=n*We),r[s]=i;n>0&&(r[s]=n)},e.prototype.sub=function(t){var n=this.buf,r=n.length,o,s;for(o=0;o<r;++o)s=n[o]-t,s<0?(s+=We,t=1):t=0,n[o]=s;for(;n[n.length-1]===0;)n.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var n=this.buf,r=n[n.length-1].toString(),o=n.length-2;o>=0;--o)r+=(We+n[o]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var t=this.buf,n=0,r=t.length-1;r>=0;--r)n=n*We+t[r];return n},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),iu="…",Y0=/^(\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)?)?$/,Z0=/^(\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 rt(e,t){return e.length>t&&(e=e.substring(0,t)+iu),e}var Vn=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.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]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,n,r){for(var o="",s=t;s<n;++s)if(o+=this.hexByte(this.get(s)),r!==!0)switch(s&15){case 7:o+=" ";break;case 15:o+=`
20
- `;break;default:o+=" "}return o},e.prototype.isASCII=function(t,n){for(var r=t;r<n;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(t,n){for(var r="",o=t;o<n;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(t,n){for(var r="",o=t;o<n;){var s=this.get(o++);s<128?r+=String.fromCharCode(s):s>191&&s<224?r+=String.fromCharCode((s&31)<<6|this.get(o++)&63):r+=String.fromCharCode((s&15)<<12|(this.get(o++)&63)<<6|this.get(o++)&63)}return r},e.prototype.parseStringBMP=function(t,n){for(var r="",o,s,i=t;i<n;)o=this.get(i++),s=this.get(i++),r+=String.fromCharCode(o<<8|s);return r},e.prototype.parseTime=function(t,n,r){var o=this.parseStringISO(t,n),s=(r?Y0:Z0).exec(o);return s?(r&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),o=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(o+=":"+s[5],s[6]&&(o+=":"+s[6],s[7]&&(o+="."+s[7]))),s[8]&&(o+=" UTC",s[8]!="Z"&&(o+=s[8],s[9]&&(o+=":"+s[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(t,n){for(var r=this.get(t),o=r>127,s=o?255:0,i,a="";r==s&&++t<n;)r=this.get(t);if(i=n-t,i===0)return o?-1:0;if(i>4){for(a=r,i<<=3;((+a^s)&128)==0;)a=+a<<1,--i;a="("+i+` bit)
21
- `}o&&(r=r-256);for(var l=new Et(r),c=t+1;c<n;++c)l.mulAdd(256,this.get(c));return a+l.toString()},e.prototype.parseBitString=function(t,n,r){for(var o=this.get(t),s=(n-t-1<<3)-o,i="("+s+` bit)
22
- `,a="",l=t+1;l<n;++l){for(var c=this.get(l),h=l==n-1?o:0,p=7;p>=h;--p)a+=c>>p&1?"1":"0";if(a.length>r)return i+rt(a,r)}return i+a},e.prototype.parseOctetString=function(t,n,r){if(this.isASCII(t,n))return rt(this.parseStringISO(t,n),r);var o=n-t,s="("+o+` byte)
23
- `;r/=2,o>r&&(n=t+r);for(var i=t;i<n;++i)s+=this.hexByte(this.get(i));return o>r&&(s+=iu),s},e.prototype.parseOID=function(t,n,r){for(var o="",s=new Et,i=0,a=t;a<n;++a){var l=this.get(a);if(s.mulAdd(128,l&127),i+=7,!(l&128)){if(o==="")if(s=s.simplify(),s instanceof Et)s.sub(80),o="2."+s.toString();else{var c=s<80?s<40?0:1:2;o=c+"."+(s-c*40)}else o+="."+s.toString();if(o.length>r)return rt(o,r);s=new Et,i=0}}return i>0&&(o+=".incomplete"),o},e}(),X0=function(){function e(t,n,r,o,s){if(!(o instanceof oi))throw new Error("Invalid tag value.");this.stream=t,this.header=n,this.length=r,this.tag=o,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var n=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);switch(this.tag.tagNumber){case 1:return this.stream.get(n)===0?"false":"true";case 2:return this.stream.parseInteger(n,n+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+r,t);case 6:return this.stream.parseOID(n,n+r,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return rt(this.stream.parseStringUTF(n,n+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return rt(this.stream.parseStringISO(n,n+r),t);case 30:return rt(this.stream.parseStringBMP(n,n+r),t);case 23:case 24:return this.stream.parseTime(n,n+r,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var n=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(n+="+"),n+=this.length,this.tag.tagConstructed?n+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(n+=" (encapsulates)"),n+=`
24
- `,this.sub!==null){t+=" ";for(var r=0,o=this.sub.length;r<o;++r)n+=this.sub[r].toPrettyString(t)}return n},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var n=t.get(),r=n&127;if(r==n)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(r===0)return null;n=0;for(var o=0;o<r;++o)n=n*256+t.get();return n},e.prototype.getHexStringValue=function(){var t=this.toHexString(),n=this.header*2,r=this.length*2;return t.substr(n,r)},e.decode=function(t){var n;t instanceof Vn?n=t:n=new Vn(t,0);var r=new Vn(n),o=new oi(n),s=e.decodeLength(n),i=n.pos,a=i-r.pos,l=null,c=function(){var p=[];if(s!==null){for(var v=i+s;n.pos<v;)p[p.length]=e.decode(n);if(n.pos!=v)throw new Error("Content size is not correct for container starting at offset "+i)}else try{for(;;){var g=e.decode(n);if(g.tag.isEOC())break;p[p.length]=g}s=i-n.pos}catch(f){throw new Error("Exception while decoding undefined length content: "+f)}return p};if(o.tagConstructed)l=c();else if(o.isUniversal()&&(o.tagNumber==3||o.tagNumber==4))try{if(o.tagNumber==3&&n.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var h=0;h<l.length;++h)if(l[h].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+i);n.pos=i+Math.abs(s)}return new e(r,a,s,o,l)},e}(),oi=function(){function e(t){var n=t.get();if(this.tagClass=n>>6,this.tagConstructed=(n&32)!==0,this.tagNumber=n&31,this.tagNumber==31){var r=new Et;do n=t.get(),r.mulAdd(128,n&127);while(n&128);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ie,J0=0xdeadbeefcafe,si=(J0&16777215)==15715070,te=[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],Q0=(1<<26)/te[te.length-1],R=function(){function e(t,n,r){t!=null&&(typeof t=="number"?this.fromNumber(t,n,r):n==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,n))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var r=(1<<n)-1,o,s=!1,i="",a=this.t,l=this.DB-a*this.DB%n;if(a-- >0)for(l<this.DB&&(o=this[a]>>l)>0&&(s=!0,i=be(o));a>=0;)l<n?(o=(this[a]&(1<<l)-1)<<n-l,o|=this[--a]>>(l+=this.DB-n)):(o=this[a]>>(l-=n)&r,l<=0&&(l+=this.DB,--a)),o>0&&(s=!0),s&&(i+=be(o));return s?i:"0"},e.prototype.negate=function(){var t=B();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var n=this.s-t.s;if(n!=0)return n;var r=this.t;if(n=r-t.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-t[r])!=0)return n;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ht(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=B();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(t,n){var r;return t<256||n.isEven()?r=new ii(n):r=new ai(n),this.exp(t,r)},e.prototype.clone=function(){var t=B();return this.copyTo(t),t},e.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]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,n=[];n[0]=this.s;var r=this.DB-t*this.DB%8,o,s=0;if(t-- >0)for(r<this.DB&&(o=this[t]>>r)!=(this.s&this.DM)>>r&&(n[s++]=o|this.s<<this.DB-r);t>=0;)r<8?(o=(this[t]&(1<<r)-1)<<8-r,o|=this[--t]>>(r+=this.DB-8)):(o=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),(o&128)!=0&&(o|=-256),s==0&&(this.s&128)!=(o&128)&&++s,(s>0||o!=this.s)&&(n[s++]=o);return n},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var n=B();return this.bitwiseTo(t,z0,n),n},e.prototype.or=function(t){var n=B();return this.bitwiseTo(t,jt,n),n},e.prototype.xor=function(t){var n=B();return this.bitwiseTo(t,ti,n),n},e.prototype.andNot=function(t){var n=B();return this.bitwiseTo(t,ni,n),n},e.prototype.not=function(){for(var t=B(),n=0;n<this.t;++n)t[n]=this.DM&~this[n];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var n=B();return t<0?this.rShiftTo(-t,n):this.lShiftTo(t,n),n},e.prototype.shiftRight=function(t){var n=B();return t<0?this.lShiftTo(-t,n):this.rShiftTo(t,n),n},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+q0(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,n=this.s&this.DM,r=0;r<this.t;++r)t+=G0(this[r]^n);return t},e.prototype.testBit=function(t){var n=Math.floor(t/this.DB);return n>=this.t?this.s!=0:(this[n]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,jt)},e.prototype.clearBit=function(t){return this.changeBit(t,ni)},e.prototype.flipBit=function(t){return this.changeBit(t,ti)},e.prototype.add=function(t){var n=B();return this.addTo(t,n),n},e.prototype.subtract=function(t){var n=B();return this.subTo(t,n),n},e.prototype.multiply=function(t){var n=B();return this.multiplyTo(t,n),n},e.prototype.divide=function(t){var n=B();return this.divRemTo(t,n,null),n},e.prototype.remainder=function(t){var n=B();return this.divRemTo(t,null,n),n},e.prototype.divideAndRemainder=function(t){var n=B(),r=B();return this.divRemTo(t,n,r),[n,r]},e.prototype.modPow=function(t,n){var r=t.bitLength(),o,s=we(1),i;if(r<=0)return s;r<18?o=1:r<48?o=3:r<144?o=4:r<768?o=5:o=6,r<8?i=new ii(n):n.isEven()?i=new tg(n):i=new ai(n);var a=[],l=3,c=o-1,h=(1<<o)-1;if(a[1]=i.convert(this),o>1){var p=B();for(i.sqrTo(a[1],p);l<=h;)a[l]=B(),i.mulTo(p,a[l-2],a[l]),l+=2}var v=t.t-1,g,f=!0,m=B(),b;for(r=Ht(t[v])-1;v>=0;){for(r>=c?g=t[v]>>r-c&h:(g=(t[v]&(1<<r+1)-1)<<c-r,v>0&&(g|=t[v-1]>>this.DB+r-c)),l=o;(g&1)==0;)g>>=1,--l;if((r-=l)<0&&(r+=this.DB,--v),f)a[g].copyTo(s),f=!1;else{for(;l>1;)i.sqrTo(s,m),i.sqrTo(m,s),l-=2;l>0?i.sqrTo(s,m):(b=s,s=m,m=b),i.mulTo(m,a[g],s)}for(;v>=0&&(t[v]&1<<r)==0;)i.sqrTo(s,m),b=s,s=m,m=b,--r<0&&(r=this.DB-1,--v)}return i.revert(s)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return e.ZERO;for(var r=t.clone(),o=this.clone(),s=we(1),i=we(0),a=we(0),l=we(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),n?((!s.isEven()||!i.isEven())&&(s.addTo(this,s),i.subTo(t,i)),s.rShiftTo(1,s)):i.isEven()||i.subTo(t,i),i.rShiftTo(1,i);for(;o.isEven();)o.rShiftTo(1,o),n?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(o)>=0?(r.subTo(o,r),n&&s.subTo(a,s),i.subTo(l,i)):(o.subTo(r,o),n&&a.subTo(s,a),l.subTo(i,l))}if(o.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new eg)},e.prototype.gcd=function(t){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var o=n;n=r,r=o}var s=n.getLowestSetBit(),i=r.getLowestSetBit();if(i<0)return n;for(s<i&&(i=s),i>0&&(n.rShiftTo(i,n),r.rShiftTo(i,r));n.signum()>0;)(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r},e.prototype.isProbablePrime=function(t){var n,r=this.abs();if(r.t==1&&r[0]<=te[te.length-1]){for(n=0;n<te.length;++n)if(r[0]==te[n])return!0;return!1}if(r.isEven())return!1;for(n=1;n<te.length;){for(var o=te[n],s=n+1;s<te.length&&o<Q0;)o*=te[s++];for(o=r.modInt(o);n<s;)if(o%te[n++]==0)return!1}return r.millerRabin(t)},e.prototype.copyTo=function(t){for(var n=this.t-1;n>=0;--n)t[n]=this[n];t.t=this.t,t.s=this.s},e.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},e.prototype.fromString=function(t,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==256)r=8;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else{this.fromRadix(t,n);return}this.t=0,this.s=0;for(var o=t.length,s=!1,i=0;--o>=0;){var a=r==8?+t[o]&255:li(t,o);if(a<0){t.charAt(o)=="-"&&(s=!0);continue}s=!1,i==0?this[this.t++]=a:i+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this[this.t++]=a>>this.DB-i):this[this.t-1]|=a<<i,i+=r,i>=this.DB&&(i-=this.DB)}r==8&&(+t[0]&128)!=0&&(this.s=-1,i>0&&(this[this.t-1]|=(1<<this.DB-i)-1<<i)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,n){var r;for(r=this.t-1;r>=0;--r)n[r+t]=this[r];for(r=t-1;r>=0;--r)n[r]=0;n.t=this.t+t,n.s=this.s},e.prototype.drShiftTo=function(t,n){for(var r=t;r<this.t;++r)n[r-t]=this[r];n.t=Math.max(this.t-t,0),n.s=this.s},e.prototype.lShiftTo=function(t,n){for(var r=t%this.DB,o=this.DB-r,s=(1<<o)-1,i=Math.floor(t/this.DB),a=this.s<<r&this.DM,l=this.t-1;l>=0;--l)n[l+i+1]=this[l]>>o|a,a=(this[l]&s)<<r;for(var l=i-1;l>=0;--l)n[l]=0;n[i]=a,n.t=this.t+i+1,n.s=this.s,n.clamp()},e.prototype.rShiftTo=function(t,n){n.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){n.t=0;return}var o=t%this.DB,s=this.DB-o,i=(1<<o)-1;n[0]=this[r]>>o;for(var a=r+1;a<this.t;++a)n[a-r-1]|=(this[a]&i)<<s,n[a-r]=this[a]>>o;o>0&&(n[this.t-r-1]|=(this.s&i)<<s),n.t=this.t-r,n.clamp()},e.prototype.subTo=function(t,n){for(var r=0,o=0,s=Math.min(t.t,this.t);r<s;)o+=this[r]-t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o-=t[r],n[r++]=o&this.DM,o>>=this.DB;o-=t.s}n.s=o<0?-1:0,o<-1?n[r++]=this.DV+o:o>0&&(n[r++]=o),n.t=r,n.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),o=t.abs(),s=r.t;for(n.t=s+o.t;--s>=0;)n[s]=0;for(s=0;s<o.t;++s)n[s+r.t]=r.am(0,o[s],n,s,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.squareTo=function(t){for(var n=this.abs(),r=t.t=2*n.t;--r>=0;)t[r]=0;for(r=0;r<n.t-1;++r){var o=n.am(r,n[r],t,2*r,0,1);(t[r+n.t]+=n.am(r+1,2*n[r],t,2*r+1,o,n.t-r-1))>=n.DV&&(t[r+n.t]-=n.DV,t[r+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(r,n[r],t,2*r,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,n,r){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=B());var i=B(),a=this.s,l=t.s,c=this.DB-Ht(o[o.t-1]);c>0?(o.lShiftTo(c,i),s.lShiftTo(c,r)):(o.copyTo(i),s.copyTo(r));var h=i.t,p=i[h-1];if(p!=0){var v=p*(1<<this.F1)+(h>1?i[h-2]>>this.F2:0),g=this.FV/v,f=(1<<this.F1)/v,m=1<<this.F2,b=r.t,y=b-h,T=n??B();for(i.dlShiftTo(y,T),r.compareTo(T)>=0&&(r[r.t++]=1,r.subTo(T,r)),e.ONE.dlShiftTo(h,T),T.subTo(i,i);i.t<h;)i[i.t++]=0;for(;--y>=0;){var C=r[--b]==p?this.DM:Math.floor(r[b]*g+(r[b-1]+m)*f);if((r[b]+=i.am(0,C,r,y,0,h))<C)for(i.dlShiftTo(y,T),r.subTo(T,r);r[b]<--C;)r.subTo(T,r)}n!=null&&(r.drShiftTo(h,n),a!=l&&e.ZERO.subTo(n,n)),r.t=h,r.clamp(),c>0&&r.rShiftTo(c,r),a<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var n=t&3;return n=n*(2-(t&15)*n)&15,n=n*(2-(t&255)*n)&255,n=n*(2-((t&65535)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=B(),o=B(),s=n.convert(this),i=Ht(t)-1;for(s.copyTo(r);--i>=0;)if(n.sqrTo(r,o),(t&1<<i)>0)n.mulTo(o,s,r);else{var a=r;r=o,o=a}return n.revert(r)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var n=this.chunkSize(t),r=Math.pow(t,n),o=we(r),s=B(),i=B(),a="";for(this.divRemTo(o,s,i);s.signum()>0;)a=(r+i.intValue()).toString(t).substr(1)+a,s.divRemTo(o,s,i);return i.intValue().toString(t)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),n==null&&(n=10);for(var r=this.chunkSize(n),o=Math.pow(n,r),s=!1,i=0,a=0,l=0;l<t.length;++l){var c=li(t,l);if(c<0){t.charAt(l)=="-"&&this.signum()==0&&(s=!0);continue}a=n*a+c,++i>=r&&(this.dMultiply(o),this.dAddOffset(a,0),i=0,a=0)}i>0&&(this.dMultiply(Math.pow(n,i)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if(typeof n=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),jt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var o=[],s=t&7;o.length=(t>>3)+1,n.nextBytes(o),s>0?o[0]&=(1<<s)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(t,n,r){var o,s,i=Math.min(t.t,this.t);for(o=0;o<i;++o)r[o]=n(this[o],t[o]);if(t.t<this.t){for(s=t.s&this.DM,o=i;o<this.t;++o)r[o]=n(this[o],s);r.t=this.t}else{for(s=this.s&this.DM,o=i;o<t.t;++o)r[o]=n(s,t[o]);r.t=t.t}r.s=n(this.s,t.s),r.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=function(t,n){for(var r=0,o=0,s=Math.min(t.t,this.t);r<s;)o+=this[r]+t[r],n[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o+=t.s;r<this.t;)o+=this[r],n[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o+=t[r],n[r++]=o&this.DM,o>>=this.DB;o+=t.s}n.s=o<0?-1:0,o>0?n[r++]=o:o<-1&&(n[r++]=this.DV+o),n.t=r,n.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,n){if(t!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}},e.prototype.multiplyLowerTo=function(t,n,r){var o=Math.min(this.t+t.t,n);for(r.s=0,r.t=o;o>0;)r[--o]=0;for(var s=r.t-this.t;o<s;++o)r[o+this.t]=this.am(0,t[o],r,o,0,this.t);for(var s=Math.min(t.t,n);o<s;++o)this.am(0,t[o],r,o,0,n-o);r.clamp()},e.prototype.multiplyUpperTo=function(t,n,r){--n;var o=r.t=this.t+t.t-n;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(n-this.t,0);o<t.t;++o)r[this.t+o-n]=this.am(n-o,t[o],r,0,0,this.t+o-n);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(t){if(t<=0)return 0;var n=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(n==0)r=this[0]%t;else for(var o=this.t-1;o>=0;--o)r=(n*r+this[o])%t;return r},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var o=n.shiftRight(r);t=t+1>>1,t>te.length&&(t=te.length);for(var s=B(),i=0;i<t;++i){s.fromInt(te[Math.floor(Math.random()*te.length)]);var a=s.modPow(o,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(n)!=0){for(var l=1;l++<r&&a.compareTo(n)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(n)!=0)return!1}}return!0},e.prototype.square=function(){var t=B();return this.squareTo(t),t},e.prototype.gcda=function(t,n){var r=this.s<0?this.negate():this.clone(),o=t.s<0?t.negate():t.clone();if(r.compareTo(o)<0){var s=r;r=o,o=s}var i=r.getLowestSetBit(),a=o.getLowestSetBit();if(a<0){n(r);return}i<a&&(a=i),a>0&&(r.rShiftTo(a,r),o.rShiftTo(a,o));var l=function(){(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o)),r.signum()>0?setTimeout(l,0):(a>0&&o.lShiftTo(a,o),setTimeout(function(){n(o)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,n,r,o){if(typeof n=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),jt,this),this.isEven()&&this.dAddOffset(1,0);var s=this,i=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(n)?setTimeout(function(){o()},0):setTimeout(i,0)};setTimeout(i,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,n.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),eg=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r)},e.prototype.sqrTo=function(t,n){t.squareTo(n)},e}(),ii=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),ai=function(){function e(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 e.prototype.convert=function(t){var n=B();return t.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),t.s<0&&n.compareTo(R.ZERO)>0&&this.m.subTo(n,n),n},e.prototype.revert=function(t){var n=B();return t.copyTo(n),this.reduce(n),n},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n<this.m.t;++n){var r=t[n]&32767,o=r*this.mpl+((r*this.mph+(t[n]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=n+this.m.t,t[r]+=this.m.am(0,o,t,n,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}(),tg=function(){function e(t){this.m=t,this.r2=B(),this.q3=B(),R.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.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 n=B();return t.copyTo(n),this.reduce(n),n},e.prototype.revert=function(t){return t},e.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)},e.prototype.mulTo=function(t,n,r){t.multiplyTo(n,r),this.reduce(r)},e.prototype.sqrTo=function(t,n){t.squareTo(n),this.reduce(n)},e}();function B(){return new R(null)}function z(e,t){return new R(e,t)}var ui=typeof navigator<"u";ui&&si&&navigator.appName=="Microsoft Internet Explorer"?(R.prototype.am=function(t,n,r,o,s,i){for(var a=n&32767,l=n>>15;--i>=0;){var c=this[t]&32767,h=this[t++]>>15,p=l*c+h*a;c=a*c+((p&32767)<<15)+r[o]+(s&1073741823),s=(c>>>30)+(p>>>15)+l*h+(s>>>30),r[o++]=c&1073741823}return s},Ie=30):ui&&si&&navigator.appName!="Netscape"?(R.prototype.am=function(t,n,r,o,s,i){for(;--i>=0;){var a=n*this[t++]+r[o]+s;s=Math.floor(a/67108864),r[o++]=a&67108863}return s},Ie=26):(R.prototype.am=function(t,n,r,o,s,i){for(var a=n&16383,l=n>>14;--i>=0;){var c=this[t]&16383,h=this[t++]>>14,p=l*c+h*a;c=a*c+((p&16383)<<14)+r[o]+s,s=(c>>28)+(p>>14)+l*h,r[o++]=c&268435455}return s},Ie=28);R.prototype.DB=Ie;R.prototype.DM=(1<<Ie)-1;R.prototype.DV=1<<Ie;var zr=52;R.prototype.FV=Math.pow(2,zr);R.prototype.F1=zr-Ie;R.prototype.F2=2*Ie-zr;var _n=[],ht,ce;ht=48;for(ce=0;ce<=9;++ce)_n[ht++]=ce;ht=97;for(ce=10;ce<36;++ce)_n[ht++]=ce;ht=65;for(ce=10;ce<36;++ce)_n[ht++]=ce;function li(e,t){var n=_n[e.charCodeAt(t)];return n??-1}function we(e){var t=B();return t.fromInt(e),t}function Ht(e){var t=1,n;return(n=e>>>16)!=0&&(e=n,t+=16),(n=e>>8)!=0&&(e=n,t+=8),(n=e>>4)!=0&&(e=n,t+=4),(n=e>>2)!=0&&(e=n,t+=2),(n=e>>1)!=0&&(e=n,t+=1),t}R.ZERO=we(0);R.ONE=we(1);var ng=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var n,r,o;for(n=0;n<256;++n)this.S[n]=n;for(r=0,n=0;n<256;++n)r=r+this.S[n]+t[n%t.length]&255,o=this.S[n],this.S[n]=this.S[r],this.S[r]=o;this.i=0,this.j=0},e.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]},e}();function rg(){return new ng}var au=256,Kt,De=null,pe;if(De==null){De=[],pe=0;var zt=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Mn=new Uint32Array(256);for(window.crypto.getRandomValues(Mn),zt=0;zt<Mn.length;++zt)De[pe++]=Mn[zt]&255}var qt=0,Gt=function(e){if(qt=qt||0,qt>=256||pe>=au){window.removeEventListener?window.removeEventListener("mousemove",Gt,!1):window.detachEvent&&window.detachEvent("onmousemove",Gt);return}try{var t=e.x+e.y;De[pe++]=t&255,qt+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Gt,!1):window.attachEvent&&window.attachEvent("onmousemove",Gt))}function og(){if(Kt==null){for(Kt=rg();pe<au;){var e=Math.floor(65536*Math.random());De[pe++]=e&255}for(Kt.init(De),pe=0;pe<De.length;++pe)De[pe]=0;pe=0}return Kt.next()}var cr=function(){function e(){}return e.prototype.nextBytes=function(t){for(var n=0;n<t.length;++n)t[n]=og()},e}();function sg(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",o=0;o<n;o+=2)r+="ff";var s="0001"+r+"00"+e;return z(s,16)}function ig(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var o=e.charCodeAt(r--);o<128?n[--t]=o:o>127&&o<2048?(n[--t]=o&63|128,n[--t]=o>>6|192):(n[--t]=o&63|128,n[--t]=o>>6&63|128,n[--t]=o>>12|224)}n[--t]=0;for(var s=new cr,i=[];t>2;){for(i[0]=0;i[0]==0;)s.nextBytes(i);n[--t]=i[0]}return n[--t]=2,n[--t]=0,new R(n)}var ag=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var n=t.mod(this.p).modPow(this.dmp1,this.p),r=t.mod(this.q).modPow(this.dmq1,this.q);n.compareTo(r)<0;)n=n.add(this.p);return n.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(t,n){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=z(t,16),this.e=parseInt(n,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var n=this.n.bitLength()+7>>3,r=ig(t,n);if(r==null)return null;var o=this.doPublic(r);if(o==null)return null;for(var s=o.toString(16),i=s.length,a=0;a<n*2-i;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,n,r){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=z(t,16),this.e=parseInt(n,16),this.d=z(r,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,n,r,o,s,i,a,l){t!=null&&n!=null&&t.length>0&&n.length>0?(this.n=z(t,16),this.e=parseInt(n,16),this.d=z(r,16),this.p=z(o,16),this.q=z(s,16),this.dmp1=z(i,16),this.dmq1=z(a,16),this.coeff=z(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,n){var r=new cr,o=t>>1;this.e=parseInt(n,16);for(var s=new R(n,16);;){for(;this.p=new R(t-o,1,r),!(this.p.subtract(R.ONE).gcd(s).compareTo(R.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new R(o,1,r),!(this.q.subtract(R.ONE).gcd(s).compareTo(R.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var a=this.p.subtract(R.ONE),l=this.q.subtract(R.ONE),c=a.multiply(l);if(c.gcd(s).compareTo(R.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var n=z(t,16),r=this.doPrivate(n);return r==null?null:ug(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,n,r){var o=new cr,s=t>>1;this.e=parseInt(n,16);var i=new R(n,16),a=this,l=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var v=a.p;a.p=a.q,a.q=v}var g=a.p.subtract(R.ONE),f=a.q.subtract(R.ONE),m=g.multiply(f);m.gcd(i).compareTo(R.ONE)==0?(a.n=a.p.multiply(a.q),a.d=i.modInverse(m),a.dmp1=a.d.mod(g),a.dmq1=a.d.mod(f),a.coeff=a.q.modInverse(a.p),setTimeout(function(){r()},0)):setTimeout(l,0)},h=function(){a.q=B(),a.q.fromNumberAsync(s,1,o,function(){a.q.subtract(R.ONE).gcda(i,function(v){v.compareTo(R.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(h,0)})})},p=function(){a.p=B(),a.p.fromNumberAsync(t-s,1,o,function(){a.p.subtract(R.ONE).gcda(i,function(v){v.compareTo(R.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(h,0):setTimeout(p,0)})})};setTimeout(p,0)};setTimeout(l,0)},e.prototype.sign=function(t,n,r){var o=lg(r),s=o+n(t).toString(),i=sg(s,this.n.bitLength()/4);if(i==null)return null;var a=this.doPrivate(i);if(a==null)return null;var l=a.toString(16);return(l.length&1)==0?l:"0"+l},e.prototype.verify=function(t,n,r){var o=z(n,16),s=this.doPublic(o);if(s==null)return null;var i=s.toString(16).replace(/^1f+00/,""),a=cg(i);return a==r(t).toString()},e}();function ug(e,t){for(var n=e.toByteArray(),r=0;r<n.length&&n[r]==0;)++r;if(n.length-r!=t-1||n[r]!=2)return null;for(++r;n[r]!=0;)if(++r>=n.length)return null;for(var o="";++r<n.length;){var s=n[r]&255;s<128?o+=String.fromCharCode(s):s>191&&s<224?(o+=String.fromCharCode((s&31)<<6|n[r+1]&63),++r):(o+=String.fromCharCode((s&15)<<12|(n[r+1]&63)<<6|n[r+2]&63),r+=2)}return o}var on={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function lg(e){return on[e]||""}function cg(e){for(var t in on)if(on.hasOwnProperty(t)){var n=on[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}/*!
25
- Copyright (c) 2011, Yahoo! Inc. All rights reserved.
26
- Code licensed under the BSD License:
27
- http://developer.yahoo.com/yui/license.html
28
- version: 2.9.0
29
- */var q={};q.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var o;for(o in n)e.prototype[o]=n[o];var s=function(){},i=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,l){for(o=0;o<i.length;o=o+1){var c=i[o],h=l[c];typeof h=="function"&&h!=Object.prototype[c]&&(a[c]=h)}})}catch{}s(e.prototype,n)}}};/**
30
- * @fileOverview
31
- * @name asn1-1.0.js
32
- * @author Kenji Urushima kenji.urushima@gmail.com
33
- * @version asn1 1.0.13 (2017-Jun-02)
34
- * @since jsrsasign 2.1
35
- * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
36
- */var E={};(typeof E.asn1>"u"||!E.asn1)&&(E.asn1={});E.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var o="",s=0;s<r;s++)o+="f";var i=new R(o,16),a=i.xor(e).add(R.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=E,n=t.asn1,r=n.DERBoolean,o=n.DERInteger,s=n.DERBitString,i=n.DEROctetString,a=n.DERNull,l=n.DERObjectIdentifier,c=n.DEREnumerated,h=n.DERUTF8String,p=n.DERNumericString,v=n.DERPrintableString,g=n.DERTeletexString,f=n.DERIA5String,m=n.DERUTCTime,b=n.DERGeneralizedTime,y=n.DERSequence,T=n.DERSet,C=n.DERTaggedObject,P=n.ASN1Util.newObject,K=Object.keys(e);if(K.length!=1)throw"key of param shall be only one.";var D=K[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+D+":")==-1)throw"undefined key: "+D;if(D=="bool")return new r(e[D]);if(D=="int")return new o(e[D]);if(D=="bitstr")return new s(e[D]);if(D=="octstr")return new i(e[D]);if(D=="null")return new a(e[D]);if(D=="oid")return new l(e[D]);if(D=="enum")return new c(e[D]);if(D=="utf8str")return new h(e[D]);if(D=="numstr")return new p(e[D]);if(D=="prnstr")return new v(e[D]);if(D=="telstr")return new g(e[D]);if(D=="ia5str")return new f(e[D]);if(D=="utctime")return new m(e[D]);if(D=="gentime")return new b(e[D]);if(D=="seq"){for(var k=e[D],F=[],V=0;V<k.length;V++){var A=P(k[V]);F.push(A)}return new y({array:F})}if(D=="set"){for(var k=e[D],F=[],V=0;V<k.length;V++){var A=P(k[V]);F.push(A)}return new T({array:F})}if(D=="tag"){var w=e[D];if(Object.prototype.toString.call(w)==="[object Array]"&&w.length==3){var x=P(w[2]);return new C({tag:w[0],explicit:w[1],obj:x})}else{var M={};if(w.explicit!==void 0&&(M.explicit=w.explicit),w.tag!==void 0&&(M.tag=w.tag),w.obj===void 0)throw"obj shall be specified for 'tag'.";return M.obj=P(w.obj),new C(M)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};E.asn1.ASN1Util.oidHexToInt=function(e){for(var o="",t=parseInt(e.substr(0,2),16),n=Math.floor(t/40),r=t%40,o=n+"."+r,s="",i=2;i<e.length;i+=2){var a=parseInt(e.substr(i,2),16),l=("00000000"+a.toString(2)).slice(-8);if(s=s+l.substr(1,7),l.substr(0,1)=="0"){var c=new R(s,2);o=o+"."+c.toString(10),s=""}}return o};E.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var l=a.toString(16);return l.length==1&&(l="0"+l),l},n=function(a){var l="",c=new R(a,10),h=c.toString(2),p=7-h.length%7;p==7&&(p=0);for(var v="",g=0;g<p;g++)v+="0";h=v+h;for(var g=0;g<h.length-1;g+=7){var f=h.substr(g,7);g!=h.length-7&&(f="1"+f),l+=t(parseInt(f,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",o=e.split("."),s=parseInt(o[0])*40+parseInt(o[1]);r+=t(s),o.splice(0,2);for(var i=0;i<o.length;i++)r+=n(o[i]);return r};E.asn1.ASN1Object=function(){var e="";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="+e.length+",v="+this.hV;var t=this.hV.length/2,n=t.toString(16);if(n.length%2==1&&(n="0"+n),t<128)return n;var r=n.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var o=128+r;return o.toString(16)+n},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""}};E.asn1.DERAbstractString=function(e){E.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 e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))};q.lang.extend(E.asn1.DERAbstractString,E.asn1.ASN1Object);E.asn1.DERAbstractTime=function(e){E.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var n=new Date(utc);return n},this.formatDate=function(t,n,r){var o=this.zeroPadding,s=this.localDateToUTC(t),i=String(s.getFullYear());n=="utc"&&(i=i.substr(2,2));var a=o(String(s.getMonth()+1),2),l=o(String(s.getDate()),2),c=o(String(s.getHours()),2),h=o(String(s.getMinutes()),2),p=o(String(s.getSeconds()),2),v=i+a+l+c+h+p;if(r===!0){var g=s.getMilliseconds();if(g!=0){var f=o(String(g),3);f=f.replace(/[0]+$/,""),v=v+"."+f}}return v+"Z"},this.zeroPadding=function(t,n){return t.length>=n?t:new Array(n-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,n,r,o,s,i){var a=new Date(Date.UTC(t,n-1,r,o,s,i,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};q.lang.extend(E.asn1.DERAbstractTime,E.asn1.ASN1Object);E.asn1.DERAbstractStructured=function(e){E.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 e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)};q.lang.extend(E.asn1.DERAbstractStructured,E.asn1.ASN1Object);E.asn1.DERBoolean=function(){E.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};q.lang.extend(E.asn1.DERBoolean,E.asn1.ASN1Object);E.asn1.DERInteger=function(e){E.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=E.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new R(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};q.lang.extend(E.asn1.DERInteger,E.asn1.ASN1Object);E.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=E.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}E.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(n){this.hTLV=null,this.isModified=!0,this.hV=n},this.setUnusedBitsAndHexValue=function(n,r){if(n<0||7<n)throw"unused bits shall be from 0 to 7: u = "+n;var o="0"+n;this.hTLV=null,this.isModified=!0,this.hV=o+r},this.setByBinaryString=function(n){n=n.replace(/0+$/,"");var r=8-n.length%8;r==8&&(r=0);for(var o=0;o<=r;o++)n+="0";for(var s="",o=0;o<n.length-1;o+=8){var i=n.substr(o,8),a=parseInt(i,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+r+s},this.setByBooleanArray=function(n){for(var r="",o=0;o<n.length;o++)n[o]==!0?r+="1":r+="0";this.setByBinaryString(r)},this.newFalseArray=function(n){for(var r=new Array(n),o=0;o<n;o++)r[o]=!1;return r},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))};q.lang.extend(E.asn1.DERBitString,E.asn1.ASN1Object);E.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=E.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}E.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};q.lang.extend(E.asn1.DEROctetString,E.asn1.DERAbstractString);E.asn1.DERNull=function(){E.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};q.lang.extend(E.asn1.DERNull,E.asn1.ASN1Object);E.asn1.DERObjectIdentifier=function(e){var t=function(r){var o=r.toString(16);return o.length==1&&(o="0"+o),o},n=function(r){var o="",s=new R(r,10),i=s.toString(2),a=7-i.length%7;a==7&&(a=0);for(var l="",c=0;c<a;c++)l+="0";i=l+i;for(var c=0;c<i.length-1;c+=7){var h=i.substr(c,7);c!=i.length-7&&(h="1"+h),o+=t(parseInt(h,2))}return o};E.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(r){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueOidString=function(r){if(!r.match(/^[0-9.]+$/))throw"malformed oid string: "+r;var o="",s=r.split("."),i=parseInt(s[0])*40+parseInt(s[1]);o+=t(i),s.splice(0,2);for(var a=0;a<s.length;a++)o+=n(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueName=function(r){var o=E.asn1.x509.OID.name2oid(r);if(o!=="")this.setValueOidString(o);else throw"DERObjectIdentifier oidName undefined: "+r},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))};q.lang.extend(E.asn1.DERObjectIdentifier,E.asn1.ASN1Object);E.asn1.DEREnumerated=function(e){E.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=E.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var n=new R(String(t),10);this.setByBigInteger(n)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))};q.lang.extend(E.asn1.DEREnumerated,E.asn1.ASN1Object);E.asn1.DERUTF8String=function(e){E.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};q.lang.extend(E.asn1.DERUTF8String,E.asn1.DERAbstractString);E.asn1.DERNumericString=function(e){E.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};q.lang.extend(E.asn1.DERNumericString,E.asn1.DERAbstractString);E.asn1.DERPrintableString=function(e){E.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};q.lang.extend(E.asn1.DERPrintableString,E.asn1.DERAbstractString);E.asn1.DERTeletexString=function(e){E.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};q.lang.extend(E.asn1.DERTeletexString,E.asn1.DERAbstractString);E.asn1.DERIA5String=function(e){E.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};q.lang.extend(E.asn1.DERIA5String,E.asn1.DERAbstractString);E.asn1.DERUTCTime=function(e){E.asn1.DERUTCTime.superclass.constructor.call(this,e),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},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))};q.lang.extend(E.asn1.DERUTCTime,E.asn1.DERAbstractTime);E.asn1.DERGeneralizedTime=function(e){E.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),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},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))};q.lang.extend(E.asn1.DERGeneralizedTime,E.asn1.DERAbstractTime);E.asn1.DERSequence=function(e){E.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t+=r.getEncodedHex()}return this.hV=t,this.hV}};q.lang.extend(E.asn1.DERSequence,E.asn1.DERAbstractStructured);E.asn1.DERSet=function(e){E.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,n=0;n<this.asn1Array.length;n++){var r=this.asn1Array[n];t.push(r.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)};q.lang.extend(E.asn1.DERSet,E.asn1.DERAbstractStructured);E.asn1.DERTaggedObject=function(e){E.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,n,r){this.hT=n,this.isExplicit=t,this.asn1Object=r,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=r.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,n),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};q.lang.extend(E.asn1.DERTaggedObject,E.asn1.ASN1Object);var fg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e){fg(t,e);function t(n){var r=e.call(this)||this;return n&&(typeof n=="string"?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return t.prototype.parseKey=function(n){try{var r=0,o=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,i=s.test(n)?W0.decode(n):lr.unarmor(n),a=X0.decode(i);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){r=a.sub[1].getHexStringValue(),this.n=z(r,16),o=a.sub[2].getHexStringValue(),this.e=parseInt(o,16);var l=a.sub[3].getHexStringValue();this.d=z(l,16);var c=a.sub[4].getHexStringValue();this.p=z(c,16);var h=a.sub[5].getHexStringValue();this.q=z(h,16);var p=a.sub[6].getHexStringValue();this.dmp1=z(p,16);var v=a.sub[7].getHexStringValue();this.dmq1=z(v,16);var g=a.sub[8].getHexStringValue();this.coeff=z(g,16)}else if(a.sub.length===2)if(a.sub[0].sub){var f=a.sub[1],m=f.sub[0];r=m.sub[0].getHexStringValue(),this.n=z(r,16),o=m.sub[1].getHexStringValue(),this.e=parseInt(o,16)}else r=a.sub[0].getHexStringValue(),this.n=z(r,16),o=a.sub[1].getHexStringValue(),this.e=parseInt(o,16);else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var n={array:[new E.asn1.DERInteger({int:0}),new E.asn1.DERInteger({bigint:this.n}),new E.asn1.DERInteger({int:this.e}),new E.asn1.DERInteger({bigint:this.d}),new E.asn1.DERInteger({bigint:this.p}),new E.asn1.DERInteger({bigint:this.q}),new E.asn1.DERInteger({bigint:this.dmp1}),new E.asn1.DERInteger({bigint:this.dmq1}),new E.asn1.DERInteger({bigint:this.coeff})]},r=new E.asn1.DERSequence(n);return r.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return cn(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var n=new E.asn1.DERSequence({array:[new E.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new E.asn1.DERNull]}),r=new E.asn1.DERSequence({array:[new E.asn1.DERInteger({bigint:this.n}),new E.asn1.DERInteger({int:this.e})]}),o=new E.asn1.DERBitString({hex:"00"+r.getEncodedHex()}),s=new E.asn1.DERSequence({array:[n,o]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return cn(this.getPublicBaseKey())},t.wordwrap=function(n,r){if(r=r||64,!n)return n;var o="(.{1,"+r+`})( +|$
37
- ?)|(.{1,`+r+"})";return n.match(RegExp(o,"g")).join(`
38
- `)},t.prototype.getPrivateKey=function(){var n=`-----BEGIN RSA PRIVATE KEY-----
39
- `;return n+=t.wordwrap(this.getPrivateBaseKeyB64())+`
40
- `,n+="-----END RSA PRIVATE KEY-----",n},t.prototype.getPublicKey=function(){var n=`-----BEGIN PUBLIC KEY-----
41
- `;return n+=t.wordwrap(this.getPublicBaseKeyB64())+`
42
- `,n+="-----END PUBLIC KEY-----",n},t.hasPublicKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(n){return n=n||{},n.hasOwnProperty("n")&&n.hasOwnProperty("e")&&n.hasOwnProperty("d")&&n.hasOwnProperty("p")&&n.hasOwnProperty("q")&&n.hasOwnProperty("dmp1")&&n.hasOwnProperty("dmq1")&&n.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(n){this.n=n.n,this.e=n.e,n.hasOwnProperty("d")&&(this.d=n.d,this.p=n.p,this.q=n.q,this.dmp1=n.dmp1,this.dmq1=n.dmq1,this.coeff=n.coeff)},t}(ag),Ln,dg=typeof process<"u"?(Ln=process.env)===null||Ln===void 0?void 0:Ln.npm_package_version:void 0,qr=function(){function e(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 e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new ci(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(ri(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return cn(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,n,r){try{return cn(this.getKey().sign(t,n,r))}catch{return!1}},e.prototype.verify=function(t,n,r){try{return this.getKey().verify(t,ri(n),r)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new ci,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},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=dg,e}();function bt(e,t){const n=new qr;return n.setPublicKey(t),n.encrypt(e)||""}function uu(e,t){const n=new qr;return n.setPrivateKey(t),n.decrypt(e)||""}function fi(){return typeof new qr().encrypt=="function"}const lu=Lr(ye),{superAdminInfo:hg,cryptoInfo:ne,loginUserInfo:Fn}=He(lu),pg=Fr(ye),{activeMenuPath:Tt}=He(pg),fr=Ur(ye),ut="123456",gg=$r(ye),{routerPageStructures:vg}=He(gg),Gr=u.ref(0),yg=u.ref([{label:"用户名称",value:"",name:"userName"}]),tt=u.computed(()=>{const e=sessionStorage.getItem("isSuperAdmin");return e?JSON.parse(e):!1}),mg=e=>{console.log("handleQueryChange",e)},fn=u.ref([]),cu=u.ref(""),dn=u.computed(()=>{var t,n,r,o,s;const e=(t=vg.value)==null?void 0:t.find(i=>{var a;return((a=i==null?void 0:i.comp)==null?void 0:a.toUpperCase())==="TABLE"});return e?(cu.value=e.name,fn.value=(o=(r=(n=e==null?void 0:e.compData)==null?void 0:n.find(a=>(a==null?void 0:a.key)==="header"))==null?void 0:r.contents)==null?void 0:o.filter(a=>(a==null?void 0:a.label)!=="操作"),(s=e==null?void 0:e.compData)==null?void 0:s.map(a=>{var l;if((a==null?void 0:a.key)==="rowButton"){const c=[...a==null?void 0:a.contents,{label:"重置密码"}];return{...a,contents:c}}return(a==null?void 0:a.key)==="header"?{...a,contents:(l=a==null?void 0:a.contents)==null?void 0:l.map(c=>{var h,p,v,g;return{...c,isTableColHidden:((h=c==null?void 0:c.prop)==null?void 0:h.includes("头像"))||((p=c==null?void 0:c.prop)==null?void 0:p.includes("签名")),isFormColHidden:((v=c==null?void 0:c.prop)==null?void 0:v.includes("头像"))||((g=c==null?void 0:c.prop)==null?void 0:g.includes("签名"))}})}:a})):[]}),Eg=e=>{fr.setRefreshCurStructure(!1),Sn(e.singleContent,e.buttonName,Gr.value,e==null?void 0:e.selectItems)},dr=u.ref(),bg=e=>{console.log("onDoubleClick",e)},_g=(e,t)=>{e==="重置密码"&&Hi.confirm(`该操作将会重置【${(t==null?void 0:t.account)||(t==null?void 0:t.账号)}】的密码为【${ut}】,确认重置?`,"警告",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{dr.value={...t,password:ut},Sn(dr.value,e,Gr.value)}).catch(()=>{d.ElMessage.info("取消重置")})},Sg=()=>{Wr(Tt.value).then(e=>{var n;const t=Array.isArray(e)&&(e==null?void 0:e.filter(r=>(r==null?void 0:r.account)!==hg.value.account));dn.value=(n=dn.value)==null?void 0:n.map(r=>r.key==="tableContents"?{...r,contents:t==null?void 0:t.map(o=>{var s;return{...o,password:uu(o==null?void 0:o.password,(s=ne==null?void 0:ne.value)==null?void 0:s.privateKey)}})}:r)})},lt=async(e,t,n)=>{var r,o;try{const s=await e(t);return((r=s==null?void 0:s.data)==null?void 0:r.code)===200?(n!=="查询"&&await lu.setLogRecordAsync({type:n,data:t},Tt.value),d.ElMessage.success("保存成功"),fr.setRefreshCurStructure(!0),s.data.result||((o=s==null?void 0:s.data)==null?void 0:o.code)===200):null}catch(s){d.ElMessage.error(s)}finally{fr.setCacheUpdatingData(null)}},Tg=async(e,t)=>{var s,i;let n=[];Array.isArray(e)?n=ke(e):n=[ke(e)];const r=(s=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="string"))==null?void 0:s.map(a=>{var c,h,p,v,g,f,m;const l=xt(a,fn.value);return fi()&&l&&(!l.password&&tt.value?l.password=bt(ut,(c=ne==null?void 0:ne.value)==null?void 0:c.publicKey):l.password&&tt.value&&(l.password=bt(l==null?void 0:l.password,(h=ne==null?void 0:ne.value)==null?void 0:h.publicKey))),{key:{type:"data",layer:a==null?void 0:a.layer,systemKey:sessionStorage.getItem("systemKey"),pageKey:(p=Tt.value)!=null&&p.startsWith("/")?(v=Tt.value)==null?void 0:v.substring(1):Tt.value,tableId:t,createUserId:(g=Fn.value)==null?void 0:g.id,createUserOrg:((f=Fn.value)==null?void 0:f.dept)||((m=Fn.value)==null?void 0:m.部门名称)},value:{tableData:l}}}),o=(i=n==null?void 0:n.filter(a=>typeof(a==null?void 0:a.id)=="number"))==null?void 0:i.map(a=>{var c,h;const l=xt(a,fn.value);return fi()&&l&&(!l.password&&tt.value?l.password=bt(ut,(c=ne==null?void 0:ne.value)==null?void 0:c.publicKey):l.password&&tt.value&&(l.password=bt(l==null?void 0:l.password,(h=ne==null?void 0:ne.value)==null?void 0:h.publicKey))),{id:a==null?void 0:a.id,value:{tableData:l}}});r.length>0&&await lt(d.batchAddInsofDataApi,{dataList:r},"新增"),o.length>0&&(await lt(d.batchUpdateInsofDataApi,{dataList:o},"编辑"),$e.show=!1)},Sn=async(e,t,n,r)=>{if(!(t!=null&&t.includes("删除")))await Tg(e,n);else{let o=[];t!=null&&t.includes("批量")?o=r&&(r==null?void 0:r.length)>0?r==null?void 0:r.map(s=>s==null?void 0:s.id):[]:o=[e==null?void 0:e.id],await lt(d.batchDeleteInsofDataApi,{ids:o},"编辑")}},Wr=async e=>{const t=await lt(d.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(r=>{var o,s;return{id:r.id,layer:(o=r.key)==null?void 0:o.layer,tableData:(s=r==null?void 0:r.value)==null?void 0:s.tableData}});return n==null?void 0:n.map(r=>{var o;if(!Array.isArray(r==null?void 0:r.tableData))return{...r.tableData,layer:(o=r.key)==null?void 0:o.layer,id:r.id}})},wg={comp:"Group",name:"/系统管理/用户管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:dn.value,name:""}]}]},Ag=Object.freeze(Object.defineProperty({__proto__:null,changedRow:dr,clickRowButton:_g,columns:fn,compName:cu,getPageDataAsync:Wr,handleItemDataChange:Eg,handleQueryChange:mg,handleSubmitAsync:lt,loginUserIsSuper:tt,onDoubleClick:bg,pageData:dn,queryFormData:yg,refreshUserTableData:Sg,resetPassword:ut,structureId:Gr,submitTableAsyncByVerify:Sn,tempUserPageData:wg},Symbol.toStringTag,{value:"Module"}));exports.ElMessageBox=Hi;exports.Stack=je;exports.State=Ag;exports.State$1=H0;exports.Uint8Array=Kn;exports.arrayLikeKeys=_i;exports.assignValue=hr;exports.baseAssignValue=pi;exports.baseUnary=gn;exports.cloneBuffer=Ci;exports.cloneDeep=ke;exports.cloneTypedArray=Di;exports.decryptData=uu;exports.defineStore=Nt;exports.encryptData=bt;exports.getActivePageStructureId=tu;exports.getAllKeys=Oi;exports.getPageDataAsync=Wr;exports.getPrototype=wi;exports.handleSubmitAsync=lt;exports.identity=di;exports.initCloneObject=Ii;exports.isArguments=pn;exports.isArrayLike=vi;exports.isBuffer=vr;exports.isIndex=hn;exports.isNil=mr;exports.isPrototype=gr;exports.isTypedArray=bi;exports.nodeUtil=Le;exports.overRest=gi;exports.pinia=ye;exports.resetPassword=ut;exports.setToString=hi;exports.storeToRefs=He;exports.submitTableAsyncByVerify=Sn;exports.useAuthorityState=$r;exports.useLoginState=Lr;exports.useMenuState=Fr;exports.useModelComp=Ur;