@abtnode/blocklet-services 1.16.44-beta-20250518-020443-77ba168f → 1.16.44-beta-20250520-104453-912ed737

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 (175) hide show
  1. package/dist/assets/{AdapterDayjs-YbaNvT9I.js → AdapterDayjs-Bck9Dv3l.js} +1 -1
  2. package/dist/assets/{ArrowDropDown-xgs4N3Rf.js → ArrowDropDown-BleCy3ti.js} +1 -1
  3. package/dist/assets/{CheckCircle-JXD6tKIa.js → CheckCircle-XrJDG94y.js} +1 -1
  4. package/dist/assets/{ChevronLeft-D0eko_T8.js → ChevronLeft-BlDLI-Qo.js} +1 -1
  5. package/dist/assets/{ChevronRight-CQY9Ni7X.js → ChevronRight-DkPaON7R.js} +1 -1
  6. package/dist/assets/{DeleteOutline-BEGOj_wq.js → DeleteOutline-Cj7UhBbF.js} +1 -1
  7. package/dist/assets/{Done-BUJJNjlP.js → Done-UEZFWnHj.js} +1 -1
  8. package/dist/assets/{Download-DdZEsxmZ.js → Download-CsoZ8yOi.js} +1 -1
  9. package/dist/assets/{Edit-vxeVwrqO.js → Edit-Bj4m2hpD.js} +1 -1
  10. package/dist/assets/{Error-C-RD4e9g.js → Error-BwUoSWOt.js} +1 -1
  11. package/dist/assets/{ExpandLess-CmqG9SE7.js → ExpandLess-CjIzahHO.js} +1 -1
  12. package/dist/assets/{Google-B7PA4qF8.js → Google-BON6upKi.js} +1 -1
  13. package/dist/assets/{InfoOutlined-BIr5nkjV.js → InfoOutlined-uoMMChNE.js} +1 -1
  14. package/dist/assets/{Launch-KvZQI_SA.js → Launch-rj4Kr2rA.js} +1 -1
  15. package/dist/assets/{LaunchOutlined-ClxZU_tj.js → LaunchOutlined-0gUfY-5D.js} +1 -1
  16. package/dist/assets/{MoreHoriz-H8rabTmY.js → MoreHoriz-3SNxR36h.js} +1 -1
  17. package/dist/assets/{PlayArrow-CmxnItFZ.js → PlayArrow-BHO_DqT2.js} +1 -1
  18. package/dist/assets/{TuneOutlined-DmhFMgM-.js → TuneOutlined-BvtfOd23.js} +1 -1
  19. package/dist/assets/{ViewList-DXk3qGFU.js → ViewList-BvucdDXZ.js} +1 -1
  20. package/dist/assets/{access-control-DupKwlXi.js → access-control-C9ZsDLlM.js} +1 -1
  21. package/dist/assets/{actions-V9hjjowb.js → actions-BWSNMC_c.js} +1 -1
  22. package/dist/assets/{add-component-core-hWyA0oyr.js → add-component-core-Dd9KPcvp.js} +15 -15
  23. package/dist/assets/add-resource-BHmsfuUO.js +1 -0
  24. package/dist/assets/{addon-DtaZ0TB3.js → addon-CaGk2PdY.js} +1 -1
  25. package/dist/assets/{advanced-EG10mbK7.js → advanced-DlILcrRl.js} +2 -2
  26. package/dist/assets/appearance-D1sGjeMk.js +1 -0
  27. package/dist/assets/{ar-2yn9i2dw.js → ar-C_INBNFD.js} +1 -1
  28. package/dist/assets/{audit-logs-WqpwTrlM.js → audit-logs-DfXh1JQZ.js} +3 -3
  29. package/dist/assets/{authorize-DEmcifx9.js → authorize-mEHpiCQH.js} +1 -1
  30. package/dist/assets/{base32-BPfgmw66.js → base32-BnPQ4q4v.js} +1 -1
  31. package/dist/assets/{branding-CJx0esf8.js → branding-BHziMdwk.js} +2 -2
  32. package/dist/assets/{branding-DFhJVvNX.js → branding-CbgACClH.js} +2 -2
  33. package/dist/assets/{bundle-avatar-BbIyJr7P.js → bundle-avatar-D7QQIJpo.js} +1 -1
  34. package/dist/assets/{button-m03GMAJs.js → button-DXOAf3Np.js} +1 -1
  35. package/dist/assets/{click-to-copy-DmYkL7Ui.js → click-to-copy-DtGgy9Ua.js} +1 -1
  36. package/dist/assets/{collapse-FsvH0gRe.js → collapse-iOiHn4dy.js} +1 -1
  37. package/dist/assets/complete-CKdswLjZ.js +39 -0
  38. package/dist/assets/{component-BK7TQ5JB.js → component-amc-22MQ.js} +1 -1
  39. package/dist/assets/{config-Dl_53WnU.js → config-B_jIm01w.js} +1 -1
  40. package/dist/assets/{config-Cc-40NNR.js → config-D3UduD_R.js} +2 -2
  41. package/dist/assets/{config-navigation-DH93rn-r.js → config-navigation-PoVJgHNU.js} +3 -3
  42. package/dist/assets/{config-space-CxEu1ku3.js → config-space-D-DWHYER.js} +1 -1
  43. package/dist/assets/{confirm-DFwkkng7.js → confirm-DaR0Yx39.js} +1 -1
  44. package/dist/assets/{connect-tnlrEGOa.js → connect-CVfkW49h.js} +1 -1
  45. package/dist/assets/connect-CvEHPjqh.js +5 -0
  46. package/dist/assets/{connect-to-jqzhxL2-.js → connect-to-DrhAN5Nn.js} +1 -1
  47. package/dist/assets/dashboard-B_QqB4aw.js +239 -0
  48. package/dist/assets/{de-CEKbJD3-.js → de-EYXdEi3Y.js} +1 -1
  49. package/dist/assets/{delete-confirm-cVLum8Er.js → delete-confirm-DHB0S_Co.js} +1 -1
  50. package/dist/assets/{did-address-BI9LYTx-.js → did-address-mv0Qw7hC.js} +1 -1
  51. package/dist/assets/domain-BR9srj-p.js +9 -0
  52. package/dist/assets/domain-action-card-DtwNOaxH.js +28 -0
  53. package/dist/assets/domains-Bg_t1pz-.js +1 -0
  54. package/dist/assets/dot-D3X4DSlo.js +7 -0
  55. package/dist/assets/{email-9P_7A90f.js → email-DiuMAA8U.js} +2 -2
  56. package/dist/assets/{es-dvMygD-W.js → es-3jqVamM8.js} +1 -1
  57. package/dist/assets/{exchange-passport-CfsGf2j7.js → exchange-passport-Bcw--2wm.js} +1 -1
  58. package/dist/assets/{fr-BvFd5xp9.js → fr-CUcR-yNv.js} +1 -1
  59. package/dist/assets/{fuel-DOrn9jKI.js → fuel-BitXgq2D.js} +1 -1
  60. package/dist/assets/{gen-access-key-Ddbn2A92.js → gen-access-key-CrHniwdW.js} +1 -1
  61. package/dist/assets/{get-safe-url-BcH2iukm.js → get-safe-url-BRocR2aJ.js} +1 -1
  62. package/dist/assets/{get-safe-url-OaLLn0UN.js → get-safe-url-DYtntqqo.js} +1 -1
  63. package/dist/assets/hi-DNldhMTl.js +5 -0
  64. package/dist/assets/{home-CJ28zTIJ.js → home-jh95SgT7.js} +1 -1
  65. package/dist/assets/{id-B1Mq_eQI.js → id-CmSIFhX-.js} +1 -1
  66. package/dist/assets/iframe-BlPuY8Pu.js +1 -0
  67. package/dist/assets/{index-BmR2oN4p.js → index-BDcuaL48.js} +5 -5
  68. package/dist/assets/{index-CeU2W9XY.js → index-BO7CJLK3.js} +8 -8
  69. package/dist/assets/{index-BQ8PIDUu.js → index-BWshat_T.js} +7 -7
  70. package/dist/assets/{index-BBKe69-Z.js → index-BXkKeWVW.js} +1 -1
  71. package/dist/assets/index-B_y3Xcdb.js +55 -0
  72. package/dist/assets/{index-Bi8r1T8R.js → index-Bi-YrbEk.js} +3 -3
  73. package/dist/assets/{index-D3iGbfL9.js → index-Bv8sds6g.js} +1 -1
  74. package/dist/assets/{index-DwswX2WL.js → index-C0w1ugDi.js} +1 -1
  75. package/dist/assets/{index-d-GNQQ24.js → index-CZOVduSH.js} +1 -1
  76. package/dist/assets/{index-DPmpjBeE.js → index-Cgdb1aGn.js} +4 -4
  77. package/dist/assets/{index-DfO-sKO8.js → index-CleFkLt8.js} +1 -1
  78. package/dist/assets/{index-DxVAvQEw.js → index-CqRVUIz0.js} +1 -1
  79. package/dist/assets/{index-DK8EXxrQ.js → index-D0TzEmpA.js} +2 -2
  80. package/dist/assets/{index-BoYbZj00.js → index-D3Od1Ju7.js} +9 -9
  81. package/dist/assets/{index-BEVde8cE.js → index-DO4zGWKz.js} +1 -1
  82. package/dist/assets/{index-D-mbJPLJ.js → index-DYlN9Brg.js} +1 -1
  83. package/dist/assets/{index-BXdw6keY.js → index-RDZtjGNC.js} +1 -1
  84. package/dist/assets/{index-BiIZw9KG.js → index-YuW8IExe.js} +7 -7
  85. package/dist/assets/index-c0hdujdn.js +10 -0
  86. package/dist/assets/{index-C2sWzOOC.js → index-hjv3dFXZ.js} +1 -1
  87. package/dist/assets/{invitation-DmNSx8lT.js → invitation-BtuI3wbb.js} +2 -2
  88. package/dist/assets/{invite-BRV4-5NB.js → invite-CelTXbxx.js} +1 -1
  89. package/dist/assets/{issue-passport-DVYjG5SL.js → issue-passport-DGinrMdr.js} +1 -1
  90. package/dist/assets/{item-F_qGx0RW.js → item-BhN-qZd_.js} +2 -2
  91. package/dist/assets/{ja-CCKVmbEX.js → ja-D-vAGmH7.js} +1 -1
  92. package/dist/assets/{ko-A_w8tIEg.js → ko-DpdamIdS.js} +1 -1
  93. package/dist/assets/{landing-page-CUrvCtHZ.js → landing-page-D_TLvQ3s.js} +1 -1
  94. package/dist/assets/{layout-Dkaou_pj.js → layout-0pbi4f6l.js} +1 -1
  95. package/dist/assets/list-C_1TcitB.js +236 -0
  96. package/dist/assets/{list-Dq129hfR.js → list-DKIkIMue.js} +2 -2
  97. package/dist/assets/localization-CpjVJ6VE.js +1 -0
  98. package/dist/assets/{log-C_uY3dq9.js → log-DnUF9orj.js} +1 -1
  99. package/dist/assets/{logger-BYg6vYBA.js → logger-jMgD3u5g.js} +1 -1
  100. package/dist/assets/{login-D8Wk5up1.js → login-Boq_S2S7.js} +1 -1
  101. package/dist/assets/{login-oauth-callback-DMou-vp-.js → login-oauth-callback-CuSXnq1m.js} +1 -1
  102. package/dist/assets/{logo-uploader-CHTXjHOW.js → logo-uploader-DtAT8iaJ.js} +4 -4
  103. package/dist/assets/{lost-passport-DlnOD9y-.js → lost-passport-DuJeKcGu.js} +1 -1
  104. package/dist/assets/{open-window-CuyFfntO.js → open-window-DXP1LoPD.js} +1 -1
  105. package/dist/assets/{overview-B451HiB6.js → overview-DHcHPq6g.js} +2 -2
  106. package/dist/assets/{page-header-DpNvpd52.js → page-header-PO_g4wSK.js} +1 -1
  107. package/dist/assets/{passport-item-BWCHjFYy.js → passport-item-NMGbWwTG.js} +1 -1
  108. package/dist/assets/{permission-Cnn9EYOW.js → permission-BfddnDBs.js} +1 -1
  109. package/dist/assets/{preferences-Cqm2olsT.js → preferences-Nt4L8Zgv.js} +1 -1
  110. package/dist/assets/{profile-embed-CcuuyEXm.js → profile-embed-C9nHKFrf.js} +1 -1
  111. package/dist/assets/pt-CEcOQeEC.js +5 -0
  112. package/dist/assets/publish-resource-BL83FldI.js +1 -0
  113. package/dist/assets/{react-beautiful-dnd.esm-cfY5JZV6.js → react-beautiful-dnd.esm-0e7VDGmi.js} +1 -1
  114. package/dist/assets/ru-83xhwzPD.js +5 -0
  115. package/dist/assets/runtime-FDEoUn52.js +1 -0
  116. package/dist/assets/sdk-CytUSheP.js +1 -0
  117. package/dist/assets/{security-C8vye2TA.js → security-BuN2nUoZ.js} +4 -4
  118. package/dist/assets/{session-B2z_IWIe.js → session-DUt5rVEy.js} +1 -1
  119. package/dist/assets/setup-BB0XLqW9.js +30 -0
  120. package/dist/assets/{spaces-DMMN97uo.js → spaces-MprwX1Iq.js} +1 -1
  121. package/dist/assets/start-C7CIzLBY.js +187 -0
  122. package/dist/assets/{starting-progress-DeFtXRb_.js → starting-progress-BJCVRFkE.js} +2 -2
  123. package/dist/assets/{status-C73nIKwK.js → status-Bo92foK0.js} +1 -1
  124. package/dist/assets/{step-actions-CqbOBcvS.js → step-actions-D__rjlW_.js} +1 -1
  125. package/dist/assets/{studio-CiFHrC57.js → studio-kVKG7W3n.js} +1 -1
  126. package/dist/assets/{switch-control-DnNP5DPe.js → switch-control-BgwZFVCJ.js} +1 -1
  127. package/dist/assets/{table-tips-hNIkakER.js → table-tips-nPiIcvAy.js} +1 -1
  128. package/dist/assets/th-BQLlyW1N.js +5 -0
  129. package/dist/assets/{traffic-B7XP49Y5.js → traffic-Cd92p-Xb.js} +2 -2
  130. package/dist/assets/{transfer-BfUTfR-d.js → transfer-U9z5JNMl.js} +1 -1
  131. package/dist/assets/{unsubscribe-Bf4dBSoS.js → unsubscribe-BmAshFCd.js} +1 -1
  132. package/dist/assets/use-blocklet-logo-3VH4RBTr.js +2 -0
  133. package/dist/assets/useAsync-CDjYBiwf.js +1 -0
  134. package/dist/assets/useAsync-dC0jHVWO.js +1 -0
  135. package/dist/assets/{useLocalStorage-BRd3tKN9.js → useLocalStorage-DotMjDUB.js} +1 -1
  136. package/dist/assets/{user-center-Ck0gNc-m.js → user-center-8aoMSkJ_.js} +2 -2
  137. package/dist/assets/{util-CVjZG67N.js → util-CiTimo-i.js} +1 -1
  138. package/dist/assets/{util-DWicJSOi.js → util-CuK9uaNS.js} +1 -1
  139. package/dist/assets/{vendor-arcblock-DPRICUXM.js → vendor-arcblock-Ca95GLVH.js} +31 -45
  140. package/dist/assets/{vendor-hooks-Zkb4Ilbj.js → vendor-hooks-DpwFseeF.js} +1 -1
  141. package/dist/assets/{vendor-ux-did-connect-Ck9lzrbN.js → vendor-ux-did-connect-D0L9YnHn.js} +6 -6
  142. package/dist/assets/vi-DgWAr6FA.js +5 -0
  143. package/dist/assets/wrap-locale-QBHz1ECC.js +1 -0
  144. package/dist/assets/{zh-Cti0XXui.js → zh-BL80PoOh.js} +2 -2
  145. package/dist/assets/{zh-tw-BLcDG99i.js → zh-tw-Dg5z1DFE.js} +1 -1
  146. package/dist/index.html +4 -4
  147. package/dist/service-worker.js +1 -1
  148. package/package.json +31 -31
  149. package/dist/assets/add-resource-BE6wXeqY.js +0 -1
  150. package/dist/assets/appearance-Czknho-C.js +0 -1
  151. package/dist/assets/complete-C834qh46.js +0 -39
  152. package/dist/assets/connect-CX2tLgwf.js +0 -5
  153. package/dist/assets/dashboard-Dc5xtJBc.js +0 -239
  154. package/dist/assets/domain-7fDuc1TD.js +0 -9
  155. package/dist/assets/domain-action-card-CoP_GfSR.js +0 -28
  156. package/dist/assets/domains-CGg1il1q.js +0 -1
  157. package/dist/assets/dot-BB5occkV.js +0 -7
  158. package/dist/assets/hi-C51yBXa5.js +0 -5
  159. package/dist/assets/iframe-D0kv9-rE.js +0 -1
  160. package/dist/assets/index-C26jJx3Z.js +0 -55
  161. package/dist/assets/index-DoCu_ga_.js +0 -10
  162. package/dist/assets/list-CUP3NH6M.js +0 -236
  163. package/dist/assets/localization-Cl5vfs2R.js +0 -1
  164. package/dist/assets/pt-7HHecjdA.js +0 -5
  165. package/dist/assets/publish-resource-BdSfAE92.js +0 -1
  166. package/dist/assets/ru-Bw8FVC4M.js +0 -5
  167. package/dist/assets/runtime-BKK1_RAt.js +0 -1
  168. package/dist/assets/sdk-CXaHNlMH.js +0 -1
  169. package/dist/assets/setup-CS2QWFMb.js +0 -30
  170. package/dist/assets/start-6o3_Gxa0.js +0 -187
  171. package/dist/assets/th-DyW-mYrC.js +0 -5
  172. package/dist/assets/use-blocklet-logo-Bv56-gH-.js +0 -2
  173. package/dist/assets/useAsync-DnXpD472.js +0 -1
  174. package/dist/assets/vi-bzer6J4H.js +0 -5
  175. package/dist/assets/wrap-locale-HcPVeI43.js +0 -1
