@abtnode/blocklet-services 1.16.43-beta-20250425-130658-8da18f4d → 1.16.43-beta-20250427-132304-6da95c55

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 (149) hide show
  1. package/api/routes/oauth/client.js +2 -0
  2. package/api/routes/oauth/server.js +75 -0
  3. package/api/routes/user.js +1 -0
  4. package/api/services/oauth/server.js +31 -1
  5. package/dist/assets/{AdapterDayjs-6a0bjomM.js → AdapterDayjs-BUGplkxR.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-DiAXbLgf.js → ArrowDropDown-B0sLkJoY.js} +1 -1
  7. package/dist/assets/{CheckCircle-BOBzbtP2.js → CheckCircle-BNrN9mgy.js} +1 -1
  8. package/dist/assets/{ChevronLeft-JDNo_7RB.js → ChevronLeft-Dq00IS01.js} +1 -1
  9. package/dist/assets/{ChevronRight-Cfe-QLJe.js → ChevronRight-ZTqWK-Ga.js} +1 -1
  10. package/dist/assets/{DeleteOutline-DW9Kk9LF.js → DeleteOutline-C2sY6hfm.js} +1 -1
  11. package/dist/assets/{Done-CAPpWSLt.js → Done-JLiLhELm.js} +1 -1
  12. package/dist/assets/{Download-BFPjDYTH.js → Download-Ch4RfGRW.js} +1 -1
  13. package/dist/assets/{Edit-D6qkTeBz.js → Edit-CY6fFHQM.js} +1 -1
  14. package/dist/assets/{Error-SwROBcf8.js → Error-CSFUqG0m.js} +1 -1
  15. package/dist/assets/{ExpandLess-BpA2naWp.js → ExpandLess-BiMmSOBl.js} +1 -1
  16. package/dist/assets/{Google-C5jm8HrI.js → Google-GOp5YvmZ.js} +1 -1
  17. package/dist/assets/{InfoOutlined-B-fGWta1.js → InfoOutlined-CQB5qKm-.js} +1 -1
  18. package/dist/assets/{Launch-GqtcaQf1.js → Launch-fxgQvk19.js} +1 -1
  19. package/dist/assets/{LaunchOutlined-D7W2P0hG.js → LaunchOutlined-BV4_W1pb.js} +1 -1
  20. package/dist/assets/{MoreHoriz-3W8Fr_ZL.js → MoreHoriz-CX_pwfPT.js} +1 -1
  21. package/dist/assets/{PlayArrow-Cja7S4vv.js → PlayArrow-DFH1Psjx.js} +1 -1
  22. package/dist/assets/{TuneOutlined-B3W8vgdw.js → TuneOutlined-Dy2qPFGI.js} +1 -1
  23. package/dist/assets/{ViewList-BRsEAVjL.js → ViewList-e3CoNi3K.js} +1 -1
  24. package/dist/assets/{access-control-hoDAWTTL.js → access-control-B20P1UrY.js} +1 -1
  25. package/dist/assets/{actions-BPVh6JdI.js → actions-DA-6s_nQ.js} +1 -1
  26. package/dist/assets/{add-component-core-BXXPrLkI.js → add-component-core-DG9mQFsr.js} +1 -1
  27. package/dist/assets/{add-resource-DSoZMbAG.js → add-resource-BoS5YkVy.js} +1 -1
  28. package/dist/assets/{addon-CY4PNd8X.js → addon-Bcc-Xwbf.js} +1 -1
  29. package/dist/assets/{advanced-BV9dnonO.js → advanced-DTe2fs5L.js} +1 -1
  30. package/dist/assets/{appearance-DbKPqE0i.js → appearance-DYi32tlk.js} +1 -1
  31. package/dist/assets/{ar-mN5tHF4O.js → ar-DupP3pla.js} +1 -1
  32. package/dist/assets/{audit-logs-CY7CyxpG.js → audit-logs-CydL26ZC.js} +2 -2
  33. package/dist/assets/{authorize-CLUD6O4F.js → authorize-DUyL7MEU.js} +1 -1
  34. package/dist/assets/{base32-bFQC4m_a.js → base32-p9VcJrwv.js} +1 -1
  35. package/dist/assets/{branding-LKt9TBDZ.js → branding-CAMtNLMU.js} +1 -1
  36. package/dist/assets/{branding-psyKu6rz.js → branding-_VO2ZZ3t.js} +2 -2
  37. package/dist/assets/{bundle-avatar-CNkSW5-i.js → bundle-avatar-D0t7RLGx.js} +1 -1
  38. package/dist/assets/{button-BXbVAdLT.js → button-BeZibzB9.js} +1 -1
  39. package/dist/assets/{click-to-copy-CSwrPBKm.js → click-to-copy-BGyXQL2i.js} +1 -1
  40. package/dist/assets/{complete-B8igFASe.js → complete-BzCBoyhn.js} +1 -1
  41. package/dist/assets/{component-RJz0SwId.js → component-5gjaNHCg.js} +1 -1
  42. package/dist/assets/{config-C2EcTJzj.js → config-1xq1_d84.js} +1 -1
  43. package/dist/assets/{config-CqUiFvo_.js → config-Bh19ZUJ-.js} +1 -1
  44. package/dist/assets/{config-navigation-D8u4Wwi0.js → config-navigation-Dvjz9nAh.js} +3 -3
  45. package/dist/assets/{config-space-BytYjhBd.js → config-space-CYg-72ab.js} +1 -1
  46. package/dist/assets/{confirm-qekNSA6N.js → confirm-DqvNmeoz.js} +1 -1
  47. package/dist/assets/{connect-BPW0KY4c.js → connect-Bbc2y5nS.js} +1 -1
  48. package/dist/assets/{connect-DZqNlu4F.js → connect-DM2xKEWk.js} +1 -1
  49. package/dist/assets/{connect-to-BcxM4POV.js → connect-to-Ck5O2M1K.js} +1 -1
  50. package/dist/assets/{dashboard-DrtJT0zg.js → dashboard-8QXGSoVu.js} +3 -3
  51. package/dist/assets/{de-BP5gdcKp.js → de-TcDcBkI0.js} +1 -1
  52. package/dist/assets/{delete-confirm-DEV7zNkl.js → delete-confirm-_BzUlhv2.js} +1 -1
  53. package/dist/assets/{did-address-DZ4aPkg2.js → did-address-DUThaBlf.js} +1 -1
  54. package/dist/assets/{domain-action-card-B5PD8_Bw.js → domain-action-card-D3w6jyPR.js} +1 -1
  55. package/dist/assets/{domain-CcBq0Tmt.js → domain-ag7_Ivc1.js} +1 -1
  56. package/dist/assets/domains-BDxEOJh6.js +1 -0
  57. package/dist/assets/{email-BWcxSNWH.js → email-DKpgximx.js} +1 -1
  58. package/dist/assets/{es-CBFvWN06.js → es-CDD0y3ur.js} +1 -1
  59. package/dist/assets/{exchange-passport-Bw0lAjY5.js → exchange-passport-Izkf8qpM.js} +1 -1
  60. package/dist/assets/{fr-CmHa1dCv.js → fr-zYSSKlBw.js} +1 -1
  61. package/dist/assets/{fuel-DBFO1voi.js → fuel-CcBzY6Bt.js} +1 -1
  62. package/dist/assets/{gen-access-key-BW8kZ1Xs.js → gen-access-key-DxKwgiGT.js} +1 -1
  63. package/dist/assets/{get-safe-url-BZgGKuU5.js → get-safe-url-Bq9SFfX6.js} +1 -1
  64. package/dist/assets/{get-safe-url-C0AtthsC.js → get-safe-url-DBsPGn--.js} +1 -1
  65. package/dist/assets/{hi-CWyDCXYI.js → hi-BsP-0YrU.js} +1 -1
  66. package/dist/assets/{home-CTPoo1SY.js → home-Bi8fA3jh.js} +1 -1
  67. package/dist/assets/{id-3xH3q-wr.js → id-CY2FWdMB.js} +1 -1
  68. package/dist/assets/{iframe--qNemH7W.js → iframe-DZ181i8X.js} +1 -1
  69. package/dist/assets/{index-eeIdp1fF.js → index-B2yOcqTl.js} +1 -1
  70. package/dist/assets/{index-d728JwfZ.js → index-BGgGfqEc.js} +1 -1
  71. package/dist/assets/{index-D5iB7faJ.js → index-B_vrglsK.js} +1 -1
  72. package/dist/assets/{index-u9S0L-Rf.js → index-BnmeT4Bk.js} +1 -1
  73. package/dist/assets/{index-BvQykj-W.js → index-C8QMe2NL.js} +1 -1
  74. package/dist/assets/{index-Ci9HJ6Iv.js → index-CGBZONPv.js} +1 -1
  75. package/dist/assets/{index-C5yNf__V.js → index-Cjjg2_Xp.js} +1 -1
  76. package/dist/assets/{index-BUb5Yjs_.js → index-DNG6b9sp.js} +4 -4
  77. package/dist/assets/{index-CGJUebpH.js → index-DO3_1y-L.js} +7 -7
  78. package/dist/assets/{index-CnjT4Zv0.js → index-DO4cSlUf.js} +1 -1
  79. package/dist/assets/{index-BoJFRi1m.js → index-DcBUShKK.js} +1 -1
  80. package/dist/assets/{index-CY6pLbAD.js → index-Dl4W1N74.js} +1 -1
  81. package/dist/assets/{index-DLBv7Dtg.js → index-DuH8q5ir.js} +1 -1
  82. package/dist/assets/{index-DS-sLY6b.js → index-DyxFC42L.js} +3 -3
  83. package/dist/assets/{index-COd4R-rR.js → index-EnQ254k3.js} +1 -1
  84. package/dist/assets/{index-lI6b97z3.js → index-bb90BUf4.js} +1 -1
  85. package/dist/assets/{index-Dv_p9rOk.js → index-mDKG4SiY.js} +1 -1
  86. package/dist/assets/index-n0Q-fETi.js +99 -0
  87. package/dist/assets/{index-CXuahOvP.js → index-slEV_y-C.js} +1 -1
  88. package/dist/assets/{invitation-DRfkSNu9.js → invitation-BrAZQXQL.js} +1 -1
  89. package/dist/assets/{invite-t5XgIivH.js → invite-Cbz8B2uW.js} +1 -1
  90. package/dist/assets/{issue-passport-Cn04_O-m.js → issue-passport-Dd_yyO08.js} +1 -1
  91. package/dist/assets/{item-cpKk__48.js → item-nK3D7WH5.js} +1 -1
  92. package/dist/assets/{ja-Dlm9gbED.js → ja-BLPXqHM4.js} +1 -1
  93. package/dist/assets/{ko-JYKwx9PY.js → ko-Cxgk34co.js} +1 -1
  94. package/dist/assets/{landing-page-CaOceQxT.js → landing-page-BMM_oJb1.js} +1 -1
  95. package/dist/assets/{layout-DTFm6q61.js → layout-Cw-hwCHs.js} +1 -1
  96. package/dist/assets/{list-CMmXasDM.js → list-Dmtz4mRb.js} +1 -1
  97. package/dist/assets/localization-DATb3Y_j.js +1 -0
  98. package/dist/assets/{log-CYW8Ap44.js → log-Chqr_or_.js} +1 -1
  99. package/dist/assets/{logger-BbYYsfRo.js → logger-zix81YaM.js} +1 -1
  100. package/dist/assets/{login-GHsnMk-9.js → login-DjB23H9M.js} +1 -1
  101. package/dist/assets/{login-oauth-callback-B2HyhVt7.js → login-oauth-callback-ILeP59KT.js} +1 -1
  102. package/dist/assets/{logo-uploader-ly-3UjHj.js → logo-uploader-CJrdpVcQ.js} +3 -3
  103. package/dist/assets/{lost-passport-BduGI9L4.js → lost-passport-Do1Pl0xI.js} +1 -1
  104. package/dist/assets/{open-window-Cw3Ugf66.js → open-window-D8MZhu_7.js} +1 -1
  105. package/dist/assets/{overview-C101Lhxl.js → overview-DLA9wj6a.js} +1 -1
  106. package/dist/assets/{page-header-Bk-0dymm.js → page-header-CWY8mxlT.js} +1 -1
  107. package/dist/assets/{passport-item-BUfjEppi.js → passport-item-CWtlyIE_.js} +1 -1
  108. package/dist/assets/{permission-C_VicyW0.js → permission-BGM09622.js} +1 -1
  109. package/dist/assets/{preferences-C_nxZvVu.js → preferences-DYdbb0kG.js} +1 -1
  110. package/dist/assets/{profile-embed-CgXxt11D.js → profile-embed-CeEMHxEc.js} +1 -1
  111. package/dist/assets/{pt-BgyGyT44.js → pt-BINIHul4.js} +1 -1
  112. package/dist/assets/{publish-resource-DBfSpWOt.js → publish-resource-BEc_A5mC.js} +1 -1
  113. package/dist/assets/{react-beautiful-dnd.esm-kaYRX6nt.js → react-beautiful-dnd.esm-ByydTUk4.js} +1 -1
  114. package/dist/assets/{relative-time-CuIhVa08.js → relative-time-Djw-K4Zu.js} +1 -1
  115. package/dist/assets/{ru-CEVWIKf9.js → ru-BifF7u-P.js} +1 -1
  116. package/dist/assets/{runtime-Pqx3AapT.js → runtime-DXl0lfXF.js} +1 -1
  117. package/dist/assets/sdk-CTe6rL6c.js +1 -0
  118. package/dist/assets/{security-BSs6l8nY.js → security-BhkfG23R.js} +1 -1
  119. package/dist/assets/{session-BoLXmmdy.js → session-VIMbdc9j.js} +1 -1
  120. package/dist/assets/{setup-BK8QRxSP.js → setup-BmYxTt6Z.js} +9 -3
  121. package/dist/assets/{spaces-FInvGagn.js → spaces-WkJCApHO.js} +1 -1
  122. package/dist/assets/{start-e5k6uJu1.js → start-CVexuuAk.js} +1 -1
  123. package/dist/assets/{status-uX3_TUfC.js → status-CygZ0LuY.js} +1 -1
  124. package/dist/assets/{step-actions-5JhpbsMf.js → step-actions-D_1PFeFs.js} +1 -1
  125. package/dist/assets/{studio-gQoPFCFH.js → studio-Byjzwg8q.js} +1 -1
  126. package/dist/assets/{switch-control-1DAS0xgi.js → switch-control-5fEOPVKs.js} +1 -1
  127. package/dist/assets/{th-y94pKVk7.js → th-CBxM23U5.js} +1 -1
  128. package/dist/assets/{traffic-CLSnYOIK.js → traffic-T11hxc--.js} +1 -1
  129. package/dist/assets/{transfer-Dh9v20QV.js → transfer-ROpxn9LD.js} +1 -1
  130. package/dist/assets/{unsubscribe-BiCDicGU.js → unsubscribe-Cd3XOnSp.js} +1 -1
  131. package/dist/assets/{use-app-logo-Cc5WhrJy.js → use-app-logo-B8Kl9EZt.js} +1 -1
  132. package/dist/assets/{useLocalStorage-BxIzITf9.js → useLocalStorage-DldnaMbZ.js} +1 -1
  133. package/dist/assets/{user-center-1qavaXbB.js → user-center-CzyCbtWm.js} +1 -1
  134. package/dist/assets/{util-Ce3AQBfV.js → util-Bjy-tP7q.js} +1 -1
  135. package/dist/assets/{util-BrciyiqD.js → util-Dw9Eiuko.js} +1 -1
  136. package/dist/assets/{vendor-arcblock-BUng-RXZ.js → vendor-arcblock-ScFEr-lj.js} +2 -2
  137. package/dist/assets/{vendor-ux-did-connect-CsNUdA6Y.js → vendor-ux-did-connect-BdkhddhO.js} +1 -1
  138. package/dist/assets/{vi-Dw7W2UPp.js → vi-DY_Y13jR.js} +1 -1
  139. package/dist/assets/wrap-locale-DMTYAE64.js +1 -0
  140. package/dist/assets/{zh-Dag6w2Z7.js → zh-BYRCoK6F.js} +1 -1
  141. package/dist/assets/{zh-tw-CMYkmBeh.js → zh-tw-BG0rlH8p.js} +1 -1
  142. package/dist/index.html +3 -3
  143. package/dist/service-worker.js +1 -1
  144. package/package.json +21 -21
  145. package/dist/assets/domains-CGsSPrGB.js +0 -1
  146. package/dist/assets/index-BtWj67HV.js +0 -99
  147. package/dist/assets/localization-Bp5pyrsz.js +0 -1
  148. package/dist/assets/sdk-guHRt_DC.js +0 -1
  149. package/dist/assets/wrap-locale-Bc5OA7-R.js +0 -1
