@abtnode/webapp 1.16.15-beta-9318a201 → 1.16.15-beta-ed0db59e

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 (90) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/build/asset-manifest.json +51 -51
  4. package/build/index.html +1 -1
  5. package/build/service-worker.js +1 -1
  6. package/build/static/js/{1005.54d54e22.chunk.js → 1005.75ed0870.chunk.js} +1 -1
  7. package/build/static/js/1520.135d0493.chunk.js +1 -0
  8. package/build/static/js/{1685.2a736ee3.chunk.js → 1685.1679bdbd.chunk.js} +2 -2
  9. package/build/static/js/17.713812e2.chunk.js +1 -0
  10. package/build/static/js/2113.a0a3a688.chunk.js +1 -0
  11. package/build/static/js/2305.1a17468a.chunk.js +2 -0
  12. package/build/static/js/{2334.926a3436.chunk.js → 2334.74e08d81.chunk.js} +1 -1
  13. package/build/static/js/2701.45ca55d3.chunk.js +2 -0
  14. package/build/static/js/3245.878486bd.chunk.js +1 -0
  15. package/build/static/js/3704.139947e9.chunk.js +2 -0
  16. package/build/static/js/4038.057c3526.chunk.js +2 -0
  17. package/build/static/js/{4168.b428ccb4.chunk.js → 4168.a4beefbf.chunk.js} +1 -1
  18. package/build/static/js/436.08547c14.chunk.js +1 -0
  19. package/build/static/js/{4407.5f35466c.chunk.js → 4407.0fbdcce5.chunk.js} +2 -2
  20. package/build/static/js/4620.ff302a51.chunk.js +1 -0
  21. package/build/static/js/{4775.a61ecf17.chunk.js → 4775.a65e6576.chunk.js} +1 -1
  22. package/build/static/js/4901.00cc1363.chunk.js +1 -0
  23. package/build/static/js/{5032.8a0b671e.chunk.js → 5032.da91d5e6.chunk.js} +1 -1
  24. package/build/static/js/5285.93a44f4f.chunk.js +1 -0
  25. package/build/static/js/542.58bca24d.chunk.js +1 -0
  26. package/build/static/js/5904.afb2521a.chunk.js +1 -0
  27. package/build/static/js/5928.5547c6bf.chunk.js +1 -0
  28. package/build/static/js/6287.026bbca2.chunk.js +1 -0
  29. package/build/static/js/{6412.77cadf28.chunk.js → 6412.f8cd3f1d.chunk.js} +1 -1
  30. package/build/static/js/{6419.f9f93f10.chunk.js → 6419.4fbfd6e6.chunk.js} +1 -1
  31. package/build/static/js/{6511.0fe81071.chunk.js → 6511.efec9d61.chunk.js} +1 -1
  32. package/build/static/js/{6950.bab47d5c.chunk.js → 6950.ecc9d35b.chunk.js} +1 -1
  33. package/build/static/js/{6960.0604a491.chunk.js → 6960.25320e87.chunk.js} +1 -1
  34. package/build/static/js/7020.5c140160.chunk.js +1 -0
  35. package/build/static/js/7126.b4ad3d91.chunk.js +1 -0
  36. package/build/static/js/{7327.d1ca9d48.chunk.js → 7327.ae862a0d.chunk.js} +1 -1
  37. package/build/static/js/{7534.77f71429.chunk.js → 7534.4e543a5c.chunk.js} +1 -1
  38. package/build/static/js/{7604.e325079e.chunk.js → 7604.d16d75c3.chunk.js} +2 -2
  39. package/build/static/js/7638.4c7ee6d6.chunk.js +1 -0
  40. package/build/static/js/7718.11941d75.chunk.js +1 -0
  41. package/build/static/js/{7913.f8875090.chunk.js → 7913.777445d3.chunk.js} +1 -1
  42. package/build/static/js/{8219.b43d875a.chunk.js → 8219.22ddc152.chunk.js} +1 -1
  43. package/build/static/js/{8359.8b6900c4.chunk.js → 8359.71547b04.chunk.js} +1 -1
  44. package/build/static/js/8719.27070c24.chunk.js +1 -0
  45. package/build/static/js/{9041.d699548c.chunk.js → 9041.712e053e.chunk.js} +1 -1
  46. package/build/static/js/{9244.0e63ef9b.chunk.js → 9244.01ad2b1f.chunk.js} +1 -1
  47. package/build/static/js/{9249.ee6559ec.chunk.js → 9249.4f20dc04.chunk.js} +1 -1
  48. package/build/static/js/{9327.77d4d1d8.chunk.js → 9327.b7f3ca87.chunk.js} +1 -1
  49. package/build/static/js/{9351.01fbdf43.chunk.js → 9351.06847c24.chunk.js} +1 -1
  50. package/build/static/js/9354.6dc219d4.chunk.js +1 -0
  51. package/build/static/js/9662.ce2f3bff.chunk.js +1 -0
  52. package/build/static/js/9744.832f9a25.chunk.js +1 -0
  53. package/build/static/js/{9801.38e0a56a.chunk.js → 9801.dd5edb8d.chunk.js} +1 -1
  54. package/build/static/js/9963.d6ed27e8.chunk.js +1 -0
  55. package/build/static/js/main.cdfecab7.js +2 -0
  56. package/package.json +1 -1
  57. package/build/static/js/1520.62e8079a.chunk.js +0 -1
  58. package/build/static/js/17.8cf3a2be.chunk.js +0 -1
  59. package/build/static/js/2113.9d869f90.chunk.js +0 -1
  60. package/build/static/js/2305.56b207a7.chunk.js +0 -2
  61. package/build/static/js/3245.e3e5fc36.chunk.js +0 -1
  62. package/build/static/js/3704.976069d0.chunk.js +0 -2
  63. package/build/static/js/4016.8eebff14.chunk.js +0 -2
  64. package/build/static/js/4038.e37978fb.chunk.js +0 -2
  65. package/build/static/js/436.92515855.chunk.js +0 -1
  66. package/build/static/js/4620.693d9d87.chunk.js +0 -1
  67. package/build/static/js/4901.3e63171b.chunk.js +0 -1
  68. package/build/static/js/5285.626871cb.chunk.js +0 -1
  69. package/build/static/js/542.3398e930.chunk.js +0 -1
  70. package/build/static/js/5904.d5c51cdf.chunk.js +0 -1
  71. package/build/static/js/5928.0f1d6dac.chunk.js +0 -1
  72. package/build/static/js/6287.46d99e7f.chunk.js +0 -1
  73. package/build/static/js/7020.3bb7de06.chunk.js +0 -1
  74. package/build/static/js/7126.d7ac7234.chunk.js +0 -1
  75. package/build/static/js/7638.dace3fe5.chunk.js +0 -1
  76. package/build/static/js/7718.6203b3b2.chunk.js +0 -1
  77. package/build/static/js/8592.9a930219.chunk.js +0 -1
  78. package/build/static/js/8719.d032d97d.chunk.js +0 -1
  79. package/build/static/js/9662.7329e545.chunk.js +0 -1
  80. package/build/static/js/9744.aea4abe9.chunk.js +0 -1
  81. package/build/static/js/9963.c11eaf1c.chunk.js +0 -1
  82. package/build/static/js/main.05aa4b84.js +0 -2
  83. /package/build/static/js/{1685.2a736ee3.chunk.js.LICENSE.txt → 1685.1679bdbd.chunk.js.LICENSE.txt} +0 -0
  84. /package/build/static/js/{2305.56b207a7.chunk.js.LICENSE.txt → 2305.1a17468a.chunk.js.LICENSE.txt} +0 -0
  85. /package/build/static/js/{4016.8eebff14.chunk.js.LICENSE.txt → 2701.45ca55d3.chunk.js.LICENSE.txt} +0 -0
  86. /package/build/static/js/{3704.976069d0.chunk.js.LICENSE.txt → 3704.139947e9.chunk.js.LICENSE.txt} +0 -0
  87. /package/build/static/js/{4038.e37978fb.chunk.js.LICENSE.txt → 4038.057c3526.chunk.js.LICENSE.txt} +0 -0
  88. /package/build/static/js/{4407.5f35466c.chunk.js.LICENSE.txt → 4407.0fbdcce5.chunk.js.LICENSE.txt} +0 -0
  89. /package/build/static/js/{7604.e325079e.chunk.js.LICENSE.txt → 7604.d16d75c3.chunk.js.LICENSE.txt} +0 -0
  90. /package/build/static/js/{main.05aa4b84.js.LICENSE.txt → main.cdfecab7.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1005],{44906:function(e,t,n){n.r(t),n.d(t,{default:function(){return ue}});var r=n(71171),o=n(96234),i=n(5057),a=n(6352),s=n.n(a),l=n(33518),c=n(67654),u=n(11750),d=n(39948),h=n(39434),f=n(39075),m=n(5952),p=n(75793),x=n(59740),b=n(33028),v=n(38898),Z=n(52439),g=n(71569),k=n(61951),y=n(35432),j=n(44727),w=n(4651),P=n(74094),S=n(85493),R=n(38242),C=n(44846),D=n(28726),E=n(19574),F=n(86229),U=n(76811),T=n(23484),L=n(34937);var N=n(7199),_=n(10458),B=n.n(_),M=n(13128),W=n(73170),I=n(96266);function A(e){var t=e.meta,n=e.onCancel,r=e.handlePaySuccess,a=e.storeUrl,l=(0,f.PE)().t,c=(0,p.h6)().info,d=(0,i.useState)("both"),h=(0,o.Z)(d,2),m=h[0],x=h[1],b=(0,i.useState)(1),v=(0,o.Z)(b,2),Z=v[0],g=v[1],k=(0,P.yP)(c),y=(0,w.FM)(t,c,a),j=(0,R.getDisplayName)({meta:t});if("purchase"===m&&2===Z)return(0,I.jsx)(E.default,{open:!0,popup:!0,baseUrl:a,action:"acquire-asset",checkFn:B().create({baseURL:s()(a,"/store")}).get,onSuccess:function(){r(y)},onClose:n,checkTimeout:3e5,extraParams:{factory:t.nftFactory},webWalletUrl:k,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:l("store.purchase.auth.title",{name:j}),scan:l("store.purchase.auth.scan"),confirm:l("store.purchase.auth.confirm"),success:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(u.Z,{gutterBottom:!0,children:l("store.purchase.auth.success")}),(0,I.jsxs)(u.Z,{variant:"subtitle2",children:[" ",l("store.purchase.autoLaunch",{name:j})]})]})}});var S=M.Z;return(0,I.jsx)(S,{title:l("store.purchase.title",{name:j}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:function(e,t){"backdropClick"!==t&&n()},children:(0,I.jsx)("div",{style:{marginBottom:16},children:(0,I.jsx)(W.AP,{action:m,onNext:function(){m&&(g(2),"verify"===m&&(window.location.href=y))},onSelect:function(e){e!==m&&x(e)}})})})}A.defaultProps={handlePaySuccess:function(e){setTimeout((function(){window.location.href=e}),1e3)}};var K,O=A,z=n(25339);function H(e){var t=e.meta,n=e.buttonText,r=e.storeUrl,a=(0,f.PE)().t,s=(0,S.useNavigate)(),l=(0,p.h6)().info,u=(0,z.Tt)().api,d=!1===(0,R.isFreeBlocklet)(t),h=(0,i.useState)(!1),m=(0,o.Z)(h,2),x=m[0],b=m[1],v=function(e){var t=(0,T.Z)(),n=(0,S.useNavigate)(),r=(0,c.Z)("sid:blocklet:purchase:".concat(e)),a=(0,o.Z)(r,2),s=a[0],l=a[1],u=(0,i.useState)(!1),d=(0,o.Z)(u,2),h=d[0],f=d[1],m=(0,i.useState)(null),p=(0,o.Z)(m,2),x=p[0],b=p[1],v=function(){var e=new URL(window.location.href),t=e.pathname,r=e.searchParams,o=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";r.get("sid")&&(l(""),n(t.replace(o,"/"),{replace:!0}))},Z=!(!t.get("assetDid")||!s||t.get("sid")!==s);return(0,L.mU)(U.BlockletEvents.purchaseChange,(function(t){t.did===e&&(b(t.session),["declined","confirmed","error"].includes(t.session.status)&&(f(!0),setTimeout(v,2e3)))})),(0,i.useEffect)((function(){x&&x.id!==s&&l(x.id)}),[x]),{hasCompleted:h,hasPurchased:Z,session:x,setSession:b,doRedirect:v}}(t.did),Z=v.hasPurchased,g=(0,i.useState)(!1),k=(0,o.Z)(g,2),y=k[0],_=k[1],B=(0,c.Z)("instant-blocklet-install",!1),M=(0,o.Z)(B,1)[0],W=(0,i.useState)(!1),A=(0,o.Z)(W,2),K=A[0],H=A[1],q=(0,i.useMemo)((function(){return x?a(d?"blocklet.status.purchasing":"blocklet.status.waiting"):""}),[x,a,d]),V=(0,i.useMemo)((function(){return d?n.purchase:n.launch}),[d,n]),$=function(e){e.preventDefault(),e.stopPropagation();try{if(b(!0),d)return void _(!0);if(M)return void H(!0);if(!d){var n=(0,w.FM)(t,l,r);return void(window.location.href=n)}}catch(o){F.Z.error((0,P.Z)(o),{autoHideDuration:5e3}),console.error("Blocklet installed failed",o)}finally{b(!1)}};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(j.Kk,{children:(0,I.jsx)(N.Z,{permission:"mutate_blocklets",children:function(e){return(0,I.jsx)(D.Z,{onClick:$,size:"small",disabled:Boolean(q||!e),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:q?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(C.Z,{size:16,style:{marginRight:3}}),q]}):V},t.did)}})}),(Z||y)&&(0,I.jsx)(O,{method:"launch",meta:t,mode:"both",onCancel:function(){b(!1),_(!1)},storeUrl:r}),K&&(0,I.jsx)(E.default,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:u.get,checkTimeout:3e5,onSuccess:function(e){b(!1),H(!1),s("/blocklets/".concat(e.appDid,"/components"))},extraParams:{title:t.title,blockletMetaUrl:decodeURIComponent((0,P.Rn)(r,t.did).trim())},messages:{title:a("setup.keyPair.title"),scan:a("setup.keyPair.scan"),confirm:a("setup.keyPair.confirm"),success:a("setup.keyPair.success")},onClose:function(){b(!1),H(!1)}})]})}H.defaultProps={};var q=["storeUrl","handleSearchSelect","extraFilter"],V=function(e,t,n){var r=(0,w.RU)(t);return s()(n,"/blocklets/".concat(e.did,"/?server-url=").concat(r))},$=function(e){var t=e.meta,n=e.attribute,r=e.value;return t._formatted?t._formatted[n]:r};function G(e){var t=e.blocklet,n=e.endpoint,r=(0,f.PE)().t,o=(0,p.h6)(),i=s()(o.imgPrefix,"blocklet.png"),a=n;if(a.startsWith("http")&&t.logo)i=s()(a,(0,P.lk)(t.did,t.logo));else{var l=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");l&&(l="/".concat(l)),i=s()(l,"/blocklet/logo/".concat(t.did))}var c=(null===o||void 0===o?void 0:o.info.mode)!==y.NODE_MODES.SERVERLESS,u={meta:t,buttonText:{purchase:r("common.purchase"),launch:r("common.launch")},storeUrl:a};return(0,I.jsx)(v.Z,{href:V(t,o.info,n),style:{color:"initial",textDecoration:"none"},onClick:function(e){return!!e.currentTarget.contains(e.target)||(e.preventDefault(),!1)},target:"_blank",children:(0,I.jsx)(Q,{title:$({meta:t,attribute:"title",value:t.title||t.name}),did:t.did,description:$({meta:t,attribute:"description",value:t.description}),cover:t.logo?i:"",version:t.version,button:c?(0,I.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,I.jsx)(H,(0,b.Z)({},u))}):null})})}function J(e){var t,n=e.storeUrl,r=e.handleSearchSelect,a=e.extraFilter,s=(0,x.Z)(e,q),l=(0,f.PE)().locale,c=(0,p.h6)(),u=(0,i.useState)({}),d=(0,o.Z)(u,2),h=d[0],m=d[1],v=n,y=null===c||void 0===c||null===(t=c.info)||void 0===t?void 0:t.version;return(0,i.useEffect)((function(){m({})}),[v]),(0,I.jsx)(Z.ErrorBoundary,{FallbackComponent:g.H,resetKeys:[v],children:(0,I.jsx)("div",(0,b.Z)((0,b.Z)({},s),{},{children:(0,I.jsx)(k.Z,{blockletRender:function(e){var t=(0,b.Z)((0,b.Z)({},e),{},{endpoint:v});return(0,I.jsx)(G,(0,b.Z)({},t))},baseSearch:!0,endpoint:v,locale:l,onFilterChange:function(e){m(e)},onSearchSelect:r,filters:h,extraFilter:a,serverVersion:y})}))})}G.defaultProps={endpoint:""},J.defaultProps={handleSearchSelect:null,extraFilter:void 0};var Q=(0,l.default)(j.ZP)(K||(K=(0,r.Z)(["\n .ms-highlight {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),X=n(92877),Y=n(19577),ee=n(93329),te=n(44067),ne=n(46954),re=n(49390),oe=n(22714),ie=n(45170),ae=(0,X.Z)((function(){return{buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}})),se=(0,i.forwardRef)((function(e,t){var n=e.onChange,r=e.onDelete,a=(0,p.h6)().info,s=(0,f.PE)().t,l=(0,i.useState)(!1),d=(0,o.Z)(l,2),h=d[0],x=d[1],b=(0,i.useState)(!1),v=(0,o.Z)(b,2),Z=v[0],g=v[1],k=(0,i.useState)(-1),y=(0,o.Z)(k,2),j=y[0],w=y[1],S=ae(),R=(0,c.Z)(m.W),E=(0,o.Z)(R,2),U=E[0],T=E[1],L=Math.max(a.blockletRegistryList.findIndex((function(e){return e.url===U})),0);return(0,i.useImperativeHandle)(t,(function(){return{setOpen:g}})),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.Z,{permission:"mutate_node",children:function(e){return(0,I.jsx)(D.Z,{disabled:!e,classes:{text:S.buttonText},color:"secondary","data-cy":"store-toggle",onClick:function(){g(!0)},endIcon:(0,I.jsx)(re.Z,{}),children:(0,I.jsx)(u.Z,{color:"secondary",children:a.blockletRegistryList[L].name})})}}),(0,I.jsx)(M.Z,{title:s("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:Z,onClose:function(){return g(!1)},children:(0,I.jsxs)(Y.Z,{className:S.tabPanel,children:[a.blockletRegistryList.map((function(e,t){return(0,I.jsxs)(ee.ZP,{button:!0,disabled:h,selected:L===t,"data-cy":"store-switch",onClick:function(){h||(t!==L?function(e){try{x(!0),w(e);var t=a.blockletRegistryList[e];T(t.url),n(t.url),g(!1)}catch(r){console.error(r),F.Z.error("".concat(s("store.blockletRegistry.changeFailed")," ").concat((0,P.Z)(r)))}finally{x(!1)}}(t):g(!1))},children:[(0,I.jsx)(ne.Z,{className:S.iconRoot,children:j===t&&h&&(0,I.jsx)(C.Z,{size:16})}),(0,I.jsx)(te.Z,{children:(0,I.jsx)(ie.Z,{teamDid:a.did,store:e,onDelete:function(){return r(e.url)}})})]},e.url)})),(0,I.jsx)(oe.Z,{disabled:h,onAdd:n,teamDid:a.did,blockletRegistryList:a.blockletRegistryList})]})})]})}));se.defaultProps={onChange:function(){},onDelete:function(){}};var le,ce=se;function ue(){var e=(0,f.PE)().t,t=(0,p.h6)().info,n=(0,c.Z)(m.W),r=(0,o.Z)(n,1)[0],a=t.blockletRegistryList,l=a.find((function(e){return r===e.url}))||a[0],x=(0,i.useState)(l.url),b=(0,o.Z)(x,2),v=b[0],Z=b[1],g=t.routing.adminPath,k=s()(window.location.origin,g),y=(0,i.useRef)(null);return(0,I.jsxs)(de,{children:[(0,I.jsxs)(h.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,I.jsx)(u.Z,{color:"textPrimary",children:e("common.store")}),(0,I.jsx)(ce,{ref:y,onChange:function(e){return Z(e)},onDelete:function(e){var n;v===e&&Z(null===(n=t.blockletRegistryList[0])||void 0===n?void 0:n.url)}})]}),(0,I.jsx)(d.Z,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:(0,I.jsx)(u.Z,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),(0,I.jsx)(J,{className:"blocklet-list",handleSearchSelect:function(e){var t=e.detailUrl,n=new URL(t);n.searchParams.set("server-url",k);var r=document.createElement("a");r.setAttribute("target","_blank"),r.setAttribute("href",n.href),r.click()},storeUrl:v})]})}var de=l.default.main(le||(le=(0,r.Z)(["\n @media (max-width: ","px) {\n .store-header {\n flex-direction: column;\n margin-bottom: 32px !important;\n }\n\n .page-header {\n margin-bottom: 16px !important;\n }\n }\n .blocklet-list {\n aside:hover {\n height: calc(100vh - 235px);\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.sm}))},50185:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(33028),o=n(59740),i=n(5057),a=n(55898),s=n.n(a),l=n(12937),c=n(39075),u=n(96266),d=["children"];function h(e){var t=e.children,n=(0,o.Z)(e,d),a=(0,i.useContext)(c.RD).t;return(0,u.jsx)(l.Z,(0,r.Z)((0,r.Z)({tip:a("common.copyTip"),copiedTip:a("common.copiedTip")},n),{},{children:t}))}h.propTypes={children:s().any.isRequired}}}]);
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1005],{44906:function(e,t,n){n.r(t),n.d(t,{default:function(){return ue}});var r=n(71171),o=n(96234),i=n(5057),a=n(6352),s=n.n(a),l=n(33518),c=n(67654),u=n(11750),d=n(39948),h=n(39434),f=n(39075),m=n(5952),p=n(75793),x=n(59740),b=n(33028),v=n(38898),Z=n(52439),g=n(71569),k=n(61951),y=n(35432),j=n(44727),w=n(4651),P=n(74094),S=n(85493),R=n(38242),C=n(44846),D=n(28726),E=n(46999),F=n(86229),U=n(76811),T=n(23484),L=n(34937);var N=n(7199),_=n(10458),B=n.n(_),M=n(13128),W=n(73170),I=n(96266);function A(e){var t=e.meta,n=e.onCancel,r=e.handlePaySuccess,a=e.storeUrl,l=(0,f.PE)().t,c=(0,p.h6)().info,d=(0,i.useState)("both"),h=(0,o.Z)(d,2),m=h[0],x=h[1],b=(0,i.useState)(1),v=(0,o.Z)(b,2),Z=v[0],g=v[1],k=(0,P.yP)(c),y=(0,w.FM)(t,c,a),j=(0,R.getDisplayName)({meta:t});if("purchase"===m&&2===Z)return(0,I.jsx)(E.default,{open:!0,popup:!0,baseUrl:a,action:"acquire-asset",checkFn:B().create({baseURL:s()(a,"/store")}).get,onSuccess:function(){r(y)},onClose:n,checkTimeout:3e5,extraParams:{factory:t.nftFactory},webWalletUrl:k,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:l("store.purchase.auth.title",{name:j}),scan:l("store.purchase.auth.scan"),confirm:l("store.purchase.auth.confirm"),success:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(u.Z,{gutterBottom:!0,children:l("store.purchase.auth.success")}),(0,I.jsxs)(u.Z,{variant:"subtitle2",children:[" ",l("store.purchase.autoLaunch",{name:j})]})]})}});var S=M.Z;return(0,I.jsx)(S,{title:l("store.purchase.title",{name:j}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:function(e,t){"backdropClick"!==t&&n()},children:(0,I.jsx)("div",{style:{marginBottom:16},children:(0,I.jsx)(W.AP,{action:m,onNext:function(){m&&(g(2),"verify"===m&&(window.location.href=y))},onSelect:function(e){e!==m&&x(e)}})})})}A.defaultProps={handlePaySuccess:function(e){setTimeout((function(){window.location.href=e}),1e3)}};var K,O=A,z=n(25339);function H(e){var t=e.meta,n=e.buttonText,r=e.storeUrl,a=(0,f.PE)().t,s=(0,S.useNavigate)(),l=(0,p.h6)().info,u=(0,z.Tt)().api,d=!1===(0,R.isFreeBlocklet)(t),h=(0,i.useState)(!1),m=(0,o.Z)(h,2),x=m[0],b=m[1],v=function(e){var t=(0,T.Z)(),n=(0,S.useNavigate)(),r=(0,c.Z)("sid:blocklet:purchase:".concat(e)),a=(0,o.Z)(r,2),s=a[0],l=a[1],u=(0,i.useState)(!1),d=(0,o.Z)(u,2),h=d[0],f=d[1],m=(0,i.useState)(null),p=(0,o.Z)(m,2),x=p[0],b=p[1],v=function(){var e=new URL(window.location.href),t=e.pathname,r=e.searchParams,o=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";r.get("sid")&&(l(""),n(t.replace(o,"/"),{replace:!0}))},Z=!(!t.get("assetDid")||!s||t.get("sid")!==s);return(0,L.mU)(U.BlockletEvents.purchaseChange,(function(t){t.did===e&&(b(t.session),["declined","confirmed","error"].includes(t.session.status)&&(f(!0),setTimeout(v,2e3)))})),(0,i.useEffect)((function(){x&&x.id!==s&&l(x.id)}),[x]),{hasCompleted:h,hasPurchased:Z,session:x,setSession:b,doRedirect:v}}(t.did),Z=v.hasPurchased,g=(0,i.useState)(!1),k=(0,o.Z)(g,2),y=k[0],_=k[1],B=(0,c.Z)("instant-blocklet-install",!1),M=(0,o.Z)(B,1)[0],W=(0,i.useState)(!1),A=(0,o.Z)(W,2),K=A[0],H=A[1],q=(0,i.useMemo)((function(){return x?a(d?"blocklet.status.purchasing":"blocklet.status.waiting"):""}),[x,a,d]),V=(0,i.useMemo)((function(){return d?n.purchase:n.launch}),[d,n]),$=function(e){e.preventDefault(),e.stopPropagation();try{if(b(!0),d)return void _(!0);if(M)return void H(!0);if(!d){var n=(0,w.FM)(t,l,r);return void(window.location.href=n)}}catch(o){F.Z.error((0,P.Z)(o),{autoHideDuration:5e3}),console.error("Blocklet installed failed",o)}finally{b(!1)}};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(j.Kk,{children:(0,I.jsx)(N.Z,{permission:"mutate_blocklets",children:function(e){return(0,I.jsx)(D.Z,{onClick:$,size:"small",disabled:Boolean(q||!e),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:q?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(C.Z,{size:16,style:{marginRight:3}}),q]}):V},t.did)}})}),(Z||y)&&(0,I.jsx)(O,{method:"launch",meta:t,mode:"both",onCancel:function(){b(!1),_(!1)},storeUrl:r}),K&&(0,I.jsx)(E.default,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:u.get,checkTimeout:3e5,onSuccess:function(e){b(!1),H(!1),s("/blocklets/".concat(e.appDid,"/components"))},extraParams:{title:t.title,blockletMetaUrl:decodeURIComponent((0,P.Rn)(r,t.did).trim())},messages:{title:a("setup.keyPair.title"),scan:a("setup.keyPair.scan"),confirm:a("setup.keyPair.confirm"),success:a("setup.keyPair.success")},onClose:function(){b(!1),H(!1)}})]})}H.defaultProps={};var q=["storeUrl","handleSearchSelect","extraFilter"],V=function(e,t,n){var r=(0,w.RU)(t);return s()(n,"/blocklets/".concat(e.did,"/?server-url=").concat(r))},$=function(e){var t=e.meta,n=e.attribute,r=e.value;return t._formatted?t._formatted[n]:r};function G(e){var t=e.blocklet,n=e.endpoint,r=(0,f.PE)().t,o=(0,p.h6)(),i=s()(o.imgPrefix,"blocklet.png"),a=n;if(a.startsWith("http")&&t.logo)i=s()(a,(0,P.lk)(t.did,t.logo));else{var l=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");l&&(l="/".concat(l)),i=s()(l,"/blocklet/logo/".concat(t.did))}var c=(null===o||void 0===o?void 0:o.info.mode)!==y.NODE_MODES.SERVERLESS,u={meta:t,buttonText:{purchase:r("common.purchase"),launch:r("common.launch")},storeUrl:a};return(0,I.jsx)(v.Z,{href:V(t,o.info,n),style:{color:"initial",textDecoration:"none"},onClick:function(e){return!!e.currentTarget.contains(e.target)||(e.preventDefault(),!1)},target:"_blank",children:(0,I.jsx)(Q,{title:$({meta:t,attribute:"title",value:t.title||t.name}),did:t.did,description:$({meta:t,attribute:"description",value:t.description}),cover:t.logo?i:"",version:t.version,button:c?(0,I.jsx)("div",{style:{display:"flex",alignItems:"center"},children:(0,I.jsx)(H,(0,b.Z)({},u))}):null})})}function J(e){var t,n=e.storeUrl,r=e.handleSearchSelect,a=e.extraFilter,s=(0,x.Z)(e,q),l=(0,f.PE)().locale,c=(0,p.h6)(),u=(0,i.useState)({}),d=(0,o.Z)(u,2),h=d[0],m=d[1],v=n,y=null===c||void 0===c||null===(t=c.info)||void 0===t?void 0:t.version;return(0,i.useEffect)((function(){m({})}),[v]),(0,I.jsx)(Z.ErrorBoundary,{FallbackComponent:g.H,resetKeys:[v],children:(0,I.jsx)("div",(0,b.Z)((0,b.Z)({},s),{},{children:(0,I.jsx)(k.Z,{blockletRender:function(e){var t=(0,b.Z)((0,b.Z)({},e),{},{endpoint:v});return(0,I.jsx)(G,(0,b.Z)({},t))},baseSearch:!0,endpoint:v,locale:l,onFilterChange:function(e){m(e)},onSearchSelect:r,filters:h,extraFilter:a,serverVersion:y})}))})}G.defaultProps={endpoint:""},J.defaultProps={handleSearchSelect:null,extraFilter:void 0};var Q=(0,l.default)(j.ZP)(K||(K=(0,r.Z)(["\n .ms-highlight {\n color: ",";\n }\n"])),(function(e){return e.theme.palette.primary.main})),X=n(92877),Y=n(19577),ee=n(93329),te=n(44067),ne=n(46954),re=n(49390),oe=n(22714),ie=n(45170),ae=(0,X.Z)((function(){return{buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},menuName:{display:"flex",flexDirection:"column",marginRight:"100px","& span":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}}})),se=(0,i.forwardRef)((function(e,t){var n=e.onChange,r=e.onDelete,a=(0,p.h6)().info,s=(0,f.PE)().t,l=(0,i.useState)(!1),d=(0,o.Z)(l,2),h=d[0],x=d[1],b=(0,i.useState)(!1),v=(0,o.Z)(b,2),Z=v[0],g=v[1],k=(0,i.useState)(-1),y=(0,o.Z)(k,2),j=y[0],w=y[1],S=ae(),R=(0,c.Z)(m.W),E=(0,o.Z)(R,2),U=E[0],T=E[1],L=Math.max(a.blockletRegistryList.findIndex((function(e){return e.url===U})),0);return(0,i.useImperativeHandle)(t,(function(){return{setOpen:g}})),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(N.Z,{permission:"mutate_node",children:function(e){return(0,I.jsx)(D.Z,{disabled:!e,classes:{text:S.buttonText},color:"secondary","data-cy":"store-toggle",onClick:function(){g(!0)},endIcon:(0,I.jsx)(re.Z,{}),children:(0,I.jsx)(u.Z,{color:"secondary",children:a.blockletRegistryList[L].name})})}}),(0,I.jsx)(M.Z,{title:s("store.blockletRegistry.switchRegistry"),disableEscapeKeyDown:!0,disablePortal:!1,fullWidth:!0,open:Z,onClose:function(){return g(!1)},children:(0,I.jsxs)(Y.Z,{className:S.tabPanel,children:[a.blockletRegistryList.map((function(e,t){return(0,I.jsxs)(ee.ZP,{button:!0,disabled:h,selected:L===t,"data-cy":"store-switch",onClick:function(){h||(t!==L?function(e){try{x(!0),w(e);var t=a.blockletRegistryList[e];T(t.url),n(t.url),g(!1)}catch(r){console.error(r),F.Z.error("".concat(s("store.blockletRegistry.changeFailed")," ").concat((0,P.Z)(r)))}finally{x(!1)}}(t):g(!1))},children:[(0,I.jsx)(ne.Z,{className:S.iconRoot,children:j===t&&h&&(0,I.jsx)(C.Z,{size:16})}),(0,I.jsx)(te.Z,{children:(0,I.jsx)(ie.Z,{teamDid:a.did,store:e,onDelete:function(){return r(e.url)}})})]},e.url)})),(0,I.jsx)(oe.Z,{disabled:h,onAdd:n,teamDid:a.did,blockletRegistryList:a.blockletRegistryList})]})})]})}));se.defaultProps={onChange:function(){},onDelete:function(){}};var le,ce=se;function ue(){var e=(0,f.PE)().t,t=(0,p.h6)().info,n=(0,c.Z)(m.W),r=(0,o.Z)(n,1)[0],a=t.blockletRegistryList,l=a.find((function(e){return r===e.url}))||a[0],x=(0,i.useState)(l.url),b=(0,o.Z)(x,2),v=b[0],Z=b[1],g=t.routing.adminPath,k=s()(window.location.origin,g),y=(0,i.useRef)(null);return(0,I.jsxs)(de,{children:[(0,I.jsxs)(h.Z,{separator:"\u203a","aria-label":"breadcrumb",className:"page-breadcrumb",children:[(0,I.jsx)(u.Z,{color:"textPrimary",children:e("common.store")}),(0,I.jsx)(ce,{ref:y,onChange:function(e){return Z(e)},onDelete:function(e){var n;v===e&&Z(null===(n=t.blockletRegistryList[0])||void 0===n?void 0:n.url)}})]}),(0,I.jsx)(d.Z,{className:"store-header",display:"flex",justifyContent:"space-between",p:0,m:0,children:(0,I.jsx)(u.Z,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:e("store.headerDescription")})}),(0,I.jsx)(J,{className:"blocklet-list",handleSearchSelect:function(e){var t=e.detailUrl,n=new URL(t);n.searchParams.set("server-url",k);var r=document.createElement("a");r.setAttribute("target","_blank"),r.setAttribute("href",n.href),r.click()},storeUrl:v})]})}var de=l.default.main(le||(le=(0,r.Z)(["\n @media (max-width: ","px) {\n .store-header {\n flex-direction: column;\n margin-bottom: 32px !important;\n }\n\n .page-header {\n margin-bottom: 16px !important;\n }\n }\n .blocklet-list {\n aside:hover {\n height: calc(100vh - 235px);\n }\n }\n"])),(function(e){return e.theme.breakpoints.values.sm}))},50185:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(33028),o=n(59740),i=n(5057),a=n(55898),s=n.n(a),l=n(12937),c=n(39075),u=n(96266),d=["children"];function h(e){var t=e.children,n=(0,o.Z)(e,d),a=(0,i.useContext)(c.RD).t;return(0,u.jsx)(l.Z,(0,r.Z)((0,r.Z)({tip:a("common.copyTip"),copiedTip:a("common.copiedTip")},n),{},{children:t}))}h.propTypes={children:s().any.isRequired}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[1520],{64886:function(e,t,a){var r,n=a(71171),o=a(33028),i=a(59740),l=a(55898),c=a.n(l),s=a(51540),u=a.n(s),d=a(26538),v=a.n(d),m=a(11750),p=a(47685),h=a(96266),f=["name","nameFormatter","layout","children","valueComponent","nameWidth"];function b(e){var t=e.name,a=e.nameFormatter,r=e.layout,n=e.children,l=e.valueComponent,c=e.nameWidth,s=(0,i.Z)(e,f);return(0,h.jsxs)(g,(0,o.Z)((0,o.Z)({layout:r,width:c},s),{},{children:[(0,h.jsx)(m.Z,{color:"textSecondary",className:"info-row__name",children:a(t)}),n&&(0,h.jsx)(m.Z,{color:"textPrimary",component:l,className:"info-row__value",children:n})]}))}b.propTypes={name:c().any.isRequired,layout:c().oneOf(["horizontal","vertical"]),children:c().any,nameFormatter:c().func,valueComponent:c().string,nameWidth:c().number},b.defaultProps={children:null,nameWidth:90,nameFormatter:function(e){var t=e.split(" ").map((function(e){return v()(u()(e))})).join(" ");return"string"===typeof e?t:e},valueComponent:"div",layout:"horizontal"};var g=(0,p.zo)("div")(r||(r=(0,n.Z)(["\n display: flex;\n flex-direction: ",";\n justify-content: flex-start;\n align-items: ",";\n margin-bottom: 16px;\n\n .info-row__name {\n width: ","px;\n margin-right: ",";\n margin-bottom: ",";\n text-transform: capitalize;\n }\n\n .info-row__value {\n flex: 1;\n overflow: auto;\n word-wrap: break-word;\n font-weight: 500;\n }\n\n @media (max-width: ","px) {\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n .info-row__name {\n font-weight: bold;\n }\n\n .info-row__value {\n width: 100%;\n font-size: 12px;\n margin-top: 8px;\n }\n }\n"])),(function(e){return"vertical"===e.layout?"column":"row"}),(function(e){return"vertical"===e.layout?"flex-start":"center"}),(function(e){return e.width}),(function(e){return"vertical"===e.layout?"0":"8px"}),(function(e){return"vertical"===e.layout?"8px":"0"}),(function(e){return e.theme.breakpoints.values.md}));t.Z=b},82790:function(e,t,a){var r=a(59740),n=a(33028),o=a(55898),i=a.n(o),l=a(26174),c=a(36554),s=a(47685),u=a(96266),d=["labelProps"],v=(0,s.zo)((function(e){return(0,u.jsx)(c.Z,(0,n.Z)({focusVisibleClassName:".Mui-focusVisible",disableRipple:!0},e))}))((function(e){var t=e.theme;return{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"dark"===t.palette.mode?"#2ECA45":"#65C466",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:"light"===t.palette.mode?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:13,backgroundColor:"light"===t.palette.mode?"#E9E9EA":"#39393D",opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}}));function m(e){var t=e.labelProps,a=(0,r.Z)(e,d);return t?(0,u.jsx)(l.Z,(0,n.Z)({control:(0,u.jsx)(v,(0,n.Z)({},a))},t)):(0,u.jsx)(v,(0,n.Z)({},a))}m.propTypes={labelProps:i().object},m.defaultProps={labelProps:null},t.Z=m},44919:function(e,t,a){var r=a(71600);t.Z=void 0;var n=r(a(56930)),o=a(96266),i=(0,n.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},11593:function(e,t,a){var r=a(71600);t.Z=void 0;var n=r(a(56930)),o=a(96266),i=(0,n.default)((0,o.jsx)("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"}),"CallMerge");t.Z=i},92273:function(e,t,a){var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(56930)),o=a(96266),i=(0,n.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");t.default=i},76667:function(e,t,a){var r=a(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a(56930)),o=a(96266),i=(0,n.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.default=i},31942:function(e,t,a){var r=a(71600);t.Z=void 0;var n=r(a(56930)),o=a(96266),i=(0,n.default)((0,o.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Https");t.Z=i},53906:function(e,t,a){var r=a(71600);t.Z=void 0;var n=r(a(56930)),o=a(96266),i=(0,n.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public");t.Z=i},38763:function(e,t,a){a.d(t,{Z:function(){return b}});var r=a(7896),n=a(31461),o=a(5057),i=a(8271),l=a(91213),c=a(62773),s=a(42908),u=a(25228),d=a(31821),v=a(18561);function m(e){return(0,v.Z)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var p=a(96266),h=["className","raised"],f=(0,c.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{overflow:"hidden"}})),b=o.forwardRef((function(e,t){var a=(0,s.Z)({props:e,name:"MuiCard"}),o=a.className,c=a.raised,u=void 0!==c&&c,d=(0,n.Z)(a,h),v=(0,r.Z)({},a,{raised:u}),b=function(e){var t=e.classes;return(0,l.Z)({root:["root"]},m,t)}(v);return(0,p.jsx)(f,(0,r.Z)({className:(0,i.Z)(b.root,o),elevation:u?8:void 0,ref:t,ownerState:v},d))}))},75392:function(e,t,a){a.d(t,{Z:function(){return f}});var r=a(7896),n=a(31461),o=a(5057),i=a(8271),l=a(91213),c=a(62773),s=a(42908),u=a(31821),d=a(18561);function v(e){return(0,d.Z)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var m=a(96266),p=["className","component"],h=(0,c.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(){return{padding:16,"&:last-child":{paddingBottom:24}}})),f=o.forwardRef((function(e,t){var a=(0,s.Z)({props:e,name:"MuiCardContent"}),o=a.className,c=a.component,u=void 0===c?"div":c,d=(0,n.Z)(a,p),f=(0,r.Z)({},a,{component:u}),b=function(e){var t=e.classes;return(0,l.Z)({root:["root"]},v,t)}(f);return(0,m.jsx)(h,(0,r.Z)({as:u,className:(0,i.Z)(b.root,o),ownerState:f,ref:t},d))}))},77150:function(e,t,a){a.d(t,{ZP:function(){return ae}});var r=a(56666),n=a(31461),o=a(7896),i=a(5057),l=a(8271),c=a(91213),s=a(8334),u=a(17517),d=a(68079),v=a(96234),m=a(48548),p=a(62663),h=a(46890),f=a(60730),b=a(56073),g=a(2534),x={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Z(e,t){return e-t}function w(e,t,a){return null==e?t:Math.min(Math.max(t,e),a)}function k(e,t){var a;return(null!=(a=e.reduce((function(e,a,r){var n=Math.abs(t-a);return null===e||n<e.distance||n===e.distance?{distance:n,index:r}:e}),null))?a:{}).index}function y(e,t){if(void 0!==t.current&&e.changedTouches){for(var a=e,r=0;r<a.changedTouches.length;r+=1){var n=a.changedTouches[r];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function S(e,t,a){return 100*(e-t)/(a-t)}function C(e,t,a){var r=Math.round((e-a)/t)*t+a;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),a=t[0].split(".")[1];return(a?a.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function z(e){var t=e.values,a=e.newValue,r=e.index,n=t.slice();return n[r]=a,n.sort(Z)}function L(e){var t,a,r,n=e.sliderRef,o=e.activeIndex,i=e.setActive,l=(0,m.Z)(n.current);null!=(t=n.current)&&t.contains(l.activeElement)&&Number(null==l||null==(a=l.activeElement)?void 0:a.getAttribute("data-index"))===o||(null==(r=n.current)||r.querySelector('[type="range"][data-index="'.concat(o,'"]')).focus());i&&i(o)}function M(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return e.length===t.length&&e.every((function(e,r){return a(e,t[r])}))}(e,t)}var R,P={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},j=function(e){return e};function N(){return void 0===R&&(R="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),R}function A(e){var t=e["aria-labelledby"],a=e.defaultValue,r=e.disabled,n=void 0!==r&&r,l=e.disableSwap,c=void 0!==l&&l,s=e.isRtl,u=void 0!==s&&s,R=e.marks,A=void 0!==R&&R,T=e.max,I=void 0===T?100:T,V=e.min,E=void 0===V?0:V,F=e.name,O=e.onChange,_=e.onChangeCommitted,B=e.orientation,D=void 0===B?"horizontal":B,X=e.rootRef,H=e.scale,Y=void 0===H?j:H,q=e.step,W=void 0===q?1:q,$=e.tabIndex,G=e.value,J=i.useRef(),K=i.useState(-1),Q=(0,v.Z)(K,2),U=Q[0],ee=Q[1],te=i.useState(-1),ae=(0,v.Z)(te,2),re=ae[0],ne=ae[1],oe=i.useState(!1),ie=(0,v.Z)(oe,2),le=ie[0],ce=ie[1],se=i.useRef(0),ue=(0,p.Z)({controlled:G,default:null!=a?a:E,name:"Slider"}),de=(0,v.Z)(ue,2),ve=de[0],me=de[1],pe=O&&function(e,t,a){var r=e.nativeEvent||e,n=new r.constructor(r.type,r);Object.defineProperty(n,"target",{writable:!0,value:{value:t,name:F}}),O(n,t,a)},he=Array.isArray(ve),fe=he?ve.slice().sort(Z):[ve];fe=fe.map((function(e){return w(e,E,I)}));var be=!0===A&&null!==W?(0,d.Z)(Array(Math.floor((I-E)/W)+1)).map((function(e,t){return{value:E+W*t}})):A||[],ge=be.map((function(e){return e.value})),xe=(0,h.Z)(),Ze=xe.isFocusVisibleRef,we=xe.onBlur,ke=xe.onFocus,ye=xe.ref,Se=i.useState(-1),Ce=(0,v.Z)(Se,2),ze=Ce[0],Le=Ce[1],Me=i.useRef(),Re=(0,f.Z)(ye,Me),Pe=(0,f.Z)(X,Re),je=function(e){return function(t){var a,r=Number(t.currentTarget.getAttribute("data-index"));ke(t),!0===Ze.current&&Le(r),ne(r),null==e||null==(a=e.onFocus)||a.call(e,t)}},Ne=function(e){return function(t){var a;we(t),!1===Ze.current&&Le(-1),ne(-1),null==e||null==(a=e.onBlur)||a.call(e,t)}};(0,b.Z)((function(){var e;n&&Me.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[n]),n&&-1!==U&&ee(-1),n&&-1!==ze&&Le(-1);var Ae=function(e){return function(t){var a;null==(a=e.onChange)||a.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index")),n=fe[r],o=ge.indexOf(n),i=t.target.valueAsNumber;if(be&&null==W){var l=ge[ge.length-1];i=i>l?l:i<ge[0]?ge[0]:i<n?ge[o-1]:ge[o+1]}if(i=w(i,E,I),he){c&&(i=w(i,fe[r-1]||-1/0,fe[r+1]||1/0));var s=i;i=z({values:fe,newValue:i,index:r});var u=r;c||(u=i.indexOf(s)),L({sliderRef:Me,activeIndex:u})}me(i),Le(r),pe&&!M(i,ve)&&pe(t,i,r),_&&_(t,i)}},Te=i.useRef(),Ie=D;u&&"horizontal"===D&&(Ie+="-reverse");var Ve=function(e){var t,a,r=e.finger,n=e.move,o=void 0!==n&&n,i=Me.current.getBoundingClientRect(),l=i.width,s=i.height,u=i.bottom,d=i.left;if(t=0===Ie.indexOf("vertical")?(u-r.y)/s:(r.x-d)/l,-1!==Ie.indexOf("-reverse")&&(t=1-t),a=function(e,t,a){return(a-t)*e+t}(t,E,I),W)a=C(a,W,E);else{var v=k(ge,a);a=ge[v]}a=w(a,E,I);var m=0;if(he){m=o?Te.current:k(fe,a),c&&(a=w(a,fe[m-1]||-1/0,fe[m+1]||1/0));var p=a;a=z({values:fe,newValue:a,index:m}),c&&o||(m=a.indexOf(p),Te.current=m)}return{newValue:a,activeIndex:m}},Ee=(0,g.Z)((function(e){var t=y(e,J);if(t)if(se.current+=1,"mousemove"!==e.type||0!==e.buttons){var a=Ve({finger:t,move:!0}),r=a.newValue,n=a.activeIndex;L({sliderRef:Me,activeIndex:n,setActive:ee}),me(r),!le&&se.current>2&&ce(!0),pe&&!M(r,ve)&&pe(e,r,n)}else Fe(e)})),Fe=(0,g.Z)((function(e){var t=y(e,J);if(ce(!1),t){var a=Ve({finger:t,move:!0}).newValue;ee(-1),"touchend"===e.type&&ne(-1),_&&_(e,a),J.current=void 0,_e()}})),Oe=(0,g.Z)((function(e){if(!n){N()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(J.current=t.identifier);var a=y(e,J);if(!1!==a){var r=Ve({finger:a}),o=r.newValue,i=r.activeIndex;L({sliderRef:Me,activeIndex:i,setActive:ee}),me(o),pe&&!M(o,ve)&&pe(e,o,i)}se.current=0;var l=(0,m.Z)(Me.current);l.addEventListener("touchmove",Ee),l.addEventListener("touchend",Fe)}})),_e=i.useCallback((function(){var e=(0,m.Z)(Me.current);e.removeEventListener("mousemove",Ee),e.removeEventListener("mouseup",Fe),e.removeEventListener("touchmove",Ee),e.removeEventListener("touchend",Fe)}),[Fe,Ee]);i.useEffect((function(){var e=Me.current;return e.addEventListener("touchstart",Oe,{passive:N()}),function(){e.removeEventListener("touchstart",Oe,{passive:N()}),_e()}}),[_e,Oe]),i.useEffect((function(){n&&_e()}),[n,_e]);var Be=function(e){return function(t){var a;if(null==(a=e.onMouseDown)||a.call(e,t),!n&&!t.defaultPrevented&&0===t.button){t.preventDefault();var r=y(t,J);if(!1!==r){var o=Ve({finger:r}),i=o.newValue,l=o.activeIndex;L({sliderRef:Me,activeIndex:l,setActive:ee}),me(i),pe&&!M(i,ve)&&pe(t,i,l)}se.current=0;var c=(0,m.Z)(Me.current);c.addEventListener("mousemove",Ee),c.addEventListener("mouseup",Fe)}}},De=S(he?fe[0]:E,E,I),Xe=S(fe[fe.length-1],E,I)-De,He=function(e){return function(t){var a;null==(a=e.onMouseOver)||a.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index"));ne(r)}},Ye=function(e){return function(t){var a;null==(a=e.onMouseLeave)||a.call(e,t),ne(-1)}};return{active:U,axis:Ie,axisProps:P,dragging:le,focusedThumbIndex:ze,getHiddenInputProps:function(){var a,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={onChange:Ae(r||{}),onFocus:je(r||{}),onBlur:Ne(r||{})},l=(0,o.Z)({},r,i);return(0,o.Z)({tabIndex:$,"aria-labelledby":t,"aria-orientation":D,"aria-valuemax":Y(I),"aria-valuemin":Y(E),name:F,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(a=e.step)?a:void 0,disabled:n},l,{style:(0,o.Z)({},x,{direction:u?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseDown:Be(e||{})},a=(0,o.Z)({},e,t);return(0,o.Z)({ref:Pe},a)},getThumbProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseOver:He(e||{}),onMouseLeave:Ye(e||{})};return(0,o.Z)({},e,t)},marks:be,open:re,range:he,rootRef:Pe,trackLeap:Xe,trackOffset:De,values:fe,getThumbStyle:function(e){return{pointerEvents:-1!==U&&U!==e?"none":void 0}}}}var T=a(66685),I=a(42908),V=a(62773),E=a(96366),F=function(e){return!e||!(0,u.X)(e)},O=a(6285),_=a(31821),B=a(18561);function D(e){return(0,B.Z)("MuiSlider",e)}var X=(0,_.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),H=a(96266);var Y=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function q(e){return e}var W=(0,V.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,t["color".concat((0,O.Z)(a.color))],"medium"!==a.size&&t["size".concat((0,O.Z)(a.size))],a.marked&&t.marked,"vertical"===a.orientation&&t.vertical,"inverted"===a.track&&t.trackInverted,!1===a.track&&t.trackFalse]}})((function(e){var t,a=e.theme,n=e.ownerState;return(0,o.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(a.vars||a).palette[n.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===n.orientation&&(0,o.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===n.size&&{height:2},n.marked&&{marginBottom:20}),"vertical"===n.orientation&&(0,o.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===n.size&&{width:2},n.marked&&{marginRight:44}),(t={"@media print":{colorAdjust:"exact"}},(0,r.Z)(t,"&.".concat(X.disabled),{pointerEvents:"none",cursor:"default",color:(a.vars||a).palette.grey[400]}),(0,r.Z)(t,"&.".concat(X.dragging),(0,r.Z)({},"& .".concat(X.thumb,", & .").concat(X.track),{transition:"none"})),t))})),$=(0,V.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:function(e,t){return t.rail}})((function(e){var t=e.ownerState;return(0,o.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),G=(0,V.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme,a=e.ownerState,r="light"===t.palette.mode?(0,T.$n)(t.palette[a.color].main,.62):(0,T._j)(t.palette[a.color].main,.5);return(0,o.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===a.size&&{border:"none"},"horizontal"===a.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===a.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===a.track&&{display:"none"},"inverted"===a.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(a.color,"Track")]:r,borderColor:t.vars?t.vars.palette.Slider["".concat(a.color,"Track")]:r})})),J=(0,V.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:function(e,t){var a=e.ownerState;return[t.thumb,t["thumbColor".concat((0,O.Z)(a.color))],"medium"!==a.size&&t["thumbSize".concat((0,O.Z)(a.size))]]}})((function(e){var t,a=e.theme,n=e.ownerState;return(0,o.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:a.transitions.create(["box-shadow","left","bottom"],{duration:a.transitions.duration.shortest})},"small"===n.size&&{width:12,height:12},"horizontal"===n.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===n.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},(t={"&:before":(0,o.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(a.vars||a).shadows[2]},"small"===n.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},(0,r.Z)(t,"&:hover, &.".concat(X.focusVisible),{boxShadow:"0px 0px 0px 8px ".concat(a.vars?"rgba(".concat(a.vars.palette[n.color].mainChannel," / 0.16)"):(0,T.Fq)(a.palette[n.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}}),(0,r.Z)(t,"&.".concat(X.active),{boxShadow:"0px 0px 0px 14px ".concat(a.vars?"rgba(".concat(a.vars.palette[n.color].mainChannel," / 0.16)"):(0,T.Fq)(a.palette[n.color].main,.16))}),(0,r.Z)(t,"&.".concat(X.disabled),{"&:hover":{boxShadow:"none"}}),t))})),K=(0,V.ZP)((function(e){var t=e.children,a=e.className,r=e.value,n=function(e){var t=e.open;return{offset:(0,l.Z)(t&&X.valueLabelOpen),circle:X.valueLabelCircle,label:X.valueLabelLabel}}(e);return t?i.cloneElement(t,{className:(0,l.Z)(t.props.className)},(0,H.jsxs)(i.Fragment,{children:[t.props.children,(0,H.jsx)("span",{className:(0,l.Z)(n.offset,a),"aria-hidden":!0,children:(0,H.jsx)("span",{className:n.circle,children:(0,H.jsx)("span",{className:n.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:function(e,t){return t.valueLabel}})((function(e){var t,a=e.theme,n=e.ownerState;return(0,o.Z)((t={},(0,r.Z)(t,"&.".concat(X.valueLabelOpen),{transform:"".concat("vertical"===n.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")}),(0,r.Z)(t,"zIndex",1),(0,r.Z)(t,"whiteSpace","nowrap"),t),a.typography.body2,{fontWeight:500,transition:a.transitions.create(["transform"],{duration:a.transitions.duration.shortest}),transform:"".concat("vertical"===n.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(a.vars||a).palette.grey[600],borderRadius:2,color:(a.vars||a).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===n.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===n.orientation&&{right:"small"===n.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===n.size&&{fontSize:a.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),Q=(0,V.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:function(e){return(0,V.Dz)(e)&&"markActive"!==e},overridesResolver:function(e,t){var a=e.markActive;return[t.mark,a&&t.markActive]}})((function(e){var t=e.theme,a=e.ownerState,r=e.markActive;return(0,o.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===a.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===a.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),U=(0,V.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:function(e){return(0,V.Dz)(e)&&"markLabelActive"!==e},overridesResolver:function(e,t){return t.markLabel}})((function(e){var t=e.theme,a=e.ownerState,r=e.markLabelActive;return(0,o.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===a.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===a.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(t.vars||t).palette.text.primary})})),ee=function(e){return e.children},te=i.forwardRef((function(e,t){var a,r,d,v,m,p,h,f,b,g,x,Z,w,k,y,C,z,L,M,R,P,j,N,T,V=(0,I.Z)({props:e,name:"MuiSlider"}),_="rtl"===(0,E.Z)().direction,B=V["aria-label"],X=V["aria-valuetext"],te=V["aria-labelledby"],ae=V.component,re=void 0===ae?"span":ae,ne=V.components,oe=void 0===ne?{}:ne,ie=V.componentsProps,le=void 0===ie?{}:ie,ce=V.color,se=void 0===ce?"primary":ce,ue=V.classes,de=V.className,ve=V.disableSwap,me=void 0!==ve&&ve,pe=V.disabled,he=void 0!==pe&&pe,fe=V.getAriaLabel,be=V.getAriaValueText,ge=V.marks,xe=void 0!==ge&&ge,Ze=V.max,we=void 0===Ze?100:Ze,ke=V.min,ye=void 0===ke?0:ke,Se=V.orientation,Ce=void 0===Se?"horizontal":Se,ze=V.size,Le=void 0===ze?"medium":ze,Me=V.step,Re=void 0===Me?1:Me,Pe=V.scale,je=void 0===Pe?q:Pe,Ne=V.slotProps,Ae=V.slots,Te=V.track,Ie=void 0===Te?"normal":Te,Ve=V.valueLabelDisplay,Ee=void 0===Ve?"off":Ve,Fe=V.valueLabelFormat,Oe=void 0===Fe?q:Fe,_e=(0,n.Z)(V,Y),Be=(0,o.Z)({},V,{isRtl:_,max:we,min:ye,classes:ue,disabled:he,disableSwap:me,orientation:Ce,marks:xe,color:se,size:Le,step:Re,scale:je,track:Ie,valueLabelDisplay:Ee,valueLabelFormat:Oe}),De=A((0,o.Z)({},Be,{rootRef:t})),Xe=De.axisProps,He=De.getRootProps,Ye=De.getHiddenInputProps,qe=De.getThumbProps,We=De.open,$e=De.active,Ge=De.axis,Je=De.focusedThumbIndex,Ke=De.range,Qe=De.dragging,Ue=De.marks,et=De.values,tt=De.trackOffset,at=De.trackLeap,rt=De.getThumbStyle;Be.marked=Ue.length>0&&Ue.some((function(e){return e.label})),Be.dragging=Qe,Be.focusedThumbIndex=Je;var nt=function(e){var t=e.disabled,a=e.dragging,r=e.marked,n=e.orientation,o=e.track,i=e.classes,l=e.color,s=e.size,u={root:["root",t&&"disabled",a&&"dragging",r&&"marked","vertical"===n&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",l&&"color".concat((0,O.Z)(l)),s&&"size".concat((0,O.Z)(s))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",s&&"thumbSize".concat((0,O.Z)(s)),l&&"thumbColor".concat((0,O.Z)(l))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,c.Z)(u,D,i)}(Be),ot=null!=(a=null!=(r=null==Ae?void 0:Ae.root)?r:oe.Root)?a:W,it=null!=(d=null!=(v=null==Ae?void 0:Ae.rail)?v:oe.Rail)?d:$,lt=null!=(m=null!=(p=null==Ae?void 0:Ae.track)?p:oe.Track)?m:G,ct=null!=(h=null!=(f=null==Ae?void 0:Ae.thumb)?f:oe.Thumb)?h:J,st=null!=(b=null!=(g=null==Ae?void 0:Ae.valueLabel)?g:oe.ValueLabel)?b:K,ut=null!=(x=null!=(Z=null==Ae?void 0:Ae.mark)?Z:oe.Mark)?x:Q,dt=null!=(w=null!=(k=null==Ae?void 0:Ae.markLabel)?k:oe.MarkLabel)?w:U,vt=null!=(y=null!=(C=null==Ae?void 0:Ae.input)?C:oe.Input)?y:"input",mt=null!=(z=null==Ne?void 0:Ne.root)?z:le.root,pt=null!=(L=null==Ne?void 0:Ne.rail)?L:le.rail,ht=null!=(M=null==Ne?void 0:Ne.track)?M:le.track,ft=null!=(R=null==Ne?void 0:Ne.thumb)?R:le.thumb,bt=null!=(P=null==Ne?void 0:Ne.valueLabel)?P:le.valueLabel,gt=null!=(j=null==Ne?void 0:Ne.mark)?j:le.mark,xt=null!=(N=null==Ne?void 0:Ne.markLabel)?N:le.markLabel,Zt=null!=(T=null==Ne?void 0:Ne.input)?T:le.input,wt=(0,s.y)({elementType:ot,getSlotProps:He,externalSlotProps:mt,externalForwardedProps:_e,additionalProps:(0,o.Z)({},F(ot)&&{as:re}),ownerState:(0,o.Z)({},Be,null==mt?void 0:mt.ownerState),className:[nt.root,de]}),kt=(0,s.y)({elementType:it,externalSlotProps:pt,ownerState:Be,className:nt.rail}),yt=(0,s.y)({elementType:lt,externalSlotProps:ht,additionalProps:{style:(0,o.Z)({},Xe[Ge].offset(tt),Xe[Ge].leap(at))},ownerState:(0,o.Z)({},Be,null==ht?void 0:ht.ownerState),className:nt.track}),St=(0,s.y)({elementType:ct,getSlotProps:qe,externalSlotProps:ft,ownerState:(0,o.Z)({},Be,null==ft?void 0:ft.ownerState),className:nt.thumb}),Ct=(0,s.y)({elementType:st,externalSlotProps:bt,ownerState:(0,o.Z)({},Be,null==bt?void 0:bt.ownerState),className:nt.valueLabel}),zt=(0,s.y)({elementType:ut,externalSlotProps:gt,ownerState:Be,className:nt.mark}),Lt=(0,s.y)({elementType:dt,externalSlotProps:xt,ownerState:Be,className:nt.markLabel}),Mt=(0,s.y)({elementType:vt,getSlotProps:Ye,externalSlotProps:Zt,ownerState:Be});return(0,H.jsxs)(ot,(0,o.Z)({},wt,{children:[(0,H.jsx)(it,(0,o.Z)({},kt)),(0,H.jsx)(lt,(0,o.Z)({},yt)),Ue.filter((function(e){return e.value>=ye&&e.value<=we})).map((function(e,t){var a,r=S(e.value,ye,we),n=Xe[Ge].offset(r);return a=!1===Ie?-1!==et.indexOf(e.value):"normal"===Ie&&(Ke?e.value>=et[0]&&e.value<=et[et.length-1]:e.value<=et[0])||"inverted"===Ie&&(Ke?e.value<=et[0]||e.value>=et[et.length-1]:e.value>=et[0]),(0,H.jsxs)(i.Fragment,{children:[(0,H.jsx)(ut,(0,o.Z)({"data-index":t},zt,!(0,u.X)(ut)&&{markActive:a},{style:(0,o.Z)({},n,zt.style),className:(0,l.Z)(zt.className,a&&nt.markActive)})),null!=e.label?(0,H.jsx)(dt,(0,o.Z)({"aria-hidden":!0,"data-index":t},Lt,!(0,u.X)(dt)&&{markLabelActive:a},{style:(0,o.Z)({},n,Lt.style),className:(0,l.Z)(nt.markLabel,Lt.className,a&&nt.markLabelActive),children:e.label})):null]},t)})),et.map((function(e,t){var a=S(e,ye,we),r=Xe[Ge].offset(a),n="off"===Ee?ee:st;return(0,H.jsx)(n,(0,o.Z)({},!(0,u.X)(n)&&{valueLabelFormat:Oe,valueLabelDisplay:Ee,value:"function"===typeof Oe?Oe(je(e),t):Oe,index:t,open:We===t||$e===t||"on"===Ee,disabled:he},Ct,{children:(0,H.jsx)(ct,(0,o.Z)({"data-index":t},St,{className:(0,l.Z)(nt.thumb,St.className,$e===t&&nt.active,Je===t&&nt.focusVisible),style:(0,o.Z)({},r,rt(t),St.style),children:(0,H.jsx)(vt,(0,o.Z)({"data-index":t,"aria-label":fe?fe(t):B,"aria-valuenow":je(e),"aria-labelledby":te,"aria-valuetext":be?be(je(e),t):X,value:et[t]},Mt))}))}),t)}))]}))})),ae=te},36554:function(e,t,a){a.d(t,{Z:function(){return S}});var r=a(56666),n=a(31461),o=a(7896),i=a(5057),l=a(8271),c=a(91213),s=a(66685),u=a(6285),d=a(39273),v=a(42908),m=a(62773),p=a(31821),h=a(18561);function f(e){return(0,h.Z)("MuiSwitch",e)}var b=(0,p.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),g=a(96266),x=["className","color","edge","size","sx"],Z=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var a=e.ownerState;return[t.root,a.edge&&t["edge".concat((0,u.Z)(a.edge))],t["size".concat((0,u.Z)(a.size))]]}})((function(e){var t,a=e.ownerState;return(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===a.edge&&{marginLeft:-8},"end"===a.edge&&{marginRight:-8},"small"===a.size&&(t={width:40,height:24,padding:7},(0,r.Z)(t,"& .".concat(b.thumb),{width:16,height:16}),(0,r.Z)(t,"& .".concat(b.switchBase),(0,r.Z)({padding:4},"&.".concat(b.checked),{transform:"translateX(16px)"})),t))})),w=(0,m.ZP)(d.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var a=e.ownerState;return[t.switchBase,(0,r.Z)({},"& .".concat(b.input),t.input),"default"!==a.color&&t["color".concat((0,u.Z)(a.color))]]}})((function(e){var t,a=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:a.vars?a.vars.palette.Switch.defaultColor:"".concat("light"===a.palette.mode?a.palette.common.white:a.palette.grey[300]),transition:a.transitions.create(["left","transform"],{duration:a.transitions.duration.shortest})},(0,r.Z)(t,"&.".concat(b.checked),{transform:"translateX(20px)"}),(0,r.Z)(t,"&.".concat(b.disabled),{color:a.vars?a.vars.palette.Switch.defaultDisabledColor:"".concat("light"===a.palette.mode?a.palette.grey[100]:a.palette.grey[600])}),(0,r.Z)(t,"&.".concat(b.checked," + .").concat(b.track),{opacity:.5}),(0,r.Z)(t,"&.".concat(b.disabled," + .").concat(b.track),{opacity:a.vars?a.vars.opacity.switchTrackDisabled:"".concat("light"===a.palette.mode?.12:.2)}),(0,r.Z)(t,"& .".concat(b.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,a=e.theme,n=e.ownerState;return(0,o.Z)({"&:hover":{backgroundColor:a.vars?"rgba(".concat(a.vars.palette.action.activeChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(a.palette.action.active,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(t={},(0,r.Z)(t,"&.".concat(b.checked),(0,r.Z)({color:(a.vars||a).palette[n.color].main,"&:hover":{backgroundColor:a.vars?"rgba(".concat(a.vars.palette[n.color].mainChannel," / ").concat(a.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(a.palette[n.color].main,a.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(b.disabled),{color:a.vars?a.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===a.palette.mode?(0,s.$n)(a.palette[n.color].main,.62):(0,s._j)(a.palette[n.color].main,.55))})),(0,r.Z)(t,"&.".concat(b.checked," + .").concat(b.track),{backgroundColor:(a.vars||a).palette[n.color].main}),t))})),k=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),y=(0,m.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),S=i.forwardRef((function(e,t){var a=(0,v.Z)({props:e,name:"MuiSwitch"}),r=a.className,i=a.color,s=void 0===i?"primary":i,d=a.edge,m=void 0!==d&&d,p=a.size,h=void 0===p?"medium":p,b=a.sx,S=(0,n.Z)(a,x),C=(0,o.Z)({},a,{color:s,edge:m,size:h}),z=function(e){var t=e.classes,a=e.edge,r=e.size,n=e.color,i=e.checked,l=e.disabled,s={root:["root",a&&"edge".concat((0,u.Z)(a)),"size".concat((0,u.Z)(r))],switchBase:["switchBase","color".concat((0,u.Z)(n)),i&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,c.Z)(s,f,t);return(0,o.Z)({},t,d)}(C),L=(0,g.jsx)(y,{className:z.thumb,ownerState:C});return(0,g.jsxs)(Z,{className:(0,l.Z)(z.root,r),sx:b,ownerState:C,children:[(0,g.jsx)(w,(0,o.Z)({type:"checkbox",icon:L,checkedIcon:L,ref:t,ownerState:C},S,{classes:(0,o.Z)({},z,{root:z.switchBase})})),(0,g.jsx)(k,{className:z.track,ownerState:C})]})}))}}]);