@abtnode/blocklet-services 1.16.38-beta-20250116-083413-dbd33222 → 1.16.38-beta-20250120-112111-55c032e8

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 (169) hide show
  1. package/api/libs/connect/session.js +8 -3
  2. package/api/routes/env.js +2 -0
  3. package/dist/assets/{Add-DA06or_T.js → Add-DwDyMZjP.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-ByvmY1fG.js → ArrowDropDown-6xgUlX8W.js} +1 -1
  5. package/dist/assets/{CheckCircle-61kAAbS7.js → CheckCircle-D3qBEHQS.js} +1 -1
  6. package/dist/assets/{ChevronLeft-BEMgr19u.js → ChevronLeft-DgLREh72.js} +1 -1
  7. package/dist/assets/{ChevronRight-C9Sf_Tx7.js → ChevronRight-IFh5bkgF.js} +1 -1
  8. package/dist/assets/{DeleteOutline-CUlVP0SU.js → DeleteOutline-DQMkPBvg.js} +1 -1
  9. package/dist/assets/{Done-DBzH2QOU.js → Done-DLCsccPu.js} +1 -1
  10. package/dist/assets/{Download-CufGBMcn.js → Download-DTpNGuLl.js} +1 -1
  11. package/dist/assets/{Error-BRj42iX7.js → Error-UtB5QYSZ.js} +1 -1
  12. package/dist/assets/{Google-C9fXfahB.js → Google-BOAVI-Xc.js} +1 -1
  13. package/dist/assets/{InfoOutlined-CB0cJwBU.js → InfoOutlined-DQLlyyVh.js} +1 -1
  14. package/dist/assets/{Launch-DhDcxyle.js → Launch-Dh_xOrs9.js} +1 -1
  15. package/dist/assets/{LaunchOutlined--NsW2V4X.js → LaunchOutlined-foAf5c3n.js} +1 -1
  16. package/dist/assets/{Loop-DecQ6hrf.js → Loop-C4-HT3aE.js} +1 -1
  17. package/dist/assets/{MoreHoriz-jR1hvlRv.js → MoreHoriz-CUpIy534.js} +1 -1
  18. package/dist/assets/{PlayArrow-BQPL8ZKx.js → PlayArrow-DXnaLQNG.js} +1 -1
  19. package/dist/assets/{ViewList-COpI8i9D.js → ViewList-CRla7mfM.js} +1 -1
  20. package/dist/assets/_createAggregator-B36dTDyD.js +1 -0
  21. package/dist/assets/{access-control-CyOr5O9b.js → access-control-vt3SOToF.js} +1 -1
  22. package/dist/assets/{actions-DDDMPf_w.js → actions-Ca8zHti6.js} +1 -1
  23. package/dist/assets/add-component-core-CacRzL5C.js +716 -0
  24. package/dist/assets/{add-resource-Znwa5ovp.js → add-resource-ZEGylpES.js} +1 -1
  25. package/dist/assets/{addon-DRWTut9y.js → addon-CD5JNqbI.js} +1 -1
  26. package/dist/assets/{analytics-iIAmuHjx.js → analytics-hNGjKcAT.js} +1 -1
  27. package/dist/assets/api-CjgpDSsI.js +1 -0
  28. package/dist/assets/ar-4M8AtNpp.js +3 -0
  29. package/dist/assets/{ar-Da8oOZhL.js → ar-DoIWDL3Q.js} +1 -1
  30. package/dist/assets/{audit-logs-8Mi-fbdp.js → audit-logs-BKvkrneR.js} +1 -1
  31. package/dist/assets/{base32-BJ0zdvwj.js → base32-uGF9kxBw.js} +1 -1
  32. package/dist/assets/{branding-Y_Xiasx4.js → branding-BfuJue_R.js} +2 -2
  33. package/dist/assets/{bundle-avatar-vdPLynfx.js → bundle-avatar-BkNNM9he.js} +1 -1
  34. package/dist/assets/{button-bqdvVuzW.js → button-6RO042tO.js} +1 -1
  35. package/dist/assets/{click-to-copy-CmMy3CrF.js → click-to-copy-DSvEXBYz.js} +1 -1
  36. package/dist/assets/{complete-CS43JIHv.js → complete-DOx-lUao.js} +1 -1
  37. package/dist/assets/{component-BCTw0GKP.js → component-DuXXl9Wb.js} +1 -1
  38. package/dist/assets/{config-DmjSKN24.js → config-BY9NHNw2.js} +2 -2
  39. package/dist/assets/{config-CJbVE0vv.js → config-_Ff2iSUC.js} +1 -1
  40. package/dist/assets/{config-navigation-CNspwqbG.js → config-navigation-m1gKN3Qh.js} +3 -3
  41. package/dist/assets/{config-space-DmPh1bZ_.js → config-space-DFc6Pvuv.js} +1 -1
  42. package/dist/assets/{confirm-Cx-IVcgq.js → confirm-DUAXonUU.js} +1 -1
  43. package/dist/assets/{connect-Czw6WbQF.js → connect-B8cD_Man.js} +1 -1
  44. package/dist/assets/{connect-B6MpXaBD.js → connect-CywmqoEu.js} +1 -1
  45. package/dist/assets/{connect-to-DYBaYeJc.js → connect-to-DrkQpX8j.js} +1 -1
  46. package/dist/assets/{dashboard-CPxg5LvZ.js → dashboard-ChoAkepn.js} +3 -3
  47. package/dist/assets/{de-BYtQQOr-.js → de-BVgb1fEg.js} +1 -1
  48. package/dist/assets/de-D7CG0ov1.js +3 -0
  49. package/dist/assets/{did-address-DsOFwsmU.js → did-address-BD4xjcb5.js} +1 -1
  50. package/dist/assets/{domain-CZsQei8I.js → domain-C3fxr6Yg.js} +1 -1
  51. package/dist/assets/{domain-list-D4Clgh5O.js → domain-list-Do_JR9rl.js} +2 -2
  52. package/dist/assets/{email-CtCPE15h.js → email-Bne33m4E.js} +3 -3
  53. package/dist/assets/{es-BYjXKvnd.js → es-CWcVPAna.js} +1 -1
  54. package/dist/assets/es-DDr-aesw.js +3 -0
  55. package/dist/assets/{exchange-passport-CZFdfxAy.js → exchange-passport-De6icZUJ.js} +1 -1
  56. package/dist/assets/{form-text-input-s_8M9qAU.js → form-text-input-BCHcrKD9.js} +1 -1
  57. package/dist/assets/{fr-Di7fDhg9.js → fr-C8Jr_C8u.js} +1 -1
  58. package/dist/assets/fr-CsECkLCu.js +3 -0
  59. package/dist/assets/{fuel-DQb6QtRb.js → fuel-BCXVQ7L0.js} +1 -1
  60. package/dist/assets/{fullpage-vhYlt62g.js → fullpage-Dd-4ilXd.js} +1 -1
  61. package/dist/assets/{get-safe-url-Bg-eYJFz.js → get-safe-url-CWTjw4O_.js} +1 -1
  62. package/dist/assets/{get-safe-url-CUm2E-jn.js → get-safe-url-g5s2_Tjs.js} +1 -1
  63. package/dist/assets/hi-Bojespkc.js +1 -0
  64. package/dist/assets/{hi-JrL4jTWL.js → hi-DTqZQNNB.js} +1 -1
  65. package/dist/assets/{home-X6wxlptK.js → home-Cy8ZPRh3.js} +1 -1
  66. package/dist/assets/{id-CgtYzmhQ.js → id-CUsGyKYW.js} +1 -1
  67. package/dist/assets/id-PvpxFUDg.js +3 -0
  68. package/dist/assets/{iframe-CVBJbqTp.js → iframe-B1rCM9Eo.js} +1 -1
  69. package/dist/assets/{index-BfVR8O43.js → index-0YXNPVgm.js} +26 -26
  70. package/dist/assets/index-3ytyTrcC.js +2 -0
  71. package/dist/assets/{index-8FWcj3Y4.js → index-BEw2AyDT.js} +7 -7
  72. package/dist/assets/index-BJ7_xt0j.js +104 -0
  73. package/dist/assets/{index-IvME2p33.js → index-Bj0uuh8o.js} +1 -1
  74. package/dist/assets/{index-JFhSGIs6.js → index-BnIb4VTf.js} +1 -1
  75. package/dist/assets/{index-COiVRnOM.js → index-C1Xq6XBK.js} +1 -1
  76. package/dist/assets/{index-Dl6rjJDp.js → index-C73dl7Hb.js} +1 -1
  77. package/dist/assets/{index-BFfaWqP3.js → index-CWMVCzCZ.js} +1 -1
  78. package/dist/assets/{index-DcwCauP3.js → index-CfrumxV3.js} +1 -1
  79. package/dist/assets/index-D2ZJq7sT.js +228 -0
  80. package/dist/assets/{index-B0QYqr2A.js → index-D5GvmQYq.js} +15 -15
  81. package/dist/assets/{index-iqfmQPLo.js → index-DKA7-XNE.js} +1 -1
  82. package/dist/assets/{index-BGO2DsWz.js → index-Dtif7RsI.js} +1 -1
  83. package/dist/assets/{index-BtxzZ9SO.js → index-HfngL4ZQ.js} +1 -1
  84. package/dist/assets/{index-BbrJG83p.js → index-wVbkSf51.js} +1 -1
  85. package/dist/assets/{invitation-CN9oEvb3.js → invitation-HSZrTxov.js} +1 -1
  86. package/dist/assets/{invite-C2OM8i63.js → invite-Bq0wk8ts.js} +1 -1
  87. package/dist/assets/{issue-passport-B6l3ZIL0.js → issue-passport-CVJgqjoO.js} +1 -1
  88. package/dist/assets/{item-BG6Y4B38.js → item-ClsWGBWW.js} +2 -2
  89. package/dist/assets/{ja-kNnm5FIs.js → ja-B0U7M2t1.js} +1 -1
  90. package/dist/assets/ja-B9wMKQOb.js +3 -0
  91. package/dist/assets/ko-C_Flkwn-.js +3 -0
  92. package/dist/assets/{ko-Bp4AGMi0.js → ko-CpDA9JjF.js} +1 -1
  93. package/dist/assets/{layout-mYIHD_Mg.js → layout-C4CjSZo6.js} +1 -1
  94. package/dist/assets/{list-header-Bce1kvpA.js → list-header-DH99VXjo.js} +1 -1
  95. package/dist/assets/localization-CBcpjiaX.js +1 -0
  96. package/dist/assets/{log-CBfX52Lz.js → log-DURqeXoL.js} +3 -3
  97. package/dist/assets/{login-b0vBgUs0.js → login-Bspf2QPd.js} +1 -1
  98. package/dist/assets/{login-oauth-callback-BVkafEHi.js → login-oauth-callback-C_wyWhiQ.js} +1 -1
  99. package/dist/assets/{logo-uploader-B7OF9E82.js → logo-uploader-Dd2aFjos.js} +3 -3
  100. package/dist/assets/{lost-passport-z5GhQRa9.js → lost-passport-BSTbRq2w.js} +1 -1
  101. package/dist/assets/{open-window-CIN-c_8i.js → open-window-CbZilAH2.js} +1 -1
  102. package/dist/assets/{overview-BPRG92Fe.js → overview-fXNI1ek4.js} +1 -1
  103. package/dist/assets/{page-header-PFRlhj0j.js → page-header-CjQ-ywzU.js} +1 -1
  104. package/dist/assets/{permission-BwvfjqYI.js → permission-7KeKIEKG.js} +1 -1
  105. package/dist/assets/{preferences-DY1qnOCx.js → preferences-BvdZgVe4.js} +1 -1
  106. package/dist/assets/{pt-DWGzgF0H.js → pt-7r06GaNd.js} +1 -1
  107. package/dist/assets/pt-BqEVlA-1.js +1 -0
  108. package/dist/assets/publish-resource-DKGi8v_y.js +1 -0
  109. package/dist/assets/{react-beautiful-dnd.esm-DZo8yE8C.js → react-beautiful-dnd.esm-1AJr8vv6.js} +4 -4
  110. package/dist/assets/{relative-time-D0LbFIi3.js → relative-time-DXGmoAYD.js} +1 -1
  111. package/dist/assets/{ru-KetZJtiW.js → ru-MS-ksi2g.js} +1 -1
  112. package/dist/assets/ru-u0x_icQc.js +1 -0
  113. package/dist/assets/sdk-iUaLet3q.js +1 -0
  114. package/dist/assets/session-Cz3pOVxP.js +1 -0
  115. package/dist/assets/{setup-LILji8SV.js → setup-BoMrIrRo.js} +3 -3
  116. package/dist/assets/{start-DXNq6pym.js → start-DbCciQyK.js} +1 -1
  117. package/dist/assets/{step-actions-ChI-f31y.js → step-actions-BF4Z-WD4.js} +1 -1
  118. package/dist/assets/{studio-C8ceaGGk.js → studio-DJOlNVRZ.js} +1 -1
  119. package/dist/assets/{switch-control-DzGhrJO3.js → switch-control-Df6SSLH9.js} +1 -1
  120. package/dist/assets/th-BX_96cb2.js +1 -0
  121. package/dist/assets/{th-DbGao18H.js → th-gcuRSNHo.js} +1 -1
  122. package/dist/assets/{toUpper-Ch8IcBS5.js → toUpper-BYBs387H.js} +1 -1
  123. package/dist/assets/{transfer-C_2vz0eA.js → transfer-CoIJ2-Fh.js} +1 -1
  124. package/dist/assets/{unsubscribe-CbRJLLVz.js → unsubscribe-DHlZPuAs.js} +1 -1
  125. package/dist/assets/{useAsync-cdOzMWPw.js → useAsync-D2wKH3Wq.js} +1 -1
  126. package/dist/assets/{useAsyncRetry-ng-QDeMG.js → useAsyncRetry-B87-aW-H.js} +1 -1
  127. package/dist/assets/{useLocalStorage-CM8R1gkX.js → useLocalStorage-Dsxa7zZV.js} +1 -1
  128. package/dist/assets/user-center-BY7PdrGc.js +203 -0
  129. package/dist/assets/{util-D7vfOed5.js → util-DzhfzPwC.js} +1 -1
  130. package/dist/assets/vendor-arcblock-D-SOxQ_x.js +3509 -0
  131. package/dist/assets/{vendor-hooks-CLzfFpO7.js → vendor-hooks-CAfthYak.js} +1 -1
  132. package/dist/assets/vendor-utils-B7sI0FpJ.js +11 -0
  133. package/dist/assets/vi-7r8InJhP.js +1 -0
  134. package/dist/assets/{vi-hrya0JxD.js → vi-CGYOhf_R.js} +1 -1
  135. package/dist/assets/wrap-locale-CjCBeQlY.js +1 -0
  136. package/dist/assets/{zh-CHioW4ik.js → zh-BYS_9r4v.js} +1 -1
  137. package/dist/assets/zh-D0JQ3A7z.js +4 -0
  138. package/dist/assets/{zh-tw-LiaeDjuy.js → zh-tw-BR5CO3an.js} +1 -1
  139. package/dist/assets/zh-tw-CnxtpiBO.js +3 -0
  140. package/dist/index.html +4 -4
  141. package/dist/service-worker.js +1 -1
  142. package/package.json +21 -21
  143. package/dist/assets/_createAggregator-D73d37er.js +0 -1
  144. package/dist/assets/add-component-core-BTs2P_Jp.js +0 -716
  145. package/dist/assets/api-C0C4sDJA.js +0 -1
  146. package/dist/assets/ar-7ttREm7R.js +0 -3
  147. package/dist/assets/de-rZ-qvWqU.js +0 -3
  148. package/dist/assets/es-BU9x-PJk.js +0 -3
  149. package/dist/assets/fr-DW8hDuav.js +0 -3
  150. package/dist/assets/hi-BBATPy58.js +0 -1
  151. package/dist/assets/id-B3tqmZ1i.js +0 -3
  152. package/dist/assets/index-BP4o1Jjj.js +0 -228
  153. package/dist/assets/index-CYQoZJsb.js +0 -104
  154. package/dist/assets/ja-B7dx7PB1.js +0 -3
  155. package/dist/assets/ko-BuKH8Xym.js +0 -3
  156. package/dist/assets/localization-_hzGA-9a.js +0 -1
  157. package/dist/assets/pt-SFtgVKOC.js +0 -1
  158. package/dist/assets/publish-resource-Co4IkWOk.js +0 -1
  159. package/dist/assets/ru-DW4CEx4a.js +0 -1
  160. package/dist/assets/sdk-CrCNIpAP.js +0 -1
  161. package/dist/assets/session-Ku4cwX2M.js +0 -1
  162. package/dist/assets/th-C-m_sG2U.js +0 -1
  163. package/dist/assets/user-center-Dvw2MR8N.js +0 -202
  164. package/dist/assets/vendor-arcblock-BlPSuvWz.js +0 -3506
  165. package/dist/assets/vendor-utils-DCpRgzMR.js +0 -11
  166. package/dist/assets/vi-DFWs_XTe.js +0 -1
  167. package/dist/assets/wrap-locale-Df7FBKhT.js +0 -1
  168. package/dist/assets/zh-C84g18sR.js +0 -4
  169. package/dist/assets/zh-tw-DBzp3T8D.js +0 -3
