@abtnode/blocklet-services 1.16.23-beta-035db744 → 1.16.23-beta-2229bcee
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.
- package/dist/assets/{Add-wAhT997v.js → Add-WGVQ3GRr.js} +1 -1
- package/dist/assets/{Avatar-FfLDTS1T.js → Avatar-YMtJdnI_.js} +1 -1
- package/dist/assets/Box-19RxwaCl.js +1 -0
- package/dist/assets/Box-5JP3oQ3C.js +1 -0
- package/dist/assets/{Button-RbtuWDeR.js → Button-Oyoqwxg3.js} +1 -1
- package/dist/assets/{ButtonBase-TSoPFIBe.js → ButtonBase-5Z1AWt5e.js} +1 -1
- package/dist/assets/{ButtonBase-WWn27IPV.js → ButtonBase-xjweeUOl.js} +1 -1
- package/dist/assets/{CardContent-JgOQSc2A.js → CardContent-yeDfX9ln.js} +1 -1
- package/dist/assets/{CheckCircle-lrVCqf2n.js → CheckCircle-8IV-X6By.js} +1 -1
- package/dist/assets/{Checkbox-hUFDjNSc.js → Checkbox-1cXdLmYE.js} +1 -1
- package/dist/assets/{ChevronLeft-xvl64PGZ.js → ChevronLeft-S0fikUJz.js} +1 -1
- package/dist/assets/{ChevronRight-wrcW9iQD.js → ChevronRight-zPOQgoXz.js} +1 -1
- package/dist/assets/{Chip-7KtYmZN9.js → Chip-YPzB9l-v.js} +1 -1
- package/dist/assets/{CircularProgress-Q4pselFx.js → CircularProgress-vLV_mYDK.js} +1 -1
- package/dist/assets/{Close-SFAKpp5f.js → Close-LIjcg2Ps.js} +1 -1
- package/dist/assets/{Collapse-B9GV1Oit.js → Collapse-MqqvdojT.js} +1 -1
- package/dist/assets/{DeleteOutline-bqcRHaFk.js → DeleteOutline-7B3nYSpV.js} +1 -1
- package/dist/assets/{Done-Rmbh35pz.js → Done-zcM7xD3g.js} +1 -1
- package/dist/assets/{Download-ubfkvcSA.js → Download-RZ4Xe2KO.js} +1 -1
- package/dist/assets/{Edit-13YG9S_C.js → Edit-wDeuP8y3.js} +1 -1
- package/dist/assets/{EditIcon-BFyZg_Io.js → EditIcon-OMijC2ii.js} +1 -1
- package/dist/assets/{ExpandMore-KT3Riu-V.js → ExpandMore-IoFpVjxd.js} +1 -1
- package/dist/assets/{ExpandMore-BaF2rZER.js → ExpandMore-vPh5i2pY.js} +1 -1
- package/dist/assets/{FilterList-A3lP9lXN.js → FilterList-1CdZTXpd.js} +1 -1
- package/dist/assets/{Google-cGngGIlT.js → Google-0LXkMlJf.js} +1 -1
- package/dist/assets/{Grid-lKrAKrf2.js → Grid-69U8MTSa.js} +1 -1
- package/dist/assets/{Grid-Ja7ckZan.js → Grid-NvOzc65v.js} +1 -1
- package/dist/assets/{Hidden-epK0WlDg.js → Hidden-tYBefado.js} +1 -1
- package/dist/assets/{IconButton-2kDl8ha3.js → IconButton-4mdVVQZ8.js} +1 -1
- package/dist/assets/{IconButton-Bw_740x8.js → IconButton-Stp3xBL-.js} +1 -1
- package/dist/assets/{InfoOutlined-ZQ0Ss7Qq.js → InfoOutlined-DPvsHq9m.js} +1 -1
- package/dist/assets/{InputAdornment-JJseDebg.js → InputAdornment-Mjrquz9X.js} +1 -1
- package/dist/assets/{InputAdornment-gVGmth-c.js → InputAdornment-Qv284Vfe.js} +1 -1
- package/dist/assets/{InputLabel-E4gynfPT.js → InputLabel-uyVS695v.js} +1 -1
- package/dist/assets/{Launch-0UyPzd-q.js → Launch-w3Wye567.js} +1 -1
- package/dist/assets/{Link-qhTRVvm5.js → Link-Hw9Ca0hp.js} +1 -1
- package/dist/assets/{Link-QmOupva0.js → Link-UFDa3yGB.js} +1 -1
- package/dist/assets/{ListItem-cxnU28E5.js → ListItem-xXgvl-_v.js} +1 -1
- package/dist/assets/{ListItemText-3DGsMIsc.js → ListItemText-HBcpjb-y.js} +1 -1
- package/dist/assets/{LockIcon-ScNYb_CL.js → LockIcon-aS_vBnoW.js} +1 -1
- package/dist/assets/{Loop-jlraOZ0y.js → Loop-rUutauWI.js} +1 -1
- package/dist/assets/{OpenInNew-QAO3RVjc.js → OpenInNew-JP2h5vEP.js} +1 -1
- package/dist/assets/{Pagination-cc9vbiQH.js → Pagination-ELeIARUc.js} +1 -1
- package/dist/assets/{Paper-kKqGsJ2_.js → Paper-CT8-Tf75.js} +1 -1
- package/dist/assets/{RevokeIcon-qytdNGtr.js → RevokeIcon-ZQFK5fXr.js} +1 -1
- package/dist/assets/{Search-OMtIqcCB.js → Search-7VfT-NID.js} +1 -1
- package/dist/assets/{Search-NO0Vj1Jx.js → Search-YNaL_Cal.js} +1 -1
- package/dist/assets/{Select-CLqvWhqc.js → Select-tZktthO0.js} +1 -1
- package/dist/assets/{ServerLogo-S3ffHW5K.js → ServerLogo-DsjZVfJP.js} +1 -1
- package/dist/assets/{Skeleton-kWPBv3hN.js → Skeleton-xucwHuGs.js} +1 -1
- package/dist/assets/{StepLabel-xaoyvbWL.js → StepLabel-5BqddTtn.js} +1 -1
- package/dist/assets/{TextField-w62Tj_bv.js → TextField-MHpA2nij.js} +1 -1
- package/dist/assets/{TextField-yFSUKkfQ.js → TextField-MscCjrFR.js} +1 -1
- package/dist/assets/{Toolbar-p2Rw9VP_.js → Toolbar-blleP0fp.js} +1 -1
- package/dist/assets/{Tooltip-a9pLijAX.js → Tooltip-TJebbf08.js} +1 -1
- package/dist/assets/{Typography-tvdIv5ZI.js → Typography-VrdbhbRS.js} +1 -1
- package/dist/assets/{Typography-4MXIXIgI.js → Typography-gzW9rNGq.js} +1 -1
- package/dist/assets/{access-control-pMbwueld.js → access-control-QO19LJxv.js} +1 -1
- package/dist/assets/{actions-d6S2vs_m.js → actions-wnWrwpfr.js} +1 -1
- package/dist/assets/{add-component-core-Ixi2anfP.js → add-component-core-UJUpRIi2.js} +51 -51
- package/dist/assets/add-resource-7aFOKZXw.js +1 -0
- package/dist/assets/{addon-jQ_lW5VA.js → addon-64KY17R3.js} +1 -1
- package/dist/assets/{analytics-FnaWc0o9.js → analytics-jAN7GSCb.js} +1 -1
- package/dist/assets/api-Ju9OpSYb.js +1 -0
- package/dist/assets/{audit-logs-dvdWU6So.js → audit-logs-VNHThEQI.js} +1 -1
- package/dist/assets/{button-GVcV-kDi.js → button-rmyqwOhO.js} +1 -1
- package/dist/assets/{click-to-copy-0upUV1g8.js → click-to-copy-yc98TA-Y.js} +1 -1
- package/dist/assets/{complete-jMtkQCKD.js → complete-Rx2E-AIR.js} +1 -1
- package/dist/assets/{component-CWQe0NKu.js → component-lOj5KJ2H.js} +1 -1
- package/dist/assets/{config-1ig6XAhh.js → config-Qydx8uJj.js} +1 -1
- package/dist/assets/{config-ne8Y3LYs.js → config-edsFrKDH.js} +1 -1
- package/dist/assets/{config-navigation-0_7bDd95.js → config-navigation-VjGxKtAq.js} +1 -1
- package/dist/assets/{config-space-KB8DhRe0.js → config-space-1IVZiyVu.js} +1 -1
- package/dist/assets/{confirm-Tyae6_Zc.js → confirm-X32y0OJ8.js} +1 -1
- package/dist/assets/{connect-1QIaxGG0.js → connect-__18smU1.js} +1 -1
- package/dist/assets/{connect-5SX-6mUN.js → connect-khzazIhm.js} +1 -1
- package/dist/assets/{connect-to-wW4QpEKP.js → connect-to-lZyqUXok.js} +1 -1
- package/dist/assets/{content-layout-3EgufeDh.js → content-layout-7Xs3RZeR.js} +1 -1
- package/dist/assets/{createStack-jceJWRju.js → createStack-Q1bse37y.js} +1 -1
- package/dist/assets/{createSvgIcon-TtyKAxsD.js → createSvgIcon-As8N9OsD.js} +1 -1
- package/dist/assets/{createSvgIcon-tFt1ryL0.js → createSvgIcon-QnMMaQef.js} +1 -1
- package/dist/assets/{dashboard-XUsTUl6m.js → dashboard-hjUAT53t.js} +3 -3
- package/dist/assets/{did-address-3FoRRVKx.js → did-address-nnmMTsE0.js} +1 -1
- package/dist/assets/{domain-Ou4FCB7Q.js → domain-ZhlFXZvh.js} +1 -1
- package/dist/assets/{domain-list-uKO7uNWW.js → domain-list-xjV9jYyD.js} +1 -1
- package/dist/assets/{exchange-passport-X9HNXxpJ.js → exchange-passport-KGyEbK3I.js} +1 -1
- package/dist/assets/{fallback-79zmcfbz.js → fallback-IEuA_cby.js} +1 -1
- package/dist/assets/{formControlState-3f1dynOx.js → formControlState-RTdrWynp.js} +1 -1
- package/dist/assets/{fuel-NHW2abk6.js → fuel-FgAgOiF7.js} +1 -1
- package/dist/assets/{fullpage-gUYOsR-B.js → fullpage-TV1AEuff.js} +1 -1
- package/dist/assets/home-6oLbXW1Q.js +1 -0
- package/dist/assets/{iframe-f6hNs76Z.js → iframe-DRT4l2HB.js} +1 -1
- package/dist/assets/{index-eshZ-tWA.js → index-0L6EFjA-.js} +1 -1
- package/dist/assets/{index-UPj3aFBg.js → index-1kJhAn58.js} +1 -1
- package/dist/assets/{index-yQZH21L_.js → index-2lTWjgGl.js} +1 -1
- package/dist/assets/{index-ja_Ipmzw.js → index-5z2yj7B6.js} +1 -1
- package/dist/assets/{index-Dgm_SdZp.js → index-7YCI1diH.js} +1 -1
- package/dist/assets/{index-k2zXVcXF.js → index-8yqf8NtP.js} +1 -1
- package/dist/assets/{index-575yCkwl.js → index-A0XP7jOV.js} +1 -1
- package/dist/assets/{index-qz_i-v1s.js → index-CUQzUKjp.js} +1 -1
- package/dist/assets/{index-jzY_5Mpt.js → index-ClDKkclJ.js} +1 -1
- package/dist/assets/{index-QooYxDDB.js → index-DKbVweR7.js} +3 -3
- package/dist/assets/{index-7R0o6am8.js → index-FvQORRgH.js} +1 -1
- package/dist/assets/{index-jhy8ISuP.js → index-G3IOBshf.js} +3 -3
- package/dist/assets/{index-eiTVXDI8.js → index-H-EdJCOS.js} +1 -1
- package/dist/assets/{index-dEtDHC5_.js → index-JEZqkZBH.js} +1 -1
- package/dist/assets/{index--CkleDlS.js → index-LjaUA433.js} +1 -1
- package/dist/assets/{index-ELElcEqG.js → index-OTxP0mo5.js} +1 -1
- package/dist/assets/{index-cC16saNb.js → index-UmYTEmfc.js} +1 -1
- package/dist/assets/{index-xk-W3y0O.js → index-a20c3idj.js} +1 -1
- package/dist/assets/{index-Wd4YrnM9.js → index-b7P8dXaW.js} +57 -57
- package/dist/assets/{index-oibkouzz.js → index-dHXZG-ng.js} +1 -1
- package/dist/assets/{index-ZibHxXIb.js → index-fp_GCKZG.js} +1 -1
- package/dist/assets/{index-EuNhIMk-.js → index-hURffp3u.js} +1 -1
- package/dist/assets/{index-Z2TAkC1I.js → index-iz89eKW_.js} +1 -1
- package/dist/assets/{index-dO0N2FSj.js → index-mR4p-IgT.js} +1 -1
- package/dist/assets/{index-gaKMaa0N.js → index-oAG2POvk.js} +1 -1
- package/dist/assets/{index-WjkFYOnL.js → index-s9QIt3ko.js} +1 -1
- package/dist/assets/{index-2x3nG07a.js → index-t6K4UMWm.js} +3 -3
- package/dist/assets/{index-ac-7VxTm.js → index-wbQ-ZxVz.js} +1 -1
- package/dist/assets/{index-C3Uo8DGF.js → index-y7MSz_DX.js} +1 -1
- package/dist/assets/{index.es-pb4HlLo5.js → index.es-l5uagbAO.js} +1 -1
- package/dist/assets/{index.esm-MVO-Yc9O.js → index.esm-vxs0Vp_r.js} +1 -1
- package/dist/assets/{invite-7yOdsQPj.js → invite-GtClRUaU.js} +1 -1
- package/dist/assets/{issue-passport-mz5RdvLm.js → issue-passport-KoPvY9Kk.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-RZD2YHN-.js → jss-plugin-props-sort.esm-_8ajCc8G.js} +1 -1
- package/dist/assets/{launch-result-message-dnUrrccd.js → launch-result-message-fUnGqO_Z.js} +1 -1
- package/dist/assets/{layout-IXZgeuoW.js → layout-_JN8FvY3.js} +1 -1
- package/dist/assets/{list-header-T8PLjATD.js → list-header-TzeTzN0P.js} +1 -1
- package/dist/assets/{listItemButtonClasses-ej_0Wd0u.js → listItemButtonClasses-dVmEAM-y.js} +1 -1
- package/dist/assets/localization-0_Q3Njmy.js +1 -0
- package/dist/assets/{log-So71tnEv.js → log-ncZ4SWpA.js} +1 -1
- package/dist/assets/{login-z1wY6qap.js → login-NuAi2Syo.js} +1 -1
- package/dist/assets/{logo-uploader-3ZuH123a.js → logo-uploader-Oo_gyW5D.js} +3 -3
- package/dist/assets/{lost-passport-R6oQSaxt.js → lost-passport-c0AB43lK.js} +3 -3
- package/dist/assets/{lottie-RksaOdGU.js → lottie-RDmkFf84.js} +1 -1
- package/dist/assets/{notifications-4fCG9FZ_.js → notifications-N7Zish1m.js} +1 -1
- package/dist/assets/{overview-B1K4ptrI.js → overview-IaJ_cbdi.js} +1 -1
- package/dist/assets/{page-header-2zyJkZ9E.js → page-header-xhgLZB05.js} +1 -1
- package/dist/assets/{permission-DycDqWdA.js → permission-Cm7HAliG.js} +1 -1
- package/dist/assets/{preferences-k5XbYYxZ.js → preferences-uIse65rz.js} +1 -1
- package/dist/assets/publish-resource-zdjnf6_1.js +1 -0
- package/dist/assets/{react-5TzuQvhn.js → react-o04d-cyu.js} +3 -3
- package/dist/assets/{selector-8Gj_YDKP.js → selector-w-1YjotN.js} +1 -1
- package/dist/assets/session-m6Wr3myh.js +1 -0
- package/dist/assets/{setup-y6CbGPfx.js → setup-Uv9GFsZo.js} +3 -3
- package/dist/assets/{slicedToArray-8mFdVgnF.js → slicedToArray-GzH9QIuR.js} +1 -1
- package/dist/assets/{spaces-jG6buFhb.js → spaces-WiAi-IsC.js} +1 -1
- package/dist/assets/{start-sUJoEx0p.js → start-mwHJkaqh.js} +1 -1
- package/dist/assets/{step-actions-igJpcln5.js → step-actions-tzewrsBu.js} +1 -1
- package/dist/assets/{studio-nX-Lvt-n.js → studio-p1SDntTP.js} +1 -1
- package/dist/assets/{styled-QR9SQDeC.js → styled-PB3HdPJn.js} +1 -1
- package/dist/assets/{switch-control-CzeK8njp.js → switch-control-dwDYbRCs.js} +1 -1
- package/dist/assets/{toUpper-3Gzsyh0C.js → toUpper-vVgUYjsF.js} +1 -1
- package/dist/assets/{transfer-9hxkFsSj.js → transfer-hEPB6naM.js} +1 -1
- package/dist/assets/{uniqBy-p8TICBgq.js → uniqBy-MyT7qhfv.js} +1 -1
- package/dist/assets/{unsubscribe-9M-VvMEf.js → unsubscribe-I1lmv_D0.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-3p2Dd823.js → use-blocklet-info-for-connect-did-spaces-dreUs9Sq.js} +1 -1
- package/dist/assets/{useAsync-bLl3m9OW.js → useAsync-rY0Vnqtc.js} +1 -1
- package/dist/assets/{useMediaQuery-HjFmqP7e.js → useMediaQuery-_-fVP1yd.js} +1 -1
- package/dist/assets/{useSetState-8hL6FUWi.js → useSetState-XoAUn8MB.js} +1 -1
- package/dist/assets/{useSlotProps-XvH7yjDf.js → useSlotProps-tC6PRPgK.js} +1 -1
- package/dist/assets/useTheme-qZqW0dW7.js +1 -0
- package/dist/assets/{user-center-GbgTVIf_.js → user-center-HgiCB6xs.js} +1 -1
- package/dist/assets/{util-dDJEMWX7.js → util-MPIIDw4m.js} +1 -1
- package/dist/assets/{wrap-locale-DMEY67bd.js → wrap-locale-D0W5J_eH.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +18 -18
- package/dist/assets/Box-lZ5spsQH.js +0 -1
- package/dist/assets/Box-xVyhqbFH.js +0 -1
- package/dist/assets/add-resource-ul54uC2R.js +0 -1
- package/dist/assets/api-2KA7QvaK.js +0 -1
- package/dist/assets/home-82LFYu2G.js +0 -1
- package/dist/assets/localization-UG7NGJKC.js +0 -1
- package/dist/assets/publish-resource-1Zx2Swpb.js +0 -1
- package/dist/assets/session-VA6PMO42.js +0 -1
- package/dist/assets/useTheme-FGGdIoCP.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{aM as G}from"./index-Wd4YrnM9.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var M={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
|
|
1
|
+
import{aM as G}from"./index-b7P8dXaW.js";class w{constructor(e,t,o){this.property=e,this.normal=t,o&&(this.space=o)}}w.prototype.property={};w.prototype.normal={};w.prototype.space=null;function B(l,e){const t={},o={};let c=-1;for(;++c<l.length;)Object.assign(t,l[c].property),Object.assign(o,l[c].normal);return new w(t,o,e)}function L(l){return l.toLowerCase()}class h{constructor(e,t){this.property=e,this.attribute=t}}h.prototype.space=null;h.prototype.boolean=!1;h.prototype.booleanish=!1;h.prototype.overloadedBoolean=!1;h.prototype.number=!1;h.prototype.commaSeparated=!1;h.prototype.spaceSeparated=!1;h.prototype.commaOrSpaceSeparated=!1;h.prototype.mustUseProperty=!1;h.prototype.defined=!1;let $=0;const r=k(),p=k(),H=k(),n=k(),u=k(),x=k(),g=k();function k(){return 2**++$}const P=Object.freeze(Object.defineProperty({__proto__:null,boolean:r,booleanish:p,commaOrSpaceSeparated:g,commaSeparated:x,number:n,overloadedBoolean:H,spaceSeparated:u},Symbol.toStringTag,{value:"Module"})),C=Object.keys(P);class E extends h{constructor(e,t,o,c){let s=-1;if(super(e,t),R(this,"space",c),typeof o=="number")for(;++s<C.length;){const d=C[s];R(this,C[s],(o&P[d])===P[d])}}}E.prototype.defined=!0;function R(l,e,t){t&&(l[e]=t)}const Z={}.hasOwnProperty;function S(l){const e={},t={};let o;for(o in l.properties)if(Z.call(l.properties,o)){const c=l.properties[o],s=new E(o,l.transform(l.attributes||{},o),c,l.space);l.mustUseProperty&&l.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),e[o]=s,t[L(o)]=o,t[L(s.attribute)]=o}return new w(e,t,l.space)}const F=S({space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),j=S({space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function N(l,e){return e in l?l[e]:e}function X(l,e){return N(l,e.toLowerCase())}const _=S({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:X,properties:{xmlns:null,xmlnsXLink:null}}),V=S({transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:p,ariaAutoComplete:null,ariaBusy:p,ariaChecked:p,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:p,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:p,ariaFlowTo:u,ariaGrabbed:p,ariaHasPopup:null,ariaHidden:p,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:n,ariaLive:null,ariaModal:p,ariaMultiLine:p,ariaMultiSelectable:p,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:p,ariaReadOnly:p,ariaRelevant:null,ariaRequired:p,ariaRoleDescription:u,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:p,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}}),J=S({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:x,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:u,autoFocus:r,autoPlay:r,capture:r,charSet:null,checked:r,cite:null,className:u,cols:n,colSpan:null,content:null,contentEditable:p,controls:r,controlsList:u,coords:n|x,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:H,draggable:p,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:u,height:n,hidden:r,high:n,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:u,itemRef:u,itemScope:r,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:n,pattern:null,ping:u,placeholder:null,playsInline:r,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:u,required:r,reversed:r,rows:n,rowSpan:n,sandbox:u,scope:null,scoped:r,seamless:r,selected:r,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:p,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:p,width:n,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:p,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:n,security:null,unselectable:null}}),Q=S({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:N,properties:{about:g,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:x,g2:x,glyphName:x,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nn=/^data[-\w.:]+$/i,T=/-[a-z]/g,ln=/[A-Z]/g;function kn(l,e){const t=L(e);let o=e,c=h;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&nn.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(T,on);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!T.test(s)){let d=s.replace(ln,en);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}c=E}return new c(o,e)}function en(l){return"-"+l.toLowerCase()}function on(l){return l.charAt(1).toUpperCase()}const xn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Sn=B([j,F,_,V,J],"html"),wn=B([j,F,_,V,Q],"svg");function bn(l){const e=String(l||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Cn(l){return l.join(" ").trim()}function Ln(l){const e=[],t=String(l||"");let o=t.indexOf(","),c=0,s=!1;for(;!s;){o===-1&&(o=t.length,s=!0);const d=t.slice(c,o).trim();(d||!s)&&e.push(d),c=o+1,o=t.indexOf(",",c)}return e}function Pn(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var M={exports:{}},A=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,tn=/\n/g,rn=/^\s*/,an=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,un=/^:\s*/,sn=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,cn=/^[;\s]*/,pn=/^\s+|\s+$/g,dn=`
|
|
2
2
|
`,I="/",U="*",y="",gn="comment",hn="declaration",mn=function(l,e){if(typeof l!="string")throw new TypeError("First argument must be a string");if(!l)return[];e=e||{};var t=1,o=1;function c(i){var a=i.match(tn);a&&(t+=a.length);var m=i.lastIndexOf(dn);o=~m?i.length-m:o+i.length}function s(){var i={line:t,column:o};return function(a){return a.position=new d(i),b(),a}}function d(i){this.start=i,this.end={line:t,column:o},this.source=e.source}d.prototype.content=l;function v(i){var a=new Error(e.source+":"+t+":"+o+": "+i);if(a.reason=i,a.filename=e.source,a.line=t,a.column=o,a.source=l,!e.silent)throw a}function f(i){var a=i.exec(l);if(a){var m=a[0];return c(m),l=l.slice(m.length),a}}function b(){f(rn)}function O(i){var a;for(i=i||[];a=D();)a!==!1&&i.push(a);return i}function D(){var i=s();if(!(I!=l.charAt(0)||U!=l.charAt(1))){for(var a=2;y!=l.charAt(a)&&(U!=l.charAt(a)||I!=l.charAt(a+1));)++a;if(a+=2,y===l.charAt(a-1))return v("End of comment missing");var m=l.slice(2,a-2);return o+=2,c(m),l=l.slice(a),o+=2,i({type:gn,comment:m})}}function K(){var i=s(),a=f(an);if(a){if(D(),!f(un))return v("property missing ':'");var m=f(sn),q=i({type:hn,property:z(a[0].replace(A,y)),value:m?z(m[0].replace(A,y)):y});return f(cn),q}}function Y(){var i=[];O(i);for(var a;a=K();)a!==!1&&(i.push(a),O(i));return i}return b(),Y()};function z(l){return l?l.replace(pn,y):y}var fn=mn;function W(l,e){var t=null;if(!l||typeof l!="string")return t;for(var o,c=fn(l),s=typeof e=="function",d,v,f=0,b=c.length;f<b;f++)o=c[f],d=o.property,v=o.value,s?e(d,v,o):v&&(t||(t={}),t[d]=v);return t}M.exports=W;M.exports.default=W;var vn=M.exports;const En=G(vn),Mn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function On(l){const e=l&&typeof l=="object"&&l.type==="text"?l.value||"":l;return typeof e=="string"&&e.replace(/[ \t\n\f\r]/g,"")===""}export{En as S,Pn as a,Cn as b,xn as c,On as d,Ln as e,kn as f,Sn as h,L as n,bn as p,wn as s,Mn as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as I,a as V,U as N,_ as p,d as U,r as m,W as _,f as A,j as n,e5 as F,e6 as H,h as q,c as a,i as D,bG as E,c8 as k,bq as J,c1 as K,c7 as Q,P as u,by as X,c9 as M,c0 as Y}from"./index-
|
|
1
|
+
import{g as I,a as V,U as N,_ as p,d as U,r as m,W as _,f as A,j as n,e5 as F,e6 as H,h as q,c as a,i as D,bG as E,c8 as k,bq as J,c1 as K,c7 as Q,P as u,by as X,c9 as M,c0 as Y}from"./index-b7P8dXaW.js";import{d as Z}from"./ExpandMore-IoFpVjxd.js";import{g as S}from"./Chip-YPzB9l-v.js";function w(t){return V("MuiButtonGroup",t)}const r=I("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),oo=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],to=(t,o)=>{const{ownerState:i}=t;return[{[`& .${r.grouped}`]:o.grouped},{[`& .${r.grouped}`]:o[`grouped${a(i.orientation)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}${a(i.orientation)}`]},{[`& .${r.grouped}`]:o[`grouped${a(i.variant)}${a(i.color)}`]},{[`& .${r.firstButton}`]:o.firstButton},{[`& .${r.lastButton}`]:o.lastButton},{[`& .${r.middleButton}`]:o.middleButton},o.root,o[i.variant],i.disableElevation===!0&&o.disableElevation,i.fullWidth&&o.fullWidth,i.orientation==="vertical"&&o.vertical]},io=t=>{const{classes:o,color:i,disabled:l,disableElevation:g,fullWidth:B,orientation:d,variant:s}=t,v={root:["root",s,d==="vertical"&&"vertical",B&&"fullWidth",g&&"disableElevation"],grouped:["grouped",`grouped${a(d)}`,`grouped${a(s)}`,`grouped${a(s)}${a(d)}`,`grouped${a(s)}${a(i)}`,l&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return D(v,w,o)},ro=N("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:to})(({theme:t,ownerState:o})=>p({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},o.variant==="contained"&&{boxShadow:(t.vars||t).shadows[2]},o.disableElevation&&{boxShadow:"none"},o.fullWidth&&{width:"100%"},o.orientation==="vertical"&&{flexDirection:"column"},{[`& .${r.grouped}`]:p({minWidth:40,"&:hover":p({},o.variant==="contained"&&{boxShadow:"none"})},o.variant==="contained"&&{boxShadow:"none"}),[`& .${r.firstButton},& .${r.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopRightRadius:0,borderBottomRightRadius:0},o.orientation==="vertical"&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},o.variant==="text"&&o.orientation==="horizontal"&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.orientation==="vertical"&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${r.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="text"&&o.color!=="inherit"&&{borderColor:t.vars?`rgba(${t.vars.palette[o.color].mainChannel} / 0.5)`:U(t.palette[o.color].main,.5)},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"transparent"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"transparent"},o.variant==="contained"&&o.orientation==="horizontal"&&{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${r.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.orientation==="vertical"&&{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${r.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}},o.variant==="contained"&&o.color!=="inherit"&&{borderColor:(t.vars||t).palette[o.color].dark},{"&:hover":p({},o.variant==="outlined"&&o.orientation==="horizontal"&&{borderRightColor:"currentColor"},o.variant==="outlined"&&o.orientation==="vertical"&&{borderBottomColor:"currentColor"})}),[`& .${r.lastButton},& .${r.middleButton}`]:p({},o.orientation==="horizontal"&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},o.orientation==="vertical"&&{borderTopRightRadius:0,borderTopLeftRadius:0},o.variant==="outlined"&&o.orientation==="horizontal"&&{marginLeft:-1},o.variant==="outlined"&&o.orientation==="vertical"&&{marginTop:-1})})),no=m.forwardRef(function(o,i){const l=_({props:o,name:"MuiButtonGroup"}),{children:g,className:B,color:d="primary",component:s="div",disabled:v=!1,disableElevation:h=!1,disableFocusRipple:b=!1,disableRipple:c=!1,fullWidth:x=!1,orientation:P="horizontal",size:$="medium",variant:C="outlined"}=l,e=A(l,oo),y=p({},l,{color:d,component:s,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,orientation:P,size:$,variant:C}),f=io(y),L=m.useMemo(()=>({className:f.grouped,color:d,disabled:v,disableElevation:h,disableFocusRipple:b,disableRipple:c,fullWidth:x,size:$,variant:C}),[d,v,h,b,c,x,$,C,f.grouped]),T=S(g),W=T.length,O=z=>{const R=z===0,G=z===W-1;return R&&G?"":R?f.firstButton:G?f.lastButton:f.middleButton};return n.jsx(ro,p({as:s,role:"group",className:q(f.root,B),ref:i,ownerState:y},e,{children:n.jsx(F.Provider,{value:L,children:T.map((z,R)=>n.jsx(H.Provider,{value:O(R),children:z},R))})}))}),ao=no;function j(t){const{size:o,color:i,menu:l,children:g,variant:B,onClick:d,menuButtonProps:s,...v}=t,[h,b]=m.useState(!1),c=m.useRef(null),x=Array.isArray(l)?l.map((e,y)=>m.isValidElement(e)?e:m.createElement(E,{...e,key:y})):l,P=()=>{b(e=>!e)},$=e=>{c.current&&c.current.contains(e.target)||b(!1)},C=e=>{e.target.closest(".MuiMenuItem-root")&&b(!1)};return n.jsxs(n.Fragment,{children:[n.jsxs(eo,{variant:B,size:o,color:i,ref:c,...v,children:[typeof g=="function"?g():n.jsx(k,{onClick:d,color:i,children:g}),n.jsx(k,{onClick:P,color:i,...s,"aria-label":"more functions",children:n.jsx(Z,{})})]}),n.jsx(lo,{open:h,anchorEl:c.current,placement:"bottom-end",disablePortal:!1,children:n.jsx(J,{children:n.jsx(K,{onClickAway:$,children:n.jsx(Q,{onClick:C,children:x})})})})]})}j.propTypes={size:u.oneOf(["small","medium","large"]),color:u.oneOf(["primary","secondary","inherit"]),menu:u.oneOfType([u.node,u.array]),children:u.node,variant:u.oneOf(["outlined","contained"]),onClick:u.func,menuButtonProps:u.object};j.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:X,menuButtonProps:{}};j.Item=E;const eo=M(ao)`
|
|
2
2
|
> .MuiButtonBase-root:last-of-type {
|
|
3
3
|
min-width: 2em;
|
|
4
4
|
padding-left: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l,_ as v,ea as Qe,f as te,g as Oe,a as _e,r as x,h as me,i as Le,P as D,l as be,aW as xe,aX as ge,bo as ye,L as z,O as V,bv as ut,T as w,Q as G,o as pt,J as $t,bB as Dt,ab as F,m as fe,I as ue,Y as Me,bc as Bt,aQ as he,aR as ft,aV as At,d as Se,bu as Ot,bP as Ye,bD as _t,a4 as Lt,eb as Ie,ec as Mt,aB as Vt,ap as Ft,aq as Te}from"./index-
|
|
1
|
+
import{j as l,_ as v,ea as Qe,f as te,g as Oe,a as _e,r as x,h as me,i as Le,P as D,l as be,aW as xe,aX as ge,bo as ye,L as z,O as V,bv as ut,T as w,Q as G,o as pt,J as $t,bB as Dt,ab as F,m as fe,I as ue,Y as Me,bc as Bt,aQ as he,aR as ft,aV as At,d as Se,bu as Ot,bP as Ye,bD as _t,a4 as Lt,eb as Ie,ec as Mt,aB as Vt,ap as Ft,aq as Te}from"./index-b7P8dXaW.js";import{d as mt,_ as zt}from"./useSetState-XoAUn8MB.js";import{D as ht}from"./index-mR4p-IgT.js";import{T as bt}from"./index-8yqf8NtP.js";import{B as N}from"./Box-5JP3oQ3C.js";import{S as $e}from"./CircularProgress-vLV_mYDK.js";import{W as Wt}from"./did-address-nnmMTsE0.js";import{C as xt,M as Ut}from"./confirm-X32y0OJ8.js";import{B as gt,d as Kt}from"./ChevronRight-zPOQgoXz.js";import{B as Ht,I as ve}from"./IconButton-Stp3xBL-.js";import{_ as qt,F as Xt,C as Jt}from"./Checkbox-1cXdLmYE.js";import{u as Gt}from"./session-m6Wr3myh.js";import{s as K,u as Ve}from"./styled-PB3HdPJn.js";import{c as Qt}from"./createSvgIcon-As8N9OsD.js";import{T as _}from"./Typography-gzW9rNGq.js";import{a as Yt,b as Zt}from"./formControlState-RTdrWynp.js";import{M as J}from"./TextField-MscCjrFR.js";import{M as De}from"./InputAdornment-Qv284Vfe.js";import{d as Ze}from"./Download-RZ4Xe2KO.js";import{d as eo}from"./DeleteOutline-7B3nYSpV.js";import{T as to}from"./index-2lTWjgGl.js";import{M as oo,A as lo,f as Ee}from"./index-7YCI1diH.js";import{C as so}from"./click-to-copy-yc98TA-Y.js";import{c as yt}from"./index-LjaUA433.js";import{i as no}from"./index-A0XP7jOV.js";import{d as ro}from"./ExpandMore-vPh5i2pY.js";import{d as io}from"./OpenInNew-JP2h5vEP.js";import{C as kt}from"./Collapse-MqqvdojT.js";import"./api-Ju9OpSYb.js";import{A as ao}from"./Avatar-YMtJdnI_.js";import"./FilterList-1CdZTXpd.js";import"./Search-YNaL_Cal.js";import"./TextField-MHpA2nij.js";import"./createStack-Q1bse37y.js";import"./Grid-69U8MTSa.js";import"./Toolbar-blleP0fp.js";import"./index-5z2yj7B6.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Link-UFDa3yGB.js";import"./Select-tZktthO0.js";import"./InputLabel-uyVS695v.js";const co=Qt(l.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),uo=["slots","slotProps"],po=K(Ht)(({theme:e})=>v({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":v({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":v({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Qe(e.palette.grey[200],.12)}:{backgroundColor:Qe(e.palette.grey[600],.12)})})),fo=K(co)({width:24,height:16});function mo(e){const{slots:t={},slotProps:o={}}=e,s=te(e,uo),i=e;return l.jsx("li",{children:l.jsx(po,v({focusRipple:!0},s,{ownerState:i,children:l.jsx(fo,v({as:t.CollapsedIcon,ownerState:i},o.collapsedIcon))}))})}function ho(e){return _e("MuiBreadcrumbs",e)}const bo=Oe("MuiBreadcrumbs",["root","ol","li","separator"]),xo=bo,go=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],yo=e=>{const{classes:t}=e;return Le({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},ho,t)},ko=K(_,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${xo.li}`]:t.li},t.root]})({}),jo=K("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),No=K("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Co(e,t,o,s){return e.reduce((i,c,p)=>(p<e.length-1?i=i.concat(c,l.jsx(No,{"aria-hidden":!0,className:t,ownerState:s,children:o},`separator-${p}`)):i.push(c),i),[])}const So=x.forwardRef(function(t,o){const s=Ve({props:t,name:"MuiBreadcrumbs"}),{children:i,className:c,component:p="nav",slots:r={},slotProps:b={},expandText:u="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:f=1,maxItems:k=8,separator:d="/"}=s,n=te(s,go),[a,m]=x.useState(!1),g=v({},s,{component:p,expanded:a,expandText:u,itemsAfterCollapse:h,itemsBeforeCollapse:f,maxItems:k,separator:d}),j=yo(g),y=Yt({elementType:r.CollapsedIcon,externalSlotProps:b.collapsedIcon,ownerState:g}),S=x.useRef(null),E=R=>{const $=()=>{m(!0);const T=S.current.querySelector("a[href],button,[tabindex]");T&&T.focus()};return f+h>=R.length?R:[...R.slice(0,f),l.jsx(mo,{"aria-label":u,slots:{CollapsedIcon:r.CollapsedIcon},slotProps:{collapsedIcon:y},onClick:$},"ellipsis"),...R.slice(R.length-h,R.length)]},I=x.Children.toArray(i).filter(R=>x.isValidElement(R)).map((R,$)=>l.jsx("li",{className:j.li,children:R},`child-${$}`));return l.jsx(ko,v({ref:o,component:p,color:"text.secondary",className:me(j.root,c),ownerState:g},n,{children:l.jsx(jo,{className:j.ol,ref:S,ownerState:g,children:Co(a||k&&I.length<=k?I:E(I),j.separator,d,g)})}))}),Fe=So;function ke({size:e,...t}){return l.jsx(N,{display:"flex",mt:4,...t,children:l.jsx($e,{size:e})})}ke.propTypes={size:D.number};ke.defaultProps={size:24};function jt(){const{t:e,locale:t}=be(),{api:o}=xe(),[s,i]=x.useState(!0),{blocklet:c}=ge(),[p,r]=x.useState(null),{componentDid:b=""}=ye(),[u,h]=x.useState(null),f=()=>{o.getProjects({input:{did:c.meta.did,componentDid:b}}).then(a=>{const m=(a==null?void 0:a.projects)||[];i(!1),h(m)}).catch(a=>{i(!1),w.error(a.message)})},k=a=>{r(a)},d=()=>{i(!1);const a=p.id;o.deleteProject({input:{did:c.meta.did,projectId:a}}).then(()=>{i(!1),f(),w.success(e("common.removeSuccess")),r(null)}).catch(m=>{i(!1),w.error(m.message)})};if(x.useEffect(()=>{f()},[]),!u&&s)return l.jsx(ke,{});if(!u)return null;if(!u.length)return l.jsxs(N,{display:"flex",flexDirection:"column",alignItems:"center",pt:10,children:[l.jsx(N,{sx:{fontSize:20,fontWeight:"bold",mb:3},children:e("blocklet.publish.blockletEmptyTip")}),l.jsx(N,{sx:{fontSize:14,color:"text.secondary",mb:3},children:e("blocklet.publish.createBlockletTip")}),l.jsx(z,{to:"create",children:l.jsx(V,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})]});const n=[{label:"Blocklet",name:"blockletTitle",options:{customBodyRenderLite:a=>{const m=u[a];return l.jsx(z,{to:`${m.id}`,children:m.blockletTitle||"/"})}}},{label:"DID",name:"blockletDid",options:{customBodyRender:a=>l.jsx(Wt,{size:14,responsive:!0,did:a})}},{label:"Version",name:"blockletVersion",options:{customBodyRender:a=>a?l.jsx(bt,{type:"success",children:a}):""}},b?null:{label:e("common.scope"),name:"componentDid",options:{customBodyRender:a=>{const m=(c.children||[]).find(g=>g.meta.did===a);return m?l.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(gt,{size:14,blocklet:m,ancestors:[c]}),l.jsx(N,{ml:.5,sx:{ml:.5,color:"text.primary",fontSize:14},children:m.meta.title})]},a):""}}},{label:e("common.updatedAt"),name:"updatedAt",options:{customBodyRender:a=>l.jsx(ut,{value:Number(a),locale:t})}},{label:e("common.actions"),name:"actions",options:{customBodyRenderLite:a=>{const m=u[a];return l.jsx(N,{display:"flex",children:l.jsx(ve,{color:"error","aria-label":"delete",onClick:()=>k(m),children:l.jsx(mt,{sx:{fontSize:18}})})})}}}].filter(Boolean);return l.jsxs(To,{children:[l.jsx(N,{sx:{textAlign:"right"},children:l.jsx(z,{to:"create",children:l.jsx(V,{variant:"contained",children:e("blocklet.publish.createBlocklet")})})}),l.jsx(ht,{className:"main-table",locale:t,data:u,columns:n,options:{sort:!1,download:!1,filter:!1,print:!1,search:!1}}),p&&l.jsx(xt,{title:`${e("common.delete")} ${p.blockletTitle}`,description:e("blocklet.publish.deleteBlockletTip"),confirm:e("common.confirm"),onConfirm:d,onCancel:()=>r(null)})]})}jt.propTypes={};const To=G(N)`
|
|
2
2
|
.main-table > div:first-child {
|
|
3
3
|
display: none;
|
|
4
4
|
}
|
|
@@ -108,7 +108,7 @@ import{j as l,_ as v,ea as Qe,f as te,g as Oe,a as _e,r as x,h as me,i as Le,P a
|
|
|
108
108
|
background: #fff;
|
|
109
109
|
z-index: 10;
|
|
110
110
|
}
|
|
111
|
-
`,rt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],it=1024*1024*10;var dt;const we=(dt=window.env)==null?void 0:dt.serverEndpoint,at=x.lazy(()=>Lt(()=>import("./react-5TzuQvhn.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Uploader}))),Tl=(e,t,o)=>{const s=[];return e.blockletTitle||s.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Ie.valid(e.blockletVersion)||s.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):s.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===F.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||s.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||s.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),s.length?s:null},Il=({tabs:e,blocklet:t,ancestors:o=[]})=>{const s=t.meta.did;e.push({label:l.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(gt,{size:24,blocklet:t,ancestors:o}),l.jsx(N,{ml:"4px",className:"text",children:l.jsx(N,{children:t.meta.title})})]},s),value:s})},ct=e=>{const t=Mt(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return t.blockletScreenshots||(t.blockletScreenshots=[]),t};function Ge({...e}){var Ce,O,ee;const t=pt(),{projectId:o,releaseId:s,componentDid:i}=ye(),{t:c}=be(),{blocklet:p}=ge(),[r,b]=zt(null),[u,h]=x.useState({}),[f,k]=x.useState(!1),[d,n]=x.useState(!1),[a,m]=x.useState(null),{api:g}=xe(),j=x.useRef(null),y=x.useRef(null),[S,E]=x.useState(),[I,R]=x.useState(),$=s==="create"?"":s,T=s==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(C=>{var A;return(A=C.meta.resource)==null?void 0:A.exportApi}).filter(C=>!i||C.meta.did===i);H.forEach(C=>{Il({tabs:B,blocklet:C,t:c,ancestors:[p]})});const[je,Ne]=x.useState((Ce=B[0])==null?void 0:Ce.value),oe=(a==null?void 0:a.status)==="published",L=oe,le=({typeOnly:C}={})=>{g.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{k(!1);const P=A.project||{};if(C){E(P.type);return}P.blockletVersion?Ie.valid(P.blockletVersion)&&(P.blockletVersion=Ie.inc(P.blockletVersion,"patch")):P.blockletVersion="1.0.0",b(ct(P)),E(P.type)}).catch(A=>{k(!1),w.error(Ee(A))})},re=()=>{g.getRelease({input:{did:p.meta.did,projectId:o,releaseId:$}}).then(C=>{k(!1),b(ct(C==null?void 0:C.release)),m(C==null?void 0:C.release)}).catch(C=>{k(!1),w.error(Ee(C))})},q=x.useCallback(()=>{if(T==="edit"){if(!$){w.error("Empty release id");return}re(),le({typeOnly:!0})}T==="create"&&le()},[T,$]);x.useEffect(()=>{q()},[q]);const Q=C=>{const A=Tl(r,C,c);if(A){w.error(A.map(W=>W.message).join("; ")),h(A.reduce((W,U)=>({...W,[U.param]:U.message}),{}));return}const P={...r};if(P.blockletVersion=Ie.valid(P.blockletVersion),!P.blockletVersion){w.error("Invalid Blocklet Version"),h({blockletVersion:"Invalid Blocklet Version"});return}P.blockletTitle=(P.blockletTitle||"").trim(),P.blockletDescription=(P.blockletDescription||"").trim(),P.blockletIntroduction=(P.blockletIntroduction||"").trim(),P.note=(P.note||"").trim(),n(C),k(!0),g.createRelease({input:{...P,did:p.meta.did,projectId:o,releaseId:$,status:C}}).then(W=>{var U;if(n(!1),k(!1),C==="draft"?w.success(c("blocklet.publish.saveDraftSuccess")):w.success(c("blocklet.publish.createReleaseSuccess")),T==="create"){const wt=(U=W==null?void 0:W.release)==null?void 0:U.id;t(`../${o}/${wt}`,{replace:!0})}else re()}).catch(W=>{n(!1),k(!1);const U=Ee(W);w.error(U),/resource.*empty/.test(U)&&h({blockletResource:U})})};if(!r&&f)return l.jsx(ke,{});if(!r)return null;const ie=`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,se=`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=r!=null&&r.blockletLogo?`${ie}/${r.blockletLogo}`:`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Y=((r==null?void 0:r.blockletScreenshots)||[]).filter(Boolean).map(C=>`${se}/${C}`),M=H.find(C=>C.meta.did===je),ce=M?l.jsx(N,{children:l.jsx(Je,{error:u.blockletResource,app:p,component:M,projectId:o,release:{...a,id:$},onSave:C=>{C.length&&h({blockletResource:""})}})}):l.jsx(N,{display:"flex",mt:-3,children:l.jsx(_t,{children:c("common.empty")})}),de=C=>{Ne(C)};let Z=null;if(oe&&we){const C=fe(we,`/api/project/${p.meta.did}/${o}/${$}/release/blocklet.json`);if(S==="pack"){const A=new URL(we);A.pathname=fe(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",C),Z=l.jsx(V,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:c("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(V,{variant:"outlined",style:{marginRight:8},onClick:()=>R(C),children:c("common.install")}),l.jsx(oo,{fullWidth:!0,maxWidth:"sm",open:I,onClose:()=>R(""),children:l.jsxs(N,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(_,{variant:"h6",sx:{mb:2},children:c("blocklet.publish.installResourceTip")}),l.jsx(so,{children:I}),l.jsxs(_,{sx:{mt:2},children:[c("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:c("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(vl,{...e,children:[l.jsxs(N,{className:"sticky-header",children:[l.jsxs(Fe,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(z,{to:"../",children:c("common.publish")}),l.jsx(z,{to:`../${o}`,children:(r==null?void 0:r.blockletTitle)||"Blocklet"}),l.jsx(_,{color:"text.primary",children:T==="create"?c("common.create"):(r==null?void 0:r.blockletVersion)||c("common.edit")})]}),l.jsxs(N,{display:"flex",children:[!oe&&l.jsxs(l.Fragment,{children:[l.jsxs(V,{variant:"outlined",disabled:f||d,onClick:()=>Q(F.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[d===F.PROJECT.RELEASE_STATUS.draft&&l.jsx($e,{size:14,sx:{mr:.5}}),c("blocklet.publish.saveDraft")]}),l.jsxs(V,{variant:"contained",disabled:f||d,onClick:()=>Q(F.PROJECT.RELEASE_STATUS.published),children:[d===F.PROJECT.RELEASE_STATUS.published&&l.jsx($e,{size:14,sx:{mr:.5},color:"inherit"}),c("common.release")]})]}),oe&&l.jsxs(l.Fragment,{children:[Z,l.jsx(V,{variant:"contained",children:l.jsx("a",{href:fe(`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${$}/download/${(a.files||[])[0]}`),children:c("common.download")})})]})]})]}),l.jsxs(N,{children:[S==="pack"&&l.jsx(lo,{type:"info",style:{width:"100%"},children:c("blocklet.publish.packTip")}),l.jsx(N,{pt:3}),l.jsxs(N,{display:"flex",className:"section",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.productTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(J,{label:`Blocklet ${c("common.title")}`,placeholder:`Blocklet ${c("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:L},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:r.blockletTitle||"",onChange:C=>{h({blockletTitle:""}),b({blockletTitle:C.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(J,{label:`Blocklet ${c("common.description")}`,placeholder:`Blocklet ${c("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:L},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletDescription||"",onChange:C=>{h({blockletDescription:""}),b({blockletDescription:C.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(J,{label:`Blocklet ${c("common.introduction")}`,placeholder:`Blocklet ${c("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:L,endAdornment:l.jsxs(De,{position:"end",children:[((O=r==null?void 0:r.blockletIntroduction)==null?void 0:O.length)||0," / ",F.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:r.blockletIntroduction||"",onChange:C=>{h({blockletIntroduction:""}),b({blockletIntroduction:C.target.value.slice(0,F.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(N,{display:"flex",mt:3,className:"section",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.versionTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(J,{required:!0,label:`Blocklet ${c("common.version")}`,placeholder:`Blocklet ${c("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:L},autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletVersion,onChange:C=>{h({blockletVersion:""}),b({blockletVersion:C.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(J,{label:c("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:L,endAdornment:l.jsxs(De,{position:"end",children:[((ee=r==null?void 0:r.note)==null?void 0:ee.length)||0," / ",F.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:r.note,onChange:C=>{h({note:""}),b({note:C.target.value.slice(0,F.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(N,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.imgTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsxs(N,{display:"flex",children:[l.jsx(_,{variant:"subtitle1",sx:{mr:2},children:c("common.logo")}),l.jsx(N,{sx:{flex:1,cursor:L?"default":"pointer"},children:l.jsx(ao,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!L&&j.current.open()})})]}),l.jsxs(N,{display:"flex",mt:3,children:[l.jsx(_,{variant:"subtitle1",sx:{mr:2},children:c("common.screenshot")}),l.jsxs(N,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Y.map((C,A)=>l.jsxs(N,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:C}),!L&&l.jsx(ve,{className:"action",onClick:()=>{const P=[...r.blockletScreenshots];P.splice(A,1),b({blockletScreenshots:P})},children:l.jsx(eo,{})})]})),Y.length<5&&l.jsx(N,{sx:{width:200,height:140,background:"#eee",cursor:L?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!L&&y.current.open(),children:"+"})]})]})]}),l.jsx(at,{id:"uploader-logo",ref:j,popup:!0,onUploadFinish:C=>{b({blockletLogo:C.data.filename}),j.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:rt,maxFileSize:it,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(at,{id:"uploader-screenshot",ref:y,popup:!0,onUploadFinish:C=>{var P;const A=r.blockletScreenshots||[];A.push((P=C.data)==null?void 0:P.filename),b({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:se,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:rt,maxFileSize:it,maxNumberOfFiles:5-Y.length}}},"uploader-screenshot")]}),l.jsxs(N,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(N,{className:"left",children:l.jsx(_,{variant:"h3",children:c("blocklet.publish.resourceTitle")})}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:je,onChange:de,sx:{ml:-2,mt:-1.5}}),l.jsx(N,{children:ce})]})]})]})]})}Ge.propTypes={};Ge.defaultProps={};const vl=G.div`
|
|
111
|
+
`,rt=["image/*",".jpg",".jpeg",".png",".gif",".svg"],it=1024*1024*10;var dt;const we=(dt=window.env)==null?void 0:dt.serverEndpoint,at=x.lazy(()=>Lt(()=>import("./react-o04d-cyu.js").then(e=>e.r),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(e=>({default:e.Uploader}))),Tl=(e,t,o)=>{const s=[];return e.blockletTitle||s.push({param:"blockletTitle",message:o("blocklet.publish.errorTip.noTitle")}),e.blockletVersion?Ie.valid(e.blockletVersion)||s.push({param:"blockletVersion",message:"Invalid Blocklet Version"}):s.push({param:"blockletVersion",message:o("blocklet.publish.errorTip.noVersion")}),t===F.PROJECT.RELEASE_STATUS.published&&(e.blockletDescription||s.push({param:"blockletDescription",message:o("blocklet.publish.errorTip.noDescription")}),e.note||s.push({param:"note",message:o("blocklet.publish.errorTip.noNote")})),s.length?s:null},Il=({tabs:e,blocklet:t,ancestors:o=[]})=>{const s=t.meta.did;e.push({label:l.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[l.jsx(gt,{size:24,blocklet:t,ancestors:o}),l.jsx(N,{ml:"4px",className:"text",children:l.jsx(N,{children:t.meta.title})})]},s),value:s})},ct=e=>{const t=Mt(e,["blockletVersion","blockletTitle","blockletDescription","blockletLogo","blockletIntroduction","blockletScreenshots","note"]);return t.blockletScreenshots||(t.blockletScreenshots=[]),t};function Ge({...e}){var Ce,O,ee;const t=pt(),{projectId:o,releaseId:s,componentDid:i}=ye(),{t:c}=be(),{blocklet:p}=ge(),[r,b]=zt(null),[u,h]=x.useState({}),[f,k]=x.useState(!1),[d,n]=x.useState(!1),[a,m]=x.useState(null),{api:g}=xe(),j=x.useRef(null),y=x.useRef(null),[S,E]=x.useState(),[I,R]=x.useState(),$=s==="create"?"":s,T=s==="create"?"create":"edit",B=[],H=((p==null?void 0:p.children)||[]).filter(C=>{var A;return(A=C.meta.resource)==null?void 0:A.exportApi}).filter(C=>!i||C.meta.did===i);H.forEach(C=>{Il({tabs:B,blocklet:C,t:c,ancestors:[p]})});const[je,Ne]=x.useState((Ce=B[0])==null?void 0:Ce.value),oe=(a==null?void 0:a.status)==="published",L=oe,le=({typeOnly:C}={})=>{g.getProject({input:{did:p.meta.did,projectId:o}}).then(A=>{k(!1);const P=A.project||{};if(C){E(P.type);return}P.blockletVersion?Ie.valid(P.blockletVersion)&&(P.blockletVersion=Ie.inc(P.blockletVersion,"patch")):P.blockletVersion="1.0.0",b(ct(P)),E(P.type)}).catch(A=>{k(!1),w.error(Ee(A))})},re=()=>{g.getRelease({input:{did:p.meta.did,projectId:o,releaseId:$}}).then(C=>{k(!1),b(ct(C==null?void 0:C.release)),m(C==null?void 0:C.release)}).catch(C=>{k(!1),w.error(Ee(C))})},q=x.useCallback(()=>{if(T==="edit"){if(!$){w.error("Empty release id");return}re(),le({typeOnly:!0})}T==="create"&&le()},[T,$]);x.useEffect(()=>{q()},[q]);const Q=C=>{const A=Tl(r,C,c);if(A){w.error(A.map(W=>W.message).join("; ")),h(A.reduce((W,U)=>({...W,[U.param]:U.message}),{}));return}const P={...r};if(P.blockletVersion=Ie.valid(P.blockletVersion),!P.blockletVersion){w.error("Invalid Blocklet Version"),h({blockletVersion:"Invalid Blocklet Version"});return}P.blockletTitle=(P.blockletTitle||"").trim(),P.blockletDescription=(P.blockletDescription||"").trim(),P.blockletIntroduction=(P.blockletIntroduction||"").trim(),P.note=(P.note||"").trim(),n(C),k(!0),g.createRelease({input:{...P,did:p.meta.did,projectId:o,releaseId:$,status:C}}).then(W=>{var U;if(n(!1),k(!1),C==="draft"?w.success(c("blocklet.publish.saveDraftSuccess")):w.success(c("blocklet.publish.createReleaseSuccess")),T==="create"){const wt=(U=W==null?void 0:W.release)==null?void 0:U.id;t(`../${o}/${wt}`,{replace:!0})}else re()}).catch(W=>{n(!1),k(!1);const U=Ee(W);w.error(U),/resource.*empty/.test(U)&&h({blockletResource:U})})};if(!r&&f)return l.jsx(ke,{});if(!r)return null;const ie=`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/logo/upload`,se=`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/screenshot/upload`,ae=r!=null&&r.blockletLogo?`${ie}/${r.blockletLogo}`:`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images/logo.png`,Y=((r==null?void 0:r.blockletScreenshots)||[]).filter(Boolean).map(C=>`${se}/${C}`),M=H.find(C=>C.meta.did===je),ce=M?l.jsx(N,{children:l.jsx(Je,{error:u.blockletResource,app:p,component:M,projectId:o,release:{...a,id:$},onSave:C=>{C.length&&h({blockletResource:""})}})}):l.jsx(N,{display:"flex",mt:-3,children:l.jsx(_t,{children:c("common.empty")})}),de=C=>{Ne(C)};let Z=null;if(oe&&we){const C=fe(we,`/api/project/${p.meta.did}/${o}/${$}/release/blocklet.json`);if(S==="pack"){const A=new URL(we);A.pathname=fe(A.pathname,"/launch-blocklet/agreement"),A.searchParams.set("blocklet_meta_url",C),Z=l.jsx(V,{variant:"outlined",style:{marginRight:8},children:l.jsx("a",{href:A.href,target:"_blank",rel:"noreferrer",children:c("common.install")})})}else Z=l.jsxs(l.Fragment,{children:[l.jsx(V,{variant:"outlined",style:{marginRight:8},onClick:()=>R(C),children:c("common.install")}),l.jsx(oo,{fullWidth:!0,maxWidth:"sm",open:I,onClose:()=>R(""),children:l.jsxs(N,{sx:{py:5,px:4,wordBreak:"break-all"},children:[l.jsx(_,{variant:"h6",sx:{mb:2},children:c("blocklet.publish.installResourceTip")}),l.jsx(so,{children:I}),l.jsxs(_,{sx:{mt:2},children:[c("blocklet.publish.installResourceTip2"),l.jsx("a",{style:{marginLeft:4},href:"https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",target:"_blank",rel:"noreferrer",children:c("blocklet.publish.installResourceHelp")})]})]})})]})}return l.jsxs(vl,{...e,children:[l.jsxs(N,{className:"sticky-header",children:[l.jsxs(Fe,{className:"breadcrumbs","aria-label":"breadcrumb",children:[l.jsx(z,{to:"../",children:c("common.publish")}),l.jsx(z,{to:`../${o}`,children:(r==null?void 0:r.blockletTitle)||"Blocklet"}),l.jsx(_,{color:"text.primary",children:T==="create"?c("common.create"):(r==null?void 0:r.blockletVersion)||c("common.edit")})]}),l.jsxs(N,{display:"flex",children:[!oe&&l.jsxs(l.Fragment,{children:[l.jsxs(V,{variant:"outlined",disabled:f||d,onClick:()=>Q(F.PROJECT.RELEASE_STATUS.draft),style:{marginRight:12},children:[d===F.PROJECT.RELEASE_STATUS.draft&&l.jsx($e,{size:14,sx:{mr:.5}}),c("blocklet.publish.saveDraft")]}),l.jsxs(V,{variant:"contained",disabled:f||d,onClick:()=>Q(F.PROJECT.RELEASE_STATUS.published),children:[d===F.PROJECT.RELEASE_STATUS.published&&l.jsx($e,{size:14,sx:{mr:.5},color:"inherit"}),c("common.release")]})]}),oe&&l.jsxs(l.Fragment,{children:[Z,l.jsx(V,{variant:"contained",children:l.jsx("a",{href:fe(`${ue.WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${p.meta.did}/${o}/${$}/download/${(a.files||[])[0]}`),children:c("common.download")})})]})]})]}),l.jsxs(N,{children:[S==="pack"&&l.jsx(lo,{type:"info",style:{width:"100%"},children:c("blocklet.publish.packTip")}),l.jsx(N,{pt:3}),l.jsxs(N,{display:"flex",className:"section",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.productTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(J,{label:`Blocklet ${c("common.title")}`,placeholder:`Blocklet ${c("common.title")}`,InputProps:{"data-cy":"blocklet-title",readOnly:L},autoComplete:"off",variant:"outlined",fullWidth:!0,required:!0,value:r.blockletTitle||"",onChange:C=>{h({blockletTitle:""}),b({blockletTitle:C.target.value})},error:!!u.blockletTitle,helperText:u.blockletTitle||""}),l.jsx(J,{label:`Blocklet ${c("common.description")}`,placeholder:`Blocklet ${c("common.description")}`,InputProps:{"data-cy":"blocklet-description",readOnly:L},required:!0,autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletDescription||"",onChange:C=>{h({blockletDescription:""}),b({blockletDescription:C.target.value})},error:!!u.blockletDescription,helperText:u.blockletDescription||"",sx:{mt:3}}),l.jsx(J,{label:`Blocklet ${c("common.introduction")}`,placeholder:`Blocklet ${c("common.introduction")}`,InputProps:{"data-cy":"export-blocklet-introduction",readOnly:L,endAdornment:l.jsxs(De,{position:"end",children:[((O=r==null?void 0:r.blockletIntroduction)==null?void 0:O.length)||0," / ",F.PROJECT.MAX_INTRO_LENGTH]})},autoComplete:"off",variant:"outlined",fullWidth:!0,multiline:!0,minRows:4,value:r.blockletIntroduction||"",onChange:C=>{h({blockletIntroduction:""}),b({blockletIntroduction:C.target.value.slice(0,F.PROJECT.MAX_INTRO_LENGTH)})},error:!!u.blockletIntroduction,helperText:u.blockletIntroduction||"",sx:{mt:3}})]})]}),l.jsxs(N,{display:"flex",mt:3,className:"section",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.versionTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(J,{required:!0,label:`Blocklet ${c("common.version")}`,placeholder:`Blocklet ${c("common.version")}`,InputProps:{"data-cy":"blocklet-version",readOnly:L},autoComplete:"off",variant:"outlined",fullWidth:!0,value:r.blockletVersion,onChange:C=>{h({blockletVersion:""}),b({blockletVersion:C.target.value})},error:!!u.blockletVersion,helperText:u.blockletVersion||""}),l.jsx(J,{label:c("blocklet.publish.releaseNote"),autoComplete:"off",variant:"outlined",InputProps:{"data-cy":"release-note",readOnly:L,endAdornment:l.jsxs(De,{position:"end",children:[((ee=r==null?void 0:r.note)==null?void 0:ee.length)||0," / ",F.PROJECT.MAX_NOTE_LENGTH]})},fullWidth:!0,multiline:!0,minRows:4,required:!0,value:r.note,onChange:C=>{h({note:""}),b({note:C.target.value.slice(0,F.PROJECT.MAX_NOTE_LENGTH)})},error:!!u.note,helperText:u.note||"",sx:{mt:3}})]})]}),l.jsxs(N,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(_,{variant:"h3",className:"left",children:c("blocklet.publish.imgTitle")}),l.jsxs(N,{sx:{flex:1},children:[l.jsxs(N,{display:"flex",children:[l.jsx(_,{variant:"subtitle1",sx:{mr:2},children:c("common.logo")}),l.jsx(N,{sx:{flex:1,cursor:L?"default":"pointer"},children:l.jsx(ao,{variant:"square",sx:{width:80,height:80},alt:"Blocklet Logo",src:ae,onClick:()=>!L&&j.current.open()})})]}),l.jsxs(N,{display:"flex",mt:3,children:[l.jsx(_,{variant:"subtitle1",sx:{mr:2},children:c("common.screenshot")}),l.jsxs(N,{display:"flex",alignItems:"center",sx:{flex:1,flexWrap:"wrap"},children:[Y.map((C,A)=>l.jsxs(N,{className:"screenshot",children:[l.jsx("img",{alt:"screenshot",src:C}),!L&&l.jsx(ve,{className:"action",onClick:()=>{const P=[...r.blockletScreenshots];P.splice(A,1),b({blockletScreenshots:P})},children:l.jsx(eo,{})})]})),Y.length<5&&l.jsx(N,{sx:{width:200,height:140,background:"#eee",cursor:L?"default":"pointer",color:"#999",mb:2},display:"flex",justifyContent:"center",alignItems:"center",fontSize:40,onClick:()=>!L&&y.current.open(),children:"+"})]})]})]}),l.jsx(at,{id:"uploader-logo",ref:j,popup:!0,onUploadFinish:C=>{b({blockletLogo:C.data.filename}),j.current.close()},plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:ie,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:rt,maxFileSize:it,maxNumberOfFiles:1}}},"uploader-logo"),l.jsx(at,{id:"uploader-screenshot",ref:y,popup:!0,onUploadFinish:C=>{var P;const A=r.blockletScreenshots||[];A.push((P=C.data)==null?void 0:P.filename),b({blockletScreenshots:A}),y.current.close()},plugins:["ImageEditor"],apiPathProps:{uploader:se,disableMediaKitPrefix:!0},coreProps:{restrictions:{allowedFileTypes:rt,maxFileSize:it,maxNumberOfFiles:5-Y.length}}},"uploader-screenshot")]}),l.jsxs(N,{display:"flex",mt:3,className:"section full-width",children:[l.jsx(N,{className:"left",children:l.jsx(_,{variant:"h3",children:c("blocklet.publish.resourceTitle")})}),l.jsxs(N,{sx:{flex:1},children:[l.jsx(to,{tabs:B,current:je,onChange:de,sx:{ml:-2,mt:-1.5}}),l.jsx(N,{children:ce})]})]})]})]})}Ge.propTypes={};Ge.defaultProps={};const vl=G.div`
|
|
112
112
|
.sticky-header {
|
|
113
113
|
margin-top: -12px;
|
|
114
114
|
padding: 12px 0;
|
|
@@ -195,7 +195,7 @@ import{j as l,_ as v,ea as Qe,f as te,g as Oe,a as _e,r as x,h as me,i as Le,P a
|
|
|
195
195
|
`;export{Pt as default};
|
|
196
196
|
function __vite__mapDeps(indexes) {
|
|
197
197
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
198
|
-
__vite__mapDeps.viteFileDeps = ["assets/react-
|
|
198
|
+
__vite__mapDeps.viteFileDeps = ["assets/react-o04d-cyu.js","assets/index-b7P8dXaW.js","assets/index-TCTrVMXW.css","assets/index-iz89eKW_.js","assets/preact.module-yJdvQMHZ.js","assets/index-1kJhAn58.js","assets/index-LjaUA433.js","assets/toUpper-vVgUYjsF.js","assets/uniqBy-MyT7qhfv.js","assets/react-yqGXLqWb.css"]
|
|
199
199
|
}
|
|
200
200
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
201
201
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as c,P as f,O as d}from"./index-
|
|
1
|
+
import{r as v,j as c,P as f,O as d}from"./index-b7P8dXaW.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var s=o.default=void 0;m(v);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return t=g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g(e){var t=j(e,"string");return typeof t=="symbol"?t:String(t)}function j(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";s=o.default=i;function p({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(s,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}p.propTypes={children:f.any};p.defaultProps={children:""};export{p as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,N as e,j as t,ax as n,Q as o}from"./index-
|
|
1
|
+
import{r as a,N as e,j as t,ax as n,Q as o}from"./index-b7P8dXaW.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as q}from"./lottie-
|
|
1
|
+
import{l as q}from"./lottie-RDmkFf84.js";import{r as D,cf as z}from"./index-b7P8dXaW.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,o,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var ie=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],oe=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,o=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,ie),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],i=D.useRef(),v=D.useRef(null),H=function(){var a;(a=i.current)===null||a===void 0||a.play()},M=function(){var a;(a=i.current)===null||a===void 0||a.stop()},F=function(){var a;(a=i.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=i.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndPlay(a,f)},B=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndStop(a,f)},$=function(a){var f;(f=i.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=i.current)===null||m===void 0||m.playSegments(a,f)},W=function(a){var f;(f=i.current)===null||f===void 0||f.setSubframe(a)},K=function(a){var f;return(f=i.current)===null||f===void 0?void 0:f.getDuration(a)},U=function(){var a;(a=i.current)===null||a===void 0||a.destroy(),i.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=i.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return i.current=q.loadAnimation(m),I(!!i.current),function(){var R;(R=i.current)===null||R===void 0||R.destroy(),i.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){i.current&&(i.current.autoplay=!!c)},[c]),D.useEffect(function(){if(i.current){if(!o){i.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((i.current.currentRawFrame<o[0]||i.current.currentRawFrame>o[1])&&(i.current.currentRawFrame=o[0]),i.current.setSegment(o[0],o[1]))}},[o]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=i.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=i.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:B,goToAndPlay:N,setDirection:$,playSegments:k,setSubframe:W,getDuration:K,destroy:U,animationContainerRef:v,animationLoaded:C,animationItem:i.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,o=n.width,b=n.height,s=(e-c)/o,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var o=r.current;if(!(!o||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(o),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
3
3
|
n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",O),function(){document.removeEventListener("scroll",O)}},s=function(){var g=function(l,L){var S=l,p=L;if(S!==-1&&p!==-1){var P=le(o,S,p);S=P.x,p=P.y}var d=c.find(function(i){var v=i.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?S>=v.x[0]&&S<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?S===v.x&&p===v.y:!1});if(d){if(d.type==="seek"&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&d.frames.length===2){var C=(S-d.position.x[0])/(d.position.x[1]-d.position.x[0]),I=(p-d.position.y[0])/(d.position.y[1]-d.position.y[0]);n.playSegments(d.frames,!0),n.goToAndStop(Math.ceil((C+I)/2*(d.frames[1]-d.frames[0])),!0)}d.type==="loop"&&n.playSegments(d.frames,!0),d.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(d.frames)),d.type==="stop"&&n.goToAndStop(d.frames[0],!0)}},O=function(l){g(l.clientX,l.clientY)},w=function(){g(-1,-1)};return o.addEventListener("mousemove",O),o.addEventListener("mouseout",w),function(){o.removeEventListener("mousemove",O),o.removeEventListener("mouseout",w)}};switch(u){case"scroll":return b();case"cursor":return s()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,o=u.View,b=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:b}),o},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,o=e.interactivity,b=x(e,fe),s=oe(b,c),A=s.View,g=s.play,O=s.stop,w=s.pause,h=s.setSpeed,l=s.goToAndStop,L=s.goToAndPlay,S=s.setDirection,p=s.playSegments,P=s.setSubframe,d=s.getDuration,C=s.destroy,I=s.animationContainerRef,i=s.animationLoaded,v=s.animationItem;return D.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:O,pause:w,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:A,play:g,stop:O,pause:w,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(u=o==null?void 0:o.mode)!==null&&u!==void 0?u:"scroll"})};export{q as LottiePlayer,ve as default,oe as useLottie,de as useLottieInteractivity};
|