@@ -1,2 +1,2 @@
1
1
  try{self["workbox:core:7.0.0"]&&_()}catch{}const ue=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},fe=ue;let R=class extends Error{constructor(e,t){const n=fe(e,t);super(n),this.name=e,this.details=t}};const de=new Set,d={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},M=s=>[d.prefix,s,d.suffix].filter(e=>e&&e.length>0).join("-"),pe=s=>{for(const e of Object.keys(d))s(e)},ge={updateDetails:s=>{pe(e=>{typeof s[e]=="string"&&(d[e]=s[e])})},getGoogleAnalyticsName:s=>s||M(d.googleAnalytics),getPrecacheName:s=>s||M(d.precache),getPrefix:()=>d.prefix,getRuntimeName:s=>s||M(d.runtime),getSuffix:()=>d.suffix};function q(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function me(s,e,t,n){const a=q(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=q(c.url,t);if(a===o)return s.match(c,n)}}let we=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};async function ye(){for(const s of de)await s()}const _e=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function Re(s){return new Promise(e=>setTimeout(e,s))}function be(){self.addEventListener("activate",()=>self.clients.claim())}try{self["workbox:core:7.0.0"]&&_()}catch{}const Ce=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},xe=Ce;let u=class extends Error{constructor(e,t){const n=xe(e,t);super(n),this.name=e,this.details=t}};const p={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},A=s=>[p.prefix,s,p.suffix].filter(e=>e&&e.length>0).join("-"),ke=s=>{for(const e of Object.keys(p))s(e)},B={updateDetails:s=>{ke(e=>{typeof s[e]=="string"&&(p[e]=s[e])})},getGoogleAnalyticsName:s=>s||A(p.googleAnalytics),getPrecacheName:s=>s||A(p.precache),getPrefix:()=>p.prefix,getRuntimeName:s=>s||A(p.runtime),getSuffix:()=>p.suffix};function V(s,e){const t=e();return s.waitUntil(t),t}try{self["workbox:precaching:7.0.0"]&&_()}catch{}const Ee="__WB_REVISION__";function De(s){if(!s)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(typeof s=="string"){const r=new URL(s,location.href);return{cacheKey:r.href,url:r.href}}const{revision:e,url:t}=s;if(!t)throw new u("add-to-cache-list-unexpected-type",{entry:s});if(!e){const r=new URL(t,location.href);return{cacheKey:r.href,url:r.href}}const n=new URL(t,location.href),a=new URL(t,location.href);return n.searchParams.set(Ee,e),{cacheKey:n.href,url:a.href}}class Ue{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:n})=>{if(e.type==="install"&&t&&t.originalRequest&&t.originalRequest instanceof Request){const a=t.originalRequest.url;n?this.notUpdatedURLs.push(a):this.updatedURLs.push(a)}return n}}}class Le{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:t,params:n})=>{const a=(n==null?void 0:n.cacheKey)||this._precacheController.getCacheKeyForURL(t.url);return a?new Request(a,{headers:t.headers}):t},this._precacheController=e}}let C;function Pe(){if(C===void 0){const s=new Response("");if("body"in s)try{new Response(s.body),C=!0}catch{C=!1}C=!1}return C}async function Te(s,e){let t=null;if(s.url&&(t=new URL(s.url).origin),t!==self.location.origin)throw new u("cross-origin-copy-response",{origin:t});const n=s.clone(),r={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},i=Pe()?n.body:await n.blob();return new Response(i,r)}const ve=s=>new URL(String(s),location.href).href.replace(new RegExp(`^${location.origin}`),"");function G(s,e){const t=new URL(s);for(const n of e)t.searchParams.delete(n);return t.href}async function Ne(s,e,t,n){const a=G(e.url,t);if(e.url===a)return s.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await s.keys(e,r);for(const c of i){const o=G(c.url,t);if(a===o)return s.match(c,n)}}class Me{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const Ae=new Set;async function Oe(){for(const s of Ae)await s()}function Se(s){return new Promise(e=>setTimeout(e,s))}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function U(s){return typeof s=="string"?new Request(s):s}let Ie=class{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new Me,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=U(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new u("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=U(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=U(e);await Se(0);const a=await this.getCacheKey(n,"write");if(!t)throw new u("cache-put-with-no-response",{url:ve(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await Ne(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await Oe(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=U(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}},Ke=class{constructor(e={}){this.cacheName=B.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ie(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new u("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}};class y extends Ke{constructor(e={}){e.cacheName=B.getPrecacheName(e.cacheName),super(e),this._fallbackToNetwork=e.fallbackToNetwork!==!1,this.plugins.push(y.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const n=await t.cacheMatch(e);return n||(t.event&&t.event.type==="install"?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let n;const a=t.params||{};if(this._fallbackToNetwork){const r=a.integrity,i=e.integrity,c=!i||i===r;n=await t.fetch(new Request(e,{integrity:e.mode!=="no-cors"?i||r:void 0})),r&&c&&e.mode!=="no-cors"&&(this._useDefaultCacheabilityPluginIfNeeded(),await t.cachePut(e,n.clone()))}else throw new u("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const n=await t.fetch(e);if(!await t.cachePut(e,n.clone()))throw new u("bad-precaching-response",{url:e.url,status:n.status});return n}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[n,a]of this.plugins.entries())a!==y.copyRedirectedCacheableResponsesPlugin&&(a===y.defaultPrecacheCacheabilityPlugin&&(e=n),a.cacheWillUpdate&&t++);t===0?this.plugins.push(y.defaultPrecacheCacheabilityPlugin):t>1&&e!==null&&this.plugins.splice(e,1)}}y.defaultPrecacheCacheabilityPlugin={async cacheWillUpdate({response:s}){return!s||s.status>=400?null:s}};y.copyRedirectedCacheableResponsesPlugin={async cacheWillUpdate({response:s}){return s.redirected?await Te(s):s}};class We{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:n=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new y({cacheName:B.getPrecacheName(e),plugins:[...t,new Le({precacheController:this})],fallbackToNetwork:n}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const n of e){typeof n=="string"?t.push(n):n&&n.revision===void 0&&t.push(n.url);const{cacheKey:a,url:r}=De(n),i=typeof n!="string"&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(r)&&this._urlsToCacheKeys.get(r)!==a)throw new u("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(r),secondEntry:a});if(typeof n!="string"&&n.integrity){if(this._cacheKeysToIntegrities.has(a)&&this._cacheKeysToIntegrities.get(a)!==n.integrity)throw new u("add-to-cache-list-conflicting-integrities",{url:r});this._cacheKeysToIntegrities.set(a,n.integrity)}if(this._urlsToCacheKeys.set(r,a),this._urlsToCacheModes.set(r,i),t.length>0){const c=`Workbox is precaching URLs without revision info: ${t.join(", ")}
2
- This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return V(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return V(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",T=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Be(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Fe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Fe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&se.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||ne.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function z(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ft(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,te(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);te(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ae="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ae){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new R("unregister-route-route-not-registered")}}let E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class re{constructor(e={}){this.cacheName=ge.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class ie extends re{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ce extends re{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const Tt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,vt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),Tt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-hoDAWTTL.js"},{"revision":null,"url":"assets/actions-BPVh6JdI.js"},{"revision":null,"url":"assets/AdapterDayjs-6a0bjomM.js"},{"revision":null,"url":"assets/add-component-core-BXXPrLkI.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-resource-DSoZMbAG.js"},{"revision":null,"url":"assets/addon-CY4PNd8X.js"},{"revision":null,"url":"assets/advanced-BV9dnonO.js"},{"revision":null,"url":"assets/api-BrU7j0QA.js"},{"revision":null,"url":"assets/appearance-DbKPqE0i.js"},{"revision":null,"url":"assets/ar-CmhpkjwX.js"},{"revision":null,"url":"assets/ar-mN5tHF4O.js"},{"revision":null,"url":"assets/ArrowDropDown-DiAXbLgf.js"},{"revision":null,"url":"assets/audit-logs-CY7CyxpG.js"},{"revision":null,"url":"assets/authorize-CLUD6O4F.js"},{"revision":null,"url":"assets/base32-bFQC4m_a.js"},{"revision":null,"url":"assets/branding-LKt9TBDZ.js"},{"revision":null,"url":"assets/branding-psyKu6rz.js"},{"revision":null,"url":"assets/bundle-avatar-CNkSW5-i.js"},{"revision":null,"url":"assets/button-BXbVAdLT.js"},{"revision":null,"url":"assets/CheckCircle-BOBzbtP2.js"},{"revision":null,"url":"assets/ChevronLeft-JDNo_7RB.js"},{"revision":null,"url":"assets/ChevronRight-Cfe-QLJe.js"},{"revision":null,"url":"assets/click-to-copy-CSwrPBKm.js"},{"revision":null,"url":"assets/cloneDeep-SfcdeqEN.js"},{"revision":null,"url":"assets/Community-DZCTPNMP.js"},{"revision":null,"url":"assets/complete-B8igFASe.js"},{"revision":null,"url":"assets/component-RJz0SwId.js"},{"revision":null,"url":"assets/config-C2EcTJzj.js"},{"revision":null,"url":"assets/config-CqUiFvo_.js"},{"revision":null,"url":"assets/config-navigation-D8u4Wwi0.js"},{"revision":null,"url":"assets/config-space-BytYjhBd.js"},{"revision":null,"url":"assets/confirm-qekNSA6N.js"},{"revision":null,"url":"assets/connect-BPW0KY4c.js"},{"revision":null,"url":"assets/connect-DZqNlu4F.js"},{"revision":null,"url":"assets/connect-to-BcxM4POV.js"},{"revision":null,"url":"assets/content-layout-BPaAeaMQ.js"},{"revision":null,"url":"assets/dashboard-DrtJT0zg.js"},{"revision":null,"url":"assets/de-BP5gdcKp.js"},{"revision":null,"url":"assets/de-Doy9B4I7.js"},{"revision":null,"url":"assets/delete-confirm-DEV7zNkl.js"},{"revision":null,"url":"assets/DeleteOutline-DW9Kk9LF.js"},{"revision":null,"url":"assets/did-address-DZ4aPkg2.js"},{"revision":null,"url":"assets/domain-action-card-B5PD8_Bw.js"},{"revision":null,"url":"assets/domain-CcBq0Tmt.js"},{"revision":null,"url":"assets/domains-CGsSPrGB.js"},{"revision":null,"url":"assets/Done-CAPpWSLt.js"},{"revision":null,"url":"assets/dot-BE1YP292.js"},{"revision":null,"url":"assets/Download-BFPjDYTH.js"},{"revision":null,"url":"assets/Edit-D6qkTeBz.js"},{"revision":null,"url":"assets/EditIcon-Bi2cR-_u.js"},{"revision":null,"url":"assets/email-BWcxSNWH.js"},{"revision":null,"url":"assets/Email-Dz2Eyqu0.js"},{"revision":null,"url":"assets/empty-spinner-DmDm8XzF.js"},{"revision":null,"url":"assets/Error-SwROBcf8.js"},{"revision":null,"url":"assets/es-CBFvWN06.js"},{"revision":null,"url":"assets/es-CruF8tDk.js"},{"revision":null,"url":"assets/exchange-passport-Bw0lAjY5.js"},{"revision":null,"url":"assets/ExpandLess-BpA2naWp.js"},{"revision":null,"url":"assets/format-error-BrmqJs5a.js"},{"revision":null,"url":"assets/fr-Bajh_D8H.js"},{"revision":null,"url":"assets/fr-CmHa1dCv.js"},{"revision":null,"url":"assets/fuel-DBFO1voi.js"},{"revision":null,"url":"assets/gen-access-key-BW8kZ1Xs.js"},{"revision":null,"url":"assets/get-safe-url-BZgGKuU5.js"},{"revision":null,"url":"assets/get-safe-url-C0AtthsC.js"},{"revision":null,"url":"assets/Google-C5jm8HrI.js"},{"revision":null,"url":"assets/hi-CWyDCXYI.js"},{"revision":null,"url":"assets/hi-DOsApYK0.js"},{"revision":null,"url":"assets/Holiday-Lc6woG1j.js"},{"revision":null,"url":"assets/home-CTPoo1SY.js"},{"revision":null,"url":"assets/id-3xH3q-wr.js"},{"revision":null,"url":"assets/id-BderyGO5.js"},{"revision":null,"url":"assets/iframe--qNemH7W.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B1ljmpu4.css"},{"revision":null,"url":"assets/index-BoJFRi1m.js"},{"revision":null,"url":"assets/index-BT0GBmWF.js"},{"revision":null,"url":"assets/index-BtWj67HV.js"},{"revision":null,"url":"assets/index-BUb5Yjs_.js"},{"revision":null,"url":"assets/index-BvQykj-W.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C5yNf__V.js"},{"revision":null,"url":"assets/index-CGJUebpH.js"},{"revision":null,"url":"assets/index-CHbpkZwO.js"},{"revision":null,"url":"assets/index-Ci9HJ6Iv.js"},{"revision":null,"url":"assets/index-CnjT4Zv0.js"},{"revision":null,"url":"assets/index-COd4R-rR.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CXuahOvP.js"},{"revision":null,"url":"assets/index-CY6pLbAD.js"},{"revision":null,"url":"assets/index-CYeIiQ6Q.js"},{"revision":null,"url":"assets/index-D5iB7faJ.js"},{"revision":null,"url":"assets/index-d728JwfZ.js"},{"revision":null,"url":"assets/index-DKhrYmrN.js"},{"revision":null,"url":"assets/index-DLBv7Dtg.js"},{"revision":null,"url":"assets/index-DS-sLY6b.js"},{"revision":null,"url":"assets/index-Dv_p9rOk.js"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-eeIdp1fF.js"},{"revision":null,"url":"assets/index-lI6b97z3.js"},{"revision":null,"url":"assets/index-SDdS_qt8.js"},{"revision":null,"url":"assets/index-u9S0L-Rf.js"},{"revision":null,"url":"assets/index-YbJjfDTR.js"},{"revision":null,"url":"assets/InfoOutlined-B-fGWta1.js"},{"revision":null,"url":"assets/invitation-DRfkSNu9.js"},{"revision":null,"url":"assets/invite-t5XgIivH.js"},{"revision":null,"url":"assets/issue-passport-Cn04_O-m.js"},{"revision":null,"url":"assets/item-cpKk__48.js"},{"revision":null,"url":"assets/ja-99RIjwwl.js"},{"revision":null,"url":"assets/ja-Dlm9gbED.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-8oFi6wHH.js"},{"revision":null,"url":"assets/ko-JYKwx9PY.js"},{"revision":null,"url":"assets/landing-page-CaOceQxT.js"},{"revision":null,"url":"assets/Launch-GqtcaQf1.js"},{"revision":null,"url":"assets/launch-result-message-C9huWJUf.js"},{"revision":null,"url":"assets/LaunchOutlined-D7W2P0hG.js"},{"revision":null,"url":"assets/layout-DTFm6q61.js"},{"revision":null,"url":"assets/list-CMmXasDM.js"},{"revision":null,"url":"assets/list-header-CgF1S4js.js"},{"revision":null,"url":"assets/localization-Bp5pyrsz.js"},{"revision":null,"url":"assets/Location-B8EOY3d0.js"},{"revision":null,"url":"assets/LockIcon-fuTfhB_G.js"},{"revision":null,"url":"assets/log-CYW8Ap44.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/logger-BbYYsfRo.js"},{"revision":null,"url":"assets/login-GHsnMk-9.js"},{"revision":null,"url":"assets/login-oauth-callback-B2HyhVt7.js"},{"revision":null,"url":"assets/logo-uploader-ly-3UjHj.js"},{"revision":null,"url":"assets/lost-passport-BduGI9L4.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/Meeting-Epdyx36z.js"},{"revision":null,"url":"assets/MoreHoriz-3W8Fr_ZL.js"},{"revision":null,"url":"assets/OffSick-VYgugWxu.js"},{"revision":null,"url":"assets/omit-bLid3PKQ.js"},{"revision":null,"url":"assets/open-window-Cw3Ugf66.js"},{"revision":null,"url":"assets/overview-C101Lhxl.js"},{"revision":null,"url":"assets/page-header-Bk-0dymm.js"},{"revision":null,"url":"assets/passport-item-BUfjEppi.js"},{"revision":null,"url":"assets/permission-C_VicyW0.js"},{"revision":null,"url":"assets/Phone-KP65huHK.js"},{"revision":null,"url":"assets/PlayArrow-Cja7S4vv.js"},{"revision":null,"url":"assets/preferences-C_nxZvVu.js"},{"revision":null,"url":"assets/profile-embed-CgXxt11D.js"},{"revision":null,"url":"assets/pt-BgyGyT44.js"},{"revision":null,"url":"assets/pt-ChXuTrrd.js"},{"revision":null,"url":"assets/publish-resource-DBfSpWOt.js"},{"revision":null,"url":"assets/QuestionMarkCircle-p6m3avKp.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-kaYRX6nt.js"},{"revision":null,"url":"assets/relative-time-CuIhVa08.js"},{"revision":null,"url":"assets/ru-CEVWIKf9.js"},{"revision":null,"url":"assets/ru-IkTTTY0K.js"},{"revision":null,"url":"assets/runtime-Pqx3AapT.js"},{"revision":null,"url":"assets/sdk-guHRt_DC.js"},{"revision":null,"url":"assets/security-BSs6l8nY.js"},{"revision":null,"url":"assets/ServerLogo-Bssx1Eou.js"},{"revision":null,"url":"assets/session-BoLXmmdy.js"},{"revision":null,"url":"assets/setup-BK8QRxSP.js"},{"revision":null,"url":"assets/shorten-label-DFzv9EKX.js"},{"revision":null,"url":"assets/simple-select-DlrdVbaI.js"},{"revision":null,"url":"assets/slicedToArray-CPl5_eGD.js"},{"revision":null,"url":"assets/spaces-FInvGagn.js"},{"revision":null,"url":"assets/start-e5k6uJu1.js"},{"revision":null,"url":"assets/status-uX3_TUfC.js"},{"revision":null,"url":"assets/step-actions-5JhpbsMf.js"},{"revision":null,"url":"assets/studio-gQoPFCFH.js"},{"revision":null,"url":"assets/switch-control-1DAS0xgi.js"},{"revision":null,"url":"assets/th-OF8xr--T.js"},{"revision":null,"url":"assets/th-y94pKVk7.js"},{"revision":null,"url":"assets/Timezone-Ce4E1Xey.js"},{"revision":null,"url":"assets/traffic-CLSnYOIK.js"},{"revision":null,"url":"assets/transfer-Dh9v20QV.js"},{"revision":null,"url":"assets/TuneOutlined-B3W8vgdw.js"},{"revision":null,"url":"assets/unsubscribe-BiCDicGU.js"},{"revision":null,"url":"assets/use-app-logo-Cc5WhrJy.js"},{"revision":null,"url":"assets/use-mobile-C_flBrm-.js"},{"revision":null,"url":"assets/use-mobile-DlKplWTG.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-CGW40D2-.js"},{"revision":null,"url":"assets/useLocalStorage-BxIzITf9.js"},{"revision":null,"url":"assets/user-center-1qavaXbB.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-BrciyiqD.js"},{"revision":null,"url":"assets/util-Ce3AQBfV.js"},{"revision":null,"url":"assets/vendor-arcblock-BUng-RXZ.js"},{"revision":null,"url":"assets/vendor-hooks-DftG_2gV.js"},{"revision":null,"url":"assets/vendor-mui-core-CQ38ohp2.js"},{"revision":null,"url":"assets/vendor-mui-x-B0hsmEJ3.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-BNHJB5U7.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-CsNUdA6Y.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-DCBJBc4G.js"},{"revision":null,"url":"assets/vi-Dw7W2UPp.js"},{"revision":null,"url":"assets/ViewList-BRsEAVjL.js"},{"revision":null,"url":"assets/WorkingRemotely-CXFJ6pz8.js"},{"revision":null,"url":"assets/wrap-locale-Bc5OA7-R.js"},{"revision":null,"url":"assets/zh-BRAYg0sY.js"},{"revision":null,"url":"assets/zh-Dag6w2Z7.js"},{"revision":null,"url":"assets/zh-tw-CMYkmBeh.js"},{"revision":null,"url":"assets/zh-tw-D5-DkgwC.js"},{"revision":"dcef32e207ad69b207489ad288740ed8","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>["document"].includes(s.destination)?(Object.keys(w).forEach(e=>delete w[e]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1,new ce({cacheName:`documents-${self.registration.scope}`,plugins:[vt,Nt]}));
2
+ This is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(c)}}}install(e){return V(e,async()=>{const t=new Ue;this.strategy.plugins.push(t);for(const[r,i]of this._urlsToCacheKeys){const c=this._cacheKeysToIntegrities.get(i),o=this._urlsToCacheModes.get(r),l=new Request(r,{integrity:c,cache:o,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:i},request:l,event:e}))}const{updatedURLs:n,notUpdatedURLs:a}=t;return{updatedURLs:n,notUpdatedURLs:a}})}activate(e){return V(e,async()=>{const t=await self.caches.open(this.strategy.cacheName),n=await t.keys(),a=new Set(this._urlsToCacheKeys.values()),r=[];for(const i of n)a.has(i.url)||(await t.delete(i),r.push(i.url));return{deletedURLs:r}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n)return(await self.caches.open(this.strategy.cacheName)).match(n)}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new u("non-precached-url",{url:e});return n=>(n.request=new Request(e),n.params=Object.assign({cacheKey:t},n.params),this.strategy.handle(n))}}let O;const Z=()=>(O||(O=new We),O);try{self["workbox:routing:7.0.0"]&&_()}catch{}const ee="GET",T=s=>s&&typeof s=="object"?s:{handle:s};let D=class{constructor(e,t,n=ee){this.handler=T(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=T(e)}},$e=class extends D{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}},je=class{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ee){this._defaultHandlerMap.set(t,T(e))}setCatchHandler(e){this._catchHandler=T(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new u("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new u("unregister-route-route-not-registered")}},x;const He=()=>(x||(x=new je,x.addFetchListener(),x.addCacheListener()),x);function Be(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new D(i,e,t)}else if(s instanceof RegExp)n=new $e(s,e,t);else if(typeof s=="function")n=new D(s,e,t);else if(s instanceof D)n=s;else throw new u("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return He().registerRoute(n),n}function Fe(s,e=[]){for(const t of[...s.searchParams.keys()])e.some(n=>n.test(t))&&s.searchParams.delete(t);return s}function*qe(s,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(s,location.href);r.hash="",yield r.href;const i=Fe(r,e);if(yield i.href,t&&i.pathname.endsWith("/")){const c=new URL(i.href);c.pathname+=t,yield c.href}if(n){const c=new URL(i.href);c.pathname+=".html",yield c.href}if(a){const c=a({url:r});for(const o of c)yield o.href}}class Ve extends D{constructor(e,t){const n=({request:a})=>{const r=e.getURLsToCacheKeys();for(const i of qe(a.url,t)){const c=r.get(i);if(c){const o=e.getIntegrityForCacheKey(c);return{cacheKey:c,integrity:o}}}};super(n,e.strategy)}}function Ge(s){const e=Z(),t=new Ve(e,s);Be(t)}function Je(s){Z().precache(s)}function Qe(s,e){Je(s),Ge(e)}try{self["workbox:core:7.0.0"]&&_()}catch{}const ze=(s,...e)=>{let t=s;return e.length>0&&(t+=` :: ${JSON.stringify(e)}`),t},Ye=ze;class Xe extends Error{constructor(e,t){const n=Ye(e,t);super(n),this.name=e,this.details=t}}function te(s){s.then(()=>{})}const Ze=(s,e)=>e.some(t=>s instanceof t);let J,Q;function et(){return J||(J=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function tt(){return Q||(Q=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const se=new WeakMap,$=new WeakMap,ne=new WeakMap,S=new WeakMap,F=new WeakMap;function st(s){const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("success",r),s.removeEventListener("error",i)},r=()=>{t(m(s.result)),a()},i=()=>{n(s.error),a()};s.addEventListener("success",r),s.addEventListener("error",i)});return e.then(t=>{t instanceof IDBCursor&&se.set(t,s)}).catch(()=>{}),F.set(e,s),e}function nt(s){if($.has(s))return;const e=new Promise((t,n)=>{const a=()=>{s.removeEventListener("complete",r),s.removeEventListener("error",i),s.removeEventListener("abort",i)},r=()=>{t(),a()},i=()=>{n(s.error||new DOMException("AbortError","AbortError")),a()};s.addEventListener("complete",r),s.addEventListener("error",i),s.addEventListener("abort",i)});$.set(s,e)}let j={get(s,e,t){if(s instanceof IDBTransaction){if(e==="done")return $.get(s);if(e==="objectStoreNames")return s.objectStoreNames||ne.get(s);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return m(s[e])},set(s,e,t){return s[e]=t,!0},has(s,e){return s instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in s}};function at(s){j=s(j)}function rt(s){return s===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const n=s.call(I(this),e,...t);return ne.set(n,e.sort?e.sort():[e]),m(n)}:tt().includes(s)?function(...e){return s.apply(I(this),e),m(se.get(this))}:function(...e){return m(s.apply(I(this),e))}}function it(s){return typeof s=="function"?rt(s):(s instanceof IDBTransaction&&nt(s),Ze(s,et())?new Proxy(s,j):s)}function m(s){if(s instanceof IDBRequest)return st(s);if(S.has(s))return S.get(s);const e=it(s);return e!==s&&(S.set(s,e),F.set(e,s)),e}const I=s=>F.get(s);function ct(s,e,{blocked:t,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(s,e),c=m(i);return n&&i.addEventListener("upgradeneeded",o=>{n(m(i.result),o.oldVersion,o.newVersion,m(i.transaction),o)}),t&&i.addEventListener("blocked",o=>t(o.oldVersion,o.newVersion,o)),c.then(o=>{r&&o.addEventListener("close",()=>r()),a&&o.addEventListener("versionchange",l=>a(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function ot(s,{blocked:e}={}){const t=indexedDB.deleteDatabase(s);return e&&t.addEventListener("blocked",n=>e(n.oldVersion,n)),m(t).then(()=>{})}const lt=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],K=new Map;function z(s,e){if(!(s instanceof IDBDatabase&&!(e in s)&&typeof e=="string"))return;if(K.get(e))return K.get(e);const t=e.replace(/FromIndex$/,""),n=e!==t,a=ht.includes(t);if(!(t in(n?IDBIndex:IDBObjectStore).prototype)||!(a||lt.includes(t)))return;const r=async function(i,...c){const o=this.transaction(i,a?"readwrite":"readonly");let l=o.store;return n&&(l=l.index(c.shift())),(await Promise.all([l[t](...c),a&&o.done]))[0]};return K.set(e,r),r}at(s=>({...s,get:(e,t,n)=>z(e,t)||s.get(e,t,n),has:(e,t)=>!!z(e,t)||s.has(e,t)}));try{self["workbox:expiration:7.0.0"]&&_()}catch{}const ut="workbox-expiration",k="cache-entries",Y=s=>{const e=new URL(s,location.href);return e.hash="",e.href};class ft{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(k,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&ot(this._cacheName)}async setTimestamp(e,t){e=Y(e);const n={url:e,timestamp:t,cacheName:this._cacheName,id:this._getId(e)},r=(await this.getDb()).transaction(k,"readwrite",{durability:"relaxed"});await r.store.put(n),await r.done}async getTimestamp(e){const n=await(await this.getDb()).get(k,this._getId(e));return n==null?void 0:n.timestamp}async expireEntries(e,t){const n=await this.getDb();let a=await n.transaction(k).store.index("timestamp").openCursor(null,"prev");const r=[];let i=0;for(;a;){const o=a.value;o.cacheName===this._cacheName&&(e&&o.timestamp<e||t&&i>=t?r.push(a.value):i++),a=await a.continue()}const c=[];for(const o of r)await n.delete(k,o.id),c.push(o.url);return c}_getId(e){return this._cacheName+"|"+Y(e)}async getDb(){return this._db||(this._db=await ct(ut,1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class dt{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new ft(e)}async expireEntries(){if(this._isRunning){this._rerunRequested=!0;return}this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-this._maxAgeSeconds*1e3:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),n=await self.caches.open(this._cacheName);for(const a of t)await n.delete(a,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,te(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),n=Date.now()-this._maxAgeSeconds*1e3;return t!==void 0?t<n:!0}else return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}const g={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:typeof registration<"u"?registration.scope:""},W=s=>[g.prefix,s,g.suffix].filter(e=>e&&e.length>0).join("-"),pt=s=>{for(const e of Object.keys(g))s(e)},gt={updateDetails:s=>{pt(e=>{typeof s[e]=="string"&&(g[e]=s[e])})},getGoogleAnalyticsName:s=>s||W(g.googleAnalytics),getPrecacheName:s=>s||W(g.precache),getPrefix:()=>g.prefix,getRuntimeName:s=>s||W(g.runtime),getSuffix:()=>g.suffix},mt=new Set;function wt(s){mt.add(s)}class yt{constructor(e={}){this.cachedResponseWillBeUsed=async({event:t,request:n,cacheName:a,cachedResponse:r})=>{if(!r)return null;const i=this._isResponseDateFresh(r),c=this._getCacheExpiration(a);te(c.expireEntries());const o=c.updateTimestamp(n.url);if(t)try{t.waitUntil(o)}catch{}return i?r:null},this.cacheDidUpdate=async({cacheName:t,request:n})=>{const a=this._getCacheExpiration(t);await a.updateTimestamp(n.url),await a.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&wt(()=>this.deleteCacheAndMetadata())}_getCacheExpiration(e){if(e===gt.getRuntimeName())throw new Xe("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new dt(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(t===null)return!0;const n=Date.now();return t>=n-this._maxAgeSeconds*1e3}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),a=new Date(t).getTime();return isNaN(a)?null:a}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}try{self["workbox:routing:7.0.0"]&&_()}catch{}const ae="GET",v=s=>s&&typeof s=="object"?s:{handle:s};class P{constructor(e,t,n=ae){this.handler=v(t),this.match=e,this.method=n}setCatchHandler(e){this.catchHandler=v(e)}}class _t extends P{constructor(e,t,n){const a=({url:r})=>{const i=e.exec(r.href);if(i&&!(r.origin!==location.origin&&i.index!==0))return i.slice(1)};super(a,t,n)}}class Rt{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",e=>{const{request:t}=e,n=this.handleRequest({request:t,event:e});n&&e.respondWith(n)})}addCacheListener(){self.addEventListener("message",e=>{if(e.data&&e.data.type==="CACHE_URLS"){const{payload:t}=e.data,n=Promise.all(t.urlsToCache.map(a=>{typeof a=="string"&&(a=[a]);const r=new Request(...a);return this.handleRequest({request:r,event:e})}));e.waitUntil(n),e.ports&&e.ports[0]&&n.then(()=>e.ports[0].postMessage(!0))}})}handleRequest({request:e,event:t}){const n=new URL(e.url,location.href);if(!n.protocol.startsWith("http"))return;const a=n.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:t,request:e,sameOrigin:a,url:n});let c=i&&i.handler;const o=e.method;if(!c&&this._defaultHandlerMap.has(o)&&(c=this._defaultHandlerMap.get(o)),!c)return;let l;try{l=c.handle({url:n,request:e,event:t,params:r})}catch(h){l=Promise.reject(h)}const f=i&&i.catchHandler;return l instanceof Promise&&(this._catchHandler||f)&&(l=l.catch(async h=>{if(f)try{return await f.handle({url:n,request:e,event:t,params:r})}catch(b){b instanceof Error&&(h=b)}if(this._catchHandler)return this._catchHandler.handle({url:n,request:e,event:t});throw h})),l}findMatchingRoute({url:e,sameOrigin:t,request:n,event:a}){const r=this._routes.get(n.method)||[];for(const i of r){let c;const o=i.match({url:e,sameOrigin:t,request:n,event:a});if(o)return c=o,(Array.isArray(c)&&c.length===0||o.constructor===Object&&Object.keys(o).length===0||typeof o=="boolean")&&(c=void 0),{route:i,params:c}}return{}}setDefaultHandler(e,t=ae){this._defaultHandlerMap.set(t,v(e))}setCatchHandler(e){this._catchHandler=v(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new R("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(t>-1)this._routes.get(e.method).splice(t,1);else throw new R("unregister-route-route-not-registered")}}let E;const bt=()=>(E||(E=new Rt,E.addFetchListener(),E.addCacheListener()),E);function N(s,e,t){let n;if(typeof s=="string"){const r=new URL(s,location.href),i=({url:c})=>c.href===r.href;n=new P(i,e,t)}else if(s instanceof RegExp)n=new _t(s,e,t);else if(typeof s=="function")n=new P(s,e,t);else if(s instanceof P)n=s;else throw new R("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});return bt().registerRoute(n),n}try{self["workbox:strategies:7.0.0"]&&_()}catch{}function L(s){return typeof s=="string"?new Request(s):s}class Ct{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new we,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const n of this._plugins)this._pluginStateMap.set(n,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let n=L(e);if(n.mode==="navigate"&&t instanceof FetchEvent&&t.preloadResponse){const i=await t.preloadResponse;if(i)return i}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const i of this.iterateCallbacks("requestWillFetch"))n=await i({request:n.clone(),event:t})}catch(i){if(i instanceof Error)throw new R("plugin-error-request-will-fetch",{thrownErrorMessage:i.message})}const r=n.clone();try{let i;i=await fetch(n,n.mode==="navigate"?void 0:this._strategy.fetchOptions);for(const c of this.iterateCallbacks("fetchDidSucceed"))i=await c({event:t,request:r,response:i});return i}catch(i){throw a&&await this.runCallbacks("fetchDidFail",{error:i,event:t,originalRequest:a.clone(),request:r.clone()}),i}}async fetchAndCachePut(e){const t=await this.fetch(e),n=t.clone();return this.waitUntil(this.cachePut(e,n)),t}async cacheMatch(e){const t=L(e);let n;const{cacheName:a,matchOptions:r}=this._strategy,i=await this.getCacheKey(t,"read"),c=Object.assign(Object.assign({},r),{cacheName:a});n=await caches.match(i,c);for(const o of this.iterateCallbacks("cachedResponseWillBeUsed"))n=await o({cacheName:a,matchOptions:r,cachedResponse:n,request:i,event:this.event})||void 0;return n}async cachePut(e,t){const n=L(e);await Re(0);const a=await this.getCacheKey(n,"write");if(!t)throw new R("cache-put-with-no-response",{url:_e(a.url)});const r=await this._ensureResponseSafeToCache(t);if(!r)return!1;const{cacheName:i,matchOptions:c}=this._strategy,o=await self.caches.open(i),l=this.hasCallback("cacheDidUpdate"),f=l?await me(o,a.clone(),["__WB_REVISION__"],c):null;try{await o.put(a,l?r.clone():r)}catch(h){if(h instanceof Error)throw h.name==="QuotaExceededError"&&await ye(),h}for(const h of this.iterateCallbacks("cacheDidUpdate"))await h({cacheName:i,oldResponse:f,newResponse:r.clone(),request:a,event:this.event});return!0}async getCacheKey(e,t){const n=`${e.url} | ${t}`;if(!this._cacheKeys[n]){let a=e;for(const r of this.iterateCallbacks("cacheKeyWillBeUsed"))a=L(await r({mode:t,request:a,event:this.event,params:this.params}));this._cacheKeys[n]=a}return this._cacheKeys[n]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const n of this.iterateCallbacks(e))await n(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if(typeof t[e]=="function"){const n=this._pluginStateMap.get(t);yield r=>{const i=Object.assign(Object.assign({},r),{state:n});return t[e](i)}}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,n=!1;for(const a of this.iterateCallbacks("cacheWillUpdate"))if(t=await a({request:this.request,response:t,event:this.event})||void 0,n=!0,!t)break;return n||t&&t.status!==200&&(t=void 0),t}}class re{constructor(e={}){this.cacheName=ge.getRuntimeName(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,n=typeof e.request=="string"?new Request(e.request):e.request,a="params"in e?e.params:void 0,r=new Ct(this,{event:t,request:n,params:a}),i=this._getResponse(r,n,t),c=this._awaitComplete(i,r,n,t);return[i,c]}async _getResponse(e,t,n){await e.runCallbacks("handlerWillStart",{event:n,request:t});let a;try{if(a=await this._handle(t,e),!a||a.type==="error")throw new R("no-response",{url:t.url})}catch(r){if(r instanceof Error){for(const i of e.iterateCallbacks("handlerDidError"))if(a=await i({error:r,event:n,request:t}),a)break}if(!a)throw r}for(const r of e.iterateCallbacks("handlerWillRespond"))a=await r({event:n,request:t,response:a});return a}async _awaitComplete(e,t,n,a){let r,i;try{r=await e}catch{}try{await t.runCallbacks("handlerDidRespond",{event:a,request:n,response:r}),await t.doneWaiting()}catch(c){c instanceof Error&&(i=c)}if(await t.runCallbacks("handlerDidComplete",{event:a,request:n,response:r,error:i}),t.destroy(),i)throw i}}class ie extends re{async _handle(e,t){let n=await t.cacheMatch(e),a;if(!n)try{n=await t.fetchAndCachePut(e)}catch(r){r instanceof Error&&(a=r)}if(!n)throw new R("no-response",{url:e.url,error:a});return n}}const xt={cacheWillUpdate:async({response:s})=>s.status===200||s.status===0?s:null};class ce extends re{constructor(e={}){super(e),this.plugins.some(t=>"cacheWillUpdate"in t)||this.plugins.unshift(xt)}async _handle(e,t){const n=t.fetchAndCachePut(e).catch(()=>{});t.waitUntil(n);let a=await t.cacheMatch(e),r;if(!a)try{a=await n}catch(i){i instanceof Error&&(r=i)}if(!a)throw new R("no-response",{url:e.url,error:r});return a}}const H="sw-update-reload-times",oe="/lastUpdateMsgTimestamps",kt=10,Et=20*1e3;let le=!1;function Dt(s,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}function Ut(s,e=50,t=5e3){return new Promise(n=>{const a=Date.now(),r=()=>{s()||Date.now()-a>=t?n():setTimeout(r,e)};r()})}self.addEventListener("message",s=>{s.data&&s.data.type==="CLIENT_UPDATE_READY"&&(console.log("Service Worker: client ready"),le=!0)});async function Lt(s){const t=await(await caches.open(H)).match(`${oe}-${s}`);if(t)try{const n=await t.text();return JSON.parse(n)}catch{return[]}return[]}async function Pt(s,e){const t=await caches.open(H);if((await t.keys()).length>100){await caches.delete(H);return}const a=new Response(JSON.stringify(s));await t.put(`${oe}-${e}`,a)}const Tt=Dt(async()=>{(await self.clients.matchAll()).forEach(e=>{e.postMessage({type:"SW_DOCUMENT_UPDATED"})})},100),X=/updatedAt:\s*\d+,/g,vt={cacheDidUpdate:async({request:s,oldResponse:e,newResponse:t})=>{if(e)try{let n=await e.clone().text(),a=await t.clone().text();if(s.url.includes("__blocklet__.js")&&(n=n.replace(X,"updatedAt: ,"),a=a.replace(X,"updatedAt: ,")),n!==a){const r=Date.now(),c=(await Lt(s.url)).filter(o=>r-o<Et);if(c.length>=kt){console.warn("[SW] update too frequent, skip:",s.url);return}await Ut(()=>le),await Pt(c,s.url),console.log("[SW] document version or session updated",s.url),Tt()}}catch(n){console.error("[SW] Error comparing document responses:",n)}}};Qe(([{"revision":null,"url":"assets/access-control-B20P1UrY.js"},{"revision":null,"url":"assets/actions-DA-6s_nQ.js"},{"revision":null,"url":"assets/AdapterDayjs-BUGplkxR.js"},{"revision":null,"url":"assets/add-component-core-D-IRi6XF.css"},{"revision":null,"url":"assets/add-component-core-DG9mQFsr.js"},{"revision":null,"url":"assets/add-resource-BoS5YkVy.js"},{"revision":null,"url":"assets/addon-Bcc-Xwbf.js"},{"revision":null,"url":"assets/advanced-DTe2fs5L.js"},{"revision":null,"url":"assets/api-BrU7j0QA.js"},{"revision":null,"url":"assets/appearance-DYi32tlk.js"},{"revision":null,"url":"assets/ar-CmhpkjwX.js"},{"revision":null,"url":"assets/ar-DupP3pla.js"},{"revision":null,"url":"assets/ArrowDropDown-B0sLkJoY.js"},{"revision":null,"url":"assets/audit-logs-CydL26ZC.js"},{"revision":null,"url":"assets/authorize-DUyL7MEU.js"},{"revision":null,"url":"assets/base32-p9VcJrwv.js"},{"revision":null,"url":"assets/branding-_VO2ZZ3t.js"},{"revision":null,"url":"assets/branding-CAMtNLMU.js"},{"revision":null,"url":"assets/bundle-avatar-D0t7RLGx.js"},{"revision":null,"url":"assets/button-BeZibzB9.js"},{"revision":null,"url":"assets/CheckCircle-BNrN9mgy.js"},{"revision":null,"url":"assets/ChevronLeft-Dq00IS01.js"},{"revision":null,"url":"assets/ChevronRight-ZTqWK-Ga.js"},{"revision":null,"url":"assets/click-to-copy-BGyXQL2i.js"},{"revision":null,"url":"assets/cloneDeep-SfcdeqEN.js"},{"revision":null,"url":"assets/Community-DZCTPNMP.js"},{"revision":null,"url":"assets/complete-BzCBoyhn.js"},{"revision":null,"url":"assets/component-5gjaNHCg.js"},{"revision":null,"url":"assets/config-1xq1_d84.js"},{"revision":null,"url":"assets/config-Bh19ZUJ-.js"},{"revision":null,"url":"assets/config-navigation-Dvjz9nAh.js"},{"revision":null,"url":"assets/config-space-CYg-72ab.js"},{"revision":null,"url":"assets/confirm-DqvNmeoz.js"},{"revision":null,"url":"assets/connect-Bbc2y5nS.js"},{"revision":null,"url":"assets/connect-DM2xKEWk.js"},{"revision":null,"url":"assets/connect-to-Ck5O2M1K.js"},{"revision":null,"url":"assets/content-layout-BPaAeaMQ.js"},{"revision":null,"url":"assets/dashboard-8QXGSoVu.js"},{"revision":null,"url":"assets/de-Doy9B4I7.js"},{"revision":null,"url":"assets/de-TcDcBkI0.js"},{"revision":null,"url":"assets/delete-confirm-_BzUlhv2.js"},{"revision":null,"url":"assets/DeleteOutline-C2sY6hfm.js"},{"revision":null,"url":"assets/did-address-DUThaBlf.js"},{"revision":null,"url":"assets/domain-action-card-D3w6jyPR.js"},{"revision":null,"url":"assets/domain-ag7_Ivc1.js"},{"revision":null,"url":"assets/domains-BDxEOJh6.js"},{"revision":null,"url":"assets/Done-JLiLhELm.js"},{"revision":null,"url":"assets/dot-BE1YP292.js"},{"revision":null,"url":"assets/Download-Ch4RfGRW.js"},{"revision":null,"url":"assets/Edit-CY6fFHQM.js"},{"revision":null,"url":"assets/EditIcon-Bi2cR-_u.js"},{"revision":null,"url":"assets/email-DKpgximx.js"},{"revision":null,"url":"assets/Email-Dz2Eyqu0.js"},{"revision":null,"url":"assets/empty-spinner-DmDm8XzF.js"},{"revision":null,"url":"assets/Error-CSFUqG0m.js"},{"revision":null,"url":"assets/es-CDD0y3ur.js"},{"revision":null,"url":"assets/es-CruF8tDk.js"},{"revision":null,"url":"assets/exchange-passport-Izkf8qpM.js"},{"revision":null,"url":"assets/ExpandLess-BiMmSOBl.js"},{"revision":null,"url":"assets/format-error-BrmqJs5a.js"},{"revision":null,"url":"assets/fr-Bajh_D8H.js"},{"revision":null,"url":"assets/fr-zYSSKlBw.js"},{"revision":null,"url":"assets/fuel-CcBzY6Bt.js"},{"revision":null,"url":"assets/gen-access-key-DxKwgiGT.js"},{"revision":null,"url":"assets/get-safe-url-Bq9SFfX6.js"},{"revision":null,"url":"assets/get-safe-url-DBsPGn--.js"},{"revision":null,"url":"assets/Google-GOp5YvmZ.js"},{"revision":null,"url":"assets/hi-BsP-0YrU.js"},{"revision":null,"url":"assets/hi-DOsApYK0.js"},{"revision":null,"url":"assets/Holiday-Lc6woG1j.js"},{"revision":null,"url":"assets/home-Bi8fA3jh.js"},{"revision":null,"url":"assets/id-BderyGO5.js"},{"revision":null,"url":"assets/id-CY2FWdMB.js"},{"revision":null,"url":"assets/iframe-DZ181i8X.js"},{"revision":null,"url":"assets/index-AgKpYdvC.css"},{"revision":null,"url":"assets/index-B_vrglsK.js"},{"revision":null,"url":"assets/index-B1ljmpu4.css"},{"revision":null,"url":"assets/index-B2yOcqTl.js"},{"revision":null,"url":"assets/index-bb90BUf4.js"},{"revision":null,"url":"assets/index-BGgGfqEc.js"},{"revision":null,"url":"assets/index-BnmeT4Bk.js"},{"revision":null,"url":"assets/index-BT0GBmWF.js"},{"revision":null,"url":"assets/index-C0Iiqot3.css"},{"revision":null,"url":"assets/index-C8QMe2NL.js"},{"revision":null,"url":"assets/index-CGBZONPv.js"},{"revision":null,"url":"assets/index-CHbpkZwO.js"},{"revision":null,"url":"assets/index-Cjjg2_Xp.js"},{"revision":null,"url":"assets/index-CPE8Apzb.js"},{"revision":null,"url":"assets/index-CYeIiQ6Q.js"},{"revision":null,"url":"assets/index-DcBUShKK.js"},{"revision":null,"url":"assets/index-DKhrYmrN.js"},{"revision":null,"url":"assets/index-Dl4W1N74.js"},{"revision":null,"url":"assets/index-DNG6b9sp.js"},{"revision":null,"url":"assets/index-DO3_1y-L.js"},{"revision":null,"url":"assets/index-DO4cSlUf.js"},{"revision":null,"url":"assets/index-DuH8q5ir.js"},{"revision":null,"url":"assets/index-DVQCgvFb.js"},{"revision":null,"url":"assets/index-DyxFC42L.js"},{"revision":null,"url":"assets/index-EnQ254k3.js"},{"revision":null,"url":"assets/index-mDKG4SiY.js"},{"revision":null,"url":"assets/index-n0Q-fETi.js"},{"revision":null,"url":"assets/index-SDdS_qt8.js"},{"revision":null,"url":"assets/index-slEV_y-C.js"},{"revision":null,"url":"assets/index-YbJjfDTR.js"},{"revision":null,"url":"assets/InfoOutlined-CQB5qKm-.js"},{"revision":null,"url":"assets/invitation-BrAZQXQL.js"},{"revision":null,"url":"assets/invite-Cbz8B2uW.js"},{"revision":null,"url":"assets/issue-passport-Dd_yyO08.js"},{"revision":null,"url":"assets/item-nK3D7WH5.js"},{"revision":null,"url":"assets/ja-99RIjwwl.js"},{"revision":null,"url":"assets/ja-BLPXqHM4.js"},{"revision":null,"url":"assets/keyboard-arrow-down-rounded-DadBVmpO.js"},{"revision":null,"url":"assets/ko-8oFi6wHH.js"},{"revision":null,"url":"assets/ko-Cxgk34co.js"},{"revision":null,"url":"assets/landing-page-BMM_oJb1.js"},{"revision":null,"url":"assets/Launch-fxgQvk19.js"},{"revision":null,"url":"assets/launch-result-message-C9huWJUf.js"},{"revision":null,"url":"assets/LaunchOutlined-BV4_W1pb.js"},{"revision":null,"url":"assets/layout-Cw-hwCHs.js"},{"revision":null,"url":"assets/list-Dmtz4mRb.js"},{"revision":null,"url":"assets/list-header-CgF1S4js.js"},{"revision":null,"url":"assets/localization-DATb3Y_j.js"},{"revision":null,"url":"assets/Location-B8EOY3d0.js"},{"revision":null,"url":"assets/LockIcon-fuTfhB_G.js"},{"revision":null,"url":"assets/log-Chqr_or_.js"},{"revision":null,"url":"assets/log-D33dFtt_.css"},{"revision":null,"url":"assets/logger-zix81YaM.js"},{"revision":null,"url":"assets/login-DjB23H9M.js"},{"revision":null,"url":"assets/login-oauth-callback-ILeP59KT.js"},{"revision":null,"url":"assets/logo-uploader-CJrdpVcQ.js"},{"revision":null,"url":"assets/lost-passport-Do1Pl0xI.js"},{"revision":null,"url":"assets/lottie-react.esm-D2t-u0YU.js"},{"revision":null,"url":"assets/lottie-web-jYmAQWuC.js"},{"revision":null,"url":"assets/Meeting-Epdyx36z.js"},{"revision":null,"url":"assets/MoreHoriz-CX_pwfPT.js"},{"revision":null,"url":"assets/OffSick-VYgugWxu.js"},{"revision":null,"url":"assets/omit-bLid3PKQ.js"},{"revision":null,"url":"assets/open-window-D8MZhu_7.js"},{"revision":null,"url":"assets/overview-DLA9wj6a.js"},{"revision":null,"url":"assets/page-header-CWY8mxlT.js"},{"revision":null,"url":"assets/passport-item-CWtlyIE_.js"},{"revision":null,"url":"assets/permission-BGM09622.js"},{"revision":null,"url":"assets/Phone-KP65huHK.js"},{"revision":null,"url":"assets/PlayArrow-DFH1Psjx.js"},{"revision":null,"url":"assets/preferences-DYdbb0kG.js"},{"revision":null,"url":"assets/profile-embed-CeEMHxEc.js"},{"revision":null,"url":"assets/pt-BINIHul4.js"},{"revision":null,"url":"assets/pt-ChXuTrrd.js"},{"revision":null,"url":"assets/publish-resource-BEc_A5mC.js"},{"revision":null,"url":"assets/QuestionMarkCircle-p6m3avKp.js"},{"revision":null,"url":"assets/raf-schd.esm-B3j6BePR.js"},{"revision":null,"url":"assets/react-beautiful-dnd.esm-ByydTUk4.js"},{"revision":null,"url":"assets/relative-time-Djw-K4Zu.js"},{"revision":null,"url":"assets/ru-BifF7u-P.js"},{"revision":null,"url":"assets/ru-IkTTTY0K.js"},{"revision":null,"url":"assets/runtime-DXl0lfXF.js"},{"revision":null,"url":"assets/sdk-CTe6rL6c.js"},{"revision":null,"url":"assets/security-BhkfG23R.js"},{"revision":null,"url":"assets/ServerLogo-Bssx1Eou.js"},{"revision":null,"url":"assets/session-VIMbdc9j.js"},{"revision":null,"url":"assets/setup-BmYxTt6Z.js"},{"revision":null,"url":"assets/shorten-label-DFzv9EKX.js"},{"revision":null,"url":"assets/simple-select-DlrdVbaI.js"},{"revision":null,"url":"assets/slicedToArray-CPl5_eGD.js"},{"revision":null,"url":"assets/spaces-WkJCApHO.js"},{"revision":null,"url":"assets/start-CVexuuAk.js"},{"revision":null,"url":"assets/status-CygZ0LuY.js"},{"revision":null,"url":"assets/step-actions-D_1PFeFs.js"},{"revision":null,"url":"assets/studio-Byjzwg8q.js"},{"revision":null,"url":"assets/switch-control-5fEOPVKs.js"},{"revision":null,"url":"assets/th-CBxM23U5.js"},{"revision":null,"url":"assets/th-OF8xr--T.js"},{"revision":null,"url":"assets/Timezone-Ce4E1Xey.js"},{"revision":null,"url":"assets/traffic-T11hxc--.js"},{"revision":null,"url":"assets/transfer-ROpxn9LD.js"},{"revision":null,"url":"assets/TuneOutlined-Dy2qPFGI.js"},{"revision":null,"url":"assets/unsubscribe-Cd3XOnSp.js"},{"revision":null,"url":"assets/use-app-logo-B8Kl9EZt.js"},{"revision":null,"url":"assets/use-mobile-C_flBrm-.js"},{"revision":null,"url":"assets/use-mobile-DlKplWTG.js"},{"revision":null,"url":"assets/use-passport-id-B-b-_oYF.js"},{"revision":null,"url":"assets/useAsync-CGW40D2-.js"},{"revision":null,"url":"assets/useLocalStorage-DldnaMbZ.js"},{"revision":null,"url":"assets/user-center-CzyCbtWm.js"},{"revision":null,"url":"assets/useSetState-CWq0AVWn.js"},{"revision":null,"url":"assets/util-Bjy-tP7q.js"},{"revision":null,"url":"assets/util-Dw9Eiuko.js"},{"revision":null,"url":"assets/vendor-arcblock-ScFEr-lj.js"},{"revision":null,"url":"assets/vendor-hooks-DftG_2gV.js"},{"revision":null,"url":"assets/vendor-mui-core-CQ38ohp2.js"},{"revision":null,"url":"assets/vendor-mui-x-B0hsmEJ3.js"},{"revision":null,"url":"assets/vendor-react-DEoibe3W.js"},{"revision":null,"url":"assets/vendor-utils-BNHJB5U7.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-BdkhddhO.js"},{"revision":null,"url":"assets/vendor-ux-did-connect-DpSGLE7B.css"},{"revision":null,"url":"assets/vi-DCBJBc4G.js"},{"revision":null,"url":"assets/vi-DY_Y13jR.js"},{"revision":null,"url":"assets/ViewList-e3CoNi3K.js"},{"revision":null,"url":"assets/WorkingRemotely-CXFJ6pz8.js"},{"revision":null,"url":"assets/wrap-locale-DMTYAE64.js"},{"revision":null,"url":"assets/zh-BRAYg0sY.js"},{"revision":null,"url":"assets/zh-BYRCoK6F.js"},{"revision":null,"url":"assets/zh-tw-BG0rlH8p.js"},{"revision":null,"url":"assets/zh-tw-D5-DkgwC.js"},{"revision":"eec357116926535e4acce3229dca8fca","url":"index.html"},{"revision":"629a14a7e3397a134f5a30b5dc735183","url":"registerSW.js"},{"revision":"07a287e43ae8e959a20d6b367a581667","url":"router-template-styles/styles.css"},{"revision":"3c1549cff96a2d2baec44397663c083e","url":"share/shared-service-worker.js"},{"revision":"19d4c6a99cb8ed11e68209a612e7ec44","url":"share/workbox-v7.3.0/workbox-background-sync.prod.js"},{"revision":"d9d631014689e2b4b0e343c129671749","url":"share/workbox-v7.3.0/workbox-broadcast-update.prod.js"},{"revision":"bdb39ceb7380dcb1483c543e8856242b","url":"share/workbox-v7.3.0/workbox-cacheable-response.prod.js"},{"revision":"b84dd900eb18e8bc842666bbb740604e","url":"share/workbox-v7.3.0/workbox-core.prod.js"},{"revision":"c582a61c037234d8283eea0b97693b1b","url":"share/workbox-v7.3.0/workbox-expiration.prod.js"},{"revision":"866ba7d03bd871fa990976e4db312ab3","url":"share/workbox-v7.3.0/workbox-navigation-preload.prod.js"},{"revision":"0c55bb581ea7ce5ebfac1ce95cdda21f","url":"share/workbox-v7.3.0/workbox-offline-ga.prod.js"},{"revision":"770d183cf1f189a1ceb11ba8b5d808fa","url":"share/workbox-v7.3.0/workbox-precaching.prod.js"},{"revision":"295decbe1eb3b073a2a8d67cfbdf5692","url":"share/workbox-v7.3.0/workbox-range-requests.prod.js"},{"revision":"0bcb90677f3508ebc8a3571d14194478","url":"share/workbox-v7.3.0/workbox-recipes.prod.js"},{"revision":"4af96b70b2d20b041e2edd7ef1a8ef27","url":"share/workbox-v7.3.0/workbox-routing.prod.js"},{"revision":"c78c21b4058a1134ad3e12286c57cb2f","url":"share/workbox-v7.3.0/workbox-strategies.prod.js"},{"revision":"7eeb2d820d409221e076d31951fdcf79","url":"share/workbox-v7.3.0/workbox-streams.prod.js"},{"revision":"aa7368887577b9719a46b585d5dcc7a5","url":"share/workbox-v7.3.0/workbox-sw.js"},{"revision":"e768668db4eeefde11b58542900ab2ad","url":"share/workbox-v7.3.0/workbox-window.prod.umd.js"},{"revision":"f272d080151aa40322ce1603c6261ec1","url":"manifest.webmanifest"}]||[]).filter(s=>s.url!=="/"&&!s.url.includes("index.html")));be();self.addEventListener("activate",()=>{console.log("Service Worker activated")});self.addEventListener("install",s=>{console.log("Service Worker installed"),s.waitUntil(self.skipWaiting())});const he=s=>!!(s.method!=="GET"||s.url.includes("/api")||s.url.includes("__meta__.js")||s.url.includes("__blocklet__.js"));N(({request:s})=>he(s)?!1:s.url.includes("/static/"),new ie({cacheName:`static-${self.registration.scope}`,plugins:[new yt({maxEntries:200})]}));N(({request:s,url:e})=>{var t,n;return(n=(t=self.blocklet)==null?void 0:t.canCache)!=null&&n.call(t,{url:e})?["image","font","style","script"].includes(s.destination):!1},new ie({cacheName:`static-resources-${self.registration.scope}`}));N(({request:s})=>he(s)?!1:s.url.includes("/images/")||s.url.includes("/router/-template-styles/"),new ce({cacheName:`StaleWhileRevalidate-${self.registration.scope}`}));const Nt={cacheKeyWillBeUsed({request:s}){const e=new URL(s.url);return s.destination==="document"&&e.pathname.startsWith("/.well-known/service/admin")?(e.pathname="/.well-known/service/admin",e.search="",e.toString()):s.url}},w={};N(({request:s})=>["document"].includes(s.destination)?(Object.keys(w).forEach(e=>delete w[e]),!0):!w.env&&s.url.includes(".well-known/service/api/env")?(w.env=!0,!0):!w.session&&s.url.includes(".well-known/service/api/did/session")?(w.session=!0,!0):!w.blocklet&&s.url.endsWith("__blocklet__.js")?(w.blocklet=!0,!0):!1,new ce({cacheName:`documents-${self.registration.scope}`,plugins:[vt,Nt]}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.43-beta-20250425-130658-8da18f4d",
6
+ "version": "1.16.43-beta-20250427-132304-6da95c55",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -33,17 +33,17 @@
33
33
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@abtnode/analytics": "1.16.43-beta-20250425-130658-8da18f4d",
37
- "@abtnode/auth": "1.16.43-beta-20250425-130658-8da18f4d",
38
- "@abtnode/client": "1.16.43-beta-20250425-130658-8da18f4d",
39
- "@abtnode/connect-storage": "1.16.43-beta-20250425-130658-8da18f4d",
40
- "@abtnode/constant": "1.16.43-beta-20250425-130658-8da18f4d",
41
- "@abtnode/core": "1.16.43-beta-20250425-130658-8da18f4d",
42
- "@abtnode/cron": "1.16.43-beta-20250425-130658-8da18f4d",
43
- "@abtnode/logger": "1.16.43-beta-20250425-130658-8da18f4d",
44
- "@abtnode/models": "1.16.43-beta-20250425-130658-8da18f4d",
45
- "@abtnode/router-templates": "1.16.43-beta-20250425-130658-8da18f4d",
46
- "@abtnode/util": "1.16.43-beta-20250425-130658-8da18f4d",
36
+ "@abtnode/analytics": "1.16.43-beta-20250427-132304-6da95c55",
37
+ "@abtnode/auth": "1.16.43-beta-20250427-132304-6da95c55",
38
+ "@abtnode/client": "1.16.43-beta-20250427-132304-6da95c55",
39
+ "@abtnode/connect-storage": "1.16.43-beta-20250427-132304-6da95c55",
40
+ "@abtnode/constant": "1.16.43-beta-20250427-132304-6da95c55",
41
+ "@abtnode/core": "1.16.43-beta-20250427-132304-6da95c55",
42
+ "@abtnode/cron": "1.16.43-beta-20250427-132304-6da95c55",
43
+ "@abtnode/logger": "1.16.43-beta-20250427-132304-6da95c55",
44
+ "@abtnode/models": "1.16.43-beta-20250427-132304-6da95c55",
45
+ "@abtnode/router-templates": "1.16.43-beta-20250427-132304-6da95c55",
46
+ "@abtnode/util": "1.16.43-beta-20250427-132304-6da95c55",
47
47
  "@arcblock/did": "^1.20.2",
48
48
  "@arcblock/did-auth": "1.20.2",
49
49
  "@arcblock/did-ext": "^1.20.2",
@@ -53,17 +53,17 @@
53
53
  "@arcblock/jwt": "1.20.2",
54
54
  "@arcblock/validator": "^1.20.2",
55
55
  "@arcblock/ws": "1.20.2",
56
- "@blocklet/constant": "1.16.43-beta-20250425-130658-8da18f4d",
56
+ "@blocklet/constant": "1.16.43-beta-20250427-132304-6da95c55",
57
57
  "@blocklet/dbhub": "^0.2.9",
58
58
  "@blocklet/did-space-js": "^1.0.48",
59
- "@blocklet/env": "1.16.43-beta-20250425-130658-8da18f4d",
59
+ "@blocklet/env": "1.16.43-beta-20250427-132304-6da95c55",
60
60
  "@blocklet/form-builder": "^0.1.11",
61
61
  "@blocklet/form-collector": "^0.1.8",
62
- "@blocklet/images": "1.16.43-beta-20250425-130658-8da18f4d",
63
- "@blocklet/js-sdk": "1.16.43-beta-20250425-130658-8da18f4d",
62
+ "@blocklet/images": "1.16.43-beta-20250427-132304-6da95c55",
63
+ "@blocklet/js-sdk": "1.16.43-beta-20250427-132304-6da95c55",
64
64
  "@blocklet/mcp": "^1.10.2",
65
- "@blocklet/meta": "1.16.43-beta-20250425-130658-8da18f4d",
66
- "@blocklet/sdk": "1.16.43-beta-20250425-130658-8da18f4d",
65
+ "@blocklet/meta": "1.16.43-beta-20250427-132304-6da95c55",
66
+ "@blocklet/sdk": "1.16.43-beta-20250427-132304-6da95c55",
67
67
  "@blocklet/theme": "^2.13.12",
68
68
  "@blocklet/theme-builder": "^0.1.11",
69
69
  "@blocklet/uploader-server": "^0.1.95",
@@ -119,7 +119,7 @@
119
119
  "whatwg-url": "14.0.0"
120
120
  },
121
121
  "devDependencies": {
122
- "@abtnode/ux": "1.16.43-beta-20250425-130658-8da18f4d",
122
+ "@abtnode/ux": "1.16.43-beta-20250427-132304-6da95c55",
123
123
  "@arcblock/bridge": "^2.13.12",
124
124
  "@arcblock/did-connect": "^2.13.12",
125
125
  "@arcblock/icons": "^2.13.12",
@@ -127,7 +127,7 @@
127
127
  "@arcblock/ux": "^2.13.12",
128
128
  "@blocklet/launcher-layout": "^2.13.12",
129
129
  "@blocklet/payment-react": "^1.18.33",
130
- "@blocklet/tracker": "1.16.43-beta-20250425-130658-8da18f4d",
130
+ "@blocklet/tracker": "1.16.43-beta-20250427-132304-6da95c55",
131
131
  "@blocklet/ui-react": "^2.13.12",
132
132
  "@blocklet/uploader": "^0.1.83",
133
133
  "@emotion/react": "^11.11.4",
@@ -205,5 +205,5 @@
205
205
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
206
206
  "email": "shijun@arcblock.io"
207
207
  },
208
- "gitHead": "b5195a0290d5ced00bb716a709548b1a56356134"
208
+ "gitHead": "9df10dcb3135a528912241e7fc1ed54171bfeb03"
209
209
  }
@@ -1 +0,0 @@
1
- import{r as m}from"./vendor-react-DEoibe3W.js";import{u as n}from"./vendor-ux-did-connect-CsNUdA6Y.js";import{C as p,z as l,K as c,f as u}from"./index-CGJUebpH.js";import{a as x,b as d}from"./domain-action-card-B5PD8_Bw.js";import{j as t,a9 as k,ak as f,aj as h}from"./vendor-mui-core-CQ38ohp2.js";import"./vendor-utils-BNHJB5U7.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-BUng-RXZ.js";import"./ExpandLess-BpA2naWp.js";import"./permission-C_VicyW0.js";import"./session-BoLXmmdy.js";import"./dot-BE1YP292.js";import"./useAsync-CGW40D2-.js";import"./confirm-qekNSA6N.js";import"./format-error-BrmqJs5a.js";import"./actions-BPVh6JdI.js";import"./MoreHoriz-3W8Fr_ZL.js";import"./delete-confirm-DEV7zNkl.js";import"./click-to-copy-CSwrPBKm.js";import"./util-Ce3AQBfV.js";import"./useSetState-CWq0AVWn.js";import"./InfoOutlined-B-fGWta1.js";import"./index-Ci9HJ6Iv.js";import"./CheckCircle-BOBzbtP2.js";function D(){const{blocklet:o,actions:{updateBlockletDomainAliases:i}}=p(),{inService:r}=l(),{t:e}=n(),a=m.useMemo(()=>{let s=!0;return c(o)&&(s=s&&r),s},[r,o]);return t.jsxs(k,{component:f,sx:{maxWidth:820},gap:3,children:[t.jsxs(t.Fragment,{children:[u.isAccessible(o.status)===!1&&t.jsx(h,{severity:"warning",children:e("blocklet.router.noRunning")}),a&&t.jsx(x,{blocklet:o,updateBlockletDomainAliases:i,connectDomainProps:{shouldCheckDomain:!0}})]}),t.jsx(d,{showAllDomains:!0,updateBlockletDomainAliases:i})]})}D.propTypes={};export{D as default};
@@ -1,99 +0,0 @@
1
- import{r as C}from"./vendor-react-DEoibe3W.js";import{u as I,V as F,j as oe,B as N,b2 as ue,al as ie,bM as xe,b4 as fe,az as ge,bt as ye,c0 as he,a5 as je}from"./vendor-ux-did-connect-CsNUdA6Y.js";import{r as ce}from"./passport-item-BUfjEppi.js";import{l as B,z as _,aF as be,C as Ce,f as ve}from"./index-CGJUebpH.js";import{u as z}from"./dashboard-DrtJT0zg.js";import{j as e,H as j,bo as O,br as V,bn as G,q as H,a9 as f,ak as Q,O as M,aa as Y,bs as Ke,bS as ke,ag as L,T as $,ac as ae,aj as Te}from"./vendor-mui-core-CQ38ohp2.js";import{K as Ae,Y as Se}from"./vendor-arcblock-BUng-RXZ.js";import{T as le}from"./index-CY6pLbAD.js";import{C as de}from"./confirm-qekNSA6N.js";import{_ as we}from"./vendor-utils-BNHJB5U7.js";import{C as E}from"./click-to-copy-CSwrPBKm.js";import{D as De}from"./delete-confirm-DEV7zNkl.js";import{d as Ie}from"./Edit-D6qkTeBz.js";import{P as Re}from"./permission-C_VicyW0.js";import{m as Be,G as _e}from"./vendor-hooks-DftG_2gV.js";import{U as ze,C as $e,I as Ne}from"./index-D5iB7faJ.js";import{B as Le}from"./bundle-avatar-CNkSW5-i.js";import{p as Pe}from"./util-BrciyiqD.js";import{W as re}from"./did-address-DZ4aPkg2.js";import{f as We}from"./format-error-BrmqJs5a.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-BxIzITf9.js";import"./PlayArrow-Cja7S4vv.js";import"./get-safe-url-BZgGKuU5.js";import"./session-BoLXmmdy.js";import"./index-BoJFRi1m.js";import"./InfoOutlined-B-fGWta1.js";import"./dot-BE1YP292.js";import"./useAsync-CGW40D2-.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DlKplWTG.js";import"./vendor-mui-x-B0hsmEJ3.js";import"./AdapterDayjs-6a0bjomM.js";import"./Phone-KP65huHK.js";import"./Location-B8EOY3d0.js";import"./Email-Dz2Eyqu0.js";import"./Timezone-Ce4E1Xey.js";import"./base32-bFQC4m_a.js";function J({value:t}){const{t:s,locale:x}=I(),c=new Date;return new Date(t)<c?e.jsxs("span",{style:{color:"red"},children:[e.jsx(F,{value:t,locale:x}),`${s("setting.accessKey.expired",{time:""})}`]}):B(t,x)}J.propTypes={value:j.string.isRequired};function X({value:t,onChange:s,...x}){const{t:c}=I(),l=C.useMemo(()=>[{value:"signature",title:c("setting.accessKey.signature"),description:c("setting.accessKey.signatureDesc")},{value:"simple",title:c("setting.accessKey.simple"),description:c("setting.accessKey.simpleDesc")}],[c]);return e.jsxs(O,{style:{width:"100%"},variant:"outlined",...x,children:[e.jsx(V,{children:c("setting.accessKey.authType")}),e.jsx(G,{value:t,onChange:s,fullWidth:!0,label:c("setting.accessKey.authType"),children:l.map(n=>e.jsx(H,{value:n.value,children:e.jsxs(f,{children:[e.jsx("span",{children:n.title}),e.jsx(f,{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal",children:n.description})]})},n.value))})]})}X.propTypes={value:j.string.isRequired,onChange:j.func.isRequired};const W=()=>{const t=oe.RBAC_CONFIG.roles.filter(l=>l.passport),{inService:s}=_(),{roles:x}=z(),c=[...t,...s?x:[]];return we(c,"name").filter(l=>l.name!==oe.ROLES.OWNER)};function Z(t){const{remark:s,onCreate:x}=t,{api:c}=_(),{teamDid:l}=z(),{t:n}=I(),[K,g]=C.useState(!1),[r,i]=C.useState(null),T=W(),v=()=>{g(!1),i(null)},b=async m=>{const{remark:y,passport:p,authType:o}=m;g(!0);const u=await c.createAccessKey({input:{teamDid:l,remark:y.trim(),passport:p,expireAt:m.expireAt?new Date(m.expireAt).getTime():null,authType:o}}),{data:w}=u;x(w),i(null),g(!1)},d={title:`${n("common.create")} ${n("accessKey")}`,description:(m,y,p)=>e.jsxs(Q,{gap:3,children:[e.jsx(M,{label:n("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",inputProps:{"data-cy":"remark-input"},fullWidth:!0,autoFocus:!0,margin:"dense",value:m.remark,onChange:o=>{y({...m,remark:o.target.value,__disableConfirm:!m.passport||!o.target.value.trim()}),o.target.value.trim()?p(""):p(n("setting.accessKey.remarkInvalid"))}}),e.jsxs(O,{style:{width:"100%"},variant:"outlined",children:[e.jsx(V,{children:n("setting.accessKey.passport")}),e.jsx(G,{"data-cy":"create-access-key-select-passport",value:m.passport,onChange:o=>{const u=o.target.value;p(null),y({...m,passport:u,__disableConfirm:!m.remark||!u})},fullWidth:!0,label:n("setting.accessKey.passport"),disabled:K,children:T.map(o=>e.jsx(H,{value:o.name,"data-cy":`create-access-key-passport-option-${o.name}`,children:e.jsxs(f,{children:[e.jsx("span",{children:o.title||o.name}),e.jsx(f,{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify",children:o.description})]})},o.name))})]}),e.jsx(X,{value:m.authType,onChange:o=>{y({...m,authType:o.target.value})}}),e.jsx(le,{placeholder:n("setting.accessKey.expireTime"),value:m.expireAt,onChange:o=>{y({...m,expireAt:o,__disableConfirm:!m.passport||!m.remark||!o})}})]}),confirm:n("common.confirm"),cancel:n("common.cancel"),color:"primary",params:{remark:s,authType:"signature",__disableConfirm:!s.trim()},onConfirm:b,onCancel:v};return e.jsxs(e.Fragment,{children:[e.jsxs(N,{edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>i(d),className:"rule-action",children:[K?e.jsx(Y,{size:16}):e.jsx(Ae,{style:{fontSize:16}}),n("common.create")]}),r&&e.jsx(de,{title:r.title,description:r.description,confirm:r.confirm,color:r.color,cancel:r.cancel,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}Z.propTypes={remark:j.string,onCreate:j.func};Z.defaultProps={onCreate:()=>{},remark:""};function ee(t){const{onConfirm:s,accessKeyId:x,accessKeySecret:c,hideSecret:l}=t,{t:n}=C.useContext(ue),[K,g]=C.useState(!1),[r,i]=C.useState(()=>l),T=()=>{i(!r)},v=d=>{g(d.target.checked)},b=C.useMemo(()=>{var d;return l?`const Client = require('@abtnode/client');
2
-
3
- const client = new Client(fullEndpoint);
4
- client.setAuthAccessKey({
5
- accessKeyId: "${x}",
6
- accessKeySecret: "${c}",
7
- });
8
- `:`curl -H "Authorization: Bearer ${c}" "${(d=window.blocklet)==null?void 0:d.appUrl}/.well-known/service/api/did/session"`},[l,x,c]);return e.jsxs(ie,{title:n("common.createSuccess"),fullWidth:!0,open:!0,disableEscapeKeyDown:!0,onClose:s,showCloseButton:!1,actions:e.jsx("div",{children:e.jsx(N,{disabled:l?!K:!1,onClick:s,color:"primary",autoFocus:!0,variant:"contained","data-cy":"submit-confirm-dialog",children:n("common.confirm")})}),"aria-labelledby":"simple-dialog-title",children:[e.jsx("div",{children:e.jsx(qe,{children:n(l?"setting.accessKey.saveSecretTip":"setting.accessKey.viewSecret")})}),e.jsx("div",{style:{marginTop:"20px"}}),e.jsxs(U,{children:[e.jsx(q,{children:n("setting.accessKey.accessKeyId")}),e.jsx(E,{children:x})]}),e.jsxs(U,{children:[e.jsx(q,{children:n("setting.accessKey.accessKeySecret")}),r?e.jsx(N,{"data-cy":"show-secret-btn",color:"primary",onClick:T,children:n("setting.accessKey.showSecret")}):e.jsx(E,{children:c})]}),!r&&e.jsxs(U,{children:[e.jsx(q,{children:`Access Key ${n("setting.accessKey.usage")}`}),e.jsx(xe,{code:b,language:"javascript"})]}),l&&e.jsx("div",{children:e.jsx(Ke,{value:"end",disabled:r,control:e.jsx(ke,{checked:K,onChange:v}),label:n("setting.accessKey.iKnow"),labelPlacement:"end"})})]})}ee.propTypes={accessKeyId:j.string.isRequired,accessKeySecret:j.string.isRequired,onConfirm:j.func,hideSecret:j.bool};ee.defaultProps={onConfirm:()=>{},hideSecret:!0};const q=L.div`
9
- display: flex;
10
- justify-content: space-between;
11
- align-items: center;
12
- font-size: 16px;
13
- margin-bottom: 8px;
14
- `,U=L.div`
15
- margin-bottom: 24px;
16
- `,qe=L.div`
17
- font-size: 16px;
18
- font-weight: bold;
19
- `;function te(t){const{t:s,locale:x}=I(),{api:c}=_(),{teamDid:l}=z(),[n,K]=C.useState(!1),[g,r]=C.useState(null),{accessKeyId:i,time:T,remark:v,onDelete:b=()=>{}}=t,d=()=>{K(!1),r(null)},m=async()=>{K(!0);try{await c.deleteAccessKey({input:{teamDid:l,accessKeyId:i}}),b()}catch(o){console.error(o)}finally{K(!1),r(null)}},y=o=>({key:`<b>${i}</b>`,name:`<b>${v}</b>`,time:B(o,x),timeAge:Se(new Date(o),be(x))}),p={keyName:v,title:s("setting.accessKey.title"),description:T?`${s("setting.accessKey.description",y(T))}`:`${s("setting.accessKey.descriptionNoTime",{key:`<b>${i}</b>`,name:`<b>${v}</b>`})}`,confirmPlaceholder:s("setting.accessKey.confirm_desc",{name:v}),confirm:s("common.delConfirm"),cancel:s("common.cancel"),onConfirm:m,onCancel:d};return e.jsxs(e.Fragment,{children:[e.jsxs(N,{edge:"end",onClick:o=>{o.stopPropagation(),r(p)},size:"small",className:"rule-action",color:"error",children:[n?e.jsx(Y,{size:16}):e.jsx(fe,{style:{fontSize:16}}),s("common.delete")]}),g&&e.jsx(De,{keyName:g.keyName,title:g.title,description:g.description,confirmPlaceholder:g.confirmPlaceholder,confirm:g.confirm,cancel:g.cancel,params:g.params,onConfirm:g.onConfirm,onCancel:g.onCancel})]})}te.propTypes={accessKeyId:j.string.isRequired,time:j.string.isRequired,remark:j.string.isRequired,onDelete:j.func};te.defaultProps={onDelete:()=>{}};function se(t){const{accessKeyId:s,remark:x,onUpdate:c,passport:l,expireAt:n,authType:K}=t,{api:g}=_(),{teamDid:r}=z(),{t:i}=I(),[T,v]=C.useState(!1),[b,d]=C.useState(null),m=W(),y=()=>{v(!1),d(null)},p=async u=>{const{accessKeyId:w,remark:R="",passport:h,expireAt:D,authType:P}=u;v(!0),await g.updateAccessKey({input:{teamDid:r,accessKeyId:w,remark:R.trim(),passport:h,expireAt:D?new Date(D).getTime():null,authType:P}}),c(),d(null),v(!1)},o={title:`${i("common.update")} ${i("accessKey")}`,description:(u,w,R)=>e.jsxs(Q,{gap:3,children:[e.jsx(M,{label:i("setting.accessKey.accessKeyId"),autoComplete:"off",variant:"outlined",name:"accessKeyId",fullWidth:!0,autoFocus:!0,margin:"dense",value:u.accessKeyId,disabled:!0}),e.jsx(M,{label:i("common.remark"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,value:u.remark,onChange:h=>{w({...u,remark:h.target.value,__disableConfirm:!h.target.value.trim()}),h.target.value.trim()?R(""):R(i("setting.accessKey.remarkInvalid"))}}),e.jsxs(O,{style:{width:"100%"},variant:"outlined",children:[e.jsx(V,{children:i("setting.accessKey.passport")}),e.jsx(G,{"data-cy":"update-access-key-select-passport",value:u.passport,onChange:h=>{const D=h.target.value;R(null),w({...u,passport:D,__disableConfirm:!u.remark||!D})},fullWidth:!0,label:i("setting.accessKey.passport"),disabled:T,children:m.map(h=>e.jsx(H,{value:h.name,"data-cy":`update-access-key-passport-option-${h.name}`,children:e.jsxs(f,{children:[e.jsx("span",{children:h.title||h.name}),e.jsx(f,{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify",children:h.description})]})},h.name))})]}),e.jsx(X,{disabled:!0,value:u.authType,onChange:h=>{w({...u,authType:h.target.value})}}),e.jsx(le,{placeholder:i("setting.accessKey.expireTime"),value:u.expireAt,onChange:h=>{w({...u,expireAt:h,__disableConfirm:!u.passport||!u.remark||!h})}})]}),confirm:i("common.confirm"),cancel:i("common.cancel"),color:"primary",params:{accessKeyId:s,remark:x,passport:l,expireAt:n,authType:K},onConfirm:p,onCancel:y};return e.jsxs(e.Fragment,{children:[e.jsxs(N,{edge:"end",onClick:u=>{u.stopPropagation(),d(o)},size:"small",className:"rule-action",color:"primary",children:[T?e.jsx(Y,{size:16}):e.jsx(Ie,{style:{fontSize:16}}),i("common.update")]}),b&&e.jsx(de,{title:b.title,description:b.description,confirm:b.confirm,color:b.color,cancel:b.cancel,params:b.params,onConfirm:b.onConfirm,onCancel:b.onCancel})]})}se.propTypes={accessKeyId:j.string.isRequired,remark:j.string,passport:j.string,expireAt:j.string,authType:j.string,onUpdate:j.func};se.defaultProps={onUpdate:()=>{},remark:"",passport:"",expireAt:"",authType:"signature"};function ne({accessKey:t,onCancel:s}){const{t:x}=I();return e.jsx(ie,{title:x("accessKey"),onClose:s,open:!0,PaperProps:{style:{maxWidth:800}},fullWidth:!0,children:e.jsx(Ue,{children:e.jsx(me,{accessKey:t})})})}ne.propTypes={accessKey:j.object.isRequired,onCancel:j.func.isRequired};ne.defaultProps={};const Ue=L(f)`
20
- margin-top: -16px;
21
-
22
- .tabs {
23
- margin-left: 0;
24
- margin-right: 0;
25
- }
26
- `;function me({accessKey:t}){var m,y;const{t:s,locale:x}=I(),{api:c}=_(),{teamDid:l}=z(),{blocklet:n}=Ce(),K=W(),g=C.useCallback(async p=>p?(await c.getUser({input:{teamDid:l,user:{did:p}}})).user:null,[c,l]),r=Be(()=>g(t.createdBy),{}),i=((n==null?void 0:n.children)||[]).find(p=>{var o;return((o=p==null?void 0:p.meta)==null?void 0:o.did)===t.componentDid}),T=C.useMemo(()=>{var p;return Pe((p=r==null?void 0:r.data)==null?void 0:p.avatar,l,!0)},[(m=r==null?void 0:r.data)==null?void 0:m.avatar,l]),v=K.find(p=>p.name===t.passport),b=v?v.title:t.passport,d=[{title:s("common.baseInfo"),items:[{label:s("setting.accessKey.accessKeyId"),content:e.jsx(re,{did:t.accessKeyId,showQrcode:!0})},...t.authType==="simple"?[{label:s("setting.accessKey.accessKeySecret"),content:e.jsx(E,{children:`blocklet-${ge.toBase58(t.accessKeyPublic)}`})}]:[],{label:s("common.role"),content:e.jsx(f,{children:ce(b,t.passport)})},{label:s("common.createdVia"),content:t.createdVia},{label:s("common.createdBy"),content:r!=null&&r.data?e.jsx(f,{sx:{display:"flex",alignItems:"center",".MuiAvatar-root":{width:32,height:32}},children:e.jsx(ze,{user:{...r.data,avatar:T},showDid:!0,cardType:$e.Detailed,infoType:Ne.Minimal,sx:{border:0,padding:0}})}):t.createdBy?e.jsx(re,{did:t.createdBy,showQrcode:!0}):"-"}]},{title:s("common.timeInfo"),items:[{label:s("common.createdAt"),content:t.createdAt?B(t.createdAt,x):"-"},{label:s("common.lastUsedAt"),content:t.lastUsedAt?B(t.lastUsedAt,x):"-"},{label:s("common.expiredAt"),content:t.expireAt?e.jsx(J,{value:t.expireAt}):s("common.neverExpired")}]},{title:s("common.otherInfo"),items:[{label:s("setting.accessKey.authType"),content:t.authType},{label:s("common.remark"),content:t.remark},...t.authType!=="signature"?[{label:s("setting.accessKey.resourceType"),content:t.resourceType||"-"},{label:s("setting.accessKey.resourceId"),content:t.resourceId||"-"}]:[],...i?[{label:s("setting.accessKey.component"),content:e.jsxs(f,{width:{xs:250,sm:400},display:"flex",alignItems:"center",children:[e.jsx(Le,{blocklet:i,ancestors:[n]}),e.jsx(f,{ml:"16px",sx:{minWidth:0},children:e.jsxs(f,{className:"component-header",children:[e.jsx(f,{className:"component-name",children:ve.getDisplayName(i,!0)}),e.jsx(f,{className:"component-version",children:(y=i==null?void 0:i.meta)==null?void 0:y.version})]})})]},i)}]:[]]}];return e.jsx(Fe,{gap:3,children:e.jsx(f,{className:"info-area",children:d.map(p=>e.jsxs(f,{mb:3,children:[e.jsx($,{variant:"h6",sx:{mb:1.5},children:p.title}),e.jsx(f,{className:"info-grid",children:p.items.map(o=>e.jsxs(f,{className:"info-item",children:[e.jsx(f,{className:"info-label",children:e.jsx($,{variant:"subtitle2",color:"textSecondary",children:o.label})}),e.jsx(f,{children:o.content})]},o.label))})]},p.title))})})}me.propTypes={accessKey:j.object.isRequired};const Fe=L(Q)`
27
- .info-card {
28
- margin-bottom: 24px;
29
- overflow: hidden;
30
- }
31
-
32
- .card-content {
33
- display: flex;
34
- gap: 32px;
35
- padding: 24px;
36
- }
37
-
38
- .passport-image {
39
- width: 150px;
40
- flex-shrink: 0;
41
- transition: transform 0.2s ease-in-out;
42
- cursor: pointer;
43
-
44
- &:hover {
45
- transform: scale(1.05);
46
- }
47
- }
48
-
49
- .info-area {
50
- flex: 1;
51
- display: flex;
52
- flex-direction: column;
53
- }
54
-
55
- .info-header {
56
- padding-bottom: 16px;
57
- border-bottom: 1px solid #eee;
58
- }
59
-
60
- .info-grid {
61
- display: flex;
62
- flex-direction: column;
63
- gap: 12px;
64
- }
65
-
66
- .info-item {
67
- display: flex;
68
- gap: 8px;
69
- }
70
-
71
- .info-label {
72
- display: flex;
73
- align-items: center;
74
- gap: 8px;
75
- width: 140px;
76
- }
77
-
78
- .logs-card {
79
- .card-header {
80
- display: flex;
81
- align-items: center;
82
- gap: 8px;
83
- padding: 16px 24px;
84
- border-bottom: 1px solid #eee;
85
- }
86
-
87
- .MuiTimeline-root {
88
- padding: 24px;
89
- }
90
-
91
- .MuiTimelineContent-root {
92
- padding: 0px 16px;
93
- }
94
-
95
- .MuiTimelineDot-root {
96
- margin: 0;
97
- }
98
- }
99
- `;function St(){var D,P;const{t,locale:s}=I(),{api:x,inService:c}=_(),{teamDid:l}=z(),[n,K]=C.useState({}),[g,r]=C.useState(null),i=W(),T=C.useRef(null),v=`access-keys-${l}`,b=ye(v),[d,m]=C.useState({searchText:b.searchText||"",pageSize:b.rowsPerPage||10,page:1}),y=_e(async()=>await x.getAccessKeys({input:{teamDid:l,paging:{page:d.page,pageSize:d.pageSize}}}),[d.page,d.pageSize]),{loading:p,error:o}=y,u=C.useMemo(()=>{var a;return((a=y.value)==null?void 0:a.list)||[]},[(D=y.value)==null?void 0:D.list]),w=C.useMemo(()=>[{label:t("common.name"),name:"remark",options:{customBodyRender:(a,{rowIndex:A})=>{const k=u[A];return e.jsx(f,{display:"flex",alignItems:"center",gap:2,children:e.jsx($,{children:k.remark||"N/A"})})}}},{label:"Access Key ID",name:"accessKeyId",options:{customBodyRender:a=>e.jsx(he,{showDidLogo:!1,children:a})}},{label:t("common.role"),name:"passport",options:{customBodyRender:a=>{const A=i.find(S=>S.name===a),k=A?A.title:a;return e.jsx(f,{children:ce(k,a)})}}},{label:t("common.createdVia"),name:"createdVia",options:{customBodyRender:a=>e.jsx($,{children:a})}},{label:t("setting.accessKey.authType"),name:"authType",options:{customBodyRender:a=>e.jsx($,{children:t(`setting.accessKey.${a}`)})}},{label:t("common.createdAt"),name:"createdAt",options:{customBodyRender:a=>e.jsx(ae,{title:B(a,s),children:a?e.jsx(F,{value:a,locale:s}):"-"})}},{label:t("common.lastUsedAt"),name:"lastUsedAt",options:{customBodyRender:a=>e.jsx(ae,{title:B(a,s),children:a?e.jsx(F,{value:a,locale:s}):"-"})}},{label:t("common.expiredAt"),name:"expireAt",options:{customBodyRender:a=>a?e.jsx(J,{value:a}):t("common.neverExpired")}},{label:t("common.actions"),name:"actions",width:100,options:{customBodyRender:(a,{rowIndex:A})=>{const k=u[A];return e.jsxs(f,{display:"flex",gap:1,children:[e.jsx(se,{...k,onUpdate:y.retry}),e.jsx(te,{accessKeyId:k.accessKeyId,time:k.lastUsedAt,remark:k.remark||"N/A",onDelete:y.retry})]})}}}],[u,s,t,y.retry,i]),R=({page:a,rowsPerPage:A,searchText:k})=>{d.pageSize!==A?m(S=>({...S,searchText:"",pageSize:A,page:1})):d.page!==a+1?m(S=>({...S,searchText:"",page:a+1})):d.searchText!==k&&m(S=>({...S,searchText:k,page:1}))},h=d.searchText?u.filter(a=>a.accessKeyId.toLowerCase().includes(d.searchText.toLowerCase())||(a.remark||"").toLowerCase().includes(d.searchText.toLowerCase())):u;return o?e.jsx(Te,{severity:"error",children:We(o)}):e.jsxs(f,{ref:T,sx:{".custom-toobar-btns":{gap:"8px"}},children:[e.jsx(je,{durable:v,durableKeys:["page","rowsPerPage"],data:h,columns:w,options:{sort:!1,download:!1,filter:!1,print:!1,viewColumns:!1,page:d.page-1,rowsPerPage:d.pageSize,count:((P=y.value)==null?void 0:P.count)||0,searchDebounceTime:600,onRowClick(a,{dataIndex:A},k){var S;if((S=T.current)!=null&&S.contains(k.target)){const pe=h[A];r(pe)}}},loading:p,onChange:R,customButtons:[e.jsx(Re,{permission:c?"":"mutate_accessKey",children:e.jsx(Z,{onCreate:a=>{const{accessKeyId:A,accessKeySecret:k,authType:S}=a;K({show:!0,accessKeyId:A,accessKeySecret:k,authType:S})}})})]}),n.show&&e.jsx(ee,{hideSecret:n.authType==="signature",onConfirm:()=>{y.retry(),K({show:!1})},...n}),g&&e.jsx(ne,{onCancel:()=>r(null),accessKey:g})]})}export{St as default};
@@ -1 +0,0 @@
1
- import{j as o}from"./vendor-mui-core-CQ38ohp2.js";import"./vendor-react-DEoibe3W.js";import{S as t}from"./studio-gQoPFCFH.js";import"./vendor-ux-did-connect-CsNUdA6Y.js";import"./vendor-utils-BNHJB5U7.js";import"./vendor-hooks-DftG_2gV.js";import"./lottie-web-jYmAQWuC.js";import"./vendor-arcblock-BUng-RXZ.js";import"./TuneOutlined-B3W8vgdw.js";function d(){return o.jsx(t,{children:"Coming soon..."})}export{d as default};
@@ -1 +0,0 @@
1
- import{aX as o}from"./vendor-ux-did-connect-CsNUdA6Y.js";const e=o();export{e as b};
@@ -1 +0,0 @@
1
- import{ax as _,ap as i}from"./vendor-ux-did-connect-CsNUdA6Y.js";import{_ as e}from"./vendor-arcblock-BUng-RXZ.js";import{y as a}from"./index-CGJUebpH.js";import{j as r}from"./vendor-mui-core-CQ38ohp2.js";const u={en:_(a),ar:()=>e(()=>import("./ar-mN5tHF4O.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-BP5gdcKp.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-CBFvWN06.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-CmHa1dCv.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-CWyDCXYI.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-3xH3q-wr.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-Dlm9gbED.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-JYKwx9PY.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-BgyGyT44.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-CEVWIKf9.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-y94pKVk7.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-Dw7W2UPp.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-CMYkmBeh.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-Dag6w2Z7.js"),[]).then(t=>_(t.default))};function f(t){return function(o){return r.jsx(i,{translations:u,children:r.jsx(t,{...o})})}}export{f as w};