@@ -4,4 +4,4 @@ import{g as be,r as v,a as _t}from"./vendor-react-DEoibe3W.js";import{d as Le,t
4
4
  *
5
5
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
6
  * Released under the MIT license
7
- */(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var y=n(h[0]);if(m=(o.read||o)(m,y)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[y]=m,c===y)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(Fe);var Ot=Fe.exports;const Yr=be(Ot);var Rt=typeof Element<"u",Ct=typeof Map=="function",Tt=typeof Set=="function",Pt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function X(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!X(e[n],t[n]))return!1;return!0}var o;if(Ct&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!X(n.value[1],t.get(n.value[0])))return!1;return!0}if(Tt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Pt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(Rt&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!X(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var At=function(t,r){try{return X(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Mt=be(At);var xt=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ve=function(e,t){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ve(e,t)};function He(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ve(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return _=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},_.apply(this,arguments)};function ne(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Be(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Ie(e,t){return function(r,n){t(r,n,e)}}function We(e,t,r,n,i,o){function a(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(E){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(E||null))};var y=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(s=a(y.get))&&(l.get=s),(s=a(y.set))&&(l.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function Ne(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Ge(e){return typeof e=="symbol"?e:"".concat(e)}function qe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function k(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function J(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ie=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function $e(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ie(t,e,r)}function H(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function ee(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function w(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function Ve(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(y,E){o.push([d,m,y,E])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ke(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function Je(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof H=="function"?H(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function Ye(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var jt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},he=function(e){return he=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},he(e)};function Xe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=he(e),n=0;n<r.length;n++)r[n]!=="default"&&ie(t,e,r[n]);return jt(t,e),t}function Ze(e){return e&&e.__esModule?e:{default:e}}function Qe(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function et(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function tt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function rt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Dt=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function nt(e){function t(o){e.error=e.hasError?new Dt(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function it(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Lt={__extends:He,__assign:_,__rest:ne,__decorate:Be,__param:Ie,__esDecorate:We,__runInitializers:Ne,__propKey:Ge,__setFunctionName:qe,__metadata:Ue,__awaiter:k,__generator:J,__createBinding:ie,__exportStar:$e,__values:H,__read:g,__spread:Ke,__spreadArrays:ee,__spreadArray:w,__await:G,__asyncGenerator:Ve,__asyncDelegator:ke,__asyncValues:Je,__makeTemplateObject:Ye,__importStar:Xe,__importDefault:Ze,__classPrivateFieldGet:Qe,__classPrivateFieldSet:et,__classPrivateFieldIn:tt,__addDisposableResource:rt,__disposeResources:nt,__rewriteRelativeImportExtension:it},zt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:rt,get __assign(){return _},__asyncDelegator:ke,__asyncGenerator:Ve,__asyncValues:Je,__await:G,__awaiter:k,__classPrivateFieldGet:Qe,__classPrivateFieldIn:tt,__classPrivateFieldSet:et,__createBinding:ie,__decorate:Be,__disposeResources:nt,__esDecorate:We,__exportStar:$e,__extends:He,__generator:J,__importDefault:Ze,__importStar:Xe,__makeTemplateObject:Ye,__metadata:Ue,__param:Ie,__propKey:Ge,__read:g,__rest:ne,__rewriteRelativeImportExtension:it,__runInitializers:Ne,__setFunctionName:qe,__spread:Ke,__spreadArray:w,__spreadArrays:ee,__values:H,default:Lt},Symbol.toStringTag,{value:"Module"}));var B=function(e){return typeof e=="function"},Ft=function(e){return typeof e=="string"},oe=function(e){return typeof e=="number"},Ht=function(e){return typeof e>"u"};function j(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const V=xt(v.useEffect);var ot=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,V(function(){!r&&i&&(l.current=!0,e.run.apply(e,w([],g(a),!1)))},[i]),V(function(){l.current||r||(l.current=!0,c?c():e.refresh())},w([],g(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};ot.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function pe(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function we(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!pe(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},Z=new Map,Bt=function(e,t,r){var n=Z.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){Z.delete(e)},t)),Z.set(e,_(_({},r),{timer:i}))},It=function(e){return Z.get(e)},Q=new Map,Wt=function(e){return Q.get(e)},Nt=function(e,t){Q.set(e,t),t.then(function(r){return Q.delete(e),r}).catch(function(){Q.delete(e)})},F={},Gt=function(e,t){F[e]&&F[e].forEach(function(r){return r(t)})},le=function(e,t){return F[e]||(F[e]=[]),F[e].push(t),function(){var n=F[e].indexOf(t);F[e].splice(n,1)}},qt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):Bt(d,i,h),Gt(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):It(d)};return we(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=le(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=Wt(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,w([],g(h),!1)),l.current=m,Nt(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=le(r,function(y){e.setState({data:y})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=le(r,function(m){e.setState({data:m})}))}}:{}},Ut=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=Le(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,w([],g(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},$t=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},z=!!(typeof window<"u"&&window.document&&window.document.createElement);function _e(){return z?document.visibilityState!=="hidden":!0}var $=[];function Kt(e){return $.push(e),function(){var r=$.indexOf(e);$.splice(r,1)}}if(z){var Vt=function(){if(_e())for(var e=0;e<$.length;e++){var t=$[e];t()}};window.addEventListener("visibilitychange",Vt,!1)}var kt=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return V(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!_e()?f.current=Kt(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function Jt(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,w([],g(n),!1)),setTimeout(function(){r=!1},t))}}function Yt(){return z&&typeof navigator.onLine<"u"?navigator.onLine:!0}var K=[];function Xt(e){return K.push(e),function(){var r=K.indexOf(e);r>-1&&K.splice(r,1)}}if(z){var Ce=function(){if(!(!_e()||!Yt()))for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",Ce,!1),window.addEventListener("focus",Ce,!1)}var Zt=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=Jt(e.refresh.bind(e),i);o.current=Xt(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},Qt=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},er=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=ze(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,w([],g(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},tr=function(e){v.useEffect(function(){e==null||e()},[])},at=function(){var e=g(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},rr=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=_(_(_({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=_(_({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,w([o],g(r),!1))}).filter(Boolean);return Object.assign.apply(Object,w([{}],g(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return k(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,y,E,b,O,T,R,P,D;return J(this,function(C){switch(C.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=ne(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(_({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),C.label=1;case 1:return C.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,w([],g(t),!1))),[4,l];case 2:return s=C.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(E=(y=this.options).onSuccess)===null||E===void 0||E.call(y,s,t),this.runPluginHandler("onSuccess",s,t),(O=(b=this.options).onFinally)===null||O===void 0||O.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=C.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(R=(T=this.options).onError)===null||R===void 0||R.call(T,p,t),this.runPluginHandler("onError",p,t),(D=(P=this.options).onFinally)===null||D===void 0||D.call(P,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,w([],g(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=B(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function nr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=ne(t,["manual","ready"]),f=_({manual:i,ready:a},u),c=L(e),l=at(),s=we(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new rr(c,f,l,Object.assign.apply(Object,w([{}],g(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),tr(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,w([],g(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:j(s.cancel.bind(s)),refresh:j(s.refresh.bind(s)),refreshAsync:j(s.refreshAsync.bind(s)),run:j(s.run.bind(s)),runAsync:j(s.runAsync.bind(s)),mutate:j(s.mutate.bind(s))}}function ir(e,t,r){return nr(e,t,w(w([],g([]),!1),[Ut,$t,kt,Zt,er,ot,qt,Qt],!1))}function or(e){return B(e[Symbol.asyncIterator])}function Xr(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return k(this,void 0,void 0,function(){var o;return J(this,function(a){switch(a.label){case 0:if(!or(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function ar(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Zr(e){var t=g(ar(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function I(e,t){if(z){if(!e)return t;var r;return B(e)?r=e():"current"in e?r=e.current:r=e,r}}var ut=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return I(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!pe(a.current,s)||!pe(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},Ee=ut(v.useEffect),de=function(e){if(!e)return 0;var t=Et(e).valueOf()-Date.now();return t<0?0:t},ur=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Qr=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return oe(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=g(v.useState(function(){return de(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(de(f));var h=setInterval(function(){var m,y=de(f);s(y),y===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return ur(l)},[l]);return[l,d]};function cr(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Le(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function en(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=cr(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var fr=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),Mt(e,t)};function me(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);Ee(function(){if(i){var a=I(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function tn(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var sr=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Te=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},lr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},rn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=g(v.useState(),2),y=m[0],E=m[1],b=g(v.useState(!1),2),O=b[0],T=b[1],R=u==="top",P=v.useRef(),D=v.useRef(0),C=v.useMemo(function(){return n?n(y):!1},[y]),A=ir(function(M){return k(void 0,void 0,void 0,function(){var S,x,N,U;return J(this,function(Re){switch(Re.label){case 0:return[4,e(M)];case 1:return S=Re.sent(),E(M?_(_({},S),{list:R?w(w([],g(S.list),!1),g((N=M.list)!==null&&N!==void 0?N:[]),!1):w(w([],g((U=M.list)!==null&&U!==void 0?U:[]),!1),g(S.list),!1)}):_(_({},S),{list:w([],g((x=S.list)!==null&&x!==void 0?x:[]),!1)})),[2,S]}})})},{manual:l,onFinally:function(M,S,x){T(!1),h==null||h(S,x)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(M){setTimeout(function(){if(R){var S=I(r);if(S=S===document?document.documentElement:S,S){var x=Te(S);S.scrollTo(0,x-D.current)}}else Oe()}),p==null||p(M)},onError:function(M){return d==null?void 0:d(M)}}),Y=A.loading,ue=A.error,ce=A.run,Se=A.runAsync,yt=A.cancel,fe=j(function(){C||(T(!0),ce(y))}),gt=j(function(){return C?Promise.reject():(T(!0),Se(y))}),bt=function(){return T(!1),ce()},wt=function(){return T(!1),Se()},Oe=function(){var M=I(r);if(M){var S=M===document?document.documentElement:M,x=sr(S),N=Te(S),U=lr(S);R?(P.current!==void 0&&P.current>x&&x<=o&&fe(),P.current=x,D.current=N-x):N-x<=U+o&&fe()}};return me("scroll",function(){Y||O||Oe()},{target:r}),V(function(){ce()},w([],g(c),!1)),{data:y,loading:!O&&Y,error:ue,loadingMore:O,noMore:C,loadMore:fe,loadMoreAsync:gt,reload:j(bt),reloadAsync:j(wt),mutate:E,cancel:yt}},nn=function(e,t,r){r===void 0&&(r={});var n=j(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!oe(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},dr=function(e,t,r){var n=v.useRef(),i=v.useRef(0);fr(t,n.current)||(i.current+=1),n.current=t,Ee(e,[i.current],r)},vr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),ct={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:vr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},ye={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?ct.meta.includes(e.keyCode):e.metaKey}};function ft(e){return Ft(e)||oe(e)}function hr(e){var t=Object.keys(ye).reduce(function(r,n){return ye[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Pe(e,t,r){var n,i;if(!e.key)return!1;if(oe(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=H(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=ye[c],s=ct[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&hr(e)===o.length?t:!1:a===o.length?t:!1}function pr(e,t){return B(e)?e:ft(e)?function(r){return Pe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Pe(r,n,t)})}:function(){return!!e}}var mr=["keydown"];function on(e,t,r){var n=r||{},i=n.events,o=i===void 0?mr:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);dr(function(){var d,h,m,y=I(a,window);if(y){var E=function(R){var P,D=pr(p.current,f),C=D(R),A=ft(C)?C:R.key;if(C)return(P=s.current)===null||P===void 0?void 0:P.call(s,R,A)};try{for(var b=H(o),O=b.next();!O.done;O=b.next()){var T=O.value;(m=y==null?void 0:y.addEventListener)===null||m===void 0||m.call(y,T,E,l)}}catch(R){d={error:R}}finally{try{O&&!O.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var R,P,D;try{for(var C=H(o),A=C.next();!A.done;A=C.next()){var Y=A.value;(D=y==null?void 0:y.removeEventListener)===null||D===void 0||D.call(y,Y,E,l)}}catch(ue){R={error:ue}}finally{try{A&&!A.done&&(P=C.return)&&P.call(C)}finally{if(R)throw R.error}}}}},[o],a)}var Ae="AHOOKS_SYNC_STORAGE_EVENT_NAME";function st(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(O){f(O)}return B(n.defaultValue)?n.defaultValue():n.defaultValue}var p=g(v.useState(s),2),d=p[0],h=p[1];V(function(){h(s())},[r]);var m=function(b){var O=B(b)?b(d):b;a||h(O);try{var T=void 0,R=i==null?void 0:i.getItem(r);Ht(O)?(T=null,i==null||i.removeItem(r)):(T=c(O),i==null||i.setItem(r,T)),dispatchEvent(new CustomEvent(Ae,{detail:{key:r,newValue:T,oldValue:R,storageArea:i}}))}catch(P){f(P)}},y=function(b){b.key!==r||b.storageArea!==i||h(s())},E=function(b){y(b.detail)};return me("storage",y,{enable:a}),me(Ae,E,{enable:a}),[d,j(m)]}return t}var an=st(function(){return z?localStorage:void 0});function yr(e){var t=v.useRef(0),r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var gr=function(e,t){return!Object.is(e,t)};function un(e,t){t===void 0&&(t=gr);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Me=new WeakMap,xe=new WeakMap;function lt(e,t){var r=Me.get(e);if(r)return r;if(xe.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:St(u)||Array.isArray(u)?lt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Me.set(e,n),xe.set(n,e),n}function cn(e){var t=at(),r=v.useRef(e),n=we(function(){return lt(r.current,function(){t()})},[]);return n}var fn=st(function(){return z?sessionStorage:void 0}),sn=function(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=j(function(o){n(function(a){var u=B(o)?o(a):o;return u?_(_({},a),u):a})});return[r,i]},dt=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),ge=typeof window<"u"&&typeof document<"u"&&window.document===document,te=function(){return typeof se<"u"&&se.Math===Math?se:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),br=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(te):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),wr=2;function _r(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){br(o)}function u(){var f=Date.now();if(r){if(f-i<wr)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var Er=20,Sr=["top","right","bottom","left","width","height","size","weight"],Or=typeof MutationObserver<"u",Rr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_r(this.refresh.bind(this),Er)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ge||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Or?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ge||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=Sr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||te},ht=ae(0,0,0,0);function re(e){return parseFloat(e)||0}function je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+re(o)},0)}function Cr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=re(a)}return r}function Tr(e){var t=e.getBBox();return ae(0,0,t.width,t.height)}function Pr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return ht;var n=q(e).getComputedStyle(e),i=Cr(n),o=i.left+i.right,a=i.top+i.bottom,u=re(n.width),f=re(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=je(n,"left","right")+o),Math.round(f+a)!==r&&(f-=je(n,"top","bottom")+a)),!Mr(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return ae(i.left,i.top,u,f)}var Ar=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&typeof e.getBBox=="function"}}();function Mr(e){return e===q(e).document.documentElement}function xr(e){return ge?Ar(e)?Tr(e):Pr(e):ht}function jr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return vt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function ae(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Dr=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ae(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Lr=function(){function e(t,r){var n=jr(r);vt(this,{target:t,contentRect:n})}return e}(),zr=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new dt,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Dr(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Lr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pt=typeof WeakMap<"u"?new WeakMap:new dt,mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Rr.getInstance(),n=new zr(t,r,this);pt.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mt.prototype[e]=function(){var t;return(t=pt.get(this))[e].apply(t,arguments)}});var Fr=function(){return typeof te.ResizeObserver<"u"?te.ResizeObserver:mt}(),Hr=ut(v.useLayoutEffect),Br=z?Hr:Ee;function ln(e){var t=g(yr(function(){var i=I(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return Br(function(){var i=I(e);if(i){var o=new Fr(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function dn(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return ze(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var Ir=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Wr=Ir,De={"text/plain":"Text","text/html":"Url",default:"Text"},Nr="Copy to clipboard: #{key}, Enter";function Gr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function qr(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=Wr(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=De[t.format]||De.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Gr("message"in t?t.message:Nr),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Ur=qr;const vn=be(Ur),hn=_t(zt);function $r(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Kr(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=$r(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return _(_({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function Vr(e,t){t===void 0&&(t=[]);var r=Kr(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}var pn=function(e,t){t===void 0&&(t=[]);var r=v.useState(0),n=r[0],i=r[1],o=Vr(e,ee(t,[n])),a=o.loading,u=v.useCallback(function(){a||i(function(f){return f+1})},ee(t,[a]));return _(_({},o),{retry:u})};export{on as A,He as B,Yr as C,k as D,_ as E,J as F,pn as G,tn as H,Be as _,cn as a,ln as b,vn as c,L as d,cr as e,we as f,nn as g,en as h,Xr as i,an as j,at as k,ir as l,tr as m,un as n,V as o,Mt as p,dn as q,fn as r,W as s,rn as t,j as u,Zr as v,Qr as w,sn as x,hn as y,Vr as z};
7
+ */(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var y=n(h[0]);if(m=(o.read||o)(m,y)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[y]=m,c===y)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(Fe);var Ot=Fe.exports;const Yr=be(Ot);var Rt=typeof Element<"u",Ct=typeof Map=="function",Tt=typeof Set=="function",Pt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function X(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!X(e[n],t[n]))return!1;return!0}var o;if(Ct&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;for(o=e.entries();!(n=o.next()).done;)if(!X(n.value[1],t.get(n.value[0])))return!1;return!0}if(Tt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(n=o.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Pt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;if(Rt&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((i[n]==="_owner"||i[n]==="__v"||i[n]==="__o")&&e.$$typeof)&&!X(e[i[n]],t[i[n]]))return!1;return!0}return e!==e&&t!==t}var At=function(t,r){try{return X(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Mt=be(At);var xt=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ve=function(e,t){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ve(e,t)};function He(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ve(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _=function(){return _=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},_.apply(this,arguments)};function ne(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Be(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Ie(e,t){return function(r,n){t(r,n,e)}}function We(e,t,r,n,i,o){function a(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(E){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(E||null))};var y=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(s=a(y.get))&&(l.get=s),(s=a(y.set))&&(l.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function Ne(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Ge(e){return typeof e=="symbol"?e:"".concat(e)}function qe(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ue(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function k(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function J(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ie=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function $e(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ie(t,e,r)}function H(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Ke(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function ee(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function w(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function Ve(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(y,E){o.push([d,m,y,E])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ke(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function Je(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof H=="function"?H(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function Ye(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var jt=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},he=function(e){return he=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},he(e)};function Xe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=he(e),n=0;n<r.length;n++)r[n]!=="default"&&ie(t,e,r[n]);return jt(t,e),t}function Ze(e){return e&&e.__esModule?e:{default:e}}function Qe(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function et(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function tt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function rt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Dt=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function nt(e){function t(o){e.error=e.hasError?new Dt(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function it(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Lt={__extends:He,__assign:_,__rest:ne,__decorate:Be,__param:Ie,__esDecorate:We,__runInitializers:Ne,__propKey:Ge,__setFunctionName:qe,__metadata:Ue,__awaiter:k,__generator:J,__createBinding:ie,__exportStar:$e,__values:H,__read:g,__spread:Ke,__spreadArrays:ee,__spreadArray:w,__await:G,__asyncGenerator:Ve,__asyncDelegator:ke,__asyncValues:Je,__makeTemplateObject:Ye,__importStar:Xe,__importDefault:Ze,__classPrivateFieldGet:Qe,__classPrivateFieldSet:et,__classPrivateFieldIn:tt,__addDisposableResource:rt,__disposeResources:nt,__rewriteRelativeImportExtension:it},zt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:rt,get __assign(){return _},__asyncDelegator:ke,__asyncGenerator:Ve,__asyncValues:Je,__await:G,__awaiter:k,__classPrivateFieldGet:Qe,__classPrivateFieldIn:tt,__classPrivateFieldSet:et,__createBinding:ie,__decorate:Be,__disposeResources:nt,__esDecorate:We,__exportStar:$e,__extends:He,__generator:J,__importDefault:Ze,__importStar:Xe,__makeTemplateObject:Ye,__metadata:Ue,__param:Ie,__propKey:Ge,__read:g,__rest:ne,__rewriteRelativeImportExtension:it,__runInitializers:Ne,__setFunctionName:qe,__spread:Ke,__spreadArray:w,__spreadArrays:ee,__values:H,default:Lt},Symbol.toStringTag,{value:"Module"}));var B=function(e){return typeof e=="function"},Ft=function(e){return typeof e=="string"},oe=function(e){return typeof e=="number"},Ht=function(e){return typeof e>"u"};function j(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const V=xt(v.useEffect);var ot=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,V(function(){!r&&i&&(l.current=!0,e.run.apply(e,w([],g(a),!1)))},[i]),V(function(){l.current||r||(l.current=!0,c?c():e.refresh())},w([],g(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};ot.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function pe(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}function we(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!pe(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},Z=new Map,Bt=function(e,t,r){var n=Z.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){Z.delete(e)},t)),Z.set(e,_(_({},r),{timer:i}))},It=function(e){return Z.get(e)},Q=new Map,Wt=function(e){return Q.get(e)},Nt=function(e,t){Q.set(e,t),t.then(function(r){return Q.delete(e),r}).catch(function(){Q.delete(e)})},F={},Gt=function(e,t){F[e]&&F[e].forEach(function(r){return r(t)})},le=function(e,t){return F[e]||(F[e]=[]),F[e].push(t),function(){var n=F[e].indexOf(t);F[e].splice(n,1)}},qt=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):Bt(d,i,h),Gt(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):It(d)};return we(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=le(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=Wt(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,w([],g(h),!1)),l.current=m,Nt(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=le(r,function(y){e.setState({data:y})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=le(r,function(m){e.setState({data:m})}))}}:{}},Ut=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=Le(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,w([],g(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},$t=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},z=!!(typeof window<"u"&&window.document&&window.document.createElement);function _e(){return z?document.visibilityState!=="hidden":!0}var $=[];function Kt(e){return $.push(e),function(){var r=$.indexOf(e);$.splice(r,1)}}if(z){var Vt=function(){if(_e())for(var e=0;e<$.length;e++){var t=$[e];t()}};window.addEventListener("visibilitychange",Vt,!1)}var kt=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return V(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!_e()?f.current=Kt(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function Jt(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,w([],g(n),!1)),setTimeout(function(){r=!1},t))}}function Yt(){return z&&typeof navigator.onLine<"u"?navigator.onLine:!0}var K=[];function Xt(e){return K.push(e),function(){var r=K.indexOf(e);r>-1&&K.splice(r,1)}}if(z){var Ce=function(){if(!(!_e()||!Yt()))for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",Ce,!1),window.addEventListener("focus",Ce,!1)}var Zt=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=Jt(e.refresh.bind(e),i);o.current=Xt(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},Qt=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},er=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=ze(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,w([],g(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},tr=function(e){v.useEffect(function(){e==null||e()},[])},at=function(){var e=g(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},rr=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=_(_(_({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=_(_({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,w([o],g(r),!1))}).filter(Boolean);return Object.assign.apply(Object,w([{}],g(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return k(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,y,E,b,O,T,R,P,D;return J(this,function(C){switch(C.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=ne(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(_({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),C.label=1;case 1:return C.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,w([],g(t),!1))),[4,l];case 2:return s=C.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(E=(y=this.options).onSuccess)===null||E===void 0||E.call(y,s,t),this.runPluginHandler("onSuccess",s,t),(O=(b=this.options).onFinally)===null||O===void 0||O.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=C.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(R=(T=this.options).onError)===null||R===void 0||R.call(T,p,t),this.runPluginHandler("onError",p,t),(D=(P=this.options).onFinally)===null||D===void 0||D.call(P,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,w([],g(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,w([],g(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=B(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function nr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=ne(t,["manual","ready"]),f=_({manual:i,ready:a},u),c=L(e),l=at(),s=we(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new rr(c,f,l,Object.assign.apply(Object,w([{}],g(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),tr(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,w([],g(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:j(s.cancel.bind(s)),refresh:j(s.refresh.bind(s)),refreshAsync:j(s.refreshAsync.bind(s)),run:j(s.run.bind(s)),runAsync:j(s.runAsync.bind(s)),mutate:j(s.mutate.bind(s))}}function ir(e,t,r){return nr(e,t,w(w([],g([]),!1),[Ut,$t,kt,Zt,er,ot,qt,Qt],!1))}function or(e){return B(e[Symbol.asyncIterator])}function Xr(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return k(this,void 0,void 0,function(){var o;return J(this,function(a){switch(a.label){case 0:if(!or(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function ar(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Zr(e){var t=g(ar(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function I(e,t){if(z){if(!e)return t;var r;return B(e)?r=e():"current"in e?r=e.current:r=e,r}}var ut=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return I(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!pe(a.current,s)||!pe(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},Ee=ut(v.useEffect),de=function(e){if(!e)return 0;var t=Et(e).valueOf()-Date.now();return t<0?0:t},ur=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Qr=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return oe(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=g(v.useState(function(){return de(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(de(f));var h=setInterval(function(){var m,y=de(f);s(y),y===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return ur(l)},[l]);return[l,d]};function cr(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Le(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function en(e,t){var r=g(v.useState(e),2),n=r[0],i=r[1],o=cr(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var fr=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),Mt(e,t)};function me(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);Ee(function(){if(i){var a=I(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function tn(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var sr=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Te=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},lr=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},rn=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=g(v.useState(),2),y=m[0],E=m[1],b=g(v.useState(!1),2),O=b[0],T=b[1],R=u==="top",P=v.useRef(),D=v.useRef(0),C=v.useMemo(function(){return n?n(y):!1},[y]),A=ir(function(M){return k(void 0,void 0,void 0,function(){var S,x,N,U;return J(this,function(Re){switch(Re.label){case 0:return[4,e(M)];case 1:return S=Re.sent(),E(M?_(_({},S),{list:R?w(w([],g(S.list),!1),g((N=M.list)!==null&&N!==void 0?N:[]),!1):w(w([],g((U=M.list)!==null&&U!==void 0?U:[]),!1),g(S.list),!1)}):_(_({},S),{list:w([],g((x=S.list)!==null&&x!==void 0?x:[]),!1)})),[2,S]}})})},{manual:l,onFinally:function(M,S,x){T(!1),h==null||h(S,x)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(M){setTimeout(function(){if(R){var S=I(r);if(S=S===document?document.documentElement:S,S){var x=Te(S);S.scrollTo(0,x-D.current)}}else Oe()}),p==null||p(M)},onError:function(M){return d==null?void 0:d(M)}}),Y=A.loading,ue=A.error,ce=A.run,Se=A.runAsync,yt=A.cancel,fe=j(function(){C||(T(!0),ce(y))}),gt=j(function(){return C?Promise.reject():(T(!0),Se(y))}),bt=function(){return T(!1),ce()},wt=function(){return T(!1),Se()},Oe=function(){var M=I(r);if(M){var S=M===document?document.documentElement:M,x=sr(S),N=Te(S),U=lr(S);R?(P.current!==void 0&&P.current>x&&x<=o&&fe(),P.current=x,D.current=N-x):N-x<=U+o&&fe()}};return me("scroll",function(){Y||O||Oe()},{target:r}),V(function(){ce()},w([],g(c),!1)),{data:y,loading:!O&&Y,error:ue,loadingMore:O,noMore:C,loadMore:fe,loadMoreAsync:gt,reload:j(bt),reloadAsync:j(wt),mutate:E,cancel:yt}},nn=function(e,t,r){r===void 0&&(r={});var n=j(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!oe(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},dr=function(e,t,r){var n=v.useRef(),i=v.useRef(0);fr(t,n.current)||(i.current+=1),n.current=t,Ee(e,[i.current],r)},vr=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),ct={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:vr?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},ye={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?ct.meta.includes(e.keyCode):e.metaKey}};function ft(e){return Ft(e)||oe(e)}function hr(e){var t=Object.keys(ye).reduce(function(r,n){return ye[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Pe(e,t,r){var n,i;if(!e.key)return!1;if(oe(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=H(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=ye[c],s=ct[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&hr(e)===o.length?t:!1:a===o.length?t:!1}function pr(e,t){return B(e)?e:ft(e)?function(r){return Pe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Pe(r,n,t)})}:function(){return!!e}}var mr=["keydown"];function on(e,t,r){var n=r||{},i=n.events,o=i===void 0?mr:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);dr(function(){var d,h,m,y=I(a,window);if(y){var E=function(R){var P,D=pr(p.current,f),C=D(R),A=ft(C)?C:R.key;if(C)return(P=s.current)===null||P===void 0?void 0:P.call(s,R,A)};try{for(var b=H(o),O=b.next();!O.done;O=b.next()){var T=O.value;(m=y==null?void 0:y.addEventListener)===null||m===void 0||m.call(y,T,E,l)}}catch(R){d={error:R}}finally{try{O&&!O.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var R,P,D;try{for(var C=H(o),A=C.next();!A.done;A=C.next()){var Y=A.value;(D=y==null?void 0:y.removeEventListener)===null||D===void 0||D.call(y,Y,E,l)}}catch(ue){R={error:ue}}finally{try{A&&!A.done&&(P=C.return)&&P.call(C)}finally{if(R)throw R.error}}}}},[o],a)}var Ae="AHOOKS_SYNC_STORAGE_EVENT_NAME";function st(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(O){f(O)}return B(n.defaultValue)?n.defaultValue():n.defaultValue}var p=g(v.useState(s),2),d=p[0],h=p[1];V(function(){h(s())},[r]);var m=function(b){var O=B(b)?b(d):b;a||h(O);try{var T=void 0,R=i==null?void 0:i.getItem(r);Ht(O)?(T=null,i==null||i.removeItem(r)):(T=c(O),i==null||i.setItem(r,T)),dispatchEvent(new CustomEvent(Ae,{detail:{key:r,newValue:T,oldValue:R,storageArea:i}}))}catch(P){f(P)}},y=function(b){b.key!==r||b.storageArea!==i||h(s())},E=function(b){y(b.detail)};return me("storage",y,{enable:a}),me(Ae,E,{enable:a}),[d,j(m)]}return t}var an=st(function(){return z?localStorage:void 0});function yr(e){var t=v.useRef(0),r=g(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var gr=function(e,t){return!Object.is(e,t)};function un(e,t){t===void 0&&(t=gr);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Me=new WeakMap,xe=new WeakMap;function lt(e,t){var r=Me.get(e);if(r)return r;if(xe.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:St(u)||Array.isArray(u)?lt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Me.set(e,n),xe.set(n,e),n}function cn(e){var t=at(),r=v.useRef(e),n=we(function(){return lt(r.current,function(){t()})},[]);return n}var fn=st(function(){return z?sessionStorage:void 0}),sn=function(e){var t=g(v.useState(e),2),r=t[0],n=t[1],i=j(function(o){n(function(a){var u=B(o)?o(a):o;return u?_(_({},a),u):a})});return[r,i]},dt=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),ge=typeof window<"u"&&typeof document<"u"&&window.document===document,te=function(){return typeof se<"u"&&se.Math===Math?se:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),br=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(te):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),wr=2;function _r(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){br(o)}function u(){var f=Date.now();if(r){if(f-i<wr)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var Er=20,Sr=["top","right","bottom","left","width","height","size","weight"],Or=typeof MutationObserver<"u",Rr=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=_r(this.refresh.bind(this),Er)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ge||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Or?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ge||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=Sr.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},q=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||te},ht=ae(0,0,0,0);function re(e){return parseFloat(e)||0}function je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+re(o)},0)}function Cr(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=re(a)}return r}function Tr(e){var t=e.getBBox();return ae(0,0,t.width,t.height)}function Pr(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return ht;var n=q(e).getComputedStyle(e),i=Cr(n),o=i.left+i.right,a=i.top+i.bottom,u=re(n.width),f=re(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=je(n,"left","right")+o),Math.round(f+a)!==r&&(f-=je(n,"top","bottom")+a)),!Mr(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return ae(i.left,i.top,u,f)}var Ar=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof q(e).SVGGraphicsElement}:function(e){return e instanceof q(e).SVGElement&&typeof e.getBBox=="function"}}();function Mr(e){return e===q(e).document.documentElement}function xr(e){return ge?Ar(e)?Tr(e):Pr(e):ht}function jr(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return vt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function ae(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Dr=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ae(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xr(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Lr=function(){function e(t,r){var n=jr(r);vt(this,{target:t,contentRect:n})}return e}(),zr=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new dt,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Dr(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof q(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Lr(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),pt=typeof WeakMap<"u"?new WeakMap:new dt,mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Rr.getInstance(),n=new zr(t,r,this);pt.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mt.prototype[e]=function(){var t;return(t=pt.get(this))[e].apply(t,arguments)}});var Fr=function(){return typeof te.ResizeObserver<"u"?te.ResizeObserver:mt}(),Hr=ut(v.useLayoutEffect),Br=z?Hr:Ee;function ln(e){var t=g(yr(function(){var i=I(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return Br(function(){var i=I(e);if(i){var o=new Fr(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function dn(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return ze(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,w([],g(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var Ir=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},Wr=Ir,De={"text/plain":"Text","text/html":"Url",default:"Text"},Nr="Copy to clipboard: #{key}, Enter";function Gr(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function qr(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=Wr(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=De[t.format]||De.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Gr("message"in t?t.message:Nr),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Ur=qr;const vn=be(Ur);function $r(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Kr(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=$r(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return _(_({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function Vr(e,t){t===void 0&&(t=[]);var r=Kr(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}var hn=function(e,t){t===void 0&&(t=[]);var r=v.useState(0),n=r[0],i=r[1],o=Vr(e,ee(t,[n])),a=o.loading,u=v.useCallback(function(){a||i(function(f){return f+1})},ee(t,[a]));return _(_({},o),{retry:u})};const pn=_t(zt);export{Vr as A,on as B,Yr as C,He as D,k as E,_ as F,J as G,tn as H,Be as _,cn as a,ln as b,vn as c,L as d,cr as e,we as f,nn as g,en as h,Xr as i,an as j,at as k,ir as l,tr as m,un as n,V as o,Mt as p,dn as q,fn as r,W as s,rn as t,j as u,Zr as v,Qr as w,sn as x,hn as y,pn as z};