@abtnode/webapp 1.17.3-beta-20251127-063055-94957209 → 1.17.3
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-DU0D4sqH.js → AdapterDayjs-jQWZxlKZ.js} +1 -1
- package/dist/assets/{Add-BKe5i02H.js → Add-CM0i44L2.js} +1 -1
- package/dist/assets/ArrowDropDown-BrtzEFq8.js +1 -0
- package/dist/assets/{Autocomplete-DK0iCUAm.js → Autocomplete-BBHR-e2e.js} +1 -1
- package/dist/assets/{Breadcrumbs-2mIcJJiP.js → Breadcrumbs-BaZ8MiUq.js} +1 -1
- package/dist/assets/{ButtonGroup-B86tCmd3.js → ButtonGroup-B_6MNBFc.js} +1 -1
- package/dist/assets/{CSSTransition-BZnv4uwU.js → CSSTransition-C6uS6QtZ.js} +1 -1
- package/dist/assets/{CallMerge-BdwpnGaL.js → CallMerge-CQP5GPxe.js} +1 -1
- package/dist/assets/{CardContent-B3Ns-1d7.js → CardContent-Ck7ja9MC.js} +1 -1
- package/dist/assets/{ChevronLeft-DKTuWlNz.js → ChevronLeft-C7cSHp9l.js} +1 -1
- package/dist/assets/{ChevronRight-U_VKk8yi.js → ChevronRight-BUUZmp3v.js} +1 -1
- package/dist/assets/{Clear-Bjaoevyy.js → Clear-CFi5u92e.js} +1 -1
- package/dist/assets/{DeleteOutline-1L0qVW5f.js → DeleteOutline-BHEKXTkO.js} +1 -1
- package/dist/assets/{Done-fcctYBnn.js → Done-DXPJGUWm.js} +1 -1
- package/dist/assets/{Edit-Df-gu5W0.js → Edit-JIlB-sRA.js} +1 -1
- package/dist/assets/{ErrorOutline-C2BuHaFO.js → ErrorOutline-DBqK27X8.js} +1 -1
- package/dist/assets/{FilterList-ip4QUiRE.js → FilterList-DqZHJbRG.js} +1 -1
- package/dist/assets/{Google-C4HUt8aJ.js → Google-KJc6rb0J.js} +1 -1
- package/dist/assets/{HelpOutline-Dn_yz-1h.js → HelpOutline-DswUhBxG.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-C9ZFNMos.js → KeyboardArrowDown-BRIRZ0lk.js} +1 -1
- package/dist/assets/{Launch-CFi1NSiy.js → Launch-_uZBB3hy.js} +1 -1
- package/dist/assets/{Link-CQpp_kV1.js → Link-CvXyobEJ.js} +1 -1
- package/dist/assets/{ListItemButton-Dq8kjXAC.js → ListItemButton-BRQYff97.js} +1 -1
- package/dist/assets/{ListSubheader-BN5vdmXx.js → ListSubheader-BHGxSe1E.js} +1 -1
- package/dist/assets/{LoadingButton-YsBwLHRI.js → LoadingButton-BhZ8iOtK.js} +1 -1
- package/dist/assets/{MoreVert-BFhM4QD_.js → MoreVert-Ck4O28kx.js} +1 -1
- package/dist/assets/{OpenInNew-BQ_lyYyz.js → OpenInNew-BJk7hIVB.js} +1 -1
- package/dist/assets/{Refresh-BH-2JQxb.js → Refresh-kyiL1qX1.js} +1 -1
- package/dist/assets/{Search-XYz8f8XA.js → Search-BiQ8hlgr.js} +1 -1
- package/dist/assets/{Stepper-CgNQuoDq.js → Stepper-BJZfb2Le.js} +1 -1
- package/dist/assets/{Switch-D-GptXzp.js → Switch-UORzToTA.js} +1 -1
- package/dist/assets/{TableSearch-20ltCGV9.js → TableSearch-BQiqRB7D.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BeJ2H-vs.js → ToggleButtonGroup-CbzWaH4A.js} +1 -1
- package/dist/assets/{UnfoldMore-ogSRr9M8.js → UnfoldMore-DZ3laWH7.js} +1 -1
- package/dist/assets/{Verified-DoWJRqF2.js → Verified-M-1m4RTW.js} +1 -1
- package/dist/assets/{VerifiedUser-C8oAKXOY.js → VerifiedUser-C7mhQBkH.js} +1 -1
- package/dist/assets/{ViewList-B9yb0HBO.js → ViewList-DC04kVZ7.js} +1 -1
- package/dist/assets/{_createAggregator-Ctg83h-t.js → _createAggregator-BcN4GRYz.js} +1 -1
- package/dist/assets/actions-DSVBY-iK.js +1 -0
- package/dist/assets/{actions-CEVha9Lm.js → actions-e0cgLZ3F.js} +1 -1
- package/dist/assets/{agreement-Do9LS1H9.js → agreement-CMStdtDl.js} +1 -1
- package/dist/assets/api-DxqoYz8S.js +1 -0
- package/dist/assets/{appearance-BAXcLNQv.js → appearance-BbYVAqwM.js} +1 -1
- package/dist/assets/{ar-Dz5bxvSE.js → ar-BJZY7v5z.js} +2 -2
- package/dist/assets/{audit-logs-CNWSS6cO.js → audit-logs-B2Hvy3ws.js} +1 -1
- package/dist/assets/{base-chart-CtBedy-P.js → base-chart-Do9WtdQs.js} +1 -1
- package/dist/assets/{blocklet-Dcm-KWY0.js → blocklet-Cu8go6Cl.js} +1 -1
- package/dist/assets/{chain-B1M1oJUZ.js → chain-tpP2d9Lm.js} +1 -1
- package/dist/assets/{click-to-copy-UAGH53Qf.js → click-to-copy-BpBPaRWz.js} +1 -1
- package/dist/assets/cloneDeep-BAowUJcW.js +1 -0
- package/dist/assets/{collapse-SFvNptyB.js → collapse-DRRC0SCd.js} +1 -1
- package/dist/assets/{config-navigation-BXWbV-Cs.js → config-navigation-Ntc_O8HF.js} +46 -46
- package/dist/assets/connect-to-CTjQfAN3.js +29 -0
- package/dist/assets/{cssMode-a2Qinu_F.js → cssMode-MKOimR8r.js} +1 -1
- package/dist/assets/{de-Ztxy5vEB.js → de-BF0NHTXz.js} +2 -2
- package/dist/assets/{delete-confirm-CykvEZcZ.js → delete-confirm-DwwucGed.js} +1 -1
- package/dist/assets/{depsEqual-CNVuMuEd.js → depsEqual-DJ4V1mTU.js} +1 -1
- package/dist/assets/{detail-DgAURCp6.js → detail-BAwVCAFb.js} +3 -3
- package/dist/assets/{domains-DzUka-Py.js → domains-rlp68m61.js} +1 -1
- package/dist/assets/{download-DAgi3KG_.js → download-CizjGT3a.js} +1 -1
- package/dist/assets/{edit.svg-DYBjroym.js → edit.svg-CpLTrX1j.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-BLI6o2QB.js +1 -0
- package/dist/assets/engine-d9ZSaCl8.js +1 -0
- package/dist/assets/{es-Cd-spoK_.js → es-Dv2m4LXp.js} +2 -2
- package/dist/assets/{fr-k8jXteN1.js → fr-BGhg9oO3.js} +2 -2
- package/dist/assets/{freemarker2-C-5txAzw.js → freemarker2-dI1M-X6u.js} +1 -1
- package/dist/assets/{get-safe-url-slTYcduh.js → get-safe-url-CHuz2b-I.js} +1 -1
- package/dist/assets/getValidReactChildren-C8GIEouH.js +1 -0
- package/dist/assets/{graphqlMode-CqvY2dvn.js → graphqlMode-B_WmUdLw.js} +2 -2
- package/dist/assets/{handlebars-BYAvYDfA.js → handlebars-CRMti49n.js} +1 -1
- package/dist/assets/{hi-CvpI1-tn.js → hi-CPfDhW8g.js} +2 -2
- package/dist/assets/{html-BvL9XBVt.js → html-ermJICEG.js} +1 -1
- package/dist/assets/{html-title-C8DFoE3o.js → html-title-BQwqe1Ck.js} +1 -1
- package/dist/assets/{htmlMode-B2ou9eLB.js → htmlMode-B0bBi3DI.js} +1 -1
- package/dist/assets/{id-D8coHs1U.js → id-9TUzKF6k.js} +2 -2
- package/dist/assets/{iframe-B2nulerg.js → iframe-9SAgwJDT.js} +1 -1
- package/dist/assets/{index-t7M3AlIl.js → index-2c1VoOd9.js} +123 -126
- package/dist/assets/index-B0_NefDz.js +1 -0
- package/dist/assets/{index-C3LdZf6o.js → index-B6xNHlEj.js} +3 -3
- package/dist/assets/{index-o0W75sh0.js → index-BC4-BsXp.js} +1 -1
- package/dist/assets/index-BGQR0TyN.js +1 -0
- package/dist/assets/{index-DxHUxvwT.js → index-BNQ03H5g.js} +1 -1
- package/dist/assets/{index-Dxb5VoXb.js → index-BR8r-K4S.js} +1 -1
- package/dist/assets/{index-BQoDUo8G.js → index-BVtHC_qD.js} +3 -3
- package/dist/assets/{index-DE2n9InK.js → index-BkBk9uDM.js} +1 -1
- package/dist/assets/{index-BVPjbwFh.js → index-Bkx9VtR1.js} +3 -3
- package/dist/assets/{index-DcJaC3Zv.js → index-C34tPvay.js} +1 -1
- package/dist/assets/{index-BE_VxsDo.js → index-C3PPN1sd.js} +1 -1
- package/dist/assets/index-CBDLDE06.js +168 -0
- package/dist/assets/{index-D1v2ub6O.js → index-CCDLY5yo.js} +1 -1
- package/dist/assets/{index-CcoyIHc2.js → index-CNd2lEI7.js} +1 -1
- package/dist/assets/{index-DevzmDa7.js → index-CTialFzy.js} +1 -1
- package/dist/assets/{index-BeBFdIcq.js → index-CZVLqYhR.js} +1 -1
- package/dist/assets/{index-C4O6nFZK.js → index-CcHEbeR3.js} +1 -1
- package/dist/assets/{index-m59yehWt.js → index-CeI21XVA.js} +1 -1
- package/dist/assets/{index-DNQRuNMg.js → index-CeMW5u5M.js} +1 -1
- package/dist/assets/{index-B0ezkZD_.js → index-CmgnJ9Ac.js} +9 -9
- package/dist/assets/{index-C-ZSaiUf.js → index-CuNku1ac.js} +1 -1
- package/dist/assets/{index-MI1PE9cE.js → index-D-Q5yWhn.js} +1 -1
- package/dist/assets/{index-Cmq6DzBi.js → index-D1jZ55Sb.js} +1 -1
- package/dist/assets/{index-C4sXNe3X.js → index-D6WMVz-u.js} +1 -1
- package/dist/assets/{index-BYvHyq2X.js → index-D9QeG2FZ.js} +1 -1
- package/dist/assets/{index-Gy9GijRe.js → index-DCmGZYYq.js} +1 -1
- package/dist/assets/index-DF8exUsL.js +328 -0
- package/dist/assets/{index-DudW3VZ0.js → index-DGZbMOLi.js} +1 -1
- package/dist/assets/{index-CGPesPdM.js → index-DO977Avs.js} +1 -1
- package/dist/assets/{index-Dxe6NqUd.js → index-DOFLIkPm.js} +1 -1
- package/dist/assets/{index-BTZ0eV0N.js → index-DUpNrHpg.js} +1 -1
- package/dist/assets/{index-B7yK5r9r.js → index-DcBZKU5L.js} +1 -1
- package/dist/assets/{index-C-ikBis3.js → index-DtbxvdaD.js} +1 -1
- package/dist/assets/{index-DKNNRdfd.js → index-DtnSIrsF.js} +1 -1
- package/dist/assets/{index-B069rJrU.js → index-DuqULJQe.js} +1 -1
- package/dist/assets/{index-zEOfnqWp.js → index-Dz_Rmjb-.js} +1 -1
- package/dist/assets/{index-Dmm7CN3L.js → index-EhtXyCtH.js} +1 -1
- package/dist/assets/{index-B22sxjhK.js → index-IfVDnuZk.js} +1 -1
- package/dist/assets/{index-CzOe4kWN.js → index-OJESZDQE.js} +1 -1
- package/dist/assets/{index-BxE9QNGJ.js → index-gDj2o7RF.js} +1 -1
- package/dist/assets/{index-Cq0PEg3C.js → index-mI9L2BhQ.js} +1 -1
- package/dist/assets/{index-CQBXMXxB.js → index-n0Dm2HUt.js} +1 -1
- package/dist/assets/{index-DLW-FPc1.js → index-vpxPTR3F.js} +1 -1
- package/dist/assets/{index-DrzeWNxs.js → index-yXEFoIGg.js} +1 -1
- package/dist/assets/{index-Bk3Q7htA.js → index-zysAnh52.js} +2 -2
- package/dist/assets/{index.esm-y0ki7yla.js → index.esm-CgpVcU8p.js} +1 -1
- package/dist/assets/{install-from-url-bDGtH7bg.js → install-from-url-jU_rZbjX.js} +1 -1
- package/dist/assets/{invitation-BMQ8ii-U.js → invitation-DX_ynvNX.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-6ZIHUdY4.js → is-path-prefix-equal-VKe4yShn.js} +1 -1
- package/dist/assets/{item-CcYR2iTB.js → item-D0BOEDZA.js} +9 -9
- package/dist/assets/{ja-Dkn5OA2r.js → ja-DT5bRsBF.js} +2 -2
- package/dist/assets/{javascript-Dv9tLB_N.js → javascript-DCfUrb2b.js} +1 -1
- package/dist/assets/{jsonMode-DUlsfgRc.js → jsonMode-DflwradV.js} +1 -1
- package/dist/assets/{ko-DXfRo0NY.js → ko-CJn9PyPz.js} +2 -2
- package/dist/assets/{liquid-C9JfvrHT.js → liquid-v5CyzMO1.js} +1 -1
- package/dist/assets/{list-header-DE2pVYNH.js → list-header-BsNw1q-X.js} +1 -1
- package/dist/assets/{lock.svg-DK6tzOS0.js → lock.svg-DcfL5WSZ.js} +1 -1
- package/dist/assets/{log-B0JHspX2.js → log-v9e9l2M0.js} +1 -1
- package/dist/assets/{lottie-react.esm-BQ1sE4G7.js → lottie-react.esm-CCtixTZh.js} +1 -1
- package/dist/assets/{mdx-D_F4JUXE.js → mdx-Ctxzc90y.js} +1 -1
- package/dist/assets/{memory-Ca0TT2wR.js → memory-BBW5cukR.js} +1 -1
- package/dist/assets/{metric-B_ux39Cy.js → metric-gyu0g4Df.js} +1 -1
- package/dist/assets/omit-B1xspwKB.js +1 -0
- package/dist/assets/{overview-DdKaJYs3.js → overview-CGezXNcq.js} +1 -1
- package/dist/assets/{permission-DL-rt2kz.js → permission-Dh9Y-pMK.js} +1 -1
- package/dist/assets/{preference-B32PPIXC.js → preference-CSylIZyx.js} +3 -3
- package/dist/assets/pt-K9FK6Ube.js +5 -0
- package/dist/assets/{python-DxxmtajH.js → python-OTBVRvfx.js} +1 -1
- package/dist/assets/{raf-schd.esm-C3uAJs0d.js → raf-schd.esm-CeLqNu5n.js} +1 -1
- package/dist/assets/{razor-C21hzdPt.js → razor-Dz96HacP.js} +1 -1
- package/dist/assets/{rotate-session-key-Cxb_738W.js → rotate-session-key-sNZ4agRi.js} +1 -1
- package/dist/assets/ru-C_RwukUu.js +5 -0
- package/dist/assets/{runtime-Bdx0ukMN.js → runtime-44wcxPEo.js} +1 -1
- package/dist/assets/schema-DTRR0KGi.js +1 -0
- package/dist/assets/sdk-DH9OjvLO.js +1 -0
- package/dist/assets/{service-BM2nSHO0.js → service-CrTKbt09.js} +1 -1
- package/dist/assets/{shorten-label-DnblKkIH.js → shorten-label-azqzn6Q0.js} +1 -1
- package/dist/assets/{simple-select-DPUPpFQ5.js → simple-select-Cjwynh2P.js} +1 -1
- package/dist/assets/{spaces-BKKKu_Dh.js → spaces-CImRuKfl.js} +1 -1
- package/dist/assets/{status-DtYf6aZS.js → status-BVLGfZ_U.js} +1 -1
- package/dist/assets/{status-COOoCu8i.js → status-DqZQuuxT.js} +1 -1
- package/dist/assets/{switch-control-CNmlIEr7.js → switch-control-uPmfeqt7.js} +1 -1
- package/dist/assets/{table-icons-C91WckX-.js → table-icons-j1shPhg0.js} +1 -1
- package/dist/assets/{team-DMp941g-.js → team-BOavcC7l.js} +1 -1
- package/dist/assets/th-Bhii_FfA.js +5 -0
- package/dist/assets/{toLower-BOZmijH1.js → toLower-DFhqc1Tx.js} +1 -1
- package/dist/assets/toUpper-BIz-OTsX.js +1 -0
- package/dist/assets/{traffic-CAtwfrwW.js → traffic-Dk3MPYPo.js} +1 -1
- package/dist/assets/{tsMode-BsmIUAx_.js → tsMode-DtrLBL88.js} +1 -1
- package/dist/assets/{typescript-CuXsCA8e.js → typescript-B_jxVxfT.js} +1 -1
- package/dist/assets/{url-evaluation-Dx99nTAj.js → url-evaluation-CKpb4hS-.js} +1 -1
- package/dist/assets/{url-join--uxDIQ5s.js → url-join-_MGxS-GP.js} +1 -1
- package/dist/assets/{use-mobile-gk4f0z32.js → use-mobile-CYJJmSLZ.js} +1 -1
- package/dist/assets/{use-mobile-B_qRraPN.js → use-mobile-DehCuxqg.js} +1 -1
- package/dist/assets/{useAsync-BkAVfcXM.js → useAsync-EJ0V06fl.js} +1 -1
- package/dist/assets/{useAsyncRetry-B53j1afR.js → useAsyncRetry-DTCkIRbI.js} +1 -1
- package/dist/assets/{useLocalStorage-BNDc6dCy.js → useLocalStorage-C5c8IOKv.js} +1 -1
- package/dist/assets/{useThemeProps-CWZCrmyJ.js → useThemeProps-Ddo6kYr5.js} +1 -1
- package/dist/assets/{util-Hbz7ULeM.js → util-CQYGkX3v.js} +1 -1
- package/dist/assets/vi-DVF2tjOG.js +5 -0
- package/dist/assets/{wait-container-BwhzxN9f.js → wait-container-Dt2QEBDD.js} +1 -1
- package/dist/assets/{without-wallet-Bms_Rs1m.js → without-wallet-DwaGUGcr.js} +1 -1
- package/dist/assets/wrap-locale-BSXSKo1t.js +1 -0
- package/dist/assets/{xml-jOEN8hj5.js → xml-TYsadqlU.js} +1 -1
- package/dist/assets/{yaml-DIuLKVgk.js → yaml-BeTZvw1b.js} +1 -1
- package/dist/assets/{zh-DB1zAstv.js → zh-98nxdLeR.js} +2 -2
- package/dist/assets/{zh-tw-DVMVT9am.js → zh-tw-BdDE7n5E.js} +2 -2
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-DZ4LPniJ.js +0 -1
- package/dist/assets/actions-CcYVxFDV.js +0 -1
- package/dist/assets/api-BgkTVaD7.js +0 -1
- package/dist/assets/cloneDeep-a4PlXlaR.js +0 -1
- package/dist/assets/connect-to-C1HXhR31.js +0 -30
- package/dist/assets/emotion-cache.browser.esm-Dakakd0R.js +0 -1
- package/dist/assets/engine-4rlPqZXl.js +0 -1
- package/dist/assets/getValidReactChildren-D4p_s3zF.js +0 -1
- package/dist/assets/index-BIyZS31y.js +0 -168
- package/dist/assets/index-DDHwRT_8.js +0 -1
- package/dist/assets/index-Dd8DBQ06.js +0 -328
- package/dist/assets/index-PmpfUMid.js +0 -1
- package/dist/assets/omit-Cxe_6CRp.js +0 -1
- package/dist/assets/pt-CNQsUMCu.js +0 -5
- package/dist/assets/ru-CjyCft4V.js +0 -5
- package/dist/assets/schema-CSqqEtp_.js +0 -1
- package/dist/assets/sdk-C4od53R_.js +0 -1
- package/dist/assets/th-WQWRMKAv.js +0 -5
- package/dist/assets/toUpper-BVrGP8Kf.js +0 -1
- package/dist/assets/vi-Br98wbNi.js +0 -5
- package/dist/assets/wrap-locale-BYm00LUc.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{aF as On,j as o,be as Le,di as mo,dx as vt,bd as go,r as z,f7 as bo,f as $e,f8 as yo,a1 as vo,f2 as xo,f9 as qr,cv as Lt,aA as wo,aB as Cn,K as V,aV as fe,fa as So,fb as Gt,fc as pr,T as Y,fd as ko,f5 as Hr,C as Ce,bA as ve,fe as Gr,ff as jo,fg as Qr,dK as Xr,fh as Qt,t as Yr,Q as Et,y as Je,as as Rt,fi as To,E as Ye,aU as Jr,R as Zr,z as In,dq as Me,G as mr,aP as Oo,eO as gr,cK as Co,fj as Io,fk as Eo,fl as Ro,cI as Po,M as _o,dL as Mo,fm as Lo,dJ as Do,by as zo,Z as Fo,fn as Wo,fo as br,br as ze,V as Ke,ay as En,aO as yr,o as P,bk as Ao,fp as ei,b2 as Bo,aD as xt,v as Pt,a6 as No,a7 as ti,aE as $o,bq as vr,a8 as Ko,bn as Rn,$ as Uo,D as Vo,U as qo,cQ as Ho,X as at,eD as Go,H as Be,b as Qo,n as Xo,a$ as Yo,ac as Jo,cw as Zo,aH as ni,cB as es,b8 as ts,W as ns}from"./index-t7M3AlIl.js";import{u as rs}from"./index-DcJaC3Zv.js";import{d as is}from"./KeyboardArrowDown-C9ZFNMos.js";import{P as os}from"./ChevronLeft-DKTuWlNz.js";import{N as ss}from"./ChevronRight-U_VKk8yi.js";import{S as as}from"./Search-XYz8f8XA.js";import{y as ls}from"./index-Dxe6NqUd.js";import{o as cs,u as us}from"./blocklet-Dcm-KWY0.js";import{A as ds}from"./Autocomplete-DK0iCUAm.js";import{V as hs}from"./Verified-DoWJRqF2.js";import{S as fs,V as ps}from"./VerifiedUser-C8oAKXOY.js";import{A as ms}from"./Add-BKe5i02H.js";import{L as ri}from"./Launch-CFi1NSiy.js";import{D as gs}from"./Done-fcctYBnn.js";import{D as ii}from"./DeleteOutline-1L0qVW5f.js";import{D as bs}from"./delete-confirm-CykvEZcZ.js";import{I as ys}from"./MoreVert-BFhM4QD_.js";import{g as ut}from"./get-safe-url-slTYcduh.js";import{B as xr}from"./ButtonGroup-B86tCmd3.js";const vs=On(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"})),xs=On(o.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),ws=On(o.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),dc="blocklet-add-component-registry",hc="server-add-registry",Ss={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'},lt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Dt=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const u=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:u};return t&&!Ot(g)?null:g}const s=i[0],h=s.split("-");if(h.length>1){const u={provider:r,prefix:h.shift(),name:h.join("-")};return t&&!Ot(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:s};return t&&!Ot(u,n)?null:u}return null},Ot=(e,t)=>e?!!((e.provider===""||e.provider.match(lt))&&(t&&e.prefix===""||e.prefix.match(lt))&&e.name.match(lt)):!1,oi=Object.freeze({left:0,top:0,width:16,height:16}),_t=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Pn=Object.freeze({...oi,..._t}),fn=Object.freeze({...Pn,body:"",hidden:!1});function ks(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function wr(e,t){const n=ks(e,t);for(const r in fn)r in _t?r in e&&!(r in n)&&(n[r]=_t[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function js(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(h){if(n[h])return i[h]=[];if(!(h in i)){i[h]=null;const u=r[h]&&r[h].parent,p=u&&s(u);p&&(i[h]=[u].concat(p))}return i[h]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Ts(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function h(u){s=wr(r[u]||i[u],s)}return h(t),n.forEach(h),wr(e,s)}function si(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=js(e);for(const i in r){const s=r[i];s&&(t(i,Ts(e,i,s)),n.push(i))}return n}const Os={provider:"",aliases:{},not_found:{},...oi};function Xt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ai(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Xt(e,Os))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(lt)||typeof s.body!="string"||!Xt(s,fn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],h=s.parent;if(!i.match(lt)||typeof h!="string"||!n[h]&&!r[h]||!Xt(s,fn))return null}return t}const Sr=Object.create(null);function Cs(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ne(e,t){const n=Sr[e]||(Sr[e]=Object.create(null));return n[t]||(n[t]=Cs(e,t))}function _n(e,t){return ai(t)?si(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Is(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let dt=!1;function li(e){return typeof e=="boolean"&&(dt=e),dt}function Es(e){const t=typeof e=="string"?Dt(e,!0,dt):e;if(t){const n=Ne(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Rs(e,t){const n=Dt(e,!0,dt);if(!n)return!1;const r=Ne(n.provider,n.prefix);return Is(r,n.name,t)}function Ps(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),dt&&!t&&!e.prefix){let i=!1;return ai(e)&&(e.prefix="",si(e,(s,h)=>{h&&Rs(s,h)&&(i=!0)})),i}const n=e.prefix;if(!Ot({provider:t,prefix:n,name:"a"}))return!1;const r=Ne(t,n);return!!_n(r,e)}const ci=Object.freeze({width:null,height:null}),ui=Object.freeze({...ci,..._t}),_s=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ms=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function kr(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(_s);if(r===null||!r.length)return e;const i=[];let s=r.shift(),h=Ms.test(s);for(;;){if(h){const u=parseFloat(s);isNaN(u)?i.push(s):i.push(Math.ceil(u*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");h=!h}}const Ls=e=>e==="unset"||e==="undefined"||e==="none";function Ds(e,t){const n={...Pn,...e},r={...ui,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const x=[],R=k.hFlip,_=k.vFlip;let T=k.rotate;R?_?T+=2:(x.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),x.push("scale(-1 1)"),i.top=i.left=0):_&&(x.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),x.push("scale(1 -1)"),i.top=i.left=0);let N;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:N=i.height/2+i.top,x.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:x.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:N=i.width/2+i.left,x.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}T%2===1&&(i.left!==i.top&&(N=i.left,i.left=i.top,i.top=N),i.width!==i.height&&(N=i.width,i.width=i.height,i.height=N)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const h=r.width,u=r.height,p=i.width,g=i.height;let m,v;h===null?(v=u===null?"1em":u==="auto"?g:u,m=kr(v,p/g)):(m=h==="auto"?p:h,v=u===null?kr(m,g/p):u==="auto"?g:u);const j={},w=(k,x)=>{Ls(x)||(j[k]=x.toString())};return w("width",m),w("height",v),j.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:j,body:s}}const zs=/\sid="(\S+)"/g,Fs="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ws=0;function As(e,t=Fs){const n=[];let r;for(;r=zs.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const h=typeof t=="function"?t(s):t+(Ws++).toString(),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+h+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const pn=Object.create(null);function Bs(e,t){pn[e]=t}function mn(e){return pn[e]||pn[""]}function Mn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ln=Object.create(null),st=["https://api.simplesvg.com","https://api.unisvg.com"],Ct=[];for(;st.length>0;)st.length===1||Math.random()>.5?Ct.push(st.shift()):Ct.push(st.pop());Ln[""]=Mn({resources:["https://api.iconify.design"].concat(Ct)});function Ns(e,t){const n=Mn(t);return n===null?!1:(Ln[e]=n,!0)}function Dn(e){return Ln[e]}const $s=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let jr=$s();function Ks(e,t){const n=Dn(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(h=>{i=Math.max(i,h.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Us(e){return e===404}const Vs=(e,t,n)=>{const r=[],i=Ks(e,t),s="icons";let h={type:s,provider:e,prefix:t,icons:[]},u=0;return n.forEach((p,g)=>{u+=p.length+1,u>=i&&g>0&&(r.push(h),h={type:s,provider:e,prefix:t,icons:[]},u=p.length),h.icons.push(p)}),r.push(h),r};function qs(e){if(typeof e=="string"){const t=Dn(e);if(t)return t.path}return"/"}const Hs=(e,t,n)=>{if(!jr){n("abort",424);return}let r=qs(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),p=new URLSearchParams({icons:u});r+=s+".json?"+p.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;jr(e+r).then(s=>{const h=s.status;if(h!==200){setTimeout(()=>{n(Us(h)?"abort":"next",h)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},Gs={prepare:Vs,send:Hs};function Qs(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,h=i.prefix,u=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[h]||(p[h]=Ne(s,h));let m;u in g.icons?m=t.loaded:h===""||g.missing.has(u)?m=t.missing:m=t.pending;const v={provider:s,prefix:h,name:u};m.push(v)}),t}function di(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Xs(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const h=s.icons,u=h.pending.length;h.pending=h.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])h.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))h.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),h.pending.length!==u&&(n||di([e],s.id),s.callback(h.loaded.slice(0),h.missing.slice(0),h.pending.slice(0),s.abort))})}))}let Ys=0;function Js(e,t,n){const r=Ys++,i=di.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(h=>{(h.loaderCallbacks||(h.loaderCallbacks=[])).push(s)}),i}function Zs(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Dt(i,t,n):i;s&&r.push(s)}),r}var ea={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ta(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let h;if(e.random){let B=e.resources.slice(0);for(h=[];B.length>1;){const Q=Math.floor(Math.random()*B.length);h.push(B[Q]),B=B.slice(0,Q).concat(B.slice(Q+1))}h=h.concat(B)}else h=e.resources.slice(s).concat(e.resources.slice(0,s));const u=Date.now();let p="pending",g=0,m,v=null,j=[],w=[];typeof r=="function"&&w.push(r);function k(){v&&(clearTimeout(v),v=null)}function x(){p==="pending"&&(p="aborted"),k(),j.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),j=[]}function R(B,Q){Q&&(w=[]),typeof B=="function"&&w.push(B)}function _(){return{startTime:u,payload:t,status:p,queriesSent:g,queriesPending:j.length,subscribe:R,abort:x}}function T(){p="failed",w.forEach(B=>{B(void 0,m)})}function N(){j.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),j=[]}function q(B,Q,te){const se=Q!=="success";switch(j=j.filter($=>$!==B),p){case"pending":break;case"failed":if(se||!e.dataAfterTimeout)return;break;default:return}if(Q==="abort"){m=te,T();return}if(se){m=te,j.length||(h.length?ee():T());return}if(k(),N(),!e.random){const $=e.resources.indexOf(B.resource);$!==-1&&$!==e.index&&(e.index=$)}p="completed",w.forEach($=>{$(te)})}function ee(){if(p!=="pending")return;k();const B=h.shift();if(B===void 0){if(j.length){v=setTimeout(()=>{k(),p==="pending"&&(N(),T())},e.timeout);return}T();return}const Q={status:"pending",resource:B,callback:(te,se)=>{q(Q,te,se)}};j.push(Q),g++,v=setTimeout(ee,e.rotate),n(B,t,Q.callback)}return setTimeout(ee),_}function hi(e){const t={...ea,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function i(u,p,g){const m=ta(t,u,p,(v,j)=>{r(),g&&g(v,j)});return n.push(m),m}function s(u){return n.find(p=>u(p))||null}return{query:i,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function Tr(){}const Yt=Object.create(null);function na(e){if(!Yt[e]){const t=Dn(e);if(!t)return;const n=hi(t),r={config:t,redundancy:n};Yt[e]=r}return Yt[e]}function ra(e,t,n){let r,i;if(typeof e=="string"){const s=mn(e);if(!s)return n(void 0,424),Tr;i=s.send;const h=na(e);h&&(r=h.redundancy)}else{const s=Mn(e);if(s){r=hi(s);const h=e.resources?e.resources[0]:"",u=mn(h);u&&(i=u.send)}}return!r||!i?(n(void 0,424),Tr):r.query(t,i,n)().abort}const Or="iconify2",ht="iconify",fi=ht+"-count",Cr=ht+"-version",pi=36e5,ia=168;function gn(e,t){try{return e.getItem(t)}catch{}}function zn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ir(e,t){try{e.removeItem(t)}catch{}}function bn(e,t){return zn(e,fi,t.toString())}function yn(e){return parseInt(gn(e,fi))||0}const zt={local:!0,session:!0},mi={local:new Set,session:new Set};let Fn=!1;function oa(e){Fn=e}let wt=typeof window>"u"?{}:window;function gi(e){const t=e+"Storage";try{if(wt&&wt[t]&&typeof wt[t].length=="number")return wt[t]}catch{}zt[e]=!1}function bi(e,t){const n=gi(e);if(!n)return;const r=gn(n,Cr);if(r!==Or){if(r){const u=yn(n);for(let p=0;p<u;p++)Ir(n,ht+p.toString())}zn(n,Cr,Or),bn(n,0);return}const i=Math.floor(Date.now()/pi)-ia,s=u=>{const p=ht+u.toString(),g=gn(n,p);if(typeof g=="string"){try{const m=JSON.parse(g);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>i&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,u))return!0}catch{}Ir(n,p)}};let h=yn(n);for(let u=h-1;u>=0;u--)s(u)||(u===h-1?(h--,bn(n,h)):mi[e].add(u))}function yi(){if(!Fn){oa(!0);for(const e in zt)bi(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=Ne(r,i);if(!_n(s,n).length)return!1;const h=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,h):h,!0})}}function sa(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in zt)bi(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function aa(e,t){Fn||yi();function n(r){let i;if(!zt[r]||!(i=gi(r)))return;const s=mi[r];let h;if(s.size)s.delete(h=Array.from(s).shift());else if(h=yn(i),!bn(i,h+1))return;const u={cached:Math.floor(Date.now()/pi),provider:e.provider,data:t};return zn(i,ht+h.toString(),JSON.stringify(u))}t.lastModified&&!sa(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Er(){}function la(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Xs(e)}))}function ca(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=mn(n)))return;s.prepare(n,r,i).forEach(u=>{ra(n,u,p=>{if(typeof p!="object")u.icons.forEach(g=>{e.missing.add(g)});else try{const g=_n(e,p);if(!g.length)return;const m=e.pendingIcons;m&&g.forEach(v=>{m.delete(v)}),aa(e,p)}catch(g){console.error(g)}la(e)})})}))}const ua=(e,t)=>{const n=Zs(e,!0,li()),r=Qs(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Er)}),()=>{p=!1}}const i=Object.create(null),s=[];let h,u;return r.pending.forEach(p=>{const{provider:g,prefix:m}=p;if(m===u&&g===h)return;h=g,u=m,s.push(Ne(g,m));const v=i[g]||(i[g]=Object.create(null));v[m]||(v[m]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:m,name:v}=p,j=Ne(g,m),w=j.pendingIcons||(j.pendingIcons=new Set);w.has(v)||(w.add(v),i[g][m].push(v))}),s.forEach(p=>{const{provider:g,prefix:m}=p;i[g][m].length&&ca(p,i[g][m])}),t?Js(t,r,s):Er};function da(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in ci?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const ha=/[\s,]+/;function fa(e,t){t.split(ha).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function pa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function ma(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ga(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ba(e){return"data:image/svg+xml,"+ga(e)}function ya(e){return'url("'+ba(e)+'")'}let ct;function va(){try{ct=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ct=null}}function xa(e){return ct===void 0&&va(),ct?ct.createHTML(e):e}const vi={...ui,inline:!1},wa={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Sa={display:"inline-block"},vn={backgroundColor:"currentColor"},xi={backgroundColor:"transparent"},Rr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Pr={WebkitMask:vn,mask:vn,background:xi};for(const e in Pr){const t=Pr[e];for(const n in Rr)t[e+n]=Rr[n]}const ka={...vi,inline:!0};function _r(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const ja=(e,t,n,r)=>{const i=n?ka:vi,s=da(i,t),h=t.mode||"svg",u={},p=t.style||{},g={...h==="svg"?wa:{},ref:r};for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&fa(s,T);break;case"color":u.color=T;break;case"rotate":typeof T=="string"?s[_]=pa(T):typeof T=="number"&&(s[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete g["aria-hidden"];break;default:i[_]===void 0&&(g[_]=T)}}const m=Ds(e,s),v=m.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),h==="svg"){g.style={...u,...p},Object.assign(g,v);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:xa(As(m.body,T?()=>T+"ID"+_++:"iconifyReact"))},Le.createElement("svg",g)}const{body:j,width:w,height:k}=e,x=h==="mask"||(h==="bg"?!1:j.indexOf("currentColor")!==-1),R=ma(j,{...v,width:w+"",height:k+""});return g.style={...u,"--svg":ya(R),width:_r(v.width),height:_r(v.height),...Sa,...x?vn:xi,...p},Le.createElement("span",g)};li(!0);Bs("",Gs);if(typeof document<"u"&&typeof window<"u"){yi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Ps(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Ns(n,i)||console.error(r)}catch{console.error(r)}}}}class wi extends Le.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=Dt(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Es(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:ua([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const h=["iconify"];i.prefix!==""&&h.push("iconify--"+i.prefix),i.provider!==""&&h.push("iconify--"+i.provider),this._setData({data:s,classes:h}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:Le.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),ja({...Pn,...n.data},r,t._inline,t._ref)}}const Pe=Le.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Le.createElement(wi,r)});Le.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Le.createElement(wi,r)});const Si={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var It={exports:{}},Ta=It.exports,Mr;function Oa(){return Mr||(Mr=1,function(e,t){(function(n,r){e.exports=r(mo())})(Ta,n=>(()=>{var r={703:(u,p,g)=>{var m=g(414);function v(){}function j(){}j.resetWarningCache=v,u.exports=function(){function w(R,_,T,N,q,ee){if(ee!==m){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}}function k(){return w}w.isRequired=w;var x={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:k,element:w,elementType:w,instanceOf:k,node:w,objectOf:k,oneOf:k,oneOfType:k,shape:k,exact:k,checkPropTypes:j,resetWarningCache:v};return x.PropTypes=x,x}},697:(u,p,g)=>{u.exports=g(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var p=typeof Element<"u",g=typeof Map=="function",m=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function j(w,k){if(w===k)return!0;if(w&&k&&typeof w=="object"&&typeof k=="object"){if(w.constructor!==k.constructor)return!1;var x,R,_,T;if(Array.isArray(w)){if((x=w.length)!=k.length)return!1;for(R=x;R--!=0;)if(!j(w[R],k[R]))return!1;return!0}if(g&&w instanceof Map&&k instanceof Map){if(w.size!==k.size)return!1;for(T=w.entries();!(R=T.next()).done;)if(!k.has(R.value[0]))return!1;for(T=w.entries();!(R=T.next()).done;)if(!j(R.value[1],k.get(R.value[0])))return!1;return!0}if(m&&w instanceof Set&&k instanceof Set){if(w.size!==k.size)return!1;for(T=w.entries();!(R=T.next()).done;)if(!k.has(R.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(w)&&ArrayBuffer.isView(k)){if((x=w.length)!=k.length)return!1;for(R=x;R--!=0;)if(w[R]!==k[R])return!1;return!0}if(w.constructor===RegExp)return w.source===k.source&&w.flags===k.flags;if(w.valueOf!==Object.prototype.valueOf)return w.valueOf()===k.valueOf();if(w.toString!==Object.prototype.toString)return w.toString()===k.toString();if((x=(_=Object.keys(w)).length)!==Object.keys(k).length)return!1;for(R=x;R--!=0;)if(!Object.prototype.hasOwnProperty.call(k,_[R]))return!1;if(p&&w instanceof Element)return!1;for(R=x;R--!=0;)if((_[R]!=="_owner"&&_[R]!=="__v"&&_[R]!=="__o"||!w.$$typeof)&&!j(w[_[R]],k[_[R]]))return!1;return!0}return w!=w&&k!=k}u.exports=function(w,k){try{return j(w,k)}catch(x){if((x.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw x}}},359:u=>{u.exports=n}},i={};function s(u){var p=i[u];if(p!==void 0)return p.exports;var g=i[u]={exports:{}};return r[u](g,g.exports,s),g.exports}s.n=u=>{var p=u&&u.__esModule?()=>u.default:()=>u;return s.d(p,{a:p}),p},s.d=(u,p)=>{for(var g in p)s.o(p,g)&&!s.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:p[g]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(u,p)=>Object.prototype.hasOwnProperty.call(u,p),s.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var h={};return(()=>{function u(d){var a,f,b="";if(typeof d=="string"||typeof d=="number")b+=d;else if(typeof d=="object")if(Array.isArray(d))for(a=0;a<d.length;a++)d[a]&&(f=u(d[a]))&&(b&&(b+=" "),b+=f);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var d,a,f=0,b="";f<arguments.length;)(d=arguments[f++])&&(a=u(d))&&(b&&(b+=" "),b+=a);return b}s.r(h),s.d(h,{default:()=>fo});var g=s(359),m=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},j=typeof vt=="object"&&vt&&vt.Object===Object&&vt;var w=typeof self=="object"&&self&&self.Object===Object&&self;const k=j||w||Function("return this")(),x=function(){return k.Date.now()};var R=/\s/,_=/^\s+/;const T=function(d){return d&&d.slice(0,function(a){for(var f=a.length;f--&&R.test(a.charAt(f)););return f}(d)+1).replace(_,"")},N=k.Symbol;var q=Object.prototype,ee=q.hasOwnProperty,B=q.toString,Q=N?N.toStringTag:void 0,te=Object.prototype.toString,se=N?N.toStringTag:void 0;const $=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":se&&se in Object(d)?function(a){var f=ee.call(a,Q),b=a[Q];try{a[Q]=void 0;var I=!0}catch{}var W=B.call(a);return I&&(f?a[Q]=b:delete a[Q]),W}(d):function(a){return te.call(a)}(d)};var Ie=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,me=parseInt;const Se=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&$(b)=="[object Symbol]"}(d))return NaN;if(v(d)){var a=typeof d.valueOf=="function"?d.valueOf():d;d=v(a)?a+"":a}if(typeof d!="string")return d===0?d:+d;d=T(d);var f=we.test(d);return f||ke.test(d)?me(d.slice(2),f?2:8):Ie.test(d)?NaN:+d};var D=Math.max,ae=Math.min;const je=function(d,a,f){var b,I,W,X,c,l,y=0,O=!1,E=!1,C=!0;if(typeof d!="function")throw new TypeError("Expected a function");function U(A){var G=b,J=I;return b=I=void 0,y=A,X=d.apply(J,G)}function K(A){return y=A,c=setTimeout(M,a),O?U(A):X}function H(A){var G=A-l;return l===void 0||G>=a||G<0||E&&A-y>=W}function M(){var A=x();if(H(A))return L(A);c=setTimeout(M,function(G){var J=a-(G-l);return E?ae(J,W-(G-y)):J}(A))}function L(A){return c=void 0,C&&b?U(A):(b=I=void 0,X)}function F(){var A=x(),G=H(A);if(b=arguments,I=this,l=A,G){if(c===void 0)return K(l);if(E)return clearTimeout(c),c=setTimeout(M,a),U(l)}return c===void 0&&(c=setTimeout(M,a)),X}return a=Se(a)||0,v(f)&&(O=!!f.leading,W=(E="maxWait"in f)?D(Se(f.maxWait)||0,a):W,C="trailing"in f?!!f.trailing:C),F.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?X:L(x())},F},ce=function(d,a,f){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(f)&&(b="leading"in f?!!f.leading:b,I="trailing"in f?!!f.trailing:I),je(d,a,{leading:b,maxWait:a,trailing:I})};var Te=s(590),Ee=s.n(Te),Kn=function(){if(typeof Map<"u")return Map;function d(a,f){var b=-1;return a.some(function(I,W){return I[0]===f&&(b=W,!0)}),b}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(f){var b=d(this.__entries__,f),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(f,b){var I=d(this.__entries__,f);~I?this.__entries__[I][1]=b:this.__entries__.push([f,b])},a.prototype.delete=function(f){var b=this.__entries__,I=d(b,f);~I&&b.splice(I,1)},a.prototype.has=function(f){return!!~d(this.__entries__,f)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(f,b){b===void 0&&(b=null);for(var I=0,W=this.__entries__;I<W.length;I++){var X=W[I];f.call(b,X[1],X[0])}},a}()}(),Wt=typeof window<"u"&&typeof document<"u"&&window.document===document,pt=s.g!==void 0&&s.g.Math===Math?s.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Ni=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(pt):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},$i=["top","right","bottom","left","width","height","size","weight"],Ki=typeof MutationObserver<"u",Ui=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,f){var b=!1,I=!1,W=0;function X(){b&&(b=!1,a()),I&&l()}function c(){Ni(X)}function l(){var y=Date.now();if(b){if(y-W<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);W=y}return l}(this.refresh.bind(this))}return d.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},d.prototype.removeObserver=function(a){var f=this.observers_,b=f.indexOf(a);~b&&f.splice(b,1),!f.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return a.forEach(function(f){return f.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Wt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ki?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Wt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var f=a.propertyName,b=f===void 0?"":f;$i.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),Un=function(d,a){for(var f=0,b=Object.keys(a);f<b.length;f++){var I=b[f];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ue=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||pt},Vn=gt(0,0,0,0);function mt(d){return parseFloat(d)||0}function qn(d){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];return a.reduce(function(b,I){return b+mt(d["border-"+I+"-width"])},0)}var Vi=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ue(d).SVGGraphicsElement}:function(d){return d instanceof Ue(d).SVGElement&&typeof d.getBBox=="function"};function qi(d){return Wt?Vi(d)?function(a){var f=a.getBBox();return gt(0,0,f.width,f.height)}(d):function(a){var f=a.clientWidth,b=a.clientHeight;if(!f&&!b)return Vn;var I=Ue(a).getComputedStyle(a),W=function(C){for(var U={},K=0,H=["top","right","bottom","left"];K<H.length;K++){var M=H[K],L=C["padding-"+M];U[M]=mt(L)}return U}(I),X=W.left+W.right,c=W.top+W.bottom,l=mt(I.width),y=mt(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+X)!==f&&(l-=qn(I,"left","right")+X),Math.round(y+c)!==b&&(y-=qn(I,"top","bottom")+c)),!function(C){return C===Ue(C).document.documentElement}(a)){var O=Math.round(l+X)-f,E=Math.round(y+c)-b;Math.abs(O)!==1&&(l-=O),Math.abs(E)!==1&&(y-=E)}return gt(W.left,W.top,l,y)}(d):Vn}function gt(d,a,f,b){return{x:d,y:a,width:f,height:b}}var Hi=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=gt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=qi(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},d.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},d}(),Gi=function(d,a){var f,b,I,W,X,c,l,y=(b=(f=a).x,I=f.y,W=f.width,X=f.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),Un(l,{x:b,y:I,width:W,height:X,top:I,right:b+W,bottom:X+I,left:b}),l);Un(this,{target:d,contentRect:y})},Qi=function(){function d(a,f,b){if(this.activeObservations_=[],this.observations_=new Kn,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=f,this.callbackCtx_=b}return d.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ue(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)||(f.set(a,new Hi(a)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ue(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)&&(f.delete(a),f.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&a.activeObservations_.push(f)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,f=this.activeObservations_.map(function(b){return new Gi(b.target,b.broadcastRect())});this.callback_.call(a,f,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),Hn=typeof WeakMap<"u"?new WeakMap:new Kn,Gn=function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=Ui.getInstance(),b=new Qi(a,f,this);Hn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){Gn.prototype[d]=function(){var a;return(a=Hn.get(this))[d].apply(a,arguments)}});const Qn=pt.ResizeObserver!==void 0?pt.ResizeObserver:Gn,Ve="Left",Fe="Right",qe="Up",We="Down",He={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},At={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Xn="mousemove",Yn="mouseup";function Jn(d,a){if(a===0)return d;const f=Math.PI/180*a;return[d[0]*Math.cos(f)+d[1]*Math.sin(f),d[1]*Math.cos(f)-d[0]*Math.sin(f)]}function Xi(d){const{trackMouse:a}=d,f=g.useRef(Object.assign({},At)),b=g.useRef(Object.assign({},He)),I=g.useRef(Object.assign({},b.current));let W;for(W in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},He),d),He)b.current[W]===void 0&&(b.current[W]=He[W]);const[X,c]=g.useMemo(()=>function(l,y){const O=M=>{const L="touches"in M;L&&M.touches.length>1||l((F,A)=>{A.trackMouse&&!L&&(document.addEventListener(Xn,E),document.addEventListener(Yn,U));const{clientX:G,clientY:J}=L?M.touches[0]:M,ie=Jn([G,J],A.rotationAngle);return A.onTouchStartOrOnMouseDown&&A.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},F),At),{initial:ie.slice(),xy:ie,start:M.timeStamp||0})})},E=M=>{l((L,F)=>{const A="touches"in M;if(A&&M.touches.length>1)return L;if(M.timeStamp-L.start>F.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:G,clientY:J}=A?M.touches[0]:M,[ie,ge]=Jn([G,J],F.rotationAngle),he=ie-L.xy[0],ue=ge-L.xy[1],re=Math.abs(he),Z=Math.abs(ue),_e=(M.timeStamp||0)-L.start,nt=Math.sqrt(re*re+Z*Z)/(_e||1),rt=[he/(_e||1),ue/(_e||1)],Re=function(it,Xe,ot,be){return it>Xe?ot>0?Fe:Ve:be>0?We:qe}(re,Z,he,ue),Ae=typeof F.delta=="number"?F.delta:F.delta[Re.toLowerCase()]||He.delta;if(re<Ae&&Z<Ae&&!L.swiping)return L;const Oe={absX:re,absY:Z,deltaX:he,deltaY:ue,dir:Re,event:M,first:L.first,initial:L.initial,velocity:nt,vxvy:rt};Oe.first&&F.onSwipeStart&&F.onSwipeStart(Oe),F.onSwiping&&F.onSwiping(Oe);let Qe=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Re}`])&&(Qe=!0),Qe&&F.preventScrollOnSwipe&&F.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:Oe,swiping:!0})})},C=M=>{l((L,F)=>{let A;if(L.swiping&&L.eventData){if(M.timeStamp-L.start<F.swipeDuration){A=Object.assign(Object.assign({},L.eventData),{event:M}),F.onSwiped&&F.onSwiped(A);const G=F[`onSwiped${A.dir}`];G&&G(A)}}else F.onTap&&F.onTap({event:M});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},L),At),{eventData:A})})},U=M=>{document.removeEventListener(Xn,E),document.removeEventListener(Yn,U),C(M)},K=(M,L)=>{let F=()=>{};if(M&&M.addEventListener){const A=Object.assign(Object.assign({},He.touchEventOptions),L.touchEventOptions),G=[["touchstart",O,A],["touchmove",E,Object.assign(Object.assign({},A),L.preventScrollOnSwipe?{passive:!1}:{})],["touchend",C,A]];G.forEach(([J,ie,ge])=>M.addEventListener(J,ie,ge)),F=()=>G.forEach(([J,ie])=>M.removeEventListener(J,ie))}return F},H={ref:M=>{M!==null&&l((L,F)=>{if(L.el===M)return L;const A={};return L.el&&L.el!==M&&L.cleanUpTouch&&(L.cleanUpTouch(),A.cleanUpTouch=void 0),F.trackTouch&&M&&(A.cleanUpTouch=K(M,F)),Object.assign(Object.assign(Object.assign({},L),{el:M}),A)})}};return y.trackMouse&&(H.onMouseDown=O),[H,K]}(l=>f.current=l(f.current,b.current),{trackMouse:a}),[a]);return f.current=function(l,y,O,E){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==O.preventScrollOnSwipe||y.touchEventOptions.passive!==O.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:E(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:E(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(f.current,b.current,I.current,c),X}var S=s(697);function Ze(d){return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ze(d)}function Zn(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function er(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?Zn(Object(f),!0).forEach(function(b){Yi(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):Zn(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function Yi(d,a,f){return(a=function(b){var I=function(W,X){if(Ze(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,X);if(Ze(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return Ze(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var Ji={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},Bt=m().memo(function(d){var a=er(er({},Ji),d),f=a.description,b=a.fullscreen,I=a.handleImageLoaded,W=a.isFullscreen,X=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,O=a.originalWidth,E=a.originalTitle,C=a.sizes,U=a.srcSet,K=a.loading,H=W&&b||c;return m().createElement(m().Fragment,null,m().createElement("img",{className:"image-gallery-image",src:H,alt:l,srcSet:U,height:y,width:O,sizes:C,title:E,onLoad:function(M){return I(M,c)},onError:X,loading:K}),f&&m().createElement("span",{className:"image-gallery-description"},f))});Bt.displayName="Item",Bt.propTypes={description:S.string,fullscreen:S.string,handleImageLoaded:S.func.isRequired,isFullscreen:S.bool,onImageError:S.func.isRequired,original:S.string.isRequired,originalAlt:S.string,originalHeight:S.string,originalWidth:S.string,originalTitle:S.string,sizes:S.string,srcSet:S.string,loading:S.string};const Zi=Bt;function et(d){return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},et(d)}function tr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function nr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?tr(Object(f),!0).forEach(function(b){eo(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):tr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function eo(d,a,f){return(a=function(b){var I=function(W,X){if(et(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,X);if(et(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return et(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var to={left:m().createElement("polyline",{points:"15 18 9 12 15 6"}),right:m().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:m().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:m().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:m().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:m().createElement(m().Fragment,null,m().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),m().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},no={strokeWidth:1,viewBox:"0 0 24 24"},rr=function(d){var a=nr(nr({},no),d),f=a.strokeWidth,b=a.viewBox,I=a.icon;return m().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round"},to[I])};rr.propTypes={strokeWidth:S.number,viewBox:S.string,icon:(0,S.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const bt=rr;var Nt=m().memo(function(d){var a=d.isFullscreen,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:f,"aria-label":"Open Fullscreen"},m().createElement(bt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Nt.displayName="Fullscreen",Nt.propTypes={isFullscreen:S.bool.isRequired,onClick:S.func.isRequired};const ro=Nt;var $t=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:f,"aria-label":"Previous Slide"},m().createElement(bt,{icon:"left",viewBox:"6 0 12 24"}))});$t.displayName="LeftNav",$t.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const io=$t;var Kt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:f,"aria-label":"Next Slide"},m().createElement(bt,{icon:"right",viewBox:"6 0 12 24"}))});Kt.displayName="RightNav",Kt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const oo=Kt;var Ut=m().memo(function(d){var a=d.isPlaying,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:f,"aria-label":"Play or Pause Slideshow"},m().createElement(bt,{strokeWidth:2,icon:a?"pause":"play"}))});Ut.displayName="PlayPause",Ut.propTypes={isPlaying:S.bool.isRequired,onClick:S.func.isRequired};const so=Ut;function tt(d){return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},tt(d)}function Vt(){return Vt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var f=arguments[a];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},Vt.apply(this,arguments)}function ir(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function or(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ir(Object(f),!0).forEach(function(b){ao(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ir(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function ao(d,a,f){return(a=function(b){var I=function(W,X){if(tt(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,X);if(tt(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return tt(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var lo={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},sr=function(d){var a=or(or({},lo),d),f=a.children,b=a.className,I=Xi({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return m().createElement("div",Vt({},I,{className:b}),f)};sr.propTypes={children:S.node.isRequired,className:S.string,delta:S.number,onSwiped:S.func,onSwiping:S.func};const ar=sr;function Ge(d){return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ge(d)}function lr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function cr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?lr(Object(f),!0).forEach(function(b){ur(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):lr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function co(d,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,dr(b.key),b)}}function qt(d,a){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},qt(d,a)}function uo(d,a){if(a&&(Ge(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(d)}function oe(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function yt(d){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},yt(d)}function ur(d,a,f){return(a=dr(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}function dr(d){var a=function(f,b){if(Ge(f)!=="object"||f===null)return f;var I=f[Symbol.toPrimitive];if(I!==void 0){var W=I.call(f,b);if(Ge(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(d,"string");return Ge(a)==="symbol"?a:String(a)}var hr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ho=(0,S.arrayOf)((0,S.shape)({srcSet:S.string,media:S.string}));function fr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var Ht=function(d){(function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),l&&qt(c,l)})(X,d);var a,f,b,I,W=(b=X,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=yt(b);if(I){var y=yt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return uo(this,c)});function X(c){var l;return function(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}(this,X),ur(oe(l=W.call(this,c)),"onBulletClick",function(y,O){var E=l.props,C=E.onBulletClick,U=E.items,K=l.state.currentIndex;y.target.blur(),K!==O&&(U.length===2?l.slideToIndexWithStyleReset(O,y):l.slideToIndex(O,y)),C&&C(y,O)}),l.state={currentIndex:c.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(c.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},l.loadedImages={},l.imageGallery=m().createRef(),l.thumbnailsWrapper=m().createRef(),l.thumbnails=m().createRef(),l.imageGallerySlideWrapper=m().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(oe(l)),l.handleKeyDown=l.handleKeyDown.bind(oe(l)),l.handleMouseDown=l.handleMouseDown.bind(oe(l)),l.handleResize=l.handleResize.bind(oe(l)),l.handleTouchMove=l.handleTouchMove.bind(oe(l)),l.handleOnSwiped=l.handleOnSwiped.bind(oe(l)),l.handleScreenChange=l.handleScreenChange.bind(oe(l)),l.handleSwiping=l.handleSwiping.bind(oe(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(oe(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(oe(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(oe(l)),l.handleImageError=l.handleImageError.bind(oe(l)),l.pauseOrPlay=l.pauseOrPlay.bind(oe(l)),l.renderThumbInner=l.renderThumbInner.bind(oe(l)),l.renderItem=l.renderItem.bind(oe(l)),l.slideLeft=l.slideLeft.bind(oe(l)),l.slideRight=l.slideRight.bind(oe(l)),l.toggleFullScreen=l.toggleFullScreen.bind(oe(l)),l.togglePlay=l.togglePlay.bind(oe(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ce(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=X,f=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,y=c.useWindowKeyDown;l&&this.play(),y?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(c,l){var y=this.props,O=y.items,E=y.lazyLoad,C=y.slideDuration,U=y.slideInterval,K=y.startIndex,H=y.thumbnailPosition,M=y.showThumbnails,L=y.useWindowKeyDown,F=this.state,A=F.currentIndex,G=F.isPlaying,J=c.items.length!==O.length,ie=!Ee()(c.items,O),ge=c.startIndex!==K,he=c.thumbnailPosition!==H,ue=c.showThumbnails!==M;U===c.slideInterval&&C===c.slideDuration||G&&(this.pause(),this.play()),he&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),ue&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),ue&&!M&&this.removeThumbnailsResizeObserver(),(J||ue)&&this.handleResize(),l.currentIndex!==A&&this.slideThumbnailBar(),c.slideDuration!==C&&(this.slideToIndex=ce(this.unthrottledSlideToIndex,C,{trailing:!1})),!E||c.lazyLoad&&!ie||(this.lazyLoaded=[]),L!==c.useWindowKeyDown&&(L?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(ge||ie)&&this.setState({currentIndex:K,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var c=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),c?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var c=this,l=this.state,y=l.currentIndex,O=l.isTransitioning,E=this.props,C=E.onSlide,U=E.slideDuration;this.transitionTimer=window.setTimeout(function(){O&&(c.setState({isTransitioning:!O,isSwipingThumbnail:!1}),C&&C(y))},U+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,O=y.onThumbnailClick,E=y.items,C=this.state.currentIndex;c.target.parentNode.parentNode.blur(),C!==l&&(E.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),O&&O(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var y=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){y.slideToIndex(l),y.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var c=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,c&&this.play()}}},{key:"setThumbsTranslate",value:function(c){this.setState({thumbsTranslate:c})}},{key:"setModalFullscreen",value:function(c){var l=this.props.onScreenChange;this.setState({modalFullscreen:c}),l&&l(c)}},{key:"getThumbsTranslate",value:function(c){var l,y=this.props,O=y.disableThumbnailScroll,E=y.items,C=this.state,U=C.thumbnailsWrapperWidth,K=C.thumbnailsWrapperHeight,H=this.thumbnails&&this.thumbnails.current;if(O)return 0;if(H){if(this.isThumbnailVertical()){if(H.scrollHeight<=K)return 0;l=H.scrollHeight-K}else{if(H.scrollWidth<=U||U<=0)return 0;l=H.scrollWidth-U}return c*(l/(E.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(c){switch(c){case"left":c=" ".concat("image-gallery-thumbnails-left");break;case"right":c=" ".concat("image-gallery-thumbnails-right");break;case"bottom":c=" ".concat("image-gallery-thumbnails-bottom");break;case"top":c=" ".concat("image-gallery-thumbnails-top")}return c}},{key:"getAlignmentClassName",value:function(c){var l=this.state.currentIndex,y=this.props,O=y.infinite,E=y.items,C="",U="image-gallery-left",K="image-gallery-right";switch(c){case l-1:C=" ".concat(U);break;case l:C=" ".concat("image-gallery-center");break;case l+1:C=" ".concat(K)}return E.length>=3&&O&&(c===0&&l===E.length-1?C=" ".concat(K):c===E.length-1&&l===0&&(C=" ".concat(U))),C}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,E=l.previousIndex,C=y!==E,U=c===0&&E===0,K=c===1&&E===1,H=c===0&&y===1,M=c===1&&y===0,L=O===0,F=-100*y+100*c+O;return O>0?this.direction="left":O<0&&(this.direction="right"),M&&O>0&&(F=-100+O),H&&O<0&&(F=100+O),C?U&&L&&this.direction==="left"?F=100:K&&L&&this.direction==="right"&&(F=-100):(M&&L&&this.direction==="left"&&(F=-100),H&&L&&this.direction==="right"&&(F=100)),F}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,E=l.slideStyle,C=this.props,U=C.infinite,K=C.items,H=C.useTranslate3D,M=C.isRTL,L=-100*y,F=K.length-1,A=(L+100*c)*(M?-1:1)+O;U&&K.length>2&&(y===0&&c===F?A=-100*(M?-1:1)+O:y===F&&c===0&&(A=100*(M?-1:1)+O)),U&&K.length===2&&(A=this.getTranslateXForTwoSlide(c));var G="translate(".concat(A,"%, 0)");return H&&(G="translate3d(".concat(A,"%, 0, 0)")),cr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:G,MozTransform:G,msTransform:G,OTransform:G,transform:G},E)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,O=l.isRTL,E=this.state,C=E.thumbsTranslate,U=E.thumbsStyle,K=O?-1*C:C;return this.isThumbnailVertical()?(c="translate(0, ".concat(C,"px)"),y&&(c="translate3d(0, ".concat(C,"px, 0)"))):(c="translate(".concat(K,"px, 0)"),y&&(c="translate3d(".concat(K,"px, 0, 0)"))),cr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},U)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,O=y.items,E=y.slideOnThumbnailOver,C=y.onClick,U=y.lazyLoad,K=y.onTouchMove,H=y.onTouchEnd,M=y.onTouchStart,L=y.onMouseOver,F=y.onMouseLeave,A=y.renderItem,G=y.renderThumbInner,J=y.showThumbnails,ie=y.showBullets,ge=[],he=[],ue=[];return O.forEach(function(re,Z){var _e=c.getAlignmentClassName(Z),nt=re.originalClass?" ".concat(re.originalClass):"",rt=re.thumbnailClass?" ".concat(re.thumbnailClass):"",Re=re.renderItem||A||c.renderItem,Ae=re.renderThumbInner||G||c.renderThumbInner,Oe=!U||_e||c.lazyLoaded[Z];Oe&&U&&!c.lazyLoaded[Z]&&(c.lazyLoaded[Z]=!0);var Qe=c.getSlideStyle(Z),it=m().createElement("div",{"aria-label":"Go to Slide ".concat(Z+1),key:"slide-".concat(Z),tabIndex:"-1",className:"image-gallery-slide ".concat(_e," ").concat(nt),style:Qe,onClick:C,onKeyUp:c.handleSlideKeyUp,onTouchMove:K,onTouchEnd:H,onTouchStart:M,onMouseOver:L,onFocus:L,onMouseLeave:F,role:"button"},Oe?Re(re):m().createElement("div",{style:{height:"100%"}}));if(ge.push(it),J&&re.thumbnail){var Xe=p("image-gallery-thumbnail",rt,{active:l===Z});he.push(m().createElement("button",{key:"thumbnail-".concat(Z),type:"button",tabIndex:"0","aria-pressed":l===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1),className:Xe,onMouseLeave:E?c.onThumbnailMouseLeave:null,onMouseOver:function(be){return c.handleThumbnailMouseOver(be,Z)},onFocus:function(be){return c.handleThumbnailMouseOver(be,Z)},onKeyUp:function(be){return c.handleThumbnailKeyUp(be,Z)},onClick:function(be){return c.onThumbnailClick(be,Z)}},Ae(re)))}if(ie){var ot=p("image-gallery-bullet",re.bulletClass,{active:l===Z});ue.push(m().createElement("button",{type:"button",key:"bullet-".concat(Z),className:ot,onClick:function(be){return c.onBulletClick(be,Z)},"aria-pressed":l===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1)}))}}),{slides:ge,thumbnails:he,bullets:ue}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,O=l.currentIndex,E=c.length-1;return Math.abs(y-O)>1&&!(y===0&&O===E)&&!(y===E&&O===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,y=l.isTransitioning,O=l.previousIndex,E=l.currentIndex;return y&&!(c===O||c===E)}},{key:"isSlideVisible",value:function(c){return!this.slideIsTransitioning(c)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(c)}},{key:"slideThumbnailBar",value:function(){var c=this.state,l=c.currentIndex,y=c.isSwipingThumbnail,O=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:O,thumbsSwipedTranslate:O}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(c){var l=c.event,y=c.absX,O=c.dir,E=this.props,C=E.disableSwipe,U=E.stopPropagation,K=this.state,H=K.galleryWidth,M=K.isTransitioning,L=K.swipingUpDown,F=K.swipingLeftRight;if(O!==qe&&O!==We&&!L||F){if(O!==Ve&&O!==Fe||F||this.setState({swipingLeftRight:!0}),!C){var A=this.props.swipingTransitionDuration;if(U&&l.preventDefault(),M)this.setState({currentSlideOffset:0});else{var G=O===Fe?1:-1,J=y/H*100;Math.abs(J)>=100&&(J=100);var ie={transition:"transform ".concat(A,"ms ease-out")};this.setState({currentSlideOffset:G*J,slideStyle:ie})}}}else L||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,O=c.absY,E=c.dir,C=this.props,U=C.stopPropagation,K=C.swipingThumbnailTransitionDuration,H=this.state,M=H.thumbsSwipedTranslate,L=H.thumbnailsWrapperHeight,F=H.thumbnailsWrapperWidth,A=H.swipingUpDown,G=H.swipingLeftRight;if(this.isThumbnailVertical()){if((E===Ve||E===Fe||G)&&!A)return void(G||this.setState({swipingLeftRight:!0}));E!==qe&&E!==We||A||this.setState({swipingUpDown:!0})}else{if((E===qe||E===We||A)&&!G)return void(A||this.setState({swipingUpDown:!0}));E!==Ve&&E!==Fe||G||this.setState({swipingLeftRight:!0})}var J,ie,ge,he,ue,re=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(J=M+(E===We?O:-O),ie=re.scrollHeight-L+20,ge=Math.abs(J)>ie,he=J>20,ue=re.scrollHeight<=L):(J=M+(E===Fe?y:-y),ie=re.scrollWidth-F+20,ge=Math.abs(J)>ie,he=J>20,ue=re.scrollWidth<=F),!ue&&(E!==Ve&&E!==qe||!ge)&&(E!==Fe&&E!==We||!he)){U&&l.stopPropagation();var Z={transition:"transform ".concat(K,"ms ease-out")};this.setState({thumbsTranslate:J,thumbsStyle:Z})}}},{key:"handleOnThumbnailSwiped",value:function(){var c=this.state.thumbsTranslate,l=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:c,thumbsStyle:{transition:"all ".concat(l,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var c=this.state.currentSlideOffset,l=this.props.swipeThreshold;return Math.abs(c)>l}},{key:"resetSwipingDirection",value:function(){var c=this.state,l=c.swipingUpDown,y=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),y&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,y=c.dir,O=c.velocity,E=this.props,C=E.disableSwipe,U=E.stopPropagation,K=E.flickThreshold;if(!C){var H=this.props.isRTL;U&&l.stopPropagation(),this.resetSwipingDirection();var M=(y===Ve?1:-1)*(H?-1:1),L=O>K&&!(y===qe||y===We);this.handleOnSwipedTo(M,L)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,O=y.currentIndex,E=y.isTransitioning,C=O;!this.sufficientSwipe()&&!l||E||(C+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(C=O),this.unthrottledSlideToIndex(C)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,O=l.useBrowserFullscreen,E=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!y)switch(parseInt(c.keyCode||c.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(c);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(c);break;case 27:E&&!O&&this.exitFullScreen()}}},{key:"handleImageError",value:function(c){var l=this.props.onErrorImageURL;l&&c.target.src.indexOf(l)===-1&&(c.target.src=l)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var c=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(c)))}},{key:"initSlideWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeSlideWrapperObserver=new Qn(je(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperWidth:O.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new Qn(je(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperHeight:O.contentRect.height},l.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(c.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var c=this.props,l=c.onScreenChange,y=c.useBrowserFullscreen,O=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,E=this.imageGallery.current===O;l&&l(E),y&&this.setState({isFullscreen:E})}},{key:"slideToIndex",value:function(c,l){var y=this.state,O=y.currentIndex,E=y.isTransitioning,C=this.props,U=C.items,K=C.slideDuration,H=C.onBeforeSlide;if(!E){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=U.length-1,L=c;c<0?L=M:c>M&&(L=0),H&&L!==O&&H(L),this.setState({previousIndex:O,currentIndex:L,isTransitioning:L!==O,currentSlideOffset:0,slideStyle:{transition:"all ".concat(K,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"right":"left")}},{key:"slideRight",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"left":"right")}},{key:"slideTo",value:function(c,l){var y=this.state,O=y.currentIndex,E=y.isTransitioning,C=this.props.items,U=O+(l==="left"?-1:1);E||(C.length===2?this.slideToIndexWithStyleReset(U,c):this.slideToIndex(U,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,O=this.state,E=O.currentIndex,C=O.currentSlideOffset;this.setState({currentSlideOffset:C+(E>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return y.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){fr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){fr(c)&&(0,this.props.onClick)(c)}},{key:"isThumbnailVertical",value:function(){var c=this.props.thumbnailPosition;return c==="left"||c==="right"}},{key:"addScreenChangeEvent",value:function(){var c=this;hr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;hr.forEach(function(l){document.removeEventListener(l,c.handleScreenChange)})}},{key:"fullScreen",value:function(){var c=this.props.useBrowserFullscreen,l=this.imageGallery.current;c?l.requestFullscreen?l.requestFullscreen():l.msRequestFullscreen?l.msRequestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.webkitRequestFullscreen?l.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var c=this.state.isFullscreen,l=this.props.useBrowserFullscreen;c&&(l?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var c=this.props.infinite,l=this.state.currentIndex;c||this.canSlideRight()?this.slideToIndex(l+1):this.pause()}},{key:"play",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props,y=l.onPlay,O=l.slideInterval,E=l.slideDuration,C=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(O,E)),y&&c&&y(C))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return m().createElement(Zi,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:y,original:c.original,originalAlt:c.originalAlt,originalHeight:c.originalHeight,originalWidth:c.originalWidth,originalTitle:c.originalTitle,sizes:c.sizes,loading:c.loading,srcSet:c.srcSet})}},{key:"renderThumbInner",value:function(c){var l=this.props.onThumbnailError||this.handleImageError;return m().createElement("span",{className:"image-gallery-thumbnail-inner"},m().createElement("img",{className:"image-gallery-thumbnail-image",src:c.thumbnail,height:c.thumbnailHeight,width:c.thumbnailWidth,alt:c.thumbnailAlt,title:c.thumbnailTitle,loading:c.thumbnailLoading,onError:l}),c.thumbnailLabel&&m().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,O=c.modalFullscreen,E=c.isPlaying,C=this.props,U=C.additionalClass,K=C.disableThumbnailSwipe,H=C.indexSeparator,M=C.isRTL,L=C.items,F=C.thumbnailPosition,A=C.renderFullscreenButton,G=C.renderCustomControls,J=C.renderLeftNav,ie=C.renderRightNav,ge=C.showBullets,he=C.showFullscreenButton,ue=C.showIndex,re=C.showThumbnails,Z=C.showNav,_e=C.showPlayButton,nt=C.renderPlayPauseButton,rt=this.getThumbnailStyle(),Re=this.getSlideItems(),Ae=Re.slides,Oe=Re.thumbnails,Qe=Re.bullets,it=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":M}),Xe=m().createElement("div",{ref:this.imageGallerySlideWrapper,className:it},G&&G(),this.canSlide()?m().createElement(m().Fragment,null,Z&&m().createElement(m().Fragment,null,J(this.slideLeft,!this.canSlideLeft()),ie(this.slideRight,!this.canSlideRight())),m().createElement(ar,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},m().createElement("div",{className:"image-gallery-slides"},Ae))):m().createElement("div",{className:"image-gallery-slides"},Ae),_e&&nt(this.togglePlay,E),ge&&m().createElement("div",{className:"image-gallery-bullets"},m().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Qe)),he&&A(this.toggleFullScreen,y),ue&&m().createElement("div",{className:"image-gallery-index"},m().createElement("span",{className:"image-gallery-index-current"},l+1),m().createElement("span",{className:"image-gallery-index-separator"},H),m().createElement("span",{className:"image-gallery-index-total"},L.length))),ot=p("image-gallery",U,{"fullscreen-modal":O}),be=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:y}),po=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!K},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!K});return m().createElement("div",{ref:this.imageGallery,className:ot,"aria-live":"polite"},m().createElement("div",{className:be},(F==="bottom"||F==="right")&&Xe,re&&Oe.length>0?m().createElement(ar,{className:po,delta:0,onSwiping:!K&&this.handleThumbnailSwiping,onSwiped:!K&&this.handleOnThumbnailSwiped},m().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},m().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:rt,"aria-label":"Thumbnail Navigation"},Oe))):null,(F==="top"||F==="left")&&Xe))}}],f&&co(a.prototype,f),Object.defineProperty(a,"prototype",{writable:!1}),X}(m().Component);Ht.propTypes={flickThreshold:S.number,items:(0,S.arrayOf)((0,S.shape)({bulletClass:S.string,bulletOnClick:S.func,description:S.string,original:S.string,originalHeight:S.number,originalWidth:S.number,loading:S.string,thumbnailHeight:S.number,thumbnailWidth:S.number,thumbnailLoading:S.string,fullscreen:S.string,originalAlt:S.string,originalTitle:S.string,thumbnail:S.string,thumbnailAlt:S.string,thumbnailLabel:S.string,thumbnailTitle:S.string,originalClass:S.string,thumbnailClass:S.string,renderItem:S.func,renderThumbInner:S.func,imageSet:ho,srcSet:S.string,sizes:S.string})).isRequired,showNav:S.bool,autoPlay:S.bool,lazyLoad:S.bool,infinite:S.bool,showIndex:S.bool,showBullets:S.bool,showThumbnails:S.bool,showPlayButton:S.bool,showFullscreenButton:S.bool,disableThumbnailScroll:S.bool,disableKeyDown:S.bool,disableSwipe:S.bool,disableThumbnailSwipe:S.bool,useBrowserFullscreen:S.bool,onErrorImageURL:S.string,indexSeparator:S.string,thumbnailPosition:(0,S.oneOf)(["top","bottom","left","right"]),startIndex:S.number,slideDuration:S.number,slideInterval:S.number,slideOnThumbnailOver:S.bool,swipeThreshold:S.number,swipingTransitionDuration:S.number,swipingThumbnailTransitionDuration:S.number,onSlide:S.func,onBeforeSlide:S.func,onScreenChange:S.func,onPause:S.func,onPlay:S.func,onClick:S.func,onImageLoad:S.func,onImageError:S.func,onTouchMove:S.func,onTouchEnd:S.func,onTouchStart:S.func,onMouseOver:S.func,onMouseLeave:S.func,onBulletClick:S.func,onThumbnailError:S.func,onThumbnailClick:S.func,renderCustomControls:S.func,renderLeftNav:S.func,renderRightNav:S.func,renderPlayPauseButton:S.func,renderFullscreenButton:S.func,renderItem:S.func,renderThumbInner:S.func,stopPropagation:S.bool,additionalClass:S.string,useTranslate3D:S.bool,isRTL:S.bool,useWindowKeyDown:S.bool},Ht.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(d,a){return m().createElement(io,{onClick:d,disabled:a})},renderRightNav:function(d,a){return m().createElement(oo,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return m().createElement(so,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return m().createElement(ro,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const fo=Ht})(),h})())}(It)),It.exports}var Ca=Oa();const Ia=go(Ca);function Ea(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,h=e.get(r);h||(h=new Map,e.set(r,h));var u=JSON.stringify({rootMargin:i,threshold:s}),p=h.get(u);if(!p){var g=new Map,m=new IntersectionObserver(function(v){v.forEach(function(j){var w=g.get(j.target);w?.(j)})},{root:r,rootMargin:i,threshold:s});p={observer:m,entryCallbacks:g},h.set(u,p)}return{observe:function(j,w){var k,x;(k=p)==null||k.entryCallbacks.set(j,w),(x=p)==null||x.observer.observe(j)},unobserve:function(j){var w,k;(w=p)==null||w.entryCallbacks.delete(j),(k=p)==null||k.observer.unobserve(j)}}}return{getObserver:t}}var Ra="0px",Pa=[0],_a=Ea();function Ma(e){var t,n,r=(t=e?.rootMargin)!=null?t:Ra,i=(n=e?.threshold)!=null?n:Pa,s=z.useRef(null),h=z.useRef(null),u=z.useRef(null),p=z.useState(),g=p[0],m=p[1],v=z.useCallback(function(){var x=s.current;if(!x){m(void 0);return}var R=_a.getObserver({root:h.current,rootMargin:r,threshold:i});R.observe(x,function(_){m(_)}),u.current=R},[r,i]),j=z.useCallback(function(){var x=u.current,R=s.current;R&&x?.unobserve(R),u.current=null},[]),w=z.useCallback(function(x){j(),s.current=x,v()},[v,j]),k=z.useCallback(function(x){j(),h.current=x,v()},[v,j]);return[w,{entry:g,rootRef:k}]}function xn(){return xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function La(e){var t,n=Ma(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),h=z.useState(s),u=h[0],p=h[1];return s&&!u&&p(!0),[r,xn({},i,{isVisible:s,wasEverVisible:u})]}var Da=100;function za(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,h=e.delayInMs,u=h===void 0?Da:h,p=La({rootMargin:i}),g=p[0],m=p[1],v=m.rootRef,j=m.isVisible,w=!s&&!t&&j&&n;return z.useEffect(function(){if(w){var k=setTimeout(function(){r()},u);return function(){clearTimeout(k)}}},[r,w,u]),[g,{rootRef:v}]}const Fa={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Wa={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'},Aa={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'};var Jt=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Zt(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function ki(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function ji(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Ba(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var Wn={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Jt?173:189,"=":Jt?61:187,";":Jt?59:186,"'":222,"[":219,"]":221,"\\":220},De={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},wn={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},de={16:!1,18:!1,17:!1,91:!1},le={};for(var St=1;St<20;St++)Wn["f".concat(St)]=111+St;var ne=[],Lr=!1,Ti="all",Oi=[],Ft=function(t){return Wn[t.toLowerCase()]||De[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Ci(e){Ti=e||"all"}function ft(){return Ti||"all"}function Na(){return ne.slice(0)}function $a(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function Ka(e){return typeof e=="string"&&(e=Ft(e)),ne.indexOf(e)!==-1}function Ua(e,t){var n,r;e||(e=ft());for(var i in le)if(Object.prototype.hasOwnProperty.call(le,i))for(n=le[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;ft()===e&&Ci(t||"all")}function Va(e){var t=e.keyCode||e.which||e.charCode,n=ne.indexOf(t);if(n>=0&&ne.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ne.splice(0,ne.length),(t===93||t===224)&&(t=91),t in de){de[t]=!1;for(var r in De)De[r]===t&&(ye[r]=!1)}}function qa(e){if(typeof e>"u")Object.keys(le).forEach(function(h){return delete le[h]});else if(Array.isArray(e))e.forEach(function(h){h.key&&en(h)});else if(typeof e=="object")e.key&&en(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),en({key:e,scope:i,method:s,splitKey:"+"})}}var en=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,h=s===void 0?"+":s,u=ji(n);u.forEach(function(p){var g=p.split(h),m=g.length,v=g[m-1],j=v==="*"?"*":Ft(v);if(le[j]){r||(r=ft());var w=m>1?ki(De,g):[];le[j]=le[j].filter(function(k){var x=i?k.method===i:!0;return!(x&&k.scope===r&&Ba(k.mods,w))})}})};function Dr(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in de)Object.prototype.hasOwnProperty.call(de,s)&&(!de[s]&&t.mods.indexOf(+s)>-1||de[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!de[16]&&!de[18]&&!de[17]&&!de[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function zr(e,t){var n=le["*"],r=e.keyCode||e.which||e.charCode;if(ye.filter.call(this,e)){if((r===93||r===224)&&(r=91),ne.indexOf(r)===-1&&r!==229&&ne.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(k){var x=wn[k];e[k]&&ne.indexOf(x)===-1?ne.push(x):!e[k]&&ne.indexOf(x)>-1?ne.splice(ne.indexOf(x),1):k==="metaKey"&&e[k]&&ne.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ne=ne.slice(ne.indexOf(x))))}),r in de){de[r]=!0;for(var i in De)De[i]===r&&(ye[i]=!0);if(!n)return}for(var s in de)Object.prototype.hasOwnProperty.call(de,s)&&(de[s]=e[wn[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ne.indexOf(17)===-1&&ne.push(17),ne.indexOf(18)===-1&&ne.push(18),de[17]=!0,de[18]=!0);var h=ft();if(n)for(var u=0;u<n.length;u++)n[u].scope===h&&(e.type==="keydown"&&n[u].keydown||e.type==="keyup"&&n[u].keyup)&&Dr(e,n[u],h,t);if(r in le){for(var p=0;p<le[r].length;p++)if((e.type==="keydown"&&le[r][p].keydown||e.type==="keyup"&&le[r][p].keyup)&&le[r][p].key){for(var g=le[r][p],m=g.splitKey,v=g.key.split(m),j=[],w=0;w<v.length;w++)j.push(Ft(v[w]));j.sort().join("")===ne.sort().join("")&&Dr(e,g,h,t)}}}}function Ha(e){return Oi.indexOf(e)>-1}function ye(e,t,n){ne=[];var r=ji(e),i=[],s="all",h=document,u=0,p=!1,g=!0,m="+",v=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(h=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey)),typeof t=="string"&&(s=t);u<r.length;u++)e=r[u].split(m),i=[],e.length>1&&(i=ki(De,e)),e=e[e.length-1],e=e==="*"?"*":Ft(e),e in le||(le[e]=[]),le[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[u],method:n,key:r[u],splitKey:m,element:h});typeof h<"u"&&!Ha(h)&&window&&(Oi.push(h),Zt(h,"keydown",function(j){zr(j,h)},v),Lr||(Lr=!0,Zt(window,"focus",function(){ne=[]},v)),Zt(h,"keyup",function(j){zr(j,h),Va(j)},v))}function Ga(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(le).forEach(function(n){var r=le[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var tn={setScope:Ci,getScope:ft,deleteScope:Ua,getPressedKeyCodes:Na,isPressed:Ka,filter:$a,trigger:Ga,unbind:qa,keyMap:Wn,modifier:De,modifierMap:wn};for(var nn in tn)Object.prototype.hasOwnProperty.call(tn,nn)&&(ye[nn]=tn[nn]);if(typeof window<"u"){var Qa=window.hotkeys;ye.noConflict=function(e){return e&&window.hotkeys===ye&&(window.hotkeys=Qa),ye},window.hotkeys=ye}ye.filter=function(){return!0};var Ii=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},Xa=function(t){return Ii(t,["INPUT","TEXTAREA","SELECT"])};function Ya(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,h=i.filter,u=i.keyup,p=i.keydown,g=i.filterPreventDefault,m=g===void 0?!0:g,v=i.enabled,j=v===void 0?!0:v,w=i.enableOnContentEditable,k=w===void 0?!1:w,x=z.useRef(null),R=z.useCallback(function(_,T){var N,q;return h&&!h(_)?!m:Xa(_)&&!Ii(_,s)||(N=_.target)!=null&&N.isContentEditable&&!k?!0:x.current===null||document.activeElement===x.current||(q=x.current)!=null&&q.contains(document.activeElement)?(t(_,T),!0):!1},r?[x,s,h].concat(r):[x,s,h]);return z.useEffect(function(){if(!j){ye.unbind(e,R);return}return u&&p!==!0&&(n.keydown=!1),ye(e,n||{},R),function(){return ye.unbind(e,R)}},[R,e,j]),x}ye.isPressed;const Fr="ABTWallet",rn="ArcSphere";function Wr(e,t){return new RegExp(`${t}/(?<version>[0-9.]+)`,"g").exec(e)?.groups?.version}function Ja(){const e=window?.navigator?.userAgent,[t]=z.useState({wallet:e.indexOf(Fr)>-1||e.indexOf(rn)>-1,walletVersion:Wr(e,Fr),arcSphere:e.indexOf(rn)>-1,arcSphereVersion:Wr(e,rn),wechat:/MicroMessenger/i.test(e),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...bo(e)}});return t}const Ei=z.createContext({open:!1,toggleOpen:e=>{}});function Za({children:e}){const[t,n]=z.useState(!1),r=s=>{n(s??!s)},i=z.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(Ei.Provider,{value:i,children:e})}function An(){return z.useContext(Ei)}const xe={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},el=e=>Lt(async()=>{const{data:t}=await e.get(xe.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function tl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...So(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=u=>{t.onFilterChange({...n,keyword:u.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const h=u=>{const p={...n,...u};r(Gt(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:u=>{const p=u?Gt(n,(g,m)=>u.includes(m)):{};r(Gt(p,g=>g===""||g===void 0))},handleActiveMenu:u=>{u!==e.menu&&r({menu:u})},handleSort:(u,p)=>{h({sortBy:u,sortDirection:p||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{h({category:void 0,keyword:u||void 0})},handlePrice:u=>{h({price:u===e.price?void 0:u})},handleCategory:u=>{h({category:u===e.category?"":u})},handleDeveloper:u=>{h({owner:u||void 0})},handlePage:u=>{h({currentPage:u})},handleSwitchIsOfficial:u=>{h({isOfficial:u==="true"?"true":""})},handleSwitchShowResources:u=>{h({showResources:u})},handleSearchSelect:u=>{i(u)}}}const nl=(e,t,n)=>e&&t||!n,Ri=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Pi=(e,t,n)=>{const r=Co(e),i=Io(r.search);if(Eo(e)?.endsWith(".gif"))return i.imageFilter?Ro({...r,search:""}):e;if(i.imageFilter)return e;const s=n||window.blocklet?.version,{w:h,h:u}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return In(e,{...h||u?{imageFilter:"resize",w:h,h:u}:{},v:s})},rl=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],il=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),ol=e=>Array.isArray(e)?e.map(t=>t.message).join(`
|
|
2
|
-
`):e.response?.data?.error?e.response.data.error.message||e.response.data.error:e.message||e,
|
|
1
|
+
import{aF as Tn,j as o,be as Le,di as ho,dx as vt,bd as fo,r as F,f as $e,f7 as po,a1 as mo,f2 as go,f8 as Kr,cv as Lt,aA as bo,aB as On,K as V,aV as fe,f9 as yo,fa as Gt,fb as fr,cA as vo,T as Y,fc as xo,f5 as Ur,C as Ce,bA as ve,fd as Vr,fe as wo,ff as qr,dK as Hr,fg as Qt,t as Gr,Q as Et,y as Je,as as Rt,fh as So,E as Ye,aU as Qr,R as Xr,z as Cn,dq as Me,G as pr,aP as ko,eO as mr,cK as jo,fi as To,fj as Oo,fk as Co,cI as Io,M as Eo,dL as Ro,fl as Po,dJ as _o,by as Mo,Z as Lo,fm as Do,fn as gr,br as ze,V as Ke,ay as In,aO as br,o as P,bk as zo,fo as Yr,b2 as Fo,aD as xt,v as Pt,a6 as Wo,a7 as Jr,aE as Ao,bq as yr,a8 as Bo,bn as En,$ as No,D as $o,U as Ko,cQ as Uo,X as at,eD as Vo,H as Be,b as qo,n as Ho,a$ as Go,ac as Qo,cw as Xo,aH as Zr,cB as Yo,b8 as Jo,W as Zo}from"./index-2c1VoOd9.js";import{u as es}from"./index-C34tPvay.js";import{d as ts}from"./KeyboardArrowDown-BRIRZ0lk.js";import{P as ns}from"./ChevronLeft-C7cSHp9l.js";import{N as rs}from"./ChevronRight-BUUZmp3v.js";import{S as is}from"./Search-BiQ8hlgr.js";import{y as os}from"./index-DOFLIkPm.js";import{o as ss,u as as}from"./blocklet-Cu8go6Cl.js";import{A as ls}from"./Autocomplete-BBHR-e2e.js";import{V as cs}from"./Verified-M-1m4RTW.js";import{S as us,V as ds}from"./VerifiedUser-C7mhQBkH.js";import{A as hs}from"./Add-CM0i44L2.js";import{L as ei}from"./Launch-_uZBB3hy.js";import{D as fs}from"./Done-DXPJGUWm.js";import{D as ti}from"./DeleteOutline-BHEKXTkO.js";import{D as ps}from"./delete-confirm-DwwucGed.js";import{I as ms}from"./MoreVert-Ck4O28kx.js";import{g as ut}from"./get-safe-url-CHuz2b-I.js";import{B as vr}from"./ButtonGroup-B_6MNBFc.js";const gs=Tn(o.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"})),bs=Tn(o.jsx("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"})),ys=Tn(o.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"})),ac="blocklet-add-component-registry",lc="server-add-registry",vs={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m8 16l2-6l6-2l-2 6l-6 2"/><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-9v2m0 14v2m-9-9h2m14 0h2"/></g>'},lt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Dt=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const u=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:u};return t&&!Ot(g)?null:g}const s=i[0],h=s.split("-");if(h.length>1){const u={provider:r,prefix:h.shift(),name:h.join("-")};return t&&!Ot(u)?null:u}if(n&&r===""){const u={provider:r,prefix:"",name:s};return t&&!Ot(u,n)?null:u}return null},Ot=(e,t)=>e?!!((e.provider===""||e.provider.match(lt))&&(t&&e.prefix===""||e.prefix.match(lt))&&e.name.match(lt)):!1,ni=Object.freeze({left:0,top:0,width:16,height:16}),_t=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Rn=Object.freeze({...ni,..._t}),hn=Object.freeze({...Rn,body:"",hidden:!1});function xs(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function xr(e,t){const n=xs(e,t);for(const r in hn)r in _t?r in e&&!(r in n)&&(n[r]=_t[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ws(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(h){if(n[h])return i[h]=[];if(!(h in i)){i[h]=null;const u=r[h]&&r[h].parent,p=u&&s(u);p&&(i[h]=[u].concat(p))}return i[h]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Ss(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function h(u){s=xr(r[u]||i[u],s)}return h(t),n.forEach(h),xr(e,s)}function ri(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=ws(e);for(const i in r){const s=r[i];s&&(t(i,Ss(e,i,s)),n.push(i))}return n}const ks={provider:"",aliases:{},not_found:{},...ni};function Xt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ii(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Xt(e,ks))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(lt)||typeof s.body!="string"||!Xt(s,hn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],h=s.parent;if(!i.match(lt)||typeof h!="string"||!n[h]&&!r[h]||!Xt(s,hn))return null}return t}const wr=Object.create(null);function js(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ne(e,t){const n=wr[e]||(wr[e]=Object.create(null));return n[t]||(n[t]=js(e,t))}function Pn(e,t){return ii(t)?ri(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Ts(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let dt=!1;function oi(e){return typeof e=="boolean"&&(dt=e),dt}function Os(e){const t=typeof e=="string"?Dt(e,!0,dt):e;if(t){const n=Ne(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Cs(e,t){const n=Dt(e,!0,dt);if(!n)return!1;const r=Ne(n.provider,n.prefix);return Ts(r,n.name,t)}function Is(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),dt&&!t&&!e.prefix){let i=!1;return ii(e)&&(e.prefix="",ri(e,(s,h)=>{h&&Cs(s,h)&&(i=!0)})),i}const n=e.prefix;if(!Ot({provider:t,prefix:n,name:"a"}))return!1;const r=Ne(t,n);return!!Pn(r,e)}const si=Object.freeze({width:null,height:null}),ai=Object.freeze({...si,..._t}),Es=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Rs=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Sr(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Es);if(r===null||!r.length)return e;const i=[];let s=r.shift(),h=Rs.test(s);for(;;){if(h){const u=parseFloat(s);isNaN(u)?i.push(s):i.push(Math.ceil(u*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");h=!h}}const Ps=e=>e==="unset"||e==="undefined"||e==="none";function _s(e,t){const n={...Rn,...e},r={...ai,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(k=>{const x=[],R=k.hFlip,_=k.vFlip;let T=k.rotate;R?_?T+=2:(x.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),x.push("scale(-1 1)"),i.top=i.left=0):_&&(x.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),x.push("scale(1 -1)"),i.top=i.left=0);let N;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:N=i.height/2+i.top,x.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:x.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:N=i.width/2+i.left,x.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}T%2===1&&(i.left!==i.top&&(N=i.left,i.left=i.top,i.top=N),i.width!==i.height&&(N=i.width,i.width=i.height,i.height=N)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const h=r.width,u=r.height,p=i.width,g=i.height;let m,v;h===null?(v=u===null?"1em":u==="auto"?g:u,m=Sr(v,p/g)):(m=h==="auto"?p:h,v=u===null?Sr(m,g/p):u==="auto"?g:u);const j={},w=(k,x)=>{Ps(x)||(j[k]=x.toString())};return w("width",m),w("height",v),j.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:j,body:s}}const Ms=/\sid="(\S+)"/g,Ls="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ds=0;function zs(e,t=Ls){const n=[];let r;for(;r=Ms.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const h=typeof t=="function"?t(s):t+(Ds++).toString(),u=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+u+')([")]|\\.[a-z])',"g"),"$1"+h+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const fn=Object.create(null);function Fs(e,t){fn[e]=t}function pn(e){return fn[e]||fn[""]}function _n(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Mn=Object.create(null),st=["https://api.simplesvg.com","https://api.unisvg.com"],Ct=[];for(;st.length>0;)st.length===1||Math.random()>.5?Ct.push(st.shift()):Ct.push(st.pop());Mn[""]=_n({resources:["https://api.iconify.design"].concat(Ct)});function Ws(e,t){const n=_n(t);return n===null?!1:(Mn[e]=n,!0)}function Ln(e){return Mn[e]}const As=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let kr=As();function Bs(e,t){const n=Ln(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(h=>{i=Math.max(i,h.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Ns(e){return e===404}const $s=(e,t,n)=>{const r=[],i=Bs(e,t),s="icons";let h={type:s,provider:e,prefix:t,icons:[]},u=0;return n.forEach((p,g)=>{u+=p.length+1,u>=i&&g>0&&(r.push(h),h={type:s,provider:e,prefix:t,icons:[]},u=p.length),h.icons.push(p)}),r.push(h),r};function Ks(e){if(typeof e=="string"){const t=Ln(e);if(t)return t.path}return"/"}const Us=(e,t,n)=>{if(!kr){n("abort",424);return}let r=Ks(t.provider);switch(t.type){case"icons":{const s=t.prefix,u=t.icons.join(","),p=new URLSearchParams({icons:u});r+=s+".json?"+p.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;kr(e+r).then(s=>{const h=s.status;if(h!==200){setTimeout(()=>{n(Ns(h)?"abort":"next",h)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},Vs={prepare:$s,send:Us};function qs(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,h=i.prefix,u=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[h]||(p[h]=Ne(s,h));let m;u in g.icons?m=t.loaded:h===""||g.missing.has(u)?m=t.missing:m=t.pending;const v={provider:s,prefix:h,name:u};m.push(v)}),t}function li(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Hs(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const h=s.icons,u=h.pending.length;h.pending=h.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])h.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))h.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),h.pending.length!==u&&(n||li([e],s.id),s.callback(h.loaded.slice(0),h.missing.slice(0),h.pending.slice(0),s.abort))})}))}let Gs=0;function Qs(e,t,n){const r=Gs++,i=li.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(h=>{(h.loaderCallbacks||(h.loaderCallbacks=[])).push(s)}),i}function Xs(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Dt(i,t,n):i;s&&r.push(s)}),r}var Ys={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Js(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let h;if(e.random){let B=e.resources.slice(0);for(h=[];B.length>1;){const Q=Math.floor(Math.random()*B.length);h.push(B[Q]),B=B.slice(0,Q).concat(B.slice(Q+1))}h=h.concat(B)}else h=e.resources.slice(s).concat(e.resources.slice(0,s));const u=Date.now();let p="pending",g=0,m,v=null,j=[],w=[];typeof r=="function"&&w.push(r);function k(){v&&(clearTimeout(v),v=null)}function x(){p==="pending"&&(p="aborted"),k(),j.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),j=[]}function R(B,Q){Q&&(w=[]),typeof B=="function"&&w.push(B)}function _(){return{startTime:u,payload:t,status:p,queriesSent:g,queriesPending:j.length,subscribe:R,abort:x}}function T(){p="failed",w.forEach(B=>{B(void 0,m)})}function N(){j.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),j=[]}function q(B,Q,te){const se=Q!=="success";switch(j=j.filter($=>$!==B),p){case"pending":break;case"failed":if(se||!e.dataAfterTimeout)return;break;default:return}if(Q==="abort"){m=te,T();return}if(se){m=te,j.length||(h.length?ee():T());return}if(k(),N(),!e.random){const $=e.resources.indexOf(B.resource);$!==-1&&$!==e.index&&(e.index=$)}p="completed",w.forEach($=>{$(te)})}function ee(){if(p!=="pending")return;k();const B=h.shift();if(B===void 0){if(j.length){v=setTimeout(()=>{k(),p==="pending"&&(N(),T())},e.timeout);return}T();return}const Q={status:"pending",resource:B,callback:(te,se)=>{q(Q,te,se)}};j.push(Q),g++,v=setTimeout(ee,e.rotate),n(B,t,Q.callback)}return setTimeout(ee),_}function ci(e){const t={...Ys,...e};let n=[];function r(){n=n.filter(u=>u().status==="pending")}function i(u,p,g){const m=Js(t,u,p,(v,j)=>{r(),g&&g(v,j)});return n.push(m),m}function s(u){return n.find(p=>u(p))||null}return{query:i,find:s,setIndex:u=>{t.index=u},getIndex:()=>t.index,cleanup:r}}function jr(){}const Yt=Object.create(null);function Zs(e){if(!Yt[e]){const t=Ln(e);if(!t)return;const n=ci(t),r={config:t,redundancy:n};Yt[e]=r}return Yt[e]}function ea(e,t,n){let r,i;if(typeof e=="string"){const s=pn(e);if(!s)return n(void 0,424),jr;i=s.send;const h=Zs(e);h&&(r=h.redundancy)}else{const s=_n(e);if(s){r=ci(s);const h=e.resources?e.resources[0]:"",u=pn(h);u&&(i=u.send)}}return!r||!i?(n(void 0,424),jr):r.query(t,i,n)().abort}const Tr="iconify2",ht="iconify",ui=ht+"-count",Or=ht+"-version",di=36e5,ta=168;function mn(e,t){try{return e.getItem(t)}catch{}}function Dn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Cr(e,t){try{e.removeItem(t)}catch{}}function gn(e,t){return Dn(e,ui,t.toString())}function bn(e){return parseInt(mn(e,ui))||0}const zt={local:!0,session:!0},hi={local:new Set,session:new Set};let zn=!1;function na(e){zn=e}let wt=typeof window>"u"?{}:window;function fi(e){const t=e+"Storage";try{if(wt&&wt[t]&&typeof wt[t].length=="number")return wt[t]}catch{}zt[e]=!1}function pi(e,t){const n=fi(e);if(!n)return;const r=mn(n,Or);if(r!==Tr){if(r){const u=bn(n);for(let p=0;p<u;p++)Cr(n,ht+p.toString())}Dn(n,Or,Tr),gn(n,0);return}const i=Math.floor(Date.now()/di)-ta,s=u=>{const p=ht+u.toString(),g=mn(n,p);if(typeof g=="string"){try{const m=JSON.parse(g);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>i&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&t(m,u))return!0}catch{}Cr(n,p)}};let h=bn(n);for(let u=h-1;u>=0;u--)s(u)||(u===h-1?(h--,gn(n,h)):hi[e].add(u))}function mi(){if(!zn){na(!0);for(const e in zt)pi(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=Ne(r,i);if(!Pn(s,n).length)return!1;const h=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,h):h,!0})}}function ra(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in zt)pi(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function ia(e,t){zn||mi();function n(r){let i;if(!zt[r]||!(i=fi(r)))return;const s=hi[r];let h;if(s.size)s.delete(h=Array.from(s).shift());else if(h=bn(i),!gn(i,h+1))return;const u={cached:Math.floor(Date.now()/di),provider:e.provider,data:t};return Dn(i,ht+h.toString(),JSON.stringify(u))}t.lastModified&&!ra(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ir(){}function oa(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Hs(e)}))}function sa(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let s;if(!i||!(s=pn(n)))return;s.prepare(n,r,i).forEach(u=>{ea(n,u,p=>{if(typeof p!="object")u.icons.forEach(g=>{e.missing.add(g)});else try{const g=Pn(e,p);if(!g.length)return;const m=e.pendingIcons;m&&g.forEach(v=>{m.delete(v)}),ia(e,p)}catch(g){console.error(g)}oa(e)})})}))}const aa=(e,t)=>{const n=Xs(e,!0,oi()),r=qs(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Ir)}),()=>{p=!1}}const i=Object.create(null),s=[];let h,u;return r.pending.forEach(p=>{const{provider:g,prefix:m}=p;if(m===u&&g===h)return;h=g,u=m,s.push(Ne(g,m));const v=i[g]||(i[g]=Object.create(null));v[m]||(v[m]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:m,name:v}=p,j=Ne(g,m),w=j.pendingIcons||(j.pendingIcons=new Set);w.has(v)||(w.add(v),i[g][m].push(v))}),s.forEach(p=>{const{provider:g,prefix:m}=p;i[g][m].length&&sa(p,i[g][m])}),t?Qs(t,r,s):Ir};function la(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in si?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const ca=/[\s,]+/;function ua(e,t){t.split(ca).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function da(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function ha(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function fa(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function pa(e){return"data:image/svg+xml,"+fa(e)}function ma(e){return'url("'+pa(e)+'")'}let ct;function ga(){try{ct=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ct=null}}function ba(e){return ct===void 0&&ga(),ct?ct.createHTML(e):e}const gi={...ai,inline:!1},ya={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},va={display:"inline-block"},yn={backgroundColor:"currentColor"},bi={backgroundColor:"transparent"},Er={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Rr={WebkitMask:yn,mask:yn,background:bi};for(const e in Rr){const t=Rr[e];for(const n in Er)t[e+n]=Er[n]}const xa={...gi,inline:!0};function Pr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const wa=(e,t,n,r)=>{const i=n?xa:gi,s=la(i,t),h=t.mode||"svg",u={},p=t.style||{},g={...h==="svg"?ya:{},ref:r};for(let _ in t){const T=t[_];if(T!==void 0)switch(_){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[_]=T===!0||T==="true"||T===1;break;case"flip":typeof T=="string"&&ua(s,T);break;case"color":u.color=T;break;case"rotate":typeof T=="string"?s[_]=da(T):typeof T=="number"&&(s[_]=T);break;case"ariaHidden":case"aria-hidden":T!==!0&&T!=="true"&&delete g["aria-hidden"];break;default:i[_]===void 0&&(g[_]=T)}}const m=_s(e,s),v=m.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),h==="svg"){g.style={...u,...p},Object.assign(g,v);let _=0,T=t.id;return typeof T=="string"&&(T=T.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:ba(zs(m.body,T?()=>T+"ID"+_++:"iconifyReact"))},Le.createElement("svg",g)}const{body:j,width:w,height:k}=e,x=h==="mask"||(h==="bg"?!1:j.indexOf("currentColor")!==-1),R=ha(j,{...v,width:w+"",height:k+""});return g.style={...u,"--svg":ma(R),width:Pr(v.width),height:Pr(v.height),...va,...x?yn:bi,...p},Le.createElement("span",g)};oi(!0);Fs("",Vs);if(typeof document<"u"&&typeof window<"u"){mi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Is(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Ws(n,i)||console.error(r)}catch{console.error(r)}}}}class yi extends Le.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=Dt(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Os(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:aa([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const h=["iconify"];i.prefix!==""&&h.push("iconify--"+i.prefix),i.provider!==""&&h.push("iconify--"+i.provider),this._setData({data:s,classes:h}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:Le.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),wa({...Rn,...n.data},r,t._inline,t._ref)}}const Pe=Le.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Le.createElement(yi,r)});Le.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Le.createElement(yi,r)});const vi={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 18a3.5 3.5 0 0 0 0-7h-1A5 4.5 0 0 0 7 9a4.6 4.4 0 0 0-2.1 8.4M12 13v9m-3-3l3 3l3-3"/>'};var It={exports:{}},Sa=It.exports,_r;function ka(){return _r||(_r=1,function(e,t){(function(n,r){e.exports=r(ho())})(Sa,n=>(()=>{var r={703:(u,p,g)=>{var m=g(414);function v(){}function j(){}j.resetWarningCache=v,u.exports=function(){function w(R,_,T,N,q,ee){if(ee!==m){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}}function k(){return w}w.isRequired=w;var x={array:w,bool:w,func:w,number:w,object:w,string:w,symbol:w,any:w,arrayOf:k,element:w,elementType:w,instanceOf:k,node:w,objectOf:k,oneOf:k,oneOfType:k,shape:k,exact:k,checkPropTypes:j,resetWarningCache:v};return x.PropTypes=x,x}},697:(u,p,g)=>{u.exports=g(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var p=typeof Element<"u",g=typeof Map=="function",m=typeof Set=="function",v=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function j(w,k){if(w===k)return!0;if(w&&k&&typeof w=="object"&&typeof k=="object"){if(w.constructor!==k.constructor)return!1;var x,R,_,T;if(Array.isArray(w)){if((x=w.length)!=k.length)return!1;for(R=x;R--!=0;)if(!j(w[R],k[R]))return!1;return!0}if(g&&w instanceof Map&&k instanceof Map){if(w.size!==k.size)return!1;for(T=w.entries();!(R=T.next()).done;)if(!k.has(R.value[0]))return!1;for(T=w.entries();!(R=T.next()).done;)if(!j(R.value[1],k.get(R.value[0])))return!1;return!0}if(m&&w instanceof Set&&k instanceof Set){if(w.size!==k.size)return!1;for(T=w.entries();!(R=T.next()).done;)if(!k.has(R.value[0]))return!1;return!0}if(v&&ArrayBuffer.isView(w)&&ArrayBuffer.isView(k)){if((x=w.length)!=k.length)return!1;for(R=x;R--!=0;)if(w[R]!==k[R])return!1;return!0}if(w.constructor===RegExp)return w.source===k.source&&w.flags===k.flags;if(w.valueOf!==Object.prototype.valueOf)return w.valueOf()===k.valueOf();if(w.toString!==Object.prototype.toString)return w.toString()===k.toString();if((x=(_=Object.keys(w)).length)!==Object.keys(k).length)return!1;for(R=x;R--!=0;)if(!Object.prototype.hasOwnProperty.call(k,_[R]))return!1;if(p&&w instanceof Element)return!1;for(R=x;R--!=0;)if((_[R]!=="_owner"&&_[R]!=="__v"&&_[R]!=="__o"||!w.$$typeof)&&!j(w[_[R]],k[_[R]]))return!1;return!0}return w!=w&&k!=k}u.exports=function(w,k){try{return j(w,k)}catch(x){if((x.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw x}}},359:u=>{u.exports=n}},i={};function s(u){var p=i[u];if(p!==void 0)return p.exports;var g=i[u]={exports:{}};return r[u](g,g.exports,s),g.exports}s.n=u=>{var p=u&&u.__esModule?()=>u.default:()=>u;return s.d(p,{a:p}),p},s.d=(u,p)=>{for(var g in p)s.o(p,g)&&!s.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:p[g]})},s.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),s.o=(u,p)=>Object.prototype.hasOwnProperty.call(u,p),s.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var h={};return(()=>{function u(d){var a,f,b="";if(typeof d=="string"||typeof d=="number")b+=d;else if(typeof d=="object")if(Array.isArray(d))for(a=0;a<d.length;a++)d[a]&&(f=u(d[a]))&&(b&&(b+=" "),b+=f);else for(a in d)d[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var d,a,f=0,b="";f<arguments.length;)(d=arguments[f++])&&(a=u(d))&&(b&&(b+=" "),b+=a);return b}s.r(h),s.d(h,{default:()=>co});var g=s(359),m=s.n(g);const v=function(d){var a=typeof d;return d!=null&&(a=="object"||a=="function")},j=typeof vt=="object"&&vt&&vt.Object===Object&&vt;var w=typeof self=="object"&&self&&self.Object===Object&&self;const k=j||w||Function("return this")(),x=function(){return k.Date.now()};var R=/\s/,_=/^\s+/;const T=function(d){return d&&d.slice(0,function(a){for(var f=a.length;f--&&R.test(a.charAt(f)););return f}(d)+1).replace(_,"")},N=k.Symbol;var q=Object.prototype,ee=q.hasOwnProperty,B=q.toString,Q=N?N.toStringTag:void 0,te=Object.prototype.toString,se=N?N.toStringTag:void 0;const $=function(d){return d==null?d===void 0?"[object Undefined]":"[object Null]":se&&se in Object(d)?function(a){var f=ee.call(a,Q),b=a[Q];try{a[Q]=void 0;var I=!0}catch{}var W=B.call(a);return I&&(f?a[Q]=b:delete a[Q]),W}(d):function(a){return te.call(a)}(d)};var Ie=/^[-+]0x[0-9a-f]+$/i,we=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,me=parseInt;const Se=function(d){if(typeof d=="number")return d;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&$(b)=="[object Symbol]"}(d))return NaN;if(v(d)){var a=typeof d.valueOf=="function"?d.valueOf():d;d=v(a)?a+"":a}if(typeof d!="string")return d===0?d:+d;d=T(d);var f=we.test(d);return f||ke.test(d)?me(d.slice(2),f?2:8):Ie.test(d)?NaN:+d};var D=Math.max,ae=Math.min;const je=function(d,a,f){var b,I,W,X,c,l,y=0,O=!1,E=!1,C=!0;if(typeof d!="function")throw new TypeError("Expected a function");function U(A){var G=b,J=I;return b=I=void 0,y=A,X=d.apply(J,G)}function K(A){return y=A,c=setTimeout(M,a),O?U(A):X}function H(A){var G=A-l;return l===void 0||G>=a||G<0||E&&A-y>=W}function M(){var A=x();if(H(A))return L(A);c=setTimeout(M,function(G){var J=a-(G-l);return E?ae(J,W-(G-y)):J}(A))}function L(A){return c=void 0,C&&b?U(A):(b=I=void 0,X)}function z(){var A=x(),G=H(A);if(b=arguments,I=this,l=A,G){if(c===void 0)return K(l);if(E)return clearTimeout(c),c=setTimeout(M,a),U(l)}return c===void 0&&(c=setTimeout(M,a)),X}return a=Se(a)||0,v(f)&&(O=!!f.leading,W=(E="maxWait"in f)?D(Se(f.maxWait)||0,a):W,C="trailing"in f?!!f.trailing:C),z.cancel=function(){c!==void 0&&clearTimeout(c),y=0,b=l=I=c=void 0},z.flush=function(){return c===void 0?X:L(x())},z},ce=function(d,a,f){var b=!0,I=!0;if(typeof d!="function")throw new TypeError("Expected a function");return v(f)&&(b="leading"in f?!!f.leading:b,I="trailing"in f?!!f.trailing:I),je(d,a,{leading:b,maxWait:a,trailing:I})};var Te=s(590),Ee=s.n(Te),$n=function(){if(typeof Map<"u")return Map;function d(a,f){var b=-1;return a.some(function(I,W){return I[0]===f&&(b=W,!0)}),b}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(f){var b=d(this.__entries__,f),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(f,b){var I=d(this.__entries__,f);~I?this.__entries__[I][1]=b:this.__entries__.push([f,b])},a.prototype.delete=function(f){var b=this.__entries__,I=d(b,f);~I&&b.splice(I,1)},a.prototype.has=function(f){return!!~d(this.__entries__,f)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(f,b){b===void 0&&(b=null);for(var I=0,W=this.__entries__;I<W.length;I++){var X=W[I];f.call(b,X[1],X[0])}},a}()}(),Wt=typeof window<"u"&&typeof document<"u"&&window.document===document,pt=s.g!==void 0&&s.g.Math===Math?s.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),Wi=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(pt):function(d){return setTimeout(function(){return d(Date.now())},1e3/60)},Ai=["top","right","bottom","left","width","height","size","weight"],Bi=typeof MutationObserver<"u",Ni=function(){function d(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,f){var b=!1,I=!1,W=0;function X(){b&&(b=!1,a()),I&&l()}function c(){Wi(X)}function l(){var y=Date.now();if(b){if(y-W<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);W=y}return l}(this.refresh.bind(this))}return d.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},d.prototype.removeObserver=function(a){var f=this.observers_,b=f.indexOf(a);~b&&f.splice(b,1),!f.length&&this.connected_&&this.disconnect_()},d.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},d.prototype.updateObservers_=function(){var a=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return a.forEach(function(f){return f.broadcastActive()}),a.length>0},d.prototype.connect_=function(){Wt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Bi?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},d.prototype.disconnect_=function(){Wt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},d.prototype.onTransitionEnd_=function(a){var f=a.propertyName,b=f===void 0?"":f;Ai.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},d.getInstance=function(){return this.instance_||(this.instance_=new d),this.instance_},d.instance_=null,d}(),Kn=function(d,a){for(var f=0,b=Object.keys(a);f<b.length;f++){var I=b[f];Object.defineProperty(d,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return d},Ue=function(d){return d&&d.ownerDocument&&d.ownerDocument.defaultView||pt},Un=gt(0,0,0,0);function mt(d){return parseFloat(d)||0}function Vn(d){for(var a=[],f=1;f<arguments.length;f++)a[f-1]=arguments[f];return a.reduce(function(b,I){return b+mt(d["border-"+I+"-width"])},0)}var $i=typeof SVGGraphicsElement<"u"?function(d){return d instanceof Ue(d).SVGGraphicsElement}:function(d){return d instanceof Ue(d).SVGElement&&typeof d.getBBox=="function"};function Ki(d){return Wt?$i(d)?function(a){var f=a.getBBox();return gt(0,0,f.width,f.height)}(d):function(a){var f=a.clientWidth,b=a.clientHeight;if(!f&&!b)return Un;var I=Ue(a).getComputedStyle(a),W=function(C){for(var U={},K=0,H=["top","right","bottom","left"];K<H.length;K++){var M=H[K],L=C["padding-"+M];U[M]=mt(L)}return U}(I),X=W.left+W.right,c=W.top+W.bottom,l=mt(I.width),y=mt(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+X)!==f&&(l-=Vn(I,"left","right")+X),Math.round(y+c)!==b&&(y-=Vn(I,"top","bottom")+c)),!function(C){return C===Ue(C).document.documentElement}(a)){var O=Math.round(l+X)-f,E=Math.round(y+c)-b;Math.abs(O)!==1&&(l-=O),Math.abs(E)!==1&&(y-=E)}return gt(W.left,W.top,l,y)}(d):Un}function gt(d,a,f,b){return{x:d,y:a,width:f,height:b}}var Ui=function(){function d(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=gt(0,0,0,0),this.target=a}return d.prototype.isActive=function(){var a=Ki(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},d.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},d}(),Vi=function(d,a){var f,b,I,W,X,c,l,y=(b=(f=a).x,I=f.y,W=f.width,X=f.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),Kn(l,{x:b,y:I,width:W,height:X,top:I,right:b+W,bottom:X+I,left:b}),l);Kn(this,{target:d,contentRect:y})},qi=function(){function d(a,f,b){if(this.activeObservations_=[],this.observations_=new $n,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=f,this.callbackCtx_=b}return d.prototype.observe=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ue(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)||(f.set(a,new Ui(a)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(a){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(a instanceof Ue(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(a)&&(f.delete(a),f.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&a.activeObservations_.push(f)})},d.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,f=this.activeObservations_.map(function(b){return new Vi(b.target,b.broadcastRect())});this.callback_.call(a,f,a),this.clearActive()}},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},d}(),qn=typeof WeakMap<"u"?new WeakMap:new $n,Hn=function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=Ni.getInstance(),b=new qi(a,f,this);qn.set(this,b)};["observe","unobserve","disconnect"].forEach(function(d){Hn.prototype[d]=function(){var a;return(a=qn.get(this))[d].apply(a,arguments)}});const Gn=pt.ResizeObserver!==void 0?pt.ResizeObserver:Hn,Ve="Left",Fe="Right",qe="Up",We="Down",He={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},At={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Qn="mousemove",Xn="mouseup";function Yn(d,a){if(a===0)return d;const f=Math.PI/180*a;return[d[0]*Math.cos(f)+d[1]*Math.sin(f),d[1]*Math.cos(f)-d[0]*Math.sin(f)]}function Hi(d){const{trackMouse:a}=d,f=g.useRef(Object.assign({},At)),b=g.useRef(Object.assign({},He)),I=g.useRef(Object.assign({},b.current));let W;for(W in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},He),d),He)b.current[W]===void 0&&(b.current[W]=He[W]);const[X,c]=g.useMemo(()=>function(l,y){const O=M=>{const L="touches"in M;L&&M.touches.length>1||l((z,A)=>{A.trackMouse&&!L&&(document.addEventListener(Qn,E),document.addEventListener(Xn,U));const{clientX:G,clientY:J}=L?M.touches[0]:M,ie=Yn([G,J],A.rotationAngle);return A.onTouchStartOrOnMouseDown&&A.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},z),At),{initial:ie.slice(),xy:ie,start:M.timeStamp||0})})},E=M=>{l((L,z)=>{const A="touches"in M;if(A&&M.touches.length>1)return L;if(M.timeStamp-L.start>z.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:G,clientY:J}=A?M.touches[0]:M,[ie,ge]=Yn([G,J],z.rotationAngle),he=ie-L.xy[0],ue=ge-L.xy[1],re=Math.abs(he),Z=Math.abs(ue),_e=(M.timeStamp||0)-L.start,nt=Math.sqrt(re*re+Z*Z)/(_e||1),rt=[he/(_e||1),ue/(_e||1)],Re=function(it,Xe,ot,be){return it>Xe?ot>0?Fe:Ve:be>0?We:qe}(re,Z,he,ue),Ae=typeof z.delta=="number"?z.delta:z.delta[Re.toLowerCase()]||He.delta;if(re<Ae&&Z<Ae&&!L.swiping)return L;const Oe={absX:re,absY:Z,deltaX:he,deltaY:ue,dir:Re,event:M,first:L.first,initial:L.initial,velocity:nt,vxvy:rt};Oe.first&&z.onSwipeStart&&z.onSwipeStart(Oe),z.onSwiping&&z.onSwiping(Oe);let Qe=!1;return(z.onSwiping||z.onSwiped||z[`onSwiped${Re}`])&&(Qe=!0),Qe&&z.preventScrollOnSwipe&&z.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:Oe,swiping:!0})})},C=M=>{l((L,z)=>{let A;if(L.swiping&&L.eventData){if(M.timeStamp-L.start<z.swipeDuration){A=Object.assign(Object.assign({},L.eventData),{event:M}),z.onSwiped&&z.onSwiped(A);const G=z[`onSwiped${A.dir}`];G&&G(A)}}else z.onTap&&z.onTap({event:M});return z.onTouchEndOrOnMouseUp&&z.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},L),At),{eventData:A})})},U=M=>{document.removeEventListener(Qn,E),document.removeEventListener(Xn,U),C(M)},K=(M,L)=>{let z=()=>{};if(M&&M.addEventListener){const A=Object.assign(Object.assign({},He.touchEventOptions),L.touchEventOptions),G=[["touchstart",O,A],["touchmove",E,Object.assign(Object.assign({},A),L.preventScrollOnSwipe?{passive:!1}:{})],["touchend",C,A]];G.forEach(([J,ie,ge])=>M.addEventListener(J,ie,ge)),z=()=>G.forEach(([J,ie])=>M.removeEventListener(J,ie))}return z},H={ref:M=>{M!==null&&l((L,z)=>{if(L.el===M)return L;const A={};return L.el&&L.el!==M&&L.cleanUpTouch&&(L.cleanUpTouch(),A.cleanUpTouch=void 0),z.trackTouch&&M&&(A.cleanUpTouch=K(M,z)),Object.assign(Object.assign(Object.assign({},L),{el:M}),A)})}};return y.trackMouse&&(H.onMouseDown=O),[H,K]}(l=>f.current=l(f.current,b.current),{trackMouse:a}),[a]);return f.current=function(l,y,O,E){return y.trackTouch&&l.el?l.cleanUpTouch?y.preventScrollOnSwipe!==O.preventScrollOnSwipe||y.touchEventOptions.passive!==O.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:E(l.el,y)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:E(l.el,y)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(f.current,b.current,I.current,c),X}var S=s(697);function Ze(d){return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ze(d)}function Jn(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function Zn(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?Jn(Object(f),!0).forEach(function(b){Gi(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):Jn(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function Gi(d,a,f){return(a=function(b){var I=function(W,X){if(Ze(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,X);if(Ze(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return Ze(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var Qi={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},Bt=m().memo(function(d){var a=Zn(Zn({},Qi),d),f=a.description,b=a.fullscreen,I=a.handleImageLoaded,W=a.isFullscreen,X=a.onImageError,c=a.original,l=a.originalAlt,y=a.originalHeight,O=a.originalWidth,E=a.originalTitle,C=a.sizes,U=a.srcSet,K=a.loading,H=W&&b||c;return m().createElement(m().Fragment,null,m().createElement("img",{className:"image-gallery-image",src:H,alt:l,srcSet:U,height:y,width:O,sizes:C,title:E,onLoad:function(M){return I(M,c)},onError:X,loading:K}),f&&m().createElement("span",{className:"image-gallery-description"},f))});Bt.displayName="Item",Bt.propTypes={description:S.string,fullscreen:S.string,handleImageLoaded:S.func.isRequired,isFullscreen:S.bool,onImageError:S.func.isRequired,original:S.string.isRequired,originalAlt:S.string,originalHeight:S.string,originalWidth:S.string,originalTitle:S.string,sizes:S.string,srcSet:S.string,loading:S.string};const Xi=Bt;function et(d){return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},et(d)}function er(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function tr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?er(Object(f),!0).forEach(function(b){Yi(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):er(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function Yi(d,a,f){return(a=function(b){var I=function(W,X){if(et(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,X);if(et(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return et(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var Ji={left:m().createElement("polyline",{points:"15 18 9 12 15 6"}),right:m().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:m().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:m().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:m().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:m().createElement(m().Fragment,null,m().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),m().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},Zi={strokeWidth:1,viewBox:"0 0 24 24"},nr=function(d){var a=tr(tr({},Zi),d),f=a.strokeWidth,b=a.viewBox,I=a.icon;return m().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round"},Ji[I])};nr.propTypes={strokeWidth:S.number,viewBox:S.string,icon:(0,S.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const bt=nr;var Nt=m().memo(function(d){var a=d.isFullscreen,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:f,"aria-label":"Open Fullscreen"},m().createElement(bt,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Nt.displayName="Fullscreen",Nt.propTypes={isFullscreen:S.bool.isRequired,onClick:S.func.isRequired};const eo=Nt;var $t=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:f,"aria-label":"Previous Slide"},m().createElement(bt,{icon:"left",viewBox:"6 0 12 24"}))});$t.displayName="LeftNav",$t.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const to=$t;var Kt=m().memo(function(d){var a=d.disabled,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:f,"aria-label":"Next Slide"},m().createElement(bt,{icon:"right",viewBox:"6 0 12 24"}))});Kt.displayName="RightNav",Kt.propTypes={disabled:S.bool.isRequired,onClick:S.func.isRequired};const no=Kt;var Ut=m().memo(function(d){var a=d.isPlaying,f=d.onClick;return m().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:f,"aria-label":"Play or Pause Slideshow"},m().createElement(bt,{strokeWidth:2,icon:a?"pause":"play"}))});Ut.displayName="PlayPause",Ut.propTypes={isPlaying:S.bool.isRequired,onClick:S.func.isRequired};const ro=Ut;function tt(d){return tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},tt(d)}function Vt(){return Vt=Object.assign?Object.assign.bind():function(d){for(var a=1;a<arguments.length;a++){var f=arguments[a];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(d[b]=f[b])}return d},Vt.apply(this,arguments)}function rr(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function ir(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?rr(Object(f),!0).forEach(function(b){io(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):rr(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function io(d,a,f){return(a=function(b){var I=function(W,X){if(tt(W)!=="object"||W===null)return W;var c=W[Symbol.toPrimitive];if(c!==void 0){var l=c.call(W,X);if(tt(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(W)}(b,"string");return tt(I)==="symbol"?I:String(I)}(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}var oo={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},or=function(d){var a=ir(ir({},oo),d),f=a.children,b=a.className,I=Hi({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return m().createElement("div",Vt({},I,{className:b}),f)};or.propTypes={children:S.node.isRequired,className:S.string,delta:S.number,onSwiped:S.func,onSwiping:S.func};const sr=or;function Ge(d){return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Ge(d)}function ar(d,a){var f=Object.keys(d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(d);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),f.push.apply(f,b)}return f}function lr(d){for(var a=1;a<arguments.length;a++){var f=arguments[a]!=null?arguments[a]:{};a%2?ar(Object(f),!0).forEach(function(b){cr(d,b,f[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(f)):ar(Object(f)).forEach(function(b){Object.defineProperty(d,b,Object.getOwnPropertyDescriptor(f,b))})}return d}function so(d,a){for(var f=0;f<a.length;f++){var b=a[f];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(d,ur(b.key),b)}}function qt(d,a){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,b){return f.__proto__=b,f},qt(d,a)}function ao(d,a){if(a&&(Ge(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(d)}function oe(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function yt(d){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},yt(d)}function cr(d,a,f){return(a=ur(a))in d?Object.defineProperty(d,a,{value:f,enumerable:!0,configurable:!0,writable:!0}):d[a]=f,d}function ur(d){var a=function(f,b){if(Ge(f)!=="object"||f===null)return f;var I=f[Symbol.toPrimitive];if(I!==void 0){var W=I.call(f,b);if(Ge(W)!=="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(d,"string");return Ge(a)==="symbol"?a:String(a)}var dr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],lo=(0,S.arrayOf)((0,S.shape)({srcSet:S.string,media:S.string}));function hr(d){var a=parseInt(d.keyCode||d.which||0,10);return a===66||a===62}var Ht=function(d){(function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),l&&qt(c,l)})(X,d);var a,f,b,I,W=(b=X,I=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,l=yt(b);if(I){var y=yt(this).constructor;c=Reflect.construct(l,arguments,y)}else c=l.apply(this,arguments);return ao(this,c)});function X(c){var l;return function(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}(this,X),cr(oe(l=W.call(this,c)),"onBulletClick",function(y,O){var E=l.props,C=E.onBulletClick,U=E.items,K=l.state.currentIndex;y.target.blur(),K!==O&&(U.length===2?l.slideToIndexWithStyleReset(O,y):l.slideToIndex(O,y)),C&&C(y,O)}),l.state={currentIndex:c.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(c.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},l.loadedImages={},l.imageGallery=m().createRef(),l.thumbnailsWrapper=m().createRef(),l.thumbnails=m().createRef(),l.imageGallerySlideWrapper=m().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(oe(l)),l.handleKeyDown=l.handleKeyDown.bind(oe(l)),l.handleMouseDown=l.handleMouseDown.bind(oe(l)),l.handleResize=l.handleResize.bind(oe(l)),l.handleTouchMove=l.handleTouchMove.bind(oe(l)),l.handleOnSwiped=l.handleOnSwiped.bind(oe(l)),l.handleScreenChange=l.handleScreenChange.bind(oe(l)),l.handleSwiping=l.handleSwiping.bind(oe(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(oe(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(oe(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(oe(l)),l.handleImageError=l.handleImageError.bind(oe(l)),l.pauseOrPlay=l.pauseOrPlay.bind(oe(l)),l.renderThumbInner=l.renderThumbInner.bind(oe(l)),l.renderItem=l.renderItem.bind(oe(l)),l.slideLeft=l.slideLeft.bind(oe(l)),l.slideRight=l.slideRight.bind(oe(l)),l.toggleFullScreen=l.toggleFullScreen.bind(oe(l)),l.togglePlay=l.togglePlay.bind(oe(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=ce(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=X,f=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,y=c.useWindowKeyDown;l&&this.play(),y?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(c,l){var y=this.props,O=y.items,E=y.lazyLoad,C=y.slideDuration,U=y.slideInterval,K=y.startIndex,H=y.thumbnailPosition,M=y.showThumbnails,L=y.useWindowKeyDown,z=this.state,A=z.currentIndex,G=z.isPlaying,J=c.items.length!==O.length,ie=!Ee()(c.items,O),ge=c.startIndex!==K,he=c.thumbnailPosition!==H,ue=c.showThumbnails!==M;U===c.slideInterval&&C===c.slideDuration||G&&(this.pause(),this.play()),he&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),ue&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),ue&&!M&&this.removeThumbnailsResizeObserver(),(J||ue)&&this.handleResize(),l.currentIndex!==A&&this.slideThumbnailBar(),c.slideDuration!==C&&(this.slideToIndex=ce(this.unthrottledSlideToIndex,C,{trailing:!1})),!E||c.lazyLoad&&!ie||(this.lazyLoaded=[]),L!==c.useWindowKeyDown&&(L?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(ge||ie)&&this.setState({currentIndex:K,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var c=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),c?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var c=this,l=this.state,y=l.currentIndex,O=l.isTransitioning,E=this.props,C=E.onSlide,U=E.slideDuration;this.transitionTimer=window.setTimeout(function(){O&&(c.setState({isTransitioning:!O,isSwipingThumbnail:!1}),C&&C(y))},U+50)}},{key:"onThumbnailClick",value:function(c,l){var y=this.props,O=y.onThumbnailClick,E=y.items,C=this.state.currentIndex;c.target.parentNode.parentNode.blur(),C!==l&&(E.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),O&&O(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var y=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){y.slideToIndex(l),y.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var c=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,c&&this.play()}}},{key:"setThumbsTranslate",value:function(c){this.setState({thumbsTranslate:c})}},{key:"setModalFullscreen",value:function(c){var l=this.props.onScreenChange;this.setState({modalFullscreen:c}),l&&l(c)}},{key:"getThumbsTranslate",value:function(c){var l,y=this.props,O=y.disableThumbnailScroll,E=y.items,C=this.state,U=C.thumbnailsWrapperWidth,K=C.thumbnailsWrapperHeight,H=this.thumbnails&&this.thumbnails.current;if(O)return 0;if(H){if(this.isThumbnailVertical()){if(H.scrollHeight<=K)return 0;l=H.scrollHeight-K}else{if(H.scrollWidth<=U||U<=0)return 0;l=H.scrollWidth-U}return c*(l/(E.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(c){switch(c){case"left":c=" ".concat("image-gallery-thumbnails-left");break;case"right":c=" ".concat("image-gallery-thumbnails-right");break;case"bottom":c=" ".concat("image-gallery-thumbnails-bottom");break;case"top":c=" ".concat("image-gallery-thumbnails-top")}return c}},{key:"getAlignmentClassName",value:function(c){var l=this.state.currentIndex,y=this.props,O=y.infinite,E=y.items,C="",U="image-gallery-left",K="image-gallery-right";switch(c){case l-1:C=" ".concat(U);break;case l:C=" ".concat("image-gallery-center");break;case l+1:C=" ".concat(K)}return E.length>=3&&O&&(c===0&&l===E.length-1?C=" ".concat(K):c===E.length-1&&l===0&&(C=" ".concat(U))),C}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,E=l.previousIndex,C=y!==E,U=c===0&&E===0,K=c===1&&E===1,H=c===0&&y===1,M=c===1&&y===0,L=O===0,z=-100*y+100*c+O;return O>0?this.direction="left":O<0&&(this.direction="right"),M&&O>0&&(z=-100+O),H&&O<0&&(z=100+O),C?U&&L&&this.direction==="left"?z=100:K&&L&&this.direction==="right"&&(z=-100):(M&&L&&this.direction==="left"&&(z=-100),H&&L&&this.direction==="right"&&(z=100)),z}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(c){var l=this.state,y=l.currentIndex,O=l.currentSlideOffset,E=l.slideStyle,C=this.props,U=C.infinite,K=C.items,H=C.useTranslate3D,M=C.isRTL,L=-100*y,z=K.length-1,A=(L+100*c)*(M?-1:1)+O;U&&K.length>2&&(y===0&&c===z?A=-100*(M?-1:1)+O:y===z&&c===0&&(A=100*(M?-1:1)+O)),U&&K.length===2&&(A=this.getTranslateXForTwoSlide(c));var G="translate(".concat(A,"%, 0)");return H&&(G="translate3d(".concat(A,"%, 0, 0)")),lr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:G,MozTransform:G,msTransform:G,OTransform:G,transform:G},E)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,y=l.useTranslate3D,O=l.isRTL,E=this.state,C=E.thumbsTranslate,U=E.thumbsStyle,K=O?-1*C:C;return this.isThumbnailVertical()?(c="translate(0, ".concat(C,"px)"),y&&(c="translate3d(0, ".concat(C,"px, 0)"))):(c="translate(".concat(K,"px, 0)"),y&&(c="translate3d(".concat(K,"px, 0, 0)"))),lr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},U)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,y=this.props,O=y.items,E=y.slideOnThumbnailOver,C=y.onClick,U=y.lazyLoad,K=y.onTouchMove,H=y.onTouchEnd,M=y.onTouchStart,L=y.onMouseOver,z=y.onMouseLeave,A=y.renderItem,G=y.renderThumbInner,J=y.showThumbnails,ie=y.showBullets,ge=[],he=[],ue=[];return O.forEach(function(re,Z){var _e=c.getAlignmentClassName(Z),nt=re.originalClass?" ".concat(re.originalClass):"",rt=re.thumbnailClass?" ".concat(re.thumbnailClass):"",Re=re.renderItem||A||c.renderItem,Ae=re.renderThumbInner||G||c.renderThumbInner,Oe=!U||_e||c.lazyLoaded[Z];Oe&&U&&!c.lazyLoaded[Z]&&(c.lazyLoaded[Z]=!0);var Qe=c.getSlideStyle(Z),it=m().createElement("div",{"aria-label":"Go to Slide ".concat(Z+1),key:"slide-".concat(Z),tabIndex:"-1",className:"image-gallery-slide ".concat(_e," ").concat(nt),style:Qe,onClick:C,onKeyUp:c.handleSlideKeyUp,onTouchMove:K,onTouchEnd:H,onTouchStart:M,onMouseOver:L,onFocus:L,onMouseLeave:z,role:"button"},Oe?Re(re):m().createElement("div",{style:{height:"100%"}}));if(ge.push(it),J&&re.thumbnail){var Xe=p("image-gallery-thumbnail",rt,{active:l===Z});he.push(m().createElement("button",{key:"thumbnail-".concat(Z),type:"button",tabIndex:"0","aria-pressed":l===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1),className:Xe,onMouseLeave:E?c.onThumbnailMouseLeave:null,onMouseOver:function(be){return c.handleThumbnailMouseOver(be,Z)},onFocus:function(be){return c.handleThumbnailMouseOver(be,Z)},onKeyUp:function(be){return c.handleThumbnailKeyUp(be,Z)},onClick:function(be){return c.onThumbnailClick(be,Z)}},Ae(re)))}if(ie){var ot=p("image-gallery-bullet",re.bulletClass,{active:l===Z});ue.push(m().createElement("button",{type:"button",key:"bullet-".concat(Z),className:ot,onClick:function(be){return c.onBulletClick(be,Z)},"aria-pressed":l===Z?"true":"false","aria-label":"Go to Slide ".concat(Z+1)}))}}),{slides:ge,thumbnails:he,bullets:ue}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,y=l.previousIndex,O=l.currentIndex,E=c.length-1;return Math.abs(y-O)>1&&!(y===0&&O===E)&&!(y===E&&O===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,y=l.isTransitioning,O=l.previousIndex,E=l.currentIndex;return y&&!(c===O||c===E)}},{key:"isSlideVisible",value:function(c){return!this.slideIsTransitioning(c)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(c)}},{key:"slideThumbnailBar",value:function(){var c=this.state,l=c.currentIndex,y=c.isSwipingThumbnail,O=-this.getThumbsTranslate(l);y||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:O,thumbsSwipedTranslate:O}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){return this.props.infinite||this.canSlidePrevious()}},{key:"canSlideRight",value:function(){return this.props.infinite||this.canSlideNext()}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(c){var l=c.event,y=c.absX,O=c.dir,E=this.props,C=E.disableSwipe,U=E.stopPropagation,K=this.state,H=K.galleryWidth,M=K.isTransitioning,L=K.swipingUpDown,z=K.swipingLeftRight;if(O!==qe&&O!==We&&!L||z){if(O!==Ve&&O!==Fe||z||this.setState({swipingLeftRight:!0}),!C){var A=this.props.swipingTransitionDuration;if(U&&l.preventDefault(),M)this.setState({currentSlideOffset:0});else{var G=O===Fe?1:-1,J=y/H*100;Math.abs(J)>=100&&(J=100);var ie={transition:"transform ".concat(A,"ms ease-out")};this.setState({currentSlideOffset:G*J,slideStyle:ie})}}}else L||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,y=c.absX,O=c.absY,E=c.dir,C=this.props,U=C.stopPropagation,K=C.swipingThumbnailTransitionDuration,H=this.state,M=H.thumbsSwipedTranslate,L=H.thumbnailsWrapperHeight,z=H.thumbnailsWrapperWidth,A=H.swipingUpDown,G=H.swipingLeftRight;if(this.isThumbnailVertical()){if((E===Ve||E===Fe||G)&&!A)return void(G||this.setState({swipingLeftRight:!0}));E!==qe&&E!==We||A||this.setState({swipingUpDown:!0})}else{if((E===qe||E===We||A)&&!G)return void(A||this.setState({swipingUpDown:!0}));E!==Ve&&E!==Fe||G||this.setState({swipingLeftRight:!0})}var J,ie,ge,he,ue,re=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(J=M+(E===We?O:-O),ie=re.scrollHeight-L+20,ge=Math.abs(J)>ie,he=J>20,ue=re.scrollHeight<=L):(J=M+(E===Fe?y:-y),ie=re.scrollWidth-z+20,ge=Math.abs(J)>ie,he=J>20,ue=re.scrollWidth<=z),!ue&&(E!==Ve&&E!==qe||!ge)&&(E!==Fe&&E!==We||!he)){U&&l.stopPropagation();var Z={transition:"transform ".concat(K,"ms ease-out")};this.setState({thumbsTranslate:J,thumbsStyle:Z})}}},{key:"handleOnThumbnailSwiped",value:function(){var c=this.state.thumbsTranslate,l=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:c,thumbsStyle:{transition:"all ".concat(l,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var c=this.state.currentSlideOffset,l=this.props.swipeThreshold;return Math.abs(c)>l}},{key:"resetSwipingDirection",value:function(){var c=this.state,l=c.swipingUpDown,y=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),y&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,y=c.dir,O=c.velocity,E=this.props,C=E.disableSwipe,U=E.stopPropagation,K=E.flickThreshold;if(!C){var H=this.props.isRTL;U&&l.stopPropagation(),this.resetSwipingDirection();var M=(y===Ve?1:-1)*(H?-1:1),L=O>K&&!(y===qe||y===We);this.handleOnSwipedTo(M,L)}}},{key:"handleOnSwipedTo",value:function(c,l){var y=this.state,O=y.currentIndex,E=y.isTransitioning,C=O;!this.sufficientSwipe()&&!l||E||(C+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(C=O),this.unthrottledSlideToIndex(C)}},{key:"handleTouchMove",value:function(c){this.state.swipingLeftRight&&c.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(c){var l=this.props,y=l.disableKeyDown,O=l.useBrowserFullscreen,E=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!y)switch(parseInt(c.keyCode||c.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(c);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(c);break;case 27:E&&!O&&this.exitFullScreen()}}},{key:"handleImageError",value:function(c){var l=this.props.onErrorImageURL;l&&c.target.src.indexOf(l)===-1&&(c.target.src=l)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var c=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(c)))}},{key:"initSlideWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeSlideWrapperObserver=new Gn(je(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperWidth:O.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new Gn(je(function(y){y&&y.forEach(function(O){l.setState({thumbnailsWrapperHeight:O.contentRect.height},l.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(c.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var c=this.props,l=c.onScreenChange,y=c.useBrowserFullscreen,O=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,E=this.imageGallery.current===O;l&&l(E),y&&this.setState({isFullscreen:E})}},{key:"slideToIndex",value:function(c,l){var y=this.state,O=y.currentIndex,E=y.isTransitioning,C=this.props,U=C.items,K=C.slideDuration,H=C.onBeforeSlide;if(!E){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=U.length-1,L=c;c<0?L=M:c>M&&(L=0),H&&L!==O&&H(L),this.setState({previousIndex:O,currentIndex:L,isTransitioning:L!==O,currentSlideOffset:0,slideStyle:{transition:"all ".concat(K,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"right":"left")}},{key:"slideRight",value:function(c){var l=this.props.isRTL;this.slideTo(c,l?"left":"right")}},{key:"slideTo",value:function(c,l){var y=this.state,O=y.currentIndex,E=y.isTransitioning,C=this.props.items,U=O+(l==="left"?-1:1);E||(C.length===2?this.slideToIndexWithStyleReset(U,c):this.slideToIndex(U,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var y=this,O=this.state,E=O.currentIndex,C=O.currentSlideOffset;this.setState({currentSlideOffset:C+(E>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return y.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){hr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){hr(c)&&(0,this.props.onClick)(c)}},{key:"isThumbnailVertical",value:function(){var c=this.props.thumbnailPosition;return c==="left"||c==="right"}},{key:"addScreenChangeEvent",value:function(){var c=this;dr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;dr.forEach(function(l){document.removeEventListener(l,c.handleScreenChange)})}},{key:"fullScreen",value:function(){var c=this.props.useBrowserFullscreen,l=this.imageGallery.current;c?l.requestFullscreen?l.requestFullscreen():l.msRequestFullscreen?l.msRequestFullscreen():l.mozRequestFullScreen?l.mozRequestFullScreen():l.webkitRequestFullscreen?l.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var c=this.state.isFullscreen,l=this.props.useBrowserFullscreen;c&&(l?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var c=this.props.infinite,l=this.state.currentIndex;c||this.canSlideRight()?this.slideToIndex(l+1):this.pause()}},{key:"play",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props,y=l.onPlay,O=l.slideInterval,E=l.slideDuration,C=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(O,E)),y&&c&&y(C))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,y=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(y))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var y=this.props.onImageLoad;!this.loadedImages[l]&&y&&(this.loadedImages[l]=!0,y(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,y=this.props.onImageError||this.handleImageError;return m().createElement(Xi,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:y,original:c.original,originalAlt:c.originalAlt,originalHeight:c.originalHeight,originalWidth:c.originalWidth,originalTitle:c.originalTitle,sizes:c.sizes,loading:c.loading,srcSet:c.srcSet})}},{key:"renderThumbInner",value:function(c){var l=this.props.onThumbnailError||this.handleImageError;return m().createElement("span",{className:"image-gallery-thumbnail-inner"},m().createElement("img",{className:"image-gallery-thumbnail-image",src:c.thumbnail,height:c.thumbnailHeight,width:c.thumbnailWidth,alt:c.thumbnailAlt,title:c.thumbnailTitle,loading:c.thumbnailLoading,onError:l}),c.thumbnailLabel&&m().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,y=c.isFullscreen,O=c.modalFullscreen,E=c.isPlaying,C=this.props,U=C.additionalClass,K=C.disableThumbnailSwipe,H=C.indexSeparator,M=C.isRTL,L=C.items,z=C.thumbnailPosition,A=C.renderFullscreenButton,G=C.renderCustomControls,J=C.renderLeftNav,ie=C.renderRightNav,ge=C.showBullets,he=C.showFullscreenButton,ue=C.showIndex,re=C.showThumbnails,Z=C.showNav,_e=C.showPlayButton,nt=C.renderPlayPauseButton,rt=this.getThumbnailStyle(),Re=this.getSlideItems(),Ae=Re.slides,Oe=Re.thumbnails,Qe=Re.bullets,it=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(z),{"image-gallery-rtl":M}),Xe=m().createElement("div",{ref:this.imageGallerySlideWrapper,className:it},G&&G(),this.canSlide()?m().createElement(m().Fragment,null,Z&&m().createElement(m().Fragment,null,J(this.slideLeft,!this.canSlideLeft()),ie(this.slideRight,!this.canSlideRight())),m().createElement(sr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},m().createElement("div",{className:"image-gallery-slides"},Ae))):m().createElement("div",{className:"image-gallery-slides"},Ae),_e&&nt(this.togglePlay,E),ge&&m().createElement("div",{className:"image-gallery-bullets"},m().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Qe)),he&&A(this.toggleFullScreen,y),ue&&m().createElement("div",{className:"image-gallery-index"},m().createElement("span",{className:"image-gallery-index-current"},l+1),m().createElement("span",{className:"image-gallery-index-separator"},H),m().createElement("span",{className:"image-gallery-index-total"},L.length))),ot=p("image-gallery",U,{"fullscreen-modal":O}),be=p("image-gallery-content",this.getThumbnailPositionClassName(z),{fullscreen:y}),uo=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(z),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!K},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!K});return m().createElement("div",{ref:this.imageGallery,className:ot,"aria-live":"polite"},m().createElement("div",{className:be},(z==="bottom"||z==="right")&&Xe,re&&Oe.length>0?m().createElement(sr,{className:uo,delta:0,onSwiping:!K&&this.handleThumbnailSwiping,onSwiped:!K&&this.handleOnThumbnailSwiped},m().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},m().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:rt,"aria-label":"Thumbnail Navigation"},Oe))):null,(z==="top"||z==="left")&&Xe))}}],f&&so(a.prototype,f),Object.defineProperty(a,"prototype",{writable:!1}),X}(m().Component);Ht.propTypes={flickThreshold:S.number,items:(0,S.arrayOf)((0,S.shape)({bulletClass:S.string,bulletOnClick:S.func,description:S.string,original:S.string,originalHeight:S.number,originalWidth:S.number,loading:S.string,thumbnailHeight:S.number,thumbnailWidth:S.number,thumbnailLoading:S.string,fullscreen:S.string,originalAlt:S.string,originalTitle:S.string,thumbnail:S.string,thumbnailAlt:S.string,thumbnailLabel:S.string,thumbnailTitle:S.string,originalClass:S.string,thumbnailClass:S.string,renderItem:S.func,renderThumbInner:S.func,imageSet:lo,srcSet:S.string,sizes:S.string})).isRequired,showNav:S.bool,autoPlay:S.bool,lazyLoad:S.bool,infinite:S.bool,showIndex:S.bool,showBullets:S.bool,showThumbnails:S.bool,showPlayButton:S.bool,showFullscreenButton:S.bool,disableThumbnailScroll:S.bool,disableKeyDown:S.bool,disableSwipe:S.bool,disableThumbnailSwipe:S.bool,useBrowserFullscreen:S.bool,onErrorImageURL:S.string,indexSeparator:S.string,thumbnailPosition:(0,S.oneOf)(["top","bottom","left","right"]),startIndex:S.number,slideDuration:S.number,slideInterval:S.number,slideOnThumbnailOver:S.bool,swipeThreshold:S.number,swipingTransitionDuration:S.number,swipingThumbnailTransitionDuration:S.number,onSlide:S.func,onBeforeSlide:S.func,onScreenChange:S.func,onPause:S.func,onPlay:S.func,onClick:S.func,onImageLoad:S.func,onImageError:S.func,onTouchMove:S.func,onTouchEnd:S.func,onTouchStart:S.func,onMouseOver:S.func,onMouseLeave:S.func,onBulletClick:S.func,onThumbnailError:S.func,onThumbnailClick:S.func,renderCustomControls:S.func,renderLeftNav:S.func,renderRightNav:S.func,renderPlayPauseButton:S.func,renderFullscreenButton:S.func,renderItem:S.func,renderThumbInner:S.func,stopPropagation:S.bool,additionalClass:S.string,useTranslate3D:S.bool,isRTL:S.bool,useWindowKeyDown:S.bool},Ht.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onBulletClick:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(d,a){return m().createElement(to,{onClick:d,disabled:a})},renderRightNav:function(d,a){return m().createElement(no,{onClick:d,disabled:a})},renderPlayPauseButton:function(d,a){return m().createElement(ro,{onClick:d,isPlaying:a})},renderFullscreenButton:function(d,a){return m().createElement(eo,{onClick:d,isFullscreen:a})},useWindowKeyDown:!0};const co=Ht})(),h})())}(It)),It.exports}var ja=ka();const Ta=fo(ja);function Oa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,h=e.get(r);h||(h=new Map,e.set(r,h));var u=JSON.stringify({rootMargin:i,threshold:s}),p=h.get(u);if(!p){var g=new Map,m=new IntersectionObserver(function(v){v.forEach(function(j){var w=g.get(j.target);w?.(j)})},{root:r,rootMargin:i,threshold:s});p={observer:m,entryCallbacks:g},h.set(u,p)}return{observe:function(j,w){var k,x;(k=p)==null||k.entryCallbacks.set(j,w),(x=p)==null||x.observer.observe(j)},unobserve:function(j){var w,k;(w=p)==null||w.entryCallbacks.delete(j),(k=p)==null||k.observer.unobserve(j)}}}return{getObserver:t}}var Ca="0px",Ia=[0],Ea=Oa();function Ra(e){var t,n,r=(t=e?.rootMargin)!=null?t:Ca,i=(n=e?.threshold)!=null?n:Ia,s=F.useRef(null),h=F.useRef(null),u=F.useRef(null),p=F.useState(),g=p[0],m=p[1],v=F.useCallback(function(){var x=s.current;if(!x){m(void 0);return}var R=Ea.getObserver({root:h.current,rootMargin:r,threshold:i});R.observe(x,function(_){m(_)}),u.current=R},[r,i]),j=F.useCallback(function(){var x=u.current,R=s.current;R&&x?.unobserve(R),u.current=null},[]),w=F.useCallback(function(x){j(),s.current=x,v()},[v,j]),k=F.useCallback(function(x){j(),h.current=x,v()},[v,j]);return[w,{entry:g,rootRef:k}]}function vn(){return vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vn.apply(this,arguments)}function Pa(e){var t,n=Ra(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),h=F.useState(s),u=h[0],p=h[1];return s&&!u&&p(!0),[r,vn({},i,{isVisible:s,wasEverVisible:u})]}var _a=100;function Ma(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,h=e.delayInMs,u=h===void 0?_a:h,p=Pa({rootMargin:i}),g=p[0],m=p[1],v=m.rootRef,j=m.isVisible,w=!s&&!t&&j&&n;return F.useEffect(function(){if(w){var k=setTimeout(function(){r()},u);return function(){clearTimeout(k)}}},[r,w,u]),[g,{rootRef:v}]}const La={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/>'},Da={width:24,height:24,body:'<g fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M0 0h24v24H0z"/><path fill="currentColor" d="M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005.195v12.666c0 1.96-1.537 3.56-3.472 3.662l-.195.005H5.667a3.667 3.667 0 0 1-3.662-3.472L2 18.333V5.667c0-1.96 1.537-3.56 3.472-3.662L5.667 2h12.666zm-2.626 7.293a1 1 0 0 0-1.414 0L11 12.585l-1.293-1.292l-.094-.083a1 1 0 0 0-1.32 1.497l2 2l.094.083a1 1 0 0 0 1.32-.083l4-4l.083-.094a1 1 0 0 0-.083-1.32z"/></g>'},za={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>'};var Jt=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Zt(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function xi(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function wi(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function Fa(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,s=0;s<n.length;s++)r.indexOf(n[s])===-1&&(i=!1);return i}var Fn={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Jt?173:189,"=":Jt?61:187,";":Jt?59:186,"'":222,"[":219,"]":221,"\\":220},De={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},xn={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},de={16:!1,18:!1,17:!1,91:!1},le={};for(var St=1;St<20;St++)Fn["f".concat(St)]=111+St;var ne=[],Mr=!1,Si="all",ki=[],Ft=function(t){return Fn[t.toLowerCase()]||De[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ji(e){Si=e||"all"}function ft(){return Si||"all"}function Wa(){return ne.slice(0)}function Aa(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(r=!1),r}function Ba(e){return typeof e=="string"&&(e=Ft(e)),ne.indexOf(e)!==-1}function Na(e,t){var n,r;e||(e=ft());for(var i in le)if(Object.prototype.hasOwnProperty.call(le,i))for(n=le[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;ft()===e&&ji(t||"all")}function $a(e){var t=e.keyCode||e.which||e.charCode,n=ne.indexOf(t);if(n>=0&&ne.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ne.splice(0,ne.length),(t===93||t===224)&&(t=91),t in de){de[t]=!1;for(var r in De)De[r]===t&&(ye[r]=!1)}}function Ka(e){if(typeof e>"u")Object.keys(le).forEach(function(h){return delete le[h]});else if(Array.isArray(e))e.forEach(function(h){h.key&&en(h)});else if(typeof e=="object")e.key&&en(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],s=n[1];typeof i=="function"&&(s=i,i=""),en({key:e,scope:i,method:s,splitKey:"+"})}}var en=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,h=s===void 0?"+":s,u=wi(n);u.forEach(function(p){var g=p.split(h),m=g.length,v=g[m-1],j=v==="*"?"*":Ft(v);if(le[j]){r||(r=ft());var w=m>1?xi(De,g):[];le[j]=le[j].filter(function(k){var x=i?k.method===i:!0;return!(x&&k.scope===r&&Fa(k.mods,w))})}})};function Lr(e,t,n,r){if(t.element===r){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var s in de)Object.prototype.hasOwnProperty.call(de,s)&&(!de[s]&&t.mods.indexOf(+s)>-1||de[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!de[16]&&!de[18]&&!de[17]&&!de[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function Dr(e,t){var n=le["*"],r=e.keyCode||e.which||e.charCode;if(ye.filter.call(this,e)){if((r===93||r===224)&&(r=91),ne.indexOf(r)===-1&&r!==229&&ne.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(k){var x=xn[k];e[k]&&ne.indexOf(x)===-1?ne.push(x):!e[k]&&ne.indexOf(x)>-1?ne.splice(ne.indexOf(x),1):k==="metaKey"&&e[k]&&ne.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ne=ne.slice(ne.indexOf(x))))}),r in de){de[r]=!0;for(var i in De)De[i]===r&&(ye[i]=!0);if(!n)return}for(var s in de)Object.prototype.hasOwnProperty.call(de,s)&&(de[s]=e[xn[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ne.indexOf(17)===-1&&ne.push(17),ne.indexOf(18)===-1&&ne.push(18),de[17]=!0,de[18]=!0);var h=ft();if(n)for(var u=0;u<n.length;u++)n[u].scope===h&&(e.type==="keydown"&&n[u].keydown||e.type==="keyup"&&n[u].keyup)&&Lr(e,n[u],h,t);if(r in le){for(var p=0;p<le[r].length;p++)if((e.type==="keydown"&&le[r][p].keydown||e.type==="keyup"&&le[r][p].keyup)&&le[r][p].key){for(var g=le[r][p],m=g.splitKey,v=g.key.split(m),j=[],w=0;w<v.length;w++)j.push(Ft(v[w]));j.sort().join("")===ne.sort().join("")&&Lr(e,g,h,t)}}}}function Ua(e){return ki.indexOf(e)>-1}function ye(e,t,n){ne=[];var r=wi(e),i=[],s="all",h=document,u=0,p=!1,g=!0,m="+",v=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(h=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(v=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey)),typeof t=="string"&&(s=t);u<r.length;u++)e=r[u].split(m),i=[],e.length>1&&(i=xi(De,e)),e=e[e.length-1],e=e==="*"?"*":Ft(e),e in le||(le[e]=[]),le[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[u],method:n,key:r[u],splitKey:m,element:h});typeof h<"u"&&!Ua(h)&&window&&(ki.push(h),Zt(h,"keydown",function(j){Dr(j,h)},v),Mr||(Mr=!0,Zt(window,"focus",function(){ne=[]},v)),Zt(h,"keyup",function(j){Dr(j,h),$a(j)},v))}function Va(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(le).forEach(function(n){var r=le[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var tn={setScope:ji,getScope:ft,deleteScope:Na,getPressedKeyCodes:Wa,isPressed:Ba,filter:Aa,trigger:Va,unbind:Ka,keyMap:Fn,modifier:De,modifierMap:xn};for(var nn in tn)Object.prototype.hasOwnProperty.call(tn,nn)&&(ye[nn]=tn[nn]);if(typeof window<"u"){var qa=window.hotkeys;ye.noConflict=function(e){return e&&window.hotkeys===ye&&(window.hotkeys=qa),ye},window.hotkeys=ye}ye.filter=function(){return!0};var Ti=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},Ha=function(t){return Ti(t,["INPUT","TEXTAREA","SELECT"])};function Ga(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,h=i.filter,u=i.keyup,p=i.keydown,g=i.filterPreventDefault,m=g===void 0?!0:g,v=i.enabled,j=v===void 0?!0:v,w=i.enableOnContentEditable,k=w===void 0?!1:w,x=F.useRef(null),R=F.useCallback(function(_,T){var N,q;return h&&!h(_)?!m:Ha(_)&&!Ti(_,s)||(N=_.target)!=null&&N.isContentEditable&&!k?!0:x.current===null||document.activeElement===x.current||(q=x.current)!=null&&q.contains(document.activeElement)?(t(_,T),!0):!1},r?[x,s,h].concat(r):[x,s,h]);return F.useEffect(function(){if(!j){ye.unbind(e,R);return}return u&&p!==!0&&(n.keydown=!1),ye(e,n||{},R),function(){return ye.unbind(e,R)}},[R,e,j]),x}ye.isPressed;const Oi=F.createContext({open:!1,toggleOpen:e=>{}});function Qa({children:e}){const[t,n]=F.useState(!1),r=s=>{n(s??!s)},i=F.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx(Oi.Provider,{value:i,children:e})}function Wn(){return F.useContext(Oi)}const xe={nameAsc:"title",nameDesc:"title",popularity:"stats.downloads",publishAt:"lastPublishedAt",mobilePageSize:10,pageSize:18,currentPage:1,defaultCurrentPage:1,blockletsPath:"/api/v2/blocklets.json",categoriesPath:"/api/blocklets/categories",explorePath:"/api/blocklets/explore",exploreDidsPath:"/api/blocklets/dids",cacheSize:100},Xa=e=>Lt(async()=>{const{data:t}=await e.get(xe.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function Ya(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...yo(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=u=>{t.onFilterChange({...n,keyword:u.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const h=u=>{const p={...n,...u};r(Gt(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:u=>{const p=u?Gt(n,(g,m)=>u.includes(m)):{};r(Gt(p,g=>g===""||g===void 0))},handleActiveMenu:u=>{u!==e.menu&&r({menu:u})},handleSort:(u,p)=>{h({sortBy:u,sortDirection:p||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{h({category:void 0,keyword:u||void 0})},handlePrice:u=>{h({price:u===e.price?void 0:u})},handleCategory:u=>{h({category:u===e.category?"":u})},handleDeveloper:u=>{h({owner:u||void 0})},handlePage:u=>{h({currentPage:u})},handleSwitchIsOfficial:u=>{h({isOfficial:u==="true"?"true":""})},handleSwitchShowResources:u=>{h({showResources:u})},handleSearchSelect:u=>{i(u)}}}const Ja=(e,t,n)=>e&&t||!n,Ci=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ii=(e,t,n)=>{const r=jo(e),i=To(r.search);if(Oo(e)?.endsWith(".gif"))return i.imageFilter?Co({...r,search:""}):e;if(i.imageFilter)return e;const s=n||window.blocklet?.version,{w:h,h:u}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return Cn(e,{...h||u?{imageFilter:"resize",w:h,h:u}:{},v:s})},Za=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],el=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),tl=e=>Array.isArray(e)?e.map(t=>t.message).join(`
|
|
2
|
+
`):e.response?.data?.error?e.response.data.error.message||e.response.data.error:e.message||e,nl=(e,t)=>e?.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),rl=()=>window.innerWidth<=600,il={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",official:"Official Blocklets",price:"Price",category:"Category",categories:"Categories",resourceType:"Resource Type",clear:"Clear",cancel:"Cancel",search:"Search",fetchError:"Failed to fetch data, please try again later",searchPlaceholder:"Search blocklet"},explore:{title:"Explore",trending:"Trending",topRated:"Top Rated",recentlyUpdated:"Recently Updated",viewDetail:"View Details"},sort:{sort:"Sort",rating:"Rating",popularity:"Most Popular",lastPublished:"Latest Published"},category:{all:"All",placeholder:"Category name",helperText:"Please select a category"},blocklet:{noResults:"No blocklet found.",free:"Free",search:'Results for "{keyword}"',authorTag:"Blocklet by {name}",resourceTag:"Extensions for {name}",resultCount:"{count} Blocklets",emptyTip:"Tips:",filterTip:"Appropriately reduce the filter conditions",keywordTip:"Try other keywords",owner:"Blocklets from {name}",noBlockletPart1:'No Blocklets associated with"',noBlockletPart2:'"were found',noCategoryResults1:'No "',noCategoryResults2:'" Blocklets'},autocomplete:{expandResult:'View all search results for "{name}"'}},ol={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",official:"官方 Blocklet",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试",searchPlaceholder:"搜索 Blocklet"},explore:{title:"探索",trending:"趋势",topRated:"评分最高",recentlyUpdated:"最近更新",viewDetail:"查看详情"},sort:{sort:"排序",rating:"评分",popularity:"最热门",lastPublished:"最新发布"},category:{all:"全部",placeholder:"分类名称",helperText:"请选择分类"},blocklet:{noResults:"未搜索到 Blocklet",free:"免费",search:'搜索 "{keyword}" 的结果',authorTag:"{name} 的 Blocklet",resourceTag:"{name} 的拓展",resultCount:"{count} 个 Blocklet",emptyTip:"建议:",filterTip:"适当减少筛选条件",keywordTip:"尝试其他关键字",owner:"来自 {name} 的 Blocklets",noBlockletPart1:'没有找到与"',noBlockletPart2:'"相关的 Blocklets',noCategoryResults1:'无 "',noCategoryResults2:'" 类别的 Blocklets'},autocomplete:{expandResult:"查看 “{name}” 的所有搜索结果"}},rn={en:fr(il),zh:fr(ol)},Ei=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},sl=e=>(t,n)=>{const r=rn[e]?rn[e][t]:rn.en[t];return nl(r,n)||t},Ri={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!1},compact:!1,endpoint:"",wrapChildren:()=>null,t:e=>e,storeVersion:"",minItemWidth:350,serverVersion:"",layout:{},selectedCategory:void 0,categoryList:[],blockletRender:()=>null,locale:"en",categoryOptions:[],priceOptions:[],storeApi:null,baseSearch:!1,showResourcesSwitch:!1,showCategory:!1,tagFilters:[],developerName:"",onFilterChange:()=>{},updateDeveloperName:()=>{},getCategoryLocale:()=>null,search:{filters:{},cleanFilter:()=>{},handleActiveMenu:()=>{},handleSort:()=>{},handleKeyword:()=>{},handlePrice:()=>{},handleCategory:()=>{},handleDeveloper:()=>{},handleSwitchShowResources:()=>{},handleSwitchIsOfficial:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},Pi=F.createContext(Ri),{Provider:al,Consumer:cc}=Pi;function ll(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:h=!0,layout:u={},wrapChildren:p=ce=>ce,extraFilter:g=ce=>ce,baseSearch:m=!1,fetchCategoryDelay:v=0,showResourcesSwitch:j=!1,showCategory:w=!0,tagFilters:k=[],children:x,storeVersion:R,onSearchSelect:_=()=>{},endpoint:T,blockletRender:N,compact:q=!1}=e,ee=Ei(r,R),B=F.useMemo(()=>Kr({baseURL:T,headers:ee}),[T]),Q=Ya(n,{onFilterChange:i,emptyCategory:!u.showExplore,onSearchSelect:_}),[te,se]=F.useState(""),{data:$=[],error:Ie,loading:we,run:ke}=Xa(B),me=F.useMemo(()=>{const ce=ss($,[Ee=>Ee.name],["asc"]),Te=ce.findIndex(Ee=>Ee.name==="All"||Ee.locales.en==="All");return Te>-1?[{...ce[Te],_id:"All"},...ce.slice(0,Te),...ce.slice(Te+1)]:ce},[$]),Se=F.useCallback(sl(t),[t]),D=F.useMemo(()=>el(me,t),[me,t]),ae=Za(Se),je={search:Q,compact:q,errors:{fetchCategoriesError:Ie},loadings:{fetchCategoriesLoading:we},extraFilter:g,endpoint:T,queryFilter:h,layout:{showExplore:u.showExplore??!1,showCategory:u.showCategory??!0,showTitle:u.showTitle??!0,showSearch:u.showSearch??!0},minItemWidth:s,wrapChildren:p,t:Se,storeVersion:R,serverVersion:r,selectedCategory:Q.filters.category||(u.showExplore?"":"All"),categoryList:me,blockletRender:N,locale:t,categoryOptions:D,priceOptions:ae,storeApi:B,baseSearch:m,showResourcesSwitch:j,showCategory:w,tagFilters:k,onFilterChange:i,getCategoryLocale:ce=>{if(!ce)return null;const Te=$.find(Ee=>Ee._id===ce||Ee.locales.en==="All");return Te?Te.locales[t]||Te.locales.en:null},get developerName(){return te},updateDeveloperName:se};return F.useEffect(()=>{setTimeout(ke,v||0)},[T,ke,v]),o.jsx(al,{value:je,children:x})}function pe(){return F.useContext(Pi)||Ri}function _i({children:e,onClick:t,size:n=32,...r}){return o.jsx(ve,{...r,onClick:t,variant:"outlined",sx:[{minWidth:n,height:n,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(r.sx)?r.sx:[r.sx]],children:e})}function kt(e,t){return e===void 0?t:e}function An({xs:e=void 0,sm:t=void 0,md:n=void 0,lg:r=void 0,xl:i=void 0,exact:s=!1}){const h=$e(),u=Ye(h.breakpoints.down("sm")),p=Ye(h.breakpoints.between("sm","md")),g=Ye(h.breakpoints.between("md","lg")),m=Ye(h.breakpoints.between("lg","xl"));if(s)return u?e||null:p?t||null:g?n||null:m?r||null:i||null;let v=e;return u||(v=kt(t,v),p)||(v=kt(n,v),g)||(v=kt(r,v),m)?v:kt(i,v)}function cl({children:e}){const{open:t,toggleOpen:n}=Wn();return o.jsx(An,{xs:o.jsx(So,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(V,{children:e})})}function ul({loading:e=!1,disabled:t,...n}){return o.jsx(ve,{disableElevation:!0,disabled:t||e===!0,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(Ce,{size:"1em"})})}function wn({value:e,options:t,onChange:n,placeholder:r="",...i}){const s=F.useRef(null),h=$e(),[u,p]=F.useState(!1),[g,m]=F.useState(e!==null?e:""),v=Ye(h.breakpoints.down("sm"));F.useEffect(()=>{m(e!==null?e:"")},[e]);const j=F.useCallback(()=>{p(!1)},[]),w=F.useCallback(()=>{p(!0)},[]);function k(R){m(R.value),n(R.value),v&&j()}function x(R){return R===g}return o.jsxs(o.Fragment,{children:[o.jsxs(dl,{ref:s,onClick:w,variant:"outlined",size:"medium",className:["my-select__selector",Eo(g)?"":"my-select__selector--active"].join(" "),sx:{minWidth:{xs:"100px",md:"auto"},color:"text.primary",borderRadius:"8px"},...i,children:[t.find(R=>R.value===g)?.name||r,o.jsx(Io,{className:"my-select__arrowdown",component:ts,sx:{width:18,height:18}})]}),o.jsx(Ro,{open:u,anchorEl:s.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:R,placement:_})=>o.jsx(Po,{...R,style:{transformOrigin:_==="bottom"?"center top":"center bottom"},children:o.jsx(_o,{children:o.jsx(Mo,{onClickAway:j,children:o.jsx(hl,{autoFocusItem:u,onMouseEnter:w,onMouseLeave:j,children:t.map(T=>o.jsxs(Et,{onClick:()=>k(T),sx:{fontSize:14},children:[o.jsx(Lo,{sx:{mr:1,fontSize:16,visibility:x(T.value)?"visible":"hidden"}}),T.name]},T.value))})})})})})]})}const dl=ze(ul)`
|
|
3
3
|
border: 1px solid ${e=>e.theme.palette.divider};
|
|
4
4
|
padding: 6px 8px 6px 12px;
|
|
5
5
|
font-weight: ${e=>e.theme.typography.fontWeightRegular};
|
|
@@ -23,7 +23,7 @@ import{aF as On,j as o,be as Le,di as mo,dx as vt,bd as go,r as z,f7 as bo,f as
|
|
|
23
23
|
margin-right: 3px;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`,hl=ze(Hr)`
|
|
27
27
|
.my-select__option__icon {
|
|
28
28
|
color: transparent;
|
|
29
29
|
font-size: 14px;
|
|
@@ -39,7 +39,7 @@ import{aF as On,j as o,be as Le,di as mo,dx as vt,bd as go,r as z,f7 as bo,f as
|
|
|
39
39
|
color: ${e=>e.theme.palette.primary.main};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
`;function zi(){const{search:e,t}=pe(),{filters:n,handleSort:r,handlePrice:i}=e,s=Ri(t);return o.jsxs(fe,{direction:{xs:"row",md:"column"},sx:{alignItems:{xs:"center",md:"flex-start"},gap:{xs:1,md:2},width:{xs:"100%",md:"auto"},justifyContent:"space-between"},children:[o.jsx(Jr,{control:o.jsx(Zr,{checked:n.price==="free",size:"small",sx:{"& .MuiSvgIcon-fontSizeSmall":{fontSize:16,color:"text.hint"}},onChange:h=>i(h.target.checked?"free":"")}),label:t("blocklet.free")}),o.jsx(Sn,{value:n.sortBy||s[0].value,options:s,onChange:h=>r(h),placeholder:t("sort.sort")})]})}function bl({menus:e=[]}){const{selectedCategory:t,search:n,t:r,categoryOptions:i,loadings:s,layout:h,baseSearch:u,compact:p}=pe(),{filters:g,handleActiveMenu:m,handleCategory:v,cleanFilter:j}=n,{toggleOpen:w}=An();z.useEffect(()=>{w(!1)},[Object.values(g).join("")]);const k=nl(u,h.showSearch,g.keyword);return h.showCategory&&!p?o.jsxs(fl,{children:[o.jsx(Bn,{xs:o.jsxs(fe,{direction:"row",justifyContent:"space-between",alignItems:"center",p:2,mb:.5,gap:2,borderBottom:1,borderColor:"divider",children:[o.jsx(Di,{onClick:()=>w(!1),children:o.jsx(Hr,{})}),o.jsx(Y,{flex:1,variant:"body1",fontWeight:"fontWeightMedium",children:r("common.category")})]}),md:null}),o.jsx(fe,{visibility:s.fetchCategoriesLoading?"hidden":"visible",width:{xs:268,md:200},boxSizing:"content-box",p:{xs:2,md:0},pr:{md:6},children:k?o.jsxs(o.Fragment,{children:[h.showExplore&&o.jsxs(V,{mb:3,pb:3,borderBottom:1,borderColor:"divider",children:[o.jsxs(V,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(Pe,{icon:Ss,width:20,height:20}),o.jsx(Y,{variant:"body1",color:!t&&!g.menu?"text.primary":"grey.400",fontWeight:!t&&!g.menu?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),j()},children:r("explore.title")})]}),e.map(x=>o.jsxs(V,{display:"flex",alignItems:"center",mt:2,gap:1,children:[typeof x.icon=="string"?o.jsx(Pe,{icon:x.icon,width:20,height:20}):x.icon,o.jsx(Y,{variant:"body1",color:g.menu===x.key?"text.primary":"grey.400",fontWeight:g.menu===x.key?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),m(x.key),x.onClick?.()},children:x.title})]},x.key))]}),!!i.length&&o.jsx(fe,{gap:2,children:i.map(x=>o.jsx(Y,{variant:"body1",title:x.name,sx:{cursor:"pointer"},"data-cy":"filter",color:t===x.value?"text.primary":"grey.400",textTransform:"capitalize",onClick:()=>{t===x.value?j():v(x.value),w(!1)},children:x.name},x.value))})]}):o.jsx(zi,{})})]}):null}function Nn(){const{endpoint:e,serverVersion:t,storeVersion:n}=pe(),r=_i(t,n),i=z.useMemo(()=>qr({baseURL:e,headers:r}),[e]);return{get:async s=>{const{data:h}=await i.get(s);return h},post:async(s,h)=>{const{data:u}=await i.post(s,h);return u}}}const Fi=z.memo(function(e){return o.jsx(V,{...e,sx:[{height:60,display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(e.sx)?e.sx:[e.sx]],children:o.jsx(Ce,{})})});function Ar({icon:e=null,children:t=null,maxWidth:n=100,title:r=""}){return(t===0||t)&&o.jsxs(fe,{direction:"row",sx:{alignItems:"center",gap:1,maxWidth:n,overflow:"hidden"},children:[e,o.jsx(Y,{variant:"body2",title:r||(typeof t=="string"?t:void 0),sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}const yl=16/9,sn=292,kn=189,Mt=336;function vl(){const{t:e,search:t}=pe(),{get:n}=Nn(),r=$e(),i=Ye(r.breakpoints.down("md")),s=window.blocklet?.preferences?.homeBanner||[],{data:h=[],error:u,loading:p}=Lt(async()=>{const x=await n(In(xe.blockletsPath,{didList:s.map(R=>R.did).join(",")}));return x?.dataList?s.map(R=>x.dataList.find(_=>_.did===R.did)):[]});u&&console.error("Get Banner Blocklets error:",u);const g={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:100,cursor:"pointer",color:"text.hint"};return!u&&s.length>0?o.jsxs(o.Fragment,{children:[o.jsx(Y,{component:"h2",variant:"h2",sx:{mt:{xs:2,md:0},mb:3},children:e("explore.title")}),o.jsx(V,{sx:{height:{xs:"auto",md:sn},minHeight:sn,position:"relative",border:1,borderColor:"divider",borderRadius:3,overflow:"hidden"},children:p?o.jsxs(V,{sx:{p:5,display:{md:"flex"},gap:5,alignItems:"center",justifyContent:"center"},children:[o.jsx(Me,{variant:"rounded",height:kn,width:Mt}),o.jsxs(V,{sx:{flex:1,height:"100%"},children:[o.jsx(Me,{variant:"text",height:50,width:100}),o.jsx(Me,{variant:"text",height:40,width:"100%"}),o.jsx(Me,{variant:"text",height:40,width:300}),o.jsxs(V,{sx:{display:"flex",gap:1,my:2},children:[o.jsx(Me,{variant:"circular",height:20,width:20}),o.jsx(Me,{variant:"text",height:20,width:50})]}),o.jsx(Me,{variant:"rounded",height:30,width:100})]})]}):o.jsx(Ia,{showNav:!0,autoPlay:!0,slideDuration:i?500:1e3,slideInterval:5e3,showPlayButton:!1,showIndex:!1,showBullets:!1,showThumbnails:!1,showFullscreenButton:!1,renderLeftNav:x=>o.jsx(V,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(os,{sx:{...g,left:5}})}),renderRightNav:x=>o.jsx(V,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(ss,{sx:{...g,right:5}})}),items:s.map((x,R)=>({original:x.did,renderItem:()=>{const _=h[R]||{},T=x.cover||wl(x.did,_.screenshots?.[0]),N=Pi(T,r.breakpoints.values.md*2);return o.jsxs(fe,{direction:{xs:"column",md:"row"},onClick:()=>t.handleSearchSelect(_),sx:{height:{xs:"auto",md:sn},display:"flex",justifyContent:"center",alignItems:{xs:"flex-start",md:"center"},p:{xs:2,md:5},gap:{xs:2,md:5},cursor:"pointer","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url("${N}")`,backgroundSize:"cover",filter:"blur(50px)",opacity:.15,zIndex:0}},children:[m(N),o.jsxs(fe,{sx:{flex:1,height:"100%",gap:3},children:[o.jsxs(V,{sx:{flex:1},children:[v(x.name||_.title||x.name),j(x.desc||_.description)]}),_.did&&w(_,x.baseNum),k(_)]})]})}}))})})]}):null;function m(x){return o.jsx(V,{sx:{borderRadius:2,overflow:"hidden",position:"relative",width:{xs:"100%",md:Mt}},children:o.jsx(Sl,{url:x})})}function v(x){return o.jsx(Y,{variant:"h2",sx:{width:"100%"},children:x})}function j(x){return o.jsx(Y,{variant:"body2",sx:{color:"text.secondary",textAlign:"left",width:"100%",minHeight:70,maxHeight:71,pt:1,display:"-webkit-box",lineClamp:3,WebkitLineClamp:3,textWrap:"wrap",overflow:"hidden",WebkitBoxOrient:"vertical"},children:x})}function w(x,R=0){const{did:_,owner:T,stats:N}=x;return o.jsxs(V,{sx:{display:"flex",alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx(Ar,{icon:o.jsx(Rt,{src:T.avatar,did:_,size:20,variant:"circle"}),children:T.fullName}),o.jsx(Ar,{icon:o.jsx(Pe,{icon:Si}),title:`${N.downloads+R}`,children:xl(N.downloads+R)})]})}function k(x){return o.jsx(ve,{variant:"outlined",size:"small",onClick:()=>t.handleSearchSelect(x),sx:{width:"fit-content",textTransform:"none",borderRadius:1,borderColor:"grey.300","&:hover":{borderColor:"divider"}},children:e("explore.viewDetail")})}}const xl=e=>Number.isNaN(e)?0:e<1e3?e:e<1e6?`${(e/1e3).toFixed(1)}k`:e<1e9?`${(e/1e6).toFixed(1)}m`:`${(e/1e9).toFixed(1)}b`,wl=(e,t)=>e&&t?`/assets/${e}/screenshots/${t}`:"";function Sl({url:e}){const[t,n]=z.useState(!0);return o.jsxs(o.Fragment,{children:[t&&o.jsx(Me,{variant:"rectangular",sx:{width:{xs:"100%",md:Mt},height:{xs:"auto",md:kn}}}),o.jsx(V,{component:"img",src:e,alt:"",onLoad:()=>n(!1),onError:()=>n(!1),sx:{display:t?"none":"block",width:{xs:"100%",md:Mt},height:{xs:"auto",md:kn},borderRadius:2,border:1,borderColor:"divider",objectFit:"container",cursor:"pointer",aspectRatio:yl}})]})}function kl({title:e,blocklets:t}){const{blockletRender:n,serverVersion:r}=pe();return o.jsxs(V,{sx:{mt:3},children:[o.jsx(Y,{component:"h3",variant:"h3",sx:{mb:2},children:e}),o.jsx(mr,{container:!0,spacing:2,sx:{boxSizing:"border-box",maxWidth:"calc(100vw - 16px)"},children:t.map(i=>o.jsx(mr,{"data-blocklet-did":i.did,sx:{p:"2px"},size:{xs:12,md:6},children:o.jsx(V,{sx:{padding:"1px"},children:n({blocklet:i,blocklets:t,serverVersion:r})})},i.did))})]})}function jl(){const{get:e}=Nn(),{t}=pe(),{data:n=[],error:r,loading:i}=Lt(async()=>{const s=await e(xe.explorePath);return Array.isArray(s)?s:[]});return r?o.jsx(Cn,{error:new Error(`Failed to fetch blocklets from ${xe.explorePath}`)}):i?o.jsx(Fi,{mt:15}):o.jsxs(o.Fragment,{children:[o.jsx(vl,{}),n.map(s=>s.blocklets?.length>0?o.jsx(kl,{title:t(`explore.${s.type}`),blocklets:s.blocklets},s.type):null)]})}const an="__FREE_TEXT__",Br="__NO_RESULT__",ln=40;function Wi({endpoint:e,t,locale:n,filters:r,handleKeyword:i,handleSearchSelect:s,...h}){const u=z.useRef(null),p=z.useRef(!1),[g,m]=z.useState(!1),[v,j]=z.useState(""),[w,k]=z.useState(!1),x=Nn(),[R,_]=z.useState(!1),T=h?.placeholder||t("common.searchStore"),N=async D=>{_(!0);const ae=await x.get(Je(e,In(xe.blockletsPath,D)));return _(!1),ae.dataList||[]},{data:q,run:ee}=Lt(D=>D?N({sortBy:xe.nameDesc,page:1,pageSize:10,keyword:D,showResources:"true"}):Promise.resolve([]),{manual:!0});z.useEffect(()=>{_(!0),ee(r.keyword),j(r.keyword||"")},[r.keyword,ee]),Ya("ctrl + k, command + k",D=>(D.stopPropagation(),D.preventDefault(),u.current?.querySelector("input")?.focus(),!1),{enableOnTags:["INPUT"]});const B=Gr(D=>ee(D),{wait:300}),Q={name:an,title:v,did:""};let te=[];return v&&(R?te=[Q]:q?.length?te=[Q,...q]:te=[{name:Br,title:t("blocklet.noResults"),did:""}]),o.jsxs(o.Fragment,{children:[o.jsxs(jo,{fullScreen:!0,open:w,sx:{display:{md:"none"}},children:[o.jsxs(V,{sx:{p:2,pb:0,display:"flex",alignItems:"center",gap:2},children:[o.jsx(Qr,{fullWidth:!0,sx:{bgcolor:"grey.50",px:1,py:.5,".MuiInputBase-input":{p:1},".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,onChange:D=>se(D.target.value),startAdornment:me(w),endAdornment:Se()}),o.jsx(ve,{variant:"outlined",onClick:()=>{k(!1),j(r.keyword||"")},children:t("common.cancel")})]}),o.jsx(Xr,{sx:{p:.5},children:te.map(D=>we(D))})]}),o.jsx(V,{sx:{display:{sx:"block",md:"none"},paddingTop:1,opacity:.5},children:o.jsx(Pe,{icon:Qt,style:{fontSize:22,color:"inherit"},onClick:()=>k(!0)})}),o.jsx(ds,{ref:u,open:!!v&&g,size:"small",onOpen:()=>m(!0),onClose:(D,ae)=>{m(!1),ae==="selectOption"&&!p.current&&i(v)},onKeyDown:D=>{D.key==="Enter"&&!v&&$()},disableClearable:!0,inputValue:v,onInputChange:(D,ae)=>se(ae),isOptionEqualToValue:(D,ae)=>D.name===ae.name,getOptionLabel:D=>D.title,getOptionKey:D=>D.name,noOptionsText:t("blocklet.noResults"),autoHighlight:!0,forcePopupIcon:!1,slotProps:{paper:{sx:{mt:.5,minWidth:"100%",width:"fit-content","& > ul":{p:.5}}}},renderInput:D=>o.jsx(Yr,{...D,InputProps:{...D.InputProps,autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,startAdornment:me(g),endAdornment:Se()}}),filterOptions:D=>D,...h,options:te,renderOption:(D,ae)=>we(ae),value:Q,sx:[{bgcolor:"grey.50",borderRadius:"8px",overflow:"hidden",".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},...Array.isArray(h.sx)?h.sx:[h.sx]]})]});function se(D){_(!0),j(D),p.current=!1,B.run(D)}function $(){k(!1),j(""),se(""),i("")}function Ie(D){D?.did?(k(!1),p.current=!0,j(""),s(D)):D.name===an&&(k(!1),i(v))}function we(D){return o.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1,p:1.5,borderRadius:"8px"},onClick:()=>Ie(D),children:[ke(D),o.jsxs(Y,{variant:"body1",children:[o.jsx(Y,{sx:{fontWeight:"fontWeightMedium",display:"flex",alignItems:"center",gap:1},children:D.title}),o.jsx(Y,{sx:{fontSize:"13px",color:"text.hint"},children:D.category?.locales?.[n||"en"]||""})]})]},D.did)}function ke(D){if([an,Br].includes(D.name))return o.jsx(V,{sx:{width:ln,p:"6px",display:"flex",justifyContent:"center",alignItems:"center",color:"text.hint",bgcolor:"grey.100",borderRadius:"8px"},children:o.jsx(Pe,{icon:Qt,style:{fontSize:28}})});let ae="";return D.logo&&(ae=Je(e,"assets",D.did,Pi(D.logo,ln,D.version))),o.jsx(Rt,{src:ae,size:ln,style:{borderRadius:"8px",overflow:"hidden"}})}function me(D=!0){return o.jsx(V,{sx:{display:"flex",pl:.5,alignItems:"center",color:"text.hint"},children:D&&v&&R?o.jsx(Ce,{color:"inherit",size:16}):o.jsx(Pe,{icon:Qt,style:{fontSize:16,cursor:"default"}})})}function Se(){return v?o.jsx(V,{sx:{display:"flex",alignItems:"center",color:"text.hint"},children:o.jsx(Pe,{icon:Aa,style:{fontSize:20,cursor:"pointer",color:"inherit"},onClick:()=>$()})}):null}}function Tl({placeholder:e,...t}){const{search:n,t:r}=pe(),{filters:i,handleKeyword:s}=n,[h,u]=z.useState(i.keyword||""),p=Gr(s,{wait:300}),g=j=>{const{value:w}=j.target;u(w),p.run(w)},m=()=>{u(""),s("")};z.useEffect(()=>{u(i.keyword||"")},[i.keyword]);const v=e||r("common.searchPlaceholder");return o.jsx(Ol,{inputProps:{"data-cy":"search-blocklet"},startAdornment:o.jsx(br,{position:"start",children:o.jsx(Cl,{sx:{fontSize:18,ml:-.5}})}),onChange:g,placeholder:v,value:h,title:v,"data-cy":"search",endAdornment:h&&o.jsx(br,{position:"end",children:o.jsx(Il,{"data-cy":"search-delete",onClick:m})}),...t})}const Ol=ze(Qr)`
|
|
42
|
+
`;function Mi(){const{search:e,t}=pe(),{filters:n,handleSort:r,handlePrice:i}=e,s=Ci(t);return o.jsxs(fe,{direction:{xs:"row",md:"column"},sx:{alignItems:{xs:"center",md:"flex-start"},gap:{xs:1,md:2},width:{xs:"100%",md:"auto"},justifyContent:"space-between"},children:[o.jsx(Qr,{control:o.jsx(Xr,{checked:n.price==="free",size:"small",sx:{"& .MuiSvgIcon-fontSizeSmall":{fontSize:16,color:"text.hint"}},onChange:h=>i(h.target.checked?"free":"")}),label:t("blocklet.free")}),o.jsx(wn,{value:n.sortBy||s[0].value,options:s,onChange:h=>r(h),placeholder:t("sort.sort")})]})}function fl({menus:e=[]}){const{selectedCategory:t,search:n,t:r,categoryOptions:i,loadings:s,layout:h,baseSearch:u,compact:p}=pe(),{filters:g,handleActiveMenu:m,handleCategory:v,cleanFilter:j}=n,{toggleOpen:w}=Wn();F.useEffect(()=>{w(!1)},[Object.values(g).join("")]);const k=Ja(u,h.showSearch,g.keyword);return h.showCategory&&!p?o.jsxs(cl,{children:[o.jsx(An,{xs:o.jsxs(fe,{direction:"row",justifyContent:"space-between",alignItems:"center",p:2,mb:.5,gap:2,borderBottom:1,borderColor:"divider",children:[o.jsx(_i,{onClick:()=>w(!1),children:o.jsx(Ur,{})}),o.jsx(Y,{flex:1,variant:"body1",fontWeight:"fontWeightMedium",children:r("common.category")})]}),md:null}),o.jsx(fe,{visibility:s.fetchCategoriesLoading?"hidden":"visible",width:{xs:268,md:200},boxSizing:"content-box",p:{xs:2,md:0},pr:{md:6},children:k?o.jsxs(o.Fragment,{children:[h.showExplore&&o.jsxs(V,{mb:3,pb:3,borderBottom:1,borderColor:"divider",children:[o.jsxs(V,{display:"flex",alignItems:"center",gap:1,children:[o.jsx(Pe,{icon:vs,width:20,height:20}),o.jsx(Y,{variant:"body1",color:!t&&!g.menu?"text.primary":"grey.400",fontWeight:!t&&!g.menu?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),j()},children:r("explore.title")})]}),e.map(x=>o.jsxs(V,{display:"flex",alignItems:"center",mt:2,gap:1,children:[typeof x.icon=="string"?o.jsx(Pe,{icon:x.icon,width:20,height:20}):x.icon,o.jsx(Y,{variant:"body1",color:g.menu===x.key?"text.primary":"grey.400",fontWeight:g.menu===x.key?"fontWeightMedium":void 0,sx:{cursor:"pointer"},onClick:()=>{w(!1),m(x.key),x.onClick?.()},children:x.title})]},x.key))]}),!!i.length&&o.jsx(fe,{gap:2,children:i.map(x=>o.jsx(Y,{variant:"body1",title:x.name,sx:{cursor:"pointer"},"data-cy":"filter",color:t===x.value?"text.primary":"grey.400",textTransform:"capitalize",onClick:()=>{t===x.value?j():v(x.value),w(!1)},children:x.name},x.value))})]}):o.jsx(Mi,{})})]}):null}function Bn(){const{endpoint:e,serverVersion:t,storeVersion:n}=pe(),r=Ei(t,n),i=F.useMemo(()=>Kr({baseURL:e,headers:r}),[e]);return{get:async s=>{const{data:h}=await i.get(s);return h},post:async(s,h)=>{const{data:u}=await i.post(s,h);return u}}}const Li=F.memo(function(e){return o.jsx(V,{...e,sx:[{height:60,display:"flex",alignItems:"center",justifyContent:"center"},...Array.isArray(e.sx)?e.sx:[e.sx]],children:o.jsx(Ce,{})})});function zr({icon:e=null,children:t=null,maxWidth:n=100,title:r=""}){return(t===0||t)&&o.jsxs(fe,{direction:"row",sx:{alignItems:"center",gap:1,maxWidth:n,overflow:"hidden"},children:[e,o.jsx(Y,{variant:"body2",title:r||(typeof t=="string"?t:void 0),sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})]})}const pl=16/9,on=292,Sn=189,Mt=336;function ml(){const{t:e,search:t}=pe(),{get:n}=Bn(),r=$e(),i=Ye(r.breakpoints.down("md")),s=window.blocklet?.preferences?.homeBanner||[],{data:h=[],error:u,loading:p}=Lt(async()=>{const x=await n(Cn(xe.blockletsPath,{didList:s.map(R=>R.did).join(",")}));return x?.dataList?s.map(R=>x.dataList.find(_=>_.did===R.did)):[]});u&&console.error("Get Banner Blocklets error:",u);const g={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:100,cursor:"pointer",color:"text.hint"};return!u&&s.length>0?o.jsxs(o.Fragment,{children:[o.jsx(Y,{component:"h2",variant:"h2",sx:{mt:{xs:2,md:0},mb:3},children:e("explore.title")}),o.jsx(V,{sx:{height:{xs:"auto",md:on},minHeight:on,position:"relative",border:1,borderColor:"divider",borderRadius:3,overflow:"hidden"},children:p?o.jsxs(V,{sx:{p:5,display:{md:"flex"},gap:5,alignItems:"center",justifyContent:"center"},children:[o.jsx(Me,{variant:"rounded",height:Sn,width:Mt}),o.jsxs(V,{sx:{flex:1,height:"100%"},children:[o.jsx(Me,{variant:"text",height:50,width:100}),o.jsx(Me,{variant:"text",height:40,width:"100%"}),o.jsx(Me,{variant:"text",height:40,width:300}),o.jsxs(V,{sx:{display:"flex",gap:1,my:2},children:[o.jsx(Me,{variant:"circular",height:20,width:20}),o.jsx(Me,{variant:"text",height:20,width:50})]}),o.jsx(Me,{variant:"rounded",height:30,width:100})]})]}):o.jsx(Ta,{showNav:!0,autoPlay:!0,slideDuration:i?500:1e3,slideInterval:5e3,showPlayButton:!1,showIndex:!1,showBullets:!1,showThumbnails:!1,showFullscreenButton:!1,renderLeftNav:x=>o.jsx(V,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(ns,{sx:{...g,left:5}})}),renderRightNav:x=>o.jsx(V,{onClick:x,sx:{display:{xs:"none",md:"block"}},children:o.jsx(rs,{sx:{...g,right:5}})}),items:s.map((x,R)=>({original:x.did,renderItem:()=>{const _=h[R]||{},T=x.cover||bl(x.did,_.screenshots?.[0]),N=Ii(T,r.breakpoints.values.md*2);return o.jsxs(fe,{direction:{xs:"column",md:"row"},onClick:()=>t.handleSearchSelect(_),sx:{height:{xs:"auto",md:on},display:"flex",justifyContent:"center",alignItems:{xs:"flex-start",md:"center"},p:{xs:2,md:5},gap:{xs:2,md:5},cursor:"pointer","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url("${N}")`,backgroundSize:"cover",filter:"blur(50px)",opacity:.15,zIndex:0}},children:[m(N),o.jsxs(fe,{sx:{flex:1,height:"100%",gap:3},children:[o.jsxs(V,{sx:{flex:1},children:[v(x.name||_.title||x.name),j(x.desc||_.description)]}),_.did&&w(_,x.baseNum),k(_)]})]})}}))})})]}):null;function m(x){return o.jsx(V,{sx:{borderRadius:2,overflow:"hidden",position:"relative",width:{xs:"100%",md:Mt}},children:o.jsx(yl,{url:x})})}function v(x){return o.jsx(Y,{variant:"h2",sx:{width:"100%"},children:x})}function j(x){return o.jsx(Y,{variant:"body2",sx:{color:"text.secondary",textAlign:"left",width:"100%",minHeight:70,maxHeight:71,pt:1,display:"-webkit-box",lineClamp:3,WebkitLineClamp:3,textWrap:"wrap",overflow:"hidden",WebkitBoxOrient:"vertical"},children:x})}function w(x,R=0){const{did:_,owner:T,stats:N}=x;return o.jsxs(V,{sx:{display:"flex",alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx(zr,{icon:o.jsx(Rt,{src:T.avatar,did:_,size:20,variant:"circle"}),children:T.fullName}),o.jsx(zr,{icon:o.jsx(Pe,{icon:vi}),title:`${N.downloads+R}`,children:gl(N.downloads+R)})]})}function k(x){return o.jsx(ve,{variant:"outlined",size:"small",onClick:()=>t.handleSearchSelect(x),sx:{width:"fit-content",textTransform:"none",borderRadius:1,borderColor:"grey.300","&:hover":{borderColor:"divider"}},children:e("explore.viewDetail")})}}const gl=e=>Number.isNaN(e)?0:e<1e3?e:e<1e6?`${(e/1e3).toFixed(1)}k`:e<1e9?`${(e/1e6).toFixed(1)}m`:`${(e/1e9).toFixed(1)}b`,bl=(e,t)=>e&&t?`/assets/${e}/screenshots/${t}`:"";function yl({url:e}){const[t,n]=F.useState(!0);return o.jsxs(o.Fragment,{children:[t&&o.jsx(Me,{variant:"rectangular",sx:{width:{xs:"100%",md:Mt},height:{xs:"auto",md:Sn}}}),o.jsx(V,{component:"img",src:e,alt:"",onLoad:()=>n(!1),onError:()=>n(!1),sx:{display:t?"none":"block",width:{xs:"100%",md:Mt},height:{xs:"auto",md:Sn},borderRadius:2,border:1,borderColor:"divider",objectFit:"container",cursor:"pointer",aspectRatio:pl}})]})}function vl({title:e,blocklets:t}){const{blockletRender:n,serverVersion:r}=pe();return o.jsxs(V,{sx:{mt:3},children:[o.jsx(Y,{component:"h3",variant:"h3",sx:{mb:2},children:e}),o.jsx(pr,{container:!0,spacing:2,sx:{boxSizing:"border-box",maxWidth:"calc(100vw - 16px)"},children:t.map(i=>o.jsx(pr,{"data-blocklet-did":i.did,sx:{p:"2px"},size:{xs:12,md:6},children:o.jsx(V,{sx:{padding:"1px"},children:n({blocklet:i,blocklets:t,serverVersion:r})})},i.did))})]})}function xl(){const{get:e}=Bn(),{t}=pe(),{data:n=[],error:r,loading:i}=Lt(async()=>{const s=await e(xe.explorePath);return Array.isArray(s)?s:[]});return r?o.jsx(On,{error:new Error(`Failed to fetch blocklets from ${xe.explorePath}`)}):i?o.jsx(Li,{mt:15}):o.jsxs(o.Fragment,{children:[o.jsx(ml,{}),n.map(s=>s.blocklets?.length>0?o.jsx(vl,{title:t(`explore.${s.type}`),blocklets:s.blocklets},s.type):null)]})}const sn="__FREE_TEXT__",Fr="__NO_RESULT__",an=40;function Di({endpoint:e,t,locale:n,filters:r,handleKeyword:i,handleSearchSelect:s,...h}){const u=F.useRef(null),p=F.useRef(!1),[g,m]=F.useState(!1),[v,j]=F.useState(""),[w,k]=F.useState(!1),x=Bn(),[R,_]=F.useState(!1),T=h?.placeholder||t("common.searchStore"),N=async D=>{_(!0);const ae=await x.get(Je(e,Cn(xe.blockletsPath,D)));return _(!1),ae.dataList||[]},{data:q,run:ee}=Lt(D=>D?N({sortBy:xe.nameDesc,page:1,pageSize:10,keyword:D,showResources:"true"}):Promise.resolve([]),{manual:!0});F.useEffect(()=>{_(!0),ee(r.keyword),j(r.keyword||"")},[r.keyword,ee]),Ga("ctrl + k, command + k",D=>(D.stopPropagation(),D.preventDefault(),u.current?.querySelector("input")?.focus(),!1),{enableOnTags:["INPUT"]});const B=Vr(D=>ee(D),{wait:300}),Q={name:sn,title:v,did:""};let te=[];return v&&(R?te=[Q]:q?.length?te=[Q,...q]:te=[{name:Fr,title:t("blocklet.noResults"),did:""}]),o.jsxs(o.Fragment,{children:[o.jsxs(wo,{fullScreen:!0,open:w,sx:{display:{md:"none"}},children:[o.jsxs(V,{sx:{p:2,pb:0,display:"flex",alignItems:"center",gap:2},children:[o.jsx(qr,{fullWidth:!0,sx:{bgcolor:"grey.50",px:1,py:.5,".MuiInputBase-input":{p:1},".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,onChange:D=>se(D.target.value),startAdornment:me(w),endAdornment:Se()}),o.jsx(ve,{variant:"outlined",onClick:()=>{k(!1),j(r.keyword||"")},children:t("common.cancel")})]}),o.jsx(Hr,{sx:{p:.5},children:te.map(D=>we(D))})]}),o.jsx(V,{sx:{display:{sx:"block",md:"none"},paddingTop:1,opacity:.5},children:o.jsx(Pe,{icon:Qt,style:{fontSize:22,color:"inherit"},onClick:()=>k(!0)})}),o.jsx(ls,{ref:u,open:!!v&&g,size:"small",onOpen:()=>m(!0),onClose:(D,ae)=>{m(!1),ae==="selectOption"&&!p.current&&i(v)},onKeyDown:D=>{D.key==="Enter"&&!v&&$()},disableClearable:!0,inputValue:v,onInputChange:(D,ae)=>se(ae),isOptionEqualToValue:(D,ae)=>D.name===ae.name,getOptionLabel:D=>D.title,getOptionKey:D=>D.name,noOptionsText:t("blocklet.noResults"),autoHighlight:!0,forcePopupIcon:!1,slotProps:{paper:{sx:{mt:.5,minWidth:"100%",width:"fit-content","& > ul":{p:.5}}}},renderInput:D=>o.jsx(Gr,{...D,InputProps:{...D.InputProps,autoFocus:!0,placeholder:T,className:"bl-autocomplete-input",value:v,startAdornment:me(g),endAdornment:Se()}}),filterOptions:D=>D,...h,options:te,renderOption:(D,ae)=>we(ae),value:Q,sx:[{bgcolor:"grey.50",borderRadius:"8px",overflow:"hidden",".MuiOutlinedInput-notchedOutline":{borderRadius:"8px",borderColor:"transparent"},"&&:hover .MuiOutlinedInput-notchedOutline, &&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"divider",borderWidth:"1px"}},...Array.isArray(h.sx)?h.sx:[h.sx]]})]});function se(D){_(!0),j(D),p.current=!1,B.run(D)}function $(){k(!1),j(""),se(""),i("")}function Ie(D){D?.did?(k(!1),p.current=!0,j(""),s(D)):D.name===sn&&(k(!1),i(v))}function we(D){return o.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1,p:1.5,borderRadius:"8px"},onClick:()=>Ie(D),children:[ke(D),o.jsxs(Y,{variant:"body1",children:[o.jsx(Y,{sx:{fontWeight:"fontWeightMedium",display:"flex",alignItems:"center",gap:1},children:D.title}),o.jsx(Y,{sx:{fontSize:"13px",color:"text.hint"},children:D.category?.locales?.[n||"en"]||""})]})]},D.did)}function ke(D){if([sn,Fr].includes(D.name))return o.jsx(V,{sx:{width:an,p:"6px",display:"flex",justifyContent:"center",alignItems:"center",color:"text.hint",bgcolor:"grey.100",borderRadius:"8px"},children:o.jsx(Pe,{icon:Qt,style:{fontSize:28}})});let ae="";return D.logo&&(ae=Je(e,"assets",D.did,Ii(D.logo,an,D.version))),o.jsx(Rt,{src:ae,size:an,style:{borderRadius:"8px",overflow:"hidden"}})}function me(D=!0){return o.jsx(V,{sx:{display:"flex",pl:.5,alignItems:"center",color:"text.hint"},children:D&&v&&R?o.jsx(Ce,{color:"inherit",size:16}):o.jsx(Pe,{icon:Qt,style:{fontSize:16,cursor:"default"}})})}function Se(){return v?o.jsx(V,{sx:{display:"flex",alignItems:"center",color:"text.hint"},children:o.jsx(Pe,{icon:za,style:{fontSize:20,cursor:"pointer",color:"inherit"},onClick:()=>$()})}):null}}function wl({placeholder:e,...t}){const{search:n,t:r}=pe(),{filters:i,handleKeyword:s}=n,[h,u]=F.useState(i.keyword||""),p=Vr(s,{wait:300}),g=j=>{const{value:w}=j.target;u(w),p.run(w)},m=()=>{u(""),s("")};F.useEffect(()=>{u(i.keyword||"")},[i.keyword]);const v=e||r("common.searchPlaceholder");return o.jsx(Sl,{inputProps:{"data-cy":"search-blocklet"},startAdornment:o.jsx(gr,{position:"start",children:o.jsx(kl,{sx:{fontSize:18,ml:-.5}})}),onChange:g,placeholder:v,value:h,title:v,"data-cy":"search",endAdornment:h&&o.jsx(gr,{position:"end",children:o.jsx(jl,{"data-cy":"search-delete",onClick:m})}),...t})}const Sl=ze(qr)`
|
|
43
43
|
background-color: ${e=>e.theme.palette.grey[50]};
|
|
44
44
|
font-size: 14px;
|
|
45
45
|
border-radius: 6px;
|
|
@@ -56,13 +56,13 @@ import{aF as On,j as o,be as Le,di as mo,dx as vt,bd as go,r as z,f7 as bo,f as
|
|
|
56
56
|
color: transparent;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,kl=ze(is)`
|
|
60
60
|
color: ${e=>e.theme.palette.grey[500]};
|
|
61
|
-
`,
|
|
61
|
+
`,jl=ze(Ur)`
|
|
62
62
|
color: ${e=>e.theme.palette.grey[500]};
|
|
63
63
|
font-size: 16px;
|
|
64
64
|
cursor: pointer;
|
|
65
|
-
`;function
|
|
65
|
+
`;function Tl(){const{search:e,t,endpoint:n,locale:r,getCategoryLocale:i,developerName:s,showResourcesSwitch:h,layout:u,baseSearch:p,categoryOptions:g,compact:m}=pe(),{filters:v,handleSort:j,handlePrice:w,handleDeveloper:k,handleSwitchShowResources:x,cleanFilter:R,handleCategory:_,handleSwitchIsOfficial:T}=e,N=Ci(t);return o.jsxs(fe,{className:"filter-bar",direction:{xs:"column",md:"row"},spacing:{xs:1,md:0},sx:{position:"sticky",top:0,zIndex:1e3,alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",gap:2,pt:{xs:2,md:0},px:0,pb:m?2:3,backgroundColor:"background.default"},children:[!m&&o.jsx(Y,{variant:"h2",sx:{textTransform:"capitalize"},children:i(v.category)}),o.jsxs(fe,{direction:"row",sx:{flex:1,alignItems:"center",flexWrap:{xs:"wrap",md:"nowrap"},width:"100%",justifyContent:{xs:"flex-start",md:"flex-end"},gap:2},children:[u.showSearch?o.jsx(V,{sx:{flex:1,flexBasis:{xs:"100%",md:"auto"}},children:p?o.jsx(wl,{}):o.jsx(Di,{locale:r,endpoint:n,sx:{display:{md:"block",xs:"none"},flex:1,mr:1,width:"350px"},t,filters:e.filters,handleKeyword:e.handleKeyword,handleSearchSelect:e.handleSearchSelect})}):null,v.owner&&s&&o.jsx(mr,{label:t("blocklet.authorTag",{name:s}),size:"small",onDelete:()=>k("")}),v.resourceDid&&v.resourceBlocklet&&o.jsx(mr,{label:t("blocklet.resourceTag",{name:v.resourceBlocklet}),size:"small",onDelete:()=>R(["resourceDid","resourceBlocklet","showResources"])}),o.jsx(ln,{checked:v.isOfficial==="true",onChange:q=>T(q?"true":"false"),label:t("common.official")}),h?o.jsx(ln,{checked:v.showResources!=="false",onChange:q=>x(q?"true":"false"),label:t("common.showResources")}):null,o.jsx(ln,{checked:v.price==="free",onChange:q=>w(q?"free":""),label:t("blocklet.free")}),m&&o.jsx(V,{children:o.jsx(wn,{value:v.category||g[0]?.value,options:g,placeholder:t("common.category"),onChange:q=>_(q)})}),o.jsx(wn,{value:v.sortBy||N[0].value,options:N,placeholder:t("sort.sort"),onChange:q=>j(q)})]})]})}function ln({checked:e,onChange:t,label:n}){const r=$e();return o.jsx(Qr,{sx:{m:0,p:0},className:"check-button",control:o.jsx(Xr,{checked:e,icon:o.jsx(Pe,{style:{padding:0,color:r.palette.text.secondary},icon:La}),checkedIcon:o.jsx(Pe,{style:{padding:0,color:r.palette.primary.main},icon:Da}),size:"large",sx:{p:0,mr:1},onChange:i=>t(i.target.checked)}),label:n})}function jt({children:e}){return o.jsxs(V,{sx:{display:"flex",mt:2,flexDirection:"column",alignItems:"center",justifyContent:"center",color:"text.hint"},children:[o.jsx(os,{}),e]})}function Wr(){const{t:e}=pe();return o.jsx(Y,{style:{textAlign:"center"},variant:"subtitle2",children:e("blocklet.noResults")})}function cn({filterTip:e=!1,keywordTip:t=!1}){const{t:n,locale:r}=pe(),i=()=>r==="zh"?"、":" , ";return o.jsxs(V,{sx:{mt:1,display:"flex"},children:[o.jsx(Y,{style:{marginRight:"16px"},children:n("blocklet.emptyTip")}),e&&o.jsx(Y,{children:n("blocklet.filterTip")}),e&&t&&i(),t&&o.jsx(Y,{children:n("blocklet.keywordTip")})]})}function un({primaryStart:e,primaryEnd:t,filter:n}){return o.jsxs(Y,{variant:"subtitle2",sx:{display:"flex",gap:.5,mx:.5},children:[o.jsx(Y,{children:e}),o.jsx(Y,{title:n,color:"primary",sx:{maxWidth:"30vw",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n}),o.jsxs(Y,{children:[t," "]})]})}function Ol(){const{t:e,search:t,getCategoryLocale:n,selectedCategory:r}=pe(),{filters:i}=t,s=!!r||!!i.price;if(i.keyword&&s)return o.jsxs(jt,{children:[o.jsx(un,{primaryStart:e("blocklet.noBlockletPart1"),primaryEnd:e("blocklet.noBlockletPart2"),filter:i.keyword}),o.jsx(cn,{keywordTip:!0,filterTip:!0})]});if(i.keyword)return o.jsxs(jt,{children:[o.jsx(un,{primaryStart:e("blocklet.noBlockletPart1"),primaryEnd:e("blocklet.noBlockletPart2"),filter:i.keyword}),o.jsx(cn,{keywordTip:!0})]});if(s){const h=n(r);return o.jsxs(jt,{children:[h?o.jsx(un,{primaryStart:e("blocklet.noCategoryResults1"),primaryEnd:e("blocklet.noCategoryResults2"),filter:h}):o.jsx(Wr,{}),o.jsx(cn,{filterTip:!0})]})}return o.jsx(jt,{children:o.jsx(Wr,{})})}const Cl=(e,t,n,r)=>es(async i=>{i||(n.currentPage=n.defaultCurrentPage);const{currentPage:s,pageSize:h}=n,u={...t,category:t.category==="All"?"":t.category,sortBy:xe[t.sortBy],page:s,pageSize:h};r(null);const{data:p={}}=await e.get(xe.blockletsPath,{params:u});return n.currentPage++,{page:s,pageSize:h,list:p?.dataList||[],total:p?.total||0}},{isNoMore:i=>i?i.page*i.pageSize>=i.total:!1,reloadDeps:[e,Do(t)],onError:r});function Il(){const{storeApi:e,search:t,extraFilter:n,errors:r,updateDeveloperName:i}=pe(),{filters:s}=t,h=ko({currentPage:xe.currentPage,pageSize:rl()?xe.mobilePageSize:xe.pageSize,defaultCurrentPage:xe.defaultCurrentPage}),[u,p]=F.useState(null),g=Cl(e,s,h,p),m=F.useMemo(()=>n?n(g.data?.list||[]):g.data?.list||[],[g.data,n]);return F.useEffect(()=>{const v=m.find(j=>j.owner.did===s.owner);i(v?.owner.fullName||v?.author.name||"")},[s.owner,m,i]),{blocklets:m,fetchBlockletsError:u,loadMore:g.loadMore,hasNextPage:!g.noMore,total:g.data?.total||0,loadings:{fetchBlockletsLoading:g.loading,loadingMore:g.loadingMore},errors:{...r,fetchBlockletsError:u}}}function El(){const{t:e,search:t,endpoint:n,blockletRender:r,serverVersion:i,minItemWidth:s,layout:h,baseSearch:u,compact:p}=pe(),{filters:g}=t,{blocklets:m,errors:v,loadMore:j,loadings:w,hasNextPage:k,total:x}=Il(),[R]=Ma({loading:w.fetchBlockletsLoading||w.loadingMore,hasNextPage:k,onLoadMore:j});if(v.fetchBlockletsError){const q=new Error(`Failed to fetch blocklets from ${n}: ${tl(v.fetchBlockletsError)}`);return o.jsx(On,{error:q})}const _=u&&h.showSearch||!g.keyword;return o.jsxs(o.Fragment,{children:[_?o.jsx(Tl,{}):o.jsxs(o.Fragment,{children:[o.jsx(An,{xs:o.jsx(Mi,{}),md:null}),N()]}),T(),!w.fetchBlockletsLoading&&k&&o.jsx(V,{ref:R,sx:{height:70,minHeight:70,display:"flex",justifyContent:"center",py:2,overflow:"hidden"},children:w.loadingMore?o.jsx(Ce,{}):null})]});function T(){return w.fetchBlockletsLoading?o.jsx(Li,{mt:15}):m.length?o.jsx(V,{className:"blocklet-list",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:`repeat(auto-fill, minmax(${s}px, 1fr))`},p:"2px",rowGap:2,columnGap:p?0:2},children:m.map(q=>o.jsx(V,{"data-blocklet-did":q.did,sx:{minWidth:{xs:"100%",sm:s},maxWidth:"calc(100vw - 32px)"},children:r({blocklet:q,blocklets:m,serverVersion:i})},q.did))}):o.jsx(Ol,{})}function N(){return o.jsxs(fe,{direction:"row",className:"search-result-title",sx:{alignItems:"center",justifyContent:"space-between",mb:2,mt:{xs:2,md:0}},children:[o.jsx(Y,{variant:"h3",title:g.keyword,sx:{maxWidth:"50vw",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e("blocklet.search",{keyword:g.keyword})}),o.jsx(Y,{variant:"body1",sx:{color:"text.hint",fontSize:13},children:e("blocklet.resultCount",{count:x})})]})}}function Rl(){const{t:e,selectedCategory:t,getCategoryLocale:n,locale:r,search:i}=pe(),{toggleOpen:s}=Wn(),h=vo().arcSphere,u=!!window.blocklet?.navigation?.some(p=>p.section==="bottomNavigation");return o.jsxs(V,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[o.jsxs(Y,{variant:"body1",sx:{display:{xs:"flex",md:"none"},alignItems:"center",gap:1,py:2,fontWeight:"fontWeightMedium"},children:[o.jsx(_i,{onClick:()=>s(!0),children:o.jsx(xo,{})}),n(t)||e("common.category")]}),h&&u&&o.jsx(Di,{locale:r,endpoint:window.blocklet?.prefix||"/",sx:{display:{md:"block",xs:"none"},mr:1,width:"350px"},t:e,filters:i.filters,handleKeyword:i.handleKeyword,handleSearchSelect:i.handleSearchSelect})]})}function Pl({menus:e=[],children:t=void 0}){const{search:n,layout:r,compact:i}=pe(),{filters:s}=n,h=F.useRef(null),u=s.category||s.keyword||s.price,p=e.find(g=>g.key===s.menu)?.key;return o.jsx(Qa,{children:o.jsxs(bo,{FallbackComponent:On,children:[!i&&o.jsx(Rl,{}),o.jsxs(V,{ref:h,className:"list-container",sx:{display:"flex",height:"100%",pt:{xs:0,md:i?0:5}},children:[o.jsx(fl,{menus:e}),o.jsxs(fe,{sx:[{height:"100%",position:"relative",flex:1},i?{overflowY:"auto",ml:-2,pr:1,pb:2}:{overflow:"visible"}],children:[p&&t?.(p),!p&&(r.showExplore&&!u?o.jsx(xl,{}):o.jsx(El,{}))]})]})]})})}function uc(e){const{menus:t,children:n,...r}=e,i=$e(),s=po(mo({},i,{typography:{h1:{fontSize:32,fontWeight:700,lineHeight:1.375,textAlign:"left"},h2:{fontSize:24,fontWeight:700,lineHeight:1.3333333,textAlign:"left"},h3:{fontSize:18,fontWeight:600,lineHeight:1.5,textAlign:"left"},fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:700}}));return o.jsx(go,{theme:s,children:o.jsx(ll,{...r,children:o.jsx(Pl,{menus:t,children:n})})})}const dc={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M22 12.54c-1.804-.345-2.701-1.08-3.523-2.94c-.487.696-1.102 1.568-.92 2.4c.028.238-.32 1-.557 1H3c0 5.208 3.164 7 6.196 7c4.124.022 7.828-1.376 9.854-5c1.146-.101 2.296-1.505 2.95-2.46z"/><path d="M5 10h3v3H5zm3 0h3v3H8zm3 0h3v3h-3zM8 7h3v3H8zm3 0h3v3h-3zm0-3h3v3h-3zM4.571 18c1.5 0 2.047-.074 2.958-.78M10 16v.01"/></g>'},_l=(e,t)=>!t||!e?!0:br.satisfies(br.coerce(e),t);function Ml({children:e,serverVersion:t="",requirementVersion:n="",...r}){const{t:i}=Ke();return _l(t,n)?e:o.jsx(In,{title:i("store.tooltip.upgradeServer",{serverVersion:t,version:n}),arrow:!0,children:o.jsx(Y,{children:o.jsx(ve,{disabled:!0,variant:"outlined",...r,children:i("common.upgradeServer")})})})}Ml.propTypes={children:P.node.isRequired,serverVersion:P.string,requirementVersion:P.string};ze("div")`
|
|
66
66
|
background-color: transparent !important;
|
|
67
67
|
& > :not(.Mui-disabled) {
|
|
68
68
|
position: relative;
|
|
@@ -111,7 +111,7 @@ import{aF as On,j as o,be as Le,di as mo,dx as vt,bd as go,r as z,f7 as bo,f as
|
|
|
111
111
|
color: ${e=>e.theme.palette.common.white}!important;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`;const
|
|
114
|
+
`;const Ar=(e="")=>e.replace(/(<([^>]+)>)/gi,"").trim(),Ll=(e="")=>{const t=parseInt(e,10);return Number.isNaN(t)?e:t<1e3?t:t<1e6?`${(t/1e3).toFixed(1)}k`:t<1e9?`${(t/1e6).toFixed(1)}m`:`${(t/1e9).toFixed(1)}b`};function kn({title:e,sx:t,children:n,slotProps:r,fontSize:i=12,fontWeight:s=500,color:h="text.contrast",...u}){return e?o.jsx(In,{title:e,placement:"top",...u,slotProps:{popper:{...r?.popper,sx:zo({[`& .${Yr.tooltip}`]:{fontSize:i,fontWeight:s,boxShadow:2,marginBottom:"6px !important",borderRadius:"8px",cursor:"default",color:h,display:"flex",alignItems:"center"}},r?.popper?.sx)}},children:n}):n}function Tt({icon:e=null,children:t=null,maxWidth:n=100,title:r=void 0,sx:i={}}){return(t===0||t)&&o.jsxs(fe,{direction:"row",sx:[{alignItems:"center",gap:.5},{maxWidth:n,overflow:"hidden"},...Array.isArray(i)?i:[i]],children:[e,o.jsx(kn,{title:r||(typeof t=="string"?t:""),children:o.jsx(Y,{variant:"body2",sx:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"default"},children:t})})]})}function hc({...e}){const{title:t,description:n="",cover:r="",avatar:i,author:s,download:h,did:u,official:p,buttonText:g="Install",buttonDisabled:m,buttonLoading:v,button:j,onButtonClick:w=()=>{},onMainClick:k,className:x,ref:R,icons:_,status:T,...N}=e,q=$e(),ee=($,Ie=()=>!1)=>(we,...ke)=>{const me=$ instanceof Function;(Ie()||me)&&(we.preventDefault(),we.stopPropagation(),me&&$(...ke))},B=k&&ee(k),Q=ee(w,()=>!!(j||m||v)),te=F.isValidElement(t)?{children:t}:{title:Ar(t),dangerouslySetInnerHTML:{__html:t}},se=F.isValidElement(n)?{children:n}:{title:Ar(n),dangerouslySetInnerHTML:{__html:n}};return o.jsxs(Fo,{variant:"outlined",onClick:B,...N,sx:{p:{xs:2,md:3},borderRadius:1,...N.sx},children:[o.jsxs(fe,{direction:"row",sx:{flex:1,gap:1,alignItems:"center",overflow:"hidden","& > *":{flexShrink:0}},children:[o.jsx(Rt,{src:r,did:u,size:48,variant:"rounded",style:{borderRadius:"8px",overflow:"hidden"}}),o.jsx(Y,{className:"blocklet-title",...te,sx:[{fontWeight:"fontWeightMedium",fontSize:16,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"default",pl:.5,"&&":{flexShrink:1}},...Array.isArray(te.sx)?te.sx:[te.sx]]}),o.jsxs(V,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[p&&o.jsx(kn,{title:p.tooltip,children:o.jsx(cs,{sx:{color:p.color||"#D97706",fontSize:p.size||18}})}),_?.map($=>o.jsx(kn,{title:$.title,children:typeof $.icon=="string"?o.jsx(xt,{icon:$.icon,style:{color:$.color}}):$.icon},$.key))]}),w&&o.jsxs(Pt,{variant:"outlined",size:"small",disabled:m||v,style:{color:q.palette.text.primary,borderColor:q.palette.grey[300],borderRadius:8,fontSize:13,fontWeight:q.typography.fontWeightMedium},onClick:Q,children:[v&&o.jsx(Ce,{size:15,style:{marginRight:3,color:"inherit"}}),g]}),j]}),o.jsx(fe,{sx:{py:2},children:o.jsx(Y,{className:"blocklet-description",variant:"body2",...se,sx:[{color:"text.secondary",display:"-webkit-box",lineClamp:2,WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",cursor:"default",height:40},...Array.isArray(se.sx)?se.sx:[se.sx]]})}),o.jsxs(fe,{direction:"row",sx:{alignItems:"center",gap:2,color:"text.secondary"},children:[o.jsx(Tt,{icon:o.jsx(Rt,{src:i,did:u,size:20,variant:"circle"}),maxWidth:200,children:s}),o.jsx(Tt,{icon:o.jsx(xt,{icon:vi}),title:h,children:Ll(h)}),T?.filter($=>$.align!=="right").map($=>o.jsx(Tt,{icon:typeof $.icon=="string"?o.jsx(xt,{icon:$.icon}):$.icon,title:$.title,maxWidth:$.maxWidth,children:$.text},$.key)),o.jsx(V,{sx:{flex:1}}),T?.filter($=>$.align==="right").map($=>o.jsx(Tt,{icon:typeof $.icon=="string"?o.jsx(xt,{icon:$.icon}):$.icon,title:$.title,maxWidth:$.maxWidth,sx:{color:$.color},children:$.text},$.key))]})]})}const fc=ze("div")`
|
|
115
115
|
background-color: transparent !important;
|
|
116
116
|
& > :not(.Mui-disabled) {
|
|
117
117
|
position: relative;
|
|
@@ -270,4 +270,4 @@ import{aF as On,j as o,be as Le,di as mo,dx as vt,bd as go,r as z,f7 as bo,f as
|
|
|
270
270
|
color: ${e=>e.theme.palette.grey[600]};
|
|
271
271
|
font-size: 12px;
|
|
272
272
|
}
|
|
273
|
-
`;P.string||P.node,P.string,P.string||P.node,P.string,P.string,P.bool,P.bool,P.element,P.string,P.func,P.func,P.string;const yc={meta:P.object.isRequired,onCancel:P.func.isRequired};function Al({action:e,onSelect:t,onNext:n}){const{t:r}=Ke(),i=[{action:"purchase",title:r("store.purchase.purchase.title"),description:r("store.purchase.purchase.description")},{action:"verify",title:r("store.purchase.verify.title"),description:r("store.purchase.verify.description")}];return o.jsxs(o.Fragment,{children:[o.jsx(No,{children:i.map(s=>o.jsxs(ti,{button:!0,selected:e===s.action,onClick:()=>t(s.action),children:[o.jsx($o,{sx:{minWidth:48},children:s.action==="purchase"?o.jsx(fs,{style:{color:e==="purchase"?vr.primary.main:"#AAA",fontSize:32}}):o.jsx(ps,{style:{color:e==="verify"?vr.primary.main:"#AAA",fontSize:32}})}),o.jsx(Ko,{primary:s.title,secondary:s.description})]},s.action))}),n&&o.jsx(Pt,{fullWidth:!0,disabled:!e,variant:"contained",color:"primary",style:{marginTop:16},onClick:n,children:r("common.next")})]})}Al.propTypes={action:P.oneOf(["both","purchase","verify"]).isRequired,onSelect:P.func.isRequired,onNext:P.func.isRequired};function Bl({disabled:e=!1,storeList:t=[],teamDid:n,onAdd:r=()=>{},scope:i="",hiddenChildren:s=!1,open:h=!1,onClose:u=()=>{}}){const{api:p}=Rn(),[g,m]=z.useState(!1),[v,j]=z.useState(!0),[w,k]=z.useState(!1),[x,R]=z.useState(""),[_,T]=z.useState(""),{t:N}=Ke(),q=async()=>{m(!0);try{const{decoded:B}=Ho(x,t);await p.addBlockletStore({input:{teamDid:n,url:B,scope:i}}),r(B),k(!1),u()}catch(B){const Q=`${N("store.blockletRegistry.addFailed")} ${at(B)}`;T(Q)}finally{m(!1)}},ee=()=>{k(!1),u()};return o.jsxs(o.Fragment,{children:[!s&&o.jsxs(ti,{button:!0,disabled:e,sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1},onClick:()=>{k(!0)},children:[o.jsx(ms,{font:!0}),o.jsx(Y,{variant:"inherit",children:N("store.blockletRegistry.addRegistry")})]}),o.jsxs(Uo,{title:N("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:h||w,onClose:ee,PaperProps:{style:{minHeight:"auto"}},actions:o.jsxs(o.Fragment,{children:[o.jsx(Pt,{onClick:B=>{B.stopPropagation(),ee()},color:"inherit",children:N("common.cancel")}),o.jsxs(Pt,{onClick:B=>{B.stopPropagation(),q()},color:"primary","data-cy":"install-blocklet-next-step",disabled:g||!x||v,variant:"contained",autoFocus:!0,children:[g&&o.jsx(Ce,{size:16}),N("common.confirm")]})]}),children:[o.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:o.jsx(Vo,{component:"div",children:o.jsx(Y,{component:"div",children:o.jsx(Yr,{label:N("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:x,onChange:B=>{T(null);let Q=!1;B.target.value.trim()||(Q=!0),B.target.value.trim()||T(N("store.blockletRegistry.registryUrlEmpty")),R(B.target.value),j(Q)},disabled:g,onKeyPress:B=>{B.key==="Enter"&&(B.preventDefault(),B.target.value.trim()?q():T(N("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!_&&o.jsx(qo,{severity:"error",style:{width:"100%"},children:_})]})]})}Bl.propTypes={teamDid:P.string.isRequired,disabled:P.bool,storeList:P.array,onAdd:P.func,scope:P.string,hiddenChildren:P.bool,open:P.bool,onClose:P.func};var hn,Kr;function Nl(){if(Kr)return hn;Kr=1;var e={};const{NODE_MODES:t}=Go();return hn={isInServerlessMode:({mode:r,previousMode:i}={})=>r===t.SERVERLESS||i===t.SERVERLESS||e.ABT_NODE_DEBUG_AS_SERVERLESS==="true"},hn}var $l=Nl();function $n({store:e,teamDid:t,onDelete:n=()=>{},children:r=null,projectId:i="",scope:s=""}){const{api:h}=Rn(),{t:u}=Ke(),p=us(),[g,m]=z.useState(!1),[v,j]=z.useState(null),w=$e(),k=()=>{m(!1),j(null)},x=async()=>{try{m(!0),await h.deleteBlockletStore({input:{teamDid:t,url:e.url,projectId:i,scope:s}}),await p?.actions?.refreshBlocklet(),n&&typeof n=="function"&&n()}catch(T){Be.error(`Remove Blocklet Store Error: ${at(T)}`)}finally{m(!1),j(null)}},R={keyName:e.url,title:u("store.blockletRegistry.deleteRegistry"),description:u("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:w.palette.error.main}),confirmPlaceholder:u("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:x,onCancel:k},_=T=>{e.protected||(T.stopPropagation(),j(R))};return o.jsxs(o.Fragment,{children:[r?o.jsx("span",{onClick:_,children:r}):o.jsx(ve,{"data-cy":"store-action-delete",color:"primary",disabled:g,onClick:_,size:"small",children:o.jsx(ii,{sx:{zoom:.95}})}),v&&o.jsx(bs,{keyName:v.keyName,title:v.title,description:v.description,confirmPlaceholder:v.confirmPlaceholder,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}$n.propTypes={children:P.node,teamDid:P.string.isRequired,store:P.object.isRequired,onDelete:P.func,projectId:P.string,scope:P.string};const Kl=({store:e,userDid:t})=>{const n=window.blocklet?.tenantMode!==Qo.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===t?!0:n?e.scope==="studio":!1};function Ai({connectedStore:e,onDisconnect:t=()=>{},onDelete:n=()=>{},store:r,teamDid:i,projectId:s=""}){const[h,u]=z.useState(null),p=!!h,{t:g}=Ke(),{session:m}=Xo(),[v,j]=z.useState(!1),w=T=>{T.stopPropagation(),window.open(ut(`${Je(r.url,"search?menu=my-blocklets")}`,{allowDomains:null}))},k=T=>{u(T.currentTarget)},x=()=>{u(null)},R=()=>{j(!1),t()},_=[{label:g("common.visitStore"),action:w,icon:ri},{label:g("common.disconnect"),action:()=>{x(),j(!0)},icon:xs,hidden:!e}];return o.jsxs(o.Fragment,{children:[o.jsx(ve,{ref:h,color:"primary",onClick:k,size:"small",children:o.jsx(ys,{sx:{zoom:.95}})}),o.jsxs(Yo,{anchorEl:h,open:p,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[_.map(T=>T.hidden?null:o.jsxs(Et,{dense:!0,onClick:T.action,disabled:T.disabled,children:[T.icon&&o.jsx(T.icon,{color:"action",sx:{marginRight:1}}),o.jsx(V,{sx:{color:"action"},children:T.label})]},T.label)),Kl({store:r,userDid:m?.user?.did})&&o.jsx($n,{store:r,onDelete:n,teamDid:i,projectId:s,scope:r.scope||"studio",children:o.jsxs(Et,{dense:!0,disabled:r.protected,children:[o.jsx(ii,{sx:{color:r.protected?"action":"error.main",marginRight:1}}),o.jsx(V,{sx:{color:r.protected?"action":"error.main"},children:g("common.delete")})]})})]}),v&&o.jsx(Jo,{displayError:!0,title:`${g("common.disconnect")} ${r.name}`,description:g("blocklet.publish.disconnectStoreTip"),confirm:g("common.confirm"),onConfirm:R,onCancel:()=>j(!1)})]})}Ai.propTypes={connectedStore:P.object.isRequired,onDisconnect:P.func,onDelete:P.func,store:P.object.isRequired,teamDid:P.string.isRequired,projectId:P.string};function Ul({messageType:e,onOpen:t,onClose:n}){const r=z.useRef(null),i=z.useRef(null),s=async u=>{setTimeout(()=>{try{n?.()}catch{}},10*1e3),r.current&&(clearInterval(i.current),r.current.close());const p=Math.random().toString(36).slice(2);r.current=window.open(`${ni.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${p}`,"_blank"),t?.(r.current),i.current=setInterval(()=>{(!r.current||r.current.closed)&&(r.current=null,clearInterval(i.current),setTimeout(()=>{n?.()},1100))},200),await Promise.resolve(u(r.current,g=>{if(!r.current){localStorage.setItem(`open-window-url-${p}`,JSON.stringify({url:g,time:Date.now()}));return}r.current.location.href=ut(g,{allowDomains:null})}))},h=Zo(u=>{const{type:p,error:g}=u.data;r.current&&p===e&&g&&(Be.error(g),n?.())});return z.useEffect(()=>(window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}),[h]),s}function Tn({connectedStore:e,sx:t={},...n}){return o.jsx(es,{sx:{width:24,height:24,...t},src:Je(e.storeUrl,ni.WELLKNOWN_SERVICE_PATH_PREFIX,`/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}Tn.propTypes={connectedStore:P.object.isRequired,sx:P.object};function Bi({storeUrl:e,storeName:t,published:n,did:r="",version:i=""}){const{t:s}=Ke(),h=()=>{window.open(ut(`${Je(e,r&&i?`/blocklets/${r}/${i}`:"/search?menu=my-blocklets")}`,{allowDomains:null}))};return o.jsxs(V,{children:[o.jsx(Y,{variant:"subtitle2",children:s(n?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:t})}),o.jsx(ve,{size:"small",sx:{mt:1},onClick:h,variant:"contained",color:"success",children:s("common.visitTarget",{name:t})})]})}Bi.propTypes={storeName:P.string.isRequired,storeUrl:P.string.isRequired,published:P.bool.isRequired,did:P.string,version:P.string};const Ur={CONNECT:"connect",SELECT:"select"},Vr=ts(({className:e,...t})=>o.jsx(En,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${ei.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Vl({teamDid:e,projectId:t="",releaseId:n="",store:r,warningList:i=[],onDelete:s=()=>{},kind:h="store",published:u=!1,connectedStore:p=null,releaseType:g="",onPublish:m=()=>{},onOpenConnectStore:v=()=>{},onSelectConnectStore:j=()=>{},behavior:w=Ur.CONNECT,scope:k="",version:x=""}){const{t:R}=Ke(),{api:_,info:T,inService:N}=Rn(),[q,ee]=z.useState(!1),B=Ul({messageType:"connect-store-message",onOpen:()=>ee(!0),onClose:()=>ee(!1)}),Q=h==="publish",te=!!p,se=D=>{if(D.stopPropagation(),Q){window.open(ut(Je(r.url,"developer/blocklets"),{allowDomains:null}));return}window.open(ut(r.url,{allowDomains:null}))},$=()=>{if(w===Ur.SELECT){j(r);return}B(async(D,ae)=>{try{const je=await _.connectToStore({input:{did:e,storeUrl:r.url,storeId:r.id,storeName:r.name,projectId:t}});if(!je?.url){Be.error("failed to connect to store");return}ae(je.url),await v({did:e,projectId:t,storeId:r.id}),ee(!1)}catch(je){const ce=at(je);Be.error(ce),ee(!1)}})},Ie=async()=>{try{await _.disconnectFromStore({input:{did:e,storeId:r.id,projectId:t,storeScope:k}}),s()}catch(D){Be.error(at(D))}},we=()=>{ee(!0),_.publishToStore({input:{did:e,storeId:r.id,storeName:r.name,projectId:t,releaseId:n,type:g}}).then(D=>{Be.success(o.jsx(Bi,{storeName:p.storeName,storeUrl:p.storeUrl,did:t,version:x,published:D.url==="published"}),{duration:1e4}),m?.(null)}).catch(D=>{Be.error(at(D)),m?.(D)}).finally(()=>{ee(!1)})};z.useEffect(()=>{te&&ee(!1)},[te]);const ke=z.useMemo(()=>!(N&&$l.isInServerlessMode(T)),[N,T]),me=i.length>0,Se=o.jsxs(ve,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130,height:"100%"},disabled:me,onClick:we,children:[q?o.jsx(Ce,{sx:{marginRight:1},size:16}):o.jsx(vs,{sx:{marginRight:1,fontSize:20}}),R("common.upload")]});return o.jsxs(V,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},children:[!Q&&q&&o.jsx(Ce,{sx:{marginRight:2},size:16}),o.jsxs(V,{sx:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},children:[o.jsx(V,{sx:{display:"flex",flexDirection:"row"},children:o.jsx(Y,{component:"span",sx:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variant:"subtitle1",children:r.name})}),o.jsx(Y,{sx:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},component:"span",variant:"inherit",children:`${r.url}`})]}),o.jsxs(V,{sx:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[p&&o.jsx(Vr,{placement:"top",title:o.jsxs(V,{children:[o.jsx(Y,{component:"span",variant:"caption",sx:{opacity:.7},children:R("blocklet.publish.developerInfo")}),o.jsxs(V,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[o.jsx(Tn,{connectedStore:p,sx:{width:42,height:42}}),o.jsxs(V,{sx:{flex:1},children:[o.jsx(Y,{component:"span",variant:"subtitle1",children:p.developerName}),o.jsx(ns,{size:14,copyable:!0,compact:!0,responsive:!1,did:p.developerDid})]})]})]}),children:o.jsx(V,{children:o.jsx(Tn,{connectedStore:p,sx:{marginRight:1,cursor:"help"}})})}),Q&&o.jsxs(xr,{disabled:q,variant:"outlined",sx:{height:38},size:"small",children:[!te&&o.jsxs(ve,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:$,children:[q?o.jsx(Ce,{sx:{marginRight:1},size:16}):o.jsx(ws,{sx:{marginRight:1}}),R("common.connect")]}),te&&u&&o.jsxs(ve,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[q?o.jsx(Ce,{sx:{marginRight:1},size:16}):o.jsx(gs,{sx:{marginRight:1}}),R("common.uploaded")]}),te&&!u&&(me?o.jsx(Vr,{title:o.jsxs(V,{children:[o.jsx(V,{sx:{color:"error.main",mb:.5},children:R("blocklet.publish.storeRule.warning")}),i.map((D,ae)=>o.jsxs(V,{sx:{color:"error.main"},children:[ae+1,". ",D]},D))]}),children:o.jsx("div",{children:Se})}):Se),o.jsx(Ai,{projectId:t,connectedStore:p,store:r,onDelete:s,teamDid:e,onDisconnect:Ie})]}),!Q&&o.jsxs(xr,{disabled:q,variant:"outlined",sx:{height:36},size:"small",children:[o.jsx(ve,{"data-cy":"store-open-url",onClick:se,children:o.jsx(ri,{sx:{zoom:.9}})}),!r.protected&&ke&&o.jsx($n,{store:r,onDelete:s,teamDid:e,scope:""})]})]})]})}Vl.propTypes={kind:P.string,teamDid:P.string.isRequired,published:P.bool,connectedStore:P.shape({storeName:P.string,storeId:P.string,storeUrl:P.string,developerDid:P.string,developerName:P.string}),warningList:P.array,projectId:P.string,releaseId:P.string,releaseType:P.string,store:P.shape({id:P.string.isRequired,name:P.string.isRequired,url:P.string.isRequired,protected:P.bool,connected:P.bool}).isRequired,scope:P.string,onDelete:P.func,onPublish:P.func,onOpenConnectStore:P.func,behavior:P.string,onSelectConnectStore:P.func,version:P.string};export{Bl as A,Al as C,xs as L,hc as S,pc as _,Fl as a,Vl as b,yc as c,mc as d,bc as e,$l as f,dc as g,gc as s,Ul as u};
|
|
273
|
+
`;P.string||P.node,P.string,P.string||P.node,P.string,P.string,P.bool,P.bool,P.element,P.string,P.func,P.func,P.string;const pc={meta:P.object.isRequired,onCancel:P.func.isRequired};function Dl({action:e,onSelect:t,onNext:n}){const{t:r}=Ke(),i=[{action:"purchase",title:r("store.purchase.purchase.title"),description:r("store.purchase.purchase.description")},{action:"verify",title:r("store.purchase.verify.title"),description:r("store.purchase.verify.description")}];return o.jsxs(o.Fragment,{children:[o.jsx(Wo,{children:i.map(s=>o.jsxs(Jr,{button:!0,selected:e===s.action,onClick:()=>t(s.action),children:[o.jsx(Ao,{sx:{minWidth:48},children:s.action==="purchase"?o.jsx(us,{style:{color:e==="purchase"?yr.primary.main:"#AAA",fontSize:32}}):o.jsx(ds,{style:{color:e==="verify"?yr.primary.main:"#AAA",fontSize:32}})}),o.jsx(Bo,{primary:s.title,secondary:s.description})]},s.action))}),n&&o.jsx(Pt,{fullWidth:!0,disabled:!e,variant:"contained",color:"primary",style:{marginTop:16},onClick:n,children:r("common.next")})]})}Dl.propTypes={action:P.oneOf(["both","purchase","verify"]).isRequired,onSelect:P.func.isRequired,onNext:P.func.isRequired};function zl({disabled:e=!1,storeList:t=[],teamDid:n,onAdd:r=()=>{},scope:i="",hiddenChildren:s=!1,open:h=!1,onClose:u=()=>{}}){const{api:p}=En(),[g,m]=F.useState(!1),[v,j]=F.useState(!0),[w,k]=F.useState(!1),[x,R]=F.useState(""),[_,T]=F.useState(""),{t:N}=Ke(),q=async()=>{m(!0);try{const{decoded:B}=Uo(x,t);await p.addBlockletStore({input:{teamDid:n,url:B,scope:i}}),r(B),k(!1),u()}catch(B){const Q=`${N("store.blockletRegistry.addFailed")} ${at(B)}`;T(Q)}finally{m(!1)}},ee=()=>{k(!1),u()};return o.jsxs(o.Fragment,{children:[!s&&o.jsxs(Jr,{button:!0,disabled:e,sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1},onClick:()=>{k(!0)},children:[o.jsx(hs,{font:!0}),o.jsx(Y,{variant:"inherit",children:N("store.blockletRegistry.addRegistry")})]}),o.jsxs(No,{title:N("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:h||w,onClose:ee,PaperProps:{style:{minHeight:"auto"}},actions:o.jsxs(o.Fragment,{children:[o.jsx(Pt,{onClick:B=>{B.stopPropagation(),ee()},color:"inherit",children:N("common.cancel")}),o.jsxs(Pt,{onClick:B=>{B.stopPropagation(),q()},color:"primary","data-cy":"install-blocklet-next-step",disabled:g||!x||v,variant:"contained",autoFocus:!0,children:[g&&o.jsx(Ce,{size:16}),N("common.confirm")]})]}),children:[o.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:o.jsx($o,{component:"div",children:o.jsx(Y,{component:"div",children:o.jsx(Gr,{label:N("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:x,onChange:B=>{T(null);let Q=!1;B.target.value.trim()||(Q=!0),B.target.value.trim()||T(N("store.blockletRegistry.registryUrlEmpty")),R(B.target.value),j(Q)},disabled:g,onKeyPress:B=>{B.key==="Enter"&&(B.preventDefault(),B.target.value.trim()?q():T(N("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!_&&o.jsx(Ko,{severity:"error",style:{width:"100%"},children:_})]})]})}zl.propTypes={teamDid:P.string.isRequired,disabled:P.bool,storeList:P.array,onAdd:P.func,scope:P.string,hiddenChildren:P.bool,open:P.bool,onClose:P.func};var dn,Br;function Fl(){if(Br)return dn;Br=1;var e={};const{NODE_MODES:t}=Vo();return dn={isInServerlessMode:({mode:r,previousMode:i}={})=>r===t.SERVERLESS||i===t.SERVERLESS||e.ABT_NODE_DEBUG_AS_SERVERLESS==="true"},dn}var Wl=Fl();function Nn({store:e,teamDid:t,onDelete:n=()=>{},children:r=null,projectId:i="",scope:s=""}){const{api:h}=En(),{t:u}=Ke(),p=as(),[g,m]=F.useState(!1),[v,j]=F.useState(null),w=$e(),k=()=>{m(!1),j(null)},x=async()=>{try{m(!0),await h.deleteBlockletStore({input:{teamDid:t,url:e.url,projectId:i,scope:s}}),await p?.actions?.refreshBlocklet(),n&&typeof n=="function"&&n()}catch(T){Be.error(`Remove Blocklet Store Error: ${at(T)}`)}finally{m(!1),j(null)}},R={keyName:e.url,title:u("store.blockletRegistry.deleteRegistry"),description:u("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:w.palette.error.main}),confirmPlaceholder:u("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:u("common.delConfirm"),cancel:u("common.cancel"),onConfirm:x,onCancel:k},_=T=>{e.protected||(T.stopPropagation(),j(R))};return o.jsxs(o.Fragment,{children:[r?o.jsx("span",{onClick:_,children:r}):o.jsx(ve,{"data-cy":"store-action-delete",color:"primary",disabled:g,onClick:_,size:"small",children:o.jsx(ti,{sx:{zoom:.95}})}),v&&o.jsx(ps,{keyName:v.keyName,title:v.title,description:v.description,confirmPlaceholder:v.confirmPlaceholder,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}Nn.propTypes={children:P.node,teamDid:P.string.isRequired,store:P.object.isRequired,onDelete:P.func,projectId:P.string,scope:P.string};const Al=({store:e,userDid:t})=>{const n=window.blocklet?.tenantMode!==qo.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===t?!0:n?e.scope==="studio":!1};function zi({connectedStore:e,onDisconnect:t=()=>{},onDelete:n=()=>{},store:r,teamDid:i,projectId:s=""}){const[h,u]=F.useState(null),p=!!h,{t:g}=Ke(),{session:m}=Ho(),[v,j]=F.useState(!1),w=T=>{T.stopPropagation(),window.open(ut(`${Je(r.url,"search?menu=my-blocklets")}`,{allowDomains:null}))},k=T=>{u(T.currentTarget)},x=()=>{u(null)},R=()=>{j(!1),t()},_=[{label:g("common.visitStore"),action:w,icon:ei},{label:g("common.disconnect"),action:()=>{x(),j(!0)},icon:bs,hidden:!e}];return o.jsxs(o.Fragment,{children:[o.jsx(ve,{ref:h,color:"primary",onClick:k,size:"small",children:o.jsx(ms,{sx:{zoom:.95}})}),o.jsxs(Go,{anchorEl:h,open:p,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[_.map(T=>T.hidden?null:o.jsxs(Et,{dense:!0,onClick:T.action,disabled:T.disabled,children:[T.icon&&o.jsx(T.icon,{color:"action",sx:{marginRight:1}}),o.jsx(V,{sx:{color:"action"},children:T.label})]},T.label)),Al({store:r,userDid:m?.user?.did})&&o.jsx(Nn,{store:r,onDelete:n,teamDid:i,projectId:s,scope:r.scope||"studio",children:o.jsxs(Et,{dense:!0,disabled:r.protected,children:[o.jsx(ti,{sx:{color:r.protected?"action":"error.main",marginRight:1}}),o.jsx(V,{sx:{color:r.protected?"action":"error.main"},children:g("common.delete")})]})})]}),v&&o.jsx(Qo,{displayError:!0,title:`${g("common.disconnect")} ${r.name}`,description:g("blocklet.publish.disconnectStoreTip"),confirm:g("common.confirm"),onConfirm:R,onCancel:()=>j(!1)})]})}zi.propTypes={connectedStore:P.object.isRequired,onDisconnect:P.func,onDelete:P.func,store:P.object.isRequired,teamDid:P.string.isRequired,projectId:P.string};function Bl({messageType:e,onOpen:t,onClose:n}){const r=F.useRef(null),i=F.useRef(null),s=async u=>{setTimeout(()=>{try{n?.()}catch{}},10*1e3),r.current&&(clearInterval(i.current),r.current.close());const p=Math.random().toString(36).slice(2);r.current=window.open(`${Zr.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${p}`,"_blank"),t?.(r.current),i.current=setInterval(()=>{(!r.current||r.current.closed)&&(r.current=null,clearInterval(i.current),setTimeout(()=>{n?.()},1100))},200),await Promise.resolve(u(r.current,g=>{if(!r.current){localStorage.setItem(`open-window-url-${p}`,JSON.stringify({url:g,time:Date.now()}));return}r.current.location.href=ut(g,{allowDomains:null})}))},h=Xo(u=>{const{type:p,error:g}=u.data;r.current&&p===e&&g&&(Be.error(g),n?.())});return F.useEffect(()=>(window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}),[h]),s}function jn({connectedStore:e,sx:t={},...n}){return o.jsx(Yo,{sx:{width:24,height:24,...t},src:Je(e.storeUrl,Zr.WELLKNOWN_SERVICE_PATH_PREFIX,`/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}jn.propTypes={connectedStore:P.object.isRequired,sx:P.object};function Fi({storeUrl:e,storeName:t,published:n,did:r="",version:i=""}){const{t:s}=Ke(),h=()=>{window.open(ut(`${Je(e,r&&i?`/blocklets/${r}/${i}`:"/search?menu=my-blocklets")}`,{allowDomains:null}))};return o.jsxs(V,{children:[o.jsx(Y,{variant:"subtitle2",children:s(n?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:t})}),o.jsx(ve,{size:"small",sx:{mt:1},onClick:h,variant:"contained",color:"success",children:s("common.visitTarget",{name:t})})]})}Fi.propTypes={storeName:P.string.isRequired,storeUrl:P.string.isRequired,published:P.bool.isRequired,did:P.string,version:P.string};const Nr={CONNECT:"connect",SELECT:"select"},$r=Jo(({className:e,...t})=>o.jsx(In,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Yr.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Nl({teamDid:e,projectId:t="",releaseId:n="",store:r,warningList:i=[],onDelete:s=()=>{},kind:h="store",published:u=!1,connectedStore:p=null,releaseType:g="",onPublish:m=()=>{},onOpenConnectStore:v=()=>{},onSelectConnectStore:j=()=>{},behavior:w=Nr.CONNECT,scope:k="",version:x=""}){const{t:R}=Ke(),{api:_,info:T,inService:N}=En(),[q,ee]=F.useState(!1),B=Bl({messageType:"connect-store-message",onOpen:()=>ee(!0),onClose:()=>ee(!1)}),Q=h==="publish",te=!!p,se=D=>{if(D.stopPropagation(),Q){window.open(ut(Je(r.url,"developer/blocklets"),{allowDomains:null}));return}window.open(ut(r.url,{allowDomains:null}))},$=()=>{if(w===Nr.SELECT){j(r);return}B(async(D,ae)=>{try{const je=await _.connectToStore({input:{did:e,storeUrl:r.url,storeId:r.id,storeName:r.name,projectId:t}});if(!je?.url){Be.error("failed to connect to store");return}ae(je.url),await v({did:e,projectId:t,storeId:r.id}),ee(!1)}catch(je){const ce=at(je);Be.error(ce),ee(!1)}})},Ie=async()=>{try{await _.disconnectFromStore({input:{did:e,storeId:r.id,projectId:t,storeScope:k}}),s()}catch(D){Be.error(at(D))}},we=()=>{ee(!0),_.publishToStore({input:{did:e,storeId:r.id,storeName:r.name,projectId:t,releaseId:n,type:g}}).then(D=>{Be.success(o.jsx(Fi,{storeName:p.storeName,storeUrl:p.storeUrl,did:t,version:x,published:D.url==="published"}),{duration:1e4}),m?.(null)}).catch(D=>{Be.error(at(D)),m?.(D)}).finally(()=>{ee(!1)})};F.useEffect(()=>{te&&ee(!1)},[te]);const ke=F.useMemo(()=>!(N&&Wl.isInServerlessMode(T)),[N,T]),me=i.length>0,Se=o.jsxs(ve,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130,height:"100%"},disabled:me,onClick:we,children:[q?o.jsx(Ce,{sx:{marginRight:1},size:16}):o.jsx(gs,{sx:{marginRight:1,fontSize:20}}),R("common.upload")]});return o.jsxs(V,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},children:[!Q&&q&&o.jsx(Ce,{sx:{marginRight:2},size:16}),o.jsxs(V,{sx:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},children:[o.jsx(V,{sx:{display:"flex",flexDirection:"row"},children:o.jsx(Y,{component:"span",sx:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variant:"subtitle1",children:r.name})}),o.jsx(Y,{sx:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},component:"span",variant:"inherit",children:`${r.url}`})]}),o.jsxs(V,{sx:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[p&&o.jsx($r,{placement:"top",title:o.jsxs(V,{children:[o.jsx(Y,{component:"span",variant:"caption",sx:{opacity:.7},children:R("blocklet.publish.developerInfo")}),o.jsxs(V,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[o.jsx(jn,{connectedStore:p,sx:{width:42,height:42}}),o.jsxs(V,{sx:{flex:1},children:[o.jsx(Y,{component:"span",variant:"subtitle1",children:p.developerName}),o.jsx(Zo,{size:14,copyable:!0,compact:!0,responsive:!1,did:p.developerDid})]})]})]}),children:o.jsx(V,{children:o.jsx(jn,{connectedStore:p,sx:{marginRight:1,cursor:"help"}})})}),Q&&o.jsxs(vr,{disabled:q,variant:"outlined",sx:{height:38},size:"small",children:[!te&&o.jsxs(ve,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:$,children:[q?o.jsx(Ce,{sx:{marginRight:1},size:16}):o.jsx(ys,{sx:{marginRight:1}}),R("common.connect")]}),te&&u&&o.jsxs(ve,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[q?o.jsx(Ce,{sx:{marginRight:1},size:16}):o.jsx(fs,{sx:{marginRight:1}}),R("common.uploaded")]}),te&&!u&&(me?o.jsx($r,{title:o.jsxs(V,{children:[o.jsx(V,{sx:{color:"error.main",mb:.5},children:R("blocklet.publish.storeRule.warning")}),i.map((D,ae)=>o.jsxs(V,{sx:{color:"error.main"},children:[ae+1,". ",D]},D))]}),children:o.jsx("div",{children:Se})}):Se),o.jsx(zi,{projectId:t,connectedStore:p,store:r,onDelete:s,teamDid:e,onDisconnect:Ie})]}),!Q&&o.jsxs(vr,{disabled:q,variant:"outlined",sx:{height:36},size:"small",children:[o.jsx(ve,{"data-cy":"store-open-url",onClick:se,children:o.jsx(ei,{sx:{zoom:.9}})}),!r.protected&&ke&&o.jsx(Nn,{store:r,onDelete:s,teamDid:e,scope:""})]})]})]})}Nl.propTypes={kind:P.string,teamDid:P.string.isRequired,published:P.bool,connectedStore:P.shape({storeName:P.string,storeId:P.string,storeUrl:P.string,developerDid:P.string,developerName:P.string}),warningList:P.array,projectId:P.string,releaseId:P.string,releaseType:P.string,store:P.shape({id:P.string.isRequired,name:P.string.isRequired,url:P.string.isRequired,protected:P.bool,connected:P.bool}).isRequired,scope:P.string,onDelete:P.func,onPublish:P.func,onOpenConnectStore:P.func,behavior:P.string,onSelectConnectStore:P.func,version:P.string};export{zl as A,Dl as C,bs as L,lc as S,uc as _,Ml as a,Nl as b,pc as c,dc as d,fc as e,Wl as f,ac as g,hc as s,Bl as u};
|