@abtnode/webapp 1.16.37 → 1.16.38-beta-20250110-003414-d3c1bfbd
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/{Add-LNeK5jrT.js → Add-DMbK1vzy.js} +1 -1
- package/dist/assets/{ArrowDropDown-BMCAROdz.js → ArrowDropDown-DKLRovgu.js} +1 -1
- package/dist/assets/Autocomplete-72OfUAKA.js +1 -0
- package/dist/assets/{Breadcrumbs-D96Ji_Fg.js → Breadcrumbs-DvzeQG2v.js} +1 -1
- package/dist/assets/{ButtonGroup-DNhSwTTP.js → ButtonGroup-l0siWVyy.js} +1 -1
- package/dist/assets/{CSSTransition-CyKJ1XLf.js → CSSTransition-DD9Kx1Iq.js} +1 -1
- package/dist/assets/{CheckCircle-fa5-ji4k.js → CheckCircle-BgjyHaH-.js} +1 -1
- package/dist/assets/{ChevronLeft-CBG0DKr8.js → ChevronLeft-D3UVaBk1.js} +1 -1
- package/dist/assets/{ChevronRight-CiXNKrQ5.js → ChevronRight-CRdbPktx.js} +1 -1
- package/dist/assets/{Delete-SdWkobPu.js → Delete-VacyAtz7.js} +1 -1
- package/dist/assets/{DeleteOutline-DmY0qAVl.js → DeleteOutline-B4ZeZmby.js} +1 -1
- package/dist/assets/{Done-D93m_XkV.js → Done-Dm_L4cxw.js} +1 -1
- package/dist/assets/{Edit-CJLZw07X.js → Edit-udIPbjjy.js} +1 -1
- package/dist/assets/{EditIcon-FonE6fi3.js → EditIcon-D8Tco2Vt.js} +1 -1
- package/dist/assets/{ExpandMore-CqgNg-wv.js → ExpandMore-BMpZ8Wgn.js} +1 -1
- package/dist/assets/{Google-BfbvXp8-.js → Google-Ccj7tlHn.js} +1 -1
- package/dist/assets/{HelpOutline-jNej_Tmw.js → HelpOutline-CczYi4vf.js} +1 -1
- package/dist/assets/{Https-CqP1fmfy.js → Https-oAl-nB9G.js} +1 -1
- package/dist/assets/{InputAdornment-CtznPOEY.js → InputAdornment-DWZfDxJ5.js} +1 -1
- package/dist/assets/{Launch-CU2t4bei.js → Launch-Bh2GBEVm.js} +1 -1
- package/dist/assets/{Link-BPz9fTjE.js → Link-D4R9lXIc.js} +1 -1
- package/dist/assets/{ListItemButton-Ctd0Olny.js → ListItemButton-06IoaY7h.js} +1 -1
- package/dist/assets/{LoadingButton-CVn1jCOP.js → LoadingButton-C9iCYV5S.js} +1 -1
- package/dist/assets/{LockIcon-934wV3SA.js → LockIcon-lED3NuFb.js} +1 -1
- package/dist/assets/{Loop-Csp9pHLq.js → Loop-DwiO6dO7.js} +1 -1
- package/dist/assets/{MoreHoriz-kumMux-w.js → MoreHoriz-Dw0WqG6e.js} +1 -1
- package/dist/assets/{MoreVert-sneedYyB.js → MoreVert-C6wKUwAk.js} +1 -1
- package/dist/assets/{Public-BZcXc7nl.js → Public-CMOXQyK4.js} +1 -1
- package/dist/assets/{SchemaReference.es-DPFWnUmw.js → SchemaReference.es-Dlnv0kOV.js} +1 -1
- package/dist/assets/{Search-HG2-ZiCd.js → Search-B79uNwsG.js} +1 -1
- package/dist/assets/{ShoppingCart-B05O0lLg.js → ShoppingCart-Cbf3RE3D.js} +1 -1
- package/dist/assets/{Stepper-CGVylDau.js → Stepper-B03Gdn9z.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-37A-_sW7.js → ToggleButtonGroup-D1XjcSzv.js} +1 -1
- package/dist/assets/{ViewColumn-Bw1Dr-Hv.js → ViewColumn-o0LIJqw8.js} +1 -1
- package/dist/assets/{ViewList-DtZNy2-d.js → ViewList-D8dbR_yl.js} +1 -1
- package/dist/assets/{_createAggregator-DVwXFFA3.js → _createAggregator-BJ_Gxlsc.js} +1 -1
- package/dist/assets/{actions-j_X8RXTm.js → actions-B3nBC3nT.js} +1 -1
- package/dist/assets/{actions-COHejXyQ.js → actions-BmNXubeF.js} +1 -1
- package/dist/assets/{agreement-CdA52x1A.js → agreement-9M0NNXBk.js} +1 -1
- package/dist/assets/api-BhoYn1LW.js +1 -0
- package/dist/assets/ar-DuHAbPhE.js +3 -0
- package/dist/assets/{audit-logs-D6otUrNH.js → audit-logs-C3C4F9zM.js} +1 -1
- package/dist/assets/{base32-CIv3UxMA.js → base32-DsZtf55n.js} +1 -1
- package/dist/assets/blocklet-WvBRbHhh.js +1 -0
- package/dist/assets/{brace-fold.es-SvvPxAcu.js → brace-fold.es-DlGtg1Ay.js} +1 -1
- package/dist/assets/{chart-CAbejja_.js → chart-DGkq-7L_.js} +1 -1
- package/dist/assets/{click-to-copy-DHZn0BU2.js → click-to-copy-C05ik3Tc.js} +1 -1
- package/dist/assets/{closebrackets.es-D0Vu1pph.js → closebrackets.es-BnxC_9rd.js} +1 -1
- package/dist/assets/{codemirror.es-BnDHzwS1.js → codemirror.es-Cq41RbvR.js} +1 -1
- package/dist/assets/{comment.es-CjNTzTkn.js → comment.es-DdPugZrN.js} +1 -1
- package/dist/assets/{config-navigation-CmYuYlOV.js → config-navigation-DDPZOOR-.js} +3 -3
- package/dist/assets/{connect-to-BE2k9kkw.js → connect-to-Crdst8cO.js} +1 -1
- package/dist/assets/de-CJi7wiel.js +3 -0
- package/dist/assets/{delete-confirm-BdV9ygjA.js → delete-confirm-DVXl439v.js} +1 -1
- package/dist/assets/{detail-DhWlLI9a.js → detail-BA6YG4e9.js} +3 -3
- package/dist/assets/{dialog.es-DAZEbvCl.js → dialog.es-mAWjZ4X4.js} +1 -1
- package/dist/assets/{download-CdMMZrfm.js → download-D3JXYHJu.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-Cv2k92pS.js +1 -0
- package/dist/assets/es-ClwhOFrW.js +3 -0
- package/dist/assets/{foldgutter.es-Cj4Bse4O.js → foldgutter.es-CGXjckQe.js} +1 -1
- package/dist/assets/fr-CAkkNKvy.js +3 -0
- package/dist/assets/{get-safe-url-CPcoBNzz.js → get-safe-url-BkFcpbAL.js} +1 -1
- package/dist/assets/{get-safe-url-skqz94-m.js → get-safe-url-CW8aFZFz.js} +1 -1
- package/dist/assets/getValidReactChildren-CQZDoI1W.js +1 -0
- package/dist/assets/hi-CGrG89HI.js +1 -0
- package/dist/assets/{hint.es-D04OYf-Z.js → hint.es-BCbIeXfD.js} +1 -1
- package/dist/assets/{hint.es2--NLmq3n0.js → hint.es2-CH6AINL7.js} +1 -1
- package/dist/assets/id-D6PyIa8m.js +3 -0
- package/dist/assets/{iframe-DvBCKkSE.js → iframe-8AjXIKnl.js} +1 -1
- package/dist/assets/{index-CUO9cP5M.js → index-BJ4-V7tZ.js} +1 -1
- package/dist/assets/{index-CMxyXyyp.js → index-BJdqQbbW.js} +1 -1
- package/dist/assets/{index-D6UlG4np.js → index-BRQeDn6I.js} +1 -1
- package/dist/assets/{index-Bl6HgP2X.js → index-BWk_UMqc.js} +1 -1
- package/dist/assets/{index-Wpz0M9Lm.js → index-BY5fd9sZ.js} +1 -1
- package/dist/assets/{index-DqS8dcdo.js → index-Bp6z3aGT.js} +1 -1
- package/dist/assets/{index-CTEjUADr.js → index-C-tSf3Nu.js} +1 -1
- package/dist/assets/{index-C9zz2Y-O.js → index-C4Yo_q7y.js} +1 -1
- package/dist/assets/{index-CqXcJ23O.js → index-C92-6luS.js} +1 -1
- package/dist/assets/{index-CiMGLB06.js → index-CA15GHeA.js} +1 -1
- package/dist/assets/{index-DdlTTDA0.js → index-CBnuVUeW.js} +1 -1
- package/dist/assets/{index-DiahrB7x.js → index-CC2cdnYk.js} +1 -1
- package/dist/assets/{index-BDUwUVTl.js → index-CG1_igpG.js} +1 -1
- package/dist/assets/{index-CuGRRyR8.js → index-CG7xm8bB.js} +1 -1
- package/dist/assets/{index-CmTNtczD.js → index-CGvRuMnC.js} +1 -1
- package/dist/assets/{index-CME7w0y5.js → index-CIE4pfp7.js} +1 -1
- package/dist/assets/{index-Cu4oiqSG.js → index-CMc0Du4F.js} +21 -21
- package/dist/assets/{index-CenWKla5.js → index-CWbfhRhH.js} +78 -78
- package/dist/assets/{index-ZnkjBWZr.js → index-Cc-UKLvv.js} +1 -1
- package/dist/assets/{index-BQQ6HoHt.js → index-CdtPbsZF.js} +1 -1
- package/dist/assets/{index-BBVHal1U.js → index-CqJwdJfi.js} +1 -1
- package/dist/assets/{index-CeDvR2dF.js → index-D2R4EXnK.js} +4 -4
- package/dist/assets/{index-CdlDvYRv.js → index-D2u3Hmgc.js} +1 -1
- package/dist/assets/{index-BHOZSahD.js → index-D3NL2XyY.js} +1 -1
- package/dist/assets/{index-BUNJKpmD.js → index-D49YArUG.js} +124 -124
- package/dist/assets/{index-B-7NiZMn.js → index-D4cunB-D.js} +1 -1
- package/dist/assets/{index-Cq8gXYls.js → index-DHi3bYBp.js} +1 -1
- package/dist/assets/{index--g6tWKGz.js → index-DKi6BJy-.js} +1 -1
- package/dist/assets/{index-B_4PtLjv.js → index-Dc4xgOvt.js} +1 -1
- package/dist/assets/{index-DFZvQNhs.js → index-DhWjINOl.js} +1 -1
- package/dist/assets/{index-DbPjug53.js → index-DxpxiMNX.js} +1 -1
- package/dist/assets/{index-BZOzc2yh.js → index-GeGGg5FS.js} +1 -1
- package/dist/assets/{index-CTnaHN2F.js → index-JJP1bzc4.js} +1 -1
- package/dist/assets/{index-B7u6DMob.js → index-Jxsgp5Uf.js} +3 -3
- package/dist/assets/{index-CdjAgPV6.js → index-WAManj1W.js} +1 -1
- package/dist/assets/{index-BzJr8MZd.js → index-g54V2euN.js} +1 -1
- package/dist/assets/{index-sR_PZ0Y7.js → index-hLMcQc7k.js} +1 -1
- package/dist/assets/{index-BcFgJ4P7.js → index-n0yXt8Sx.js} +1 -1
- package/dist/assets/{index-DbM7eu_G.js → index-oSDNX64t.js} +3 -3
- package/dist/assets/{index-JwV9ZSj1.js → index-wrId3cmL.js} +1 -1
- package/dist/assets/{index-D_gJpdyF.js → index-zTokKslW.js} +2 -2
- package/dist/assets/{index.esm-BmJ6gVOZ.js → index.esm-CcF_wSql.js} +1 -1
- package/dist/assets/{info-addon.es-LRhGzFNO.js → info-addon.es-Zv7hO3v8.js} +1 -1
- package/dist/assets/{info.es-C-a7s3gR.js → info.es-_PvJk0Sn.js} +1 -1
- package/dist/assets/{install-from-url-SQrCQcYi.js → install-from-url-CHeZ3efm.js} +1 -1
- package/dist/assets/{invitation-DvJLTIS2.js → invitation-DSrQVBko.js} +1 -1
- package/dist/assets/is-path-prefix-equal-6Xk283GW.js +1 -0
- package/dist/assets/{item-BHaPtXP2.js → item-B8Ikm43l.js} +1 -1
- package/dist/assets/ja-C82Szos_.js +3 -0
- package/dist/assets/{javascript.es-C7DdWJKB.js → javascript.es-BRUVbIfm.js} +1 -1
- package/dist/assets/{jump-to-line.es-ivjE1mPV.js → jump-to-line.es-DwDv0xWQ.js} +1 -1
- package/dist/assets/{jump.es-D4TIjpbX.js → jump.es-Djy2R28D.js} +1 -1
- package/dist/assets/ko-zaXquvPm.js +3 -0
- package/dist/assets/{lint.es-DGHaTgxf.js → lint.es-CqwAPBE0.js} +1 -1
- package/dist/assets/{lint.es2-ivQKovR2.js → lint.es2-BzvK8jqN.js} +1 -1
- package/dist/assets/{lint.es3-Bt2w8cvz.js → lint.es3-DK49uIoO.js} +1 -1
- package/dist/assets/{list-header-BX4fmTdb.js → list-header-Dp2PLIET.js} +1 -1
- package/dist/assets/{log-zCc1coPH.js → log-DhOu9Kdc.js} +1 -1
- package/dist/assets/{logo-uploader-Dw-uh1T2.js → logo-uploader-Dj6giLFm.js} +4 -4
- package/dist/assets/{lottie-react.esm-CgEl2A0C.js → lottie-react.esm-Csdw9Vzz.js} +1 -1
- package/dist/assets/{matchbrackets.es-49-A2Uxh.js → matchbrackets.es-imT7Z0Y9.js} +1 -1
- package/dist/assets/{memory-BxEEk0to.js → memory-CCO4mC07.js} +1 -1
- package/dist/assets/{mode.es-CRvvIVYR.js → mode.es-230XBHtp.js} +1 -1
- package/dist/assets/{mode.es2-CH8NtrwB.js → mode.es2-DIyH3KiP.js} +1 -1
- package/dist/assets/{mode.es3-BSTnMxNC.js → mode.es3-MypnvBX7.js} +1 -1
- package/dist/assets/{onlineParser.es-BsaAMnEA.js → onlineParser.es-CIQBs0ab.js} +1 -1
- package/dist/assets/{overview-CbRHUR59.js → overview-f1KcRwxU.js} +1 -1
- package/dist/assets/{permission-Bkth4eV7.js → permission-Bcmsu5d5.js} +1 -1
- package/dist/assets/pt-CMq2TmiV.js +1 -0
- package/dist/assets/{resource-dialog-B39zqK45.js → resource-dialog-CjkV1JgT.js} +9 -9
- package/dist/assets/ru-BwmmHWZS.js +1 -0
- package/dist/assets/{runtime-C-QxOBAC.js → runtime-Bo8HSyE-.js} +1 -1
- package/dist/assets/schema-CCOnGjM-.js +29 -0
- package/dist/assets/sdk-qrY1rACG.js +1 -0
- package/dist/assets/{search.es-BwzP6MG0.js → search.es-DyMbgBDt.js} +1 -1
- package/dist/assets/{searchcursor.es-Bidk4QWP.js → searchcursor.es-BXpAUvZO.js} +1 -1
- package/dist/assets/{service-JO-3dMQL.js → service-CifH8b_H.js} +1 -1
- package/dist/assets/session-Oj9XmKr2.js +1 -0
- package/dist/assets/{shorten-label-Cyl52dM6.js → shorten-label-DWmSldhD.js} +1 -1
- package/dist/assets/{show-hint.es-BshPrCed.js → show-hint.es-E3psg9hY.js} +1 -1
- package/dist/assets/{simple-select-BMHJl3YE.js → simple-select-49kuuDJ_.js} +1 -1
- package/dist/assets/{slicedToArray-BNRTfgmS.js → slicedToArray-Yixr-oJu.js} +1 -1
- package/dist/assets/{spaces-BK8M5T_O.js → spaces-A_lKSdhY.js} +1 -1
- package/dist/assets/{status-CjSQkY6J.js → status-DCmFj-i0.js} +1 -1
- package/dist/assets/{sublime.es-DcKiuWNC.js → sublime.es-ComfFZLY.js} +1 -1
- package/dist/assets/{switch-control-BDeteUmz.js → switch-control-xE4sjHp6.js} +1 -1
- package/dist/assets/{table-icons-B2I5P9wN.js → table-icons-Q5LDmDtO.js} +1 -1
- package/dist/assets/{team-CT47mbew.js → team-3vCE6Gdh.js} +1 -1
- package/dist/assets/{th-CKxPcxWD.js → th-C-hKn9xa.js} +1 -1
- package/dist/assets/{toUpper-DanPvCnW.js → toUpper-0YthuLMH.js} +1 -1
- package/dist/assets/{traffic-DdIpuI4L.js → traffic-C-peaCPk.js} +1 -1
- package/dist/assets/{uniqBy-BwI-KO3U.js → uniqBy-nvRXjDh4.js} +1 -1
- package/dist/assets/{url-evaluation-BkGwhDBb.js → url-evaluation-Chv1gy0N.js} +1 -1
- package/dist/assets/{url-join-CXZZH1hT.js → url-join-Beajpd0B.js} +1 -1
- package/dist/assets/{use-mobile-DL3ieg5k.js → use-mobile-DRPYNh8e.js} +1 -1
- package/dist/assets/{useAsync-tkSQIJ7B.js → useAsync-BkCbq0Nt.js} +1 -1
- package/dist/assets/{useLocalStorage-BuIYftF5.js → useLocalStorage-DJrGEjBO.js} +1 -1
- package/dist/assets/{useThemeProps-CMeYnErS.js → useThemeProps-C9wZ4SLX.js} +1 -1
- package/dist/assets/{util-CJ7LZmNA.js → util-S0lCOd3M.js} +1 -1
- package/dist/assets/{vi-DsheN6LQ.js → vi-C_iM9J2X.js} +1 -1
- package/dist/assets/{wait-container-Bejv0Pdm.js → wait-container-izhq2H-L.js} +1 -1
- package/dist/assets/{withStyles-C7pv6jh1.js → withStyles-DcLZK18s.js} +1 -1
- package/dist/assets/wrap-locale-BEOy0Wuw.js +1 -0
- package/dist/assets/{zh-BJMvTFip.js → zh-DNY792IC.js} +1 -1
- package/dist/assets/zh-tw-9sY6BN2s.js +3 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Autocomplete-TOUUVKuI.js +0 -1
- package/dist/assets/api-Cs_T_Ea4.js +0 -1
- package/dist/assets/ar-DJ10cGfc.js +0 -3
- package/dist/assets/blocklet-B717ECiV.js +0 -1
- package/dist/assets/de-5ORoKwiw.js +0 -3
- package/dist/assets/emotion-react.browser.esm-CNy46FnI.js +0 -1
- package/dist/assets/es-CWClvbjs.js +0 -3
- package/dist/assets/fr-CE8mlhdK.js +0 -3
- package/dist/assets/getValidReactChildren-Cg0RyAku.js +0 -1
- package/dist/assets/hi-DVuJdQme.js +0 -1
- package/dist/assets/id-L6JUyxUh.js +0 -3
- package/dist/assets/is-path-prefix-equal-Bhvu_H7P.js +0 -1
- package/dist/assets/ja-C5orBePq.js +0 -3
- package/dist/assets/ko-BeIurXFC.js +0 -3
- package/dist/assets/pt-BED0VqHV.js +0 -1
- package/dist/assets/ru-B5wj2v7e.js +0 -1
- package/dist/assets/schema-BNNwED-s.js +0 -28
- package/dist/assets/sdk-DKS71jwM.js +0 -1
- package/dist/assets/session-Denx5-a_.js +0 -1
- package/dist/assets/wrap-locale-HbAVHA9D.js +0 -1
- package/dist/assets/zh-tw-B_su4eMW.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cl as Le,r as I,ci as mt,fx as Hn,be as Oi,bf as Ei,bp as kt,fy as et,cj as dt,fz as Ci,fA as _i,bU as Vn,aa as Pt,bS as ct,c$ as Ri,bZ as qn,j as t,g as hr,fB as Ii,fC as Pi,aR as gt,aS as vt,cS as ut,cK as Gn,e9 as ke,C as Ie,s as He,N as X,ap as tt,dq as Mi,a7 as Di,dD as Li,fD as fr,f4 as pr,fE as mr,fF as sn,aG as zi,aH as an,a$ as Ee,fG as Ut,l as q,c_ as ft,fH as Ni,F as Ke,fI as Fi,a_ as gr,X as vr,fw as ln,fq as ze,az as cn,G as Yn,e3 as Xn,aV as Bi,fJ as Ai,fK as Wi,fL as $i,fM as Ki,O as Ui,f6 as Hi,f5 as Vi,ej as qi,dX as Gi,f3 as Yi,V as Ct,a3 as Xi,fN as br,fO as Qi,v as yr,a6 as Ne,a0 as Ji,fP as Zi,P,o as Ve,aE as xr,aU as Qn,cB as eo,B as _t,ac as to,ad as wr,aK as no,fQ as Jn,ae as ro,bs as un,D as io,t as oo,Y as so,cy as ao,Z as ht,E as Sr,z as $e,c as lo,b5 as co,ai as uo,f8 as kr,cp as ho,eC as fo,W as po}from"./index-CenWKla5.js";import{d as mo}from"./ChevronLeft-CBG0DKr8.js";import{d as go}from"./ChevronRight-CiXNKrQ5.js";import{d as Et}from"./Search-HG2-ZiCd.js";import{A as vo}from"./Autocomplete-TOUUVKuI.js";import{I as Zn}from"./InputAdornment-CtznPOEY.js";import{d as bo}from"./ShoppingCart-B05O0lLg.js";import{d as yo}from"./Add-LNeK5jrT.js";import{d as jr}from"./Launch-CU2t4bei.js";import{d as xo}from"./Done-D93m_XkV.js";import{d as Tr}from"./DeleteOutline-DmY0qAVl.js";import{C as wo}from"./delete-confirm-BdV9ygjA.js";import{u as So}from"./blocklet-B717ECiV.js";import{d as ko}from"./MoreVert-sneedYyB.js";import{u as jo}from"./session-Denx5-a_.js";import{g as Ue}from"./get-safe-url-skqz94-m.js";import{B as er}from"./ButtonGroup-DNhSwTTP.js";var To=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Oo=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Eo=function(e,n){n===void 0&&(n={});var a=n.target,l=n.isNoMore,h=n.threshold,f=h===void 0?100:h,g=n.direction,u=g===void 0?"bottom":g,v=n.reloadDeps,b=v===void 0?[]:v,p=n.manual,S=n.onBefore,k=n.onSuccess,x=n.onError,y=n.onFinally,C=Le(I.useState(),2),R=C[0],_=C[1],A=Le(I.useState(!1),2),D=A[0],$=A[1],G=u==="top",Z=I.useRef(),V=I.useRef(0),le=I.useMemo(function(){return l?l(R):!1},[R]),de=mt(function(re){return Oi(void 0,void 0,void 0,function(){var oe,me,Ce,_e;return Ei(this,function(bt){switch(bt.label){case 0:return[4,e(re)];case 1:return oe=bt.sent(),_(re?kt(kt({},oe),{list:G?et(et([],Le(oe.list),!1),Le((Ce=re.list)!==null&&Ce!==void 0?Ce:[]),!1):et(et([],Le((_e=re.list)!==null&&_e!==void 0?_e:[]),!1),Le(oe.list),!1)}):kt(kt({},oe),{list:et([],Le((me=oe.list)!==null&&me!==void 0?me:[]),!1)})),[2,oe]}})})},{manual:p,onFinally:function(re,oe,me){$(!1),y==null||y(oe,me)},onBefore:function(){return S==null?void 0:S()},onSuccess:function(re){setTimeout(function(){if(G){var oe=Hn(a);if(oe=oe===document?document.documentElement:oe,oe){var me=tr(oe);oe.scrollTo(0,me-V.current)}}else be()}),k==null||k(re)},onError:function(re){return x==null?void 0:x(re)}}),Te=de.loading,Pe=de.error,xe=de.run,ce=de.runAsync,Oe=de.cancel,he=dt(function(){le||($(!0),xe(R))}),N=dt(function(){return le?Promise.reject():($(!0),ce(R))}),ee=function(){return $(!1),xe()},te=function(){return $(!1),ce()},be=function(){var re=Hn(a);if(re){var oe=re===document?document.documentElement:re,me=To(oe),Ce=tr(oe),_e=Oo(oe);G?(Z.current!==void 0&&Z.current>me&&me<=f&&he(),Z.current=me,V.current=Ce-me):Ce-me<=_e+f&&he()}};return Ci("scroll",function(){Te||D||be()},{target:a}),_i(function(){xe()},et([],Le(b),!1)),{data:R,loading:!D&&Te,error:Pe,loadingMore:D,noMore:le,loadMore:he,loadMoreAsync:N,reload:dt(ee),reloadAsync:dt(te),mutate:_,cancel:Oe}};const Co=["name"],_o=["children","className","clone","component"];function Ro(e,n){const a={};return Object.keys(e).forEach(l=>{n.indexOf(l)===-1&&(a[l]=e[l])}),a}function Io(e){return(a,l={})=>{const{name:h}=l,f=Vn(l,Co);let g=h;const v=Pt(typeof a=="function"?S=>({root:k=>a(ct({theme:S},k))}):{root:a},ct({Component:e,name:h||e.displayName,classNamePrefix:g},f));let b;a.filterProps&&(b=a.filterProps,delete a.filterProps),a.propTypes&&(a.propTypes,delete a.propTypes);const p=I.forwardRef(function(k,x){const{children:y,className:C,clone:R,component:_}=k,A=Vn(k,_o),D=v(k),$=qn(D.root,C);let G=A;if(b&&(G=Ro(G,b)),R)return I.cloneElement(y,ct({className:qn(y.props.className,$)},G));if(typeof y=="function")return y(ct({className:$},G));const Z=_||e;return t.jsx(Z,ct({ref:x,className:$},G,{children:y}))});return Ri(p,e),p}}const Da="blocklet-add-component-registry",La="server-add-registry",Po={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>'};var Mo=Ii,nr=Pi;function Do(e,n,a,l){return e==null?[]:(nr(n)||(n=n==null?[]:[n]),a=l?void 0:a,nr(a)||(a=a==null?[]:[a]),Mo(e,n,a))}var Lo=Do;const zo=hr(Lo);var dn={},No=vt;Object.defineProperty(dn,"__esModule",{value:!0});var Or=dn.default=void 0,Fo=No(gt()),Bo=t;Or=dn.default=(0,Fo.default)((0,Bo.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Ao={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 Er={exports:{}};(function(e,n){(function(a,l){e.exports=l(I)})(ut,a=>(()=>{var l={703:(u,v,b)=>{var p=b(414);function S(){}function k(){}k.resetWarningCache=S,u.exports=function(){function x(R,_,A,D,$,G){if(G!==p){var Z=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 Z.name="Invariant Violation",Z}}function y(){return x}x.isRequired=x;var C={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:y,element:x,elementType:x,instanceOf:y,node:x,objectOf:y,oneOf:y,oneOfType:y,shape:y,exact:y,checkPropTypes:k,resetWarningCache:S};return C.PropTypes=C,C}},697:(u,v,b)=>{u.exports=b(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var v=typeof Element<"u",b=typeof Map=="function",p=typeof Set=="function",S=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function k(x,y){if(x===y)return!0;if(x&&y&&typeof x=="object"&&typeof y=="object"){if(x.constructor!==y.constructor)return!1;var C,R,_,A;if(Array.isArray(x)){if((C=x.length)!=y.length)return!1;for(R=C;R--!=0;)if(!k(x[R],y[R]))return!1;return!0}if(b&&x instanceof Map&&y instanceof Map){if(x.size!==y.size)return!1;for(A=x.entries();!(R=A.next()).done;)if(!y.has(R.value[0]))return!1;for(A=x.entries();!(R=A.next()).done;)if(!k(R.value[1],y.get(R.value[0])))return!1;return!0}if(p&&x instanceof Set&&y instanceof Set){if(x.size!==y.size)return!1;for(A=x.entries();!(R=A.next()).done;)if(!y.has(R.value[0]))return!1;return!0}if(S&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(y)){if((C=x.length)!=y.length)return!1;for(R=C;R--!=0;)if(x[R]!==y[R])return!1;return!0}if(x.constructor===RegExp)return x.source===y.source&&x.flags===y.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===y.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===y.toString();if((C=(_=Object.keys(x)).length)!==Object.keys(y).length)return!1;for(R=C;R--!=0;)if(!Object.prototype.hasOwnProperty.call(y,_[R]))return!1;if(v&&x instanceof Element)return!1;for(R=C;R--!=0;)if((_[R]!=="_owner"&&_[R]!=="__v"&&_[R]!=="__o"||!x.$$typeof)&&!k(x[_[R]],y[_[R]]))return!1;return!0}return x!=x&&y!=y}u.exports=function(x,y){try{return k(x,y)}catch(C){if((C.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw C}}},359:u=>{u.exports=a}},h={};function f(u){var v=h[u];if(v!==void 0)return v.exports;var b=h[u]={exports:{}};return l[u](b,b.exports,f),b.exports}f.n=u=>{var v=u&&u.__esModule?()=>u.default:()=>u;return f.d(v,{a:v}),v},f.d=(u,v)=>{for(var b in v)f.o(v,b)&&!f.o(u,b)&&Object.defineProperty(u,b,{enumerable:!0,get:v[b]})},f.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),f.o=(u,v)=>Object.prototype.hasOwnProperty.call(u,v),f.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var g={};return(()=>{function u(s){var r,c,d="";if(typeof s=="string"||typeof s=="number")d+=s;else if(typeof s=="object")if(Array.isArray(s))for(r=0;r<s.length;r++)s[r]&&(c=u(s[r]))&&(d&&(d+=" "),d+=c);else for(r in s)s[r]&&(d&&(d+=" "),d+=r);return d}function v(){for(var s,r,c=0,d="";c<arguments.length;)(s=arguments[c++])&&(r=u(s))&&(d&&(d+=" "),d+=r);return d}f.r(g),f.d(g,{default:()=>ji});var b=f(359),p=f.n(b);const S=function(s){var r=typeof s;return s!=null&&(r=="object"||r=="function")},k=typeof ut=="object"&&ut&&ut.Object===Object&&ut;var x=typeof self=="object"&&self&&self.Object===Object&&self;const y=k||x||Function("return this")(),C=function(){return y.Date.now()};var R=/\s/,_=/^\s+/;const A=function(s){return s&&s.slice(0,function(r){for(var c=r.length;c--&&R.test(r.charAt(c)););return c}(s)+1).replace(_,"")},D=y.Symbol;var $=Object.prototype,G=$.hasOwnProperty,Z=$.toString,V=D?D.toStringTag:void 0,le=Object.prototype.toString,de=D?D.toStringTag:void 0;const Te=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":de&&de in Object(s)?function(r){var c=G.call(r,V),d=r[V];try{r[V]=void 0;var O=!0}catch{}var F=Z.call(r);return O&&(c?r[V]=d:delete r[V]),F}(s):function(r){return le.call(r)}(s)};var Pe=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,ce=/^0o[0-7]+$/i,Oe=parseInt;const he=function(s){if(typeof s=="number")return s;if(function(d){return typeof d=="symbol"||function(O){return O!=null&&typeof O=="object"}(d)&&Te(d)=="[object Symbol]"}(s))return NaN;if(S(s)){var r=typeof s.valueOf=="function"?s.valueOf():s;s=S(r)?r+"":r}if(typeof s!="string")return s===0?s:+s;s=A(s);var c=xe.test(s);return c||ce.test(s)?Oe(s.slice(2),c?2:8):Pe.test(s)?NaN:+s};var N=Math.max,ee=Math.min;const te=function(s,r,c){var d,O,F,Y,o,i,m=0,j=!1,E=!1,T=!0;if(typeof s!="function")throw new TypeError("Expected a function");function K(B){var H=d,Q=O;return d=O=void 0,m=B,Y=s.apply(Q,H)}function W(B){return m=B,o=setTimeout(M,r),j?K(B):Y}function U(B){var H=B-i;return i===void 0||H>=r||H<0||E&&B-m>=F}function M(){var B=C();if(U(B))return L(B);o=setTimeout(M,function(H){var Q=r-(H-i);return E?ee(Q,F-(H-m)):Q}(B))}function L(B){return o=void 0,T&&d?K(B):(d=O=void 0,Y)}function z(){var B=C(),H=U(B);if(d=arguments,O=this,i=B,H){if(o===void 0)return W(i);if(E)return clearTimeout(o),o=setTimeout(M,r),K(i)}return o===void 0&&(o=setTimeout(M,r)),Y}return r=he(r)||0,S(c)&&(j=!!c.leading,F=(E="maxWait"in c)?N(he(c.maxWait)||0,r):F,T="trailing"in c?!!c.trailing:T),z.cancel=function(){o!==void 0&&clearTimeout(o),m=0,d=i=O=o=void 0},z.flush=function(){return o===void 0?Y:L(C())},z},be=function(s,r,c){var d=!0,O=!0;if(typeof s!="function")throw new TypeError("Expected a function");return S(c)&&(d="leading"in c?!!c.leading:d,O="trailing"in c?!!c.trailing:O),te(s,r,{leading:d,maxWait:r,trailing:O})};var re=f(590),oe=f.n(re),me=function(){if(typeof Map<"u")return Map;function s(r,c){var d=-1;return r.some(function(O,F){return O[0]===c&&(d=F,!0)}),d}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(c){var d=s(this.__entries__,c),O=this.__entries__[d];return O&&O[1]},r.prototype.set=function(c,d){var O=s(this.__entries__,c);~O?this.__entries__[O][1]=d:this.__entries__.push([c,d])},r.prototype.delete=function(c){var d=this.__entries__,O=s(d,c);~O&&d.splice(O,1)},r.prototype.has=function(c){return!!~s(this.__entries__,c)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(c,d){d===void 0&&(d=null);for(var O=0,F=this.__entries__;O<F.length;O++){var Y=F[O];c.call(d,Y[1],Y[0])}},r}()}(),Ce=typeof window<"u"&&typeof document<"u"&&window.document===document,_e=f.g!==void 0&&f.g.Math===Math?f.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),bt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_e):function(s){return setTimeout(function(){return s(Date.now())},1e3/60)},ei=["top","right","bottom","left","width","height","size","weight"],ti=typeof MutationObserver<"u",ni=function(){function s(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(r,c){var d=!1,O=!1,F=0;function Y(){d&&(d=!1,r()),O&&i()}function o(){bt(Y)}function i(){var m=Date.now();if(d){if(m-F<2)return;O=!0}else d=!0,O=!1,setTimeout(o,20);F=m}return i}(this.refresh.bind(this))}return s.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},s.prototype.removeObserver=function(r){var c=this.observers_,d=c.indexOf(r);~d&&c.splice(d,1),!c.length&&this.connected_&&this.disconnect_()},s.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},s.prototype.updateObservers_=function(){var r=this.observers_.filter(function(c){return c.gatherActive(),c.hasActive()});return r.forEach(function(c){return c.broadcastActive()}),r.length>0},s.prototype.connect_=function(){Ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ti?(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)},s.prototype.disconnect_=function(){Ce&&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)},s.prototype.onTransitionEnd_=function(r){var c=r.propertyName,d=c===void 0?"":c;ei.some(function(O){return!!~d.indexOf(O)})&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null,s}(),wn=function(s,r){for(var c=0,d=Object.keys(r);c<d.length;c++){var O=d[c];Object.defineProperty(s,O,{value:r[O],enumerable:!1,writable:!1,configurable:!0})}return s},qe=function(s){return s&&s.ownerDocument&&s.ownerDocument.defaultView||_e},Sn=xt(0,0,0,0);function yt(s){return parseFloat(s)||0}function kn(s){for(var r=[],c=1;c<arguments.length;c++)r[c-1]=arguments[c];return r.reduce(function(d,O){return d+yt(s["border-"+O+"-width"])},0)}var ri=typeof SVGGraphicsElement<"u"?function(s){return s instanceof qe(s).SVGGraphicsElement}:function(s){return s instanceof qe(s).SVGElement&&typeof s.getBBox=="function"};function ii(s){return Ce?ri(s)?function(r){var c=r.getBBox();return xt(0,0,c.width,c.height)}(s):function(r){var c=r.clientWidth,d=r.clientHeight;if(!c&&!d)return Sn;var O=qe(r).getComputedStyle(r),F=function(T){for(var K={},W=0,U=["top","right","bottom","left"];W<U.length;W++){var M=U[W],L=T["padding-"+M];K[M]=yt(L)}return K}(O),Y=F.left+F.right,o=F.top+F.bottom,i=yt(O.width),m=yt(O.height);if(O.boxSizing==="border-box"&&(Math.round(i+Y)!==c&&(i-=kn(O,"left","right")+Y),Math.round(m+o)!==d&&(m-=kn(O,"top","bottom")+o)),!function(T){return T===qe(T).document.documentElement}(r)){var j=Math.round(i+Y)-c,E=Math.round(m+o)-d;Math.abs(j)!==1&&(i-=j),Math.abs(E)!==1&&(m-=E)}return xt(F.left,F.top,i,m)}(s):Sn}function xt(s,r,c,d){return{x:s,y:r,width:c,height:d}}var oi=function(){function s(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xt(0,0,0,0),this.target=r}return s.prototype.isActive=function(){var r=ii(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},s.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},s}(),si=function(s,r){var c,d,O,F,Y,o,i,m=(d=(c=r).x,O=c.y,F=c.width,Y=c.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype),wn(i,{x:d,y:O,width:F,height:Y,top:O,right:d+F,bottom:Y+O,left:d}),i);wn(this,{target:s,contentRect:m})},ai=function(){function s(r,c,d){if(this.activeObservations_=[],this.observations_=new me,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=c,this.callbackCtx_=d}return s.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)||(c.set(r,new oi(r)),this.controller_.addObserver(this),this.controller_.refresh())}},s.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)&&(c.delete(r),c.size||this.controller_.removeObserver(this))}},s.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},s.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(c){c.isActive()&&r.activeObservations_.push(c)})},s.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,c=this.activeObservations_.map(function(d){return new si(d.target,d.broadcastRect())});this.callback_.call(r,c,r),this.clearActive()}},s.prototype.clearActive=function(){this.activeObservations_.splice(0)},s.prototype.hasActive=function(){return this.activeObservations_.length>0},s}(),jn=typeof WeakMap<"u"?new WeakMap:new me,Tn=function s(r){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=ni.getInstance(),d=new ai(r,c,this);jn.set(this,d)};["observe","unobserve","disconnect"].forEach(function(s){Tn.prototype[s]=function(){var r;return(r=jn.get(this))[s].apply(r,arguments)}});const On=_e.ResizeObserver!==void 0?_e.ResizeObserver:Tn,Ge="Left",Be="Right",Ye="Up",Ae="Down",Xe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Lt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},En="mousemove",Cn="mouseup";function _n(s,r){if(r===0)return s;const c=Math.PI/180*r;return[s[0]*Math.cos(c)+s[1]*Math.sin(c),s[1]*Math.cos(c)-s[0]*Math.sin(c)]}function li(s){const{trackMouse:r}=s,c=b.useRef(Object.assign({},Lt)),d=b.useRef(Object.assign({},Xe)),O=b.useRef(Object.assign({},d.current));let F;for(F in O.current=Object.assign({},d.current),d.current=Object.assign(Object.assign({},Xe),s),Xe)d.current[F]===void 0&&(d.current[F]=Xe[F]);const[Y,o]=b.useMemo(()=>function(i,m){const j=M=>{const L="touches"in M;L&&M.touches.length>1||i((z,B)=>{B.trackMouse&&!L&&(document.addEventListener(En,E),document.addEventListener(Cn,K));const{clientX:H,clientY:Q}=L?M.touches[0]:M,se=_n([H,Q],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},z),Lt),{initial:se.slice(),xy:se,start:M.timeStamp||0})})},E=M=>{i((L,z)=>{const B="touches"in M;if(B&&M.touches.length>1)return L;if(M.timeStamp-L.start>z.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:H,clientY:Q}=B?M.touches[0]:M,[se,ye]=_n([H,Q],z.rotationAngle),ge=se-L.xy[0],fe=ye-L.xy[1],ie=Math.abs(ge),J=Math.abs(fe),De=(M.timeStamp||0)-L.start,ot=Math.sqrt(ie*ie+J*J)/(De||1),st=[ge/(De||1),fe/(De||1)],Me=function(at,Ze,lt,we){return at>Ze?lt>0?Be:Ge:we>0?Ae:Ye}(ie,J,ge,fe),We=typeof z.delta=="number"?z.delta:z.delta[Me.toLowerCase()]||Xe.delta;if(ie<We&&J<We&&!L.swiping)return L;const Re={absX:ie,absY:J,deltaX:ge,deltaY:fe,dir:Me,event:M,first:L.first,initial:L.initial,velocity:ot,vxvy:st};Re.first&&z.onSwipeStart&&z.onSwipeStart(Re),z.onSwiping&&z.onSwiping(Re);let Je=!1;return(z.onSwiping||z.onSwiped||z[`onSwiped${Me}`])&&(Je=!0),Je&&z.preventScrollOnSwipe&&z.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:Re,swiping:!0})})},T=M=>{i((L,z)=>{let B;if(L.swiping&&L.eventData){if(M.timeStamp-L.start<z.swipeDuration){B=Object.assign(Object.assign({},L.eventData),{event:M}),z.onSwiped&&z.onSwiped(B);const H=z[`onSwiped${B.dir}`];H&&H(B)}}else z.onTap&&z.onTap({event:M});return z.onTouchEndOrOnMouseUp&&z.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},L),Lt),{eventData:B})})},K=M=>{document.removeEventListener(En,E),document.removeEventListener(Cn,K),T(M)},W=(M,L)=>{let z=()=>{};if(M&&M.addEventListener){const B=Object.assign(Object.assign({},Xe.touchEventOptions),L.touchEventOptions),H=[["touchstart",j,B],["touchmove",E,Object.assign(Object.assign({},B),L.preventScrollOnSwipe?{passive:!1}:{})],["touchend",T,B]];H.forEach(([Q,se,ye])=>M.addEventListener(Q,se,ye)),z=()=>H.forEach(([Q,se])=>M.removeEventListener(Q,se))}return z},U={ref:M=>{M!==null&&i((L,z)=>{if(L.el===M)return L;const B={};return L.el&&L.el!==M&&L.cleanUpTouch&&(L.cleanUpTouch(),B.cleanUpTouch=void 0),z.trackTouch&&M&&(B.cleanUpTouch=W(M,z)),Object.assign(Object.assign(Object.assign({},L),{el:M}),B)})}};return m.trackMouse&&(U.onMouseDown=j),[U,W]}(i=>c.current=i(c.current,d.current),{trackMouse:r}),[r]);return c.current=function(i,m,j,E){return m.trackTouch&&i.el?i.cleanUpTouch?m.preventScrollOnSwipe!==j.preventScrollOnSwipe||m.touchEventOptions.passive!==j.touchEventOptions.passive?(i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)})):i:Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)}):(i.cleanUpTouch&&i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:void 0}))}(c.current,d.current,O.current,o),Y}var w=f(697);function nt(s){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nt(s)}function Rn(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function In(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Rn(Object(c),!0).forEach(function(d){ci(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Rn(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function ci(s,r,c){return(r=function(d){var O=function(F,Y){if(nt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,Y);if(nt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(d,"string");return nt(O)==="symbol"?O:String(O)}(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}var ui={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},zt=p().memo(function(s){var r=In(In({},ui),s),c=r.description,d=r.fullscreen,O=r.handleImageLoaded,F=r.isFullscreen,Y=r.onImageError,o=r.original,i=r.originalAlt,m=r.originalHeight,j=r.originalWidth,E=r.originalTitle,T=r.sizes,K=r.srcSet,W=r.loading,U=F&&d||o;return p().createElement(p().Fragment,null,p().createElement("img",{className:"image-gallery-image",src:U,alt:i,srcSet:K,height:m,width:j,sizes:T,title:E,onLoad:function(M){return O(M,o)},onError:Y,loading:W}),c&&p().createElement("span",{className:"image-gallery-description"},c))});zt.displayName="Item",zt.propTypes={description:w.string,fullscreen:w.string,handleImageLoaded:w.func.isRequired,isFullscreen:w.bool,onImageError:w.func.isRequired,original:w.string.isRequired,originalAlt:w.string,originalHeight:w.string,originalWidth:w.string,originalTitle:w.string,sizes:w.string,srcSet:w.string,loading:w.string};const di=zt;function rt(s){return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rt(s)}function Pn(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function Mn(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Pn(Object(c),!0).forEach(function(d){hi(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Pn(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function hi(s,r,c){return(r=function(d){var O=function(F,Y){if(rt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,Y);if(rt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(d,"string");return rt(O)==="symbol"?O:String(O)}(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}var fi={left:p().createElement("polyline",{points:"15 18 9 12 15 6"}),right:p().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:p().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:p().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:p().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:p().createElement(p().Fragment,null,p().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),p().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},pi={strokeWidth:1,viewBox:"0 0 24 24"},Dn=function(s){var r=Mn(Mn({},pi),s),c=r.strokeWidth,d=r.viewBox,O=r.icon;return p().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:d,fill:"none",stroke:"currentColor",strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"},fi[O])};Dn.propTypes={strokeWidth:w.number,viewBox:w.string,icon:(0,w.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const wt=Dn;var Nt=p().memo(function(s){var r=s.isFullscreen,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:c,"aria-label":"Open Fullscreen"},p().createElement(wt,{strokeWidth:2,icon:r?"minimize":"maximize"}))});Nt.displayName="Fullscreen",Nt.propTypes={isFullscreen:w.bool.isRequired,onClick:w.func.isRequired};const mi=Nt;var Ft=p().memo(function(s){var r=s.disabled,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:r,onClick:c,"aria-label":"Previous Slide"},p().createElement(wt,{icon:"left",viewBox:"6 0 12 24"}))});Ft.displayName="LeftNav",Ft.propTypes={disabled:w.bool.isRequired,onClick:w.func.isRequired};const gi=Ft;var Bt=p().memo(function(s){var r=s.disabled,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:r,onClick:c,"aria-label":"Next Slide"},p().createElement(wt,{icon:"right",viewBox:"6 0 12 24"}))});Bt.displayName="RightNav",Bt.propTypes={disabled:w.bool.isRequired,onClick:w.func.isRequired};const vi=Bt;var At=p().memo(function(s){var r=s.isPlaying,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:c,"aria-label":"Play or Pause Slideshow"},p().createElement(wt,{strokeWidth:2,icon:r?"pause":"play"}))});At.displayName="PlayPause",At.propTypes={isPlaying:w.bool.isRequired,onClick:w.func.isRequired};const bi=At;function it(s){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},it(s)}function Wt(){return Wt=Object.assign?Object.assign.bind():function(s){for(var r=1;r<arguments.length;r++){var c=arguments[r];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(s[d]=c[d])}return s},Wt.apply(this,arguments)}function Ln(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function zn(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Ln(Object(c),!0).forEach(function(d){yi(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Ln(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function yi(s,r,c){return(r=function(d){var O=function(F,Y){if(it(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,Y);if(it(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(d,"string");return it(O)==="symbol"?O:String(O)}(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}var xi={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},Nn=function(s){var r=zn(zn({},xi),s),c=r.children,d=r.className,O=li({delta:r.delta,onSwiping:r.onSwiping,onSwiped:r.onSwiped});return p().createElement("div",Wt({},O,{className:d}),c)};Nn.propTypes={children:w.node.isRequired,className:w.string,delta:w.number,onSwiped:w.func,onSwiping:w.func};const Fn=Nn;function Qe(s){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qe(s)}function Bn(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function An(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Bn(Object(c),!0).forEach(function(d){Wn(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Bn(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function wi(s,r){for(var c=0;c<r.length;c++){var d=r[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,$n(d.key),d)}}function $t(s,r){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c},$t(s,r)}function Si(s,r){if(r&&(Qe(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(s)}function ae(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function St(s){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},St(s)}function Wn(s,r,c){return(r=$n(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}function $n(s){var r=function(c,d){if(Qe(c)!=="object"||c===null)return c;var O=c[Symbol.toPrimitive];if(O!==void 0){var F=O.call(c,d);if(Qe(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(s,"string");return Qe(r)==="symbol"?r:String(r)}var Kn=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ki=(0,w.arrayOf)((0,w.shape)({srcSet:w.string,media:w.string}));function Un(s){var r=parseInt(s.keyCode||s.which||0,10);return r===66||r===62}var Kt=function(s){(function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&$t(o,i)})(Y,s);var r,c,d,O,F=(d=Y,O=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 o,i=St(d);if(O){var m=St(this).constructor;o=Reflect.construct(i,arguments,m)}else o=i.apply(this,arguments);return Si(this,o)});function Y(o){var i;return function(m,j){if(!(m instanceof j))throw new TypeError("Cannot call a class as a function")}(this,Y),Wn(ae(i=F.call(this,o)),"onBulletClick",function(m,j){var E=i.props,T=E.onBulletClick,K=E.items,W=i.state.currentIndex;m.target.blur(),W!==j&&(K.length===2?i.slideToIndexWithStyleReset(j,m):i.slideToIndex(j,m)),T&&T(m,j)}),i.state={currentIndex:o.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(o.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},i.loadedImages={},i.imageGallery=p().createRef(),i.thumbnailsWrapper=p().createRef(),i.thumbnails=p().createRef(),i.imageGallerySlideWrapper=p().createRef(),i.handleImageLoaded=i.handleImageLoaded.bind(ae(i)),i.handleKeyDown=i.handleKeyDown.bind(ae(i)),i.handleMouseDown=i.handleMouseDown.bind(ae(i)),i.handleResize=i.handleResize.bind(ae(i)),i.handleTouchMove=i.handleTouchMove.bind(ae(i)),i.handleOnSwiped=i.handleOnSwiped.bind(ae(i)),i.handleScreenChange=i.handleScreenChange.bind(ae(i)),i.handleSwiping=i.handleSwiping.bind(ae(i)),i.handleThumbnailSwiping=i.handleThumbnailSwiping.bind(ae(i)),i.handleOnThumbnailSwiped=i.handleOnThumbnailSwiped.bind(ae(i)),i.onThumbnailMouseLeave=i.onThumbnailMouseLeave.bind(ae(i)),i.handleImageError=i.handleImageError.bind(ae(i)),i.pauseOrPlay=i.pauseOrPlay.bind(ae(i)),i.renderThumbInner=i.renderThumbInner.bind(ae(i)),i.renderItem=i.renderItem.bind(ae(i)),i.slideLeft=i.slideLeft.bind(ae(i)),i.slideRight=i.slideRight.bind(ae(i)),i.toggleFullScreen=i.toggleFullScreen.bind(ae(i)),i.togglePlay=i.togglePlay.bind(ae(i)),i.unthrottledSlideToIndex=i.slideToIndex,i.slideToIndex=be(i.unthrottledSlideToIndex,o.slideDuration,{trailing:!1}),o.lazyLoad&&(i.lazyLoaded=[]),i}return r=Y,c=[{key:"componentDidMount",value:function(){var o=this.props,i=o.autoPlay,m=o.useWindowKeyDown;i&&this.play(),m?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(o,i){var m=this.props,j=m.items,E=m.lazyLoad,T=m.slideDuration,K=m.slideInterval,W=m.startIndex,U=m.thumbnailPosition,M=m.showThumbnails,L=m.useWindowKeyDown,z=this.state,B=z.currentIndex,H=z.isPlaying,Q=o.items.length!==j.length,se=!oe()(o.items,j),ye=o.startIndex!==W,ge=o.thumbnailPosition!==U,fe=o.showThumbnails!==M;K===o.slideInterval&&T===o.slideDuration||H&&(this.pause(),this.play()),ge&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),fe&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),fe&&!M&&this.removeThumbnailsResizeObserver(),(Q||fe)&&this.handleResize(),i.currentIndex!==B&&this.slideThumbnailBar(),o.slideDuration!==T&&(this.slideToIndex=be(this.unthrottledSlideToIndex,T,{trailing:!1})),!E||o.lazyLoad&&!se||(this.lazyLoaded=[]),L!==o.useWindowKeyDown&&(L?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(ye||se)&&this.setState({currentIndex:W,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var o=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),o?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var o=this,i=this.state,m=i.currentIndex,j=i.isTransitioning,E=this.props,T=E.onSlide,K=E.slideDuration;this.transitionTimer=window.setTimeout(function(){j&&(o.setState({isTransitioning:!j,isSwipingThumbnail:!1}),T&&T(m))},K+50)}},{key:"onThumbnailClick",value:function(o,i){var m=this.props,j=m.onThumbnailClick,E=m.items,T=this.state.currentIndex;o.target.parentNode.parentNode.blur(),T!==i&&(E.length===2?this.slideToIndexWithStyleReset(i,o):this.slideToIndex(i,o)),j&&j(o,i)}},{key:"onThumbnailMouseOver",value:function(o,i){var m=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){m.slideToIndex(i),m.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var o=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,o&&this.play()}}},{key:"setThumbsTranslate",value:function(o){this.setState({thumbsTranslate:o})}},{key:"setModalFullscreen",value:function(o){var i=this.props.onScreenChange;this.setState({modalFullscreen:o}),i&&i(o)}},{key:"getThumbsTranslate",value:function(o){var i,m=this.props,j=m.disableThumbnailScroll,E=m.items,T=this.state,K=T.thumbnailsWrapperWidth,W=T.thumbnailsWrapperHeight,U=this.thumbnails&&this.thumbnails.current;if(j)return 0;if(U){if(this.isThumbnailVertical()){if(U.scrollHeight<=W)return 0;i=U.scrollHeight-W}else{if(U.scrollWidth<=K||K<=0)return 0;i=U.scrollWidth-K}return o*(i/(E.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(o){switch(o){case"left":o=" ".concat("image-gallery-thumbnails-left");break;case"right":o=" ".concat("image-gallery-thumbnails-right");break;case"bottom":o=" ".concat("image-gallery-thumbnails-bottom");break;case"top":o=" ".concat("image-gallery-thumbnails-top")}return o}},{key:"getAlignmentClassName",value:function(o){var i=this.state.currentIndex,m=this.props,j=m.infinite,E=m.items,T="",K="image-gallery-left",W="image-gallery-right";switch(o){case i-1:T=" ".concat(K);break;case i:T=" ".concat("image-gallery-center");break;case i+1:T=" ".concat(W)}return E.length>=3&&j&&(o===0&&i===E.length-1?T=" ".concat(W):o===E.length-1&&i===0&&(T=" ".concat(K))),T}},{key:"getTranslateXForTwoSlide",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.previousIndex,T=m!==E,K=o===0&&E===0,W=o===1&&E===1,U=o===0&&m===1,M=o===1&&m===0,L=j===0,z=-100*m+100*o+j;return j>0?this.direction="left":j<0&&(this.direction="right"),M&&j>0&&(z=-100+j),U&&j<0&&(z=100+j),T?K&&L&&this.direction==="left"?z=100:W&&L&&this.direction==="right"&&(z=-100):(M&&L&&this.direction==="left"&&(z=-100),U&&L&&this.direction==="right"&&(z=100)),z}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.slideStyle,T=this.props,K=T.infinite,W=T.items,U=T.useTranslate3D,M=T.isRTL,L=-100*m,z=W.length-1,B=(L+100*o)*(M?-1:1)+j;K&&W.length>2&&(m===0&&o===z?B=-100*(M?-1:1)+j:m===z&&o===0&&(B=100*(M?-1:1)+j)),K&&W.length===2&&(B=this.getTranslateXForTwoSlide(o));var H="translate(".concat(B,"%, 0)");return U&&(H="translate3d(".concat(B,"%, 0, 0)")),An({display:this.isSlideVisible(o)?"inherit":"none",WebkitTransform:H,MozTransform:H,msTransform:H,OTransform:H,transform:H},E)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var o,i=this.props,m=i.useTranslate3D,j=i.isRTL,E=this.state,T=E.thumbsTranslate,K=E.thumbsStyle,W=j?-1*T:T;return this.isThumbnailVertical()?(o="translate(0, ".concat(T,"px)"),m&&(o="translate3d(0, ".concat(T,"px, 0)"))):(o="translate(".concat(W,"px, 0)"),m&&(o="translate3d(".concat(W,"px, 0, 0)"))),An({WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,transform:o},K)}},{key:"getSlideItems",value:function(){var o=this,i=this.state.currentIndex,m=this.props,j=m.items,E=m.slideOnThumbnailOver,T=m.onClick,K=m.lazyLoad,W=m.onTouchMove,U=m.onTouchEnd,M=m.onTouchStart,L=m.onMouseOver,z=m.onMouseLeave,B=m.renderItem,H=m.renderThumbInner,Q=m.showThumbnails,se=m.showBullets,ye=[],ge=[],fe=[];return j.forEach(function(ie,J){var De=o.getAlignmentClassName(J),ot=ie.originalClass?" ".concat(ie.originalClass):"",st=ie.thumbnailClass?" ".concat(ie.thumbnailClass):"",Me=ie.renderItem||B||o.renderItem,We=ie.renderThumbInner||H||o.renderThumbInner,Re=!K||De||o.lazyLoaded[J];Re&&K&&!o.lazyLoaded[J]&&(o.lazyLoaded[J]=!0);var Je=o.getSlideStyle(J),at=p().createElement("div",{"aria-label":"Go to Slide ".concat(J+1),key:"slide-".concat(J),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(ot),style:Je,onClick:T,onKeyUp:o.handleSlideKeyUp,onTouchMove:W,onTouchEnd:U,onTouchStart:M,onMouseOver:L,onFocus:L,onMouseLeave:z,role:"button"},Re?Me(ie):p().createElement("div",{style:{height:"100%"}}));if(ye.push(at),Q&&ie.thumbnail){var Ze=v("image-gallery-thumbnail",st,{active:i===J});ge.push(p().createElement("button",{key:"thumbnail-".concat(J),type:"button",tabIndex:"0","aria-pressed":i===J?"true":"false","aria-label":"Go to Slide ".concat(J+1),className:Ze,onMouseLeave:E?o.onThumbnailMouseLeave:null,onMouseOver:function(we){return o.handleThumbnailMouseOver(we,J)},onFocus:function(we){return o.handleThumbnailMouseOver(we,J)},onKeyUp:function(we){return o.handleThumbnailKeyUp(we,J)},onClick:function(we){return o.onThumbnailClick(we,J)}},We(ie)))}if(se){var lt=v("image-gallery-bullet",ie.bulletClass,{active:i===J});fe.push(p().createElement("button",{type:"button",key:"bullet-".concat(J),className:lt,onClick:function(we){return o.onBulletClick(we,J)},"aria-pressed":i===J?"true":"false","aria-label":"Go to Slide ".concat(J+1)}))}}),{slides:ye,thumbnails:ge,bullets:fe}}},{key:"ignoreIsTransitioning",value:function(){var o=this.props.items,i=this.state,m=i.previousIndex,j=i.currentIndex,E=o.length-1;return Math.abs(m-j)>1&&!(m===0&&j===E)&&!(m===E&&j===0)}},{key:"isFirstOrLastSlide",value:function(o){return o===this.props.items.length-1||o===0}},{key:"slideIsTransitioning",value:function(o){var i=this.state,m=i.isTransitioning,j=i.previousIndex,E=i.currentIndex;return m&&!(o===j||o===E)}},{key:"isSlideVisible",value:function(o){return!this.slideIsTransitioning(o)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(o)}},{key:"slideThumbnailBar",value:function(){var o=this.state,i=o.currentIndex,m=o.isSwipingThumbnail,j=-this.getThumbsTranslate(i);m||(i===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:j,thumbsSwipedTranslate:j}))}},{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(o){var i=o.event,m=o.absX,j=o.dir,E=this.props,T=E.disableSwipe,K=E.stopPropagation,W=this.state,U=W.galleryWidth,M=W.isTransitioning,L=W.swipingUpDown,z=W.swipingLeftRight;if(j!==Ye&&j!==Ae&&!L||z){if(j!==Ge&&j!==Be||z||this.setState({swipingLeftRight:!0}),!T){var B=this.props.swipingTransitionDuration;if(K&&i.preventDefault(),M)this.setState({currentSlideOffset:0});else{var H=j===Be?1:-1,Q=m/U*100;Math.abs(Q)>=100&&(Q=100);var se={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:H*Q,slideStyle:se})}}}else L||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(o){var i=o.event,m=o.absX,j=o.absY,E=o.dir,T=this.props,K=T.stopPropagation,W=T.swipingThumbnailTransitionDuration,U=this.state,M=U.thumbsSwipedTranslate,L=U.thumbnailsWrapperHeight,z=U.thumbnailsWrapperWidth,B=U.swipingUpDown,H=U.swipingLeftRight;if(this.isThumbnailVertical()){if((E===Ge||E===Be||H)&&!B)return void(H||this.setState({swipingLeftRight:!0}));E!==Ye&&E!==Ae||B||this.setState({swipingUpDown:!0})}else{if((E===Ye||E===Ae||B)&&!H)return void(B||this.setState({swipingUpDown:!0}));E!==Ge&&E!==Be||H||this.setState({swipingLeftRight:!0})}var Q,se,ye,ge,fe,ie=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(Q=M+(E===Ae?j:-j),se=ie.scrollHeight-L+20,ye=Math.abs(Q)>se,ge=Q>20,fe=ie.scrollHeight<=L):(Q=M+(E===Be?m:-m),se=ie.scrollWidth-z+20,ye=Math.abs(Q)>se,ge=Q>20,fe=ie.scrollWidth<=z),!fe&&(E!==Ge&&E!==Ye||!ye)&&(E!==Be&&E!==Ae||!ge)){K&&i.stopPropagation();var J={transition:"transform ".concat(W,"ms ease-out")};this.setState({thumbsTranslate:Q,thumbsStyle:J})}}},{key:"handleOnThumbnailSwiped",value:function(){var o=this.state.thumbsTranslate,i=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:o,thumbsStyle:{transition:"all ".concat(i,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var o=this.state.currentSlideOffset,i=this.props.swipeThreshold;return Math.abs(o)>i}},{key:"resetSwipingDirection",value:function(){var o=this.state,i=o.swipingUpDown,m=o.swipingLeftRight;i&&this.setState({swipingUpDown:!1}),m&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(o){var i=o.event,m=o.dir,j=o.velocity,E=this.props,T=E.disableSwipe,K=E.stopPropagation,W=E.flickThreshold;if(!T){var U=this.props.isRTL;K&&i.stopPropagation(),this.resetSwipingDirection();var M=(m===Ge?1:-1)*(U?-1:1),L=j>W&&!(m===Ye||m===Ae);this.handleOnSwipedTo(M,L)}}},{key:"handleOnSwipedTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=j;!this.sufficientSwipe()&&!i||E||(T+=o),(o===-1&&!this.canSlideLeft()||o===1&&!this.canSlideRight())&&(T=j),this.unthrottledSlideToIndex(T)}},{key:"handleTouchMove",value:function(o){this.state.swipingLeftRight&&o.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(o){var i=this.props,m=i.disableKeyDown,j=i.useBrowserFullscreen,E=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!m)switch(parseInt(o.keyCode||o.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(o);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(o);break;case 27:E&&!j&&this.exitFullScreen()}}},{key:"handleImageError",value:function(o){var i=this.props.onErrorImageURL;i&&o.target.src.indexOf(i)===-1&&(o.target.src=i)}},{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 o=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(o)))}},{key:"initSlideWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeSlideWrapperObserver=new On(te(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperWidth:j.contentRect.width},i.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(o.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeThumbnailWrapperObserver=new On(te(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperHeight:j.contentRect.height},i.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(o.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 o=this.props,i=o.onScreenChange,m=o.useBrowserFullscreen,j=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,E=this.imageGallery.current===j;i&&i(E),m&&this.setState({isFullscreen:E})}},{key:"slideToIndex",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props,K=T.items,W=T.slideDuration,U=T.onBeforeSlide;if(!E){i&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=K.length-1,L=o;o<0?L=M:o>M&&(L=0),U&&L!==j&&U(L),this.setState({previousIndex:j,currentIndex:L,isTransitioning:L!==j,currentSlideOffset:0,slideStyle:{transition:"all ".concat(W,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"right":"left")}},{key:"slideRight",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"left":"right")}},{key:"slideTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props.items,K=j+(i==="left"?-1:1);E||(T.length===2?this.slideToIndexWithStyleReset(K,o):this.slideToIndex(K,o))}},{key:"slideToIndexWithStyleReset",value:function(o,i){var m=this,j=this.state,E=j.currentIndex,T=j.currentSlideOffset;this.setState({currentSlideOffset:T+(E>o?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return m.slideToIndex(o,i)},25)})}},{key:"handleThumbnailMouseOver",value:function(o,i){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(o,i)}},{key:"handleThumbnailKeyUp",value:function(o,i){Un(o)&&this.onThumbnailClick(o,i)}},{key:"handleSlideKeyUp",value:function(o){Un(o)&&(0,this.props.onClick)(o)}},{key:"isThumbnailVertical",value:function(){var o=this.props.thumbnailPosition;return o==="left"||o==="right"}},{key:"addScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.addEventListener(i,o.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.removeEventListener(i,o.handleScreenChange)})}},{key:"fullScreen",value:function(){var o=this.props.useBrowserFullscreen,i=this.imageGallery.current;o?i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var o=this.state.isFullscreen,i=this.props.useBrowserFullscreen;o&&(i?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 o=this.props.infinite,i=this.state.currentIndex;o||this.canSlideRight()?this.slideToIndex(i+1):this.pause()}},{key:"play",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props,m=i.onPlay,j=i.slideInterval,E=i.slideDuration,T=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(j,E)),m&&o&&m(T))}},{key:"pause",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props.onPause,m=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),i&&o&&i(m))}},{key:"isImageLoaded",value:function(o){return!!this.loadedImages[o.original]||(this.loadedImages[o.original]=!0,!1)}},{key:"handleImageLoaded",value:function(o,i){var m=this.props.onImageLoad;!this.loadedImages[i]&&m&&(this.loadedImages[i]=!0,m(o))}},{key:"renderItem",value:function(o){var i=this.state.isFullscreen,m=this.props.onImageError||this.handleImageError;return p().createElement(di,{description:o.description,fullscreen:o.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:i,onImageError:m,original:o.original,originalAlt:o.originalAlt,originalHeight:o.originalHeight,originalWidth:o.originalWidth,originalTitle:o.originalTitle,sizes:o.sizes,loading:o.loading,srcSet:o.srcSet})}},{key:"renderThumbInner",value:function(o){var i=this.props.onThumbnailError||this.handleImageError;return p().createElement("span",{className:"image-gallery-thumbnail-inner"},p().createElement("img",{className:"image-gallery-thumbnail-image",src:o.thumbnail,height:o.thumbnailHeight,width:o.thumbnailWidth,alt:o.thumbnailAlt,title:o.thumbnailTitle,loading:o.thumbnailLoading,onError:i}),o.thumbnailLabel&&p().createElement("div",{className:"image-gallery-thumbnail-label"},o.thumbnailLabel))}},{key:"render",value:function(){var o=this.state,i=o.currentIndex,m=o.isFullscreen,j=o.modalFullscreen,E=o.isPlaying,T=this.props,K=T.additionalClass,W=T.disableThumbnailSwipe,U=T.indexSeparator,M=T.isRTL,L=T.items,z=T.thumbnailPosition,B=T.renderFullscreenButton,H=T.renderCustomControls,Q=T.renderLeftNav,se=T.renderRightNav,ye=T.showBullets,ge=T.showFullscreenButton,fe=T.showIndex,ie=T.showThumbnails,J=T.showNav,De=T.showPlayButton,ot=T.renderPlayPauseButton,st=this.getThumbnailStyle(),Me=this.getSlideItems(),We=Me.slides,Re=Me.thumbnails,Je=Me.bullets,at=v("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(z),{"image-gallery-rtl":M}),Ze=p().createElement("div",{ref:this.imageGallerySlideWrapper,className:at},H&&H(),this.canSlide()?p().createElement(p().Fragment,null,J&&p().createElement(p().Fragment,null,Q(this.slideLeft,!this.canSlideLeft()),se(this.slideRight,!this.canSlideRight())),p().createElement(Fn,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},p().createElement("div",{className:"image-gallery-slides"},We))):p().createElement("div",{className:"image-gallery-slides"},We),De&&ot(this.togglePlay,E),ye&&p().createElement("div",{className:"image-gallery-bullets"},p().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Je)),ge&&B(this.toggleFullScreen,m),fe&&p().createElement("div",{className:"image-gallery-index"},p().createElement("span",{className:"image-gallery-index-current"},i+1),p().createElement("span",{className:"image-gallery-index-separator"},U),p().createElement("span",{className:"image-gallery-index-total"},L.length))),lt=v("image-gallery",K,{"fullscreen-modal":j}),we=v("image-gallery-content",this.getThumbnailPositionClassName(z),{fullscreen:m}),Ti=v("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(z),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!W},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!W});return p().createElement("div",{ref:this.imageGallery,className:lt,"aria-live":"polite"},p().createElement("div",{className:we},(z==="bottom"||z==="right")&&Ze,ie&&Re.length>0?p().createElement(Fn,{className:Ti,delta:0,onSwiping:!W&&this.handleThumbnailSwiping,onSwiped:!W&&this.handleOnThumbnailSwiped},p().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},p().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:st,"aria-label":"Thumbnail Navigation"},Re))):null,(z==="top"||z==="left")&&Ze))}}],c&&wi(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),Y}(p().Component);Kt.propTypes={flickThreshold:w.number,items:(0,w.arrayOf)((0,w.shape)({bulletClass:w.string,bulletOnClick:w.func,description:w.string,original:w.string,originalHeight:w.number,originalWidth:w.number,loading:w.string,thumbnailHeight:w.number,thumbnailWidth:w.number,thumbnailLoading:w.string,fullscreen:w.string,originalAlt:w.string,originalTitle:w.string,thumbnail:w.string,thumbnailAlt:w.string,thumbnailLabel:w.string,thumbnailTitle:w.string,originalClass:w.string,thumbnailClass:w.string,renderItem:w.func,renderThumbInner:w.func,imageSet:ki,srcSet:w.string,sizes:w.string})).isRequired,showNav:w.bool,autoPlay:w.bool,lazyLoad:w.bool,infinite:w.bool,showIndex:w.bool,showBullets:w.bool,showThumbnails:w.bool,showPlayButton:w.bool,showFullscreenButton:w.bool,disableThumbnailScroll:w.bool,disableKeyDown:w.bool,disableSwipe:w.bool,disableThumbnailSwipe:w.bool,useBrowserFullscreen:w.bool,onErrorImageURL:w.string,indexSeparator:w.string,thumbnailPosition:(0,w.oneOf)(["top","bottom","left","right"]),startIndex:w.number,slideDuration:w.number,slideInterval:w.number,slideOnThumbnailOver:w.bool,swipeThreshold:w.number,swipingTransitionDuration:w.number,swipingThumbnailTransitionDuration:w.number,onSlide:w.func,onBeforeSlide:w.func,onScreenChange:w.func,onPause:w.func,onPlay:w.func,onClick:w.func,onImageLoad:w.func,onImageError:w.func,onTouchMove:w.func,onTouchEnd:w.func,onTouchStart:w.func,onMouseOver:w.func,onMouseLeave:w.func,onBulletClick:w.func,onThumbnailError:w.func,onThumbnailClick:w.func,renderCustomControls:w.func,renderLeftNav:w.func,renderRightNav:w.func,renderPlayPauseButton:w.func,renderFullscreenButton:w.func,renderItem:w.func,renderThumbInner:w.func,stopPropagation:w.bool,additionalClass:w.string,useTranslate3D:w.bool,isRTL:w.bool,useWindowKeyDown:w.bool},Kt.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(s,r){return p().createElement(gi,{onClick:s,disabled:r})},renderRightNav:function(s,r){return p().createElement(vi,{onClick:s,disabled:r})},renderPlayPauseButton:function(s,r){return p().createElement(bi,{onClick:s,isPlaying:r})},renderFullscreenButton:function(s,r){return p().createElement(mi,{onClick:s,isFullscreen:r})},useWindowKeyDown:!0};const ji=Kt})(),g})())})(Er);var Wo=Er.exports;const $o=hr(Wo);function Ko(){var e=new Map;function n(a){var l=a.root,h=a.rootMargin,f=a.threshold,g=e.get(l);g||(g=new Map,e.set(l,g));var u=JSON.stringify({rootMargin:h,threshold:f}),v=g.get(u);if(!v){var b=new Map,p=new IntersectionObserver(function(S){S.forEach(function(k){var x=b.get(k.target);x==null||x(k)})},{root:l,rootMargin:h,threshold:f});v={observer:p,entryCallbacks:b},g.set(u,v)}return{observe:function(k,x){var y,C;(y=v)==null||y.entryCallbacks.set(k,x),(C=v)==null||C.observer.observe(k)},unobserve:function(k){var x,y;(x=v)==null||x.entryCallbacks.delete(k),(y=v)==null||y.observer.unobserve(k)}}}return{getObserver:n}}var Uo="0px",Ho=[0],Vo=Ko();function qo(e){var n,a,l=(n=e==null?void 0:e.rootMargin)!=null?n:Uo,h=(a=e==null?void 0:e.threshold)!=null?a:Ho,f=I.useRef(null),g=I.useRef(null),u=I.useRef(null),v=I.useState(),b=v[0],p=v[1],S=I.useCallback(function(){var C=f.current;if(!C){p(void 0);return}var R=Vo.getObserver({root:g.current,rootMargin:l,threshold:h});R.observe(C,function(_){p(_)}),u.current=R},[l,h]),k=I.useCallback(function(){var C=u.current,R=f.current;R&&(C==null||C.unobserve(R)),u.current=null},[]),x=I.useCallback(function(C){k(),f.current=C,S()},[S,k]),y=I.useCallback(function(C){k(),g.current=C,S()},[S,k]);return[x,{entry:b,rootRef:y}]}function nn(){return nn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},nn.apply(this,arguments)}function Go(e){var n,a=qo(e),l=a[0],h=a[1],f=!!((n=h.entry)!=null&&n.isIntersecting),g=I.useState(f),u=g[0],v=g[1];return f&&!u&&v(!0),[l,nn({},h,{isVisible:f,wasEverVisible:u})]}var Yo=100;function Xo(e){var n=e.loading,a=e.hasNextPage,l=e.onLoadMore,h=e.rootMargin,f=e.disabled,g=e.delayInMs,u=g===void 0?Yo:g,v=Go({rootMargin:h}),b=v[0],p=v[1],S=p.rootRef,k=p.isVisible,x=!f&&!n&&k&&a;return I.useEffect(function(){if(x){var y=setTimeout(function(){l()},u);return function(){clearTimeout(y)}}},[l,x,u]),[b,{rootRef:S}]}const Qo={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"/>'},Jo={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>'};var Ht=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Vt(e,n,a,l){e.addEventListener?e.addEventListener(n,a,l):e.attachEvent&&e.attachEvent("on".concat(n),function(){a(window.event)})}function Cr(e,n){for(var a=n.slice(0,n.length-1),l=0;l<a.length;l++)a[l]=e[a[l].toLowerCase()];return a}function _r(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var n=e.split(","),a=n.lastIndexOf("");a>=0;)n[a-1]+=",",n.splice(a,1),a=n.lastIndexOf("");return n}function Zo(e,n){for(var a=e.length>=n.length?e:n,l=e.length>=n.length?n:e,h=!0,f=0;f<a.length;f++)l.indexOf(a[f])===-1&&(h=!1);return h}var hn={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,"-":Ht?173:189,"=":Ht?61:187,";":Ht?59:186,"'":222,"[":219,"]":221,"\\":220},Fe={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},rn={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},ue={};for(var jt=1;jt<20;jt++)hn["f".concat(jt)]=111+jt;var ne=[],rr=!1,Rr="all",Ir=[],Mt=function(n){return hn[n.toLowerCase()]||Fe[n.toLowerCase()]||n.toUpperCase().charCodeAt(0)};function Pr(e){Rr=e||"all"}function pt(){return Rr||"all"}function es(){return ne.slice(0)}function ts(e){var n=e.target||e.srcElement,a=n.tagName,l=!0;return(n.isContentEditable||(a==="INPUT"||a==="TEXTAREA"||a==="SELECT")&&!n.readOnly)&&(l=!1),l}function ns(e){return typeof e=="string"&&(e=Mt(e)),ne.indexOf(e)!==-1}function rs(e,n){var a,l;e||(e=pt());for(var h in ue)if(Object.prototype.hasOwnProperty.call(ue,h))for(a=ue[h],l=0;l<a.length;)a[l].scope===e?a.splice(l,1):l++;pt()===e&&Pr(n||"all")}function is(e){var n=e.keyCode||e.which||e.charCode,a=ne.indexOf(n);if(a>=0&&ne.splice(a,1),e.key&&e.key.toLowerCase()==="meta"&&ne.splice(0,ne.length),(n===93||n===224)&&(n=91),n in pe){pe[n]=!1;for(var l in Fe)Fe[l]===n&&(Se[l]=!1)}}function os(e){if(typeof e>"u")Object.keys(ue).forEach(function(g){return delete ue[g]});else if(Array.isArray(e))e.forEach(function(g){g.key&&qt(g)});else if(typeof e=="object")e.key&&qt(e);else if(typeof e=="string"){for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];var h=a[0],f=a[1];typeof h=="function"&&(f=h,h=""),qt({key:e,scope:h,method:f,splitKey:"+"})}}var qt=function(n){var a=n.key,l=n.scope,h=n.method,f=n.splitKey,g=f===void 0?"+":f,u=_r(a);u.forEach(function(v){var b=v.split(g),p=b.length,S=b[p-1],k=S==="*"?"*":Mt(S);if(ue[k]){l||(l=pt());var x=p>1?Cr(Fe,b):[];ue[k]=ue[k].filter(function(y){var C=h?y.method===h:!0;return!(C&&y.scope===l&&Zo(y.mods,x))})}})};function ir(e,n,a,l){if(n.element===l){var h;if(n.scope===a||n.scope==="all"){h=n.mods.length>0;for(var f in pe)Object.prototype.hasOwnProperty.call(pe,f)&&(!pe[f]&&n.mods.indexOf(+f)>-1||pe[f]&&n.mods.indexOf(+f)===-1)&&(h=!1);(n.mods.length===0&&!pe[16]&&!pe[18]&&!pe[17]&&!pe[91]||h||n.shortcut==="*")&&n.method(e,n)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function or(e,n){var a=ue["*"],l=e.keyCode||e.which||e.charCode;if(Se.filter.call(this,e)){if((l===93||l===224)&&(l=91),ne.indexOf(l)===-1&&l!==229&&ne.push(l),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(y){var C=rn[y];e[y]&&ne.indexOf(C)===-1?ne.push(C):!e[y]&&ne.indexOf(C)>-1?ne.splice(ne.indexOf(C),1):y==="metaKey"&&e[y]&&ne.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ne=ne.slice(ne.indexOf(C))))}),l in pe){pe[l]=!0;for(var h in Fe)Fe[h]===l&&(Se[h]=!0);if(!a)return}for(var f in pe)Object.prototype.hasOwnProperty.call(pe,f)&&(pe[f]=e[rn[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ne.indexOf(17)===-1&&ne.push(17),ne.indexOf(18)===-1&&ne.push(18),pe[17]=!0,pe[18]=!0);var g=pt();if(a)for(var u=0;u<a.length;u++)a[u].scope===g&&(e.type==="keydown"&&a[u].keydown||e.type==="keyup"&&a[u].keyup)&&ir(e,a[u],g,n);if(l in ue){for(var v=0;v<ue[l].length;v++)if((e.type==="keydown"&&ue[l][v].keydown||e.type==="keyup"&&ue[l][v].keyup)&&ue[l][v].key){for(var b=ue[l][v],p=b.splitKey,S=b.key.split(p),k=[],x=0;x<S.length;x++)k.push(Mt(S[x]));k.sort().join("")===ne.sort().join("")&&ir(e,b,g,n)}}}}function ss(e){return Ir.indexOf(e)>-1}function Se(e,n,a){ne=[];var l=_r(e),h=[],f="all",g=document,u=0,v=!1,b=!0,p="+",S=!1;for(a===void 0&&typeof n=="function"&&(a=n),Object.prototype.toString.call(n)==="[object Object]"&&(n.scope&&(f=n.scope),n.element&&(g=n.element),n.keyup&&(v=n.keyup),n.keydown!==void 0&&(b=n.keydown),n.capture!==void 0&&(S=n.capture),typeof n.splitKey=="string"&&(p=n.splitKey)),typeof n=="string"&&(f=n);u<l.length;u++)e=l[u].split(p),h=[],e.length>1&&(h=Cr(Fe,e)),e=e[e.length-1],e=e==="*"?"*":Mt(e),e in ue||(ue[e]=[]),ue[e].push({keyup:v,keydown:b,scope:f,mods:h,shortcut:l[u],method:a,key:l[u],splitKey:p,element:g});typeof g<"u"&&!ss(g)&&window&&(Ir.push(g),Vt(g,"keydown",function(k){or(k,g)},S),rr||(rr=!0,Vt(window,"focus",function(){ne=[]},S)),Vt(g,"keyup",function(k){or(k,g),is(k)},S))}function as(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ue).forEach(function(a){var l=ue[a].find(function(h){return h.scope===n&&h.shortcut===e});l&&l.method&&l.method()})}var Gt={setScope:Pr,getScope:pt,deleteScope:rs,getPressedKeyCodes:es,isPressed:ns,filter:ts,trigger:as,unbind:os,keyMap:hn,modifier:Fe,modifierMap:rn};for(var Yt in Gt)Object.prototype.hasOwnProperty.call(Gt,Yt)&&(Se[Yt]=Gt[Yt]);if(typeof window<"u"){var ls=window.hotkeys;Se.noConflict=function(e){return e&&window.hotkeys===Se&&(window.hotkeys=ls),Se},window.hotkeys=Se}Se.filter=function(){return!0};var Mr=function(n,a){var l=n.target,h=l&&l.tagName;return!!(h&&a&&a.includes(h))},cs=function(n){return Mr(n,["INPUT","TEXTAREA","SELECT"])};function us(e,n,a,l){a instanceof Array&&(l=a,a=void 0);var h=a||{},f=h.enableOnTags,g=h.filter,u=h.keyup,v=h.keydown,b=h.filterPreventDefault,p=b===void 0?!0:b,S=h.enabled,k=S===void 0?!0:S,x=h.enableOnContentEditable,y=x===void 0?!1:x,C=I.useRef(null),R=I.useCallback(function(_,A){var D,$;return g&&!g(_)?!p:cs(_)&&!Mr(_,f)||(D=_.target)!=null&&D.isContentEditable&&!y?!0:C.current===null||document.activeElement===C.current||($=C.current)!=null&&$.contains(document.activeElement)?(n(_,A),!0):!1},l?[C,f,g].concat(l):[C,f,g]);return I.useEffect(function(){if(!k){Se.unbind(e,R);return}return u&&v!==!0&&(a.keydown=!1),Se(e,a||{},R),function(){return Se.unbind(e,R)}},[R,e,k]),C}Se.isPressed;const Dr=I.createContext({open:!1,toggleOpen:e=>{}});function ds({children:e}){const[n,a]=I.useState(!1),l=f=>{a(f??!f)},h=I.useMemo(()=>({open:n,toggleOpen:l}),[n]);return t.jsx(Dr.Provider,{value:h,children:e})}function fn(){return I.useContext(Dr)}const je={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},hs=e=>mt(async()=>{const{data:n}=await e.get(je.categoriesPath);return Array.isArray(n)?n:[]},{manual:!0});function fs(e,n){const a={sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:l,onSearchSelect:h=u=>{n.onFilterChange({...a,keyword:u.title})},emptyCategory:f}=n;!a.category&&!f&&(a.category="All");const g=u=>{const v={...a,...u};l(Ut(v,b=>b===""||b===void 0))};return{filters:e,cleanFilter:u=>{const v=u?Ut(a,(b,p)=>u.includes(p)):{};l(Ut(v,b=>b===""||b===void 0))},handleActiveMenu:u=>{u!==e.menu&&l({menu:u})},handleSort:(u,v)=>{g({sortBy:u,sortDirection:v||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{g({category:void 0,keyword:u||void 0})},handlePrice:u=>{g({price:u===e.price?void 0:u})},handleCategory:u=>{g({category:u===e.category?"":u})},handleDeveloper:u=>{g({owner:u||void 0})},handlePage:u=>{g({currentPage:u})},handleSwitchShowResources:u=>{g({showResources:u})},handleSearchSelect:u=>{h(u)}}}const ps=(e,n,a)=>e&&n||!a,Lr=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],zr=(e,n,a)=>{var l,h;const f=Ai(e),g=Wi(f.search);if((l=$i(e,{strict:!0}))!=null&&l.endsWith(".gif"))return g.imageFilter?Ki({...f,search:""}):e;if(g.imageFilter)return e;const u=a||((h=window.blocklet)==null?void 0:h.version),{w:v,h:b}=typeof n=="object"?{w:n.w,h:n.h}:{w:n,h:n};return ln(e,{...v||b?{imageFilter:"resize",w:v,h:b}:{},v:u})},ms=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],gs=(e=[],n="en")=>e.map(a=>({name:a.locales[n]||a.locales.en,value:a._id})),vs=(e,n)=>e==null?void 0:e.replace(/{(\w*)}/g,(a,l)=>n.hasOwnProperty(l)?n[l]:""),bs=()=>window.innerWidth<=600,ys={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"},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}"'}},xs={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试"},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}” 的所有搜索结果"}},Xt={en:Gn(ys),zh:Gn(xs)},Nr=(e,n)=>{const a={};return e&&(a["x-blocklet-server-version"]=e),n&&(a["x-blocklet-store-version"]=n),a},ws=e=>(n,a)=>{const l=Xt[e]?Xt[e][n]:Xt.en[n];return vs(l,a)||n},Fr={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!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:()=>{}}},Br=I.createContext(Fr),{Provider:Ss,Consumer:za}=Br;function ks(e){const{locale:n="zh",filters:a={},serverVersion:l="",onFilterChange:h=()=>{},minItemWidth:f=350,queryFilter:g=!0,layout:u={},wrapChildren:v=te=>te,extraFilter:b=te=>te,baseSearch:p=!1,fetchCategoryDelay:S=0,showResourcesSwitch:k=!1,showCategory:x=!0,tagFilters:y=[],children:C,storeVersion:R,onSearchSelect:_=()=>{},endpoint:A,blockletRender:D}=e,$=Nr(l,R),G=I.useMemo(()=>fr({baseURL:A,headers:$}),[A]),Z=fs(a,{onFilterChange:h,emptyCategory:!u.showExplore,onSearchSelect:_}),[V,le]=I.useState(""),{data:de=[],error:Te,loading:Pe,run:xe}=hs(G),ce=I.useMemo(()=>{const te=zo(de,[re=>re.name],["asc"]),be=te.findIndex(re=>re.name==="All"||re.locales.en==="All");return be>-1?[{...te[be],_id:"All"},...te.slice(0,be),...te.slice(be+1)]:te},[de]),Oe=I.useCallback(ws(n),[n]),he=I.useMemo(()=>gs(ce,n),[ce,n]),N=ms(Oe),ee={search:Z,errors:{fetchCategoriesError:Te},loadings:{fetchCategoriesLoading:Pe},extraFilter:b,endpoint:A,queryFilter:g,layout:{showExplore:u.showExplore??!1,showCategory:u.showCategory??!0,showTitle:u.showTitle??!0,showSearch:u.showSearch??!0},minItemWidth:f,wrapChildren:v,t:Oe,storeVersion:R,serverVersion:l,selectedCategory:Z.filters.category||(u.showExplore?"":"All"),categoryList:ce,blockletRender:D,locale:n,categoryOptions:he,priceOptions:N,storeApi:G,baseSearch:p,showResourcesSwitch:k,showCategory:x,tagFilters:y,onFilterChange:h,getCategoryLocale:te=>{if(!te)return null;const be=de.find(re=>re._id===te||re.locales.en==="All");return be?be.locales[n]||be.locales.en:null},get developerName(){return V},updateDeveloperName:le};return I.useEffect(()=>{setTimeout(xe,S||0)},[A,xe,S]),t.jsx(Ss,{value:ee,children:C})}function ve(){return I.useContext(Br)||Fr}function Ar({children:e,onClick:n,size:a=32,...l}){return t.jsx(ke,{...l,onClick:n,variant:"outlined",sx:[{minWidth:a,height:a,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:e})}function Tt(e,n){return e===void 0?n:e}function pn({xs:e,sm:n,md:a,lg:l,xl:h,exact:f}){const g=tt(),u=Ke(g.breakpoints.down("sm")),v=Ke(g.breakpoints.between("sm","md")),b=Ke(g.breakpoints.between("md","lg")),p=Ke(g.breakpoints.between("lg","xl"));if(f)return u?e||null:v?n||null:b?a||null:p?l||null:h||null;let S=e;return u||(S=Tt(n,S),v)||(S=Tt(a,S),b)||(S=Tt(l,S),p)?S:Tt(h,S)}function js({children:e}){const{open:n,toggleOpen:a}=fn();return t.jsx(pn,{xs:t.jsx(Fi,{open:n,onClose:()=>a(!1),children:e}),md:t.jsx(X,{children:e})})}const Ts=I.forwardRef(({loading:e,disabled:n,...a},l)=>t.jsx(ke,{ref:l,disableElevation:!0,disabled:n||e,...a,sx:[{borderRadius:"4px"},...Array.isArray(a.sx)?a.sx:[a.sx]],startIcon:e&&t.jsx(Ie,{size:"1em"})}));function Wr({value:e,options:n,onChange:a,placeholder:l,...h}){var f;const g=I.useRef(null),u=tt(),[v,b]=I.useState(!1),[p,S]=I.useState(e!==null?e:""),k=Ke(u.breakpoints.down("sm"));I.useEffect(()=>{S(e!==null?e:"")},[e]);const x=I.useCallback(()=>{b(!1)},[]),y=I.useCallback(()=>{b(!0)},[]);function C(_){S(_.value),a(_.value),k&&x()}function R(_){return _===p}return t.jsxs(t.Fragment,{children:[t.jsxs(Os,{ref:g,onClick:y,variant:"outlined",size:"medium",className:["my-select__selector",Ui(p)?"":"my-select__selector--active"].join(" "),sx:{minWidth:"auto",color:"text.primary",borderRadius:"8px"},...h,children:[((f=n.find(_=>_.value===p))==null?void 0:f.name)||l,t.jsx(Hi,{className:"my-select__arrowdown",component:Or,sx:{width:18,height:18}})]}),t.jsx(Vi,{open:v,anchorEl:g.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:_,placement:A})=>t.jsx(qi,{..._,style:{transformOrigin:A==="bottom"?"center top":"center bottom"},children:t.jsx(Gi,{children:t.jsx(Yi,{onClickAway:x,children:t.jsx(Es,{autoFocusItem:v,onMouseEnter:y,onMouseLeave:x,children:n.map(D=>t.jsxs(Ct,{onClick:()=>C(D),sx:{fontSize:14},children:[t.jsx(Xi,{sx:{mr:1,fontSize:16,visibility:R(D.value)?"visible":"hidden"}}),D.name]},D.value))})})})})})]})}const Os=He(Ts)`
|
|
1
|
+
import{cl as Le,r as I,ci as mt,fx as Hn,be as Oi,bf as Ei,bp as kt,fy as et,cj as dt,fz as Ci,fA as _i,bU as Vn,aa as Pt,bS as ct,c$ as Ri,bZ as qn,j as t,g as hr,fB as Ii,fC as Pi,aR as gt,aS as vt,cS as ut,cK as Gn,e9 as ke,C as Ie,s as He,N as X,ap as tt,dq as Mi,a7 as Di,dD as Li,fD as fr,f4 as pr,fE as mr,fF as sn,aG as zi,aH as an,a$ as Ee,fG as Ut,l as q,c_ as ft,fH as Ni,F as Ke,fI as Fi,a_ as gr,X as vr,fw as ln,fq as ze,az as cn,G as Yn,e3 as Xn,aV as Bi,fJ as Ai,fK as Wi,fL as $i,fM as Ki,O as Ui,f6 as Hi,f5 as Vi,ej as qi,dX as Gi,f3 as Yi,V as Ct,a3 as Xi,fN as br,fO as Qi,v as yr,a6 as Ne,a0 as Ji,fP as Zi,P,o as Ve,aE as xr,aU as Qn,cB as eo,B as _t,ac as to,ad as wr,aK as no,fQ as Jn,ae as ro,bs as un,D as io,t as oo,Y as so,cy as ao,Z as ht,E as Sr,z as $e,c as lo,b5 as co,ai as uo,f8 as kr,cp as ho,eC as fo,W as po}from"./index-CWbfhRhH.js";import{d as mo}from"./ChevronLeft-D3UVaBk1.js";import{d as go}from"./ChevronRight-CRdbPktx.js";import{d as Et}from"./Search-B79uNwsG.js";import{A as vo}from"./Autocomplete-72OfUAKA.js";import{I as Zn}from"./InputAdornment-DWZfDxJ5.js";import{d as bo}from"./ShoppingCart-Cbf3RE3D.js";import{d as yo}from"./Add-DMbK1vzy.js";import{d as jr}from"./Launch-Bh2GBEVm.js";import{d as xo}from"./Done-Dm_L4cxw.js";import{d as Tr}from"./DeleteOutline-B4ZeZmby.js";import{C as wo}from"./delete-confirm-DVXl439v.js";import{u as So}from"./blocklet-WvBRbHhh.js";import{d as ko}from"./MoreVert-C6wKUwAk.js";import{u as jo}from"./session-Oj9XmKr2.js";import{g as Ue}from"./get-safe-url-CW8aFZFz.js";import{B as er}from"./ButtonGroup-l0siWVyy.js";var To=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},tr=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Oo=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Eo=function(e,n){n===void 0&&(n={});var a=n.target,l=n.isNoMore,h=n.threshold,f=h===void 0?100:h,g=n.direction,u=g===void 0?"bottom":g,v=n.reloadDeps,b=v===void 0?[]:v,p=n.manual,S=n.onBefore,k=n.onSuccess,x=n.onError,y=n.onFinally,C=Le(I.useState(),2),R=C[0],_=C[1],A=Le(I.useState(!1),2),D=A[0],$=A[1],G=u==="top",Z=I.useRef(),V=I.useRef(0),le=I.useMemo(function(){return l?l(R):!1},[R]),de=mt(function(re){return Oi(void 0,void 0,void 0,function(){var oe,me,Ce,_e;return Ei(this,function(bt){switch(bt.label){case 0:return[4,e(re)];case 1:return oe=bt.sent(),_(re?kt(kt({},oe),{list:G?et(et([],Le(oe.list),!1),Le((Ce=re.list)!==null&&Ce!==void 0?Ce:[]),!1):et(et([],Le((_e=re.list)!==null&&_e!==void 0?_e:[]),!1),Le(oe.list),!1)}):kt(kt({},oe),{list:et([],Le((me=oe.list)!==null&&me!==void 0?me:[]),!1)})),[2,oe]}})})},{manual:p,onFinally:function(re,oe,me){$(!1),y==null||y(oe,me)},onBefore:function(){return S==null?void 0:S()},onSuccess:function(re){setTimeout(function(){if(G){var oe=Hn(a);if(oe=oe===document?document.documentElement:oe,oe){var me=tr(oe);oe.scrollTo(0,me-V.current)}}else be()}),k==null||k(re)},onError:function(re){return x==null?void 0:x(re)}}),Te=de.loading,Pe=de.error,xe=de.run,ce=de.runAsync,Oe=de.cancel,he=dt(function(){le||($(!0),xe(R))}),N=dt(function(){return le?Promise.reject():($(!0),ce(R))}),ee=function(){return $(!1),xe()},te=function(){return $(!1),ce()},be=function(){var re=Hn(a);if(re){var oe=re===document?document.documentElement:re,me=To(oe),Ce=tr(oe),_e=Oo(oe);G?(Z.current!==void 0&&Z.current>me&&me<=f&&he(),Z.current=me,V.current=Ce-me):Ce-me<=_e+f&&he()}};return Ci("scroll",function(){Te||D||be()},{target:a}),_i(function(){xe()},et([],Le(b),!1)),{data:R,loading:!D&&Te,error:Pe,loadingMore:D,noMore:le,loadMore:he,loadMoreAsync:N,reload:dt(ee),reloadAsync:dt(te),mutate:_,cancel:Oe}};const Co=["name"],_o=["children","className","clone","component"];function Ro(e,n){const a={};return Object.keys(e).forEach(l=>{n.indexOf(l)===-1&&(a[l]=e[l])}),a}function Io(e){return(a,l={})=>{const{name:h}=l,f=Vn(l,Co);let g=h;const v=Pt(typeof a=="function"?S=>({root:k=>a(ct({theme:S},k))}):{root:a},ct({Component:e,name:h||e.displayName,classNamePrefix:g},f));let b;a.filterProps&&(b=a.filterProps,delete a.filterProps),a.propTypes&&(a.propTypes,delete a.propTypes);const p=I.forwardRef(function(k,x){const{children:y,className:C,clone:R,component:_}=k,A=Vn(k,_o),D=v(k),$=qn(D.root,C);let G=A;if(b&&(G=Ro(G,b)),R)return I.cloneElement(y,ct({className:qn(y.props.className,$)},G));if(typeof y=="function")return y(ct({className:$},G));const Z=_||e;return t.jsx(Z,ct({ref:x,className:$},G,{children:y}))});return Ri(p,e),p}}const Da="blocklet-add-component-registry",La="server-add-registry",Po={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>'};var Mo=Ii,nr=Pi;function Do(e,n,a,l){return e==null?[]:(nr(n)||(n=n==null?[]:[n]),a=l?void 0:a,nr(a)||(a=a==null?[]:[a]),Mo(e,n,a))}var Lo=Do;const zo=hr(Lo);var dn={},No=vt;Object.defineProperty(dn,"__esModule",{value:!0});var Or=dn.default=void 0,Fo=No(gt()),Bo=t;Or=dn.default=(0,Fo.default)((0,Bo.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");const Ao={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 Er={exports:{}};(function(e,n){(function(a,l){e.exports=l(I)})(ut,a=>(()=>{var l={703:(u,v,b)=>{var p=b(414);function S(){}function k(){}k.resetWarningCache=S,u.exports=function(){function x(R,_,A,D,$,G){if(G!==p){var Z=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 Z.name="Invariant Violation",Z}}function y(){return x}x.isRequired=x;var C={array:x,bool:x,func:x,number:x,object:x,string:x,symbol:x,any:x,arrayOf:y,element:x,elementType:x,instanceOf:y,node:x,objectOf:y,oneOf:y,oneOfType:y,shape:y,exact:y,checkPropTypes:k,resetWarningCache:S};return C.PropTypes=C,C}},697:(u,v,b)=>{u.exports=b(703)()},414:u=>{u.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:u=>{var v=typeof Element<"u",b=typeof Map=="function",p=typeof Set=="function",S=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function k(x,y){if(x===y)return!0;if(x&&y&&typeof x=="object"&&typeof y=="object"){if(x.constructor!==y.constructor)return!1;var C,R,_,A;if(Array.isArray(x)){if((C=x.length)!=y.length)return!1;for(R=C;R--!=0;)if(!k(x[R],y[R]))return!1;return!0}if(b&&x instanceof Map&&y instanceof Map){if(x.size!==y.size)return!1;for(A=x.entries();!(R=A.next()).done;)if(!y.has(R.value[0]))return!1;for(A=x.entries();!(R=A.next()).done;)if(!k(R.value[1],y.get(R.value[0])))return!1;return!0}if(p&&x instanceof Set&&y instanceof Set){if(x.size!==y.size)return!1;for(A=x.entries();!(R=A.next()).done;)if(!y.has(R.value[0]))return!1;return!0}if(S&&ArrayBuffer.isView(x)&&ArrayBuffer.isView(y)){if((C=x.length)!=y.length)return!1;for(R=C;R--!=0;)if(x[R]!==y[R])return!1;return!0}if(x.constructor===RegExp)return x.source===y.source&&x.flags===y.flags;if(x.valueOf!==Object.prototype.valueOf)return x.valueOf()===y.valueOf();if(x.toString!==Object.prototype.toString)return x.toString()===y.toString();if((C=(_=Object.keys(x)).length)!==Object.keys(y).length)return!1;for(R=C;R--!=0;)if(!Object.prototype.hasOwnProperty.call(y,_[R]))return!1;if(v&&x instanceof Element)return!1;for(R=C;R--!=0;)if((_[R]!=="_owner"&&_[R]!=="__v"&&_[R]!=="__o"||!x.$$typeof)&&!k(x[_[R]],y[_[R]]))return!1;return!0}return x!=x&&y!=y}u.exports=function(x,y){try{return k(x,y)}catch(C){if((C.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw C}}},359:u=>{u.exports=a}},h={};function f(u){var v=h[u];if(v!==void 0)return v.exports;var b=h[u]={exports:{}};return l[u](b,b.exports,f),b.exports}f.n=u=>{var v=u&&u.__esModule?()=>u.default:()=>u;return f.d(v,{a:v}),v},f.d=(u,v)=>{for(var b in v)f.o(v,b)&&!f.o(u,b)&&Object.defineProperty(u,b,{enumerable:!0,get:v[b]})},f.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),f.o=(u,v)=>Object.prototype.hasOwnProperty.call(u,v),f.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var g={};return(()=>{function u(s){var r,c,d="";if(typeof s=="string"||typeof s=="number")d+=s;else if(typeof s=="object")if(Array.isArray(s))for(r=0;r<s.length;r++)s[r]&&(c=u(s[r]))&&(d&&(d+=" "),d+=c);else for(r in s)s[r]&&(d&&(d+=" "),d+=r);return d}function v(){for(var s,r,c=0,d="";c<arguments.length;)(s=arguments[c++])&&(r=u(s))&&(d&&(d+=" "),d+=r);return d}f.r(g),f.d(g,{default:()=>ji});var b=f(359),p=f.n(b);const S=function(s){var r=typeof s;return s!=null&&(r=="object"||r=="function")},k=typeof ut=="object"&&ut&&ut.Object===Object&&ut;var x=typeof self=="object"&&self&&self.Object===Object&&self;const y=k||x||Function("return this")(),C=function(){return y.Date.now()};var R=/\s/,_=/^\s+/;const A=function(s){return s&&s.slice(0,function(r){for(var c=r.length;c--&&R.test(r.charAt(c)););return c}(s)+1).replace(_,"")},D=y.Symbol;var $=Object.prototype,G=$.hasOwnProperty,Z=$.toString,V=D?D.toStringTag:void 0,le=Object.prototype.toString,de=D?D.toStringTag:void 0;const Te=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":de&&de in Object(s)?function(r){var c=G.call(r,V),d=r[V];try{r[V]=void 0;var O=!0}catch{}var F=Z.call(r);return O&&(c?r[V]=d:delete r[V]),F}(s):function(r){return le.call(r)}(s)};var Pe=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,ce=/^0o[0-7]+$/i,Oe=parseInt;const he=function(s){if(typeof s=="number")return s;if(function(d){return typeof d=="symbol"||function(O){return O!=null&&typeof O=="object"}(d)&&Te(d)=="[object Symbol]"}(s))return NaN;if(S(s)){var r=typeof s.valueOf=="function"?s.valueOf():s;s=S(r)?r+"":r}if(typeof s!="string")return s===0?s:+s;s=A(s);var c=xe.test(s);return c||ce.test(s)?Oe(s.slice(2),c?2:8):Pe.test(s)?NaN:+s};var N=Math.max,ee=Math.min;const te=function(s,r,c){var d,O,F,Y,o,i,m=0,j=!1,E=!1,T=!0;if(typeof s!="function")throw new TypeError("Expected a function");function K(B){var H=d,Q=O;return d=O=void 0,m=B,Y=s.apply(Q,H)}function W(B){return m=B,o=setTimeout(M,r),j?K(B):Y}function U(B){var H=B-i;return i===void 0||H>=r||H<0||E&&B-m>=F}function M(){var B=C();if(U(B))return L(B);o=setTimeout(M,function(H){var Q=r-(H-i);return E?ee(Q,F-(H-m)):Q}(B))}function L(B){return o=void 0,T&&d?K(B):(d=O=void 0,Y)}function z(){var B=C(),H=U(B);if(d=arguments,O=this,i=B,H){if(o===void 0)return W(i);if(E)return clearTimeout(o),o=setTimeout(M,r),K(i)}return o===void 0&&(o=setTimeout(M,r)),Y}return r=he(r)||0,S(c)&&(j=!!c.leading,F=(E="maxWait"in c)?N(he(c.maxWait)||0,r):F,T="trailing"in c?!!c.trailing:T),z.cancel=function(){o!==void 0&&clearTimeout(o),m=0,d=i=O=o=void 0},z.flush=function(){return o===void 0?Y:L(C())},z},be=function(s,r,c){var d=!0,O=!0;if(typeof s!="function")throw new TypeError("Expected a function");return S(c)&&(d="leading"in c?!!c.leading:d,O="trailing"in c?!!c.trailing:O),te(s,r,{leading:d,maxWait:r,trailing:O})};var re=f(590),oe=f.n(re),me=function(){if(typeof Map<"u")return Map;function s(r,c){var d=-1;return r.some(function(O,F){return O[0]===c&&(d=F,!0)}),d}return function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(c){var d=s(this.__entries__,c),O=this.__entries__[d];return O&&O[1]},r.prototype.set=function(c,d){var O=s(this.__entries__,c);~O?this.__entries__[O][1]=d:this.__entries__.push([c,d])},r.prototype.delete=function(c){var d=this.__entries__,O=s(d,c);~O&&d.splice(O,1)},r.prototype.has=function(c){return!!~s(this.__entries__,c)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(c,d){d===void 0&&(d=null);for(var O=0,F=this.__entries__;O<F.length;O++){var Y=F[O];c.call(d,Y[1],Y[0])}},r}()}(),Ce=typeof window<"u"&&typeof document<"u"&&window.document===document,_e=f.g!==void 0&&f.g.Math===Math?f.g:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),bt=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(_e):function(s){return setTimeout(function(){return s(Date.now())},1e3/60)},ei=["top","right","bottom","left","width","height","size","weight"],ti=typeof MutationObserver<"u",ni=function(){function s(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(r,c){var d=!1,O=!1,F=0;function Y(){d&&(d=!1,r()),O&&i()}function o(){bt(Y)}function i(){var m=Date.now();if(d){if(m-F<2)return;O=!0}else d=!0,O=!1,setTimeout(o,20);F=m}return i}(this.refresh.bind(this))}return s.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},s.prototype.removeObserver=function(r){var c=this.observers_,d=c.indexOf(r);~d&&c.splice(d,1),!c.length&&this.connected_&&this.disconnect_()},s.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},s.prototype.updateObservers_=function(){var r=this.observers_.filter(function(c){return c.gatherActive(),c.hasActive()});return r.forEach(function(c){return c.broadcastActive()}),r.length>0},s.prototype.connect_=function(){Ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ti?(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)},s.prototype.disconnect_=function(){Ce&&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)},s.prototype.onTransitionEnd_=function(r){var c=r.propertyName,d=c===void 0?"":c;ei.some(function(O){return!!~d.indexOf(O)})&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null,s}(),wn=function(s,r){for(var c=0,d=Object.keys(r);c<d.length;c++){var O=d[c];Object.defineProperty(s,O,{value:r[O],enumerable:!1,writable:!1,configurable:!0})}return s},qe=function(s){return s&&s.ownerDocument&&s.ownerDocument.defaultView||_e},Sn=xt(0,0,0,0);function yt(s){return parseFloat(s)||0}function kn(s){for(var r=[],c=1;c<arguments.length;c++)r[c-1]=arguments[c];return r.reduce(function(d,O){return d+yt(s["border-"+O+"-width"])},0)}var ri=typeof SVGGraphicsElement<"u"?function(s){return s instanceof qe(s).SVGGraphicsElement}:function(s){return s instanceof qe(s).SVGElement&&typeof s.getBBox=="function"};function ii(s){return Ce?ri(s)?function(r){var c=r.getBBox();return xt(0,0,c.width,c.height)}(s):function(r){var c=r.clientWidth,d=r.clientHeight;if(!c&&!d)return Sn;var O=qe(r).getComputedStyle(r),F=function(T){for(var K={},W=0,U=["top","right","bottom","left"];W<U.length;W++){var M=U[W],L=T["padding-"+M];K[M]=yt(L)}return K}(O),Y=F.left+F.right,o=F.top+F.bottom,i=yt(O.width),m=yt(O.height);if(O.boxSizing==="border-box"&&(Math.round(i+Y)!==c&&(i-=kn(O,"left","right")+Y),Math.round(m+o)!==d&&(m-=kn(O,"top","bottom")+o)),!function(T){return T===qe(T).document.documentElement}(r)){var j=Math.round(i+Y)-c,E=Math.round(m+o)-d;Math.abs(j)!==1&&(i-=j),Math.abs(E)!==1&&(m-=E)}return xt(F.left,F.top,i,m)}(s):Sn}function xt(s,r,c,d){return{x:s,y:r,width:c,height:d}}var oi=function(){function s(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xt(0,0,0,0),this.target=r}return s.prototype.isActive=function(){var r=ii(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},s.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},s}(),si=function(s,r){var c,d,O,F,Y,o,i,m=(d=(c=r).x,O=c.y,F=c.width,Y=c.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(o.prototype),wn(i,{x:d,y:O,width:F,height:Y,top:O,right:d+F,bottom:Y+O,left:d}),i);wn(this,{target:s,contentRect:m})},ai=function(){function s(r,c,d){if(this.activeObservations_=[],this.observations_=new me,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=c,this.callbackCtx_=d}return s.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)||(c.set(r,new oi(r)),this.controller_.addObserver(this),this.controller_.refresh())}},s.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(typeof Element<"u"&&Element instanceof Object){if(!(r instanceof qe(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var c=this.observations_;c.has(r)&&(c.delete(r),c.size||this.controller_.removeObserver(this))}},s.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},s.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(c){c.isActive()&&r.activeObservations_.push(c)})},s.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,c=this.activeObservations_.map(function(d){return new si(d.target,d.broadcastRect())});this.callback_.call(r,c,r),this.clearActive()}},s.prototype.clearActive=function(){this.activeObservations_.splice(0)},s.prototype.hasActive=function(){return this.activeObservations_.length>0},s}(),jn=typeof WeakMap<"u"?new WeakMap:new me,Tn=function s(r){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var c=ni.getInstance(),d=new ai(r,c,this);jn.set(this,d)};["observe","unobserve","disconnect"].forEach(function(s){Tn.prototype[s]=function(){var r;return(r=jn.get(this))[s].apply(r,arguments)}});const On=_e.ResizeObserver!==void 0?_e.ResizeObserver:Tn,Ge="Left",Be="Right",Ye="Up",Ae="Down",Xe={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Lt={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},En="mousemove",Cn="mouseup";function _n(s,r){if(r===0)return s;const c=Math.PI/180*r;return[s[0]*Math.cos(c)+s[1]*Math.sin(c),s[1]*Math.cos(c)-s[0]*Math.sin(c)]}function li(s){const{trackMouse:r}=s,c=b.useRef(Object.assign({},Lt)),d=b.useRef(Object.assign({},Xe)),O=b.useRef(Object.assign({},d.current));let F;for(F in O.current=Object.assign({},d.current),d.current=Object.assign(Object.assign({},Xe),s),Xe)d.current[F]===void 0&&(d.current[F]=Xe[F]);const[Y,o]=b.useMemo(()=>function(i,m){const j=M=>{const L="touches"in M;L&&M.touches.length>1||i((z,B)=>{B.trackMouse&&!L&&(document.addEventListener(En,E),document.addEventListener(Cn,K));const{clientX:H,clientY:Q}=L?M.touches[0]:M,se=_n([H,Q],B.rotationAngle);return B.onTouchStartOrOnMouseDown&&B.onTouchStartOrOnMouseDown({event:M}),Object.assign(Object.assign(Object.assign({},z),Lt),{initial:se.slice(),xy:se,start:M.timeStamp||0})})},E=M=>{i((L,z)=>{const B="touches"in M;if(B&&M.touches.length>1)return L;if(M.timeStamp-L.start>z.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:H,clientY:Q}=B?M.touches[0]:M,[se,ye]=_n([H,Q],z.rotationAngle),ge=se-L.xy[0],fe=ye-L.xy[1],ie=Math.abs(ge),J=Math.abs(fe),De=(M.timeStamp||0)-L.start,ot=Math.sqrt(ie*ie+J*J)/(De||1),st=[ge/(De||1),fe/(De||1)],Me=function(at,Ze,lt,we){return at>Ze?lt>0?Be:Ge:we>0?Ae:Ye}(ie,J,ge,fe),We=typeof z.delta=="number"?z.delta:z.delta[Me.toLowerCase()]||Xe.delta;if(ie<We&&J<We&&!L.swiping)return L;const Re={absX:ie,absY:J,deltaX:ge,deltaY:fe,dir:Me,event:M,first:L.first,initial:L.initial,velocity:ot,vxvy:st};Re.first&&z.onSwipeStart&&z.onSwipeStart(Re),z.onSwiping&&z.onSwiping(Re);let Je=!1;return(z.onSwiping||z.onSwiped||z[`onSwiped${Me}`])&&(Je=!0),Je&&z.preventScrollOnSwipe&&z.trackTouch&&M.cancelable&&M.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:Re,swiping:!0})})},T=M=>{i((L,z)=>{let B;if(L.swiping&&L.eventData){if(M.timeStamp-L.start<z.swipeDuration){B=Object.assign(Object.assign({},L.eventData),{event:M}),z.onSwiped&&z.onSwiped(B);const H=z[`onSwiped${B.dir}`];H&&H(B)}}else z.onTap&&z.onTap({event:M});return z.onTouchEndOrOnMouseUp&&z.onTouchEndOrOnMouseUp({event:M}),Object.assign(Object.assign(Object.assign({},L),Lt),{eventData:B})})},K=M=>{document.removeEventListener(En,E),document.removeEventListener(Cn,K),T(M)},W=(M,L)=>{let z=()=>{};if(M&&M.addEventListener){const B=Object.assign(Object.assign({},Xe.touchEventOptions),L.touchEventOptions),H=[["touchstart",j,B],["touchmove",E,Object.assign(Object.assign({},B),L.preventScrollOnSwipe?{passive:!1}:{})],["touchend",T,B]];H.forEach(([Q,se,ye])=>M.addEventListener(Q,se,ye)),z=()=>H.forEach(([Q,se])=>M.removeEventListener(Q,se))}return z},U={ref:M=>{M!==null&&i((L,z)=>{if(L.el===M)return L;const B={};return L.el&&L.el!==M&&L.cleanUpTouch&&(L.cleanUpTouch(),B.cleanUpTouch=void 0),z.trackTouch&&M&&(B.cleanUpTouch=W(M,z)),Object.assign(Object.assign(Object.assign({},L),{el:M}),B)})}};return m.trackMouse&&(U.onMouseDown=j),[U,W]}(i=>c.current=i(c.current,d.current),{trackMouse:r}),[r]);return c.current=function(i,m,j,E){return m.trackTouch&&i.el?i.cleanUpTouch?m.preventScrollOnSwipe!==j.preventScrollOnSwipe||m.touchEventOptions.passive!==j.touchEventOptions.passive?(i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)})):i:Object.assign(Object.assign({},i),{cleanUpTouch:E(i.el,m)}):(i.cleanUpTouch&&i.cleanUpTouch(),Object.assign(Object.assign({},i),{cleanUpTouch:void 0}))}(c.current,d.current,O.current,o),Y}var w=f(697);function nt(s){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nt(s)}function Rn(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function In(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Rn(Object(c),!0).forEach(function(d){ci(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Rn(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function ci(s,r,c){return(r=function(d){var O=function(F,Y){if(nt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,Y);if(nt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(d,"string");return nt(O)==="symbol"?O:String(O)}(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}var ui={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"},zt=p().memo(function(s){var r=In(In({},ui),s),c=r.description,d=r.fullscreen,O=r.handleImageLoaded,F=r.isFullscreen,Y=r.onImageError,o=r.original,i=r.originalAlt,m=r.originalHeight,j=r.originalWidth,E=r.originalTitle,T=r.sizes,K=r.srcSet,W=r.loading,U=F&&d||o;return p().createElement(p().Fragment,null,p().createElement("img",{className:"image-gallery-image",src:U,alt:i,srcSet:K,height:m,width:j,sizes:T,title:E,onLoad:function(M){return O(M,o)},onError:Y,loading:W}),c&&p().createElement("span",{className:"image-gallery-description"},c))});zt.displayName="Item",zt.propTypes={description:w.string,fullscreen:w.string,handleImageLoaded:w.func.isRequired,isFullscreen:w.bool,onImageError:w.func.isRequired,original:w.string.isRequired,originalAlt:w.string,originalHeight:w.string,originalWidth:w.string,originalTitle:w.string,sizes:w.string,srcSet:w.string,loading:w.string};const di=zt;function rt(s){return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rt(s)}function Pn(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function Mn(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Pn(Object(c),!0).forEach(function(d){hi(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Pn(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function hi(s,r,c){return(r=function(d){var O=function(F,Y){if(rt(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,Y);if(rt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(d,"string");return rt(O)==="symbol"?O:String(O)}(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}var fi={left:p().createElement("polyline",{points:"15 18 9 12 15 6"}),right:p().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:p().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:p().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:p().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:p().createElement(p().Fragment,null,p().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),p().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},pi={strokeWidth:1,viewBox:"0 0 24 24"},Dn=function(s){var r=Mn(Mn({},pi),s),c=r.strokeWidth,d=r.viewBox,O=r.icon;return p().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:d,fill:"none",stroke:"currentColor",strokeWidth:c,strokeLinecap:"round",strokeLinejoin:"round"},fi[O])};Dn.propTypes={strokeWidth:w.number,viewBox:w.string,icon:(0,w.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired};const wt=Dn;var Nt=p().memo(function(s){var r=s.isFullscreen,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:c,"aria-label":"Open Fullscreen"},p().createElement(wt,{strokeWidth:2,icon:r?"minimize":"maximize"}))});Nt.displayName="Fullscreen",Nt.propTypes={isFullscreen:w.bool.isRequired,onClick:w.func.isRequired};const mi=Nt;var Ft=p().memo(function(s){var r=s.disabled,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:r,onClick:c,"aria-label":"Previous Slide"},p().createElement(wt,{icon:"left",viewBox:"6 0 12 24"}))});Ft.displayName="LeftNav",Ft.propTypes={disabled:w.bool.isRequired,onClick:w.func.isRequired};const gi=Ft;var Bt=p().memo(function(s){var r=s.disabled,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:r,onClick:c,"aria-label":"Next Slide"},p().createElement(wt,{icon:"right",viewBox:"6 0 12 24"}))});Bt.displayName="RightNav",Bt.propTypes={disabled:w.bool.isRequired,onClick:w.func.isRequired};const vi=Bt;var At=p().memo(function(s){var r=s.isPlaying,c=s.onClick;return p().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:c,"aria-label":"Play or Pause Slideshow"},p().createElement(wt,{strokeWidth:2,icon:r?"pause":"play"}))});At.displayName="PlayPause",At.propTypes={isPlaying:w.bool.isRequired,onClick:w.func.isRequired};const bi=At;function it(s){return it=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},it(s)}function Wt(){return Wt=Object.assign?Object.assign.bind():function(s){for(var r=1;r<arguments.length;r++){var c=arguments[r];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(s[d]=c[d])}return s},Wt.apply(this,arguments)}function Ln(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function zn(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Ln(Object(c),!0).forEach(function(d){yi(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Ln(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function yi(s,r,c){return(r=function(d){var O=function(F,Y){if(it(F)!=="object"||F===null)return F;var o=F[Symbol.toPrimitive];if(o!==void 0){var i=o.call(F,Y);if(it(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(F)}(d,"string");return it(O)==="symbol"?O:String(O)}(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}var xi={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}},Nn=function(s){var r=zn(zn({},xi),s),c=r.children,d=r.className,O=li({delta:r.delta,onSwiping:r.onSwiping,onSwiped:r.onSwiped});return p().createElement("div",Wt({},O,{className:d}),c)};Nn.propTypes={children:w.node.isRequired,className:w.string,delta:w.number,onSwiped:w.func,onSwiping:w.func};const Fn=Nn;function Qe(s){return Qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qe(s)}function Bn(s,r){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);r&&(d=d.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),c.push.apply(c,d)}return c}function An(s){for(var r=1;r<arguments.length;r++){var c=arguments[r]!=null?arguments[r]:{};r%2?Bn(Object(c),!0).forEach(function(d){Wn(s,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):Bn(Object(c)).forEach(function(d){Object.defineProperty(s,d,Object.getOwnPropertyDescriptor(c,d))})}return s}function wi(s,r){for(var c=0;c<r.length;c++){var d=r[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(s,$n(d.key),d)}}function $t(s,r){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,d){return c.__proto__=d,c},$t(s,r)}function Si(s,r){if(r&&(Qe(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(s)}function ae(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function St(s){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},St(s)}function Wn(s,r,c){return(r=$n(r))in s?Object.defineProperty(s,r,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[r]=c,s}function $n(s){var r=function(c,d){if(Qe(c)!=="object"||c===null)return c;var O=c[Symbol.toPrimitive];if(O!==void 0){var F=O.call(c,d);if(Qe(F)!=="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(s,"string");return Qe(r)==="symbol"?r:String(r)}var Kn=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],ki=(0,w.arrayOf)((0,w.shape)({srcSet:w.string,media:w.string}));function Un(s){var r=parseInt(s.keyCode||s.which||0,10);return r===66||r===62}var Kt=function(s){(function(o,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&$t(o,i)})(Y,s);var r,c,d,O,F=(d=Y,O=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 o,i=St(d);if(O){var m=St(this).constructor;o=Reflect.construct(i,arguments,m)}else o=i.apply(this,arguments);return Si(this,o)});function Y(o){var i;return function(m,j){if(!(m instanceof j))throw new TypeError("Cannot call a class as a function")}(this,Y),Wn(ae(i=F.call(this,o)),"onBulletClick",function(m,j){var E=i.props,T=E.onBulletClick,K=E.items,W=i.state.currentIndex;m.target.blur(),W!==j&&(K.length===2?i.slideToIndexWithStyleReset(j,m):i.slideToIndex(j,m)),T&&T(m,j)}),i.state={currentIndex:o.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(o.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},i.loadedImages={},i.imageGallery=p().createRef(),i.thumbnailsWrapper=p().createRef(),i.thumbnails=p().createRef(),i.imageGallerySlideWrapper=p().createRef(),i.handleImageLoaded=i.handleImageLoaded.bind(ae(i)),i.handleKeyDown=i.handleKeyDown.bind(ae(i)),i.handleMouseDown=i.handleMouseDown.bind(ae(i)),i.handleResize=i.handleResize.bind(ae(i)),i.handleTouchMove=i.handleTouchMove.bind(ae(i)),i.handleOnSwiped=i.handleOnSwiped.bind(ae(i)),i.handleScreenChange=i.handleScreenChange.bind(ae(i)),i.handleSwiping=i.handleSwiping.bind(ae(i)),i.handleThumbnailSwiping=i.handleThumbnailSwiping.bind(ae(i)),i.handleOnThumbnailSwiped=i.handleOnThumbnailSwiped.bind(ae(i)),i.onThumbnailMouseLeave=i.onThumbnailMouseLeave.bind(ae(i)),i.handleImageError=i.handleImageError.bind(ae(i)),i.pauseOrPlay=i.pauseOrPlay.bind(ae(i)),i.renderThumbInner=i.renderThumbInner.bind(ae(i)),i.renderItem=i.renderItem.bind(ae(i)),i.slideLeft=i.slideLeft.bind(ae(i)),i.slideRight=i.slideRight.bind(ae(i)),i.toggleFullScreen=i.toggleFullScreen.bind(ae(i)),i.togglePlay=i.togglePlay.bind(ae(i)),i.unthrottledSlideToIndex=i.slideToIndex,i.slideToIndex=be(i.unthrottledSlideToIndex,o.slideDuration,{trailing:!1}),o.lazyLoad&&(i.lazyLoaded=[]),i}return r=Y,c=[{key:"componentDidMount",value:function(){var o=this.props,i=o.autoPlay,m=o.useWindowKeyDown;i&&this.play(),m?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(o,i){var m=this.props,j=m.items,E=m.lazyLoad,T=m.slideDuration,K=m.slideInterval,W=m.startIndex,U=m.thumbnailPosition,M=m.showThumbnails,L=m.useWindowKeyDown,z=this.state,B=z.currentIndex,H=z.isPlaying,Q=o.items.length!==j.length,se=!oe()(o.items,j),ye=o.startIndex!==W,ge=o.thumbnailPosition!==U,fe=o.showThumbnails!==M;K===o.slideInterval&&T===o.slideDuration||H&&(this.pause(),this.play()),ge&&(this.removeResizeObserver(),this.initSlideWrapperResizeObserver(this.imageGallerySlideWrapper),this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper)),fe&&M&&this.initThumbnailWrapperResizeObserver(this.thumbnailsWrapper),fe&&!M&&this.removeThumbnailsResizeObserver(),(Q||fe)&&this.handleResize(),i.currentIndex!==B&&this.slideThumbnailBar(),o.slideDuration!==T&&(this.slideToIndex=be(this.unthrottledSlideToIndex,T,{trailing:!1})),!E||o.lazyLoad&&!se||(this.lazyLoaded=[]),L!==o.useWindowKeyDown&&(L?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(ye||se)&&this.setState({currentIndex:W,slideStyle:{transition:"none"}})}},{key:"componentWillUnmount",value:function(){var o=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),o?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"onSliding",value:function(){var o=this,i=this.state,m=i.currentIndex,j=i.isTransitioning,E=this.props,T=E.onSlide,K=E.slideDuration;this.transitionTimer=window.setTimeout(function(){j&&(o.setState({isTransitioning:!j,isSwipingThumbnail:!1}),T&&T(m))},K+50)}},{key:"onThumbnailClick",value:function(o,i){var m=this.props,j=m.onThumbnailClick,E=m.items,T=this.state.currentIndex;o.target.parentNode.parentNode.blur(),T!==i&&(E.length===2?this.slideToIndexWithStyleReset(i,o):this.slideToIndex(i,o)),j&&j(o,i)}},{key:"onThumbnailMouseOver",value:function(o,i){var m=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout(function(){m.slideToIndex(i),m.pause()},300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var o=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,o&&this.play()}}},{key:"setThumbsTranslate",value:function(o){this.setState({thumbsTranslate:o})}},{key:"setModalFullscreen",value:function(o){var i=this.props.onScreenChange;this.setState({modalFullscreen:o}),i&&i(o)}},{key:"getThumbsTranslate",value:function(o){var i,m=this.props,j=m.disableThumbnailScroll,E=m.items,T=this.state,K=T.thumbnailsWrapperWidth,W=T.thumbnailsWrapperHeight,U=this.thumbnails&&this.thumbnails.current;if(j)return 0;if(U){if(this.isThumbnailVertical()){if(U.scrollHeight<=W)return 0;i=U.scrollHeight-W}else{if(U.scrollWidth<=K||K<=0)return 0;i=U.scrollWidth-K}return o*(i/(E.length-1))}return 0}},{key:"getThumbnailPositionClassName",value:function(o){switch(o){case"left":o=" ".concat("image-gallery-thumbnails-left");break;case"right":o=" ".concat("image-gallery-thumbnails-right");break;case"bottom":o=" ".concat("image-gallery-thumbnails-bottom");break;case"top":o=" ".concat("image-gallery-thumbnails-top")}return o}},{key:"getAlignmentClassName",value:function(o){var i=this.state.currentIndex,m=this.props,j=m.infinite,E=m.items,T="",K="image-gallery-left",W="image-gallery-right";switch(o){case i-1:T=" ".concat(K);break;case i:T=" ".concat("image-gallery-center");break;case i+1:T=" ".concat(W)}return E.length>=3&&j&&(o===0&&i===E.length-1?T=" ".concat(W):o===E.length-1&&i===0&&(T=" ".concat(K))),T}},{key:"getTranslateXForTwoSlide",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.previousIndex,T=m!==E,K=o===0&&E===0,W=o===1&&E===1,U=o===0&&m===1,M=o===1&&m===0,L=j===0,z=-100*m+100*o+j;return j>0?this.direction="left":j<0&&(this.direction="right"),M&&j>0&&(z=-100+j),U&&j<0&&(z=100+j),T?K&&L&&this.direction==="left"?z=100:W&&L&&this.direction==="right"&&(z=-100):(M&&L&&this.direction==="left"&&(z=-100),U&&L&&this.direction==="right"&&(z=100)),z}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(o){var i=this.state,m=i.currentIndex,j=i.currentSlideOffset,E=i.slideStyle,T=this.props,K=T.infinite,W=T.items,U=T.useTranslate3D,M=T.isRTL,L=-100*m,z=W.length-1,B=(L+100*o)*(M?-1:1)+j;K&&W.length>2&&(m===0&&o===z?B=-100*(M?-1:1)+j:m===z&&o===0&&(B=100*(M?-1:1)+j)),K&&W.length===2&&(B=this.getTranslateXForTwoSlide(o));var H="translate(".concat(B,"%, 0)");return U&&(H="translate3d(".concat(B,"%, 0, 0)")),An({display:this.isSlideVisible(o)?"inherit":"none",WebkitTransform:H,MozTransform:H,msTransform:H,OTransform:H,transform:H},E)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var o,i=this.props,m=i.useTranslate3D,j=i.isRTL,E=this.state,T=E.thumbsTranslate,K=E.thumbsStyle,W=j?-1*T:T;return this.isThumbnailVertical()?(o="translate(0, ".concat(T,"px)"),m&&(o="translate3d(0, ".concat(T,"px, 0)"))):(o="translate(".concat(W,"px, 0)"),m&&(o="translate3d(".concat(W,"px, 0, 0)"))),An({WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,transform:o},K)}},{key:"getSlideItems",value:function(){var o=this,i=this.state.currentIndex,m=this.props,j=m.items,E=m.slideOnThumbnailOver,T=m.onClick,K=m.lazyLoad,W=m.onTouchMove,U=m.onTouchEnd,M=m.onTouchStart,L=m.onMouseOver,z=m.onMouseLeave,B=m.renderItem,H=m.renderThumbInner,Q=m.showThumbnails,se=m.showBullets,ye=[],ge=[],fe=[];return j.forEach(function(ie,J){var De=o.getAlignmentClassName(J),ot=ie.originalClass?" ".concat(ie.originalClass):"",st=ie.thumbnailClass?" ".concat(ie.thumbnailClass):"",Me=ie.renderItem||B||o.renderItem,We=ie.renderThumbInner||H||o.renderThumbInner,Re=!K||De||o.lazyLoaded[J];Re&&K&&!o.lazyLoaded[J]&&(o.lazyLoaded[J]=!0);var Je=o.getSlideStyle(J),at=p().createElement("div",{"aria-label":"Go to Slide ".concat(J+1),key:"slide-".concat(J),tabIndex:"-1",className:"image-gallery-slide ".concat(De," ").concat(ot),style:Je,onClick:T,onKeyUp:o.handleSlideKeyUp,onTouchMove:W,onTouchEnd:U,onTouchStart:M,onMouseOver:L,onFocus:L,onMouseLeave:z,role:"button"},Re?Me(ie):p().createElement("div",{style:{height:"100%"}}));if(ye.push(at),Q&&ie.thumbnail){var Ze=v("image-gallery-thumbnail",st,{active:i===J});ge.push(p().createElement("button",{key:"thumbnail-".concat(J),type:"button",tabIndex:"0","aria-pressed":i===J?"true":"false","aria-label":"Go to Slide ".concat(J+1),className:Ze,onMouseLeave:E?o.onThumbnailMouseLeave:null,onMouseOver:function(we){return o.handleThumbnailMouseOver(we,J)},onFocus:function(we){return o.handleThumbnailMouseOver(we,J)},onKeyUp:function(we){return o.handleThumbnailKeyUp(we,J)},onClick:function(we){return o.onThumbnailClick(we,J)}},We(ie)))}if(se){var lt=v("image-gallery-bullet",ie.bulletClass,{active:i===J});fe.push(p().createElement("button",{type:"button",key:"bullet-".concat(J),className:lt,onClick:function(we){return o.onBulletClick(we,J)},"aria-pressed":i===J?"true":"false","aria-label":"Go to Slide ".concat(J+1)}))}}),{slides:ye,thumbnails:ge,bullets:fe}}},{key:"ignoreIsTransitioning",value:function(){var o=this.props.items,i=this.state,m=i.previousIndex,j=i.currentIndex,E=o.length-1;return Math.abs(m-j)>1&&!(m===0&&j===E)&&!(m===E&&j===0)}},{key:"isFirstOrLastSlide",value:function(o){return o===this.props.items.length-1||o===0}},{key:"slideIsTransitioning",value:function(o){var i=this.state,m=i.isTransitioning,j=i.previousIndex,E=i.currentIndex;return m&&!(o===j||o===E)}},{key:"isSlideVisible",value:function(o){return!this.slideIsTransitioning(o)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(o)}},{key:"slideThumbnailBar",value:function(){var o=this.state,i=o.currentIndex,m=o.isSwipingThumbnail,j=-this.getThumbsTranslate(i);m||(i===0?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:j,thumbsSwipedTranslate:j}))}},{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(o){var i=o.event,m=o.absX,j=o.dir,E=this.props,T=E.disableSwipe,K=E.stopPropagation,W=this.state,U=W.galleryWidth,M=W.isTransitioning,L=W.swipingUpDown,z=W.swipingLeftRight;if(j!==Ye&&j!==Ae&&!L||z){if(j!==Ge&&j!==Be||z||this.setState({swipingLeftRight:!0}),!T){var B=this.props.swipingTransitionDuration;if(K&&i.preventDefault(),M)this.setState({currentSlideOffset:0});else{var H=j===Be?1:-1,Q=m/U*100;Math.abs(Q)>=100&&(Q=100);var se={transition:"transform ".concat(B,"ms ease-out")};this.setState({currentSlideOffset:H*Q,slideStyle:se})}}}else L||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(o){var i=o.event,m=o.absX,j=o.absY,E=o.dir,T=this.props,K=T.stopPropagation,W=T.swipingThumbnailTransitionDuration,U=this.state,M=U.thumbsSwipedTranslate,L=U.thumbnailsWrapperHeight,z=U.thumbnailsWrapperWidth,B=U.swipingUpDown,H=U.swipingLeftRight;if(this.isThumbnailVertical()){if((E===Ge||E===Be||H)&&!B)return void(H||this.setState({swipingLeftRight:!0}));E!==Ye&&E!==Ae||B||this.setState({swipingUpDown:!0})}else{if((E===Ye||E===Ae||B)&&!H)return void(B||this.setState({swipingUpDown:!0}));E!==Ge&&E!==Be||H||this.setState({swipingLeftRight:!0})}var Q,se,ye,ge,fe,ie=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(Q=M+(E===Ae?j:-j),se=ie.scrollHeight-L+20,ye=Math.abs(Q)>se,ge=Q>20,fe=ie.scrollHeight<=L):(Q=M+(E===Be?m:-m),se=ie.scrollWidth-z+20,ye=Math.abs(Q)>se,ge=Q>20,fe=ie.scrollWidth<=z),!fe&&(E!==Ge&&E!==Ye||!ye)&&(E!==Be&&E!==Ae||!ge)){K&&i.stopPropagation();var J={transition:"transform ".concat(W,"ms ease-out")};this.setState({thumbsTranslate:Q,thumbsStyle:J})}}},{key:"handleOnThumbnailSwiped",value:function(){var o=this.state.thumbsTranslate,i=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:o,thumbsStyle:{transition:"all ".concat(i,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){var o=this.state.currentSlideOffset,i=this.props.swipeThreshold;return Math.abs(o)>i}},{key:"resetSwipingDirection",value:function(){var o=this.state,i=o.swipingUpDown,m=o.swipingLeftRight;i&&this.setState({swipingUpDown:!1}),m&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(o){var i=o.event,m=o.dir,j=o.velocity,E=this.props,T=E.disableSwipe,K=E.stopPropagation,W=E.flickThreshold;if(!T){var U=this.props.isRTL;K&&i.stopPropagation(),this.resetSwipingDirection();var M=(m===Ge?1:-1)*(U?-1:1),L=j>W&&!(m===Ye||m===Ae);this.handleOnSwipedTo(M,L)}}},{key:"handleOnSwipedTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=j;!this.sufficientSwipe()&&!i||E||(T+=o),(o===-1&&!this.canSlideLeft()||o===1&&!this.canSlideRight())&&(T=j),this.unthrottledSlideToIndex(T)}},{key:"handleTouchMove",value:function(o){this.state.swipingLeftRight&&o.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(o){var i=this.props,m=i.disableKeyDown,j=i.useBrowserFullscreen,E=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!m)switch(parseInt(o.keyCode||o.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(o);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(o);break;case 27:E&&!j&&this.exitFullScreen()}}},{key:"handleImageError",value:function(o){var i=this.props.onErrorImageURL;i&&o.target.src.indexOf(i)===-1&&(o.target.src=i)}},{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 o=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(o)))}},{key:"initSlideWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeSlideWrapperObserver=new On(te(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperWidth:j.contentRect.width},i.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(o.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(o){var i=this;o&&!o.current||(this.resizeThumbnailWrapperObserver=new On(te(function(m){m&&m.forEach(function(j){i.setState({thumbnailsWrapperHeight:j.contentRect.height},i.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(o.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 o=this.props,i=o.onScreenChange,m=o.useBrowserFullscreen,j=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,E=this.imageGallery.current===j;i&&i(E),m&&this.setState({isFullscreen:E})}},{key:"slideToIndex",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props,K=T.items,W=T.slideDuration,U=T.onBeforeSlide;if(!E){i&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var M=K.length-1,L=o;o<0?L=M:o>M&&(L=0),U&&L!==j&&U(L),this.setState({previousIndex:j,currentIndex:L,isTransitioning:L!==j,currentSlideOffset:0,slideStyle:{transition:"all ".concat(W,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"right":"left")}},{key:"slideRight",value:function(o){var i=this.props.isRTL;this.slideTo(o,i?"left":"right")}},{key:"slideTo",value:function(o,i){var m=this.state,j=m.currentIndex,E=m.isTransitioning,T=this.props.items,K=j+(i==="left"?-1:1);E||(T.length===2?this.slideToIndexWithStyleReset(K,o):this.slideToIndex(K,o))}},{key:"slideToIndexWithStyleReset",value:function(o,i){var m=this,j=this.state,E=j.currentIndex,T=j.currentSlideOffset;this.setState({currentSlideOffset:T+(E>o?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return m.slideToIndex(o,i)},25)})}},{key:"handleThumbnailMouseOver",value:function(o,i){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(o,i)}},{key:"handleThumbnailKeyUp",value:function(o,i){Un(o)&&this.onThumbnailClick(o,i)}},{key:"handleSlideKeyUp",value:function(o){Un(o)&&(0,this.props.onClick)(o)}},{key:"isThumbnailVertical",value:function(){var o=this.props.thumbnailPosition;return o==="left"||o==="right"}},{key:"addScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.addEventListener(i,o.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var o=this;Kn.forEach(function(i){document.removeEventListener(i,o.handleScreenChange)})}},{key:"fullScreen",value:function(){var o=this.props.useBrowserFullscreen,i=this.imageGallery.current;o?i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var o=this.state.isFullscreen,i=this.props.useBrowserFullscreen;o&&(i?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 o=this.props.infinite,i=this.state.currentIndex;o||this.canSlideRight()?this.slideToIndex(i+1):this.pause()}},{key:"play",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props,m=i.onPlay,j=i.slideInterval,E=i.slideDuration,T=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(j,E)),m&&o&&m(T))}},{key:"pause",value:function(){var o=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],i=this.props.onPause,m=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),i&&o&&i(m))}},{key:"isImageLoaded",value:function(o){return!!this.loadedImages[o.original]||(this.loadedImages[o.original]=!0,!1)}},{key:"handleImageLoaded",value:function(o,i){var m=this.props.onImageLoad;!this.loadedImages[i]&&m&&(this.loadedImages[i]=!0,m(o))}},{key:"renderItem",value:function(o){var i=this.state.isFullscreen,m=this.props.onImageError||this.handleImageError;return p().createElement(di,{description:o.description,fullscreen:o.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:i,onImageError:m,original:o.original,originalAlt:o.originalAlt,originalHeight:o.originalHeight,originalWidth:o.originalWidth,originalTitle:o.originalTitle,sizes:o.sizes,loading:o.loading,srcSet:o.srcSet})}},{key:"renderThumbInner",value:function(o){var i=this.props.onThumbnailError||this.handleImageError;return p().createElement("span",{className:"image-gallery-thumbnail-inner"},p().createElement("img",{className:"image-gallery-thumbnail-image",src:o.thumbnail,height:o.thumbnailHeight,width:o.thumbnailWidth,alt:o.thumbnailAlt,title:o.thumbnailTitle,loading:o.thumbnailLoading,onError:i}),o.thumbnailLabel&&p().createElement("div",{className:"image-gallery-thumbnail-label"},o.thumbnailLabel))}},{key:"render",value:function(){var o=this.state,i=o.currentIndex,m=o.isFullscreen,j=o.modalFullscreen,E=o.isPlaying,T=this.props,K=T.additionalClass,W=T.disableThumbnailSwipe,U=T.indexSeparator,M=T.isRTL,L=T.items,z=T.thumbnailPosition,B=T.renderFullscreenButton,H=T.renderCustomControls,Q=T.renderLeftNav,se=T.renderRightNav,ye=T.showBullets,ge=T.showFullscreenButton,fe=T.showIndex,ie=T.showThumbnails,J=T.showNav,De=T.showPlayButton,ot=T.renderPlayPauseButton,st=this.getThumbnailStyle(),Me=this.getSlideItems(),We=Me.slides,Re=Me.thumbnails,Je=Me.bullets,at=v("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(z),{"image-gallery-rtl":M}),Ze=p().createElement("div",{ref:this.imageGallerySlideWrapper,className:at},H&&H(),this.canSlide()?p().createElement(p().Fragment,null,J&&p().createElement(p().Fragment,null,Q(this.slideLeft,!this.canSlideLeft()),se(this.slideRight,!this.canSlideRight())),p().createElement(Fn,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},p().createElement("div",{className:"image-gallery-slides"},We))):p().createElement("div",{className:"image-gallery-slides"},We),De&&ot(this.togglePlay,E),ye&&p().createElement("div",{className:"image-gallery-bullets"},p().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},Je)),ge&&B(this.toggleFullScreen,m),fe&&p().createElement("div",{className:"image-gallery-index"},p().createElement("span",{className:"image-gallery-index-current"},i+1),p().createElement("span",{className:"image-gallery-index-separator"},U),p().createElement("span",{className:"image-gallery-index-total"},L.length))),lt=v("image-gallery",K,{"fullscreen-modal":j}),we=v("image-gallery-content",this.getThumbnailPositionClassName(z),{fullscreen:m}),Ti=v("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(z),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&M},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!W},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!W});return p().createElement("div",{ref:this.imageGallery,className:lt,"aria-live":"polite"},p().createElement("div",{className:we},(z==="bottom"||z==="right")&&Ze,ie&&Re.length>0?p().createElement(Fn,{className:Ti,delta:0,onSwiping:!W&&this.handleThumbnailSwiping,onSwiped:!W&&this.handleOnThumbnailSwiped},p().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},p().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:st,"aria-label":"Thumbnail Navigation"},Re))):null,(z==="top"||z==="left")&&Ze))}}],c&&wi(r.prototype,c),Object.defineProperty(r,"prototype",{writable:!1}),Y}(p().Component);Kt.propTypes={flickThreshold:w.number,items:(0,w.arrayOf)((0,w.shape)({bulletClass:w.string,bulletOnClick:w.func,description:w.string,original:w.string,originalHeight:w.number,originalWidth:w.number,loading:w.string,thumbnailHeight:w.number,thumbnailWidth:w.number,thumbnailLoading:w.string,fullscreen:w.string,originalAlt:w.string,originalTitle:w.string,thumbnail:w.string,thumbnailAlt:w.string,thumbnailLabel:w.string,thumbnailTitle:w.string,originalClass:w.string,thumbnailClass:w.string,renderItem:w.func,renderThumbInner:w.func,imageSet:ki,srcSet:w.string,sizes:w.string})).isRequired,showNav:w.bool,autoPlay:w.bool,lazyLoad:w.bool,infinite:w.bool,showIndex:w.bool,showBullets:w.bool,showThumbnails:w.bool,showPlayButton:w.bool,showFullscreenButton:w.bool,disableThumbnailScroll:w.bool,disableKeyDown:w.bool,disableSwipe:w.bool,disableThumbnailSwipe:w.bool,useBrowserFullscreen:w.bool,onErrorImageURL:w.string,indexSeparator:w.string,thumbnailPosition:(0,w.oneOf)(["top","bottom","left","right"]),startIndex:w.number,slideDuration:w.number,slideInterval:w.number,slideOnThumbnailOver:w.bool,swipeThreshold:w.number,swipingTransitionDuration:w.number,swipingThumbnailTransitionDuration:w.number,onSlide:w.func,onBeforeSlide:w.func,onScreenChange:w.func,onPause:w.func,onPlay:w.func,onClick:w.func,onImageLoad:w.func,onImageError:w.func,onTouchMove:w.func,onTouchEnd:w.func,onTouchStart:w.func,onMouseOver:w.func,onMouseLeave:w.func,onBulletClick:w.func,onThumbnailError:w.func,onThumbnailClick:w.func,renderCustomControls:w.func,renderLeftNav:w.func,renderRightNav:w.func,renderPlayPauseButton:w.func,renderFullscreenButton:w.func,renderItem:w.func,renderThumbInner:w.func,stopPropagation:w.bool,additionalClass:w.string,useTranslate3D:w.bool,isRTL:w.bool,useWindowKeyDown:w.bool},Kt.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(s,r){return p().createElement(gi,{onClick:s,disabled:r})},renderRightNav:function(s,r){return p().createElement(vi,{onClick:s,disabled:r})},renderPlayPauseButton:function(s,r){return p().createElement(bi,{onClick:s,isPlaying:r})},renderFullscreenButton:function(s,r){return p().createElement(mi,{onClick:s,isFullscreen:r})},useWindowKeyDown:!0};const ji=Kt})(),g})())})(Er);var Wo=Er.exports;const $o=hr(Wo);function Ko(){var e=new Map;function n(a){var l=a.root,h=a.rootMargin,f=a.threshold,g=e.get(l);g||(g=new Map,e.set(l,g));var u=JSON.stringify({rootMargin:h,threshold:f}),v=g.get(u);if(!v){var b=new Map,p=new IntersectionObserver(function(S){S.forEach(function(k){var x=b.get(k.target);x==null||x(k)})},{root:l,rootMargin:h,threshold:f});v={observer:p,entryCallbacks:b},g.set(u,v)}return{observe:function(k,x){var y,C;(y=v)==null||y.entryCallbacks.set(k,x),(C=v)==null||C.observer.observe(k)},unobserve:function(k){var x,y;(x=v)==null||x.entryCallbacks.delete(k),(y=v)==null||y.observer.unobserve(k)}}}return{getObserver:n}}var Uo="0px",Ho=[0],Vo=Ko();function qo(e){var n,a,l=(n=e==null?void 0:e.rootMargin)!=null?n:Uo,h=(a=e==null?void 0:e.threshold)!=null?a:Ho,f=I.useRef(null),g=I.useRef(null),u=I.useRef(null),v=I.useState(),b=v[0],p=v[1],S=I.useCallback(function(){var C=f.current;if(!C){p(void 0);return}var R=Vo.getObserver({root:g.current,rootMargin:l,threshold:h});R.observe(C,function(_){p(_)}),u.current=R},[l,h]),k=I.useCallback(function(){var C=u.current,R=f.current;R&&(C==null||C.unobserve(R)),u.current=null},[]),x=I.useCallback(function(C){k(),f.current=C,S()},[S,k]),y=I.useCallback(function(C){k(),g.current=C,S()},[S,k]);return[x,{entry:b,rootRef:y}]}function nn(){return nn=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},nn.apply(this,arguments)}function Go(e){var n,a=qo(e),l=a[0],h=a[1],f=!!((n=h.entry)!=null&&n.isIntersecting),g=I.useState(f),u=g[0],v=g[1];return f&&!u&&v(!0),[l,nn({},h,{isVisible:f,wasEverVisible:u})]}var Yo=100;function Xo(e){var n=e.loading,a=e.hasNextPage,l=e.onLoadMore,h=e.rootMargin,f=e.disabled,g=e.delayInMs,u=g===void 0?Yo:g,v=Go({rootMargin:h}),b=v[0],p=v[1],S=p.rootRef,k=p.isVisible,x=!f&&!n&&k&&a;return I.useEffect(function(){if(x){var y=setTimeout(function(){l()},u);return function(){clearTimeout(y)}}},[l,x,u]),[b,{rootRef:S}]}const Qo={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"/>'},Jo={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>'};var Ht=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Vt(e,n,a,l){e.addEventListener?e.addEventListener(n,a,l):e.attachEvent&&e.attachEvent("on".concat(n),function(){a(window.event)})}function Cr(e,n){for(var a=n.slice(0,n.length-1),l=0;l<a.length;l++)a[l]=e[a[l].toLowerCase()];return a}function _r(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var n=e.split(","),a=n.lastIndexOf("");a>=0;)n[a-1]+=",",n.splice(a,1),a=n.lastIndexOf("");return n}function Zo(e,n){for(var a=e.length>=n.length?e:n,l=e.length>=n.length?n:e,h=!0,f=0;f<a.length;f++)l.indexOf(a[f])===-1&&(h=!1);return h}var hn={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,"-":Ht?173:189,"=":Ht?61:187,";":Ht?59:186,"'":222,"[":219,"]":221,"\\":220},Fe={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},rn={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},ue={};for(var jt=1;jt<20;jt++)hn["f".concat(jt)]=111+jt;var ne=[],rr=!1,Rr="all",Ir=[],Mt=function(n){return hn[n.toLowerCase()]||Fe[n.toLowerCase()]||n.toUpperCase().charCodeAt(0)};function Pr(e){Rr=e||"all"}function pt(){return Rr||"all"}function es(){return ne.slice(0)}function ts(e){var n=e.target||e.srcElement,a=n.tagName,l=!0;return(n.isContentEditable||(a==="INPUT"||a==="TEXTAREA"||a==="SELECT")&&!n.readOnly)&&(l=!1),l}function ns(e){return typeof e=="string"&&(e=Mt(e)),ne.indexOf(e)!==-1}function rs(e,n){var a,l;e||(e=pt());for(var h in ue)if(Object.prototype.hasOwnProperty.call(ue,h))for(a=ue[h],l=0;l<a.length;)a[l].scope===e?a.splice(l,1):l++;pt()===e&&Pr(n||"all")}function is(e){var n=e.keyCode||e.which||e.charCode,a=ne.indexOf(n);if(a>=0&&ne.splice(a,1),e.key&&e.key.toLowerCase()==="meta"&&ne.splice(0,ne.length),(n===93||n===224)&&(n=91),n in pe){pe[n]=!1;for(var l in Fe)Fe[l]===n&&(Se[l]=!1)}}function os(e){if(typeof e>"u")Object.keys(ue).forEach(function(g){return delete ue[g]});else if(Array.isArray(e))e.forEach(function(g){g.key&&qt(g)});else if(typeof e=="object")e.key&&qt(e);else if(typeof e=="string"){for(var n=arguments.length,a=new Array(n>1?n-1:0),l=1;l<n;l++)a[l-1]=arguments[l];var h=a[0],f=a[1];typeof h=="function"&&(f=h,h=""),qt({key:e,scope:h,method:f,splitKey:"+"})}}var qt=function(n){var a=n.key,l=n.scope,h=n.method,f=n.splitKey,g=f===void 0?"+":f,u=_r(a);u.forEach(function(v){var b=v.split(g),p=b.length,S=b[p-1],k=S==="*"?"*":Mt(S);if(ue[k]){l||(l=pt());var x=p>1?Cr(Fe,b):[];ue[k]=ue[k].filter(function(y){var C=h?y.method===h:!0;return!(C&&y.scope===l&&Zo(y.mods,x))})}})};function ir(e,n,a,l){if(n.element===l){var h;if(n.scope===a||n.scope==="all"){h=n.mods.length>0;for(var f in pe)Object.prototype.hasOwnProperty.call(pe,f)&&(!pe[f]&&n.mods.indexOf(+f)>-1||pe[f]&&n.mods.indexOf(+f)===-1)&&(h=!1);(n.mods.length===0&&!pe[16]&&!pe[18]&&!pe[17]&&!pe[91]||h||n.shortcut==="*")&&n.method(e,n)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}}function or(e,n){var a=ue["*"],l=e.keyCode||e.which||e.charCode;if(Se.filter.call(this,e)){if((l===93||l===224)&&(l=91),ne.indexOf(l)===-1&&l!==229&&ne.push(l),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(y){var C=rn[y];e[y]&&ne.indexOf(C)===-1?ne.push(C):!e[y]&&ne.indexOf(C)>-1?ne.splice(ne.indexOf(C),1):y==="metaKey"&&e[y]&&ne.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(ne=ne.slice(ne.indexOf(C))))}),l in pe){pe[l]=!0;for(var h in Fe)Fe[h]===l&&(Se[h]=!0);if(!a)return}for(var f in pe)Object.prototype.hasOwnProperty.call(pe,f)&&(pe[f]=e[rn[f]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ne.indexOf(17)===-1&&ne.push(17),ne.indexOf(18)===-1&&ne.push(18),pe[17]=!0,pe[18]=!0);var g=pt();if(a)for(var u=0;u<a.length;u++)a[u].scope===g&&(e.type==="keydown"&&a[u].keydown||e.type==="keyup"&&a[u].keyup)&&ir(e,a[u],g,n);if(l in ue){for(var v=0;v<ue[l].length;v++)if((e.type==="keydown"&&ue[l][v].keydown||e.type==="keyup"&&ue[l][v].keyup)&&ue[l][v].key){for(var b=ue[l][v],p=b.splitKey,S=b.key.split(p),k=[],x=0;x<S.length;x++)k.push(Mt(S[x]));k.sort().join("")===ne.sort().join("")&&ir(e,b,g,n)}}}}function ss(e){return Ir.indexOf(e)>-1}function Se(e,n,a){ne=[];var l=_r(e),h=[],f="all",g=document,u=0,v=!1,b=!0,p="+",S=!1;for(a===void 0&&typeof n=="function"&&(a=n),Object.prototype.toString.call(n)==="[object Object]"&&(n.scope&&(f=n.scope),n.element&&(g=n.element),n.keyup&&(v=n.keyup),n.keydown!==void 0&&(b=n.keydown),n.capture!==void 0&&(S=n.capture),typeof n.splitKey=="string"&&(p=n.splitKey)),typeof n=="string"&&(f=n);u<l.length;u++)e=l[u].split(p),h=[],e.length>1&&(h=Cr(Fe,e)),e=e[e.length-1],e=e==="*"?"*":Mt(e),e in ue||(ue[e]=[]),ue[e].push({keyup:v,keydown:b,scope:f,mods:h,shortcut:l[u],method:a,key:l[u],splitKey:p,element:g});typeof g<"u"&&!ss(g)&&window&&(Ir.push(g),Vt(g,"keydown",function(k){or(k,g)},S),rr||(rr=!0,Vt(window,"focus",function(){ne=[]},S)),Vt(g,"keyup",function(k){or(k,g),is(k)},S))}function as(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ue).forEach(function(a){var l=ue[a].find(function(h){return h.scope===n&&h.shortcut===e});l&&l.method&&l.method()})}var Gt={setScope:Pr,getScope:pt,deleteScope:rs,getPressedKeyCodes:es,isPressed:ns,filter:ts,trigger:as,unbind:os,keyMap:hn,modifier:Fe,modifierMap:rn};for(var Yt in Gt)Object.prototype.hasOwnProperty.call(Gt,Yt)&&(Se[Yt]=Gt[Yt]);if(typeof window<"u"){var ls=window.hotkeys;Se.noConflict=function(e){return e&&window.hotkeys===Se&&(window.hotkeys=ls),Se},window.hotkeys=Se}Se.filter=function(){return!0};var Mr=function(n,a){var l=n.target,h=l&&l.tagName;return!!(h&&a&&a.includes(h))},cs=function(n){return Mr(n,["INPUT","TEXTAREA","SELECT"])};function us(e,n,a,l){a instanceof Array&&(l=a,a=void 0);var h=a||{},f=h.enableOnTags,g=h.filter,u=h.keyup,v=h.keydown,b=h.filterPreventDefault,p=b===void 0?!0:b,S=h.enabled,k=S===void 0?!0:S,x=h.enableOnContentEditable,y=x===void 0?!1:x,C=I.useRef(null),R=I.useCallback(function(_,A){var D,$;return g&&!g(_)?!p:cs(_)&&!Mr(_,f)||(D=_.target)!=null&&D.isContentEditable&&!y?!0:C.current===null||document.activeElement===C.current||($=C.current)!=null&&$.contains(document.activeElement)?(n(_,A),!0):!1},l?[C,f,g].concat(l):[C,f,g]);return I.useEffect(function(){if(!k){Se.unbind(e,R);return}return u&&v!==!0&&(a.keydown=!1),Se(e,a||{},R),function(){return Se.unbind(e,R)}},[R,e,k]),C}Se.isPressed;const Dr=I.createContext({open:!1,toggleOpen:e=>{}});function ds({children:e}){const[n,a]=I.useState(!1),l=f=>{a(f??!f)},h=I.useMemo(()=>({open:n,toggleOpen:l}),[n]);return t.jsx(Dr.Provider,{value:h,children:e})}function fn(){return I.useContext(Dr)}const je={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},hs=e=>mt(async()=>{const{data:n}=await e.get(je.categoriesPath);return Array.isArray(n)?n:[]},{manual:!0});function fs(e,n){const a={sortBy:"popularity",sortDirection:"desc",showResources:"true",...e,menu:void 0},{onFilterChange:l,onSearchSelect:h=u=>{n.onFilterChange({...a,keyword:u.title})},emptyCategory:f}=n;!a.category&&!f&&(a.category="All");const g=u=>{const v={...a,...u};l(Ut(v,b=>b===""||b===void 0))};return{filters:e,cleanFilter:u=>{const v=u?Ut(a,(b,p)=>u.includes(p)):{};l(Ut(v,b=>b===""||b===void 0))},handleActiveMenu:u=>{u!==e.menu&&l({menu:u})},handleSort:(u,v)=>{g({sortBy:u,sortDirection:v||u==="nameAsc"?"asc":"desc"})},handleKeyword:u=>{g({category:void 0,keyword:u||void 0})},handlePrice:u=>{g({price:u===e.price?void 0:u})},handleCategory:u=>{g({category:u===e.category?"":u})},handleDeveloper:u=>{g({owner:u||void 0})},handlePage:u=>{g({currentPage:u})},handleSwitchShowResources:u=>{g({showResources:u})},handleSearchSelect:u=>{h(u)}}}const ps=(e,n,a)=>e&&n||!a,Lr=e=>[{name:e("sort.popularity"),value:"popularity"},{name:e("sort.lastPublished"),value:"publishAt"}],zr=(e,n,a)=>{var l,h;const f=Ai(e),g=Wi(f.search);if((l=$i(e,{strict:!0}))!=null&&l.endsWith(".gif"))return g.imageFilter?Ki({...f,search:""}):e;if(g.imageFilter)return e;const u=a||((h=window.blocklet)==null?void 0:h.version),{w:v,h:b}=typeof n=="object"?{w:n.w,h:n.h}:{w:n,h:n};return ln(e,{...v||b?{imageFilter:"resize",w:v,h:b}:{},v:u})},ms=e=>[{name:e("blocklet.free"),value:"free"},{name:e("blocklet.payment"),value:"payment"}],gs=(e=[],n="en")=>e.map(a=>({name:a.locales[n]||a.locales.en,value:a._id})),vs=(e,n)=>e==null?void 0:e.replace(/{(\w*)}/g,(a,l)=>n.hasOwnProperty(l)?n[l]:""),bs=()=>window.innerWidth<=600,ys={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"},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}"'}},xs={common:{title:"Blocklet 商店",searchStore:"搜索 Blocklet",showResources:"显示扩展",price:"价格",category:"类别",categories:"类别",resourceType:"资源类型",clear:"清除",cancel:"取消",search:"搜索",fetchError:"获取数据失败, 请稍后再试"},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}” 的所有搜索结果"}},Xt={en:Gn(ys),zh:Gn(xs)},Nr=(e,n)=>{const a={};return e&&(a["x-blocklet-server-version"]=e),n&&(a["x-blocklet-store-version"]=n),a},ws=e=>(n,a)=>{const l=Xt[e]?Xt[e][n]:Xt.en[n];return vs(l,a)||n},Fr={errors:{fetchCategoriesError:null},loadings:{fetchCategoriesLoading:!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:()=>{}}},Br=I.createContext(Fr),{Provider:Ss,Consumer:za}=Br;function ks(e){const{locale:n="zh",filters:a={},serverVersion:l="",onFilterChange:h=()=>{},minItemWidth:f=350,queryFilter:g=!0,layout:u={},wrapChildren:v=te=>te,extraFilter:b=te=>te,baseSearch:p=!1,fetchCategoryDelay:S=0,showResourcesSwitch:k=!1,showCategory:x=!0,tagFilters:y=[],children:C,storeVersion:R,onSearchSelect:_=()=>{},endpoint:A,blockletRender:D}=e,$=Nr(l,R),G=I.useMemo(()=>fr({baseURL:A,headers:$}),[A]),Z=fs(a,{onFilterChange:h,emptyCategory:!u.showExplore,onSearchSelect:_}),[V,le]=I.useState(""),{data:de=[],error:Te,loading:Pe,run:xe}=hs(G),ce=I.useMemo(()=>{const te=zo(de,[re=>re.name],["asc"]),be=te.findIndex(re=>re.name==="All"||re.locales.en==="All");return be>-1?[{...te[be],_id:"All"},...te.slice(0,be),...te.slice(be+1)]:te},[de]),Oe=I.useCallback(ws(n),[n]),he=I.useMemo(()=>gs(ce,n),[ce,n]),N=ms(Oe),ee={search:Z,errors:{fetchCategoriesError:Te},loadings:{fetchCategoriesLoading:Pe},extraFilter:b,endpoint:A,queryFilter:g,layout:{showExplore:u.showExplore??!1,showCategory:u.showCategory??!0,showTitle:u.showTitle??!0,showSearch:u.showSearch??!0},minItemWidth:f,wrapChildren:v,t:Oe,storeVersion:R,serverVersion:l,selectedCategory:Z.filters.category||(u.showExplore?"":"All"),categoryList:ce,blockletRender:D,locale:n,categoryOptions:he,priceOptions:N,storeApi:G,baseSearch:p,showResourcesSwitch:k,showCategory:x,tagFilters:y,onFilterChange:h,getCategoryLocale:te=>{if(!te)return null;const be=de.find(re=>re._id===te||re.locales.en==="All");return be?be.locales[n]||be.locales.en:null},get developerName(){return V},updateDeveloperName:le};return I.useEffect(()=>{setTimeout(xe,S||0)},[A,xe,S]),t.jsx(Ss,{value:ee,children:C})}function ve(){return I.useContext(Br)||Fr}function Ar({children:e,onClick:n,size:a=32,...l}){return t.jsx(ke,{...l,onClick:n,variant:"outlined",sx:[{minWidth:a,height:a,p:0,borderColor:"divider","&:hover":{borderColor:"divider"},borderRadius:2,color:"text.secondary"},...Array.isArray(l.sx)?l.sx:[l.sx]],children:e})}function Tt(e,n){return e===void 0?n:e}function pn({xs:e,sm:n,md:a,lg:l,xl:h,exact:f}){const g=tt(),u=Ke(g.breakpoints.down("sm")),v=Ke(g.breakpoints.between("sm","md")),b=Ke(g.breakpoints.between("md","lg")),p=Ke(g.breakpoints.between("lg","xl"));if(f)return u?e||null:v?n||null:b?a||null:p?l||null:h||null;let S=e;return u||(S=Tt(n,S),v)||(S=Tt(a,S),b)||(S=Tt(l,S),p)?S:Tt(h,S)}function js({children:e}){const{open:n,toggleOpen:a}=fn();return t.jsx(pn,{xs:t.jsx(Fi,{open:n,onClose:()=>a(!1),children:e}),md:t.jsx(X,{children:e})})}const Ts=I.forwardRef(({loading:e,disabled:n,...a},l)=>t.jsx(ke,{ref:l,disableElevation:!0,disabled:n||e,...a,sx:[{borderRadius:"4px"},...Array.isArray(a.sx)?a.sx:[a.sx]],startIcon:e&&t.jsx(Ie,{size:"1em"})}));function Wr({value:e,options:n,onChange:a,placeholder:l,...h}){var f;const g=I.useRef(null),u=tt(),[v,b]=I.useState(!1),[p,S]=I.useState(e!==null?e:""),k=Ke(u.breakpoints.down("sm"));I.useEffect(()=>{S(e!==null?e:"")},[e]);const x=I.useCallback(()=>{b(!1)},[]),y=I.useCallback(()=>{b(!0)},[]);function C(_){S(_.value),a(_.value),k&&x()}function R(_){return _===p}return t.jsxs(t.Fragment,{children:[t.jsxs(Os,{ref:g,onClick:y,variant:"outlined",size:"medium",className:["my-select__selector",Ui(p)?"":"my-select__selector--active"].join(" "),sx:{minWidth:"auto",color:"text.primary",borderRadius:"8px"},...h,children:[((f=n.find(_=>_.value===p))==null?void 0:f.name)||l,t.jsx(Hi,{className:"my-select__arrowdown",component:Or,sx:{width:18,height:18}})]}),t.jsx(Vi,{open:v,anchorEl:g.current,transition:!0,sx:{zIndex:"9999"},children:({TransitionProps:_,placement:A})=>t.jsx(qi,{..._,style:{transformOrigin:A==="bottom"?"center top":"center bottom"},children:t.jsx(Gi,{children:t.jsx(Yi,{onClickAway:x,children:t.jsx(Es,{autoFocusItem:v,onMouseEnter:y,onMouseLeave:x,children:n.map(D=>t.jsxs(Ct,{onClick:()=>C(D),sx:{fontSize:14},children:[t.jsx(Xi,{sx:{mr:1,fontSize:16,visibility:R(D.value)?"visible":"hidden"}}),D.name]},D.value))})})})})})]})}const Os=He(Ts)`
|
|
2
2
|
border: 1px solid #f0f0f0;
|
|
3
3
|
padding: 6px 8px 6px 12px;
|
|
4
4
|
font-weight: ${e=>e.theme.typography.fontWeightRegular};
|