@abtnode/webapp 1.16.45-beta-20250702-091552-478bb5e9 → 1.16.46-beta-20250703-024219-4029ee97
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-BHY_bJ-B.js → AdapterDayjs-BwD8t_yU.js} +1 -1
- package/dist/assets/{Add-BvqHwYc7.js → Add-Btc_DX8L.js} +1 -1
- package/dist/assets/{ArrowDropDown-_nNOcDby.js → ArrowDropDown-C0btUa2Y.js} +1 -1
- package/dist/assets/{Autocomplete-pjj0Huvc.js → Autocomplete-CWMa5Vdg.js} +1 -1
- package/dist/assets/{Breadcrumbs-CdhJ3xwX.js → Breadcrumbs-Bj56_4ii.js} +1 -1
- package/dist/assets/{ButtonGroup-B4zeBmGo.js → ButtonGroup-BvkROuSC.js} +1 -1
- package/dist/assets/{CSSTransition-C4nt9w-P.js → CSSTransition-CctyzK_I.js} +1 -1
- package/dist/assets/{CallMerge-DXRIeOAF.js → CallMerge-CRDaZSEk.js} +1 -1
- package/dist/assets/{CardContent-aFsBSGB1.js → CardContent-DfzKCVTT.js} +1 -1
- package/dist/assets/{ChevronLeft-iFiuV3Mt.js → ChevronLeft-CjZhoDay.js} +1 -1
- package/dist/assets/{ChevronRight-MYHMLDbN.js → ChevronRight-BWTxyhAI.js} +1 -1
- package/dist/assets/{Clear-Cq1X54kr.js → Clear-CM_Ecwol.js} +1 -1
- package/dist/assets/{Close-CxrewDKk.js → Close-BMY1UfRt.js} +1 -1
- package/dist/assets/{Community-DNprVa4q.js → Community-Y0evIW7W.js} +1 -1
- package/dist/assets/{Delete-CIAdiIU2.js → Delete-DXDaOiCE.js} +1 -1
- package/dist/assets/{DeleteOutline-DPGzRSba.js → DeleteOutline-BVp48FcR.js} +1 -1
- package/dist/assets/{Done-Bdt6xdh9.js → Done-BQMFqQ5C.js} +1 -1
- package/dist/assets/{Edit-Ummcb2_T.js → Edit-C_l02cBR.js} +1 -1
- package/dist/assets/{ErrorOutline-BErTO_wZ.js → ErrorOutline-34WW2XET.js} +1 -1
- package/dist/assets/{HelpOutline-G2N-kEDf.js → HelpOutline-CBFBHlQI.js} +1 -1
- package/dist/assets/{Holiday-L7tru7VG.js → Holiday-FpViNmgo.js} +1 -1
- package/dist/assets/{Launch-Dn_Oz4Rn.js → Launch-C9TTe6MQ.js} +1 -1
- package/dist/assets/{Link-8f2Jg1yO.js → Link-DfxLDLN8.js} +1 -1
- package/dist/assets/{ListItemButton-cfY9rpgC.js → ListItemButton-Bj6JlRz-.js} +1 -1
- package/dist/assets/{ListSubheader-SZZUmH6r.js → ListSubheader-DU99DRJx.js} +1 -1
- package/dist/assets/{LoadingButton-CJXl7Vg2.js → LoadingButton-CONkcxFE.js} +1 -1
- package/dist/assets/{LockIcon-D1Q_x4AN.js → LockIcon-UnHP4YeY.js} +1 -1
- package/dist/assets/{Meeting-DxaFodsU.js → Meeting-DCIEPJP9.js} +1 -1
- package/dist/assets/{MoreHoriz-Bcx33EsC.js → MoreHoriz-39CNAbOx.js} +1 -1
- package/dist/assets/{MoreVert-noNALlFa.js → MoreVert-u81IYW1J.js} +1 -1
- package/dist/assets/{OffSick-DE76lTuO.js → OffSick-CvAcpAiP.js} +1 -1
- package/dist/assets/{OpenInNew-BaxRcD3B.js → OpenInNew-DPBaNTjg.js} +1 -1
- package/dist/assets/{Public-bJ6Ecxok.js → Public-DNTffoQH.js} +1 -1
- package/dist/assets/{Refresh-D5tNl75V.js → Refresh-CF3TZwX3.js} +1 -1
- package/dist/assets/{SchemaReference.es-acpXHZeF.js → SchemaReference.es-EI-DtDwo.js} +1 -1
- package/dist/assets/{Search-lpWR6TI4.js → Search-dXBmfHfo.js} +1 -1
- package/dist/assets/{Slider-ByxU5dyO.js → Slider-DQ5qLaQK.js} +1 -1
- package/dist/assets/{Stepper-DHqGIVLa.js → Stepper-ChC4n_MR.js} +1 -1
- package/dist/assets/{Switch-PX2e2fmh.js → Switch-Cb76tDF1.js} +1 -1
- package/dist/assets/{TableRow-XWy6p08b.js → TableRow-C1GdKICQ.js} +1 -1
- package/dist/assets/{TableSearch-D3zUK6Z3.js → TableSearch-jbcAncFN.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DD5f79Pf.js → ToggleButtonGroup-C-Ej5ozg.js} +1 -1
- package/dist/assets/{Verified-DQbkf-z8.js → Verified-C5DYyKPg.js} +1 -1
- package/dist/assets/{VerifiedUser-D2KQ721m.js → VerifiedUser-DZ-6K3-7.js} +1 -1
- package/dist/assets/{ViewColumn-Cx_AD7wt.js → ViewColumn-BoVFFfDJ.js} +1 -1
- package/dist/assets/{ViewList-SSRD2wP6.js → ViewList-CZlVFBXA.js} +1 -1
- package/dist/assets/{WorkingRemotely-BPkAH8Nl.js → WorkingRemotely-CXrTl8rP.js} +1 -1
- package/dist/assets/{_createAggregator-MUgsrckt.js → _createAggregator-Ci_Zs9XK.js} +1 -1
- package/dist/assets/{actions-Dwbla0kq.js → actions-BWWeILSZ.js} +1 -1
- package/dist/assets/{actions-DsSvOSGt.js → actions-ClXHNDZS.js} +1 -1
- package/dist/assets/{agreement-854h5HY5.js → agreement-_EqFArEr.js} +1 -1
- package/dist/assets/api-C2CXxFHw.js +1 -0
- package/dist/assets/{appearance-SY0Lu3T9.js → appearance-DXxmmTI7.js} +1 -1
- package/dist/assets/{audit-logs-B_t4DX9o.js → audit-logs-D9aX3Tp2.js} +1 -1
- package/dist/assets/{base-chart-DKDJfJFY.js → base-chart-D6uPSy4P.js} +1 -1
- package/dist/assets/{blocklet-Dyp5xEEp.js → blocklet-BPECYkZX.js} +1 -1
- package/dist/assets/{brace-fold.es-DtDX1gH5.js → brace-fold.es-CHgZBAZm.js} +1 -1
- package/dist/assets/{chain-Bku9jM2T.js → chain-B5IB3_jB.js} +1 -1
- package/dist/assets/{click-to-copy-CCUvKIt9.js → click-to-copy-B8dvvlbZ.js} +1 -1
- package/dist/assets/cloneDeep-rZxtzM6D.js +1 -0
- package/dist/assets/{closebrackets.es-DPeSJNAZ.js → closebrackets.es-DhD2Xsb9.js} +1 -1
- package/dist/assets/{codemirror.es-CZo2VPon.js → codemirror.es-0a5aPE5a.js} +1 -1
- package/dist/assets/{collapse-BJcesfz_.js → collapse-5eOS8Dho.js} +1 -1
- package/dist/assets/{comment.es-CS1TQLaG.js → comment.es-DE6lHDAA.js} +1 -1
- package/dist/assets/{config-navigation-BmDQs9mN.js → config-navigation-DeCNBZKN.js} +3 -3
- package/dist/assets/{connect-to-DSxVh16o.js → connect-to-rQFS-cCt.js} +1 -1
- package/dist/assets/{delete-confirm-DCrWKq4_.js → delete-confirm-Bx7CnwoT.js} +1 -1
- package/dist/assets/{detail-DpyBij20.js → detail-BjzzgFuT.js} +3 -3
- package/dist/assets/{dialog.es-XdbDBzoF.js → dialog.es-BRlQJNm8.js} +1 -1
- package/dist/assets/{domains-E9BqcXkq.js → domains-D4ri0JLo.js} +2 -2
- package/dist/assets/{download-BTgfd6Hn.js → download-DVGGbWB2.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-BA5b1FAd.js +1 -0
- package/dist/assets/{foldgutter.es-BD5Ffpu5.js → foldgutter.es-DgzPFEtU.js} +1 -1
- package/dist/assets/{get-safe-url-Syszr5pz.js → get-safe-url-CviLRb0J.js} +1 -1
- package/dist/assets/{get-safe-url-p8DunBxx.js → get-safe-url-eL5BW31g.js} +1 -1
- package/dist/assets/getValidReactChildren-C0Duhhr6.js +1 -0
- package/dist/assets/{hint.es-ZNkG0ven.js → hint.es-DLj1FjOD.js} +1 -1
- package/dist/assets/{hint.es2-D2OD501Q.js → hint.es2-d7-d0xCX.js} +1 -1
- package/dist/assets/{iframe-B1lpOaVl.js → iframe-C0pu6nAo.js} +1 -1
- package/dist/assets/{index-DmJSuau3.js → index-2k5JojQQ.js} +1 -1
- package/dist/assets/{index-MfnWX5mJ.js → index-5P4-vRy1.js} +1 -1
- package/dist/assets/{index-CvjD47KL.js → index-8C_c7Ax1.js} +1 -1
- package/dist/assets/{index-CZtmditM.js → index-B2bG6sOM.js} +1 -1
- package/dist/assets/{index-BJXG58J5.js → index-B8YtOfMM.js} +1 -1
- package/dist/assets/{index-B7KWLKH7.js → index-BIY9oIOY.js} +1 -1
- package/dist/assets/{index-DP8sdnYG.js → index-BI_rdcPV.js} +3 -3
- package/dist/assets/{index-BC6U8Uri.js → index-BNDg69WJ.js} +1 -1
- package/dist/assets/{index-6Hx7msxr.js → index-BeEuelSo.js} +1 -1
- package/dist/assets/{index-ClpCQ-yR.js → index-Bhe7AOH3.js} +5 -5
- package/dist/assets/{index-BIe9BhFF.js → index-BqKnpCZO.js} +3 -3
- package/dist/assets/{index-DS8Yr2RC.js → index-BsCQyowZ.js} +1 -1
- package/dist/assets/{index-DGTvtC7v.js → index-BsLj6yPD.js} +1 -1
- package/dist/assets/{index-CcEvFvsa.js → index-Bto45q2K.js} +195 -195
- package/dist/assets/{index-lHnxQOix.js → index-C4A-Q21j.js} +1 -1
- package/dist/assets/{index-CP2fjV5l.js → index-C6HgZvV4.js} +1 -1
- package/dist/assets/{index-C9p9hpNI.js → index-C7aGufUo.js} +1 -1
- package/dist/assets/{index-D3sRjzgz.js → index-CGHGnUc8.js} +1 -1
- package/dist/assets/{index-MS4HOSCp.js → index-CI5ZbC8c.js} +3 -3
- package/dist/assets/{index-JhDinU_F.js → index-CL7oCAFu.js} +1 -1
- package/dist/assets/{index-D-XQpVyE.js → index-CNRcRbif.js} +1 -1
- package/dist/assets/{index-CHyrTRmQ.js → index-CSLhD_a0.js} +1 -1
- package/dist/assets/{index-CUQF7yLK.js → index-CU1nsj1L.js} +1 -1
- package/dist/assets/{index-AzVVofQo.js → index-CZd-aLe6.js} +1 -1
- package/dist/assets/{index-fnHnDhSj.js → index-CcSkVofd.js} +1 -1
- package/dist/assets/{index--NrEeXzy.js → index-Cd1luUHy.js} +3 -3
- package/dist/assets/{index-BCfgVt4E.js → index-CogUOJBt.js} +1 -1
- package/dist/assets/{index-DhvKpLsL.js → index-CpZ0UhQe.js} +1 -1
- package/dist/assets/index-Cr5nqF1z.js +1 -0
- package/dist/assets/{index-OFBJkjD9.js → index-D5enIuAQ.js} +1 -1
- package/dist/assets/{index-B4SWt2xV.js → index-D7eUQaTP.js} +1 -1
- package/dist/assets/{index-ClhCLq7A.js → index-DG6Uyadv.js} +1 -1
- package/dist/assets/{index-VSc9fQ7q.js → index-DH6UjQOm.js} +1 -1
- package/dist/assets/index-DMRm5L16.js +236 -0
- package/dist/assets/{index-vhTlw383.js → index-DNWp9kw8.js} +1 -1
- package/dist/assets/{index-lWAY9Ksy.js → index-DPNpb-QL.js} +1 -1
- package/dist/assets/{index-CMRb-6OC.js → index-DR5y4N5C.js} +1 -1
- package/dist/assets/{index-CBTemYdS.js → index-DXJrsqKN.js} +1 -1
- package/dist/assets/{index-M2nN2fKV.js → index-DaX1eAVW.js} +1 -1
- package/dist/assets/{index-GrnG7kBt.js → index-DpJ16Sm6.js} +1 -1
- package/dist/assets/{index-Di-cax5r.js → index-DpaDqRYN.js} +1 -1
- package/dist/assets/{index-9JzKK1MS.js → index-DxvWdHYh.js} +1 -1
- package/dist/assets/{index-B6aOVrwc.js → index-VPrY1Udh.js} +1 -1
- package/dist/assets/{index-Su2V2f4E.js → index-W3Ml-Wqb.js} +1 -1
- package/dist/assets/{index-D1vB0w_8.js → index-b-QR6Mip.js} +1 -1
- package/dist/assets/{index-BZKxLRo0.js → index-c5l0hJ5e.js} +1 -1
- package/dist/assets/{index-Bo4HTnKG.js → index-ejbVGsd_.js} +1 -1
- package/dist/assets/{index.esm-B__QfopK.js → index.esm-B1jkr6md.js} +1 -1
- package/dist/assets/{info-addon.es-CSGEgVnA.js → info-addon.es-DpUxBdfS.js} +1 -1
- package/dist/assets/{info.es-B5cqJIGC.js → info.es-ChB5tmET.js} +1 -1
- package/dist/assets/{install-from-url-DFFBEV_e.js → install-from-url-wJqiAh2j.js} +1 -1
- package/dist/assets/{invitation-DOpiH18U.js → invitation-XdEZr7QL.js} +1 -1
- package/dist/assets/is-path-prefix-equal-omhapfHQ.js +1 -0
- package/dist/assets/{item-BXWrtvXT.js → item-DR3fl20E.js} +1 -1
- package/dist/assets/{javascript.es-DSru9FCl.js → javascript.es-CPMkVrEt.js} +1 -1
- package/dist/assets/{jump-to-line.es-DgTymgGR.js → jump-to-line.es-CucZyol5.js} +1 -1
- package/dist/assets/{jump.es-BTQTRgdQ.js → jump.es-CKQ8-H0I.js} +1 -1
- package/dist/assets/{lint.es-QhXshFSv.js → lint.es-BwA4DnJB.js} +1 -1
- package/dist/assets/{lint.es2-BionLjP4.js → lint.es2-m9HozRoG.js} +1 -1
- package/dist/assets/{lint.es3-D-emheIl.js → lint.es3-LTyQ7q9J.js} +1 -1
- package/dist/assets/{list-header-DclCTb2Y.js → list-header-Dz6szah4.js} +1 -1
- package/dist/assets/{log-DlrPOLw1.js → log-Czl50KKj.js} +1 -1
- package/dist/assets/{lottie-react.esm-BtY9Umfa.js → lottie-react.esm-B5vM5vbX.js} +1 -1
- package/dist/assets/{matchbrackets.es-4WPFLl3r.js → matchbrackets.es-DNquG_7N.js} +1 -1
- package/dist/assets/{memory-fyJoVi42.js → memory-C5weRYxv.js} +1 -1
- package/dist/assets/{metric-BY2ap2sz.js → metric-ByRhHebS.js} +1 -1
- package/dist/assets/{mode.es-Ae4kbqvF.js → mode.es-DddkOI7j.js} +1 -1
- package/dist/assets/{mode.es2-CvgKi9oZ.js → mode.es2-6PSPudr6.js} +1 -1
- package/dist/assets/{mode.es3-Cwbqg8ap.js → mode.es3-CbdzS6YD.js} +1 -1
- package/dist/assets/omit-CCfi32yF.js +1 -0
- package/dist/assets/{onlineParser.es-DOvNRyht.js → onlineParser.es-BvHjakUT.js} +1 -1
- package/dist/assets/{overview-BokCaGxx.js → overview-BxdG9vQe.js} +1 -1
- package/dist/assets/{permission-DhMAxfk7.js → permission-BjDRYRkw.js} +1 -1
- package/dist/assets/{preference-CWLooQ2E.js → preference-CS_MPFoW.js} +3 -3
- package/dist/assets/{raf-schd.esm-C0asBa1v.js → raf-schd.esm-DQ2g3V7C.js} +1 -1
- package/dist/assets/refType-CTGs7XXt.js +1 -0
- package/dist/assets/{resource-dialog-DR0h1Ojz.js → resource-dialog-MCveYVSs.js} +4 -4
- package/dist/assets/{runtime-BRBqNmZm.js → runtime-C5EO5yuH.js} +1 -1
- package/dist/assets/sdk-BnOviSeW.js +1 -0
- package/dist/assets/{search.es-C5DGtWVb.js → search.es-Cf5nkjUf.js} +1 -1
- package/dist/assets/{searchcursor.es-CAvjCdd4.js → searchcursor.es-B3ptSecG.js} +1 -1
- package/dist/assets/{service-ClvXTNLJ.js → service-BxNWWp0f.js} +1 -1
- package/dist/assets/{shorten-label-D-e0XQBv.js → shorten-label-CocGpDyt.js} +1 -1
- package/dist/assets/{show-hint.es-B9GaqLQS.js → show-hint.es-BLNGkxoc.js} +1 -1
- package/dist/assets/{simple-select-B1hnpha9.js → simple-select-hE51pvNp.js} +1 -1
- package/dist/assets/{spaces-Bwmp97ti.js → spaces-Cg4JAePf.js} +1 -1
- package/dist/assets/{status-DbWT3bc6.js → status-CoK_QANk.js} +1 -1
- package/dist/assets/{status-Dlf4wHdZ.js → status-D1VUPsFZ.js} +1 -1
- package/dist/assets/{sublime.es-rgie1Xs6.js → sublime.es-Cqf_YNBR.js} +1 -1
- package/dist/assets/{switch-control-DI710Q5L.js → switch-control-CpFMUT83.js} +1 -1
- package/dist/assets/{table-icons-CV1SkUU-.js → table-icons-YVNww4es.js} +1 -1
- package/dist/assets/{team-D_8IPWO4.js → team-DKYqeelm.js} +1 -1
- package/dist/assets/{toLower-CxcI4CJg.js → toLower-klzqfmNo.js} +1 -1
- package/dist/assets/toUpper-CVUmiv40.js +1 -0
- package/dist/assets/{traffic-D7FpgieW.js → traffic-NOpHSF15.js} +1 -1
- package/dist/assets/{url-evaluation-CepFZF4L.js → url-evaluation-DQz3CYtG.js} +1 -1
- package/dist/assets/{url-join-D9GfLPKT.js → url-join-Cp7zv9zw.js} +1 -1
- package/dist/assets/{use-mobile-DLKE-A52.js → use-mobile-Bxm6mpRB.js} +1 -1
- package/dist/assets/{use-mobile-5z6BnAF7.js → use-mobile-CH7Y-Ndx.js} +1 -1
- package/dist/assets/{useAsync-ChbIFxaK.js → useAsync-BKyrTZRd.js} +1 -1
- package/dist/assets/{useAsyncRetry-DbX7c2Mw.js → useAsyncRetry-B9XhMFRK.js} +1 -1
- package/dist/assets/{useLocalStorage-CxAPYzhK.js → useLocalStorage-DmMWMjkx.js} +1 -1
- package/dist/assets/{useThemeProps-aoRSUw4n.js → useThemeProps-CQRStL0F.js} +1 -1
- package/dist/assets/{util-CdJ4lHUt.js → util-nkStqa9O.js} +1 -1
- package/dist/assets/{wait-container-DbiB83Hk.js → wait-container-Bhe4PzEN.js} +1 -1
- package/dist/assets/{withStyles-DQlacV6k.js → withStyles-DCeZDZxD.js} +1 -1
- package/dist/assets/{without-wallet--qo3jFQ5.js → without-wallet-BS8YnzDA.js} +1 -1
- package/dist/assets/{wrap-locale-Zy2WQ7qi.js → wrap-locale-DJnx5xzR.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api-D6w9y8Rf.js +0 -1
- package/dist/assets/cloneDeep-B06o9qgW.js +0 -1
- package/dist/assets/emotion-react.browser.esm-CaOqpOD1.js +0 -1
- package/dist/assets/getValidReactChildren-BK7lW5Xm.js +0 -1
- package/dist/assets/index-B4PAvdSs.js +0 -236
- package/dist/assets/index-CcDHePQV.js +0 -1
- package/dist/assets/is-path-prefix-equal-o5bLD2qh.js +0 -1
- package/dist/assets/omit-wremrKyv.js +0 -1
- package/dist/assets/refType-Jgrfu9N0.js +0 -1
- package/dist/assets/sdk-BQ91irKx.js +0 -1
- package/dist/assets/toUpper-CKT2dxMs.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c6 as ze,r as L,cu as St,fM as Tr,bf as Po,bg as Mo,cU as Et,fN as tt,cv as pt,fO as Lo,fP as Do,b$ as Or,a7 as Ht,bZ as dt,dg as zo,c4 as Cr,j as o,bi as Ne,aQ as Ut,aR as Kt,d8 as ht,bm as Fo,d0 as Er,ep as Oe,C as Pe,dq as Be,N as q,am as Ve,dH as No,a4 as Ao,dU as Bo,fQ as ii,fk as oi,fR as si,fS as ai,aE as Wo,aF as Mn,a_ as xe,fT as $o,fU as sn,k as Z,cz as Ho,fV as Uo,H as nt,fW as Ko,aZ as li,X as ci,y as Ln,dx as Fe,aw as Ft,G as Ir,fX as ui,fY as Vo,fZ as an,t as di,V as Nt,x as rt,ej as _r,aU as qo,cJ as Go,f_ as Xo,f$ as Yo,g0 as Qo,O as Jo,cI as Zo,fl as es,eC as ts,eb as ns,by as rs,a1 as is,g1 as Rr,g2 as os,P as M,m as qe,aC as Dn,aT as Pr,eV as hi,b7 as ss,aI as It,B as At,a9 as as,aa as fi,aJ as ls,g3 as Mr,ab as cs,br as zn,D as us,s as ds,Y as hs,cP as fs,Z as mt,F as Fn,A as Ue,b as ps,o as ms,b4 as gs,af as bs,cA as ys,W as vs}from"./index-CcEvFvsa.js";import{d as xs}from"./ChevronLeft-iFiuV3Mt.js";import{d as ws}from"./ChevronRight-MYHMLDbN.js";import{d as Ss}from"./Search-lpWR6TI4.js";import{E as ks}from"./index-BZKxLRo0.js";import{o as js,u as Ts}from"./blocklet-Dyp5xEEp.js";import{A as Os}from"./Autocomplete-pjj0Huvc.js";import{d as Cs}from"./Verified-DQbkf-z8.js";import{d as Es,a as Is}from"./VerifiedUser-D2KQ721m.js";import{d as _s}from"./Add-BvqHwYc7.js";import{d as pi}from"./Launch-Dn_Oz4Rn.js";import{d as Rs}from"./Done-Bdt6xdh9.js";import{d as mi}from"./DeleteOutline-DPGzRSba.js";import{D as Ps}from"./delete-confirm-DCrWKq4_.js";import{d as Ms}from"./MoreVert-noNALlFa.js";import{g as yt}from"./get-safe-url-Syszr5pz.js";import{B as Lr}from"./ButtonGroup-B4zeBmGo.js";var Ls=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Dr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Ds=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},zs=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,u=t.direction,d=u===void 0?"bottom":u,p=t.reloadDeps,g=p===void 0?[]:p,f=t.manual,y=t.onBefore,w=t.onSuccess,x=t.onError,S=t.onFinally,j=ze(L.useState(),2),R=j[0],T=j[1],O=ze(L.useState(!1),2),P=O[0],A=O[1],G=d==="top",W=L.useRef(),U=L.useRef(0),ee=L.useMemo(function(){return r?r(R):!1},[R]),ie=St(function(oe){return Po(void 0,void 0,void 0,function(){var te,me,Ie,_e;return Mo(this,function(kt){switch(kt.label){case 0:return[4,e(oe)];case 1:return te=kt.sent(),T(oe?Et(Et({},te),{list:G?tt(tt([],ze(te.list),!1),ze((Ie=oe.list)!==null&&Ie!==void 0?Ie:[]),!1):tt(tt([],ze((_e=oe.list)!==null&&_e!==void 0?_e:[]),!1),ze(te.list),!1)}):Et(Et({},te),{list:tt([],ze((me=te.list)!==null&&me!==void 0?me:[]),!1)})),[2,te]}})})},{manual:f,onFinally:function(oe,te,me){A(!1),S==null||S(te,me)},onBefore:function(){return y==null?void 0:y()},onSuccess:function(oe){setTimeout(function(){if(G){var te=Tr(n);if(te=te===document?document.documentElement:te,te){var me=Dr(te);te.scrollTo(0,me-U.current)}}else se()}),w==null||w(oe)},onError:function(oe){return x==null?void 0:x(oe)}}),H=ie.loading,Ee=ie.error,ge=ie.run,ke=ie.runAsync,be=ie.cancel,ye=pt(function(){ee||(A(!0),ge(R))}),N=pt(function(){return ee?Promise.reject():(A(!0),ke(R))}),Q=function(){return A(!1),ge()},he=function(){return A(!1),ke()},se=function(){var oe=Tr(n);if(oe){var te=oe===document?document.documentElement:oe,me=Ls(te),Ie=Dr(te),_e=Ds(te);G?(W.current!==void 0&&W.current>me&&me<=s&&ye(),W.current=me,U.current=Ie-me):Ie-me<=_e+s&&ye()}};return Lo("scroll",function(){H||P||se()},{target:n}),Do(function(){ge()},tt([],ze(g),!1)),{data:R,loading:!P&&H,error:Ee,loadingMore:P,noMore:ee,loadMore:ye,loadMoreAsync:N,reload:pt(Q),reloadAsync:pt(he),mutate:T,cancel:be}};const Fs=["name"],Ns=["children","className","clone","component"];function As(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Bs(e){return(n,r={})=>{const{name:i}=r,s=Or(r,Fs);let u=i;const p=Ht(typeof n=="function"?y=>({root:w=>n(dt({theme:y},w))}):{root:n},dt({Component:e,name:i||e.displayName,classNamePrefix:u},s));let g;n.filterProps&&(g=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=L.forwardRef(function(w,x){const{children:S,className:j,clone:R,component:T}=w,O=Or(w,Ns),P=p(w),A=Cr(P.root,j);let G=O;if(g&&(G=As(G,g)),R)return L.cloneElement(S,dt({className:Cr(S.props.className,A)},G));if(typeof S=="function")return S(dt({className:A},G));const W=T||e;return o.jsx(W,dt({ref:x,className:A},G,{children:S}))});return zo(f,e),f}}const Nc="blocklet-add-component-registry",Ac="server-add-registry",Ws={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>'},gt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vt=(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 d=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:d};return t&&!Dt(g)?null:g}const s=i[0],u=s.split("-");if(u.length>1){const d={provider:r,prefix:u.shift(),name:u.join("-")};return t&&!Dt(d)?null:d}if(n&&r===""){const d={provider:r,prefix:"",name:s};return t&&!Dt(d,n)?null:d}return null},Dt=(e,t)=>e?!!((e.provider===""||e.provider.match(gt))&&(t&&e.prefix===""||e.prefix.match(gt))&&e.name.match(gt)):!1,gi=Object.freeze({left:0,top:0,width:16,height:16}),Bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Nn=Object.freeze({...gi,...Bt}),wn=Object.freeze({...Nn,body:"",hidden:!1});function $s(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 zr(e,t){const n=$s(e,t);for(const r in wn)r in Bt?r in e&&!(r in n)&&(n[r]=Bt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Hs(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(u){if(n[u])return i[u]=[];if(!(u in i)){i[u]=null;const d=r[u]&&r[u].parent,p=d&&s(d);p&&(i[u]=[d].concat(p))}return i[u]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Us(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function u(d){s=zr(r[d]||i[d],s)}return u(t),n.forEach(u),zr(e,s)}function bi(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=Hs(e);for(const i in r){const s=r[i];s&&(t(i,Us(e,i,s)),n.push(i))}return n}const Ks={provider:"",aliases:{},not_found:{},...gi};function ln(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function yi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ln(e,Ks))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(gt)||typeof s.body!="string"||!ln(s,wn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],u=s.parent;if(!i.match(gt)||typeof u!="string"||!n[u]&&!r[u]||!ln(s,wn))return null}return t}const Fr=Object.create(null);function Vs(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ke(e,t){const n=Fr[e]||(Fr[e]=Object.create(null));return n[t]||(n[t]=Vs(e,t))}function An(e,t){return yi(t)?bi(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function qs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let vt=!1;function vi(e){return typeof e=="boolean"&&(vt=e),vt}function Gs(e){const t=typeof e=="string"?Vt(e,!0,vt):e;if(t){const n=Ke(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Xs(e,t){const n=Vt(e,!0,vt);if(!n)return!1;const r=Ke(n.provider,n.prefix);return qs(r,n.name,t)}function Ys(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),vt&&!t&&!e.prefix){let i=!1;return yi(e)&&(e.prefix="",bi(e,(s,u)=>{u&&Xs(s,u)&&(i=!0)})),i}const n=e.prefix;if(!Dt({provider:t,prefix:n,name:"a"}))return!1;const r=Ke(t,n);return!!An(r,e)}const xi=Object.freeze({width:null,height:null}),wi=Object.freeze({...xi,...Bt}),Qs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Js=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Nr(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(Qs);if(r===null||!r.length)return e;const i=[];let s=r.shift(),u=Js.test(s);for(;;){if(u){const d=parseFloat(s);isNaN(d)?i.push(s):i.push(Math.ceil(d*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");u=!u}}const Zs=e=>e==="unset"||e==="undefined"||e==="none";function ea(e,t){const n={...Nn,...e},r={...wi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(S=>{const j=[],R=S.hFlip,T=S.vFlip;let O=S.rotate;R?T?O+=2:(j.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),j.push("scale(-1 1)"),i.top=i.left=0):T&&(j.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),j.push("scale(1 -1)"),i.top=i.left=0);let P;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:P=i.height/2+i.top,j.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:j.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,j.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}O%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),j.length&&(s='<g transform="'+j.join(" ")+'">'+s+"</g>")});const u=r.width,d=r.height,p=i.width,g=i.height;let f,y;u===null?(y=d===null?"1em":d==="auto"?g:d,f=Nr(y,p/g)):(f=u==="auto"?p:u,y=d===null?Nr(f,g/p):d==="auto"?g:d);const w={},x=(S,j)=>{Zs(j)||(w[S]=j.toString())};return x("width",f),x("height",y),w.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:w,body:s}}const ta=/\sid="(\S+)"/g,na="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ra=0;function ia(e,t=na){const n=[];let r;for(;r=ta.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 u=typeof t=="function"?t(s):t+(ra++).toString(),d=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+d+')([")]|\\.[a-z])',"g"),"$1"+u+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Sn=Object.create(null);function oa(e,t){Sn[e]=t}function kn(e){return Sn[e]||Sn[""]}function Bn(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 Wn=Object.create(null),ft=["https://api.simplesvg.com","https://api.unisvg.com"],zt=[];for(;ft.length>0;)ft.length===1||Math.random()>.5?zt.push(ft.shift()):zt.push(ft.pop());Wn[""]=Bn({resources:["https://api.iconify.design"].concat(zt)});function sa(e,t){const n=Bn(t);return n===null?!1:(Wn[e]=n,!0)}function $n(e){return Wn[e]}const aa=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ar=aa();function la(e,t){const n=$n(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(u=>{i=Math.max(i,u.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function ca(e){return e===404}const ua=(e,t,n)=>{const r=[],i=la(e,t),s="icons";let u={type:s,provider:e,prefix:t,icons:[]},d=0;return n.forEach((p,g)=>{d+=p.length+1,d>=i&&g>0&&(r.push(u),u={type:s,provider:e,prefix:t,icons:[]},d=p.length),u.icons.push(p)}),r.push(u),r};function da(e){if(typeof e=="string"){const t=$n(e);if(t)return t.path}return"/"}const ha=(e,t,n)=>{if(!Ar){n("abort",424);return}let r=da(t.provider);switch(t.type){case"icons":{const s=t.prefix,d=t.icons.join(","),p=new URLSearchParams({icons:d});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;Ar(e+r).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{n(ca(u)?"abort":"next",u)});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)})},fa={prepare:ua,send:ha};function pa(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,u=i.prefix,d=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[u]||(p[u]=Ke(s,u));let f;d in g.icons?f=t.loaded:u===""||g.missing.has(d)?f=t.missing:f=t.pending;const y={provider:s,prefix:u,name:d};f.push(y)}),t}function Si(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ma(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 u=s.icons,d=u.pending.length;u.pending=u.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])u.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))u.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),u.pending.length!==d&&(n||Si([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let ga=0;function ba(e,t,n){const r=ga++,i=Si.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(s)}),i}function ya(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Vt(i,t,n):i;s&&r.push(s)}),r}var va={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function xa(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let u;if(e.random){let W=e.resources.slice(0);for(u=[];W.length>1;){const U=Math.floor(Math.random()*W.length);u.push(W[U]),W=W.slice(0,U).concat(W.slice(U+1))}u=u.concat(W)}else u=e.resources.slice(s).concat(e.resources.slice(0,s));const d=Date.now();let p="pending",g=0,f,y=null,w=[],x=[];typeof r=="function"&&x.push(r);function S(){y&&(clearTimeout(y),y=null)}function j(){p==="pending"&&(p="aborted"),S(),w.forEach(W=>{W.status==="pending"&&(W.status="aborted")}),w=[]}function R(W,U){U&&(x=[]),typeof W=="function"&&x.push(W)}function T(){return{startTime:d,payload:t,status:p,queriesSent:g,queriesPending:w.length,subscribe:R,abort:j}}function O(){p="failed",x.forEach(W=>{W(void 0,f)})}function P(){w.forEach(W=>{W.status==="pending"&&(W.status="aborted")}),w=[]}function A(W,U,ee){const ie=U!=="success";switch(w=w.filter(H=>H!==W),p){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(U==="abort"){f=ee,O();return}if(ie){f=ee,w.length||(u.length?G():O());return}if(S(),P(),!e.random){const H=e.resources.indexOf(W.resource);H!==-1&&H!==e.index&&(e.index=H)}p="completed",x.forEach(H=>{H(ee)})}function G(){if(p!=="pending")return;S();const W=u.shift();if(W===void 0){if(w.length){y=setTimeout(()=>{S(),p==="pending"&&(P(),O())},e.timeout);return}O();return}const U={status:"pending",resource:W,callback:(ee,ie)=>{A(U,ee,ie)}};w.push(U),g++,y=setTimeout(G,e.rotate),n(W,t,U.callback)}return setTimeout(G),T}function ki(e){const t={...va,...e};let n=[];function r(){n=n.filter(d=>d().status==="pending")}function i(d,p,g){const f=xa(t,d,p,(y,w)=>{r(),g&&g(y,w)});return n.push(f),f}function s(d){return n.find(p=>d(p))||null}return{query:i,find:s,setIndex:d=>{t.index=d},getIndex:()=>t.index,cleanup:r}}function Br(){}const cn=Object.create(null);function wa(e){if(!cn[e]){const t=$n(e);if(!t)return;const n=ki(t),r={config:t,redundancy:n};cn[e]=r}return cn[e]}function Sa(e,t,n){let r,i;if(typeof e=="string"){const s=kn(e);if(!s)return n(void 0,424),Br;i=s.send;const u=wa(e);u&&(r=u.redundancy)}else{const s=Bn(e);if(s){r=ki(s);const u=e.resources?e.resources[0]:"",d=kn(u);d&&(i=d.send)}}return!r||!i?(n(void 0,424),Br):r.query(t,i,n)().abort}const Wr="iconify2",xt="iconify",ji=xt+"-count",$r=xt+"-version",Ti=36e5,ka=168;function jn(e,t){try{return e.getItem(t)}catch{}}function Hn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Hr(e,t){try{e.removeItem(t)}catch{}}function Tn(e,t){return Hn(e,ji,t.toString())}function On(e){return parseInt(jn(e,ji))||0}const qt={local:!0,session:!0},Oi={local:new Set,session:new Set};let Un=!1;function ja(e){Un=e}let _t=typeof window>"u"?{}:window;function Ci(e){const t=e+"Storage";try{if(_t&&_t[t]&&typeof _t[t].length=="number")return _t[t]}catch{}qt[e]=!1}function Ei(e,t){const n=Ci(e);if(!n)return;const r=jn(n,$r);if(r!==Wr){if(r){const d=On(n);for(let p=0;p<d;p++)Hr(n,xt+p.toString())}Hn(n,$r,Wr),Tn(n,0);return}const i=Math.floor(Date.now()/Ti)-ka,s=d=>{const p=xt+d.toString(),g=jn(n,p);if(typeof g=="string"){try{const f=JSON.parse(g);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>i&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,d))return!0}catch{}Hr(n,p)}};let u=On(n);for(let d=u-1;d>=0;d--)s(d)||(d===u-1?(u--,Tn(n,u)):Oi[e].add(d))}function Ii(){if(!Un){ja(!0);for(const e in qt)Ei(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=Ke(r,i);if(!An(s,n).length)return!1;const u=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function Ta(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in qt)Ei(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Oa(e,t){Un||Ii();function n(r){let i;if(!qt[r]||!(i=Ci(r)))return;const s=Oi[r];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=On(i),!Tn(i,u+1))return;const d={cached:Math.floor(Date.now()/Ti),provider:e.provider,data:t};return Hn(i,xt+u.toString(),JSON.stringify(d))}t.lastModified&&!Ta(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ur(){}function Ca(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ma(e)}))}function Ea(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=kn(n)))return;s.prepare(n,r,i).forEach(d=>{Sa(n,d,p=>{if(typeof p!="object")d.icons.forEach(g=>{e.missing.add(g)});else try{const g=An(e,p);if(!g.length)return;const f=e.pendingIcons;f&&g.forEach(y=>{f.delete(y)}),Oa(e,p)}catch(g){console.error(g)}Ca(e)})})}))}const Ia=(e,t)=>{const n=ya(e,!0,vi()),r=pa(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Ur)}),()=>{p=!1}}const i=Object.create(null),s=[];let u,d;return r.pending.forEach(p=>{const{provider:g,prefix:f}=p;if(f===d&&g===u)return;u=g,d=f,s.push(Ke(g,f));const y=i[g]||(i[g]=Object.create(null));y[f]||(y[f]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:f,name:y}=p,w=Ke(g,f),x=w.pendingIcons||(w.pendingIcons=new Set);x.has(y)||(x.add(y),i[g][f].push(y))}),s.forEach(p=>{const{provider:g,prefix:f}=p;i[g][f].length&&Ea(p,i[g][f])}),t?ba(t,r,s):Ur};function _a(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in xi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Ra=/[\s,]+/;function Pa(e,t){t.split(Ra).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ma(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 La(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 Da(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function za(e){return"data:image/svg+xml,"+Da(e)}function Fa(e){return'url("'+za(e)+'")'}let bt;function Na(){try{bt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{bt=null}}function Aa(e){return bt===void 0&&Na(),bt?bt.createHTML(e):e}const _i={...wi,inline:!1},Ba={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Wa={display:"inline-block"},Cn={backgroundColor:"currentColor"},Ri={backgroundColor:"transparent"},Kr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Vr={WebkitMask:Cn,mask:Cn,background:Ri};for(const e in Vr){const t=Vr[e];for(const n in Kr)t[e+n]=Kr[n]}const $a={..._i,inline:!0};function qr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ha=(e,t,n,r)=>{const i=n?$a:_i,s=_a(i,t),u=t.mode||"svg",d={},p=t.style||{},g={...u==="svg"?Ba:{},ref:r};for(let T in t){const O=t[T];if(O!==void 0)switch(T){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[T]=O===!0||O==="true"||O===1;break;case"flip":typeof O=="string"&&Pa(s,O);break;case"color":d.color=O;break;case"rotate":typeof O=="string"?s[T]=Ma(O):typeof O=="number"&&(s[T]=O);break;case"ariaHidden":case"aria-hidden":O!==!0&&O!=="true"&&delete g["aria-hidden"];break;default:i[T]===void 0&&(g[T]=O)}}const f=ea(e,s),y=f.attributes;if(s.inline&&(d.verticalAlign="-0.125em"),u==="svg"){g.style={...d,...p},Object.assign(g,y);let T=0,O=t.id;return typeof O=="string"&&(O=O.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Aa(ia(f.body,O?()=>O+"ID"+T++:"iconifyReact"))},Ne.createElement("svg",g)}const{body:w,width:x,height:S}=e,j=u==="mask"||(u==="bg"?!1:w.indexOf("currentColor")!==-1),R=La(w,{...y,width:x+"",height:S+""});return g.style={...d,"--svg":Fa(R),width:qr(y.width),height:qr(y.height),...Wa,...j?Cn:Ri,...p},Ne.createElement("span",g)};vi(!0);oa("",fa);if(typeof document<"u"&&typeof window<"u"){Ii();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"||!Ys(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;sa(n,i)||console.error(r)}catch{console.error(r)}}}}class Pi extends Ne.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=Vt(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Gs(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:Ia([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const u=["iconify"];i.prefix!==""&&u.push("iconify--"+i.prefix),i.provider!==""&&u.push("iconify--"+i.provider),this._setData({data:s,classes:u}),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:Ne.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Ha({...Nn,...n.data},r,t._inline,t._ref)}}const Le=Ne.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Ne.createElement(Pi,r)});Ne.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Ne.createElement(Pi,r)});var Kn={},Ua=Kt;Object.defineProperty(Kn,"__esModule",{value:!0});var Mi=Kn.default=void 0,Ka=Ua(Ut()),Va=o;Mi=Kn.default=(0,Ka.default)((0,Va.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Li={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 Di={exports:{}};(function(e,t){(function(n,r){e.exports=r(L)})(ht,n=>(()=>{var r={703:(d,p,g)=>{var f=g(414);function y(){}function w(){}w.resetWarningCache=y,d.exports=function(){function x(R,T,O,P,A,G){if(G!==f){var W=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 W.name="Invariant Violation",W}}function S(){return x}x.isRequired=x;var j={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:S,element:x,elementType:x,instanceOf:S,node:x,objectOf:S,oneOf:S,oneOfType:S,shape:S,exact:S,checkPropTypes:w,resetWarningCache:y};return j.PropTypes=j,j}},697:(d,p,g)=>{d.exports=g(703)()},414:d=>{d.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:d=>{var p=typeof Element<"u",g=typeof Map=="function",f=typeof Set=="function",y=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function w(x,S){if(x===S)return!0;if(x&&S&&typeof x=="object"&&typeof S=="object"){if(x.constructor!==S.constructor)return!1;var j,R,T,O;if(Array.isArray(x)){if((j=x.length)!=S.length)return!1;for(R=j;R--!=0;)if(!w(x[R],S[R]))return!1;return!0}if(g&&x instanceof Map&&S instanceof Map){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;for(O=x.entries();!(R=O.next()).done;)if(!w(R.value[1],S.get(R.value[0])))return!1;return!0}if(f&&x instanceof Set&&S instanceof Set){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;return!0}if(y&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(S)){if((j=x.length)!=S.length)return!1;for(R=j;R--!=0;)if(x[R]!==S[R])return!1;return!0}if(x.constructor===RegExp)return x.source===S.source&&x.flags===S.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===S.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===S.toString();if((j=(T=Object.keys(x)).length)!==Object.keys(S).length)return!1;for(R=j;R--!=0;)if(!Object.prototype.hasOwnProperty.call(S,T[R]))return!1;if(p&&x instanceof Element)return!1;for(R=j;R--!=0;)if((T[R]!=="_owner"&&T[R]!=="__v"&&T[R]!=="__o"||!x.$$typeof)&&!w(x[T[R]],S[T[R]]))return!1;return!0}return x!=x&&S!=S}d.exports=function(x,S){try{return w(x,S)}catch(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}}},359:d=>{d.exports=n}},i={};function s(d){var p=i[d];if(p!==void 0)return p.exports;var g=i[d]={exports:{}};return r[d](g,g.exports,s),g.exports}s.n=d=>{var p=d&&d.__esModule?()=>d.default:()=>d;return s.d(p,{a:p}),p},s.d=(d,p)=>{for(var g in p)s.o(p,g)&&!s.o(d,g)&&Object.defineProperty(d,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=(d,p)=>Object.prototype.hasOwnProperty.call(d,p),s.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var u={};return(()=>{function d(h){var a,m,b="";if(typeof h=="string"||typeof h=="number")b+=h;else if(typeof h=="object")if(Array.isArray(h))for(a=0;a<h.length;a++)h[a]&&(m=d(h[a]))&&(b&&(b+=" "),b+=m);else for(a in h)h[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var h,a,m=0,b="";m<arguments.length;)(h=arguments[m++])&&(a=d(h))&&(b&&(b+=" "),b+=a);return b}s.r(u),s.d(u,{default:()=>_o});var g=s(359),f=s.n(g);const y=function(h){var a=typeof h;return h!=null&&(a=="object"||a=="function")},w=typeof ht=="object"&&ht&&ht.Object===Object&&ht;var x=typeof self=="object"&&self&&self.Object===Object&&self;const S=w||x||Function("return this")(),j=function(){return S.Date.now()};var R=/\s/,T=/^\s+/;const O=function(h){return h&&h.slice(0,function(a){for(var m=a.length;m--&&R.test(a.charAt(m)););return m}(h)+1).replace(T,"")},P=S.Symbol;var A=Object.prototype,G=A.hasOwnProperty,W=A.toString,U=P?P.toStringTag:void 0,ee=Object.prototype.toString,ie=P?P.toStringTag:void 0;const H=function(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":ie&&ie in Object(h)?function(a){var m=G.call(a,U),b=a[U];try{a[U]=void 0;var I=!0}catch{}var B=W.call(a);return I&&(m?a[U]=b:delete a[U]),B}(h):function(a){return ee.call(a)}(h)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,be=parseInt;const ye=function(h){if(typeof h=="number")return h;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&H(b)=="[object Symbol]"}(h))return NaN;if(y(h)){var a=typeof h.valueOf=="function"?h.valueOf():h;h=y(a)?a+"":a}if(typeof h!="string")return h===0?h:+h;h=O(h);var m=ge.test(h);return m||ke.test(h)?be(h.slice(2),m?2:8):Ee.test(h)?NaN:+h};var N=Math.max,Q=Math.min;const he=function(h,a,m){var b,I,B,J,c,l,v=0,C=!1,_=!1,E=!0;if(typeof h!="function")throw new TypeError("Expected a function");function V($){var Y=b,ne=I;return b=I=void 0,v=$,J=h.apply(ne,Y)}function K($){return v=$,c=setTimeout(D,a),C?V($):J}function X($){var Y=$-l;return l===void 0||Y>=a||Y<0||_&&$-v>=B}function D(){var $=j();if(X($))return z($);c=setTimeout(D,function(Y){var ne=a-(Y-l);return _?Q(ne,B-(Y-v)):ne}($))}function z($){return c=void 0,E&&b?V($):(b=I=void 0,J)}function F(){var $=j(),Y=X($);if(b=arguments,I=this,l=$,Y){if(c===void 0)return K(l);if(_)return clearTimeout(c),c=setTimeout(D,a),V(l)}return c===void 0&&(c=setTimeout(D,a)),J}return a=ye(a)||0,y(m)&&(C=!!m.leading,B=(_="maxWait"in m)?N(ye(m.maxWait)||0,a):B,E="trailing"in m?!!m.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),v=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?J:z(j())},F},se=function(h,a,m){var b=!0,I=!0;if(typeof h!="function")throw new TypeError("Expected a function");return y(m)&&(b="leading"in m?!!m.leading:b,I="trailing"in m?!!m.trailing:I),he(h,a,{leading:b,maxWait:a,trailing:I})};var oe=s(590),te=s.n(oe),me=function(){if(typeof Map<"u")return Map;function h(a,m){var b=-1;return a.some(function(I,B){return I[0]===m&&(b=B,!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(m){var b=h(this.__entries__,m),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(m,b){var I=h(this.__entries__,m);~I?this.__entries__[I][1]=b:this.__entries__.push([m,b])},a.prototype.delete=function(m){var b=this.__entries__,I=h(b,m);~I&&b.splice(I,1)},a.prototype.has=function(m){return!!~h(this.__entries__,m)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(m,b){b===void 0&&(b=null);for(var I=0,B=this.__entries__;I<B.length;I++){var J=B[I];m.call(b,J[1],J[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,_e=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")(),kt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_e):function(h){return setTimeout(function(){return h(Date.now())},1e3/60)},oo=["top","right","bottom","left","width","height","size","weight"],so=typeof MutationObserver<"u",ao=function(){function h(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,m){var b=!1,I=!1,B=0;function J(){b&&(b=!1,a()),I&&l()}function c(){kt(J)}function l(){var v=Date.now();if(b){if(v-B<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);B=v}return l}(this.refresh.bind(this))}return h.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},h.prototype.removeObserver=function(a){var m=this.observers_,b=m.indexOf(a);~b&&m.splice(b,1),!m.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},h.prototype.updateObservers_=function(){var a=this.observers_.filter(function(m){return m.gatherActive(),m.hasActive()});return a.forEach(function(m){return m.broadcastActive()}),a.length>0},h.prototype.connect_=function(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),so?(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)},h.prototype.disconnect_=function(){Ie&&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)},h.prototype.onTransitionEnd_=function(a){var m=a.propertyName,b=m===void 0?"":m;oo.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null,h}(),tr=function(h,a){for(var m=0,b=Object.keys(a);m<b.length;m++){var I=b[m];Object.defineProperty(h,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return h},Ge=function(h){return h&&h.ownerDocument&&h.ownerDocument.defaultView||_e},nr=Tt(0,0,0,0);function jt(h){return parseFloat(h)||0}function rr(h){for(var a=[],m=1;m<arguments.length;m++)a[m-1]=arguments[m];return a.reduce(function(b,I){return b+jt(h["border-"+I+"-width"])},0)}var lo=typeof SVGGraphicsElement<"u"?function(h){return h instanceof Ge(h).SVGGraphicsElement}:function(h){return h instanceof Ge(h).SVGElement&&typeof h.getBBox=="function"};function co(h){return Ie?lo(h)?function(a){var m=a.getBBox();return Tt(0,0,m.width,m.height)}(h):function(a){var m=a.clientWidth,b=a.clientHeight;if(!m&&!b)return nr;var I=Ge(a).getComputedStyle(a),B=function(E){for(var V={},K=0,X=["top","right","bottom","left"];K<X.length;K++){var D=X[K],z=E["padding-"+D];V[D]=jt(z)}return V}(I),J=B.left+B.right,c=B.top+B.bottom,l=jt(I.width),v=jt(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+J)!==m&&(l-=rr(I,"left","right")+J),Math.round(v+c)!==b&&(v-=rr(I,"top","bottom")+c)),!function(E){return E===Ge(E).document.documentElement}(a)){var C=Math.round(l+J)-m,_=Math.round(v+c)-b;Math.abs(C)!==1&&(l-=C),Math.abs(_)!==1&&(v-=_)}return Tt(B.left,B.top,l,v)}(h):nr}function Tt(h,a,m,b){return{x:h,y:a,width:m,height:b}}var uo=function(){function h(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tt(0,0,0,0),this.target=a}return h.prototype.isActive=function(){var a=co(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},h.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},h}(),ho=function(h,a){var m,b,I,B,J,c,l,v=(b=(m=a).x,I=m.y,B=m.width,J=m.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),tr(l,{x:b,y:I,width:B,height:J,top:I,right:b+B,bottom:J+I,left:b}),l);tr(this,{target:h,contentRect:v})},fo=function(){function h(a,m,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=m,this.callbackCtx_=b}return h.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 Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var m=this.observations_;m.has(a)||(m.set(a,new uo(a)),this.controller_.addObserver(this),this.controller_.refresh())}},h.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 Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var m=this.observations_;m.has(a)&&(m.delete(a),m.size||this.controller_.removeObserver(this))}},h.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},h.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(m){m.isActive()&&a.activeObservations_.push(m)})},h.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,m=this.activeObservations_.map(function(b){return new ho(b.target,b.broadcastRect())});this.callback_.call(a,m,a),this.clearActive()}},h.prototype.clearActive=function(){this.activeObservations_.splice(0)},h.prototype.hasActive=function(){return this.activeObservations_.length>0},h}(),ir=typeof WeakMap<"u"?new WeakMap:new me,or=function h(a){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var m=ao.getInstance(),b=new fo(a,m,this);ir.set(this,b)};["observe","unobserve","disconnect"].forEach(function(h){or.prototype[h]=function(){var a;return(a=ir.get(this))[h].apply(a,arguments)}});const sr=_e.ResizeObserver!==void 0?_e.ResizeObserver:or,Xe="Left",We="Right",Ye="Up",$e="Down",Qe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Yt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},ar="mousemove",lr="mouseup";function cr(h,a){if(a===0)return h;const m=Math.PI/180*a;return[h[0]*Math.cos(m)+h[1]*Math.sin(m),h[1]*Math.cos(m)-h[0]*Math.sin(m)]}function po(h){const{trackMouse:a}=h,m=g.useRef(Object.assign({},Yt)),b=g.useRef(Object.assign({},Qe)),I=g.useRef(Object.assign({},b.current));let B;for(B in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Qe),h),Qe)b.current[B]===void 0&&(b.current[B]=Qe[B]);const[J,c]=g.useMemo(()=>function(l,v){const C=D=>{const z="touches"in D;z&&D.touches.length>1||l((F,$)=>{$.trackMouse&&!z&&(document.addEventListener(ar,_),document.addEventListener(lr,V));const{clientX:Y,clientY:ne}=z?D.touches[0]:D,ce=cr([Y,ne],$.rotationAngle);return $.onTouchStartOrOnMouseDown&&$.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},F),Yt),{initial:ce.slice(),xy:ce,start:D.timeStamp||0})})},_=D=>{l((z,F)=>{const $="touches"in D;if($&&D.touches.length>1)return z;if(D.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:Y,clientY:ne}=$?D.touches[0]:D,[ce,Se]=cr([Y,ne],F.rotationAngle),ve=ce-z.xy[0],fe=Se-z.xy[1],le=Math.abs(ve),re=Math.abs(fe),De=(D.timeStamp||0)-z.start,at=Math.sqrt(le*le+re*re)/(De||1),lt=[ve/(De||1),fe/(De||1)],Me=function(ct,et,ut,je){return ct>et?ut>0?We:Xe:je>0?$e:Ye}(le,re,ve,fe),He=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Qe.delta;if(le<He&&re<He&&!z.swiping)return z;const Re={absX:le,absY:re,deltaX:ve,deltaY:fe,dir:Me,event:D,first:z.first,initial:z.initial,velocity:at,vxvy:lt};Re.first&&F.onSwipeStart&&F.onSwipeStart(Re),F.onSwiping&&F.onSwiping(Re);let Ze=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Ze=!0),Ze&&F.preventScrollOnSwipe&&F.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:Re,swiping:!0})})},E=D=>{l((z,F)=>{let $;if(z.swiping&&z.eventData){if(D.timeStamp-z.start<F.swipeDuration){$=Object.assign(Object.assign({},z.eventData),{event:D}),F.onSwiped&&F.onSwiped($);const Y=F[`onSwiped${$.dir}`];Y&&Y($)}}else F.onTap&&F.onTap({event:D});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},z),Yt),{eventData:$})})},V=D=>{document.removeEventListener(ar,_),document.removeEventListener(lr,V),E(D)},K=(D,z)=>{let F=()=>{};if(D&&D.addEventListener){const $=Object.assign(Object.assign({},Qe.touchEventOptions),z.touchEventOptions),Y=[["touchstart",C,$],["touchmove",_,Object.assign(Object.assign({},$),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,$]];Y.forEach(([ne,ce,Se])=>D.addEventListener(ne,ce,Se)),F=()=>Y.forEach(([ne,ce])=>D.removeEventListener(ne,ce))}return F},X={ref:D=>{D!==null&&l((z,F)=>{if(z.el===D)return z;const $={};return z.el&&z.el!==D&&z.cleanUpTouch&&(z.cleanUpTouch(),$.cleanUpTouch=void 0),F.trackTouch&&D&&($.cleanUpTouch=K(D,F)),Object.assign(Object.assign(Object.assign({},z),{el:D}),$)})}};return v.trackMouse&&(X.onMouseDown=C),[X,K]}(l=>m.current=l(m.current,b.current),{trackMouse:a}),[a]);return m.current=function(l,v,C,_){return v.trackTouch&&l.el?l.cleanUpTouch?v.preventScrollOnSwipe!==C.preventScrollOnSwipe||v.touchEventOptions.passive!==C.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,v)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,v)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(m.current,b.current,I.current,c),J}var k=s(697);function it(h){return it=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},it(h)}function ur(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function dr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?ur(Object(m),!0).forEach(function(b){mo(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):ur(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function mo(h,a,m){return(a=function(b){var I=function(B,J){if(it(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,J);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}var go={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},Qt=f().memo(function(h){var a=dr(dr({},go),h),m=a.description,b=a.fullscreen,I=a.handleImageLoaded,B=a.isFullscreen,J=a.onImageError,c=a.original,l=a.originalAlt,v=a.originalHeight,C=a.originalWidth,_=a.originalTitle,E=a.sizes,V=a.srcSet,K=a.loading,X=B&&b||c;return f().createElement(f().Fragment,null,f().createElement("img",{className:"image-gallery-image",src:X,alt:l,srcSet:V,height:v,width:C,sizes:E,title:_,onLoad:function(D){return I(D,c)},onError:J,loading:K}),m&&f().createElement("span",{className:"image-gallery-description"},m))});Qt.displayName="Item",Qt.propTypes={description:k.string,fullscreen:k.string,handleImageLoaded:k.func.isRequired,isFullscreen:k.bool,onImageError:k.func.isRequired,original:k.string.isRequired,originalAlt:k.string,originalHeight:k.string,originalWidth:k.string,originalTitle:k.string,sizes:k.string,srcSet:k.string,loading:k.string};const bo=Qt;function ot(h){return ot=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},ot(h)}function hr(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function fr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?hr(Object(m),!0).forEach(function(b){yo(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):hr(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function yo(h,a,m){return(a=function(b){var I=function(B,J){if(ot(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,J);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}var vo={left:f().createElement("polyline",{points:"15 18 9 12 15 6"}),right:f().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:f().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:f().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:f().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:f().createElement(f().Fragment,null,f().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),f().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},xo={strokeWidth:1,viewBox:"0 0 24 24"},pr=function(h){var a=fr(fr({},xo),h),m=a.strokeWidth,b=a.viewBox,I=a.icon;return f().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:m,strokeLinecap:"round",strokeLinejoin:"round"},vo[I])};pr.propTypes={strokeWidth:k.number,viewBox:k.string,icon:(0,k.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const Ot=pr;var Jt=f().memo(function(h){var a=h.isFullscreen,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:m,"aria-label":"Open Fullscreen"},f().createElement(Ot,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Jt.displayName="Fullscreen",Jt.propTypes={isFullscreen:k.bool.isRequired,onClick:k.func.isRequired};const wo=Jt;var Zt=f().memo(function(h){var a=h.disabled,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:m,"aria-label":"Previous Slide"},f().createElement(Ot,{icon:"left",viewBox:"6 0 12 24"}))});Zt.displayName="LeftNav",Zt.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const So=Zt;var en=f().memo(function(h){var a=h.disabled,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:m,"aria-label":"Next Slide"},f().createElement(Ot,{icon:"right",viewBox:"6 0 12 24"}))});en.displayName="RightNav",en.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const ko=en;var tn=f().memo(function(h){var a=h.isPlaying,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:m,"aria-label":"Play or Pause Slideshow"},f().createElement(Ot,{strokeWidth:2,icon:a?"pause":"play"}))});tn.displayName="PlayPause",tn.propTypes={isPlaying:k.bool.isRequired,onClick:k.func.isRequired};const jo=tn;function st(h){return st=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},st(h)}function nn(){return nn=Object.assign?Object.assign.bind():function(h){for(var a=1;a<arguments.length;a++){var m=arguments[a];for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(h[b]=m[b])}return h},nn.apply(this,arguments)}function mr(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function gr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?mr(Object(m),!0).forEach(function(b){To(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):mr(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function To(h,a,m){return(a=function(b){var I=function(B,J){if(st(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,J);if(st(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return st(I)==="symbol"?I:String(I)}(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}var Oo={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},br=function(h){var a=gr(gr({},Oo),h),m=a.children,b=a.className,I=po({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return f().createElement("div",nn({},I,{className:b}),m)};br.propTypes={children:k.node.isRequired,className:k.string,delta:k.number,onSwiped:k.func,onSwiping:k.func};const yr=br;function Je(h){return Je=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},Je(h)}function vr(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function xr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?vr(Object(m),!0).forEach(function(b){wr(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):vr(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function Co(h,a){for(var m=0;m<a.length;m++){var b=a[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,Sr(b.key),b)}}function rn(h,a){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,b){return m.__proto__=b,m},rn(h,a)}function Eo(h,a){if(a&&(Je(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(h)}function ue(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function Ct(h){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Ct(h)}function wr(h,a,m){return(a=Sr(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}function Sr(h){var a=function(m,b){if(Je(m)!=="object"||m===null)return m;var I=m[Symbol.toPrimitive];if(I!==void 0){var B=I.call(m,b);if(Je(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}(h,"string");return Je(a)==="symbol"?a:String(a)}var kr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],Io=(0,k.arrayOf)((0,k.shape)({srcSet:k.string,media:k.string}));function jr(h){var a=parseInt(h.keyCode||h.which||0,10);return a===66||a===62}var on=function(h){(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&&rn(c,l)})(J,h);var a,m,b,I,B=(b=J,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=Ct(b);if(I){var v=Ct(this).constructor;c=Reflect.construct(l,arguments,v)}else c=l.apply(this,arguments);return Eo(this,c)});function J(c){var l;return function(v,C){if(!(v instanceof C))throw new TypeError("Cannot call a class as a function")}(this,J),wr(ue(l=B.call(this,c)),"onBulletClick",function(v,C){var _=l.props,E=_.onBulletClick,V=_.items,K=l.state.currentIndex;v.target.blur(),K!==C&&(V.length===2?l.slideToIndexWithStyleReset(C,v):l.slideToIndex(C,v)),E&&E(v,C)}),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=f().createRef(),l.thumbnailsWrapper=f().createRef(),l.thumbnails=f().createRef(),l.imageGallerySlideWrapper=f().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(ue(l)),l.handleKeyDown=l.handleKeyDown.bind(ue(l)),l.handleMouseDown=l.handleMouseDown.bind(ue(l)),l.handleResize=l.handleResize.bind(ue(l)),l.handleTouchMove=l.handleTouchMove.bind(ue(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ue(l)),l.handleScreenChange=l.handleScreenChange.bind(ue(l)),l.handleSwiping=l.handleSwiping.bind(ue(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ue(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ue(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ue(l)),l.handleImageError=l.handleImageError.bind(ue(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ue(l)),l.renderThumbInner=l.renderThumbInner.bind(ue(l)),l.renderItem=l.renderItem.bind(ue(l)),l.slideLeft=l.slideLeft.bind(ue(l)),l.slideRight=l.slideRight.bind(ue(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ue(l)),l.togglePlay=l.togglePlay.bind(ue(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=se(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=J,m=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,v=c.useWindowKeyDown;l&&this.play(),v?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 v=this.props,C=v.items,_=v.lazyLoad,E=v.slideDuration,V=v.slideInterval,K=v.startIndex,X=v.thumbnailPosition,D=v.showThumbnails,z=v.useWindowKeyDown,F=this.state,$=F.currentIndex,Y=F.isPlaying,ne=c.items.length!==C.length,ce=!te()(c.items,C),Se=c.startIndex!==K,ve=c.thumbnailPosition!==X,fe=c.showThumbnails!==D;V===c.slideInterval&&E===c.slideDuration||Y&&(this.pause(),this.play()),ve&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),fe&&D&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),fe&&!D&&this.removeThumbnailsResizeObserver(),(ne||fe)&&this.handleResize(),l.currentIndex!==$&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=se(this.unthrottledSlideToIndex,E,{trailing:!1})),!_||c.lazyLoad&&!ce||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(Se||ce)&&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,v=l.currentIndex,C=l.isTransitioning,_=this.props,E=_.onSlide,V=_.slideDuration;this.transitionTimer=window.setTimeout(function(){C&&(c.setState({isTransitioning:!C,isSwipingThumbnail:!1}),E&&E(v))},V+50)}},{key:"onThumbnailClick",value:function(c,l){var v=this.props,C=v.onThumbnailClick,_=v.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==l&&(_.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),C&&C(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var v=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){v.slideToIndex(l),v.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,v=this.props,C=v.disableThumbnailScroll,_=v.items,E=this.state,V=E.thumbnailsWrapperWidth,K=E.thumbnailsWrapperHeight,X=this.thumbnails&&this.thumbnails.current;if(C)return 0;if(X){if(this.isThumbnailVertical()){if(X.scrollHeight<=K)return 0;l=X.scrollHeight-K}else{if(X.scrollWidth<=V||V<=0)return 0;l=X.scrollWidth-V}return c*(l/(_.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,v=this.props,C=v.infinite,_=v.items,E="",V="image-gallery-left",K="image-gallery-right";switch(c){case l-1:E=" ".concat(V);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(K)}return _.length>=3&&C&&(c===0&&l===_.length-1?E=" ".concat(K):c===_.length-1&&l===0&&(E=" ".concat(V))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,v=l.currentIndex,C=l.currentSlideOffset,_=l.previousIndex,E=v!==_,V=c===0&&_===0,K=c===1&&_===1,X=c===0&&v===1,D=c===1&&v===0,z=C===0,F=-100*v+100*c+C;return C>0?this.direction="left":C<0&&(this.direction="right"),D&&C>0&&(F=-100+C),X&&C<0&&(F=100+C),E?V&&z&&this.direction==="left"?F=100:K&&z&&this.direction==="right"&&(F=-100):(D&&z&&this.direction==="left"&&(F=-100),X&&z&&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,v=l.currentIndex,C=l.currentSlideOffset,_=l.slideStyle,E=this.props,V=E.infinite,K=E.items,X=E.useTranslate3D,D=E.isRTL,z=-100*v,F=K.length-1,$=(z+100*c)*(D?-1:1)+C;V&&K.length>2&&(v===0&&c===F?$=-100*(D?-1:1)+C:v===F&&c===0&&($=100*(D?-1:1)+C)),V&&K.length===2&&($=this.getTranslateXForTwoSlide(c));var Y="translate(".concat($,"%, 0)");return X&&(Y="translate3d(".concat($,"%, 0, 0)")),xr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:Y,MozTransform:Y,msTransform:Y,OTransform:Y,transform:Y},_)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,v=l.useTranslate3D,C=l.isRTL,_=this.state,E=_.thumbsTranslate,V=_.thumbsStyle,K=C?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),v&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(K,"px, 0)"),v&&(c="translate3d(".concat(K,"px, 0, 0)"))),xr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},V)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,v=this.props,C=v.items,_=v.slideOnThumbnailOver,E=v.onClick,V=v.lazyLoad,K=v.onTouchMove,X=v.onTouchEnd,D=v.onTouchStart,z=v.onMouseOver,F=v.onMouseLeave,$=v.renderItem,Y=v.renderThumbInner,ne=v.showThumbnails,ce=v.showBullets,Se=[],ve=[],fe=[];return C.forEach(function(le,re){var De=c.getAlignmentClassName(re),at=le.originalClass?" ".concat(le.originalClass):"",lt=le.thumbnailClass?" ".concat(le.thumbnailClass):"",Me=le.renderItem||$||c.renderItem,He=le.renderThumbInner||Y||c.renderThumbInner,Re=!V||De||c.lazyLoaded[re];Re&&V&&!c.lazyLoaded[re]&&(c.lazyLoaded[re]=!0);var Ze=c.getSlideStyle(re),ct=f().createElement("div",{"aria-label":"Go to Slide ".concat(re+1),key:"slide-".concat(re),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(at),style:Ze,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:K,onTouchEnd:X,onTouchStart:D,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},Re?Me(le):f().createElement("div",{style:{height:"100%"}}));if(Se.push(ct),ne&&le.thumbnail){var et=p("image-gallery-thumbnail",lt,{active:l===re});ve.push(f().createElement("button",{key:"thumbnail-".concat(re),type:"button",tabIndex:"0","aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1),className:et,onMouseLeave:_?c.onThumbnailMouseLeave:null,onMouseOver:function(je){return c.handleThumbnailMouseOver(je,re)},onFocus:function(je){return c.handleThumbnailMouseOver(je,re)},onKeyUp:function(je){return c.handleThumbnailKeyUp(je,re)},onClick:function(je){return c.onThumbnailClick(je,re)}},He(le)))}if(ce){var ut=p("image-gallery-bullet",le.bulletClass,{active:l===re});fe.push(f().createElement("button",{type:"button",key:"bullet-".concat(re),className:ut,onClick:function(je){return c.onBulletClick(je,re)},"aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1)}))}}),{slides:Se,thumbnails:ve,bullets:fe}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,v=l.previousIndex,C=l.currentIndex,_=c.length-1;return Math.abs(v-C)>1&&!(v===0&&C===_)&&!(v===_&&C===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,v=l.isTransitioning,C=l.previousIndex,_=l.currentIndex;return v&&!(c===C||c===_)}},{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,v=c.isSwipingThumbnail,C=-this.getThumbsTranslate(l);v||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:C,thumbsSwipedTranslate:C}))}},{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,v=c.absX,C=c.dir,_=this.props,E=_.disableSwipe,V=_.stopPropagation,K=this.state,X=K.galleryWidth,D=K.isTransitioning,z=K.swipingUpDown,F=K.swipingLeftRight;if(C!==Ye&&C!==$e&&!z||F){if(C!==Xe&&C!==We||F||this.setState({swipingLeftRight:!0}),!E){var $=this.props.swipingTransitionDuration;if(V&&l.preventDefault(),D)this.setState({currentSlideOffset:0});else{var Y=C===We?1:-1,ne=v/X*100;Math.abs(ne)>=100&&(ne=100);var ce={transition:"transform ".concat($,"ms ease-out")};this.setState({currentSlideOffset:Y*ne,slideStyle:ce})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,v=c.absX,C=c.absY,_=c.dir,E=this.props,V=E.stopPropagation,K=E.swipingThumbnailTransitionDuration,X=this.state,D=X.thumbsSwipedTranslate,z=X.thumbnailsWrapperHeight,F=X.thumbnailsWrapperWidth,$=X.swipingUpDown,Y=X.swipingLeftRight;if(this.isThumbnailVertical()){if((_===Xe||_===We||Y)&&!$)return void(Y||this.setState({swipingLeftRight:!0}));_!==Ye&&_!==$e||$||this.setState({swipingUpDown:!0})}else{if((_===Ye||_===$e||$)&&!Y)return void($||this.setState({swipingUpDown:!0}));_!==Xe&&_!==We||Y||this.setState({swipingLeftRight:!0})}var ne,ce,Se,ve,fe,le=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(ne=D+(_===$e?C:-C),ce=le.scrollHeight-z+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollHeight<=z):(ne=D+(_===We?v:-v),ce=le.scrollWidth-F+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollWidth<=F),!fe&&(_!==Xe&&_!==Ye||!Se)&&(_!==We&&_!==$e||!ve)){V&&l.stopPropagation();var re={transition:"transform ".concat(K,"ms ease-out")};this.setState({thumbsTranslate:ne,thumbsStyle:re})}}},{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,v=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),v&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,v=c.dir,C=c.velocity,_=this.props,E=_.disableSwipe,V=_.stopPropagation,K=_.flickThreshold;if(!E){var X=this.props.isRTL;V&&l.stopPropagation(),this.resetSwipingDirection();var D=(v===Xe?1:-1)*(X?-1:1),z=C>K&&!(v===Ye||v===$e);this.handleOnSwipedTo(D,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var v=this.state,C=v.currentIndex,_=v.isTransitioning,E=C;!this.sufficientSwipe()&&!l||_||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=C),this.unthrottledSlideToIndex(E)}},{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,v=l.disableKeyDown,C=l.useBrowserFullscreen,_=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!v)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:_&&!C&&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 sr(he(function(v){v&&v.forEach(function(C){l.setState({thumbnailsWrapperWidth:C.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new sr(he(function(v){v&&v.forEach(function(C){l.setState({thumbnailsWrapperHeight:C.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,v=c.useBrowserFullscreen,C=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,_=this.imageGallery.current===C;l&&l(_),v&&this.setState({isFullscreen:_})}},{key:"slideToIndex",value:function(c,l){var v=this.state,C=v.currentIndex,_=v.isTransitioning,E=this.props,V=E.items,K=E.slideDuration,X=E.onBeforeSlide;if(!_){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var D=V.length-1,z=c;c<0?z=D:c>D&&(z=0),X&&z!==C&&X(z),this.setState({previousIndex:C,currentIndex:z,isTransitioning:z!==C,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 v=this.state,C=v.currentIndex,_=v.isTransitioning,E=this.props.items,V=C+(l==="left"?-1:1);_||(E.length===2?this.slideToIndexWithStyleReset(V,c):this.slideToIndex(V,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var v=this,C=this.state,_=C.currentIndex,E=C.currentSlideOffset;this.setState({currentSlideOffset:E+(_>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return v.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){jr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){jr(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;kr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;kr.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,v=l.onPlay,C=l.slideInterval,_=l.slideDuration,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(C,_)),v&&c&&v(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,v=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(v))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var v=this.props.onImageLoad;!this.loadedImages[l]&&v&&(this.loadedImages[l]=!0,v(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,v=this.props.onImageError||this.handleImageError;return f().createElement(bo,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:v,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 f().createElement("span",{className:"image-gallery-thumbnail-inner"},f().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&&f().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,v=c.isFullscreen,C=c.modalFullscreen,_=c.isPlaying,E=this.props,V=E.additionalClass,K=E.disableThumbnailSwipe,X=E.indexSeparator,D=E.isRTL,z=E.items,F=E.thumbnailPosition,$=E.renderFullscreenButton,Y=E.renderCustomControls,ne=E.renderLeftNav,ce=E.renderRightNav,Se=E.showBullets,ve=E.showFullscreenButton,fe=E.showIndex,le=E.showThumbnails,re=E.showNav,De=E.showPlayButton,at=E.renderPlayPauseButton,lt=this.getThumbnailStyle(),Me=this.getSlideItems(),He=Me.slides,Re=Me.thumbnails,Ze=Me.bullets,ct=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":D}),et=f().createElement("div",{ref:this.imageGallerySlideWrapper,className:ct},Y&&Y(),this.canSlide()?f().createElement(f().Fragment,null,re&&f().createElement(f().Fragment,null,ne(this.slideLeft,!this.canSlideLeft()),ce(this.slideRight,!this.canSlideRight())),f().createElement(yr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},f().createElement("div",{className:"image-gallery-slides"},He))):f().createElement("div",{className:"image-gallery-slides"},He),De&&at(this.togglePlay,_),Se&&f().createElement("div",{className:"image-gallery-bullets"},f().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Ze)),ve&&$(this.toggleFullScreen,v),fe&&f().createElement("div",{className:"image-gallery-index"},f().createElement("span",{className:"image-gallery-index-current"},l+1),f().createElement("span",{className:"image-gallery-index-separator"},X),f().createElement("span",{className:"image-gallery-index-total"},z.length))),ut=p("image-gallery",V,{"fullscreen-modal":C}),je=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:v}),Ro=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&D},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!K},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!K});return f().createElement("div",{ref:this.imageGallery,className:ut,"aria-live":"polite"},f().createElement("div",{className:je},(F==="bottom"||F==="right")&&et,le&&Re.length>0?f().createElement(yr,{className:Ro,delta:0,onSwiping:!K&&this.handleThumbnailSwiping,onSwiped:!K&&this.handleOnThumbnailSwiped},f().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},f().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:lt,"aria-label":"Thumbnail Navigation"},Re))):null,(F==="top"||F==="left")&&et))}}],m&&Co(a.prototype,m),Object.defineProperty(a,"prototype",{writable:!1}),J}(f().Component);on.propTypes={flickThreshold:k.number,items:(0,k.arrayOf)((0,k.shape)({bulletClass:k.string,bulletOnClick:k.func,description:k.string,original:k.string,originalHeight:k.number,originalWidth:k.number,loading:k.string,thumbnailHeight:k.number,thumbnailWidth:k.number,thumbnailLoading:k.string,fullscreen:k.string,originalAlt:k.string,originalTitle:k.string,thumbnail:k.string,thumbnailAlt:k.string,thumbnailLabel:k.string,thumbnailTitle:k.string,originalClass:k.string,thumbnailClass:k.string,renderItem:k.func,renderThumbInner:k.func,imageSet:Io,srcSet:k.string,sizes:k.string})).isRequired,showNav:k.bool,autoPlay:k.bool,lazyLoad:k.bool,infinite:k.bool,showIndex:k.bool,showBullets:k.bool,showThumbnails:k.bool,showPlayButton:k.bool,showFullscreenButton:k.bool,disableThumbnailScroll:k.bool,disableKeyDown:k.bool,disableSwipe:k.bool,disableThumbnailSwipe:k.bool,useBrowserFullscreen:k.bool,onErrorImageURL:k.string,indexSeparator:k.string,thumbnailPosition:(0,k.oneOf)(["top","bottom","left","right"]),startIndex:k.number,slideDuration:k.number,slideInterval:k.number,slideOnThumbnailOver:k.bool,swipeThreshold:k.number,swipingTransitionDuration:k.number,swipingThumbnailTransitionDuration:k.number,onSlide:k.func,onBeforeSlide:k.func,onScreenChange:k.func,onPause:k.func,onPlay:k.func,onClick:k.func,onImageLoad:k.func,onImageError:k.func,onTouchMove:k.func,onTouchEnd:k.func,onTouchStart:k.func,onMouseOver:k.func,onMouseLeave:k.func,onBulletClick:k.func,onThumbnailError:k.func,onThumbnailClick:k.func,renderCustomControls:k.func,renderLeftNav:k.func,renderRightNav:k.func,renderPlayPauseButton:k.func,renderFullscreenButton:k.func,renderItem:k.func,renderThumbInner:k.func,stopPropagation:k.bool,additionalClass:k.string,useTranslate3D:k.bool,isRTL:k.bool,useWindowKeyDown:k.bool},on.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(h,a){return f().createElement(So,{onClick:h,disabled:a})},renderRightNav:function(h,a){return f().createElement(ko,{onClick:h,disabled:a})},renderPlayPauseButton:function(h,a){return f().createElement(jo,{onClick:h,isPlaying:a})},renderFullscreenButton:function(h,a){return f().createElement(wo,{onClick:h,isFullscreen:a})},useWindowKeyDown:!0};const _o=on})(),u})())})(Di);var qa=Di.exports;const Ga=Fo(qa);function Xa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,u=e.get(r);u||(u=new Map,e.set(r,u));var d=JSON.stringify({rootMargin:i,threshold:s}),p=u.get(d);if(!p){var g=new Map,f=new IntersectionObserver(function(y){y.forEach(function(w){var x=g.get(w.target);x==null||x(w)})},{root:r,rootMargin:i,threshold:s});p={observer:f,entryCallbacks:g},u.set(d,p)}return{observe:function(w,x){var S,j;(S=p)==null||S.entryCallbacks.set(w,x),(j=p)==null||j.observer.observe(w)},unobserve:function(w){var x,S;(x=p)==null||x.entryCallbacks.delete(w),(S=p)==null||S.observer.unobserve(w)}}}return{getObserver:t}}var Ya="0px",Qa=[0],Ja=Xa();function Za(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Ya,i=(n=e==null?void 0:e.threshold)!=null?n:Qa,s=L.useRef(null),u=L.useRef(null),d=L.useRef(null),p=L.useState(),g=p[0],f=p[1],y=L.useCallback(function(){var j=s.current;if(!j){f(void 0);return}var R=Ja.getObserver({root:u.current,rootMargin:r,threshold:i});R.observe(j,function(T){f(T)}),d.current=R},[r,i]),w=L.useCallback(function(){var j=d.current,R=s.current;R&&(j==null||j.unobserve(R)),d.current=null},[]),x=L.useCallback(function(j){w(),s.current=j,y()},[y,w]),S=L.useCallback(function(j){w(),u.current=j,y()},[y,w]);return[x,{entry:g,rootRef:S}]}function En(){return En=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},En.apply(this,arguments)}function el(e){var t,n=Za(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),u=L.useState(s),d=u[0],p=u[1];return s&&!d&&p(!0),[r,En({},i,{isVisible:s,wasEverVisible:d})]}var tl=100;function nl(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,u=e.delayInMs,d=u===void 0?tl:u,p=el({rootMargin:i}),g=p[0],f=p[1],y=f.rootRef,w=f.isVisible,x=!s&&!t&&w&&n;return L.useEffect(function(){if(x){var S=setTimeout(function(){r()},d);return function(){clearTimeout(S)}}},[r,x,d]),[g,{rootRef:y}]}const rl={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"/>'},il={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>'},ol={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 un=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function dn(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function zi(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 Fi(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 sl(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 Vn={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,"-":un?173:189,"=":un?61:187,";":un?59:186,"'":222,"[":219,"]":221,"\\":220},Ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},In={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},pe={16:!1,18:!1,17:!1,91:!1},de={};for(var Rt=1;Rt<20;Rt++)Vn["f".concat(Rt)]=111+Rt;var ae=[],Gr=!1,Ni="all",Ai=[],Gt=function(t){return Vn[t.toLowerCase()]||Ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Bi(e){Ni=e||"all"}function wt(){return Ni||"all"}function al(){return ae.slice(0)}function ll(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 cl(e){return typeof e=="string"&&(e=Gt(e)),ae.indexOf(e)!==-1}function ul(e,t){var n,r;e||(e=wt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;wt()===e&&Bi(t||"all")}function dl(e){var t=e.keyCode||e.which||e.charCode,n=ae.indexOf(t);if(n>=0&&ae.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ae.splice(0,ae.length),(t===93||t===224)&&(t=91),t in pe){pe[t]=!1;for(var r in Ae)Ae[r]===t&&(Te[r]=!1)}}function hl(e){if(typeof e>"u")Object.keys(de).forEach(function(u){return delete de[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&hn(u)});else if(typeof e=="object")e.key&&hn(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=""),hn({key:e,scope:i,method:s,splitKey:"+"})}}var hn=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,u=s===void 0?"+":s,d=Fi(n);d.forEach(function(p){var g=p.split(u),f=g.length,y=g[f-1],w=y==="*"?"*":Gt(y);if(de[w]){r||(r=wt());var x=f>1?zi(Ae,g):[];de[w]=de[w].filter(function(S){var j=i?S.method===i:!0;return!(j&&S.scope===r&&sl(S.mods,x))})}})};function Xr(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 pe)Object.prototype.hasOwnProperty.call(pe,s)&&(!pe[s]&&t.mods.indexOf(+s)>-1||pe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!pe[16]&&!pe[18]&&!pe[17]&&!pe[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 Yr(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(Te.filter.call(this,e)){if((r===93||r===224)&&(r=91),ae.indexOf(r)===-1&&r!==229&&ae.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var j=In[S];e[S]&&ae.indexOf(j)===-1?ae.push(j):!e[S]&&ae.indexOf(j)>-1?ae.splice(ae.indexOf(j),1):S==="metaKey"&&e[S]&&ae.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ae=ae.slice(ae.indexOf(j))))}),r in pe){pe[r]=!0;for(var i in Ae)Ae[i]===r&&(Te[i]=!0);if(!n)return}for(var s in pe)Object.prototype.hasOwnProperty.call(pe,s)&&(pe[s]=e[In[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ae.indexOf(17)===-1&&ae.push(17),ae.indexOf(18)===-1&&ae.push(18),pe[17]=!0,pe[18]=!0);var u=wt();if(n)for(var d=0;d<n.length;d++)n[d].scope===u&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&Xr(e,n[d],u,t);if(r in de){for(var p=0;p<de[r].length;p++)if((e.type==="keydown"&&de[r][p].keydown||e.type==="keyup"&&de[r][p].keyup)&&de[r][p].key){for(var g=de[r][p],f=g.splitKey,y=g.key.split(f),w=[],x=0;x<y.length;x++)w.push(Gt(y[x]));w.sort().join("")===ae.sort().join("")&&Xr(e,g,u,t)}}}}function fl(e){return Ai.indexOf(e)>-1}function Te(e,t,n){ae=[];var r=Fi(e),i=[],s="all",u=document,d=0,p=!1,g=!0,f="+",y=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(u=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(y=t.capture),typeof t.splitKey=="string"&&(f=t.splitKey)),typeof t=="string"&&(s=t);d<r.length;d++)e=r[d].split(f),i=[],e.length>1&&(i=zi(Ae,e)),e=e[e.length-1],e=e==="*"?"*":Gt(e),e in de||(de[e]=[]),de[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[d],method:n,key:r[d],splitKey:f,element:u});typeof u<"u"&&!fl(u)&&window&&(Ai.push(u),dn(u,"keydown",function(w){Yr(w,u)},y),Gr||(Gr=!0,dn(window,"focus",function(){ae=[]},y)),dn(u,"keyup",function(w){Yr(w,u),dl(w)},y))}function pl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var fn={setScope:Bi,getScope:wt,deleteScope:ul,getPressedKeyCodes:al,isPressed:cl,filter:ll,trigger:pl,unbind:hl,keyMap:Vn,modifier:Ae,modifierMap:In};for(var pn in fn)Object.prototype.hasOwnProperty.call(fn,pn)&&(Te[pn]=fn[pn]);if(typeof window<"u"){var ml=window.hotkeys;Te.noConflict=function(e){return e&&window.hotkeys===Te&&(window.hotkeys=ml),Te},window.hotkeys=Te}Te.filter=function(){return!0};var Wi=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},gl=function(t){return Wi(t,["INPUT","TEXTAREA","SELECT"])};function bl(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,u=i.filter,d=i.keyup,p=i.keydown,g=i.filterPreventDefault,f=g===void 0?!0:g,y=i.enabled,w=y===void 0?!0:y,x=i.enableOnContentEditable,S=x===void 0?!1:x,j=L.useRef(null),R=L.useCallback(function(T,O){var P,A;return u&&!u(T)?!f:gl(T)&&!Wi(T,s)||(P=T.target)!=null&&P.isContentEditable&&!S?!0:j.current===null||document.activeElement===j.current||(A=j.current)!=null&&A.contains(document.activeElement)?(t(T,O),!0):!1},r?[j,s,u].concat(r):[j,s,u]);return L.useEffect(function(){if(!w){Te.unbind(e,R);return}return d&&p!==!0&&(n.keydown=!1),Te(e,n||{},R),function(){return Te.unbind(e,R)}},[R,e,w]),j}Te.isPressed;const $i=L.createContext({open:!1,toggleOpen:e=>{}});function yl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx($i.Provider,{value:i,children:e})}function qn(){return L.useContext($i)}const Ce={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},vl=e=>St(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function xl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...$o(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=d=>{t.onFilterChange({...n,keyword:d.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const u=d=>{const p={...n,...d};r(sn(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:d=>{const p=d?sn(n,(g,f)=>d.includes(f)):{};r(sn(p,g=>g===""||g===void 0))},handleActiveMenu:d=>{d!==e.menu&&r({menu:d})},handleSort:(d,p)=>{u({sortBy:d,sortDirection:p||d==="nameAsc"?"asc":"desc"})},handleKeyword:d=>{u({category:void 0,keyword:d||void 0})},handlePrice:d=>{u({price:d===e.price?void 0:d})},handleCategory:d=>{u({category:d===e.category?"":d})},handleDeveloper:d=>{u({owner:d||void 0})},handlePage:d=>{u({currentPage:d})},handleSwitchShowResources:d=>{u({showResources:d})},handleSearchSelect:d=>{i(d)}}}const wl=(e,t,n)=>e&&t||!n,Hi=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ui=(e,t,n)=>{var r,i;const s=Go(e),u=Xo(s.search);if((r=Yo(e,{strict:!0}))!=null&&r.endsWith(".gif"))return u.imageFilter?Qo({...s,search:""}):e;if(u.imageFilter)return e;const d=n||((i=window.blocklet)==null?void 0:i.version),{w:p,h:g}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return Ln(e,{...p||g?{imageFilter:"resize",w:p,h:g}:{},v:d})},Sl=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],kl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),jl=e=>{var t,n;return Array.isArray(e)?e.map(r=>r.message).join(`
|
|
1
|
+
import{c6 as ze,r as L,cu as St,fM as Tr,bf as Po,bg as Mo,cU as Et,fN as tt,cv as pt,fO as Lo,fP as Do,b$ as Or,a7 as Ht,bZ as dt,dg as zo,c4 as Cr,j as o,bi as Ne,aQ as Ut,aR as Kt,d8 as ht,bm as Fo,d0 as Er,ep as Oe,C as Pe,dq as Be,N as q,am as Ve,dH as No,a4 as Ao,dU as Bo,fQ as ii,fk as oi,fR as si,fS as ai,aE as Wo,aF as Mn,a_ as xe,fT as $o,fU as sn,k as Z,cz as Ho,fV as Uo,H as nt,fW as Ko,aZ as li,X as ci,y as Ln,dx as Fe,aw as Ft,G as Ir,fX as ui,fY as Vo,fZ as an,t as di,V as Nt,x as rt,ej as _r,aU as qo,cJ as Go,f_ as Xo,f$ as Yo,g0 as Qo,O as Jo,cI as Zo,fl as es,eC as ts,eb as ns,by as rs,a1 as is,g1 as Rr,g2 as os,P as M,m as qe,aC as Dn,aT as Pr,eV as hi,b7 as ss,aI as It,B as At,a9 as as,aa as fi,aJ as ls,g3 as Mr,ab as cs,br as zn,D as us,s as ds,Y as hs,cP as fs,Z as mt,F as Fn,A as Ue,b as ps,o as ms,b4 as gs,af as bs,cA as ys,W as vs}from"./index-Bto45q2K.js";import{d as xs}from"./ChevronLeft-CjZhoDay.js";import{d as ws}from"./ChevronRight-BWTxyhAI.js";import{d as Ss}from"./Search-dXBmfHfo.js";import{E as ks}from"./index-c5l0hJ5e.js";import{o as js,u as Ts}from"./blocklet-BPECYkZX.js";import{A as Os}from"./Autocomplete-CWMa5Vdg.js";import{d as Cs}from"./Verified-C5DYyKPg.js";import{d as Es,a as Is}from"./VerifiedUser-DZ-6K3-7.js";import{d as _s}from"./Add-Btc_DX8L.js";import{d as pi}from"./Launch-C9TTe6MQ.js";import{d as Rs}from"./Done-BQMFqQ5C.js";import{d as mi}from"./DeleteOutline-BVp48FcR.js";import{D as Ps}from"./delete-confirm-Bx7CnwoT.js";import{d as Ms}from"./MoreVert-u81IYW1J.js";import{g as yt}from"./get-safe-url-eL5BW31g.js";import{B as Lr}from"./ButtonGroup-BvkROuSC.js";var Ls=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Dr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Ds=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},zs=function(e,t){t===void 0&&(t={});var n=t.target,r=t.isNoMore,i=t.threshold,s=i===void 0?100:i,u=t.direction,d=u===void 0?"bottom":u,p=t.reloadDeps,g=p===void 0?[]:p,f=t.manual,y=t.onBefore,w=t.onSuccess,x=t.onError,S=t.onFinally,j=ze(L.useState(),2),R=j[0],T=j[1],O=ze(L.useState(!1),2),P=O[0],A=O[1],G=d==="top",W=L.useRef(),U=L.useRef(0),ee=L.useMemo(function(){return r?r(R):!1},[R]),ie=St(function(oe){return Po(void 0,void 0,void 0,function(){var te,me,Ie,_e;return Mo(this,function(kt){switch(kt.label){case 0:return[4,e(oe)];case 1:return te=kt.sent(),T(oe?Et(Et({},te),{list:G?tt(tt([],ze(te.list),!1),ze((Ie=oe.list)!==null&&Ie!==void 0?Ie:[]),!1):tt(tt([],ze((_e=oe.list)!==null&&_e!==void 0?_e:[]),!1),ze(te.list),!1)}):Et(Et({},te),{list:tt([],ze((me=te.list)!==null&&me!==void 0?me:[]),!1)})),[2,te]}})})},{manual:f,onFinally:function(oe,te,me){A(!1),S==null||S(te,me)},onBefore:function(){return y==null?void 0:y()},onSuccess:function(oe){setTimeout(function(){if(G){var te=Tr(n);if(te=te===document?document.documentElement:te,te){var me=Dr(te);te.scrollTo(0,me-U.current)}}else se()}),w==null||w(oe)},onError:function(oe){return x==null?void 0:x(oe)}}),H=ie.loading,Ee=ie.error,ge=ie.run,ke=ie.runAsync,be=ie.cancel,ye=pt(function(){ee||(A(!0),ge(R))}),N=pt(function(){return ee?Promise.reject():(A(!0),ke(R))}),Q=function(){return A(!1),ge()},he=function(){return A(!1),ke()},se=function(){var oe=Tr(n);if(oe){var te=oe===document?document.documentElement:oe,me=Ls(te),Ie=Dr(te),_e=Ds(te);G?(W.current!==void 0&&W.current>me&&me<=s&&ye(),W.current=me,U.current=Ie-me):Ie-me<=_e+s&&ye()}};return Lo("scroll",function(){H||P||se()},{target:n}),Do(function(){ge()},tt([],ze(g),!1)),{data:R,loading:!P&&H,error:Ee,loadingMore:P,noMore:ee,loadMore:ye,loadMoreAsync:N,reload:pt(Q),reloadAsync:pt(he),mutate:T,cancel:be}};const Fs=["name"],Ns=["children","className","clone","component"];function As(e,t){const n={};return Object.keys(e).forEach(r=>{t.indexOf(r)===-1&&(n[r]=e[r])}),n}function Bs(e){return(n,r={})=>{const{name:i}=r,s=Or(r,Fs);let u=i;const p=Ht(typeof n=="function"?y=>({root:w=>n(dt({theme:y},w))}):{root:n},dt({Component:e,name:i||e.displayName,classNamePrefix:u},s));let g;n.filterProps&&(g=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=L.forwardRef(function(w,x){const{children:S,className:j,clone:R,component:T}=w,O=Or(w,Ns),P=p(w),A=Cr(P.root,j);let G=O;if(g&&(G=As(G,g)),R)return L.cloneElement(S,dt({className:Cr(S.props.className,A)},G));if(typeof S=="function")return S(dt({className:A},G));const W=T||e;return o.jsx(W,dt({ref:x,className:A},G,{children:S}))});return zo(f,e),f}}const Nc="blocklet-add-component-registry",Ac="server-add-registry",Ws={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>'},gt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Vt=(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 d=i.pop(),p=i.pop(),g={provider:i.length>0?i[0]:r,prefix:p,name:d};return t&&!Dt(g)?null:g}const s=i[0],u=s.split("-");if(u.length>1){const d={provider:r,prefix:u.shift(),name:u.join("-")};return t&&!Dt(d)?null:d}if(n&&r===""){const d={provider:r,prefix:"",name:s};return t&&!Dt(d,n)?null:d}return null},Dt=(e,t)=>e?!!((e.provider===""||e.provider.match(gt))&&(t&&e.prefix===""||e.prefix.match(gt))&&e.name.match(gt)):!1,gi=Object.freeze({left:0,top:0,width:16,height:16}),Bt=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Nn=Object.freeze({...gi,...Bt}),wn=Object.freeze({...Nn,body:"",hidden:!1});function $s(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 zr(e,t){const n=$s(e,t);for(const r in wn)r in Bt?r in e&&!(r in n)&&(n[r]=Bt[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Hs(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(u){if(n[u])return i[u]=[];if(!(u in i)){i[u]=null;const d=r[u]&&r[u].parent,p=d&&s(d);p&&(i[u]=[d].concat(p))}return i[u]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function Us(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function u(d){s=zr(r[d]||i[d],s)}return u(t),n.forEach(u),zr(e,s)}function bi(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=Hs(e);for(const i in r){const s=r[i];s&&(t(i,Us(e,i,s)),n.push(i))}return n}const Ks={provider:"",aliases:{},not_found:{},...gi};function ln(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function yi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ln(e,Ks))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i.match(gt)||typeof s.body!="string"||!ln(s,wn))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],u=s.parent;if(!i.match(gt)||typeof u!="string"||!n[u]&&!r[u]||!ln(s,wn))return null}return t}const Fr=Object.create(null);function Vs(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ke(e,t){const n=Fr[e]||(Fr[e]=Object.create(null));return n[t]||(n[t]=Vs(e,t))}function An(e,t){return yi(t)?bi(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function qs(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let vt=!1;function vi(e){return typeof e=="boolean"&&(vt=e),vt}function Gs(e){const t=typeof e=="string"?Vt(e,!0,vt):e;if(t){const n=Ke(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Xs(e,t){const n=Vt(e,!0,vt);if(!n)return!1;const r=Ke(n.provider,n.prefix);return qs(r,n.name,t)}function Ys(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),vt&&!t&&!e.prefix){let i=!1;return yi(e)&&(e.prefix="",bi(e,(s,u)=>{u&&Xs(s,u)&&(i=!0)})),i}const n=e.prefix;if(!Dt({provider:t,prefix:n,name:"a"}))return!1;const r=Ke(t,n);return!!An(r,e)}const xi=Object.freeze({width:null,height:null}),wi=Object.freeze({...xi,...Bt}),Qs=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Js=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Nr(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(Qs);if(r===null||!r.length)return e;const i=[];let s=r.shift(),u=Js.test(s);for(;;){if(u){const d=parseFloat(s);isNaN(d)?i.push(s):i.push(Math.ceil(d*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");u=!u}}const Zs=e=>e==="unset"||e==="undefined"||e==="none";function ea(e,t){const n={...Nn,...e},r={...wi,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(S=>{const j=[],R=S.hFlip,T=S.vFlip;let O=S.rotate;R?T?O+=2:(j.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),j.push("scale(-1 1)"),i.top=i.left=0):T&&(j.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),j.push("scale(1 -1)"),i.top=i.left=0);let P;switch(O<0&&(O-=Math.floor(O/4)*4),O=O%4,O){case 1:P=i.height/2+i.top,j.unshift("rotate(90 "+P.toString()+" "+P.toString()+")");break;case 2:j.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:P=i.width/2+i.left,j.unshift("rotate(-90 "+P.toString()+" "+P.toString()+")");break}O%2===1&&(i.left!==i.top&&(P=i.left,i.left=i.top,i.top=P),i.width!==i.height&&(P=i.width,i.width=i.height,i.height=P)),j.length&&(s='<g transform="'+j.join(" ")+'">'+s+"</g>")});const u=r.width,d=r.height,p=i.width,g=i.height;let f,y;u===null?(y=d===null?"1em":d==="auto"?g:d,f=Nr(y,p/g)):(f=u==="auto"?p:u,y=d===null?Nr(f,g/p):d==="auto"?g:d);const w={},x=(S,j)=>{Zs(j)||(w[S]=j.toString())};return x("width",f),x("height",y),w.viewBox=i.left.toString()+" "+i.top.toString()+" "+p.toString()+" "+g.toString(),{attributes:w,body:s}}const ta=/\sid="(\S+)"/g,na="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ra=0;function ia(e,t=na){const n=[];let r;for(;r=ta.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 u=typeof t=="function"?t(s):t+(ra++).toString(),d=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+d+')([")]|\\.[a-z])',"g"),"$1"+u+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Sn=Object.create(null);function oa(e,t){Sn[e]=t}function kn(e){return Sn[e]||Sn[""]}function Bn(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 Wn=Object.create(null),ft=["https://api.simplesvg.com","https://api.unisvg.com"],zt=[];for(;ft.length>0;)ft.length===1||Math.random()>.5?zt.push(ft.shift()):zt.push(ft.pop());Wn[""]=Bn({resources:["https://api.iconify.design"].concat(zt)});function sa(e,t){const n=Bn(t);return n===null?!1:(Wn[e]=n,!0)}function $n(e){return Wn[e]}const aa=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ar=aa();function la(e,t){const n=$n(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(u=>{i=Math.max(i,u.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function ca(e){return e===404}const ua=(e,t,n)=>{const r=[],i=la(e,t),s="icons";let u={type:s,provider:e,prefix:t,icons:[]},d=0;return n.forEach((p,g)=>{d+=p.length+1,d>=i&&g>0&&(r.push(u),u={type:s,provider:e,prefix:t,icons:[]},d=p.length),u.icons.push(p)}),r.push(u),r};function da(e){if(typeof e=="string"){const t=$n(e);if(t)return t.path}return"/"}const ha=(e,t,n)=>{if(!Ar){n("abort",424);return}let r=da(t.provider);switch(t.type){case"icons":{const s=t.prefix,d=t.icons.join(","),p=new URLSearchParams({icons:d});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;Ar(e+r).then(s=>{const u=s.status;if(u!==200){setTimeout(()=>{n(ca(u)?"abort":"next",u)});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)})},fa={prepare:ua,send:ha};function pa(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,u=i.prefix,d=i.name,p=n[s]||(n[s]=Object.create(null)),g=p[u]||(p[u]=Ke(s,u));let f;d in g.icons?f=t.loaded:u===""||g.missing.has(d)?f=t.missing:f=t.pending;const y={provider:s,prefix:u,name:d};f.push(y)}),t}function Si(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function ma(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 u=s.icons,d=u.pending.length;u.pending=u.pending.filter(p=>{if(p.prefix!==i)return!0;const g=p.name;if(e.icons[g])u.loaded.push({provider:r,prefix:i,name:g});else if(e.missing.has(g))u.missing.push({provider:r,prefix:i,name:g});else return n=!0,!0;return!1}),u.pending.length!==d&&(n||Si([e],s.id),s.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),s.abort))})}))}let ga=0;function ba(e,t,n){const r=ga++,i=Si.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(s)}),i}function ya(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Vt(i,t,n):i;s&&r.push(s)}),r}var va={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function xa(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let u;if(e.random){let W=e.resources.slice(0);for(u=[];W.length>1;){const U=Math.floor(Math.random()*W.length);u.push(W[U]),W=W.slice(0,U).concat(W.slice(U+1))}u=u.concat(W)}else u=e.resources.slice(s).concat(e.resources.slice(0,s));const d=Date.now();let p="pending",g=0,f,y=null,w=[],x=[];typeof r=="function"&&x.push(r);function S(){y&&(clearTimeout(y),y=null)}function j(){p==="pending"&&(p="aborted"),S(),w.forEach(W=>{W.status==="pending"&&(W.status="aborted")}),w=[]}function R(W,U){U&&(x=[]),typeof W=="function"&&x.push(W)}function T(){return{startTime:d,payload:t,status:p,queriesSent:g,queriesPending:w.length,subscribe:R,abort:j}}function O(){p="failed",x.forEach(W=>{W(void 0,f)})}function P(){w.forEach(W=>{W.status==="pending"&&(W.status="aborted")}),w=[]}function A(W,U,ee){const ie=U!=="success";switch(w=w.filter(H=>H!==W),p){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(U==="abort"){f=ee,O();return}if(ie){f=ee,w.length||(u.length?G():O());return}if(S(),P(),!e.random){const H=e.resources.indexOf(W.resource);H!==-1&&H!==e.index&&(e.index=H)}p="completed",x.forEach(H=>{H(ee)})}function G(){if(p!=="pending")return;S();const W=u.shift();if(W===void 0){if(w.length){y=setTimeout(()=>{S(),p==="pending"&&(P(),O())},e.timeout);return}O();return}const U={status:"pending",resource:W,callback:(ee,ie)=>{A(U,ee,ie)}};w.push(U),g++,y=setTimeout(G,e.rotate),n(W,t,U.callback)}return setTimeout(G),T}function ki(e){const t={...va,...e};let n=[];function r(){n=n.filter(d=>d().status==="pending")}function i(d,p,g){const f=xa(t,d,p,(y,w)=>{r(),g&&g(y,w)});return n.push(f),f}function s(d){return n.find(p=>d(p))||null}return{query:i,find:s,setIndex:d=>{t.index=d},getIndex:()=>t.index,cleanup:r}}function Br(){}const cn=Object.create(null);function wa(e){if(!cn[e]){const t=$n(e);if(!t)return;const n=ki(t),r={config:t,redundancy:n};cn[e]=r}return cn[e]}function Sa(e,t,n){let r,i;if(typeof e=="string"){const s=kn(e);if(!s)return n(void 0,424),Br;i=s.send;const u=wa(e);u&&(r=u.redundancy)}else{const s=Bn(e);if(s){r=ki(s);const u=e.resources?e.resources[0]:"",d=kn(u);d&&(i=d.send)}}return!r||!i?(n(void 0,424),Br):r.query(t,i,n)().abort}const Wr="iconify2",xt="iconify",ji=xt+"-count",$r=xt+"-version",Ti=36e5,ka=168;function jn(e,t){try{return e.getItem(t)}catch{}}function Hn(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Hr(e,t){try{e.removeItem(t)}catch{}}function Tn(e,t){return Hn(e,ji,t.toString())}function On(e){return parseInt(jn(e,ji))||0}const qt={local:!0,session:!0},Oi={local:new Set,session:new Set};let Un=!1;function ja(e){Un=e}let _t=typeof window>"u"?{}:window;function Ci(e){const t=e+"Storage";try{if(_t&&_t[t]&&typeof _t[t].length=="number")return _t[t]}catch{}qt[e]=!1}function Ei(e,t){const n=Ci(e);if(!n)return;const r=jn(n,$r);if(r!==Wr){if(r){const d=On(n);for(let p=0;p<d;p++)Hr(n,xt+p.toString())}Hn(n,$r,Wr),Tn(n,0);return}const i=Math.floor(Date.now()/Ti)-ka,s=d=>{const p=xt+d.toString(),g=jn(n,p);if(typeof g=="string"){try{const f=JSON.parse(g);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>i&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,d))return!0}catch{}Hr(n,p)}};let u=On(n);for(let d=u-1;d>=0;d--)s(d)||(d===u-1?(u--,Tn(n,u)):Oi[e].add(d))}function Ii(){if(!Un){ja(!0);for(const e in qt)Ei(e,t=>{const n=t.data,r=t.provider,i=n.prefix,s=Ke(r,i);if(!An(s,n).length)return!1;const u=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,u):u,!0})}}function Ta(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in qt)Ei(r,i=>{const s=i.data;return i.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Oa(e,t){Un||Ii();function n(r){let i;if(!qt[r]||!(i=Ci(r)))return;const s=Oi[r];let u;if(s.size)s.delete(u=Array.from(s).shift());else if(u=On(i),!Tn(i,u+1))return;const d={cached:Math.floor(Date.now()/Ti),provider:e.provider,data:t};return Hn(i,xt+u.toString(),JSON.stringify(d))}t.lastModified&&!Ta(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ur(){}function Ca(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ma(e)}))}function Ea(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=kn(n)))return;s.prepare(n,r,i).forEach(d=>{Sa(n,d,p=>{if(typeof p!="object")d.icons.forEach(g=>{e.missing.add(g)});else try{const g=An(e,p);if(!g.length)return;const f=e.pendingIcons;f&&g.forEach(y=>{f.delete(y)}),Oa(e,p)}catch(g){console.error(g)}Ca(e)})})}))}const Ia=(e,t)=>{const n=ya(e,!0,vi()),r=pa(n);if(!r.pending.length){let p=!0;return t&&setTimeout(()=>{p&&t(r.loaded,r.missing,r.pending,Ur)}),()=>{p=!1}}const i=Object.create(null),s=[];let u,d;return r.pending.forEach(p=>{const{provider:g,prefix:f}=p;if(f===d&&g===u)return;u=g,d=f,s.push(Ke(g,f));const y=i[g]||(i[g]=Object.create(null));y[f]||(y[f]=[])}),r.pending.forEach(p=>{const{provider:g,prefix:f,name:y}=p,w=Ke(g,f),x=w.pendingIcons||(w.pendingIcons=new Set);x.has(y)||(x.add(y),i[g][f].push(y))}),s.forEach(p=>{const{provider:g,prefix:f}=p;i[g][f].length&&Ea(p,i[g][f])}),t?ba(t,r,s):Ur};function _a(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in xi?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const Ra=/[\s,]+/;function Pa(e,t){t.split(Ra).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ma(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 La(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 Da(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function za(e){return"data:image/svg+xml,"+Da(e)}function Fa(e){return'url("'+za(e)+'")'}let bt;function Na(){try{bt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{bt=null}}function Aa(e){return bt===void 0&&Na(),bt?bt.createHTML(e):e}const _i={...wi,inline:!1},Ba={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Wa={display:"inline-block"},Cn={backgroundColor:"currentColor"},Ri={backgroundColor:"transparent"},Kr={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Vr={WebkitMask:Cn,mask:Cn,background:Ri};for(const e in Vr){const t=Vr[e];for(const n in Kr)t[e+n]=Kr[n]}const $a={..._i,inline:!0};function qr(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ha=(e,t,n,r)=>{const i=n?$a:_i,s=_a(i,t),u=t.mode||"svg",d={},p=t.style||{},g={...u==="svg"?Ba:{},ref:r};for(let T in t){const O=t[T];if(O!==void 0)switch(T){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":s[T]=O===!0||O==="true"||O===1;break;case"flip":typeof O=="string"&&Pa(s,O);break;case"color":d.color=O;break;case"rotate":typeof O=="string"?s[T]=Ma(O):typeof O=="number"&&(s[T]=O);break;case"ariaHidden":case"aria-hidden":O!==!0&&O!=="true"&&delete g["aria-hidden"];break;default:i[T]===void 0&&(g[T]=O)}}const f=ea(e,s),y=f.attributes;if(s.inline&&(d.verticalAlign="-0.125em"),u==="svg"){g.style={...d,...p},Object.assign(g,y);let T=0,O=t.id;return typeof O=="string"&&(O=O.replace(/-/g,"_")),g.dangerouslySetInnerHTML={__html:Aa(ia(f.body,O?()=>O+"ID"+T++:"iconifyReact"))},Ne.createElement("svg",g)}const{body:w,width:x,height:S}=e,j=u==="mask"||(u==="bg"?!1:w.indexOf("currentColor")!==-1),R=La(w,{...y,width:x+"",height:S+""});return g.style={...d,"--svg":Fa(R),width:qr(y.width),height:qr(y.height),...Wa,...j?Cn:Ri,...p},Ne.createElement("span",g)};vi(!0);oa("",fa);if(typeof document<"u"&&typeof window<"u"){Ii();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"||!Ys(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;sa(n,i)||console.error(r)}catch{console.error(r)}}}}class Pi extends Ne.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=Vt(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const s=Gs(i);if(!s){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),s!==null&&(this._loading={name:r,abort:Ia([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const u=["iconify"];i.prefix!==""&&u.push("iconify--"+i.prefix),i.provider!==""&&u.push("iconify--"+i.provider),this._setData({data:s,classes:u}),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:Ne.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),Ha({...Nn,...n.data},r,t._inline,t._ref)}}const Le=Ne.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Ne.createElement(Pi,r)});Ne.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Ne.createElement(Pi,r)});var Kn={},Ua=Kt;Object.defineProperty(Kn,"__esModule",{value:!0});var Mi=Kn.default=void 0,Ka=Ua(Ut()),Va=o;Mi=Kn.default=(0,Ka.default)((0,Va.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Li={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 Di={exports:{}};(function(e,t){(function(n,r){e.exports=r(L)})(ht,n=>(()=>{var r={703:(d,p,g)=>{var f=g(414);function y(){}function w(){}w.resetWarningCache=y,d.exports=function(){function x(R,T,O,P,A,G){if(G!==f){var W=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 W.name="Invariant Violation",W}}function S(){return x}x.isRequired=x;var j={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:S,element:x,elementType:x,instanceOf:S,node:x,objectOf:S,oneOf:S,oneOfType:S,shape:S,exact:S,checkPropTypes:w,resetWarningCache:y};return j.PropTypes=j,j}},697:(d,p,g)=>{d.exports=g(703)()},414:d=>{d.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:d=>{var p=typeof Element<"u",g=typeof Map=="function",f=typeof Set=="function",y=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function w(x,S){if(x===S)return!0;if(x&&S&&typeof x=="object"&&typeof S=="object"){if(x.constructor!==S.constructor)return!1;var j,R,T,O;if(Array.isArray(x)){if((j=x.length)!=S.length)return!1;for(R=j;R--!=0;)if(!w(x[R],S[R]))return!1;return!0}if(g&&x instanceof Map&&S instanceof Map){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;for(O=x.entries();!(R=O.next()).done;)if(!w(R.value[1],S.get(R.value[0])))return!1;return!0}if(f&&x instanceof Set&&S instanceof Set){if(x.size!==S.size)return!1;for(O=x.entries();!(R=O.next()).done;)if(!S.has(R.value[0]))return!1;return!0}if(y&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(S)){if((j=x.length)!=S.length)return!1;for(R=j;R--!=0;)if(x[R]!==S[R])return!1;return!0}if(x.constructor===RegExp)return x.source===S.source&&x.flags===S.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===S.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===S.toString();if((j=(T=Object.keys(x)).length)!==Object.keys(S).length)return!1;for(R=j;R--!=0;)if(!Object.prototype.hasOwnProperty.call(S,T[R]))return!1;if(p&&x instanceof Element)return!1;for(R=j;R--!=0;)if((T[R]!=="_owner"&&T[R]!=="__v"&&T[R]!=="__o"||!x.$$typeof)&&!w(x[T[R]],S[T[R]]))return!1;return!0}return x!=x&&S!=S}d.exports=function(x,S){try{return w(x,S)}catch(j){if((j.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw j}}},359:d=>{d.exports=n}},i={};function s(d){var p=i[d];if(p!==void 0)return p.exports;var g=i[d]={exports:{}};return r[d](g,g.exports,s),g.exports}s.n=d=>{var p=d&&d.__esModule?()=>d.default:()=>d;return s.d(p,{a:p}),p},s.d=(d,p)=>{for(var g in p)s.o(p,g)&&!s.o(d,g)&&Object.defineProperty(d,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=(d,p)=>Object.prototype.hasOwnProperty.call(d,p),s.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};var u={};return(()=>{function d(h){var a,m,b="";if(typeof h=="string"||typeof h=="number")b+=h;else if(typeof h=="object")if(Array.isArray(h))for(a=0;a<h.length;a++)h[a]&&(m=d(h[a]))&&(b&&(b+=" "),b+=m);else for(a in h)h[a]&&(b&&(b+=" "),b+=a);return b}function p(){for(var h,a,m=0,b="";m<arguments.length;)(h=arguments[m++])&&(a=d(h))&&(b&&(b+=" "),b+=a);return b}s.r(u),s.d(u,{default:()=>_o});var g=s(359),f=s.n(g);const y=function(h){var a=typeof h;return h!=null&&(a=="object"||a=="function")},w=typeof ht=="object"&&ht&&ht.Object===Object&&ht;var x=typeof self=="object"&&self&&self.Object===Object&&self;const S=w||x||Function("return this")(),j=function(){return S.Date.now()};var R=/\s/,T=/^\s+/;const O=function(h){return h&&h.slice(0,function(a){for(var m=a.length;m--&&R.test(a.charAt(m)););return m}(h)+1).replace(T,"")},P=S.Symbol;var A=Object.prototype,G=A.hasOwnProperty,W=A.toString,U=P?P.toStringTag:void 0,ee=Object.prototype.toString,ie=P?P.toStringTag:void 0;const H=function(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":ie&&ie in Object(h)?function(a){var m=G.call(a,U),b=a[U];try{a[U]=void 0;var I=!0}catch{}var B=W.call(a);return I&&(m?a[U]=b:delete a[U]),B}(h):function(a){return ee.call(a)}(h)};var Ee=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ke=/^0o[0-7]+$/i,be=parseInt;const ye=function(h){if(typeof h=="number")return h;if(function(b){return typeof b=="symbol"||function(I){return I!=null&&typeof I=="object"}(b)&&H(b)=="[object Symbol]"}(h))return NaN;if(y(h)){var a=typeof h.valueOf=="function"?h.valueOf():h;h=y(a)?a+"":a}if(typeof h!="string")return h===0?h:+h;h=O(h);var m=ge.test(h);return m||ke.test(h)?be(h.slice(2),m?2:8):Ee.test(h)?NaN:+h};var N=Math.max,Q=Math.min;const he=function(h,a,m){var b,I,B,J,c,l,v=0,C=!1,_=!1,E=!0;if(typeof h!="function")throw new TypeError("Expected a function");function V($){var Y=b,ne=I;return b=I=void 0,v=$,J=h.apply(ne,Y)}function K($){return v=$,c=setTimeout(D,a),C?V($):J}function X($){var Y=$-l;return l===void 0||Y>=a||Y<0||_&&$-v>=B}function D(){var $=j();if(X($))return z($);c=setTimeout(D,function(Y){var ne=a-(Y-l);return _?Q(ne,B-(Y-v)):ne}($))}function z($){return c=void 0,E&&b?V($):(b=I=void 0,J)}function F(){var $=j(),Y=X($);if(b=arguments,I=this,l=$,Y){if(c===void 0)return K(l);if(_)return clearTimeout(c),c=setTimeout(D,a),V(l)}return c===void 0&&(c=setTimeout(D,a)),J}return a=ye(a)||0,y(m)&&(C=!!m.leading,B=(_="maxWait"in m)?N(ye(m.maxWait)||0,a):B,E="trailing"in m?!!m.trailing:E),F.cancel=function(){c!==void 0&&clearTimeout(c),v=0,b=l=I=c=void 0},F.flush=function(){return c===void 0?J:z(j())},F},se=function(h,a,m){var b=!0,I=!0;if(typeof h!="function")throw new TypeError("Expected a function");return y(m)&&(b="leading"in m?!!m.leading:b,I="trailing"in m?!!m.trailing:I),he(h,a,{leading:b,maxWait:a,trailing:I})};var oe=s(590),te=s.n(oe),me=function(){if(typeof Map<"u")return Map;function h(a,m){var b=-1;return a.some(function(I,B){return I[0]===m&&(b=B,!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(m){var b=h(this.__entries__,m),I=this.__entries__[b];return I&&I[1]},a.prototype.set=function(m,b){var I=h(this.__entries__,m);~I?this.__entries__[I][1]=b:this.__entries__.push([m,b])},a.prototype.delete=function(m){var b=this.__entries__,I=h(b,m);~I&&b.splice(I,1)},a.prototype.has=function(m){return!!~h(this.__entries__,m)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(m,b){b===void 0&&(b=null);for(var I=0,B=this.__entries__;I<B.length;I++){var J=B[I];m.call(b,J[1],J[0])}},a}()}(),Ie=typeof window<"u"&&typeof document<"u"&&window.document===document,_e=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")(),kt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_e):function(h){return setTimeout(function(){return h(Date.now())},1e3/60)},oo=["top","right","bottom","left","width","height","size","weight"],so=typeof MutationObserver<"u",ao=function(){function h(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(a,m){var b=!1,I=!1,B=0;function J(){b&&(b=!1,a()),I&&l()}function c(){kt(J)}function l(){var v=Date.now();if(b){if(v-B<2)return;I=!0}else b=!0,I=!1,setTimeout(c,20);B=v}return l}(this.refresh.bind(this))}return h.prototype.addObserver=function(a){~this.observers_.indexOf(a)||this.observers_.push(a),this.connected_||this.connect_()},h.prototype.removeObserver=function(a){var m=this.observers_,b=m.indexOf(a);~b&&m.splice(b,1),!m.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},h.prototype.updateObservers_=function(){var a=this.observers_.filter(function(m){return m.gatherActive(),m.hasActive()});return a.forEach(function(m){return m.broadcastActive()}),a.length>0},h.prototype.connect_=function(){Ie&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),so?(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)},h.prototype.disconnect_=function(){Ie&&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)},h.prototype.onTransitionEnd_=function(a){var m=a.propertyName,b=m===void 0?"":m;oo.some(function(I){return!!~b.indexOf(I)})&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null,h}(),tr=function(h,a){for(var m=0,b=Object.keys(a);m<b.length;m++){var I=b[m];Object.defineProperty(h,I,{value:a[I],enumerable:!1,writable:!1,configurable:!0})}return h},Ge=function(h){return h&&h.ownerDocument&&h.ownerDocument.defaultView||_e},nr=Tt(0,0,0,0);function jt(h){return parseFloat(h)||0}function rr(h){for(var a=[],m=1;m<arguments.length;m++)a[m-1]=arguments[m];return a.reduce(function(b,I){return b+jt(h["border-"+I+"-width"])},0)}var lo=typeof SVGGraphicsElement<"u"?function(h){return h instanceof Ge(h).SVGGraphicsElement}:function(h){return h instanceof Ge(h).SVGElement&&typeof h.getBBox=="function"};function co(h){return Ie?lo(h)?function(a){var m=a.getBBox();return Tt(0,0,m.width,m.height)}(h):function(a){var m=a.clientWidth,b=a.clientHeight;if(!m&&!b)return nr;var I=Ge(a).getComputedStyle(a),B=function(E){for(var V={},K=0,X=["top","right","bottom","left"];K<X.length;K++){var D=X[K],z=E["padding-"+D];V[D]=jt(z)}return V}(I),J=B.left+B.right,c=B.top+B.bottom,l=jt(I.width),v=jt(I.height);if(I.boxSizing==="border-box"&&(Math.round(l+J)!==m&&(l-=rr(I,"left","right")+J),Math.round(v+c)!==b&&(v-=rr(I,"top","bottom")+c)),!function(E){return E===Ge(E).document.documentElement}(a)){var C=Math.round(l+J)-m,_=Math.round(v+c)-b;Math.abs(C)!==1&&(l-=C),Math.abs(_)!==1&&(v-=_)}return Tt(B.left,B.top,l,v)}(h):nr}function Tt(h,a,m,b){return{x:h,y:a,width:m,height:b}}var uo=function(){function h(a){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Tt(0,0,0,0),this.target=a}return h.prototype.isActive=function(){var a=co(this.target);return this.contentRect_=a,a.width!==this.broadcastWidth||a.height!==this.broadcastHeight},h.prototype.broadcastRect=function(){var a=this.contentRect_;return this.broadcastWidth=a.width,this.broadcastHeight=a.height,a},h}(),ho=function(h,a){var m,b,I,B,J,c,l,v=(b=(m=a).x,I=m.y,B=m.width,J=m.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(c.prototype),tr(l,{x:b,y:I,width:B,height:J,top:I,right:b+B,bottom:J+I,left:b}),l);tr(this,{target:h,contentRect:v})},fo=function(){function h(a,m,b){if(this.activeObservations_=[],this.observations_=new me,typeof a!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=a,this.controller_=m,this.callbackCtx_=b}return h.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 Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var m=this.observations_;m.has(a)||(m.set(a,new uo(a)),this.controller_.addObserver(this),this.controller_.refresh())}},h.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 Ge(a).Element))throw new TypeError('parameter 1 is not of type "Element".');var m=this.observations_;m.has(a)&&(m.delete(a),m.size||this.controller_.removeObserver(this))}},h.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},h.prototype.gatherActive=function(){var a=this;this.clearActive(),this.observations_.forEach(function(m){m.isActive()&&a.activeObservations_.push(m)})},h.prototype.broadcastActive=function(){if(this.hasActive()){var a=this.callbackCtx_,m=this.activeObservations_.map(function(b){return new ho(b.target,b.broadcastRect())});this.callback_.call(a,m,a),this.clearActive()}},h.prototype.clearActive=function(){this.activeObservations_.splice(0)},h.prototype.hasActive=function(){return this.activeObservations_.length>0},h}(),ir=typeof WeakMap<"u"?new WeakMap:new me,or=function h(a){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var m=ao.getInstance(),b=new fo(a,m,this);ir.set(this,b)};["observe","unobserve","disconnect"].forEach(function(h){or.prototype[h]=function(){var a;return(a=ir.get(this))[h].apply(a,arguments)}});const sr=_e.ResizeObserver!==void 0?_e.ResizeObserver:or,Xe="Left",We="Right",Ye="Up",$e="Down",Qe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Yt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},ar="mousemove",lr="mouseup";function cr(h,a){if(a===0)return h;const m=Math.PI/180*a;return[h[0]*Math.cos(m)+h[1]*Math.sin(m),h[1]*Math.cos(m)-h[0]*Math.sin(m)]}function po(h){const{trackMouse:a}=h,m=g.useRef(Object.assign({},Yt)),b=g.useRef(Object.assign({},Qe)),I=g.useRef(Object.assign({},b.current));let B;for(B in I.current=Object.assign({},b.current),b.current=Object.assign(Object.assign({},Qe),h),Qe)b.current[B]===void 0&&(b.current[B]=Qe[B]);const[J,c]=g.useMemo(()=>function(l,v){const C=D=>{const z="touches"in D;z&&D.touches.length>1||l((F,$)=>{$.trackMouse&&!z&&(document.addEventListener(ar,_),document.addEventListener(lr,V));const{clientX:Y,clientY:ne}=z?D.touches[0]:D,ce=cr([Y,ne],$.rotationAngle);return $.onTouchStartOrOnMouseDown&&$.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},F),Yt),{initial:ce.slice(),xy:ce,start:D.timeStamp||0})})},_=D=>{l((z,F)=>{const $="touches"in D;if($&&D.touches.length>1)return z;if(D.timeStamp-z.start>F.swipeDuration)return z.swiping?Object.assign(Object.assign({},z),{swiping:!1}):z;const{clientX:Y,clientY:ne}=$?D.touches[0]:D,[ce,Se]=cr([Y,ne],F.rotationAngle),ve=ce-z.xy[0],fe=Se-z.xy[1],le=Math.abs(ve),re=Math.abs(fe),De=(D.timeStamp||0)-z.start,at=Math.sqrt(le*le+re*re)/(De||1),lt=[ve/(De||1),fe/(De||1)],Me=function(ct,et,ut,je){return ct>et?ut>0?We:Xe:je>0?$e:Ye}(le,re,ve,fe),He=typeof F.delta=="number"?F.delta:F.delta[Me.toLowerCase()]||Qe.delta;if(le<He&&re<He&&!z.swiping)return z;const Re={absX:le,absY:re,deltaX:ve,deltaY:fe,dir:Me,event:D,first:z.first,initial:z.initial,velocity:at,vxvy:lt};Re.first&&F.onSwipeStart&&F.onSwipeStart(Re),F.onSwiping&&F.onSwiping(Re);let Ze=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Me}`])&&(Ze=!0),Ze&&F.preventScrollOnSwipe&&F.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},z),{first:!1,eventData:Re,swiping:!0})})},E=D=>{l((z,F)=>{let $;if(z.swiping&&z.eventData){if(D.timeStamp-z.start<F.swipeDuration){$=Object.assign(Object.assign({},z.eventData),{event:D}),F.onSwiped&&F.onSwiped($);const Y=F[`onSwiped${$.dir}`];Y&&Y($)}}else F.onTap&&F.onTap({event:D});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},z),Yt),{eventData:$})})},V=D=>{document.removeEventListener(ar,_),document.removeEventListener(lr,V),E(D)},K=(D,z)=>{let F=()=>{};if(D&&D.addEventListener){const $=Object.assign(Object.assign({},Qe.touchEventOptions),z.touchEventOptions),Y=[["touchstart",C,$],["touchmove",_,Object.assign(Object.assign({},$),z.preventScrollOnSwipe?{passive:!1}:{})],["touchend",E,$]];Y.forEach(([ne,ce,Se])=>D.addEventListener(ne,ce,Se)),F=()=>Y.forEach(([ne,ce])=>D.removeEventListener(ne,ce))}return F},X={ref:D=>{D!==null&&l((z,F)=>{if(z.el===D)return z;const $={};return z.el&&z.el!==D&&z.cleanUpTouch&&(z.cleanUpTouch(),$.cleanUpTouch=void 0),F.trackTouch&&D&&($.cleanUpTouch=K(D,F)),Object.assign(Object.assign(Object.assign({},z),{el:D}),$)})}};return v.trackMouse&&(X.onMouseDown=C),[X,K]}(l=>m.current=l(m.current,b.current),{trackMouse:a}),[a]);return m.current=function(l,v,C,_){return v.trackTouch&&l.el?l.cleanUpTouch?v.preventScrollOnSwipe!==C.preventScrollOnSwipe||v.touchEventOptions.passive!==C.touchEventOptions.passive?(l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,v)})):l:Object.assign(Object.assign({},l),{cleanUpTouch:_(l.el,v)}):(l.cleanUpTouch&&l.cleanUpTouch(),Object.assign(Object.assign({},l),{cleanUpTouch:void 0}))}(m.current,b.current,I.current,c),J}var k=s(697);function it(h){return it=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},it(h)}function ur(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function dr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?ur(Object(m),!0).forEach(function(b){mo(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):ur(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function mo(h,a,m){return(a=function(b){var I=function(B,J){if(it(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,J);if(it(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return it(I)==="symbol"?I:String(I)}(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}var go={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},Qt=f().memo(function(h){var a=dr(dr({},go),h),m=a.description,b=a.fullscreen,I=a.handleImageLoaded,B=a.isFullscreen,J=a.onImageError,c=a.original,l=a.originalAlt,v=a.originalHeight,C=a.originalWidth,_=a.originalTitle,E=a.sizes,V=a.srcSet,K=a.loading,X=B&&b||c;return f().createElement(f().Fragment,null,f().createElement("img",{className:"image-gallery-image",src:X,alt:l,srcSet:V,height:v,width:C,sizes:E,title:_,onLoad:function(D){return I(D,c)},onError:J,loading:K}),m&&f().createElement("span",{className:"image-gallery-description"},m))});Qt.displayName="Item",Qt.propTypes={description:k.string,fullscreen:k.string,handleImageLoaded:k.func.isRequired,isFullscreen:k.bool,onImageError:k.func.isRequired,original:k.string.isRequired,originalAlt:k.string,originalHeight:k.string,originalWidth:k.string,originalTitle:k.string,sizes:k.string,srcSet:k.string,loading:k.string};const bo=Qt;function ot(h){return ot=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},ot(h)}function hr(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function fr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?hr(Object(m),!0).forEach(function(b){yo(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):hr(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function yo(h,a,m){return(a=function(b){var I=function(B,J){if(ot(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,J);if(ot(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return ot(I)==="symbol"?I:String(I)}(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}var vo={left:f().createElement("polyline",{points:"15 18 9 12 15 6"}),right:f().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:f().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:f().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:f().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:f().createElement(f().Fragment,null,f().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),f().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},xo={strokeWidth:1,viewBox:"0 0 24 24"},pr=function(h){var a=fr(fr({},xo),h),m=a.strokeWidth,b=a.viewBox,I=a.icon;return f().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:b,fill:"none",stroke:"currentColor",strokeWidth:m,strokeLinecap:"round",strokeLinejoin:"round"},vo[I])};pr.propTypes={strokeWidth:k.number,viewBox:k.string,icon:(0,k.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const Ot=pr;var Jt=f().memo(function(h){var a=h.isFullscreen,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:m,"aria-label":"Open Fullscreen"},f().createElement(Ot,{strokeWidth:2,icon:a?"minimize":"maximize"}))});Jt.displayName="Fullscreen",Jt.propTypes={isFullscreen:k.bool.isRequired,onClick:k.func.isRequired};const wo=Jt;var Zt=f().memo(function(h){var a=h.disabled,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:a,onClick:m,"aria-label":"Previous Slide"},f().createElement(Ot,{icon:"left",viewBox:"6 0 12 24"}))});Zt.displayName="LeftNav",Zt.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const So=Zt;var en=f().memo(function(h){var a=h.disabled,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:a,onClick:m,"aria-label":"Next Slide"},f().createElement(Ot,{icon:"right",viewBox:"6 0 12 24"}))});en.displayName="RightNav",en.propTypes={disabled:k.bool.isRequired,onClick:k.func.isRequired};const ko=en;var tn=f().memo(function(h){var a=h.isPlaying,m=h.onClick;return f().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:m,"aria-label":"Play or Pause Slideshow"},f().createElement(Ot,{strokeWidth:2,icon:a?"pause":"play"}))});tn.displayName="PlayPause",tn.propTypes={isPlaying:k.bool.isRequired,onClick:k.func.isRequired};const jo=tn;function st(h){return st=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},st(h)}function nn(){return nn=Object.assign?Object.assign.bind():function(h){for(var a=1;a<arguments.length;a++){var m=arguments[a];for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(h[b]=m[b])}return h},nn.apply(this,arguments)}function mr(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function gr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?mr(Object(m),!0).forEach(function(b){To(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):mr(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function To(h,a,m){return(a=function(b){var I=function(B,J){if(st(B)!=="object"||B===null)return B;var c=B[Symbol.toPrimitive];if(c!==void 0){var l=c.call(B,J);if(st(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(b,"string");return st(I)==="symbol"?I:String(I)}(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}var Oo={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},br=function(h){var a=gr(gr({},Oo),h),m=a.children,b=a.className,I=po({delta:a.delta,onSwiping:a.onSwiping,onSwiped:a.onSwiped});return f().createElement("div",nn({},I,{className:b}),m)};br.propTypes={children:k.node.isRequired,className:k.string,delta:k.number,onSwiped:k.func,onSwiping:k.func};const yr=br;function Je(h){return Je=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},Je(h)}function vr(h,a){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);a&&(b=b.filter(function(I){return Object.getOwnPropertyDescriptor(h,I).enumerable})),m.push.apply(m,b)}return m}function xr(h){for(var a=1;a<arguments.length;a++){var m=arguments[a]!=null?arguments[a]:{};a%2?vr(Object(m),!0).forEach(function(b){wr(h,b,m[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):vr(Object(m)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(m,b))})}return h}function Co(h,a){for(var m=0;m<a.length;m++){var b=a[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,Sr(b.key),b)}}function rn(h,a){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,b){return m.__proto__=b,m},rn(h,a)}function Eo(h,a){if(a&&(Je(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(h)}function ue(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function Ct(h){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Ct(h)}function wr(h,a,m){return(a=Sr(a))in h?Object.defineProperty(h,a,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[a]=m,h}function Sr(h){var a=function(m,b){if(Je(m)!=="object"||m===null)return m;var I=m[Symbol.toPrimitive];if(I!==void 0){var B=I.call(m,b);if(Je(B)!=="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}(h,"string");return Je(a)==="symbol"?a:String(a)}var kr=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],Io=(0,k.arrayOf)((0,k.shape)({srcSet:k.string,media:k.string}));function jr(h){var a=parseInt(h.keyCode||h.which||0,10);return a===66||a===62}var on=function(h){(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&&rn(c,l)})(J,h);var a,m,b,I,B=(b=J,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=Ct(b);if(I){var v=Ct(this).constructor;c=Reflect.construct(l,arguments,v)}else c=l.apply(this,arguments);return Eo(this,c)});function J(c){var l;return function(v,C){if(!(v instanceof C))throw new TypeError("Cannot call a class as a function")}(this,J),wr(ue(l=B.call(this,c)),"onBulletClick",function(v,C){var _=l.props,E=_.onBulletClick,V=_.items,K=l.state.currentIndex;v.target.blur(),K!==C&&(V.length===2?l.slideToIndexWithStyleReset(C,v):l.slideToIndex(C,v)),E&&E(v,C)}),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=f().createRef(),l.thumbnailsWrapper=f().createRef(),l.thumbnails=f().createRef(),l.imageGallerySlideWrapper=f().createRef(),l.handleImageLoaded=l.handleImageLoaded.bind(ue(l)),l.handleKeyDown=l.handleKeyDown.bind(ue(l)),l.handleMouseDown=l.handleMouseDown.bind(ue(l)),l.handleResize=l.handleResize.bind(ue(l)),l.handleTouchMove=l.handleTouchMove.bind(ue(l)),l.handleOnSwiped=l.handleOnSwiped.bind(ue(l)),l.handleScreenChange=l.handleScreenChange.bind(ue(l)),l.handleSwiping=l.handleSwiping.bind(ue(l)),l.handleThumbnailSwiping=l.handleThumbnailSwiping.bind(ue(l)),l.handleOnThumbnailSwiped=l.handleOnThumbnailSwiped.bind(ue(l)),l.onThumbnailMouseLeave=l.onThumbnailMouseLeave.bind(ue(l)),l.handleImageError=l.handleImageError.bind(ue(l)),l.pauseOrPlay=l.pauseOrPlay.bind(ue(l)),l.renderThumbInner=l.renderThumbInner.bind(ue(l)),l.renderItem=l.renderItem.bind(ue(l)),l.slideLeft=l.slideLeft.bind(ue(l)),l.slideRight=l.slideRight.bind(ue(l)),l.toggleFullScreen=l.toggleFullScreen.bind(ue(l)),l.togglePlay=l.togglePlay.bind(ue(l)),l.unthrottledSlideToIndex=l.slideToIndex,l.slideToIndex=se(l.unthrottledSlideToIndex,c.slideDuration,{trailing:!1}),c.lazyLoad&&(l.lazyLoaded=[]),l}return a=J,m=[{key:"componentDidMount",value:function(){var c=this.props,l=c.autoPlay,v=c.useWindowKeyDown;l&&this.play(),v?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 v=this.props,C=v.items,_=v.lazyLoad,E=v.slideDuration,V=v.slideInterval,K=v.startIndex,X=v.thumbnailPosition,D=v.showThumbnails,z=v.useWindowKeyDown,F=this.state,$=F.currentIndex,Y=F.isPlaying,ne=c.items.length!==C.length,ce=!te()(c.items,C),Se=c.startIndex!==K,ve=c.thumbnailPosition!==X,fe=c.showThumbnails!==D;V===c.slideInterval&&E===c.slideDuration||Y&&(this.pause(),this.play()),ve&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),fe&&D&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),fe&&!D&&this.removeThumbnailsResizeObserver(),(ne||fe)&&this.handleResize(),l.currentIndex!==$&&this.slideThumbnailBar(),c.slideDuration!==E&&(this.slideToIndex=se(this.unthrottledSlideToIndex,E,{trailing:!1})),!_||c.lazyLoad&&!ce||(this.lazyLoaded=[]),z!==c.useWindowKeyDown&&(z?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(Se||ce)&&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,v=l.currentIndex,C=l.isTransitioning,_=this.props,E=_.onSlide,V=_.slideDuration;this.transitionTimer=window.setTimeout(function(){C&&(c.setState({isTransitioning:!C,isSwipingThumbnail:!1}),E&&E(v))},V+50)}},{key:"onThumbnailClick",value:function(c,l){var v=this.props,C=v.onThumbnailClick,_=v.items,E=this.state.currentIndex;c.target.parentNode.parentNode.blur(),E!==l&&(_.length===2?this.slideToIndexWithStyleReset(l,c):this.slideToIndex(l,c)),C&&C(c,l)}},{key:"onThumbnailMouseOver",value:function(c,l){var v=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){v.slideToIndex(l),v.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,v=this.props,C=v.disableThumbnailScroll,_=v.items,E=this.state,V=E.thumbnailsWrapperWidth,K=E.thumbnailsWrapperHeight,X=this.thumbnails&&this.thumbnails.current;if(C)return 0;if(X){if(this.isThumbnailVertical()){if(X.scrollHeight<=K)return 0;l=X.scrollHeight-K}else{if(X.scrollWidth<=V||V<=0)return 0;l=X.scrollWidth-V}return c*(l/(_.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,v=this.props,C=v.infinite,_=v.items,E="",V="image-gallery-left",K="image-gallery-right";switch(c){case l-1:E=" ".concat(V);break;case l:E=" ".concat("image-gallery-center");break;case l+1:E=" ".concat(K)}return _.length>=3&&C&&(c===0&&l===_.length-1?E=" ".concat(K):c===_.length-1&&l===0&&(E=" ".concat(V))),E}},{key:"getTranslateXForTwoSlide",value:function(c){var l=this.state,v=l.currentIndex,C=l.currentSlideOffset,_=l.previousIndex,E=v!==_,V=c===0&&_===0,K=c===1&&_===1,X=c===0&&v===1,D=c===1&&v===0,z=C===0,F=-100*v+100*c+C;return C>0?this.direction="left":C<0&&(this.direction="right"),D&&C>0&&(F=-100+C),X&&C<0&&(F=100+C),E?V&&z&&this.direction==="left"?F=100:K&&z&&this.direction==="right"&&(F=-100):(D&&z&&this.direction==="left"&&(F=-100),X&&z&&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,v=l.currentIndex,C=l.currentSlideOffset,_=l.slideStyle,E=this.props,V=E.infinite,K=E.items,X=E.useTranslate3D,D=E.isRTL,z=-100*v,F=K.length-1,$=(z+100*c)*(D?-1:1)+C;V&&K.length>2&&(v===0&&c===F?$=-100*(D?-1:1)+C:v===F&&c===0&&($=100*(D?-1:1)+C)),V&&K.length===2&&($=this.getTranslateXForTwoSlide(c));var Y="translate(".concat($,"%, 0)");return X&&(Y="translate3d(".concat($,"%, 0, 0)")),xr({display:this.isSlideVisible(c)?"inherit":"none",WebkitTransform:Y,MozTransform:Y,msTransform:Y,OTransform:Y,transform:Y},_)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var c,l=this.props,v=l.useTranslate3D,C=l.isRTL,_=this.state,E=_.thumbsTranslate,V=_.thumbsStyle,K=C?-1*E:E;return this.isThumbnailVertical()?(c="translate(0, ".concat(E,"px)"),v&&(c="translate3d(0, ".concat(E,"px, 0)"))):(c="translate(".concat(K,"px, 0)"),v&&(c="translate3d(".concat(K,"px, 0, 0)"))),xr({WebkitTransform:c,MozTransform:c,msTransform:c,OTransform:c,transform:c},V)}},{key:"getSlideItems",value:function(){var c=this,l=this.state.currentIndex,v=this.props,C=v.items,_=v.slideOnThumbnailOver,E=v.onClick,V=v.lazyLoad,K=v.onTouchMove,X=v.onTouchEnd,D=v.onTouchStart,z=v.onMouseOver,F=v.onMouseLeave,$=v.renderItem,Y=v.renderThumbInner,ne=v.showThumbnails,ce=v.showBullets,Se=[],ve=[],fe=[];return C.forEach(function(le,re){var De=c.getAlignmentClassName(re),at=le.originalClass?" ".concat(le.originalClass):"",lt=le.thumbnailClass?" ".concat(le.thumbnailClass):"",Me=le.renderItem||$||c.renderItem,He=le.renderThumbInner||Y||c.renderThumbInner,Re=!V||De||c.lazyLoaded[re];Re&&V&&!c.lazyLoaded[re]&&(c.lazyLoaded[re]=!0);var Ze=c.getSlideStyle(re),ct=f().createElement("div",{"aria-label":"Go to Slide ".concat(re+1),key:"slide-".concat(re),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(at),style:Ze,onClick:E,onKeyUp:c.handleSlideKeyUp,onTouchMove:K,onTouchEnd:X,onTouchStart:D,onMouseOver:z,onFocus:z,onMouseLeave:F,role:"button"},Re?Me(le):f().createElement("div",{style:{height:"100%"}}));if(Se.push(ct),ne&&le.thumbnail){var et=p("image-gallery-thumbnail",lt,{active:l===re});ve.push(f().createElement("button",{key:"thumbnail-".concat(re),type:"button",tabIndex:"0","aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1),className:et,onMouseLeave:_?c.onThumbnailMouseLeave:null,onMouseOver:function(je){return c.handleThumbnailMouseOver(je,re)},onFocus:function(je){return c.handleThumbnailMouseOver(je,re)},onKeyUp:function(je){return c.handleThumbnailKeyUp(je,re)},onClick:function(je){return c.onThumbnailClick(je,re)}},He(le)))}if(ce){var ut=p("image-gallery-bullet",le.bulletClass,{active:l===re});fe.push(f().createElement("button",{type:"button",key:"bullet-".concat(re),className:ut,onClick:function(je){return c.onBulletClick(je,re)},"aria-pressed":l===re?"true":"false","aria-label":"Go to Slide ".concat(re+1)}))}}),{slides:Se,thumbnails:ve,bullets:fe}}},{key:"ignoreIsTransitioning",value:function(){var c=this.props.items,l=this.state,v=l.previousIndex,C=l.currentIndex,_=c.length-1;return Math.abs(v-C)>1&&!(v===0&&C===_)&&!(v===_&&C===0)}},{key:"isFirstOrLastSlide",value:function(c){return c===this.props.items.length-1||c===0}},{key:"slideIsTransitioning",value:function(c){var l=this.state,v=l.isTransitioning,C=l.previousIndex,_=l.currentIndex;return v&&!(c===C||c===_)}},{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,v=c.isSwipingThumbnail,C=-this.getThumbsTranslate(l);v||(l===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:C,thumbsSwipedTranslate:C}))}},{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,v=c.absX,C=c.dir,_=this.props,E=_.disableSwipe,V=_.stopPropagation,K=this.state,X=K.galleryWidth,D=K.isTransitioning,z=K.swipingUpDown,F=K.swipingLeftRight;if(C!==Ye&&C!==$e&&!z||F){if(C!==Xe&&C!==We||F||this.setState({swipingLeftRight:!0}),!E){var $=this.props.swipingTransitionDuration;if(V&&l.preventDefault(),D)this.setState({currentSlideOffset:0});else{var Y=C===We?1:-1,ne=v/X*100;Math.abs(ne)>=100&&(ne=100);var ce={transition:"transform ".concat($,"ms ease-out")};this.setState({currentSlideOffset:Y*ne,slideStyle:ce})}}}else z||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(c){var l=c.event,v=c.absX,C=c.absY,_=c.dir,E=this.props,V=E.stopPropagation,K=E.swipingThumbnailTransitionDuration,X=this.state,D=X.thumbsSwipedTranslate,z=X.thumbnailsWrapperHeight,F=X.thumbnailsWrapperWidth,$=X.swipingUpDown,Y=X.swipingLeftRight;if(this.isThumbnailVertical()){if((_===Xe||_===We||Y)&&!$)return void(Y||this.setState({swipingLeftRight:!0}));_!==Ye&&_!==$e||$||this.setState({swipingUpDown:!0})}else{if((_===Ye||_===$e||$)&&!Y)return void($||this.setState({swipingUpDown:!0}));_!==Xe&&_!==We||Y||this.setState({swipingLeftRight:!0})}var ne,ce,Se,ve,fe,le=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(ne=D+(_===$e?C:-C),ce=le.scrollHeight-z+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollHeight<=z):(ne=D+(_===We?v:-v),ce=le.scrollWidth-F+20,Se=Math.abs(ne)>ce,ve=ne>20,fe=le.scrollWidth<=F),!fe&&(_!==Xe&&_!==Ye||!Se)&&(_!==We&&_!==$e||!ve)){V&&l.stopPropagation();var re={transition:"transform ".concat(K,"ms ease-out")};this.setState({thumbsTranslate:ne,thumbsStyle:re})}}},{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,v=c.swipingLeftRight;l&&this.setState({swipingUpDown:!1}),v&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(c){var l=c.event,v=c.dir,C=c.velocity,_=this.props,E=_.disableSwipe,V=_.stopPropagation,K=_.flickThreshold;if(!E){var X=this.props.isRTL;V&&l.stopPropagation(),this.resetSwipingDirection();var D=(v===Xe?1:-1)*(X?-1:1),z=C>K&&!(v===Ye||v===$e);this.handleOnSwipedTo(D,z)}}},{key:"handleOnSwipedTo",value:function(c,l){var v=this.state,C=v.currentIndex,_=v.isTransitioning,E=C;!this.sufficientSwipe()&&!l||_||(E+=c),(c===-1&&!this.canSlideLeft()||c===1&&!this.canSlideRight())&&(E=C),this.unthrottledSlideToIndex(E)}},{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,v=l.disableKeyDown,C=l.useBrowserFullscreen,_=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!v)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:_&&!C&&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 sr(he(function(v){v&&v.forEach(function(C){l.setState({thumbnailsWrapperWidth:C.contentRect.width},l.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(c.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(c){var l=this;c&&!c.current||(this.resizeThumbnailWrapperObserver=new sr(he(function(v){v&&v.forEach(function(C){l.setState({thumbnailsWrapperHeight:C.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,v=c.useBrowserFullscreen,C=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,_=this.imageGallery.current===C;l&&l(_),v&&this.setState({isFullscreen:_})}},{key:"slideToIndex",value:function(c,l){var v=this.state,C=v.currentIndex,_=v.isTransitioning,E=this.props,V=E.items,K=E.slideDuration,X=E.onBeforeSlide;if(!_){l&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var D=V.length-1,z=c;c<0?z=D:c>D&&(z=0),X&&z!==C&&X(z),this.setState({previousIndex:C,currentIndex:z,isTransitioning:z!==C,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 v=this.state,C=v.currentIndex,_=v.isTransitioning,E=this.props.items,V=C+(l==="left"?-1:1);_||(E.length===2?this.slideToIndexWithStyleReset(V,c):this.slideToIndex(V,c))}},{key:"slideToIndexWithStyleReset",value:function(c,l){var v=this,C=this.state,_=C.currentIndex,E=C.currentSlideOffset;this.setState({currentSlideOffset:E+(_>c?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return v.slideToIndex(c,l)},25)})}},{key:"handleThumbnailMouseOver",value:function(c,l){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(c,l)}},{key:"handleThumbnailKeyUp",value:function(c,l){jr(c)&&this.onThumbnailClick(c,l)}},{key:"handleSlideKeyUp",value:function(c){jr(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;kr.forEach(function(l){document.addEventListener(l,c.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var c=this;kr.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,v=l.onPlay,C=l.slideInterval,_=l.slideDuration,E=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(C,_)),v&&c&&v(E))}},{key:"pause",value:function(){var c=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],l=this.props.onPause,v=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),l&&c&&l(v))}},{key:"isImageLoaded",value:function(c){return!!this.loadedImages[c.original]||(this.loadedImages[c.original]=!0,!1)}},{key:"handleImageLoaded",value:function(c,l){var v=this.props.onImageLoad;!this.loadedImages[l]&&v&&(this.loadedImages[l]=!0,v(c))}},{key:"renderItem",value:function(c){var l=this.state.isFullscreen,v=this.props.onImageError||this.handleImageError;return f().createElement(bo,{description:c.description,fullscreen:c.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:l,onImageError:v,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 f().createElement("span",{className:"image-gallery-thumbnail-inner"},f().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&&f().createElement("div",{className:"image-gallery-thumbnail-label"},c.thumbnailLabel))}},{key:"render",value:function(){var c=this.state,l=c.currentIndex,v=c.isFullscreen,C=c.modalFullscreen,_=c.isPlaying,E=this.props,V=E.additionalClass,K=E.disableThumbnailSwipe,X=E.indexSeparator,D=E.isRTL,z=E.items,F=E.thumbnailPosition,$=E.renderFullscreenButton,Y=E.renderCustomControls,ne=E.renderLeftNav,ce=E.renderRightNav,Se=E.showBullets,ve=E.showFullscreenButton,fe=E.showIndex,le=E.showThumbnails,re=E.showNav,De=E.showPlayButton,at=E.renderPlayPauseButton,lt=this.getThumbnailStyle(),Me=this.getSlideItems(),He=Me.slides,Re=Me.thumbnails,Ze=Me.bullets,ct=p("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(F),{"image-gallery-rtl":D}),et=f().createElement("div",{ref:this.imageGallerySlideWrapper,className:ct},Y&&Y(),this.canSlide()?f().createElement(f().Fragment,null,re&&f().createElement(f().Fragment,null,ne(this.slideLeft,!this.canSlideLeft()),ce(this.slideRight,!this.canSlideRight())),f().createElement(yr,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},f().createElement("div",{className:"image-gallery-slides"},He))):f().createElement("div",{className:"image-gallery-slides"},He),De&&at(this.togglePlay,_),Se&&f().createElement("div",{className:"image-gallery-bullets"},f().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Ze)),ve&&$(this.toggleFullScreen,v),fe&&f().createElement("div",{className:"image-gallery-index"},f().createElement("span",{className:"image-gallery-index-current"},l+1),f().createElement("span",{className:"image-gallery-index-separator"},X),f().createElement("span",{className:"image-gallery-index-total"},z.length))),ut=p("image-gallery",V,{"fullscreen-modal":C}),je=p("image-gallery-content",this.getThumbnailPositionClassName(F),{fullscreen:v}),Ro=p("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(F),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&D},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!K},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!K});return f().createElement("div",{ref:this.imageGallery,className:ut,"aria-live":"polite"},f().createElement("div",{className:je},(F==="bottom"||F==="right")&&et,le&&Re.length>0?f().createElement(yr,{className:Ro,delta:0,onSwiping:!K&&this.handleThumbnailSwiping,onSwiped:!K&&this.handleOnThumbnailSwiped},f().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},f().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:lt,"aria-label":"Thumbnail Navigation"},Re))):null,(F==="top"||F==="left")&&et))}}],m&&Co(a.prototype,m),Object.defineProperty(a,"prototype",{writable:!1}),J}(f().Component);on.propTypes={flickThreshold:k.number,items:(0,k.arrayOf)((0,k.shape)({bulletClass:k.string,bulletOnClick:k.func,description:k.string,original:k.string,originalHeight:k.number,originalWidth:k.number,loading:k.string,thumbnailHeight:k.number,thumbnailWidth:k.number,thumbnailLoading:k.string,fullscreen:k.string,originalAlt:k.string,originalTitle:k.string,thumbnail:k.string,thumbnailAlt:k.string,thumbnailLabel:k.string,thumbnailTitle:k.string,originalClass:k.string,thumbnailClass:k.string,renderItem:k.func,renderThumbInner:k.func,imageSet:Io,srcSet:k.string,sizes:k.string})).isRequired,showNav:k.bool,autoPlay:k.bool,lazyLoad:k.bool,infinite:k.bool,showIndex:k.bool,showBullets:k.bool,showThumbnails:k.bool,showPlayButton:k.bool,showFullscreenButton:k.bool,disableThumbnailScroll:k.bool,disableKeyDown:k.bool,disableSwipe:k.bool,disableThumbnailSwipe:k.bool,useBrowserFullscreen:k.bool,onErrorImageURL:k.string,indexSeparator:k.string,thumbnailPosition:(0,k.oneOf)(["top","bottom","left","right"]),startIndex:k.number,slideDuration:k.number,slideInterval:k.number,slideOnThumbnailOver:k.bool,swipeThreshold:k.number,swipingTransitionDuration:k.number,swipingThumbnailTransitionDuration:k.number,onSlide:k.func,onBeforeSlide:k.func,onScreenChange:k.func,onPause:k.func,onPlay:k.func,onClick:k.func,onImageLoad:k.func,onImageError:k.func,onTouchMove:k.func,onTouchEnd:k.func,onTouchStart:k.func,onMouseOver:k.func,onMouseLeave:k.func,onBulletClick:k.func,onThumbnailError:k.func,onThumbnailClick:k.func,renderCustomControls:k.func,renderLeftNav:k.func,renderRightNav:k.func,renderPlayPauseButton:k.func,renderFullscreenButton:k.func,renderItem:k.func,renderThumbInner:k.func,stopPropagation:k.bool,additionalClass:k.string,useTranslate3D:k.bool,isRTL:k.bool,useWindowKeyDown:k.bool},on.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(h,a){return f().createElement(So,{onClick:h,disabled:a})},renderRightNav:function(h,a){return f().createElement(ko,{onClick:h,disabled:a})},renderPlayPauseButton:function(h,a){return f().createElement(jo,{onClick:h,isPlaying:a})},renderFullscreenButton:function(h,a){return f().createElement(wo,{onClick:h,isFullscreen:a})},useWindowKeyDown:!0};const _o=on})(),u})())})(Di);var qa=Di.exports;const Ga=Fo(qa);function Xa(){var e=new Map;function t(n){var r=n.root,i=n.rootMargin,s=n.threshold,u=e.get(r);u||(u=new Map,e.set(r,u));var d=JSON.stringify({rootMargin:i,threshold:s}),p=u.get(d);if(!p){var g=new Map,f=new IntersectionObserver(function(y){y.forEach(function(w){var x=g.get(w.target);x==null||x(w)})},{root:r,rootMargin:i,threshold:s});p={observer:f,entryCallbacks:g},u.set(d,p)}return{observe:function(w,x){var S,j;(S=p)==null||S.entryCallbacks.set(w,x),(j=p)==null||j.observer.observe(w)},unobserve:function(w){var x,S;(x=p)==null||x.entryCallbacks.delete(w),(S=p)==null||S.observer.unobserve(w)}}}return{getObserver:t}}var Ya="0px",Qa=[0],Ja=Xa();function Za(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Ya,i=(n=e==null?void 0:e.threshold)!=null?n:Qa,s=L.useRef(null),u=L.useRef(null),d=L.useRef(null),p=L.useState(),g=p[0],f=p[1],y=L.useCallback(function(){var j=s.current;if(!j){f(void 0);return}var R=Ja.getObserver({root:u.current,rootMargin:r,threshold:i});R.observe(j,function(T){f(T)}),d.current=R},[r,i]),w=L.useCallback(function(){var j=d.current,R=s.current;R&&(j==null||j.unobserve(R)),d.current=null},[]),x=L.useCallback(function(j){w(),s.current=j,y()},[y,w]),S=L.useCallback(function(j){w(),u.current=j,y()},[y,w]);return[x,{entry:g,rootRef:S}]}function En(){return En=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},En.apply(this,arguments)}function el(e){var t,n=Za(e),r=n[0],i=n[1],s=!!((t=i.entry)!=null&&t.isIntersecting),u=L.useState(s),d=u[0],p=u[1];return s&&!d&&p(!0),[r,En({},i,{isVisible:s,wasEverVisible:d})]}var tl=100;function nl(e){var t=e.loading,n=e.hasNextPage,r=e.onLoadMore,i=e.rootMargin,s=e.disabled,u=e.delayInMs,d=u===void 0?tl:u,p=el({rootMargin:i}),g=p[0],f=p[1],y=f.rootRef,w=f.isVisible,x=!s&&!t&&w&&n;return L.useEffect(function(){if(x){var S=setTimeout(function(){r()},d);return function(){clearTimeout(S)}}},[r,x,d]),[g,{rootRef:y}]}const rl={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"/>'},il={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>'},ol={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 un=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function dn(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function zi(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 Fi(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 sl(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 Vn={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,"-":un?173:189,"=":un?61:187,";":un?59:186,"'":222,"[":219,"]":221,"\\":220},Ae={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},In={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},pe={16:!1,18:!1,17:!1,91:!1},de={};for(var Rt=1;Rt<20;Rt++)Vn["f".concat(Rt)]=111+Rt;var ae=[],Gr=!1,Ni="all",Ai=[],Gt=function(t){return Vn[t.toLowerCase()]||Ae[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function Bi(e){Ni=e||"all"}function wt(){return Ni||"all"}function al(){return ae.slice(0)}function ll(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 cl(e){return typeof e=="string"&&(e=Gt(e)),ae.indexOf(e)!==-1}function ul(e,t){var n,r;e||(e=wt());for(var i in de)if(Object.prototype.hasOwnProperty.call(de,i))for(n=de[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;wt()===e&&Bi(t||"all")}function dl(e){var t=e.keyCode||e.which||e.charCode,n=ae.indexOf(t);if(n>=0&&ae.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&ae.splice(0,ae.length),(t===93||t===224)&&(t=91),t in pe){pe[t]=!1;for(var r in Ae)Ae[r]===t&&(Te[r]=!1)}}function hl(e){if(typeof e>"u")Object.keys(de).forEach(function(u){return delete de[u]});else if(Array.isArray(e))e.forEach(function(u){u.key&&hn(u)});else if(typeof e=="object")e.key&&hn(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=""),hn({key:e,scope:i,method:s,splitKey:"+"})}}var hn=function(t){var n=t.key,r=t.scope,i=t.method,s=t.splitKey,u=s===void 0?"+":s,d=Fi(n);d.forEach(function(p){var g=p.split(u),f=g.length,y=g[f-1],w=y==="*"?"*":Gt(y);if(de[w]){r||(r=wt());var x=f>1?zi(Ae,g):[];de[w]=de[w].filter(function(S){var j=i?S.method===i:!0;return!(j&&S.scope===r&&sl(S.mods,x))})}})};function Xr(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 pe)Object.prototype.hasOwnProperty.call(pe,s)&&(!pe[s]&&t.mods.indexOf(+s)>-1||pe[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!pe[16]&&!pe[18]&&!pe[17]&&!pe[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 Yr(e,t){var n=de["*"],r=e.keyCode||e.which||e.charCode;if(Te.filter.call(this,e)){if((r===93||r===224)&&(r=91),ae.indexOf(r)===-1&&r!==229&&ae.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var j=In[S];e[S]&&ae.indexOf(j)===-1?ae.push(j):!e[S]&&ae.indexOf(j)>-1?ae.splice(ae.indexOf(j),1):S==="metaKey"&&e[S]&&ae.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ae=ae.slice(ae.indexOf(j))))}),r in pe){pe[r]=!0;for(var i in Ae)Ae[i]===r&&(Te[i]=!0);if(!n)return}for(var s in pe)Object.prototype.hasOwnProperty.call(pe,s)&&(pe[s]=e[In[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ae.indexOf(17)===-1&&ae.push(17),ae.indexOf(18)===-1&&ae.push(18),pe[17]=!0,pe[18]=!0);var u=wt();if(n)for(var d=0;d<n.length;d++)n[d].scope===u&&(e.type==="keydown"&&n[d].keydown||e.type==="keyup"&&n[d].keyup)&&Xr(e,n[d],u,t);if(r in de){for(var p=0;p<de[r].length;p++)if((e.type==="keydown"&&de[r][p].keydown||e.type==="keyup"&&de[r][p].keyup)&&de[r][p].key){for(var g=de[r][p],f=g.splitKey,y=g.key.split(f),w=[],x=0;x<y.length;x++)w.push(Gt(y[x]));w.sort().join("")===ae.sort().join("")&&Xr(e,g,u,t)}}}}function fl(e){return Ai.indexOf(e)>-1}function Te(e,t,n){ae=[];var r=Fi(e),i=[],s="all",u=document,d=0,p=!1,g=!0,f="+",y=!1;for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(u=t.element),t.keyup&&(p=t.keyup),t.keydown!==void 0&&(g=t.keydown),t.capture!==void 0&&(y=t.capture),typeof t.splitKey=="string"&&(f=t.splitKey)),typeof t=="string"&&(s=t);d<r.length;d++)e=r[d].split(f),i=[],e.length>1&&(i=zi(Ae,e)),e=e[e.length-1],e=e==="*"?"*":Gt(e),e in de||(de[e]=[]),de[e].push({keyup:p,keydown:g,scope:s,mods:i,shortcut:r[d],method:n,key:r[d],splitKey:f,element:u});typeof u<"u"&&!fl(u)&&window&&(Ai.push(u),dn(u,"keydown",function(w){Yr(w,u)},y),Gr||(Gr=!0,dn(window,"focus",function(){ae=[]},y)),dn(u,"keyup",function(w){Yr(w,u),dl(w)},y))}function pl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(de).forEach(function(n){var r=de[n].find(function(i){return i.scope===t&&i.shortcut===e});r&&r.method&&r.method()})}var fn={setScope:Bi,getScope:wt,deleteScope:ul,getPressedKeyCodes:al,isPressed:cl,filter:ll,trigger:pl,unbind:hl,keyMap:Vn,modifier:Ae,modifierMap:In};for(var pn in fn)Object.prototype.hasOwnProperty.call(fn,pn)&&(Te[pn]=fn[pn]);if(typeof window<"u"){var ml=window.hotkeys;Te.noConflict=function(e){return e&&window.hotkeys===Te&&(window.hotkeys=ml),Te},window.hotkeys=Te}Te.filter=function(){return!0};var Wi=function(t,n){var r=t.target,i=r&&r.tagName;return!!(i&&n&&n.includes(i))},gl=function(t){return Wi(t,["INPUT","TEXTAREA","SELECT"])};function bl(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},s=i.enableOnTags,u=i.filter,d=i.keyup,p=i.keydown,g=i.filterPreventDefault,f=g===void 0?!0:g,y=i.enabled,w=y===void 0?!0:y,x=i.enableOnContentEditable,S=x===void 0?!1:x,j=L.useRef(null),R=L.useCallback(function(T,O){var P,A;return u&&!u(T)?!f:gl(T)&&!Wi(T,s)||(P=T.target)!=null&&P.isContentEditable&&!S?!0:j.current===null||document.activeElement===j.current||(A=j.current)!=null&&A.contains(document.activeElement)?(t(T,O),!0):!1},r?[j,s,u].concat(r):[j,s,u]);return L.useEffect(function(){if(!w){Te.unbind(e,R);return}return d&&p!==!0&&(n.keydown=!1),Te(e,n||{},R),function(){return Te.unbind(e,R)}},[R,e,w]),j}Te.isPressed;const $i=L.createContext({open:!1,toggleOpen:e=>{}});function yl({children:e}){const[t,n]=L.useState(!1),r=s=>{n(s??!s)},i=L.useMemo(()=>({open:t,toggleOpen:r}),[t]);return o.jsx($i.Provider,{value:i,children:e})}function qn(){return L.useContext($i)}const Ce={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},vl=e=>St(async()=>{const{data:t}=await e.get(Ce.categoriesPath);return Array.isArray(t)?t:[]},{manual:!0});function xl(e,t){const n=e.menu?{sortBy:"popularity",sortDirection:"desc",showResources:"true",...$o(e,["sortBy","sortDirection","showResources"])}:{sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:r,onSearchSelect:i=d=>{t.onFilterChange({...n,keyword:d.title})},emptyCategory:s}=t;!n.category&&!s&&(n.category="All");const u=d=>{const p={...n,...d};r(sn(p,g=>g===""||g===void 0))};return{filters:e,cleanFilter:d=>{const p=d?sn(n,(g,f)=>d.includes(f)):{};r(sn(p,g=>g===""||g===void 0))},handleActiveMenu:d=>{d!==e.menu&&r({menu:d})},handleSort:(d,p)=>{u({sortBy:d,sortDirection:p||d==="nameAsc"?"asc":"desc"})},handleKeyword:d=>{u({category:void 0,keyword:d||void 0})},handlePrice:d=>{u({price:d===e.price?void 0:d})},handleCategory:d=>{u({category:d===e.category?"":d})},handleDeveloper:d=>{u({owner:d||void 0})},handlePage:d=>{u({currentPage:d})},handleSwitchShowResources:d=>{u({showResources:d})},handleSearchSelect:d=>{i(d)}}}const wl=(e,t,n)=>e&&t||!n,Hi=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],Ui=(e,t,n)=>{var r,i;const s=Go(e),u=Xo(s.search);if((r=Yo(e,{strict:!0}))!=null&&r.endsWith(".gif"))return u.imageFilter?Qo({...s,search:""}):e;if(u.imageFilter)return e;const d=n||((i=window.blocklet)==null?void 0:i.version),{w:p,h:g}=typeof t=="object"?{w:t.w,h:t.h}:{w:t,h:t};return Ln(e,{...p||g?{imageFilter:"resize",w:p,h:g}:{},v:d})},Sl=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],kl=(e=[],t="en")=>e.map(n=>({name:n.locales[t]||n.locales.en,value:n._id})),jl=e=>{var t,n;return Array.isArray(e)?e.map(r=>r.message).join(`
|
|
2
2
|
`):(n=(t=e.response)==null?void 0:t.data)!=null&&n.error?e.response.data.error.message||e.response.data.error:e.message||e},Tl=(e,t)=>e==null?void 0:e.replace(/{(\w*)}/g,(n,r)=>t.hasOwnProperty(r)?t[r]:""),Ol=()=>window.innerWidth<=600,Cl={common:{title:"Blocklet Store",searchStore:"Search Blocklet",showResources:"Show extensions",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}"'}},El={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",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}” 的所有搜索结果"}},mn={en:Er(Cl),zh:Er(El)},Ki=(e,t)=>{const n={};return e&&(n["x-blocklet-server-version"]=e),t&&(n["x-blocklet-store-version"]=t),n},Il=e=>(t,n)=>{const r=mn[e]?mn[e][t]:mn.en[t];return Tl(r,n)||t},Vi={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:()=>{},handleSearchSelect:()=>{},handlePage:()=>{}}},qi=L.createContext(Vi),{Provider:_l,Consumer:Bc}=qi;function Rl(e){const{locale:t="zh",filters:n={},serverVersion:r="",onFilterChange:i=()=>{},minItemWidth:s=350,queryFilter:u=!0,layout:d={},wrapChildren:p=se=>se,extraFilter:g=se=>se,baseSearch:f=!1,fetchCategoryDelay:y=0,showResourcesSwitch:w=!1,showCategory:x=!0,tagFilters:S=[],children:j,storeVersion:R,onSearchSelect:T=()=>{},endpoint:O,blockletRender:P,compact:A=!1}=e,G=Ki(r,R),W=L.useMemo(()=>ii({baseURL:O,headers:G}),[O]),U=xl(n,{onFilterChange:i,emptyCategory:!d.showExplore,onSearchSelect:T}),[ee,ie]=L.useState(""),{data:H=[],error:Ee,loading:ge,run:ke}=vl(W),be=L.useMemo(()=>{const se=js(H,[te=>te.name],["asc"]),oe=se.findIndex(te=>te.name==="All"||te.locales.en==="All");return oe>-1?[{...se[oe],_id:"All"},...se.slice(0,oe),...se.slice(oe+1)]:se},[H]),ye=L.useCallback(Il(t),[t]),N=L.useMemo(()=>kl(be,t),[be,t]),Q=Sl(ye),he={search:U,compact:A,errors:{fetchCategoriesError:Ee},loadings:{fetchCategoriesLoading:ge},extraFilter:g,endpoint:O,queryFilter:u,layout:{showExplore:d.showExplore??!1,showCategory:d.showCategory??!0,showTitle:d.showTitle??!0,showSearch:d.showSearch??!0},minItemWidth:s,wrapChildren:p,t:ye,storeVersion:R,serverVersion:r,selectedCategory:U.filters.category||(d.showExplore?"":"All"),categoryList:be,blockletRender:P,locale:t,categoryOptions:N,priceOptions:Q,storeApi:W,baseSearch:f,showResourcesSwitch:w,showCategory:x,tagFilters:S,onFilterChange:i,getCategoryLocale:se=>{if(!se)return null;const oe=H.find(te=>te._id===se||te.locales.en==="All");return oe?oe.locales[t]||oe.locales.en:null},get developerName(){return ee},updateDeveloperName:ie};return L.useEffect(()=>{setTimeout(ke,y||0)},[O,ke,y]),o.jsx(_l,{value:he,children:j})}function we(){return L.useContext(qi)||Vi}function Gi({children:e,onClick:t,size:n=32,...r}){return o.jsx(Oe,{...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 Pt(e,t){return e===void 0?t:e}function Gn({xs:e,sm:t,md:n,lg:r,xl:i,exact:s}){const u=Ve(),d=nt(u.breakpoints.down("sm")),p=nt(u.breakpoints.between("sm","md")),g=nt(u.breakpoints.between("md","lg")),f=nt(u.breakpoints.between("lg","xl"));if(s)return d?e||null:p?t||null:g?n||null:f?r||null:i||null;let y=e;return d||(y=Pt(t,y),p)||(y=Pt(n,y),g)||(y=Pt(r,y),f)?y:Pt(i,y)}function Pl({children:e}){const{open:t,toggleOpen:n}=qn();return o.jsx(Gn,{xs:o.jsx(Ko,{open:t,onClose:()=>n(!1),children:e}),md:o.jsx(q,{children:e})})}const Ml=L.forwardRef(({loading:e,disabled:t,...n},r)=>o.jsx(Oe,{ref:r,disableElevation:!0,disabled:t||e,...n,sx:[{borderRadius:"4px"},...Array.isArray(n.sx)?n.sx:[n.sx]],startIcon:e&&o.jsx(Pe,{size:"1em"})}));function _n({value:e,options:t,onChange:n,placeholder:r,...i}){var s;const u=L.useRef(null),d=Ve(),[p,g]=L.useState(!1),[f,y]=L.useState(e!==null?e:""),w=nt(d.breakpoints.down("sm"));L.useEffect(()=>{y(e!==null?e:"")},[e]);const x=L.useCallback(()=>{g(!1)},[]),S=L.useCallback(()=>{g(!0)},[]);function j(T){y(T.value),n(T.value),w&&x()}function R(T){return T===f}return o.jsxs(o.Fragment,{children:[o.jsxs(Ll,{ref:u,onClick:S,variant:"outlined",size:"medium",className:["my-select__selector",Jo(f)?"":"my-select__selector--active"].join(" "),sx:{minWidth:{xs:"100px",md:"auto"},color:"text.primary",borderRadius:"8px"},...i,children:[((s=t.find(T=>T.value===f))==null?void 0:s.name)||r,o.jsx(Zo,{className:"my-select__arrowdown",component:Mi,sx:{width:18,height:18}})]}),o.jsx(es,{open:p,anchorEl:u.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:T,placement:O})=>o.jsx(ts,{...T,style:{transformOrigin:O==="bottom"?"center top":"center bottom"},children:o.jsx(ns,{children:o.jsx(rs,{onClickAway:x,children:o.jsx(Dl,{autoFocusItem:p,onMouseEnter:S,onMouseLeave:x,children:t.map(P=>o.jsxs(Nt,{onClick:()=>j(P),sx:{fontSize:14},children:[o.jsx(is,{sx:{mr:1,fontSize:16,visibility:R(P.value)?"visible":"hidden"}}),P.name]},P.value))})})})})})]})}const Ll=Be(Ml)`
|
|
3
3
|
border: 1px solid ${e=>e.theme.palette.divider};
|
|
4
4
|
padding: 6px 8px 6px 12px;
|