@abtnode/webapp 1.16.21-beta-46c675eb → 1.16.21-beta-e828f413

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 (64) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +36 -35
  4. package/build/index.html +1 -1
  5. package/build/service-worker.js +1 -1
  6. package/build/static/js/1294.5b08d5e3.chunk.js +1 -0
  7. package/build/static/js/{1667.3001639f.chunk.js → 1667.488a600b.chunk.js} +1 -1
  8. package/build/static/js/{1685.00ac41cb.chunk.js → 1685.c6f7a83f.chunk.js} +2 -2
  9. package/build/static/js/2183.e57ce8a2.chunk.js +1 -0
  10. package/build/static/js/2435.88762f30.chunk.js +1 -0
  11. package/build/static/js/2443.00426c01.chunk.js +1 -0
  12. package/build/static/js/{3389.72b7e591.chunk.js → 3389.282a0683.chunk.js} +1 -1
  13. package/build/static/js/3883.f14e204a.chunk.js +1 -0
  14. package/build/static/js/4382.0d3258d7.chunk.js +2 -0
  15. package/build/static/js/4471.a41284d9.chunk.js +1 -0
  16. package/build/static/js/{6490.8f3553c2.chunk.js → 4509.231da63f.chunk.js} +2 -2
  17. package/build/static/js/4549.5fda7728.chunk.js +1 -0
  18. package/build/static/js/{4775.b0cede7b.chunk.js → 4775.19ec4c25.chunk.js} +1 -1
  19. package/build/static/js/4906.aced1b76.chunk.js +1 -0
  20. package/build/static/js/5059.b85795c1.chunk.js +1 -0
  21. package/build/static/js/{5672.b32c024f.chunk.js → 5672.19e3e3e6.chunk.js} +1 -1
  22. package/build/static/js/{5804.996e83bb.chunk.js → 5804.c02bc104.chunk.js} +2 -2
  23. package/build/static/js/{5979.bd3d3c0f.chunk.js → 5979.4e4ebbf1.chunk.js} +1 -1
  24. package/build/static/js/6230.b1753197.chunk.js +1 -0
  25. package/build/static/js/6511.623f368a.chunk.js +1 -0
  26. package/build/static/js/{6580.8cdb4aa4.chunk.js → 6580.fc3c74eb.chunk.js} +1 -1
  27. package/build/static/js/{6931.e9297d29.chunk.js → 6931.a2586ea5.chunk.js} +1 -1
  28. package/build/static/js/{7020.2fd6f467.chunk.js → 7020.ccd573af.chunk.js} +1 -1
  29. package/build/static/js/{7022.02d74e90.chunk.js → 7022.9d96c66f.chunk.js} +1 -1
  30. package/build/static/js/{7150.9849325f.chunk.js → 7150.ff7c498c.chunk.js} +1 -1
  31. package/build/static/js/{7657.380e09e9.chunk.js → 7657.ec1da0b4.chunk.js} +2 -2
  32. package/build/static/js/7706.74e51876.chunk.js +2 -0
  33. package/build/static/js/7718.b0d91373.chunk.js +1 -0
  34. package/build/static/js/8537.b03e14a8.chunk.js +1 -0
  35. package/build/static/js/{8986.0c6ecc50.chunk.js → 8986.d64838dd.chunk.js} +1 -1
  36. package/build/static/js/95.08f81beb.chunk.js +1 -0
  37. package/build/static/js/{9552.82c09530.chunk.js → 9552.3effa95b.chunk.js} +1 -1
  38. package/build/static/js/main.b3ba7d08.js +2 -0
  39. package/build/static/js/{main.c88b220e.js.LICENSE.txt → main.b3ba7d08.js.LICENSE.txt} +1 -1
  40. package/package.json +1 -1
  41. package/build/static/js/1294.8ccea539.chunk.js +0 -1
  42. package/build/static/js/1633.5c43bf43.chunk.js +0 -2
  43. package/build/static/js/3826.d40f6fa7.chunk.js +0 -2
  44. package/build/static/js/3883.46d0ebdd.chunk.js +0 -1
  45. package/build/static/js/4435.5212440d.chunk.js +0 -1
  46. package/build/static/js/4448.d67840f3.chunk.js +0 -1
  47. package/build/static/js/4471.c2380391.chunk.js +0 -1
  48. package/build/static/js/4906.b8af826c.chunk.js +0 -1
  49. package/build/static/js/6511.978080d1.chunk.js +0 -1
  50. package/build/static/js/7718.49194e44.chunk.js +0 -1
  51. package/build/static/js/8382.e1c429ed.chunk.js +0 -1
  52. package/build/static/js/8537.d5e4e119.chunk.js +0 -1
  53. package/build/static/js/8973.639c0cf3.chunk.js +0 -1
  54. package/build/static/js/9277.babc5673.chunk.js +0 -1
  55. package/build/static/js/95.f2b78229.chunk.js +0 -1
  56. package/build/static/js/main.c88b220e.js +0 -2
  57. /package/build/static/css/{3826.a5e3e6d6.chunk.css → 4382.a5e3e6d6.chunk.css} +0 -0
  58. /package/build/static/css/{8973.9cab926a.chunk.css → 6230.9cab926a.chunk.css} +0 -0
  59. /package/build/static/js/{1685.00ac41cb.chunk.js.LICENSE.txt → 1685.c6f7a83f.chunk.js.LICENSE.txt} +0 -0
  60. /package/build/static/js/{3826.d40f6fa7.chunk.js.LICENSE.txt → 4382.0d3258d7.chunk.js.LICENSE.txt} +0 -0
  61. /package/build/static/js/{5804.996e83bb.chunk.js.LICENSE.txt → 4509.231da63f.chunk.js.LICENSE.txt} +0 -0
  62. /package/build/static/js/{6490.8f3553c2.chunk.js.LICENSE.txt → 5804.c02bc104.chunk.js.LICENSE.txt} +0 -0
  63. /package/build/static/js/{7657.380e09e9.chunk.js.LICENSE.txt → 7657.ec1da0b4.chunk.js.LICENSE.txt} +0 -0
  64. /package/build/static/js/{1633.5c43bf43.chunk.js.LICENSE.txt → 7706.74e51876.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1667],{13455:(e,n,t)=>{t.d(n,{Z:()=>d});var a=t(55898),l=t.n(a),o=t(95081),s=t(72333);const i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1aSURBVHgB7d3ZjhxVEoDhxDKN902AUF/w/s/lCwthtXc3VsvyzETNJNOUe6kllzgnvk9KwVyMMNj5d2ZGRtUP//qPAaCgOwNAUQIIlCWAQFl3B5jJt2/fhvPz8+HDhw/DxcXF5n/fuXNnODk5GR4/fjzcv39/uHvXH0HW84MhCFOL0L1//35zxN9fJ+J379694cWLF0LIKgSQyewavqs8evRICFm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JLmsQQGaxy0vVBhusTQCZVYTww4cPmy84iu/6iNDFqtr9+/eFj9UJIFCWH79AWQIIlCWAQFn/BizMxGSX68uEAAAAAElFTkSuQmCC";var r=t(74094),c=t(96266);function d(e){let{blocklet:n,blockletMetaUrl:t}=e;const{did:a,logo:l}=n.meta;let d;return d=l?(0,c.jsx)(o.Z,{src:(0,r.aZ)({did:a,logoPath:l,baseUrl:new URL(t).origin}),fallback:i,width:64,size:"contain",placeholder:"application logo"}):(0,c.jsx)(s.Z,{did:a,size:64}),d}d.propTypes={blocklet:l().object.isRequired,blockletMetaUrl:l().string.isRequired}},13932:(e,n,t)=>{t.d(n,{Z:()=>p});var a,l=t(71171),o=t(68420),s=t(76811),i=t(33518),r=t(39948),c=t(5057),d=t(34937),u=t(96266);const h=(e,n)=>{console.info("getDownloadBundleStep",e);return(e||[]).map((e=>{var t;const a=n("launchBlocklet.waiting.".concat("extracting"===e.status?"extractingComponent":"downloadingComponent"),{name:(null===(t=e.component)||void 0===t?void 0:t.title)||""}),l=e.total&&e.current?": ".concat(Math.floor(e.current/e.total*100)," %"):"";let o=e.name?": ".concat(e.name):"";return l||(o+="..."),"".concat(a).concat(l).concat(o)})).join("\n")};function p(e){let{appDid:n,visible:t}=e;const{t:a}=(0,o.PE)(),l=function(e){let{appDid:n}=e;const[t,a]=(0,c.useState)([]),l=(0,d.ZP)();return(0,c.useEffect)((()=>(l.on(s.BlockletEvents.downloadBundleProgress,(e=>{n&&n===(null===e||void 0===e?void 0:e.appDid)&&a((n=>{const t=[...n],a=t.findIndex((n=>{var t,a;return(null===(t=n.component)||void 0===t?void 0:t.did)===(null===(a=e.component)||void 0===a?void 0:a.did)}));return"completed"===e.status?-1!==a&&t.splice(a,1):-1!==a?t[a]=e:t.push(e),[...t]}))})),()=>{l.off(s.BlockletEvents.downloadBundleProgress)})),[n,l]),t}({appDid:n});return(0,u.jsx)(m,{style:{display:t?"block":"none"},children:h(l,a)})}p.defaultProps={appDid:"",visible:!0};const m=(0,i.Z)(r.Z)(a||(a=(0,l.Z)(["\n flex: 0 0 auto;\n white-space: pre;\n overflow-y: auto;\n overflow-x: auto;\n max-height: 10em;\n max-width: 500px;\n min-width: auto;\n @media (max-width: ","px) {\n max-width: 90%;\n max-height: 30vh;\n }\n"])),(e=>e.theme.breakpoints.values.md))},66436:(e,n,t)=>{t.d(n,{Z:()=>i});var a,l=t(71171),o=t(33518),s=t(96266);function i(e){let{children:n}=e;return(0,s.jsx)(r,{children:n})}const r=o.Z.div(a||(a=(0,l.Z)(["\n color: #1dc1c7;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n"])))},11476:(e,n,t)=>{t.d(n,{Z:()=>x});var a=t(5057),l=t(76811),o=t(31853),s=t(11397),i=t.n(s),r=t(34937),c=t(10155);const d=i()("@abtnode/webapp:launch-blocklet:runtime-state"),u=Object.keys(l.BlockletStatus),h=Object.values(l.BlockletStatus),p=Object.values(l.BlockletEvents).filter((e=>![l.BlockletEvents.purchaseChange,l.BlockletEvents.domainStatus].includes(e))),m=(e,n)=>{var t;return(null===e||void 0===e?void 0:e.appDid)===n||(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.did)===n},g=8e3,f=2e3;function x(e){const n=(0,c.Z)(),t=(0,r.ZP)(),l=(0,a.useRef)(null),s=()=>{e&&!l.current&&(l.current=setInterval((()=>{e&&(d("polling blocklet state"),v())}),f))},[i,x]=(0,o.Z)({status:null,eventName:"",runtimeBlocklet:null,error:"",isGetBlocklet:!1,startPolling:s,stopPolling:()=>{l.current&&clearInterval(l.current)}}),v=()=>{n.getBlocklet({input:{did:e,attachRuntimeInfo:!0}}).then((e=>{x({status:e.blocklet?e.blocklet.status:"",eventName:"",runtimeBlocklet:e.blocklet,isGetBlocklet:!0})})).catch((e=>{console.error("get blocklet failed",e)}))};(0,a.useEffect)((()=>{let n=null;return e&&(d("schedule polling blocklet state"),n=setTimeout((()=>{s()}),g)),()=>{n&&clearInterval(n)}}),[e]),(0,a.useEffect)((()=>{e?null===i.status&&(d("polling blocklet state on start"),v()):x({status:"",eventName:"",runtimeBlocklet:null})}),[e,i.status]);const b=n=>t=>{if(m(t,e)){const e={status:null,eventName:n,runtimeBlocklet:t,isGetBlocklet:!1};if(t.error)d("blocklet error",{blockletEventName:n,error:t.error}),e.status="error",e.error=t.error;else{const a=u[h.indexOf(t.status)];d("blocklet event",{blockletEventName:n,status:a}),a&&(e.status=a)}x(e)}};for(const o of p)(0,a.useEffect)((()=>{const n=b(o);return e&&t.on(o,n),()=>{e&&t.off(o,n)}}),[e]);return i}},71667:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ue});var a,l,o=t(71171),s=t(85493),i=t(6352),r=t.n(i),c=t(21371),d=t(72904),u=t(33518),h=t(68420),p=t(63902),m=t(51703),g=t(12073),f=t(15959),x=t(10866),v=t(4456),b=t(28864),k=t(99641),y=t(44846),j=t(88574),w=t(35966),A=t(75793),E=t(38242),C=t(55309),Z=t(8790),B=t(77609),L=t(23484),N=t(96266);const M=u.Z.a(a||(a=(0,o.Z)(["\n display: block;\n height: 36px;\n color: ",";\n"])),(e=>e.theme.palette.primary.main)),P=(0,u.Z)(Z.Z)(l||(l=(0,o.Z)(["\n .app-info_desc {\n font-weight: 400;\n margin-top: 40px;\n font-size: 18px;\n line-height: 21px;\n color: #222222;\n }\n\n .body {\n text-align: center;\n }\n\n "," {\n .app-info_desc {\n font-size: 16px;\n }\n }\n\n .circle_icon {\n font-size: 58px;\n color: ",";\n }\n"])),(e=>e.theme.breakpoints.down("md")),(e=>"error"===e.variant?e.theme.palette.error.main:e.theme.palette.success.main)),D=function(){const{t:e}=(0,h.PE)(),{info:n}=(0,A.h6)(),t=(0,L.Z)(),a=decodeURIComponent(t.get("accessUrl")||""),{meta:l}=(0,B.H0)();return(0,N.jsx)(P,{children:(0,N.jsx)("div",{className:"body",children:(0,N.jsx)(C.Z,{variant:"success",title:(0,E.getDisplayName)({meta:l},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:n.name}),footer:(0,N.jsx)(M,{href:a,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})};var I=t(39463),R=t(4651),Q=t(86229),T=t(14491),O=t(60344),S=t(17450),z=t(49983),U=t(35266),J=t(76811),F=t(2660),H=t(77429),X=t(48086),K=t(38898),V=t(75506),G=t.n(V),Y=t(50482),W=t.n(Y),_=t(5057),q=t(15849),$=t(67654),ee=t(31853),ne=t(11397),te=t.n(ne),ae=t(52581),le=t(11476),oe=t(25339),se=t(74094),ie=t(13455),re=t(28726);function ce(e){let{children:n,...t}=e;return(0,N.jsx)(re.Z,{variant:"contained",color:"primary",...t,children:n})}const de=(0,_.forwardRef)(((e,n)=>(0,N.jsx)(ce,{...e,forwardedRef:n})));var ue,he,pe,me,ge=t(13932),fe=t(93040),xe=t(66436);const ve=te()("@abtnode/webapp:launch-blocklet:step-install"),be=(e,n)=>!n.statusChanged&&("installed"===e||"running"===e)&&!n.launching,ke=(e,n,t)=>t("nft"===n?e?"launchBlocklet.dialog.nftFreeDescription":"launchBlocklet.dialog.nftPaidDescription":e?"launchBlocklet.dialog.freeDescription":"launchBlocklet.dialog.paidDescription"),ye="setup_token",je=e=>{sessionStorage.setItem(ye,e)},we=()=>{sessionStorage.removeItem(ye)},Ae=()=>sessionStorage.getItem(ye);function Ee(){const e=(0,L.Z)(),{t:n,locale:t}=(0,h.PE)(),{api:a,info:l}=(0,A.h6)(),{session:o,api:i}=(0,oe.Tt)(),c=(0,s.useNavigate)(),{loading:d,meta:u,isFree:p,appDid:m,sessionId:g,storeUrl:f,blockletMetaUrl:x,isExternal:v,setAppDid:b,launcherUrl:k,launcherSessionId:j,isInstalling:C,isInstalled:Z}=(0,B.H0)(),M=u?(0,E.getDisplayName)({meta:u},!0):null,P=e.get("launchType"),D=e.get("chainHost"),V=e.get("nftId"),Y=(0,_.useRef)(null),{decrypt:ne,encryptKey:te}=(0,z.R)(),[re]=(0,$.Z)("skip-blocklet-setup",!1),[ce,ue]=(0,ee.Z)({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),he=(0,fe.Iq)({user:o.user,launchType:P,nftId:V}),pe=(0,I.getServerAuthMethod)(l,P,j,he),me=(0,le.Z)(he?m:""),{status:ye,eventName:Ee}=me,Ne=e.get("from");(0,_.useEffect)((()=>{d||(Z||C||Me(),ue({loaded:!0}))}),[d]);const Me=async()=>{const e=o.user?"".concat(o.user.fullName,"'s ").concat(M):M;if(ue({installError:null}),null!==o&&void 0!==o&&o.user&&!v&&"serverless"!==P)try{await(async()=>{const{isNew:e,decoded:n}=(0,se.bQ)(f,l.blockletRegistryList);e&&await a.addBlockletStore({input:{teamDid:l.did,url:n}})})()}catch(h){console.error("addNewRegistryToRegistryList error:",h)}if(p){var n,t,s;const a="launch-free-blocklet-by-".concat(pe);ue({isConnectOpen:!0,connectData:{action:a,baseUrl:"",checkFn:O.od.create({baseURL:null!==(n=null===(t=window)||void 0===t||null===(s=t.env)||void 0===s?void 0:s.apiPrefix)&&void 0!==n?n:"/"}).get,extraParams:{wt:(0,R.iK)(u),title:e,blockletMetaUrl:x,launchType:P,nftId:V,chainHost:decodeURIComponent(D),launcherUrl:k,launcherSessionId:j}}})}else{var i,c,d;const n="launch-paid-blocklet-by-".concat(pe),t=new URL(window.location.href);t.pathname=r()(null!==(i=null===(c=window)||void 0===c||null===(d=c.env)||void 0===d?void 0:d.apiPrefix)&&void 0!==i?i:"/","/api/did/".concat(n,"/token")),t.searchParams.set("wt",(0,R.iK)(u)),t.searchParams.set("_ek_",te),t.searchParams.set("title",e),t.searchParams.set("autoConnect",!1),t.searchParams.set("blockletMetaUrl",x),P&&t.searchParams.set("launchType",P),V&&t.searchParams.set("nftId",V),k&&t.searchParams.set("launcherUrl",k),j&&t.searchParams.set("launcherSessionId",j);const{data:a}=await O.hi.get(t.href);ue({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(x).origin,checkFn:O.od.create({baseURL:new URL(x).origin}).get,extraParams:{serverDid:l.did,blockletDid:null===u||void 0===u?void 0:u.did,nw:a.url}}})}},Pe=async n=>{if(ve("visitBlocklet",{status:ye,state:ce,appDid:m}),ce.visiting)return;ue({visiting:!0});const t=(0,T.A6)({blocklet:n}),a=await(0,se.D)(t);if(G()(a)&&"serverless"!==P||re)return ue({visiting:!1}),void setTimeout((()=>{(n=>{const t="/".concat(l.routing.adminPath,"/blocklets/").concat(n.meta.did,"/configuration").replace(/\/+/g,"/");let a="/launch-blocklet/complete?status=installed&name=".concat(encodeURIComponent(M),"&accessUrl=").concat(encodeURIComponent(t),"&blocklet_meta_url=").concat(x);const o=e.get("fromLauncher");o&&(a+="&fromLauncher=".concat(o)),P&&(a+="&launchType=".concat(P)),D&&(a+="&chainHost=".concat(D)),c(a)})(n)}),1e3);if(G()(a))return void ue({visiting:!1});if(!1===be(ye,ce))try{await i.post("/api/launch/".concat(g))}catch(d){ve("end launch failed",{error:(0,se.Z)(d)})}const o=new URL(a);o.searchParams.set("serverUrl",(0,R.RU)(l)),"running"!==n.status&&o.searchParams.set("__start__","1");const s=e.get("fromLauncher");s&&o.searchParams.set("fromLauncher",s),P&&o.searchParams.set("launchType",P),V&&o.searchParams.set("nftId",V),D&&o.searchParams.set("chainHost",D);const r=Ae();r&&o.searchParams.set("setupToken",r),ue({nextAccessUrl:o.href,visiting:!1}),setTimeout((()=>{we(),window.location.href=o.href}),1e3)},De=[n("launchBlocklet.waiting.verifying"),n("launchBlocklet.waiting.downloading"),n("launchBlocklet.waiting.extracting"),n("upgrading"===ye?"common.upgrading":"launchBlocklet.waiting.installing"),n("launchBlocklet.waiting.done")],Ie=()=>{ve("handleInstalledProgress",{status:ye,state:ce}),ye&&(ue({progressIndex:4}),Y.current&&(clearTimeout(Y.current),Y.current=null),Y.current=setTimeout((()=>{a.getBlocklet({input:{did:m,attachRuntimeInfo:!0}}).then((e=>{e.blocklet&&Pe(e.blocklet)}))}),500))};if((0,_.useEffect)((()=>{C&&ue({launching:!0}),Z&&Ie()}),[Z,C]),(0,_.useEffect)((()=>{if("serverless"!==P||Ee!==J.BlockletEvents.nftConsumed)switch(ye){case"waiting":ue({progressIndex:1,statusChanged:!0});break;case"downloading":ue({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":ue({progressIndex:3,statusChanged:!0});break;case"installed":if("serverless"===P&&!(0,fe.MZ)(me))break;Ie();break;case"starting":case"running":case"stopped":Ie();break;case"corrupted":case"error":{const n={message:me.error.message,name:me.eventName};var e;if([J.BlockletEvents.downloadFailed,J.BlockletEvents.installFailed].includes(me.eventName)?n.action="retry":"error"!==ye&&"corrupted"!==ye||(n.action="view"),!W()(n,ce.installError))null!==me&&void 0!==me&&null!==(e=me.error)&&void 0!==e&&e.message&&Q.Z.error((0,se.Z)(me.error))}}else Ie()}),[ye,Ee,me]),ve("render",{status:ye,eventName:Ee,launchType:P,runtimeBlockletState:me,state:ce}),d||o.user&&null===ye||G()(u))return(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})});if(ce.installError){const e={view:!v&&(0,N.jsx)(de,{className:"bottom-button",component:q.Link,to:"/blocklets/".concat(m,"/overview"),"data-cy":"view-blocklet",color:"primary",variant:"contained",children:n("launchBlocklet.viewApplication")}),retry:(0,N.jsxs)(Be,{children:[Ne&&(0,N.jsx)(de,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:ce.isConnectOpen,onClick:()=>{window.location.href=Ne},children:n("common.back")}),(0,N.jsxs)(de,{className:"bottom-button","data-cy":"retry-install",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("common.retry")]})]})},t=ce.installError.name?ce.installError.name.replace("blocklet.",""):"installFailed";return(0,N.jsx)(Le,{variant:"error",title:M,subTitle:(0,N.jsxs)(Ze,{children:[(0,N.jsx)("div",{children:n("launchBlocklet.error.".concat(t))}),ce.installError.message&&(0,N.jsx)("div",{className:"error-desc",children:n("common.errorMessage")+ce.installError.message})]}),footer:e[ce.installError.action]})}if(be(ye,ce))return ve("alreadyExists",{status:ye,state:ce,runtimeBlockletState:me}),(0,N.jsx)(Le,{variant:"info",title:n("common.reminder"),subTitle:n("launchBlocklet.alreadyExists",{name:(0,E.getDisplayName)({meta:u},!0)}),footer:(0,N.jsxs)("div",{children:[!ce.nextAccessUrl&&(0,N.jsx)(y.Z,{size:16}),ce.nextAccessUrl&&(0,N.jsx)(K.Z,{href:ce.nextAccessUrl,"data-cy":"open-blocklet",children:n("launchBlocklet.redirect")})]})});const Re=!ce.launching&&!ye;return(0,N.jsxs)(Ce,{children:[(0,N.jsx)("div",{className:"header",children:(0,N.jsx)(F.Z,{title:n(Re?"common.install":"common.installing"),subTitle:Re?n("launchBlocklet.subTitle",{appName:M,serverName:l.name}):""})}),(0,N.jsxs)("div",{className:"body",children:[Re&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"illustrations",children:[(0,N.jsx)("div",{className:"ills-block ills-block-left",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)(ie.Z,{className:"i-icon",blocklet:{meta:u},blockletMetaUrl:x}),(0,N.jsx)("div",{className:"i-name",children:M})]})}),(0,N.jsx)(X.Z,{className:"arrow-icon"}),(0,N.jsx)("div",{className:"ills-block ills-block-right",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)("img",{width:"64",height:"64",src:ae.Z,alt:""}),(0,N.jsx)("div",{className:"i-name",children:l.name}),(0,N.jsx)(S.Z,{size:12,responsive:!1,compact:!0,did:l.did})]})})]}),ce.loaded&&!Z&&!ce.launching&&(0,N.jsxs)(de,{className:"bottom-button","data-cy":"start-launch",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("launchBlocklet.confirmInstall")]})]}),ce.launching&&(0,N.jsxs)(xe.Z,{children:[(0,N.jsx)(U.Z,{increaseSpeed:.3,messageLoop:!1,message:(0,N.jsx)(H.Z,{steps:De,stepIndex:ce.progressIndex,autoGrowth:4===ce.progressIndex?1e3:4e3})}),[1,2].includes(ce.progressIndex)&&(0,N.jsx)(ge.Z,{appDid:m})]})]}),ce.isConnectOpen&&(0,N.jsx)(ge.Z,{appDid:m,visible:!1}),(0,N.jsx)(z.Z,{open:ce.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:ce.connectData.baseUrl,action:ce.connectData.action,checkFn:ce.connectData.checkFn,extraParams:ce.connectData.extraParams,checkTimeout:6e5,webWalletUrl:(0,se.yP)(l),onSuccess:async e=>{Q.Z.success(n("launchBlocklet.dialog.success"));const t=Array.isArray(e)?e[e.length-1]:e;if(t.sessionToken&&((0,se.ZB)(ne(t.sessionToken)),await o.refresh()),t.setupToken&&je(t.setupToken),ue({launching:!t.isInstalled,isConnectOpen:!1}),t.appDid){b(t.appDid,t.sessionId);const e=new URL(window.location.href);e.searchParams.set("appDid",t.appDid),e.searchParams.set("sessionId",t.sessionId),window.history.replaceState(null,"",e.toString())}},onClose:()=>ue({isConnectOpen:!1}),locale:t,messages:{title:"".concat(n("launchBlocklet.dialog.title")),scan:ke(p,pe,n),confirm:n("launchBlocklet.dialog.confirm"),success:n("launchBlocklet.dialog.success")}})]})}const Ce=(0,u.Z)(Z.Z)(ue||(ue=(0,o.Z)(["\n .body {\n align-items: center;\n animation: fadein ease 0.3s;\n }\n\n .illustrations {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: start;\n text-align: center;\n margin-top: 16px;\n margin-bottom: 40px;\n width: 100%;\n }\n\n .ills-block,\n .ills-block-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n flex: 1;\n }\n .ills-block {\n max-width: 220px;\n .i-icon {\n width: 64px;\n height: 64px;\n }\n\n .i-name {\n margin-top: 16px;\n font-weight: 400;\n font-size: 16px;\n color: #222222;\n }\n\n .i-sub-name {\n color: #999999;\n }\n }\n\n .arrow-icon {\n align-self: start;\n color: #c4c5ca;\n font-size: 30px;\n margin: 16px 0 0;\n "," {\n margin: 25px 24px 0;\n }\n }\n\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md"))),Ze=u.Z.div(he||(he=(0,o.Z)(["\n line-height: 1.4em;\n .error-desc {\n margin-top: 8px;\n word-wrap: break-word;\n color: ",";\n }\n"])),(e=>e.theme.palette.grey[500])),Be=u.Z.div(pe||(pe=(0,o.Z)(["\n display: flex;\n justify-content: space-around;\n flex-wrap: wrap;\n button {\n margin: 0 10px 18px;\n }\n"]))),Le=(0,u.Z)(C.Z)(me||(me=(0,o.Z)(["\n .result-footer {\n height: auto;\n }\n"])));var Ne,Me,Pe=t(31440),De=t(35432),Ie=t(32828);function Re(e){var n;let{onClickNext:t,handleDescEle:a,showPageHeader:l}=e;const o=(0,s.useNavigate)(),[i,r]=(0,_.useState)(null),[c,d]=(0,_.useState)(!1),{t:u}=(0,h.PE)(),{info:p,api:m}=(0,A.h6)(),{loading:g,meta:f,isRunning:x,isInstalled:v,isInstalling:b,appDid:k,isExternal:j}=(0,B.H0)(),Z=(0,_.useMemo)((()=>{if(!j)return"/blocklets/".concat(k,"/overview");if(!i)return"";const e=new URL(i);return"".concat(e.origin).concat(De.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin")}),[i,j,k]),L=()=>{o("/launch-blocklet/install".concat(window.location.search))},M=t||L;if((0,_.useEffect)((()=>{g||(b?L():(x||v&&j)&&(async()=>{try{d(!0);const{blocklet:e}=await m.getBlocklet({input:{did:f.did,attachRuntimeInfo:!0}}),n=(0,T.A6)({blocklet:e}),t=await(0,se.D)(n);if(!t&&G()(t))return void r(null);r(new URL(t).href)}catch(e){Q.Z.error(e.message)}finally{d(!1)}})())}),[x,j,v,b]),v){const e=x?"alreadyRunning":"alreadyInstalled";return(0,N.jsx)(C.Z,{variant:"info",title:u("common.reminder"),subTitle:u("launchBlocklet.".concat(e),{name:(0,E.getDisplayName)({meta:f},!0)}),footer:(0,N.jsxs)(Te,{children:[(0,N.jsx)(de,{loading:!Z,"data-cy":"view-blocklet",component:j?void 0:q.Link,to:Z,href:Z,variant:x?"outlined":"contained",color:"primary",children:u("launchBlocklet.viewApplication")}),x&&(0,N.jsx)(de,{loading:c,className:"last-button",disabled:!i,href:i,"data-cy":"open-blocklet",children:u("common.open")})]})})}return p?(0,Ie.default)(f)||null!==f&&void 0!==f&&null!==(n=f.components)&&void 0!==n&&n.length?(0,N.jsxs)(Qe,{children:[l&&(0,N.jsx)(F.Z,{title:u("launchBlocklet.introduction"),subTitle:u("launchBlocklet.welcome")}),(0,N.jsx)(Pe.Z,{meta:f,onClickNext:M,handleDescEle:a})]}):(0,N.jsx)(Qe,{className:"center",children:(0,N.jsx)(C.Z,{variant:"error",subTitle:u("launchBlocklet.error.resourceBlocklet")})}):(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})})}Re.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const Qe=u.Z.div(Ne||(Ne=(0,o.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n &.center {\n justify-content: center;\n }\n"]))),Te=u.Z.div(Me||(Me=(0,o.Z)(["\n .MuiButton-root {\n "," {\n min-width: 200px;\n }\n }\n .last-button {\n margin-left: ",";\n }\n"])),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.spacing(2)));var Oe,Se,ze;function Ue(){const e=(0,d.Z)((e=>e.breakpoints.down("md"))),{t:n,locale:t}=(0,h.PE)(),{info:a}=(0,A.h6)(),l=(0,se.yP)(a),{serverUrl:o,fromLauncher:i,meta:u,isFree:E,loading:C,error:Z,storeUrl:L}=(0,B.H0)(),M=r()((0,se.Y5)(),"/launch-blocklet"),P=[{key:"install",name:n("launchBlocklet.steps.installApp"),path:r()(M,"install")},{key:"setup",name:n("setup.steps.launchApp")}];let I=[{key:"agreement",name:n("launchBlocklet.introduction"),path:r()(M,"agreement")},...P];const R=()=>{o&&window.open(o)};let Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{onClick:R,logo:e?(0,N.jsx)(x.Z,{width:"32",height:"32"}):(0,N.jsx)(v.Z,{width:"128",height:"48"})})});i&&(I=[{key:"purchase-space",name:n("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:n("launchBlocklet.steps.prepareSpace")},...P],Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{logo:e?(0,N.jsx)(x.Z,{onClick:R,width:"32",height:"32"}):(0,N.jsx)(v.Z,{onClick:R,width:"128",height:"48"}),previousData:{logo:e?(0,N.jsx)(f.Z,{width:"32",height:"32"}):(0,N.jsx)(b.Z,{width:"145",height:"48"})}})}));const T={meta:u,isFree:E};return(0,N.jsx)(m.W,{steps:I,children:(0,N.jsx)(p.Z,{locale:t,loading:C,blockletMeta:{...u,isFree:E},useOfSkeleton:!1,navLogo:Q,headerEndAddons:(0,N.jsx)(g.Z,{webWalletUrl:l,SessionContext:oe.B3}),pcWidth:"80%",style:{height:"100%"},logoUrl:u&&u.logo?(0,se.aZ)({did:u.did,baseUrl:L,logoPath:u.logo}):null,children:(0,N.jsxs)(Fe,{children:[(0,N.jsx)(c.Global,{styles:Je}),C&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})}),!C&&Z&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(j.Z,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:Z})}),!C&&!Z&&(0,N.jsxs)(s.Routes,{children:[(0,N.jsx)(s.Route,{path:"agreement",element:(0,N.jsx)(Re,{})}),(0,N.jsx)(s.Route,{path:"install",element:(0,N.jsx)(Ee,{})}),(0,N.jsx)(s.Route,{path:"complete",element:(0,N.jsx)(D,{blocklet:T})}),(0,N.jsx)(s.Route,{path:"*",element:(0,N.jsx)(s.Navigate,{to:"agreement".concat(window.location.search),replace:!0})})]})]})})})}const Je=(0,c.css)(Oe||(Oe=(0,o.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),Fe=u.Z.div(Se||(Se=(0,o.Z)(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n\n .bottom-button {\n min-width: 200px;\n }\n"]))),He=u.Z.div(ze||(ze=(0,o.Z)(["\n margin-top: -1px;\n &.logo-can-click {\n cursor: pointer;\n }\n"])))},31440:(e,n,t)=>{t.d(n,{Z:()=>g});var a,l=t(71171),o=t(55898),s=t.n(o),i=t(85493),r=t(33518),c=t(68420),d=t(40265),u=t(44566),h=t(35432),p=t(96266);function m(e){let{...n}=e;return(0,p.jsxs)("div",{...n,style:{width:"100%"},children:[(0,p.jsx)("h3",{children:"End User License Agreement for Application"}),(0,p.jsxs)("p",{children:["Blocklet Server License Agreement ",h.COPYRIGHT_OWNER," version 2020-08-28"]}),(0,p.jsx)("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),(0,p.jsx)("p",{children:"\u6682\u65e0"})]})}function g(e){let{meta:n,onClickNext:t,handleDescEle:a}=e;const l=(0,i.useNavigate)(),{t:o,locale:s}=(0,c.PE)(),r=t||(()=>{l("/launch-blocklet/install".concat(window.location.search))});return(0,p.jsxs)(f,{children:[(0,p.jsx)("div",{className:"app-content",children:(0,p.jsx)("div",{className:"agreement",children:(0,p.jsx)("div",{className:"agreement-content",children:(0,p.jsx)(u.Z,{blockletMeta:{data:n},locale:s,handleDescEle:a})})})}),(0,p.jsx)("div",{className:"button-container","data-cy":"agree-all",children:(0,p.jsx)(d.Z,{onContinue:r,description:(0,p.jsx)(m,{}),texts:{listenName:o("launchBlocklet.license"),buttonNext:o("launchBlocklet.next")}})})]})}g.propTypes={meta:s().object.isRequired,onClickNext:s().func,handleDescEle:s().node},g.defaultProps={onClickNext:null,handleDescEle:""};const f=r.Z.div(a||(a=(0,l.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n flex: 1;\n .app-content {\n padding: 2px 24px 24px;\n "," {\n padding-top: 10px;\n }\n width: 100%;\n flex: 1;\n letter-spacing: normal;\n }\n .agreement {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n border: 1px solid ",";\n border-radius: 12px;\n "," {\n margin-top: 24px;\n }\n "," {\n margin-top: 16px;\n }\n .agreement-content {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n font-size: 14px;\n overflow-y: auto;\n "," {\n padding: 0 24px;\n }\n "," {\n padding: 0 16px;\n }\n &:after {\n display: block;\n content: '';\n height: 24px;\n }\n }\n }\n .button-container {\n padding-top: 24px;\n padding-bottom: 34px;\n "," {\n padding-right: 24px;\n margin-left: auto;\n }\n "," {\n padding-top: 0;\n padding-bottom: 16px;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.palette.grey[100]),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")))},8790:(e,n,t)=>{t.d(n,{Z:()=>c});var a,l=t(71171),o=t(33518),s=t(55898),i=t.n(s),r=t(96266);function c(e){let{children:n,...t}=e;return(0,r.jsx)(d,{...t,children:n})}c.propTypes={children:i().any.isRequired};const d=o.Z.div(a||(a=(0,l.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n "," {\n padding: 24px;\n }\n\n "," {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n "," {\n padding-bottom: 34px;\n }\n\n "," {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"])),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("sm")),(e=>e.theme.breakpoints.down("md")))},99641:(e,n,t)=>{t.d(n,{Z:()=>d});var a,l,o=t(71171),s=t(55898),i=t.n(s),r=t(33518),c=t(96266);function d(e){let{logo:n,name:t,subname:a,previousData:l,...o}=e,s=(0,c.jsx)(u,{logo:n}),i=t,r=a;return l.logo&&(s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{logo:n,className:"left-fade-in-ele"}),(0,c.jsx)(u,{logo:l.logo,className:"postion-abs left-fade-out-ele"})]})),l.name&&l.name!==t&&(i=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:t}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:l.name})]})),l.subname&&l.subname!==a&&(r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:a}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:l.subname})]})),(0,c.jsx)(p,{...o,children:(0,c.jsxs)("div",{className:"logo-inner",children:[(0,c.jsx)("div",{className:"logo-img-content",children:s}),(0,c.jsxs)("div",{className:"logo-info ".concat(t||a?"":"zero-left"),children:[(0,c.jsx)("div",{className:"logo-name",children:i}),(0,c.jsx)("div",{className:"logo-subname",children:r})]})]})})}function u(e){let{logo:n,...t}=e;return(0,c.jsx)(h,{...t,children:n})}d.propTypes={logo:i().element.isRequired,name:i().string,subname:i().string,previousData:i().object},d.defaultProps={name:"",subname:"",previousData:{logo:"",name:"",subname:""}};const h=r.Z.div(a||(a=(0,o.Z)(["\n display: block;\n > * {\n display: block;\n }\n"]))),p=r.Z.div(l||(l=(0,o.Z)(["\n position: relative;\n display: block;\n\n .logo-inner {\n display: flex;\n align-items: center;\n height: 100%;\n .logo-img-content {\n position: relative;\n display: block;\n }\n .logo-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-left: 10px;\n letter-spacing: 0.1px;\n &.zero-left {\n margin-left: 0%;\n }\n .logo-name {\n position: relative;\n line-height: 16px;\n font-size: 16px;\n color: #121319;\n }\n .logo-subname {\n position: relative;\n line-height: 13px;\n font-size: 13px;\n color: #7d8085;\n }\n }\n }\n\n .postion-abs {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n }\n\n .right-fade-out-ele {\n animation: right-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .right-fade-in-ele {\n animation: right-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes right-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n }\n\n @keyframes right-fade-in {\n 0% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n\n .left-fade-out-ele {\n animation: left-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .left-fade-in-ele {\n animation: left-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes left-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n }\n\n @keyframes left-fade-in {\n 0% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n"])))},60344:(e,n,t)=>{t.d(n,{hi:()=>o,od:()=>l.a});var a=t(10458),l=t.n(a);l().defaults.timeout=1e4;const o=l().create()},28864:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var r=function(e){return(0,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,l.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};r.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.displayName="launcher-logo";var c=r;n.Z=c},15959:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var r=function(e){return(0,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};r.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.displayName="launcher-logo-notext";var c=r;n.Z=c}}]);
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1667],{13455:(e,n,t)=>{t.d(n,{Z:()=>d});var a=t(55898),l=t.n(a),o=t(95081),s=t(72333);const i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAFACAYAAADNkKWqAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA1aSURBVHgB7d3ZjhxVEoDhxDKN902AUF/w/s/lCwthtXc3VsvyzETNJNOUe6kllzgnvk9KwVyMMNj5d2ZGRtUP//qPAaCgOwNAUQIIlCWAQFl3B5jJt2/fhvPz8+HDhw/DxcXF5n/fuXNnODk5GR4/fjzcv39/uHvXH0HW84MhCFOL0L1//35zxN9fJ+J379694cWLF0LIKgSQyewavqs8evRICFmcAHK0Y8K3LUL45MmTzZUhzE0AOdiU4dsWAYznhHHAXASQvX39+nUTvY8fP04evm1xS/z8+XMhZBYCyM5ikjuGb2ljCE2OmZIAcqsvX74Mb9682fx1bSbHTEkAuVam8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ocklet:n,blockletMetaUrl:t}=e;const{did:a,logo:l}=n.meta;let d;return d=l?(0,c.jsx)(o.Z,{src:(0,r.aZ)({did:a,logoPath:l,baseUrl:new URL(t).origin}),fallback:i,width:64,size:"contain",placeholder:"application logo"}):(0,c.jsx)(s.Z,{did:a,size:64}),d}d.propTypes={blocklet:l().object.isRequired,blockletMetaUrl:l().string.isRequired}},13932:(e,n,t)=>{t.d(n,{Z:()=>p});var a,l=t(71171),o=t(68420),s=t(77277),i=t(33518),r=t(39948),c=t(5057),d=t(34937),u=t(96266);const h=(e,n)=>{console.info("getDownloadBundleStep",e);return(e||[]).map((e=>{var t;const a=n("launchBlocklet.waiting.".concat("extracting"===e.status?"extractingComponent":"downloadingComponent"),{name:(null===(t=e.component)||void 0===t?void 0:t.title)||""}),l=e.total&&e.current?": ".concat(Math.floor(e.current/e.total*100)," %"):"";let o=e.name?": ".concat(e.name):"";return l||(o+="..."),"".concat(a).concat(l).concat(o)})).join("\n")};function p(e){let{appDid:n,visible:t}=e;const{t:a}=(0,o.PE)(),l=function(e){let{appDid:n}=e;const[t,a]=(0,c.useState)([]),l=(0,d.ZP)();return(0,c.useEffect)((()=>(l.on(s.BlockletEvents.downloadBundleProgress,(e=>{n&&n===(null===e||void 0===e?void 0:e.appDid)&&a((n=>{const t=[...n],a=t.findIndex((n=>{var t,a;return(null===(t=n.component)||void 0===t?void 0:t.did)===(null===(a=e.component)||void 0===a?void 0:a.did)}));return"completed"===e.status?-1!==a&&t.splice(a,1):-1!==a?t[a]=e:t.push(e),[...t]}))})),()=>{l.off(s.BlockletEvents.downloadBundleProgress)})),[n,l]),t}({appDid:n});return(0,u.jsx)(m,{style:{display:t?"block":"none"},children:h(l,a)})}p.defaultProps={appDid:"",visible:!0};const m=(0,i.Z)(r.Z)(a||(a=(0,l.Z)(["\n flex: 0 0 auto;\n white-space: pre;\n overflow-y: auto;\n overflow-x: auto;\n max-height: 10em;\n max-width: 500px;\n min-width: auto;\n @media (max-width: ","px) {\n max-width: 90%;\n max-height: 30vh;\n }\n"])),(e=>e.theme.breakpoints.values.md))},66436:(e,n,t)=>{t.d(n,{Z:()=>i});var a,l=t(71171),o=t(33518),s=t(96266);function i(e){let{children:n}=e;return(0,s.jsx)(r,{children:n})}const r=o.Z.div(a||(a=(0,l.Z)(["\n color: #1dc1c7;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n"])))},11476:(e,n,t)=>{t.d(n,{Z:()=>x});var a=t(5057),l=t(77277),o=t(31853),s=t(11397),i=t.n(s),r=t(34937),c=t(10155);const d=i()("@abtnode/webapp:launch-blocklet:runtime-state"),u=Object.keys(l.BlockletStatus),h=Object.values(l.BlockletStatus),p=Object.values(l.BlockletEvents).filter((e=>![l.BlockletEvents.purchaseChange,l.BlockletEvents.domainStatus].includes(e))),m=(e,n)=>{var t;return(null===e||void 0===e?void 0:e.appDid)===n||(null===e||void 0===e||null===(t=e.meta)||void 0===t?void 0:t.did)===n},g=8e3,f=2e3;function x(e){const n=(0,c.Z)(),t=(0,r.ZP)(),l=(0,a.useRef)(null),s=()=>{e&&!l.current&&(l.current=setInterval((()=>{e&&(d("polling blocklet state"),v())}),f))},[i,x]=(0,o.Z)({status:null,eventName:"",runtimeBlocklet:null,error:"",isGetBlocklet:!1,startPolling:s,stopPolling:()=>{l.current&&clearInterval(l.current)}}),v=()=>{n.getBlocklet({input:{did:e,attachRuntimeInfo:!0}}).then((e=>{x({status:e.blocklet?e.blocklet.status:"",eventName:"",runtimeBlocklet:e.blocklet,isGetBlocklet:!0})})).catch((e=>{console.error("get blocklet failed",e)}))};(0,a.useEffect)((()=>{let n=null;return e&&(d("schedule polling blocklet state"),n=setTimeout((()=>{s()}),g)),()=>{n&&clearInterval(n)}}),[e]),(0,a.useEffect)((()=>{e?null===i.status&&(d("polling blocklet state on start"),v()):x({status:"",eventName:"",runtimeBlocklet:null})}),[e,i.status]);const b=n=>t=>{if(m(t,e)){const e={status:null,eventName:n,runtimeBlocklet:t,isGetBlocklet:!1};if(t.error)d("blocklet error",{blockletEventName:n,error:t.error}),e.status="error",e.error=t.error;else{const a=u[h.indexOf(t.status)];d("blocklet event",{blockletEventName:n,status:a}),a&&(e.status=a)}x(e)}};for(const o of p)(0,a.useEffect)((()=>{const n=b(o);return e&&t.on(o,n),()=>{e&&t.off(o,n)}}),[e]);return i}},71667:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ue});var a,l,o=t(71171),s=t(85493),i=t(6352),r=t.n(i),c=t(21371),d=t(72904),u=t(33518),h=t(68420),p=t(63902),m=t(51703),g=t(12073),f=t(15959),x=t(10866),v=t(4456),b=t(28864),k=t(99641),y=t(44846),j=t(88574),w=t(35966),A=t(75793),E=t(38242),C=t(55309),Z=t(8790),B=t(77609),L=t(23484),N=t(96266);const M=u.Z.a(a||(a=(0,o.Z)(["\n display: block;\n height: 36px;\n color: ",";\n"])),(e=>e.theme.palette.primary.main)),P=(0,u.Z)(Z.Z)(l||(l=(0,o.Z)(["\n .app-info_desc {\n font-weight: 400;\n margin-top: 40px;\n font-size: 18px;\n line-height: 21px;\n color: #222222;\n }\n\n .body {\n text-align: center;\n }\n\n "," {\n .app-info_desc {\n font-size: 16px;\n }\n }\n\n .circle_icon {\n font-size: 58px;\n color: ",";\n }\n"])),(e=>e.theme.breakpoints.down("md")),(e=>"error"===e.variant?e.theme.palette.error.main:e.theme.palette.success.main)),D=function(){const{t:e}=(0,h.PE)(),{info:n}=(0,A.h6)(),t=(0,L.Z)(),a=decodeURIComponent(t.get("accessUrl")||""),{meta:l}=(0,B.H0)();return(0,N.jsx)(P,{children:(0,N.jsx)("div",{className:"body",children:(0,N.jsx)(C.Z,{variant:"success",title:(0,E.getDisplayName)({meta:l},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:n.name}),footer:(0,N.jsx)(M,{href:a,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})};var I=t(39463),R=t(4651),Q=t(86229),T=t(14491),O=t(60344),S=t(17450),z=t(49983),U=t(35266),J=t(77277),F=t(2660),H=t(77429),X=t(48086),K=t(38898),V=t(75506),G=t.n(V),Y=t(50482),W=t.n(Y),_=t(5057),q=t(15849),$=t(67654),ee=t(31853),ne=t(11397),te=t.n(ne),ae=t(52581),le=t(11476),oe=t(25339),se=t(74094),ie=t(13455),re=t(28726);function ce(e){let{children:n,...t}=e;return(0,N.jsx)(re.Z,{variant:"contained",color:"primary",...t,children:n})}const de=(0,_.forwardRef)(((e,n)=>(0,N.jsx)(ce,{...e,forwardedRef:n})));var ue,he,pe,me,ge=t(13932),fe=t(93040),xe=t(66436);const ve=te()("@abtnode/webapp:launch-blocklet:step-install"),be=(e,n)=>!n.statusChanged&&("installed"===e||"running"===e)&&!n.launching,ke=(e,n,t)=>t("nft"===n?e?"launchBlocklet.dialog.nftFreeDescription":"launchBlocklet.dialog.nftPaidDescription":e?"launchBlocklet.dialog.freeDescription":"launchBlocklet.dialog.paidDescription"),ye="setup_token",je=e=>{sessionStorage.setItem(ye,e)},we=()=>{sessionStorage.removeItem(ye)},Ae=()=>sessionStorage.getItem(ye);function Ee(){const e=(0,L.Z)(),{t:n,locale:t}=(0,h.PE)(),{api:a,info:l}=(0,A.h6)(),{session:o,api:i}=(0,oe.Tt)(),c=(0,s.useNavigate)(),{loading:d,meta:u,isFree:p,appDid:m,sessionId:g,storeUrl:f,blockletMetaUrl:x,isExternal:v,setAppDid:b,launcherUrl:k,launcherSessionId:j,isInstalling:C,isInstalled:Z}=(0,B.H0)(),M=u?(0,E.getDisplayName)({meta:u},!0):null,P=e.get("launchType"),D=e.get("chainHost"),V=e.get("nftId"),Y=(0,_.useRef)(null),{decrypt:ne,encryptKey:te}=(0,z.R)(),[re]=(0,$.Z)("skip-blocklet-setup",!1),[ce,ue]=(0,ee.Z)({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),he=(0,fe.Iq)({user:o.user,launchType:P,nftId:V}),pe=(0,I.getServerAuthMethod)(l,P,j,he),me=(0,le.Z)(he?m:""),{status:ye,eventName:Ee}=me,Ne=e.get("from");(0,_.useEffect)((()=>{d||(Z||C||Me(),ue({loaded:!0}))}),[d]);const Me=async()=>{const e=o.user?"".concat(o.user.fullName,"'s ").concat(M):M;if(ue({installError:null}),null!==o&&void 0!==o&&o.user&&!v&&"serverless"!==P)try{await(async()=>{const{isNew:e,decoded:n}=(0,se.bQ)(f,l.blockletRegistryList);e&&await a.addBlockletStore({input:{teamDid:l.did,url:n}})})()}catch(h){console.error("addNewRegistryToRegistryList error:",h)}if(p){var n,t,s;const a="launch-free-blocklet-by-".concat(pe);ue({isConnectOpen:!0,connectData:{action:a,baseUrl:"",checkFn:O.od.create({baseURL:null!==(n=null===(t=window)||void 0===t||null===(s=t.env)||void 0===s?void 0:s.apiPrefix)&&void 0!==n?n:"/"}).get,extraParams:{wt:(0,R.iK)(u),title:e,blockletMetaUrl:x,launchType:P,nftId:V,chainHost:decodeURIComponent(D),launcherUrl:k,launcherSessionId:j}}})}else{var i,c,d;const n="launch-paid-blocklet-by-".concat(pe),t=new URL(window.location.href);t.pathname=r()(null!==(i=null===(c=window)||void 0===c||null===(d=c.env)||void 0===d?void 0:d.apiPrefix)&&void 0!==i?i:"/","/api/did/".concat(n,"/token")),t.searchParams.set("wt",(0,R.iK)(u)),t.searchParams.set("_ek_",te),t.searchParams.set("title",e),t.searchParams.set("autoConnect",!1),t.searchParams.set("blockletMetaUrl",x),P&&t.searchParams.set("launchType",P),V&&t.searchParams.set("nftId",V),k&&t.searchParams.set("launcherUrl",k),j&&t.searchParams.set("launcherSessionId",j);const{data:a}=await O.hi.get(t.href);ue({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(x).origin,checkFn:O.od.create({baseURL:new URL(x).origin}).get,extraParams:{serverDid:l.did,blockletDid:null===u||void 0===u?void 0:u.did,nw:a.url}}})}},Pe=async n=>{if(ve("visitBlocklet",{status:ye,state:ce,appDid:m}),ce.visiting)return;ue({visiting:!0});const t=(0,T.A6)({blocklet:n}),a=await(0,se.D)(t);if(G()(a)&&"serverless"!==P||re)return ue({visiting:!1}),void setTimeout((()=>{(n=>{const t="/".concat(l.routing.adminPath,"/blocklets/").concat(n.meta.did,"/configuration").replace(/\/+/g,"/");let a="/launch-blocklet/complete?status=installed&name=".concat(encodeURIComponent(M),"&accessUrl=").concat(encodeURIComponent(t),"&blocklet_meta_url=").concat(x);const o=e.get("fromLauncher");o&&(a+="&fromLauncher=".concat(o)),P&&(a+="&launchType=".concat(P)),D&&(a+="&chainHost=".concat(D)),c(a)})(n)}),1e3);if(G()(a))return void ue({visiting:!1});if(!1===be(ye,ce))try{await i.post("/api/launch/".concat(g))}catch(d){ve("end launch failed",{error:(0,se.Z)(d)})}const o=new URL(a);o.searchParams.set("serverUrl",(0,R.RU)(l)),"running"!==n.status&&o.searchParams.set("__start__","1");const s=e.get("fromLauncher");s&&o.searchParams.set("fromLauncher",s),P&&o.searchParams.set("launchType",P),V&&o.searchParams.set("nftId",V),D&&o.searchParams.set("chainHost",D);const r=Ae();r&&o.searchParams.set("setupToken",r),ue({nextAccessUrl:o.href,visiting:!1}),setTimeout((()=>{we(),window.location.href=o.href}),1e3)},De=[n("launchBlocklet.waiting.verifying"),n("launchBlocklet.waiting.downloading"),n("launchBlocklet.waiting.extracting"),n("upgrading"===ye?"common.upgrading":"launchBlocklet.waiting.installing"),n("launchBlocklet.waiting.done")],Ie=()=>{ve("handleInstalledProgress",{status:ye,state:ce}),ye&&(ue({progressIndex:4}),Y.current&&(clearTimeout(Y.current),Y.current=null),Y.current=setTimeout((()=>{a.getBlocklet({input:{did:m,attachRuntimeInfo:!0}}).then((e=>{e.blocklet&&Pe(e.blocklet)}))}),500))};if((0,_.useEffect)((()=>{C&&ue({launching:!0}),Z&&Ie()}),[Z,C]),(0,_.useEffect)((()=>{if("serverless"!==P||Ee!==J.BlockletEvents.nftConsumed)switch(ye){case"waiting":ue({progressIndex:1,statusChanged:!0});break;case"downloading":ue({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":ue({progressIndex:3,statusChanged:!0});break;case"installed":if("serverless"===P&&!(0,fe.MZ)(me))break;Ie();break;case"starting":case"running":case"stopped":Ie();break;case"corrupted":case"error":{const n={message:me.error.message,name:me.eventName};var e;if([J.BlockletEvents.downloadFailed,J.BlockletEvents.installFailed].includes(me.eventName)?n.action="retry":"error"!==ye&&"corrupted"!==ye||(n.action="view"),!W()(n,ce.installError))null!==me&&void 0!==me&&null!==(e=me.error)&&void 0!==e&&e.message&&Q.Z.error((0,se.Z)(me.error))}}else Ie()}),[ye,Ee,me]),ve("render",{status:ye,eventName:Ee,launchType:P,runtimeBlockletState:me,state:ce}),d||o.user&&null===ye||G()(u))return(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})});if(ce.installError){const e={view:!v&&(0,N.jsx)(de,{className:"bottom-button",component:q.Link,to:"/blocklets/".concat(m,"/overview"),"data-cy":"view-blocklet",color:"primary",variant:"contained",children:n("launchBlocklet.viewApplication")}),retry:(0,N.jsxs)(Be,{children:[Ne&&(0,N.jsx)(de,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:ce.isConnectOpen,onClick:()=>{window.location.href=Ne},children:n("common.back")}),(0,N.jsxs)(de,{className:"bottom-button","data-cy":"retry-install",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("common.retry")]})]})},t=ce.installError.name?ce.installError.name.replace("blocklet.",""):"installFailed";return(0,N.jsx)(Le,{variant:"error",title:M,subTitle:(0,N.jsxs)(Ze,{children:[(0,N.jsx)("div",{children:n("launchBlocklet.error.".concat(t))}),ce.installError.message&&(0,N.jsx)("div",{className:"error-desc",children:n("common.errorMessage")+ce.installError.message})]}),footer:e[ce.installError.action]})}if(be(ye,ce))return ve("alreadyExists",{status:ye,state:ce,runtimeBlockletState:me}),(0,N.jsx)(Le,{variant:"info",title:n("common.reminder"),subTitle:n("launchBlocklet.alreadyExists",{name:(0,E.getDisplayName)({meta:u},!0)}),footer:(0,N.jsxs)("div",{children:[!ce.nextAccessUrl&&(0,N.jsx)(y.Z,{size:16}),ce.nextAccessUrl&&(0,N.jsx)(K.Z,{href:ce.nextAccessUrl,"data-cy":"open-blocklet",children:n("launchBlocklet.redirect")})]})});const Re=!ce.launching&&!ye;return(0,N.jsxs)(Ce,{children:[(0,N.jsx)("div",{className:"header",children:(0,N.jsx)(F.Z,{title:n(Re?"common.install":"common.installing"),subTitle:Re?n("launchBlocklet.subTitle",{appName:M,serverName:l.name}):""})}),(0,N.jsxs)("div",{className:"body",children:[Re&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{className:"illustrations",children:[(0,N.jsx)("div",{className:"ills-block ills-block-left",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)(ie.Z,{className:"i-icon",blocklet:{meta:u},blockletMetaUrl:x}),(0,N.jsx)("div",{className:"i-name",children:M})]})}),(0,N.jsx)(X.Z,{className:"arrow-icon"}),(0,N.jsx)("div",{className:"ills-block ills-block-right",children:(0,N.jsxs)("div",{className:"ills-block-inner",children:[(0,N.jsx)("img",{width:"64",height:"64",src:ae.Z,alt:""}),(0,N.jsx)("div",{className:"i-name",children:l.name}),(0,N.jsx)(S.Z,{size:12,responsive:!1,compact:!0,did:l.did})]})})]}),ce.loaded&&!Z&&!ce.launching&&(0,N.jsxs)(de,{className:"bottom-button","data-cy":"start-launch",disabled:ce.isConnectOpen,onClick:Me,children:[ce.isConnectOpen&&(0,N.jsx)(y.Z,{size:16}),n("launchBlocklet.confirmInstall")]})]}),ce.launching&&(0,N.jsxs)(xe.Z,{children:[(0,N.jsx)(U.Z,{increaseSpeed:.3,messageLoop:!1,message:(0,N.jsx)(H.Z,{steps:De,stepIndex:ce.progressIndex,autoGrowth:4===ce.progressIndex?1e3:4e3})}),[1,2].includes(ce.progressIndex)&&(0,N.jsx)(ge.Z,{appDid:m})]})]}),ce.isConnectOpen&&(0,N.jsx)(ge.Z,{appDid:m,visible:!1}),(0,N.jsx)(z.Z,{open:ce.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:ce.connectData.baseUrl,action:ce.connectData.action,checkFn:ce.connectData.checkFn,extraParams:ce.connectData.extraParams,checkTimeout:6e5,webWalletUrl:(0,se.yP)(l),onSuccess:async e=>{Q.Z.success(n("launchBlocklet.dialog.success"));const t=Array.isArray(e)?e[e.length-1]:e;if(t.sessionToken&&((0,se.ZB)(ne(t.sessionToken)),await o.refresh()),t.setupToken&&je(t.setupToken),ue({launching:!t.isInstalled,isConnectOpen:!1}),t.appDid){b(t.appDid,t.sessionId);const e=new URL(window.location.href);e.searchParams.set("appDid",t.appDid),e.searchParams.set("sessionId",t.sessionId),window.history.replaceState(null,"",e.toString())}},onClose:()=>ue({isConnectOpen:!1}),locale:t,messages:{title:"".concat(n("launchBlocklet.dialog.title")),scan:ke(p,pe,n),confirm:n("launchBlocklet.dialog.confirm"),success:n("launchBlocklet.dialog.success")}})]})}const Ce=(0,u.Z)(Z.Z)(ue||(ue=(0,o.Z)(["\n .body {\n align-items: center;\n animation: fadein ease 0.3s;\n }\n\n .illustrations {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: start;\n text-align: center;\n margin-top: 16px;\n margin-bottom: 40px;\n width: 100%;\n }\n\n .ills-block,\n .ills-block-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-shrink: 0;\n flex: 1;\n }\n .ills-block {\n max-width: 220px;\n .i-icon {\n width: 64px;\n height: 64px;\n }\n\n .i-name {\n margin-top: 16px;\n font-weight: 400;\n font-size: 16px;\n color: #222222;\n }\n\n .i-sub-name {\n color: #999999;\n }\n }\n\n .arrow-icon {\n align-self: start;\n color: #c4c5ca;\n font-size: 30px;\n margin: 16px 0 0;\n "," {\n margin: 25px 24px 0;\n }\n }\n\n @keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md"))),Ze=u.Z.div(he||(he=(0,o.Z)(["\n line-height: 1.4em;\n .error-desc {\n margin-top: 8px;\n word-wrap: break-word;\n color: ",";\n }\n"])),(e=>e.theme.palette.grey[500])),Be=u.Z.div(pe||(pe=(0,o.Z)(["\n display: flex;\n justify-content: space-around;\n flex-wrap: wrap;\n button {\n margin: 0 10px 18px;\n }\n"]))),Le=(0,u.Z)(C.Z)(me||(me=(0,o.Z)(["\n .result-footer {\n height: auto;\n }\n"])));var Ne,Me,Pe=t(31440),De=t(35432),Ie=t(32828);function Re(e){var n;let{onClickNext:t,handleDescEle:a,showPageHeader:l}=e;const o=(0,s.useNavigate)(),[i,r]=(0,_.useState)(null),[c,d]=(0,_.useState)(!1),{t:u}=(0,h.PE)(),{info:p,api:m}=(0,A.h6)(),{loading:g,meta:f,isRunning:x,isInstalled:v,isInstalling:b,appDid:k,isExternal:j}=(0,B.H0)(),Z=(0,_.useMemo)((()=>{if(!j)return"/blocklets/".concat(k,"/overview");if(!i)return"";const e=new URL(i);return"".concat(e.origin).concat(De.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin")}),[i,j,k]),L=()=>{o("/launch-blocklet/install".concat(window.location.search))},M=t||L;if((0,_.useEffect)((()=>{g||(b?L():(x||v&&j)&&(async()=>{try{d(!0);const{blocklet:e}=await m.getBlocklet({input:{did:f.did,attachRuntimeInfo:!0}}),n=(0,T.A6)({blocklet:e}),t=await(0,se.D)(n);if(!t&&G()(t))return void r(null);r(new URL(t).href)}catch(e){Q.Z.error(e.message)}finally{d(!1)}})())}),[x,j,v,b]),v){const e=x?"alreadyRunning":"alreadyInstalled";return(0,N.jsx)(C.Z,{variant:"info",title:u("common.reminder"),subTitle:u("launchBlocklet.".concat(e),{name:(0,E.getDisplayName)({meta:f},!0)}),footer:(0,N.jsxs)(Te,{children:[(0,N.jsx)(de,{loading:!Z,"data-cy":"view-blocklet",component:j?void 0:q.Link,to:Z,href:Z,variant:x?"outlined":"contained",color:"primary",children:u("launchBlocklet.viewApplication")}),x&&(0,N.jsx)(de,{loading:c,className:"last-button",disabled:!i,href:i,"data-cy":"open-blocklet",children:u("common.open")})]})})}return p?(0,Ie.default)(f)||null!==f&&void 0!==f&&null!==(n=f.components)&&void 0!==n&&n.length?(0,N.jsxs)(Qe,{children:[l&&(0,N.jsx)(F.Z,{title:u("launchBlocklet.introduction"),subTitle:u("launchBlocklet.welcome")}),(0,N.jsx)(Pe.Z,{meta:f,onClickNext:M,handleDescEle:a})]}):(0,N.jsx)(Qe,{className:"center",children:(0,N.jsx)(C.Z,{variant:"error",subTitle:u("launchBlocklet.error.resourceBlocklet")})}):(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})})}Re.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const Qe=u.Z.div(Ne||(Ne=(0,o.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n &.center {\n justify-content: center;\n }\n"]))),Te=u.Z.div(Me||(Me=(0,o.Z)(["\n .MuiButton-root {\n "," {\n min-width: 200px;\n }\n }\n .last-button {\n margin-left: ",";\n }\n"])),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.spacing(2)));var Oe,Se,ze;function Ue(){const e=(0,d.Z)((e=>e.breakpoints.down("md"))),{t:n,locale:t}=(0,h.PE)(),{info:a}=(0,A.h6)(),l=(0,se.yP)(a),{serverUrl:o,fromLauncher:i,meta:u,isFree:E,loading:C,error:Z,storeUrl:L}=(0,B.H0)(),M=r()((0,se.Y5)(),"/launch-blocklet"),P=[{key:"install",name:n("launchBlocklet.steps.installApp"),path:r()(M,"install")},{key:"setup",name:n("setup.steps.launchApp")}];let I=[{key:"agreement",name:n("launchBlocklet.introduction"),path:r()(M,"agreement")},...P];const R=()=>{o&&window.open(o)};let Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{onClick:R,logo:e?(0,N.jsx)(x.Z,{width:"32",height:"32"}):(0,N.jsx)(v.Z,{width:"128",height:"48"})})});i&&(I=[{key:"purchase-space",name:n("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:n("launchBlocklet.steps.prepareSpace")},...P],Q=(0,N.jsx)(He,{className:"".concat(o?"logo-can-click":""),children:(0,N.jsx)(k.Z,{logo:e?(0,N.jsx)(x.Z,{onClick:R,width:"32",height:"32"}):(0,N.jsx)(v.Z,{onClick:R,width:"128",height:"48"}),previousData:{logo:e?(0,N.jsx)(f.Z,{width:"32",height:"32"}):(0,N.jsx)(b.Z,{width:"145",height:"48"})}})}));const T={meta:u,isFree:E};return(0,N.jsx)(m.W,{steps:I,children:(0,N.jsx)(p.Z,{locale:t,loading:C,blockletMeta:{...u,isFree:E},useOfSkeleton:!1,navLogo:Q,headerEndAddons:(0,N.jsx)(g.Z,{webWalletUrl:l,SessionContext:oe.B3}),pcWidth:"80%",style:{height:"100%"},logoUrl:u&&u.logo?(0,se.aZ)({did:u.did,baseUrl:L,logoPath:u.logo}):null,children:(0,N.jsxs)(Fe,{children:[(0,N.jsx)(c.Global,{styles:Je}),C&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(y.Z,{})}),!C&&Z&&(0,N.jsx)(w.Z,{relative:"parent",children:(0,N.jsx)(j.Z,{style:{wordBreak:"break-all"},variant:"icon",type:"error",children:Z})}),!C&&!Z&&(0,N.jsxs)(s.Routes,{children:[(0,N.jsx)(s.Route,{path:"agreement",element:(0,N.jsx)(Re,{})}),(0,N.jsx)(s.Route,{path:"install",element:(0,N.jsx)(Ee,{})}),(0,N.jsx)(s.Route,{path:"complete",element:(0,N.jsx)(D,{blocklet:T})}),(0,N.jsx)(s.Route,{path:"*",element:(0,N.jsx)(s.Navigate,{to:"agreement".concat(window.location.search),replace:!0})})]})]})})})}const Je=(0,c.css)(Oe||(Oe=(0,o.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),Fe=u.Z.div(Se||(Se=(0,o.Z)(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n\n .bottom-button {\n min-width: 200px;\n }\n"]))),He=u.Z.div(ze||(ze=(0,o.Z)(["\n margin-top: -1px;\n &.logo-can-click {\n cursor: pointer;\n }\n"])))},31440:(e,n,t)=>{t.d(n,{Z:()=>g});var a,l=t(71171),o=t(55898),s=t.n(o),i=t(85493),r=t(33518),c=t(68420),d=t(40265),u=t(44566),h=t(35432),p=t(96266);function m(e){let{...n}=e;return(0,p.jsxs)("div",{...n,style:{width:"100%"},children:[(0,p.jsx)("h3",{children:"End User License Agreement for Application"}),(0,p.jsxs)("p",{children:["Blocklet Server License Agreement ",h.COPYRIGHT_OWNER," version 2020-08-28"]}),(0,p.jsx)("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),(0,p.jsx)("p",{children:"\u6682\u65e0"})]})}function g(e){let{meta:n,onClickNext:t,handleDescEle:a}=e;const l=(0,i.useNavigate)(),{t:o,locale:s}=(0,c.PE)(),r=t||(()=>{l("/launch-blocklet/install".concat(window.location.search))});return(0,p.jsxs)(f,{children:[(0,p.jsx)("div",{className:"app-content",children:(0,p.jsx)("div",{className:"agreement",children:(0,p.jsx)("div",{className:"agreement-content",children:(0,p.jsx)(u.Z,{blockletMeta:{data:n},locale:s,handleDescEle:a})})})}),(0,p.jsx)("div",{className:"button-container","data-cy":"agree-all",children:(0,p.jsx)(d.Z,{onContinue:r,description:(0,p.jsx)(m,{}),texts:{listenName:o("launchBlocklet.license"),buttonNext:o("launchBlocklet.next")}})})]})}g.propTypes={meta:s().object.isRequired,onClickNext:s().func,handleDescEle:s().node},g.defaultProps={onClickNext:null,handleDescEle:""};const f=r.Z.div(a||(a=(0,l.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n flex: 1;\n .app-content {\n padding: 2px 24px 24px;\n "," {\n padding-top: 10px;\n }\n width: 100%;\n flex: 1;\n letter-spacing: normal;\n }\n .agreement {\n position: relative;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n border: 1px solid ",";\n border-radius: 12px;\n "," {\n margin-top: 24px;\n }\n "," {\n margin-top: 16px;\n }\n .agreement-content {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n font-size: 14px;\n overflow-y: auto;\n "," {\n padding: 0 24px;\n }\n "," {\n padding: 0 16px;\n }\n &:after {\n display: block;\n content: '';\n height: 24px;\n }\n }\n }\n .button-container {\n padding-top: 24px;\n padding-bottom: 34px;\n "," {\n padding-right: 24px;\n margin-left: auto;\n }\n "," {\n padding-top: 0;\n padding-bottom: 16px;\n }\n }\n"])),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.palette.grey[100]),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")))},8790:(e,n,t)=>{t.d(n,{Z:()=>c});var a,l=t(71171),o=t(33518),s=t(55898),i=t.n(s),r=t(96266);function c(e){let{children:n,...t}=e;return(0,r.jsx)(d,{...t,children:n})}c.propTypes={children:i().any.isRequired};const d=o.Z.div(a||(a=(0,l.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n "," {\n padding: 24px;\n }\n\n "," {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n "," {\n padding-bottom: 34px;\n }\n\n "," {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"])),(e=>e.theme.breakpoints.up("md")),(e=>e.theme.breakpoints.down("md")),(e=>e.theme.breakpoints.up("sm")),(e=>e.theme.breakpoints.down("md")))},99641:(e,n,t)=>{t.d(n,{Z:()=>d});var a,l,o=t(71171),s=t(55898),i=t.n(s),r=t(33518),c=t(96266);function d(e){let{logo:n,name:t,subname:a,previousData:l,...o}=e,s=(0,c.jsx)(u,{logo:n}),i=t,r=a;return l.logo&&(s=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{logo:n,className:"left-fade-in-ele"}),(0,c.jsx)(u,{logo:l.logo,className:"postion-abs left-fade-out-ele"})]})),l.name&&l.name!==t&&(i=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:t}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:l.name})]})),l.subname&&l.subname!==a&&(r=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"right-fade-in-ele",style:{display:"inline-block"},children:a}),(0,c.jsx)("span",{className:"postion-abs right-fade-out-ele",children:l.subname})]})),(0,c.jsx)(p,{...o,children:(0,c.jsxs)("div",{className:"logo-inner",children:[(0,c.jsx)("div",{className:"logo-img-content",children:s}),(0,c.jsxs)("div",{className:"logo-info ".concat(t||a?"":"zero-left"),children:[(0,c.jsx)("div",{className:"logo-name",children:i}),(0,c.jsx)("div",{className:"logo-subname",children:r})]})]})})}function u(e){let{logo:n,...t}=e;return(0,c.jsx)(h,{...t,children:n})}d.propTypes={logo:i().element.isRequired,name:i().string,subname:i().string,previousData:i().object},d.defaultProps={name:"",subname:"",previousData:{logo:"",name:"",subname:""}};const h=r.Z.div(a||(a=(0,o.Z)(["\n display: block;\n > * {\n display: block;\n }\n"]))),p=r.Z.div(l||(l=(0,o.Z)(["\n position: relative;\n display: block;\n\n .logo-inner {\n display: flex;\n align-items: center;\n height: 100%;\n .logo-img-content {\n position: relative;\n display: block;\n }\n .logo-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin-left: 10px;\n letter-spacing: 0.1px;\n &.zero-left {\n margin-left: 0%;\n }\n .logo-name {\n position: relative;\n line-height: 16px;\n font-size: 16px;\n color: #121319;\n }\n .logo-subname {\n position: relative;\n line-height: 13px;\n font-size: 13px;\n color: #7d8085;\n }\n }\n }\n\n .postion-abs {\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n }\n\n .right-fade-out-ele {\n animation: right-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .right-fade-in-ele {\n animation: right-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes right-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n }\n\n @keyframes right-fade-in {\n 0% {\n opacity: 0;\n transform: translate(8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n\n .left-fade-out-ele {\n animation: left-fade-out ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: forwards;\n }\n\n .left-fade-in-ele {\n animation: left-fade-in ease 0.5s;\n animation-delay: 2s;\n animation-fill-mode: both;\n }\n\n @keyframes left-fade-out {\n 0% {\n opacity: 1;\n transform: translate(0, 0);\n }\n 100% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n }\n\n @keyframes left-fade-in {\n 0% {\n opacity: 0;\n transform: translate(-8px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate(0, 0);\n }\n }\n"])))},60344:(e,n,t)=>{t.d(n,{hi:()=>o,od:()=>l.a});var a=t(10458),l=t.n(a);l().defaults.timeout=1e4;const o=l().create()},28864:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var r=function(e){return(0,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,l.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};r.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.displayName="launcher-logo";var c=r;n.Z=c},15959:(e,n,t)=>{n.Z=void 0;(a=t(5057))&&a.__esModule;var a,l=t(96266);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!==typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var r=function(e){return(0,l.jsxs)("svg",s(s({},e),{},{children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{stopColor:"#0FA4B7"}),(0,l.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};r.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.displayName="launcher-logo-notext";var c=r;n.Z=c}}]);