@@ -1,11 +0,0 @@
1
- import{e as dn,g as pn,a as oi}from"./vendor-react-D-afvo_7.js";var mn={exports:{}};(function(t,e){(function(s,a){t.exports=a()})(dn,function(){var s=1e3,a=6e4,m=36e5,f="millisecond",M="second",S="minute",F="hour",C="day",y="week",_="month",O="quarter",P="year",I="date",$="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,j={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var c=["th","st","nd","rd"],d=l%100;return"["+l+(c[(d-20)%10]||c[d]||c[0])+"]"}},Q=function(l,c,d){var x=String(l);return!x||x.length>=c?l:""+Array(c+1-x.length).join(d)+l},Y={s:Q,z:function(l){var c=-l.utcOffset(),d=Math.abs(c),x=Math.floor(d/60),E=d%60;return(c<=0?"+":"-")+Q(x,2,"0")+":"+Q(E,2,"0")},m:function l(c,d){if(c.date()<d.date())return-l(d,c);var x=12*(d.year()-c.year())+(d.month()-c.month()),E=c.clone().add(x,_),p=d-E<0,i=c.clone().add(x+(p?-1:1),_);return+(-(x+(d-E)/(p?E-i:i-E))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:_,y:P,w:y,d:C,D:I,h:F,m:S,s:M,ms:f,Q:O}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},it="en",at={};at[it]=j;var Ut="$isDayjsObject",ht=function(l){return l instanceof r||!(!l||!l[Ut])},G=function l(c,d,x){var E;if(!c)return it;if(typeof c=="string"){var p=c.toLowerCase();at[p]&&(E=p),d&&(at[p]=d,E=p);var i=c.split("-");if(!E&&i.length>1)return l(i[0])}else{var w=c.name;at[w]=c,E=w}return!x&&E&&(it=E),E||!x&&it},rt=function(l,c){if(ht(l))return l.clone();var d=typeof c=="object"?c:{};return d.date=l,d.args=arguments,new r(d)},v=Y;v.l=G,v.i=ht,v.w=function(l,c){return rt(l,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var r=function(){function l(d){this.$L=G(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[Ut]=!0}var c=l.prototype;return c.parse=function(d){this.$d=function(x){var E=x.date,p=x.utc;if(E===null)return new Date(NaN);if(v.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var i=E.match(N);if(i){var w=i[2]-1||0,L=(i[7]||"0").substring(0,3);return p?new Date(Date.UTC(i[1],w,i[3]||1,i[4]||0,i[5]||0,i[6]||0,L)):new Date(i[1],w,i[3]||1,i[4]||0,i[5]||0,i[6]||0,L)}}return new Date(E)}(d),this.init()},c.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},c.$utils=function(){return v},c.isValid=function(){return this.$d.toString()!==$},c.isSame=function(d,x){var E=rt(d);return this.startOf(x)<=E&&E<=this.endOf(x)},c.isAfter=function(d,x){return rt(d)<this.startOf(x)},c.isBefore=function(d,x){return this.endOf(x)<rt(d)},c.$g=function(d,x,E){return v.u(d)?this[x]:this.set(E,d)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(d,x){var E=this,p=!!v.u(x)||x,i=v.p(d),w=function(K,z){var Lt=v.w(E.$u?Date.UTC(E.$y,z,K):new Date(E.$y,z,K),E);return p?Lt:Lt.endOf(C)},L=function(K,z){return v.w(E.toDate()[K].apply(E.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(z)),E)},U=this.$W,T=this.$M,k=this.$D,J="set"+(this.$u?"UTC":"");switch(i){case P:return p?w(1,0):w(31,11);case _:return p?w(1,T):w(0,T+1);case y:var V=this.$locale().weekStart||0,Nt=(U<V?U+7:U)-V;return w(p?k-Nt:k+(6-Nt),T);case C:case I:return L(J+"Hours",0);case F:return L(J+"Minutes",1);case S:return L(J+"Seconds",2);case M:return L(J+"Milliseconds",3);default:return this.clone()}},c.endOf=function(d){return this.startOf(d,!1)},c.$set=function(d,x){var E,p=v.p(d),i="set"+(this.$u?"UTC":""),w=(E={},E[C]=i+"Date",E[I]=i+"Date",E[_]=i+"Month",E[P]=i+"FullYear",E[F]=i+"Hours",E[S]=i+"Minutes",E[M]=i+"Seconds",E[f]=i+"Milliseconds",E)[p],L=p===C?this.$D+(x-this.$W):x;if(p===_||p===P){var U=this.clone().set(I,1);U.$d[w](L),U.init(),this.$d=U.set(I,Math.min(this.$D,U.daysInMonth())).$d}else w&&this.$d[w](L);return this.init(),this},c.set=function(d,x){return this.clone().$set(d,x)},c.get=function(d){return this[v.p(d)]()},c.add=function(d,x){var E,p=this;d=Number(d);var i=v.p(x),w=function(T){var k=rt(p);return v.w(k.date(k.date()+Math.round(T*d)),p)};if(i===_)return this.set(_,this.$M+d);if(i===P)return this.set(P,this.$y+d);if(i===C)return w(1);if(i===y)return w(7);var L=(E={},E[S]=a,E[F]=m,E[M]=s,E)[i]||1,U=this.$d.getTime()+d*L;return v.w(U,this)},c.subtract=function(d,x){return this.add(-1*d,x)},c.format=function(d){var x=this,E=this.$locale();if(!this.isValid())return E.invalidDate||$;var p=d||"YYYY-MM-DDTHH:mm:ssZ",i=v.z(this),w=this.$H,L=this.$m,U=this.$M,T=E.weekdays,k=E.months,J=E.meridiem,V=function(z,Lt,tt,ot){return z&&(z[Lt]||z(x,p))||tt[Lt].slice(0,ot)},Nt=function(z){return v.s(w%12||12,z,"0")},K=J||function(z,Lt,tt){var ot=z<12?"AM":"PM";return tt?ot.toLowerCase():ot};return p.replace(Z,function(z,Lt){return Lt||function(tt){switch(tt){case"YY":return String(x.$y).slice(-2);case"YYYY":return v.s(x.$y,4,"0");case"M":return U+1;case"MM":return v.s(U+1,2,"0");case"MMM":return V(E.monthsShort,U,k,3);case"MMMM":return V(k,U);case"D":return x.$D;case"DD":return v.s(x.$D,2,"0");case"d":return String(x.$W);case"dd":return V(E.weekdaysMin,x.$W,T,2);case"ddd":return V(E.weekdaysShort,x.$W,T,3);case"dddd":return T[x.$W];case"H":return String(w);case"HH":return v.s(w,2,"0");case"h":return Nt(1);case"hh":return Nt(2);case"a":return K(w,L,!0);case"A":return K(w,L,!1);case"m":return String(L);case"mm":return v.s(L,2,"0");case"s":return String(x.$s);case"ss":return v.s(x.$s,2,"0");case"SSS":return v.s(x.$ms,3,"0");case"Z":return i}return null}(z)||i.replace(":","")})},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(d,x,E){var p,i=this,w=v.p(x),L=rt(d),U=(L.utcOffset()-this.utcOffset())*a,T=this-L,k=function(){return v.m(i,L)};switch(w){case P:p=k()/12;break;case _:p=k();break;case O:p=k()/3;break;case y:p=(T-U)/6048e5;break;case C:p=(T-U)/864e5;break;case F:p=T/m;break;case S:p=T/a;break;case M:p=T/s;break;default:p=T}return E?p:v.a(p)},c.daysInMonth=function(){return this.endOf(_).$D},c.$locale=function(){return at[this.$L]},c.locale=function(d,x){if(!d)return this.$L;var E=this.clone(),p=G(d,x,!0);return p&&(E.$L=p),E},c.clone=function(){return v.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},l}(),u=r.prototype;return rt.prototype=u,[["$ms",f],["$s",M],["$m",S],["$H",F],["$W",C],["$M",_],["$y",P],["$D",I]].forEach(function(l){u[l[1]]=function(c){return this.$g(c,l[0],l[1])}}),rt.extend=function(l,c){return l.$i||(l(c,r,rt),l.$i=!0),rt},rt.locale=G,rt.isDayjs=ht,rt.unix=function(l){return rt(1e3*l)},rt.en=at[it],rt.Ls=at,rt.p={},rt})})(mn);var si=mn.exports;const Fa=pn(si),ai=globalThis||void 0||self,ui=/[^\0-\x7E]/,fi=/[\x2E\u3002\uFF0E\uFF61]/g,hi={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},ae=Math.floor,gr=String.fromCharCode;function Gr(t){throw new RangeError(hi[t])}const Yr=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},li=function(t,e,s){let a=0;for(t=s?ae(t/700):t>>1,t+=ae(t/e);t>455;a+=36)t=ae(t/35);return ae(a+36*t/(t+38))};function ci(t){return function(e,s){const a=e.split("@");let m="";a.length>1&&(m=a[0]+"@",e=a[1]);const f=function(M,S){const F=[];let C=M.length;for(;C--;)F[C]=S(M[C]);return F}((e=e.replace(fi,".")).split("."),s).join(".");return m+f}(t,function(e){return ui.test(e)?"xn--"+function(s){const a=[],m=(s=function(y){const _=[];let O=0;const P=y.length;for(;O<P;){const I=y.charCodeAt(O++);if(I>=55296&&I<=56319&&O<P){const $=y.charCodeAt(O++);(64512&$)==56320?_.push(((1023&I)<<10)+(1023&$)+65536):(_.push(I),O--)}else _.push(I)}return _}(s)).length;let f=128,M=0,S=72;for(const y of s)y<128&&a.push(gr(y));const F=a.length;let C=F;for(F&&a.push("-");C<m;){let y=2147483647;for(const O of s)O>=f&&O<y&&(y=O);const _=C+1;y-f>ae((2147483647-M)/_)&&Gr("overflow"),M+=(y-f)*_,f=y;for(const O of s)if(O<f&&++M>2147483647&&Gr("overflow"),O==f){let P=M;for(let I=36;;I+=36){const $=I<=S?1:I>=S+26?26:I-S;if(P<$)break;const N=P-$,Z=36-$;a.push(gr(Yr($+N%Z,0))),P=ae(N/Z)}a.push(gr(Yr(P,0))),S=li(M,_,C==F),M=0,++C}++M,++f}return a.join("")}(e):e})}const gn=/#/g,yn=/&/g,wn=/\//g,di=/=/g,pi=/\?/g,Pe=/\+/g,vn=/%5e/gi,mi=/%60/gi,gi=/%7b/gi,yi=/%7c/gi,wi=/%7d/gi,vi=/%20/gi,Mi=/%2f/gi,xi=/%252f/gi;function ke(t){return encodeURI(""+t).replace(yi,"|")}function De(t){return ke(t).replace(gi,"{").replace(wi,"}").replace(vn,"^")}function Ie(t){return ke(typeof t=="string"?t:JSON.stringify(t)).replace(Pe,"%2B").replace(vi,"+").replace(gn,"%23").replace(yn,"%26").replace(mi,"`").replace(vn,"^").replace(wn,"%2F")}function Re(t){return Ie(t).replace(di,"%3D")}function qe(t){return ke(t).replace(gn,"%23").replace(pi,"%3F").replace(xi,"%2F").replace(yn,"%26").replace(Pe,"%2B")}function Ei(t){return qe(t).replace(wn,"%2F")}function $t(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function Lr(t){return $t(t.replace(Mi,"%252F"))}function Mn(t){return $t(t.replace(Pe," "))}function xn(t){return $t(t.replace(Pe," "))}function Oe(t=""){return ci(t)}function te(t=""){const e={};t[0]==="?"&&(t=t.slice(1));for(const s of t.split("&")){const a=s.match(/([^=]+)=?(.*)/)||[];if(a.length<2)continue;const m=Mn(a[1]);if(m==="__proto__"||m==="constructor")continue;const f=xn(a[2]||"");e[m]===void 0?e[m]=f:Array.isArray(e[m])?e[m].push(f):e[m]=[e[m],f]}return e}function En(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(s=>`${Re(t)}=${Ie(s)}`).join("&"):`${Re(t)}=${Ie(e)}`:Re(t)}function Me(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>En(e,t[e])).filter(Boolean).join("&")}const bi=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,bn=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Si=/^([/\\]\s*){2,}[^/\\]/,Ci=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ri=/\/$|\/\?|\/#/,Bi=/^\.?\//;function Ai(t){return["./","../"].some(e=>t.startsWith(e))}function He(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?bi.test(t):bn.test(t)||(e.acceptRelative?Si.test(t):!1)}function _i(t){return!!t&&Ci.test(t)}function Le(t="",e){return e?Ri.test(t):t.endsWith("/")}function we(t="",e){if(!e)return(Le(t)?t.slice(0,-1):t)||"/";if(!Le(t,!0))return t||"/";let s=t,a="";const m=t.indexOf("#");m>=0&&(s=t.slice(0,m),a=t.slice(m));const[f,...M]=s.split("?");return((f.endsWith("/")?f.slice(0,-1):f)||"/")+(M.length>0?`?${M.join("?")}`:"")+a}function fe(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(Le(t,!0))return t||"/";let s=t,a="";const m=t.indexOf("#");if(m>=0&&(s=t.slice(0,m),a=t.slice(m),!s))return a;const[f,...M]=s.split("?");return f+"/"+(M.length>0?`?${M.join("?")}`:"")+a}function Ur(t=""){return t.startsWith("/")}function Nr(t=""){return(Ur(t)?t.slice(1):t)||"/"}function Er(t=""){return Ur(t)?t:"/"+t}function Fi(t=""){return t.split("://").map(e=>e.replace(/\/{2,}/g,"/")).join("://")}function Ti(t,e){if($r(e)||He(t))return t;const s=we(e);return t.startsWith(s)?t:Sn(s,t)}function Ii(t,e){if($r(e))return t;const s=we(e);if(!t.startsWith(s))return t;const a=t.slice(s.length);return a[0]==="/"?a:"/"+a}function Oi(t,e){const s=Ht(t),a={...te(s.search),...e};return s.search=Me(a),de(s)}function Li(t){return te(Ht(t).search)}function $r(t){return!t||t==="/"}function Pr(t){return t&&t!=="/"}function Sn(t,...e){let s=t||"";for(const a of e.filter(m=>Pr(m)))if(s){const m=a.replace(Bi,"");s=fe(s)+m}else s=a;return s}function Ui(...t){var M,S,F,C;const e=/\/(?!\/)/,s=t.filter(Boolean),a=[];let m=0;for(const y of s)if(!(!y||y==="/")){for(const[_,O]of y.split(e).entries())if(!(!O||O===".")){if(O===".."){if(a.length===1&&He(a[0]))continue;a.pop(),m--;continue}if(_===1&&((M=a[a.length-1])!=null&&M.endsWith(":/"))){a[a.length-1]+="/"+O;continue}a.push(O),m++}}let f=a.join("/");return m>=0?(S=s[0])!=null&&S.startsWith("/")&&!f.startsWith("/")?f="/"+f:(F=s[0])!=null&&F.startsWith("./")&&!f.startsWith("./")&&(f="./"+f):f="../".repeat(-1*m)+f,(C=s[s.length-1])!=null&&C.endsWith("/")&&!f.endsWith("/")&&(f+="/"),f}function Ni(t){return je(t,"http://")}function $i(t){return je(t,"https://")}function Pi(t){return je(t,"")}function je(t,e){let s=t.match(bn);return s||(s=t.match(/^\/{2,}/)),s?e+t.slice(s[0].length):e+t}function ki(t){const e=Ht(t);return e.pathname=qe(Lr(e.pathname)),e.hash=De($t(e.hash)),e.host=Oe($t(e.host)),e.search=Me(te(e.search)),de(e)}function Di(t="",...e){if(typeof t!="string")throw new TypeError(`URL input should be string received ${typeof t} (${t})`);const s=e.filter(m=>Pr(m));if(s.length===0)return t;const a=Ht(t);for(const m of s){const f=Ht(m);if(f.pathname&&(a.pathname=fe(a.pathname)+Nr(f.pathname)),f.hash&&f.hash!=="#"&&(a.hash=f.hash),f.search&&f.search!=="?")if(a.search&&a.search!=="?"){const M=Me({...te(a.search),...te(f.search)});a.search=M.length>0?"?"+M:""}else a.search=f.search}return de(a)}function qi(t,e){return $t(we(t))===$t(we(e))}function Hi(t,e,s={}){return s.trailingSlash||(t=fe(t),e=fe(e)),s.leadingSlash||(t=Er(t),e=Er(e)),s.encoding||(t=$t(t),e=$t(e)),t===e}function ji(t,e){if(!e||e==="#")return t;const s=Ht(t);return s.hash=e===""?"":"#"+De(e),de(s)}function zi(t){return de({...Ht(t),hash:""})}function Wi(t){const e=Ht(t);return(e.pathname||"/")+e.search+e.hash}const Cn=Symbol.for("ufo:protocolRelative");function Ht(t="",e){const s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){const[,_,O=""]=s;return{protocol:_.toLowerCase(),pathname:O,href:_+O,auth:"",host:"",search:"",hash:""}}if(!He(t,{acceptRelative:!0}))return e?Ht(e+t):br(t);const[,a="",m,f=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,M="",S=""]=f.match(/([^#/?]*)(.*)?/)||[];a==="file:"&&(S=S.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:F,search:C,hash:y}=br(S);return{protocol:a.toLowerCase(),auth:m?m.slice(0,Math.max(0,m.length-1)):"",host:M,pathname:F,search:C,hash:y,[Cn]:!a}}function br(t=""){const[e="",s="",a=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:s,hash:a}}function Be(t=""){const[e,s]=t.split(":");return{username:$t(e),password:$t(s)}}function Sr(t=""){const[e,s]=(t.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:$t(e),port:s}}function de(t){const e=t.pathname||"",s=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",a=t.hash||"",m=t.auth?t.auth+"@":"",f=t.host||"";return(t.protocol||t[Cn]?(t.protocol||"")+"//":"")+m+f+e+s+a}const Ji=/\/([^/]+\.[^/]+)$/,Zi=/\/([^/]+)$/;function Vi(t="",{strict:e}){const{pathname:s}=Ht(t),a=e?s.match(Ji):s.match(Zi);return a?a[1]:void 0}var Ki=Object.defineProperty,Gi=(t,e,s)=>e in t?Ki(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,oe=(t,e,s)=>(Gi(t,typeof e!="symbol"?e+"":e,s),s);class Rn{constructor(e=""){if(oe(this,"protocol"),oe(this,"host"),oe(this,"auth"),oe(this,"pathname"),oe(this,"query",{}),oe(this,"hash"),typeof e!="string")throw new TypeError(`URL input should be string received ${typeof e} (${e})`);const s=Ht(e);this.protocol=$t(s.protocol),this.host=$t(s.host),this.auth=$t(s.auth),this.pathname=Lr(s.pathname),this.query=te(s.search),this.hash=$t(s.hash)}get hostname(){return Sr(this.host).hostname}get port(){return Sr(this.host).port||""}get username(){return Be(this.auth).username}get password(){return Be(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const e=Me(this.query);return e.length>0?"?"+e:""}get searchParams(){const e=new URLSearchParams;for(const s in this.query){const a=this.query[s];if(Array.isArray(a))for(const m of a)e.append(s,m);else e.append(s,typeof a=="string"?a:JSON.stringify(a))}return e}get origin(){return(this.protocol?this.protocol+"//":"")+Oe(this.host)}get fullpath(){return qe(this.pathname)+this.search+De(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:e,password:s}=Be(this.auth);return encodeURIComponent(e)+(s?":"+encodeURIComponent(s):"")}get href(){const e=this.encodedAuth,s=(this.protocol?this.protocol+"//":"")+(e?e+"@":"")+Oe(this.host);return this.hasProtocol&&this.isAbsolute?s+this.fullpath:this.fullpath}append(e){if(e.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,e.query),e.pathname&&(this.pathname=fe(this.pathname)+Nr(e.pathname)),e.hash&&(this.hash=e.hash)}toJSON(){return this.href}toString(){return this.href}}function Yi(t){return new Rn(t)}const Ta=Object.freeze(Object.defineProperty({__proto__:null,$URL:Rn,cleanDoubleSlashes:Fi,createURL:Yi,decode:$t,decodePath:Lr,decodeQueryKey:Mn,decodeQueryValue:xn,encode:ke,encodeHash:De,encodeHost:Oe,encodeParam:Ei,encodePath:qe,encodeQueryItem:En,encodeQueryKey:Re,encodeQueryValue:Ie,getQuery:Li,hasLeadingSlash:Ur,hasProtocol:He,hasTrailingSlash:Le,isEmptyURL:$r,isEqual:Hi,isNonEmptyURL:Pr,isRelative:Ai,isSamePath:qi,isScriptProtocol:_i,joinRelativeURL:Ui,joinURL:Sn,normalizeURL:ki,parseAuth:Be,parseFilename:Vi,parseHost:Sr,parsePath:br,parseQuery:te,parseURL:Ht,resolveURL:Di,stringifyParsedURL:de,stringifyQuery:Me,withBase:Ti,withFragment:ji,withHttp:Ni,withHttps:$i,withLeadingSlash:Er,withProtocol:je,withQuery:Oi,withTrailingSlash:fe,withoutBase:Ii,withoutFragment:zi,withoutHost:Wi,withoutLeadingSlash:Nr,withoutProtocol:Pi,withoutTrailingSlash:we},Symbol.toStringTag,{value:"Module"}));function Xi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bn={exports:{}},wt=Bn.exports={},Wt,Jt;function Cr(){throw new Error("setTimeout has not been defined")}function Rr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Wt=setTimeout:Wt=Cr}catch{Wt=Cr}try{typeof clearTimeout=="function"?Jt=clearTimeout:Jt=Rr}catch{Jt=Rr}})();function An(t){if(Wt===setTimeout)return setTimeout(t,0);if((Wt===Cr||!Wt)&&setTimeout)return Wt=setTimeout,setTimeout(t,0);try{return Wt(t,0)}catch{try{return Wt.call(null,t,0)}catch{return Wt.call(this,t,0)}}}function Qi(t){if(Jt===clearTimeout)return clearTimeout(t);if((Jt===Rr||!Jt)&&clearTimeout)return Jt=clearTimeout,clearTimeout(t);try{return Jt(t)}catch{try{return Jt.call(null,t)}catch{return Jt.call(this,t)}}}var Vt=[],ue=!1,Yt,Ae=-1;function to(){!ue||!Yt||(ue=!1,Yt.length?Vt=Yt.concat(Vt):Ae=-1,Vt.length&&_n())}function _n(){if(!ue){var t=An(to);ue=!0;for(var e=Vt.length;e;){for(Yt=Vt,Vt=[];++Ae<e;)Yt&&Yt[Ae].run();Ae=-1,e=Vt.length}Yt=null,ue=!1,Qi(t)}}wt.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)e[s-1]=arguments[s];Vt.push(new Fn(t,e)),Vt.length===1&&!ue&&An(_n)};function Fn(t,e){this.fun=t,this.array=e}Fn.prototype.run=function(){this.fun.apply(null,this.array)};wt.title="browser";wt.browser=!0;wt.env={};wt.argv=[];wt.version="";wt.versions={};function Kt(){}wt.on=Kt;wt.addListener=Kt;wt.once=Kt;wt.off=Kt;wt.removeListener=Kt;wt.removeAllListeners=Kt;wt.emit=Kt;wt.prependListener=Kt;wt.prependOnceListener=Kt;wt.listeners=function(t){return[]};wt.binding=function(t){throw new Error("process.binding is not supported")};wt.cwd=function(){return"/"};wt.chdir=function(t){throw new Error("process.chdir is not supported")};wt.umask=function(){return 0};var eo=Bn.exports;const Ue=Xi(eo);var Ot={},ze={};ze.byteLength=io;ze.toByteArray=so;ze.fromByteArray=fo;var Zt=[],qt=[],ro=typeof Uint8Array<"u"?Uint8Array:Array,yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var se=0,no=yr.length;se<no;++se)Zt[se]=yr[se],qt[yr.charCodeAt(se)]=se;qt[45]=62;qt[95]=63;function Tn(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.indexOf("=");s===-1&&(s=e);var a=s===e?0:4-s%4;return[s,a]}function io(t){var e=Tn(t),s=e[0],a=e[1];return(s+a)*3/4-a}function oo(t,e,s){return(e+s)*3/4-s}function so(t){var e,s=Tn(t),a=s[0],m=s[1],f=new ro(oo(t,a,m)),M=0,S=m>0?a-4:a,F;for(F=0;F<S;F+=4)e=qt[t.charCodeAt(F)]<<18|qt[t.charCodeAt(F+1)]<<12|qt[t.charCodeAt(F+2)]<<6|qt[t.charCodeAt(F+3)],f[M++]=e>>16&255,f[M++]=e>>8&255,f[M++]=e&255;return m===2&&(e=qt[t.charCodeAt(F)]<<2|qt[t.charCodeAt(F+1)]>>4,f[M++]=e&255),m===1&&(e=qt[t.charCodeAt(F)]<<10|qt[t.charCodeAt(F+1)]<<4|qt[t.charCodeAt(F+2)]>>2,f[M++]=e>>8&255,f[M++]=e&255),f}function ao(t){return Zt[t>>18&63]+Zt[t>>12&63]+Zt[t>>6&63]+Zt[t&63]}function uo(t,e,s){for(var a,m=[],f=e;f<s;f+=3)a=(t[f]<<16&16711680)+(t[f+1]<<8&65280)+(t[f+2]&255),m.push(ao(a));return m.join("")}function fo(t){for(var e,s=t.length,a=s%3,m=[],f=16383,M=0,S=s-a;M<S;M+=f)m.push(uo(t,M,M+f>S?S:M+f));return a===1?(e=t[s-1],m.push(Zt[e>>2]+Zt[e<<4&63]+"==")):a===2&&(e=(t[s-2]<<8)+t[s-1],m.push(Zt[e>>10]+Zt[e>>4&63]+Zt[e<<2&63]+"=")),m.join("")}var kr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */kr.read=function(t,e,s,a,m){var f,M,S=m*8-a-1,F=(1<<S)-1,C=F>>1,y=-7,_=s?m-1:0,O=s?-1:1,P=t[e+_];for(_+=O,f=P&(1<<-y)-1,P>>=-y,y+=S;y>0;f=f*256+t[e+_],_+=O,y-=8);for(M=f&(1<<-y)-1,f>>=-y,y+=a;y>0;M=M*256+t[e+_],_+=O,y-=8);if(f===0)f=1-C;else{if(f===F)return M?NaN:(P?-1:1)*(1/0);M=M+Math.pow(2,a),f=f-C}return(P?-1:1)*M*Math.pow(2,f-a)};kr.write=function(t,e,s,a,m,f){var M,S,F,C=f*8-m-1,y=(1<<C)-1,_=y>>1,O=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=a?0:f-1,I=a?1:-1,$=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(S=isNaN(e)?1:0,M=y):(M=Math.floor(Math.log(e)/Math.LN2),e*(F=Math.pow(2,-M))<1&&(M--,F*=2),M+_>=1?e+=O/F:e+=O*Math.pow(2,1-_),e*F>=2&&(M++,F/=2),M+_>=y?(S=0,M=y):M+_>=1?(S=(e*F-1)*Math.pow(2,m),M=M+_):(S=e*Math.pow(2,_-1)*Math.pow(2,m),M=0));m>=8;t[s+P]=S&255,P+=I,S/=256,m-=8);for(M=M<<m|S,C+=m;C>0;t[s+P]=M&255,P+=I,M/=256,C-=8);t[s+P-I]|=$*128};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */(function(t){const e=ze,s=kr,a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=y,t.SlowBuffer=it,t.INSPECT_MAX_BYTES=50;const m=2147483647;t.kMaxLength=m;const{Uint8Array:f,ArrayBuffer:M,SharedArrayBuffer:S}=globalThis;y.TYPED_ARRAY_SUPPORT=F(),!y.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function F(){try{const h=new f(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,f.prototype),Object.setPrototypeOf(h,n),h.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function C(h){if(h>m)throw new RangeError('The value "'+h+'" is invalid for option "size"');const n=new f(h);return Object.setPrototypeOf(n,y.prototype),n}function y(h,n,o){if(typeof h=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return I(h)}return _(h,n,o)}y.poolSize=8192;function _(h,n,o){if(typeof h=="string")return $(h,n);if(M.isView(h))return Z(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(X(h,M)||h&&X(h.buffer,M)||typeof S<"u"&&(X(h,S)||h&&X(h.buffer,S)))return j(h,n,o);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=h.valueOf&&h.valueOf();if(g!=null&&g!==h)return y.from(g,n,o);const b=Q(h);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return y.from(h[Symbol.toPrimitive]("string"),n,o);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}y.from=function(h,n,o){return _(h,n,o)},Object.setPrototypeOf(y.prototype,f.prototype),Object.setPrototypeOf(y,f);function O(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function P(h,n,o){return O(h),h<=0?C(h):n!==void 0?typeof o=="string"?C(h).fill(n,o):C(h).fill(n):C(h)}y.alloc=function(h,n,o){return P(h,n,o)};function I(h){return O(h),C(h<0?0:Y(h)|0)}y.allocUnsafe=function(h){return I(h)},y.allocUnsafeSlow=function(h){return I(h)};function $(h,n){if((typeof n!="string"||n==="")&&(n="utf8"),!y.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const o=at(h,n)|0;let g=C(o);const b=g.write(h,n);return b!==o&&(g=g.slice(0,b)),g}function N(h){const n=h.length<0?0:Y(h.length)|0,o=C(n);for(let g=0;g<n;g+=1)o[g]=h[g]&255;return o}function Z(h){if(X(h,f)){const n=new f(h);return j(n.buffer,n.byteOffset,n.byteLength)}return N(h)}function j(h,n,o){if(n<0||h.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(h.byteLength<n+(o||0))throw new RangeError('"length" is outside of buffer bounds');let g;return n===void 0&&o===void 0?g=new f(h):o===void 0?g=new f(h,n):g=new f(h,n,o),Object.setPrototypeOf(g,y.prototype),g}function Q(h){if(y.isBuffer(h)){const n=Y(h.length)|0,o=C(n);return o.length===0||h.copy(o,0,0,n),o}if(h.length!==void 0)return typeof h.length!="number"||ie(h.length)?C(0):N(h);if(h.type==="Buffer"&&Array.isArray(h.data))return N(h.data)}function Y(h){if(h>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return h|0}function it(h){return+h!=h&&(h=0),y.alloc(+h)}y.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==y.prototype},y.compare=function(n,o){if(X(n,f)&&(n=y.from(n,n.offset,n.byteLength)),X(o,f)&&(o=y.from(o,o.offset,o.byteLength)),!y.isBuffer(n)||!y.isBuffer(o))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===o)return 0;let g=n.length,b=o.length;for(let R=0,B=Math.min(g,b);R<B;++R)if(n[R]!==o[R]){g=n[R],b=o[R];break}return g<b?-1:b<g?1:0},y.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(n,o){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return y.alloc(0);let g;if(o===void 0)for(o=0,g=0;g<n.length;++g)o+=n[g].length;const b=y.allocUnsafe(o);let R=0;for(g=0;g<n.length;++g){let B=n[g];if(X(B,f))R+B.length>b.length?(y.isBuffer(B)||(B=y.from(B)),B.copy(b,R)):f.prototype.set.call(b,B,R);else if(y.isBuffer(B))B.copy(b,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=B.length}return b};function at(h,n){if(y.isBuffer(h))return h.length;if(M.isView(h)||X(h,M))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const o=h.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&o===0)return 0;let b=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":return ne(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o*2;case"hex":return o>>>1;case"base64":return ge(h).length;default:if(b)return g?-1:ne(h).length;n=(""+n).toLowerCase(),b=!0}}y.byteLength=at;function Ut(h,n,o){let g=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((o===void 0||o>this.length)&&(o=this.length),o<=0)||(o>>>=0,n>>>=0,o<=n))return"";for(h||(h="utf8");;)switch(h){case"hex":return L(this,n,o);case"utf8":case"utf-8":return x(this,n,o);case"ascii":return i(this,n,o);case"latin1":case"binary":return w(this,n,o);case"base64":return d(this,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,n,o);default:if(g)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),g=!0}}y.prototype._isBuffer=!0;function ht(h,n,o){const g=h[n];h[n]=h[o],h[o]=g}y.prototype.swap16=function(){const n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let o=0;o<n;o+=2)ht(this,o,o+1);return this},y.prototype.swap32=function(){const n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let o=0;o<n;o+=4)ht(this,o,o+3),ht(this,o+1,o+2);return this},y.prototype.swap64=function(){const n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let o=0;o<n;o+=8)ht(this,o,o+7),ht(this,o+1,o+6),ht(this,o+2,o+5),ht(this,o+3,o+4);return this},y.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?x(this,0,n):Ut.apply(this,arguments)},y.prototype.toLocaleString=y.prototype.toString,y.prototype.equals=function(n){if(!y.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:y.compare(this,n)===0},y.prototype.inspect=function(){let n="";const o=t.INSPECT_MAX_BYTES;return n=this.toString("hex",0,o).replace(/(.{2})/g,"$1 ").trim(),this.length>o&&(n+=" ... "),"<Buffer "+n+">"},a&&(y.prototype[a]=y.prototype.inspect),y.prototype.compare=function(n,o,g,b,R){if(X(n,f)&&(n=y.from(n,n.offset,n.byteLength)),!y.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(o===void 0&&(o=0),g===void 0&&(g=n?n.length:0),b===void 0&&(b=0),R===void 0&&(R=this.length),o<0||g>n.length||b<0||R>this.length)throw new RangeError("out of range index");if(b>=R&&o>=g)return 0;if(b>=R)return-1;if(o>=g)return 1;if(o>>>=0,g>>>=0,b>>>=0,R>>>=0,this===n)return 0;let B=R-b,D=g-o;const ft=Math.min(B,D),q=this.slice(b,R),H=n.slice(o,g);for(let et=0;et<ft;++et)if(q[et]!==H[et]){B=q[et],D=H[et];break}return B<D?-1:D<B?1:0};function G(h,n,o,g,b){if(h.length===0)return-1;if(typeof o=="string"?(g=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,ie(o)&&(o=b?0:h.length-1),o<0&&(o=h.length+o),o>=h.length){if(b)return-1;o=h.length-1}else if(o<0)if(b)o=0;else return-1;if(typeof n=="string"&&(n=y.from(n,g)),y.isBuffer(n))return n.length===0?-1:rt(h,n,o,g,b);if(typeof n=="number")return n=n&255,typeof f.prototype.indexOf=="function"?b?f.prototype.indexOf.call(h,n,o):f.prototype.lastIndexOf.call(h,n,o):rt(h,[n],o,g,b);throw new TypeError("val must be string, number or Buffer")}function rt(h,n,o,g,b){let R=1,B=h.length,D=n.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(h.length<2||n.length<2)return-1;R=2,B/=2,D/=2,o/=2}function ft(H,et){return R===1?H[et]:H.readUInt16BE(et*R)}let q;if(b){let H=-1;for(q=o;q<B;q++)if(ft(h,q)===ft(n,H===-1?0:q-H)){if(H===-1&&(H=q),q-H+1===D)return H*R}else H!==-1&&(q-=q-H),H=-1}else for(o+D>B&&(o=B-D),q=o;q>=0;q--){let H=!0;for(let et=0;et<D;et++)if(ft(h,q+et)!==ft(n,et)){H=!1;break}if(H)return q}return-1}y.prototype.includes=function(n,o,g){return this.indexOf(n,o,g)!==-1},y.prototype.indexOf=function(n,o,g){return G(this,n,o,g,!0)},y.prototype.lastIndexOf=function(n,o,g){return G(this,n,o,g,!1)};function v(h,n,o,g){o=Number(o)||0;const b=h.length-o;g?(g=Number(g),g>b&&(g=b)):g=b;const R=n.length;g>R/2&&(g=R/2);let B;for(B=0;B<g;++B){const D=parseInt(n.substr(B*2,2),16);if(ie(D))return B;h[o+B]=D}return B}function r(h,n,o,g){return ut(ne(n,h.length-o),h,o,g)}function u(h,n,o,g){return ut(pt(n),h,o,g)}function l(h,n,o,g){return ut(ge(n),h,o,g)}function c(h,n,o,g){return ut(mt(n,h.length-o),h,o,g)}y.prototype.write=function(n,o,g,b){if(o===void 0)b="utf8",g=this.length,o=0;else if(g===void 0&&typeof o=="string")b=o,g=this.length,o=0;else if(isFinite(o))o=o>>>0,isFinite(g)?(g=g>>>0,b===void 0&&(b="utf8")):(b=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const R=this.length-o;if((g===void 0||g>R)&&(g=R),n.length>0&&(g<0||o<0)||o>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let B=!1;for(;;)switch(b){case"hex":return v(this,n,o,g);case"utf8":case"utf-8":return r(this,n,o,g);case"ascii":case"latin1":case"binary":return u(this,n,o,g);case"base64":return l(this,n,o,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c(this,n,o,g);default:if(B)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),B=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d(h,n,o){return n===0&&o===h.length?e.fromByteArray(h):e.fromByteArray(h.slice(n,o))}function x(h,n,o){o=Math.min(h.length,o);const g=[];let b=n;for(;b<o;){const R=h[b];let B=null,D=R>239?4:R>223?3:R>191?2:1;if(b+D<=o){let ft,q,H,et;switch(D){case 1:R<128&&(B=R);break;case 2:ft=h[b+1],(ft&192)===128&&(et=(R&31)<<6|ft&63,et>127&&(B=et));break;case 3:ft=h[b+1],q=h[b+2],(ft&192)===128&&(q&192)===128&&(et=(R&15)<<12|(ft&63)<<6|q&63,et>2047&&(et<55296||et>57343)&&(B=et));break;case 4:ft=h[b+1],q=h[b+2],H=h[b+3],(ft&192)===128&&(q&192)===128&&(H&192)===128&&(et=(R&15)<<18|(ft&63)<<12|(q&63)<<6|H&63,et>65535&&et<1114112&&(B=et))}}B===null?(B=65533,D=1):B>65535&&(B-=65536,g.push(B>>>10&1023|55296),B=56320|B&1023),g.push(B),b+=D}return p(g)}const E=4096;function p(h){const n=h.length;if(n<=E)return String.fromCharCode.apply(String,h);let o="",g=0;for(;g<n;)o+=String.fromCharCode.apply(String,h.slice(g,g+=E));return o}function i(h,n,o){let g="";o=Math.min(h.length,o);for(let b=n;b<o;++b)g+=String.fromCharCode(h[b]&127);return g}function w(h,n,o){let g="";o=Math.min(h.length,o);for(let b=n;b<o;++b)g+=String.fromCharCode(h[b]);return g}function L(h,n,o){const g=h.length;(!n||n<0)&&(n=0),(!o||o<0||o>g)&&(o=g);let b="";for(let R=n;R<o;++R)b+=gt[h[R]];return b}function U(h,n,o){const g=h.slice(n,o);let b="";for(let R=0;R<g.length-1;R+=2)b+=String.fromCharCode(g[R]+g[R+1]*256);return b}y.prototype.slice=function(n,o){const g=this.length;n=~~n,o=o===void 0?g:~~o,n<0?(n+=g,n<0&&(n=0)):n>g&&(n=g),o<0?(o+=g,o<0&&(o=0)):o>g&&(o=g),o<n&&(o=n);const b=this.subarray(n,o);return Object.setPrototypeOf(b,y.prototype),b};function T(h,n,o){if(h%1!==0||h<0)throw new RangeError("offset is not uint");if(h+n>o)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=this[n],R=1,B=0;for(;++B<o&&(R*=256);)b+=this[n+B]*R;return b},y.prototype.readUintBE=y.prototype.readUIntBE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=this[n+--o],R=1;for(;o>0&&(R*=256);)b+=this[n+--o]*R;return b},y.prototype.readUint8=y.prototype.readUInt8=function(n,o){return n=n>>>0,o||T(n,1,this.length),this[n]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(n,o){return n=n>>>0,o||T(n,2,this.length),this[n]|this[n+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(n,o){return n=n>>>0,o||T(n,2,this.length),this[n]<<8|this[n+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(n,o){return n=n>>>0,o||T(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(n,o){return n=n>>>0,o||T(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},y.prototype.readBigUInt64LE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=o+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,R=this[++n]+this[++n]*2**8+this[++n]*2**16+g*2**24;return BigInt(b)+(BigInt(R)<<BigInt(32))}),y.prototype.readBigUInt64BE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=o*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],R=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+g;return(BigInt(b)<<BigInt(32))+BigInt(R)}),y.prototype.readIntLE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=this[n],R=1,B=0;for(;++B<o&&(R*=256);)b+=this[n+B]*R;return R*=128,b>=R&&(b-=Math.pow(2,8*o)),b},y.prototype.readIntBE=function(n,o,g){n=n>>>0,o=o>>>0,g||T(n,o,this.length);let b=o,R=1,B=this[n+--b];for(;b>0&&(R*=256);)B+=this[n+--b]*R;return R*=128,B>=R&&(B-=Math.pow(2,8*o)),B},y.prototype.readInt8=function(n,o){return n=n>>>0,o||T(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},y.prototype.readInt16LE=function(n,o){n=n>>>0,o||T(n,2,this.length);const g=this[n]|this[n+1]<<8;return g&32768?g|4294901760:g},y.prototype.readInt16BE=function(n,o){n=n>>>0,o||T(n,2,this.length);const g=this[n+1]|this[n]<<8;return g&32768?g|4294901760:g},y.prototype.readInt32LE=function(n,o){return n=n>>>0,o||T(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},y.prototype.readInt32BE=function(n,o){return n=n>>>0,o||T(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},y.prototype.readBigInt64LE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(g<<24);return(BigInt(b)<<BigInt(32))+BigInt(o+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),y.prototype.readBigInt64BE=nt(function(n){n=n>>>0,st(n,"offset");const o=this[n],g=this[n+7];(o===void 0||g===void 0)&&Gt(n,this.length-8);const b=(o<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(b)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+g)}),y.prototype.readFloatLE=function(n,o){return n=n>>>0,o||T(n,4,this.length),s.read(this,n,!0,23,4)},y.prototype.readFloatBE=function(n,o){return n=n>>>0,o||T(n,4,this.length),s.read(this,n,!1,23,4)},y.prototype.readDoubleLE=function(n,o){return n=n>>>0,o||T(n,8,this.length),s.read(this,n,!0,52,8)},y.prototype.readDoubleBE=function(n,o){return n=n>>>0,o||T(n,8,this.length),s.read(this,n,!1,52,8)};function k(h,n,o,g,b,R){if(!y.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>b||n<R)throw new RangeError('"value" argument is out of bounds');if(o+g>h.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(n,o,g,b){if(n=+n,o=o>>>0,g=g>>>0,!b){const D=Math.pow(2,8*g)-1;k(this,n,o,g,D,0)}let R=1,B=0;for(this[o]=n&255;++B<g&&(R*=256);)this[o+B]=n/R&255;return o+g},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(n,o,g,b){if(n=+n,o=o>>>0,g=g>>>0,!b){const D=Math.pow(2,8*g)-1;k(this,n,o,g,D,0)}let R=g-1,B=1;for(this[o+R]=n&255;--R>=0&&(B*=256);)this[o+R]=n/B&255;return o+g},y.prototype.writeUint8=y.prototype.writeUInt8=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,1,255,0),this[o]=n&255,o+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,65535,0),this[o]=n&255,this[o+1]=n>>>8,o+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,65535,0),this[o]=n>>>8,this[o+1]=n&255,o+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,4294967295,0),this[o+3]=n>>>24,this[o+2]=n>>>16,this[o+1]=n>>>8,this[o]=n&255,o+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,4294967295,0),this[o]=n>>>24,this[o+1]=n>>>16,this[o+2]=n>>>8,this[o+3]=n&255,o+4};function J(h,n,o,g,b){lt(n,g,b,h,o,7);let R=Number(n&BigInt(4294967295));h[o++]=R,R=R>>8,h[o++]=R,R=R>>8,h[o++]=R,R=R>>8,h[o++]=R;let B=Number(n>>BigInt(32)&BigInt(4294967295));return h[o++]=B,B=B>>8,h[o++]=B,B=B>>8,h[o++]=B,B=B>>8,h[o++]=B,o}function V(h,n,o,g,b){lt(n,g,b,h,o,7);let R=Number(n&BigInt(4294967295));h[o+7]=R,R=R>>8,h[o+6]=R,R=R>>8,h[o+5]=R,R=R>>8,h[o+4]=R;let B=Number(n>>BigInt(32)&BigInt(4294967295));return h[o+3]=B,B=B>>8,h[o+2]=B,B=B>>8,h[o+1]=B,B=B>>8,h[o]=B,o+8}y.prototype.writeBigUInt64LE=nt(function(n,o=0){return J(this,n,o,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=nt(function(n,o=0){return V(this,n,o,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(n,o,g,b){if(n=+n,o=o>>>0,!b){const ft=Math.pow(2,8*g-1);k(this,n,o,g,ft-1,-ft)}let R=0,B=1,D=0;for(this[o]=n&255;++R<g&&(B*=256);)n<0&&D===0&&this[o+R-1]!==0&&(D=1),this[o+R]=(n/B>>0)-D&255;return o+g},y.prototype.writeIntBE=function(n,o,g,b){if(n=+n,o=o>>>0,!b){const ft=Math.pow(2,8*g-1);k(this,n,o,g,ft-1,-ft)}let R=g-1,B=1,D=0;for(this[o+R]=n&255;--R>=0&&(B*=256);)n<0&&D===0&&this[o+R+1]!==0&&(D=1),this[o+R]=(n/B>>0)-D&255;return o+g},y.prototype.writeInt8=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,1,127,-128),n<0&&(n=255+n+1),this[o]=n&255,o+1},y.prototype.writeInt16LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,32767,-32768),this[o]=n&255,this[o+1]=n>>>8,o+2},y.prototype.writeInt16BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,2,32767,-32768),this[o]=n>>>8,this[o+1]=n&255,o+2},y.prototype.writeInt32LE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,2147483647,-2147483648),this[o]=n&255,this[o+1]=n>>>8,this[o+2]=n>>>16,this[o+3]=n>>>24,o+4},y.prototype.writeInt32BE=function(n,o,g){return n=+n,o=o>>>0,g||k(this,n,o,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[o]=n>>>24,this[o+1]=n>>>16,this[o+2]=n>>>8,this[o+3]=n&255,o+4},y.prototype.writeBigInt64LE=nt(function(n,o=0){return J(this,n,o,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=nt(function(n,o=0){return V(this,n,o,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Nt(h,n,o,g,b,R){if(o+g>h.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function K(h,n,o,g,b){return n=+n,o=o>>>0,b||Nt(h,n,o,4),s.write(h,n,o,g,23,4),o+4}y.prototype.writeFloatLE=function(n,o,g){return K(this,n,o,!0,g)},y.prototype.writeFloatBE=function(n,o,g){return K(this,n,o,!1,g)};function z(h,n,o,g,b){return n=+n,o=o>>>0,b||Nt(h,n,o,8),s.write(h,n,o,g,52,8),o+8}y.prototype.writeDoubleLE=function(n,o,g){return z(this,n,o,!0,g)},y.prototype.writeDoubleBE=function(n,o,g){return z(this,n,o,!1,g)},y.prototype.copy=function(n,o,g,b){if(!y.isBuffer(n))throw new TypeError("argument should be a Buffer");if(g||(g=0),!b&&b!==0&&(b=this.length),o>=n.length&&(o=n.length),o||(o=0),b>0&&b<g&&(b=g),b===g||n.length===0||this.length===0)return 0;if(o<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),n.length-o<b-g&&(b=n.length-o+g);const R=b-g;return this===n&&typeof f.prototype.copyWithin=="function"?this.copyWithin(o,g,b):f.prototype.set.call(n,this.subarray(g,b),o),R},y.prototype.fill=function(n,o,g,b){if(typeof n=="string"){if(typeof o=="string"?(b=o,o=0,g=this.length):typeof g=="string"&&(b=g,g=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!y.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(n.length===1){const B=n.charCodeAt(0);(b==="utf8"&&B<128||b==="latin1")&&(n=B)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(o<0||this.length<o||this.length<g)throw new RangeError("Out of range index");if(g<=o)return this;o=o>>>0,g=g===void 0?this.length:g>>>0,n||(n=0);let R;if(typeof n=="number")for(R=o;R<g;++R)this[R]=n;else{const B=y.isBuffer(n)?n:y.from(n,b),D=B.length;if(D===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(R=0;R<g-o;++R)this[R+o]=B[R%D]}return this};const Lt={};function tt(h,n,o){Lt[h]=class extends o{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${h}]`,this.stack,delete this.name}get code(){return h}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${h}]: ${this.message}`}}}tt("ERR_BUFFER_OUT_OF_BOUNDS",function(h){return h?`${h} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),tt("ERR_INVALID_ARG_TYPE",function(h,n){return`The "${h}" argument must be of type number. Received type ${typeof n}`},TypeError),tt("ERR_OUT_OF_RANGE",function(h,n,o){let g=`The value of "${h}" is out of range.`,b=o;return Number.isInteger(o)&&Math.abs(o)>2**32?b=ot(String(o)):typeof o=="bigint"&&(b=String(o),(o>BigInt(2)**BigInt(32)||o<-(BigInt(2)**BigInt(32)))&&(b=ot(b)),b+="n"),g+=` It must be ${n}. Received ${b}`,g},RangeError);function ot(h){let n="",o=h.length;const g=h[0]==="-"?1:0;for(;o>=g+4;o-=3)n=`_${h.slice(o-3,o)}${n}`;return`${h.slice(0,o)}${n}`}function be(h,n,o){st(n,"offset"),(h[n]===void 0||h[n+o]===void 0)&&Gt(n,h.length-(o+1))}function lt(h,n,o,g,b,R){if(h>o||h<n){const B=typeof n=="bigint"?"n":"";let D;throw n===0||n===BigInt(0)?D=`>= 0${B} and < 2${B} ** ${(R+1)*8}${B}`:D=`>= -(2${B} ** ${(R+1)*8-1}${B}) and < 2 ** ${(R+1)*8-1}${B}`,new Lt.ERR_OUT_OF_RANGE("value",D,h)}be(g,b,R)}function st(h,n){if(typeof h!="number")throw new Lt.ERR_INVALID_ARG_TYPE(n,"number",h)}function Gt(h,n,o){throw Math.floor(h)!==h?(st(h,o),new Lt.ERR_OUT_OF_RANGE("offset","an integer",h)):n<0?new Lt.ERR_BUFFER_OUT_OF_BOUNDS:new Lt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${n}`,h)}const ct=/[^+/0-9A-Za-z-_]/g;function dt(h){if(h=h.split("=")[0],h=h.trim().replace(ct,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function ne(h,n){n=n||1/0;let o;const g=h.length;let b=null;const R=[];for(let B=0;B<g;++B){if(o=h.charCodeAt(B),o>55295&&o<57344){if(!b){if(o>56319){(n-=3)>-1&&R.push(239,191,189);continue}else if(B+1===g){(n-=3)>-1&&R.push(239,191,189);continue}b=o;continue}if(o<56320){(n-=3)>-1&&R.push(239,191,189),b=o;continue}o=(b-55296<<10|o-56320)+65536}else b&&(n-=3)>-1&&R.push(239,191,189);if(b=null,o<128){if((n-=1)<0)break;R.push(o)}else if(o<2048){if((n-=2)<0)break;R.push(o>>6|192,o&63|128)}else if(o<65536){if((n-=3)<0)break;R.push(o>>12|224,o>>6&63|128,o&63|128)}else if(o<1114112){if((n-=4)<0)break;R.push(o>>18|240,o>>12&63|128,o>>6&63|128,o&63|128)}else throw new Error("Invalid code point")}return R}function pt(h){const n=[];for(let o=0;o<h.length;++o)n.push(h.charCodeAt(o)&255);return n}function mt(h,n){let o,g,b;const R=[];for(let B=0;B<h.length&&!((n-=2)<0);++B)o=h.charCodeAt(B),g=o>>8,b=o%256,R.push(b),R.push(g);return R}function ge(h){return e.toByteArray(dt(h))}function ut(h,n,o,g){let b;for(b=0;b<g&&!(b+o>=n.length||b>=h.length);++b)n[b+o]=h[b];return b}function X(h,n){return h instanceof n||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===n.name}function ie(h){return h!==h}const gt=function(){const h="0123456789abcdef",n=new Array(256);for(let o=0;o<16;++o){const g=o*16;for(let b=0;b<16;++b)n[g+b]=h[o]+h[b]}return n}();function nt(h){return typeof BigInt>"u"?Se:h}function Se(){throw new Error("BigInt not supported")}})(Ot);const In=Ot.Buffer,ho=Ot.Blob,lo=Ot.BlobOptions,co=Ot.Buffer,po=Ot.File,mo=Ot.FileOptions,go=Ot.INSPECT_MAX_BYTES,yo=Ot.SlowBuffer,wo=Ot.TranscodeEncoding,vo=Ot.atob,Mo=Ot.btoa,xo=Ot.constants,Eo=Ot.isAscii,bo=Ot.isUtf8,So=Ot.kMaxLength,Co=Ot.kStringMaxLength,Ro=Ot.resolveObjectURL,Bo=Ot.transcode,Ao=Object.freeze(Object.defineProperty({__proto__:null,Blob:ho,BlobOptions:lo,Buffer:co,File:po,FileOptions:mo,INSPECT_MAX_BYTES:go,SlowBuffer:yo,TranscodeEncoding:wo,atob:vo,btoa:Mo,constants:xo,default:In,isAscii:Eo,isUtf8:bo,kMaxLength:So,kStringMaxLength:Co,resolveObjectURL:Ro,transcode:Bo},Symbol.toStringTag,{value:"Module"})),_o=oi(Ao);var Dr={exports:{}};Dr.exports;(function(t){(function(e,s){function a(v,r){if(!v)throw new Error(r||"Assertion failed")}function m(v,r){v.super_=r;var u=function(){};u.prototype=r.prototype,v.prototype=new u,v.prototype.constructor=v}function f(v,r,u){if(f.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,v!==null&&((r==="le"||r==="be")&&(u=r,r=10),this._init(v||0,r||10,u||"be"))}typeof e=="object"?e.exports=f:s.BN=f,f.BN=f,f.wordSize=26;var M;try{typeof window<"u"&&typeof window.Buffer<"u"?M=window.Buffer:M=_o.Buffer}catch{}f.isBN=function(r){return r instanceof f?!0:r!==null&&typeof r=="object"&&r.constructor.wordSize===f.wordSize&&Array.isArray(r.words)},f.max=function(r,u){return r.cmp(u)>0?r:u},f.min=function(r,u){return r.cmp(u)<0?r:u},f.prototype._init=function(r,u,l){if(typeof r=="number")return this._initNumber(r,u,l);if(typeof r=="object")return this._initArray(r,u,l);u==="hex"&&(u=16),a(u===(u|0)&&u>=2&&u<=36),r=r.toString().replace(/\s+/g,"");var c=0;r[0]==="-"&&(c++,this.negative=1),c<r.length&&(u===16?this._parseHex(r,c,l):(this._parseBase(r,u,c),l==="le"&&this._initArray(this.toArray(),u,l)))},f.prototype._initNumber=function(r,u,l){r<0&&(this.negative=1,r=-r),r<67108864?(this.words=[r&67108863],this.length=1):r<4503599627370496?(this.words=[r&67108863,r/67108864&67108863],this.length=2):(a(r<9007199254740992),this.words=[r&67108863,r/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),u,l)},f.prototype._initArray=function(r,u,l){if(a(typeof r.length=="number"),r.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(r.length/3),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d,x,E=0;if(l==="be")for(c=r.length-1,d=0;c>=0;c-=3)x=r[c]|r[c-1]<<8|r[c-2]<<16,this.words[d]|=x<<E&67108863,this.words[d+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,d++);else if(l==="le")for(c=0,d=0;c<r.length;c+=3)x=r[c]|r[c+1]<<8|r[c+2]<<16,this.words[d]|=x<<E&67108863,this.words[d+1]=x>>>26-E&67108863,E+=24,E>=26&&(E-=26,d++);return this.strip()};function S(v,r){var u=v.charCodeAt(r);return u>=65&&u<=70?u-55:u>=97&&u<=102?u-87:u-48&15}function F(v,r,u){var l=S(v,u);return u-1>=r&&(l|=S(v,u-1)<<4),l}f.prototype._parseHex=function(r,u,l){this.length=Math.ceil((r.length-u)/6),this.words=new Array(this.length);for(var c=0;c<this.length;c++)this.words[c]=0;var d=0,x=0,E;if(l==="be")for(c=r.length-1;c>=u;c-=2)E=F(r,u,c)<<d,this.words[x]|=E&67108863,d>=18?(d-=18,x+=1,this.words[x]|=E>>>26):d+=8;else{var p=r.length-u;for(c=p%2===0?u+1:u;c<r.length;c+=2)E=F(r,u,c)<<d,this.words[x]|=E&67108863,d>=18?(d-=18,x+=1,this.words[x]|=E>>>26):d+=8}this.strip()};function C(v,r,u,l){for(var c=0,d=Math.min(v.length,u),x=r;x<d;x++){var E=v.charCodeAt(x)-48;c*=l,E>=49?c+=E-49+10:E>=17?c+=E-17+10:c+=E}return c}f.prototype._parseBase=function(r,u,l){this.words=[0],this.length=1;for(var c=0,d=1;d<=67108863;d*=u)c++;c--,d=d/u|0;for(var x=r.length-l,E=x%c,p=Math.min(x,x-E)+l,i=0,w=l;w<p;w+=c)i=C(r,w,w+c,u),this.imuln(d),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i);if(E!==0){var L=1;for(i=C(r,w,r.length,u),w=0;w<E;w++)L*=u;this.imuln(L),this.words[0]+i<67108864?this.words[0]+=i:this._iaddn(i)}this.strip()},f.prototype.copy=function(r){r.words=new Array(this.length);for(var u=0;u<this.length;u++)r.words[u]=this.words[u];r.length=this.length,r.negative=this.negative,r.red=this.red},f.prototype.clone=function(){var r=new f(null);return this.copy(r),r},f.prototype._expand=function(r){for(;this.length<r;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var y=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],O=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(r,u){r=r||10,u=u|0||1;var l;if(r===16||r==="hex"){l="";for(var c=0,d=0,x=0;x<this.length;x++){var E=this.words[x],p=((E<<c|d)&16777215).toString(16);d=E>>>24-c&16777215,d!==0||x!==this.length-1?l=y[6-p.length]+p+l:l=p+l,c+=2,c>=26&&(c-=26,x--)}for(d!==0&&(l=d.toString(16)+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(r===(r|0)&&r>=2&&r<=36){var i=_[r],w=O[r];l="";var L=this.clone();for(L.negative=0;!L.isZero();){var U=L.modn(w).toString(r);L=L.idivn(w),L.isZero()?l=U+l:l=y[i-U.length]+U+l}for(this.isZero()&&(l="0"+l);l.length%u!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}a(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var r=this.words[0];return this.length===2?r+=this.words[1]*67108864:this.length===3&&this.words[2]===1?r+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-r:r},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(r,u){return a(typeof M<"u"),this.toArrayLike(M,r,u)},f.prototype.toArray=function(r,u){return this.toArrayLike(Array,r,u)},f.prototype.toArrayLike=function(r,u,l){var c=this.byteLength(),d=l||Math.max(1,c);a(c<=d,"byte array longer than desired length"),a(d>0,"Requested array length <= 0"),this.strip();var x=u==="le",E=new r(d),p,i,w=this.clone();if(x){for(i=0;!w.isZero();i++)p=w.andln(255),w.iushrn(8),E[i]=p;for(;i<d;i++)E[i]=0}else{for(i=0;i<d-c;i++)E[i]=0;for(i=0;!w.isZero();i++)p=w.andln(255),w.iushrn(8),E[d-i-1]=p}return E},Math.clz32?f.prototype._countBits=function(r){return 32-Math.clz32(r)}:f.prototype._countBits=function(r){var u=r,l=0;return u>=4096&&(l+=13,u>>>=13),u>=64&&(l+=7,u>>>=7),u>=8&&(l+=4,u>>>=4),u>=2&&(l+=2,u>>>=2),l+u},f.prototype._zeroBits=function(r){if(r===0)return 26;var u=r,l=0;return u&8191||(l+=13,u>>>=13),u&127||(l+=7,u>>>=7),u&15||(l+=4,u>>>=4),u&3||(l+=2,u>>>=2),u&1||l++,l},f.prototype.bitLength=function(){var r=this.words[this.length-1],u=this._countBits(r);return(this.length-1)*26+u};function P(v){for(var r=new Array(v.bitLength()),u=0;u<r.length;u++){var l=u/26|0,c=u%26;r[u]=(v.words[l]&1<<c)>>>c}return r}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var r=0,u=0;u<this.length;u++){var l=this._zeroBits(this.words[u]);if(r+=l,l!==26)break}return r},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(r){return this.negative!==0?this.abs().inotn(r).iaddn(1):this.clone()},f.prototype.fromTwos=function(r){return this.testn(r-1)?this.notn(r).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return this.negative!==0},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(r){for(;this.length<r.length;)this.words[this.length++]=0;for(var u=0;u<r.length;u++)this.words[u]=this.words[u]|r.words[u];return this.strip()},f.prototype.ior=function(r){return a((this.negative|r.negative)===0),this.iuor(r)},f.prototype.or=function(r){return this.length>r.length?this.clone().ior(r):r.clone().ior(this)},f.prototype.uor=function(r){return this.length>r.length?this.clone().iuor(r):r.clone().iuor(this)},f.prototype.iuand=function(r){var u;this.length>r.length?u=r:u=this;for(var l=0;l<u.length;l++)this.words[l]=this.words[l]&r.words[l];return this.length=u.length,this.strip()},f.prototype.iand=function(r){return a((this.negative|r.negative)===0),this.iuand(r)},f.prototype.and=function(r){return this.length>r.length?this.clone().iand(r):r.clone().iand(this)},f.prototype.uand=function(r){return this.length>r.length?this.clone().iuand(r):r.clone().iuand(this)},f.prototype.iuxor=function(r){var u,l;this.length>r.length?(u=this,l=r):(u=r,l=this);for(var c=0;c<l.length;c++)this.words[c]=u.words[c]^l.words[c];if(this!==u)for(;c<u.length;c++)this.words[c]=u.words[c];return this.length=u.length,this.strip()},f.prototype.ixor=function(r){return a((this.negative|r.negative)===0),this.iuxor(r)},f.prototype.xor=function(r){return this.length>r.length?this.clone().ixor(r):r.clone().ixor(this)},f.prototype.uxor=function(r){return this.length>r.length?this.clone().iuxor(r):r.clone().iuxor(this)},f.prototype.inotn=function(r){a(typeof r=="number"&&r>=0);var u=Math.ceil(r/26)|0,l=r%26;this._expand(u),l>0&&u--;for(var c=0;c<u;c++)this.words[c]=~this.words[c]&67108863;return l>0&&(this.words[c]=~this.words[c]&67108863>>26-l),this.strip()},f.prototype.notn=function(r){return this.clone().inotn(r)},f.prototype.setn=function(r,u){a(typeof r=="number"&&r>=0);var l=r/26|0,c=r%26;return this._expand(l+1),u?this.words[l]=this.words[l]|1<<c:this.words[l]=this.words[l]&~(1<<c),this.strip()},f.prototype.iadd=function(r){var u;if(this.negative!==0&&r.negative===0)return this.negative=0,u=this.isub(r),this.negative^=1,this._normSign();if(this.negative===0&&r.negative!==0)return r.negative=0,u=this.isub(r),r.negative=1,u._normSign();var l,c;this.length>r.length?(l=this,c=r):(l=r,c=this);for(var d=0,x=0;x<c.length;x++)u=(l.words[x]|0)+(c.words[x]|0)+d,this.words[x]=u&67108863,d=u>>>26;for(;d!==0&&x<l.length;x++)u=(l.words[x]|0)+d,this.words[x]=u&67108863,d=u>>>26;if(this.length=l.length,d!==0)this.words[this.length]=d,this.length++;else if(l!==this)for(;x<l.length;x++)this.words[x]=l.words[x];return this},f.prototype.add=function(r){var u;return r.negative!==0&&this.negative===0?(r.negative=0,u=this.sub(r),r.negative^=1,u):r.negative===0&&this.negative!==0?(this.negative=0,u=r.sub(this),this.negative=1,u):this.length>r.length?this.clone().iadd(r):r.clone().iadd(this)},f.prototype.isub=function(r){if(r.negative!==0){r.negative=0;var u=this.iadd(r);return r.negative=1,u._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(r),this.negative=1,this._normSign();var l=this.cmp(r);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var c,d;l>0?(c=this,d=r):(c=r,d=this);for(var x=0,E=0;E<d.length;E++)u=(c.words[E]|0)-(d.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;for(;x!==0&&E<c.length;E++)u=(c.words[E]|0)+x,x=u>>26,this.words[E]=u&67108863;if(x===0&&E<c.length&&c!==this)for(;E<c.length;E++)this.words[E]=c.words[E];return this.length=Math.max(this.length,E),c!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(r){return this.clone().isub(r)};function I(v,r,u){u.negative=r.negative^v.negative;var l=v.length+r.length|0;u.length=l,l=l-1|0;var c=v.words[0]|0,d=r.words[0]|0,x=c*d,E=x&67108863,p=x/67108864|0;u.words[0]=E;for(var i=1;i<l;i++){for(var w=p>>>26,L=p&67108863,U=Math.min(i,r.length-1),T=Math.max(0,i-v.length+1);T<=U;T++){var k=i-T|0;c=v.words[k]|0,d=r.words[T]|0,x=c*d+L,w+=x/67108864|0,L=x&67108863}u.words[i]=L|0,p=w|0}return p!==0?u.words[i]=p|0:u.length--,u.strip()}var $=function(r,u,l){var c=r.words,d=u.words,x=l.words,E=0,p,i,w,L=c[0]|0,U=L&8191,T=L>>>13,k=c[1]|0,J=k&8191,V=k>>>13,Nt=c[2]|0,K=Nt&8191,z=Nt>>>13,Lt=c[3]|0,tt=Lt&8191,ot=Lt>>>13,be=c[4]|0,lt=be&8191,st=be>>>13,Gt=c[5]|0,ct=Gt&8191,dt=Gt>>>13,ne=c[6]|0,pt=ne&8191,mt=ne>>>13,ge=c[7]|0,ut=ge&8191,X=ge>>>13,ie=c[8]|0,gt=ie&8191,nt=ie>>>13,Se=c[9]|0,h=Se&8191,n=Se>>>13,o=d[0]|0,g=o&8191,b=o>>>13,R=d[1]|0,B=R&8191,D=R>>>13,ft=d[2]|0,q=ft&8191,H=ft>>>13,et=d[3]|0,vt=et&8191,Mt=et>>>13,zr=d[4]|0,xt=zr&8191,Et=zr>>>13,Wr=d[5]|0,bt=Wr&8191,St=Wr>>>13,Jr=d[6]|0,Ct=Jr&8191,Rt=Jr>>>13,Zr=d[7]|0,Bt=Zr&8191,At=Zr>>>13,Vr=d[8]|0,_t=Vr&8191,Ft=Vr>>>13,Kr=d[9]|0,Tt=Kr&8191,It=Kr>>>13;l.negative=r.negative^u.negative,l.length=19,p=Math.imul(U,g),i=Math.imul(U,b),i=i+Math.imul(T,g)|0,w=Math.imul(T,b);var Ye=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,p=Math.imul(J,g),i=Math.imul(J,b),i=i+Math.imul(V,g)|0,w=Math.imul(V,b),p=p+Math.imul(U,B)|0,i=i+Math.imul(U,D)|0,i=i+Math.imul(T,B)|0,w=w+Math.imul(T,D)|0;var Xe=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,p=Math.imul(K,g),i=Math.imul(K,b),i=i+Math.imul(z,g)|0,w=Math.imul(z,b),p=p+Math.imul(J,B)|0,i=i+Math.imul(J,D)|0,i=i+Math.imul(V,B)|0,w=w+Math.imul(V,D)|0,p=p+Math.imul(U,q)|0,i=i+Math.imul(U,H)|0,i=i+Math.imul(T,q)|0,w=w+Math.imul(T,H)|0;var Qe=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,p=Math.imul(tt,g),i=Math.imul(tt,b),i=i+Math.imul(ot,g)|0,w=Math.imul(ot,b),p=p+Math.imul(K,B)|0,i=i+Math.imul(K,D)|0,i=i+Math.imul(z,B)|0,w=w+Math.imul(z,D)|0,p=p+Math.imul(J,q)|0,i=i+Math.imul(J,H)|0,i=i+Math.imul(V,q)|0,w=w+Math.imul(V,H)|0,p=p+Math.imul(U,vt)|0,i=i+Math.imul(U,Mt)|0,i=i+Math.imul(T,vt)|0,w=w+Math.imul(T,Mt)|0;var tr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(tr>>>26)|0,tr&=67108863,p=Math.imul(lt,g),i=Math.imul(lt,b),i=i+Math.imul(st,g)|0,w=Math.imul(st,b),p=p+Math.imul(tt,B)|0,i=i+Math.imul(tt,D)|0,i=i+Math.imul(ot,B)|0,w=w+Math.imul(ot,D)|0,p=p+Math.imul(K,q)|0,i=i+Math.imul(K,H)|0,i=i+Math.imul(z,q)|0,w=w+Math.imul(z,H)|0,p=p+Math.imul(J,vt)|0,i=i+Math.imul(J,Mt)|0,i=i+Math.imul(V,vt)|0,w=w+Math.imul(V,Mt)|0,p=p+Math.imul(U,xt)|0,i=i+Math.imul(U,Et)|0,i=i+Math.imul(T,xt)|0,w=w+Math.imul(T,Et)|0;var er=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(er>>>26)|0,er&=67108863,p=Math.imul(ct,g),i=Math.imul(ct,b),i=i+Math.imul(dt,g)|0,w=Math.imul(dt,b),p=p+Math.imul(lt,B)|0,i=i+Math.imul(lt,D)|0,i=i+Math.imul(st,B)|0,w=w+Math.imul(st,D)|0,p=p+Math.imul(tt,q)|0,i=i+Math.imul(tt,H)|0,i=i+Math.imul(ot,q)|0,w=w+Math.imul(ot,H)|0,p=p+Math.imul(K,vt)|0,i=i+Math.imul(K,Mt)|0,i=i+Math.imul(z,vt)|0,w=w+Math.imul(z,Mt)|0,p=p+Math.imul(J,xt)|0,i=i+Math.imul(J,Et)|0,i=i+Math.imul(V,xt)|0,w=w+Math.imul(V,Et)|0,p=p+Math.imul(U,bt)|0,i=i+Math.imul(U,St)|0,i=i+Math.imul(T,bt)|0,w=w+Math.imul(T,St)|0;var rr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(rr>>>26)|0,rr&=67108863,p=Math.imul(pt,g),i=Math.imul(pt,b),i=i+Math.imul(mt,g)|0,w=Math.imul(mt,b),p=p+Math.imul(ct,B)|0,i=i+Math.imul(ct,D)|0,i=i+Math.imul(dt,B)|0,w=w+Math.imul(dt,D)|0,p=p+Math.imul(lt,q)|0,i=i+Math.imul(lt,H)|0,i=i+Math.imul(st,q)|0,w=w+Math.imul(st,H)|0,p=p+Math.imul(tt,vt)|0,i=i+Math.imul(tt,Mt)|0,i=i+Math.imul(ot,vt)|0,w=w+Math.imul(ot,Mt)|0,p=p+Math.imul(K,xt)|0,i=i+Math.imul(K,Et)|0,i=i+Math.imul(z,xt)|0,w=w+Math.imul(z,Et)|0,p=p+Math.imul(J,bt)|0,i=i+Math.imul(J,St)|0,i=i+Math.imul(V,bt)|0,w=w+Math.imul(V,St)|0,p=p+Math.imul(U,Ct)|0,i=i+Math.imul(U,Rt)|0,i=i+Math.imul(T,Ct)|0,w=w+Math.imul(T,Rt)|0;var nr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(nr>>>26)|0,nr&=67108863,p=Math.imul(ut,g),i=Math.imul(ut,b),i=i+Math.imul(X,g)|0,w=Math.imul(X,b),p=p+Math.imul(pt,B)|0,i=i+Math.imul(pt,D)|0,i=i+Math.imul(mt,B)|0,w=w+Math.imul(mt,D)|0,p=p+Math.imul(ct,q)|0,i=i+Math.imul(ct,H)|0,i=i+Math.imul(dt,q)|0,w=w+Math.imul(dt,H)|0,p=p+Math.imul(lt,vt)|0,i=i+Math.imul(lt,Mt)|0,i=i+Math.imul(st,vt)|0,w=w+Math.imul(st,Mt)|0,p=p+Math.imul(tt,xt)|0,i=i+Math.imul(tt,Et)|0,i=i+Math.imul(ot,xt)|0,w=w+Math.imul(ot,Et)|0,p=p+Math.imul(K,bt)|0,i=i+Math.imul(K,St)|0,i=i+Math.imul(z,bt)|0,w=w+Math.imul(z,St)|0,p=p+Math.imul(J,Ct)|0,i=i+Math.imul(J,Rt)|0,i=i+Math.imul(V,Ct)|0,w=w+Math.imul(V,Rt)|0,p=p+Math.imul(U,Bt)|0,i=i+Math.imul(U,At)|0,i=i+Math.imul(T,Bt)|0,w=w+Math.imul(T,At)|0;var ir=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(ir>>>26)|0,ir&=67108863,p=Math.imul(gt,g),i=Math.imul(gt,b),i=i+Math.imul(nt,g)|0,w=Math.imul(nt,b),p=p+Math.imul(ut,B)|0,i=i+Math.imul(ut,D)|0,i=i+Math.imul(X,B)|0,w=w+Math.imul(X,D)|0,p=p+Math.imul(pt,q)|0,i=i+Math.imul(pt,H)|0,i=i+Math.imul(mt,q)|0,w=w+Math.imul(mt,H)|0,p=p+Math.imul(ct,vt)|0,i=i+Math.imul(ct,Mt)|0,i=i+Math.imul(dt,vt)|0,w=w+Math.imul(dt,Mt)|0,p=p+Math.imul(lt,xt)|0,i=i+Math.imul(lt,Et)|0,i=i+Math.imul(st,xt)|0,w=w+Math.imul(st,Et)|0,p=p+Math.imul(tt,bt)|0,i=i+Math.imul(tt,St)|0,i=i+Math.imul(ot,bt)|0,w=w+Math.imul(ot,St)|0,p=p+Math.imul(K,Ct)|0,i=i+Math.imul(K,Rt)|0,i=i+Math.imul(z,Ct)|0,w=w+Math.imul(z,Rt)|0,p=p+Math.imul(J,Bt)|0,i=i+Math.imul(J,At)|0,i=i+Math.imul(V,Bt)|0,w=w+Math.imul(V,At)|0,p=p+Math.imul(U,_t)|0,i=i+Math.imul(U,Ft)|0,i=i+Math.imul(T,_t)|0,w=w+Math.imul(T,Ft)|0;var or=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(or>>>26)|0,or&=67108863,p=Math.imul(h,g),i=Math.imul(h,b),i=i+Math.imul(n,g)|0,w=Math.imul(n,b),p=p+Math.imul(gt,B)|0,i=i+Math.imul(gt,D)|0,i=i+Math.imul(nt,B)|0,w=w+Math.imul(nt,D)|0,p=p+Math.imul(ut,q)|0,i=i+Math.imul(ut,H)|0,i=i+Math.imul(X,q)|0,w=w+Math.imul(X,H)|0,p=p+Math.imul(pt,vt)|0,i=i+Math.imul(pt,Mt)|0,i=i+Math.imul(mt,vt)|0,w=w+Math.imul(mt,Mt)|0,p=p+Math.imul(ct,xt)|0,i=i+Math.imul(ct,Et)|0,i=i+Math.imul(dt,xt)|0,w=w+Math.imul(dt,Et)|0,p=p+Math.imul(lt,bt)|0,i=i+Math.imul(lt,St)|0,i=i+Math.imul(st,bt)|0,w=w+Math.imul(st,St)|0,p=p+Math.imul(tt,Ct)|0,i=i+Math.imul(tt,Rt)|0,i=i+Math.imul(ot,Ct)|0,w=w+Math.imul(ot,Rt)|0,p=p+Math.imul(K,Bt)|0,i=i+Math.imul(K,At)|0,i=i+Math.imul(z,Bt)|0,w=w+Math.imul(z,At)|0,p=p+Math.imul(J,_t)|0,i=i+Math.imul(J,Ft)|0,i=i+Math.imul(V,_t)|0,w=w+Math.imul(V,Ft)|0,p=p+Math.imul(U,Tt)|0,i=i+Math.imul(U,It)|0,i=i+Math.imul(T,Tt)|0,w=w+Math.imul(T,It)|0;var sr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(sr>>>26)|0,sr&=67108863,p=Math.imul(h,B),i=Math.imul(h,D),i=i+Math.imul(n,B)|0,w=Math.imul(n,D),p=p+Math.imul(gt,q)|0,i=i+Math.imul(gt,H)|0,i=i+Math.imul(nt,q)|0,w=w+Math.imul(nt,H)|0,p=p+Math.imul(ut,vt)|0,i=i+Math.imul(ut,Mt)|0,i=i+Math.imul(X,vt)|0,w=w+Math.imul(X,Mt)|0,p=p+Math.imul(pt,xt)|0,i=i+Math.imul(pt,Et)|0,i=i+Math.imul(mt,xt)|0,w=w+Math.imul(mt,Et)|0,p=p+Math.imul(ct,bt)|0,i=i+Math.imul(ct,St)|0,i=i+Math.imul(dt,bt)|0,w=w+Math.imul(dt,St)|0,p=p+Math.imul(lt,Ct)|0,i=i+Math.imul(lt,Rt)|0,i=i+Math.imul(st,Ct)|0,w=w+Math.imul(st,Rt)|0,p=p+Math.imul(tt,Bt)|0,i=i+Math.imul(tt,At)|0,i=i+Math.imul(ot,Bt)|0,w=w+Math.imul(ot,At)|0,p=p+Math.imul(K,_t)|0,i=i+Math.imul(K,Ft)|0,i=i+Math.imul(z,_t)|0,w=w+Math.imul(z,Ft)|0,p=p+Math.imul(J,Tt)|0,i=i+Math.imul(J,It)|0,i=i+Math.imul(V,Tt)|0,w=w+Math.imul(V,It)|0;var ar=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(ar>>>26)|0,ar&=67108863,p=Math.imul(h,q),i=Math.imul(h,H),i=i+Math.imul(n,q)|0,w=Math.imul(n,H),p=p+Math.imul(gt,vt)|0,i=i+Math.imul(gt,Mt)|0,i=i+Math.imul(nt,vt)|0,w=w+Math.imul(nt,Mt)|0,p=p+Math.imul(ut,xt)|0,i=i+Math.imul(ut,Et)|0,i=i+Math.imul(X,xt)|0,w=w+Math.imul(X,Et)|0,p=p+Math.imul(pt,bt)|0,i=i+Math.imul(pt,St)|0,i=i+Math.imul(mt,bt)|0,w=w+Math.imul(mt,St)|0,p=p+Math.imul(ct,Ct)|0,i=i+Math.imul(ct,Rt)|0,i=i+Math.imul(dt,Ct)|0,w=w+Math.imul(dt,Rt)|0,p=p+Math.imul(lt,Bt)|0,i=i+Math.imul(lt,At)|0,i=i+Math.imul(st,Bt)|0,w=w+Math.imul(st,At)|0,p=p+Math.imul(tt,_t)|0,i=i+Math.imul(tt,Ft)|0,i=i+Math.imul(ot,_t)|0,w=w+Math.imul(ot,Ft)|0,p=p+Math.imul(K,Tt)|0,i=i+Math.imul(K,It)|0,i=i+Math.imul(z,Tt)|0,w=w+Math.imul(z,It)|0;var ur=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(ur>>>26)|0,ur&=67108863,p=Math.imul(h,vt),i=Math.imul(h,Mt),i=i+Math.imul(n,vt)|0,w=Math.imul(n,Mt),p=p+Math.imul(gt,xt)|0,i=i+Math.imul(gt,Et)|0,i=i+Math.imul(nt,xt)|0,w=w+Math.imul(nt,Et)|0,p=p+Math.imul(ut,bt)|0,i=i+Math.imul(ut,St)|0,i=i+Math.imul(X,bt)|0,w=w+Math.imul(X,St)|0,p=p+Math.imul(pt,Ct)|0,i=i+Math.imul(pt,Rt)|0,i=i+Math.imul(mt,Ct)|0,w=w+Math.imul(mt,Rt)|0,p=p+Math.imul(ct,Bt)|0,i=i+Math.imul(ct,At)|0,i=i+Math.imul(dt,Bt)|0,w=w+Math.imul(dt,At)|0,p=p+Math.imul(lt,_t)|0,i=i+Math.imul(lt,Ft)|0,i=i+Math.imul(st,_t)|0,w=w+Math.imul(st,Ft)|0,p=p+Math.imul(tt,Tt)|0,i=i+Math.imul(tt,It)|0,i=i+Math.imul(ot,Tt)|0,w=w+Math.imul(ot,It)|0;var fr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(fr>>>26)|0,fr&=67108863,p=Math.imul(h,xt),i=Math.imul(h,Et),i=i+Math.imul(n,xt)|0,w=Math.imul(n,Et),p=p+Math.imul(gt,bt)|0,i=i+Math.imul(gt,St)|0,i=i+Math.imul(nt,bt)|0,w=w+Math.imul(nt,St)|0,p=p+Math.imul(ut,Ct)|0,i=i+Math.imul(ut,Rt)|0,i=i+Math.imul(X,Ct)|0,w=w+Math.imul(X,Rt)|0,p=p+Math.imul(pt,Bt)|0,i=i+Math.imul(pt,At)|0,i=i+Math.imul(mt,Bt)|0,w=w+Math.imul(mt,At)|0,p=p+Math.imul(ct,_t)|0,i=i+Math.imul(ct,Ft)|0,i=i+Math.imul(dt,_t)|0,w=w+Math.imul(dt,Ft)|0,p=p+Math.imul(lt,Tt)|0,i=i+Math.imul(lt,It)|0,i=i+Math.imul(st,Tt)|0,w=w+Math.imul(st,It)|0;var hr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(hr>>>26)|0,hr&=67108863,p=Math.imul(h,bt),i=Math.imul(h,St),i=i+Math.imul(n,bt)|0,w=Math.imul(n,St),p=p+Math.imul(gt,Ct)|0,i=i+Math.imul(gt,Rt)|0,i=i+Math.imul(nt,Ct)|0,w=w+Math.imul(nt,Rt)|0,p=p+Math.imul(ut,Bt)|0,i=i+Math.imul(ut,At)|0,i=i+Math.imul(X,Bt)|0,w=w+Math.imul(X,At)|0,p=p+Math.imul(pt,_t)|0,i=i+Math.imul(pt,Ft)|0,i=i+Math.imul(mt,_t)|0,w=w+Math.imul(mt,Ft)|0,p=p+Math.imul(ct,Tt)|0,i=i+Math.imul(ct,It)|0,i=i+Math.imul(dt,Tt)|0,w=w+Math.imul(dt,It)|0;var lr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(lr>>>26)|0,lr&=67108863,p=Math.imul(h,Ct),i=Math.imul(h,Rt),i=i+Math.imul(n,Ct)|0,w=Math.imul(n,Rt),p=p+Math.imul(gt,Bt)|0,i=i+Math.imul(gt,At)|0,i=i+Math.imul(nt,Bt)|0,w=w+Math.imul(nt,At)|0,p=p+Math.imul(ut,_t)|0,i=i+Math.imul(ut,Ft)|0,i=i+Math.imul(X,_t)|0,w=w+Math.imul(X,Ft)|0,p=p+Math.imul(pt,Tt)|0,i=i+Math.imul(pt,It)|0,i=i+Math.imul(mt,Tt)|0,w=w+Math.imul(mt,It)|0;var cr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(cr>>>26)|0,cr&=67108863,p=Math.imul(h,Bt),i=Math.imul(h,At),i=i+Math.imul(n,Bt)|0,w=Math.imul(n,At),p=p+Math.imul(gt,_t)|0,i=i+Math.imul(gt,Ft)|0,i=i+Math.imul(nt,_t)|0,w=w+Math.imul(nt,Ft)|0,p=p+Math.imul(ut,Tt)|0,i=i+Math.imul(ut,It)|0,i=i+Math.imul(X,Tt)|0,w=w+Math.imul(X,It)|0;var dr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(dr>>>26)|0,dr&=67108863,p=Math.imul(h,_t),i=Math.imul(h,Ft),i=i+Math.imul(n,_t)|0,w=Math.imul(n,Ft),p=p+Math.imul(gt,Tt)|0,i=i+Math.imul(gt,It)|0,i=i+Math.imul(nt,Tt)|0,w=w+Math.imul(nt,It)|0;var pr=(E+p|0)+((i&8191)<<13)|0;E=(w+(i>>>13)|0)+(pr>>>26)|0,pr&=67108863,p=Math.imul(h,Tt),i=Math.imul(h,It),i=i+Math.imul(n,Tt)|0,w=Math.imul(n,It);var mr=(E+p|0)+((i&8191)<<13)|0;return E=(w+(i>>>13)|0)+(mr>>>26)|0,mr&=67108863,x[0]=Ye,x[1]=Xe,x[2]=Qe,x[3]=tr,x[4]=er,x[5]=rr,x[6]=nr,x[7]=ir,x[8]=or,x[9]=sr,x[10]=ar,x[11]=ur,x[12]=fr,x[13]=hr,x[14]=lr,x[15]=cr,x[16]=dr,x[17]=pr,x[18]=mr,E!==0&&(x[19]=E,l.length++),l};Math.imul||($=I);function N(v,r,u){u.negative=r.negative^v.negative,u.length=v.length+r.length;for(var l=0,c=0,d=0;d<u.length-1;d++){var x=c;c=0;for(var E=l&67108863,p=Math.min(d,r.length-1),i=Math.max(0,d-v.length+1);i<=p;i++){var w=d-i,L=v.words[w]|0,U=r.words[i]|0,T=L*U,k=T&67108863;x=x+(T/67108864|0)|0,k=k+E|0,E=k&67108863,x=x+(k>>>26)|0,c+=x>>>26,x&=67108863}u.words[d]=E,l=x,x=c}return l!==0?u.words[d]=l:u.length--,u.strip()}function Z(v,r,u){var l=new j;return l.mulp(v,r,u)}f.prototype.mulTo=function(r,u){var l,c=this.length+r.length;return this.length===10&&r.length===10?l=$(this,r,u):c<63?l=I(this,r,u):c<1024?l=N(this,r,u):l=Z(this,r,u),l};function j(v,r){this.x=v,this.y=r}j.prototype.makeRBT=function(r){for(var u=new Array(r),l=f.prototype._countBits(r)-1,c=0;c<r;c++)u[c]=this.revBin(c,l,r);return u},j.prototype.revBin=function(r,u,l){if(r===0||r===l-1)return r;for(var c=0,d=0;d<u;d++)c|=(r&1)<<u-d-1,r>>=1;return c},j.prototype.permute=function(r,u,l,c,d,x){for(var E=0;E<x;E++)c[E]=u[r[E]],d[E]=l[r[E]]},j.prototype.transform=function(r,u,l,c,d,x){this.permute(x,r,u,l,c,d);for(var E=1;E<d;E<<=1)for(var p=E<<1,i=Math.cos(2*Math.PI/p),w=Math.sin(2*Math.PI/p),L=0;L<d;L+=p)for(var U=i,T=w,k=0;k<E;k++){var J=l[L+k],V=c[L+k],Nt=l[L+k+E],K=c[L+k+E],z=U*Nt-T*K;K=U*K+T*Nt,Nt=z,l[L+k]=J+Nt,c[L+k]=V+K,l[L+k+E]=J-Nt,c[L+k+E]=V-K,k!==p&&(z=i*U-w*T,T=i*T+w*U,U=z)}},j.prototype.guessLen13b=function(r,u){var l=Math.max(u,r)|1,c=l&1,d=0;for(l=l/2|0;l;l=l>>>1)d++;return 1<<d+1+c},j.prototype.conjugate=function(r,u,l){if(!(l<=1))for(var c=0;c<l/2;c++){var d=r[c];r[c]=r[l-c-1],r[l-c-1]=d,d=u[c],u[c]=-u[l-c-1],u[l-c-1]=-d}},j.prototype.normalize13b=function(r,u){for(var l=0,c=0;c<u/2;c++){var d=Math.round(r[2*c+1]/u)*8192+Math.round(r[2*c]/u)+l;r[c]=d&67108863,d<67108864?l=0:l=d/67108864|0}return r},j.prototype.convert13b=function(r,u,l,c){for(var d=0,x=0;x<u;x++)d=d+(r[x]|0),l[2*x]=d&8191,d=d>>>13,l[2*x+1]=d&8191,d=d>>>13;for(x=2*u;x<c;++x)l[x]=0;a(d===0),a((d&-8192)===0)},j.prototype.stub=function(r){for(var u=new Array(r),l=0;l<r;l++)u[l]=0;return u},j.prototype.mulp=function(r,u,l){var c=2*this.guessLen13b(r.length,u.length),d=this.makeRBT(c),x=this.stub(c),E=new Array(c),p=new Array(c),i=new Array(c),w=new Array(c),L=new Array(c),U=new Array(c),T=l.words;T.length=c,this.convert13b(r.words,r.length,E,c),this.convert13b(u.words,u.length,w,c),this.transform(E,x,p,i,c,d),this.transform(w,x,L,U,c,d);for(var k=0;k<c;k++){var J=p[k]*L[k]-i[k]*U[k];i[k]=p[k]*U[k]+i[k]*L[k],p[k]=J}return this.conjugate(p,i,c),this.transform(p,i,T,x,c,d),this.conjugate(T,x,c),this.normalize13b(T,c),l.negative=r.negative^u.negative,l.length=r.length+u.length,l.strip()},f.prototype.mul=function(r){var u=new f(null);return u.words=new Array(this.length+r.length),this.mulTo(r,u)},f.prototype.mulf=function(r){var u=new f(null);return u.words=new Array(this.length+r.length),Z(this,r,u)},f.prototype.imul=function(r){return this.clone().mulTo(r,this)},f.prototype.imuln=function(r){a(typeof r=="number"),a(r<67108864);for(var u=0,l=0;l<this.length;l++){var c=(this.words[l]|0)*r,d=(c&67108863)+(u&67108863);u>>=26,u+=c/67108864|0,u+=d>>>26,this.words[l]=d&67108863}return u!==0&&(this.words[l]=u,this.length++),this},f.prototype.muln=function(r){return this.clone().imuln(r)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(r){var u=P(r);if(u.length===0)return new f(1);for(var l=this,c=0;c<u.length&&u[c]===0;c++,l=l.sqr());if(++c<u.length)for(var d=l.sqr();c<u.length;c++,d=d.sqr())u[c]!==0&&(l=l.mul(d));return l},f.prototype.iushln=function(r){a(typeof r=="number"&&r>=0);var u=r%26,l=(r-u)/26,c=67108863>>>26-u<<26-u,d;if(u!==0){var x=0;for(d=0;d<this.length;d++){var E=this.words[d]&c,p=(this.words[d]|0)-E<<u;this.words[d]=p|x,x=E>>>26-u}x&&(this.words[d]=x,this.length++)}if(l!==0){for(d=this.length-1;d>=0;d--)this.words[d+l]=this.words[d];for(d=0;d<l;d++)this.words[d]=0;this.length+=l}return this.strip()},f.prototype.ishln=function(r){return a(this.negative===0),this.iushln(r)},f.prototype.iushrn=function(r,u,l){a(typeof r=="number"&&r>=0);var c;u?c=(u-u%26)/26:c=0;var d=r%26,x=Math.min((r-d)/26,this.length),E=67108863^67108863>>>d<<d,p=l;if(c-=x,c=Math.max(0,c),p){for(var i=0;i<x;i++)p.words[i]=this.words[i];p.length=x}if(x!==0)if(this.length>x)for(this.length-=x,i=0;i<this.length;i++)this.words[i]=this.words[i+x];else this.words[0]=0,this.length=1;var w=0;for(i=this.length-1;i>=0&&(w!==0||i>=c);i--){var L=this.words[i]|0;this.words[i]=w<<26-d|L>>>d,w=L&E}return p&&w!==0&&(p.words[p.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(r,u,l){return a(this.negative===0),this.iushrn(r,u,l)},f.prototype.shln=function(r){return this.clone().ishln(r)},f.prototype.ushln=function(r){return this.clone().iushln(r)},f.prototype.shrn=function(r){return this.clone().ishrn(r)},f.prototype.ushrn=function(r){return this.clone().iushrn(r)},f.prototype.testn=function(r){a(typeof r=="number"&&r>=0);var u=r%26,l=(r-u)/26,c=1<<u;if(this.length<=l)return!1;var d=this.words[l];return!!(d&c)},f.prototype.imaskn=function(r){a(typeof r=="number"&&r>=0);var u=r%26,l=(r-u)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(u!==0&&l++,this.length=Math.min(l,this.length),u!==0){var c=67108863^67108863>>>u<<u;this.words[this.length-1]&=c}return this.strip()},f.prototype.maskn=function(r){return this.clone().imaskn(r)},f.prototype.iaddn=function(r){return a(typeof r=="number"),a(r<67108864),r<0?this.isubn(-r):this.negative!==0?this.length===1&&(this.words[0]|0)<r?(this.words[0]=r-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(r),this.negative=1,this):this._iaddn(r)},f.prototype._iaddn=function(r){this.words[0]+=r;for(var u=0;u<this.length&&this.words[u]>=67108864;u++)this.words[u]-=67108864,u===this.length-1?this.words[u+1]=1:this.words[u+1]++;return this.length=Math.max(this.length,u+1),this},f.prototype.isubn=function(r){if(a(typeof r=="number"),a(r<67108864),r<0)return this.iaddn(-r);if(this.negative!==0)return this.negative=0,this.iaddn(r),this.negative=1,this;if(this.words[0]-=r,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var u=0;u<this.length&&this.words[u]<0;u++)this.words[u]+=67108864,this.words[u+1]-=1;return this.strip()},f.prototype.addn=function(r){return this.clone().iaddn(r)},f.prototype.subn=function(r){return this.clone().isubn(r)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(r,u,l){var c=r.length+l,d;this._expand(c);var x,E=0;for(d=0;d<r.length;d++){x=(this.words[d+l]|0)+E;var p=(r.words[d]|0)*u;x-=p&67108863,E=(x>>26)-(p/67108864|0),this.words[d+l]=x&67108863}for(;d<this.length-l;d++)x=(this.words[d+l]|0)+E,E=x>>26,this.words[d+l]=x&67108863;if(E===0)return this.strip();for(a(E===-1),E=0,d=0;d<this.length;d++)x=-(this.words[d]|0)+E,E=x>>26,this.words[d]=x&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(r,u){var l=this.length-r.length,c=this.clone(),d=r,x=d.words[d.length-1]|0,E=this._countBits(x);l=26-E,l!==0&&(d=d.ushln(l),c.iushln(l),x=d.words[d.length-1]|0);var p=c.length-d.length,i;if(u!=="mod"){i=new f(null),i.length=p+1,i.words=new Array(i.length);for(var w=0;w<i.length;w++)i.words[w]=0}var L=c.clone()._ishlnsubmul(d,1,p);L.negative===0&&(c=L,i&&(i.words[p]=1));for(var U=p-1;U>=0;U--){var T=(c.words[d.length+U]|0)*67108864+(c.words[d.length+U-1]|0);for(T=Math.min(T/x|0,67108863),c._ishlnsubmul(d,T,U);c.negative!==0;)T--,c.negative=0,c._ishlnsubmul(d,1,U),c.isZero()||(c.negative^=1);i&&(i.words[U]=T)}return i&&i.strip(),c.strip(),u!=="div"&&l!==0&&c.iushrn(l),{div:i||null,mod:c}},f.prototype.divmod=function(r,u,l){if(a(!r.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var c,d,x;return this.negative!==0&&r.negative===0?(x=this.neg().divmod(r,u),u!=="mod"&&(c=x.div.neg()),u!=="div"&&(d=x.mod.neg(),l&&d.negative!==0&&d.iadd(r)),{div:c,mod:d}):this.negative===0&&r.negative!==0?(x=this.divmod(r.neg(),u),u!=="mod"&&(c=x.div.neg()),{div:c,mod:x.mod}):this.negative&r.negative?(x=this.neg().divmod(r.neg(),u),u!=="div"&&(d=x.mod.neg(),l&&d.negative!==0&&d.isub(r)),{div:x.div,mod:d}):r.length>this.length||this.cmp(r)<0?{div:new f(0),mod:this}:r.length===1?u==="div"?{div:this.divn(r.words[0]),mod:null}:u==="mod"?{div:null,mod:new f(this.modn(r.words[0]))}:{div:this.divn(r.words[0]),mod:new f(this.modn(r.words[0]))}:this._wordDiv(r,u)},f.prototype.div=function(r){return this.divmod(r,"div",!1).div},f.prototype.mod=function(r){return this.divmod(r,"mod",!1).mod},f.prototype.umod=function(r){return this.divmod(r,"mod",!0).mod},f.prototype.divRound=function(r){var u=this.divmod(r);if(u.mod.isZero())return u.div;var l=u.div.negative!==0?u.mod.isub(r):u.mod,c=r.ushrn(1),d=r.andln(1),x=l.cmp(c);return x<0||d===1&&x===0?u.div:u.div.negative!==0?u.div.isubn(1):u.div.iaddn(1)},f.prototype.modn=function(r){a(r<=67108863);for(var u=(1<<26)%r,l=0,c=this.length-1;c>=0;c--)l=(u*l+(this.words[c]|0))%r;return l},f.prototype.idivn=function(r){a(r<=67108863);for(var u=0,l=this.length-1;l>=0;l--){var c=(this.words[l]|0)+u*67108864;this.words[l]=c/r|0,u=c%r}return this.strip()},f.prototype.divn=function(r){return this.clone().idivn(r)},f.prototype.egcd=function(r){a(r.negative===0),a(!r.isZero());var u=this,l=r.clone();u.negative!==0?u=u.umod(r):u=u.clone();for(var c=new f(1),d=new f(0),x=new f(0),E=new f(1),p=0;u.isEven()&&l.isEven();)u.iushrn(1),l.iushrn(1),++p;for(var i=l.clone(),w=u.clone();!u.isZero();){for(var L=0,U=1;!(u.words[0]&U)&&L<26;++L,U<<=1);if(L>0)for(u.iushrn(L);L-- >0;)(c.isOdd()||d.isOdd())&&(c.iadd(i),d.isub(w)),c.iushrn(1),d.iushrn(1);for(var T=0,k=1;!(l.words[0]&k)&&T<26;++T,k<<=1);if(T>0)for(l.iushrn(T);T-- >0;)(x.isOdd()||E.isOdd())&&(x.iadd(i),E.isub(w)),x.iushrn(1),E.iushrn(1);u.cmp(l)>=0?(u.isub(l),c.isub(x),d.isub(E)):(l.isub(u),x.isub(c),E.isub(d))}return{a:x,b:E,gcd:l.iushln(p)}},f.prototype._invmp=function(r){a(r.negative===0),a(!r.isZero());var u=this,l=r.clone();u.negative!==0?u=u.umod(r):u=u.clone();for(var c=new f(1),d=new f(0),x=l.clone();u.cmpn(1)>0&&l.cmpn(1)>0;){for(var E=0,p=1;!(u.words[0]&p)&&E<26;++E,p<<=1);if(E>0)for(u.iushrn(E);E-- >0;)c.isOdd()&&c.iadd(x),c.iushrn(1);for(var i=0,w=1;!(l.words[0]&w)&&i<26;++i,w<<=1);if(i>0)for(l.iushrn(i);i-- >0;)d.isOdd()&&d.iadd(x),d.iushrn(1);u.cmp(l)>=0?(u.isub(l),c.isub(d)):(l.isub(u),d.isub(c))}var L;return u.cmpn(1)===0?L=c:L=d,L.cmpn(0)<0&&L.iadd(r),L},f.prototype.gcd=function(r){if(this.isZero())return r.abs();if(r.isZero())return this.abs();var u=this.clone(),l=r.clone();u.negative=0,l.negative=0;for(var c=0;u.isEven()&&l.isEven();c++)u.iushrn(1),l.iushrn(1);do{for(;u.isEven();)u.iushrn(1);for(;l.isEven();)l.iushrn(1);var d=u.cmp(l);if(d<0){var x=u;u=l,l=x}else if(d===0||l.cmpn(1)===0)break;u.isub(l)}while(!0);return l.iushln(c)},f.prototype.invm=function(r){return this.egcd(r).a.umod(r)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(r){return this.words[0]&r},f.prototype.bincn=function(r){a(typeof r=="number");var u=r%26,l=(r-u)/26,c=1<<u;if(this.length<=l)return this._expand(l+1),this.words[l]|=c,this;for(var d=c,x=l;d!==0&&x<this.length;x++){var E=this.words[x]|0;E+=d,d=E>>>26,E&=67108863,this.words[x]=E}return d!==0&&(this.words[x]=d,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(r){var u=r<0;if(this.negative!==0&&!u)return-1;if(this.negative===0&&u)return 1;this.strip();var l;if(this.length>1)l=1;else{u&&(r=-r),a(r<=67108863,"Number is too big");var c=this.words[0]|0;l=c===r?0:c<r?-1:1}return this.negative!==0?-l|0:l},f.prototype.cmp=function(r){if(this.negative!==0&&r.negative===0)return-1;if(this.negative===0&&r.negative!==0)return 1;var u=this.ucmp(r);return this.negative!==0?-u|0:u},f.prototype.ucmp=function(r){if(this.length>r.length)return 1;if(this.length<r.length)return-1;for(var u=0,l=this.length-1;l>=0;l--){var c=this.words[l]|0,d=r.words[l]|0;if(c!==d){c<d?u=-1:c>d&&(u=1);break}}return u},f.prototype.gtn=function(r){return this.cmpn(r)===1},f.prototype.gt=function(r){return this.cmp(r)===1},f.prototype.gten=function(r){return this.cmpn(r)>=0},f.prototype.gte=function(r){return this.cmp(r)>=0},f.prototype.ltn=function(r){return this.cmpn(r)===-1},f.prototype.lt=function(r){return this.cmp(r)===-1},f.prototype.lten=function(r){return this.cmpn(r)<=0},f.prototype.lte=function(r){return this.cmp(r)<=0},f.prototype.eqn=function(r){return this.cmpn(r)===0},f.prototype.eq=function(r){return this.cmp(r)===0},f.red=function(r){return new G(r)},f.prototype.toRed=function(r){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),r.convertTo(this)._forceRed(r)},f.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(r){return this.red=r,this},f.prototype.forceRed=function(r){return a(!this.red,"Already a number in reduction context"),this._forceRed(r)},f.prototype.redAdd=function(r){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,r)},f.prototype.redIAdd=function(r){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,r)},f.prototype.redSub=function(r){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,r)},f.prototype.redISub=function(r){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,r)},f.prototype.redShl=function(r){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,r)},f.prototype.redMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.mul(this,r)},f.prototype.redIMul=function(r){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,r),this.red.imul(this,r)},f.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(r){return a(this.red&&!r.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,r)};var Q={k256:null,p224:null,p192:null,p25519:null};function Y(v,r){this.name=v,this.p=new f(r,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Y.prototype._tmp=function(){var r=new f(null);return r.words=new Array(Math.ceil(this.n/13)),r},Y.prototype.ireduce=function(r){var u=r,l;do this.split(u,this.tmp),u=this.imulK(u),u=u.iadd(this.tmp),l=u.bitLength();while(l>this.n);var c=l<this.n?-1:u.ucmp(this.p);return c===0?(u.words[0]=0,u.length=1):c>0?u.isub(this.p):u.strip!==void 0?u.strip():u._strip(),u},Y.prototype.split=function(r,u){r.iushrn(this.n,0,u)},Y.prototype.imulK=function(r){return r.imul(this.k)};function it(){Y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}m(it,Y),it.prototype.split=function(r,u){for(var l=4194303,c=Math.min(r.length,9),d=0;d<c;d++)u.words[d]=r.words[d];if(u.length=c,r.length<=9){r.words[0]=0,r.length=1;return}var x=r.words[9];for(u.words[u.length++]=x&l,d=10;d<r.length;d++){var E=r.words[d]|0;r.words[d-10]=(E&l)<<4|x>>>22,x=E}x>>>=22,r.words[d-10]=x,x===0&&r.length>10?r.length-=10:r.length-=9},it.prototype.imulK=function(r){r.words[r.length]=0,r.words[r.length+1]=0,r.length+=2;for(var u=0,l=0;l<r.length;l++){var c=r.words[l]|0;u+=c*977,r.words[l]=u&67108863,u=c*64+(u/67108864|0)}return r.words[r.length-1]===0&&(r.length--,r.words[r.length-1]===0&&r.length--),r};function at(){Y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}m(at,Y);function Ut(){Y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}m(Ut,Y);function ht(){Y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}m(ht,Y),ht.prototype.imulK=function(r){for(var u=0,l=0;l<r.length;l++){var c=(r.words[l]|0)*19+u,d=c&67108863;c>>>=26,r.words[l]=d,u=c}return u!==0&&(r.words[r.length++]=u),r},f._prime=function(r){if(Q[r])return Q[r];var u;if(r==="k256")u=new it;else if(r==="p224")u=new at;else if(r==="p192")u=new Ut;else if(r==="p25519")u=new ht;else throw new Error("Unknown prime "+r);return Q[r]=u,u};function G(v){if(typeof v=="string"){var r=f._prime(v);this.m=r.p,this.prime=r}else a(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}G.prototype._verify1=function(r){a(r.negative===0,"red works only with positives"),a(r.red,"red works only with red numbers")},G.prototype._verify2=function(r,u){a((r.negative|u.negative)===0,"red works only with positives"),a(r.red&&r.red===u.red,"red works only with red numbers")},G.prototype.imod=function(r){return this.prime?this.prime.ireduce(r)._forceRed(this):r.umod(this.m)._forceRed(this)},G.prototype.neg=function(r){return r.isZero()?r.clone():this.m.sub(r)._forceRed(this)},G.prototype.add=function(r,u){this._verify2(r,u);var l=r.add(u);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},G.prototype.iadd=function(r,u){this._verify2(r,u);var l=r.iadd(u);return l.cmp(this.m)>=0&&l.isub(this.m),l},G.prototype.sub=function(r,u){this._verify2(r,u);var l=r.sub(u);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},G.prototype.isub=function(r,u){this._verify2(r,u);var l=r.isub(u);return l.cmpn(0)<0&&l.iadd(this.m),l},G.prototype.shl=function(r,u){return this._verify1(r),this.imod(r.ushln(u))},G.prototype.imul=function(r,u){return this._verify2(r,u),this.imod(r.imul(u))},G.prototype.mul=function(r,u){return this._verify2(r,u),this.imod(r.mul(u))},G.prototype.isqr=function(r){return this.imul(r,r.clone())},G.prototype.sqr=function(r){return this.mul(r,r)},G.prototype.sqrt=function(r){if(r.isZero())return r.clone();var u=this.m.andln(3);if(a(u%2===1),u===3){var l=this.m.add(new f(1)).iushrn(2);return this.pow(r,l)}for(var c=this.m.subn(1),d=0;!c.isZero()&&c.andln(1)===0;)d++,c.iushrn(1);a(!c.isZero());var x=new f(1).toRed(this),E=x.redNeg(),p=this.m.subn(1).iushrn(1),i=this.m.bitLength();for(i=new f(2*i*i).toRed(this);this.pow(i,p).cmp(E)!==0;)i.redIAdd(E);for(var w=this.pow(i,c),L=this.pow(r,c.addn(1).iushrn(1)),U=this.pow(r,c),T=d;U.cmp(x)!==0;){for(var k=U,J=0;k.cmp(x)!==0;J++)k=k.redSqr();a(J<T);var V=this.pow(w,new f(1).iushln(T-J-1));L=L.redMul(V),w=V.redSqr(),U=U.redMul(w),T=J}return L},G.prototype.invm=function(r){var u=r._invmp(this.m);return u.negative!==0?(u.negative=0,this.imod(u).redNeg()):this.imod(u)},G.prototype.pow=function(r,u){if(u.isZero())return new f(1).toRed(this);if(u.cmpn(1)===0)return r.clone();var l=4,c=new Array(1<<l);c[0]=new f(1).toRed(this),c[1]=r;for(var d=2;d<c.length;d++)c[d]=this.mul(c[d-1],r);var x=c[0],E=0,p=0,i=u.bitLength()%26;for(i===0&&(i=26),d=u.length-1;d>=0;d--){for(var w=u.words[d],L=i-1;L>=0;L--){var U=w>>L&1;if(x!==c[0]&&(x=this.sqr(x)),U===0&&E===0){p=0;continue}E<<=1,E|=U,p++,!(p!==l&&(d!==0||L!==0))&&(x=this.mul(x,c[E]),p=0,E=0)}i=26}return x},G.prototype.convertTo=function(r){var u=r.umod(this.m);return u===r?u.clone():u},G.prototype.convertFrom=function(r){var u=r.clone();return u.red=null,u},f.mont=function(r){return new rt(r)};function rt(v){G.call(this,v),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m(rt,G),rt.prototype.convertTo=function(r){return this.imod(r.ushln(this.shift))},rt.prototype.convertFrom=function(r){var u=this.imod(r.mul(this.rinv));return u.red=null,u},rt.prototype.imul=function(r,u){if(r.isZero()||u.isZero())return r.words[0]=0,r.length=1,r;var l=r.imul(u),c=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=l.isub(c).iushrn(this.shift),x=d;return d.cmp(this.m)>=0?x=d.isub(this.m):d.cmpn(0)<0&&(x=d.iadd(this.m)),x._forceRed(this)},rt.prototype.mul=function(r,u){if(r.isZero()||u.isZero())return new f(0)._forceRed(this);var l=r.mul(u),c=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),d=l.isub(c).iushrn(this.shift),x=d;return d.cmp(this.m)>=0?x=d.isub(this.m):d.cmpn(0)<0&&(x=d.iadd(this.m)),x._forceRed(this)},rt.prototype.invm=function(r){var u=this.imod(r._invmp(this.m).mul(this.r2));return u._forceRed(this)}})(t,dn)})(Dr);var Oa=Dr.exports;function On(t,e){return function(){return t.apply(e,arguments)}}const{toString:Fo}=Object.prototype,{getPrototypeOf:qr}=Object,We=(t=>e=>{const s=Fo.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),jt=t=>(t=t.toLowerCase(),e=>We(e)===t),Je=t=>e=>typeof e===t,{isArray:pe}=Array,ve=Je("undefined");function To(t){return t!==null&&!ve(t)&&t.constructor!==null&&!ve(t.constructor)&&Dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ln=jt("ArrayBuffer");function Io(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ln(t.buffer),e}const Oo=Je("string"),Dt=Je("function"),Un=Je("number"),Ze=t=>t!==null&&typeof t=="object",Lo=t=>t===!0||t===!1,_e=t=>{if(We(t)!=="object")return!1;const e=qr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Uo=jt("Date"),No=jt("File"),$o=jt("Blob"),Po=jt("FileList"),ko=t=>Ze(t)&&Dt(t.pipe),Do=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Dt(t.append)&&((e=We(t))==="formdata"||e==="object"&&Dt(t.toString)&&t.toString()==="[object FormData]"))},qo=jt("URLSearchParams"),[Ho,jo,zo,Wo]=["ReadableStream","Request","Response","Headers"].map(jt),Jo=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xe(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let a,m;if(typeof t!="object"&&(t=[t]),pe(t))for(a=0,m=t.length;a<m;a++)e.call(null,t[a],a,t);else{const f=s?Object.getOwnPropertyNames(t):Object.keys(t),M=f.length;let S;for(a=0;a<M;a++)S=f[a],e.call(null,t[S],S,t)}}function Nn(t,e){e=e.toLowerCase();const s=Object.keys(t);let a=s.length,m;for(;a-- >0;)if(m=s[a],e===m.toLowerCase())return m;return null}const Xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ai,$n=t=>!ve(t)&&t!==Xt;function Br(){const{caseless:t}=$n(this)&&this||{},e={},s=(a,m)=>{const f=t&&Nn(e,m)||m;_e(e[f])&&_e(a)?e[f]=Br(e[f],a):_e(a)?e[f]=Br({},a):pe(a)?e[f]=a.slice():e[f]=a};for(let a=0,m=arguments.length;a<m;a++)arguments[a]&&xe(arguments[a],s);return e}const Zo=(t,e,s,{allOwnKeys:a}={})=>(xe(e,(m,f)=>{s&&Dt(m)?t[f]=On(m,s):t[f]=m},{allOwnKeys:a}),t),Vo=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ko=(t,e,s,a)=>{t.prototype=Object.create(e.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},Go=(t,e,s,a)=>{let m,f,M;const S={};if(e=e||{},t==null)return e;do{for(m=Object.getOwnPropertyNames(t),f=m.length;f-- >0;)M=m[f],(!a||a(M,t,e))&&!S[M]&&(e[M]=t[M],S[M]=!0);t=s!==!1&&qr(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},Yo=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const a=t.indexOf(e,s);return a!==-1&&a===s},Xo=t=>{if(!t)return null;if(pe(t))return t;let e=t.length;if(!Un(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},Qo=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qr(Uint8Array)),ts=(t,e)=>{const a=(t&&t[Symbol.iterator]).call(t);let m;for(;(m=a.next())&&!m.done;){const f=m.value;e.call(t,f[0],f[1])}},es=(t,e)=>{let s;const a=[];for(;(s=t.exec(e))!==null;)a.push(s);return a},rs=jt("HTMLFormElement"),ns=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,a,m){return a.toUpperCase()+m}),Xr=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),is=jt("RegExp"),Pn=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),a={};xe(s,(m,f)=>{let M;(M=e(m,f,t))!==!1&&(a[f]=M||m)}),Object.defineProperties(t,a)},os=t=>{Pn(t,(e,s)=>{if(Dt(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const a=t[s];if(Dt(a)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},ss=(t,e)=>{const s={},a=m=>{m.forEach(f=>{s[f]=!0})};return pe(t)?a(t):a(String(t).split(e)),s},as=()=>{},us=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,wr="abcdefghijklmnopqrstuvwxyz",Qr="0123456789",kn={DIGIT:Qr,ALPHA:wr,ALPHA_DIGIT:wr+wr.toUpperCase()+Qr},fs=(t=16,e=kn.ALPHA_DIGIT)=>{let s="";const{length:a}=e;for(;t--;)s+=e[Math.random()*a|0];return s};function hs(t){return!!(t&&Dt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ls=t=>{const e=new Array(10),s=(a,m)=>{if(Ze(a)){if(e.indexOf(a)>=0)return;if(!("toJSON"in a)){e[m]=a;const f=pe(a)?[]:{};return xe(a,(M,S)=>{const F=s(M,m+1);!ve(F)&&(f[S]=F)}),e[m]=void 0,f}}return a};return s(t,0)},cs=jt("AsyncFunction"),ds=t=>t&&(Ze(t)||Dt(t))&&Dt(t.then)&&Dt(t.catch),Dn=((t,e)=>t?setImmediate:e?((s,a)=>(Xt.addEventListener("message",({source:m,data:f})=>{m===Xt&&f===s&&a.length&&a.shift()()},!1),m=>{a.push(m),Xt.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Dt(Xt.postMessage)),ps=typeof queueMicrotask<"u"?queueMicrotask.bind(Xt):typeof Ue<"u"&&Ue.nextTick||Dn,A={isArray:pe,isArrayBuffer:Ln,isBuffer:To,isFormData:Do,isArrayBufferView:Io,isString:Oo,isNumber:Un,isBoolean:Lo,isObject:Ze,isPlainObject:_e,isReadableStream:Ho,isRequest:jo,isResponse:zo,isHeaders:Wo,isUndefined:ve,isDate:Uo,isFile:No,isBlob:$o,isRegExp:is,isFunction:Dt,isStream:ko,isURLSearchParams:qo,isTypedArray:Qo,isFileList:Po,forEach:xe,merge:Br,extend:Zo,trim:Jo,stripBOM:Vo,inherits:Ko,toFlatObject:Go,kindOf:We,kindOfTest:jt,endsWith:Yo,toArray:Xo,forEachEntry:ts,matchAll:es,isHTMLForm:rs,hasOwnProperty:Xr,hasOwnProp:Xr,reduceDescriptors:Pn,freezeMethods:os,toObjectSet:ss,toCamelCase:ns,noop:as,toFiniteNumber:us,findKey:Nn,global:Xt,isContextDefined:$n,ALPHABET:kn,generateString:fs,isSpecCompliantForm:hs,toJSONObject:ls,isAsyncFn:cs,isThenable:ds,setImmediate:Dn,asap:ps};function W(t,e,s,a,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),a&&(this.request=a),m&&(this.response=m,this.status=m.status?m.status:null)}A.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const qn=W.prototype,Hn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Hn[t]={value:t}});Object.defineProperties(W,Hn);Object.defineProperty(qn,"isAxiosError",{value:!0});W.from=(t,e,s,a,m,f)=>{const M=Object.create(qn);return A.toFlatObject(t,M,function(F){return F!==Error.prototype},S=>S!=="isAxiosError"),W.call(M,t.message,e,s,a,m),M.cause=t,M.name=t.name,f&&Object.assign(M,f),M};const ms=null;function Ar(t){return A.isPlainObject(t)||A.isArray(t)}function jn(t){return A.endsWith(t,"[]")?t.slice(0,-2):t}function tn(t,e,s){return t?t.concat(e).map(function(m,f){return m=jn(m),!s&&f?"["+m+"]":m}).join(s?".":""):e}function gs(t){return A.isArray(t)&&!t.some(Ar)}const ys=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function Ve(t,e,s){if(!A.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=A.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function($,N){return!A.isUndefined(N[$])});const a=s.metaTokens,m=s.visitor||y,f=s.dots,M=s.indexes,F=(s.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(e);if(!A.isFunction(m))throw new TypeError("visitor must be a function");function C(I){if(I===null)return"";if(A.isDate(I))return I.toISOString();if(!F&&A.isBlob(I))throw new W("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(I)||A.isTypedArray(I)?F&&typeof Blob=="function"?new Blob([I]):In.from(I):I}function y(I,$,N){let Z=I;if(I&&!N&&typeof I=="object"){if(A.endsWith($,"{}"))$=a?$:$.slice(0,-2),I=JSON.stringify(I);else if(A.isArray(I)&&gs(I)||(A.isFileList(I)||A.endsWith($,"[]"))&&(Z=A.toArray(I)))return $=jn($),Z.forEach(function(Q,Y){!(A.isUndefined(Q)||Q===null)&&e.append(M===!0?tn([$],Y,f):M===null?$:$+"[]",C(Q))}),!1}return Ar(I)?!0:(e.append(tn(N,$,f),C(I)),!1)}const _=[],O=Object.assign(ys,{defaultVisitor:y,convertValue:C,isVisitable:Ar});function P(I,$){if(!A.isUndefined(I)){if(_.indexOf(I)!==-1)throw Error("Circular reference detected in "+$.join("."));_.push(I),A.forEach(I,function(Z,j){(!(A.isUndefined(Z)||Z===null)&&m.call(e,Z,A.isString(j)?j.trim():j,$,O))===!0&&P(Z,$?$.concat(j):[j])}),_.pop()}}if(!A.isObject(t))throw new TypeError("data must be an object");return P(t),e}function en(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return e[a]})}function Hr(t,e){this._pairs=[],t&&Ve(t,this,e)}const zn=Hr.prototype;zn.append=function(e,s){this._pairs.push([e,s])};zn.toString=function(e){const s=e?function(a){return e.call(this,a,en)}:en;return this._pairs.map(function(m){return s(m[0])+"="+s(m[1])},"").join("&")};function ws(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wn(t,e,s){if(!e)return t;const a=s&&s.encode||ws;A.isFunction(s)&&(s={serialize:s});const m=s&&s.serialize;let f;if(m?f=m(e,s):f=A.isURLSearchParams(e)?e.toString():new Hr(e,s).toString(a),f){const M=t.indexOf("#");M!==-1&&(t=t.slice(0,M)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class rn{constructor(){this.handlers=[]}use(e,s,a){return this.handlers.push({fulfilled:e,rejected:s,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){A.forEach(this.handlers,function(a){a!==null&&e(a)})}}const Jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vs=typeof URLSearchParams<"u"?URLSearchParams:Hr,Ms=typeof FormData<"u"?FormData:null,xs=typeof Blob<"u"?Blob:null,Es={isBrowser:!0,classes:{URLSearchParams:vs,FormData:Ms,Blob:xs},protocols:["http","https","file","blob","url","data"]},jr=typeof window<"u"&&typeof document<"u",_r=typeof navigator=="object"&&navigator||void 0,bs=jr&&(!_r||["ReactNative","NativeScript","NS"].indexOf(_r.product)<0),Ss=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cs=jr&&window.location.href||"http://localhost",Rs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:jr,hasStandardBrowserEnv:bs,hasStandardBrowserWebWorkerEnv:Ss,navigator:_r,origin:Cs},Symbol.toStringTag,{value:"Module"})),Pt={...Rs,...Es};function Bs(t,e){return Ve(t,new Pt.classes.URLSearchParams,Object.assign({visitor:function(s,a,m,f){return Pt.isNode&&A.isBuffer(s)?(this.append(a,s.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},e))}function As(t){return A.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _s(t){const e={},s=Object.keys(t);let a;const m=s.length;let f;for(a=0;a<m;a++)f=s[a],e[f]=t[f];return e}function Zn(t){function e(s,a,m,f){let M=s[f++];if(M==="__proto__")return!0;const S=Number.isFinite(+M),F=f>=s.length;return M=!M&&A.isArray(m)?m.length:M,F?(A.hasOwnProp(m,M)?m[M]=[m[M],a]:m[M]=a,!S):((!m[M]||!A.isObject(m[M]))&&(m[M]=[]),e(s,a,m[M],f)&&A.isArray(m[M])&&(m[M]=_s(m[M])),!S)}if(A.isFormData(t)&&A.isFunction(t.entries)){const s={};return A.forEachEntry(t,(a,m)=>{e(As(a),m,s,0)}),s}return null}function Fs(t,e,s){if(A.isString(t))try{return(e||JSON.parse)(t),A.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(s||JSON.stringify)(t)}const Ee={transitional:Jn,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const a=s.getContentType()||"",m=a.indexOf("application/json")>-1,f=A.isObject(e);if(f&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return m?JSON.stringify(Zn(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let S;if(f){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Bs(e,this.formSerializer).toString();if((S=A.isFileList(e))||a.indexOf("multipart/form-data")>-1){const F=this.env&&this.env.FormData;return Ve(S?{"files[]":e}:e,F&&new F,this.formSerializer)}}return f||m?(s.setContentType("application/json",!1),Fs(e)):e}],transformResponse:[function(e){const s=this.transitional||Ee.transitional,a=s&&s.forcedJSONParsing,m=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(a&&!this.responseType||m)){const M=!(s&&s.silentJSONParsing)&&m;try{return JSON.parse(e)}catch(S){if(M)throw S.name==="SyntaxError"?W.from(S,W.ERR_BAD_RESPONSE,this,null,this.response):S}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pt.classes.FormData,Blob:Pt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],t=>{Ee.headers[t]={}});const Ts=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Is=t=>{const e={};let s,a,m;return t&&t.split(`
7
- `).forEach(function(M){m=M.indexOf(":"),s=M.substring(0,m).trim().toLowerCase(),a=M.substring(m+1).trim(),!(!s||e[s]&&Ts[s])&&(s==="set-cookie"?e[s]?e[s].push(a):e[s]=[a]:e[s]=e[s]?e[s]+", "+a:a)}),e},nn=Symbol("internals");function ye(t){return t&&String(t).trim().toLowerCase()}function Fe(t){return t===!1||t==null?t:A.isArray(t)?t.map(Fe):String(t)}function Os(t){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=s.exec(t);)e[a[1]]=a[2];return e}const Ls=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function vr(t,e,s,a,m){if(A.isFunction(a))return a.call(this,e,s);if(m&&(e=s),!!A.isString(e)){if(A.isString(a))return e.indexOf(a)!==-1;if(A.isRegExp(a))return a.test(e)}}function Us(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,a)=>s.toUpperCase()+a)}function Ns(t,e){const s=A.toCamelCase(" "+e);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+s,{value:function(m,f,M){return this[a].call(this,e,m,f,M)},configurable:!0})})}let kt=class{constructor(e){e&&this.set(e)}set(e,s,a){const m=this;function f(S,F,C){const y=ye(F);if(!y)throw new Error("header name must be a non-empty string");const _=A.findKey(m,y);(!_||m[_]===void 0||C===!0||C===void 0&&m[_]!==!1)&&(m[_||F]=Fe(S))}const M=(S,F)=>A.forEach(S,(C,y)=>f(C,y,F));if(A.isPlainObject(e)||e instanceof this.constructor)M(e,s);else if(A.isString(e)&&(e=e.trim())&&!Ls(e))M(Is(e),s);else if(A.isHeaders(e))for(const[S,F]of e.entries())f(F,S,a);else e!=null&&f(s,e,a);return this}get(e,s){if(e=ye(e),e){const a=A.findKey(this,e);if(a){const m=this[a];if(!s)return m;if(s===!0)return Os(m);if(A.isFunction(s))return s.call(this,m,a);if(A.isRegExp(s))return s.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=ye(e),e){const a=A.findKey(this,e);return!!(a&&this[a]!==void 0&&(!s||vr(this,this[a],a,s)))}return!1}delete(e,s){const a=this;let m=!1;function f(M){if(M=ye(M),M){const S=A.findKey(a,M);S&&(!s||vr(a,a[S],S,s))&&(delete a[S],m=!0)}}return A.isArray(e)?e.forEach(f):f(e),m}clear(e){const s=Object.keys(this);let a=s.length,m=!1;for(;a--;){const f=s[a];(!e||vr(this,this[f],f,e,!0))&&(delete this[f],m=!0)}return m}normalize(e){const s=this,a={};return A.forEach(this,(m,f)=>{const M=A.findKey(a,f);if(M){s[M]=Fe(m),delete s[f];return}const S=e?Us(f):String(f).trim();S!==f&&delete s[f],s[S]=Fe(m),a[S]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return A.forEach(this,(a,m)=>{a!=null&&a!==!1&&(s[m]=e&&A.isArray(a)?a.join(", "):a)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,s])=>e+": "+s).join(`
8
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const a=new this(e);return s.forEach(m=>a.set(m)),a}static accessor(e){const a=(this[nn]=this[nn]={accessors:{}}).accessors,m=this.prototype;function f(M){const S=ye(M);a[S]||(Ns(m,M),a[S]=!0)}return A.isArray(e)?e.forEach(f):f(e),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(kt.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(a){this[s]=a}}});A.freezeMethods(kt);function Mr(t,e){const s=this||Ee,a=e||s,m=kt.from(a.headers);let f=a.data;return A.forEach(t,function(S){f=S.call(s,f,m.normalize(),e?e.status:void 0)}),m.normalize(),f}function Vn(t){return!!(t&&t.__CANCEL__)}function me(t,e,s){W.call(this,t??"canceled",W.ERR_CANCELED,e,s),this.name="CanceledError"}A.inherits(me,W,{__CANCEL__:!0});function Kn(t,e,s){const a=s.config.validateStatus;!s.status||!a||a(s.status)?t(s):e(new W("Request failed with status code "+s.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function $s(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Ps(t,e){t=t||10;const s=new Array(t),a=new Array(t);let m=0,f=0,M;return e=e!==void 0?e:1e3,function(F){const C=Date.now(),y=a[f];M||(M=C),s[m]=F,a[m]=C;let _=f,O=0;for(;_!==m;)O+=s[_++],_=_%t;if(m=(m+1)%t,m===f&&(f=(f+1)%t),C-M<e)return;const P=y&&C-y;return P?Math.round(O*1e3/P):void 0}}function ks(t,e){let s=0,a=1e3/e,m,f;const M=(C,y=Date.now())=>{s=y,m=null,f&&(clearTimeout(f),f=null),t.apply(null,C)};return[(...C)=>{const y=Date.now(),_=y-s;_>=a?M(C,y):(m=C,f||(f=setTimeout(()=>{f=null,M(m)},a-_)))},()=>m&&M(m)]}const Ne=(t,e,s=3)=>{let a=0;const m=Ps(50,250);return ks(f=>{const M=f.loaded,S=f.lengthComputable?f.total:void 0,F=M-a,C=m(F),y=M<=S;a=M;const _={loaded:M,total:S,progress:S?M/S:void 0,bytes:F,rate:C||void 0,estimated:C&&S&&y?(S-M)/C:void 0,event:f,lengthComputable:S!=null,[e?"download":"upload"]:!0};t(_)},s)},on=(t,e)=>{const s=t!=null;return[a=>e[0]({lengthComputable:s,total:t,loaded:a}),e[1]]},sn=t=>(...e)=>A.asap(()=>t(...e)),Ds=Pt.hasStandardBrowserEnv?((t,e)=>s=>(s=new URL(s,Pt.origin),t.protocol===s.protocol&&t.host===s.host&&(e||t.port===s.port)))(new URL(Pt.origin),Pt.navigator&&/(msie|trident)/i.test(Pt.navigator.userAgent)):()=>!0,qs=Pt.hasStandardBrowserEnv?{write(t,e,s,a,m,f){const M=[t+"="+encodeURIComponent(e)];A.isNumber(s)&&M.push("expires="+new Date(s).toGMTString()),A.isString(a)&&M.push("path="+a),A.isString(m)&&M.push("domain="+m),f===!0&&M.push("secure"),document.cookie=M.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Hs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function js(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Gn(t,e){return t&&!Hs(e)?js(t,e):e}const an=t=>t instanceof kt?{...t}:t;function ee(t,e){e=e||{};const s={};function a(C,y,_,O){return A.isPlainObject(C)&&A.isPlainObject(y)?A.merge.call({caseless:O},C,y):A.isPlainObject(y)?A.merge({},y):A.isArray(y)?y.slice():y}function m(C,y,_,O){if(A.isUndefined(y)){if(!A.isUndefined(C))return a(void 0,C,_,O)}else return a(C,y,_,O)}function f(C,y){if(!A.isUndefined(y))return a(void 0,y)}function M(C,y){if(A.isUndefined(y)){if(!A.isUndefined(C))return a(void 0,C)}else return a(void 0,y)}function S(C,y,_){if(_ in e)return a(C,y);if(_ in t)return a(void 0,C)}const F={url:f,method:f,data:f,baseURL:M,transformRequest:M,transformResponse:M,paramsSerializer:M,timeout:M,timeoutMessage:M,withCredentials:M,withXSRFToken:M,adapter:M,responseType:M,xsrfCookieName:M,xsrfHeaderName:M,onUploadProgress:M,onDownloadProgress:M,decompress:M,maxContentLength:M,maxBodyLength:M,beforeRedirect:M,transport:M,httpAgent:M,httpsAgent:M,cancelToken:M,socketPath:M,responseEncoding:M,validateStatus:S,headers:(C,y,_)=>m(an(C),an(y),_,!0)};return A.forEach(Object.keys(Object.assign({},t,e)),function(y){const _=F[y]||m,O=_(t[y],e[y],y);A.isUndefined(O)&&_!==S||(s[y]=O)}),s}const Yn=t=>{const e=ee({},t);let{data:s,withXSRFToken:a,xsrfHeaderName:m,xsrfCookieName:f,headers:M,auth:S}=e;e.headers=M=kt.from(M),e.url=Wn(Gn(e.baseURL,e.url),t.params,t.paramsSerializer),S&&M.set("Authorization","Basic "+btoa((S.username||"")+":"+(S.password?unescape(encodeURIComponent(S.password)):"")));let F;if(A.isFormData(s)){if(Pt.hasStandardBrowserEnv||Pt.hasStandardBrowserWebWorkerEnv)M.setContentType(void 0);else if((F=M.getContentType())!==!1){const[C,...y]=F?F.split(";").map(_=>_.trim()).filter(Boolean):[];M.setContentType([C||"multipart/form-data",...y].join("; "))}}if(Pt.hasStandardBrowserEnv&&(a&&A.isFunction(a)&&(a=a(e)),a||a!==!1&&Ds(e.url))){const C=m&&f&&qs.read(f);C&&M.set(m,C)}return e},zs=typeof XMLHttpRequest<"u",Ws=zs&&function(t){return new Promise(function(s,a){const m=Yn(t);let f=m.data;const M=kt.from(m.headers).normalize();let{responseType:S,onUploadProgress:F,onDownloadProgress:C}=m,y,_,O,P,I;function $(){P&&P(),I&&I(),m.cancelToken&&m.cancelToken.unsubscribe(y),m.signal&&m.signal.removeEventListener("abort",y)}let N=new XMLHttpRequest;N.open(m.method.toUpperCase(),m.url,!0),N.timeout=m.timeout;function Z(){if(!N)return;const Q=kt.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),it={data:!S||S==="text"||S==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:Q,config:t,request:N};Kn(function(Ut){s(Ut),$()},function(Ut){a(Ut),$()},it),N=null}"onloadend"in N?N.onloadend=Z:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(Z)},N.onabort=function(){N&&(a(new W("Request aborted",W.ECONNABORTED,t,N)),N=null)},N.onerror=function(){a(new W("Network Error",W.ERR_NETWORK,t,N)),N=null},N.ontimeout=function(){let Y=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded";const it=m.transitional||Jn;m.timeoutErrorMessage&&(Y=m.timeoutErrorMessage),a(new W(Y,it.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,N)),N=null},f===void 0&&M.setContentType(null),"setRequestHeader"in N&&A.forEach(M.toJSON(),function(Y,it){N.setRequestHeader(it,Y)}),A.isUndefined(m.withCredentials)||(N.withCredentials=!!m.withCredentials),S&&S!=="json"&&(N.responseType=m.responseType),C&&([O,I]=Ne(C,!0),N.addEventListener("progress",O)),F&&N.upload&&([_,P]=Ne(F),N.upload.addEventListener("progress",_),N.upload.addEventListener("loadend",P)),(m.cancelToken||m.signal)&&(y=Q=>{N&&(a(!Q||Q.type?new me(null,t,N):Q),N.abort(),N=null)},m.cancelToken&&m.cancelToken.subscribe(y),m.signal&&(m.signal.aborted?y():m.signal.addEventListener("abort",y)));const j=$s(m.url);if(j&&Pt.protocols.indexOf(j)===-1){a(new W("Unsupported protocol "+j+":",W.ERR_BAD_REQUEST,t));return}N.send(f||null)})},Js=(t,e)=>{const{length:s}=t=t?t.filter(Boolean):[];if(e||s){let a=new AbortController,m;const f=function(C){if(!m){m=!0,S();const y=C instanceof Error?C:this.reason;a.abort(y instanceof W?y:new me(y instanceof Error?y.message:y))}};let M=e&&setTimeout(()=>{M=null,f(new W(`timeout ${e} of ms exceeded`,W.ETIMEDOUT))},e);const S=()=>{t&&(M&&clearTimeout(M),M=null,t.forEach(C=>{C.unsubscribe?C.unsubscribe(f):C.removeEventListener("abort",f)}),t=null)};t.forEach(C=>C.addEventListener("abort",f));const{signal:F}=a;return F.unsubscribe=()=>A.asap(S),F}},Zs=function*(t,e){let s=t.byteLength;if(!e||s<e){yield t;return}let a=0,m;for(;a<s;)m=a+e,yield t.slice(a,m),a=m},Vs=async function*(t,e){for await(const s of Ks(t))yield*Zs(s,e)},Ks=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:s,value:a}=await e.read();if(s)break;yield a}}finally{await e.cancel()}},un=(t,e,s,a)=>{const m=Vs(t,e);let f=0,M,S=F=>{M||(M=!0,a&&a(F))};return new ReadableStream({async pull(F){try{const{done:C,value:y}=await m.next();if(C){S(),F.close();return}let _=y.byteLength;if(s){let O=f+=_;s(O)}F.enqueue(new Uint8Array(y))}catch(C){throw S(C),C}},cancel(F){return S(F),m.return()}},{highWaterMark:2})},Ke=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xn=Ke&&typeof ReadableStream=="function",Gs=Ke&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Qn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Ys=Xn&&Qn(()=>{let t=!1;const e=new Request(Pt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),fn=64*1024,Fr=Xn&&Qn(()=>A.isReadableStream(new Response("").body)),$e={stream:Fr&&(t=>t.body)};Ke&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$e[e]&&($e[e]=A.isFunction(t[e])?s=>s[e]():(s,a)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,a)})})})(new Response);const Xs=async t=>{if(t==null)return 0;if(A.isBlob(t))return t.size;if(A.isSpecCompliantForm(t))return(await new Request(Pt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(A.isArrayBufferView(t)||A.isArrayBuffer(t))return t.byteLength;if(A.isURLSearchParams(t)&&(t=t+""),A.isString(t))return(await Gs(t)).byteLength},Qs=async(t,e)=>{const s=A.toFiniteNumber(t.getContentLength());return s??Xs(e)},ta=Ke&&(async t=>{let{url:e,method:s,data:a,signal:m,cancelToken:f,timeout:M,onDownloadProgress:S,onUploadProgress:F,responseType:C,headers:y,withCredentials:_="same-origin",fetchOptions:O}=Yn(t);C=C?(C+"").toLowerCase():"text";let P=Js([m,f&&f.toAbortSignal()],M),I;const $=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N;try{if(F&&Ys&&s!=="get"&&s!=="head"&&(N=await Qs(y,a))!==0){let it=new Request(e,{method:"POST",body:a,duplex:"half"}),at;if(A.isFormData(a)&&(at=it.headers.get("content-type"))&&y.setContentType(at),it.body){const[Ut,ht]=on(N,Ne(sn(F)));a=un(it.body,fn,Ut,ht)}}A.isString(_)||(_=_?"include":"omit");const Z="credentials"in Request.prototype;I=new Request(e,{...O,signal:P,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:Z?_:void 0});let j=await fetch(I);const Q=Fr&&(C==="stream"||C==="response");if(Fr&&(S||Q&&$)){const it={};["status","statusText","headers"].forEach(G=>{it[G]=j[G]});const at=A.toFiniteNumber(j.headers.get("content-length")),[Ut,ht]=S&&on(at,Ne(sn(S),!0))||[];j=new Response(un(j.body,fn,Ut,()=>{ht&&ht(),$&&$()}),it)}C=C||"text";let Y=await $e[A.findKey($e,C)||"text"](j,t);return!Q&&$&&$(),await new Promise((it,at)=>{Kn(it,at,{data:Y,headers:kt.from(j.headers),status:j.status,statusText:j.statusText,config:t,request:I})})}catch(Z){throw $&&$(),Z&&Z.name==="TypeError"&&/fetch/i.test(Z.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,t,I),{cause:Z.cause||Z}):W.from(Z,Z&&Z.code,t,I)}}),Tr={http:ms,xhr:Ws,fetch:ta};A.forEach(Tr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const hn=t=>`- ${t}`,ea=t=>A.isFunction(t)||t===null||t===!1,ti={getAdapter:t=>{t=A.isArray(t)?t:[t];const{length:e}=t;let s,a;const m={};for(let f=0;f<e;f++){s=t[f];let M;if(a=s,!ea(s)&&(a=Tr[(M=String(s)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${M}'`);if(a)break;m[M||"#"+f]=a}if(!a){const f=Object.entries(m).map(([S,F])=>`adapter ${S} `+(F===!1?"is not supported by the environment":"is not available in the build"));let M=e?f.length>1?`since :
9
- `+f.map(hn).join(`
10
- `):" "+hn(f[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+M,"ERR_NOT_SUPPORT")}return a},adapters:Tr};function xr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new me(null,t)}function ln(t){return xr(t),t.headers=kt.from(t.headers),t.data=Mr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ti.getAdapter(t.adapter||Ee.adapter)(t).then(function(a){return xr(t),a.data=Mr.call(t,t.transformResponse,a),a.headers=kt.from(a.headers),a},function(a){return Vn(a)||(xr(t),a&&a.response&&(a.response.data=Mr.call(t,t.transformResponse,a.response),a.response.headers=kt.from(a.response.headers))),Promise.reject(a)})}const ei="1.7.9",Ge={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ge[t]=function(a){return typeof a===t||"a"+(e<1?"n ":" ")+t}});const cn={};Ge.transitional=function(e,s,a){function m(f,M){return"[Axios v"+ei+"] Transitional option '"+f+"'"+M+(a?". "+a:"")}return(f,M,S)=>{if(e===!1)throw new W(m(M," has been removed"+(s?" in "+s:"")),W.ERR_DEPRECATED);return s&&!cn[M]&&(cn[M]=!0,console.warn(m(M," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(f,M,S):!0}};Ge.spelling=function(e){return(s,a)=>(console.warn(`${a} is likely a misspelling of ${e}`),!0)};function ra(t,e,s){if(typeof t!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let m=a.length;for(;m-- >0;){const f=a[m],M=e[f];if(M){const S=t[f],F=S===void 0||M(S,f,t);if(F!==!0)throw new W("option "+f+" must be "+F,W.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new W("Unknown option "+f,W.ERR_BAD_OPTION)}}const Te={assertOptions:ra,validators:Ge},zt=Te.validators;let Qt=class{constructor(e){this.defaults=e,this.interceptors={request:new rn,response:new rn}}async request(e,s){try{return await this._request(e,s)}catch(a){if(a instanceof Error){let m={};Error.captureStackTrace?Error.captureStackTrace(m):m=new Error;const f=m.stack?m.stack.replace(/^.+\n/,""):"";try{a.stack?f&&!String(a.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(a.stack+=`
11
- `+f):a.stack=f}catch{}}throw a}}_request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=ee(this.defaults,s);const{transitional:a,paramsSerializer:m,headers:f}=s;a!==void 0&&Te.assertOptions(a,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean)},!1),m!=null&&(A.isFunction(m)?s.paramsSerializer={serialize:m}:Te.assertOptions(m,{encode:zt.function,serialize:zt.function},!0)),Te.assertOptions(s,{baseUrl:zt.spelling("baseURL"),withXsrfToken:zt.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let M=f&&A.merge(f.common,f[s.method]);f&&A.forEach(["delete","get","head","post","put","patch","common"],I=>{delete f[I]}),s.headers=kt.concat(M,f);const S=[];let F=!0;this.interceptors.request.forEach(function($){typeof $.runWhen=="function"&&$.runWhen(s)===!1||(F=F&&$.synchronous,S.unshift($.fulfilled,$.rejected))});const C=[];this.interceptors.response.forEach(function($){C.push($.fulfilled,$.rejected)});let y,_=0,O;if(!F){const I=[ln.bind(this),void 0];for(I.unshift.apply(I,S),I.push.apply(I,C),O=I.length,y=Promise.resolve(s);_<O;)y=y.then(I[_++],I[_++]);return y}O=S.length;let P=s;for(_=0;_<O;){const I=S[_++],$=S[_++];try{P=I(P)}catch(N){$.call(this,N);break}}try{y=ln.call(this,P)}catch(I){return Promise.reject(I)}for(_=0,O=C.length;_<O;)y=y.then(C[_++],C[_++]);return y}getUri(e){e=ee(this.defaults,e);const s=Gn(e.baseURL,e.url);return Wn(s,e.params,e.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){Qt.prototype[e]=function(s,a){return this.request(ee(a||{},{method:e,url:s,data:(a||{}).data}))}});A.forEach(["post","put","patch"],function(e){function s(a){return function(f,M,S){return this.request(ee(S||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:f,data:M}))}}Qt.prototype[e]=s(),Qt.prototype[e+"Form"]=s(!0)});let na=class ri{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(f){s=f});const a=this;this.promise.then(m=>{if(!a._listeners)return;let f=a._listeners.length;for(;f-- >0;)a._listeners[f](m);a._listeners=null}),this.promise.then=m=>{let f;const M=new Promise(S=>{a.subscribe(S),f=S}).then(m);return M.cancel=function(){a.unsubscribe(f)},M},e(function(f,M,S){a.reason||(a.reason=new me(f,M,S),s(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const e=new AbortController,s=a=>{e.abort(a)};return this.subscribe(s),e.signal.unsubscribe=()=>this.unsubscribe(s),e.signal}static source(){let e;return{token:new ri(function(m){e=m}),cancel:e}}};function ia(t){return function(s){return t.apply(null,s)}}function oa(t){return A.isObject(t)&&t.isAxiosError===!0}const Ir={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ir).forEach(([t,e])=>{Ir[e]=t});function ni(t){const e=new Qt(t),s=On(Qt.prototype.request,e);return A.extend(s,Qt.prototype,e,{allOwnKeys:!0}),A.extend(s,e,null,{allOwnKeys:!0}),s.create=function(m){return ni(ee(t,m))},s}const yt=ni(Ee);yt.Axios=Qt;yt.CanceledError=me;yt.CancelToken=na;yt.isCancel=Vn;yt.VERSION=ei;yt.toFormData=Ve;yt.AxiosError=W;yt.Cancel=yt.CanceledError;yt.all=function(e){return Promise.all(e)};yt.spread=ia;yt.isAxiosError=oa;yt.mergeConfig=ee;yt.AxiosHeaders=kt;yt.formToJSON=t=>Zn(A.isHTMLForm(t)?new FormData(t):t);yt.getAdapter=ti.getAdapter;yt.HttpStatusCode=Ir;yt.default=yt;const{Axios:sa,AxiosError:aa,CanceledError:ua,isCancel:fa,CancelToken:ha,VERSION:la,all:ca,Cancel:da,isAxiosError:pa,spread:ma,toFormData:ga,AxiosHeaders:ya,HttpStatusCode:wa,formToJSON:va,getAdapter:Ma,mergeConfig:xa}=yt,Na=Object.freeze(Object.defineProperty({__proto__:null,Axios:sa,AxiosError:aa,AxiosHeaders:ya,Cancel:da,CancelToken:ha,CanceledError:ua,HttpStatusCode:wa,VERSION:la,all:ca,default:yt,formToJSON:va,getAdapter:Ma,isAxiosError:pa,isCancel:fa,mergeConfig:xa,spread:ma,toFormData:ga},Symbol.toStringTag,{value:"Module"}));var Or={exports:{}},he=1e3,le=he*60,ce=le*60,re=ce*24,Ea=re*7,ba=re*365.25,ii=function(t,e){e=e||{};var s=typeof t;if(s==="string"&&t.length>0)return Sa(t);if(s==="number"&&isFinite(t))return e.long?Ra(t):Ca(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Sa(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]),a=(e[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return s*ba;case"weeks":case"week":case"w":return s*Ea;case"days":case"day":case"d":return s*re;case"hours":case"hour":case"hrs":case"hr":case"h":return s*ce;case"minutes":case"minute":case"mins":case"min":case"m":return s*le;case"seconds":case"second":case"secs":case"sec":case"s":return s*he;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function Ca(t){var e=Math.abs(t);return e>=re?Math.round(t/re)+"d":e>=ce?Math.round(t/ce)+"h":e>=le?Math.round(t/le)+"m":e>=he?Math.round(t/he)+"s":t+"ms"}function Ra(t){var e=Math.abs(t);return e>=re?Ce(t,e,re,"day"):e>=ce?Ce(t,e,ce,"hour"):e>=le?Ce(t,e,le,"minute"):e>=he?Ce(t,e,he,"second"):t+" ms"}function Ce(t,e,s,a){var m=e>=s*1.5;return Math.round(t/s)+" "+a+(m?"s":"")}const $a=pn(ii);function Ba(t){s.debug=s,s.default=s,s.coerce=F,s.disable=M,s.enable=m,s.enabled=S,s.humanize=ii,s.destroy=C,Object.keys(t).forEach(y=>{s[y]=t[y]}),s.names=[],s.skips=[],s.formatters={};function e(y){let _=0;for(let O=0;O<y.length;O++)_=(_<<5)-_+y.charCodeAt(O),_|=0;return s.colors[Math.abs(_)%s.colors.length]}s.selectColor=e;function s(y){let _,O=null,P,I;function $(...N){if(!$.enabled)return;const Z=$,j=Number(new Date),Q=j-(_||j);Z.diff=Q,Z.prev=_,Z.curr=j,_=j,N[0]=s.coerce(N[0]),typeof N[0]!="string"&&N.unshift("%O");let Y=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(at,Ut)=>{if(at==="%%")return"%";Y++;const ht=s.formatters[Ut];if(typeof ht=="function"){const G=N[Y];at=ht.call(Z,G),N.splice(Y,1),Y--}return at}),s.formatArgs.call(Z,N),(Z.log||s.log).apply(Z,N)}return $.namespace=y,$.useColors=s.useColors(),$.color=s.selectColor(y),$.extend=a,$.destroy=s.destroy,Object.defineProperty($,"enabled",{enumerable:!0,configurable:!1,get:()=>O!==null?O:(P!==s.namespaces&&(P=s.namespaces,I=s.enabled(y)),I),set:N=>{O=N}}),typeof s.init=="function"&&s.init($),$}function a(y,_){const O=s(this.namespace+(typeof _>"u"?":":_)+y);return O.log=this.log,O}function m(y){s.save(y),s.namespaces=y,s.names=[],s.skips=[];const _=(typeof y=="string"?y:"").trim().replace(" ",",").split(",").filter(Boolean);for(const O of _)O[0]==="-"?s.skips.push(O.slice(1)):s.names.push(O)}function f(y,_){let O=0,P=0,I=-1,$=0;for(;O<y.length;)if(P<_.length&&(_[P]===y[O]||_[P]==="*"))_[P]==="*"?(I=P,$=O,P++):(O++,P++);else if(I!==-1)P=I+1,$++,O=$;else return!1;for(;P<_.length&&_[P]==="*";)P++;return P===_.length}function M(){const y=[...s.names,...s.skips.map(_=>"-"+_)].join(",");return s.enable(""),y}function S(y){for(const _ of s.skips)if(f(y,_))return!1;for(const _ of s.names)if(f(y,_))return!0;return!1}function F(y){return y instanceof Error?y.stack||y.message:y}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}var Aa=Ba;(function(t,e){var s={};e.formatArgs=m,e.save=f,e.load=M,e.useColors=a,e.storage=S(),e.destroy=(()=>{let C=!1;return()=>{C||(C=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let C;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(C=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(C[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function m(C){if(C[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+C[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const y="color: "+this.color;C.splice(1,0,y,"color: inherit");let _=0,O=0;C[0].replace(/%[a-zA-Z%]/g,P=>{P!=="%%"&&(_++,P==="%c"&&(O=_))}),C.splice(O,0,y)}e.log=console.debug||console.log||(()=>{});function f(C){try{C?e.storage.setItem("debug",C):e.storage.removeItem("debug")}catch{}}function M(){let C;try{C=e.storage.getItem("debug")}catch{}return!C&&typeof Ue<"u"&&"env"in Ue&&(C=s.DEBUG),C}function S(){try{return localStorage}catch{}}t.exports=Aa(e);const{formatters:F}=t.exports;F.j=function(C){try{return JSON.stringify(C)}catch(y){return"[UnexpectedJSONParseError]: "+y.message}}})(Or,Or.exports);var Pa=Or.exports;export{aa as A,In as B,yt as a,Oa as b,co as c,Fa as d,si as e,Pa as f,ai as g,Ws as h,Li as i,Sn as j,we as k,Na as l,Ta as m,$i as n,Ni as o,Ue as p,Ht as q,_o as r,te as s,Vi as t,de as u,$a as v,Oi as w,fe as x};