PageSourceSearch

https://www.evertonfc.com/_nuxt/BOvIpar-.js

js evertonfc.com collected 2026-09-24 08:54:02 UTC 2,119,309 bytes, 186 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Cqk1MB6Q.js","./BBvnl8Jx.js","./TxMa1gx2.js","./6oG9KMSQ.js","./B5D_m0Is.js","./CATxlt2j.js","./CXTOca8g.js","./0xmjySIm.js","./ghde6Rcn.js","./DxqtAkWS.js","./BRRDAbAA.js","./2tUvKl7o.js","./KX67CwU6.js","./DMBRUS9p.js","./ponxGQRy.js","./Cmf90eAT.js","./DhOWJ3tu.js","./WUj_y4n6.js","./CrX2__Gh.js","./T-kpnD9n.js","./DA0pkXRu.js","./C8oKskU6.js","./u49kvY5k.js","./D_6K3OQ2.js","./CHvxk49Y.js","./CbRtnKkD.js","./B5F8YbeE.js","./Dn5pMltd.js","./CoY53QKV.js","./L9ZTUhdB.js","./h5WniSds.js","./DuWDUTS9.js","./Ke6ZHzUt.js","./DuNDzYR7.js","./DcETsEPX.js","./uIVzBVq8.js","./BK1JsQ3s.js","./0o03n4g6.js","./D1qB2YTK.js","./BLutezMZ.js","./VulgifXH.js","./Lb2AdU3y.js","./a5C_4GJn.js","./DH3kRB3Y.js","./BxiTlkte.js","./G8Pzfl_k.js","./DZQilzRx.js","./DwrZnp9h.js","./BnlhXjV8.js","./DHcQsujB.js","./BkjK94pn.js","./C3jzPuBF.js","./DQg5aFkK.js","./BZrtwGVU.js","./NM1GC87g.js","./BPRuAw7r.js","./Bfg9wZ9C.js","./DytbtGs3.js","./LV8qwQ36.js","./DNPvvq3B.js","./DWQAd1qK.js","./D4o5CYcd.js","./DwGLHWNq.js","./DlgkAHsZ.js","./DrdNOTI1.js","./nJgG8Gqe.js","./BoZv-HWX.js","./brGuT7Qt.js","./DxHX5CmE.js","./eMkMUelK.js","./DBNL-TqI.js","./D0S4xsqV.js","./NRpdhhxT.js","./CU1EAzDZ.js","./Bn9T1owG.js","./Bxu4O--v.js","./D2cbqEaR.js","./DGA_1hxs.js","./Tahjk05_.js","./D-Bp_d2y.js","./BiT9M-q4.js","./DIm25t6e.js","./X0QhiQDm.js","./CsBiNyeH.js","./CWFnGfFG.js","./oa405lJ3.js","./DA_DKQS6.js","./BCg6577M.js","./BqHqNXyI.js","./C1-z7Fpv.js","./jBX2fcmt.js","./BnANj67R.js","./-cvUwFTe.js","./BLuJ9wvD.js","./C62F_NuA.js","./BisQtGjO.js","./CR4GStut.js","./DkTcVhXm.js","./BQrSKkRl.js","./CYzz21ph.js","./CI5uawzt.js","./DFn4glqa.js","./DUdsBao0.js","./C8RySSZ6.js","./DYJrLcPL.js","./U3PF_xTb.js","./Czpva53O.js","./DgZNUjXu.js","./Dqr294DH.js","./Dgpq-XDq.js","./B0TQAewN.js","./BmJl15tH.js","./DXQTuqfs.js","./D_gM3dtx.js","./BO9K324L.js","./BkYhAVwA.js","./KKdXbBoF.js","./CK1HOAmC.js","./BP2Z9rZf.js","./CynSmQWN.js","./CfUHw9gM.js","./DyUPRNaZ.js","./ngepZCCt.js","./JFXhN4KH.js","./DD0indnI.js","./D10IwYPy.js","./CdI7aHyh.js","./ziQBhkZ4.js","./BsfFIrpT.js","./BS5yw-fT.js","./DsnKB4oS.js","./ZYIDhy2R.js","./Dp2mpVBZ.js","./DLsNlIDy.js","./BJAAyEu2.js","./CtiLEyOL.js","./DorLGXp_.js","./MiedKl4b.js","./Dyll13kA.js","./C5TLEif0.js","./BwcZI294.js","./B3DJBHuP.js","./opI0boAZ.js","./DlQ6jbKq.js","./D3PTOf8M.js","./DYCXDERp.js","./Dk6x4fru.js","./veU5Rxy8.js","./BRoqBvQv.js","./BChEkDfF.js","./Dh5F6hDF.js","./CAOfHmdT.js","./DsmRlyhK.js","./CPfO20CH.js","./BjdxBe_l.js","./DMMjVHYg.js","./A2RdQar0.js","./B3NALRDt.js","./DSCFLWEZ.js","./CtU1c8FU.js","./JGc7ylXy.js","./7wOP3laT.js","./B2MWwVPl.js","./CMcOPhGw.js","./CuQbfl9f.js","./4y3R1TYR.js","./DOJQL8sg.js","./DWbxYIS0.js","./BveHWMGj.js","./BfMoKtmW.js","./CMpVDC7E.js","./BoAmWqdK.js","./wTJh7DIL.js","./Cl-l-KHn.js","./D4uadqLu.js","./Cuh4Lo_Z.js","./BnCj39sI.js","./BUVrSmOX.js","./otH78XZw.js","./B8Lev3Ct.js","./CynL57u_.js","./BTxDON4q.js","./CR2MLR19.js","./C6DGBPje.js","./bRbHAPSa.js","./D0qOrRxb.js","./CSFPIZo2.js","./DSpqFs6y.js","./BPCRspvq.js","./IY3pdOTn.js","./rsjTv6BH.js","./B5gXDnuJ.js","./t2s0aOoC.js","./R5ilkppq.js","./D6eprRmh.js","./Cm1L2i5B.js","./Bv9wSDyS.js","./CJf_yawd.js","./5hZW8KbN.js","./DSO6cRvp.js","./Kt1X6Q1i.js","./CR6UjR1H.js","./DCm-sVLf.js","./RCRsoGu-.js","./DuRoBGDN.js","./DzZSduWW.js","./-_Zk2oH_.js","./DOxcuHmL.js","./DfGu4uut.js","./DJnxxk2x.js","./0__WfYOk.js","./CgRXflR5.js","./BQ1iXeJF.js","./Qcwn4AKM.js","./DDgIlGvp.js","./BOTZHga1.js","./Dt5ty_Xz.js","./DMUnUs2u.js","./DS62nxTn.js","./DNtBxlhb.js","./-FgaDukO.js","./D9W_7jWs.js","./sVCQxGI7.js","./B3Vy59Yc.js","./DtBZm8J_.js","./DY2FemuO.js","./BsNokUZb.js","./Cmewo1kB.js","./YrogRo5C.js","./CBTw1lVQ.js","./G0FEpkLs.js","./eY0xOoUJ.js","./B3QbXJB_.js","./Cr8r7EmQ.js","./DGbiujwb.js","./Dopicqbc.js","./B6AP80N6.js","./DMHy1HIP.js","./B-NwQgOc.js","./DC3gARZ_.js","./LDEA1NKh.js","./DsfqZu7C.js","./ecpILyYT.js","./BWbnsAWK.js","./HbTWvW0R.js","./HmQ072KC.js","./Ck9M33Fo.js","./dsFPck30.js","./gmqWS3wu.js","./DAhh6ZbS.js","./T9sYWeuZ.js","./B_Flkp1n.js","./ByTmRU_X.js","./C_JKFYfc.js","./8f9yGzXJ.js","./BJgprpQb.js","./OYqIAryj.js","./CnNGbR0I.js","./D3YYlmSX.js","./D1sFCR0v.js","./B7cSw4tJ.js","./CXzZEbBn.js","./B_W755aD.js","./CMKai6Gx.js","./Z7sNdVjf.js","./DxLAu4-6.js","./D09ZVUUv.js","./DAFjPhiq.js","./CuyYR16E.js","./BMU37H8d.js","./DMOYLXtl.js","./wke-Mo_i.js","./BK_Pdr1N.js","./D3FHRBbR.js","./D3O04-2K.js","./NJ47y_Ay.js","./7yx96TrV.js","./DpfnP99H.js","./DJeC-cCs.js","./7qCoEQtw.js","./B_JX-k99.js","./C44O2s_t.js","./DgbYqpuZ.js","./BLeDgzJl.js","./CKdwN48O.js","./CADYQYH1.js","./DJjtfDo2.js","./Bfcshuj_.js","./Crs7UY4h.js","./Bk48nTXv.js","./P1DaFwKK.js","./DWR3Ls1H.js","./B3ZlsMVs.js","./DoFcK7mv.js","./BP3Vb-XU.js","./BfIDqx2X.js","./U-ds3khg.js","./BsL43pjC.js","./96Fh9GAc.js","./6DB7RJA6.js","./NWieElay.js","./BF6XBAGH.js","./CWsM7OdP.js","./BeOnWukL.js","./DdLGhc-Z.js","./DUOMQPis.js","./BnRpeXHB.js","./BgmgDhGF.js","./9gN3hfQY.js","./BMsZnJzK.js","./D7BfDxpw.js","./ifFgOBUo.js","./CyDWrsLO.js","./CByj_yDB.js","./z6gGmUvM.js","./U0ZWhNQ1.js","./DajjiLJj.js","./C-A66mxZ.js","./DMn7o05J.js","./_r5JPvyj.js","./D4IPu9Ux.js","./DVcnTUke.js","./BBe4DUPp.js","./DHQNjvT3.js","./BKK26sfG.js","./-mHwgjKJ.js","./Dh46dJ4f.js","./CbnI_Fzr.js","./D4WFJFs6.js","./DlUkOY8t.js","./BjMIIkwK.js","./tQV7wd6j.js","./lBrfQD3r.js","./LRSmrhF_.js","./BFnN0jPt.js","./BXpfWEj0.js","./Chr6qsTD.js","./v1efnzRT.js","./8r0aHsiB.js","./Dtqm_7Bk.js","./CQrPv4hL.js","./D9jp-oC_.js","./ClOouNTk.js","./BQeoLWzl.js","./Bbdd-JXl.js","./p8d7Ihkg.js","./CabVcwEt.js","./Bq5p669-.js","./BxnRX4OZ.js","./DD73qb8y.js","./BksMXAyx.js","./B5PagJjs.js","./C3v1Q8WF.js","./X69ILiCm.js","./E5gV5mtw.js","./DKoUoIAq.js","./CdNUkNWH.js","./CyKTreWs.js","./FbRoShhv.js","./Dy1HQYV1.js","./F9GNTXlm.js","./D0MpS0_F.js","./D9iJ89TH.js","./Chm3fctU.js","./CL1yy_Ag.js","./QLtZAnfz.js","./CDVPpm85.js","./bYeFhUMB.js","./bERVxMlL.js","./BUHJjINd.js","./DDosMOeQ.js","./B6JV-_8i.js","./CKYOUIbr.js","./zD4_iBcH.js","./D9Or3_Z4.js","./B9axX4_X.js","./DDL7FMkR.js","./qF4ybQJ9.js","./BHYkWcvp.js","./m47Z6v4V.js","./CnvDSyHH.js","./fYgXaT_9.js","./BMsYftIo.js","./C6Gb1xoQ.js","./06nqJspW.js","./C9jAzeUi.js","./CiqrfAwS.js","./Dvztx-lI.js","./T-ngdBKh.js","./Box1Uc4S.js","./C1LR-ZRa.js","./Ct1s-xq
1E.js","./BfrqlPTi.js","./DGXNggEW.js","./DULQEJAN.js","./DEjTzScx.js","./CRXHKUHc.js","./DAn3ISSD.js","./CmYqkb3N.js","./jAkfultb.js","./DpcdYH8D.js","./Cx38iQP2.js","./B4Xv3R0A.js","./m1LUYJKo.js","./B6fiogtU.js","./DW-bLjdA.js","./8qVzRPwr.js","./BlJrMwWW.js","./rTfQ09C2.js","./CQbYgRVG.js","./Dgx_WpT0.js","./B4gTL1vA.js","./ClzwY0Mi.js","./CobCNqYE.js","./CJp811xb.js","./CBeFbWhC.js","./CM7Eh6yd.js","./Djdqy5mI.js","./Ca5A6gAQ.js","./C0n_bDDq.js","./vxZBwz-a.js","./WxHaH3YD.js","./Zxktxmsy.js","./D33GTM4-.js","./DcT5MHja.js","./JoHkF_Vu.js","./Bt5BhgfM.js","./D2-DgYs5.js","./D8yNod9R.js","./CuQHCtoI.js","./DZx_H7TJ.js","./CbErAtqa.js","./B5Ptgxfn.js","./BceseO_s.js","./DpJGpbd2.js","./t4z9mCOZ.js","./CyHVQNLB.js","./DXEQolQh.js","./BXIuR44z.js","./ayF7YUuZ.js","./BV4X9c94.js","./sM4TGVxL.js","./Be4miGR8.js","./Dy4dfswz.js","./lo-xwTd2.js","./C3FZURtX.js","./D-gCvi-g.js","./IzpsQ-gF.js","./DMdsR_ma.js","./Cg7Q78uO.js","./D_OSgujo.js","./DuVI144u.js","./DStNOAFF.js","./4J0XQcTz.js","./BaRteOtQ.js","./HZLChFhR.js","./DYublg-8.js","./CI1X7ely.js","./OUuAI-Mx.js","./Bbs0AvQI.js","./CZiyyIAN.js","./BRmrkSoq.js","./Cn4nWcjw.js","./BDMfhPb2.js","./DnPMSObo.js","./CZhfy5wS.js","./x-vwS2ve.js","./6U2JWT8Q.js","./CBfU6-Rl.js","./DI4UdM0n.js","./ByPQc9OE.js","./C20O5XJb.js","./Cg1Ka9rO.js","./BuylMeY7.js","./C4MU_n5c.js","./1SbxJi-b.js","./CSFV3AGy.js","./D04y33ZW.js","./CdrylI5W.js","./lDNd3tO0.js","./HHli0uSp.js","./CDu8V8RA.js","./DNXWsPcE.js","./Dsgm_ARS.js","./B41WNpgF.js","./D7wk2pSd.js","./Bi-d2qJW.js","./COyf-h1C.js","./sASePhqE.js","./Dz9vqvYV.js","./DJdeORGL.js","./BZ9NMbP9.js","./CcEoaTXr.js","./CAkCHi_M.js","./CVXcX1n8.js","./8NaPqC45.js","./Bc8pP_uI.js","./C93LYBVH.js","./CohS7_5o.js","./aTciWiJr.js","./55DrqOcA.js","./CzyM6lXm.js","./DSmdP4Cl.js","./BVHsF32g.js","./L02Gl-4G.js","./DmdZ7UCV.js","./CMadl9I2.js","./D2_N2tgK.js","./Ct0csDqW.js","./QvexGBVd.js","./8g8QOVk1.js","./CV4nApoX.js","./CwXuLHS1.js","./DHO7jQZA.js","./CXDwE_9w.js","./DICpSJok.js","./DFzAcmsz.js","./BbYINwXO.js","./T9HZyCgG.js","./CHMemDtb.js","./ir7ofweA.js","./DRNeoxgN.js","./DacYiF9-.js","./C2GBqM12.js","./DmyFoUER.js","./BFY1j8mM.js","./KSEmOeVp.js","./D-mBqycC.js","./B6FO19cF.js","./n9l18ywm.js","./BNZgOPfe.js","./ZKLD4kLd.js","./BQ0LUcCW.js","./m5hI-X0L.js","./DIXQimI-.js","./DLsrSjKL.js","./DOi_vcxq.js","./Im7xvEBQ.js","./_VtJZa80.js","./DItNRaiA.js","./BDfwb1ZY.js","./CygayQHC.js","./Bm_eVqXH.js","./C1pFnX_r.js","./B5jedfKj.js","./CAK8oHyG.js","./BHJvsKmO.js","./CEkuniZG.js","./BmUDYhbY.js","./CTuVX9zp.js","./DRpy19Mw.js","./ZnsGajNC.js","./hFefqN6n.js","./DIIWb9xR.js","./B43GDA6o.js","./DvPiIWvB.js","./Byrxyzxl.js","./Beng_8c6.js","./DEtZI8BG.js","./Dcbufa2Y.js","./7gTON9l2.js","./nL7Wb3fd.js","./BhCq1Rmr.js","./-Meu-XiO.js","./BKFCLmWl.js","./BZfd0TaV.js","./D2kMvwHH.js","./D-NH5XiY.js","./PCrRjLnK.js","./lzPDJ1wh.js","./C5M-D6XE.js","./CiziKZLB.js","./Km5WTaov.js","./DqPLwMmB.js","./DxGROqyC.js","./BQMoowFP.js","./D8SNNrgC.js","./Bnu5YsPo.js","./Cp1flhgl.js","./BoLtGW_n.js","./DFZp6DG-.js","./JhFcVp-0.js","./BEFF8T2V.js","./DIi-6-ss.js","./OgCEolVo.js","./Cn4LOe8K.js","./B6a7AyRC.js","./Gu9CUr0v.js","./QA38WEPG.js","./5BylW022.js","./yh6Ov4_X.js","./DREwettd.js","./B_A0vLa5.js","./Ba4nYtLU.js","./CXo6LA2m.js","./CTLd3RhJ.js","./BVjNM_3O.js","./Di_ZSwxJ.js","./-T43X7eK.js","./BhKNZEq5.js","./c17kHzQL.js","./Dsp8puEh.js","./pXNiN-F6.js","./BOmWFPu6.js","./CEN5fJ7u.js","./BCCs3xiM.js","./C2rsoNtt.js","./Co3R6bOw.js","./D6ajWeEl.js","./mJWihS_0.js","./Bg46DSGG.js","./CzWWmUy6.js","./Dmkodwy4.js","./DrwgJGYp.js","./X7TrM9La.js","./CMgTb2mK.js","./BgN1BYyK.js","./DPA7IjXa.js","./BbSQjLyO.js","./CsYpcI4x.js","./ChQKwILV.js","./BufoK4ft.js","./Cx2owNVv.js","./Dx0wFLNa.js","./DNa-WlKf.js","./5cGYuwBl.js","./Bs3nDHdw.js","./GjXW5rqe.js","./DGJ3Vv4G.js","./CVXUKje6.js","./BT4NDuTY.js","./kRJonVhE.js","./BRiIKV48.js","./BrQVkaKf.js","./CGyvUjWi.js","./BNoa_F1s.js","./BeTm0CET.js","./B3YttNSY.js","./CEIdCbFF.js","./CvAXY33p.js","./CijmkwQ4.js","./Cb3Cgzn4.js","./S0IKgZdF.js","./Bk9V39zY.js","./_cDmEPjK.js","./CNWZWeJw.js","./D2414lDc.js","./BFVUvtZ_.js","./BT67aI-O.js","./DnuPc97V.js","./DB1vnNFR.js","./CkbNlJ1E.js","./DpxlRAaI.js","./t7S3yzbj.js","./Cw01Hl7v.js","./DMeyf7yj.js","./DzePmzYj.js","./CWcnLogZ.js","./DLTrf7ao.js","./Ea71kKDq.js","./C46Wo7jz.js","./BZAWeHdA.js","./Dc1aVXZ-.js","./D9zKrff7.js","./DOYbqOv5.js","./CbSZ5_Iy.js","./DT-PTuK8.js","./SdEuD1NS.js","./CtuQIu6q.js","./BE64ssnB.js","./Cr6jNuWS.js","./CcLFmNvB.js","./DHn3R58v.js","./D9__JhAa.js","./DLPEr0RW.js","./B6YpSdTW.js","./1qP6TDJK.js","./KjCyZ0tU.js","./BToTjjq5.js","./DC9iEb13.js","./CEj-8iVi.js","./DhtgS-51.js","./Ctsawdch.js","./BPDS1gRn.js","./kAf6ikRy.js","./2aCYKs93.js","./DebUP8uC.js","./D0T3W1WQ.js","./BEXPBEnt.js","./BrYj-Unz.js","./BlNQKQCH.js","./Df8Xjti-.js","./CWaqAHm_.js","./BfuoLFIv.js","./B8VKZg7c.js","./CJbqopYI.js","./JrMvRfeZ.js","./Ltivxco8.js","./DI96NT6P.js","./CFmBID35.js","./jSDDX4Fr.js","./wgyolHp1.js","./_27yrnr0.js","./DJTENDi6.js","./rsbR2YUs.js","./CiuWQ_V3.js","./b08TnECE.js"])))=>i.map(i=>d[i]);
2var kl=Object.defineProperty;var Ol=(e,t,r)=>t in e?kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ni=(e,t,r)=>Ol(e,typeof t!="symbol"?t+"":t,r);function _mergeNamespaces(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in e)){const d=Object.getOwnPropertyDescriptor(o,c);d&&Object.defineProperty(e,c,d.get?d:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const r of document.querySelectorAll('link[rel="modulepreload"]'))t(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0})}function t(r){if(r.ep)return;r.ep=!0;const o=(function(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d})(r);fetch(r.href,o)}})();var define_global_default$3={};
vendor: 4,312 bytes, lines 2-6
2/**
3* @vue/shared v3.5.38
4* (c) 2018-present Yuxi (Evan) You and Vue contributors
5* @license MIT
6**/function makeMap(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove$1=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},hasOwnProperty$2=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$2.call(e,t),isArray$2=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isDate$1=e=>toTypeString(e)==="[object Date]",isRegExp=e=>toTypeString(e)==="[object RegExp]",isFunction$1=e=>typeof e=="function",isString$2=e=>typeof e=="string",isSymbol=e=>typeof e=="symbol",isObject$3=e=>e!==null&&typeof e=="object",isPromise=e=>(isObject$3(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject$2=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString$2(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),isBuiltInDirective=makeMap("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),cacheStringFunction=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},camelizeRE=/-\w/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,t=>t.slice(1).toUpperCase())),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},def=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber=e=>{const t=isString$2(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis$2;const getGlobalThis=()=>_globalThis$2||(_globalThis$2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:define_global_default$3!==void 0?define_global_default$3:{}),identRE=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function genPropsAccessExp(e){return identRE.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function genCacheKey(e,t){return e+JSON.stringify(t,(r,o)=>typeof o=="function"?o.toString():o)}const PatchFlags={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},PatchFlagNames={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},ShapeFlags={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},SlotFlags={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},slotFlagsText={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},GLOBALS_ALLOWED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",isGloballyAllowed=makeMap(GLOBALS_ALLOWED),isGloballyWhitelisted=isGloballyAllowed,range=2;
6function generateCodeFrame(e,t=0,r=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(r=Math.max(0,Math.min(r,e.length))))return"";let o=e.split(/(\r?\n)/);const c=o.filter((b,m)=>m%2==1);o=o.filter((b,m)=>m%2==0);let d=0;const f=[];for(let b=0;b<o.length;b++)if(d+=o[b].length+(c[b]&&c[b].length||0),d>=t){for(let m=b-range;m<=b+range||r>d;m++){if(m<0||m>=o.length)continue;const S=m+1;f.push(`${S}${" ".repeat(Math.max(3-String(S).length,0))}|  ${o[m]}`);const w=o[m].length,T=c[m]&&c[m].length||0;if(m===b){const A=t-(d-(w+T)),C=Math.max(1,r>d?w-A:r-t);f.push("   |  "+" ".repeat(A)+"^".repeat(C))}else if(m>b){if(r>d){const A=Math.max(Math.min(r-d,w),1);f.push("   |  "+"^".repeat(A))}d+=w+T}}break}return f.join(`
7`)}function normalizeStyle(e){if(isArray$2(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],c=isString$2(o)?parseStringStyle(o):normalizeStyle(o);if(c)for(const d in c)t[d]=c[d]}return t}if(isString$2(e)||isObject$3(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(r=>{if(r){const o=r.split(propertyDelimiterRE);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function stringifyStyle(e){if(!e)return"";if(isString$2(e))return e;let t="";for(const r in e){const o=e[r];(isString$2(o)||typeof o=="number")&&(t+=`${r.startsWith("--")?r:hyphenate(r)}:${o};`)}return t}function normalizeClass(e){let t="";if(isString$2(e))t=e;else if(isArray$2(e))for(let r=0;r<e.length;r++){const o=normalizeClass(e[r]);o&&(t+=o+" ")}else if(isObject$3(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function normalizeProps$1(e){if(!e)return null;let{class:t,style:r}=e;return t&&!isString$2(t)&&(e.class=normalizeClass(t)),r&&(e.style=normalizeStyle(r)),e}const HTML_TAGS="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",SVG_TAGS="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",MATH_TAGS="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",VOID_TAGS="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",isHTMLTag=makeMap(HTML_TAGS),isSVGTag$1=makeMap(SVG_TAGS),isMathMLTag=makeMap(MATH_TAGS),isVoidTag=makeMap(VOID_TAGS),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs),isBooleanAttr=makeMap(specialBooleanAttrs+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function includeBooleanAttr(e){return!!e||e===""}const unsafeAttrCharRE=/[>/="'\u0009\u000a\u000c\u0020]/,attrValidationCache={};function isSSRSafeAttrName(e){if(attrValidationCache.hasOwnProperty(e))return attrValidationCache[e];const t=unsafeAttrCharRE.test(e);return t&&console.error(`unsafe attribute name: ${e}`),attrValidationCache[e]=!t}const propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},isKnownHtmlAttr=makeMap("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,c
7olspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),isKnownSvgAttr=makeMap("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode
7-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),isKnownMathMLAttr=makeMap("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function isRenderableAttrValue(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const escapeRE=/["'&<>]/;function escapeHtml(e){const t=""+e,r=escapeRE.exec(t);if(!r)return t;let o,c,d="",f=0;for(c=r.index;c<t.length;c++){switch(t.charCodeAt(c)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}f!==c&&(d+=t.slice(f,c)),f=c+1,d+=o}return f!==c?d+t.slice(f,c):d}const commentStripRE=/^-?>|<!--|-->|--!>|<!-$/g;function escapeHtmlComment(e){return e.replace(commentStripRE,"")}const cssVarNameEscapeSymbolsRE=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function getEscapedCssVarName(e,t){return e.replace(cssVarNameEscapeSymbolsRE,r=>t?r==='"'?'\\\\\\"':`\\\\${r}`:`\\${r}`)}function looseCompareArrays(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=looseEqual(e[o],t[o]);return r}function looseEqual(e,t){if(e===t)return!0;let r=isDate$1(e),o=isDate$1(t);if(r||o)return!(!r||!o)&&e.getTime()===t.getTime();if(r=isSymbol(e),o=isSymbol(t),r||o)return e===t;if(r=isArray$2(e),o=isArray$2(t),r||o)return!(!r||!o)&&looseCompareArrays(e,t);if(r=isObject$3(e),o=isObject$3(t),r||o){if(!r||!o||Object.keys(e).length!==Object.keys(t).length)return!1;for(const c in e){const d=e.hasOwnProperty(c),f=t.hasOwnProperty(c);if(d&&!f||!d&&f||!looseEqual(e[c],t[c]))return!1}}return String(e)===String(t)}function looseIndexOf(e,t){return e.findIndex(r=>looseEqual(r,t))}const isRef$1=e=>!(!e||e.__v_isRef!==!0),toDisplayString=e=>isString$2(e)?e:e==null?"":isArray$2(e)||isObject$3(e)&&(e.toString===objectToString||!isFunction$1(e.toString))?isRef$1(e)?toDisplayString(e.value):JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>isRef$1(t)?replacer(e,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,c],d)=>(r[stringifySymbol(o,d)+" =>"]=c,r),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>stringifySymbol(r))}:isSymbol(t)?stringifySymbol(t):!isObject$3(t)||isArray$2(t)||isPlainObject$2(t)?t:String(t),stringifySymbol=(e,t="")=>{var r;return isSymbol(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};function normalizeCssVarValue(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const shared_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR,EMPTY_OBJ,NO,NOOP,PatchFlagNames,PatchFlags,ShapeFlags,SlotFlags,camelize,capitalize,cssVarNameEscapeSymbolsRE,def,escapeHtml,escapeHtmlComment,extend,genCacheKey,genPropsAccessExp,generateCodeFrame,getEscapedCssVarName,getGlobalThis,hasChanged,hasOwn,hyphenate,includeBooleanAttr,invokeArrayFns,isArray:isArray$2,isBooleanAttr,isBuiltInDirective,isDate:isDate$1,isFunction:isFunction$1,isGloballyAllowed,isGloballyWhitelisted,isHTMLTag,isIntegerKey,isKnownHtmlAttr,isKnownMathMLAttr,isKnownSvgAttr,isMap,isMathMLTag,isModelListener,isObject:isObject$3,isOn,isPlainObject:isPlainObject$2,isPromise,isRegExp,isRenderableAttrValue,isReservedProp,isSSRSafeAttrName,isSVGTag:isSVGTag$1,isSet,isSpecialBooleanAttr,isString:isString$2,isSymbol,isVoidTag,looseEqual,looseIndexOf,looseToNumber,makeMap,normalizeClass,normalizeCssVarValue,normalizeProps:normalizeProps$1,normalizeStyle,objectToString,parseStringStyle,propsToAttrMap,remove:remove$1,slotFlagsText,stringifyStyle,toDisplayString,toHandlerKey,toNumber,toRawType,toTypeString},Symbol.toStringTag,{value:"Module"}));/**
8* @vue/reactivity v3.5.38
9* (c) 2018-present Yuxi (Evan) You and Vue contributors
10* @license MIT
11**/let activeEffectScope,activeSub;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&activeEffectScope&&(activeEffectScope.active?(this.parent=activeEffectScope,this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let t,r;if(this._isPaused=!0,this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){let t,r;if(this._isPaused=!1,this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=r}}}on(){++this._on===1&&(this.prevScope=activeEffectScope,activeEffectScope=this)}off(){if(this._on>0&&--this._on===0){if(activeEffectScope===this)activeEffectScope=this.prevScope;else{let t=activeEffectScope;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){let r,o;for(this._active=!1,r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const c=this.parent.scopes.pop();c&&c!==this&&(this.parent.scopes[this.index]=c,c.index=this.index)}this.parent=void 0}}}function effectScope(e){return new EffectScope(e)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(e,t=!1){activeEffectScope&&activeEffectScope.cleanups.push(e)}const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&(activeEffectScope.active?activeEffectScope.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||batch(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const t=activeSub,r=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=t,shouldTrack=r,this.flags&=-3}}stop(){if(1&this.flags){for(let t=this.deps;t;t=t.nextDep)removeSub(t);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub,batchedComputed;function batch(e,t=!1){if(e.flags|=8,t)return e.next=batchedComputed,void(batchedComputed=e);e.next=batchedSub,batchedSub=e}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let t=batchedComputed;for(batchedComputed=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;batchedSub;){let t=batchedSub;for(batchedSub=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function prepareDeps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cleanupDeps(e){let t,r=e.depsTail,o=r;for(;o;){const c=o.prevDep;o.version===-1?(o===r&&(r=c),removeSub(o),removeDep(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=c}e.deps=t,e.depsTail=r}function isDirty(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(refreshComputed(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function refreshComputed(e){if(4&e.flags&&!(16&e.flags)||(e.flags&=-17,e.globalVersion===globalVersion)||(e.globalVersion=globalVersion,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!isDirty(e))))return;e.flags|=2;const t=e.dep,r=activeSub,o=shouldTrack;activeSub=e,shouldTrack=!0;try{prepareDeps(e);const c=e.fn(e._value);(t.version===0||hasChanged(c,e._value))&&(e.flags|=128,e._value=c,t.version++)}catch(c){throw t.version++,c}finally{activeSub=r,shouldTrack=o,cleanupDeps(e),e.flags&=-3}}function removeSub(e,t=!1){const{dep:r,prevSub:o,nextSub:c}=e;
11if(o&&(o.nextSub=c,e.prevSub=void 0),c&&(c.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let d=r.computed.deps;d;d=d.nextDep)removeSub(d,!0)}t||--r.sc||!r.map||r.map.delete(r.key)}function removeDep(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function effect(e,t){e.effect instanceof ReactiveEffect&&(e=e.effect.fn);const r=new ReactiveEffect(e);t&&extend(r,t);try{r.run()}catch(c){throw r.stop(),c}const o=r.run.bind(r);return o.effect=r,o}function stop(e){e.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const e=trackStack.pop();shouldTrack=e===void 0||e}function cleanupEffect(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=activeSub;activeSub=void 0;try{t()}finally{activeSub=r}}}let globalVersion=0;class Link{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==activeSub)r=this.activeLink=new Link(activeSub,this),activeSub.deps?(r.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=r,activeSub.depsTail=r):activeSub.deps=activeSub.depsTail=r,addSub(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const o=r.nextDep;o.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=o),r.prevDep=activeSub.depsTail,r.nextDep=void 0,activeSub.depsTail.nextDep=r,activeSub.depsTail=r,activeSub.deps===r&&(activeSub.deps=o)}return r}trigger(t){this.version++,globalVersion++,this.notify(t)}notify(t){startBatch();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{endBatch()}}}function addSub(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)addSub(o)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(e,t,r){if(shouldTrack&&activeSub){let o=targetMap.get(e);o||targetMap.set(e,o=new Map);let c=o.get(r);c||(o.set(r,c=new Dep),c.map=o,c.key=r),c.track()}}function trigger(e,t,r,o,c,d){const f=targetMap.get(e);if(!f)return void globalVersion++;const b=m=>{m&&m.trigger()};if(startBatch(),t==="clear")f.forEach(b);else{const m=isArray$2(e),S=m&&isIntegerKey(r);if(m&&r==="length"){const w=Number(o);f.forEach((T,A)=>{(A==="length"||A===ARRAY_ITERATE_KEY||!isSymbol(A)&&A>=w)&&b(T)})}else switch((r!==void 0||f.has(void 0))&&b(f.get(r)),S&&b(f.get(ARRAY_ITERATE_KEY)),t){case"add":m?S&&b(f.get("length")):(b(f.get(ITERATE_KEY)),isMap(e)&&b(f.get(MAP_KEY_ITERATE_KEY)));break;case"delete":m||(b(f.get(ITERATE_KEY)),isMap(e)&&b(f.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&b(f.get(ITERATE_KEY))}}endBatch()}function getDepFromReactive(e,t){const r=targetMap.get(e);return r&&r.get(t)}function reactiveReadArray(e){const t=toRaw(e);return t===e?t:(track(t,"iterate",ARRAY_ITERATE_KEY),isShallow(e)?t:t.map(toReactive))}function shallowReadArray(e){return track(e=toRaw(e),"iterate",ARRAY_ITERATE_KEY),e}function toWrapped(e,t){return isReadonly(e)?toReadonly(isReactive(e)?toReactive(t):t):toReactive(t)}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator(this,Symbol.iterator,e=>toWrapped(this,e))},concat(...e){return reactiveReadArray(this).concat(...e.map(t=>isArray$2(t)?reactiveReadArray(t):t))},entries(){return iterator(this,"entries",e=>(e[1]=toWrapped(this,e[1]),e))},every(e,t){return apply$1(this,"every",e,t,void 0,arguments)},filter(e,t){return apply$1(this,"filter",e,t,r=>r.map(o=>toWrapped(this,o)),arguments)},find(e,t){return apply$1(this,"find",e,t,r=>toWrapped(this,r),arguments)},findIndex(e,t){return apply$1(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return apply$1(this,"findLast",e,t,r=>toWrapped(this,r),arguments)},findLastIndex(e,t){return apply$1(this,"findLastIndex",e,t,void 0,arguments)}
vendor: 1,182 bytes, line 11
11,forEach(e,t){return apply$1(this,"forEach",e,t,void 0,arguments)},includes(...e){return searchProxy(this,"includes",e)},indexOf(...e){return searchProxy(this,"indexOf",e)},join(e){return reactiveReadArray(this).join(e)},lastIndexOf(...e){return searchProxy(this,"lastIndexOf",e)},map(e,t){return apply$1(this,"map",e,t,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...e){return noTracking(this,"push",e)},reduce(e,...t){return reduce(this,"reduce",e,t)},reduceRight(e,...t){return reduce(this,"reduceRight",e,t)},shift(){return noTracking(this,"shift")},some(e,t){return apply$1(this,"some",e,t,void 0,arguments)},splice(...e){return noTracking(this,"splice",e)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(e){return reactiveReadArray(this).toSorted(e)},toSpliced(...e){return reactiveReadArray(this).toSpliced(...e)},unshift(...e){return noTracking(this,"unshift",e)},values(){return iterator(this,"values",e=>toWrapped(this,e))}};function iterator(e,t,r){const o=shallowReadArray(e),c=o[t]();return o===e||isShallow(e)||(c._next=c.next,c.next=()=>{const d=c._next();return d.done||(d.value=r(d.value)),d}),c}const arrayProto=Array.prototype;
11function apply$1(e,t,r,o,c,d){const f=shallowReadArray(e),b=f!==e&&!isShallow(e),m=f[t];if(m!==arrayProto[t]){const T=m.apply(e,d);return b?toReactive(T):T}let S=r;f!==e&&(b?S=function(T,A){return r.call(this,toWrapped(e,T),A,e)}:r.length>2&&(S=function(T,A){return r.call(this,T,A,e)}));const w=m.call(f,S,o);return b&&c?c(w):w}function reduce(e,t,r,o){const c=shallowReadArray(e);let d=r,f=!1;c!==e&&(c!==e&&!isShallow(e)?(f=o.length===0,d=function(m,S,w){return f&&(f=!1,m=toWrapped(e,m)),r.call(this,m,toWrapped(e,S),w,e)}):r.length>3&&(d=function(m,S,w){return r.call(this,m,S,w,e)}));const b=c[t](d,...o);return f?toWrapped(e,b):b}function searchProxy(e,t,r){const o=toRaw(e);track(o,"iterate",ARRAY_ITERATE_KEY);const c=o[t](...r);return c!==-1&&c!==!1||!isProxy(r[0])?c:(r[0]=toRaw(r[0]),o[t](...r))}function noTracking(e,t,r=[]){pauseTracking(),startBatch();const o=toRaw(e)[t].apply(e,r);return endBatch(),resetTracking(),o}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol));function hasOwnProperty$1(e){isSymbol(e)||(e=String(e));const t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}class BaseReactiveHandler{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,o){if(r==="__v_skip")return t.__v_skip;const c=this._isReadonly,d=this._isShallow;if(r==="__v_isReactive")return!c;if(r==="__v_isReadonly")return c;if(r==="__v_isShallow")return d;if(r==="__v_raw")return o===(c?d?shallowReadonlyMap:readonlyMap:d?shallowReactiveMap:reactiveMap).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const f=isArray$2(t);if(!c){let m;if(f&&(m=arrayInstrumentations[r]))return m;if(r==="hasOwnProperty")return hasOwnProperty$1}const b=Reflect.get(t,r,isRef(t)?t:o);if((isSymbol(r)?builtInSymbols.has(r):isNonTrackableKeys(r))||(c||track(t,"get",r),d))return b;if(isRef(b)){const m=f&&isIntegerKey(r)?b:b.value;return c&&isObject$3(m)?readonly(m):m}return isObject$3(b)?c?readonly(b):reactive(b):b}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!1,t)}set(t,r,o,c){let d=t[r];const f=isArray$2(t)&&isIntegerKey(r);if(!this._isShallow){const S=isReadonly(d);if(isShallow(o)||isReadonly(o)||(d=toRaw(d),o=toRaw(o)),!f&&isRef(d)&&!isRef(o))return S||(d.value=o),!0}const b=f?Number(r)<t.length:hasOwn(t,r),m=Reflect.set(t,r,o,isRef(t)?t:c);return t===toRaw(c)&&(b?hasChanged(o,d)&&trigger(t,"set",r,o):trigger(t,"add",r,o)),m}deleteProperty(t,r){const o=hasOwn(t,r);t[r];const c=Reflect.deleteProperty(t,r);return c&&o&&trigger(t,"delete",r,void 0),c}has(t,r){const o=Reflect.has(t,r);return isSymbol(r)&&builtInSymbols.has(r)||track(t,"has",r),o}ownKeys(t){return track(t,"iterate",isArray$2(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=e=>e,getProto=e=>Reflect.getPrototypeOf(e);function createIterableMethod(e,t,r){return function(...o){const c=this.__v_raw,d=toRaw(c),f=isMap(d),b=e==="entries"||e===Symbol.iterator&&f,m=e==="keys"&&f,S=c[e](...o),w=r?toShallow:t?toReadonly:toReactive;return!t&&track(d,"iterate",m?MAP_KEY_ITERATE_KEY:ITERATE_KEY),extend(Object.create(S),{next(){const{value:T,done:A}=S.next();return A?{value:T,done:A}:{value:b?[w(T[0]),w(T[1])]:w(T),done:A}}})}}function createReadonlyMethod(e){return function(...t){return e!=="delete"&&(e==="clear"?void 0:this)}}function createInstrumentations(e,t){const r={get(o){const c=this.__v_raw,d=toRaw(c),f=toRaw(o);e||(hasChanged(o,f)&&track(d,"get",o),track(d,"get",f));const{has:b}=getProto(d),m=t?toShallow:e?toReadonly:toReactive;return b.call(d,o)?m(c.get(o)):b.call(d,f)?m(c.get(f)):void(c!==d&&c.get(o))},get size(){const o=this.__v_raw;return!e&&track(toRaw(o),"iterate",ITERATE_KEY),o.size},has(o){const c=this.__v_raw,d=toRaw(c),f=toRaw(o);return e||(hasChanged(o,f)&&track(d,"has",o),track(d,"has",f)),o===f?c.has(o):c.has(o)||c.has(f)}
11,forEach(o,c){const d=this,f=d.__v_raw,b=t?toShallow:e?toReadonly:toReactive;return!e&&track(toRaw(f),"iterate",ITERATE_KEY),f.forEach((m,S)=>o.call(c,b(m),b(S),d))}};return extend(r,e?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(o){const c=toRaw(this),d=getProto(c),f=toRaw(o),b=t||isShallow(o)||isReadonly(o)?o:f;return d.has.call(c,b)||hasChanged(o,b)&&d.has.call(c,o)||hasChanged(f,b)&&d.has.call(c,f)||(c.add(b),trigger(c,"add",b,b)),this},set(o,c){t||isShallow(c)||isReadonly(c)||(c=toRaw(c));const d=toRaw(this),{has:f,get:b}=getProto(d);let m=f.call(d,o);m||(o=toRaw(o),m=f.call(d,o));const S=b.call(d,o);return d.set(o,c),m?hasChanged(c,S)&&trigger(d,"set",o,c):trigger(d,"add",o,c),this},delete(o){const c=toRaw(this),{has:d,get:f}=getProto(c);let b=d.call(c,o);b||(o=toRaw(o),b=d.call(c,o)),f&&f.call(c,o);const m=c.delete(o);return b&&trigger(c,"delete",o,void 0),m},clear(){const o=toRaw(this),c=o.size!==0,d=o.clear();return c&&trigger(o,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=createIterableMethod(o,e,t)}),r}function createInstrumentationGetter(e,t){const r=createInstrumentations(e,t);return(o,c,d)=>c==="__v_isReactive"?!e:c==="__v_isReadonly"?e:c==="__v_raw"?o:Reflect.get(hasOwn(r,c)&&c in o?r:o,c,d)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,t,r,o,c){if(!isObject$3(e)||e.__v_raw&&(!t||!e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const d=c.get(e);if(d)return d;const f=targetTypeMap(toRawType(e));if(f===0)return e;const b=new Proxy(e,f===2?o:r);return c.set(e,b),b}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!(!e||!e.__v_isReactive)}function isReadonly(e){return!(!e||!e.__v_isReadonly)}function isShallow(e){return!(!e||!e.__v_isShallow)}function isProxy(e){return!!e&&!!e.__v_raw}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return!hasOwn(e,"__v_skip")&&Object.isExtensible(e)&&def(e,"__v_skip",!0),e}const toReactive=e=>isObject$3(e)?reactive(e):e,toReadonly=e=>isObject$3(e)?readonly(e):e;function isRef(e){return!!e&&e.__v_isRef===!0}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(t,r){this.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:toRaw(t),this._value=r?t:toReactive(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,o=this.__v_isShallow||isShallow(t)||isReadonly(t);hasChanged(t=o?t:toRaw(t),r)&&(this._rawValue=t,this._value=o?t:toReactive(t),this.dep.trigger())}}function triggerRef(e){e.dep&&e.dep.trigger()}function unref(e){return isRef(e)?e.value:e}function toValue$1(e){return isFunction$1(e)?e():unref(e)}const shallowUnwrapHandlers={get:(e,t,r)=>t==="__v_raw"?e:unref(Reflect.get(e,t,r)),set:(e,t,r,o)=>{const c=e[t];return isRef(c)&&!isRef(r)?(c.value=r,!0):Reflect.set(e,t,r,o)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class CustomRefImpl{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Dep,{get:o,set:c}=t(r.track.bind(r),r.trigger.bind(r));this._get=o,this._set=c}get value(){return this._value=this._get()}set value(t){this._set(t)}}function customRef(e){return new CustomRefImpl(e)}function toRefs(e){const t=isArray$2(e)?new Array(e.length):{};for(const r in e)t[r]=propertyToRef(e,r);return t}class ObjectRefImpl{constructor(t,r,o){this._object=t,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._key=isSymbol(r)?r:String(r),this._raw=toRaw(t);let c=!0,d=t;if(!isArray$2(t)||isSymbol(this._key)||!isIntegerKey(this._key))do c=!isProxy(d)||isShallow(d);while(c&&(d=d.__v_raw));this._shallow=c}get value(){let t=this._object[this._key];return this._shallow&&(t=unref(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&isRef(this._raw[this._key])){const r=this._object[this._key];if(isRef(r))return void(r.value=t)}this._object[this._key]=t}get dep(){return getDepFromReactive(this._raw,this._key)}}class GetterRefImpl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function toRef(e,t,r){return isRef(e)?e:isFunction$1(e)?new GetterRefImpl(e):isObject$3(e)&&arguments.length>1?propertyToRef(e,t,r):ref(e)}function propertyToRef(e,t,r){return new ObjectRefImpl(e,t,r)}class ComputedRefImpl{constructor(t,r,o){this.fn=t,this.setter=r,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=o}notify(){if(this.flags|=16,!(8&this.flags)&&activeSub!==this)return batch(this,!0),!0}get value(){const t=this.dep.track();return refreshComputed(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function computed$1(e,t,r=!1){let o,c;return isFunction$1(e)?o=e:(o=e.get,c=e.set),new ComputedRefImpl(o,c,r)}const TrackOpTypes={GET:"get",HAS:"has",ITERATE:"iterate"},TriggerOpTypes={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function getCurrentWatcher(){return activeWatcher}function onWatcherCleanup(e,t=!1,r=activeWatcher){if(r){let o=cleanupMap.get(r);o||cleanupMap.set(r,o=[]),o.push(e)}}function watch$1(e,t,r=EMPTY_OBJ){const{immediate:o,deep:c,once:d,scheduler:f,augmentJob:b,call:m}=r,S=V=>c?V:isShallow(V)||c===!1||c===0?traverse(V,1):traverse(V);let w,T,A,C,P=!1,B=!1;if(isRef(e)?(T=()=>e.value,P=isShallow(e)):isReactive(e)?(T=()=>S(e),P=!0):isArray$2(e)?(B=!0,P=e.some(V=>isReactive(V)||isShallow(V)),T=()=>e.map(V=>isRef(V)?V.value:isReactive(V)?S(V):isFunction$1(V)?m?m(V,2):V():void 0)):T=isFunction$1(e)?t?m?()=>m(e,2):e:()=>{if(A){pauseTracking();try{A()}finally{resetTracking()}}const V=activeWatcher;activeWatcher=w;try{return m?m(e,3,[C]):e(C)}finally{activeWatcher=V}}:NOOP,t&&c){const V=T,F=c===!0?1/0:c;T=()=>traverse(V(),F)}const U=getCurrentScope(),D=()=>{w.stop(),U&&U.active&&remove$1(U.effects,w)};if(d&&t){const V=t;t=(...F)=>{const ee=V(...F);return D(),ee}}let $=B?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const z=V=>{if(1&w.flags&&(w.dirty||V))if(t){const F=w.run();if(V||c||P||(B?F.some((ee,te)=>hasChanged(ee,$[te])):hasChanged(F,$))){A&&A();const ee=activeWatcher;activeWatcher=w;try{const te=[F,$===INITIAL_WATCHER_VALUE?void 0:B&&$[0]===INITIAL_WATCHER_VALUE?[]:$,C];$=F,m?m(t,3,te):t(...te)}finally{activeWatcher=ee}}}else w.run()};
11return b&&b(z),w=new ReactiveEffect(T),w.scheduler=f?()=>f(z,!1):z,C=V=>onWatcherCleanup(V,!1,w),A=w.onStop=()=>{const V=cleanupMap.get(w);if(V){if(m)m(V,4);else for(const F of V)F();cleanupMap.delete(w)}},t?o?z(!0):$=w.run():f?f(z.bind(null,!0),!0):w.run(),D.pause=w.pause.bind(w),D.resume=w.resume.bind(w),D.stop=D,D}function traverse(e,t=1/0,r){if(t<=0||!isObject$3(e)||e.__v_skip||((r=r||new Map).get(e)||0)>=t)return e;if(r.set(e,t),t--,isRef(e))traverse(e.value,t,r);else if(isArray$2(e))for(let o=0;o<e.length;o++)traverse(e[o],t,r);else if(isSet(e)||isMap(e))e.forEach(o=>{traverse(o,t,r)});else if(isPlainObject$2(e)){for(const o in e)traverse(e[o],t,r);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&traverse(e[o],t,r)}return e}/**
12* @vue/runtime-core v3.5.38
13* (c) 2018-present Yuxi (Evan) You and Vue contributors
14* @license MIT
15**/const stack$1=[];function pushWarningContext(e){stack$1.push(e)}function popWarningContext(){stack$1.pop()}let isWarning=!1;function warn$1(e,...t){if(isWarning)return;isWarning=!0,pauseTracking();const r=stack$1.length?stack$1[stack$1.length-1].component:null,o=r&&r.appContext.config.warnHandler,c=getComponentTrace();if(o)callWithErrorHandling(o,r,11,[e+t.map(d=>{var f,b;return(b=(f=d.toString)==null?void 0:f.call(d))!=null?b:JSON.stringify(d)}).join(""),r&&r.proxy,c.map(({vnode:d})=>`at <${formatComponentName(r,d.type)}>`).join(`
16`),c]);else{const d=[`[Vue warn]: ${e}`,...t];c.length&&d.push(`
17`,...formatTrace(c)),console.warn(...d)}resetTracking(),isWarning=!1}function getComponentTrace(){let e=stack$1[stack$1.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function formatTrace(e){const t=[];return e.forEach((r,o)=>{t.push(...o===0?[]:[`
18`],...formatTraceEntry(r))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&e.component.parent==null,c=` at <${formatComponentName(e.component,e.type,o)}`,d=">"+r;return e.props?[c,...formatProps(e.props),d]:[c+d]}function formatProps(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(o=>{t.push(...formatProp(o,e[o]))}),r.length>3&&t.push(" ..."),t}function formatProp(e,t,r){return isString$2(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):isFunction$1(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=toRaw(t),r?t:[`${e}=`,t])}function assertNumber(e,t){}const ErrorCodes$1={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ErrorTypeStrings$1={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function callWithErrorHandling(e,t,r,o){try{return o?e(...o):e()}catch(c){handleError(c,t,r)}}function callWithAsyncErrorHandling(e,t,r,o){if(isFunction$1(e)){const c=callWithErrorHandling(e,t,r,o);
18return c&&isPromise(c)&&c.catch(d=>{handleError(d,t,r)}),c}if(isArray$2(e)){const c=[];for(let d=0;d<e.length;d++)c.push(callWithAsyncErrorHandling(e[d],t,r,o));return c}}function handleError(e,t,r,o=!0){const c=t?t.vnode:null,{errorHandler:d,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||EMPTY_OBJ;if(t){let b=t.parent;const m=t.proxy,S=`https://vuejs.org/error-reference/#runtime-${r}`;for(;b;){const w=b.ec;if(w){for(let T=0;T<w.length;T++)if(w[T](e,m,S)===!1)return}b=b.parent}if(d)return pauseTracking(),callWithErrorHandling(d,null,10,[e,m,S]),void resetTracking()}logError(e,r,c,o,f)}function logError(e,t,r,o=!0,c=!1){if(c)throw e;console.error(e)}const queue=[];let flushIndex=-1;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex$1(e){let t=flushIndex+1,r=queue.length;for(;t<r;){const o=t+r>>>1,c=queue[o],d=getId(c);d<e||d===e&&2&c.flags?t=o+1:r=o}return t}function queueJob(e){if(!(1&e.flags)){const t=getId(e),r=queue[queue.length-1];!r||!(2&e.flags)&&t>=getId(r)?queue.push(e):queue.splice(findInsertionIndex$1(t),0,e),e.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(e){isArray$2(e)?pendingPostFlushCbs.push(...e):activePostFlushCbs&&e.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,e):1&e.flags||(pendingPostFlushCbs.push(e),e.flags|=1),queueFlush()}function flushPreFlushCbs(e,t,r=flushIndex+1){for(;r<queue.length;r++){const o=queue[r];if(o&&2&o.flags){if(e&&o.id!==e.uid)continue;queue.splice(r,1),r--,4&o.flags&&(o.flags&=-2),o(),4&o.flags||(o.flags&=-2)}}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)].sort((r,o)=>getId(r)-getId(o));if(pendingPostFlushCbs.length=0,activePostFlushCbs)return void activePostFlushCbs.push(...t);for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const r=activePostFlushCbs[postFlushIndex];4&r.flags&&(r.flags&=-2),8&r.flags||r(),r.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>e.id==null?2&e.flags?-1:1/0:e.id;function flushJobs(e){try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const t=queue[flushIndex];!t||8&t.flags||(4&t.flags&&(t.flags&=-2),callWithErrorHandling(t,t.i,t.i?15:14),4&t.flags||(t.flags&=-2))}}finally{for(;flushIndex<queue.length;flushIndex++){const t=queue[flushIndex];t&&(t.flags&=-2)}flushIndex=-1,queue.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools$1,buffer$3=[];function setDevtoolsHook$1(e,t){var r,o;devtools$1=e,devtools$1?(devtools$1.enabled=!0,buffer$3.forEach(({event:c,args:d})=>devtools$1.emit(c,...d)),buffer$3=[]):typeof window<"u"&&window.HTMLElement&&!((o=(r=window.navigator)==null?void 0:r.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(c=>{setDevtoolsHook$1(c,t)}),setTimeout(()=>{devtools$1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer$3=[])},3e3)):buffer$3=[]}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}const withScopeId=e=>withCtx;function withCtx(e,t=currentRenderingInstance,r){if(!t||e._n)return e;const o=(...c)=>{o._d&&setBlockTracking(-1);const d=setCurrentRenderingInstance(t);let f;try{f=e(...c)}finally{setCurrentRenderingInstance(d),o._d&&setBlockTracking(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function withDirectives(e,t){if(currentRenderingInstance===null)return e;const r=getComponentPublicInstance(currentRenderingInstance),o=e.dirs||(e.dirs=[]);for(let c=0;c<t.length;c++){let[d,f,b,m=EMPTY_OBJ]=t[c];d&&(isFunction$1(d)&&(d={mounted:d,updated:d}),d.deep&&traverse(f),o.push({dir:d,instance:r,value:f,oldValue:void 0,arg:b,modifiers:m}))}return e}function invokeDirectiveHook(e,t,r,o){const c=e.dirs,d=t&&t.dirs;for(let f=0;f<c.length;f++){const b=c[f];d&&(b.oldValue=d[f].value);let m=b.dir[o];m&&(pauseTracking(),callWithAsyncErrorHandling(m,r,8,[e.el,b,e,t]),resetTracking())}}function provide(e,t){if(currentInstance){let r=currentInstance.provides;const o=currentInstance.parent&&currentInstance.parent.provides;o===r&&(r=currentInstance.provides=Object.create(o)),r[e]=t}}function inject(e,t,r=!1){const o=getCurrentInstance();if(o||currentApp){let c=currentApp?currentApp._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(c&&e in c)return c[e];if(arguments.length>1)return r&&isFunction$1(t)?t.call(o&&o.proxy):t}}function hasInjectionContext(){return!(!getCurrentInstance()&&!currentApp)}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(e,t){return doWatch(e,null,t)}function watchPostEffect(e,t){return doWatch(e,null,{flush:"post"})}function watchSyncEffect(e,t){return doWatch(e,null,{flush:"sync"})}function watch(e,t,r){return doWatch(e,t,r)}function doWatch(e,t,r=EMPTY_OBJ){const{immediate:o,deep:c,flush:d,once:f}=r,b=extend({},r),m=t&&o||!t&&d!=="post";let S;if(isInSSRComponentSetup){if(d==="sync"){const C=useSSRContext();S=C.__watcherHandles||(C.__watcherHandles=[])}else if(!m){const C=()=>{};return C.stop=NOOP,C.resume=NOOP,C.pause=NOOP,C}}const w=currentInstance;b.call=(C,P,B)=>callWithAsyncErrorHandling(C,w,P,B);let T=!1;
18d==="post"?b.scheduler=C=>{queuePostRenderEffect(C,w&&w.suspense)}:d!=="sync"&&(T=!0,b.scheduler=(C,P)=>{P?C():queueJob(C)}),b.augmentJob=C=>{t&&(C.flags|=4),T&&(C.flags|=2,w&&(C.id=w.uid,C.i=w))};const A=watch$1(e,t,b);return isInSSRComponentSetup&&(S?S.push(A):m&&A()),A}function instanceWatch(e,t,r){const o=this.proxy,c=isString$2(e)?e.includes(".")?createPathGetter(o,e):()=>o[e]:e.bind(o,o);let d;isFunction$1(t)?d=t:(d=t.handler,r=t);const f=setCurrentInstance(this),b=doWatch(c,d.bind(o),r);return f(),b}function createPathGetter(e,t){const r=t.split(".");return()=>{let o=e;for(let c=0;c<r.length&&o;c++)o=o[r[c]];return o}}const pendingMounts=new WeakMap,TeleportEndKey=Symbol("_vte"),isTeleport=e=>e.__isTeleport,isTeleportDisabled=e=>e&&(e.disabled||e.disabled===""),isTeleportDeferred=e=>e&&(e.defer||e.defer===""),isTargetSVG=e=>typeof SVGElement<"u"&&e instanceof SVGElement,isTargetMathML=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,resolveTarget=(e,t)=>{const r=e&&e.to;return isString$2(r)?t?t(r):null:r},TeleportImpl={name:"Teleport",__isTeleport:!0,process(e,t,r,o,c,d,f,b,m,S){const{mc:w,pc:T,pbc:A,o:{insert:C,querySelector:P,createText:B,createComment:U,parentNode:D}}=S,$=isTeleportDisabled(t.props);let{dynamicChildren:z}=t;const V=(te,K,H)=>{16&te.shapeFlag&&w(te.children,K,H,c,d,f,b,m)},F=(te=t)=>{const K=isTeleportDisabled(te.props),H=te.target=resolveTarget(te.props,P),X=prepareAnchor(H,te,B,C);H&&(f!=="svg"&&isTargetSVG(H)?f="svg":f!=="mathml"&&isTargetMathML(H)&&(f="mathml"),c&&c.isCE&&(c.ce._teleportTargets||(c.ce._teleportTargets=new Set)).add(H),K||(V(te,H,X),updateCssVars(te,!1)))},ee=te=>{const K=()=>{if(pendingMounts.get(te)===K){if(pendingMounts.delete(te),isTeleportDisabled(te.props)){const H=D(te.el)||r;V(te,H,te.anchor),updateCssVars(te,!0)}F(te)}};pendingMounts.set(te,K),queuePostRenderEffect(K,d)};if(e==null){const te=t.el=B(""),K=t.anchor=B("");if(C(te,r,o),C(K,r,o),isTeleportDeferred(t.props)||d&&d.pendingBranch)return void ee(t);$&&(V(t,r,K),updateCssVars(t,!0)),F()}else{t.el=e.el;const te=t.anchor=e.anchor,K=pendingMounts.get(e);if(K)return K.flags|=8,pendingMounts.delete(e),void ee(t);t.targetStart=e.targetStart;const H=t.target=e.target,X=t.targetAnchor=e.targetAnchor,J=isTeleportDisabled(e.props),G=J?r:H,Q=J?te:X;if(f==="svg"||isTargetSVG(H)?f="svg":(f==="mathml"||isTargetMathML(H))&&(f="mathml"),z?(A(e.dynamicChildren,z,G,c,d,f,b),traverseStaticChildren(e,t,!0)):m||T(e,t,G,Q,c,d,f,b,!1),$)J?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):moveTeleport(t,r,te,S,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const pe=t.target=resolveTarget(t.props,P);pe&&moveTeleport(t,pe,null,S,0)}else J&&moveTeleport(t,H,X,S,1);updateCssVars(t,$)}},remove(e,t,r,{um:o,o:{remove:c}},d){const{shapeFlag:f,children:b,anchor:m,targetStart:S,targetAnchor:w,target:T,props:A}=e,C=d||!isTeleportDisabled(A),P=pendingMounts.get(e);if(P&&(P.flags|=8,pendingMounts.delete(e)),T&&(c(S),c(w)),d&&c(m),!P&&16&f)for(let B=0;B<b.length;B++){const U=b[B];o(U,t,r,C,!!U.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(e,t,r,{o:{insert:o},m:c},d=2){d===0&&o(e.targetAnchor,t,r);const{el:f,anchor:b,shapeFlag:m,children:S,props:w}=e,T=d===2;if(T&&o(f,t,r),!pendingMounts.has(e)&&(!T||isTeleportDisabled(w))&&16&m)for(let A=0;A<S.length;A++)c(S[A],t,r,2);T&&o(b,t,r)}function hydrateTeleport(e,t,r,o,c,d,{o:{nextSibling:f,parentNode:b,querySelector:m,insert:S,createText:w}},T){function A(U,D){let $=D;for(;$;){if($&&$.nodeType===8){if($.data==="teleport start anchor")t.targetStart=$;else if($.data==="teleport anchor"){t.targetAnchor=$,U._lpa=t.targetAnchor&&f(t.targetAnchor);break}}$=f($)}}function C(U,D){D.anchor=T(f(U),D,b(U),r,o,c,d)}const P=t.target=resolveTarget(t.props,m),B=isTeleportDisabled(t.props);if(P){const U=P._lpa||P.firstChild;16&t.shapeFlag&&(B?(C(e,t),A(P,U),t.targetAnchor||prepareAnchor(P,t,w,S,b(e)===P?e:null)):(t.anchor=f(e),A(P,U),t.targetAnchor||prepareAnchor(P,t,w,S),T(U&&f(U),t,P,r,o,c,d))),updateCssVars(t,B)}else B&&16&t.shapeFlag&&(C(e,t),t.targetStart=e,t.targetAnchor=f(e));return t.anchor&&f(t.anchor)}const Teleport=TeleportImpl;function updateCssVars(e,t){const r=e.ctx;if(r&&r.ut){let o,c;for(t?(o=e.el,c=e.anchor):(o=e.targetStart,c=e.targetAnchor);o&&o!==c;)o.nodeType===1&&o.setAttribute("data-v-owner",r.uid),o=o.nextSibling;r.ut()}}function prepareAnchor(e,t,r,o,c=null){const d=t.targetStart=r(""),f=t.targetAnchor=r("");return d[TeleportEndKey]=f,e&&(o(d,e,c),o(f,e,c)),f}const leaveCbKey=Symbol("_leaveCb"),enterCbKey$1=Symbol("_enterCb");function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
18ingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},recursiveGetSubtree=e=>{const t=e.subTree;return t.component?recursiveGetSubtree(t.component):t},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(e,{slots:t}){const r=getCurrentInstance(),o=useTransitionState();return()=>{const c=t.default&&getTransitionRawChildren(t.default(),!0),d=c&&c.length?findNonCommentChild(c):r.subTree?createCommentVNode():void 0;if(!d)return;const f=toRaw(e),{mode:b}=f;if(o.isLeaving)return emptyPlaceholder(d);const m=getInnerChild$1(d);if(!m)return emptyPlaceholder(d);let S=resolveTransitionHooks(m,f,o,r,T=>S=T);m.type!==Comment&&setTransitionHooks(m,S);let w=r.subTree&&getInnerChild$1(r.subTree);if(w&&w.type!==Comment&&!isSameVNodeType(w,m)&&recursiveGetSubtree(r).type!==Comment){let T=resolveTransitionHooks(w,f,o,r);if(setTransitionHooks(w,T),b==="out-in"&&m.type!==Comment)return o.isLeaving=!0,T.afterLeave=()=>{o.isLeaving=!1,8&r.job.flags||r.update(),delete T.afterLeave,w=void 0},emptyPlaceholder(d);b==="in-out"&&m.type!==Comment?T.delayLeave=(A,C,P)=>{getLeavingNodesForType(o,w)[String(w.key)]=w,A[leaveCbKey]=()=>{C(),A[leaveCbKey]=void 0,delete S.delayedLeave,w=void 0},S.delayedLeave=()=>{P(),delete S.delayedLeave,w=void 0}}:w=void 0}else w&&(w=void 0);return d}}};function findNonCommentChild(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Comment){t=r;break}}return t}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:r}=e;let o=r.get(t.type);return o||(o=Object.create(null),r.set(t.type,o)),o}function resolveTransitionHooks(e,t,r,o,c){const{appear:d,mode:f,persisted:b=!1,onBeforeEnter:m,onEnter:S,onAfterEnter:w,onEnterCancelled:T,onBeforeLeave:A,onLeave:C,onAfterLeave:P,onLeaveCancelled:B,onBeforeAppear:U,onAppear:D,onAfterAppear:$,onAppearCancelled:z}=t,V=String(e.key),F=getLeavingNodesForType(r,e),ee=(H,X)=>{H&&callWithAsyncErrorHandling(H,o,9,X)},te=(H,X)=>{const J=X[1];ee(H,X),isArray$2(H)?H.every(G=>G.length<=1)&&J():H.length<=1&&J()},K={mode:f,persisted:b,beforeEnter(H){let X=m;if(!r.isMounted){if(!d)return;X=U||m}H[leaveCbKey]&&H[leaveCbKey](!0);const J=F[V];J&&isSameVNodeType(e,J)&&J.el[leaveCbKey]&&J.el[leaveCbKey](),ee(X,[H])},enter(H){if(F[V]===e)return;let X=S,J=w,G=T;if(!r.isMounted){if(!d)return;X=D||S,J=$||w,G=z||T}let Q=!1;H[enterCbKey$1]=ye=>{Q||(Q=!0,ee(ye?G:J,[H]),K.delayedLeave&&K.delayedLeave(),H[enterCbKey$1]=void 0)};const pe=H[enterCbKey$1].bind(null,!1);X?te(X,[H,pe]):pe()},leave(H,X){const J=String(e.key);if(H[enterCbKey$1]&&H[enterCbKey$1](!0),r.isUnmounting)return X();ee(A,[H]);let G=!1;H[leaveCbKey]=pe=>{G||(G=!0,X(),ee(pe?B:P,[H]),H[leaveCbKey]=void 0,F[J]===e&&delete F[J])};const Q=H[leaveCbKey].bind(null,!1);F[J]=e,C?te(C,[H,Q]):Q()},clone(H){const X=resolveTransitionHooks(H,t,r,o,c);return c&&c(X),X}};return K}function emptyPlaceholder(e){if(isKeepAlive(e))return(e=cloneVNode(e)).children=null,e}function getInnerChild$1(e){if(!isKeepAlive(e))return isTeleport(e.type)&&e.children?findNonCommentChild(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(16&t)return r[0];if(32&t&&isFunction$1(r.default))return r.default()}}function setTransitionHooks(e,t){6&e.shapeFlag&&e.component?(e.transition=t,setTransitionHooks(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function getTransitionRawChildren(e,t=!1,r){let o=[],c=0;for(let d=0;d<e.length;d++){let f=e[d];const b=r==null?f.key:String(r)+String(f.key!=null?f.key:d);f.type===Fragment?(128&f.patchFlag&&c++,o=o.concat(getTransitionRawChildren(f.children,t,b))):(t||f.type!==Comment)&&o.push(b!=null?cloneVNode(f,{key:b}):f)}if(c>1)for(let d=0;d<o.length;d++)o[d].patchFlag=-2;return o}function defineComponent(e,t){return isFunction$1(e)?extend({name:e.name},t,{setup:e}):e}function useId(){const e=getCurrentInstance();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}
18function markAsyncBoundary(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function useTemplateRef(e){const t=getCurrentInstance(),r=shallowRef(null);if(t){const o=t.refs===EMPTY_OBJ?t.refs={}:t.refs;Object.defineProperty(o,e,{enumerable:!0,get:()=>r.value,set:c=>r.value=c})}return r}function isTemplateRefKey(e,t){let r;return!(!(r=Object.getOwnPropertyDescriptor(e,t))||r.configurable)}const pendingSetRefMap=new WeakMap;function setRef(e,t,r,o,c=!1){if(isArray$2(e))return void e.forEach((B,U)=>setRef(B,t&&(isArray$2(t)?t[U]:t),r,o,c));if(isAsyncWrapper(o)&&!c)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&setRef(e,t,r,o.component.subTree));const d=4&o.shapeFlag?getComponentPublicInstance(o.component):o.el,f=c?null:d,{i:b,r:m}=e,S=t&&t.r,w=b.refs===EMPTY_OBJ?b.refs={}:b.refs,T=b.setupState,A=toRaw(T),C=T===EMPTY_OBJ?NO:B=>!isTemplateRefKey(w,B)&&hasOwn(A,B),P=(B,U)=>!U||!isTemplateRefKey(w,U);if(S!=null&&S!==m){if(invalidatePendingSetRef(t),isString$2(S))w[S]=null,C(S)&&(T[S]=null);else if(isRef(S)){const B=t;P(0,B.k)&&(S.value=null),B.k&&(w[B.k]=null)}}if(isFunction$1(m))callWithErrorHandling(m,b,12,[f,w]);else{const B=isString$2(m),U=isRef(m);if(B||U){const D=()=>{if(e.f){const $=B?C(m)?T[m]:w[m]:P()||!e.k?m.value:w[e.k];if(c)isArray$2($)&&remove$1($,d);else if(isArray$2($))$.includes(d)||$.push(d);else if(B)w[m]=[d],C(m)&&(T[m]=w[m]);else{const z=[d];P(0,e.k)&&(m.value=z),e.k&&(w[e.k]=z)}}else B?(w[m]=f,C(m)&&(T[m]=f)):U&&(P(0,e.k)&&(m.value=f),e.k&&(w[e.k]=f))};if(f){const $=()=>{D(),pendingSetRefMap.delete(e)};$.id=-1,pendingSetRefMap.set(e,$),queuePostRenderEffect($,r)}else invalidatePendingSetRef(e),D()}}}
18function invalidatePendingSetRef(e){const t=pendingSetRefMap.get(e);t&&(t.flags|=8,pendingSetRefMap.delete(e))}let hasLoggedMismatchError=!1;const logMismatchError=()=>{hasLoggedMismatchError||(console.error("Hydration completed but contains mismatches."),hasLoggedMismatchError=!0)},isSVGContainer=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",isMathMLContainer=e=>e.namespaceURI.includes("MathML"),getContainerType=e=>{if(e.nodeType===1)return isSVGContainer(e)?"svg":isMathMLContainer(e)?"mathml":void 0},isComment=e=>e.nodeType===8;function createHydrationFunctions(e){const{mt:t,p:r,o:{patchProp:o,createText:c,nextSibling:d,parentNode:f,remove:b,insert:m,createComment:S}}=e,w=($,z,V,F,ee,te=!1)=>{te=te||!!z.dynamicChildren;const K=isComment($)&&$.data==="[",H=()=>P($,z,V,F,ee,K),{type:X,ref:J,shapeFlag:G,patchFlag:Q}=z;let pe=$.nodeType;z.el=$,Q===-2&&(te=!1,z.dynamicChildren=null);let ye=null;switch(X){case Text:pe!==3?z.children===""?(m(z.el=c(""),f($),$),ye=$):ye=H():($.data!==z.children&&(logMismatchError(),$.data=z.children),ye=d($));break;case Comment:D($)?(ye=d($),U(z.el=$.content.firstChild,$,V)):ye=pe!==8||K?H():d($);break;case Static:if(K&&(pe=($=d($)).nodeType),pe===1||pe===3){ye=$;const de=!z.children.length;for(let _e=0;_e<z.staticCount;_e++)de&&(z.children+=ye.nodeType===1?ye.outerHTML:ye.data),_e===z.staticCount-1&&(z.anchor=ye),ye=d(ye);return K?d(ye):ye}H();break;case Fragment:ye=K?C($,z,V,F,ee,te):H();break;default:if(1&G)ye=pe===1&&z.type.toLowerCase()===$.tagName.toLowerCase()||D($)?T($,z,V,F,ee,te):H();else if(6&G){z.slotScopeIds=ee;const de=f($);if(ye=K?B($):isComment($)&&$.data==="teleport start"?B($,$.data,"teleport end"):d($),t(z,de,null,V,F,getContainerType(de),te),isAsyncWrapper(z)&&!z.type.__asyncResolved){let _e;K?(_e=createVNode(Fragment),_e.anchor=ye?ye.previousSibling:de.lastChild):_e=$.nodeType===3?createTextVNode(""):createVNode("div"),_e.el=$,z.component.subTree=_e}}else 64&G?ye=pe!==8?H():z.type.hydrate($,z,V,F,ee,te,e,A):128&G&&(ye=z.type.hydrate($,z,V,F,getContainerType(f($)),ee,te,e,w))}return J!=null&&setRef(J,null,F,z),ye},T=($,z,V,F,ee,te)=>{te=te||!!z.dynamicChildren;const{type:K,props:H,patchFlag:X,shapeFlag:J,dirs:G,transition:Q}=z,pe=K==="input"||K==="option";if(pe||X!==-1){G&&invokeDirectiveHook(z,null,V,"created");let ye,de=!1;if(D($)){de=needTransition(null,Q)&&V&&V.vnode.props&&V.vnode.props.appear;const _e=$.content.firstChild;if(de){const Re=_e.getAttribute("class");Re&&(_e.$cls=Re),Q.beforeEnter(_e)}U(_e,$,V),z.el=$=_e}if(16&J&&(!H||!H.innerHTML&&!H.textContent)){let _e=A($.firstChild,z,$,V,F,ee,te);for(_e&&!isMismatchAllowed($,1)&&logMismatchError();_e;){const Re=_e;_e=_e.nextSibling,b(Re)}}else if(8&J){let _e=z.children;_e[0]!==`
19`||$.tagName!=="PRE"&&$.tagName!=="TEXTAREA"||(_e=_e.slice(1));const{textContent:Re}=$;Re!==_e&&Re!==_e.replace(/\r\n|\r/g,`
20`)&&(isMismatchAllowed($,0)||logMismatchError(),$.textContent=z.children)}if(H){if(pe||!te||48&X){const _e=$.tagName.includes("-");for(const Re in H)(pe&&(Re.endsWith("value")||Re==="indeterminate")||isOn(Re)&&!isReservedProp(Re)||Re[0]==="."||_e&&!isReservedProp(Re))&&o($,Re,null,H[Re],void 0,V)}else if(H.onClick)o($,"onClick",null,H.onClick,void 0,V);else if(4&X&&isReactive(H.style))for(const _e in H.style)H.style[_e]}(ye=H&&H.onVnodeBeforeMount)&&invokeVNodeHook(ye,V,z),G&&invokeDirectiveHook(z,null,V,"beforeMount"),((ye=H&&H.onVnodeMounted)||G||de)&&queueEffectWithSuspense(()=>{ye&&invokeVNodeHook(ye,V,z),de&&Q.enter($),G&&invokeDirectiveHook(z,null,V,"mounted")},F)}return $.nextSibling},A=($,z,V,F,ee,te,K)=>{K=K||!!z.dynamicChildren;const H=z.children,X=H.length;let J=!1;for(let G=0;G<X;G++){const Q=K?H[G]:H[G]=normalizeVNode(H[G]),pe=Q.type===Text;$?(pe&&!K&&G+1<X&&normalizeVNode(H[G+1]).type===Text&&(m(c($.data.slice(Q.children.length)),V,d($)),$.data=Q.children),$=w($,Q,F,ee,te,K)):pe&&!Q.children?m(Q.el=c(""),V):(J||(J=!0,isMismatchAllowed(V,1)||logMismatchError()),r(null,Q,V,null,F,ee,getContainerType(V),te))}return $},C=($,z,V,F,ee,te)=>{const{slotScopeIds:K}=z;K&&(ee=ee?ee.concat(K):K);const H=f($),X=A(d($),z,H,V,F,ee,te);return X&&isComment(X)&&X.data==="]"?d(z.anchor=X):(logMismatchError(),m(z.anchor=S("]"),H,X),X)},P=($,z,V,F,ee,te)=>{if(isMismatchAllowed($.parentElement,1)||logMismatchError(),z.el=null,te){const X=B($);for(;;){const J=d($);if(!J||J===X)break;b(J)}}const K=d($),H=f($);return b($),r(null,z,H,K,V,F,getContainerType(H),ee),V&&(V.vnode.el=z.el,updateHOCHostEl(V,z.el)),K},B=($,z="[",V="]")=>{let F=0;for(;$;)if(($=d($))&&isComment($)&&($.data===z&&F++,$.data===V)){if(F===0)return d($);F--}return $},U=($,z,V)=>{const F=z.parentNode;F&&F.replaceChild($,z);let ee=V;for(;ee;)ee.vnode.el===z&&(ee.vnode.el=ee.subTree.el=$),ee=ee.parent},D=$=>$.nodeType===1&&$.tagName==="TEMPLATE";return[($,z)=>{if(!z.hasChildNodes())return r(null,$,z),flushPostFlushCbs(),void(z._vnode=$);w(z.firstChild,$,null,null,null),flushPostFlushCbs(),z._vnode=$},w]}const allowMismatchAttr="data-allow-mismatch",MismatchTypeString={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function isMismatchAllowed(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(allowMismatchAttr);)e=e.parentElement;const r=e&&e.getAttribute(allowMismatchAttr);
20if(r==null)return!1;if(r==="")return!0;{const o=r.split(",");return!(t!==0||!o.includes("children"))||o.includes(MismatchTypeString[t])}}const requestIdleCallback$1=getGlobalThis().requestIdleCallback||(e=>setTimeout(e,1)),cancelIdleCallback$1=getGlobalThis().cancelIdleCallback||(e=>clearTimeout(e)),hydrateOnIdle=(e=1e4)=>t=>{const r=requestIdleCallback$1(t,{timeout:e});return()=>cancelIdleCallback$1(r)};function elementIsVisibleInViewport(e){const{top:t,left:r,bottom:o,right:c}=e.getBoundingClientRect(),{innerHeight:d,innerWidth:f}=window;return(t>0&&t<d||o>0&&o<d)&&(r>0&&r<f||c>0&&c<f)}const hydrateOnVisible=e=>(t,r)=>{const o=new IntersectionObserver(c=>{for(const d of c)if(d.isIntersecting){o.disconnect(),t();break}},e);return r(c=>{if(c instanceof Element)return elementIsVisibleInViewport(c)?(t(),o.disconnect(),!1):void o.observe(c)}),()=>o.disconnect()},hydrateOnMediaQuery=e=>t=>{if(e){const r=matchMedia(e);if(!r.matches)return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t);t()}},hydrateOnInteraction=(e=[])=>(t,r)=>{isString$2(e)&&(e=[e]);let o=!1;const c=f=>{o||(o=!0,d(),t(),f.target.dispatchEvent(new f.constructor(f.type,f)))},d=()=>{r(f=>{for(const b of e)f.removeEventListener(b,c)})};return r(f=>{for(const b of e)f.addEventListener(b,c,{once:!0})}),d};function forEachElement(e,t){if(isComment(e)&&e.data==="["){let r=1,o=e.nextSibling;for(;o;){if(o.nodeType===1){if(t(o)===!1)break}else if(isComment(o))if(o.data==="]"){if(--r===0)break}else o.data==="["&&r++;o=o.nextSibling}}else t(e)}const isAsyncWrapper=e=>!!e.type.__asyncLoader;function defineAsyncComponent(e){isFunction$1(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:o,delay:c=200,hydrate:d,timeout:f,suspensible:b=!0,onError:m}=e;let S,w=null,T=0;const A=()=>{let C;return w||(C=w=t().catch(P=>{if(P=P instanceof Error?P:new Error(String(P)),m)return new Promise((B,U)=>{m(P,()=>B((T++,w=null,A())),()=>U(P),T+1)});throw P}).then(P=>
20C!==w&&w?w:(P&&(P.__esModule||P[Symbol.toStringTag]==="Module")&&(P=P.default),S=P,P)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:A,__asyncHydrate(C,P,B){let U=!1;(P.bu||(P.bu=[])).push(()=>U=!0);const D=()=>{U||B()},$=d?()=>{const z=d(D,V=>forEachElement(C,V));z&&(P.bum||(P.bum=[])).push(z)}:D;S?$():A().then(()=>!P.isUnmounted&&$())},get __asyncResolved(){return S},setup(){const C=currentInstance;if(markAsyncBoundary(C),S)return()=>createInnerComp(S,C);const P=V=>{w=null,handleError(V,C,13,!o)};if(b&&C.suspense||isInSSRComponentSetup)return A().then(V=>()=>createInnerComp(V,C)).catch(V=>(P(V),()=>o?createVNode(o,{error:V}):null));const B=ref(!1),U=ref(),D=ref(!!c);let $,z;return onUnmounted(()=>{$!=null&&clearTimeout($),z!=null&&clearTimeout(z)}),c&&(z=setTimeout(()=>{C.isUnmounted||(D.value=!1)},c)),f!=null&&($=setTimeout(()=>{if(!C.isUnmounted&&!B.value&&!U.value){const V=new Error(`Async component timed out after ${f}ms.`);P(V),U.value=V}},f)),A().then(()=>{C.isUnmounted||(B.value=!0,C.parent&&isKeepAlive(C.parent.vnode)&&C.parent.update())}).catch(V=>{C.isUnmounted?w=null:(P(V),U.value=V)}),()=>B.value&&S?createInnerComp(S,C):U.value&&o?createVNode(o,{error:U.value}):r&&!D.value?createInnerComp(r,C):void 0}})}function createInnerComp(e,t){const{ref:r,props:o,children:c,ce:d}=t.vnode,f=createVNode(e,o,c);return f.ref=r,f.ce=d,delete t.vnode.ce,f}const isKeepAlive=e=>e.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=getCurrentInstance(),o=r.ctx;if(!o.renderer)return()=>{const $=t.default&&t.default();return $&&$.length===1?$[0]:$};const c=new Map,d=new Set;let f=null;const b=r.suspense,{renderer:{p:m,m:S,um:w,o:{createElement:T}}}=o,A=T("div");function C($){resetShapeFlag($),w($,r,b,!0)}function P($){c.forEach((z,V)=>{const F=getComponentName(isAsyncWrapper(z)?z.type.__asyncResolved||{}:z.type);F&&!$(F)&&B(V)})}function B($){const z=c.get($);!z||f&&isSameVNodeType(z,f)?f&&resetShapeFlag(f):C(z),c.delete($),d.delete($)}o.activate=($,z,V,F,ee)=>{const te=$.component;S($,z,V,0,b),m(te.vnode,$,z,V,te,b,F,$.slotScopeIds,ee),queuePostRenderEffect(()=>{te.isDeactivated=!1,te.a&&invokeArrayFns(te.a);const K=$.props&&$.props.onVnodeMounted;K&&invokeVNodeHook(K,te.parent,$)},b)},o.deactivate=$=>{const z=$.component;invalidateMount(z.m),invalidateMount(z.a),S($,A,null,1,b),queuePostRenderEffect(()=>{z.da&&invokeArrayFns(z.da);const V=$.props&&$.props.onVnodeUnmounted;V&&invokeVNodeHook(V,z.parent,$),z.isDeactivated=!0},b)},watch(()=>[e.include,e.exclude],([$,z])=>{$&&P(V=>matches$1($,V)),z&&P(V=>!matches$1(z,V))},{flush:"post",deep:!0});let U=null;const D=()=>{U!=null&&(isSuspense(r.subTree.type)?queuePostRenderEffect(()=>{c.set(U,getInnerChild(r.subTree))},r.subTree.suspense):c.set(U,getInnerChild(r.subTree)))};return onMounted(D),onUpdated(D),onBeforeUnmount(()=>{c.forEach($=>{const{subTree:z,suspense:V}=r,F=getInnerChild(z);if($.type===F.type&&$.key===F.key){resetShapeFlag(F);const ee=F.component.da;return void(ee&&queuePostRenderEffect(ee,V))}C($)})}),()=>{if(U=null,!t.default)return f=null;const $=t.default(),z=$[0];if($.length>1)return f=null,$;if(!(isVNode(z)&&(4&z.shapeFlag||128&z.shapeFlag)))return f=null,z;let V=getInnerChild(z);if(V.type===Comment)return f=null,V;const F=V.type,ee=getComponentName(isAsyncWrapper(V)?V.type.__asyncResolved||{}:F),{include:te,exclude:K,max:H}=e;if(te&&(!ee||!matches$1(te,ee))||K&&ee&&matches$1(K,ee))return V.shapeFlag&=-257,f=V,z;const X=V.key==null?F:V.key,J=c.get(X);return V.el&&(V=cloneVNode(V),128&z.shapeFlag&&(z.ssContent=V)),U=X,J?(V.el=J.el,V.component=J.component,V.transition&&setTransitionHooks(V,V.transition),V.shapeFlag|=512,d.delete(X),d.add(X)):(d.add(X),H&&d.size>parseInt(H,10)&&B(d.values().next().value)),V.shapeFlag|=256,f=V,isSuspense(z.type)?z:V}}},KeepAlive=KeepAliveImpl;function matches$1(e,t){return isArray$2(e)?e.some(r=>matches$1(r,t)):isString$2(e)?e.split(",").includes(t):!!isRegExp(e)&&(e.lastIndex=0,e.test(t))}function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,r=currentInstance){const o=e.__wdc||(e.__wdc=()=>{let c=r;for(;c;){if(c.isDeactivated)return;c=c.parent}return e()});if(injectHook(t,o,r),r){let c=r.parent;for(;c&&c.parent;)isKeepAlive(c.parent.vnode)&&injectToKeepAliveRoot(o,t,r,c),c=c.parent}}function injectToKeepAliveRoot(e,t,r,o){const c=injectHook(t,e,o,!0);onUnmounted(()=>{remove$1(o[t],c)},r)}function resetShapeFlag(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function getInnerChild(e){return 128&e.shapeFlag?e.ssContent:e}function injectHook(e,t,r=currentInstance,o=!1){if(r){const c=r[e]||(r[e]=[]),d=t.__weh||(t.__weh=(...f)=>{pauseTracking();const b=setCurrentInstance(r),m=callWithAsyncErrorHandling(t,r,e,f);return b(),resetTracking(),m});return o?c.unshift(d):c.push(d),d}}const createHook=e=>(t,r=currentInstance)=>{isInSSRComponentSetup&&e!=="sp"||injectHook(e,(...o)=>t(...o),r)},onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t=currentInstance){injectHook("ec",e,t)}const COMPONENTS="components",DIRECTIVES="directives";
vendor: 1,553 bytes, line 20
20function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(e){return isString$2(e)?resolveAsset(COMPONENTS,e,!1)||e:e||NULL_DYNAMIC_COMPONENT}function resolveDirective(e){return resolveAsset(DIRECTIVES,e)}function resolveAsset(e,t,r=!0,o=!1){const c=currentRenderingInstance||currentInstance;if(c){const d=c.type;if(e===COMPONENTS){const b=getComponentName(d,!1);if(b&&(b===t||b===camelize(t)||b===capitalize(camelize(t))))return d}const f=resolve(c[e]||d[e],t)||resolve(c.appContext[e],t);return!f&&o?d:f}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}function renderList(e,t,r,o){let c;const d=r&&r[o],f=isArray$2(e);if(f||isString$2(e)){let b=!1,m=!1;f&&isReactive(e)&&(b=!isShallow(e),m=isReadonly(e),e=shallowReadArray(e)),c=new Array(e.length);for(let S=0,w=e.length;S<w;S++)c[S]=t(b?m?toReadonly(toReactive(e[S])):toReactive(e[S]):e[S],S,void 0,d&&d[S])}else if(typeof e=="number"){c=new Array(e);for(let b=0;b<e;b++)c[b]=t(b+1,b,void 0,d&&d[b])}else if(isObject$3(e))if(e[Symbol.iterator])c=Array.from(e,(b,m)=>t(b,m,void 0,d&&d[m]));else{const b=Object.keys(e);c=new Array(b.length);for(let m=0,S=b.length;m<S;m++){const w=b[m];c[m]=t(e[w],w,m,d&&d[m])}}else c=[];return r&&(r[o]=c),c}function createSlots(e,t){for(let r=0;r<t.length;r++){const o=t[r];if(isArray$2(o))for(let c=0;c<o.length;c++)e[o[c].name]=o[c].fn;else o&&(e[o.name]=o.key?(...c)=>{const d=o.fn(...c);return d&&(d.key=o.key),d}:o.fn)}return e}
20function renderSlot(e,t,r={},o,c){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.ce){const S=Object.keys(r).length>0;return t!=="default"&&(r.name=t),openBlock(),createBlock(Fragment,null,[createVNode("slot",r,o&&o())],S?-2:64)}let d=e[t];d&&d._c&&(d._d=!1),openBlock();const f=d&&ensureValidVNode(d(r)),b=r.key||f&&f.key,m=createBlock(Fragment,{key:(b&&!isSymbol(b)?b:`_${t}`)+(!f&&o?"_fb":"")},f||(o?o():[]),f&&e._===1?64:-2);return!c&&m.scopeId&&(m.slotScopeIds=[m.scopeId+"-s"]),d&&d._c&&(d._d=!0),m}function ensureValidVNode(e){return e.some(t=>!isVNode(t)||t.type!==Comment&&!(t.type===Fragment&&!ensureValidVNode(t.children)))?e:null}function toHandlers(e,t){const r={};for(const o in e)r[t&&/[A-Z]/.test(o)?`on:${o}`:toHandlerKey(o)]=e[o];return r}const getPublicInstance=e=>e?isStatefulComponent(e)?getComponentPublicInstance(e):getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>{queueJob(e.update)}),$nextTick:e=>e.n||(e.n=nextTick$1.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn(e,t),PublicInstanceProxyHandlers={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:o,data:c,props:d,accessCache:f,type:b,appContext:m}=e;if(t[0]!=="$"){const A=f[t];if(A!==void 0)switch(A){case 1:return o[t];case 2:return c[t];case 4:return r[t];case 3:return d[t]}else{if(hasSetupBinding(o,t))return f[t]=1,o[t];if(c!==EMPTY_OBJ&&hasOwn(c,t))return f[t]=2,c[t];if(hasOwn(d,t))return f[t]=3,d[t];if(r!==EMPTY_OBJ&&hasOwn(r,t))return f[t]=4,r[t];shouldCacheAccess&&(f[t]=0)}}const S=publicPropertiesMap[t];let w,T;return S?(t==="$attrs"&&track(e.attrs,"get",""),S(e)):(w=b.__cssModules)&&(w=w[t])?w:r!==EMPTY_OBJ&&hasOwn(r,t)?(f[t]=4,r[t]):(T=m.config.globalProperties,hasOwn(T,t)?T[t]:void 0)},set({_:e},t,r){const{data:o,setupState:c,ctx:d}=e;return hasSetupBinding(c,t)?(c[t]=r,!0):o!==EMPTY_OBJ&&hasOwn(o,t)?(o[t]=r,!0):!hasOwn(e.props,t)&&(t[0]!=="$"||!(t.slice(1)in e))&&(d[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:o,appContext:c,props:d,type:f}},b){let m;return!!(r[b]||e!==EMPTY_OBJ&&b[0]!=="$"&&hasOwn(e,b)||hasSetupBinding(t,b)||hasOwn(d,b)||hasOwn(o,b)||hasOwn(publicPropertiesMap,b)||hasOwn(c.config.globalProperties,b)||(m=f.__cssModules)&&m[b])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:hasOwn(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},RuntimeCompiledPublicInstanceProxyHandlers=extend({},PublicInstanceProxyHandlers,{get(e,t){if(t!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(e,t,e)},has:(e,t)=>t[0]!=="_"&&!isGloballyAllowed(t)});function defineProps(){return null}function defineEmits(){return null}function defineExpose(e){}function defineOptions(e){}function defineSlots(){return null}function defineModel(){}function withDefaults(e,t){return null}function useSlots(){return getContext$1().slots}function useAttrs(){return getContext$1().attrs}function getContext$1(e){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(e){return isArray$2(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function mergeDefaults(e,t){const r=normalizePropsOrEmits(e);for(const o in t){if(o.startsWith("__skip"))continue;let c=r[o];c?isArray$2(c)||isFunction$1(c)?c=r[o]={type:c,default:t[o]}:c.default=t[o]:c===null&&(c=r[o]={default:t[o]}),c&&t[`__skip_${o}`]&&(c.skipFactory=!0)}return r}function mergeModels(e,t){return e&&t?isArray$2(e)&&isArray$2(t)?e.concat(t):extend({},normalizePropsOrEmits(e),normalizePropsOrEmits(t)):e||t}function createPropsRestProxy(e,t){const r={};for(const o in e)t.includes(o)||Object.defineProperty(r,o,{enumerable:!0,get:()=>e[o]});return r}function withAsyncContext(e){const t=getCurrentInstance(),r=isInSSRComponentSetup;let o=e();unsetCurrentInstance(),r&&setInSSRSetupState(!1);const c=()=>{setCurrentInstance(t),r&&setInSSRSetupState(!0)},d=()=>{getCurrentInstance()!==t&&t.scope.off(),unsetCurrentInstance(),r&&setInSSRSetupState(!1)};return isPromise(o)&&(o=o.catch(f=>{throw c(),Promise.resolve().then(()=>Promise.resolve().then(d)),f})),[o,()=>{c(),Promise.resolve().then(d)}]}let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),r=e.proxy,o=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:c,computed:d,methods:f,watch:b,provide:m,inject:S,created:w,beforeMount:T,mounted:A,beforeUpdate:C,updated:P,activated:B,deactivated:U,beforeDestroy:D,beforeUnmount:$,destroyed:z,unmounted:V,render:F,renderTracked:ee,renderTriggered:te,errorCaptured:K,serverPrefetch:H,expose:X,inheritAttrs:J,components:G,directives:Q,filters:pe}=t;if(S&&resolveInjections(S,o,null),f)for(const de in f){const _e=f[de];isFunction$1(_e)&&(o[de]=_e.bind(r))}if(c){const de=c.call(r,r);isObject$3(de)&&(e.data=reactive(de))}if(shouldCacheAccess=!0,d)for(const de in d){const _e=d[de],Re=isFunction$1(_e)?_e.bind(r,r):isFunction$1(_e.get)?_e.get.bind(r,r):NOOP,ge=!isFunction$1(_e)&&isFunction$1(_e.set)?_e.set.bind(r):NOOP,Ce=computed({get:Re,set:ge});Object.defineProperty(o,de,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:Me=>Ce.value=Me})}if(b)for(const de in b)createWatcher(b[de],o,r,de);if(m){const de=isFunction$1(m)?m.call(r):m;Reflect.ownKeys(de).forEach(_e=>{provide(_e,de[_e])})}function ye(de,_e){isArray$2(_e)?_e.forEach(Re=>de(Re.bind(r))):_e&&de(_e.bind(r))}if(w&&callHook$1(w,e,"c"),ye(onBeforeMount,T),ye(onMounted,A),ye(onBeforeUpdate,C),ye(onUpdated,P),ye(onActivated,B),ye(onDeactivated,U),ye(onErrorCaptured,K),ye(onRenderTracked,ee),ye(onRenderTriggered,te),ye(onBeforeUnmount,$),ye(onUnmounted,V),ye(onServerPrefetch,H),isArray$2(X))if(X.length){const de=e.exposed||(e.exposed={});
20X.forEach(_e=>{Object.defineProperty(de,_e,{get:()=>r[_e],set:Re=>r[_e]=Re,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===NOOP&&(e.render=F),J!=null&&(e.inheritAttrs=J),G&&(e.components=G),Q&&(e.directives=Q),H&&markAsyncBoundary(e)}function resolveInjections(e,t,r=NOOP){isArray$2(e)&&(e=normalizeInject(e));for(const o in e){const c=e[o];let d;d=isObject$3(c)?"default"in c?inject(c.from||o,c.default,!0):inject(c.from||o):inject(c),isRef(d)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>d.value,set:f=>d.value=f}):t[o]=d}}function callHook$1(e,t,r){callWithAsyncErrorHandling(isArray$2(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,r)}function createWatcher(e,t,r,o){let c=o.includes(".")?createPathGetter(r,o):()=>r[o];if(isString$2(e)){const d=t[e];isFunction$1(d)&&watch(c,d)}else if(isFunction$1(e))watch(c,e.bind(r));else if(isObject$3(e))if(isArray$2(e))e.forEach(d=>createWatcher(d,t,r,o));else{const d=isFunction$1(e.handler)?e.handler.bind(r):t[e.handler];isFunction$1(d)&&watch(c,d,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:r,extends:o}=t,{mixins:c,optionsCache:d,config:{optionMergeStrategies:f}}=e.appContext,b=d.get(t);let m;return b?m=b:c.length||r||o?(m={},c.length&&c.forEach(S=>mergeOptions$1(m,S,f,!0)),mergeOptions$1(m,t,f)):m=t,isObject$3(t)&&d.set(t,m),m}function mergeOptions$1(e,t,r,o=!1){const{mixins:c,extends:d}=t;d&&mergeOptions$1(e,d,r,!0),c&&c.forEach(f=>mergeOptions$1(e,f,r,!0));for(const f in t)if(!(o&&f==="expose")){const b=internalOptionMergeStrats[f]||r&&r[f];e[f]=b?b(e[f],t[f]):t[f]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray$1,created:mergeAsArray$1,beforeMount:mergeAsArray$1,mounted:mergeAsArray$1,beforeUpdate:mergeAsArray$1,updated:mergeAsArray$1,beforeDestroy:mergeAsArray$1,beforeUnmount:mergeAsArray$1,destroyed:mergeAsArray$1,unmounted:mergeAsArray$1,activated:mergeAsArray$1,deactivated:mergeAsArray$1,errorCaptured:mergeAsArray$1,serverPrefetch:mergeAsArray$1,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction$1(e)?e.call(this,this):e,isFunction$1(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray$2(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function mergeAsArray$1(e,t){return e?[...new Set([].concat(e,t))]:t}function mergeObjectOptions(e,t){return e?extend(Object.create(null),e,t):t}function mergeEmitsOrPropsOptions(e,t){return e?isArray$2(e)&&isArray$2(t)?[...new Set([...e,...t])]:extend(Object.create(null),normalizePropsOrEmits(e),normalizePropsOrEmits(t??{})):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;const r=extend(Object.create(null),e);for(const o in t)r[o]=mergeAsArray$1(e[o],t[o]);return r}function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(e,t){return function(r,o=null){isFunction$1(r)||(r=extend({},r)),o==null||isObject$3(o)||(o=null);const c=createAppContext(),d=new WeakSet,f=[];let b=!1;const m=c.app={_uid:uid$1++,_component:r,_props:o,_container:null,_context:c,_instance:null,version:version$2,get config(){return c.config},set config(S){},use:(S,...w)=>(d.has(S)||(S&&isFunction$1(S.install)?(d.add(S),S.install(m,...w)):isFunction$1(S)&&(d.add(S),S(m,...w))),m),mixin:S=>(c.mixins.includes(S)||c.mixins.push(S),m),component:(S,w)=>w?(c.components[S]=w,m):c.components[S],directive:(S,w)=>w?(c.directives[S]=w,m):c.directives[S],mount(S,w,T){if(!b){const A=m._ceVNode||createVNode(r,o);return A.appContext=c,T===!0?T="svg":T===!1&&(T=void 0),w&&t?t(A,S):e(A,S,T),b=!0,m._container=S,S.__vue_app__=m,getComponentPublicInstance(A.component)}},onUnmount(S){f.push(S)},unmount(){b&&(callWithAsyncErrorHandling(f,m._instance,16),e(null,m._container),delete m._container.__vue_app__)},provide:(S,w)=>(c.provides[S]=w,m),runWithContext(S){const w=currentApp;currentApp=m;try{return S()}finally{currentApp=w}}};return m}}let currentApp=null;function useModel(e,t,r=EMPTY_OBJ){const o=getCurrentInstance(),c=camelize(t),d=hyphenate(t),f=getModelModifiers(e,c),b=customRef((m,S)=>{let w,T,A=EMPTY_OBJ;return watchSyncEffect(()=>{const C=e[c];hasChanged(w,C)&&(w=C,S())}),{get:()=>(m(),r.get?r.get(w):w),set(C){const P=r.set?r.set(C):C;if(!(hasChanged(P,w)||A!==EMPTY_OBJ&&hasChanged(C,A)))return;const B=o.vnode.props,U=!!(B&&(t in B||c in B||d in B)&&(`onUpdate:${t}
20`in B||`onUpdate:${c}`in B||`onUpdate:${d}`in B));U||(w=C,S()),o.emit(`update:${t}`,P),hasChanged(C,A)&&(hasChanged(C,P)&&!hasChanged(P,T)||U&&A!==EMPTY_OBJ&&!hasChanged(P,w))&&S(),A=C,T=P}}});return b[Symbol.iterator]=()=>{let m=0;return{next:()=>m<2?{value:m++?f||EMPTY_OBJ:b,done:!1}:{done:!0}}},b}const getModelModifiers=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${camelize(t)}Modifiers`]||e[`${hyphenate(t)}Modifiers`];function emit(e,t,...r){if(e.isUnmounted)return;const o=e.vnode.props||EMPTY_OBJ;let c=r;const d=t.startsWith("update:"),f=d&&getModelModifiers(o,t.slice(7));let b;f&&(f.trim&&(c=r.map(w=>isString$2(w)?w.trim():w)),f.number&&(c=r.map(looseToNumber)));let m=o[b=toHandlerKey(t)]||o[b=toHandlerKey(camelize(t))];!m&&d&&(m=o[b=toHandlerKey(hyphenate(t))]),m&&callWithAsyncErrorHandling(m,e,6,c);const S=o[b+"Once"];if(S){if(e.emitted){if(e.emitted[b])return}else e.emitted={};e.emitted[b]=!0,callWithAsyncErrorHandling(S,e,6,c)}}const mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(e,t,r=!1){const o=r?mixinEmitsCache:t.emitsCache,c=o.get(e);if(c!==void 0)return c;const d=e.emits;let f={},b=!1;if(!isFunction$1(e)){const m=S=>{const w=normalizeEmitsOptions(S,t,!0);w&&(b=!0,extend(f,w))};!r&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}return d||b?(isArray$2(d)?d.forEach(m=>f[m]=null):extend(f,d),isObject$3(e)&&o.set(e,f),f):(isObject$3(e)&&o.set(e,null),null)}function isEmitListener(e,t){return!(!e||!isOn(t))&&(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:r,proxy:o,withProxy:c,propsOptions:[d],slots:f,attrs:b,emit:m,render:S,renderCache:w,props:T,data:A,setupState:C,ctx:P,inheritAttrs:B}=e,U=setCurrentRenderingInstance(e);let D,$;try{if(4&r.shapeFlag){const V=c||o,F=V;D=normalizeVNode(S.call(F,V,w,T,C,A,P)),$=b}else{const V=t;D=normalizeVNode(V.length>1?V(T,{attrs:b,slots:f,emit:m}):V(T,null)),$=t.props?b:getFunctionalFallthrough(b)}}catch(V){blockStack.length=0,handleError(V,e,1),D=createVNode(Comment)}let z=D;if($&&B!==!1){const V=Object.keys($),{shapeFlag:F}=z;V.length&&7&F&&(d&&V.some(isModelListener)&&($=filterModelListeners($,d)),z=cloneVNode(z,$,!1,!0))}return r.dirs&&(z=cloneVNode(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&setTransitionHooks(z,r.transition),D=z,setCurrentRenderingInstance(U),D}function filterSingleRoot(e,t=!0){let r;for(let o=0;o<e.length;o++){const c=e[o];if(!isVNode(c))return;if(c.type!==Comment||c.children==="v-if"){if(r)return;r=c}}return r}const getFunctionalFallthrough=e=>{let t;for(const r in e)(r==="class"||r==="style"||isOn(r))&&((t||(t={}))[r]=e[r]);return t},filterModelListeners=(e,t)=>{const r={};for(const o in e)isModelListener(o)&&o.slice(9)in t||(r[o]=e[o]);return r};function shouldUpdateComponent(e,t,r){const{props:o,children:c,component:d}=e,{props:f,children:b,patchFlag:m}=t,S=d.emitsOptions;if(t.dirs||t.transition)return!0;if(!(r&&m>=0))return!(!c&&!b||b&&b.$stable)||o!==f&&(o?!f||hasPropsChanged(o,f,S):!!f);if(1024&m)return!0;if(16&m)return o?hasPropsChanged(o,f,S):!!f;if(8&m){const w=t.dynamicProps;for(let T=0;T<w.length;T++){const A=w[T];if(hasPropValueChanged(f,o,A)&&!isEmitListener(S,A))return!0}}return!1}function hasPropsChanged(e,t,r){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let c=0;c<o.length;c++){const d=o[c];if(hasPropValueChanged(t,e,d)&&!isEmitListener(r,d))return!0}return!1}function hasPropValueChanged(e,t,r){const o=e[r],c=t[r];return r==="style"&&isObject$3(o)&&isObject$3(c)?!looseEqual(o,c):o!==c}function updateHOCHostEl({vnode:e,parent:t,suspense:r},o){for(;t;){const c=t.subTree;if(c.suspense&&c.suspense.activeBranch===e&&(c.suspense.vnode.el=c.el=o,e=c),c!==e)break;(e=t.vnode).el=o,t=t.parent}r&&r.activeBranch===e&&(r.vnode.el=o)}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=e=>Object.getPrototypeOf(e)===internalObjectProto;function initProps(e,t,r,o=!1){const c={},d=createInternalObject();e.propsDefaults=Object.create(null),setFullProps(e,t,c,d);for(const f in e.propsOptions[0])f in c||(c[f]=void 0);r?e.props=o?c:shallowReactive(c):e.type.props?e.props=c:e.props=d,e.attrs=d}function updateProps(e,t,r,o){const{props:c,attrs:d,vnode:{patchFlag:f}}=e,b=toRaw(c),[m]=e.propsOptions;let S=!1;if(!(o||f>0)||16&f){let w;setFullProps(e,t,c,d)&&(S=!0);for(const T in b)t&&(hasOwn(t,T)||(w=hyphenate(T))!==T&&hasOwn(t,w))||(m?!r||r[T]===void 0&&r[w]===void 0||(c[T]=resolvePropValue(m,b,T,void 0,e,!0)):delete c[T]);if(d!==b)for(const T in d)t&&hasOwn(t,T)||(delete d[T],S=!0)}else if(8&f){const w=e.vnode.dynamicProps;for(let T=0;T<w.length;T++){let A=w[T];if(isEmitListener(e.emitsOptions,A))continue;const C=t[A];
20if(m)if(hasOwn(d,A))C!==d[A]&&(d[A]=C,S=!0);else{const P=camelize(A);c[P]=resolvePropValue(m,b,P,C,e,!1)}else C!==d[A]&&(d[A]=C,S=!0)}}S&&trigger(e.attrs,"set","")}function setFullProps(e,t,r,o){const[c,d]=e.propsOptions;let f,b=!1;if(t)for(let m in t){if(isReservedProp(m))continue;const S=t[m];let w;c&&hasOwn(c,w=camelize(m))?d&&d.includes(w)?(f||(f={}))[w]=S:r[w]=S:isEmitListener(e.emitsOptions,m)||m in o&&S===o[m]||(o[m]=S,b=!0)}if(d){const m=toRaw(r),S=f||EMPTY_OBJ;for(let w=0;w<d.length;w++){const T=d[w];r[T]=resolvePropValue(c,m,T,S[T],e,!hasOwn(S,T))}}return b}function resolvePropValue(e,t,r,o,c,d){const f=e[r];if(f!=null){const b=hasOwn(f,"default");if(b&&o===void 0){const m=f.default;if(f.type!==Function&&!f.skipFactory&&isFunction$1(m)){const{propsDefaults:S}=c;if(r in S)o=S[r];else{const w=setCurrentInstance(c);o=S[r]=m.call(null,t),w()}}else o=m;c.ce&&c.ce._setProp(r,o)}f[0]&&(d&&!b?o=!1:!f[1]||o!==""&&o!==hyphenate(r)||(o=!0))}return o}const mixinPropsCache=new WeakMap;function normalizePropsOptions(e,t,r=!1){const o=r?mixinPropsCache:t.propsCache,c=o.get(e);if(c)return c;const d=e.props,f={},b=[];let m=!1;if(!isFunction$1(e)){const w=T=>{m=!0;const[A,C]=normalizePropsOptions(T,t,!0);extend(f,A),C&&b.push(...C)};!r&&t.mixins.length&&t.mixins.forEach(w),e.extends&&w(e.extends),e.mixins&&e.mixins.forEach(w)}if(!d&&!m)return isObject$3(e)&&o.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$2(d))for(let w=0;w<d.length;w++){const T=camelize(d[w]);validatePropName(T)&&(f[T]=EMPTY_OBJ)}else if(d)for(const w in d){const T=camelize(w);if(validatePropName(T)){const A=d[w],C=f[T]=isArray$2(A)||isFunction$1(A)?{type:A}:extend({},A),P=C.type;let B=!1,U=!0;if(isArray$2(P))for(let D=0;D<P.length;++D){const $=P[D],z=isFunction$1($)&&$.name;if(z==="Boolean"){B=!0;break}z==="String"&&(U=!1)}else B=isFunction$1(P)&&P.name==="Boolean";C[0]=B,C[1]=U,(B||hasOwn(C,"default"))&&b.push(T)}}const S=[f,b];return isObject$3(e)&&o.set(e,S),S}function validatePropName(e){return e[0]!=="$"&&!isReservedProp(e)}const isInternalKey=e=>e==="_"||e==="_ctx"||e==="$stable",normalizeSlotValue=e=>isArray$2(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot$2=(e,t,r)=>{if(t._n)return t;const o=withCtx((...c)=>normalizeSlotValue(t(...c)),r);return o._c=!1,o},normalizeObjectSlots=(e,t,r)=>{const o=e._ctx;for(const c in e){if(isInternalKey(c))continue;const d=e[c];if(isFunction$1(d))t[c]=normalizeSlot$2(c,d,o);else if(d!=null){const f=normalizeSlotValue(d);t[c]=()=>f}}},normalizeVNodeSlots=(e,t)=>{const r=normalizeSlotValue(t);e.slots.default=()=>r},assignSlots=(e,t,r)=>{for(const o in t)!r&&isInternalKey(o)||(e[o]=t[o])},initSlots=(e,t,r)=>{const o=e.slots=createInternalObject();if(32&e.vnode.shapeFlag){const c=t._;c?(assignSlots(o,t,r),r&&def(o,"_",c,!0)):normalizeObjectSlots(t,o)}else t&&normalizeVNodeSlots(e,t)},updateSlots=(e,t,r)=>{const{vnode:o,slots:c}=e;let d=!0,f=EMPTY_OBJ;if(32&o.shapeFlag){const b=t._;b?r&&b===1?d=!1:assignSlots(c,t,r):(d=!t.$stable,normalizeObjectSlots(t,c)),f=t}else t&&(normalizeVNodeSlots(e,t),f={default:1});if(d)for(const b in c)isInternalKey(b)||f[b]!=null||delete c[b]},queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function createHydrationRenderer(e){return baseCreateRenderer(e,createHydrationFunctions)}function baseCreateRenderer(e,t){getGlobalThis().__VUE__=!0;const{insert:r,remove:o,patchProp:c,createElement:d,createText:f,createComment:b,setText:m,setElementText:S,parentNode:w,nextSibling:T,setScopeId:A=NOOP,insertStaticContent:C}=e,P=(he,we,xe,ze=null,Ee=null,se=null,L=void 0,j=null,Z=!!we.dynamicChildren)=>{if(he===we)return;he&&!isSameVNodeType(he,we)&&(ze=We(he),ge(he,Ee,se,!0),he=null),we.patchFlag===-2&&(Z=!1,we.dynamicChildren=null);const{type:le,ref:Te,shapeFlag:Ae}=we;switch(le){case Text:B(he,we,xe,ze);break;case Comment:U(he,we,xe,ze);break;case Static:he==null&&D(we,xe,ze,L);break;case Fragment:H(he,we,xe,ze,Ee,se,L,j,Z);break;default:1&Ae?$(he,we,xe,ze,Ee,se,L,j,Z):6&Ae?X(he,we,xe,ze,Ee,se,L,j,Z):(64&Ae||128&Ae)&&le.process(he,we,xe,ze,Ee,se,L,j,Z,re)}Te!=null&&Ee?setRef(Te,he&&he.ref,se,we||he,!we):Te==null&&he&&he.ref!=null&&setRef(he.ref,null,se,he,!0)},B=(he,we,xe,ze)=>{if(he==null)r(we.el=f(we.children),xe,ze);else{const Ee=we.el=he.el;
20we.children!==he.children&&m(Ee,we.children)}},U=(he,we,xe,ze)=>{he==null?r(we.el=b(we.children||""),xe,ze):we.el=he.el},D=(he,we,xe,ze)=>{[he.el,he.anchor]=C(he.children,we,xe,ze,he.el,he.anchor)},$=(he,we,xe,ze,Ee,se,L,j,Z)=>{if(we.type==="svg"?L="svg":we.type==="math"&&(L="mathml"),he==null)z(we,xe,ze,Ee,se,L,j,Z);else{const le=he.el&&he.el._isVueCE?he.el:null;try{le&&le._beginPatch(),ee(he,we,Ee,se,L,j,Z)}finally{le&&le._endPatch()}}},z=(he,we,xe,ze,Ee,se,L,j)=>{let Z,le;const{props:Te,shapeFlag:Ae,transition:Le,dirs:Ke}=he;if(Z=he.el=d(he.type,se,Te&&Te.is,Te),8&Ae?S(Z,he.children):16&Ae&&F(he.children,Z,null,ze,Ee,resolveChildrenNamespace(he,se),L,j),Ke&&invokeDirectiveHook(he,null,ze,"created"),V(Z,he,he.scopeId,L,ze),Te){for(const Be in Te)Be==="value"||isReservedProp(Be)||c(Z,Be,null,Te[Be],se,ze);"value"in Te&&c(Z,"value",null,Te.value,se),(le=Te.onVnodeBeforeMount)&&invokeVNodeHook(le,ze,he)}Ke&&invokeDirectiveHook(he,null,ze,"beforeMount");const nt=needTransition(Ee,Le);nt&&Le.beforeEnter(Z),r(Z,we,xe),((le=Te&&Te.onVnodeMounted)||nt||Ke)&&queuePostRenderEffect(()=>{try{le&&invokeVNodeHook(le,ze,he),nt&&Le.enter(Z),Ke&&invokeDirectiveHook(he,null,ze,"mounted")}finally{}},Ee)},V=(he,we,xe,ze,Ee)=>{if(xe&&A(he,xe),ze)for(let se=0;se<ze.length;se++)A(he,ze[se]);if(Ee){let se=Ee.subTree;if(we===se||isSuspense(se.type)&&(se.ssContent===we||se.ssFallback===we)){const L=Ee.vnode;V(he,L,L.scopeId,L.slotScopeIds,Ee.parent)}}},F=(he,we,xe,ze,Ee,se,L,j,Z=0)=>{for(let le=Z;le<he.length;le++){const Te=he[le]=j?cloneIfMounted(he[le]):normalizeVNode(he[le]);P(null,Te,we,xe,ze,Ee,se,L,j)}},ee=(he,we,xe,ze,Ee,se,L)=>{const j=we.el=he.el;let{patchFlag:Z,dynamicChildren:le,dirs:Te}=we;Z|=16&he.patchFlag;const Ae=he.props||EMPTY_OBJ,Le=we.props||EMPTY_OBJ;let Ke;if(xe&&toggleRecurse(xe,!1),(Ke=Le.onVnodeBeforeUpdate)&&invokeVNodeHook(Ke,xe,we,he),Te&&invokeDirectiveHook(we,he,xe,"beforeUpdate"),xe&&toggleRecurse(xe,!0),(Ae.innerHTML&&Le.innerHTML==null||Ae.textContent&&Le.textContent==null)&&S(j,""),le?te(he.dynamicChildren,le,j,xe,ze,resolveChildrenNamespace(we,Ee),se):L||ye(he,we,j,null,xe,ze,resolveChildrenNamespace(we,Ee),se,!1),Z>0){if(16&Z)K(j,Ae,Le,xe,Ee);else if(2&Z&&Ae.class!==Le.class&&c(j,"class",null,Le.class,Ee),4&Z&&c(j,"style",Ae.style,Le.style,Ee),8&Z){const nt=we.dynamicProps;for(let Be=0;Be<nt.length;Be++){const vt=nt[Be],ht=Ae[vt],mt=Le[vt];mt===ht&&vt!=="value"||c(j,vt,ht,mt,Ee,xe)}}1&Z&&he.children!==we.children&&S(j,we.children)}else L||le!=null||K(j,Ae,Le,xe,Ee);((Ke=Le.onVnodeUpdated)||Te)&&queuePostRenderEffect(()=>{Ke&&invokeVNodeHook(Ke,xe,we,he),Te&&invokeDirectiveHook(we,he,xe,"updated")},ze)},te=(he,we,xe,ze,Ee,se,L)=>{for(let j=0;j<we.length;j++){const Z=he[j],le=we[j],Te=Z.el&&(Z.type===Fragment||!isSameVNodeType(Z,le)||198&Z.shapeFlag)?w(Z.el):xe;P(Z,le,Te,null,ze,Ee,se,L,!0)}},K=(he,we,xe,ze,Ee)=>{if(we!==xe){if(we!==EMPTY_OBJ)for(const se in we)isReservedProp(se)||se in xe||c(he,se,we[se],null,Ee,ze);for(const se in xe){if(isReservedProp(se))continue;const L=xe[se],j=we[se];L!==j&&se!=="value"&&c(he,se,j,L,Ee,ze)}"value"in xe&&c(he,"value",we.value,xe.value,Ee)}},H=(he,we,xe,ze,Ee,se,L,j,Z)=>{const le=we.el=he?he.el:f(""),Te=we.anchor=he?he.anchor:f("");let{patchFlag:Ae,dynamicChildren:Le,slotScopeIds:Ke}=we;Ke&&(j=j?j.concat(Ke):Ke),he==null?(r(le,xe,ze),r(Te,xe,ze),F(we.children||[],xe,Te,Ee,se,L,j,Z)):Ae>0&&64&Ae&&Le&&he.dynamicChildren&&he.dynamicChildren.length===Le.length?(te(he.dynamicChildren,Le,xe,Ee,se,L,j),(we.key!=null||Ee&&we===Ee.subTree)&&traverseStaticChildren(he,we,!0)):ye(he,we,xe,Te,Ee,se,L,j,Z)},X=(he,we,xe,ze,Ee,se,L,j,Z)=>{we.slotScopeIds=j,he==null?512&we.shapeFlag?Ee.ctx.activate(we,xe,ze,L,Z):J(we,xe,ze,Ee,se,L,Z):G(he,we,Z)},J=(he,we,xe,ze,Ee,se,L)=>{const j=he.component=createComponentInstance(he,ze,Ee);if(isKeepAlive(he)&&(j.ctx.renderer=re),setupComponent(j,!1,L),j.asyncDep){if(Ee&&Ee.registerDep(j,Q,L),!he.el){const Z=j.subTree=createVNode(Comment);U(null,Z,we,xe),he.placeholder=Z.el}}else Q(j,he,we,xe,Ee,se,L)},G=(he,we,xe)=>{const ze=we.component=he.component;if(shouldUpdateComponent(he,we,xe)){if(ze.asyncDep&&!ze.asyncResolved)return void pe(ze,we,xe);
20ze.next=we,ze.update()}else we.el=he.el,ze.vnode=we},Q=(he,we,xe,ze,Ee,se,L)=>{he.scope.on();const j=he.effect=new ReactiveEffect(()=>{if(he.isMounted){let{next:Te,bu:Ae,u:Le,parent:Ke,vnode:nt}=he;{const $t=locateNonHydratedAsyncRoot(he);if($t)return Te&&(Te.el=nt.el,pe(he,Te,L)),void $t.asyncDep.then(()=>{queuePostRenderEffect(()=>{he.isUnmounted||Z()},Ee)})}let Be,vt=Te;toggleRecurse(he,!1),Te?(Te.el=nt.el,pe(he,Te,L)):Te=nt,Ae&&invokeArrayFns(Ae),(Be=Te.props&&Te.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Be,Ke,Te,nt),toggleRecurse(he,!0);const ht=renderComponentRoot(he),mt=he.subTree;he.subTree=ht,P(mt,ht,w(mt.el),We(mt),he,Ee,se),Te.el=ht.el,vt===null&&updateHOCHostEl(he,ht.el),Le&&queuePostRenderEffect(Le,Ee),(Be=Te.props&&Te.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Be,Ke,Te,nt),Ee)}else{let Te;const{el:Ae,props:Le}=we,{bm:Ke,m:nt,parent:Be,root:vt,type:ht}=he,mt=isAsyncWrapper(we);if(toggleRecurse(he,!1),Ke&&invokeArrayFns(Ke),!mt&&(Te=Le&&Le.onVnodeBeforeMount)&&invokeVNodeHook(Te,Be,we),toggleRecurse(he,!0),Ae&&Se){const $t=()=>{he.subTree=renderComponentRoot(he),Se(Ae,he.subTree,he,Ee,null)};mt&&ht.__asyncHydrate?ht.__asyncHydrate(Ae,he,$t):$t()}else{vt.ce&&vt.ce._hasShadowRoot()&&vt.ce._injectChildStyle(ht,he.parent?he.parent.type:void 0);const $t=he.subTree=renderComponentRoot(he);P(null,$t,xe,ze,he,Ee,se),we.el=$t.el}if(nt&&queuePostRenderEffect(nt,Ee),!mt&&(Te=Le&&Le.onVnodeMounted)){const $t=we;queuePostRenderEffect(()=>invokeVNodeHook(Te,Be,$t),Ee)}(256&we.shapeFlag||Be&&isAsyncWrapper(Be.vnode)&&256&Be.vnode.shapeFlag)&&he.a&&queuePostRenderEffect(he.a,Ee),he.isMounted=!0,we=xe=ze=null}});he.scope.off();const Z=he.update=j.run.bind(j),le=he.job=j.runIfDirty.bind(j);le.i=he,le.id=he.uid,j.scheduler=()=>queueJob(le),toggleRecurse(he,!0),Z()},pe=(he,we,xe)=>{we.component=he;const ze=he.vnode.props;he.vnode=we,he.next=null,updateProps(he,we.props,ze,xe),updateSlots(he,we.children,xe),pauseTracking(),flushPreFlushCbs(he),resetTracking()},ye=(he,we,xe,ze,Ee,se,L,j,Z=!1)=>{const le=he&&he.children,Te=he?he.shapeFlag:0,Ae=we.children,{patchFlag:Le,shapeFlag:Ke}=we;if(Le>0){if(128&Le)return void _e(le,Ae,xe,ze,Ee,se,L,j,Z);if(256&Le)return void de(le,Ae,xe,ze,Ee,se,L,j,Z)}8&Ke?(16&Te&&Ne(le,Ee,se),Ae!==le&&S(xe,Ae)):16&Te?16&Ke?_e(le,Ae,xe,ze,Ee,se,L,j,Z):Ne(le,Ee,se,!0):(8&Te&&S(xe,""),16&Ke&&F(Ae,xe,ze,Ee,se,L,j,Z))},de=(he,we,xe,ze,Ee,se,L,j,Z)=>{we=we||EMPTY_ARR;const le=(he=he||EMPTY_ARR).length,Te=we.length,Ae=Math.min(le,Te);let Le;for(Le=0;Le<Ae;Le++){const Ke=we[Le]=Z?cloneIfMounted(we[Le]):normalizeVNode(we[Le]);P(he[Le],Ke,xe,null,Ee,se,L,j,Z)}le>Te?Ne(he,Ee,se,!0,!1,Ae):F(we,xe,ze,Ee,se,L,j,Z,Ae)},_e=(he,we,xe,ze,Ee,se,L,j,Z)=>{let le=0;const Te=we.length;let Ae=he.length-1,Le=Te-1;for(;le<=Ae&&le<=Le;){const Ke=he[le],nt=we[le]=Z?cloneIfMounted(we[le]):normalizeVNode(we[le]);if(!isSameVNodeType(Ke,nt))break;P(Ke,nt,xe,null,Ee,se,L,j,Z),le++}for(;le<=Ae&&le<=Le;){const Ke=he[Ae],nt=we[Le]=Z?cloneIfMounted(we[Le]):normalizeVNode(we[Le]);if(!isSameVNodeType(Ke,nt))break;P(Ke,nt,xe,null,Ee,se,L,j,Z),Ae--,Le--}if(le>Ae){if(le<=Le){const Ke=Le+1,nt=Ke<Te?we[Ke].el:ze;for(;le<=Le;)P(null,we[le]=Z?cloneIfMounted(we[le]):normalizeVNode(we[le]),xe,nt,Ee,se,L,j,Z),le++}}else if(le>Le)for(;le<=Ae;)ge(he[le],Ee,se,!0),le++;else{const Ke=le,nt=le,Be=new Map;for(le=nt;le<=Le;le++){const pt=we[le]=Z?cloneIfMounted(we[le]):normalizeVNode(we[le]);pt.key!=null&&Be.set(pt.key,le)}let vt,ht=0;const mt=Le-nt+1;let $t=!1,Mt=0;const Dt=new Array(mt);for(le=0;le<mt;le++)Dt[le]=0;for(le=Ke;le<=Ae;le++){const pt=he[le];if(ht>=mt){ge(pt,Ee,se,!0);continue}let Ut;if(pt.key!=null)Ut=Be.get(pt.key);else for(vt=nt;vt<=Le;vt++)if(Dt[vt-nt]===0&&isSameVNodeType(pt,we[vt])){Ut=vt;break}Ut===void 0?ge(pt,Ee,se,!0):(Dt[Ut-nt]=le+1,Ut>=Mt?Mt=Ut:$t=!0,P(pt,we[Ut],xe,null,Ee,se,L,j,Z),ht++)}const Qe=$t?getSequence(Dt):EMPTY_ARR;for(vt=Qe.length-1,le=mt-1;le>=0;le--){const pt=nt+le,Ut=we[pt],jt=we[pt+1],hr=pt+1<Te?jt.el||resolveAsyncComponentPlaceholder(jt):ze;Dt[le]===0?P(null,Ut,xe,hr,Ee,se,L,j,Z):$t&&(vt<0||le!==Qe[vt]?Re(Ut,xe,hr,2):vt--)}}},Re=(he,we,xe,ze,Ee=null)=>{const{el:se,type:L,transition:j,children:Z,shapeFlag:le}=he;if(6&le)return void Re(he.component.subTree,we,xe,ze);if(128&le)return void he.suspense.move(we,xe,ze);if(64&le)return void L.move(he,we,xe,re);if(L===Fragment){r(se,we,xe);for(let Te=0;Te<Z.length;Te++)Re(Z[Te],we,xe,ze);return void r(he.anchor,we,xe)}if(L===Static)return void(({el:Te,anchor:Ae},Le,Ke)=>{let nt;for(;Te&&Te!==Ae;)nt=T(Te),r(Te,Le,Ke),Te=nt;r(Ae,Le,Ke)})(he,we,xe);if(ze!==2&&1&le&&j)if(ze===0)j.persisted&&!se[leaveCbKey]?r(se,we,xe):(j.beforeEnter(se),r(se,we,xe),queuePostRenderEffect(()=>j.enter(se),Ee));else{const{leave:Te,delayLeave:Ae,afterLeave:Le}=j,Ke=()=>{he.ctx.isUnmounted?o(se):r(se,we,xe)},nt=()=>{const Be=se._isLeaving||!!se[leaveCbKey];se._isLeaving&&se[leaveCbKey](!0),j.persisted&&!Be?Ke():Te(se,()=>{Ke(),Le&&Le()})};Ae?Ae(se,Ke,nt):nt()}else r(se,we,xe)},ge=(he,we,xe,ze=!1,Ee=!1)=>{const{type:se,props:L,ref:j,children:Z,dynamicChildren:le,shapeFlag:Te,patchFlag:Ae,dirs:Le,cacheIndex:Ke,memo:nt}=he;if(Ae===-2&&(Ee=!1),j!=null&&(pauseTracking(),setRef(j,null,xe,he,!0),resetTracking()),Ke!=null&&(we.renderCache[Ke]=void 0),256&Te)return void we.ctx.deactivate(he);const Be=1&Te&&Le,vt=!isAsyncWrapper(he);let ht;if(vt&&(ht=L&&L.onVnodeBeforeUnmount)&&invokeVNodeHook(ht,we,he),6&Te)Ue(he.component,xe,ze);else{if(128&Te)return void he.suspense.unmount(xe,ze);Be&&invokeDirectiveHook(he,null,we,"beforeUnmount"),64&Te?he.type.remove(he,we,xe,re,ze):le&&!le.hasOnce&&(se!==Fragment||Ae>0&&64&Ae)?Ne(le,we,xe,!1,!0):(se===Fragment&&384&Ae||!Ee&&16&Te)&&Ne(Z,we,xe),ze&&Ce(he)}const mt=nt!=null&&Ke==null;(vt&&(ht=L&&L.onVnodeUnmounted)||Be||mt)&&queuePostRenderEffect(()=>{ht&&invokeVNodeHook(ht,we,he),Be&&invokeDirectiveHook(he,null,we,"unmounted"),mt&&(he.el=null)},xe)},Ce=he=>{const{type:we,el:xe,anchor:ze,transition:Ee}=he;if(we===Fragment)return void Me(xe,ze);if(we===Static)return void(({el:L,anchor:j})=>{let Z;for(;L&&L!==j;)Z=T(L),o(L),L=Z;o(j)})(he);const se=()=>{o(xe),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(1&he.shapeFlag&&Ee&&!Ee.persisted){const{leave:L,delayLeave:j}=Ee,Z=()=>L(xe,se);j?j(he.el,se,Z):Z()}else se()},Me=(he,we)=>{let xe;for(;he!==we;)xe=T(he),o(he),he=xe;o(we)},Ue=(he,we,xe)=>{const{bum:ze,scope:Ee,job:se,subTree:L,um:j,m:Z,a:le}=he;invalidateMount(Z),invalidateMount(le),ze&&invokeArrayFns(ze),Ee.stop(),se&&(se.flags|=8,ge(L,he,we,xe)),j&&queuePostRenderEffect(j,we),queuePostRenderEffect(()=>{he.isUnmounted=!0},we)},Ne=(he,we,xe,ze=!1,Ee=!1,se=0)=>{for(let L=se;L<he.length;L++)ge(he[L],we,xe,ze,Ee)},We=he=>{if(6&he.shapeFlag)return We(he.component.subTree);if(128&he.shapeFlag)return he.suspense.next();const we=T(he.anchor||he.el),xe=we&&we[TeleportEndKey];return xe?T(xe):we};let et=!1;const rt=(he,we,xe)=>{let ze;he==null?we._vnode&&(ge(we._vnode,null,null,!0),ze=we._vnode.component):P(we._vnode||null,he,we,null,null,null,xe),we._vnode=he,et||(et=!0,flushPreFlushCbs(ze),flushPostFlushCbs(),et=!1)}
20,re={p:P,um:ge,m:Re,r:Ce,mt:J,mc:F,pc:ye,pbc:te,n:We,o:e};let ne,Se;return t&&([ne,Se]=t(re)),{render:rt,hydrate:ne,createApp:createAppAPI(rt,ne)}}function resolveChildrenNamespace({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function toggleRecurse({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function needTransition(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function traverseStaticChildren(e,t,r=!1){const o=e.children,c=t.children;if(isArray$2(o)&&isArray$2(c))for(let d=0;d<o.length;d++){const f=o[d];let b=c[d];1&b.shapeFlag&&!b.dynamicChildren&&((b.patchFlag<=0||b.patchFlag===32)&&(b=c[d]=cloneIfMounted(c[d]),b.el=f.el),r||b.patchFlag===-2||traverseStaticChildren(f,b)),b.type===Text&&(b.patchFlag===-1&&(b=c[d]=cloneIfMounted(b)),b.el=f.el),b.type!==Comment||b.el||(b.el=f.el)}}function getSequence(e){const t=e.slice(),r=[0];let o,c,d,f,b;const m=e.length;for(o=0;o<m;o++){const S=e[o];if(S!==0){if(c=r[r.length-1],e[c]<S){t[o]=c,r.push(o);continue}for(d=0,f=r.length-1;d<f;)b=d+f>>1,e[r[b]]<S?d=b+1:f=b;S<e[r[d]]&&(d>0&&(t[o]=r[d-1]),r[d]=o)}}for(d=r.length,f=r[d-1];d-- >0;)r[d]=f,f=t[f];return r}function locateNonHydratedAsyncRoot(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:locateNonHydratedAsyncRoot(t)}
20function invalidateMount(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function resolveAsyncComponentPlaceholder(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?resolveAsyncComponentPlaceholder(t.subTree):null}const isSuspense=e=>e.__isSuspense;let suspenseId=0;const SuspenseImpl={name:"Suspense",__isSuspense:!0,process(e,t,r,o,c,d,f,b,m,S){if(e==null)mountSuspense(t,r,o,c,d,f,b,m,S);else{if(d&&d.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);patchSuspense(e,t,r,o,c,f,b,m,S)}},hydrate:hydrateSuspense,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(e,t){const r=e.props&&e.props[t];isFunction$1(r)&&r()}function mountSuspense(e,t,r,o,c,d,f,b,m){const{p:S,o:{createElement:w}}=m,T=w("div"),A=e.suspense=createSuspenseBoundary(e,c,o,t,T,r,d,f,b,m);S(null,A.pendingBranch=e.ssContent,T,null,o,A,d,f),A.deps>0?(triggerEvent(e,"onPending"),triggerEvent(e,"onFallback"),S(null,e.ssFallback,t,r,o,null,d,f),setActiveBranch(A,e.ssFallback)):A.resolve(!1,!0)}function patchSuspense(e,t,r,o,c,d,f,b,{p:m,um:S,o:{createElement:w}}){const T=t.suspense=e.suspense;T.vnode=t,t.el=e.el;const A=t.ssContent,C=t.ssFallback,{activeBranch:P,pendingBranch:B,isInFallback:U,isHydrating:D}=T;if(B)T.pendingBranch=A,isSameVNodeType(B,A)?(m(B,A,T.hiddenContainer,null,c,T,d,f,b),T.deps<=0?T.resolve():U&&(D||(m(P,C,r,o,c,null,d,f,b),setActiveBranch(T,C)))):(T.pendingId=suspenseId++,D?(T.isHydrating=!1,T.activeBranch=B):S(B,c,T),T.deps=0,T.effects.length=0,T.hiddenContainer=w("div"),U?(m(null,A,T.hiddenContainer,null,c,T,d,f,b),T.deps<=0?T.resolve():(m(P,C,r,o,c,null,d,f,b),setActiveBranch(T,C))):P&&isSameVNodeType(P,A)?(m(P,A,r,o,c,T,d,f,b),T.resolve(!0)):(m(null,A,T.hiddenContainer,null,c,T,d,f,b),T.deps<=0&&T.resolve()));else if(P&&isSameVNodeType(P,A))m(P,A,r,o,c,T,d,f,b),setActiveBranch(T,A);else if(triggerEvent(t,"onPending"),T.pendingBranch=A,512&A.shapeFlag?T.pendingId=A.component.suspenseId:T.pendingId=suspenseId++,m(null,A,T.hiddenContainer,null,c,T,d,f,b),T.deps<=0)T.resolve();else{const{timeout:$,pendingId:z}=T;$>0?setTimeout(()=>{T.pendingId===z&&T.fallback(C)},$):$===0&&T.fallback(C)}}function createSuspenseBoundary(e,t,r,o,c,d,f,b,m,S,w=!1){const{p:T,m:A,um:C,n:P,o:{parentNode:B,remove:U}}=S;let D;const $=isVNodeSuspensible(e);$&&t&&t.pendingBranch&&(D=t.pendingId,t.deps++);const z=e.props?toNumber(e.props.timeout):void 0,V=d,F={vnode:e,parent:t,parentComponent:r,namespace:f,container:o,hiddenContainer:c,deps:0,pendingId:suspenseId++,timeout:typeof z=="number"?z:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!w,isHydrating:w,isUnmounted:!1,effects:[],resolve(ee=!1,te=!1){const{vnode:K,activeBranch:H,pendingBranch:X,pendingId:J,effects:G,parentComponent:Q,container:pe,isInFallback:ye}=F;let de=!1;if(F.isHydrating)F.isHydrating=!1;else if(!ee){de=H&&X.transition&&X.transition.mode==="out-in";let ge=!1;de&&(H.transition.afterLeave=()=>{J===F.pendingId&&(A(X,pe,d!==V||ge?d:P(H),0),queuePostFlushCb(G),ye&&K.ssFallback&&(K.ssFallback.el=null))}),H&&!F.isFallbackMountPending&&(B(H.el)===pe&&(d=P(H),ge=!0),C(H,Q,F,!0),!de&&ye&&K.ssFallback&&queuePostRenderEffect(()=>K.ssFallback.el=null,F)),de||A(X,pe,d,0)}F.isFallbackMountPending=!1,setActiveBranch(F,X),F.pendingBranch=null,F.isInFallback=!1;let _e=F.parent,Re=!1;for(;_e;){if(_e.pendingBranch){_e.effects.push(...G),Re=!0;break}_e=_e.parent}Re||de||queuePostFlushCb(G),F.effects=[],$&&t&&t.pendingBranch&&D===t.pendingId&&(t.deps--,t.deps!==0||te||t.resolve()),triggerEvent(K,"onResolve")},fallback(ee){if(!F.pendingBranch)return;const{vnode:te,activeBranch:K,parentComponent:H,container:X,namespace:J}=F;triggerEvent(te,"onFallback");const G=P(K),Q=()=>{F.isFallbackMountPending=!1,F.isInFallback&&(T(null,ee,X,G,H,null,J,b,m),setActiveBranch(F,ee))},pe=ee.transition&&ee.transition.mode==="out-in";pe&&(F.isFallbackMountPending=!0,K.transition.afterLeave=Q),F.isInFallback=!0,C(K,H,null,!0),pe||Q()},move(ee,te,K){F.activeBranch&&A(F.activeBranch,ee,te,K),F.container=ee},next:()=>F.activeBranch&&P(F.activeBranch),registerDep(ee,te,K){const H=!!F.pendingBranch;H&&F.deps++;const X=ee.vnode.el;
20ee.asyncDep.catch(J=>{handleError(J,ee,0)}).then(J=>{if(ee.isUnmounted||F.isUnmounted||F.pendingId!==ee.suspenseId)return;unsetCurrentInstance(),ee.asyncResolved=!0;const{vnode:G}=ee;handleSetupResult(ee,J,!1),X&&(G.el=X);const Q=!X&&ee.subTree.el;te(ee,G,B(X||ee.subTree.el),X?null:P(ee.subTree),F,f,K),Q&&(G.placeholder=null,U(Q)),updateHOCHostEl(ee,G.el),H&&--F.deps===0&&F.resolve()})},unmount(ee,te){F.isUnmounted=!0,F.activeBranch&&C(F.activeBranch,r,ee,te),F.pendingBranch&&C(F.pendingBranch,r,ee,te)}};return F}function hydrateSuspense(e,t,r,o,c,d,f,b,m){const S=t.suspense=createSuspenseBoundary(t,o,r,e.parentNode,document.createElement("div"),null,c,d,f,b,!0),w=m(e,S.pendingBranch=t.ssContent,r,S,d,f);return S.deps===0&&S.resolve(!1,!0),w}function normalizeSuspenseChildren(e){const{shapeFlag:t,children:r}=e,o=32&t;e.ssContent=normalizeSuspenseSlot(o?r.default:r),e.ssFallback=o?normalizeSuspenseSlot(r.fallback):createVNode(Comment)}function normalizeSuspenseSlot(e){let t;if(isFunction$1(e)){const r=isBlockTreeEnabled&&e._c;r&&(e._d=!1,openBlock()),e=e(),r&&(e._d=!0,t=currentBlock,closeBlock())}return isArray$2(e)&&(e=filterSingleRoot(e)),e=normalizeVNode(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray$2(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function setActiveBranch(e,t){e.activeBranch=t;const{vnode:r,parentComponent:o}=e;let c=t.el;for(;!c&&t.component;)c=(t=t.component.subTree).el;r.el=c,o&&o.subTree===r&&(o.vnode.el=c,updateHOCHostEl(o,c))}function isVNodeSuspensible(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(e=!1){blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(e,t=!1){isBlockTreeEnabled+=e,e<0&&currentBlock&&t&&(currentBlock.hasOnce=!0)}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),e}function createElementBlock(e,t,r,o,c,d){return setupBlock(createBaseVNode(e,t,r,o,c,d,!0))}function createBlock(e,t,r,o,c){return setupBlock(createVNode(e,t,r,o,c,!0))}function isVNode(e){return!!e&&e.__v_isVNode===!0}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}function transformVNodeArgs(e){}const normalizeKey$1=({key:e})=>e??null,normalizeRef=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?isString$2(e)||isRef(e)||isFunction$1(e)?{i:currentRenderingInstance,r:e,k:t,f:!!r}:e:null);function createBaseVNode(e,t=null,r=null,o=0,c=null,d=e===Fragment?0:1,f=!1,b=!1){const m={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey$1(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:o,dynamicProps:c,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return b?(normalizeChildren(m,r),128&d&&e.normalize(m)):r&&(m.shapeFlag|=isString$2(r)?8:16),isBlockTreeEnabled>0&&!f&&currentBlock&&(m.patchFlag>0||6&d)&&m.patchFlag!==32&&currentBlock.push(m),m}const createVNode=_createVNode;function _createVNode(e,t=null,r=null,o=0,c=null,d=!1){if(e&&e!==NULL_DYNAMIC_COMPONENT||(e=Comment),isVNode(e)){const f=cloneVNode(e,t,!0);return r&&normalizeChildren(f,r),isBlockTreeEnabled>0&&!d&&currentBlock&&(6&f.shapeFlag?currentBlock[currentBlock.indexOf(e)]=f:currentBlock.push(f)),f.patchFlag=-2,f}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:f,style:b}=t;f&&!isString$2(f)&&(t.class=normalizeClass(f)),isObject$3(b)&&(isProxy(b)&&!isArray$2(b)&&(b=extend({},b)),t.style=normalizeStyle(b))}return createBaseVNode(e,t,r,o,c,isString$2(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$3(e)?4:isFunction$1(e)?2:0,d,!0)}function guardReactiveProps(e){return e?isProxy(e)||isInternalObject(e)?extend({},e):e:null}function cloneVNode(e,t,r=!1,o=!1){const{props:c,ref:d,patchFlag:f,children:b,transition:m}=e,S=t?mergeProps(c||{}
20,t):c,w={__v_isVNode:!0,__v_skip:!0,type:e.type,props:S,key:S&&normalizeKey$1(S),ref:t&&t.ref?r&&d?isArray$2(d)?d.concat(normalizeRef(t)):[d,normalizeRef(t)]:normalizeRef(t):d,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:b,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?f===-1?16:16|f:f,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:m,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return m&&o&&setTransitionHooks(w,m.clone(w)),w}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){const r=createVNode(Static,null,e);return r.staticCount=t,r}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray$2(e)?createVNode(Fragment,null,e.slice()):isVNode(e)?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let r=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(isArray$2(t))r=16;else if(typeof t=="object"){if(65&o){const c=t.default;return void(c&&(c._c&&(c._d=!1),normalizeChildren(e,c()),c._c&&(c._d=!0)))}{r=32;const c=t._;c||isInternalObject(t)?c===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=currentRenderingInstance}}else isFunction$1(t)?(t={default:t,_ctx:currentRenderingInstance},r=32):(t=String(t),64&o?(r=16,t=[createTextVNode(t)]):r=8);e.children=t,e.shapeFlag|=r}function mergeProps(...e){const t={};for(let r=0;r<e.length;r++){const o=e[r];for(const c in o)if(c==="class")t.class!==o.class&&(t.class=normalizeClass([t.class,o.class]));else if(c==="style")t.style=normalizeStyle([t.style,o.style]);else if(isOn(c)){const d=t[c],f=o[c];!f||d===f||isArray$2(d)&&d.includes(f)?f!=null||d!=null||isModelListener(c)||(t[c]=f):t[c]=d?[].concat(d,f):f}else c!==""&&(t[c]=o[c])}return t}function invokeVNodeHook(e,t,r,o=null){callWithAsyncErrorHandling(e,t,7,[r,o])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(e,t,r){const o=e.type,c=(t?t.appContext:e.appContext)||emptyAppContext,d={uid:uid++,vnode:e,type:o,parent:t,appContext:c,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(c.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(o,c),emitsOptions:normalizeEmitsOptions(o,c),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:o.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return d.ctx={_:d},d.root=t?t.root:d,d.emit=emit.bind(null,d),e.ce&&e.ce(d),d}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const e=getGlobalThis(),t=(r,o)=>{let c;return(c=e[r])||(c=e[r]=[]),c.push(o),d=>{c.length>1?c.forEach(f=>f(d)):c[0](d)}};internalSetCurrentInstance=t("__VUE_INSTANCE_SETTERS__",r=>currentInstance=r),setInSSRSetupState=t("__VUE_SSR_SETTERS__",r=>isInSSRComponentSetup=r)}const setCurrentInstance=e=>{const t=currentInstance;return internalSetCurrentInstance(e),e.scope.on(),()=>{e.scope.off(),internalSetCurrentInstance(t)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(e){return 4&e.vnode.shapeFlag}let isInSSRComponentSetup=!1,compile$1,installWithProxy;function setupComponent(e,t=!1,r=!1){t&&setInSSRSetupState(t);const{props:o,children:c}=e.vnode,d=isStatefulComponent(e);initProps(e,o,d,t),initSlots(e,c,r||t);const f=d?setupStatefulComponent(e,t):void 0;return t&&setInSSRSetupState(!1),f}function setupStatefulComponent(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,PublicInstanceProxyHandlers);const{setup:o}=r;if(o){pauseTracking();const c=e.setupContext=o.length>1?createSetupContext(e):null,d=setCurrentInstance(e),f=callWithErrorHandling(o,e,0,[e.props,c]),b=isProm
20ise(f);if(resetTracking(),d(),!b&&!e.sp||isAsyncWrapper(e)||markAsyncBoundary(e),b){if(f.then(unsetCurrentInstance,unsetCurrentInstance),t)return f.then(m=>{handleSetupResult(e,m,t)}).catch(m=>{handleError(m,e,0)});e.asyncDep=f}else handleSetupResult(e,f,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,r){isFunction$1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$3(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,r)}function registerRuntimeCompiler(e){compile$1=e,installWithProxy=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup(e,t,r){const o=e.type;if(!e.render){if(!t&&compile$1&&!o.render){const c=o.template||resolveMergedOptions(e).template;if(c){const{isCustomElement:d,compilerOptions:f}=e.appContext.config,{delimiters:b,compilerOptions:m}=o,S=extend(extend({isCustomElement:d,delimiters:b},f),m);o.render=compile$1(c,S)}}e.render=o.render||NOOP,installWithProxy&&installWithProxy(e)}{const c=setCurrentInstance(e);pauseTracking();try{applyOptions(e)}finally{resetTracking(),c()}}}const attrsProxyHandlers={get:(e,t)=>(track(e,"get",""),e[t])};function createSetupContext(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,attrsProxyHandlers),slots:e.slots,emit:e.emit,expose:t}}function getComponentPublicInstance(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get:(t,r)=>r in t?t[r]:r in publicPropertiesMap?publicPropertiesMap[r](e):void 0,has:(t,r)=>r in t||r in publicPropertiesMap})):e.proxy}const classifyRE=/(?:^|[-_])\w/g,classify=e=>e.replace(classifyRE,t=>t.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,t=!0){return isFunction$1(e)?e.displayName||e.name:e.name||t&&e.__name}function formatComponentName(e,t,r=!1){let o=getComponentName(t);if(!o&&t.__file){const c=t.__file.match(/([^/\\]+)\.\w+$/);c&&(o=c[1])}if(!o&&e){const c=d=>{for(const f in d)if(d[f]===t)return f};o=c(e.components)||e.parent&&c(e.parent.type.components)||c(e.appContext.components)}return o?classify(o):r?"App":"Anonymous"}function isClassComponent(e){return isFunction$1(e)&&"__vccOpts"in e}const computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function h(e,t,r){try{setBlockTracking(-1);const o=arguments.length;return o===2?isObject$3(t)&&!isArray$2(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&isVNode(r)&&(r=[r]),createVNode(e,t,r))}finally{setBlockTracking(1)}}function initCustomFormatter(){}function withMemo(e,t,r,o){const c=r[o];if(c&&isMemoSame(c,e))return c;const d=t();return d.memo=e.slice(),d.cacheIndex=o,r[o]=d}function isMemoSame(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let o=0;o<r.length;o++)if(hasChanged(r[o],t[o]))return!1;return isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),!0}const version$2="3.5.38",warn=NOOP,ErrorTypeStrings=ErrorTypeStrings$1,devtools=devtools$1,setDevtoolsHook=setDevtoolsHook$1,_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode,getComponentPublicInstance,ensureValidVNode,pushWarningContext,popWarningContext},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,DeprecationTypes=null;/**
21* @vue/runtime-dom v3.5.38
22* (c) 2018-present Yuxi (Evan) You and Vue contributors
23* @license MIT
24**/let policy;const tt=typeof window<"u"&&window.trustedTypes;if(tt)try{policy=tt.createPolicy("vue",{createHTML:e=>e})}catch{}const unsafeToTrustedHTML=policy?e=>policy.createHTML(e):e=>e,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const c=t==="svg"?doc.createElementNS(svgNS,e):t==="mathml"?doc.createElementNS(mathmlNS,e):r?doc.createElement(e,{is:r}):doc.createElement(e);return e==="select"&&o&&o.multiple!=null&&c.setAttribute("multiple",o.multiple),c},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,c,d){const f=r?r.previousSibling:t.lastChild;if(c&&(c===d||c.nextSibling))for(;t.insertBefore(c.cloneNode(!0),r),c!==d&&(c=c.nextSibling););else{templateContainer.innerHTML=unsafeToTrustedHTML(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const b=templateContainer.content;if(o==="svg"||o==="mathml"){const m=b.firstChild;for(;m.firstChild;)b.appendChild(m.firstChild);b.removeChild(m)}t.insertBefore(b,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},TRANSITION$1="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=extend({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=e=>(e.displayName="Transition",e.props=TransitionPropsValidators,e),Transition=decorate$1((e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t)),callHook=(e,t=[])=>{isArray$2(e)?e.forEach(r=>r(...t)):e&&e(...t)},hasExplicitCallback=e=>!!e&&(isArray$2(e)?e.some(t=>t.length>1):e.length>1);function resolveTransitionProps(e){const t={};for(const G in e)G in DOMTransitionPropsValidators||(t[G]=e[G]);if(e.css===!1)return t;const{name:r="v",type:o,duration:c,enterFromClass:d=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:b=`${r}-enter-to`,appearFromClass:m=d,appearActiveClass:S=f,appearToClass:w=b,leaveFromClass:T=`${r}-leave-from`,leaveActiveClass:A=`${r}-leave-active`,leaveToClass:C=`${r}-leave-to`}=e,P=normalizeDuration(c),B=P&&P[0],U=P&&P[1],{onBeforeEnter:D,onEnter:$,onEnterCancelled:z,onLeave:V,onLeaveCancelled:F,onBeforeAppear:ee=D,onAppear:te=$,onAppearCancelled:K=z}=t,H=(G,Q,pe,ye)=>{G._enterCancelled=ye,removeTransitionClass(G,Q?w:b),removeTransitionClass(G,Q?S:f),pe&&pe()},X=(G,Q)=>{G._isLeaving=!1,removeTransitionClass(G,T),removeTransitionClass(G,C),removeTransitionClass(G,A),Q&&Q()},J=G=>(Q,pe)=>{const ye=G?te:$,de=()=>H(Q,G,pe);callHook(ye,[Q,de]),nextFrame(()=>{removeTransitionClass(Q,G?m:d),addTransitionClass(Q,G?w:b),hasExplicitCallback(ye)||whenTransitionEnds(Q,o,B,de)})};return extend(t,{onBeforeEnter(G){callHook(D,[G]),addTransitionClass(G,d),addTransitionClass(G,f)},onBeforeAppear(G){callHook(ee,[G]),addTransitionClass(G,m),addTransitionClass(G,S)},onEnter:J(!1),onAppear:J(!0),onLeave(G,Q){G._isLeaving=!0;const pe=()=>X(G,Q);addTransitionClass(G,T),G._enterCancelled?(addTransitionClass(G,A),forceReflow(G)):(forceReflow(G),addTransitionClass(G,A)),nextFrame(()=>{G._isLeaving&&(removeTransitionClass(G,T),addTransitionClass(G,C),hasExplicitCallback(V)||whenTransitionEnds(G,o,U,pe))}),callHook(V,[G,pe])},onEnterCancelled(G){H(G,!1,void 0,!0),callHook(z,[G])},onAppearCancelled(G){H(G,!0,void 0,!0),callHook(K,[G])},onLeaveCancelled(G){X(G),callHook(F,[G])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$3(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber(e)}
vendor: 2,395 bytes, line 24
24function addTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[vtcKey]||(e[vtcKey]=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[vtcKey];r&&(r.delete(t),r.size||(e[vtcKey]=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let endId=0;function whenTransitionEnds(e,t,r,o){const c=e._endId=++endId,d=()=>{c===e._endId&&o()};if(r!=null)return setTimeout(d,r);const{type:f,timeout:b,propCount:m}=getTransitionInfo(e,t);if(!f)return o();const S=f+"end";let w=0;const T=()=>{e.removeEventListener(S,A),d()},A=C=>{C.target===e&&++w>=m&&T()};setTimeout(()=>{w<m&&T()},b+1),e.addEventListener(S,A)}function getTransitionInfo(e,t){const r=window.getComputedStyle(e),o=C=>(r[C]||"").split(", "),c=o(`${TRANSITION$1}Delay`),d=o(`${TRANSITION$1}Duration`),f=getTimeout(c,d),b=o(`${ANIMATION}Delay`),m=o(`${ANIMATION}Duration`),S=getTimeout(b,m);let w=null,T=0,A=0;return t===TRANSITION$1?f>0&&(w=TRANSITION$1,T=f,A=d.length):t===ANIMATION?S>0&&(w=ANIMATION,T=S,A=m.length):(T=Math.max(f,S),w=T>0?f>S?TRANSITION$1:ANIMATION:null,A=w?w===TRANSITION$1?d.length:m.length:0),{type:w,timeout:T,propCount:A,hasTransform:w===TRANSITION$1&&/\b(?:transform|all)(?:,|$)/.test(o(`${TRANSITION$1}Property`).toString())}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>toMs(r)+toMs(e[o])))}function toMs(e){return e==="auto"?0:1e3*Number(e.slice(0,-1).replace(",","."))}function forceReflow(e){return(e?e.ownerDocument:document).body.offsetHeight}function patchClass(e,t,r){const o=e[vtcKey];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),vShow={name:"show",beforeMount(e,{value:t},{transition:r}){e[vShowOriginalDisplay]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):setDisplay(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),setDisplay(e,!0),o.enter(e)):o.leave(e,()=>{setDisplay(e,!1)}):setDisplay(e,t))},beforeUnmount(e,{value:t}){setDisplay(e,t)}};function setDisplay(e,t){e.style.display=t?e[vShowOriginalDisplay]:"none",e[vShowHidden]=!t}function initVShowForSSR(){vShow.getSSRProps=({value:e})=>
24{if(!e)return{style:{display:"none"}}}}const CSS_VAR_TEXT=Symbol("");function useCssVars(e){const t=getCurrentInstance();if(!t)return;const r=t.ut=(c=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(d=>setVarsOnNode(d,c))},o=()=>{const c=e(t.proxy);t.ce?setVarsOnNode(t.ce,c):setVarsOnVNode(t.subTree,c),r(c)};onBeforeUpdate(()=>{queuePostFlushCb(o)}),onMounted(()=>{watch(o,NOOP,{flush:"post"});const c=new MutationObserver(o);c.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>c.disconnect())})}function setVarsOnVNode(e,t){if(128&e.shapeFlag){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)setVarsOnNode(e.el,t);else if(e.type===Fragment)e.children.forEach(r=>setVarsOnVNode(r,t));else if(e.type===Static){let{el:r,anchor:o}=e;for(;r&&(setVarsOnNode(r,t),r!==o);)r=r.nextSibling}}function setVarsOnNode(e,t){if(e.nodeType===1){const r=e.style;let o="";for(const c in t){const d=normalizeCssVarValue(t[c]);r.setProperty(`--${c}`,d),o+=`--${c}: ${d};`}r[CSS_VAR_TEXT]=o}}const displayRE=/(?:^|;)\s*display\s*:/;function patchStyle(e,t,r){const o=e.style,c=isString$2(r);let d=!1;if(r&&!c){if(t)if(isString$2(t))for(const f of t.split(";")){const b=f.slice(0,f.indexOf(":")).trim();r[b]==null&&setStyle$1(o,b,"")}else for(const f in t)r[f]==null&&setStyle$1(o,f,"");for(const f in r){f==="display"&&(d=!0);const b=r[f];b!=null?shouldPreserveTextareaResizeStyle(e,f,!isString$2(t)&&t?t[f]:void 0,b)||setStyle$1(o,f,b):setStyle$1(o,f,"")}}else if(c){if(t!==r){const f=o[CSS_VAR_TEXT];f&&(r+=";"+f),o.cssText=r,d=displayRE.test(r)}}else t&&e.removeAttribute("style");vShowOriginalDisplay in e&&(e[vShowOriginalDisplay]=d?o.display:"",e[vShowHidden]&&(o.display="none"))}const importantRE=/\s*!important$/;function setStyle$1(e,t,r){if(isArray$2(r))r.forEach(o=>setStyle$1(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=autoPrefix(e,t);importantRE.test(r)?e.setProperty(hyphenate(o),r.replace(importantRE,""),"important"):e[o]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const r=prefixCache[t];if(r)return r;let o=camelize(t);if(o!=="filter"&&o in e)return prefixCache[t]=o;o=capitalize(o);for(let c=0;c<prefixes.length;c++){const d=prefixes[c]+o;if(d in e)return prefixCache[t]=d}return t}function shouldPreserveTextareaResizeStyle(e,t,r,o){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&isString$2(o)&&r===o}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(e,t,r,o,c,d=isSpecialBooleanAttr(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,r):r==null||d&&!includeBooleanAttr(r)?e.removeAttribute(t):e.setAttribute(t,d?"":isSymbol(r)?String(r):r)}function patchDOMProp(e,t,r,o,c){if(t==="innerHTML"||t==="textContent")return void(r!=null&&(e[t]=t==="innerHTML"?unsafeToTrustedHTML(r):r));const d=e.tagName;if(t==="value"&&d!=="PROGRESS"&&!d.includes("-")){const b=d==="OPTION"?e.getAttribute("value")||"":e.value,m=r==null?e.type==="checkbox"?"on":"":String(r);return b===m&&"_value"in e||(e.value=m),r==null&&e.removeAttribute(t),void(e._value=r)}let f=!1;if(r===""||r==null){const b=typeof e[t];b==="boolean"?r=includeBooleanAttr(r):r==null&&b==="string"?(r="",f=!0):b==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(c||t)}function addEventListener(e,t,r,o){e.addEventListener(t,r,o)}function removeEventListener(e,t,r,o){e.removeEventListener(t,r,o)}const veiKey=Symbol("_vei");function patchEvent(e,t,r,o,c=null){const d=e[veiKey]||(e[veiKey]={}),f=d[t];if(o&&f)f.value=o;else{const[b,m]=parseName(t);o?addEventListener(e,b,d[t]=createInvoker(o,c),m):f&&(removeEventListener(e,b,f,m),d[t]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let t;if(optionsModifierRE.test(e)){let r;for(t={};r=e.match(optionsModifierRE);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):hyphenate(e.slice(2)),t]}let cachedNow=0;const p$1=Promise.resolve(),getNow=()=>cachedNow||(p$1.then(()=>
24cachedNow=0),cachedNow=Date.now());function createInvoker(e,t){const r=o=>{if(o._vts){if(o._vts<=r.attached)return}else o._vts=Date.now();const c=r.value;if(isArray$2(c)){const d=o.stopImmediatePropagation;o.stopImmediatePropagation=()=>{d.call(o),o._stopped=!0};const f=c.slice(),b=[o];for(let m=0;m<f.length&&!o._stopped;m++){const S=f[m];S&&callWithAsyncErrorHandling(S,t,5,b)}}else callWithAsyncErrorHandling(c,t,5,[o])};return r.value=e,r.attached=getNow(),r}const isNativeOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,patchProp=(e,t,r,o,c,d)=>{const f=c==="svg";t==="class"?patchClass(e,o,f):t==="style"?patchStyle(e,r,o):isOn(t)?isModelListener(t)||patchEvent(e,t,r,o,d):(t[0]==="."?(t=t.slice(1),1):t[0]==="^"?(t=t.slice(1),0):shouldSetAsProp(e,t,o,f))?(patchDOMProp(e,t,o),e.tagName.includes("-")||t!=="value"&&t!=="checked"&&t!=="selected"||patchAttr(e,t,o,f,d,t!=="value")):e._isVueCE&&(shouldSetAsPropForVueCE(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!isString$2(o)))?patchDOMProp(e,camelize(t),o,d,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),patchAttr(e,t,o,f))};function shouldSetAsProp(e,t,r,o){if(o)return t==="innerHTML"||t==="textContent"||!!(t in e&&isNativeOn(t)&&isFunction$1(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const c=e.tagName;if(c==="IMG"||c==="VIDEO"||c==="CANVAS"||c==="SOURCE")return!1}return(!isNativeOn(t)||!isString$2(r))&&t in e}function shouldSetAsPropForVueCE(e,t){const r=e._def.props;if(!r)return!1;const o=camelize(t);return Array.isArray(r)?r.some(c=>camelize(c)===o):Object.keys(r).some(c=>camelize(c)===o)}const REMOVAL={};function defineCustomElement(e,t,r){let o=defineComponent(e,t);isPlainObject$2(o)&&(o=extend({},o,t));class c extends VueElement{constructor(f){super(o,f,r)}}return c.def=o,c}const defineSSRCustomElement=(e,t)=>defineCustomElement(e,t,createSSRApp),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(t,r={},o=createApp){super(),this._def=t,this._props=r,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&o!==createApp?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(extend({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof VueElement){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,nextTick$1(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const r of t)this._setAttr(r.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(o,c=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:d,styles:f}=o;let b;if(d&&!isArray$2(d))for(const m in d){const S=d[m];(S===Number||S&&S.type===Number)&&(m in this._props&&(this._props[m]=toNumber(this._props[m])),(b||(b=Object.create(null)))[
vendor: 1,578 bytes, line 24
24camelize(m)]=!0)}this._numberProps=b,this._resolveProps(o),this.shadowRoot&&this._applyStyles(f),this._mount(o)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(o=>{o.configureApp=this._def.configureApp,t(this._def=o,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const o in r)hasOwn(this,o)||Object.defineProperty(this,o,{get:()=>unref(r[o])})}_resolveProps(t){const{props:r}=t,o=isArray$2(r)?r:Object.keys(r||{});for(const c of Object.keys(this))c[0]!=="_"&&o.includes(c)&&this._setProp(c,this[c]);for(const c of o.map(camelize))Object.defineProperty(this,c,{get(){return this._getProp(c)},set(d){this._setProp(c,d,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let o=r?this.getAttribute(t):REMOVAL;const c=camelize(t);r&&this._numberProps&&this._numberProps[c]&&(o=toNumber(o)),this._setProp(c,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,o=!0,c=!1){if(r!==this._props[t]&&(this._dirty=!0,r===REMOVAL?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),c&&this._instance&&this._update(),o)){const d=this._ob;d&&(this._processMutations(d.takeRecords()),d.disconnect()),r===!0?this.setAttribute(hyphenate(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(hyphenate(t),r+""):r||this.removeAttribute(hyphenate(t)),d&&d.observe(this,{attributes:!0})}}
24_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),render(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=createVNode(this._def,extend(t,this._props));return this._instance||(r.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0;const c=(d,f)=>{this.dispatchEvent(new CustomEvent(d,isPlainObject$2(f[0])?extend({detail:f},f[0]):{detail:f}))};o.emit=(d,...f)=>{c(d,f),hyphenate(d)!==d&&c(hyphenate(d),f)},this._setParent()}),r}_applyStyles(t,r,o){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const c=this._nonce,d=this.shadowRoot,f=o?this._getStyleAnchor(o)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(d);let b=null;for(let m=t.length-1;m>=0;m--){const S=document.createElement("style");c&&S.setAttribute("nonce",c),S.textContent=t[m],d.insertBefore(S,b||f),b=S,m===0&&(o||this._styleAnchors.set(this._def,S),r&&this._styleAnchors.set(r,S))}}_getStyleAnchor(t){if(!t)return null;const r=this._styleAnchors.get(t);return r&&r.parentNode===this.shadowRoot?r:(r&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let r=0;r<t.childNodes.length;r++){const o=t.childNodes[r];if(!(o instanceof HTMLStyleElement))return o}return null}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const o=r.nodeType===1&&r.getAttribute("slot")||"default";(t[o]||(t[o]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=this._getSlots(),r=this._instance.type.__scopeId;for(let o=0;o<t.length;o++){const c=t[o],d=c.getAttribute("name")||"default",f=this._slots[d],b=c.parentNode;if(f)for(const m of f){if(r&&m.nodeType===1){const S=r+"-s",w=document.createTreeWalker(m,1);let T;for(m.setAttribute(S,"");T=w.nextNode();)T.setAttribute(S,"")}b.insertBefore(m,c)}else for(;c.firstChild;)b.insertBefore(c.firstChild,c);b.removeChild(c)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const r=new Set;for(const o of t){const c=o.querySelectorAll("slot");for(let d=0;d<c.length;d++)r.add(c[d])}return Array.from(r)}_injectChildStyle(t,r){this._applyStyles(t.styles,t,r)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function useHost(e){const t=getCurrentInstance();return t&&t.ce||null}function useShadowRoot(){const e=useHost();return e&&e.shadowRoot}function useCssModule(e="$style"){{const t=getCurrentInstance();if(!t)return EMPTY_OBJ;const r=t.type.__cssModules;return r&&r[e]||EMPTY_OBJ}}const positionMap=new WeakMap,newPositionMap=new WeakMap,moveCbKey=Symbol("_moveCb"),enterCbKey=Symbol("_enterCb"),decorate=e=>(delete e.props.mode,e),TransitionGroupImpl=decorate({name:"TransitionGroup",props:extend({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=getCurrentInstance(),o=useTransitionState();let c,d;return onUpdated(()=>{if(!c.length)return;const f=e.moveClass||`${e.name||"v"}-move`;if(!hasCSSTransform(c[0].el,r.vnode.el,f))return void(c=[]);c.forEach(callPendingCbs),c.forEach(recordPosition);const b=c.filter(applyTranslation);forceReflow(r.vnode.el),b.forEach(m=>{const S=m.el,w=S.style;addTransitionClass(S,f),w.transform=w.webkitTransform=w.transitionDuration="";const T=S[moveCbKey]=A=>{A&&A.target!==S||A&&!A.propertyName.endsWith("transform")||(S.removeEventListener("transitionend",T),S[moveCbKey]=null,removeTransitionClass(S,f))};S.addEventListener("transitionend",T)}),c=[]}),()=>{const f=toRaw(e),b=resolveTransitionProps(f);let m=f.tag||Fragment;if(c=[],d)for(let S=0;S<d.length;S++){const w=d[S];w.el&&w.el instanceof Element&&!w.el[vShowHidden]&&(c.push(w),setTransitionHooks(w,resolveTransitionHooks(w,b,o,r)),positionMap.set(w,getPosition(w.el)))}d=t.default?getTransitionRawChildren(t.default()):[];for(let S=0;S<d.length;S++){const w=d[S];w.key!=null&&setTransitionHooks(w,resolveTransitionHooks(w,b,o,r))}return createVNode(m,null,d)}}}),TransitionGroup=TransitionGroupImpl;function callPendingCbs(e){const t=e.el;t[moveCbKey]&&t[moveCbKey](),t[enterCbKey]&&t[enterCbKey]()}function recordPosition(e){newPositionMap.set(e,getPosition(e.el))}function applyTranslation(e){const t=positionMap.get(e),r=newPositionMap.get(e),o=t.left-r.left,c=t.top-r.top;if(o||c){const d=e.el,f=d.style,b=d.getBoundingClientRect();let m=1,S=1;return d.offsetWidth&&(m=b.width/d.offsetWidth),d.offsetHeight&&(S=b.height/d.offsetHeight),Number.isFinite(m)&&m!==0||(m=1),Number.isFinite(S)&&S!==0||(S=1),Math.abs(m-1)<.01&&(m=1),Math.abs(S-1)<.01&&(S=1),f.transform=f.webkitTransform=`translate(${o/m}px,${c/S}px)`,f.transitionDuration="0s",e}}function getPosition(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function hasCSSTransform(e,t,r){const o=e.cloneNode(),c=e[vtcKey];
24c&&c.forEach(b=>{b.split(/\s+/).forEach(m=>m&&o.classList.remove(m))}),r.split(/\s+/).forEach(b=>b&&o.classList.add(b)),o.style.display="none";const d=t.nodeType===1?t:t.parentNode;d.appendChild(o);const{hasTransform:f}=getTransitionInfo(o);return d.removeChild(o),f}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"]||!1;return isArray$2(t)?r=>invokeArrayFns(t,r):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const assignKey=Symbol("_assign");function castValue(e,t,r){return t&&(e=e.trim()),r&&(e=looseToNumber(e)),e}const vModelText={created(e,{modifiers:{lazy:t,trim:r,number:o}},c){e[assignKey]=getModelAssigner(c);const d=o||c.props&&c.props.type==="number";addEventListener(e,t?"change":"input",f=>{f.target.composing||e[assignKey](castValue(e.value,r,d))}),(r||d)&&addEventListener(e,"change",()=>{e.value=castValue(e.value,r,d)}),t||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:c,number:d}},f){if(e[assignKey]=getModelAssigner(f),e.composing)return;const b=t??"";if((!d&&e.type!=="number"||/^0\d/.test(e.value)?e.value:looseToNumber(e.value))===b)return;const m=e.getRootNode();(m instanceof Document||m instanceof ShadowRoot)&&m.activeElement===e&&e.type!=="range"&&(o&&t===r||c&&e.value.trim()===b)||(e.value=b)}},vModelCheckbox={deep:!0,created(e,t,r){e[assignKey]=getModelAssigner(r),addEventListener(e,"change",()=>{const o=e._modelValue,c=getValue(e),d=e.checked,f=e[assignKey];if(isArray$2(o)){const b=looseIndexOf(o,c),m=b!==-1;if(d&&!m)f(o.concat(c));else if(!d&&m){const S=[...o];S.splice(b,1),f(S)}}else if(isSet(o)){const b=new Set(o);d?b.add(c):b.delete(c),f(b)}else f(getCheckboxValue(e,d))})},mounted:setChecked,beforeUpdate(e,t,r){e[assignKey]=getModelAssigner(r),setChecked(e,t,r)}};function setChecked(e,{value:t,oldValue:r},o){let c;if(e._modelValue=t,isArray$2(t))c=looseIndexOf(t,o.props.value)>-1;else if(isSet(t))c=t.has(o.props.value);else{if(t===r)return;c=looseEqual(t,getCheckboxValue(e,!0))}e.checked!==c&&(e.checked=c)}const vModelRadio={created(e,{value:t},r){e.checked=looseEqual(t,r.props.value),e[assignKey]=getModelAssigner(r),addEventListener(e,"change",()=>{e[assignKey](getValue(e))})},beforeUpdate(e,{value:t,oldValue:r},o){e[assignKey]=getModelAssigner(o),t!==r&&(e.checked=looseEqual(t,o.props.value))}},vModelSelect={deep:!0,created(e,{value:t,modifiers:{number:r}},o){const c=isSet(t);addEventListener(e,"change",()=>{const d=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>r?looseToNumber(getValue(f)):getValue(f));e[assignKey](e.multiple?c?new Set(d):d:d[0]),e._assigning=!0,nextTick$1(()=>{e._assigning=!1})}),e[assignKey]=getModelAssigner(o)},mounted(e,{value:t}){setSelected(e,t)},beforeUpdate(e,t,r){e[assignKey]=getModelAssigner(r)},updated(e,{value:t}){e._assigning||setSelected(e,t)}};function setSelected(e,t){const r=e.multiple,o=isArray$2(t);if(!r||o||isSet(t)){for(let c=0,d=e.options.length;c<d;c++){const f=e.options[c],b=getValue(f);if(r)if(o){const m=typeof b;f.selected=m==="string"||m==="number"?t.some(S=>String(S)===String(b)):looseIndexOf(t,b)>-1}else f.selected=t.has(b);else if(looseEqual(getValue(f),t))return void(e.selectedIndex!==c&&(e.selectedIndex=c))}r||e.selectedIndex===-1||(e.selectedIndex=-1)}}function getValue(e){return"_value"in e?e._value:e.value}function getCheckboxValue(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const vModelDynamic={created(e,t,r){callModelHook(e,t,r,null,"created")},mounted(e,t,r){callModelHook(e,t,r,null,"mounted")},beforeUpdate(e,t,r,o){callModelHook(e,t,r,o,"beforeUpdate")},updated(e,t,r,o){callModelHook(e,t,r,o,"updated")}};function resolveDynamicModel(e,t){switch(e){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(t){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(e,t,r,o,c){const d=resolveDynamicModel(e.tagName,r.props&&r.props.type)[c];d&&d(e,t,r,o)}function initVModelForSSR(){vModelText.getSSRProps=({value:e})=>({value:e}),vModelRadio.getSSRProps=({value:e},t)=>{if(t.props&&looseEqual(t.props.value,e))return{checked:!0}},vModelCheckbox.getSSRProps=({value:e},t)=>{if(isArray$2(e)){if(t.props&&looseIndexOf(e,t.props.value)>-1)return{checked:!0}}else if(isSet(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},vModelDynamic.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=resolveDynamicModel(t.type.toUpperCase(),t.props&&t.props.type);return r.getSSRProps?r.getSSRProps(e,t):void 0}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>
24systemModifiers.some(r=>e[`${r}Key`]&&!t.includes(r))},withModifiers=(e,t)=>{if(!e)return e;const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(c,...d)=>{for(let f=0;f<t.length;f++){const b=modifierGuards[t[f]];if(b&&b(c,t))return}return e(c,...d)})},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=c=>{if(!("key"in c))return;const d=hyphenate(c.key);return t.some(f=>f===d||keyNames[f]===d)?e(c):void 0})},rendererOptions=extend({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(...e)=>{ensureRenderer().render(...e)},hydrate=(...e)=>{ensureHydrationRenderer().hydrate(...e)},createApp=(...e)=>{const t=ensureRenderer().createApp(...e),{mount:r}=t;return t.mount=o=>{const c=normalizeContainer(o);if(!c)return;const d=t._component;isFunction$1(d)||d.render||d.template||(d.template=c.innerHTML),c.nodeType===1&&(c.textContent="");const f=r(c,!1,resolveRootNamespace(c));return c instanceof Element&&(c.removeAttribute("v-cloak"),c.setAttribute("data-v-app","")),f},t},createSSRApp=(...e)=>{const t=ensureHydrationRenderer().createApp(...e),{mount:r}=t;return t.mount=o=>{const c=normalizeContainer(o);if(c)return r(c,!0,resolveRootNamespace(c))},t};function resolveRootNamespace(e){return e instanceof SVGElement?"svg":typeof MathMLElement=="function"&&e instanceof MathMLElement?"mathml":void 0}function normalizeContainer(e){return isString$2(e)?document.querySelector(e):e}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},runtimeDom_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,DeprecationTypes,EffectScope,ErrorCodes:ErrorCodes$1,ErrorTypeStrings,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text,TrackOpTypes,Transition,TransitionGroup,TriggerOpTypes,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize,cloneVNode,compatUtils,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,devtools,effect,effectScope,getCurrentInstance,getCurrentScope,getCurrentWatcher,getTransitionRawChildren,guardReactiveProps,h,handleError,hasInjectionContext,hydrate,hydrateOnIdle,hydrateOnInteraction,hydrateOnMediaQuery,hydrateOnVisible,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick:nextTick$1,nodeOps,normalizeClass,normalizeProps:normalizeProps$1,normalizeStyle,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,onWatcherCleanup,openBlock,patchProp,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop,toDisplayString,toHandlerKey,toHandlers,toRaw,toRef,toRefs,toValue:toValue$1,transformVNodeArgs,triggerRef,unref,useAttrs,useCssModule,useCssVars,useHost,useId,useModel,useSSRContext,useShadowRoot,useSlots,useTemplateRef,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$2,warn,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),suspectProtoRx=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,suspectConstructorRx=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,JsonSigRx=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function jsonParseTransform(e,t){if(!(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t))return t;warnKeyDropped(e)}function warnKeyDropped(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function destr(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!JsonSigRx.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(suspectProtoRx.test(e)||suspectConstructorRx.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,jsonParseTransform)}return JSON.parse(e)}catch(o){if(t.strict)throw o;return e}}const HASH_RE$1=/#/g,AMPERSAND_RE$1=/&/g,SLASH_RE$1=/\//g,EQUAL_RE$1=/=/g,IM_RE$1=/\?/g,PLUS_RE$1=/\+/g,ENC_CARET_RE$1=/%5e/gi,ENC_BACKTICK_RE$1=/%60/gi,ENC_PIPE_RE$1=/%7c/gi,ENC_SPACE_RE$1=/%20/gi,ENC_ENC_SLASH_RE=/%252f/gi;function encode$1(e){return encodeURI(""+e).replace(ENC_PIPE_RE$1,"|")}function encodeQueryValue$1(e){return encode$1(typeof e=="string"?e:JSON.stringify(e)).replace(PLUS_RE$1,"%2B").replace(ENC_SPACE_RE$1,"+").replace(HASH_RE$1,"%23").replace(AMPERSAND_RE$1,"%26").replace(ENC_BACKTICK_RE$1,"`").replace(ENC_CARET_RE$1,"^").replace(SLASH_RE$1,"%2F")}function encodeQueryKey$1(e){return encodeQueryValue$1(e).replace(EQUAL_RE$1,"%3D")}function encodePath$1(e){return encode$1(e).replace(HASH_RE$1,"%23").replace(IM_RE$1,"%3F").replace(ENC_ENC_SLASH_RE,"%2F").replace(AMPERSAND_RE$1,"%26").replace(PLUS_RE$1,"%2B")}function encodeParam$1(e){return encodePath$1(e).replace(SLASH_RE$1,"%2F")}function decode$2(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function decodeQueryKey(e){return decode$2(e.replace(PLUS_RE$1," "))}function decodeQueryValue(e){return decode$2(e.replace(PLUS_RE$1," "))}function parseQuery$1(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const o=r.match(/([^=]+)=?(.*)/)||[];if(o.length<2)continue;const c=decodeQueryKey(o[1]);if(c==="__proto__"||c==="constructor")continue;const d=decodeQueryValue(o[2]||"");t[c]===void 0?t[c]=d:Array.isArray(t[c])?t[c].push(d):t[c]=[t[c],d]}return t}function encodeQueryItem(e,t){return typeof t!="number"&&typeof t!="boolean"||(t=String(t)),t?Array.isArray(t)?t.map(r=>`${encodeQueryKey$1(e)}=${encodeQueryValue$1(r)}`).join("&"):`${encodeQueryKey$1(e)}=${encodeQueryValue$1(t)}`:encodeQueryKey$1(e)}function stringifyQuery$1(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
24encodeQueryItem(t,e[t])).filter(Boolean).join("&")}const PROTOCOL_STRICT_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,PROTOCOL_REGEX=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,PROTOCOL_RELATIVE_REGEX=/^([/\\]\s*){2,}[^/\\]/,PROTOCOL_SCRIPT_RE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,TRAILING_SLASH_RE$1=/\/$|\/\?|\/#/,JOIN_LEADING_SLASH_RE=/^\.?\//;function hasProtocol(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?PROTOCOL_STRICT_REGEX.test(e):PROTOCOL_REGEX.test(e)||!!t.acceptRelative&&PROTOCOL_RELATIVE_REGEX.test(e)}function isScriptProtocol(e){return!!e&&PROTOCOL_SCRIPT_RE.test(e)}function hasTrailingSlash(e="",t){return t?TRAILING_SLASH_RE$1.test(e):e.endsWith("/")}function withoutTrailingSlash(e="",t){if(!t)return(hasTrailingSlash(e)?e.slice(0,-1):e)||"/";if(!hasTrailingSlash(e,!0))return e||"/";let r=e,o="";const c=e.indexOf("#");c!==-1&&(r=e.slice(0,c),o=e.slice(c));const[d,...f]=r.split("?");return((d.endsWith("/")?d.slice(0,-1):d)||"/")+(f.length>0?`?${f.join("?")}`:"")+o}function withTrailingSlash(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(hasTrailingSlash(e,!0))return e||"/";let r=e,o="";const c=e.indexOf("#");if(c!==-1&&(r=e.slice(0,c),o=e.slice(c),!r))return o;const[d,...f]=r.split("?");return d+"/"+(f.length>0?`?${f.join("?")}`:"")+o}function hasLeadingSlash(e=""){return e.startsWith("/")}function withLeadingSlash(e=""){return hasLeadingSlash(e)?e:"/"+e}function withBase(e,t){if(isEmptyURL(t)||hasProtocol(e))return e;const r=withoutTrailingSlash(t);if(e.startsWith(r)){const o=e[r.length];if(!o||o==="/"||o==="?")return e}return joinURL(r,e)}function withoutBase(e,t){if(isEmptyURL(t))return e;const r=withoutTrailingSlash(t);if(!e.startsWith(r))return e;const o=e[r.length];return o&&o!=="/"&&o!=="?"?e:"/"+e.slice(r.length).replace(/^\/+/,"")}function withQuery(e,t){const r=parseURL$1(e),o={...parseQuery$1(r.search),...t};return r.search=stringifyQuery$1(o),stringifyParsedURL(r)}function isEmptyURL(e){return!e||e==="/"}function isNonEmptyURL(e){return e&&e!=="/"}function joinURL(e,...t){let r=e||"";for(const o of t.filter(c=>isNonEmptyURL(c)))if(r){const c=o.replace(JOIN_LEADING_SLASH_RE,"");r=withTrailingSlash(r)+c}else r=o;return r}function joinRelativeURL(...e){var f,b,m,S;const t=/\/(?!\/)/,r=e.filter(Boolean),o=[];let c=0;for(const w of r)if(w&&w!=="/"){for(const[T,A]of w.split(t).entries())if(A&&A!==".")if(A!=="..")T===1&&((f=o[o.length-1])!=null&&f.endsWith(":/"))?o[o.length-1]+="/"+A:(o.push(A),c++);else{if(o.length===1&&hasProtocol(o[0]))continue;o.pop(),c--}}let d=o.join("/");return c>=0?(b=r[0])!=null&&b.startsWith("/")&&!d.startsWith("/")?d="/"+d:(m=r[0])!=null&&m.startsWith("./")&&!d.startsWith("./")&&(d="./"+d):d="../".repeat(-1*c)+d,(S=r[r.length-1])!=null&&S.endsWith("/")&&!d.endsWith("/")&&(d+="/"),d}function isSamePath(e,t){return decode$2(withoutTrailingSlash(e))===decode$2(withoutTrailingSlash(t))}const protocolRelative=Symbol.for("ufo:protocolRelative");function parseURL$1(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,T,A=""]=r;return{protocol:T.toLowerCase(),pathname:A,href:T+A,auth:"",host:"",search:"",hash:""}}if(!hasProtocol(e,{acceptRelative:!0}))return parsePath(e);const[,o="",c,d=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,f="",b=""]=d.match(/([^#/?]*)(.*)?/)||[];o==="file:"&&(b=b.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:m,search:S,hash:w}=parsePath(b);return{protocol:o.toLowerCase(),auth:c?c.slice(0,Math.max(0,c.length-1)):"",host:f,pathname:m,search:S,hash:w,[protocolRelative]:!o}}function parsePath(e=""){const[t="",r="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:o}}function stringifyParsedURL(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",o=e.hash||"",c=e.auth?e.auth+"@":"",d=e.host||"";return(e.protocol||e[protocolRelative]?(e.protocol||"")+"//":"")+c+d+t+r+o}class FetchError extends Error{constructor(t,r){super(t,r),this.name="FetchError",r!=null&&r.cause&&!this.cause&&(this.cause=r.cause)}}function createFetchError(e){var b,m,S,w,T;const t=((b=e.error)==null?void 0:b.message)||((m=e.error)==null?void 0:m.toString())||"",r=((S=e.request)==null?void 0:S.method)||((w=e.options)==null?void 0:w.method)||"GET",o=((T=e.request)==null?void 0:T.url)||String(e.request)||"/",c=`[${r}] ${JSON.stringify(o)}`,d=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",f=new FetchError(`${c}: ${d}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(const A of["request","options","response"])Object.defineProperty(f,A,{get:()=>e[A]});for(const[A,C]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(f,A,{get:()=>e.response&&e.response[C]});return f}const payloadMethods=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function isPayloadMethod(e="GET"){return payloadMethods.has(e.toUpperCase())}function isJSONSerializable(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null||t==="object"&&(!!Array.isArray(e)||!e.buffer&&!(e instanceof FormData||e instanceof URLSearchParams)&&
24(e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"))}const textTypes=new Set(["image/svg","application/xml","application/xhtml","application/html"]),JSON_RE=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function detectResponseType(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return JSON_RE.test(t)?"json":t==="text/event-stream"?"stream":textTypes.has(t)||t.startsWith("text/")?"text":"blob"}function resolveFetchOptions(e,t,r,o){const c=mergeHeaders((t==null?void 0:t.headers)??(e==null?void 0:e.headers),r==null?void 0:r.headers,o);let d;return(r!=null&&r.query||r!=null&&r.params||t!=null&&t.params||t!=null&&t.query)&&(d={...r==null?void 0:r.params,...r==null?void 0:r.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...r,...t,query:d,params:d,headers:c}}function mergeHeaders(e,t,r){if(!t)return new r(e);const o=new r(t);if(e)for(const[c,d]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))o.set(c,d);return o}async function callHooks$1(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const retryStatusCodes=new Set([408,409,425,429,500,502,503,504]),nullBodyResponses=new Set([101,204,205,304]);function createFetch(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:o=globalThis.AbortController}=e;async function c(b){const m=b.error&&b.error.name==="AbortError"&&!b.options.timeout||!1;if(b.options.retry!==!1&&!m){let w;w=typeof b.options.retry=="number"?b.options.retry:isPayloadMethod(b.options.method)?0:1;const T=b.response&&b.response.status||500;if(w>0&&(Array.isArray(b.options.retryStatusCodes)?b.options.retryStatusCodes.includes(T):retryStatusCodes.has(T))){const A=typeof b.options.retryDelay=="function"?b.options.retryDelay(b):b.options.retryDelay||0;return A>0&&await new Promise(C=>setTimeout(C,A)),d(b.request,{...b.options,retry:w-1})}}const S=createFetchError(b);throw Error.captureStackTrace&&Error.captureStackTrace(S,d),S}const d=async function(b,m={}){const S={request:b,options:resolveFetchOptions(b,m,e.defaults,r),response:void 0,error:void 0};if(S.options.method&&(S.options.method=S.options.method.toUpperCase()),S.options.onRequest&&(await callHooks$1(S,S.options.onRequest),S.options.headers instanceof r||(S.options.headers=new r(S.options.headers||{}))),typeof S.request=="string"&&(S.options.baseURL&&(S.request=withBase(S.request,S.options.baseURL)),S.options.query&&(S.request=withQuery(S.request,S.options.query),delete S.options.query),"query"in S.options&&delete S.options.query,"params"in S.options&&delete S.options.params),S.options.body&&isPayloadMethod(S.options.method))if(isJSONSerializable(S.options.body)){const T=S.options.headers.get("content-type");typeof S.options.body!="string"&&(S.options.body=T==="application/x-www-form-urlencoded"?new URLSearchParams(S.options.body).toString():JSON.stringify(S.options.body)),T||S.options.headers.set("content-type","application/json"),S.options.headers.has("accept")||S.options.headers.set("accept","application/json")}else("pipeTo"in S.options.body&&typeof S.options.body.pipeTo=="function"||typeof S.options.body.pipe=="function")&&("duplex"in S.options||(S.options.duplex="half"));let w;if(!S.options.signal&&S.options.timeout){const T=new o;w=setTimeout(()=>{const A=new Error("[TimeoutError]: The operation was aborted due to timeout");A.name="TimeoutError",A.code=23,T.abort(A)},S.options.timeout),S.options.signal=T.signal}try{S.response=await t(S.request,S.options)}catch(T){return S.error=T,S.options.onRequestError&&await callHooks$1(S,S.options.onRequestError),await c(S)}finally{w&&clearTimeout(w)}if((S.response.body||S.response._bodyInit)&&!nullBodyResponses.has(S.response.status)&&S.options.method!=="HEAD"){const T=(S.options.parseResponse?"json":S.options.responseType)||detectResponseType(S.response.headers.get("content-type")||"");switch(T){case"json":{const A=await S.response.text(),C=S.options.parseResponse||destr;S.response._data=C(A);break}case"stream":S.response._data=S.response.body||S.response._bodyInit;break;default:S.response._data=await S.response[T]()}}return S.options.onResponse&&await callHooks$1(S,S.options.onResponse),!S.options.ignoreResponseError&&S.response.status>=400&&S.response.status<600?(S.options.onResponseError&&await callHooks$1(S,S.options.onResponseError),await c(S)):S.response},f=async function(b,m){return(await d(b,m))._data};return f.raw=d,f.native=(...b)=>t(...b),f.create=(b={},m={})=>createFetch({...e,...m,defaults:{...e.defaults,...m.defaults,...b}}),f}var define_global_default$2={};const _globalThis$1=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(define_global_default$2!==void 0)return define_global_default$2;throw new Error("unable to locate global object")})(),fetch$1=_globalThis$1.fetch?(...e)=>_globalThis$1.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Headers$1=_globalThis$1.Headers,AbortController$1=_globalThis$1.AbortController,ofetch=createFetch({fetch:fetch$1,Headers:Headers$1,AbortController:AbortController$1}),$fetch$1=ofetch,useRuntimeConfig$1=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},getAppConfig=()=>useRuntimeConfig$1().app,baseURL=()=>getAppConfig().baseURL,buildAssetsDir=()=>getAppConfig().buildAssetsDir,buildAssetsURL=(...e)=>joinRelativeURL(publicAssetsURL(),buildAssetsDir(),...e),publicAssetsURL=(...e)=>{const t=getAppConfig(),r=t.cdnURL||t.baseURL;return e.length?joinRelativeURL(r,...e):r};function flatHooks$1(e,t={},r){for(const o in e){const c=e[o],d=r?`${r}:${o}`:o;typeof c=="object"&&c!==null?flatHooks$1(c,t,d):typeof c=="function"&&(t[d]=c)}return t}globalThis.__buildAssetsURL=buildAssetsURL,globalThis.__publicAssetsURL=publicAssetsURL,globalThis.$fetch||(globalThis.$fetch=$fetch$1.create({baseURL:baseURL()})),"global"in globalThis||(globalThis.global=globalThis);const defaultTask={run:e=>e()},_createTask=()=>defaultTask,createTask$1=console.createTask!==void 0?console.createTask:_createTask;function serialTaskCaller$1(e,t){const r=t.shift(),o=createTask$1(r);return e.reduce((c,d)=>c.then(()=>o.run(()=>d(...t))),Promise.resolve())}function parallelTaskCaller$1(e,t){const r=t.shift(),o=createTask$1(r);return Promise.all(e.map(c=>o.run(()=>c(...t))))}function callEachWith$1(e,t){for(const r of[...e])r(t)}let Hookable$1=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||typeof t!="function")return()=>{};const o=e;let c;for(;this._deprecatedHooks[e];)c=this._deprecatedHooks[e],e=c.to;if(c&&!r.allowDeprecated){let d=c.message;d||(d=`${o} hook has been deprecated`+(c.to?`, please use ${c.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(d)||(console.warn(d),this._deprecatedMessages.add(d))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,o=(...c)=>(typeof r=="function"&&r(),r=void 0,o=void 0,t(...c));return r=this.hook(e,o),r}removeHook(e,t){if(this._hooks[e]){const r=this._hooks[e].indexOf(t);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const r=this._hooks[e]||[];delete this._hooks[e];for(const o of r)this.hook(e,o)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=flatHooks$1(e),r=Object.keys(t).map(o=>this.hook(o,t[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(e){const t=flatHooks$1(e);for(const r in t)this.removeHook(r,t[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(serialTaskCaller$1,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(parallelTaskCaller$1,e,...t)}callHookWith(e,t,...r){const o=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&callEachWith$1(this._before,o);const c=e(t in this._hooks?[...this._hooks[t]]:[],r);return c instanceof Promise?c.finally(()=>{this._after&&o&&callEachWith$1(this._after,o)}):(this._after&&o&&callEachWith$1(this._after,o),c)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function createHooks$1(){return new Hookable$1}var define_global_default$1={};function createContext(e={}){let t,r=!1;const o=f=>{if(t&&t!==f)throw new Error("Context conflict")};let c;if(e.asyncContext){const f=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;f?c=new f:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const d=()=>
24{if(c){const f=c.getStore();if(f!==void 0)return f}return t};return{use:()=>{const f=d();if(f===void 0)throw new Error("Context is not available");return f},tryUse:()=>d(),set:(f,b)=>{b||o(f),t=f,r=!0},unset:()=>{t=void 0,r=!1},call:(f,b)=>{o(f),t=f;try{return c?c.run(f,b):b()}finally{r||(t=void 0)}},async callAsync(f,b){t=f;const m=()=>{t=f},S=()=>t===f?m:void 0;asyncHandlers.add(S);try{const w=c?c.run(f,b):b();return r||(t=void 0),await w}finally{asyncHandlers.delete(S)}}}}function createNamespace(e={}){const t={};return{get:(r,o={})=>(t[r]||(t[r]=createContext({...e,...o})),t[r])}}const _globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:define_global_default$1!==void 0?define_global_default$1:typeof window<"u"?window:{},globalKey="__unctx__",defaultNamespace=_globalThis[globalKey]||(_globalThis[globalKey]=createNamespace()),getContext=(e,t={})=>defaultNamespace.get(e,t),asyncHandlersKey="__unctx_async_handlers__",asyncHandlers=_globalThis[asyncHandlersKey]||(_globalThis[asyncHandlersKey]=new Set);function executeAsync(e){const t=[];for(const c of asyncHandlers){const d=c();d&&t.push(d)}const r=()=>{for(const c of t)c()};let o=e();return o&&typeof o=="object"&&"catch"in o&&(o=o.catch(c=>{throw r(),c})),[o,r]}const appPageTransition={name:"page",mode:"out-in"},appLayoutTransition=!1,appKeepalive=!1,nuxtLinkDefaults={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},asyncDataDefaults={value:null,errorValue:null,deep:!0},nuxtDefaultErrorValue=null,vueAppRootContainer="#__nuxt",appId="nuxt-app",outdatedBuildInterval=36e5,chunkErrorEvent="vite:preloadError";function getNuxtAppCtx(e=appId){return getContext(e,{asyncContext:!1})}const NuxtPluginIndicator="__nuxt_plugin";function createNuxtApp(e){var c;let t=0;const r={_id:e.id||appId||"nuxt-app",_scope:effectScope(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.17.7"},get vue(){return r.vueApp.version}},payload:shallowReactive({...((c=e.ssrContext)==null?void 0:c.payload)||{},data:shallowReactive({}),state:reactive({}),once:new Set,_errors:shallowReactive({})}),static:{data:{}},runWithContext:d=>r._scope.active&&!getCurrentScope()?r._scope.run(()=>callWithNuxt(r,d)):callWithNuxt(r,d),isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let d=!1;return()=>{if(!d)return d=!0,t--,t===0?(r.isHydrating=!1,r.callHook("app:suspense:resolve")):void 0}},_asyncDataPromises:{},_asyncData:shallowReactive({}),_payloadRevivers:{},...e};{const d=window.__NUXT__;if(d)for(const f in d)switch(f){case"data":case"state":case"_errors":Object.assign(r.payload[f],d[f]);break;default:r.payload[f]=d[f]}}r.hooks=createHooks$1(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(d,f)=>{const b="$"+d;defineGetter(r,b,f),defineGetter(r.vueApp.config.globalProperties,b,f)},defineGetter(r.vueApp,"$nuxt",r),defineGetter(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(chunkErrorEvent,f=>{r.callHook("app:chunkError",{error:f.payload}),f.payload.message.includes("Unable to preload CSS")&&f.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=useNuxtApp);const d=r.hook("app:error",(...f)=>{console.error("[nuxt] error caught during app initialization",...f)});r.hook("app:mounted",d)}const o=r.payload.config;return r.provide("config",o),r}function registerPluginHooks(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function applyPlugin(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const o in r)e.provide(o,r[o])}}async function applyPlugins(e,t){const r=new Set,o=[],c=[],d=[];let f=0;async function b(m){var w;const S=((w=m.dependsOn)==null?void 0:w.filter(T=>t.some(A=>A._name===T)&&!r.has(T)))??[];if(S.length>0)o.push([new Set(S),m]);else{const T=applyPlugin(e,m).then(async()=>{m._name&&(r.add(m._name),await Promise.all(o.map(async([A,C])=>{A.has(m._name)&&(A.delete(m._name),A.size===0&&(f++,await b(C)))})))});m.parallel?c.push(T.catch(A=>d.push(A))):await T}}for(const m of t)registerPluginHooks(e,m);for(const m of t)await b(m);if(await Promise.all(c),f)for(let m=0;m<f;m++)await Promise.all(c);if(d.length)throw d[0]}function defineNuxtPlugin(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[NuxtPluginIndicator]:!0,_name:t})}function callWithNuxt(e,t,r){const o=()=>t();
24return getNuxtAppCtx(e._id).set(e),e.vueApp.runWithContext(o)}function tryUseNuxtApp(e){var r;let t;return hasInjectionContext()&&(t=(r=getCurrentInstance())==null?void 0:r.appContext.app.$nuxt),t||(t=getNuxtAppCtx(e).tryUse()),t||null}function useNuxtApp(e){const t=tryUseNuxtApp(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function useRuntimeConfig(e){return useNuxtApp().$config}function defineGetter(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function _createMatcher(e,t){return{ctx:{table:e},matchAll:r=>_matchRoutes(r,e)}}function _createTableFromExport(e){const t={};for(const r in e)t[r]=r==="dynamic"?new Map(Object.entries(e[r]).map(([o,c])=>[o,_createTableFromExport(c)])):new Map(Object.entries(e[r]));return t}function createMatcherFromExport(e){return _createMatcher(_createTableFromExport(e))}function _matchRoutes(e,t,r){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const o=[];for(const[d,f]of _sortRoutesMap(t.wildcard))(e===d||e.startsWith(d+"/"))&&o.push(f);for(const[d,f]of _sortRoutesMap(t.dynamic))if(e.startsWith(d+"/")){const b="/"+e.slice(d.length).split("/").splice(2).join("/");o.push(..._matchRoutes(b,f))}const c=t.static.get(e);return c&&o.push(c),o.filter(Boolean)}function _sortRoutesMap(e){return[...e.entries()].sort((t,r)=>t[0].length-r[0].length)}function isPlainObject$1(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||Object.prototype.toString.call(e)==="[object Module]")}function _defu(e,t,r=".",o){if(!isPlainObject$1(t))return _defu(e,{},r,o);const c={...t};for(const d of Object.keys(e)){if(d==="__proto__"||d==="constructor")continue;const f=e[d];f!=null&&(o&&o(c,d,f,r)||(Array.isArray(f)&&Array.isArray(c[d])?c[d]=[...f,...c[d]]:isPlainObject$1(f)&&isPlainObject$1(c[d])?c[d]=_defu(f,c[d],(r?`${r}.`:"")+d.toString(),o):c[d]=f))}return c}function createDefu(e){return(...t)=>t.reduce((r,o)=>_defu(r,o,"",e),{})}const defu=createDefu();function hasProp$1(e,t){try{return t in e}catch{return!1}}class H3Error extends Error{constructor(r,o={}){super(r,o);Ni(this,"statusCode",500);Ni(this,"fatal",!1);Ni(this,"unhandled",!1);Ni(this,"statusMessage");Ni(this,"data");Ni(this,"cause");o.cause&&!this.cause&&(this.cause=o.cause)}toJSON(){const r={message:this.message,statusCode:sanitizeStatusCode(this.statusCode,500)};return this.statusMessage&&(r.statusMessage=sanitizeStatusMessage(this.statusMessage)),this.data!==void 0&&(r.data=this.data),r}}Ni(H3Error,"__h3_error__",!0);function createError$1(e){if(typeof e=="string")return new H3Error(e);
24if(isError(e))return e;const t=new H3Error(e.message??e.statusMessage??"",{cause:e.cause||e});if(hasProp$1(e,"stack"))try{Object.defineProperty(t,"stack",{get:()=>e.stack})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=sanitizeStatusCode(e.statusCode,t.statusCode):e.status&&(t.statusCode=sanitizeStatusCode(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;sanitizeStatusMessage(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function isError(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const DISALLOWED_STATUS_CHARS=/[^\u0009\u0020-\u007E]/g;function sanitizeStatusMessage(e=""){return e.replace(DISALLOWED_STATUS_CHARS,"")}function sanitizeStatusCode(e,t=200){return e?(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999?t:e):t}const LayoutMetaSymbol=Symbol("layout-meta"),PageRouteSymbol=Symbol("route"),useRouter=()=>{var e;return(e=useNuxtApp())==null?void 0:e.$router},useRoute$1=()=>hasInjectionContext()?inject(PageRouteSymbol,useNuxtApp()._route):useNuxtApp()._route;function defineNuxtRouteMiddleware(e){return e}const isProcessingMiddleware=()=>{try{if(useNuxtApp()._processingMiddleware)return!0}catch{return!1}return!1},navigateTo=(e,t)=>{e||(e="/");const r=typeof e=="string"?e:"path"in e?resolveRouteObject(e):useRouter().resolve(e).href;if(t!=null&&t.open){const{target:m="_blank",windowFeatures:S={}}=t.open,w=Object.entries(S).filter(([T,A])=>A!==void 0).map(([T,A])=>`${T.toLowerCase()}=${A}`).join(", ");return open(r,m,w),Promise.resolve()}const o=hasProtocol(r,{acceptRelative:!0}),c=(t==null?void 0:t.external)||o;if(c){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:m}=new URL(r,window.location.href);if(m&&isScriptProtocol(m))throw new Error(`Cannot navigate to a URL with '${m}' protocol.`)}const d=isProcessingMiddleware();if(!c&&d){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:m,search:S,hash:w}=parseURL$1(e);return{path:m,...S&&{query:parseQuery$1(S)},...w&&{hash:w},replace:!0}}return{...e,replace:!0}}return e}const f=useRouter(),b=useNuxtApp();return c?(b._scope.stop(),t!=null&&t.replace?location.replace(r):location.href=r,d?!!b.isHydrating&&new Promise(()=>{}):Promise.resolve()):t!=null&&t.replace?f.replace(e):f.push(e)},setPageLayout=e=>{const t=useNuxtApp(),r=isProcessingMiddleware();if(r||t.isHydrating){const o=useRouter().beforeResolve(c=>{c.meta.layout=e,o()})}r||(useRoute$1().meta.layout=e)};function resolveRouteObject(e){return withQuery(e.path||"",e.query||{})+(e.hash||"")}const NUXT_ERROR_SIGNATURE="__nuxt_error",useError=()=>toRef(useNuxtApp().payload,"error"),showError=e=>{const t=createError(e);try{const r=useNuxtApp(),o=useError();r.hooks.callHook("app:error",t),o.value||(o.value=t)}catch{throw t}return t},clearError=async(e={})=>{const t=useNuxtApp(),r=useError();t.callHook("app:error:cleared",e),e.redirect&&await useRouter().replace(e.redirect),r.value=nuxtDefaultErrorValue},isNuxtError=e=>!!e&&typeof e=="object"&&NUXT_ERROR_SIGNATURE in e,createError=e=>{const t=createError$1(e);return Object.defineProperty(t,NUXT_ERROR_SIGNATURE,{value:!0,configurable:!1,writable:!1}),t},UNDEFINED=-1,HOLE=-2,NAN=-3,POSITIVE_INFINITY=-4,NEGATIVE_INFINITY=-5,NEGATIVE_ZERO=-6,SPARSE=-7,MAX_ARRAY_LEN=2**32-1,MAX_ARRAY_INDEX=MAX_ARRAY_LEN-1;function is_valid_array_index(e){return!!Number.isInteger(e)&&!(e<0)&&!(e>MAX_ARRAY_INDEX)}function is_valid_array_len(e){return!!Number.isInteger(e)&&!(e<0)&&!(e>MAX_ARRAY_LEN)}function decode_native(e){return Uint8Array.fromBase64(e).buffer}function decode_buffer(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function decode_legacy(e){const t=atob(e),r=t.length,o=new Uint8Array(r);for(let c=0;c<r;c++)o[c]=t.charCodeAt(c);return o.buffer}const native$1=typeof Uint8Array.fromBase64=="function";var js;const buffer$2=typeof process=="object"&&((js=process.versions)==null?void 0:js.node)!==void 0,decode64=native$1?decode_native:buffer$2?decode_buffer:decode_legacy;function parse$2(e,t){return unflatten(JSON.parse(e),t)}function unflatten(e,t){if(typeof e=="number")return d(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,o=Array(r.length);let c=null;function d(f,b=!1){if(f===UNDEFINED)return;if(f===NAN)return NaN;if(f===POSITIVE_INFINITY)return 1/0;if(f===NEGATIVE_INFINITY)return-1/0;if(f===NEGATIVE_ZERO)return-0;if(b||typeof f!="number")throw new Error("Invalid input");if(f in o)return o[f];const m=r[f];if(m&&typeof m=="object")if(Array.isArray(m))if(typeof m[0]=="string"){const S=m[0],w=t&&Object.hasOwn(t,S
24)?t[S]:void 0;if(w){let T=m[1];if(typeof T!="number"&&(T=r.push(m[1])-1),c??(c=new Set),c.has(T))throw new Error("Invalid circular reference");return c.add(T),o[f]=w(d(T)),c.delete(T),o[f]}switch(S){case"Date":o[f]=new Date(m[1]);break;case"Set":const T=new Set;o[f]=T;for(let P=1;P<m.length;P+=1)T.add(d(m[P]));break;case"Map":const A=new Map;o[f]=A;for(let P=1;P<m.length;P+=2)A.set(d(m[P]),d(m[P+1]));break;case"RegExp":o[f]=new RegExp(m[1],m[2]);break;case"Object":{const P=m[1];if(typeof r[P]=="object"&&r[P][0]!=="BigInt")throw new Error("Invalid input");o[f]=Object(d(P));break}case"BigInt":o[f]=BigInt(m[1]);break;case"null":const C=Object.create(null);o[f]=C;for(let P=1;P<m.length;P+=2){if(m[P]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");C[m[P]]=d(m[P+1])}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(r[m[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const P=globalThis[S],B=d(m[1]);o[f]=m[2]!==void 0?new P(B,m[2],m[3]):new P(B);break}case"ArrayBuffer":{const P=m[1];if(typeof P!="string")throw new Error("Invalid ArrayBuffer encoding");const B=decode64(P);o[f]=B;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const P=S.slice(9);o[f]=Temporal[P].from(m[1]);break}case"URL":{const P=new URL(m[1]);o[f]=P;break}case"URLSearchParams":{const P=new URLSearchParams(m[1]);o[f]=P;break}default:throw new Error(`Unknown type ${S}`)}}else if(m[0]===SPARSE){const S=m[1];if(!is_valid_array_len(S))throw new Error("Invalid input");const w=[];o[f]=w,w[MAX_ARRAY_INDEX]=void 0,delete w[MAX_ARRAY_INDEX];for(let T=2;T<m.length;T+=2){const A=m[T];if(!is_valid_array_index(A)||A>=S)throw new Error("Invalid input");w[A]=d(m[T+1])}w.length=S}else{const S=new Array(m.length);o[f]=S;for(let w=0;w<m.length;w+=1){const T=m[w];T!==HOLE&&(S[w]=d(T))}}else{const S={};o[f]=S;for(const w of Object.keys(m)){if(w==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const T=m[w];S[w]=d(T)}}else o[f]=m;return o[f]}return d(0)}const DupeableTags=new Set(["link","style","script","noscript"]),TagsWithInnerContent=new Set(["title","titleTemplate","script","style","noscript"]),HasElementTags=new Set(["base","meta","link","style","script","noscript"]),ValidHeadTags=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),UniqueTags=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),TagConfigKeys=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),UsesMergeStrategy=new Set(["templateParams","htmlAttrs","bodyAttrs"]),MetaTagsArrayable=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function defineHeadPlugin(e){return e}function flatHooks(e,t={},r){for(const o in e){const c=e[o],d=r?`${r}:${o}`:o;typeof c=="object"&&c!==null?flatHooks(c,t,d):typeof c=="function"&&(t[d]=c)}return t}const createTask=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function callHooks(e,t,r,o){for(let c=r;c<e.length;c+=1)try{const d=o?o.run(()=>e[c](...t)):e[c](...t);if(d&&typeof d.then=="function")return Promise.resolve(d).then(()=>callHooks(e,t,c+1,o))}catch(d){return Promise.reject(d)}}function serialTaskCaller(e,t,r){if(e.length>0)return callHooks(e,t,0,createTask(r))}function parallelTaskCaller(e,t,r){if(e.length>0){const o=createTask(r);return Promise.all(e.map(c=>o.run(()=>c(...t))))}}function callEachWith(e,t){for(const r of[...e])r(t)}var Hookable=class{constructor(){Ni(this,"_hooks");Ni(this,"_before");Ni(this,"_after");Ni(this,"_deprecatedHooks");Ni(this,"_deprecatedMessages");this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||typeof t!="function")return()=>{};const o=e;let c;for(;this._deprecatedHooks[e];)c=this._deprecatedHooks[e],e=c.to;if(c&&!r.allowDeprecated){let d=c.message;d||(d=`${o} hook has been deprecated`+(c.to?`, please use ${c.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(d)||(console.warn(d),this._deprecatedMessages.add(d))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,o=(...c)=>(typeof r=="function"&&r(),r=void 0,o=void 0,t(...c));return r=this.hook(e,o),r}removeHook(e,t){const r=this._hooks[e];if(r){const o=r.indexOf(t);o!==-1&&r.splice(o,1),r.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const r=this._hooks[e]||[];this._hooks[e]=void 0;for(const o of r)this.hook(e,o)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=flatHooks(e),r=Object.keys(t).map(o=>this.hook(o,t[o]));return()=>{for(const o of r)o();r.length=0}}removeHooks(e){const t=flatHooks(e);for(const r in t)this.removeHook(r,t[r])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(serialTaskCaller,e,t)}callHookParallel(e,...t){return this.callHookWith(parallelTaskCaller,e,t)}callHookWith(e,t,r){const o=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&callEachWith(this._before,o);const c=e(this._hooks[t]?[...this._hooks[t]]:[],r,t);return c instanceof Promise?c.finally(()=>{this._after&&o&&callEachWith(this._after,o)}):(this._after&&o&&callEachWith(this._after,o),c)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function createHooks(){return new Hookable}const allowedMetaProperties=["name","property","http-equiv"],StandardSingleMetaTags=new Set(["viewport","description","keywords","robots"]);function isMetaArrayDupeKey(e){const t=e.split(":");return!!t.length&&MetaTagsArrayable.has(t[1])}function dedupeKey(e){const{props:t,tag:r}=e;if(UniqueTags.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(r==="link"&&t.rel==="alternate"){if(t.hreflang)return`alternate:${t.hreflang}`;if(t.type)return`alternate:${t.type}:${t.href||""}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const o of allowedMetaProperties)if(t[o]!==void 0){const c=t[o
24],d=c&&typeof c=="string"&&c.includes(":"),f=c&&StandardSingleMetaTags.has(c);return`${r}:${c}${!(d||f)&&e.key?`:key:${e.key}`:""}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(r==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(TagsWithInnerContent.has(r)){const o=e.textContent||e.innerHTML;if(o)return`${r}:content:${o}`}}function hashTag(e){const t=e._h||e._d;return t||e.textContent||e.innerHTML||`${e.tag}:${Object.entries(e.props).map(([o,c])=>`${o}:${String(c)}`).join(",")}`}function walkResolver(e,t,r){typeof e=="function"&&(r&&(r==="titleTemplate"||r[0]==="o"&&r[1]==="n")||(e=e()));const o=t?t(r,e):e;if(Array.isArray(o))return o.map(c=>walkResolver(c,t));if((o==null?void 0:o.constructor)===Object){const c={};for(const d of Object.keys(o))c[d]=walkResolver(o[d],t,d);return c}return o}function normalizeStyleClassProps(e,t){const r=e==="style"?new Map:new Set;function o(c){if(c==null||c===void 0)return;const d=String(c).trim();if(d)if(e==="style"){const[f,...b]=d.split(":").map(m=>m?m.trim():"");f&&b.length&&r.set(f,b.join(":"))}else d.split(" ").filter(Boolean).forEach(f=>r.add(f))}return typeof t=="string"?e==="style"?t.split(";").forEach(o):o(t):Array.isArray(t)?t.forEach(c=>o(c)):t&&typeof t=="object"&&Object.entries(t).forEach(([c,d])=>{d&&d!=="false"&&(e==="style"?r.set(String(c).trim(),String(d)):o(c))}),r}function normalizeProps(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const r=HasElementTags.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([o,c])=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;if(c===null)return void(e.props[o]=null);if(o==="class"||o==="style")return void(e.props[o]=normalizeStyleClassProps(o,c));if(TagConfigKeys.has(o)){if(o!=="textContent"&&o!=="innerHTML"||typeof c!="object")e[o]=c;else{let S=t.type;if(t.type||(S="application/json"),!(S!=null&&S.endsWith("json"))&&S!=="speculationrules")return;t.type=S,e.props.type=S,e[o]=JSON.stringify(c)}return}const d=o.startsWith("data-"),f=r&&!d?o.toLowerCase():o,b=String(c),m=e.tag==="meta"&&f==="content";b==="true"||b===""?e.props[f]=!d&&!m||b:!c&&d&&b==="false"?e.props[f]="false":c!==void 0&&(e.props[f]=c)}),e}function normalizeTag(e,t){const r=normalizeProps({tag:e,props:{}},typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t});return r.key&&DupeableTags.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function normalizeEntryToTags(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(c,d)=>{for(let f=0;f<t.length;f++)d=t[f](c,d);return d};e=r(void 0,e);const o=[];return e=walkResolver(e,r),Object.entries(e||{}).forEach(([c,d])=>{if(d!==void 0)for(const f of Array.isArray(d)?d:[d])o.push(normalizeTag(c,f))}),o.flat()}const sortTags=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,TAG_WEIGHTS={base:-10,title:10},TAG_ALIASES={critical:-8,high:-1,low:2},WEIGHT_MAP={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},ImportStyleRe=/@import/,isTruthy=e=>e===""||e===!0;function tagWeight(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const o=TAG_ALIASES[t.tagPriority]||0,c=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:WEIGHT_MAP;if(t.tag in TAG_WEIGHTS)r=TAG_WEIGHTS[t.tag];else if(t.tag==="meta"){const d=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;d&&(r=WEIGHT_MAP.meta[d])}else if(t.tag==="link"&&t.props.rel)r=c.link[t.props.rel];else if(t.tag==="script"){const d=String(t.props.type);isTruthy(t.props.async)?r=c.script.async:t.props.src&&!isTruthy(t.props.defer)&&!isTruthy(t.props.async)&&d!=="module"&&!d.endsWith("json")||t.innerHTML&&!
24d.endsWith("json")?r=c.script.sync:(isTruthy(t.props.defer)&&t.props.src&&!isTruthy(t.props.async)||d==="module")&&(r=c.script.defer)}else t.tag==="style"&&(r=t.innerHTML&&ImportStyleRe.test(t.innerHTML)?c.style.imported:c.style.sync);return(r||100)+o}function registerPlugin(e,t){const r=typeof t=="function"?t(e):t,o=r.key||String(e.plugins.size+1);e.plugins.get(o)||(e.plugins.set(o,r),e.hooks.addHooks(r.hooks||{}))}function createUnhead(e={}){var b;const t=createHooks();t.addHooks(e.hooks||{});const r=!e.document,o=new Map,c=new Map,d=new Set,f={_entryCount:1,plugins:c,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:o,headEntries:()=>[...o.values()],use:m=>registerPlugin(f,m),push(m,S){const w={...S||{}};delete w.head;const T=w._index??f._entryCount++,A={_i:T,input:m,options:w},C={_poll(P=!1){f.dirty=!0,!P&&d.add(T),t.callHook("entries:updated",f)},dispose(){o.delete(T)&&f.invalidate()},patch(P){(!w.mode||w.mode==="server"&&r||w.mode==="client"&&!r)&&(A.input=P,o.set(T,A),C._poll())}};return C.patch(m),C},async resolveTags(){const m={tagMap:new Map,tags:[],entries:[...f.entries.values()]};for(await t.callHook("entries:resolve",m);d.size;){const C=d.values().next().value;d.delete(C);const P=o.get(C);if(P){const B={tags:normalizeEntryToTags(P.input,e.propResolvers||[]).map(U=>Object.assign(U,P.options)),entry:P};await t.callHook("entries:normalize",B),P._tags=B.tags.map((U,D)=>(U._w=tagWeight(f,U),U._p=(P._i<<10)+D,U._d=dedupeKey(U),U._d||(U._h=hashTag(U)),U))}}let S=!1;m.entries.flatMap(C=>(C._tags||[]).map(P=>({...P,props:{...P.props}}))).sort(sortTags).reduce((C,P)=>{const B=P._d||P._h;if(!C.has(B))return C.set(B,P);const U=C.get(B);if(((P==null?void 0:P.tagDuplicateStrategy)||(UsesMergeStrategy.has(P.tag)?"merge":null)||(P.key&&P.key===U.key?"merge":null))==="merge"){const D={...U.props};Object.entries(P.props).forEach(([$,z])=>D[$]=$==="style"?new Map([...U.props.style||new Map,...z]):$==="class"?new Set([...U.props.class||new Set,...z]):z),C.set(B,{...P,props:D})}else P._p>>10==U._p>>10&&P.tag==="meta"&&isMetaArrayDupeKey(B)?(C.set(B,Object.assign([...Array.isArray(U)?U:[U],P],P)),S=!0):(P._w===U._w?P._p>U._p:(P==null?void 0:P._w)<(U==null?void 0:U._w))&&C.set(B,P);return C},m.tagMap);const w=m.tagMap.get("title"),T=m.tagMap.get("titleTemplate");if(f._title=w==null?void 0:w.textContent,T){const C=T==null?void 0:T.textContent;if(f._titleTemplate=C,C){let P=typeof C=="function"?C(w==null?void 0:w.textContent):C;typeof P!="string"||f.plugins.has("template-params")||(P=P.replace("%s",(w==null?void 0:w.textContent)||"")),w?P===null?m.tagMap.delete("title"):m.tagMap.set("title",{...w,textContent:P}):(T.tag="title",T.textContent=P)}}m.tags=Array.from(m.tagMap.values()),S&&(m.tags=m.tags.flat().sort(sortTags)),await t.callHook("tags:beforeResolve",m),await t.callHook("tags:resolve",m),await t.callHook("tags:afterResolve",m);const A=[];for(const C of m.tags){const{innerHTML:P,tag:B,props:U}=C;if(ValidHeadTags.has(B)&&(Object.keys(U).length!==0||C.innerHTML||C.textContent)&&(B!=="meta"||U.content||U["http-equiv"]||U.charset)){if(B==="script"&&P){if(String(U.type).endsWith("json")){const D=typeof P=="string"?P:JSON.stringify(P);C.innerHTML=D.replace(/</g,"\\u003C")}else typeof P=="string"&&(C.innerHTML=P.replace(new RegExp(`</${B}`,"g"),`<\\/${B}`));C._d=dedupeKey(C)}A.push(C)}}return A},invalidate(){for(const m of o.values())d.add(m._i);f.dirty=!0,t.callHook("entries:updated",f)}};return((e==null?void 0:e.plugins)||[]).forEach(m=>registerPlugin(f,m)),f.hooks.callHook("init",f),(b=e.init)==null||b.forEach(m=>m&&f.push(m)),f}const SepSub="%separator";function sub(e,t,r=!1){var c;let o;if(t==="s"||t==="pageTitle")o=e.pageTitle;else if(t.includes(".")){const d=t.indexOf(".");o=(c=e[t.substring(0,d)])==null?void 0:c[t.substring(d+1)]}else o=e[t];if(o!==void 0)return r?(o||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):o||""}function processTemplateParams(e,t,r,o=!1){if(typeof e!="string"||!e.includes("%"))return e;let c=e;try{c=decodeURI(e)}catch{}const d=c.match(/%\w+(?:\.\w+)?/g);if(!d)return e;const f=e.includes(SepSub);return e=e.replace(/%\w+(?:\.\w+)?/g,b=>{if(b===SepSub||!d.includes(b))return b;const m=sub(t,b.slice(1),o);return m!==void 0?m:b}).trim(),f&&(e=e.split(SepSub).map(b=>b.trim()).filter(b=>b!=="").join(r?` ${r} `:" ")),e}const formatKey=e=>e.includes(":key")?e:e.split(":").join(":key:"),AliasSortingPlugin={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const r of e.tags){const o=r.tagPriority;if(!o)continue;const c=String(o);if(c.startsWith("before:")){const d=formatKey(c.slice(7)),f=e.tagMap.get(d);f&&(typeof f.tagPriority=="number"&&(r.tagPriority=f.tagPriority),r._p=f._p-1,t=!0)}else if(c.startsWith("after:")){const d=formatKey(c.slice(6)),f=e.tagMap.get(d);f&&(typeof f.tagPriority=="number"&&(r.tagPriority=f.tagPriority),r._p=f._p+1,t=!0)}}t&&(e.tags=e.tags.sort(sortTags))}}},DeprecationsPlugin={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function walkPromises(e){if(typeof e=="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(t=>walkPromises(t)));if((e==null?void 0:e.constructor)===Object){const t={};for(const r of Object.keys(e))t[r]=await walkPromises(e[r]);return t}return e}const PromisesPlugin={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const r in e.entries)e.entries[r]._promisesProcessed||t.push(walkPromises(e.entries[r].input).then(o=>{e.entries[r].input=o,e.entries[r]._promisesProcessed=!0}));await Promise.all(t)}}},SupportedAttrs={meta:"content",link:"href",htmlAttrs:"lang"},contentAttrs=["innerHTML","textContent"],TemplateParamsPlugin=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var o,c,d;const r=((c=(o=t.tags.filter(f=>f.tag==="templateParams"&&f.mode==="server"))==null?void 0:o[0])==null?void 0:c.props)||{};Object.keys(r).length&&(e._ssrPayload={templateParams:{...((d=e._ssrPayload)==null?void 0:d.templateParams)||{},...r}})},"tags:resolve":({tagMap:t,tags:r})=>{var d;const o=((d=t.get("templateParams"))==null?void 0:d.props)||{},c=o.separator||"|";delete o.separator,o.pageTitle=processTemplateParams(o.pageTitle||e._title||"",o,c);for(const f of r){if(f.processTemplateParams===!1)continue;const b=SupportedAttrs[f.tag];
24if(b&&typeof f.props[b]=="string")f.props[b]=processTemplateParams(f.props[b],o,c);else if(f.processTemplateParams||f.tag==="titleTemplate"||f.tag==="title")for(const m of contentAttrs)typeof f[m]=="string"&&(f[m]=processTemplateParams(f[m],o,c,f.tag==="script"&&f.props.type.endsWith("json")))}e._templateParams=o,e._separator=c},"tags:afterResolve":({tagMap:t})=>{const r=t.get("title");r!=null&&r.textContent&&r.processTemplateParams!==!1&&(r.textContent=processTemplateParams(r.textContent,e._templateParams,e._separator))}}}),VueResolver=(e,t)=>isRef(t)?toValue$1(t):t,headSymbol="usehead";function vueInstall(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(headSymbol,e)}}.install}function injectHead$1(){if(hasInjectionContext()){const e=inject(headSymbol);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function useHead$1(e,t={}){const r=t.head||injectHead$1();return r.ssr?r.push(e||{},t):clientUseHead(r,e,t)}function clientUseHead(e,t,r={}){const o=ref(!1);let c;return watchEffect(()=>{const d=o.value?{}:walkResolver(t,VueResolver);c?c.patch(d):c=e.push(d,r)}),getCurrentInstance()&&(onBeforeUnmount(()=>{c.dispose()}),onDeactivated(()=>{o.value=!0}),onActivated(()=>{o.value=!1})),c}function injectHead(e){var r;const t=e||tryUseNuxtApp();return((r=t==null?void 0:t.ssrContext)==null?void 0:r.head)||(t==null?void 0:t.runWithContext(()=>{if(hasInjectionContext())return inject(headSymbol)}))}function useHead(e,t={}){const r=injectHead(t.nuxt);if(r)return useHead$1(e,{head:r,...t})}const scriptRel="modulepreload",assetsURL=function(e,t){return new URL(e,t).href},seen$2={},__vitePreload=function(e,t,r){let o=Promise.resolve();if(t&&t.length>0){let d=function(S){return Promise.all(S.map(w=>Promise.resolve(w).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};const f=document.getElementsByTagName("link"),b=document.querySelector("meta[property=csp-nonce]"),m=(b==null?void 0:b.nonce)||(b==null?void 0:b.getAttribute("nonce"));o=d(t.map(S=>{if((S=assetsURL(S,r))in seen$2)return;seen$2[S]=!0;const w=S.endsWith(".css"),T=w?'[rel="stylesheet"]':"";if(r)for(let C=f.length-1;C>=0;C--){const P=f[C];if(P.href===S&&(!w||P.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${S}"]${T}`))return;const A=document.createElement("link");return A.rel=w?"stylesheet":scriptRel,w||(A.as="script"),A.crossOrigin="",A.href=S,m&&A.setAttribute("nonce",m),document.head.appendChild(A),w?new Promise((C,P)=>{A.addEventListener("load",C),A.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${S}`)))}):void 0}))}function c(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return o.then(d=>{for(const f of d||[])f.status==="rejected"&&c(f.reason);return e().catch(c)})};let manifest,matcher;function fetchManifest(){return manifest=$fetch(buildAssetsURL(`builds/meta/${useRuntimeConfig().app.buildId}.json`),{responseType:"json"}),manifest.then(e=>{matcher=createMatcherFromExport(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),manifest}function getAppManifest(){return manifest||fetchManifest()}async function getRouteRules(e){const t=typeof e=="string"?e:e.path;if(await getAppManifest(),!matcher)return console.error("[nuxt] Error creating app manifest matcher.",matcher),{};try{return defu({},...matcher.matchAll(t).reverse())}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function loadPayload(e,t={}){if(!await isPrerendered(e))return null;const r=await _getPayloadURL(e,t);return await _importPayload(r)||null}const filename="_payload.json";async function _getPayloadURL(e,t={}){const r=new URL(e,"http://localhost");if(r.host!=="localhost"||hasProtocol(r.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const o=useRuntimeConfig(),c=t.hash||(t.fresh?Date.now():o.app.buildId),d=o.app.cdnURL;return joinURL(d&&await isPrerendered(e)?d:o.app.baseURL,r.pathname,filename+(c?`?${c}`:""))}async function _importPayload(e){const t=fetch(e,{cache:"force-cache"}).then(r=>r.text().then(parsePayload));try{return await t}catch(r){console.warn("[nuxt] Cannot load payload ",e,r)}return null}async function isPrerendered(e=useRoute$1().path){const t=useNuxtApp();return e=withoutTrailingSlash(e),!!(await getAppManifest()).prerendered.includes(e)||t.runWithContext(async()=>{const r=await getRouteRules({path:e});return!!r.prerender&&!r.redirect})}let payloadCache=null;async function getNuxtClientPayload(){var o;if(payloadCache)return payloadCache;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await parsePayload(e.textContent||""),r=e.dataset.src?await _importPayload(e.dataset.src):void 0;return payloadCache={...t,...r,...window.__NUXT__},(o=payloadCache.config)!=null&&o.public&&(payloadCache.config.public=reactive(payloadCache.config.public)),payloadCache}async function parsePayload(e){return await parse$2(e,useNuxtApp()._payloadRevivers)}function definePayloadReviver(e,t){useNuxtApp()._payloadRevivers[e]=t}const revivers=[["NuxtError",e=>createError(e)],["EmptyShallowRef",e=>shallowRef(e==="_"?void 0:e==="0n"?BigInt(0):destr(e))],["EmptyRef",e=>ref(e==="_"?void 0:e==="0n"?BigInt(0):destr(e))],["ShallowRef",e=>shallowRef(e)],["ShallowReactive",e=>shallowReactive(e)],["Ref",e=>ref(e)],["Reactive",e=>reactive(e)]],revive_payload_client_kG4vF4SWGlhgLJRKrmco1O_zuG41odAu7e9PNPCDOtY=defineNuxtPlugin({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;
24for(const[o,c]of revivers)definePayloadReviver(o,c);Object.assign(e.payload,([t,r]=executeAsync(()=>e.runWithContext(getNuxtClientPayload)),t=await t,r(),t)),window.__NUXT__=e.payload}});async function renderDOMHead(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const o={shouldRender:!0,tags:[]};return await e.hooks.callHook("dom:beforeRender",o),o.shouldRender?(e._domUpdatePromise||(e._domUpdatePromise=new Promise(async c=>{var C;const d=new Map,f=new Promise(P=>{e.resolveTags().then(B=>{P(B.map(U=>{const D=d.get(U._d)||0,$={tag:U,id:(D?`${U._d}:${D}`:U._d)||U._h,shouldRender:!0};return U._d&&isMetaArrayDupeKey(U._d)&&d.set(U._d,D+1),$}))})});let b=e._dom;if(!b){b={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const P of["body","head"]){const B=(C=r[P])==null?void 0:C.children;for(const U of B){const D=U.tagName.toLowerCase();if(!HasElementTags.has(D))continue;const $=normalizeProps({tag:D,props:{}},{innerHTML:U.innerHTML,...U.getAttributeNames().reduce((z,V)=>(z[V]=U.getAttribute(V),z),{})||{}});if($.key=U.getAttribute("data-hid")||void 0,$._d=dedupeKey($)||hashTag($),b.elMap.has($._d)){let z=1,V=$._d;for(;b.elMap.has(V);)V=`${$._d}:${z++}`;b.elMap.set(V,U)}else b.elMap.set($._d,U)}}}function m(P,B,U){const D=`${P}:${B}`;b.sideEffects[D]=U,delete b.pendingSideEffects[D]}function S({id:P,$el:B,tag:U}){const D=U.tag.endsWith("Attrs");b.elMap.set(P,B),D||(U.textContent&&U.textContent!==B.textContent&&(B.textContent=U.textContent),U.innerHTML&&U.innerHTML!==B.innerHTML&&(B.innerHTML=U.innerHTML),m(P,"el",()=>{B==null||B.remove(),b.elMap.delete(P)}));for(const $ in U.props){if(!Object.prototype.hasOwnProperty.call(U.props,$))continue;const z=U.props[$];if($.startsWith("on")&&typeof z=="function"){const F=B==null?void 0:B.dataset;if(F&&F[`${$}fired`]){const ee=$.slice(0,-5);z.call(B,new Event(ee.substring(2)))}B.getAttribute(`data-${$}`)!==""&&((U.tag==="bodyAttrs"?r.defaultView:B).addEventListener($.substring(2),z.bind(B)),B.setAttribute(`data-${$}`,""));continue}const V=`attr:${$}`;if($==="class"){if(!z)continue;for(const F of z)D&&m(P,`${V}:${F}`,()=>B.classList.remove(F)),!B.classList.contains(F)&&B.classList.add(F)}else if($==="style"){if(!z)continue;for(const[F,ee]of z)m(P,`${V}:${F}`,()=>{B.style.removeProperty(F)}),B.style.setProperty(F,ee)}else z!==!1&&z!==null&&(B.getAttribute($)!==z&&B.setAttribute($,z===!0?"":String(z)),D&&m(P,V,()=>B.removeAttribute($)))}}b.pendingSideEffects={...b.sideEffects},b.sideEffects={};const w=[],T={bodyClose:void 0,bodyOpen:void 0,head:void 0},A=await f;for(const P of A){const{tag:B,shouldRender:U,id:D}=P;U&&(B.tag!=="title"?(P.$el=P.$el||b.elMap.get(D),P.$el?S(P):HasElementTags.has(B.tag)&&w.push(P)):(r.title=B.textContent,m("title","",()=>r.title=b.title)))}for(const P of w){const B=P.tag.tagPosition||"head";P.$el=r.createElement(P.tag.tag),S(P),T[B]=T[B]||r.createDocumentFragment(),T[B].appendChild(P.$el)}for(const P of A)await e.hooks.callHook("dom:renderTag",P,r,m);T.head&&r.head.appendChild(T.head),T.bodyOpen&&r.body.insertBefore(T.bodyOpen,r.body.firstChild),T.bodyClose&&r.body.appendChild(T.bodyClose);for(const P in b.pendingSideEffects)b.pendingSideEffects[P]();e._dom=b,await e.hooks.callHook("dom:rendered",{renders:A}),c()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise):void 0}function createHead$1(e={}){var o,c,d;const t=((o=e.domOptions)==null?void 0:o.render)||renderDOMHead;e.document=e.document||(typeof window<"u"?document:void 0);const r=((d=(c=e.document)==null?void 0:c.head.querySelector('script[id="unhead:payload"]'))==null?void 0:d.innerHTML)||!1;return createUnhead({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[!!r&&JSON.parse(r),...e.init||[]]})}function createDebouncedFn(e,t){let r=0;return()=>{const o=++r;t(()=>{r===o&&e()})}}function createHead(e={}){const t=createHead$1({domOptions:{render:createDebouncedFn(()=>renderDOMHead(t),r=>setTimeout(r,0))},...e});return t.install=vueInstall(t),t}const unheadOptions={disableDefaults:!0,disableCapoSorting:!1,plugins:[DeprecationsPlugin,PromisesPlugin,TemplateParamsPlugin,AliasSortingPlugin]},unhead_k2P3m_ZDyjlr2mMYnoDPwavjsDN8hBlk9cFai0bbopU=defineNuxtPlugin({name:"nuxt:head",enforce:"pre",setup(e){const t=createHead(unheadOptions);e.vueApp.use(t);{let r=!0;const o=async()=>{r=!1,await renderDOMHead(t)};t.hooks.hook("dom:beforeRender",c=>{c.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||o()}),e.hooks.hook("app:error",o),e.hooks.hook("app:suspense:resolve",o)}}}),isBrowser$1=typeof document<"u";function isRouteComponent(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
24function isESModule(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&isRouteComponent(e.default)}const assign$2=Object.assign;function applyToParams(e,t){const r={};for(const o in t){const c=t[o];r[o]=isArray$1(c)?c.map(e):e(c)}return r}const noop$3=()=>{},isArray$1=Array.isArray;function mergeOptions(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return e==null?"":encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return encodePath(e).replace(SLASH_RE,"%2F")}function decode$1(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,r="/"){let o,c={},d="",f="";const b=t.indexOf("#");let m=t.indexOf("?");return m=b>=0&&m>b?-1:m,m>=0&&(o=t.slice(0,m),d=t.slice(m,b>0?b:t.length),c=e(d.slice(1))),b>=0&&(o=o||t.slice(0,b),f=t.slice(b,t.length)),o=resolveRelativePath(o??t,r),{fullPath:o+d+f,path:o,query:c,hash:decode$1(f)}}function stringifyURL(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function stripBase(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function isSameRouteLocation(e,t,r){const o=t.matched.length-1,c=r.matched.length-1;return o>-1&&o===c&&isSameRouteRecord(t.matched[o],r.matched[c])&&isSameRouteLocationParams(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!isSameRouteLocationParamsValue(e[r],t[r]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return isArray$1(e)?isEquivalentArray(e,t):isArray$1(t)?isEquivalentArray(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function isEquivalentArray(e,t){return isArray$1(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),c=o[o.length-1];c!==".."&&c!=="."||o.push("");let d,f,b=r.length-1;for(d=0;d<o.length;d++)if(f=o[d],f!=="."){if(f!=="..")break;b>1&&b--}return r.slice(0,b).join("/")+"/"+o.slice(d).join("/")}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let NavigationType=(function(e){return e.pop="pop",e.push="push",e})({}),NavigationDirection=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function normalizeBase(e){if(!e)if(isBrowser$1){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),removeTrailingSlash(e)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(e,t){return e.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const computeScrollPosition=()=>({left:window.scrollX,top:window.scrollY});function scrollToPosition(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),c=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!c)return;t=getElementPosition(c,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}
24function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}function isRouteLocation(e){return typeof e=="string"||e&&typeof e=="object"}function isRouteName(e){return typeof e=="string"||typeof e=="symbol"}let ErrorTypes=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const NavigationFailureSymbol=Symbol("");function createRouterError(e,t){return assign$2(new Error,{type:e,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(t==null||!!(e.type&t))}ErrorTypes.MATCHER_NOT_FOUND,ErrorTypes.NAVIGATION_GUARD_REDIRECT,ErrorTypes.NAVIGATION_ABORTED,ErrorTypes.NAVIGATION_CANCELLED,ErrorTypes.NAVIGATION_DUPLICATED;const propertiesToLog=["params","query","hash"];function stringifyRoute(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of propertiesToLog)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function parseQuery(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const c=r[o].replace(PLUS_RE," "),d=c.indexOf("="),f=decode$1(d<0?c:c.slice(0,d)),b=d<0?null:decode$1(c.slice(d+1));if(f in t){let m=t[f];isArray$1(m)||(m=t[f]=[m]),m.push(b)}else t[f]=b}return t}function stringifyQuery(e){let t="";for(let r in e){const o=e[r];r=encodeQueryKey(r),o!=null?(isArray$1(o)?o.map(c=>c&&encodeQueryValue(c)):[o&&encodeQueryValue(o)]).forEach(c=>{c!==void 0&&(t+=(t.length?"&":"")+r,c!=null&&(t+="="+c))}):o!==void 0&&(t+=(t.length?"&":"")+r)}return t}function normalizeQuery(e){const t={};for(const r in e){const o=e[r];o!==void 0&&(t[r]=isArray$1(o)?o.map(c=>c==null?null:""+c):o==null?o:""+o)}return t}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let e=[];return{add:function(t){return e.push(t),()=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function guardToPromiseFn(e,t,r,o,c,d=f=>f()){const f=o&&(o.enterCallbacks[c]=o.enterCallbacks[c]||[]);return()=>new Promise((b,m)=>{const S=A=>{A===!1?m(createRouterError(ErrorTypes.NAVIGATION_ABORTED,{from:r,to:t})):A instanceof Error?m(A):isRouteLocation(A)?m(createRouterError(ErrorTypes.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(f&&o.enterCallbacks[c]===f&&typeof A=="function"&&f.push(A),b())},w=d(()=>e.call(o&&o.instances[c],t,r,S));let T=Promise.resolve(w);e.length<3&&(T=T.then(S)),T.catch(A=>m(A))})}function extractComponentsGuards(e,t,r,o,c=d=>d()){const d=[];for(const f of e)for(const b in f.components){let m=f.components[b];if(t==="beforeRouteEnter"||f.instances[b])if(isRouteComponent(m)){const S=(m.__vccOpts||m)[t];S&&d.push(guardToPromiseFn(S,r,o,f,b,c))}else{let S=m();d.push(()=>S.then(w=>
vendor: 4,509 bytes, lines 24-28
24{if(!w)throw new Error(`Couldn't resolve component "${b}" at "${f.path}"`);const T=isESModule(w)?w.default:w;f.mods[b]=w,f.components[b]=T;const A=(T.__vccOpts||T)[t];return A&&guardToPromiseFn(A,r,o,f,b,c)()}))}}return d}function extractChangingRecords(e,t){const r=[],o=[],c=[],d=Math.max(t.matched.length,e.matched.length);for(let f=0;f<d;f++){const b=t.matched[f];b&&(e.matched.find(S=>isSameRouteRecord(S,b))?o.push(b):r.push(b));const m=e.matched[f];m&&(t.matched.find(S=>isSameRouteRecord(S,m))||c.push(m))}return[r,o,c]}/*!
25 * vue-router v4.6.4
26 * (c) 2025 Eduardo San Martin Morote
27 * @license MIT
28 */let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation$1(e,t){const{pathname:r,search:o,hash:c}=t,d=e.indexOf("#");if(d>-1){let f=c.includes(e.slice(d))?e.slice(d).length:1,b=c.slice(f);return b[0]!=="/"&&(b="/"+b),stripBase(b,"")}return stripBase(r,e)+o+c}function useHistoryListeners(e,t,r,o){let c=[],d=[],f=null;const b=({state:S})=>{const w=createCurrentLocation$1(e,location),T=r.value,A=t.value;let C=0;if(S){if(r.value=w,t.value=S,f&&f===T)return void(f=null);C=A?S.position-A.position:0}else o(w);c.forEach(P=>{P(r.value,T,{delta:C,type:NavigationType.pop,direction:C?C>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function m(){if(document.visibilityState==="hidden"){const{history:S}=window;if(!S.state)return;S.replaceState(assign$2({},S.state,{scroll:computeScrollPosition()}),"")}}return window.addEventListener("popstate",b),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:function(){f=r.value},listen:function(S){c.push(S);const w=()=>{const T=c.indexOf(S);T>-1&&c.splice(T,1)};return d.push(w),w},destroy:function(){for(const S of d)S();d=[],window.removeEventListener("popstate",b),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}}}function buildState(e,t,r,o=!1,c=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:c?computeScrollPosition():null}}function useHistoryStateNavigation(e){const{history:t,location:r}=window,o={value:createCurrentLocation$1(e,r)},c={value:t.state};function d(f,b,m){const S=e.indexOf("#"),w=S>-1?(r.host&&document.querySelector("base")?e:e.slice(S))+f:createBaseLocation()+e+f;try{t[m?"replaceState":"pushState"](b,"",w),c.value=b}catch(T){console.error(T),r[m?"replace":"assign"](w)}}return c.value||d(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:c,push:function(f,b){const m=assign$2({},c.value,t.state,{forward:f,scroll:computeScrollPosition()});d(m.current,m,!0),d(f,assign$2({},buildState(o.value,f,null),{position:m.position+1},b),!1),o.value=f},replace:function(f,b){d(f,assign$2({},t.state,buildState(c.value.back,f,c.value.forward,!0),b,{position:c.value.position}),!0),o.value=f}}}function createWebHistory(e){const t=useHistoryStateNavigation(e=normalizeBase(e)),r=useHistoryListeners(e,t.state,t.location,t.replace),o=assign$2({location:"",base:e,go:function(c,d=!0){d||r.pauseListeners(),history.go(c)},createHref:createHref.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let TokenType=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var TokenizerState=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(TokenizerState||{});const ROOT_TOKEN={type:TokenType.Static,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if(e==="/")return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${r})/"${S}": ${C}`)}let r=TokenizerState.Static,o=r;const c=[];let d;function f(){d&&c.push(d),d=[]}let b,m=0,S="",w="";function T(){S&&(r===TokenizerState.Static?d.push({type:TokenType.Static,value:S}):r===TokenizerState.Param||r===TokenizerState.ParamRegExp||r===TokenizerState.ParamRegExpEnd?(d.length>1&&(b==="*"||b==="+")&&t(`A repeatable param (${S}) must be alone in its segment. eg: '/:ids+.`),d.push({type:TokenType.Param,value:S,regexp:w,repeatable:b==="*"||b==="+",optional:b==="*"||b==="?"})):t("Invalid state to consume buffer"),S="")}function A(){S+=b}for(;m<e.length;
28)if(b=e[m++],b!=="\\"||r===TokenizerState.ParamRegExp)switch(r){case TokenizerState.Static:b==="/"?(S&&T(),f()):b===":"?(T(),r=TokenizerState.Param):A();break;case TokenizerState.EscapeNext:A(),r=o;break;case TokenizerState.Param:b==="("?r=TokenizerState.ParamRegExp:VALID_PARAM_RE.test(b)?A():(T(),r=TokenizerState.Static,b!=="*"&&b!=="?"&&b!=="+"&&m--);break;case TokenizerState.ParamRegExp:b===")"?w[w.length-1]=="\\"?w=w.slice(0,-1)+b:r=TokenizerState.ParamRegExpEnd:w+=b;break;case TokenizerState.ParamRegExpEnd:T(),r=TokenizerState.Static,b!=="*"&&b!=="?"&&b!=="+"&&m--,w="";break;default:t("Unknown state")}else o=r,r=TokenizerState.EscapeNext;return r===TokenizerState.ParamRegExp&&t(`Unfinished custom RegExp for param "${S}"`),T(),f(),c}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0};var PathScore=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(PathScore||{});const REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){const r=assign$2({},BASE_PATH_PARSER_OPTIONS,t),o=[];let c=r.start?"^":"";const d=[];for(const b of e){const m=b.length?[]:[PathScore.Root];r.strict&&!b.length&&(c+="/");for(let S=0;S<b.length;S++){const w=b[S];let T=PathScore.Segment+(r.sensitive?PathScore.BonusCaseSensitive:0);if(w.type===TokenType.Static)S||(c+="/"),c+=w.value.replace(REGEX_CHARS_RE,"\\$&"),T+=PathScore.Static;else if(w.type===TokenType.Param){const{value:A,repeatable:C,optional:P,regexp:B}=w;d.push({name:A,repeatable:C,optional:P});const U=B||BASE_PARAM_PATTERN;U!==BASE_PARAM_PATTERN&&(T+=PathScore.BonusCustomRegExp);let D=C?`((?:${U})(?:/(?:${U}))*)`:`(${U})`;S||(D=P&&b.length<2?`(?:/${D})`:"/"+D),P&&(D+="?"),c+=D,T+=PathScore.Dynamic,P&&(T+=PathScore.BonusOptional),C&&(T+=PathScore.BonusRepeatable),U===".*"&&(T+=PathScore.BonusWildcard)}m.push(T)}o.push(m)}if(r.strict&&r.end){const b=o.length-1;o[b][o[b].length-1]+=PathScore.BonusStrict}r.strict||(c+="/?"),r.end?c+="$":r.strict&&!c.endsWith("/")&&(c+="(?:/|$)");const f=new RegExp(c,r.sensitive?"":"i");return{re:f,score:o,keys:d,parse:function(b){const m=b.match(f),S={};if(!m)return null;for(let w=1;w<m.length;w++){const T=m[w]||"",A=d[w-1];S[A.name]=T&&A.repeatable?T.split("/"):T}return S},stringify:function(b){let m="",S=!1;for(const w of e){S&&m.endsWith("/")||(m+="/"),S=!1;for(const T of w)if(T.type===TokenType.Static)m+=T.value;else if(T.type===TokenType.Param){const{value:A,repeatable:C,optional:P}=T,B=A in b?b[A]:"";if(isArray$1(B)&&!C)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const U=isArray$1(B)?B.join("/"):B;if(!U){if(!P)throw new Error(`Missing required param "${A}"`);w.length<2&&(m.endsWith("/")?m=m.slice(0,-1):S=!0)}m+=U}}return m||"/"}}}function compareScoreArray(e,t){let r=0;for(;r<e.length&&r<t.length;){const o=t[r]-e[r];if(o)return o;r++}return e.length<t.length?e.length===1&&e[0]===PathScore.Static+PathScore.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===PathScore.Static+PathScore.Segment?1:-1:0}function comparePathParserScore(e,t){let r=0;const o=e.score,c=t.score;for(;r<o.length&&r<c.length;){const d=compareScoreArray(o[r],c[r]);if(d)return d;r++}if(Math.abs(c.length-o.length)===1){if(isLastScoreNegative(o))return 1;if(isLastScoreNegative(c))return-1}return c.length-o.length}function isLastScoreNegative(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const PATH_PARSER_OPTIONS_DEFAULTS={strict:!1,end:!0,sensitive:!1};function createRouteRecordMatcher(e,t,r){const o=tokensToParser(tokenizePath(e.path),r),c=assign$2(o,{record:e,parent:t,children:[],alias:[]});return t&&!c.record.aliasOf==!t.record.aliasOf&&t.children.push(c),c}function createRouterMatcher(e,t){const r=[],o=new Map;function c(b,m,S){const w=!S,T=normalizeRouteRecord(b);T.aliasOf=S&&S.record;const A=mergeOptions(t,b),C=[T];
vendor: 10,686 bytes, line 28
28if("alias"in b){const U=typeof b.alias=="string"?[b.alias]:b.alias;for(const D of U)C.push(normalizeRouteRecord(assign$2({},T,{components:S?S.record.components:T.components,path:D,aliasOf:S?S.record:T})))}let P,B;for(const U of C){const{path:D}=U;if(m&&D[0]!=="/"){const $=m.record.path,z=$[$.length-1]==="/"?"":"/";U.path=m.record.path+(D&&z+D)}if(P=createRouteRecordMatcher(U,m,A),S?S.alias.push(P):(B=B||P,B!==P&&B.alias.push(P),w&&b.name&&!isAliasRecord(P)&&d(b.name)),isMatchable(P)&&f(P),T.children){const $=T.children;for(let z=0;z<$.length;z++)c($[z],P,S&&S.children[z])}S=S||P}return B?()=>{d(B)}:noop$3}function d(b){if(isRouteName(b)){const m=o.get(b);m&&(o.delete(b),r.splice(r.indexOf(m),1),m.children.forEach(d),m.alias.forEach(d))}else{const m=r.indexOf(b);m>-1&&(r.splice(m,1),b.record.name&&o.delete(b.record.name),b.children.forEach(d),b.alias.forEach(d))}}function f(b){const m=findInsertionIndex(b,r);r.splice(m,0,b),b.record.name&&!isAliasRecord(b)&&o.set(b.record.name,b)}return t=mergeOptions(PATH_PARSER_OPTIONS_DEFAULTS,t),e.forEach(b=>c(b)),{addRoute:c,resolve:function(b,m){let S,w,T,A={};if("name"in b&&b.name){if(S=o.get(b.name),!S)throw createRouterError(ErrorTypes.MATCHER_NOT_FOUND,{location:b});T=S.record.name,A=assign$2(pickParams(m.params,S.keys.filter(B=>!B.optional).concat(S.parent?S.parent.keys.filter(B=>B.optional):[]).map(B=>B.name)),b.params&&pickParams(b.params,S.keys.map(B=>B.name))),w=S.stringify(A)}else if(b.path!=null)w=b.path,S=r.find(B=>B.re.test(w)),S&&(A=S.parse(w),T=S.record.name);else{if(S=m.name?o.get(m.name):r.find(B=>B.re.test(m.path)),!S)throw createRouterError(ErrorTypes.MATCHER_NOT_FOUND,{location:b,currentLocation:m});T=S.record.name,A=assign$2({},m.params,b.params),w=S.stringify(A)}const C=[];let P=S;for(;P;)C.unshift(P.record),P=P.parent;return{name:T,path:w,params:A,matched:C,meta:mergeMetaFields(C)}},removeRoute:d,clearRoutes:function(){r.length=0,o.clear()},getRoutes:function(){return r},getRecordMatcher:function(b){return o.get(b)}}}function pickParams(e,t){const r={};for(const o of t)o in e&&(r[o]=e[o]);return r}function normalizeRouteRecord(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function normalizeRecordProps(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const o in e.components)t[o]=typeof r=="object"?r[o]:r;return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce((t,r)=>assign$2(t,r.meta),{})}function findInsertionIndex(e,t){let r=0,o=t.length;for(;r!==o;){const d=r+o>>1;comparePathParserScore(e,t[d])<0?o=d:r=d+1}const c=getInsertionAncestor(e);return c&&(o=t.lastIndexOf(c,o-1)),o}function getInsertionAncestor(e){let t=e;for(;t=t.parent;)if(isMatchable(t)&&comparePathParserScore(e,t)===0)return t}function isMatchable({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function useLink(e){const t=inject(routerKey),r=inject(routeLocationKey),o=computed(()=>{const b=unref(e.to);return t.resolve(b)}),c=computed(()=>{const{matched:b}=o.value,{length:m}=b,S=b[m-1],w=r.matched;if(!S||!w.length)return-1;const T=w.findIndex(isSameRouteRecord.bind(null,S));if(T>-1)return T;const A=getOriginalPath(b[m-2]);return m>1&&getOriginalPath(S)===A&&w[w.length-1].path!==A?w.findIndex(isSameRouteRecord.bind(null,b[m-2])):T}),d=computed(()=>c.value>-1&&includesParams(r.params,o.value.params)),f=computed(()=>c.value>-1&&c.value===r.matched.length-1&&isSameRouteLocationParams(r.params,o.value.params));return{route:o,href:computed(()=>o.value.href),isActive:d,isExactActive:f,navigate:function(b={}){if(guardEvent(b)){const m=t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop$3);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>m),m}return Promise.resolve()}}}function preferSingleVNode(e){return e.length===1?e[0]:e}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink,setup(e,{slots:t}){const r=reactive(useLink(e)),{options:o}=inject(routerKey),c=computed(()=>({[getLinkClass(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[getLinkClass(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const d=t.default&&preferSingleVNode(t.default(r));return e.custom?d:h("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:c.value},d)}}}),RouterLink=RouterLinkImpl;function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function includesParams(e,t){for(const r in t){const o=t[r],c=e[r];if(typeof o=="string"){if(o!==c)return!1}else if(!isArray$1(c)||c.length!==o.length||o.some((d,f)=>d.valueOf()!==c[f].valueOf()))return!1}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const getLinkClass=(e,t,r)=>e??t??r,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const o=inject(routerViewLocationKey),c=computed(()=>e.route||o.value),d=inject(viewDepthKey,0),f=computed(()=>{let S=unref(d);const{matched:w}=c.value;let T;for(;(T=w[S])&&!T.components;)S++;return S}),b=computed(()=>c.value.matched[f.value]);provide(viewDepthKey,computed(()=>f.value+1)),provide(matchedRouteKey,b),provide(routerViewLocationKey,c);const m=ref();return watch(()=>[m.value,b.value,e.name],([S,w,T],[A,C,P])=>{w&&(w.instances[T]=S,C&&C!==w&&S&&S===A&&(w.leaveGuards.size||(w.leaveGuards=C.leaveGuards),w.updateGuards.size||(w.updateGuards=C.updateGuards))),!S||!w||C&&isSameRouteRecord(w,C)&&A||(w.enterCallbacks[T]||[]).forEach(B=>B(S))},{flush:"post"}),()=>{const S=c.value,w=e.name,T=b.value,A=T&&T.components[w];if(!A)return normalizeSlot$1(r.default,{Component:A,route:S});const C=T.props[w],P=C?C===!0?S.params:typeof C=="function"?C(S):C:null,B=h(A,assign$2({},P,t,{onVnodeUnmounted:U=>{U.component.isUnmounted&&(T.instances[w]=null)},ref:m}));return normalizeSlot$1(r.default,{Component:B,route:S})||B}}});function normalizeSlot$1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const RouterView=RouterViewImpl;function createRouter(e){const t=createRouterMatcher(e.routes,e),r=e.parseQuery||parseQuery,o=e.stringifyQuery||stringifyQuery,c=e.history,d=useCallbacks(),f=useCallbacks(),b=useCallbacks(),m=shallowRef(START_LOCATION_NORMALIZED);let S=START_LOCATION_NORMALIZED;isBrowser$1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const w=applyToParams.bind(null,Ce=>""+Ce),T=applyToParams.bind(null,encodeParam),A=applyToParams.bind(null,decode$1);function C(Ce,Me){if(Me=assign$2({},Me||m.value),typeof Ce=="string"){const re=parseURL(r,Ce,Me.path),ne=t.resolve({path:re.path},Me),Se=c.createHref(re.fullPath);return assign$2(re,ne,{params:A(ne.params),hash:decode$1(re.hash),redirectedFrom:void 0,href:Se})}let Ue;if(Ce.path!=null)Ue=assign$2({},Ce,{path:parseURL(r,Ce.path,Me.path).path});else{const re=assign$2({},Ce.params);for(const ne in re)re[ne]==null&&delete re[ne];Ue=assign$2({},Ce,{params:T(re)}),Me.params=T(Me.params)}const Ne=t.resolve(Ue,Me),We=Ce.hash||"";Ne.params=w(A(Ne.params));const et=stringifyURL(o,assign$2({},Ce,{hash:encodeHash(We),path:Ne.path})),rt=c.createHref(et);return assign$2({fullPath:et,hash:We,query:o===stringifyQuery?normalizeQuery(Ce.query):Ce.query||{}},Ne,{redirectedFrom:void 0,href:rt})}function P(Ce){return typeof Ce=="string"?parseURL(r,Ce,m.value.path):assign$2({},Ce)}function B(Ce,Me){if(S!==Ce)return createRouterError(ErrorTypes.NAVIGATION_CANCELLED,{from:Me,to:Ce})}function U(Ce){return $(Ce)}function D(Ce,Me){const Ue=Ce.matched[Ce.matched.length-1];if(Ue&&Ue.redirect){const{redirect:Ne}=Ue;let We=typeof Ne=="function"?Ne(Ce,Me):Ne;return typeof We=="string"&&(We=We.includes("?")||We.includes("#")?We=P(We):{path:We},We.params={}),assign$2({query:Ce.query,hash:Ce.hash,params:We.path!=null?{}:Ce.params},We)}}function $(Ce,Me){const Ue=S=C(Ce),Ne=m.value,We=Ce.state,et=Ce.force,rt=Ce.replace===!0,re=D(Ue,Ne);if(re)return $(assign$2(P(re),{state:typeof re=="object"?assign$2({},We,re.state):We,force:et,replace:rt}),Me||Ue);const ne=Ue;let Se;return ne.redirectedFrom=Me,!et&&isSameRouteLocation(o,Ne,Ue)&&(Se=createRouterError(ErrorTypes.NAVIGATION_DUPLICATED,{to:ne,from:Ne}),pe(Ne,Ne,!0,!1)),(Se?Promise.resolve(Se):F(ne,Ne)).catch(he=>isNavigationFailure(he)?isNavigationFailure(he,ErrorTypes.NAVIGATION_GUARD_REDIRECT)?he:Q(he):G(he,ne,Ne)).then(he=>{if(he){if(isNavigationFailure(he,ErrorTypes.NAVIGATION_GUARD_REDIRECT))return $(assign$2({replace:rt},P(he.to),{state:typeof he.to=="object"?assign$2({},We,he.to.state):We,force:et}),Me||ne)}else he=te(ne,Ne,!0,rt,We);return ee(ne,Ne,he),he})}function z(Ce,Me){const Ue=B(Ce,Me);return Ue?Promise.reject(Ue):Promise.resolve()}function V(Ce){const Me=_e.values().next().value;return Me&&typeof Me.runWithContext=="function"?Me.runWithContext(Ce):Ce()}function F(Ce,Me){let Ue;const[Ne,We,et]=extractChangingRecords(Ce,Me);Ue=extractComponentsGuards(Ne.reverse(),"beforeRouteLeave",Ce,Me);for(const re of Ne)re.leaveGuards.forEach(ne=>{Ue.push(guardToPromiseFn(ne,Ce,Me))});const rt=z.bind(null,Ce,Me);return Ue.push(rt),ge(Ue).then(()=>{Ue=[];for(const re of d.list())Ue.push(guardToPromiseFn(re,Ce,Me));return Ue.push(rt),ge(Ue)}).then(()=>{Ue=extractComponentsGuards(We,"beforeRouteUpdate",Ce,Me);for(const re of We)re.updateGuards.forEach(ne=>{Ue.push(guardToPromiseFn(ne,Ce,Me))});return Ue.push(rt),ge(Ue)}).then(()=>{Ue=[];for(const re of et)if(re.beforeEnter)if(isArray$1(re.beforeEnter))for(const ne of re.beforeEnter)Ue.push(guardToPromiseFn(ne,Ce,Me));else Ue.push(guardToPromiseFn(re.beforeEnter,Ce,Me));return Ue.push(rt),ge(Ue)}).then(()=>(Ce.matched.forEach(re=>re.enterCallbacks={}),Ue=extractComponentsGuards(et,"beforeRouteEnter",Ce,Me,V),Ue.pu
28sh(rt),ge(Ue))).then(()=>{Ue=[];for(const re of f.list())Ue.push(guardToPromiseFn(re,Ce,Me));return Ue.push(rt),ge(Ue)}).catch(re=>isNavigationFailure(re,ErrorTypes.NAVIGATION_CANCELLED)?re:Promise.reject(re))}function ee(Ce,Me,Ue){b.list().forEach(Ne=>V(()=>Ne(Ce,Me,Ue)))}function te(Ce,Me,Ue,Ne,We){const et=B(Ce,Me);if(et)return et;const rt=Me===START_LOCATION_NORMALIZED,re=isBrowser$1?history.state:{};Ue&&(Ne||rt?c.replace(Ce.fullPath,assign$2({scroll:rt&&re&&re.scroll},We)):c.push(Ce.fullPath,We)),m.value=Ce,pe(Ce,Me,Ue,rt),Q()}let K,H,X=useCallbacks(),J=useCallbacks();function G(Ce,Me,Ue){Q(Ce);const Ne=J.list();return Ne.length?Ne.forEach(We=>We(Ce,Me,Ue)):console.error(Ce),Promise.reject(Ce)}function Q(Ce){return H||(H=!Ce,K||(K=c.listen((Me,Ue,Ne)=>{if(!Re.listening)return;const We=C(Me),et=D(We,Re.currentRoute.value);if(et)return void $(assign$2(et,{replace:!0,force:!0}),We).catch(noop$3);S=We;const rt=m.value;isBrowser$1&&saveScrollPosition(getScrollKey(rt.fullPath,Ne.delta),computeScrollPosition()),F(We,rt).catch(re=>isNavigationFailure(re,ErrorTypes.NAVIGATION_ABORTED|ErrorTypes.NAVIGATION_CANCELLED)?re:isNavigationFailure(re,ErrorTypes.NAVIGATION_GUARD_REDIRECT)?($(assign$2(P(re.to),{force:!0}),We).then(ne=>{isNavigationFailure(ne,ErrorTypes.NAVIGATION_ABORTED|ErrorTypes.NAVIGATION_DUPLICATED)&&!Ne.delta&&Ne.type===NavigationType.pop&&c.go(-1,!1)}).catch(noop$3),Promise.reject()):(Ne.delta&&c.go(-Ne.delta,!1),G(re,We,rt))).then(re=>{(re=re||te(We,rt,!1))&&(Ne.delta&&!isNavigationFailure(re,ErrorTypes.NAVIGATION_CANCELLED)?c.go(-Ne.delta,!1):Ne.type===NavigationType.pop&&isNavigationFailure(re,ErrorTypes.NAVIGATION_ABORTED|ErrorTypes.NAVIGATION_DUPLICATED)&&c.go(-1,!1)),ee(We,rt,re)}).catch(noop$3)})),X.list().forEach(([Me,Ue])=>Ce?Ue(Ce):Me()),X.reset()),Ce}function pe(Ce,Me,Ue,Ne){const{scrollBehavior:We}=e;if(!isBrowser$1||!We)return Promise.resolve();const et=!Ue&&getSavedScrollPosition(getScrollKey(Ce.fullPath,0))||(Ne||!Ue)&&history.state&&history.state.scroll||null;return nextTick$1().then(()=>We(Ce,Me,et)).then(rt=>rt&&scrollToPosition(rt)).catch(rt=>G(rt,Ce,Me))}const ye=Ce=>c.go(Ce);let de;const _e=new Set,Re={currentRoute:m,listening:!0,addRoute:function(Ce,Me){let Ue,Ne;return isRouteName(Ce)?(Ue=t.getRecordMatcher(Ce),Ne=Me):Ne=Ce,t.addRoute(Ne,Ue)},removeRoute:function(Ce){const Me=t.getRecordMatcher(Ce);Me&&t.removeRoute(Me)},clearRoutes:t.clearRoutes,hasRoute:function(Ce){return!!t.getRecordMatcher(Ce)},getRoutes:function(){return t.getRoutes().map(Ce=>Ce.record)},resolve:C,options:e,push:U,replace:function(Ce){return U(assign$2(P(Ce),{replace:!0}))},go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:d.add,beforeResolve:f.add,afterEach:b.add,onError:J.add,isReady:function(){return H&&m.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Ce,Me)=>{X.add([Ce,Me])})},install(Ce){Ce.component("RouterLink",RouterLink),Ce.component("RouterView",RouterView),Ce.config.globalProperties.$router=Re,Object.defineProperty(Ce.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(m)}),isBrowser$1&&!de&&m.value===START_LOCATION_NORMALIZED&&(de=!0,U(c.location).catch(Ne=>{}));const Me={};for(const Ne in START_LOCATION_NORMALIZED)Object.defineProperty(Me,Ne,{get:()=>m.value[Ne],enumerable:!0});Ce.provide(routerKey,Re),Ce.provide(routeLocationKey,shallowReactive(Me)),Ce.provide(routerViewLocationKey,m);const Ue=Ce.unmount;_e.add(Ce),Ce.unmount=function(){_e.delete(Ce),_e.size<1&&(S=START_LOCATION_NORMALIZED,K&&K(),K=null,m.value=START_LOCATION_NORMALIZED,de=!1,H=!1),Ue()}}};function ge(Ce){return Ce.reduce((Me,Ue)=>Me.then(()=>V(Ue)),Promise.resolve())}return Re}function useRoute(e){return inject(routeLocationKey)}const ROUTE_KEY_PARENTHESES_RE$1=/(:\w+)\([^)]+\)/g,ROUTE_KEY_SYMBOLS_RE$1=/(:\w+)[?+*]/g,ROUTE_KEY_NORMAL_RE$1=/:\w+/g,interpolatePath=(e,t)=>t.path.replace(ROUTE_KEY_PARENTHESES_RE$1,"$1").replace(ROUTE_KEY_SYMBOLS_RE$1,"$1").replace(ROUTE_KEY_NORMAL_RE$1,r=>{var o;return((o=e.params[r.slice(1)])==null?void 0:o.toString())||""}),generateRouteKey$1=(e,t)=>{const r=e.route.matched.find(c=>{var d;return((d=c.components)==null?void 0:d.default)===e.Component.type}),o=t??(r==null?void 0:r.meta.key)??(r&&interpolatePath(e.route,r));return typeof o=="function"?o(e.route):o},wrapInKeepAlive=(e,t)=>
28({default:()=>e?h(KeepAlive,e===!0?{}:e,t):t});function toArray$1(e){return Array.isArray(e)?e:[e]}const _routes=[{name:"index",path:"/",component:()=>__vitePreload(()=>import("./Cqk1MB6Q.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97]),import.meta.url)},{name:"slug",path:"/:slug(.*)*",component:()=>__vitePreload(()=>import("./BQrSKkRl.js"),__vite__mapDeps([98,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,99,1,100,96,97]),import.meta.url)}],_wrapInTransition=(e,t)=>({default:()=>{var r;return e?h(Transition,e===!0?{}:e,t):(r=t.default)==null?void 0:r.call(t)}}),ROUTE_KEY_PARENTHESES_RE=/(:\w+)\([^)]+\)/g,ROUTE_KEY_SYMBOLS_RE=/(:\w+)[?+*]/g,ROUTE_KEY_NORMAL_RE=/:\w+/g;function generateRouteKey(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(ROUTE_KEY_PARENTHESES_RE,"$1").replace(ROUTE_KEY_SYMBOLS_RE,"$1").replace(ROUTE_KEY_NORMAL_RE,r=>{var o;return((o=e.params[r.slice(1)])==null?void 0:o.toString())||""});return typeof t=="function"?t(e):t}function isChangingPage(e,t){return e===t||t===START_LOCATION_NORMALIZED?!1:generateRouteKey(e)!==generateRouteKey(t)?!0:!e.matched.every((o,c)=>{var d,f;return o.components&&o.components.default===((f=(d=t.matched[c])==null?void 0:d.components)==null?void 0:f.default)})}const routerOptions0={scrollBehavior(e,t,r){var f;const o=useNuxtApp(),c=((f=useRouter().options)==null?void 0:f.scrollBehaviorType)??"auto";if(e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:!!e.hash&&{el:e.hash,top:_getHashElementScrollMarginTop(e.hash),behavior:c};if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const d=o._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(b=>{t!==START_LOCATION_NORMALIZED?o.hooks.hookOnce(d,()=>{requestAnimationFrame(()=>b(_calculatePosition(e,t,r,c)))}):b(_calculatePosition(e,t,r,c))})}};function _getHashElementScrollMarginTop(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function _calculatePosition(e,t,r,o){if(r)return r;const c=isChangingPage(e,t);return e.hash?{el:e.hash,top:_getHashElementScrollMarginTop(e.hash),behavior:c?o:"instant"}:{left:0,top:0,behavior:c?o:"instant"}}const configRouterOptions={hashMode:!1,scrollBehaviorType:"auto"},routerOptions={...configRouterOptions,...routerOptions0},validate=async(e,t)=>{var f;let r,o;if(!((f=e.meta)!=null&&f.validate))return;const c=([r,o]=executeAsync(()=>Promise.resolve(e.meta.validate(e))),r=await r,o(),r);if(c===!0)return;const d=createError({fatal:!0,statusCode:c&&c.statusCode||404,statusMessage:c&&c.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),d},manifest_45route_45rule=async e=>{let t,r;const o=([t,r]=executeAsync(()=>getRouteRules({path:e.path})),t=await t,r(),t);if(o.redirect)return hasProtocol(o.redirect,{acceptRelative:!0})?(window.location.href=o.redirect,!1):o.redirect},globalMiddleware=[validate,manifest_45route_45rule],namedMiddleware={};function createCurrentLocation(e,t,r){const{pathname:o,search:c,hash:d}=t,f=e.indexOf("#");if(f>-1){const S=d.includes(e.slice(f))?e.slice(f).length:1;let w=d.slice(S);return w[0]!=="/"&&(w="/"+w),withoutBase(w,"")}const b=withoutBase(o,e),m=!r||isSamePath(b,r)?b:r;return m+(m.includes("?")?"":c)+d}const plugin$1=defineNuxtPlugin({name:"nuxt:router",enforce:"pre",async setup(e){var U;let t,r,o=useRuntimeConfig().app.baseURL;const c=((U=routerOptions.history)==null?void 0:U.call(routerOptions,o))??createWebHistory(o),d=routerOptions.routes?([t,r]=executeAsync(()=>routerOptions.routes(_routes)),t=await t,r(),t??_routes):_routes;let f;const b=createRouter({...routerOptions,scrollBehavior:(D,$,z)=>{if($!==START_LOCATION_NORMALIZED){if(routerOptions.scrollBehavior){if(b.options.scrollBehavior=routerOptions.scrollBehavior,"scrollRestoration"in window.history){const V=b.beforeEach(()=>{V(),window.history.scrollRestoration="manual"})}return routerOptions.scrollBehavior(D,START_LOCATION_NORMALIZED,f||z)}}else f=z},history:c,routes:d});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(b);const m=shallowRef(b.currentRoute.value);b.afterEach((D,$)=>{m.value=$}
28),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>m.value});const S=createCurrentLocation(o,window.location,e.payload.path),w=shallowRef(b.currentRoute.value),T=()=>{w.value=b.currentRoute.value};e.hook("page:finish",T),b.afterEach((D,$)=>{var z,V,F,ee;((V=(z=D.matched[0])==null?void 0:z.components)==null?void 0:V.default)===((ee=(F=$.matched[0])==null?void 0:F.components)==null?void 0:ee.default)&&T()});const A={};for(const D in w.value)Object.defineProperty(A,D,{get:()=>w.value[D],enumerable:!0});e._route=shallowReactive(A),e._middleware||(e._middleware={global:[],named:{}});const C=useError();b.afterEach(async(D,$,z)=>{delete e._processingMiddleware,!e.isHydrating&&C.value&&await e.runWithContext(clearError),z&&await e.callHook("page:loading:end")});try{[t,r]=executeAsync(()=>b.isReady()),await t,r()}catch(D){[t,r]=executeAsync(()=>e.runWithContext(()=>showError(D))),await t,r()}const P=S!==b.currentRoute.value.fullPath?b.resolve(S):b.currentRoute.value;T();const B=e.payload.state._layout;return b.beforeEach(async(D,$)=>{var z;await e.callHook("page:loading:start"),D.meta=reactive(D.meta),e.isHydrating&&B&&!isReadonly(D.meta.layout)&&(D.meta.layout=B),e._processingMiddleware=!0;{const V=new Set([...globalMiddleware,...e._middleware.global]);for(const F of D.matched){const ee=F.meta.middleware;if(ee)for(const te of toArray$1(ee))V.add(te)}{const F=await e.runWithContext(()=>getRouteRules({path:D.path}));if(F.appMiddleware)for(const ee in F.appMiddleware)F.appMiddleware[ee]?V.add(ee):V.delete(ee)}for(const F of V){const ee=typeof F=="string"?e._middleware.named[F]||await((z=namedMiddleware[F])==null?void 0:z.call(namedMiddleware).then(te=>te.default||te)):F;if(!ee)throw new Error(`Unknown route middleware: '${F}'.`);try{const te=await e.runWithContext(()=>ee(D,$));if(!e.payload.serverRendered&&e.isHydrating&&(te===!1||te instanceof Error)){const K=te||createError({statusCode:404,statusMessage:`Page Not Found: ${S}`});return await e.runWithContext(()=>showError(K)),!1}if(te===!0)continue;if(te===!1)return te;if(te)return isNuxtError(te)&&te.fatal&&await e.runWithContext(()=>showError(te)),te}catch(te){const K=createError(te);return K.fatal&&await e.runWithContext(()=>showError(K)),K}}}}),b.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),b.afterEach(async(D,$)=>{D.matched.length===0&&await e.runWithContext(()=>showError(createError({statusCode:404,fatal:!1,statusMessage:`Page not found: ${D.fullPath}`,data:{path:D.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in P&&(P.name=void 0),await b.replace({...P,force:!0}),b.options.scrollBehavior=routerOptions.scrollBehavior}catch(D){await e.runWithContext(()=>showError(D))}}),{provide:{router:b}}}}),clickOutsideHandler_zH4j3VQ4X0lnprvGUkOO6tCxGOkbHPYH1_1zIefQIEI=defineNuxtPlugin(e=>{e.vueApp.directive("click-outside",{beforeMount(t,r){t.clickOutsideEvent=o=>{t===o.target||t.contains(o.target)||r.value(o)},document.addEventListener("click",t.clickOutsideEvent)},unmounted(t){document.removeEventListener("click",t.clickOutsideEvent)}})}),inView_79Wqatl7kpXCcrdqIoft8Rho2uHxqOr2zmYTH_KhGRk=defineNuxtPlugin(e=>{e.vueApp.directive("in-view",{beforeMount(t,r){const o=r.arg?Number(r.arg):.15,c=r.modifiers.once;let d=!1;t.__inViewCallback__=typeof r.value=="function"?r.value:()=>{},t.__inViewObserver__=new IntersectionObserver(f=>{!f[0].isIntersecting||d&&c||(t.__inViewCallback__(t),d=!0,c&&t.__inViewObserver__.disconnect())},{threshold:o}),t.__inViewObserver__.observe(t)},unmounted(t){t.__inViewObserver__&&(t.__inViewObserver__.disconnect(),delete t.__inViewObserver__,delete t.__inViewCallback__)}})});function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
28return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var c=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,c.get?c:{enumerable:!0,get:function(){return e[o]}})}),r}var ReCaptchaVuePlugin={},ReCaptcha={},ReCaptchaLoader={},ReCaptchaInstance={},hasRequiredReCaptchaInstance,hasRequiredReCaptchaLoader,hasRequiredReCaptcha;function requireReCaptchaInstance(){if(hasRequiredReCaptchaInstance)return ReCaptchaInstance;hasRequiredReCaptchaInstance=1;var e=ReCaptchaInstance&&ReCaptchaInstance.__awaiter||function(o,c,d,f){return new(d||(d=Promise))(function(b,m){function S(A){try{T(f.next(A))}catch(C){m(C)}}function w(A){try{T(f.throw(A))}catch(C){m(C)}}function T(A){var C;A.done?b(A.value):(C=A.value,C instanceof d?C:new d(function(P){P(C)})).then(S,w)}T((f=f.apply(o,c||[])).next())})},t=ReCaptchaInstance&&ReCaptchaInstance.__generator||function(o,c){var d,f,b,m,S={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return m={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function w(T){return function(A){return(function(C){if(d)throw new TypeError("Generator is already executing.");for(;m&&(m=0,C[0]&&(S=0)),S;)try{if(d=1,f&&(b=2&C[0]?f.return:C[0]?f.throw||((b=f.return)&&b.call(f),0):f.next)&&!(b=b.call(f,C[1])).done)return b;switch(f=0,b&&(C=[2&C[0],b.value]),C[0]){case 0:case 1:b=C;break;case 4:return S.label++,{value:C[1],done:!1};case 5:S.label++,f=C[1],C=[0];continue;case 7:C=S.ops.pop(),S.trys.pop();continue;default:if(b=S.trys,!((b=b.length>0&&b[b.length-1])||C[0]!==6&&C[0]!==2)){S=0;continue}if(C[0]===3&&(!b||C[1]>b[0]&&C[1]<b[3])){S.label=C[1];break}if(C[0]===6&&S.label<b[1]){S.label=b[1],b=C;break}if(b&&S.label<b[2]){S.label=b[2],S.ops.push(C);break}b[2]&&S.ops.pop(),S.trys.pop();continue}C=c.call(o,S)}catch(P){C=[6,P],f=0}finally{d=b=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}})([T,A])}}};Object.defineProperty(ReCaptchaInstance,"__esModule",{value:!0}),ReCaptchaInstance.ReCaptchaInstance=void 0;var r=(function(){function o(c,d,f){this.siteKey=c,this.recaptchaID=d,this.recaptcha=f,this.styleContainer=null}return o.prototype.execute=function(c){return e(this,void 0,void 0,function(){var d;return t(this,function(f){switch(f.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:c})]:[3,2];case 1:return d=f.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:c})];case 3:d=f.sent(),f.label=4;case 4:return[2,d]}})})},o.prototype.getSiteKey=function(){return this.siteKey},o.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},o.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},o})();return ReCaptchaInstance.ReCaptchaInstance=r,ReCaptchaInstance}function requireReCaptchaLoader(){if(hasRequiredReCaptchaLoader)return ReCaptchaLoader;hasRequiredReCaptchaLoader=1;var e=ReCaptchaLoader&&ReCaptchaLoader.__assign||function(){return e=Object.assign||function(c){for(var d,f=1,b=arguments.length;f<b;f++)for(var m in d=arguments[f])Object.prototype.hasOwnProperty.call(d,m)&&(c[m]=d[m]);return c},e.apply(this,arguments)};Object.defineProperty(ReCaptchaLoader,"__esModule",{value:!0}),ReCaptchaLoader.getInstance=ReCaptchaLoader.load=void 0;var t,r=requireReCaptchaInstance();(function(c){c[c.NOT_LOADED=0]="NOT_LOADED",c[c.LOADING=1]="LOADING",c[c.LOADED=2]="LOADED"})(t||(t={}));var o=(function(){function c(){}return c.load=function(d,f){if(f===void 0&&(f={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(c.getLoadingState()===t.LOADED)return c.instance.getSiteKey()===d?Promise.resolve(c.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(c.getLoadingState()===t.LOADING)return d!==c.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(m,S){c.successfulLoadingConsumers.push(function(w){return m(w)}),c.errorLoadingRunnable.push(function(w){return S(w)})});
28c.instanceSiteKey=d,c.setLoadingState(t.LOADING);var b=new c;return new Promise(function(m,S){b.loadScript(d,f.useRecaptchaNet||!1,f.useEnterprise||!1,f.renderParameters?f.renderParameters:{},f.customUrl).then(function(){c.setLoadingState(t.LOADED);var w=b.doExplicitRender(grecaptcha,d,f.explicitRenderParameters?f.explicitRenderParameters:{},f.useEnterprise||!1),T=new r.ReCaptchaInstance(d,w,grecaptcha);c.successfulLoadingConsumers.forEach(function(A){return A(T)}),c.successfulLoadingConsumers=[],f.autoHideBadge&&T.hideBadge(),c.instance=T,m(T)}).catch(function(w){c.errorLoadingRunnable.forEach(function(T){return T(w)}),c.errorLoadingRunnable=[],S(w)})})},c.getInstance=function(){return c.instance},c.setLoadingState=function(d){c.loadingState=d},c.getLoadingState=function(){return c.loadingState===null?t.NOT_LOADED:c.loadingState},c.prototype.loadScript=function(d,f,b,m,S){var w=this;f===void 0&&(f=!1),b===void 0&&(b=!1),m===void 0&&(m={}),S===void 0&&(S="");var T=document.createElement("script");T.setAttribute("recaptcha-v3-script",""),T.setAttribute("async",""),T.setAttribute("defer","");var A="https://www.google.com/recaptcha/api.js";f?A=b?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js":b&&(A="https://www.google.com/recaptcha/enterprise.js"),S&&(A=S),m.render&&(m.render=void 0);var C=this.buildQueryString(m);return T.src=A+"?render=explicit"+C,new Promise(function(P,B){T.addEventListener("load",w.waitForScriptToLoad(function(){P(T)},b),!1),T.onerror=function(U){c.setLoadingState(t.NOT_LOADED),B(U)},document.head.appendChild(T)})},c.prototype.buildQueryString=function(d){return Object.keys(d).length<1?"":"&"+Object.keys(d).filter(function(f){return!!d[f]}).map(function(f){return f+"="+d[f]}).join("&")},c.prototype.waitForScriptToLoad=function(d,f){var b=this;return function(){window.grecaptcha===void 0?setTimeout(function(){b.waitForScriptToLoad(d,f)},c.SCRIPT_LOAD_DELAY):f?window.grecaptcha.enterprise.ready(function(){d()}):window.grecaptcha.ready(function(){d()})}},c.prototype.doExplicitRender=function(d,f,b,m){var S=e({sitekey:f},b);return b.container?m?d.enterprise.render(b.container,S):d.render(b.container,S):m?d.enterprise.render(S):d.render(S)},c.loadingState=null,c.instance=null,c.instanceSiteKey=null,c.successfulLoadingConsumers=[],c.errorLoadingRunnable=[],c.SCRIPT_LOAD_DELAY=25,c})();return ReCaptchaLoader.load=o.load,ReCaptchaLoader.getInstance=o.getInstance,ReCaptchaLoader}function requireReCaptcha(){return hasRequiredReCaptcha||(hasRequiredReCaptcha=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=requireReCaptchaLoader();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var r=requireReCaptchaInstance();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return r.ReCaptchaInstance}})})(ReCaptcha)),ReCaptcha}var vue={exports:{}},vue_cjs_prod={};/**
29* @vue/compiler-core v3.5.38
30* (c) 2018-present Yuxi (Evan) You and Vue contributors
31* @license MIT
vendor: 19,291 bytes, line 32
32**/const FRAGMENT=Symbol(""),TELEPORT=Symbol(""),SUSPENSE=Symbol(""),KEEP_ALIVE=Symbol(""),BASE_TRANSITION=Symbol(""),OPEN_BLOCK=Symbol(""),CREATE_BLOCK=Symbol(""),CREATE_ELEMENT_BLOCK=Symbol(""),CREATE_VNODE=Symbol(""),CREATE_ELEMENT_VNODE=Symbol(""),CREATE_COMMENT=Symbol(""),CREATE_TEXT=Symbol(""),CREATE_STATIC=Symbol(""),RESOLVE_COMPONENT=Symbol(""),RESOLVE_DYNAMIC_COMPONENT=Symbol(""),RESOLVE_DIRECTIVE=Symbol(""),RESOLVE_FILTER=Symbol(""),WITH_DIRECTIVES=Symbol(""),RENDER_LIST=Symbol(""),RENDER_SLOT=Symbol(""),CREATE_SLOTS=Symbol(""),TO_DISPLAY_STRING=Symbol(""),MERGE_PROPS=Symbol(""),NORMALIZE_CLASS=Symbol(""),NORMALIZE_STYLE=Symbol(""),NORMALIZE_PROPS=Symbol(""),GUARD_REACTIVE_PROPS=Symbol(""),TO_HANDLERS=Symbol(""),CAMELIZE=Symbol(""),CAPITALIZE=Symbol(""),TO_HANDLER_KEY=Symbol(""),SET_BLOCK_TRACKING=Symbol(""),PUSH_SCOPE_ID=Symbol(""),POP_SCOPE_ID=Symbol(""),WITH_CTX=Symbol(""),UNREF=Symbol(""),IS_REF=Symbol(""),WITH_MEMO=Symbol(""),IS_MEMO_SAME=Symbol(""),helperNameMap={[FRAGMENT]:"Fragment",[TELEPORT]:"Teleport",[SUSPENSE]:"Suspense",[KEEP_ALIVE]:"KeepAlive",[BASE_TRANSITION]:"BaseTransition",[OPEN_BLOCK]:"openBlock",[CREATE_BLOCK]:"createBlock",[CREATE_ELEMENT_BLOCK]:"createElementBlock",[CREATE_VNODE]:"createVNode",[CREATE_ELEMENT_VNODE]:"createElementVNode",[CREATE_COMMENT]:"createCommentVNode",[CREATE_TEXT]:"createTextVNode",[CREATE_STATIC]:"createStaticVNode",[RESOLVE_COMPONENT]:"resolveComponent",[RESOLVE_DYNAMIC_COMPONENT]:"resolveDynamicComponent",[RESOLVE_DIRECTIVE]:"resolveDirective",[RESOLVE_FILTER]:"resolveFilter",[WITH_DIRECTIVES]:"withDirectives",[RENDER_LIST]:"renderList",[RENDER_SLOT]:"renderSlot",[CREATE_SLOTS]:"createSlots",[TO_DISPLAY_STRING]:"toDisplayString",[MERGE_PROPS]:"mergeProps",[NORMALIZE_CLASS]:"normalizeClass",[NORMALIZE_STYLE]:"normalizeStyle",[NORMALIZE_PROPS]:"normalizeProps",[GUARD_REACTIVE_PROPS]:"guardReactiveProps",[TO_HANDLERS]:"toHandlers",[CAMELIZE]:"camelize",[CAPITALIZE]:"capitalize",[TO_HANDLER_KEY]:"toHandlerKey",[SET_BLOCK_TRACKING]:"setBlockTracking",[PUSH_SCOPE_ID]:"pushScopeId",[POP_SCOPE_ID]:"popScopeId",[WITH_CTX]:"withCtx",[UNREF]:"unref",[IS_REF]:"isRef",[WITH_MEMO]:"withMemo",[IS_MEMO_SAME]:"isMemoSame"};function registerRuntimeHelpers(e){Object.getOwnPropertySymbols(e).forEach(t=>{helperNameMap[t]=e[t]})}const Namespaces={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},NodeTypes={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},ElementTypes={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},ConstantTypes={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},locStub={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function createRoot(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:locStub}}function createVNodeCall(e,t,r,o,c,d,f,b=!1,m=!1,S=!1,w=locStub){return e&&(b?(e.helper(OPEN_BLOCK),e.helper(getVNodeBlockHelper(e.inSSR,S))):e.helper(getVNodeHelper(e.inSSR,S)),f&&e.helper(WITH_DIRECTIVES)),{type:13,tag:t,props:r,children:o,patchFlag:c,dynamicProps:d,directives:f,isBlock:b,disableTracking:m,isComponent:S,loc:w}}function createArrayExpression(e,t=locStub){return{type:17,loc:t,elements:e}}function createObjectExpression(e,t=locStub){return{type:15,loc:t,properties:e}}function createObjectProperty(e,t){return{type:16,loc:locStub,key:isString$2(e)?createSimpleExpression(e,!0):e,value:t}}function createSimpleExpression(e,t=!1,r=locStub,o=0){return{type:4,loc:r,content:e,isStatic:t,constType:t?3:o}}function createInterpolation(e,t){return{type:5,loc:t,content:isString$2(e)?createSimpleExpression(e,!1,t):e}}function createCompoundExpression(e,t=locStub){return{type:8,loc:t,children:e}}function createCallExpression(e,t=[],r=locStub){return{type:14,loc:r,callee:e,arguments:t}}function createFunctionExpression(e,t=void 0,r=!1,o=!1,c=locStub){return{type:18,params:e,returns:t,newline:r,isSlot:o,loc:c}}function createConditionalExpression(e,t,r,o=!0){return{type:19,test:e,consequent:t,alternate:r,newline:o,loc:locStub}}function createCacheExpression(e,t,r=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:r,inVOnce:o,needArraySpread:!1,loc:locStub}}function createBlockStatement(e){return{type:21,body:e,loc:locStub}}function createTemplateLiteral(e){return{type:22,elements:e,loc:locStub}}function createIfStatement(e,t,r){return{type:23,test:e,consequent:t,alternate:r,loc:locStub}}function createAssignmentExpression(e,t){return{type:24,left:e,right:t,loc:locStub}}function createSequenceExpression(e){return{type:25,expressions:e,loc:locStub}}function createReturnStatement(e){return{type:26,returns:e,loc:locStub}}function getVNodeHelper(e,t){return e||t?CREATE_VNODE:CREATE_ELEMENT_VNODE}function getVNodeBlockHelper(e,t){return e||t?CREATE_BLOCK:CREATE_ELEMENT_BLOCK}function convertToBlock(e,{helper:t,removeHelper:r,inSSR:o}){e.isBlock||(e.isBlock=!0,r(getVNodeHelper(o,e.isComponent)),t(OPEN_BLOCK),t(getVNodeBlockHelper(o,e.isComponent)))}const defaultDelimitersOpen=new Uint8Array([123,123]),defaultDelimitersClose=new Uint8Array([125,125]);function isTagStartChar(e){return e>=97&&e<=122||e>=65&&e<=90}function isWhitespace(e){return e===32||e===10||e===9||e===12||e===13}function isEndOfTagSection(e){return e===47||e===62||isWhitespace(e)}function toCharCodes(e){const t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}const Sequences={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Tokenizer{constructor(t,r){this.stack=t,this.cbs=r,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=defaultDelimitersOpen,this.delimiterClose=defaultDelimitersClose,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=defaultDelimitersOpen,this.delimiterClose=defaultDelimitersClose}getPos(t){let r=1,o=t+1;const c=this.newlines.length;let d=-1;if(c>100){let f=-1,b=c;for(;f+1<b;){const m=f+b>>>1;this.newlines[m]<t?f=m:b=m}d=f}else for(let f=c-1;f>=0;f--)if(t>this.newlines[f]){d=f;break}return d>=0&&(r=d+2,o=t-this.newlines[d]),{column:o,line:r,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||t!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const r=this.index+1-this.delimiterOpen.length;r>this.sectionStart&&this.cbs.ontext(this.sectionStart,r),this.state=3,this.sectionStart=r}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const r=this.sequenceIndex===this.currentSequence.length;if(r?isEndOfTagSection(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!r)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||isWhitespace(t)){const r=this.index-this.currentSequence.length;if(this.sectionStart<r){const o=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=o}return this.sectionStart=r+2,this.stateInClosingTagName(t),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Sequences.TitleEnd||this.currentSequence===Sequences.TextareaEnd&&!this.inSFCRoot?this.inVPre||t!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Sequences.Cdata[this.sequenceIndex]?++this.sequenceIndex===Sequences.Cdata.length&&(this.state=28,this.currentSequence=Sequences.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);if(r===10&&this.newlines.push(this.index),r===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,r){this.enterRCDATA(t,r),this.state=31}enterRCDATA(t,r){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=r}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):isTagStartChar(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=t===116?30:t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){isEndOfTagSection(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(isEndOfTagSection(t)){const r=this.buffer.slice(this.sectionStart,this.index);r!=="template"&&this.enterRCDATA(toCharCodes("</"+r),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){isWhitespace(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=isTagStartChar(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||isWhitespace(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):isWhitespace(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):isWhitespace(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||isEndOfTagSection(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||isEndOfTagSection(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||isEndOfTagSection(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||isEndOfTagSection(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||isEndOfTagSection(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):isWhitespace(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):isWhitespace(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,r){(t===r||this.fastForwardTo(r))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){isWhitespace(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):t!==39&&t!==60&&t!==61&&t!==96||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Sequences.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Sequences.ScriptEnd[3]?this.startSpecial(Sequences.ScriptEnd,4):t===Sequences.StyleEnd[3]?this.startSpecial(Sequences.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Sequences.TitleEnd[3]?this.startSpecial(Sequences.TitleEnd,4):t===Sequences.TextareaEnd[3]?this.startSpecial(Sequences.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const r=this.buffer.charCodeAt(this.index);switch(r===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:this.stateText(r);break;case 2:this.stateInterpolationOpen(r);break;case 3:this.stateInterpolation(r);break;case 4:this.stateInterpolationClose(r);break;case 31:this.stateSpecialStartSequence(r);break;case 32:this.stateInRCDATA(r);break;case 26:this.stateCDATASequence(r);break;case 19:this.stateInAttrValueDoubleQuotes(r);break;case 12:this.stateInAttrName(r);break;case 13:this.stateInDirName(r);break;case 14:this.stateInDirArg(r);break;case 15:this.stateInDynamicDirArg(r);break;case 16:this.stateInDirModifier(r);break;case 28:this.stateInCommentLike(r);break;case 27:this.stateInSpecialComment(r);break;case 11:this.stateBeforeAttrName(r);break;case 6:this.stateInTagName(r);break;case 34:this.stateInSFCRootTagName(r);break;case 9:this.stateInClosingTagName(r);break;case 5:this.stateBeforeTagName(r);break;case 17:this.stateAfterAttrName(r);break;case 20:this.stateInAttrValueSingleQuotes(r);break;case 18:this.stateBeforeAttrValue(r);break;case 8:this.stateBeforeClosingTagName(r);break;case 10:this.stateAfterClosingTagName(r);break;case 29:this.stateBeforeSpecialS(r);break;case 30:this.stateBeforeSpecialT(r);break;case 21:this.stateInAttrValueNoQuotes(r);break;case 7:this.stateInSelfClosingTag(r);break;case 23:this.stateInDeclaration(r);break;case 22:this.stateBeforeDeclaration(r);break;case 25:this.stateBeforeComment(r);break;case 24:this.stateInProcessingInstruction(r);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==19&&this.state!==20&&this.state!==21||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Sequences.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,r){}}const CompilerDeprecationTypes={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},deprecationData
vendor: 2,117 bytes, line 32
32={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function 
vendor: 12,546 bytes, lines 32-34
32getCompatValue(e,{compatConfig:t}){const r=t&&t[e];return e==="MODE"?r||3:r}function isCompatEnabled(e,t){const r=getCompatValue("MODE",t),o=getCompatValue(e,t);return r===3?o===!0:o!==!1}function checkCompatEnabled(e,t,r,...o){return isCompatEnabled(e,t)}function warnDeprecation(e,t,r,...o){if(getCompatValue(e,t)==="suppress-warning")return;const{message:c,link:d}=deprecationData[e],f=`(deprecation ${e}) ${typeof c=="function"?c(...o):c}${d?`
33  Details: ${d}`:""}`,b=new SyntaxError(f);b.code=e,r&&(b.loc=r),t.onWarn(b)}function defaultOnError(e){throw e}function defaultOnWarn(e){}function createCompilerError(e,t,r,o){const c=new SyntaxError(`https://vuejs.org/error-reference/#compiler-${e}`);return c.code=e,c.loc=t,c}const ErrorCodes={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},errorMessages={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
34Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function walkIdentifiers(e,t,r=!1,o=[],c=Object.create(null)){}function isReferencedIdentifier(e,t,r){return!1}function isInDestructureAssignment(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let r=t.length;for(;r--;){const o=t[r];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function isInNewExpression(e){let t=e.length;for(;t--;){const r=e[t];if(r.type==="NewExpression")return!0;if(r.type!=="MemberExpression")break}return!1}function walkFunctionParams(e,t){for(const r of e.params)for(const o of extractIdentifiers(r))t(o)}function walkBlockDeclarations(e,t){const r=e.type==="SwitchCase"?e.consequent:e.body;for(const o of r)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const c of o.declarations)for(const d of extractIdentifiers(c.id))t(d)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else isForStatement(o)?walkForStatement(o,!0,t):o.type==="SwitchStatement"&&walkSwitchStatement(o,!0,t)}function isForStatement(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function walkForStatement(e,t,r){const o=e.type==="ForStatement"?e.init:e.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const c of o.declarations)for(const d of extractIdentifiers(c.id))r(d)}function walkSwitchStatement(e,t,r){for(const o of e.cases){for(const c of o.consequent)if(c.type==="VariableDeclaration"&&(c.kind==="var"?t:!t))for(const d of c.declarations)for(const f of extractIdentifiers(d.id))r(f);walkBlockDeclarations(o,r)}}function extractIdentifiers(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let r=e;for(;r.type==="MemberExpression";)r=r.object;t.push(r);break;case"ObjectPattern":for(const o of e.properties)o.type==="RestElement"?extractIdentifiers(o.argument,t):extractIdentifiers(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&extractIdentifiers(o,t)});break;case"RestElement":extractIdentifiers(e.argument,t);break;case"AssignmentPattern":extractIdentifiers(e.left,t)}return t}const isFunctionType=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),isStaticProperty=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,isStaticPropertyKey=(e,t)=>isStaticProperty(t)&&t.key===e,TS_NODE_TYPES=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function unwrapTSNode(e){return TS_NODE_TYPES.includes(e.type)?unwrapTSNode(e.expression):e}const isStaticExp=e=>e.type===4&&e.isStatic;function isCoreComponent(e){switch(e){case"Teleport":case"teleport":return TELEPORT;case"Suspense":case"suspense":return SUSPENSE;case"KeepAlive":case"keep-alive":return KEEP_ALIVE;case"BaseTransition":case"base-transition":return BASE_TRANSITION}}const nonIdentifierRE=/^$|^\d|[^\$\w\xA0-\uFFFF]/,isSimpleIdentifier=e=>!nonIdentifierRE.test(e),validFirstIdentCharRE=/[A-Za-z_$\xA0-\uFFFF]/,validIdentCharRE=/[\.\?\w$\xA0-\uFFFF]/,whitespaceRE=/\s+[.[]\s*|\s*[.[]\s+/g,getExpSource=e=>e.type===4?e.content:e.loc.source,isMemberExpressionBrowser=e=>{const t=getExpSource(e).trim().replace(whitespaceRE,b=>b.trim());let r=0,o=[],c=0,d=0,f=null;for(let b=0;b<t.length;b++){const m=t.charAt(b);switch(r){case 0:if(m==="[")o.push(r),r=1,c++;else if(m==="(")o.push(r),r=2,d++;else if(!(b===0?validFirstIdentCharRE:validIdentCharRE).test(m))return!1;break;case 1:m==="'"||m==='"'||m==="`"?(o.push(r),r=3,f=m):m==="["?c++:m==="]"&&(--c||(r=o.pop()));break;case 2:if(m==="'"||m==='"'||m==="`")o.push(r),r=3,f=m;else if(m==="(")d++;else if(m===")"){if(b===t.length-1)return!1;--d||(r=o.pop())}break;case 3:m===f&&(r=o.pop(),f=null)}}return!c&&!d},isMemberExpressionNode=NOOP,isMemberExpression=isMemberExpressionBrowser,fnExpRE=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,isFnExpressionBrowser=e=>fnExpRE.test(getExpSource(e)),isFnExpressionNode=NOOP,isFnExpression=isFnExpressionBrowser;function advancePositionWithClone(e,t,r=t.length){return advancePositionWithMutation({offset:e.offset,line:e.line,column:e.column},t,r)}function advancePositionWithMutation(e,t,r=t.length){let o=0,c=-1;for(let d=0;d<r;d++)t.charCodeAt(d)===10&&(o++,c=d);return e.offset+=r,e.line+=o,e.column=c===-1?e.column+r:r-c,e}function assert$1(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function findDir(e,t,r=!1){for(let o=0;o<e.props.length;o++){const c=e.props[o];if(c.type===7&&(r||c.exp)&&(isString$2(t)?c.name===t:t.test(c.name)))return c}}function findProp(e,t,r=!1,o=!1){for(let c=0;c<e.props.length;c++){const d=e.props[c];if(d.type===6){if(r)continue;if(d.name===t&&(d.value||o))return d}else if(d.name==="bind"&&(d.exp||o)&&isStaticArgOf(d.arg,t))return d}}function isStaticArgOf(e,t){return!(!e||!isStaticExp(e)||e.content!==t)}function hasDynamicKeyVBind(e){return e.props.some(t=>!(t.type!==7||t.name!=="bind"||t.arg&&t.arg.type===4&&t.arg.isStatic))}function isText$1(e){return e.type===5||e.type===2}function isVPre(e){return e.type===7&&e.name==="pre"}function isVSlot(e){return e.type===7&&e.name==="slot"}function isTemplateNode(e){return e.type===1&&e.tagType===3}function isSlotOutlet(e){return e.type===1&&e.tagType===2}const propsHelperSet=new Set([NORMALIZE_PROPS,GUARD_REACTIVE_PROP
34S]);function getUnnormalizedProps(e,t=[]){if(e&&!isString$2(e)&&e.type===14){const r=e.callee;if(!isString$2(r)&&propsHelperSet.has(r))return getUnnormalizedProps(e.arguments[0],t.concat(e))}return[e,t]}function injectProp(e,t,r){let o,c,d=e.type===13?e.props:e.arguments[2],f=[];if(d&&!isString$2(d)&&d.type===14){const b=getUnnormalizedProps(d);d=b[0],f=b[1],c=f[f.length-1]}if(d==null||isString$2(d))o=createObjectExpression([t]);else if(d.type===14){const b=d.arguments[0];isString$2(b)||b.type!==15?d.callee===TO_HANDLERS?o=createCallExpression(r.helper(MERGE_PROPS),[createObjectExpression([t]),d]):d.arguments.unshift(createObjectExpression([t])):hasProp(t,b)||b.properties.unshift(t),!o&&(o=d)}else d.type===15?(hasProp(t,d)||d.properties.unshift(t),o=d):(o=createCallExpression(r.helper(MERGE_PROPS),[createObjectExpression([t]),d]),c&&c.callee===GUARD_REACTIVE_PROPS&&(c=f[f.length-2]));e.type===13?c?c.arguments[0]=o:e.props=o:c?c.arguments[0]=o:e.arguments[2]=o}function hasProp(e,t){let r=!1;if(e.key.type===4){const o=e.key.content;r=t.properties.some(c=>c.key.type===4&&c.key.content===o)}return r}function toValidAssetId(e,t){return`_${t}_${e.replace(/[^\w]/g,(r,o)=>r==="-"?"_":e.charCodeAt(o).toString())}`}function hasScopeRef(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let r=0;r<e.props.length;r++){const o=e.props[r];if(o.type===7&&(hasScopeRef(o.arg,t)||hasScopeRef(o.exp,t)))return!0}return e.children.some(r=>hasScopeRef(r,t));case 11:return!!hasScopeRef(e.source,t)||e.children.some(r=>hasScopeRef(r,t));case 9:return e.branches.some(r=>hasScopeRef(r,t));case 10:return!!hasScopeRef(e.condition,t)||e.children.some(r=>hasScopeRef(r,t));case 4:return!e.isStatic&&isSimpleIdentifier(e.content)&&!!t[e.content];case 8:return e.children.some(r=>isObject$3(r)&&hasScopeRef(r,t));case 5:case 12:return hasScopeRef(e.content,t);default:return!1}}function getMemoedVNodeCall(e){return e.type===14&&e.callee===WITH_MEMO?e.arguments[1].returns:e}const forAliasRE=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function isAllWhitespace(e){for(let t=0;t<e.length;t++)if(!isWhitespace(e.charCodeAt(t)))return!1;return!0}function isWhitespaceText(e){return e.type===2&&isAllWhitespace(e.content)||e.type===12&&isWhitespaceText(e.content)}function isCommentOrWhitespace(e){return e.type===3||isWhitespaceText(e)}const defaultParserOptions={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:NO,isPreTag:NO,isIgnoreNewlineTag:NO,isCustomElement:NO,onError:defaultOnError,onWarn:defaultOnWarn,comments:!1,prefixIdentifiers:!1};let currentOptions=defaultParserOptions,currentRoot=null,currentInput="",currentOpenTag=null,currentProp=null,currentAttrValue="",currentAttrStartIndex=-1,
vendor: 21,406 bytes, lines 34-40
34currentAttrEndIndex=-1,inPre=0,inVPre=!1,currentVPreBoundary=null;const stack=[],tokenizer=new Tokenizer(stack,{onerr:emitError,ontext(e,t){onText(getSlice(e,t),e,t)},ontextentity(e,t,r){onText(e,t,r)},oninterpolation(e,t){if(inVPre)return onText(getSlice(e,t),e,t);let r=e+tokenizer.delimiterOpen.length,o=t-tokenizer.delimiterClose.length;for(;isWhitespace(currentInput.charCodeAt(r));)r++;for(;isWhitespace(currentInput.charCodeAt(o-1));)o--;let c=getSlice(r,o);c.includes("&")&&(c=currentOptions.decodeEntities(c,!1)),addNode({type:5,content:createExp(c,!1,getLoc(r,o)),loc:getLoc(e,t)})},onopentagname(e,t){const r=getSlice(e,t);currentOpenTag={type:1,tag:r,ns:currentOptions.getNamespace(r,stack[0],currentOptions.ns),tagType:0,props:[],children:[],loc:getLoc(e-1,t),codegenNode:void 0}},onopentagend(e){endOpenTag(e)},onclosetag(e,t){const r=getSlice(e,t);if(!currentOptions.isVoidTag(r)){let o=!1;for(let c=0;c<stack.length;c++)if(stack[c].tag.toLowerCase()===r.toLowerCase()){o=!0,c>0&&emitError(24,stack[0].loc.start.offset);for(let d=0;d<=c;d++)onCloseTag(stack.shift(),t,d<c);break}o||emitError(23,backTrack(e,60))}},onselfclosingtag(e){const t=currentOpenTag.tag;currentOpenTag.isSelfClosing=!0,endOpenTag(e),stack[0]&&stack[0].tag===t&&onCloseTag(stack.shift(),e)},onattribname(e,t){currentProp={type:6,name:getSlice(e,t),nameLoc:getLoc(e,t),value:void 0,loc:getLoc(e)}},ondirname(e,t){const r=getSlice(e,t),o=r==="."||r===":"?"bind":r==="@"?"on":r==="#"?"slot":r.slice(2);if(inVPre||o!==""||emitError(26,e),inVPre||o==="")currentProp={type:6,name:r,nameLoc:getLoc(e,t),value:void 0,loc:getLoc(e)};else if(currentProp={type:7,name:o,rawName:r,exp:void 0,arg:void 0,modifiers:r==="."?[createSimpleExpression("prop")]:[],loc:getLoc(e)},o==="pre"){inVPre=tokenizer.inVPre=!0,currentVPreBoundary=currentOpenTag;const c=currentOpenTag.props;for(let d=0;d<c.length;d++)c[d].type===7&&(c[d]=dirToAttr(c[d]))}},ondirarg(e,t){if(e===t)return;const r=getSlice(e,t);if(inVPre&&!isVPre(currentProp))currentProp.name+=r,setLocEnd(currentProp.nameLoc,t);else{const o=r[0]!=="[";currentProp.arg=createExp(o?r:r.slice(1,-1),o,getLoc(e,t),o?3:0)}},ondirmodifier(e,t){const r=getSlice(e,t);if(inVPre&&!isVPre(currentProp))currentProp.name+="."+r,setLocEnd(currentProp.nameLoc,t);else if(currentProp.name==="slot"){const o=currentProp.arg;o&&(o.content+="."+r,setLocEnd(o.loc,t))}else{const o=createSimpleExpression(r,!0,getLoc(e,t));currentProp.modifiers.push(o)}},onattribdata(e,t){currentAttrValue+=getSlice(e,t),currentAttrStartIndex<0&&(currentAttrStartIndex=e),currentAttrEndIndex=t},onattribentity(e,t,r){currentAttrValue+=e,currentAttrStartIndex<0&&(currentAttrStartIndex=t),currentAttrEndIndex=r},onattribnameend(e){const t=currentProp.loc.start.offset,r=getSlice(t,e);currentProp.type===7&&(currentProp.rawName=r),currentOpenTag.props.some(o=>(o.type===7?o.rawName:o.name)===r)&&emitError(2,t)},onattribend(e,t){if(currentOpenTag&&currentProp){if(setLocEnd(currentProp.loc,t),e!==0)if(currentAttrValue.includes("&")&&(currentAttrValue=currentOptions.decodeEntities(currentAttrValue,!0)),currentProp.type===6)currentProp.name==="class"&&(currentAttrValue=condense(currentAttrValue).trim()),e!==1||currentAttrValue||emitError(13,t),currentProp.value={type:2,content:currentAttrValue,loc:e===1?getLoc(currentAttrStartIndex,currentAttrEndIndex):getLoc(currentAttrStartIndex-1,currentAttrEndIndex+1)},tokenizer.inSFCRoot&&currentOpenTag.tag==="template"&&currentProp.name==="lang"&&currentAttrValue&&currentAttrValue!=="html"&&tokenizer.enterRCDATA(toCharCodes("</template"),0);else{let r=0;currentProp.exp=createExp(currentAttrValue,!1,getLoc(currentAttrStartIndex,currentAttrEndIndex),0,r),currentProp.name==="for"&&(currentProp.forParseResult=parseForExpression(currentProp.exp));let o=-1;currentProp.name==="bind"&&(o=currentProp.modifiers.findIndex(c=>c.content==="sync"))>-1&&checkCompatEnabled("COMPILER_V_BIND_SYNC",currentOptions,currentProp.loc,currentProp.arg.loc.source)&&(currentProp.name="model",currentProp.modifiers.splice(o,1))}currentProp.type===7&&currentProp.name==="pre"||currentOpenTag.props.push(currentProp)}currentAttrValue="",currentAttrStartIndex=currentAttrEndIndex=-1},oncomment(e,t){currentOptions.comments&&addNode({type:3,content:getSlice(e,t),loc:getLoc(e-4,t+3)})},onend(){const e=currentInput.length;for(let t=0;t<stack.length;t++)onCloseTag(stack[t],e-1),emitError(24,stack[t].loc.start.offset)},oncdata(e,t){(stack[0]?stack[0].ns:currentOptions.ns)!==0?onText(getSlice(e,t),e,t):emitError(1,e-9)},onprocessinginstruction(e){(stack[0]?stack[0].ns:currentOptions.ns)===0&&emitError(21,e-1)}}),forIteratorRE=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,stripParensRE=/^\(|\)$/g;function parseForExpression(e){const t=e.loc,r=e.content,o=r.match(forAliasRE);if(!o)return;const[,c,d]=o,f=(T,A,C=!1)=>{const P=t.start.offset+A;return createExp(T,!1,getLoc(P,P+T.length),0,C?1:0)},b={source:f(d.trim(),r.indexOf(d,c.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let m=c.trim().replace(stripParensRE,"").trim();const S=c.indexOf(m),w=m.match(forIteratorRE);if(w){m=m.replace(forIteratorRE,"").trim();const T=w[1].trim();let A;if(T&&(A=r.indexOf(T,S+m.length),b.key=f(T,A,!0)),w[2]){const C=w[2].trim();C&&(b.index=f(C,r.indexOf(C,b.key?A+T.length:S+m.length),!0))}}return m&&(b.value=f(m,S,!0)),b}function getSlice(e,t){return currentInput.slice(e,t)}function endOpenTag(e){tokenizer.inSFCRoot&&(currentOpenTag.innerLoc=getLoc(e+1,e+1)),addNode(currentOpenTag);const{tag:t,ns:r}=currentOpenTag;r===0&&currentOptions.isPreTag(t)&&inPre++,currentOptions.isVoidTag(t)?onCloseTag(currentOpenTag,e):(stack.unshift(currentOpenTag),r!==1&&r!==2||(tokenizer.inXML=!0)),currentOpenTag=null}function onText(e,t,r){{const d=stack[0]&&stack[0].tag;d!=="script"&&d!=="style"&&e.includes("&")&&(e=currentOptions.decodeEntities(e,!1))}const o=stack[0]||currentRoot,c=o.children[o.children.length-1];c&&c.type===2?(c.content+=e,setLocEnd(c.loc,r)):o.children.push({type:2,content:e,loc:getLoc(t,r)})}function onCloseTag(e,t,r=!1){setLocEnd(e.loc,r?backTrack(t,60):lookAhead(t,62)+1),tokenizer.inSFCRoot&&(e.children.length?e.innerLoc.end=extend({},e.children[e.children.length-1].loc.end):e.innerLoc.end=extend({},e.innerLoc.start),e.innerLoc.source=getSlice(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:c,children:d}=e;if(inVPre||(o==="slot"?e.tagType=2:isFragmentTemplate(e)?e.tagType=3:isComponent(e)&&(e.tagType=1)),tokenizer.inRCDATA||(e.children=condenseWhitespace(d)),c===0&&currentOptions.isIgnoreNewlineTag(o)){const f=d[0];f&&f.type===2&&(f.content=f.content.replace(/^\r?\n/,""))}c===0&&currentOptions.isPreTag(o)&&inPre--,currentVPreBoundary===e&&(inVPre=tokenizer.inVPre=!1,currentVPreBoundary=null),tokenizer.inXML&&(stack[0]?stack[0].ns:currentOptions.ns)===0&&(tokenizer.inXML=!1);{const f=e.props;if(!tokenizer.inSFCRoot&&isCompatEnabled("COMPILER_NATIVE_TEMPLATE",currentOptions)&&e.tag==="template"&&!isFragmentTemplate(e)){const m=stack[0]||currentRoot,S=m.children.indexOf(e);m.children.splice(S,1,...e.children)}const b=f.find(m=>m.type===6&&m.name==="inline-template");b&&checkCompatEnabled("COMPILER_INLINE_TEMPLATE",currentOptions,b.loc)&&e.children.length&&(b.value={type:2,content:getSlice(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:b.loc})}}function lookAhead(e,t){let r=e;for(;currentInput.charCodeAt(r)!==t&&r<currentInput.length-1;)r++;return r}function backTrack(e,t){let r=e;for(;currentInput.charCodeAt(r)!==t&&r>=0;)r--;return r}const specialTemplateDir=new Set(["if","else","else-if","for","slot"]);function isFragmentTemplate({tag:e,props:t}){if(e==="template"){for(let r=0;r<t.length;r++)if(t[r].type===7&&specialTemplateDir.has(t[r].name))return!0}return!1}function isComponent({tag:e,props:t}){if(currentOptions.isCustomElement(e))return!1;if(e==="component"||isUpperCase(e.charCodeAt(0))||isCoreComponent(e)||currentOptions.isBuiltInComponent&&currentOptions.isBuiltInComponent(e)||currentOptions.isNativeTag&&!currentOptions.isNativeTag(e))return!0;for(let r=0;r<t.length;r++){const o=t[r];if(o.type===6){if(o.name==="is"&&o.value&&(o.value.content.startsWith("vue:")||checkCompatEnabled("COMPILER_IS_ON_ELEMENT",currentOptions,o.loc)))return!0}else if(o.name==="bind"&&isStaticArgOf(o.arg,"is")&&checkCompatEnabled("COMPILER_IS_ON_ELEMENT",currentOptions,o.loc))return!0}return!1}function isUpperCase(e){return e>64&&e<91}const windowsNewlineRE=/\r\n/g;function condenseWhitespace(e){const t=currentOptions.whitespace!=="preserve";let r=!1;for(let o=0;o<e.length;o++){const c=e[o];if(c.type===2)if(inPre)c.content=c.content.replace(windowsNewlineRE,`
35`);else if(isAllWhitespace(c.content)){const d=e[o-1]&&e[o-1].type,f=e[o+1]&&e[o+1].type;!d||!f||t&&(d===3&&(f===3||f===1)||d===1&&(f===3||f===1&&hasNewlineChar(c.content)))?(r=!0,e[o]=null):c.content=" "}else t&&(c.content=condense(c.content))}return r?e.filter(Boolean):e}function hasNewlineChar(e){for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r===10||r===13)return!0}return!1}function condense(e){let t="",r=!1;for(let o=0;o<e.length;o++)isWhitespace(e.charCodeAt(o))?r||(t+=" ",r=!0):(t+=e[o],r=!1);return t}function addNode(e){(stack[0]||currentRoot).children.push(e)}function getLoc(e,t){return{start:tokenizer.getPos(e),end:t==null?t:tokenizer.getPos(t),source:t==null?t:getSlice(e,t)}}function cloneLoc(e){return getLoc(e.start.offset,e.end.offset)}function setLocEnd(e,t){e.end=tokenizer.getPos(t),e.source=getSlice(e.start.offset,t)}function dirToAttr(e){const t={type:6,name:e.rawName,nameLoc:getLoc(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const r=e.exp.loc;r.end.offset<e.loc.end.offset&&(r.start.offset--,r.start.column--,r.end.offset++,r.end.column++),t.value={type:2,content:e.exp.content,loc:r}}return t}function createExp(e,t=!1,r,o=0,c=0){return createSimpleExpression(e,t,r,o)}function emitError(e,t,r){currentOptions.onError(createCompilerError(e,getLoc(t,t)))}function reset(){tokenizer.reset(),currentOpenTag=null,currentProp=null,currentAttrValue="",currentAttrStartIndex=-1,currentAttrEndIndex=-1,stack.length=0}function baseParse(e,t){if(reset(),currentInput=e,currentOptions=extend({},defaultParserOptions),t){let c;for(c in t)t[c]!=null&&(currentOptions[c]=t[c])}tokenizer.mode=currentOptions.parseMode==="html"?1:currentOptions.parseMode==="sfc"?2:0,tokenizer.inXML=currentOptions.ns===1||currentOptions.ns===2;const r=t&&t.delimiters;r&&(tokenizer.delimiterOpen=toCharCodes(r[0]),tokenizer.delimiterClose=toCharCodes(r[1]));const o=currentRoot=createRoot([],e);return tokenizer.parse(currentInput),o.loc=getLoc(0,e.length),o.children=condenseWhitespace(o.children),currentRoot=null,o}function cacheStatic(e,t){walk(e,void 0,t,!!getSingleElementRoot(e))}function getSingleElementRoot(e){const t=e.children.filter(r=>r.type!==3);return t.length!==1||t[0].type!==1||isSlotOutlet(t[0])?null:t[0]}function walk(e,t,r,o=!1,c=!1){const{children:d}=e,f=[];for(let w=0;w<d.length;w++){const T=d[w];if(T.type===1&&T.tagType===0){const A=o?0:getConstantType(T,r);if(A>0){if(A>=2){T.codegenNode.patchFlag=-1,f.push(T);continue}}else{const C=T.codegenNode;if(C.type===13){const P=C.patchFlag;if((P===void 0||P===512||P===1)&&getGeneratedPropsConstantType(T,r)>=2){const B=getNodeProps(T);B&&(C.props=r.hoist(B))}C.dynamicProps&&(C.dynamicProps=r.hoist(C.dynamicProps))}}}else if(T.type===12&&(o?0:getConstantType(T,r))>=2){T.codegenNode.type===14&&T.codegenNode.arguments.length>0&&T.codegenNode.arguments.push("-1"),f.push(T);continue}if(T.type===1){const A=T.tagType===1;A&&r.scopes.vSlot++,walk(T,e,r,!1,c),A&&r.scopes.vSlot--}else if(T.type===11)walk(T,e,r,T.children.length===1,!0);else if(T.type===9)for(let A=0;A<T.branches.length;A++)walk(T.branches[A],e,r,T.branches[A].children.length===1,c)}let b=!1;if(f.length===d.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&isArray$2(e.codegenNode.children))e.codegenNode.children=m(createArrayExpression(e.codegenNode.children)),b=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!isArray$2(e.codegenNode.children)&&e.codegenNode.children.type===15){const w=S(e.codegenNode,"default");w&&(w.returns=m(createArrayExpression(w.returns)),b=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!isArray$2(t.codegenNode.children)&&t.codegenNode.children.type===15){const w=findDir(e,"slot",!0),T=w&&w.arg&&S(t.codegenNode,w.arg);T&&(T.returns=m(createArrayExpression(T.returns)),b=!0)}}if(!b)for(const w of f)w.codegenNode=r.cache(w.codegenNode);function m(w){const T=r.cache(w);return T.needArraySpread=!0,T}function S(w,T){if(w.children&&!isArray$2(w.children)&&w.children.type===15){const A=w.children.properties.find(C=>C.key===T||C.key.content===T);return A&&A.value}}f.length&&r.transformHoist&&r.transformHoist(d,r,e)}function getConstantType(e,t){const{constantCache:r}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=r.get(e);if(o!==void 0)return o;const c=e.codegenNode;if(c.type!==13||c.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(c.patchFlag===void 0){let f=3;const b=getGeneratedPropsConstantType(e,t);if(b===0)return r.set(e,0),0;b<f&&(f=b);for(let m=0;m<e.children.length;m++){const S=getConstantType(e.children[m],t);if(S===0)return r.set(e,0),0;S<f&&(f=S)}if(f>1)for(let m=0;m<e.props.length;m++){const S=e.props[m];if(S.type===7&&S.name==="bind"&&S.exp){const w=getConstantType(S.exp,t);if(w===0)return r.set(e,0),0;w<f&&(f=w)}}if(c.isBlock){for(let m=0;m<e.props.length;m++)if(e.props[m].type===7)return r.set(e,0),0;t.removeHelper(OPEN_BLOCK),t.removeHelper(getVNodeBlockHelper(t.inSSR,c.isComponent)),c.isBlock=!1,t.helper(getVNodeHelper(t.inSSR,c.isComponent))}return r.set(e,f),f}return r.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return getConstantType(e.content,t);case 4:return e.constType;case 8:let d=3;for(let f=0;f<e.children.length;f++){const b=e.children[f];if(isString$2(b)||isSymbol(b))continue;const m=getConstantType(b,t);if(m===0)return 0;m<d&&(d=m)}return d;case 20:return 2}}const allowHoistedHelperSet=new Set([NORMALIZE_CLASS,NORMALIZE_STYLE,NORMALIZE_PROPS,GUARD_REACTIVE_PROPS]);function getConstantTypeOfHelperCall(e,t){if(e.type===14&&!isString$2(e.callee)&&allowHoistedHelperSet.has(e.callee)){const r=e.arguments[0];if(r.type===4)return getConstantType(r,t);if(r.type===14)return getConstantTypeOfHelperCall(r,t)}return 0}function getGeneratedPropsConstantType(e,t){let r=3;const o=getNodeProps(e);if(o&&o.type===15){const{properties:c}=o;for(let d=0;d<c.length;d++){const{key:f,value:b}=c[d],m=getConstantType(f,t);if(m===0)return m;let S;if(m<r&&(r=m),S=b.type===4?getConstantType(b,t):b.type===14?getConstantTypeOfHelperCall(b,t):0,S===0)return S;S<r&&(r=S)}}return r}function getNodeProps(e){const t=e.codegenNode;if(t.type===13)return t.props}function createTransformContext(e,{filename:t="",prefixIdentifiers:r=!1,hoistStatic:o=!1,hmr:c=!1,cacheHandlers:d=!1,nodeTransforms:f=[],directiveTransforms:b={},transformHoist:m=null,isBuiltInComponent:S=NOOP,isCustomElement:w=NOOP,expressionPlugins:T=[],scopeId:A=null,slotted:C=!0,ssr:P=!1,inSSR:B=!1,ssrCssVars:U="",bindingMetadata:D=EMPTY_OBJ,inline:$=!1,isTS:z=!1,onError:V=defaultOnError,onWarn:F=defaultOnWarn,compatConfig:ee}){const te=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),K={filename:t,selfName:te&&capitalize(camelize(te[1])),prefixIdentifiers:r,hoistStatic:o,hmr:c,cacheHandlers:d,nodeTransforms:f,directiveTransforms:b,transformHoist:m,isBuiltInComponent:S,isCustomElement:w,expressionPlugins:T,scopeId:A,slotted:C,ssr:P,inSSR:B,ssrCssVars:U,bindingMetadata:D,inline:$,isTS:z,onError:V,onWarn:F,compatConfig:ee,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(H){const X=K.helpers.get(H)||0;return K.helpers.set(H,X+1),H},removeHelper(H){const X=K.helpers.get(H);if(X){const J=X-1;J?K.helpers.set(H,J):K.helpers.delete(H)}},helperString:H=>`_${helperNameMap[K.helper(H)]}`,replaceNode(H){K.parent.children[K.childIndex]=K.currentNode=H},removeNode(H){const X=K.parent.children,J=H?X.indexOf(H):K.currentNode?K.childIndex:-1;H&&H!==K.currentNode?K.childIndex>J&&(K.childIndex--,K.onNodeRemoved()):(K.currentNode=null,K.onNodeRemoved()),K.parent.children.splice(J,1)},onNodeRemoved:NOOP,addIdentifiers(H){},removeIdentifiers(H){},hoist(H){isString$2(H)&&(H=createSimpleExpression(H)),K.hoists.push(H);const X=createSimpleExpression(`_hoisted_${K.hoists.length}`,!1,H.loc,2);return X.hoisted=H,X},cache(H,X=!1,J=!1){const G=createCacheExpression(K.cached.length,H,X,J);return K.cached.push(G),G}};return K.filters=new Set,K}function transform(e,t){const r=createTransformContext(e,t);traverseNode(e,r),t.hoistStatic&&cacheStatic(e,r),t.ssr||createRootCodegen(e,r),e.helpers=new Set([...r.helpers.keys()]),e.components=[...r.components],e.directives=[...r.directives],e.imports=r.imports,e.hoists=r.hoists,e.temps=r.temps,e.cached=r.cached,e.transformed=!0,e.filters=[...r.filters]}function createRootCodegen(e,t){const{helper:r}=t,{children:o}=e;if(o.length===1){const c=getSingleElementRoot(e);if(c&&c.codegenNode){const d=c.codegenNode;d.type===13&&convertToBlock(d,t),e.codegenNode=d}else e.codegenNode=o[0]}else if(o.length>1){let c=64;e.codegenNode=createVNodeCall(t,r(FRAGMENT),void 0,e.children,c,void 0,void 0,!0,void 0,!1)}}function traverseChildren(e,t){let r=0;const o=()=>{r--};for(;r<e.children.length;r++){const c=e.children[r];isString$2(c)||(t.grandParent=t.parent,t.parent=e,t.childIndex=r,t.onNodeRemoved=o,traverseNode(c,t))}}function traverseNode(e,t){t.currentNode=e;const{nodeTransforms:r}=t,o=[];for(let d=0;d<r.length;d++){const f=r[d](e,t);if(f&&(isArray$2(f)?o.push(...f):o.push(f)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(CREATE_COMMENT);break;case 5:t.ssr||t.helper(TO_DISPLAY_STRING);break;case 9:for(let d=0;d<e.branches.length;d++)traverseNode(e.branches[d],t);break;case 10:case 11:case 1:case 0:traverseChildren(e,t)}t.currentNode=e;let c=o.length;for(;c--;)o[c]()}function createStructuralDirectiveTransform(e,t){const r=isString$2(e)?o=>o===e:o=>e.test(o);return(o,c)=>{if(o.type===1){const{props:d}=o;if(o.tagType===3&&d.some(isVSlot))return;const f=[];for(let b=0;b<d.length;b++){const m=d[b];if(m.type===7&&r(m.name)){d.splice(b,1),b--;const S=t(o,m,c);S&&f.push(S)}}return f}}}const PURE_ANNOTATION="/*@__PURE__*/",aliasHelper=e=>`${helperNameMap[e]}: _${helperNameMap[e]}`;function createCodegenContext(e,{mode:t="function",prefixIdentifiers:r=t==="module",sourceMap:o=!1,filename:c="template.vue.html",scopeId:d=null,optimizeImports:f=!1,runtimeGlobalName:b="Vue",runtimeModuleName:m="vue",ssrRuntimeModuleName:S="vue/server-renderer",ssr:w=!1,isTS:T=!1,inSSR:A=!1}){const C={mode:t,prefixIdentifiers:r,sourceMap:o,filename:c,scopeId:d,optimizeImports:f,runtimeGlobalName:b,runtimeModuleName:m,ssrRuntimeModuleName:S,ssr:w,isTS:T,inSSR:A,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:B=>`_${helperNameMap[B]}`,push(B,U=-2,D){C.code+=B},indent(){P(++C.indentLevel)},deindent(B=!1){B?--C.indentLevel:P(--C.indentLevel)},newline(){P(C.indentLevel)}};function P(B){C.push(`
36`+"  ".repeat(B),0)}return C}function generate(e,t={}){const r=createCodegenContext(e,t);t.onContextCreated&&t.onContextCreated(r);const{mode:o,push:c,prefixIdentifiers:d,indent:f,deindent:b,newline:m,scopeId:S,ssr:w}=r,T=Array.from(e.helpers),A=T.length>0,C=!d&&o!=="module";if(genFunctionPreamble(e,r),c(`function ${w?"ssrRender":"render"}(${(w?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),f(),C&&(c("with (_ctx) {"),f(),A&&(c(`const { ${T.map(aliasHelper).join(", ")} } = _Vue
37`,-1),m())),e.components.length&&(genAssets(e.components,"component",r),(e.directives.length||e.temps>0)&&m()),e.directives.length&&(genAssets(e.directives,"directive",r),e.temps>0&&m()),e.filters&&e.filters.length&&(m(),genAssets(e.filters,"filter",r),m()),e.temps>0){c("let ");for(let P=0;P<e.temps;P++)c(`${P>0?", ":""}_temp${P}`)}return(e.components.length||e.directives.length||e.temps)&&(c(`
38`,0),m()),w||c("return "),e.codegenNode?genNode(e.codegenNode,r):c("null"),C&&(b(),c("}")),b(),c("}"),{ast:e,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function genFunctionPreamble(e,t){const{ssr:r,prefixIdentifiers:o,push:c,newline:d,runtimeModuleName:f,runtimeGlobalName:b,ssrRuntimeModuleName:m}=t,S=b,w=Array.from(e.helpers);w.length>0&&(c(`const _Vue = ${S}
39`,-1),e.hoists.length)&&c(`const { ${[CREATE_VNODE,CREATE_ELEMENT_VNODE,CREATE_COMMENT,CREATE_TEXT,CREATE_STATIC].filter(T=>w.includes(T)).map(aliasHelper).join(", ")} } = _Vue
40`,-1),genHoists(e.hoists,t),d(),c("return ")}function genAssets(e,t,{helper:r,push:o,newline:c,isTS:d}){const f=r(t==="filter"?RESOLVE_FILTER:t==="component"?RESOLVE_COMPONENT:RESOLVE_DIRECTIVE);for(let b=0;b<e.length;b++){let m=e[b];const S=m.endsWith("__self");S&&(m=m.slice(0,-6)),o(`const ${toValidAssetId(m,t)} = ${f}(${JSON.stringify(m)}${S?", true":""})${d?"!":""}
40`),b<e.length-1&&c()}}function genHoists(e,t){if(!e.length)return;t.pure=!0;const{push:r,newline:o}=t;o();for(let c=0;c<e.length;c++){const d=e[c];d&&(r(`const _hoisted_${c+1} = `),genNode(d,t),o())}t.pure=!1}function genNodeListAsArray(e,t){const r=e.length>3||!1;t.push("["),r&&t.indent(),genNodeList(e,t,r),r&&t.deindent(),t.push("]")}function genNodeList(e,t,r=!1,o=!0){const{push:c,newline:d}=t;for(let f=0;f<e.length;f++){const b=e[f];isString$2(b)?c(b,-3):isArray$2(b)?genNodeListAsArray(b,t):genNode(b,t),f<e.length-1&&(r?(o&&c(","),d()):o&&c(", "))}}function genNode(e,t){if(isString$2(e))t.push(e,-3);else if(isSymbol(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:genNode(e.codegenNode,t);break;case 2:genText(e,t);break;case 4:genExpression(e,t);break;case 5:genInterpolation(e,t);break;case 8:genCompoundExpression(e,t);break;case 3:genComment(e,t);break;case 13:genVNodeCall(e,t);break;case 14:genCallExpression(e,t);break;case 15:genObjectExpression(e,t);break;case 17:genArrayExpression(e,t);break;case 18:genFunctionExpression(e,t);break;case 19:genConditionalExpression(e,t);break;case 20:genCacheExpression(e,t);break;case 21:genNodeList(e.body,t,!0,!1)}}function genText(e,t){t.push(JSON.stringify(e.content),-3,e)}function genExpression(e,t){const{content:r,isStatic:o}=e;t.push(o?JSON.stringify(r):r,-3,e)}
40function genInterpolation(e,t){const{push:r,helper:o,pure:c}=t;c&&r(PURE_ANNOTATION),r(`${o(TO_DISPLAY_STRING)}(`),genNode(e.content,t),r(")")}function genCompoundExpression(e,t){for(let r=0;r<e.children.length;r++){const o=e.children[r];isString$2(o)?t.push(o,-3):genNode(o,t)}}function genExpressionAsPropertyKey(e,t){const{push:r}=t;e.type===8?(r("["),genCompoundExpression(e,t),r("]")):e.isStatic?r(isSimpleIdentifier(e.content)?e.content:JSON.stringify(e.content),-2,e):r(`[${e.content}]`,-3,e)}function genComment(e,t){const{push:r,helper:o,pure:c}=t;c&&r(PURE_ANNOTATION),r(`${o(CREATE_COMMENT)}(${JSON.stringify(e.content)})`,-3,e)}function genVNodeCall(e,t){const{push:r,helper:o,pure:c}=t,{tag:d,props:f,children:b,patchFlag:m,dynamicProps:S,directives:w,isBlock:T,disableTracking:A,isComponent:C}=e;let P;m&&(P=String(m)),w&&r(o(WITH_DIRECTIVES)+"("),T&&r(`(${o(OPEN_BLOCK)}(${A?"true":""}), `),c&&r(PURE_ANNOTATION),r(o(T?getVNodeBlockHelper(t.inSSR,C):getVNodeHelper(t.inSSR,C))+"(",-2,e),genNodeList(genNullableArgs([d,f,b,P,S]),t),r(")"),T&&r(")"),w&&(r(", "),genNode(w,t),r(")"))}function genNullableArgs(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(r=>r||"null")}function genCallExpression(e,t){const{push:r,helper:o,pure:c}=t,d=isString$2(e.callee)?e.callee:o(e.callee);c&&r(PURE_ANNOTATION),r(d+"(",-2,e),genNodeList(e.arguments,t),r(")")}function genObjectExpression(e,t){const{push:r,indent:o,deindent:c,newline:d}=t,{properties:f}=e;if(!f.length)return void r("{}",-2,e);const b=f.length>1||!1;r(b?"{":"{ "),b&&o();for(let m=0;m<f.length;m++){const{key:S,value:w}=f[m];genExpressionAsPropertyKey(S,t),r(": "),genNode(w,t),m<f.length-1&&(r(","),d())}b&&c(),r(b?"}":" }")}function genArrayExpression(e,t){genNodeListAsArray(e.elements,t)}function genFunctionExpression(e,t){const{push:r,indent:o,deindent:c}=t,{params:d,returns:f,body:b,newline:m,isSlot:S}=e;S&&r(`_${helperNameMap[WITH_CTX]}(`),r("(",-2,e),isArray$2(d)?genNodeList(d,t):d&&genNode(d,t),r(") => "),(m||b)&&(r("{"),o()),f?(m&&r("return "),isArray$2(f)?genNodeListAsArray(f,t):genNode(f,t)):b&&genNode(b,t),(m||b)&&(c(),r("}")),S&&(e.isNonScopedSlot&&r(", undefined, true"),r(")"))}function genConditionalExpression(e,t){const{test:r,consequent:o,alternate:c,newline:d}=e,{push:f,indent:b,deindent:m,newline:S}=t;if(r.type===4){const T=!isSimpleIdentifier(r.content);T&&f("("),genExpression(r,t),T&&f(")")}else f("("),genNode(r,t),f(")");d&&b(),t.indentLevel++,d||f(" "),f("? "),genNode(o,t),t.indentLevel--,d&&S(),d||f(" "),f(": ");const w=c.type===19;w||t.indentLevel++,genNode(c,t),w||t.indentLevel--,d&&m(!0)}function genCacheExpression(e,t){const{push:r,helper:o,indent:c,deindent:d,newline:f}=t,{needPauseTracking:b,needArraySpread:m}=e;m&&r("[...("),r(`_cache[${e.index}] || (`),b&&(c(),r(`${o(SET_BLOCK_TRACKING)}(-1`),e.inVOnce&&r(", true"),r("),"),f(),r("(")),r(`_cache[${e.index}] = `),genNode(e.value,t),b&&(r(`).cacheIndex = ${e.index},`),f(),r(`${o(SET_BLOCK_TRACKING)}(1),`),f(),r(`_cache[${e.index}]`),d()),r(")"),m&&r(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const transformExpression=(e,t)=>{if(e.type===5)e.content=processExpression(e.content,t);else if(e.type===1){const r=findDir(e,"memo");for(let o=0;o<e.props.length;o++){const c=e.props[o];if(c.type===7&&c.name!=="for"){const d=c.exp,f=c.arg;!d||d.type!==4||c.name==="on"&&f||r&&t.vForMemoKeyedNodes.has(e)&&f&&f.type===4&&f.content==="key"||(c.exp=processExpression(d,t,c.name==="slot")),f&&f.type===4&&!f.isStatic&&(c.arg=processExpression(f,t))}}}};function processExpression(e,t,r=!1,o=!1,c=Object.create(t.identifiers)){return e}function stringifyExpression(e){return isString$2(e)?e:e.type===4?e.content:e.children.map(stringifyExpression).join("")}const transformIf=createStructuralDirectiveTransform(/^(?:if|else|else-if)$/,(e,t,r)=>processIf(e,t,r,(o,c,d)=>{const f=r.parent.children;let b=f.indexOf(o),m=0;for(;b-->=0;){const S=f[b];S&&S.type===9&&(m+=S.branches.length)}return()=>{d?o.codegenNode=createCodegenNodeForBranch(c,m,r):getParentCondition(o.c
vendor: 14,878 bytes, line 40
40odegenNode).alternate=createCodegenNodeForBranch(c,m+o.branches.length-1,r)}}));function processIf(e,t,r,o){if(!(t.name==="else"||t.exp&&t.exp.content.trim())){const c=t.exp?t.exp.loc:e.loc;r.onError(createCompilerError(28,t.loc)),t.exp=createSimpleExpression("true",!1,c)}if(t.name==="if"){const c=createIfBranch(e,t),d={type:9,loc:cloneLoc(e.loc),branches:[c]};if(r.replaceNode(d),o)return o(d,c,!0)}else{const c=r.parent.children;let d=c.indexOf(e);for(;d-->=-1;){const f=c[d];if(!f||!isCommentOrWhitespace(f)){if(f&&f.type===9){t.name!=="else-if"&&t.name!=="else"||f.branches[f.branches.length-1].condition!==void 0||r.onError(createCompilerError(30,e.loc)),r.removeNode();const b=createIfBranch(e,t);f.branches.push(b);const m=o&&o(f,b,!1);traverseNode(b,r),m&&m(),r.currentNode=null}else r.onError(createCompilerError(30,e.loc));break}r.removeNode(f)}}}function createIfBranch(e,t){const r=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:r&&!findDir(e,"for")?e.children:[e],userKey:findProp(e,"key"),isTemplateIf:r}}function createCodegenNodeForBranch(e,t,r){return e.condition?createConditionalExpression(e.condition,createChildrenCodegenNode(e,t,r),createCallExpression(r.helper(CREATE_COMMENT),['""',"true"])):createChildrenCodegenNode(e,t,r)}function createChildrenCodegenNode(e,t,r){const{helper:o}=r,c=createObjectProperty("key",createSimpleExpression(`${t}`,!1,locStub,2)),{children:d}=e,f=d[0];if(d.length!==1||f.type!==1){if(d.length===1&&f.type===11){const b=f.codegenNode;return injectProp(b,c,r),b}return createVNodeCall(r,o(FRAGMENT),createObjectExpression([c]),d,64,void 0,void 0,!0,!1,!1,e.loc)}{const b=f.codegenNode,m=getMemoedVNodeCall(b);return m.type===13&&convertToBlock(m,r),injectProp(m,c,r),b}}function getParentCondition(e){for(;;)if(e.type===19){if(e.alternate.type!==19)return e;e=e.alternate}else e.type===20&&(e=e.value)}const transformFor=createStructuralDirectiveTransform("for",(e,t,r)=>{const{helper:o,removeHelper:c}=r;return processFor(e,t,r,d=>{const f=createCallExpression(o(RENDER_LIST),[d.source]),b=isTemplateNode(e),m=findDir(e,"memo"),S=findProp(e,"key",!1,!0);S&&S.type;let w=S&&(S.type===6?S.value?createSimpleExpression(S.value.content,!0):void 0:S.exp);const T=w?createObjectProperty("key",w):null,A=d.source.type===4&&d.source.constType>0,C=A?64:S?128:256;return d.codegenNode=createVNodeCall(r,o(FRAGMENT),void 0,f,C,void 0,void 0,!0,!A,!1,e.loc),()=>{let P;const{children:B}=d,U=B.length!==1||B[0].type!==1,D=isSlotOutlet(e)?e:b&&e.children.length===1&&isSlotOutlet(e.children[0])?e.children[0]:null;if(D?(P=D.codegenNode,b&&T&&injectProp(P,T,r)):U?P=createVNodeCall(r,o(FRAGMENT),T?createObjectExpression([T]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(P=B[0].codegenNode,b&&T&&injectProp(P,T,r),P.isBlock!==!A&&(P.isBlock?(c(OPEN_BLOCK),c(getVNodeBlockHelper(r.inSSR,P.isComponent))):c(getVNodeHelper(r.inSSR,P.isComponent))),P.isBlock=!A,P.isBlock?(o(OPEN_BLOCK),o(getVNodeBlockHelper(r.inSSR,P.isComponent))):o(getVNodeHelper(r.inSSR,P.isComponent))),m){const $=createFunctionExpression(createForLoopParams(d.parseResult,[createSimpleExpression("_cached")]));$.body=createBlockStatement([createCompoundExpression(["const _memo = (",m.exp,")"]),createCompoundExpression(["if (_cached && _cached.el",...w?[" && _cached.key === ",w]:[],` && ${r.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`]),createCompoundExpression(["const _item = ",P]),createSimpleExpression("_item.memo = _memo"),createSimpleExpression("return _item")]),f.arguments.push($,createSimpleExpression("_cache"),createSimpleExpression(String(r.cached.length))),r.cached.push(null)}else f.arguments.push(createFunctionExpression(createForLoopParams(d.parseResult),P,!0))}})});function processFor(e,t,r,o){if(!t.exp)return void r.onError(createCompilerError(31,t.loc));const c=t.forParseResult;if(!c)return void r.onError(createCompilerError(32,t.loc));finalizeForParseResult(c);const{addIdentifiers:d,removeIdentifiers:f,scopes:b}=r,{source:m,value:S,key:w,index:T}=c,A={type:11,loc:t.loc,source:m,valueAlias:S,keyAlias:w,objectIndexAlias:T,parseResult:c,children:isTemplateNode(e)?e.children:[e]};r.replaceNode(A),b.vFor++;const C=o&&o(A);return()=>{b.vFor--,C&&C()}}function finalizeForParseResult(e,t){e.finalized||(e.finalized=!0)}function createForLoopParams({value:e,key:t,index:r},o=[]){return createParamsList([e,t,r,...o])}function createParamsList(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((r,o)=>r||createSimpleExpression("_".repeat(o+1),!1))}const defaultFallback=createSimpleExpression("undefined",!1),trackSlotScopes=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const r=findDir(e,"slot");if(r)return r.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},trackVForSlotScopes=(e,t)=>{let r;if(isTemplateNode(e)&&e.props.some(isVSlot)&&(r=findDir(e,"for"))){const o=r.forParseResult;if(o){finalizeForParseResult(o);const{value:c,key:d,index:f}=o,{addIdentifiers:b,removeIdentifiers:m}=t;return c&&b(c),d&&b(d),f&&b(f),()=>{c&&m(c),d&&m(d),f&&m(f)}}}},buildClientSlotFn=(e,t,r,o)=>createFunctionExpression(e,r,!1,!0,r.length?r[0].loc:o);function buildSlots(e,t,r=buildClientSlotFn){t.helper(WITH_CTX);const{children:o,loc:c}=e,d=[],f=[];let b=t.scopes.vSlot>0||t.scopes.vFor>0;const m=findDir(e,"slot",!0);if(m){const{arg:U,exp:D}=m;U&&!isStaticExp(U)&&(b=!0),d.push(createObjectProperty(U||createSimpleExpression("default",!0),r(D,void 0,o,c)))}let S=!1,w=!1;const T=[],A=new Set;let C=0;for(let U=0;U<o.length;U++){const D=o[U];let $;if(!isTemplateNode(D)||!($=findDir(D,"slot",!0))){D.type!==3&&T.push(D);continue}if(m){t.onError(createCompilerError(37,$.loc));break}S=!0;const{children:z,loc:V}=D,{arg:F=createSimpleExpression("default",!0),exp:ee,loc:te}=$;let K;isStaticExp(F)?K=F?F.content:"default":b=!0;const H=findDir(D,"for"),X=r(ee,H,z,V);let J,G;if(J=findDir(D,"if"))b=!0,f.push(createConditionalExpression(J.exp,buildDynamicSlot(F,X,C++),defaultFallback));else if(G=findDir(D,/^else(?:-if)?$/,!0)){let Q,pe=U;for(;pe--&&(Q=o[pe],isCommentOrWhitespace(Q)););if(Q&&isTemplateNode(Q)&&findDir(Q,/^(?:else-)?if$/)){let ye=f[f.length-1];for(;ye.alternate.type===19;)ye=ye.alternate;ye.alternate=G.exp?createConditionalExpression(G.exp,buildDynamicSlot(F,X,C++),defaultFallback):buildDynamicSlot(F,X,C++)}else t.onError(createCompilerError(30,G.loc))}else if(H){b=!0;const Q=H.forParseResult;Q?(finalizeForParseResult(Q),f.push(createCallExpression(t.helper(RENDER_LIST),[Q.source,createFunctionExpression(createForLoopParams(Q),buildDynamicSlot(F,X),!0)]))):t.onError(createCompilerError(32,H.loc))}else{if(K){if(A.has(K)){t.onError(createCompilerError(38,te));continue}A.add(K),K==="default"&&(w=!0)}d.push(createObjectProperty(F,X))}}if(!m){const U=(D,$)=>{const z=r(D,void 0,$,c);return t.compatConfig&&(z.isNonScopedSlot=!0),createObjectProperty("default",z)};S?T.length&&!T.every(isWhitespaceText)&&(w?t.onError(createCompilerError(39,T[0].loc)):d.push(U(void 0,T))):d.push(U(void 0,o))}const P=b?2:hasForwardedSlots(e.children)?3:1;let B=createObjectExpression(d.concat(createObjectProperty("_",createSimpleExpression(P+"",!1))),c);return f.length&&(B=createCallExpression(t.helper(CREATE_SLOTS),[B,createArrayExpression(f)])),{slots:B,hasDynamicSlots:b}}function buildDynamicSlot(e,t,r){const o=[createObjectProperty("name",e),createObjectProperty("fn",t)];return r!=null&&o.push(createObjectProperty("key",createSimpleExpression(String(r),!0))),createObjectExpression(o)}function hasForwardedSlots(e){for(let t=0;t<e.length;t++){const r=e[t];switch(r.type){case 1:if(r.tagType===2||hasForwardedSlots(r.children))return!0;break;case 9:if(hasForwardedSlots(r.branches))return!0;break;case 10:case 11:if(hasForwardedSlots(r.children))return!0}}return!1}const directiveImportMap=new WeakMap,transformElement=(e,t)=>function(){if((e=t.currentNode).type!==1||e.tagType!==0&&e.tagType!==1)return;const{tag:r,props:o}=e,c=e.tagType===1;let d=c?resolveComponentType(e,t):`"${r}"`;const f=isObject$3(d)&&d.callee===RESOLVE_DYNAMIC_COMPONENT;let b,m,S,w,T,A=0,C=f||d===TELEPORT||d===SUSPENSE||!c&&(r==="svg"||r==="foreignObject"||r==="math");if(o.length>0){const P=buildProps(e,t,void 0,c,f);b=P.props,A=P.patchFlag,w=P.dynamicPropNames;const B=P.directives;T=B&&B.length?createArrayExpression(B.map(U=>buildDirectiveArgs(U,t))):void 0,P.shouldUseBlock&&(C=!0)}if(e.children.length>0)if(d===KEEP_ALIVE&&(C=!0,A|=1024),c&&d!==TELEPORT&&d!==KEEP_ALIVE){const{slots:P,hasDynamicSlots:B}=buildSlots(e,t);m=P,B&&(A|=1024)}else if(e.children.length===1&&d!==TELEPORT){const P=e.children[0],B=P.type,U=B===5||B===8;U&&getConstantType(P,t)===0&&(A|=1),m=U||B===2?P:e.children}else m=e.children;w&&w.length&&(S=stringifyDynamicPropNames(w)),e.codegenNode=createVNodeCall(t,d,b,m,A===0?void 0:A,S,T,!!C,!1,c,e.loc)};function resolveComponentType(e,t,r=!1){let{tag:o}=e;const c=isComponentTag(o),d=findProp(e,"is",!1,!0);if(d)if(c||isCompatEnabled("COMPILER_IS_ON_ELEMENT",t)){let b;if(d.type===6?b=d.value&&createSimpleExpression(d.value.content,!0):(b=d.exp,b||(b=createSimpleExpression("is",!1,d.arg.loc))),b)return createCallExpression(t.helper(RESOLVE_DYNAMIC_COMPONENT),[b])}else d.type===6&&d.value.content.startsWith("vue:")&&(o=d.value.content.slice(4));const f=isCoreComponent(o)||t.isBuiltInComponent(o);return f?(r||t.helper(f),f):(t.helper(RESOLVE_COMPONENT),t.components.add(o),toValidAssetId(o,"component"))}function buildProps(e,t,r=e.props,o,c,d=!1){const{tag:f,loc:b,children:m}=e;let S=[];const w=[],T=[],A=m.length>0;let C=!1,P=0,B=!1,U=!1,D=!1,$=!1,z=!1,V=!1;const F=[],ee=X=>{S.length&&(w.push(createObjectExpression(dedupeProperties(S),b)),S=[]),X&&w.push(X)},te=()=>{t.scopes.vFor>0&&S.push(createObjectProperty(createSimpleExpression("ref_for",!0),createSimpleExpression("true")))},K=({key:X,value:J})=>{if(isStaticExp(X)){const G=X.content,Q=isOn(G);if(!Q||o&&!c||G.toLowerCase()==="onclick"||G==="onUpdate:modelValue"||isReservedProp(G)||($=!0),Q&&isReservedProp(G)&&(V=!0),Q&&J.type===14&&(J=J.arguments[0]),J.type===20||(J.type===4||J.type===8)&&getConstantType(J,t)>0)return;G==="ref"?B=!0:G==="class"?U=!0:G==="style"?D=!0:G==="key"||F.includes(G)||F.push(G),!o||G!=="class"&&G!=="style"||F.includes(G)||F.push(G)}else z=!0};for(let X=0;X<r.length;X++){const J=r[X];if(J.type===6){const{loc:G,name:Q,nameLoc:pe,value:ye}=J;let de=!0;if(Q==="ref"&&(B=!0,te()),Q==="is"&&(isComponentTag(f)||ye&&ye.content.startsWith("vue:")||isCompatEnabled("COMPILER_IS_ON_ELEMENT",t)))continue;S.push(createObjectProperty(createSimpleExpression(Q,!0,pe),createSimpleExpression(ye?ye.content:"",de,ye?ye.loc:G)))}else{const{name:G,arg:Q,exp:pe,loc:ye,modifiers:de}=J,_e=G==="bind",Re=G==="on";if(G==="slot"){o||t.onError(createCompilerError(40,ye));continue}if(G==="once"||G==="memo"||G==="is"||_e&&isStaticArgOf(Q,"is")&&(isComponentTag(f)||isCompatEnabled("COMPILER_IS_ON_ELEMENT",t))||Re&&d)continue;if((_e&&isStaticArgOf(Q,"key")||Re&&A&&isStaticArgOf(Q,"vue:before-update"))&&(C=!0),_e&&isStaticArgOf(Q,"ref")&&te(),!Q&&(_e||Re)){if(z=!0,pe)if(_e){if(ee(),isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER",t)){w.unshift(pe);continue}te(),ee(),w.push(pe)}else ee({type:14,loc:ye,callee:t.helper(TO_HANDLERS),arguments:o?[pe]:[pe,"true"]});else t.onError(createCompilerError(_e?34:35,ye));continue}_e&&de.some(Ce=>Ce.content==="prop")&&(P|=32);const ge=t.directiveTransforms[G];if(ge){const{props:Ce,needRuntime:Me}=ge(J,e,t);!d&&Ce.forEach(K),Re&&Q&&!isStaticExp(Q)?ee(createObjectExpression(Ce,b)):S.push(...Ce),Me&&(T.push(J),isSymbol(Me)&&directiveImportMap.set(J,Me))}else isBuiltInDirective(G)||(T.push(J),A&&(C=!0))}}let H;if(w.length?(ee(),H=w.length>1?createCallExpression(t.helper(MERGE_PROPS),w,b):w[0]):S.length&&(H=createObjectExpression(dedupeProperties(S),b)),z?P|=16:(U&&!o&&(P|=2),D&&!o&&(P|=4),F.length&&(P|=8),$&&(P|=32)),C||P!==0&&P!==32||!(B||V||T.length>0)||(P|=512),!t.inSSR&&H)switch(H.type){case 15:let X=-1,J=-1,G=!1;for(let ye=0;ye<H.properties.length;ye++){const de=H.properties[ye].key;isStaticExp(de)?de.content==="class"?X=ye:de.content==="style"&&(J=ye):de.isHandlerKey||(G=!0)}const Q=H.properties[X],pe=H.properties[J];G?H=createCallExpression(t.helper(NORMALIZE_PROPS),[H]):(Q&&!isStaticExp(Q.value)&&(Q.value=createCallExpression(t.helper(NORMALIZE_CLASS),[Q.value])),pe&&(D||pe.value.type===4&&pe.value.content.trim()[0]==="["||pe.value.type===17)&&(pe.value=createCallExpression(t.helper(NORMALIZE_STYLE),[pe.value])));break;case 14:break;default:H=createCallExpression(t.helper(NORMALIZE_PROPS),[createCallExpression(t.helper(GUARD_REACTIVE_PROPS),[H])])}return{props:H,directives:T,patchFlag:P,dynamicPropNames:F,shouldUseBlock:C}}function dedupeProperties(e){const t=new Map,r=[];for(let o=0;o<e.length;o++){const c=e[o];if(c.key.type===8||!c.key.isStatic){r.push(c);continue}const d=c.key.content,f=t.get(d);f?(d==="style"||d==="class"||isOn(d))&&mergeAsArray(f,c):(t.set(d,c),r.push(c))}return r}function mergeAsArray(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=createArrayExpression([e.value,t.value],e.loc)}function buildDirectiveArgs(e,t){const r=[],o=directiveImportMap.get(e);o?r.push(t.helperString(o)):(t.helper(RESOLVE_DIRECTIVE),t.directives.add(e.name),r.push(toValidAssetId(e.name,"directive")));const{loc:c}=e;if(e.exp&&r.push(e.exp),e.arg&&(e.exp||r.push("void 0"),r.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||r.push("void 0"),r.push("void 0"));const d=createSimpleExpression("true",!1,c);r.push(createObjectExpression(e.modifiers.map(f=>createObjectProperty(f,d)),c))}return createArrayExpression(r,e.loc)}function stringifyDynamicPropNames(e){let t="[";for(let r=0,o=e.length;r<o;r++)t+=JSON.stringify(e[r]),r<o-1&&(t+=", ");return t+"]"}function isComponentTag(e){return e==="component"||e==="Component"}const transformSlotOutlet=(e,t)=>{if(isSlotOutlet(e)){const{children:r,loc:o}=e,{slotName:c,slotProps:d}=processSlotOutlet(e,t),f=[t.prefixIdentifiers?"_ctx.$slots":"$slots",c,"{}","undefined","true"];let b=2;d&&(f[2]=d,b=3),r.length&&(f[3]=createFunctionExpression([],r,!1,!1,o),b=4),t.scopeId&&!t.slotted&&(b=5),f.splice(b),e.codegenNode=createCallExpression(t.helper(RENDER_SLOT),f,o)}};function processSlotOutlet(e,t){let r,o='"default"';const c=[];for(let d=0;d<e.props.length;d++){const f=e.props[d];if(f.type===6)f.value&&(f.name==="name"?o=JSON.stringify(f.value.content):(f.name=camelize(f.name),c.push(f)));else if(f.name==="bind"&&isStaticArgOf(f.arg,"name")){if(f.exp)o=f.exp;else if(f.arg&&f.arg.type===4){const b=camelize(f.arg.content);o=f.exp=createSimpleExpression(b,!1,f.arg.loc)}}else f.name==="bind"&&f.arg&&isStaticExp(f.arg)&&(f.arg.content=camelize(f.arg.content)),c.push(f)}if(c.length>0){const{props:d,directives:f}=buildProps(e,t,c,!1,!1);r=d,f.length&&t.onError(createCompilerError(36,f[0].loc))}return{slotName:o,slotProps:r}}
40const transformOn$1=(e,t,r,o)=>{const{loc:c,modifiers:d,arg:f}=e;let b;if(e.exp||d.length||r.onError(createCompilerError(35,c)),f.type===4)if(f.isStatic){let T=f.content;T.startsWith("vue:")&&(T=`vnode-${T.slice(4)}`),b=createSimpleExpression(t.tagType!==0||T.startsWith("vnode")||!/[A-Z]/.test(T)?toHandlerKey(camelize(T)):`on:${T}`,!0,f.loc)}else b=createCompoundExpression([`${r.helperString(TO_HANDLER_KEY)}(`,f,")"]);else b=f,b.children.unshift(`${r.helperString(TO_HANDLER_KEY)}(`),b.children.push(")");let m=e.exp;m&&!m.content.trim()&&(m=void 0);let S=r.cacheHandlers&&!m&&!r.inVOnce;if(m){const T=isMemberExpression(m),A=!(T||isFnExpression(m)),C=m.content.includes(";");(A||S&&T)&&(m=createCompoundExpression([`${A?"$event":"(...args)"} => ${C?"{":"("}`,m,C?"}":")"]))}let w={props:[createObjectProperty(b,m||createSimpleExpression("() => {}",!1,c))]};return o&&(w=o(w)),S&&(w.props[0].value=r.cache(w.props[0].value)),w.props.forEach(T=>T.key.isHandlerKey=!0),w},transformBind=(e,t,r)=>{const{modifiers:o,loc:c}=e,d=e.arg;let{exp:f}=e;return f&&f.type===4&&!f.content.trim()&&(f=void 0),d.type!==4?(d.children.unshift("("),d.children.push(') || ""')):d.isStatic||(d.content=d.content?`${d.content} || ""`:'""'),o.some(b=>b.content==="camel")&&(d.type===4?d.isStatic?d.content=camelize(d.content):d.content=`${r.helperString(CAMELIZE)}(${d.content})`:(d.children.unshift(`${r.helperString(CAMELIZE)}(`),d.children.push(")"))),r.inSSR||(o.some(b=>b.content==="prop")&&injectPrefix(d,"."),o.some(b=>b.content==="attr")&&injectPrefix(d,"^")),{props:[createObjectProperty(d,f)]}},injectPrefix=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},transformText=(e,t)=>
40{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const r=e.children;let o,c=!1;for(let d=0;d<r.length;d++){const f=r[d];if(isText$1(f)){c=!0;for(let b=d+1;b<r.length;b++){const m=r[b];if(!isText$1(m)){o=void 0;break}o||(o=r[d]=createCompoundExpression([f],f.loc)),o.children.push(" + ",m),r.splice(b,1),b--}}}if(c&&(r.length!==1||e.type!==0&&(e.type!==1||e.tagType!==0||e.props.find(d=>d.type===7&&!t.directiveTransforms[d.name])||e.tag==="template")))for(let d=0;d<r.length;d++){const f=r[d];if(isText$1(f)||f.type===8){const b=[];f.type===2&&f.content===" "||b.push(f),t.ssr||getConstantType(f,t)!==0||b.push("1"),r[d]={type:12,content:f,loc:f.loc,codegenNode:createCallExpression(t.helper(CREATE_TEXT),b)}}}}},seen$1=new WeakSet,transformOnce=(e,t)=>{if(e.type===1&&findDir(e,"once",!0))return seen$1.has(e)||t.inVOnce||t.inSSR?void 0:(seen$1.add(e),t.inVOnce=!0,t.helper(SET_BLOCK_TRACKING),()=>{t.inVOnce=!1;const r=t.currentNode;r.codegenNode&&(r.codegenNode=t.cache(r.codegenNode,!0,!0))})},transformModel$1=(e,t,r)=>{const{exp:o,arg:c}=e;if(!o)return r.onError(createCompilerError(41,e.loc)),createTransformProps();const d=o.loc.source.trim(),f=o.type===4?o.content:d,b=r.bindingMetadata[d];if(b==="props"||b==="props-aliased")return r.onError(createCompilerError(44,o.loc)),createTransformProps();if(b==="literal-const"||b==="setup-const")return r.onError(createCompilerError(45,o.loc)),createTransformProps();if(!f.trim()||!isMemberExpression(o))return r.onError(createCompilerError(42,o.loc)),createTransformProps();const m=c||createSimpleExpression("modelValue",!0),S=c?isStaticExp(c)?`onUpdate:${camelize(c.content)}`:createCompoundExpression(['"onUpdate:" + ',c]):"onUpdate:modelValue";let w;w=createCompoundExpression([`${r.isTS?"($event: any)":"$event"} => ((`,o,") = $event)"]);const T=[createObjectProperty(m,e.exp),createObjectProperty(S,w)];if(e.modifiers.length&&t.tagType===1){const A=e.modifiers.map(P=>P.content).map(P=>(isSimpleIdentifier(P)?P:JSON.stringify(P))+": true").join(", "),C=c?isStaticExp(c)?`${c.content}Modifiers`:createCompoundExpression([c,' + "Modifiers"']):"modelModifiers";T.push(createObjectProperty(C,createSimpleExpression(`{ ${A} }`,!1,e.loc,2)))}return createTransformProps(T)};function createTransformProps(e=[]){return{props:e}}const validDivisionCharRE=/[\w).+\-_$\]]/,transformFilter=(e,t)=>{isCompatEnabled("COMPILER_FILTERS",t)&&(e.type===5?rewriteFilter(e.content,t):e.type===1&&e.props.forEach(r=>{r.type===7&&r.name!=="for"&&r.exp&&rewriteFilter(r.exp,t)}))};function rewriteFilter(e,t){if(e.type===4)parseFilter(e,t);else for(let r=0;r<e.children.length;r++){const o=e.children[r];typeof o=="object"&&(o.type===4?parseFilter(o,t):o.type===8?rewriteFilter(e,t):o.type===5&&rewriteFilter(o.content,t))}}function parseFilter(e,t){const r=e.content;let o,c,d,f,b=!1,m=!1,S=!1,w=!1,T=0,A=0,C=0,P=0,B=[];for(d=0;d<r.length;d++)if(c=o,o=r.charCodeAt(d),b)o===39&&c!==92&&(b=!1);else if(m)o===34&&c!==92&&(m=!1);else if(S)o===96&&c!==92&&(S=!1);else if(w)o===47&&c!==92&&(w=!1);else if(o!==124||r.charCodeAt(d+1)===124||r.charCodeAt(d-1)===124||T||A||C){switch(o){case 34:m=!0;break;case 39:b=!0;break;case 96:S=!0;break;case 40:C++;break;case 41:C--;break;case 91:A++;break;case 93:A--;break;case 123:T++;break;case 125:T--}if(o===47){let D,$=d-1;for(;$>=0&&(D=r.charAt($),D===" ");$--);D&&validDivisionCharRE.test(D)||(w=!0)}}else f===void 0?(P=d+1,f=r.slice(0,d).trim()):U();function U(){B.push(r.slice(P,d).trim()),P=d+1}if(f===void 0?f=r.slice(0,d).trim():P!==0&&U(),B.length){for(d=0;d<B.length;d++)f=wrapFilter(f,B[d],t);e.content=f,e.ast=void 0}}function wrapFilter(e,t,r){r.helper(RESOLVE_FILTER);const o=t.indexOf("(");if(o<0)return r.filters.add(t),`${toValidAssetId(t,"filter")}(${e})`;{const c=t.slice(0,o),d=t.slice(o+1);return r.filters.add(c),`${toValidAssetId(c,"filter")}(${e}${d!==")"?","+d:d}`}}const seen=new WeakSet,transformMemo=(e,t)=>{if(e.type===1){const r=findDir(e,"memo");return!r||seen.has(e)||t.inSSR?void 0:(seen.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&convertToBlock(o,t),e.codegenNode=createCallExpression(t.helper(WITH_MEMO),[r.exp,createFunctionExpression(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}},transformVBindShorthand=(e,t)=>{if(e.type===1){for(const r of e.props)if(r.type===7&&r.name==="bind"&&(!r.exp||r.exp.type===4&&!r.exp.content.trim())&&r.arg){const o=r.arg;if(o.type===4&&o.isStatic){const c=camelize(o.content);(validFirstIdentCharRE.test(c[0])||c[0]==="-")&&(r.exp=createSimpleExpression(c,!1,o.loc))}else t.onError(createCompilerError(53,o.loc)),r.exp=createSimpleExpression("",!0,o.loc)}}};function getBaseTransformPreset(e){return[[transformVBindShorthand,transformOnce,transformIf,transformMemo,transformFor,transformFilter,transformSlotOutlet,transformElement,trackSlotScopes,transformText],{on:transformOn$
401,bind:transformBind,model:transformModel$1}]}function baseCompile(e,t={}){const r=t.onError||defaultOnError,o=t.mode==="module";t.prefixIdentifiers===!0?r(createCompilerError(48)):o&&r(createCompilerError(49)),t.cacheHandlers&&r(createCompilerError(50)),t.scopeId&&!o&&r(createCompilerError(51));const c=extend({},t,{prefixIdentifiers:!1}),d=isString$2(e)?baseParse(e,c):e,[f,b]=getBaseTransformPreset();return transform(d,extend({},c,{nodeTransforms:[...f,...t.nodeTransforms||[]],directiveTransforms:extend({},b,t.directiveTransforms||{})})),generate(d,c)}const BindingTypes={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},noopDirectiveTransform=()=>({props:[]}),V_MODEL_RADIO=Symbol(""),V_MODEL_CHECKBOX=Symbol(""),V_MODEL_TEXT=Symbol(""),V_MODEL_SELECT=Symbol(""),V_MODEL_DYNAMIC=Symbol(""),V_ON_WITH_MODIFIERS=Symbol(""),V_ON_WITH_KEYS=Symbol(""),V_SHOW=Symbol(""),TRANSITION=Symbol(""),TRANSITION_GROUP=Symbol("");let decoder;function decodeHtmlBrowser(e,t=!1){return decoder||(decoder=document.createElement("div")),t?(decoder.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,decoder.children[0].getAttribute("foo")):(decoder.innerHTML=e,decoder.textContent)}registerRuntimeHelpers({[V_MODEL_RADIO]:"vModelRadio",[V_MODEL_CHECKBOX]:"vModelCheckbox",[V_MODEL_TEXT]:"vModelText",[V_MODEL_SELECT]:"vModelSelect",[V_MODEL_DYNAMIC]:"vModelDynamic",[V_ON_WITH_MODIFIERS]:"withModifiers",[V_ON_WITH_KEYS]:"withKeys",[V_SHOW]:"vShow",[TRANSITION]:"Transition",[TRANSITION_GROUP]:"TransitionGroup"});const parserOptions={parseMode:"html",isVoidTag,isNativeTag:e=>isHTMLTag(e)||isSVGTag$1(e)||isMathMLTag(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:decodeHtmlBrowser,isBuiltInComponent:e=>e==="Transition"||e==="transition"?TRANSITION:e==="TransitionGroup"||e==="transition-group"?TRANSITION_GROUP:void 0,getNamespace(e,t,r){let o=t?t.ns:r;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(c=>c.type===6&&c.name==="encoding"&&c.value!=null&&(c.value.content==="text/html"||c.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag!=="foreignObject"&&t.tag!=="desc"&&t.tag!=="title"||(o=0));if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},transformStyle=e=>{e.type===1&&e.props.forEach((t,r)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[r]={type:7,name:"bind",arg:createSimpleExpression("style",!0,t.loc),exp:parseInlineCSS(t.value.content,t.loc),modifiers:[],loc:t.loc})})},parseInlineCSS=(e,t)=>{const r=parseStringStyle(e);return createSimpleExpression(JSON.stringify(r),!1,t,3)};function createDOMCompilerError(e,t){return createCompilerError(e,t)}const DOMErrorCodes={X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},DOMErrorMessages={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},transformVHtml=(e,t,r)=>{const{exp:o,loc:c}=e;return o||r.onError(createDOMCompilerError(54,c)),t.children.length&&(r.onError(createDOMCompilerError(55,c)),t.children.length=0),{props:[createObjectProperty(createSimpleExpression("innerHTML",!0,c),o||createSimpleExpression("",!0))]}},transformVText=(e,t,r)=>{const{exp:o,loc:c}=e;return o||r.onError(createDOMCompilerError(56,c)),t.children.length&&(r.onError(createDOMCompilerError(57,c)),t.children.length=0),{props:[createObjectProperty(createSimpleExpression("textContent",!0),o?getConstantType(o,r)>0?o:createCallExpression(r.helperString(TO_DISPLAY_STRING),[o],c):createSimpleExpression("",!0))]}},transformModel=(e,t,r)=>{const o=transformModel$1(e,t,r);if(!o.props.length||t.tagType===1)return o;e.arg&&r.onError(createDOMCompilerError(59,e.arg.loc));const{tag:c}=t,d=r.isCustomElement(c);if(c==="input"||c==="textarea"||c==="select"||d){let f=V_MODEL_TEXT,b=!1;if(c==="input"||d){const m=findProp(t,"type");if(m){if(m.type===7)f=V_MODEL_DYNAMIC;else if(m.value)switch(m.value.content){case"radio":f=V_MODEL_RADIO;break;case"checkbox":f=V_MODEL_CHECKBOX;break;case"file":b=!0,r.onError(createDOMCompilerError(60,e.loc))}}else hasDynamicKeyVBind(t)&&(f=V_MODEL_DYNAMIC)}else c==="select"&&(f=V_MODEL_SELECT);b||(o.needRuntime=r.helper(f))}else r.onError(createDOMCompilerError(58,e.loc));return o.props=o.props.filter(f=>!(f.key.type===4&&f.key.content==="modelValue")),o},isEventOptionModifier=makeMap("passive,once,capture"),isNonKeyModifier=makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),maybeKeyModifier=makeMap("left,right"),isKeyboardEvent=makeMap("onkeyup,onkeydown,onkeypress"),resolveModifiers=(e,t,r,o)=>{const c=[],d=[],f=[];for(let b=0;b<t.length;b++){const m=t[b].content;m==="native"&&checkCompatEnabled("COMPILER_V_ON_NATIVE",r)||isEventOptionModifier(m)?f.push(m):maybeKeyModifier(m)?isStaticExp(e)?isKeyboardEvent(e.content.toLowerCase())?c.push(m):d.push(m):(c.push(m),d.push(m)):isNonKeyModifier(m)?d.push(m):c.push(m)}return{keyModifiers:c,nonKeyModifiers:d,eventOptionModifiers:f}},transformClick=(e,t)=>isStaticExp(e)&&e.content.toLowerCase()==="onclick"?createSimpleExpression(t,!0):e.type!==4?createCompoundExpression(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,transformOn=(e,t,r)=>
40transformOn$1(e,t,r,o=>{const{modifiers:c}=e;if(!c.length)return o;let{key:d,value:f}=o.props[0];const{keyModifiers:b,nonKeyModifiers:m,eventOptionModifiers:S}=resolveModifiers(d,c,r,e.loc);if(m.includes("right")&&(d=transformClick(d,"onContextmenu")),m.includes("middle")&&(d=transformClick(d,"onMouseup")),m.length&&(f=createCallExpression(r.helper(V_ON_WITH_MODIFIERS),[f,JSON.stringify(m)])),!b.length||isStaticExp(d)&&!isKeyboardEvent(d.content.toLowerCase())||(f=createCallExpression(r.helper(V_ON_WITH_KEYS),[f,JSON.stringify(b)])),S.length){const w=S.map(capitalize).join("");d=isStaticExp(d)?createSimpleExpression(`${d.content}${w}`,!0):createCompoundExpression(["(",d,`) + "${w}"`])}return{props:[createObjectProperty(d,f)]}}),transformShow=(e,t,r)=>{const{exp:o,loc:c}=e;return o||r.onError(createDOMCompilerError(62,c)),{props:[],needRuntime:r.helper(V_SHOW)}},ignoreSideEffectTags=(e,t)=>{e.type!==1||e.tagType!==0||e.tag!=="script"&&e.tag!=="style"||t.removeNode()},DOMNodeTransforms=[transformStyle],DOMDirectiveTransforms={cloak:noopDirectiveTransform,html:transformVHtml,text:transformVText,model:transformModel,on:transformOn,show:transformShow};function compile(e,t={}){return baseCompile(e,extend({},parserOptions,t,{nodeTransforms:[ignoreSideEffectTags,...DOMNodeTransforms,...t.nodeTransforms||[]],directiveTransforms:extend({},DOMDirectiveTransforms,t.directiveTransforms||{}),transformHoist:null}))}function parse$1(e,t={}){return baseParse(e,extend({},parserOptions,t))}const compilerDom_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION,BindingTypes,CAMELIZE,CAPITALIZE,CREATE_BLOCK,CREATE_COMMENT,CREATE_ELEMENT_BLOCK,CREATE_ELEMENT_VNODE,CREATE_SLOTS,CREATE_STATIC,CREATE_TEXT,CREATE_VNODE,CompilerDeprecationTypes,ConstantTypes,DOMDirectiveTransforms,DOMErrorCodes,DOMErrorMessages,DOMNodeTransforms,ElementTypes,ErrorCodes,FRAGMENT,GUARD_REACTIVE_PROPS,IS_MEMO_SAME,IS_REF,KEEP_ALIVE,MERGE_PROPS,NORMALIZE_CLASS,NORMALIZE_PROPS,NORMALIZE_STYLE,Namespaces,NodeTypes,OPEN_BLOCK,POP_SCOPE_ID,PUSH_SCOPE_ID,RENDER_LIST,RENDER_SLOT,RESOLVE_COMPONENT,RESOLVE_DIRECTIVE,RESOLVE_DYNAMIC_COMPONENT,RESOLVE_FILTER,SET_BLOCK_TRACKING,SUSPENSE,TELEPORT,TO_DISPLAY_STRING,TO_HANDLERS,TO_HANDLER_KEY,TRANSITION,TRANSITION_GROUP,TS_NODE_TYPES,UNREF,V_MODEL_CHECKBOX,V_MODEL_DYNAMIC,V_MODEL_RADIO,V_MODEL_SELECT,V_MODEL_TEXT,V_ON_WITH_KEYS,V_ON_WITH_MODIFIERS,V_SHOW,WITH_CTX,WITH_DIRECTIVES,WITH_MEMO,advancePositionWithClone,advancePositionWithMutation,assert:assert$1,baseCompile,baseParse,buildDirectiveArgs,buildProps,buildSlots,checkCompatEnabled,compile,convertToBlock,createArrayExpression,createAssignmentExpression,createBlockStatement,createCacheExpression,createCallExpression,createCompilerError,createCompoundExpression,createConditionalExpression,createDOMCompilerError,createForLoopParams,createFunctionExpression,createIfStatement,createInterpolation,createObjectExpression,createObjectProperty,createReturnStatement,createRoot,createSequenceExpression,createSimpleExpression,createStructuralDirectiveTransform,createTemplateLiteral,createTransformContext,createVNodeCall,errorMessages,extractIdentifiers,findDir,findProp,forAliasRE,generate,generateCodeFrame,getBaseTransformPreset,getConstantType,getMemoedVNodeCall,getVNodeBlockHelper,getVNodeHelper,hasDynamicKeyVBind,hasScopeRef,helperNameMap,injectProp,isAllWhitespace,isCommentOrWhitespace,isCoreComponent,isFnExpression,isFnExpressionBrowser,isFnExpressionNode,isFunctionType,isInDestructureAssignment,isInNewExpression,isMemberExpression,isMemberExpressionBrowser,isMemberExpressionNode,isReferencedIdentifier,isSimpleIdentifier,isSlotOutlet,isStaticArgOf,isStaticExp,isStaticProperty,isStaticPropertyKey,isTemplateNode,isText:isText$1,isVPre,isVSlot,isWhitespaceText,locStub,noopDirectiveTransform,parse:parse$1,parserOptions,processExpression,processFor,processIf,processSlotOutlet,registerRuntimeHelpers,resolveComponentType,stringifyExpression,toValidAssetId,trackSlotScopes,trackVForSlotScopes,transform,transformBind,transformElement,transformExpression,transformModel:transformModel$1,transformOn:transformOn$
401,transformStyle,transformVBindShorthand,traverseNode,unwrapTSNode,validFirstIdentCharRE,walkBlockDeclarations,walkFunctionParams,walkIdentifiers,warnDeprecation},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(compilerDom_esmBundler),require$$1=getAugmentedNamespace(runtimeDom_esmBundler),require$$2=getAugmentedNamespace(shared_esmBundler);/**
41* vue v3.5.38
42* (c) 2018-present Yuxi (Evan) You and Vue contributors
43* @license MIT
44**/var hasRequiredVue_cjs_prod,hasRequiredVue,hasRequiredReCaptchaVuePlugin;function requireVue_cjs_prod(){return hasRequiredVue_cjs_prod||(hasRequiredVue_cjs_prod=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=require$$0$3,r=require$$1,o=require$$2;function c(m){var S=Object.create(null);if(m)for(var w in m)S[w]=m[w];return S.default=m,Object.freeze(S)}var d=c(r);const f=Object.create(null);function b(m,S){if(!o.isString(m)){if(!m.nodeType)return o.NOOP;m=m.innerHTML}const w=o.genCacheKey(m,S),T=f[w];if(T)return T;if(m[0]==="#"){const B=document.querySelector(m);m=B?B.innerHTML:""}const A=o.extend({hoistStatic:!0,onError:void 0,onWarn:o.NOOP},S);A.isCustomElement||typeof customElements>"u"||(A.isCustomElement=B=>!!customElements.get(B));const{code:C}=t.compile(m,A),P=new Function("Vue",C)(d);return P._rc=!0,f[w]=P}r.registerRuntimeCompiler(b),e.compile=b,Object.keys(r).forEach(function(m){m==="default"||Object.prototype.hasOwnProperty.call(e,m)||(e[m]=r[m])})})(vue_cjs_prod)),vue_cjs_prod}function requireVue(){return hasRequiredVue||(hasRequiredVue=1,vue.exports=requireVue_cjs_prod()),vue.exports}function requireReCaptchaVuePlugin(){if(hasRequiredReCaptchaVuePlugin)return ReCaptchaVuePlugin;hasRequiredReCaptchaVuePlugin=1;var e=ReCaptchaVuePlugin&&ReCaptchaVuePlugin.__awaiter||function(m,S,w,T){return new(w||(w=Promise))(function(A,C){function P(D){try{U(T.next(D))}catch($){C($)}}function B(D){try{U(T.throw(D))}catch($){C($)}}function U(D){var $;D.done?A(D.value):($=D.value,$ instanceof w?$:new w(function(z){z($)})).then(P,B)}U((T=T.apply(m,S||[])).next())})},t=ReCaptchaVuePlugin&&ReCaptchaVuePlugin.__generator||function(m,S){var w,T,A,C,P={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return C={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function B(U){return function(D){return(function($){if(w)throw new TypeError("Generator is already executing.");for(;P;)try{if(w=1,T&&(A=2&$[0]?T.return:$[0]?T.throw||((A=T.return)&&A.call(T),0):T.next)&&!(A=A.call(T,$[1])).done)return A;switch(T=0,A&&($=[2&$[0],A.value]),$[0]){case 0:case 1:A=$;break;case 4:return P.label++,{value:$[1],done:!1};case 5:P.label++,T=$[1],$=[0];continue;case 7:$=P.ops.pop(),P.trys.pop();continue;default:if(A=P.trys,!((A=A.length>0&&A[A.length-1])||$[0]!==6&&$[0]!==2)){P=0;continue}if($[0]===3&&(!A||$[1]>A[0]&&$[1]<A[3])){P.label=$[1];break}if($[0]===6&&P.label<A[1]){P.label=A[1],A=$;break}if(A&&P.label<A[2]){P.label=A[2],P.ops.push($);break}A[2]&&P.ops.pop(),P.trys.pop();continue}$=S.call(m,P)}catch(z){$=[6,z],T=0}finally{w=A=0}if(5&$[0])throw $[1];return{value:$[0]?$[1]:void 0,done:!0}})([U,D])}}};Object.defineProperty(ReCaptchaVuePlugin,"__esModule",{value:!0}),ReCaptchaVuePlugin.useReCaptcha=ReCaptchaVuePlugin.VueReCaptcha=void 0;var r=requireReCaptcha(),o=requireVue(),c=Symbol("VueReCaptchaInjectKey"),d={loadedWaiters:[],error:null};function f(m){return function(){return new Promise(function(S,w){return d.error!==null?w(d.error):m.value?S(!0):void d.loadedWaiters.push({resolve:S,reject:w})})}}function b(m){var S=this;return function(w){return e(S,void 0,void 0,function(){var T;return t(this,function(A){switch(A.label){case 0:return[4,(T=m.value)===null||T===void 0?void 0:T.execute(w)];case 1:return[2,A.sent()]}})})}}return ReCaptchaVuePlugin.VueReCaptcha={install:function(m,S){var w=o.ref(!1),T=o.ref(void 0);m.config.globalProperties.$recaptchaLoaded=f(w),(function(A){return e(this,void 0,void 0,function(){return t(this,function(C){switch(C.label){case 0:return[4,r.load(A.siteKey,A.loaderOptions)];case 1:return[2,C.sent()]}})})})(S).then(function(A){w.value=!0,T.value=A,m.config.globalProperties.$recaptcha=b(T),m.config.globalProperties.$recaptchaInstance=T,d.loadedWaiters.forEac
44h(function(C){return C.resolve(!0)})}).catch(function(A){d.error=A,d.loadedWaiters.forEach(function(C){return C.reject(A)})}),m.provide(c,{instance:T,isLoaded:w,executeRecaptcha:b(T),recaptchaLoaded:f(w)})}},ReCaptchaVuePlugin.useReCaptcha=function(){return o.inject(c)},ReCaptchaVuePlugin}var ReCaptchaVuePluginExports=requireReCaptchaVuePlugin();const recaptcha_client_oqeR6lL9rxUcxYP_BfXkGmK0iCIA6djIMr1iRR930QY=defineNuxtPlugin(e=>{var o,c;const t=useRuntimeConfig(),r=((o=t.public.apiKeys)==null?void 0:o.recaptchaSiteKey)||((c=t.public.apiKeys)==null?void 0:c.googleRecaptchaSiteKey)||t.public.recaptchaSiteKey||t.public.recaptcha;r&&e.vueApp.use(ReCaptchaVuePluginExports.VueReCaptcha,{siteKey:r,loaderOptions:{autoHideBadge:!0}})}),requestIdleCallback=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),cancelIdleCallback=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),onNuxtReady=e=>{const t=useNuxtApp();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{requestIdleCallback(()=>e())}):requestIdleCallback(()=>e())},payload_client_kSYcIMYUswSDcSGoGWqM0MO2T4MjOZsQFA1GU6fqohM=defineNuxtPlugin({name:"nuxt:payload",setup(e){const t=new Set;useRouter().beforeResolve(async(r,o)=>{if(r.path===o.path)return;const c=await loadPayload(r.path);if(c){for(const d of t)delete e.static.data[d];for(const d in c.data)d in e.static.data||t.add(d),e.static.data[d]=c.data[d]}}),onNuxtReady(()=>{var r;e.hooks.hook("link:prefetch",async o=>{const{hostname:c}=new URL(o,window.location.href);c===window.location.hostname&&await loadPayload(o).catch(()=>{console.warn("[nuxt] Error preloading payload for",o)})}),((r=navigator.connection)==null?void 0:r.effectiveType)!=="slow-2g"&&setTimeout(getAppManifest,1e3)})}}),navigation_repaint_client_iZ4sbIDUOBlI58WRS1dxkRZJOsKNs1c7SCqRszdxr6Y=defineNuxtPlugin(()=>{const e=useRouter();onNuxtReady(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),check_outdated_build_client__GMdmUuNCTKDee9GyDhHz84CJEYUp5_FenYjvgAxtj8=defineNuxtPlugin(e=>{let t;async function r(){const o=await getAppManifest();t&&clearTimeout(t),t=setTimeout(r,outdatedBuildInterval);try{const c=await $fetch(buildAssetsURL("builds/latest.json")+`?${Date.now()}`);c.id!==o.id&&e.hooks.callHook("app:manifest:update",c)}catch{}}onNuxtReady(()=>{t=setTimeout(r,outdatedBuildInterval)})});function reloadNuxtApp(e={}){const t=e.path||window.location.pathname;let r={};try{r=destr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(r==null?void 0:r.path)!==t||(r==null?void 0:r.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:useNuxtApp().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const chunk_reload_client_90gdG_aWZaDfO85SQYWzwaOywz7zi0wBnFUoX0cT54U=defineNuxtPlugin({name:"nuxt:chunk-reload",setup(e){const t=useRouter(),r=useRuntimeConfig(),o=new Set;function c(d){reloadNuxtApp({path:joinURL(r.app.baseURL,d.fullPath),persistState:!0})}t.beforeEach(()=>{o.clear()}),e.hook("app:chunkError",({error:d})=>{o.add(d)}),e.hook("app:manifest:update",()=>{t.beforeResolve(c)}),t.onError((d,f)=>{o.has(d)&&c(f)})}});let activePinia;const setActivePinia=e=>activePinia=e,piniaSymbol=Symbol();function isPlainObject(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var MutationType,MutationType2;function createPinia(){const e=effectScope(!0),t=e.run(()=>ref({}));let r=[],o=[];const c=markRaw({install(d){setActivePinia(c),c._a=d,d.provide(piniaSymbol,c),d.config.globalProperties.$pinia=c,o.forEach(f=>r.push(f)),o=[]},use(d){return this._a?r.push(d):o.push(d),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return c}MutationType2=MutationType||(MutationType={}),MutationType2.direct="direct",MutationType2.patchObject="patch object",MutationType2.patchFunction="patch function";const noop$2=()=>{};function addSubscription(e,t,r,o=noop$2){e.push(t);const c=()=>{const d=e.indexOf(t);d>-1&&(e.splice(d,1),o())};return!r&&getCurrentScope()&&onScopeDispose(c),c}
44function triggerSubscriptions(e,...t){e.slice().forEach(r=>{r(...t)})}const fallbackRunWithContext=e=>e(),ACTION_MARKER=Symbol(),ACTION_NAME=Symbol();function mergeReactiveObjects(e,t){e instanceof Map&&t instanceof Map?t.forEach((r,o)=>e.set(o,r)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const o=t[r],c=e[r];isPlainObject(c)&&isPlainObject(o)&&e.hasOwnProperty(r)&&!isRef(o)&&!isReactive(o)?e[r]=mergeReactiveObjects(c,o):e[r]=o}return e}const skipHydrateSymbol=Symbol();function shouldHydrate(e){return!isPlainObject(e)||!e.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$1}=Object;function isComputed(e){return!(!isRef(e)||!e.effect)}function createOptionsStore(e,t,r,o){const{state:c,actions:d,getters:f}=t,b=r.state.value[e];let m;return m=createSetupStore(e,function(){b||(r.state.value[e]=c?c():{});const S=toRefs(r.state.value[e]);return assign$1(S,d,Object.keys(f||{}).reduce((w,T)=>(w[T]=markRaw(computed(()=>{setActivePinia(r);const A=r._s.get(e);return f[T].call(A,A)})),w),{}))},t,r,o,!0),m}function createSetupStore(e,t,r={},o,c,d){let f;const b=assign$1({actions:{}},r),m={deep:!0};let S,w,T,A=[],C=[];const P=o.state.value[e];let B;function U(F){let ee;S=w=!1,typeof F=="function"?(F(o.state.value[e]),ee={type:MutationType.patchFunction,storeId:e,events:T}):(mergeReactiveObjects(o.state.value[e],F),ee={type:MutationType.patchObject,payload:F,storeId:e,events:T});const te=B=Symbol();nextTick$1().then(()=>{B===te&&(S=!0)}),w=!0,triggerSubscriptions(A,ee,o.state.value[e])}d||P||(o.state.value[e]={});const D=d?function(){const{state:F}=r,ee=F?F():{};this.$patch(te=>{assign$1(te,ee)})}:noop$2,$=(F,ee="")=>{if(ACTION_MARKER in F)return F[ACTION_NAME]=ee,F;const te=function(){setActivePinia(o);const K=Array.from(arguments),H=[],X=[];let J;triggerSubscriptions(C,{args:K,name:te[ACTION_NAME],store:z,after:function(G){H.push(G)},onError:function(G){X.push(G)}});try{J=F.apply(this&&this.$id===e?this:z,K)}catch(G){throw triggerSubscriptions(X,G),G}return J instanceof Promise?J.then(G=>(triggerSubscriptions(H,G),G)).catch(G=>(triggerSubscriptions(X,G),Promise.reject(G))):(triggerSubscriptions(H,J),J)};return te[ACTION_MARKER]=!0,te[ACTION_NAME]=ee,te},z=reactive({_p:o,$id:e,$onAction:addSubscription.bind(null,C),$patch:U,$reset:D,$subscribe(F,ee={}){const te=addSubscription(A,F,ee.detached,()=>K()),K=f.run(()=>watch(()=>o.state.value[e],H=>{(ee.flush==="sync"?w:S)&&F({storeId:e,type:MutationType.direct,events:T},H)},assign$1({},m,ee)));return te},$dispose:function(){f.stop(),A=[],C=[],o._s.delete(e)}});o._s.set(e,z);const V=(o._a&&o._a.runWithContext||fallbackRunWithContext)(()=>o._e.run(()=>(f=effectScope()).run(()=>t({action:$}))));for(const F in V){const ee=V[F];if(isRef(ee)&&!isComputed(ee)||isReactive(ee))d||(P&&shouldHydrate(ee)&&(isRef(ee)?ee.value=P[F]:mergeReactiveObjects(ee,P[F])),o.state.value[e][F]=ee);else if(typeof ee=="function"){const te=$(ee,F);V[F]=te,b.actions[F]=ee}}return assign$1(z,V),assign$1(toRaw(z),V),Object.defineProperty(z,"$state",{get:()=>o.state.value[e],set:F=>{U(ee=>{assign$1(ee,F)})}}),o._p.forEach(F=>{assign$1(z,f.run(()=>F({store:z,app:o._a,pinia:o,options:b})))}),P&&d&&r.hydrate&&r.hydrate(z.$state,P),S=!0,w=!0,z}/*! #__NO_SIDE_EFFECTS__ */function defineStore(e,t,r){let o,c;const d=typeof t=="function";function f(b,m){const S=hasInjectionContext();return(b=b||(S?inject(piniaSymbol,null):null))&&setActivePinia(b),(b=activePinia)._s.has(o)||(d?createSetupStore(o,t,c,b):createOptionsStore(o,c,b)),b._s.get(o)}return typeof e=="string"?(o=e,c=d?r:t):(c=e,o=e.id),f.$id=o,f}function storeToRefs(e){{const t=toRaw(e),r={};for(const o in t){const c=t[o];c.effect?r[o]=computed({get:()=>e[o],set(d){e[o]=d}}):(isRef(c)||isReactive(c))&&(r[o]=toRef(e,o))}return r}}const useStateKeyPrefix="$s";function useState(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,o]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(o!==void 0&&typeof o!="function")throw new Error("[nuxt] [useState] init must be a function: "+o);const c=useStateKeyPrefix+r,d=useNuxtApp(),f=toRef(d.payload.state,c);if(f.value===void 0&&o){const b=o();if(isRef(b))return d.payload.state[c]=b,b;f.value=b}return f}function _loadAsyncComponent(e){if(e!=null&&e.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function preloadRouteComponents(e,t=useRouter()){const{path:r,matched:o}=t.resolve(e);if(!o.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(r)))return;const c=t._preloadPromises||(t._preloadPromises=[]);if(c.length>4)return Promise.all(c).then(()=>preloadRouteComponents(e,t));t._routePreloaded.add(r);const d=o.map(f=>{var b;return(b=f.components)==null?void 0:b.default}).filter(f=>typeof f=="function");
44for(const f of d){const b=Promise.resolve(f()).catch(()=>{}).finally(()=>c.splice(c.indexOf(b)));c.push(b)}await Promise.all(c)}function useRequestURL(e){return new URL(window.location.href)}const firstNonUndefined=(...e)=>e.find(t=>t!==void 0);function defineNuxtLink(e){function t(o){return typeof o=="string"&&o.startsWith("#")}function r(o){const c=useRouter(),d=useRuntimeConfig(),f=computed(()=>!!o.target&&o.target!=="_self"),b=computed(()=>{const P=o.to||o.href||"";return typeof P=="string"&&hasProtocol(P,{acceptRelative:!0})}),m=resolveComponent("RouterLink"),S=m&&typeof m!="string"?m.useLink:void 0,w=computed(()=>{if(o.external)return!0;const P=o.to||o.href||"";return typeof P!="object"&&(P===""||b.value)}),T=computed(()=>{const P=o.to||o.href||"";return w.value?P:(function(B,U,D){const $=D??e.trailingSlash;if(!B||$!=="append"&&$!=="remove")return B;if(typeof B=="string")return applyTrailingSlashBehavior(B,$);const z="path"in B&&B.path!==void 0?B.path:U(B).path;return{...B,name:void 0,path:applyTrailingSlashBehavior(z,$)}})(P,c.resolve,o.trailingSlash)}),A=w.value||S==null?void 0:S({...o,to:T}),C=computed(()=>{var B;const P=o.trailingSlash??e.trailingSlash;if(!T.value||b.value||t(T.value))return T.value;if(w.value){const U=typeof T.value=="object"&&"path"in T.value?resolveRouteObject(T.value):T.value;return applyTrailingSlashBehavior(typeof U=="object"?c.resolve(U).href:U,P)}return typeof T.value=="object"?((B=c.resolve(T.value))==null?void 0:B.href)??null:applyTrailingSlashBehavior(joinURL(d.app.baseURL,T.value),P)});return{to:T,hasTarget:f,isAbsoluteUrl:b,isExternal:w,href:C,isActive:(A==null?void 0:A.isActive)??computed(()=>T.value===c.currentRoute.value.path),isExactActive:(A==null?void 0:A.isExactActive)??computed(()=>T.value===c.currentRoute.value.path),route:(A==null?void 0:A.route)??computed(()=>c.resolve(T.value)),async navigate(P){await navigateTo(C.value,{replace:o.replace,external:w.value||f.value})}}}return defineComponent({name:e.componentName||"NuxtLink",props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:r,setup(o,{slots:c}){const d=useRouter(),{to:f,href:b,navigate:m,isExternal:S,hasTarget:w,isAbsoluteUrl:T}=r(o),A=shallowRef(!1),C=ref(null),P=D=>{var $;C.value=o.custom?($=D==null?void 0:D.$el)==null?void 0:$.nextElementSibling:D==null?void 0:D.$el};function B(D){var $,z;return!A.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===D:(($=o.prefetchOn)==null?void 0:$[D])??((z=e.prefetchOn)==null?void 0:z[D]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!isSlowConnection()}async function U(D=useNuxtApp()){if(A.value)return;A.value=!0;const $=typeof f.value=="string"?f.value:S.value?resolveRouteObject(f.value):d.resolve(f.value).fullPath,z=S.value?new URL($,window.location.href).href:$;await Promise.all([D.hooks.callHook("link:prefetch",z).catch(()=>{}),!S.value&&!w.value&&preloadRouteComponents(f.value,d).catch(()=>{})])}if(B("visibility")){const D=useNuxtApp();let $,z=null;onMounted(()=>{const V=useObserver();onNuxtReady(()=>{$=requestIdleCallback(()=>{var F;(F=C==null?void 0:C.value)!=null&&F.tagName&&(z=V.observe(C.value,async()=>{z==null||z(),z=null,await U(D)}))})})}),onBeforeUnmount(()=>{$&&cancelIdleCallback($),z==null||z(),z=null})}return()=>{var z;if(!S.value&&!w.value&&!t(f.value)){const V={ref:P,to:f.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};
44return o.custom||(B("interaction")&&(V.onPointerenter=U.bind(null,void 0),V.onFocus=U.bind(null,void 0)),A.value&&(V.class=o.prefetchedClass||e.prefetchedClass),V.rel=o.rel||void 0),h(resolveComponent("RouterLink"),V,c.default)}const D=o.target||null,$=firstNonUndefined(o.noRel?"":o.rel,e.externalRelAttribute,T.value||w.value?"noopener noreferrer":"")||null;return o.custom?c.default?c.default({href:b.value,navigate:m,prefetch:U,get route(){if(!b.value)return;const V=new URL(b.value,window.location.href);return{path:V.pathname,fullPath:V.pathname,get query(){return parseQuery$1(V.search)},hash:V.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:b.value}},rel:$,target:D,isExternal:S.value||w.value,isActive:!1,isExactActive:!1}):null:h("a",{ref:C,href:b.value||null,rel:$,target:D,onClick:V=>{if(!S.value&&!w.value)return V.preventDefault(),o.replace?d.replace(b.value):d.push(b.value)}},(z=c.default)==null?void 0:z.call(c))}}})}const __nuxt_component_1$1=defineNuxtLink(nuxtLinkDefaults);function applyTrailingSlashBehavior(e,t){const r=t==="append"?withTrailingSlash:withoutTrailingSlash;return hasProtocol(e)&&!e.startsWith("http")?e:r(e,!0)}function useObserver(){const e=useNuxtApp();if(e._observer)return e._observer;let t=null;const r=new Map;return e._observer={observe:(c,d)=>(t||(t=new IntersectionObserver(f=>{for(const b of f){const m=r.get(b.target);(b.isIntersecting||b.intersectionRatio>0)&&m&&m()}})),r.set(c,d),t.observe(c),()=>{r.delete(c),t==null||t.unobserve(c),r.size===0&&(t==null||t.disconnect(),t=null)})}}const IS_2G_RE=/2g/;function isSlowConnection(){const e=navigator.connection;return!(!e||!e.saveData&&!IS_2G_RE.test(e.effectiveType))}const plugin=defineNuxtPlugin({name:"pinia",setup(e){const t=createPinia();return e.vueApp.use(t),setActivePinia(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}}),LazyLazyWidget=defineAsyncComponent(()=>__vitePreload(()=>import("./ChakFpoJ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyAccordionComplex=defineAsyncComponent(()=>__vitePreload(()=>import("./DFn4glqa.js"),__vite__mapDeps([101,102]),import.meta.url).then(e=>e.default||e.default||e)),LazyAccordionItem=defineAsyncComponent(()=>__vitePreload(()=>import("./C8RySSZ6.js"),__vite__mapDeps([103,102]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarItem=defineAsyncComponent(()=>__vitePreload(()=>import("./DYJrLcPL.js"),__vite__mapDeps([104,105,106,107]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarPassActions=defineAsyncComponent(()=>__vitePreload(()=>import("./Dqr294DH.js"),__vite__mapDeps([108,109,106,107,110,111]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarPassContent=defineAsyncComponent(()=>__vitePreload(()=>import("./DXQTuqfs.js"),__vite__mapDeps([112,113]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarPassCountdown=defineAsyncComponent(()=>__vitePreload(()=>import("./BO9K324L.js"),__vite__mapDeps([114,115,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarPassHeader=defineAsyncComponent(()=>__vitePreload(()=>import("./CK1HOAmC.js"),__vite__mapDeps([117,118]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarPassImage=defineAsyncComponent(()=>__vitePreload(()=>import("./CynSmQWN.js"),__vite__mapDeps([119,120]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarPass=defineAsyncComponent(()=>__vitePreload(()=>import("./DyUPRNaZ.js"),__vite__mapDeps([121,122,118,120,113,109,106,107,110,111,115,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendarTabbed=defineAsyncComponent(()=>__vitePreload(()=>import("./JFXhN4KH.js"),__vite__mapDeps([123,124,125,126,96,97,105,106,107,127]),import.meta.url).then(e=>e.default||e.default||e)),LazyCalendar=defineAsyncComponent(()=>__vitePreload(()=>import("./BsfFIrpT.js"),__vite__mapDeps([128,105,106,107,127]),import.meta.url).then(e=>e.default||e.default||e)),LazyCleengAccount=defineAsyncComponent(()=>__vitePreload(()=>import("./Cs1F6K9Z.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyCleengCheckoutIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2f),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCleengCheckout=defineAsyncComponent(()=>__vitePreload(()=>import("./Cy-Emkh5.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardContent=defineAsyncComponent(()=>__vitePreload(()=>import("./f8BLX3-2.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardFixtureActions=defineAsyncComponent(()=>__vitePreload(()=>import("./BS5yw-fT.js"),__vite__mapDeps([129,130]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardFixtureCompleted=defineAsyncComponent(()=>__vitePreload(()=>import("./ZYIDhy2R.js"),__vite__mapDeps([131,132]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardFixtureHeader=defineAsyncComponent(()=>__vitePreload(()=>import("./DLsNlIDy.js"),__vite__mapDeps([133,134,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardFixtureMatchDetails=defineAsyncComponent(()=>__vitePreload(()=>import("./BChEkDfF.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardFixtureStreaming=defineAsyncComponent(()=>__vitePreload(()=>import("./CtiLEyOL.js"),__vite__mapDeps([135,136,106,107,127]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardFixtureUpcoming=defineAsyncComponent(()=>__vitePreload(()=>
44import("./MiedKl4b.js"),__vite__mapDeps([137,138,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardPlayer=defineAsyncComponent(()=>__vitePreload(()=>import("./BVwHENLh.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardProduct=defineAsyncComponent(()=>__vitePreload(()=>import("./iBNQtIGx.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardVideoDurationBadge=defineAsyncComponent(()=>__vitePreload(()=>import("./g9mCsThm.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardVideoEntitlementBadge=defineAsyncComponent(()=>__vitePreload(()=>import("./6C8GJZ6Z.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardVideoPlayButton=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>PlayButton),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyContentCardWrapper=defineAsyncComponent(()=>__vitePreload(()=>import("./DsmRlyhK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCard=defineAsyncComponent(()=>__vitePreload(()=>import("./fl49RsAy.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./C5TLEif0.js"),__vite__mapDeps([139,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerAccordionItem=defineAsyncComponent(()=>__vitePreload(()=>import("./BwcZI294.js"),__vite__mapDeps([140,141,96,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerAccordion=defineAsyncComponent(()=>__vitePreload(()=>import("./opI0boAZ.js"),__vite__mapDeps([142,143,141,96,97,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerGridLayout=defineAsyncComponent(()=>__vitePreload(()=>import("./DYCXDERp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerGrid=defineAsyncComponent(()=>__vitePreload(()=>import("./D3PTOf8M.js"),__vite__mapDeps([144,126,145]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerSplit=defineAsyncComponent(()=>__vitePreload(()=>import("./Dk6x4fru.js"),__vite__mapDeps([146,147,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerTabbedActions=defineAsyncComponent(()=>__vitePreload(()=>import("./CLRTZ807.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContentContainerTabbed=defineAsyncComponent(()=>__vitePreload(()=>import("./A2RdQar0.js"),__vite__mapDeps([156,124,125,126,96,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyContentWrapper=defineAsyncComponent(()=>__vitePreload(()=>import("./B3NALRDt.js"),__vite__mapDeps([157,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyEmbedDefault=defineAsyncComponent(()=>__vitePreload(()=>import("./DSCFLWEZ.js"),__vite__mapDeps([158,159]),import.meta.url).then(e=>e.default||e.default||e)),LazyEmbedFantasy=defineAsyncComponent(()=>__vitePreload(()=>import("./JGc7ylXy.js"),__vite__mapDeps([160,161]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCardActions=defineAsyncComponent(()=>__vitePreload(()=>import("./B2MWwVPl.js"),__vite__mapDeps([162,163]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCardHeader=defineAsyncComponent(()=>__vitePreload(()=>import("./CuQbfl9f.js"),__vite__mapDeps([164,165,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCountdown=defineAsyncComponent(()=>__vitePreload(()=>import("./DOJQL8sg.js"),__vite__mapDeps([166,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureUpcomingFixture=defineAsyncComponent(()=>__vitePreload(()=>import("./DWbxYIS0.js"),__vite__mapDeps([167,116,163,165]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixture=defineAsyncComponent(()=>__vitePreload(()=>import("./BveHWMGj.js"),__vite__mapDeps([168,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterAppSharing=defineAsyncComponent(()=>__vitePreload(()=>import("./BfMoKtmW.js"),__vite__mapDeps([169,170]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterMenu=defineAsyncComponent(()=>__vitePreload(()=>import("./BoAmWqdK.js"),__vite__mapDeps([171,172]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterNewsletter=defineAsyncComponent(()=>__vitePreload(()=>import("./Cl-l-KHn.js"),__vite__mapDeps([173,174]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterQuickLinks=defineAsyncComponent(()=>__vitePreload(()=>import("./DatGKUI4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyFooterSimple=defineAsyncComponent(()=>__vitePreload(()=>import("./Cuh4Lo_Z.js"),__vite__mapDeps([175,176,177,178,174,179,180,170,181,172]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterSocialSharing=defineAsyncComponent(()=>__vitePreload(()=>import("./CR2MLR19.js"),__vite__mapDeps([182,181]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterSponsors=defineAsyncComponent(()=>__vitePreload(()=>import("./C6DGBPje.js"),__vite__mapDeps([183,180]),import.meta.url).then(e=>e.default||e.default||e)),LazyFooterTagLine=defineAsyncComponent(()=>__vitePreload(()=>import("./bRbHAPSa.js"),__vite__mapDeps([184,179]),import.meta.url).then(e=>e.default||e.default||e)),LazyForegroundImageLegacy=defineAsyncComponent(()=>__vitePreload(()=>import("./D0qOrRxb.js"),__vite__mapDeps([185,186]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderActions=defineAsyncComponent(()=>__vitePreload(()=>import("./CUto0fiZ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderComplex=defineAsyncComponent(()=>__vitePreload(()=>import("./BbZj7lvB.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderContainer=defineAsyncComponent(()=>__vitePreload(()=>import("./ClikWZMj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderGlobalNav=defineAsyncComponent(()=>__vitePreload(()=>import("./DBcelEed.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderMainNav=defineAsyncComponent(()=>__vitePreload(()=>import("./BtWdstdt.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderPrimaryNav=defineAsyncComponent(()=>__vitePreload(()=>import("./kLVMX8Hi.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderSponsors=defineAsyncComponent(()=>__vitePreload(()=>import("./DU3N2ALE.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeaderSponsorsBanner=defineAsyncComponent(()=>__vitePreload(()=>import("./ZhvHygDb.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyHeroCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./DSpqFs6y.js"),__vite__mapDeps([187,122,118,120,113,109,106,107,110,111,115,116,127]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroDynamic=defineAsyncComponent(()=>__vitePreload(()=>import("./BPCRspvq.js"),__vite__mapDeps([188,147,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155,126,96,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroImpact=defineAsyncComponent(()=>__vitePreload(()=>import("./IY3pdOTn.js"),__vite__mapDeps([189,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSimpleLegacy=defineAsyncComponent(()=>__vitePreload(()=>import("./rsjTv6BH.js"),__vite__mapDeps([190,191,186]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSlideItem=defineAsyncComponent(()=>__vitePreload(()=>import("./t2s0aOoC.js"),__vite__mapDeps([192,193,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSlide=defineAsyncComponent(()=>__vitePreload(()=>import("./D6eprRmh.js"),__vite__mapDeps([194,193,97,195]),import.meta.url).then(e=>e.default||e.default||e)),LazyHorizontalRule=defineAsyncComponent(()=>__vitePreload(()=>import("./BHtu_fc5.js"),[],import.meta.url).then(e=>
44e.default||e.default||e)),LazyListingsFixtures=defineAsyncComponent(()=>__vitePreload(()=>import("./Bv9wSDyS.js"),__vite__mapDeps([196,197,161,198,199,200,201,202,203,204,205,206,207,178,208,21,7,209,210,211,212,213,214,151,215,159,216,150,217,153,218,219,99]),import.meta.url).then(e=>e.default||e.default||e)),LazyListingsNews=defineAsyncComponent(()=>__vitePreload(()=>import("./-FgaDukO.js"),__vite__mapDeps([220,125,221,222,207,206,178,208,21,7,223,209,224]),import.meta.url).then(e=>e.default||e.default||e)),LazyListingsVideoNextLiveMatchHero=defineAsyncComponent(()=>__vitePreload(()=>import("./DY2FemuO.js"),__vite__mapDeps([225,226,106,107,116,178,127]),import.meta.url).then(e=>e.default||e.default||e)),LazyListingsVideo=defineAsyncComponent(()=>__vitePreload(()=>import("./Cmewo1kB.js"),__vite__mapDeps([227,226,106,107,116,178,127,191,186,124,125,126,96,97,198,199,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyLoader=defineAsyncComponent(()=>__vitePreload(()=>import("./CMKai6Gx.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyLottieAnimation=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index$1),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMenuComplexHero=defineAsyncComponent(()=>__vitePreload(()=>import("./CVeiwJFH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMenuComplex=defineAsyncComponent(()=>__vitePreload(()=>import("./BfNONL0Y.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMenuContainer=defineAsyncComponent(()=>__vitePreload(()=>import("./D_A6qgV-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMenuSimpleChild=defineAsyncComponent(()=>__vitePreload(()=>import("./DBViqVYc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMenuSimplePrimary=defineAsyncComponent(()=>__vitePreload(()=>import("./BS7JxJhu.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMenuSimpleSecondary=defineAsyncComponent(()=>__vitePreload(()=>import("./BFxNSJ1E.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMenuSimple=defineAsyncComponent(()=>__vitePreload(()=>import("./1W-f5Bwl.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNavTeams=defineAsyncComponent(()=>__vitePreload(()=>import("./YrogRo5C.js"),__vite__mapDeps([228,125,219,99]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsAccordion=defineAsyncComponent(()=>__vitePreload(()=>import("./CBTw1lVQ.js"),__vite__mapDeps([229,143,141,96,97,126,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsAllFixtures=defineAsyncComponent(()=>__vitePreload(()=>import("./G0FEpkLs.js"),__vite__mapDeps([230,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsAuthor=defineAsyncComponent(()=>__vitePreload(()=>import("./D_sw2Ho7.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsCard=defineAsyncComponent(()=>__vitePreload(()=>import("./CJ8xeBw5.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsCardSmall=defineAsyncComponent(()=>__vitePreload(()=>import("./Dm9wLG00.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsClubTV=defineAsyncComponent(()=>__vitePreload(()=>import("./eY0xOoUJ.js"),__vite__mapDeps([231,232,233,234,235,236]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsContact=defineAsyncComponent(()=>__vitePreload(()=>import("./C--xCZ0f.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsCta=defineAsyncComponent(()=>__vitePreload(()=>import("./DMHy1HIP.js"),__vite__mapDeps([237,238,155]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsFileDownload=defineAsyncComponent(()=>__vitePreload(()=>import("./B9swf0LC.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsFixturesList=defineAsyncComponent(()=>__vitePreload(()=>import("./DC3gARZ_.js"),__vite__mapDeps([239,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsFootballBasicLineup=defineAsyncComponent(()=>__vitePreload(()=>import("./LDEA1NKh.js"),__vite__mapDeps([240,241,197,242]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsFootballBasicMatchStats=defineAsyncComponent(()=>__vitePreload(()=>import("./BWbnsAWK.js"),__vite__mapDeps([243,244,245]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsForm=defineAsyncComponent(()=>__vitePreload(()=>import("./Ck9M33Fo.js"),__vite__mapDeps([246,247,178,248]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsHorizontalLine=defineAsyncComponent(()=>__vitePreload(()=>import("./DAhh6ZbS.js"),__vite__mapDeps([249,176,177,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsImage=defineAsyncComponent(()=>__vitePreload(()=>import("./BBLds5uk.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsImageGallery=defineAsyncComponent(()=>__vitePreload(()=>import("./HLyb2aaP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsNewsCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./CTh-5pTo.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsNewsCategory=defineAsyncComponent(()=>__vitePreload(()=>import("./CztgRJRi.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsQuote=defineAsyncComponent(()=>__vitePreload(()=>import("./T9sYWeuZ.js"),__vite__mapDeps([250,251,178,23,17,5]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsSocialSharingEmail=defineAsyncComponent(()=>__vitePreload(()=>import("./DR7Ld5aa.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsSocialSharingFacebook=defineAsyncComponent(()=>__vitePreload(()=>import("./a673uYnH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsSocialSharingLink=defineAsyncComponent(()=>__vitePreload(()=>import("./bbg4CGqV.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsSocialSharingWebShare=defineAsyncComponent(()=>__vitePreload(()=>import("./BhMTx4u1.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsSocialSharingX=defineAsyncComponent(()=>__vitePreload(()=>import("./B-5l8AEJ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsStreamlineEmbed=defineAsyncComponent(()=>__vitePreload(()=>import("./ByTmRU_X.js"),__vite__mapDeps([252,232,233,234,235,236]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsSubscriptionsCTA=defineAsyncComponent(()=>__vitePreload(()=>import("./6_pxNdcz.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsTextBlock=defineAsyncComponent(()=>__vitePreload(()=>import("./DFFhDjz5.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsThirdPartyV2=defineAsyncComponent(()=>__vitePreload(()=>import("./6Iz4YBlv.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsThirdParty=defineAsyncComponent(()=>__vitePreload(()=>import("./Cdg1RskM.js"),[],import.meta.url).then(e=>
44e.default||e.default||e)),LazyNewsUpcomingFixtures=defineAsyncComponent(()=>__vitePreload(()=>import("./C_JKFYfc.js"),__vite__mapDeps([253,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsVimeo=defineAsyncComponent(()=>__vitePreload(()=>import("./Vbbi4yrB.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyNewsYoutubeV2=defineAsyncComponent(()=>__vitePreload(()=>import("./Chf-MKfP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyOverlayMatchdayTakeover=defineAsyncComponent(()=>__vitePreload(()=>import("./8f9yGzXJ.js"),__vite__mapDeps([254,255,148,134,116,132,130,149,136,106,107,127,150,151,138,152,153,154,155]),import.meta.url).then(e=>e.default||e.default||e)),LazyOverlayPromo=defineAsyncComponent(()=>__vitePreload(()=>import("./OYqIAryj.js"),__vite__mapDeps([256,257]),import.meta.url).then(e=>e.default||e.default||e)),LazyPackageButton=defineAsyncComponent(()=>__vitePreload(()=>import("./D3YYlmSX.js"),__vite__mapDeps([258,110,111]),import.meta.url).then(e=>e.default||e.default||e)),LazyPlayerStreamAMGEmbed=defineAsyncComponent(()=>__vitePreload(()=>import("./D1sFCR0v.js"),__vite__mapDeps([259,236,233]),import.meta.url).then(e=>e.default||e.default||e)),LazyPlayerStreamAMG=defineAsyncComponent(()=>__vitePreload(()=>import("./B7cSw4tJ.js"),__vite__mapDeps([260,236,233]),import.meta.url).then(e=>e.default||e.default||e)),LazyPlayerStreamlineAudio=defineAsyncComponent(()=>__vitePreload(()=>import("./CXzZEbBn.js"),__vite__mapDeps([261,262,263,107,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyPlayerStreamlineEmbed=defineAsyncComponent(()=>__vitePreload(()=>import("./Z7sNdVjf.js"),__vite__mapDeps([264,232,233,234,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyPlayerStreamline=defineAsyncComponent(()=>__vitePreload(()=>import("./DxLAu4-6.js"),__vite__mapDeps([265,232,233,234,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyPrimitiveBreadcrumbs=defineAsyncComponent(()=>__vitePreload(()=>import("./BlkWOnQS.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyPrimitiveHeading=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index$2),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPrimitiveLogo=defineAsyncComponent(()=>__vitePreload(()=>import("./Bvw2ljW0.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyPrimitiveMatchScore=defineAsyncComponent(()=>__vitePreload(()=>import("./CKSvG318.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySearchInput=defineAsyncComponent(()=>__vitePreload(()=>import("./D7NW3wVm.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySearchTabs=defineAsyncComponent(()=>__vitePreload(()=>import("./Dcib2O-4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySearch=defineAsyncComponent(()=>__vitePreload(()=>import("./jsQXKddr.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySearchTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>types$1),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazySharingApps=defineAsyncComponent(()=>__vitePreload(()=>import("./VOCRD2G3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySponsorListingSponsor=defineAsyncComponent(()=>__vitePreload(()=>import("./D09ZVUUv.js"),__vite__mapDeps([266,151]),import.meta.url).then(e=>e.default||e.default||e)),LazyStreamAmgButton=defineAsyncComponent(()=>__vitePreload(()=>import("./AF9d0p87.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyStreamButton=defineAsyncComponent(()=>__vitePreload(()=>import("./DAFjPhiq.js"),__vite__mapDeps([267,106,107]),import.meta.url).then(e=>e.default||e.default||e)),LazyStreamlineButton=defineAsyncComponent(()=>__vitePreload(()=>import("./CuyYR16E.js"),__vite__mapDeps([268,235]),import.meta.url).then(e=>e.default||e.default||e)),LazySubscribe=defineAsyncComponent(()=>__vitePreload(()=>import("./BMU37H8d.js"),__vite__mapDeps([269,233]),import.meta.url).then(e=>e.default||e.default||e)),LazySubscriptionPackagesCard=defineAsyncComponent(()=>__vitePreload(()=>import("./DMOYLXtl.js"),__vite__mapDeps([270,271,272,111]),import.meta.url).then(e=>e.default||e.default||e)),LazySubscriptionPackages=defineAsyncComponent(()=>__vitePreload(()=>import("./D3FHRBbR.js"),__vite__mapDeps([273,263,271,272,111,122,118,120,113,109,106,107,110,115,116]),import.meta.url).then(e=>e.default||e.default||e)),LazyTabsSimple=defineAsyncComponent(()=>__vitePreload(()=>import("./D3O04-2K.js"),__vite__mapDeps([274,125]),import.meta.url).then(e=>e.default||e.default||e)),LazyTabsSlideshow=defineAsyncComponent(()=>__vitePreload(()=>import("./NJ47y_Ay.js"),__vite__mapDeps([275,195]),import.meta.url).then(e=>e.default||e.default||e)),LazyTeamsLoanedPlayerSkeleton=defineAsyncComponent(()=>__vitePreload(()=>import("./7qCoEQtw.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyTeamsLoanedPlayer=defineAsyncComponent(()=>__vitePreload(()=>import("./7yx96TrV.js"),__vite__mapDeps([276,277]),import.meta.url).then(e=>e.default||e.default||e)),LazyTeamsLoaned=defineAsyncComponent(()=>__vitePreload(()=>import("./DJeC-cCs.js"),__vite__mapDeps([278,279,277,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyToastContainer=defineAsyncComponent(()=>__vitePreload(()=>import("./B_JX-k99.js"),__vite__mapDeps([280,281,282]),import.meta.url).then(e=>e.default||e.default||e)),LazyToast=defineAsyncComponent(()=>__vitePreload(()=>import("./DgbYqpuZ.js"),[],import.meta.url).then(e=>
44e.default||e.default||e)),LazyTooltip=defineAsyncComponent(()=>__vitePreload(()=>import("./C118t8Zz.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyVideoDetails=defineAsyncComponent(()=>__vitePreload(()=>import("./BLeDgzJl.js"),__vite__mapDeps([283,284]),import.meta.url).then(e=>e.default||e.default||e)),LazyVideosBrowseFilters=defineAsyncComponent(()=>__vitePreload(()=>import("./CADYQYH1.js"),__vite__mapDeps([285,286]),import.meta.url).then(e=>e.default||e.default||e)),LazyVideosBrowse=defineAsyncComponent(()=>__vitePreload(()=>import("./Bfcshuj_.js"),__vite__mapDeps([287,286,263,205,206,207,178,208,21,7,209]),import.meta.url).then(e=>e.default||e.default||e)),LazyVideosCategories=defineAsyncComponent(()=>__vitePreload(()=>import("./Crs7UY4h.js"),__vite__mapDeps([288,263,289,207,206,178,208,21,7,290]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetAdSlot=defineAsyncComponent(()=>__vitePreload(()=>import("./DWR3Ls1H.js"),__vite__mapDeps([291,199]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetAdvertisingSlot=defineAsyncComponent(()=>__vitePreload(()=>import("./DsTOacIh.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetButton=defineAsyncComponent(()=>__vitePreload(()=>import("./Bcmo703S.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetContentListItem=defineAsyncComponent(()=>__vitePreload(()=>import("./B3ZlsMVs.js"),__vite__mapDeps([292,293]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetContentList=defineAsyncComponent(()=>__vitePreload(()=>import("./BP3Vb-XU.js"),__vite__mapDeps([294,293,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEmbedCustomLeagueTable=defineAsyncComponent(()=>__vitePreload(()=>import("./BfIDqx2X.js"),__vite__mapDeps([295,215,159,216,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEmbedDizplai=defineAsyncComponent(()=>__vitePreload(()=>import("./Ba455AFK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetHighlightSlot=defineAsyncComponent(()=>__vitePreload(()=>import("./CTcFLJJx.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetHorizontalLine=defineAsyncComponent(()=>__vitePreload(()=>import("./B5MSfmwN.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetHorizontalSponsor=defineAsyncComponent(()=>__vitePreload(()=>import("./DkRiGbcM.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImageBlock=defineAsyncComponent(()=>__vitePreload(()=>import("./BPaKL2pb.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetLeagueTableSkeleton=defineAsyncComponent(()=>__vitePreload(()=>import("./DS62nxTn.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetLeagueTable=defineAsyncComponent(()=>__vitePreload(()=>import("./DMUnUs2u.js"),__vite__mapDeps([217,153,218]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetLineUpsItem=defineAsyncComponent(()=>__vitePreload(()=>import("./U-ds3khg.js"),__vite__mapDeps([296,242]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetLineUps=defineAsyncComponent(()=>__vitePreload(()=>import("./BsL43pjC.js"),__vite__mapDeps([297,241,197,242]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetManagedAds=defineAsyncComponent(()=>__vitePreload(()=>import("./96Fh9GAc.js"),__vite__mapDeps([298,198,199]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchCentre=defineAsyncComponent(()=>__vitePreload(()=>import("./6DB7RJA6.js"),__vite__mapDeps([299,124,125,126,96,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubCompetitionSelector=defineAsyncComponent(()=>__vitePreload(()=>import("./NWieElay.js"),__vite__mapDeps([300,301,302]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubCompetitionSelectorCompetitionTab=defineAsyncComponent(()=>__vitePreload(()=>import("./BeOnWukL.js"),__vite__mapDeps([303,302]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubDateTabDateCard=defineAsyncComponent(()=>__vitePreload(()=>import("./DdLGhc-Z.js"),__vite__mapDeps([304,305]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubDateTab=defineAsyncComponent(()=>__vitePreload(()=>import("./BnRpeXHB.js"),__vite__mapDeps([306,307,305]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchCard=defineAsyncComponent(()=>__vitePreload(()=>import("./9gN3hfQY.js"),__vite__mapDeps([308,309]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchOverview=defineAsyncComponent(()=>__vitePreload(()=>import("./D7BfDxpw.js"),__vite__mapDeps([310,311,312,242,313,314,315]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchOverviewSectionsMatchLineup=defineAsyncComponent(()=>__vitePreload(()=>import("./DajjiLJj.js"),__vite__mapDeps([316,312,242,313]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchOverviewSectionsMatchMeta=defineAsyncComponent(()=>__vitePreload(()=>import("./C-A66mxZ.js"),__vite__mapDeps([317,314]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchOverviewSectionsMatchScores=defineAsyncComponent(()=>__vitePreload(()=>import("./DMn7o05J.js"),__vite__mapDeps([318,315]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchSidebar=defineAsyncComponent(()=>__vitePreload(()=>import("./_r5JPvyj.js"),__vite__mapDeps([319,320,321,216,150,217,153,218,322]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMatchSidebarNewsListings=defineAsyncComponent(()=>__vitePreload(()=>import("./DHQNjvT3.js"),__vite__mapDeps([323,322]),import.meta.url).then(e=>
44e.default||e.default||e)),LazyWidgetMatchHub=defineAsyncComponent(()=>__vitePreload(()=>import("./BKK26sfG.js"),__vite__mapDeps([324,307,305,309,301,302,320,321,216,150,217,153,218,322,311,312,242,313,314,315]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchStats=defineAsyncComponent(()=>__vitePreload(()=>import("./-mHwgjKJ.js"),__vite__mapDeps([325,244,245]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMinByMin=defineAsyncComponent(()=>__vitePreload(()=>import("./Dh46dJ4f.js"),__vite__mapDeps([326,321,216,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsGrid=defineAsyncComponent(()=>__vitePreload(()=>import("./CbnI_Fzr.js"),__vite__mapDeps([327,221]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterFormFormField=defineAsyncComponent(()=>__vitePreload(()=>import("./D4WFJFs6.js"),__vite__mapDeps([328,329]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterFormRequiredField=defineAsyncComponent(()=>__vitePreload(()=>import("./DlUkOY8t.js"),[],import.meta.url).then(e=>
44e.default||e.default||e)),LazyWidgetNewsletterFormCountries=defineAsyncComponent(()=>__vitePreload(()=>import("./tQV7wd6j.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterFormDob=defineAsyncComponent(()=>__vitePreload(()=>import("./lBrfQD3r.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterForm=defineAsyncComponent(()=>__vitePreload(()=>import("./BjMIIkwK.js"),__vite__mapDeps([330,328,329,331,332]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPlayerCard=defineAsyncComponent(()=>__vitePreload(()=>import("./LRSmrhF_.js"),__vite__mapDeps([333,99]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPlayerRetail=defineAsyncComponent(()=>__vitePreload(()=>import("./B_2E_HCj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPlayerSocials=defineAsyncComponent(()=>__vitePreload(()=>import("./vwVyfNdu.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPlayerStatsBar=defineAsyncComponent(()=>__vitePreload(()=>import("./BFnN0jPt.js"),__vite__mapDeps([334,335]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPlayerStatsCell=defineAsyncComponent(()=>__vitePreload(()=>import("./Chr6qsTD.js"),__vite__mapDeps([336,337,245,338,339]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPlayerStats=defineAsyncComponent(()=>__vitePreload(()=>import("./CQrPv4hL.js"),__vite__mapDeps([340,335,337,245,338,339]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetScoresItem=defineAsyncComponent(()=>__vitePreload(()=>import("./D9jp-oC_.js"),__vite__mapDeps([341,342,154]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetScores=defineAsyncComponent(()=>__vitePreload(()=>import("./BQeoLWzl.js"),__vite__mapDeps([343,342,154]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetTextBlock=defineAsyncComponent(()=>__vitePreload(()=>import("./B-NwQgOc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetToggle=defineAsyncComponent(()=>__vitePreload(()=>import("./CJf_yawd.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetVideoPromo=defineAsyncComponent(()=>__vitePreload(()=>import("./CM5JJrRP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetVideoSpotlightSmall=defineAsyncComponent(()=>__vitePreload(()=>import("./Bbdd-JXl.js"),__vite__mapDeps([344,209,284]),import.meta.url).then(e=>e.default||e.default||e)),LazySSOHeaderControl=defineAsyncComponent(()=>__vitePreload(()=>import("./Dto5t-TV.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOLoginForm=defineAsyncComponent(()=>__vitePreload(()=>import("./BBLaAu8a.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOLogo=defineAsyncComponent(()=>__vitePreload(()=>import("./DDEG0JlL.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOOverlay=defineAsyncComponent(()=>__vitePreload(()=>import("./DPKSDRTG.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOPasswordInput=defineAsyncComponent(()=>__vitePreload(()=>import("./C5wa97PH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOPreferencesCheckbox=defineAsyncComponent(()=>__vitePreload(()=>import("./zV0u5M2v.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOPreferencesGroup=defineAsyncComponent(()=>__vitePreload(()=>import("./DdpSSjWG.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOPreferencesRadio=defineAsyncComponent(()=>__vitePreload(()=>import("./BqkARxRs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOPreferencesText=defineAsyncComponent(()=>__vitePreload(()=>import("./C3D5yMlw.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSORegisterForm=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazySSOResetPassword=defineAsyncComponent(()=>__vitePreload(()=>import("./BG6qDn7-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOSetNewPassword=defineAsyncComponent(()=>__vitePreload(()=>import("./Djb1pp2o.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOSideBarAccount=defineAsyncComponent(()=>__vitePreload(()=>import("./DgBQPYeq.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOSideBarDefault=defineAsyncComponent(()=>__vitePreload(()=>import("./B9cHwTRm.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOSideBarPreferences=defineAsyncComponent(()=>__vitePreload(()=>import("./B60ba4kH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOSideBarUser=defineAsyncComponent(()=>__vitePreload(()=>import("./Z9yBCgTs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOSideBar=defineAsyncComponent(()=>__vitePreload(()=>import("./6iSKBspn.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySSOVerifyAccount=defineAsyncComponent(()=>__vitePreload(()=>import("./BkWCwSPW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyBaseIcon=defineAsyncComponent(()=>__vitePreload(()=>import("./BgxEL5zd.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyAvatarGroup=defineAsyncComponent(()=>__vitePreload(()=>import("./p8d7Ihkg.js"),__vite__mapDeps([345,346]),import.meta.url).then(e=>e.default||e.default||e)),LazyAvatarIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2e),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyAvatar=defineAsyncComponent(()=>__vitePreload(()=>import("./Bq5p669-.js"),__vite__mapDeps([347,346]),import.meta.url).then(e=>e.default||e.default||e)),LazyBadgeIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2d),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyBadge=defineAsyncComponent(()=>__vitePreload(()=>import("./BxnRX4OZ.js"),__vite__mapDeps([348,206]),import.meta.url).then(e=>e.default||e.default||e)),LazyBannerTextFriendlyIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2c),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyBannerTextFriendly=defineAsyncComponent(()=>__vitePreload(()=>import("./DD73qb8y.js"),__vite__mapDeps([349,350,206]),import.meta.url).then(e=>e.default||e.default||e)),LazyBaseLottieAnimation=defineAsyncComponent(()=>__vitePreload(()=>import("./B5PagJjs.js"),__vite__mapDeps([351,352]),import.meta.url).then(e=>e.default||e.default||e)),LazyBaseTabV2=defineAsyncComponent(()=>__vitePreload(()=>import("./X69ILiCm.js"),__vite__mapDeps([353,354]),import.meta.url).then(e=>e.default||e.default||e)),LazyBaseTabsV2=defineAsyncComponent(()=>__vitePreload(()=>
44import("./DKoUoIAq.js"),__vite__mapDeps([355,356]),import.meta.url).then(e=>e.default||e.default||e)),LazyBiographyIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2b),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyBiography=defineAsyncComponent(()=>__vitePreload(()=>import("./CyKTreWs.js"),__vite__mapDeps([357,358,346,359,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelinesBackground=defineAsyncComponent(()=>__vitePreload(()=>import("./D0MpS0_F.js"),__vite__mapDeps([361,362]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelinesButtons=defineAsyncComponent(()=>__vitePreload(()=>import("./Chm3fctU.js"),__vite__mapDeps([363,364]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelinesCards=defineAsyncComponent(()=>__vitePreload(()=>import("./QLtZAnfz.js"),__vite__mapDeps([365,366,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelinesColours=defineAsyncComponent(()=>__vitePreload(()=>import("./bYeFhUMB.js"),__vite__mapDeps([367,368]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelinesFonts=defineAsyncComponent(()=>__vitePreload(()=>import("./BUHJjINd.js"),__vite__mapDeps([369,370]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelinesForeground=defineAsyncComponent(()=>__vitePreload(()=>import("./B6JV-_8i.js"),__vite__mapDeps([371,372]),import.meta.url).then(e=>e.default||e.default||e)),LazyBrandGuidelines=defineAsyncComponent(()=>__vitePreload(()=>import("./zD4_iBcH.js"),__vite__mapDeps([373,368,370,362,372,364,366,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureActions=defineAsyncComponent(()=>__vitePreload(()=>import("./D9Or3_Z4.js"),__vite__mapDeps([374,210]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureBroadcasters=defineAsyncComponent(()=>__vitePreload(()=>import("./B9axX4_X.js"),__vite__mapDeps([375,212]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureHeader=defineAsyncComponent(()=>__vitePreload(()=>import("./DDL7FMkR.js"),__vite__mapDeps([376,201]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureResultMultiClubIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./2tUvKl7o.js"),__vite__mapDeps([11,4,5,6,7,12,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureResultMultiClubIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2a),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureResultMultiClub=defineAsyncComponent(()=>__vitePreload(()=>import("./qF4ybQJ9.js"),__vite__mapDeps([377,12]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureResultIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BRRDAbAA.js"),__vite__mapDeps([10,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureResultIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$29),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureResult=defineAsyncComponent(()=>__vitePreload(()=>import("./GfAOGVbU.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureUpcomingMultiClubIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./ponxGQRy.js"),__vite__mapDeps([14,4,5,6,7,12,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureUpcomingMultiClubIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$28),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureUpcomingMultiClub=defineAsyncComponent(()=>__vitePreload(()=>import("./BHYkWcvp.js"),__vite__mapDeps([378,12]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureUpcomingIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DMBRUS9p.js"),__vite__mapDeps([13,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureUpcomingIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$27),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureUpcoming=defineAsyncComponent(()=>__vitePreload(()=>import("./C3Bqmall.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureVariantDualCrest=defineAsyncComponent(()=>__vitePreload(()=>import("./m47Z6v4V.js"),__vite__mapDeps([379,202,203]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureVariantInline=defineAsyncComponent(()=>__vitePreload(()=>import("./CnvDSyHH.js"),__vite__mapDeps([380,211,203]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureVideos=defineAsyncComponent(()=>__vitePreload(()=>import("./fYgXaT_9.js"),__vite__mapDeps([381,204,205,206,207,178,208,21,7,209]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixtureIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$26),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardFixture=defineAsyncComponent(()=>__vitePreload(()=>import("./BMsYftIo.js"),__vite__mapDeps([382,200,201,202,203,204,205,206,207,178,208,21,7,209,210,211,212]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardNews=defineAsyncComponent(()=>__vitePreload(()=>import("./C6Gb1xoQ.js"),__vite__mapDeps([383,384,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardPageIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$25),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardPage=defineAsyncComponent(()=>__vitePreload(()=>import("./wNE1MDem.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyCardProduct=defineAsyncComponent(()=>__vitePreload(()=>import("./C9jAzeUi.js"),__vite__mapDeps([385,386,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardPromo=defineAsyncComponent(()=>__vitePreload(()=>import("./Dvztx-lI.js"),__vite__mapDeps([387,388,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardStack=defineAsyncComponent(()=>__vitePreload(()=>import("./Box1Uc4S.js"),__vite__mapDeps([389,290]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardStreamlineIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$24),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardStreamline=defineAsyncComponent(()=>__vitePreload(()=>import("./C1LR-ZRa.js"),__vite__mapDeps([390,205,206,207,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardTallIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$23),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardTall=defineAsyncComponent(()=>__vitePreload(()=>
44import("./Ct1s-xqE.js"),__vite__mapDeps([391,289,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$22),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyCardIndexVariants=defineAsyncComponent(()=>__vitePreload(()=>import("./DfGu4uut.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyCard=defineAsyncComponent(()=>__vitePreload(()=>import("./BfrqlPTi.js"),__vite__mapDeps([392,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyCarouselActionsPrimary=defineAsyncComponent(()=>__vitePreload(()=>import("./DwLdd7_1.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./C8s9f8aH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyChartBar=defineAsyncComponent(()=>__vitePreload(()=>import("./DGXNggEW.js"),__vite__mapDeps([393,394]),import.meta.url).then(e=>e.default||e.default||e)),LazyChartCurve=defineAsyncComponent(()=>__vitePreload(()=>import("./DEjTzScx.js"),__vite__mapDeps([395,396,245,339]),import.meta.url).then(e=>e.default||e.default||e)),LazyChartGauge=defineAsyncComponent(()=>__vitePreload(()=>import("./DAn3ISSD.js"),__vite__mapDeps([397,398,245,338,339,399]),import.meta.url).then(e=>e.default||e.default||e)),LazyChartNumber=defineAsyncComponent(()=>__vitePreload(()=>import("./DpcdYH8D.js"),__vite__mapDeps([400,401,245,399]),import.meta.url).then(e=>e.default||e.default||e)),LazyChartPie=defineAsyncComponent(()=>__vitePreload(()=>import("./B4Xv3R0A.js"),__vite__mapDeps([402,245,338,339]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonCardRank=defineAsyncComponent(()=>__vitePreload(()=>import("./m1LUYJKo.js"),__vite__mapDeps([403,404]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$21),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonCard=defineAsyncComponent(()=>__vitePreload(()=>import("./DW-bLjdA.js"),__vite__mapDeps([405,406,404]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonModal=defineAsyncComponent(()=>__vitePreload(()=>import("./BlJrMwWW.js"),__vite__mapDeps([407,408,409,410,411]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonStatsHeadToHeadItem=defineAsyncComponent(()=>__vitePreload(()=>import("./ClzwY0Mi.js"),__vite__mapDeps([412,413]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonStatsHistory=defineAsyncComponent(()=>__vitePreload(()=>import("./CJp811xb.js"),__vite__mapDeps([414,415,394,413]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparisonStats=defineAsyncComponent(()=>__vitePreload(()=>import("./CM7Eh6yd.js"),__vite__mapDeps([416,417,394,415,413]),import.meta.url).then(e=>e.default||e.default||e)),LazyComparison=defineAsyncComponent(()=>__vitePreload(()=>import("./Ca5A6gAQ.js"),__vite__mapDeps([418,419,406,404,417,394,415,413,408,409,410,411,420,150,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyContainerCarouselIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$20),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyContainerElement=defineAsyncComponent(()=>__vitePreload(()=>import("./WxHaH3YD.js"),__vite__mapDeps([421,422]),import.meta.url).then(e=>e.default||e.default||e)),LazyContainerGridIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1$),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyContainerSplitContent=defineAsyncComponent(()=>__vitePreload(()=>import("./D33GTM4-.js"),__vite__mapDeps([423,424,425,96,97]),import.meta.url).then(e=>e.default||e.default||e)),LazyContainerSplitIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./TxMa1gx2.js").then(e=>e.a),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyContainerSplitIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1_),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyContainerSplit=defineAsyncComponent(()=>__vitePreload(()=>import("./Bt5BhgfM.js"),__vite__mapDeps([426,424,425,96,97,422,427,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyContainerSplitLayout=defineAsyncComponent(()=>__vitePreload(()=>import("./u49kvY5k.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyContainerTabbedIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1Z),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyContainerWrapperIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1Y),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyContainerWrapper=defineAsyncComponent(()=>__vitePreload(()=>import("./D8yNod9R.js"),__vite__mapDeps([428,427,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyDartBoardWrapper=defineAsyncComponent(()=>__vitePreload(()=>import("./CuQHCtoI.js"),__vite__mapDeps([429,352,430,245,431,338,339,432,433,434,435,410]),import.meta.url).then(e=>e.default||e.default||e)),LazyDartBoardDartboardData=defineAsyncComponent(()=>__vitePreload(()=>import("./CbErAtqa.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyDartBoardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1X),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyDartBoard=defineAsyncComponent(()=>__vitePreload(()=>import("./CyHVQNLB.js"),__vite__mapDeps([436,430,245,431,338,339]),import.meta.url).then(e=>e.default||e.default||e)),LazyDividerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1W),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyDivider=defineAsyncComponent(()=>__vitePreload(()=>import("./DXEQolQh.js"),__vite__mapDeps([437,177,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyDrawer=defineAsyncComponent(()=>__vitePreload(()=>import("./BXIuR44z.js"),__vite__mapDeps([438,359,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyEventButton=defineAsyncComponent(()=>__vitePreload(()=>import("./ayF7YUuZ.js"),__vite__mapDeps([439,440]),import.meta.url).then(e=>e.default||e.default||e)),LazyEventCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1V),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyEventCard=defineAsyncComponent(()=>__vitePreload(()=>import("./sM4TGVxL.js"),__vite__mapDeps([441,442,206,440,207,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyEventGridIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1U),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyEventGrid=defineAsyncComponent(()=>__vitePreload(()=>import("./Dy4dfswz.js"),__vite__mapDeps([443,444,442,206,440,207,178,208,21,7,445]),import.meta.url).then(e=>e.default||e.default||e)),LazyEventListItemIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1T),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyEventListItem=defineAsyncComponent(()=>__vitePreload(()=>import("./D-gCvi-g.js"),__vite__mapDeps([446,445,440]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCarouselCardIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./IzpsQ-gF.js"),__vite__mapDeps([447,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCarouselCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1S),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCarouselCard=defineAsyncComponent(()=>__vitePreload(()=>import("./DSwKIf0X.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCarouselIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DMdsR_ma.js"),__vite__mapDeps([448,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCarouselIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1R),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixtureCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./BGEJabws.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardActionsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1Q),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardActions=defineAsyncComponent(()=>__vitePreload(()=>import("./Cg7Q78uO.js"),__vite__mapDeps([449,450]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardCountdownIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1P),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardCountdown=defineAsyncComponent(()=>__vitePreload(()=>import("./RCRsoGu-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardDataIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1O),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardData=defineAsyncComponent(()=>__vitePreload(()=>import("./DuVI144u.js"),__vite__mapDeps([451,452]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardMetaIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1N),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardMeta=defineAsyncComponent(()=>__vitePreload(()=>import("./4J0XQcTz.js"),__vite__mapDeps([453,454]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1M),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingCard=defineAsyncComponent(()=>__vitePreload(()=>import("./HZLChFhR.js"),__vite__mapDeps([455,456,454,452,203,450]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingTabsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1L),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingTabs=defineAsyncComponent(()=>__vitePreload(()=>import("./CI1X7ely.js"),__vite__mapDeps([457,354,356,458]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingTeamTabsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1K),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingTeamTabs=defineAsyncComponent(()=>__vitePreload(()=>import("./Bbs0AvQI.js"),__vite__mapDeps([459,354,356,458]),import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListingIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1J),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyFixturesListing=defineAsyncComponent(()=>__vitePreload(()=>import("./CZiyyIAN.js"),__vite__mapDeps([460,456,454,452,203,450,461,458]),import.meta.url).then(e=>
44e.default||e.default||e)),LazyFloatingContainer=defineAsyncComponent(()=>__vitePreload(()=>import("./Cn4nWcjw.js"),__vite__mapDeps([462,463]),import.meta.url).then(e=>e.default||e.default||e)),LazyForegroundImage=defineAsyncComponent(()=>__vitePreload(()=>import("./DnPMSObo.js"),__vite__mapDeps([464,465]),import.meta.url).then(e=>e.default||e.default||e)),LazyFormDropdown=defineAsyncComponent(()=>__vitePreload(()=>import("./x-vwS2ve.js"),__vite__mapDeps([466,467,463]),import.meta.url).then(e=>e.default||e.default||e)),LazyFormInput=defineAsyncComponent(()=>__vitePreload(()=>import("./CBfU6-Rl.js"),__vite__mapDeps([468,409]),import.meta.url).then(e=>e.default||e.default||e)),LazyGCModalIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1I),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyGCModal=defineAsyncComponent(()=>__vitePreload(()=>import("./DI4UdM0n.js"),__vite__mapDeps([469,420,150,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyGalleryIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1H),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyGallery=defineAsyncComponent(()=>__vitePreload(()=>import("./ByPQc9OE.js"),__vite__mapDeps([470,471]),import.meta.url).then(e=>e.default||e.default||e)),LazyGamechangerImage=defineAsyncComponent(()=>__vitePreload(()=>import("./CRVQrqyk.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyGamechangerVideo=defineAsyncComponent(()=>__vitePreload(()=>import("./Cg1Ka9rO.js"),__vite__mapDeps([472,473,234,474]),import.meta.url).then(e=>e.default||e.default||e)),LazyGrid=defineAsyncComponent(()=>__vitePreload(()=>import("./1SbxJi-b.js"),__vite__mapDeps([475,223]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroDynamicIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./CSFV3AGy.js"),__vite__mapDeps([476,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroDynamicIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1G),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroImpactIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./D04y33ZW.js"),__vite__mapDeps([477,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroImpactIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1F),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSimpleIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BnANj67R.js"),__vite__mapDeps([91,4,5,6,7,15,16,17,18,19,20,21,8,23]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSimpleIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1E),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSimple=defineAsyncComponent(()=>__vitePreload(()=>import("./CdrylI5W.js"),__vite__mapDeps([478,465,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSlideItemIndexModel=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_model),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSlideItemIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1D),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSlideIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./lDNd3tO0.js"),__vite__mapDeps([479,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSlideIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1C),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSpotlightIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BoZv-HWX.js"),__vite__mapDeps([66,4,5,6,7,43,44,23,17,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSpotlightIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>
44index_types$1B),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyHeroSpotlight=defineAsyncComponent(()=>__vitePreload(()=>import("./HHli0uSp.js"),__vite__mapDeps([480,205,206,207,178,208,21,7,384,481,209,17,5,482,483,484,435,485]),import.meta.url).then(e=>e.default||e.default||e)),LazyInfiniteScroll=defineAsyncComponent(()=>__vitePreload(()=>import("./CIUB7TMK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyInfiniteScrollComposablesUseScrollLoader=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>useScrollLoader$1),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyInfiniteScrollTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>types),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyInfoModal=defineAsyncComponent(()=>__vitePreload(()=>import("./Bi-d2qJW.js"),__vite__mapDeps([486,487]),import.meta.url).then(e=>e.default||e.default||e)),LazyLinkContainerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1A),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyLinkContainer=defineAsyncComponent(()=>__vitePreload(()=>import("./sASePhqE.js"),__vite__mapDeps([488,489]),import.meta.url).then(e=>e.default||e.default||e)),LazyListingsEvent=defineAsyncComponent(()=>__vitePreload(()=>import("./DJdeORGL.js"),__vite__mapDeps([490,467,463,491,440,445,435]),import.meta.url).then(e=>e.default||e.default||e)),LazyListingsParticipant=defineAsyncComponent(()=>__vitePreload(()=>import("./CcEoaTXr.js"),__vite__mapDeps([492,409,467,463,493,404,207,206,178,208,21,7,494,213,214,410,495,411]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreColumn=defineAsyncComponent(()=>__vitePreload(()=>import("./Bc8pP_uI.js"),__vite__mapDeps([496,497]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsBanner=defineAsyncComponent(()=>__vitePreload(()=>import("./CohS7_5o.js"),__vite__mapDeps([498,499,432,433,434,435,410]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsDefault=defineAsyncComponent(()=>__vitePreload(()=>import("./55DrqOcA.js"),__vite__mapDeps([500,501,502,206,429,352,430,245,431,338,339,432,433,434,435,410,503,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsGames=defineAsyncComponent(()=>__vitePreload(()=>import("./L02Gl-4G.js"),__vite__mapDeps([504,467,463,505,432,433,434,435,410]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsResult=defineAsyncComponent(()=>__vitePreload(()=>import("./CMadl9I2.js"),__vite__mapDeps([506,501,502]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsResultSummary=defineAsyncComponent(()=>__vitePreload(()=>import("./D2_N2tgK.js"),__vite__mapDeps([507,502]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsScoreCard=defineAsyncComponent(()=>__vitePreload(()=>import("./BVHsF32g.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsStats=defineAsyncComponent(()=>__vitePreload(()=>import("./Ct0csDqW.js"),__vite__mapDeps([508,394,413,432,433,434,435,410]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsTimeline=defineAsyncComponent(()=>__vitePreload(()=>import("./QvexGBVd.js"),__vite__mapDeps([509,467,463,510,511,432,433,434,435,410]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreDartsVideo=defineAsyncComponent(()=>__vitePreload(()=>import("./CwXuLHS1.js"),__vite__mapDeps([512,473,234,474,432,433,434,435,410,513,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballBanner=defineAsyncComponent(()=>__vitePreload(()=>import("./CXDwE_9w.js"),__vite__mapDeps([514,515]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballBuildUp=defineAsyncComponent(()=>__vitePreload(()=>import("./DFzAcmsz.js"),__vite__mapDeps([516,517,207,206,178,208,21,7,205,518,209,519,434]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentaryBooking=defineAsyncComponent(()=>__vitePreload(()=>import("./iMaNnqF4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentaryGoal=defineAsyncComponent(()=>__vitePreload(()=>import("./ir7ofweA.js"),__vite__mapDeps([520,346,521]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentaryItem=defineAsyncComponent(()=>__vitePreload(()=>import("./DacYiF9-.js"),__vite__mapDeps([522,216,150,523,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentaryPeriod=defineAsyncComponent(()=>__vitePreload(()=>import("./C-rWPZ_-.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentarySubstitution=defineAsyncComponent(()=>__vitePreload(()=>import("./DmyFoUER.js"),__vite__mapDeps([524,346,521]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentaryIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>import("./C2GBqM12.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballCommentary=defineAsyncComponent(()=>__vitePreload(()=>import("./BFY1j8mM.js"),__vite__mapDeps([525,526,518,44]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballDefaultIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Tahjk05_.js"),__vite__mapDeps([78,4,5,6,7,20,21]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballDefaultIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1z),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballDefault=defineAsyncComponent(()=>__vitePreload(()=>import("./D-mBqycC.js"),__vite__mapDeps([527,528,529,203,44,354,356,526,518,525,517,207,206,178,208,21,7,205,209,519,434]),import.meta.url).then(e=>
44e.default||e.default||e)),LazyMatchCentreFootballEmpty=defineAsyncComponent(()=>__vitePreload(()=>import("./BNZgOPfe.js"),__vite__mapDeps([530,518]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballEventsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1y),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballEvents=defineAsyncComponent(()=>__vitePreload(()=>import("./ZKLD4kLd.js"),__vite__mapDeps([531,526,518,44]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballLineupsEvents=defineAsyncComponent(()=>__vitePreload(()=>import("./BQ0LUcCW.js"),__vite__mapDeps([532,533,44]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballLineupsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./D-Bp_d2y.js"),__vite__mapDeps([79,4,5,6,7,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballLineupsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1x),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballLineups=defineAsyncComponent(()=>__vitePreload(()=>import("./DIXQimI-.js"),__vite__mapDeps([534,354,356,533,44,518,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballScoreCardAnimation=defineAsyncComponent(()=>__vitePreload(()=>import("./n9l18ywm.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballScoreCard=defineAsyncComponent(()=>__vitePreload(()=>import("./DLsrSjKL.js"),__vite__mapDeps([535,528,529,203,44]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballStatsBadge=defineAsyncComponent(()=>__vitePreload(()=>import("./CNMHUKk7.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballStatsBarGroup=defineAsyncComponent(()=>__vitePreload(()=>import("./DOi_vcxq.js"),__vite__mapDeps([536,394]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballStatsCards=defineAsyncComponent(()=>__vitePreload(()=>import("./Dd_YBrok.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballStatsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BiT9M-q4.js"),__vite__mapDeps([80,4,5,6,7,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballStatsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1w),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballStats=defineAsyncComponent(()=>__vitePreload(()=>import("./Im7xvEBQ.js"),__vite__mapDeps([537,518,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballTableIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DIm25t6e.js"),__vite__mapDeps([81,4,5,6,7,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballTableIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1v),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballTable=defineAsyncComponent(()=>__vitePreload(()=>import("./_VtJZa80.js"),__vite__mapDeps([538,354,356,461,518]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreFootballVideo=defineAsyncComponent(()=>__vitePreload(()=>import("./DItNRaiA.js"),__vite__mapDeps([539,540,473,234,474,519,434,513,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreTab=defineAsyncComponent(()=>__vitePreload(()=>import("./CygayQHC.js"),__vite__mapDeps([541,542]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreTabs=defineAsyncComponent(()=>__vitePreload(()=>import("./C1pFnX_r.js"),__vite__mapDeps([543,544,542]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentreIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1u),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchCentre=defineAsyncComponent(()=>__vitePreload(()=>import("./CAK8oHyG.js"),__vite__mapDeps([545,546,547,474,235,359,360,497,544,542,178,23,17,5]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubAdvertIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1t),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubAdvert=defineAsyncComponent(()=>__vitePreload(()=>
44import("./BmUDYhbY.js"),__vite__mapDeps([548,549]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubCardComplexSmall=defineAsyncComponent(()=>__vitePreload(()=>import("./DRpy19Mw.js"),__vite__mapDeps([550,551]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubCardLarge=defineAsyncComponent(()=>__vitePreload(()=>import("./hFefqN6n.js"),__vite__mapDeps([552,553,206]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubCardMedium=defineAsyncComponent(()=>__vitePreload(()=>import("./HTHMzfZA.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1s),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubCard=defineAsyncComponent(()=>__vitePreload(()=>import("./B43GDA6o.js"),__vite__mapDeps([554,505]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubCompetitionSelector=defineAsyncComponent(()=>__vitePreload(()=>import("./DvPiIWvB.js"),__vite__mapDeps([555,556,557]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubLayout=defineAsyncComponent(()=>__vitePreload(()=>import("./DEtZI8BG.js"),__vite__mapDeps([558,559,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubListing=defineAsyncComponent(()=>__vitePreload(()=>import("./7gTON9l2.js"),__vite__mapDeps([560,561,491,562]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubMulticlubOverviewLineup=defineAsyncComponent(()=>__vitePreload(()=>import("./-Meu-XiO.js"),__vite__mapDeps([563,564,242,313]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubMulticlubOverviewMeta=defineAsyncComponent(()=>__vitePreload(()=>import("./BZfd0TaV.js"),__vite__mapDeps([565,566,557]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubMulticlubOverviewScores=defineAsyncComponent(()=>__vitePreload(()=>import("./D-NH5XiY.js"),__vite__mapDeps([567,568]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubMulticlubOverview=defineAsyncComponent(()=>__vitePreload(()=>import("./lzPDJ1wh.js"),__vite__mapDeps([569,570,566,557,568,564,242,313]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCListingEmpty=defineAsyncComponent(()=>__vitePreload(()=>import("./CiziKZLB.js"),__vite__mapDeps([571,572]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCOverviewLegs=defineAsyncComponent(()=>__vitePreload(()=>import("./8g8QOVk1.js"),__vite__mapDeps([510,511]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCOverviewMeta=defineAsyncComponent(()=>__vitePreload(()=>import("./DqPLwMmB.js"),__vite__mapDeps([573,574]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCOverviewScores=defineAsyncComponent(()=>__vitePreload(()=>import("./BQMoowFP.js"),__vite__mapDeps([575,576,206]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCOverviewVisit=defineAsyncComponent(()=>__vitePreload(()=>import("./Bnu5YsPo.js"),__vite__mapDeps([577,511]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCOverview=defineAsyncComponent(()=>__vitePreload(()=>import("./Cp1flhgl.js"),__vite__mapDeps([578,579,574,576,206,510,511,580,360,433,434,435,410,562]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubPDCSubscriptions=defineAsyncComponent(()=>__vitePreload(()=>import("./JhFcVp-0.js"),__vite__mapDeps([581,580,360,433,434,435]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubSidebarListings=defineAsyncComponent(()=>__vitePreload(()=>import("./BEFF8T2V.js"),__vite__mapDeps([582,583]),import.meta.url).then(e=>e.default||e.default||e)),LazyMatchHubSidebar=defineAsyncComponent(()=>__vitePreload(()=>import("./OgCEolVo.js"),__vite__mapDeps([584,585,321,216,150,461,583,557]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsArticleContentsLegacyPageComponent=defineAsyncComponent(()=>__vitePreload(()=>import("./B6a7AyRC.js"),__vite__mapDeps([586,587]),import.meta.url).then(e=>e.default||e.default||e)),LazyNewsArticleContents=defineAsyncComponent(()=>__vitePreload(()=>import("./QA38WEPG.js"),__vite__mapDeps([588,587]),import.meta.url).then(e=>e.default||e.default||e)),LazyPackagesCard=defineAsyncComponent(()=>__vitePreload(()=>import("./5BylW022.js"),__vite__mapDeps([589,590,474]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageBaseElementIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./6oG9KMSQ.js"),__vite__mapDeps([3,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageComponentList=defineAsyncComponent(()=>__vitePreload(()=>import("./DREwettd.js"),__vite__mapDeps([591,592,593]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageComponent=defineAsyncComponent(()=>__vitePreload(()=>import("./CXo6LA2m.js"),__vite__mapDeps([594,593]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageElementSubIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./uIVzBVq8.js"),__vite__mapDeps([35,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageElementSubIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1r),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageElementIndexModel=defineAsyncComponent(()=>__vitePreload(()=>
44import("./B5D_m0Is.js"),__vite__mapDeps([4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageElementIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1q),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageElement=defineAsyncComponent(()=>__vitePreload(()=>import("./CTLd3RhJ.js"),__vite__mapDeps([595,425]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageFixturesIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1p),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageFixtures=defineAsyncComponent(()=>__vitePreload(()=>import("./BVjNM_3O.js"),__vite__mapDeps([596,592,593]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageFooterIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./TxMa1gx2.js").then(e=>e.b),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageFooterIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1o),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageFooter=defineAsyncComponent(()=>__vitePreload(()=>import("./Di_ZSwxJ.js"),__vite__mapDeps([597,425,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageStreamlineIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./X0QhiQDm.js"),__vite__mapDeps([82,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageStreamlineIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1n),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageStreamline=defineAsyncComponent(()=>__vitePreload(()=>import("./-T43X7eK.js"),__vite__mapDeps([598,592,593,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageTeamsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1m),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageTeams=defineAsyncComponent(()=>__vitePreload(()=>import("./BhKNZEq5.js"),__vite__mapDeps([599,592,593]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageUnknownElementIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DxqtAkWS.js"),__vite__mapDeps([9,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyPageUnknownElementIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1l),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyPageUnknownElement=defineAsyncComponent(()=>__vitePreload(()=>import("./BmbB-4Hi.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyPaginationDots=defineAsyncComponent(()=>__vitePreload(()=>import("./W7ZiqNSE.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyPagination=defineAsyncComponent(()=>__vitePreload(()=>import("./CDu8V8RA.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyParticipantCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1k),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyParticipantCard=defineAsyncComponent(()=>__vitePreload(()=>import("./c17kHzQL.js"),__vite__mapDeps([600,493,404,207,206,178,208,21,7,494]),import.meta.url).then(e=>e.default||e.default||e)),LazyParticipantMatchIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1j),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyParticipantMatch=defineAsyncComponent(()=>__vitePreload(()=>import("./Dsp8puEh.js"),__vite__mapDeps([601,602]),import.meta.url).then(e=>e.default||e.default||e)),LazyPrimitiveButton=defineAsyncComponent(()=>__vitePreload(()=>import("./D4rkxVJj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyProfileBiographyIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./CWFnGfFG.js"),__vite__mapDeps([84,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileBiographyIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1i),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileBiography=defineAsyncComponent(()=>__vitePreload(()=>import("./BOmWFPu6.js"),__vite__mapDeps([603,358,346,359,360,213,214,604,495]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileGalleryIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./oa405lJ3.js"),__vite__mapDeps([85,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileGalleryIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1h),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileGallery=defineAsyncComponent(()=>__vitePreload(()=>import("./BCCs3xiM.js"),__vite__mapDeps([605,471,213,214,604]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileHeroIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./CsBiNyeH.js"),__vite__mapDeps([83,4,5,6,7,15,16,17,18,19,20,21]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileHeroIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1g),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileHero=defineAsyncComponent(()=>__vitePreload(()=>import("./C2rsoNtt.js"),__vite__mapDeps([606,494,604,495]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileMatchesIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DA_DKQS6.js"),__vite__mapDeps([86,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileMatchesIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1f),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileMatches=defineAsyncComponent(()=>__vitePreload(()=>import("./Co3R6bOw.js"),__vite__mapDeps([607,602,213,214,604]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileMediaIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BCg6577M.js"),__vite__mapDeps([87,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileMediaIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1e),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileMedia=defineAsyncComponent(()=>__vitePreload(()=>import("./D6ajWeEl.js"),__vite__mapDeps([608,213,214,207,206,178,208,21,7,609,205,209,604]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileRetailIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BqHqNXyI.js"),__vite__mapDeps([88,4,5,6,7,15,16,17,18,19,20,21]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileRetailIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1d),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileRetail=defineAsyncComponent(()=>__vitePreload(()=>import("./Bg46DSGG.js"),__vite__mapDeps([610,207,206,178,208,21,7,420,150,360,604]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileRootIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./TxMa1gx2.js").then(e=>e.e),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileRootIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1c),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileRoot=defineAsyncComponent(()=>__vitePreload(()=>import("./CzWWmUy6.js"),__vite__mapDeps([611,425,224,178,604,612,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileSocialIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./C1-z7Fpv.js"),__vite__mapDeps([89,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileSocialIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1b),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileSocial=defineAsyncComponent(()=>__vitePreload(()=>import("./DrwgJGYp.js"),__vite__mapDeps([613,614,604]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsBreakdownIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1a),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsBreakdown=defineAsyncComponent(()=>__vitePreload(()=>import("./gf2moV9B.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsCardsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$19),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsCards=defineAsyncComponent(()=>__vitePreload(()=>import("./D3PaC22a.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsDartsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$18),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsDarts=defineAsyncComponent(()=>__vitePreload(()=>import("./CMgTb2mK.js"),__vite__mapDeps([615,352]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsGaugeIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$17),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsGauge=defineAsyncComponent(()=>__vitePreload(()=>import("./BgN1BYyK.js"),__vite__mapDeps([616,398,245,338,339,399,617]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsHeadlineIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$16),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsHeadline=defineAsyncComponent(()=>__vitePreload(()=>import("./BxMJH7jN.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsIconCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$15),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsIconCard=defineAsyncComponent(()=>__vitePreload(()=>import("./Cz32ij72.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsListIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$14),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsList=defineAsyncComponent(()=>__vitePreload(()=>import("./BbSQjLyO.js"),__vite__mapDeps([618,617]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsLottieIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$13),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsLottie=defineAsyncComponent(()=>__vitePreload(()=>import("./CsYpcI4x.js"),__vite__mapDeps([619,352,617]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsPassIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$12),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsPass=defineAsyncComponent(()=>__vitePreload(()=>import("./ChQKwILV.js"),__vite__mapDeps([620,401,245,399,396,339,617]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsSubstitutionsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$11),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsSubstitutions=defineAsyncComponent(()=>__vitePreload(()=>import("./D4JLvRvK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./jBX2fcmt.js"),__vite__mapDeps([90,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStatsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$10),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfileStats=defineAsyncComponent(()=>__vitePreload(()=>import("./BufoK4ft.js"),__vite__mapDeps([621,604]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./TxMa1gx2.js").then(e=>e.i),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyProfileIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$$),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyProfile=defineAsyncComponent(()=>__vitePreload(()=>import("./Cx2owNVv.js"),__vite__mapDeps([622,425]),import.meta.url).then(e=>e.default||e.default||e)),LazyRankingsSimpleCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$_),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyRankingsSimpleCard=defineAsyncComponent(()=>__vitePreload(()=>import("./Dx0wFLNa.js"),__vite__mapDeps([623,624,404]),import.meta.url).then(e=>e.default||e.default||e)),LazyRankingsSimpleIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$Z),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyRankingsSimple=defineAsyncComponent(()=>__vitePreload(()=>import("./5cGYuwBl.js"),__vite__mapDeps([625,626,487,624,404,467,463]),import.meta.url).then(e=>e.default||e.default||e)),LazyScheduleCardLarge=defineAsyncComponent(()=>__vitePreload(()=>import("./CAxkPUlR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyScheduleCard=defineAsyncComponent(()=>__vitePreload(()=>import("./GjXW5rqe.js"),__vite__mapDeps([627,628]),import.meta.url).then(e=>e.default||e.default||e)),LazyScheduleCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./CVXUKje6.js"),__vite__mapDeps([629,630,628]),import.meta.url).then(e=>e.default||e.default||e)),LazyScheduleDrawerItem=defineAsyncComponent(()=>__vitePreload(()=>import("./kRJonVhE.js"),__vite__mapDeps([631,547,474,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyScheduleDrawer=defineAsyncComponent(()=>__vitePreload(()=>import("./BRiIKV48.js"),__vite__mapDeps([632,546,547,474,235,359,360]),import.meta.url).then(e=>e.default||e.default||e)),LazySectionSegmentationIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BK1JsQ3s.js"),__vite__mapDeps([36,35,6,7,5]),import.meta.url).then(e=>e.default||e.default||e)),LazySectionTitleAndButtonsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DcETsEPX.js"),__vite__mapDeps([34,35,6,7,5]),import.meta.url).then(e=>e.default||e.default||e)),LazySectionTitleAndButtons=defineAsyncComponent(()=>__vitePreload(()=>import("./BrQVkaKf.js"),__vite__mapDeps([633,634,150]),import.meta.url).then(e=>e.default||e.default||e)),LazySectionIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./TxMa1gx2.js").then(e=>e.c),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazySectionIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>import("./DhOWJ3tu.js"),__vite__mapDeps([16,17,5]),import.meta.url).then(e=>e.default||e.default||e)),LazySection=defineAsyncComponent(()=>__vitePreload(()=>import("./BNoa_F1s.js"),__vite__mapDeps([635,634,150,425,224,178,24,97,96]),import.meta.url).then(e=>e
44.default||e.default||e)),LazySocials=defineAsyncComponent(()=>__vitePreload(()=>import("./BeTm0CET.js"),__vite__mapDeps([636,614]),import.meta.url).then(e=>e.default||e.default||e)),LazySpinner=defineAsyncComponent(()=>__vitePreload(()=>import("./DCI4tCee.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySponsorBannerListIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$Y),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazySponsorBannerList=defineAsyncComponent(()=>__vitePreload(()=>import("./BZkFK_Qe.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazySponsorBannerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$X),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazySponsorBanner=defineAsyncComponent(()=>__vitePreload(()=>import("./BkvYc80L.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyTabsBoxesIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$W),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTabsBoxes=defineAsyncComponent(()=>__vitePreload(()=>import("./B3YttNSY.js"),__vite__mapDeps([637,491]),import.meta.url).then(e=>e.default||e.default||e)),LazyTeamPlayerFiltersIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$V),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTeamPlayerFilters=defineAsyncComponent(()=>__vitePreload(()=>import("./CEIdCbFF.js"),__vite__mapDeps([638,409]),import.meta.url).then(e=>e.default||e.default||e)),LazyTeamPlayerListingIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$U),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTeamPlayerListing=defineAsyncComponent(()=>__vitePreload(()=>import("./CvAXY33p.js"),__vite__mapDeps([639,493,404,207,206,178,208,21,7,494]),import.meta.url).then(e=>e.default||e.default||e)),LazyTeamTabsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$T),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTeamTabs=defineAsyncComponent(()=>__vitePreload(()=>import("./CijmkwQ4.js"),__vite__mapDeps([640,354,356]),import.meta.url).then(e=>e.default||e.default||e)),LazyTransitionFade=defineAsyncComponent(()=>__vitePreload(()=>import("./Cb3Cgzn4.js"),__vite__mapDeps([641,609]),import.meta.url).then(e=>e.default||e.default||e)),LazyTransitionInViewIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$S),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTransitionInView=defineAsyncComponent(()=>__vitePreload(()=>import("./S0IKgZdF.js"),__vite__mapDeps([642,213,214]),import.meta.url).then(e=>e.default||e.default||e)),LazyTransitionIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$R),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTypographyIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./C8oKskU6.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyTypographyIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$Q),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyTypography=defineAsyncComponent(()=>__vitePreload(()=>import("./Dm7Y7EaN.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetAdSnackMediaPlaceholder=defineAsyncComponent(()=>__vitePreload(()=>import("./C3KuOhM3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetAdSnackMediaIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./0o03n4g6.js"),__vite__mapDeps([37,4,5,6,7,38,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetAdSnackMediaIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>import("./D1qB2YTK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetAdSnackMedia=defineAsyncComponent(()=>__vitePreload(()=>import("./Bk9V39zY.js"),__vite__mapDeps([643,38]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetBrazeIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BLutezMZ.js"),__vite__mapDeps([39,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetBrazeIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$P),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetBraze=defineAsyncComponent(()=>__vitePreload(()=>import("./CJoUpqgM.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardFixtureIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./a5C_4GJn.js"),__vite__mapDeps([42,4,5,6,7,43,44,20,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardFixtureIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$O),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardFixture=defineAsyncComponent(()=>__vitePreload(()=>import("./_cDmEPjK.js"),__vite__mapDeps([644,200,201,202,203,204,205,206,207,178,208,21,7,209,210,211,212,484,435]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardNewsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BLuJ9wvD.js"),__vite__mapDeps([93,4,5,6,7,43,44,15,16,17,18,19,20,21,23,24,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardNewsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$N),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardNews=defineAsyncComponent(()=>__vitePreload(()=>import("./CNWZWeJw.js"),__vite__mapDeps([645,384,207,206,178,208,21,7,484,435,482,209,483]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardProductIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./C62F_NuA.js"),__vite__mapDeps([94,4,5,6,7,15,16,17,18,19,20,21,23,24,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardProductIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$M),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardProduct=defineAsyncComponent(()=>__vitePreload(()=>import("./D2414lDc.js"),__vite__mapDeps([646,386,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardPromoIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BisQtGjO.js"),__vite__mapDeps([95,4,5,6,7,18,15,16,17,19,20,21,23,24,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardPromoIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$L),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardPromo=defineAsyncComponent(()=>__vitePreload(()=>import("./BFVUvtZ_.js"),__vite__mapDeps([647,388,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardVideoIndexModel=defineAsyncComponent(()=>__vitePreload(()=>
44import("./-cvUwFTe.js"),__vite__mapDeps([92,4,5,6,7,43,44,15,16,17,18,19,20,21,23,24,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardVideoIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$K),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetCardVideo=defineAsyncComponent(()=>__vitePreload(()=>import("./BT67aI-O.js"),__vite__mapDeps([648,205,206,207,178,208,21,7,209,484,435,483]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetDividerIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./G8Pzfl_k.js"),__vite__mapDeps([45,4,5,6,7,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetDividerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$J),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetDivider=defineAsyncComponent(()=>__vitePreload(()=>import("./DnuPc97V.js"),__vite__mapDeps([649,176,177,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEPGCardNextUp=defineAsyncComponent(()=>__vitePreload(()=>import("./DB1vnNFR.js"),__vite__mapDeps([650,206]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEPGCardSchedule=defineAsyncComponent(()=>__vitePreload(()=>import("./CkbNlJ1E.js"),__vite__mapDeps([651,652]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEPGScheduleIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$I),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEPGSchedule=defineAsyncComponent(()=>__vitePreload(()=>import("./t7S3yzbj.js"),__vite__mapDeps([653,654,652]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEPGIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Bxu4O--v.js"),__vite__mapDeps([75,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEPG=defineAsyncComponent(()=>__vitePreload(()=>import("./DMeyf7yj.js"),__vite__mapDeps([655,473,234,474,206,654,652,150,235]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEmbedIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DBNL-TqI.js"),__vite__mapDeps([70,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEmbedIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$H),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEmbed=defineAsyncComponent(()=>__vitePreload(()=>import("./DzePmzYj.js"),__vite__mapDeps([656,216,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventGridIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./CbRtnKkD.js"),__vite__mapDeps([25,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventGridIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$G),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventGrid=defineAsyncComponent(()=>__vitePreload(()=>import("./CWcnLogZ.js"),__vite__mapDeps([657,444,442,206,440,207,178,208,21,7,445,612,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventRailIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./B5F8YbeE.js"),__vite__mapDeps([26,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventRailIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$F),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventRail=defineAsyncComponent(()=>__vitePreload(()=>import("./DLTrf7ao.js"),__vite__mapDeps([658,442,206,440,207,178,208,21,7,126,612,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventTakeoverHeader=defineAsyncComponent(()=>__vitePreload(()=>import("./B5g1Djo3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventTakeoverIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Dn5pMltd.js"),__vite__mapDeps([27,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventTakeoverIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$E),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetEventTakeover=defineAsyncComponent(()=>__vitePreload(()=>import("./Ea71kKDq.js"),__vite__mapDeps([659,546,547,474,235,359,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetFormItem=defineAsyncComponent(()=>__vitePreload(()=>import("./C46Wo7jz.js"),__vite__mapDeps([660,248]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetFormIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./NRpdhhxT.js"),__vite__mapDeps([72,4,5,6,7,21,23,17]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetFormIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$D),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetForm=defineAsyncComponent(()=>__vitePreload(()=>import("./BZAWeHdA.js"),__vite__mapDeps([661,247,178,248]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetGalleryIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./CU1EAzDZ.js"),__vite__mapDeps([73,4,5,6,7,23,17,20]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetGalleryIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$C),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetGallery=defineAsyncComponent(()=>__vitePreload(()=>import("./Dc1aVXZ-.js"),__vite__mapDeps([662,471,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImageLinkIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./CoY53QKV.js"),__vite__mapDeps([28,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImageLinkIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$B),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImageLink=defineAsyncComponent(()=>__vitePreload(()=>import("./BioC3H9d.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImageIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./L9ZTUhdB.js"),__vite__mapDeps([29,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImageIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$A),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImage=defineAsyncComponent(()=>__vitePreload(()=>import("./8dBNFnj3.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImpactCTAContent=defineAsyncComponent(()=>__vitePreload(()=>import("./D9zKrff7.js"),__vite__mapDeps([663,664]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImpactCTAIndexModel=defineAsyncComponent(()=>__vitePreload(()=>
44import("./h5WniSds.js"),__vite__mapDeps([30,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImpactCTAIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$z),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetImpactCTA=defineAsyncComponent(()=>__vitePreload(()=>import("./CbSZ5_Iy.js"),__vite__mapDeps([665,664,489,214]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchCentreDartsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$y),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchCentreDarts=defineAsyncComponent(()=>__vitePreload(()=>import("./DT-PTuK8.js"),__vite__mapDeps([666,499,432,433,434,435,410,545,546,547,474,235,359,360,497,544,542,178,23,17,5]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchCentreFootballIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./TxMa1gx2.js").then(e=>e.d),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchCentreFootballIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>import("./DGA_1hxs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchCentreFootball=defineAsyncComponent(()=>__vitePreload(()=>import("./SdEuD1NS.js"),__vite__mapDeps([667,515,540,473,234,474,519,434,513,235,425,545,546,547,359,360,497,544,542,178,23,17,5,77]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubDarts=defineAsyncComponent(()=>__vitePreload(()=>import("./CtuQIu6q.js"),__vite__mapDeps([668,549,572,553,206,505,561,491,562,579,574,576,510,511,580,360,433,434,435,410,359,559]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMatchHubMultiClubFootball=defineAsyncComponent(()=>__vitePreload(()=>import("./BE64ssnB.js"),__vite__mapDeps([669,585,321,216,150,461,583,557,551,561,491,562,570,566,568,564,242,313,556,559,360,434]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMenuLinksIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./eMkMUelK.js"),__vite__mapDeps([69,4,5,6,7,18,23,17,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMenuLinksIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$x),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetMenuLinks=defineAsyncComponent(()=>__vitePreload(()=>import("./Cr6jNuWS.js"),__vite__mapDeps([670,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsGridComplex=defineAsyncComponent(()=>__vitePreload(()=>import("./CcLFmNvB.js"),__vite__mapDeps([671,222,207,206,178,208,21,7,223,209]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterSignUpIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DZQilzRx.js"),__vite__mapDeps([46,4,5,6,7,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterSignUpIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$w),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetNewsletterSignUp=defineAsyncComponent(()=>__vitePreload(()=>import("./DHn3R58v.js"),__vite__mapDeps([672,409,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPDCStreamlineVideoCarouselIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BnlhXjV8.js"),__vite__mapDeps([48,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetPDCStreamlineVideoCarouselIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$v),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantCardIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DwrZnp9h.js"),__vite__mapDeps([47,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$u),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantCard=defineAsyncComponent(()=>__vitePreload(()=>import("./D9__JhAa.js"),__vite__mapDeps([673,493,404,207,206,178,208,21,7,494]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantComparisonIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Ke6ZHzUt.js"),__vite__mapDeps([32,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantComparisonIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$t),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantComparison=defineAsyncComponent(()=>__vitePreload(()=>import("./DLPEr0RW.js"),__vite__mapDeps([674,419,406,404,417,394,415,413,408,409,410,411,420,150,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantRankingsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DuNDzYR7.js"),__vite__mapDeps([33,4,5,6,7,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantRankingsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$s),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetParticipantRankings=defineAsyncComponent(()=>__vitePreload(()=>import("./B6YpSdTW.js"),__vite__mapDeps([675,626,487,624,404,467,463]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetQuoteIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DHcQsujB.js"),__vite__mapDeps([49,4,5,6,7,23,17,15,16,18,19,20,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetQuoteIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$r),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetQuote=defineAsyncComponent(()=>__vitePreload(()=>import("./1qP6TDJK.js"),__vite__mapDeps([676,251,178,23,17,5]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSocialsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BkjK94pn.js"),__vite__mapDeps([50,4,5,6,7,23,17,20,19,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSocialsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$q),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSocials=defineAsyncComponent(()=>__vitePreload(()=>import("./KjCyZ0tU.js"),__vite__mapDeps([677,614,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsorsCardIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$p),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsorsCard=defineAsyncComponent(()=>__vitePreload(()=>import("./BToTjjq5.js"),__vite__mapDeps([678,679]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsorsRowIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$o),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsorsRow=defineAsyncComponent(()=>__vitePreload(()=>import("./CEj-8iVi.js"),__vite__mapDeps([680,681,679]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsorsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./C3jzPuBF.js"),__vite__mapDeps([51,4,5,6,7,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsorsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$n),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetSponsors=defineAsyncComponent(()=>__vitePreload(()=>import("./Ctsawdch.js"),__vite__mapDeps([682,681,679,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStorytellerClipsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Lb2AdU3y.js"),__vite__mapDeps([41,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStorytellerStoriesIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./VulgifXH.js"),__vite__mapDeps([40,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStorytellerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$m),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStoryteller=defineAsyncComponent(()=>__vitePreload(()=>import("./BPDS1gRn.js"),__vite__mapDeps([683,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineBannerTextFriendlyIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DQg5aFkK.js"),__vite__mapDeps([52,4,5,6,7,43,44,20,23,17,21,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineBannerTextFriendlyIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$l),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineBannerTextFriendly=defineAsyncComponent(()=>__vitePreload(()=>import("./kAf6ikRy.js"),__vite__mapDeps([684,350,206,481,178,482,209,483,484,435,485]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCalendarIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BZrtwGVU.js"),__vite__mapDeps([53,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCalendarIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$k),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCarouselIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./NM1GC87g.js"),__vite__mapDeps([54,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCarouselIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$j),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCarousel=defineAsyncComponent(()=>__vitePreload(()=>import("./2aCYKs93.js"),__vite__mapDeps([685,205,206,207,178,208,21,7,126,209,483,612,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCollectionIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./BPRuAw7r.js"),__vite__mapDeps([55,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCollectionIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$i),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineCollection=defineAsyncComponent(()=>__vitePreload(()=>import("./DebUP8uC.js"),__vite__mapDeps([686,289,207,206,178,208,21,7,290,126,435,612,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineContentIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Bfg9wZ9C.js"),__vite__mapDeps([56,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineContentIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$h),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineContent=defineAsyncComponent(()=>__vitePreload(()=>import("./BZ6UdorB.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineFAQIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DytbtGs3.js"),__vite__mapDeps([57,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineFAQIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$g),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineFixturesIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./Bn9T1owG.js"),__vite__mapDeps([74,4,5,6,7,18,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineFixturesIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$f),void 0,import.meta.url).then(e=>
44e.default||e.default||e)),LazyWidgetStreamlineFixtures=defineAsyncComponent(()=>__vitePreload(()=>import("./D0T3W1WQ.js"),__vite__mapDeps([687,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineMembershipDrawer=defineAsyncComponent(()=>__vitePreload(()=>import("./BEXPBEnt.js"),__vite__mapDeps([688,689,354,356,590,474,359,360,272,111]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineNextLiveMatchHeroIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./LV8qwQ36.js"),__vite__mapDeps([58,4,5,6,7,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineNextLiveMatchHeroIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$e),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePackagesDrawerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$d),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePackagesDrawer=defineAsyncComponent(()=>__vitePreload(()=>import("./BlNQKQCH.js"),__vite__mapDeps([690,691,590,474,111,359,360]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePackagesIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DNPvvq3B.js"),__vite__mapDeps([59,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePackagesIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$c),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePackages=defineAsyncComponent(()=>__vitePreload(()=>import("./CWaqAHm_.js"),__vite__mapDeps([692,691,590,474,111]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlayerIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DWQAd1qK.js"),__vite__mapDeps([60,4,5,6,7,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlayerIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$b),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlayer=defineAsyncComponent(()=>__vitePreload(()=>import("./BfuoLFIv.js"),__vite__mapDeps([693,473,234,474,206,178,209,513,235,483]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlayersIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./D4o5CYcd.js"),__vite__mapDeps([61,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlayersIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$a),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlayers=defineAsyncComponent(()=>__vitePreload(()=>import("./B8VKZg7c.js"),__vite__mapDeps([694,289,207,206,178,208,21,7,290,126,411,612,150]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlaylistsIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./D2cbqEaR.js"),__vite__mapDeps([76,4,5,6,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlaylistsIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$9),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePlaylists=defineAsyncComponent(()=>__vitePreload(()=>import("./-Oq8pJp8.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePromoIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DwGLHWNq.js"),__vite__mapDeps([62,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlinePromoIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$8),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineScheduleIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DrdNOTI1.js"),__vite__mapDeps([64,4,5,6,7,23,17,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineScheduleIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$7),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineSchedule=defineAsyncComponent(()=>__vitePreload(()=>import("./CJbqopYI.js"),__vite__mapDeps([695,630,628,546,547,474,235,359,360,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineScheduleListIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DlgkAHsZ.js"),__vite__mapDeps([63,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineScheduleListIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$6),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineScheduleList=defineAsyncComponent(()=>__vitePreload(()=>import("./JrMvRfeZ.js"),__vite__mapDeps([696,445,440,546,547,474,235,359,360,126]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineSimpleHeroIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./nJgG8Gqe.js"),__vite__mapDeps([65,4,5,6,7,15,16,17,18,19,20,21,23,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineSimpleHeroIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$5),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineSpotlightSmallIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DxHX5CmE.js"),__vite__mapDeps([68,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineSpotlightSmallIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$4),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineVideoMembershipCard=defineAsyncComponent(()=>__vitePreload(()=>import("./Ltivxco8.js"),__vite__mapDeps([697,698]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineVideoMembershipIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./D0S4xsqV.js"),__vite__mapDeps([71,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineVideoMembershipIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$3),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetStreamlineVideoMembership=defineAsyncComponent(()=>__vitePreload(()=>import("./CFmBID35.js"),__vite__mapDeps([699,698,474]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetTextIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./brGuT7Qt.js"),__vite__mapDeps([67,4,5,6,7,21,18,15,16,17,19,20,23,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetTextIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$2),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetText=defineAsyncComponent(()=>__vitePreload(()=>import("./jSDDX4Fr.js"),__vite__mapDeps([700,178]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetV2LeagueTableIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./DuWDUTS9.js"),__vite__mapDeps([31,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetV2LeagueTableIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types$1),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetV2LeagueTable=defineAsyncComponent(()=>__vitePreload(()=>import("./BRmrkSoq.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetWeglotIndexModel=defineAsyncComponent(()=>__vitePreload(()=>import("./wgyolHp1.js"),__vite__mapDeps([701,4,5,6,7,8]),import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetWeglotIndexTypes=defineAsyncComponent(()=>__vitePreload(()=>Promise.resolve().then(()=>index_types),void 0,import.meta.url).then(e=>e.default||e.default||e)),LazyWidgetWeglot=defineAsyncComponent(()=>__vitePreload(()=>import("./CXx4HHhu.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCardNews=defineAsyncComponent(()=>__vitePreload(()=>import("./_27yrnr0.js"),__vite__mapDeps([702,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCardPromo=defineAsyncComponent(()=>__vitePreload(()=>import("./DJTENDi6.js"),__vite__mapDeps([703,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCardVideoDurationBadge=defineAsyncComponent(()=>__vitePreload(()=>import("./kJVn7gkR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCardVideoEntitlementBadge=defineAsyncComponent(()=>__vitePreload(()=>
44import("./hwV7WNTo.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCardVideoPlayButton=defineAsyncComponent(()=>__vitePreload(()=>import("./Cx1Hep-P.js"),[],import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCardVideo=defineAsyncComponent(()=>__vitePreload(()=>import("./rsbR2YUs.js"),__vite__mapDeps([704,207,206,178,208,21,7]),import.meta.url).then(e=>e.default||e.default||e)),LazyXContentCard=defineAsyncComponent(()=>__vitePreload(()=>import("./CiuWQ_V3.js"),__vite__mapDeps([705,99]),import.meta.url).then(e=>e.default||e.default||e)),lazyGlobalComponents=[["LazyWidget",LazyLazyWidget],["AccordionComplex",LazyAccordionComplex],["AccordionItem",LazyAccordionItem],["CalendarItem",LazyCalendarItem],["CalendarPassActions",LazyCalendarPassActions],["CalendarPassContent",LazyCalendarPassContent],["CalendarPassCountdown",LazyCalendarPassCountdown],["CalendarPassHeader",LazyCalendarPassHeader],["CalendarPassImage",LazyCalendarPassImage],["CalendarPass",LazyCalendarPass],["CalendarTabbed",LazyCalendarTabbed],["Calendar",LazyCalendar],["CleengAccount",LazyCleengAccount],["CleengCheckoutIndexTypes",LazyCleengCheckoutIndexTypes],["CleengCheckout",LazyCleengCheckout],["ContentCardContent",LazyContentCardContent],["ContentCardFixtureActions",LazyContentCardFixtureActions],["ContentCardFixtureCompleted",LazyContentCardFixtureCompleted],["ContentCardFixtureHeader",LazyContentCardFixtureHeader],["ContentCardFixtureMatchDetails",LazyContentCardFixtureMatchDetails],["ContentCardFixtureStreaming",LazyContentCardFixtureStreaming],["ContentCardFixtureUpcoming",LazyContentCardFixtureUpcoming],["ContentCardPlayer",LazyContentCardPlayer],["ContentCardProduct",LazyContentCardProduct],["ContentCardVideoDurationBadge",LazyContentCardVideoDurationBadge],["ContentCardVideoEntitlementBadge",LazyContentCardVideoEntitlementBadge],["ContentCardVideoPlayButton",LazyContentCardVideoPlayButton],["ContentCardWrapper",LazyContentCardWrapper],["ContentCard",LazyContentCard],["ContentCarousel",LazyContentCarousel],["ContentContainerAccordionItem",LazyContentContainerAccordionItem],["ContentContainerAccordion",LazyContentContainerAccordion],["ContentContainerGridLayout",LazyContentContainerGridLayout],["ContentContainerGrid",LazyContentContainerGrid],["ContentContainerSplit",LazyContentContainerSplit],["ContentContainerTabbedActions",LazyContentContainerTabbedActions],["ContentContainerTabbed",LazyContentContainerTabbed],["ContentWrapper",LazyContentWrapper],["EmbedDefault",LazyEmbedDefault],["EmbedFantasy",LazyEmbedFantasy],["FixtureCardActions",LazyFixtureCardActions],["FixtureCardHeader",LazyFixtureCardHeader],["FixtureCountdown",LazyFixtureCountdown],["FixtureUpcomingFixture",LazyFixtureUpcomingFixture],["Fixture",LazyFixture],["FooterAppSharing",LazyFooterAppSharing],["FooterMenu",LazyFooterMenu],["FooterNewsletter",LazyFooterNewsletter],["FooterQuickLinks",LazyFooterQuickLinks],["FooterSimple",LazyFooterSimple],["FooterSocialSharing",LazyFooterSocialSharing],["FooterSponsors",LazyFooterSponsors],["FooterTagLine",LazyFooterTagLine],["ForegroundImageLegacy",LazyForegroundImageLegacy],["HeaderActions",LazyHeaderActions],["HeaderComplex",LazyHeaderComplex],["HeaderContainer",LazyHeaderContainer],["HeaderGlobalNav",LazyHeaderGlobalNav],["HeaderMainNav",LazyHeaderMainNav],["HeaderPrimaryNav",LazyHeaderPrimaryNav],["HeaderSponsors",LazyHeaderSponsors],["HeaderSponsorsBanner",LazyHeaderSponsorsBanner],["HeroCarousel",LazyHeroCarousel],["HeroDynamic",LazyHeroDynamic],["HeroImpact",LazyHeroImpact],["HeroSimpleLegacy",LazyHeroSimpleLegacy],["HeroSlideItem",LazyHeroSlideItem],["HeroSlide",LazyHeroSlide],["HorizontalRule",LazyHorizontalRule],["ListingsFixtures",LazyListingsFixtures],["ListingsNews",LazyListingsNews],["ListingsVideoNextLiveMatchHero",LazyListingsVideoNextLiveMatchHero],["ListingsVideo",LazyListingsVideo],["Loader",LazyLoader],["LottieAnimation",LazyLottieAnimation],["MenuComplexHero",LazyMenuComplexHero],["MenuComplex",LazyMenuComplex],["MenuContainer",LazyMenuContainer],["MenuSimpleChild",LazyMenuSimpleChild],["MenuSimplePrimary",LazyMenuSimplePrimary],["MenuSimpleSecondary",LazyMenuSimpleSecondary],["MenuSimple",LazyMenuSimple],["NavTeams",LazyNavTeams],["NewsAccordion",LazyNewsAccordion],["NewsAllFixtures",LazyNewsAllFixtures],["NewsAuthor",LazyNewsAuthor],["NewsCard",LazyNewsCard],["NewsCardSmall",LazyNewsCardSmall],["NewsClubTV",LazyNewsClubTV],["NewsContact",LazyNewsContact],["NewsCta",LazyNewsCta],["NewsFileDownload",LazyNewsFileDownload],["NewsFixturesList",LazyNewsFixturesList],["NewsFootballBasicLineup",LazyNewsFootballBasicLineup],["NewsFootballBasicMatchStats",LazyNewsFootballBasicMatchStats],["NewsForm",LazyNewsForm],["NewsHorizontalLine",LazyNewsHorizontalLine],["NewsImage",LazyNewsImage],["NewsImageGallery",LazyNewsImageGallery],["NewsNewsCarousel",LazyNewsNewsCarousel],["NewsNewsCategory",LazyNewsNewsCategory],["NewsQuote",LazyNewsQuote],["NewsSocialSharingEmail",LazyNewsSocialSharingEmail],["NewsSocialSharingFacebook",LazyNewsSocialSharingFacebook],["NewsSocialSharingLink",LazyNewsSocialSharingLink],["NewsSocialSharingWebShare",LazyNewsSocialSharingWebShare],["NewsSocialSharingX",LazyNewsSocialSharingX],["NewsStreamlineEmbed",
44LazyNewsStreamlineEmbed],["NewsSubscriptionsCTA",LazyNewsSubscriptionsCTA],["NewsTextBlock",LazyNewsTextBlock],["NewsThirdPartyV2",LazyNewsThirdPartyV2],["NewsThirdParty",LazyNewsThirdParty],["NewsUpcomingFixtures",LazyNewsUpcomingFixtures],["NewsVimeo",LazyNewsVimeo],["NewsYoutubeV2",LazyNewsYoutubeV2],["OverlayMatchdayTakeover",LazyOverlayMatchdayTakeover],["OverlayPromo",LazyOverlayPromo],["PackageButton",LazyPackageButton],["PlayerStreamAMGEmbed",LazyPlayerStreamAMGEmbed],["PlayerStreamAMG",LazyPlayerStreamAMG],["PlayerStreamlineAudio",LazyPlayerStreamlineAudio],["PlayerStreamlineEmbed",LazyPlayerStreamlineEmbed],["PlayerStreamline",LazyPlayerStreamline],["PrimitiveBreadcrumbs",LazyPrimitiveBreadcrumbs],["PrimitiveHeading",LazyPrimitiveHeading],["PrimitiveLogo",LazyPrimitiveLogo],["PrimitiveMatchScore",LazyPrimitiveMatchScore],["SearchInput",LazySearchInput],["SearchTabs",LazySearchTabs],["Search",LazySearch],["SearchTypes",LazySearchTypes],["SharingApps",LazySharingApps],["SponsorListingSponsor",LazySponsorListingSponsor],["StreamAmgButton",LazyStreamAmgButton],["StreamButton",LazyStreamButton],["StreamlineButton",LazyStreamlineButton],["Subscribe",LazySubscribe],["SubscriptionPackagesCard",LazySubscriptionPackagesCard],["SubscriptionPackages",LazySub
44scriptionPackages],["TabsSimple",LazyTabsSimple],["TabsSlideshow",LazyTabsSlideshow],["TeamsLoanedPlayerSkeleton",LazyTeamsLoanedPlayerSkeleton],["TeamsLoanedPlayer",LazyTeamsLoanedPlayer],["TeamsLoaned",LazyTeamsLoaned],["ToastContainer",LazyToastContainer],["Toast",LazyToast],["Tooltip",LazyTooltip],["VideoDetails",LazyVideoDetails],["VideosBrowseFilters",LazyVideosBrowseFilters],["VideosBrowse",LazyVideosBrowse],["VideosCategories",LazyVideosCategories],["WidgetAdSlot",LazyWidgetAdSlot],["WidgetAdvertisingSlot",LazyWidgetAdvertisingSlot],["WidgetButton",LazyWidgetButton],["WidgetContentListItem",LazyWidgetContentListItem],["WidgetContentList",LazyWidgetContentList],["WidgetEmbedCustomLeagueTable",LazyWidgetEmbedCustomLeagueTable],["WidgetEmbedDizplai",LazyWidgetEmbedDizplai],["WidgetHighlightSlot",LazyWidgetHighlightSlot],["WidgetHorizontalLine",LazyWidgetHorizontalLine],["WidgetHorizontalSponsor",LazyWidgetHorizontalSponsor],["WidgetImageBlock",LazyWidgetImageBlock],["WidgetLeagueTableSkeleton",LazyWidgetLeagueTableSkeleton],["WidgetLeagueTable",LazyWidgetLeagueTable],["WidgetLineUpsItem",LazyWidgetLineUpsItem],["WidgetLineUps",LazyWidgetLineUps],["WidgetManagedAds",LazyWidgetManagedAds],["WidgetMatchCentre",LazyWidgetMatchCentre],["WidgetMatchHubCompetitionSelector",LazyWidgetMatchHubCompetitionSelector],["WidgetMatchHubCompetitionSelectorCompetitionTab",LazyWidgetMatchHubCompetitionSelectorCompetitionTab],["WidgetMatchHubDateTabDateCard",LazyWidgetMatchHubDateTabDateCard],["WidgetMatchHubDateTab",LazyWidgetMatchHubDateTab],["WidgetMatchHubMatchCard",LazyWidgetMatchHubMatchCard],["WidgetMatchHubMatchOverview",LazyWidgetMatchHubMatchOverview],["WidgetMatchHubMatchOverviewSectionsMatchLineup",LazyWidgetMatchHubMatchOverviewSectionsMatchLineup],["WidgetMatchHubMatchOverviewSectionsMatchMeta",LazyWidgetMatchHubMatchOverviewSectionsMatchMeta],["WidgetMatchHubMatchOverviewSectionsMatchScores",LazyWidgetMatchHubMatchOverviewSectionsMatchScores],["WidgetMatchHubMatchSidebar",LazyWidgetMatchHubMatchSidebar],["WidgetMatchHubMatchSidebarNewsListings",LazyWidgetMatchHubMatchSidebarNewsListings],["WidgetMatchHub",LazyWidgetMatchHub],["WidgetMatchStats",LazyWidgetMatchStats],["WidgetMinByMin",LazyWidgetMinByMin],["WidgetNewsGrid",LazyWidgetNewsGrid],["WidgetNewsletterFormFormField",LazyWidgetNewsletterFormFormField],["WidgetNewsletterFormRequiredField",LazyWidgetNewsletterFormRequiredField],["WidgetNewsletterForm
44Countries",LazyWidgetNewsletterFormCountries],["WidgetNewsletterFormDob",LazyWidgetNewsletterFormDob],["WidgetNewsletterForm",LazyWidgetNewsletterForm],["WidgetPlayerCard",LazyWidgetPlayerCard],["WidgetPlayerRetail",LazyWidgetPlayerRetail],["WidgetPlayerSocials",LazyWidgetPlayerSocials],["WidgetPlayerStatsBar",LazyWidgetPlayerStatsBar],["WidgetPlayerStatsCell",LazyWidgetPlayerStatsCell],["WidgetPlayerStats",LazyWidgetPlayerStats],["WidgetScoresItem",LazyWidgetScoresItem],["WidgetScores",LazyWidgetScores],["WidgetTextBlock",LazyWidgetTextBlock],["WidgetToggle",LazyWidgetToggle],["WidgetVideoPromo",LazyWidgetVideoPromo],["WidgetVideoSpotlightSmall",LazyWidgetVideoSpotlightSmall],["SSOHeaderControl",LazySSOHeaderControl],["SSOLoginForm",LazySSOLoginForm],["SSOLogo",LazySSOLogo],["SSOOverlay",LazySSOOverlay],["SSOPasswordInput",LazySSOPasswordInput],["SSOPreferencesCheckbox",LazySSOPreferencesCheckbox],["SSOPreferencesGroup",LazySSOPreferencesGroup],["SSOPreferencesRadio",LazySSOPreferencesRadio],["SSOPreferencesText",LazySSOPreferencesText],["SSORegisterForm",LazySSORegisterForm],["SSOResetPassword",LazySSOResetPassword],["SSOSetNewPassword",LazySSOSetNewPassword],["SSOSideBarAccount",LazySSOSideBarAccount],["SSOSideBarDefault",LazySSOSideBarDefault],["SSOSideBarPreferences",LazySSOSideBarPreferences],["SSOSideBarUser",LazySSOSideBarUser],["SSOSideBar",LazySSOSideBar],["SSOVerifyAccount",LazySSOVerifyAccount],["BaseIcon",LazyBaseIcon],["AvatarGroup",LazyAvatarGroup],["AvatarIndexTypes",LazyAvatarIndexTypes],["Avatar",LazyAvatar],["BadgeIndexTypes",LazyBadgeIndexTypes],["Badge",LazyBadge],["BannerTextFriendlyIndexTypes",LazyBannerTextFriendlyIndexTypes],["BannerTextFriendly",LazyBannerTextFriendly],["BaseLottieAnimation",LazyBaseLottieAnimation],["BaseTabV2",LazyBaseTabV2],["BaseTabsV2",LazyBaseTabsV2],["BiographyIndexTypes",LazyBiographyIndexTypes],["Biography",LazyBiography],["BrandGuidelinesBackground",LazyBrandGuidelinesBackground],["BrandGuidelinesButtons",LazyBrandGuidelinesButtons],["BrandGuidelinesCards",LazyBrandGuidelinesCards],["BrandGuidelinesColours",LazyBrandGuidelinesColours],["BrandGuidelinesFonts",LazyBrandGuidelinesFonts],["BrandGuidelinesForeground",LazyBrandGuidelinesForeground],["BrandGuidelines",LazyBrandGuidelines],["CardFixtureActions",LazyCardFixtureActions],["CardFixtureBroadcasters",LazyCardFixtureBroadcasters],["CardFixtureHeader",LazyCardFixtureHeader],["CardFixtureResultMultiClubIndexModel",LazyCardFixtureResultMultiClubIndexModel],["CardFixtureResultMultiClubIndexTypes",LazyCardFixtureResultMultiClubIndexTypes],["CardFixtureResultMultiClub",LazyCardFixtureResultMultiClub],["CardFixtureResultIndexModel",LazyCardFixtureResultIndexModel],["CardFixtureResultIndexTypes",LazyCardFixtureResultIndexTypes],["CardFixtureResult",LazyCardFixtureResult],["CardFixtureUpcomingMultiClubIndexModel",LazyCardFixtureUpcomingMultiClubIndexModel],["CardFixtureUpcomingMultiClubIndexTypes",LazyCardFixtureUpcomingMultiClubIndexTypes],["CardFixtureUpcomingMultiClub",LazyCardFixtureUpcomingMultiClub],["CardFixtureUpcomingIndexModel",LazyCardFixtureUpcomingIndexModel],["CardFixtureUpcomingIndexTypes",LazyCardFixtureUpcomingIndexTypes],["CardFixtureUpcoming",LazyCardFixtureUpcoming],["CardFixtureVariantDualCrest",LazyCardFixtureVariantDualCrest],["CardFixtureVariantInline",LazyCardFixtureVariantInline],["CardFixtureVideos",LazyCardFixtureVideos],["CardFixtureIndexTypes",LazyCardFixtureIndexTypes],["CardFixture",LazyCardFixture],["CardNews",LazyCardNews],["CardPageIndexTypes",LazyCardPageIndexTypes],["CardPage",LazyCardPage],["CardProduct",LazyCardProduct],["CardPromo",LazyCardPromo],["CardStack",LazyCardStack],["CardStreamlineIndexTypes",LazyCardStreamlineIndexTypes],["CardStreamline",LazyCardStreamline],["CardTallIndexTypes",LazyCardTallIndexTypes],["CardTall",LazyCardTall],["CardIndexTypes",LazyCardIndexTypes],["CardIndexVariants",LazyCardIndexVariants],["Card",LazyCard],["CarouselActionsPrimary",LazyCarouselActionsPrimary],["Carousel",LazyCarousel],["ChartBar",LazyChartBar],["ChartCurve",LazyChartCurve],["ChartGauge",LazyChartGauge],["ChartNumber",L
44azyChartNumber],["ChartPie",LazyChartPie],["ComparisonCardRank",LazyComparisonCardRank],["ComparisonCardIndexTypes",LazyComparisonCardIndexTypes],["ComparisonCard",LazyComparisonCard],["ComparisonModal",LazyComparisonModal],["ComparisonStatsHeadToHeadItem",LazyComparisonStatsHeadToHeadItem],["ComparisonStatsHistory",LazyComparisonStatsHistory],["ComparisonStats",LazyComparisonStats],["Comparison",LazyComparison],["ContainerCarouselIndexTypes",LazyContainerCarouselIndexTypes],["ContainerElement",LazyContainerElement],["ContainerGridIndexTypes",LazyContainerGridIndexTypes],["ContainerSplitContent",LazyContainerSplitContent],["ContainerSplitIndexModel",LazyContainerSplitIndexModel],["ContainerSplitIndexTypes",LazyContainerSplitIndexTypes],["ContainerSplit",LazyContainerSplit],["ContainerSplitLayout",LazyContainerSplitLayout],["ContainerTabbedIndexTypes",LazyContainerTabbedIndexTypes],["ContainerWrapperIndexTypes",LazyContainerWrapperIndexTypes],["ContainerWrapper",LazyContainerWrapper],["DartBoardWrapper",LazyDartBoardWrapper],["DartBoardDartboardData",LazyDartBoardDartboardData],["DartBoardIndexTypes",LazyDartBoardIndexTypes],["DartBoard",LazyDartBoard],["DividerIndexTypes",LazyDividerIndexTypes],["Divider",LazyDivider],["Drawer",LazyDrawer],["EventButton",LazyEventButton],["EventCardIndexTypes",LazyEventCardIndexTypes],["EventCard",LazyEventCard],["EventGridIndexTypes",LazyEventGridIndexTypes],["EventGrid",LazyEventGrid],["EventListItemIndexTypes",LazyEventListItemIndexTypes],["EventListItem",LazyEventListItem],["FixtureCarouselCardIndexModel",LazyFixtureCarouselCardIndexModel],["FixtureCarouselCardIndexTypes",LazyFixtureCarouselCardIndexTypes],["FixtureCarouselCard",LazyFixtureCarouselCard],["FixtureCarouselIndexModel",LazyFixtureCarouselIndexModel],["FixtureCarouselIndexTypes",LazyFixtureCarouselIndexTypes],["FixtureCarousel",LazyFixtureCarousel],["FixturesListingCardActionsIndexTypes",LazyFixturesListingCardActionsIndexTypes],["FixturesListingCardActions",LazyFixturesListingCardActions],["FixturesListingCardCountdownIndexTypes",LazyFixturesListingCardCountdownIndexTypes],["FixturesListingCardCountdown",LazyFixturesListingCardCountdown],["FixturesListingCardDataIndexTypes",LazyFixturesListingCardDataIndexTypes],["FixturesListingCardData",LazyFixturesListingCardData],["FixturesListingCardMetaIndexTypes",LazyFixturesListingCardMetaIndexTypes],["FixturesListingCardMeta",LazyFixturesListingCardMeta],["FixturesListingCardIndexTypes",LazyFixturesListingCardIndexTypes],["FixturesListingCard",LazyFixturesListingCard],["FixturesListingTabsIndexTypes",LazyFixturesListingTabsIndexTypes],["FixturesListingTabs",LazyFixturesListingTabs],["FixturesListingTeamTabsIndexTypes",LazyFixturesListingTeamTabsIndexTypes],["FixturesListingTeamTabs",LazyFixturesListingTeamTabs],["FixturesListingIndexTypes",LazyFixturesListingIndexTypes],["FixturesListing",LazyFixturesListing],["FloatingContainer",LazyFloatingContainer],["ForegroundImage",LazyForegroundImage],["FormDropdown",LazyFormDropdown],["FormInput",LazyFormInput],["GCModalIndexTypes",LazyGCModalIndexTypes],["GCModal",LazyGCModal],["GalleryIndexTypes",LazyGalleryIndexTypes],["Gallery",LazyGallery],["GamechangerImage",LazyGamechangerImage],["GamechangerVideo",LazyGamechangerVideo],["Grid",LazyGrid],["HeroDynamicIndexModel",LazyHeroDynamicIndexModel],["HeroDynamicIndexTypes",LazyHeroDynamicIndexTypes],["HeroImpactIndexModel",LazyHeroImpactIndexModel],["HeroImpactIndexTypes",LazyHeroImpactIndexTypes],["HeroSimpleIndexModel",LazyHeroSimpleIndexModel],["HeroSimpleIndexTypes",LazyHeroSimpleIndexTypes],["HeroSimple",LazyHeroSimple],["HeroSlideItemIndexModel",LazyHeroSlideItemIndexModel],["HeroSlideItemIndexTypes",LazyHeroSlideItemIndexTypes],["HeroSlideIndexModel",LazyHeroSlideIndexModel],["HeroSlideIndexTypes",LazyHeroSlideIndexTypes],["HeroSpotlightIndexModel",LazyHeroSpotlightIndexModel],["HeroSpotlightIndexTypes",LazyHeroSpotlightIndexTypes],["HeroSpotlight",LazyHeroSpotlight],["InfiniteScroll",LazyInfiniteScroll],["InfiniteScrollComposablesUseScrollLoader",LazyInfiniteScrollComposablesUseScrollLoader],["InfiniteScrollTypes",LazyInfiniteScrollTypes],["InfoModal",LazyInfoModal],["LinkContainerIndexTypes",LazyLinkContainerIndexTypes],["LinkContainer",LazyLinkContainer],["ListingsEvent",LazyListingsEvent],["ListingsParticipant",LazyListingsParticipant],["MatchCentreColumn",LazyMatchCentreColumn],["MatchCentreDartsBanner",LazyMatchCentreDartsBanner],["MatchCentreDartsDefault",LazyMatchCentreDartsDefault],["MatchCentreDartsGames",LazyMatchCentreDartsGames],["MatchCentreDartsResult",LazyMatchCentreDartsResult],["MatchCentreDartsResultSummary",LazyMatchCentreDartsResultSummary],["MatchCentreDartsScoreCard",LazyMatchCentreDartsScoreCard],["MatchCentreDartsStats",LazyMatchCentreDartsStats],["MatchCentreDartsTimeline",Lazy
44MatchCentreDartsTimeline],["MatchCentreDartsVideo",LazyMatchCentreDartsVideo],["MatchCentreFootballBanner",LazyMatchCentreFootballBanner],["MatchCentreFootballBuildUp",LazyMatchCentreFootballBuildUp],["MatchCentreFootballCommentaryBooking",LazyMatchCentreFootballCommentaryBooking],["MatchCentreFootballCommentaryGoal",LazyMatchCentreFootballCommentaryGoal],["MatchCentreFootballCommentaryItem",LazyMatchCentreFootballCommentaryItem],["MatchCentreFootballCommentaryPeriod",LazyMatchCentreFootballCommentaryPeriod],["MatchCentreFootballCommentarySubstitution",LazyMatchCentreFootballCommentarySubstitution],["MatchCentreFootballCommentaryIndexTypes",LazyMatchCentreFootballCommentaryIndexTypes],["MatchCentreFootballCommentary",LazyMatchCentreFootballCommentary],["MatchCentreFootballDefaultIndexModel",LazyMatchCentreFootballDefaultIndexModel],["MatchCentreFootballDefaultIndexTypes",LazyMatchCentreFootballDefaultIndexTypes],["MatchCentreFootballDefault",LazyMatchCentreFootballDefault],["MatchCentreFootballEmpty",LazyMatchCentreFootballEmpty],["MatchCentreFootballEventsIndexTypes",LazyMatchCentreFootballEventsIndexTypes],["MatchCentreFootballEvents",LazyMatchCentreFootballEvents],["MatchCentreFootballLineupsEvents",LazyMatchCentreFootballLineupsEvents],["MatchCentreFootballLineupsIndexModel",LazyMatchCentreFootballLineupsIndexModel],["MatchCentreFootballLineupsIndexTypes",LazyMatchCentreFootballLineupsIndexTypes],["MatchCentreFootballLineups",LazyMatchCentreFootballLineups],["MatchCentreFootballScoreCardAnimation",LazyMatchCentreFootballScoreCardAnimation],["MatchCentreFootballScoreCard",LazyMatchCentreFootballScoreCard],["MatchCentreFootballStatsBadge",LazyMatchCentreFootballStatsBadge],["MatchCentreFootballStatsBarGroup",LazyMatchCentreFootballStatsBarGroup],["MatchCentreFootballStatsCards",LazyMatchCentreFootballStatsCards],["MatchCentreFootballStatsIndexModel",LazyMatchCentreFootballStatsIndexModel],["MatchCentreFootballStatsIndexTypes",LazyMatchCentreFootballStatsIndexTypes],["MatchCentreFootballStats",LazyMatchCentreFootballStats],["MatchCentreFootballTableIndexModel",LazyMatchCentreFootballTableIndexModel],["MatchCentreFootballTableIndexTypes",LazyMatchCentreFootballTableIndexTypes],["MatchCentreFootballTable",LazyMatchCentreFootballTable],["MatchCentreFootballVideo",LazyMatchCentreFootballVideo],["MatchCentreTab",LazyMatchCentreTab],["MatchCentreTabs",LazyMatchCentreTabs],["MatchCentreIndexTypes",LazyMatchCentreIndexTypes],["MatchCentre",LazyMatchCentre],["MatchHubAdvertIndexTypes",LazyMatchHubAdvertIndexTypes],["MatchHubAdvert",LazyMatchHubAdvert],["MatchHubCardComplexSmall",LazyMatchHubCardComplexSmall],["MatchHubCardLarge",LazyMatchHubCardLarge],["MatchHubCardMedium",LazyMatchHubCardMedium],["MatchHubCardIndexTypes",LazyMatchHubCardIndexTypes],["MatchHubCard",LazyMatchHubCard],["MatchHubCompetitionSelector",LazyMatchHubCompetitionSelector],["MatchHubLayout",LazyMatchHubLayout],["MatchHubListing",LazyMatchHubListing],["MatchHubMulticlubOverviewLineup",LazyMatchHubMulticlubOverviewLineup],["MatchHubMulticlubOverviewMeta",LazyMatchHubMulticlubOverviewMeta],["MatchHubMulticlubOverviewScores",LazyMatchHubMulticlubOverviewScores],["MatchHubMulticlubOverview",LazyMatchHubMulticlubOverview],["MatchHubPDCListingEmpty",LazyMatchHubPDCListingEmpty],["MatchHubPDCOverviewLegs",LazyMatchHubPDCOverviewLegs],["MatchHubPDCOverviewMeta",LazyMatchHubPDCOverviewMeta],["MatchHubPDCOverviewScores",LazyMatchHubPDCOverviewScores],["MatchHubPDCOverviewVisit",LazyMatchHubPDCOverviewVisit],["MatchHubPDCOverview",LazyMatchHubPDCOverview],["MatchHubPDCSubscriptions",LazyMatchHubPDCSubscriptions],["MatchHubSidebarListings",LazyMatchHubSidebarListings],["MatchHubSidebar",LazyMatchHubSidebar],["NewsArticleContentsLegacyPageComponent",LazyNewsArticleContentsLegacyPageComponent],["NewsArticleContents",LazyNewsArticleContents],["PackagesCard",LazyPackagesCard],["PageBaseElementIndexModel",LazyPageBaseElementIndexModel],["PageComponentList",LazyPageComponentList],["PageComponent",LazyPageComponent],["PageElementSubIndexModel",LazyPageElementSubIndexModel],["PageElementSubIndexTypes",LazyPageElementSubIndexTypes],["PageElementIndexModel",LazyPageElementIndexModel],["PageElementIndexTypes",LazyPageElementIndexTypes],["PageElement",LazyPageElement],["PageFixturesIndexTypes",LazyPageFixturesIndexTypes],["PageFixtures",LazyPageFixtures],["PageFooterIndexModel",LazyPageFooterIndexModel],["PageFooterIndexTypes",LazyPageFooterIndexTypes],["PageFooter",LazyPageFooter],["PageStreamlineIndexModel",LazyPageStreamlineIndexModel],["PageStreamlineIndexTypes",LazyPageStreamlineIndexTypes],["PageStreamline",LazyPageStreamline],["PageTeamsIndexTypes",LazyPageTeamsIndexTypes],["PageTeams",LazyPageTeams],["PageUnknownElementIndexModel",LazyPageUnknownElementIndexModel],["PageUnknownElementIndexTypes",LazyPageUnknownElementIndexTypes],["PageUnknownElement",LazyPageUnknownElement],["PaginationDots",LazyPaginationDots],["Pagination",LazyPagination],["ParticipantCardIndexTypes",LazyParticipantCardIndexTypes],["ParticipantCard",LazyParticipantCard],["ParticipantMatchIndexTypes",LazyParticipantMatchIndexTypes],["ParticipantMatch",LazyParticipantMatch],["PrimitiveButton",LazyPrimitiveButton],["ProfileBiographyIndexModel",LazyProfileBiographyIndexModel],["ProfileBiographyIndexTypes",LazyProfileBiographyIndexTypes],["ProfileBiography",LazyProfileBiography],["ProfileGalleryIndexModel",LazyProfileGalleryIndexModel],["ProfileGalleryIndexTypes",LazyProfileGalleryIndexTypes],["ProfileGallery",LazyProfileGallery],["ProfileHeroIndexModel",LazyProfileHeroIndexModel],["ProfileHeroIndexTypes",LazyProfileHeroIndexTypes],["ProfileHero",LazyProfileHero],["ProfileMatchesIndexModel",LazyProfileMatchesIndexModel],["ProfileMatchesIndexTypes",LazyProfileMatchesIndexTypes],["ProfileMatches",LazyProfileMatches],["ProfileMediaIndexModel",LazyProfileMediaIndexModel],["ProfileMediaIndexTypes",LazyProfileMediaIndexTypes],["ProfileMedia",LazyProfileMedia],["ProfileRetailIndexModel",LazyProfileRetailIndexModel],["ProfileRetailIndexTypes",LazyProfileRetailIndexTypes],["ProfileRetail",LazyProfileRetail],["ProfileRootIndexModel",LazyProfileRootIndexModel],["ProfileRootIndexTypes",LazyProfileRootIndexTypes],["ProfileRoot",LazyProfileRoot],["ProfileSocialIndexModel",LazyProfileSocialIndexModel],["ProfileSocialIndexTypes",LazyProfileSocialIndexTypes],["ProfileSocial",LazyProfileSocial],["ProfileStatsBreakdownIndexTypes",LazyProfileStatsBreakdownIndexTypes],["ProfileStatsBreakdown",LazyProfileStatsBreakdown],["ProfileStatsCardsIndexTypes",LazyProfileStatsCardsIndexTypes],["ProfileStatsCards",LazyProfileStatsCards],["ProfileStatsDartsIndexTypes",LazyProfileStatsDartsIndexTypes],["ProfileStatsDarts",LazyProfileStatsDarts],["ProfileStatsGaugeIndexTypes",LazyProfileStatsGaugeIndexTypes],["ProfileStatsGauge",LazyProfileStatsGauge],["ProfileStatsHeadlineIndexTypes",LazyProfileStatsHeadlineIndexTypes],["ProfileStatsHeadline",LazyProfileStatsHeadline],["ProfileStatsIconCardIndexTypes",LazyProfileStatsIconCardIndexTypes],["ProfileStatsIconCard",LazyProfileStatsIconCard],["ProfileStatsListIndexTypes",LazyProfileStatsListIndexTypes],["ProfileStatsList",LazyProfileStatsList],["ProfileStatsLottieIndexTypes",LazyProfileStatsLottieIndexTypes],["ProfileStatsLottie",LazyProfileStatsLottie],["ProfileStatsPassIndexTypes",LazyProfileStatsPassIndexTypes],["ProfileStatsPass",LazyProfileStatsPass],["ProfileStatsSubstitutionsIndexTypes",LazyProfileStatsSubstitutionsIndexTypes],["ProfileStatsSubstitutions",LazyProfileStatsSubstitutions],["ProfileStatsIndexModel",LazyProfileStatsIndexModel],["ProfileStatsIndexTypes",LazyProfileStatsIndexTypes],["ProfileStats",LazyProfileStats],["ProfileIndexModel",LazyProfileIndexModel],["ProfileIndexTypes",LazyProfileIndexTypes],["Profile",LazyProfile],["RankingsSimpleCardIndexTypes",LazyRankingsSimpleCardIndexTypes],["RankingsSimpleCard",LazyRankingsSimpleCard],["RankingsSimpleIndexTypes",LazyRankingsSimpleIndexTypes],["RankingsSimple",LazyRankingsSimple],["ScheduleCardLarge",LazyScheduleCardLarge],["ScheduleCard",LazyScheduleCard],["ScheduleCarousel",LazyScheduleCarousel],["ScheduleDrawerItem",LazyScheduleDrawerItem],["ScheduleDrawer",LazyScheduleDrawer],["SectionSegmentationIndexModel",LazySectionSegmentationIndexModel],["SectionTitleAndButtonsIndexModel",LazySectionTitleAndButtonsIndexModel],["SectionTitleAndButtons",LazySectionTitleAndButtons],["SectionIndexModel",LazySectionIndexModel],["SectionIndexTypes",LazySectionIndexTypes],["Section",LazySection],["Socials",LazySocials],["Spinner",LazySpinner],["SponsorBannerListIndexTypes",LazySponsorBannerListIndexTypes],["SponsorBannerList",LazySponsorBannerList],["SponsorBannerIndexTypes",LazySponsorBannerIndexTypes],["SponsorBanner",LazySponsorBanner],["TabsBoxesIndexTypes",LazyTabsBoxesIndexTypes],["TabsBoxes",LazyTabsBoxes],["TeamPlayerFiltersIndexTypes",LazyTeamPlayerFiltersIndexTypes],["TeamPlayerFilters",LazyTeamPlayerFilters],["TeamPlayerListingIndexTypes",LazyTeamPlayerListingIndexTypes],["TeamPlayerListing",LazyTeamPlayerListing],["TeamTabsIndexTypes",LazyTeamTabsIndexTypes],["TeamTabs",LazyTeamTabs],["TransitionFade",LazyTransitionFade],["TransitionInViewIndexTypes",LazyTransitionInViewIndexTypes],["TransitionInView",LazyTransitionInView],["TransitionIndexTypes",LazyTransitionIndexTypes],["TypographyIndexModel",LazyTypographyIndexModel],["TypographyIndexTypes",LazyTypographyIndexTypes],["Typography",LazyTypography],["WidgetAdSnackMediaPlaceholder",LazyWidgetAdSnackMediaPlaceholder],["WidgetAdSnackMediaIndexModel",LazyWidgetAdSnackMediaIndexModel],["WidgetAdSnackMediaIndexTypes",LazyWidgetAdSnackMediaIndexTypes],["WidgetAdSnackMedia",LazyWidgetAdSnackMedia],["WidgetBrazeIndexModel",LazyWidgetBrazeIndexModel],["WidgetBrazeIndexTypes",LazyWidgetBrazeIndexTypes],["WidgetBraze",LazyWidgetBraze],["WidgetCardFixtureIndexModel",LazyWidgetCardFixtureIndexModel],["WidgetCardFixtureIndexTypes",LazyWidgetCardFixtureIndexTypes],["WidgetCardFixture",LazyWidgetCardFixture],["WidgetCardNewsIndexModel",LazyWidgetCardNewsIndexModel],["WidgetCardNewsIndexTypes",LazyWidgetCardNewsIndexTypes],["WidgetCardNews",LazyWidgetCardNews],["WidgetCardProductIndexModel",LazyWidgetCardProductIndexModel],["WidgetCardProductIndexTypes",LazyWidgetCardProductIndexTypes],["WidgetCardProduct",LazyWidgetCardProduct],["WidgetCardPromoIndexModel",LazyWidgetCardPromoIndexModel],["WidgetCardPromoIndexTypes",LazyWidgetCardPromoIndexTypes],["WidgetCardPromo",LazyWidgetCardPromo],["WidgetCardVideoIndexModel",LazyWidgetCardVideoIndexModel],["WidgetCardVideoIndexTypes",LazyWidgetCardVideoIndexTypes],["WidgetCardVideo",LazyWidgetCardVideo],["WidgetDividerIndexModel",LazyWidgetDividerIndexModel],["WidgetDividerIndexTypes",LazyWidgetDividerIndexTypes],["WidgetDivider",LazyWidgetDivider],["WidgetEPGCardNextUp",LazyWidgetEPGCardNextUp],["WidgetEPGCardSchedule",LazyWidgetEPGCardSchedule],["WidgetEPGScheduleIndexTypes",LazyWidgetEPGScheduleIndexTypes],["WidgetEPGSchedule",LazyWidgetEPGSchedule],["WidgetEPGIndexModel",LazyWidgetEPGIndexModel],["WidgetEPG",LazyWidgetEPG],["WidgetEmbedIndexModel",LazyWidgetEmbedIndexModel],["WidgetEmbedIndexTypes",LazyWidgetEmbedIndexTypes],["WidgetEmbed",
44LazyWidgetEmbed],["WidgetEventGridIndexModel",LazyWidgetEventGridIndexModel],["WidgetEventGridIndexTypes",LazyWidgetEventGridIndexTypes],["WidgetEventGrid",LazyWidgetEventGrid],["WidgetEventRailIndexModel",LazyWidgetEventRailIndexModel],["WidgetEventRailIndexTypes",LazyWidgetEventRailIndexTypes],["WidgetEventRail",LazyWidgetEventRail],["WidgetEventTakeoverHeader",LazyWidgetEventTakeoverHeader],["WidgetEventTakeoverIndexModel",LazyWidgetEventTakeoverIndexModel],["WidgetEventTakeoverIndexTypes",LazyWidgetEventTakeoverIndexTypes],["WidgetEventTakeover",LazyWidgetEventTakeover],["WidgetFormItem",LazyWidgetFormItem],["WidgetFormIndexModel",LazyWidgetFormIndexModel],["WidgetFormIndexTypes",LazyWidgetFormIndexTypes],["WidgetForm",LazyWidgetForm],["WidgetGalleryIndexModel",LazyWidgetGalleryIndexModel],["WidgetGalleryIndexTypes",LazyWidgetGalleryIndexTypes],["WidgetGallery",LazyWidgetGallery],["WidgetImageLinkIndexModel",LazyWidgetImageLinkIndexModel],["WidgetImageLinkIndexTypes",LazyWidgetImageLinkIndexTypes],["WidgetImageLink",LazyWidgetImageLink],["WidgetImageIndexModel",LazyWidgetImageIndexModel],["WidgetImageIndexTypes",LazyWidgetImageIndexTypes],["WidgetImage",LazyWidgetImage],["WidgetImpactCTAContent",LazyWidgetImpactCTAContent],["WidgetImpactCTAIndexModel",LazyWidgetImpactCTAIndexModel],["WidgetImpactCTAIndexTypes",LazyWidgetImpactCTAIndexTypes],["WidgetImpactCTA",LazyWidgetImpactCTA],["WidgetMatchCentreDartsIndexTypes",LazyWidgetMatchCentreDartsIndexTypes],["WidgetMatchCentreDarts",LazyWidgetMatchCentreDarts],["WidgetMatchCentreFootballIndexModel",LazyWidgetMatchCentreFootballIndexModel],["WidgetMatchCentreFootballIndexTypes",LazyWidgetMatchCentreFootballIndexTypes],["WidgetMatchCentreFootball",LazyWidgetMatchCentreFootball],["WidgetMatchHubDarts",LazyWidgetMatchHubDarts],["WidgetMatchHubMultiClubFootball",LazyWidgetMatchHubMultiClubFootball],["WidgetMenuLinksIndexModel",LazyWidgetMenuLinksIndexModel],["WidgetMenuLinksIndexTypes",LazyWidgetMenuLinksIndexTypes],["WidgetMenuLinks",LazyWidgetMenuLinks],["WidgetNewsGridComplex",LazyWidgetNewsGridComplex],["WidgetNewsletterSignUpIndexModel",LazyWidgetNewsletterSignUpIndexModel],["WidgetNewsletterSignUpIndexTypes",LazyWidgetNewsletterSignUpIndexTypes],["WidgetNewsletterSignUp",LazyWidgetNewsletterSignUp],["WidgetPDCStreamlineVideoCarouselIndexModel",LazyWidgetPDCStreamlineVideoCarouselIndexModel],["WidgetPDCStreamlineVideoCarouselIndexTypes",LazyWidgetPDCStreamlineVideoCarouselIndexTypes],["WidgetParticipantCardIndexModel",LazyWidgetParticipantCardIndexModel],["WidgetParticipantCardIndexTypes",LazyWidgetParticipantCardIndexTypes],["WidgetParticipantCard",LazyWidgetParticipantCard],["WidgetParticipantComparisonIndexModel",LazyWidgetParticipantComparisonIndexModel],["WidgetParticipantComparisonIndexTypes",LazyWidgetParticipantComparisonIndexTypes],["WidgetParticipantComparison",LazyWidgetParticipantComparison],["WidgetParticipantRankingsIndexModel",LazyWidgetParticipantRankingsIndexModel],["WidgetParticipantRankingsIndexTypes",LazyWidgetParticipantRankingsIndexTypes],["WidgetParticipantRankings",LazyWidgetParticipantRankings],["WidgetQuoteIndexModel",LazyWidgetQuoteIndexModel],["WidgetQuoteIndexTypes",LazyWidgetQuoteIndexTypes],["WidgetQuote",LazyWidgetQuote],["WidgetSocialsIndexModel",LazyWidgetSocialsIndexModel],["WidgetSocialsIndexTypes",LazyWidgetSocialsIndexTypes],["WidgetSocials",LazyWidgetSocials],["WidgetSponsorsCardIndexTypes",LazyWidgetSponsorsCardIndexTypes],["WidgetSponsorsCard",LazyWidgetSponsorsCard],["WidgetSponsorsRowIndexTypes",LazyWidgetSponsorsRowIndexTypes],["WidgetSponsorsRow",LazyWidgetSponsorsRow],["WidgetSponsorsIndexModel",LazyWidgetSponsorsIndexModel],["WidgetSponsorsIndexTypes",LazyWidgetSponsorsIndexTypes],["WidgetSponsors",LazyWidgetSponsors],["WidgetStorytellerClipsIndexModel",LazyWidgetStorytellerClipsIndexModel],["WidgetStorytellerStoriesIndexModel",LazyWidgetStorytellerStoriesIndexModel],["WidgetStorytellerIndexTypes",LazyWidgetStorytellerIndexTypes],["WidgetStoryteller",LazyWidgetStoryteller],["WidgetStreamlineBannerTextFriendlyIndexModel",LazyWidgetStreamlineBannerTextFriendlyIndexModel],["WidgetStreamlineBannerTextFriendlyIndexTypes",LazyWidgetStreamlineBannerTextFriendlyIndexTypes],["WidgetStreamlineBannerTextFriendly",LazyWidgetStreamlineBannerTextFriendly],["WidgetStreamlineCalendarIndexModel",LazyWidgetStreamlineCalendarIndexModel],["WidgetStreamlineCalendarIndexTypes",LazyWidgetStreamlineCalendarIndexTypes],["WidgetStreamlineCarouselIndexModel",LazyWidgetStreamlineCarouselIndexModel],["WidgetStreamlineCarouselIndexTypes",LazyWidgetStreamlineCarouselIndexTypes],["WidgetStreamlineCarousel",LazyWidgetStreamlineCarousel],["WidgetStreamlineCollectionIndexModel",LazyWidgetStreamlineCollectionIndexModel],["WidgetStreamlineCollectionIndexTypes",LazyWidgetStreamlineCollectionIndexTypes],["WidgetStreamlineCollection",LazyWidgetStreamlineCollection],["WidgetStreamlineContentIndexModel",LazyWidgetStreamlineContentIndexModel],["WidgetStreamlineContentIndexTypes",LazyWidgetStreamlineContentIndexTypes],["WidgetStreamlineContent",LazyWidgetStreamlineContent],["WidgetStreamlineFAQIndexModel",LazyWidgetStreamlineFAQIndexModel],["WidgetStreamlineFAQIndexTypes",LazyWidgetStreamlineFAQIndexTypes],["WidgetStreamlineFixturesIndexModel",LazyWidgetStreamlineFixturesIndexModel],["WidgetStreamlineFixturesIndexTypes",LazyWidgetStreamlineFixturesIndexTypes],["WidgetStreamlineFixtures",LazyWidgetStreamlineFixtures],["WidgetStreamlineMembershipDrawer",LazyWidgetStreamlineMembershipDrawer],["WidgetStreamlineNextLiveMatchHeroIndexModel",LazyWidgetStreamlineNextLiveMatchHeroIndexModel],["WidgetStreamlineNextLiveMatchHeroIndexTypes",LazyWidgetStreamlineNextLiveMatchHeroIndexTypes],["WidgetStreamlinePackagesDrawerIndexTypes",LazyWidgetStreamlinePackagesDrawerIndexTypes],["WidgetStreamlinePackagesDrawer",LazyWidgetStreamlinePackagesDrawer],["WidgetStreamlinePackagesIndexModel",LazyWidgetStreamlinePackagesIndexModel],["WidgetStreamlinePackagesIndexTypes",LazyWidgetStreamlinePackagesIndexTypes],["WidgetStreamlinePackages",LazyWidgetStreamlinePackages],["WidgetStreamlinePlayerIndexModel",LazyWidgetStreamlinePlayerIndexModel],["WidgetStreamlinePlayerIndexTypes",LazyWidgetStreamlinePlayerIndexTypes],["WidgetStreamlinePlayer",LazyWidgetStreamlinePlayer],["WidgetStreamlinePlayersIndexModel",LazyWidgetStreamlinePlayersIndexModel],["WidgetStreamlinePlayersIndexTypes",LazyWidgetStreamlinePlayersIndexTypes],["WidgetStreamlinePlayers",LazyWidgetStreamlinePlayers],["WidgetStreamlinePlaylistsIndexModel",LazyWidgetStreamlinePlaylistsIndexModel],["WidgetStreamlinePlaylistsIndexTypes",LazyWidgetStreamlinePlaylistsIndexTypes],["WidgetStreamlinePlaylists",LazyWidgetStreamlinePlaylists],["WidgetStreamlinePromoIndexModel",LazyWidgetStreamlinePromoIndexModel],["WidgetStreamlinePromoIndexTypes",LazyWidgetStreamlinePromoIndexTypes],["WidgetStreamlineScheduleIndexModel",LazyWidgetStreamlineScheduleIndexModel],["WidgetStreamlineScheduleIndexTypes",LazyWidgetStreamlineScheduleIndexTypes],["WidgetStreamlineSchedule",LazyWidgetStreamlineSchedule],["WidgetStreamlineScheduleListIndexModel",LazyWidgetStreamlineScheduleListIndexModel],["WidgetStreamlineScheduleListIndexTypes",LazyWidgetStreamlineScheduleListIndexTypes],["WidgetStreamlineScheduleList",LazyWidgetStreamlineScheduleList],["WidgetStreamlineSimpleHeroIndexModel",LazyWidgetStreamlineSimpleHeroIndexModel],["WidgetStreamlineSimpleHeroIndexTypes",LazyWidgetStreamlineSimpleHeroIndexTypes],["WidgetStreamlineSpotlightSmallIndexModel",LazyWidgetStreamlineSpotlightSmallIndexModel],["WidgetStreamlineSpotlightSmallIndexTypes",LazyWidgetStreamlineSpotlightSmallIndexTypes],["WidgetStreamlineVideoMembershipCard",LazyWidgetStreamlineVideoMembershipCard],["WidgetStreamlineVideoMembershipIndexModel",LazyWidgetStreamlineVideoMembershipIndexModel],["WidgetStreamlineVideoMembershipIndexTypes",LazyWidgetStreamlineVideoMembershipIndexTypes],["WidgetStreamlineVideoMembership",LazyWidgetStreamlineVideoMembership],["WidgetTextIndexModel",LazyWidgetTextIndexModel],["WidgetTextIndexTypes",LazyWidgetTextIndexTypes],["WidgetText",LazyWidgetText],["WidgetV2LeagueTableIndexModel",LazyWidgetV2LeagueTableIndexModel],["WidgetV2LeagueTableIndexTypes",LazyWidgetV2LeagueTableIndexTypes],["WidgetV2LeagueTable",LazyWidgetV2LeagueTable],["WidgetWeglotIndexModel",LazyWidgetWeglotIndexModel],["WidgetWeglotIndexTypes",LazyWidgetWeglotIndexTypes],["WidgetWeglot",LazyWidgetWeglot],["XContentCardNews",LazyXContentCardNews],["XContentCardPromo",LazyXContentCardPromo],["XContentCardVideoDurationBadge",LazyXContentCardVideoDurationBadge],["XContentCardVideoEntitlementBadge",LazyXContentCardVideoEntitlementBadge],["XContentCardVideoPlayButton",LazyXContentCardVideoPlayButton],["XContentCardVideo",LazyXContentCardVideo],["XContentCard",LazyXContentCard]],components_plugin_z4hgvsiddfKkfXTP6M8M4zG5Cb7sGnDhcryKVM45Di4=defineNuxtPlugin({name:"nuxt:global-components",setup(e){for(const[t,r]of lazyGlobalComponents)e.vueApp.component(t,r),e.vueApp.component("Lazy"+t,r)}}),layouts={default:defineAsyncComponent(()=>__vitePreload(()=>import("./b08TnECE.js"),__vite__mapDeps([706,689,354,356,590,474,359,360,272,111,262,263,107,235,281,282,199,255,148,134,116,132,130,149,136,106,127,150,151,138,152,153,154,155,257,100,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95]),import.meta.url).then(e=>e.default||e)),embed:defineAsyncComponent(()=>__vitePreload(()=>import("./Bvri1ph_.js"),[],import.meta.url).then(e=>e.default||e))},prefetch_client_plc8Lsxh1X10IEwNhW7mxf0MabjBz64b9ODLi87nY5E=defineNuxtPlugin({name:"nuxt:prefetch",setup(e){const t=useRouter();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{var c;const o=(c=r==null?void 0:r.meta)==null?void 0:c.layout;o&&typeof layouts[o]=="function"&&await layouts[o]()})}),e.hooks.hook("link:prefetch",r=>{if(hasProtocol(r))return;const o=t.resolve(r);if(!o)return;const c=o.meta.layout;let d=toArray$1(o.meta.middleware);d=d.filter(f=>typeof f=="string");for(const f of d)typeof namedMiddleware[f]=="function"&&namedMiddleware[f]();typeof c=="string"&&c in layouts&&_loadAsyncComponent(layouts[c])})}});var enqueue=e=>{window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.push(e)},flushQueue=()=>{window.__fathomIsLoading=!1,window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.forEach(e
44=>{switch(e.type){case"trackPageview":return void trackPageview(e.opts);case"trackGoal":return void trackGoal(e.code,e.cents);case"trackEvent":return void trackEvent(e.eventName,e.opts);case"enableTrackingForMe":return void enableTrackingForMe();case"blockTrackingForMe":return void blockTrackingForMe();case"setSite":return void setSite(e.id)}}),window.__fathomClientQueue=[]},checkDomainsAndWarn=e=>{const t=/(https?)(?=:|\/|$)/;e.forEach(r=>{t.exec(r)!==null&&console.warn(`The include domain ${r} might fail to work as intended as it begins with a transfer protocol (http://, https://). Consider removing the protocol portion of the string.`)})},load=(e,t)=>{if(window.__fathomIsLoading||window.fathom)return;window.__fathomIsLoading=!0;let r=document.createElement("script"),o=document.getElementsByTagName("script")[0]||document.querySelector("body");r.id="fathom-script",r.async=!0,r.setAttribute("data-site",e),r.src=t&&t.url?t.url:"https://cdn.usefathom.com/script.js",t&&(t.auto!==void 0&&r.setAttribute("data-auto",`${t.auto}`),t.honorDNT!==void 0&&r.setAttribute("data-honor-dnt",`${t.honorDNT}`),t.canonical!==void 0&&r.setAttribute("data-canonical",`${t.canonical}`),t.includedDomains&&(checkDomainsAndWarn(t.includedDomains),r.setAttribute("data-included-domains",t.includedDomains.join(","))),t.excludedDomains&&(checkDomainsAndWarn(t.excludedDomains),r.setAttribute("data-excluded-domains",t.excludedDomains.join(","))),t.spa&&r.setAttribute("data-spa",t.spa)),r.onload=flushQueue,o.parentNode.insertBefore(r,o)},trackPageview=e=>{window.fathom?e?window.fathom.trackPageview(e):window.fathom.trackPageview():enqueue({type:"trackPageview",opts:e})},trackGoal=(e,t)=>{window.fathom?window.fathom.trackGoal(e,t):enqueue({type:"trackGoal",code:e,cents:t})},trackEvent=(e,t)=>{window.fathom?window.fathom.trackEvent(e,t):enqueue({type:"trackEvent",eventName:e,opts:t})},blockTrackingForMe=()=>{window.fathom?window.fathom.blockTrackingForMe():enqueue({type:"blockTrackingForMe"})},enableTrackingForMe=()=>{window.fathom?window.fathom.enableTrackingForMe():enqueue({type:"enableTrackingForMe"})},isTrackingEnabled=()=>{const e=localStorage.getItem("blockFathomTracking");return e===null||e!=="true"},setSite=e=>{window.fathom?window.fathom.setSite(e):enqueue({type:"setSite",id:e})};const fathom=Object.freeze(Object.defineProperty({__proto__:null,blockTrackingForMe,enableTrackingForMe,isTrackingEnabled,load,setSite,trackEvent,trackGoal,trackPageview},Symbol.toStringTag,{value:"Module"}));function safeFathomCall(e){return(...t)=>e(...t)}const fathomFunctions=["blockTrackingForMe","enableTrackingForMe","isTrackingEnabled","setSite","trackEvent","trackPageview"];function useFathom(){return fathomFunctions.reduce((e,t)=>(e[t]=safeFathomCall(fathom[t]),e),{})}const plugin_client_yElHsdJ_bErHTGKC_jWDFnTnvndT2ObInVeiOXa2k6w=defineNuxtPlugin(()=>{const{fathom:{siteId:e,config:t}}=useRuntimeConfig().public;if(e&&(load(e,t),!(t!=null&&t.manual))){const{trackPageview:r}=useFathom(),o=useRoute$1();watch(()=>o.path,()=>{r()})}});let resolveBraze;const brazeReady=new Promise(e=>resolveBraze=e),initBraze=async(e,t)=>{const r=await __vitePreload(()=>import("./B-qtworU.js"),[],import.meta.url),o=t?e.devAppID:e.appID;return r.initialize(o,{allowUserSuppliedJavascript:!0,baseUrl:e.apiUrl}),r.openSession(),{...r,requestBannerBySlot:c=>{r.requestBannersRefresh(c)},subscribeToBannerUpdates:c=>{r.subscribeToBannersUpdates(d=>{d&&c(d)})}}},setBrazeInstance=e=>resolveBraze(e),whenBrazeReady=()=>brazeReady;var storyteller_min={},hasRequiredStoryteller_min,storytellerSdkJavascript,hasRequiredStorytellerSdkJavascript;function requireStoryteller_min(){return hasRequiredStoryteller_min||(hasRequiredStoryteller_min=1,e=storyteller_min,t={},(function(){var r={4184:function(f,b){var m;/*!
45		    	Copyright (c) 2018 Jed Watson.
46		    	Licensed under the MIT License (MIT), see
47		    	http://jedwatson.github.io/classnames
48		    */(function(){var S={}.hasOwnProperty;function w(){for(var T=[],A=0;A<arguments.length;A++){var C=arguments[A];if(C){var P=typeof C;if(P==="string"||P==="number")T.push(C);else if(Array.isArray(C)){if(C.length){var B=w.apply(null,C);B&&T.push(B)}}else if(P==="object"){if(C.toString!==Object.prototype.toString&&!C.toString.toString().includes("[native code]")){T.push(C.toString());continue}for(var U in C)S.call(C,U)&&C[U]&&T.push(U)}}}return T.join(" ")}f.exports?(w.default=w,f.exports=w):(m=(function(){return w}).apply(b,[]))===void 0||(f.exports=m)})()},7531:function(f,b,m){m.d(b,{lX:function(){return X},q_:function(){return de},ob:function(){return z},PP:function(){return Re},Ep:function(){return $}});var S=m(7462);function w(ge){return ge.charAt(0)==="/"}function T(ge,Ce){for(var Me=Ce,Ue=Me+1,Ne=ge.length;Ue<Ne;Me+=1,Ue+=1)ge[Me]=ge[Ue];ge.pop()}var A=function(ge,Ce){Ce===void 0&&(Ce="");var Me,Ue=ge&&ge.split("/")||[],Ne=Ce&&Ce.split("/")||[],We=ge&&w(ge),et=Ce&&w(Ce),rt=We||et;if(ge&&w(ge)?Ne=Ue:Ue.length&&(Ne.pop(),Ne=Ne.concat(Ue)),!Ne.length)return"/";if(Ne.length){var re=Ne[Ne.length-1];Me=re==="."||re===".."||re===""}else Me=!1;for(var ne=0,Se=Ne.length;Se>=0;Se--){var he=Ne[Se];he==="."?T(Ne,Se):he===".."?(T(Ne,Se),ne++):ne&&(T(Ne,Se),ne--)}if(!rt)for(;ne--;ne)Ne.unshift("..");!rt||Ne[0]===""||Ne[0]&&w(Ne[0])||Ne.unshift("");var we=Ne.join("/");return Me&&we.substr(-1)!=="/"&&(we+="/"),we},C=m(8776);function P(ge){return ge.charAt(0)==="/"?ge:"/"+ge}function B(ge){return ge.charAt(0)==="/"?ge.substr(1):ge}function U(ge,Ce){return Ue=Ce,(Me=ge).toLowerCase().indexOf(Ue.toLowerCase())===0&&"/?#".indexOf(Me.charAt(Ue.length))!==-1?ge.substr(Ce.length):ge;var Me,Ue}function D(ge){return ge.charAt(ge.length-1)==="/"?ge.slice(0,-1):ge}function $(ge){var Ce=ge.pathname,Me=ge.search,Ue=ge.hash,Ne=Ce||"/";return Me&&Me!=="?"&&(Ne+=Me.charAt(0)==="?"?Me:"?"+Me),Ue&&Ue!=="#"&&(Ne+=Ue.charAt(0)==="#"?Ue:"#"+Ue),Ne}function z(ge,Ce,Me,Ue){var Ne;typeof ge=="string"?(Ne=(function(We){var et=We||"/",rt="",re="",ne=et.indexOf("#");ne!==-1&&(re=et.substr(ne),et=et.substr(0,ne));var Se=et.indexOf("?");return Se!==-1&&(rt=et.substr(Se),et=et.substr(0,Se)),{pathname:et,search:rt==="?"?"":rt,hash:re==="#"?"":re}})(ge)).state=Ce:((Ne=(0,S.Z)({},ge)).pathname===void 0&&(Ne.pathname=""),Ne.search?Ne.search.charAt(0)!=="?"&&(Ne.search="?"+Ne.search):Ne.search="",Ne.hash?Ne.hash.charAt(0)!=="#"&&(Ne.hash="#"+Ne.hash):Ne.hash="",Ce!==void 0&&Ne.state===void 0&&(Ne.state=Ce));try{Ne.pathname=decodeURI(Ne.pathname)}catch(We){throw We instanceof URIError?new URIError('Pathname "'+Ne.pathname+'" could not be decoded. This is likely caused by an invali
48d percent-encoding.'):We}return Me&&(Ne.key=Me),Ue?Ne.pathname?Ne.pathname.charAt(0)!=="/"&&(Ne.pathname=A(Ne.pathname,Ue.pathname)):Ne.pathname=Ue.pathname:Ne.pathname||(Ne.pathname="/"),Ne}function V(){var ge=null,Ce=[];return{setPrompt:function(Me){return ge=Me,function(){ge===Me&&(ge=null)}},confirmTransitionTo:function(Me,Ue,Ne,We){if(ge!=null){var et=typeof ge=="function"?ge(Me,Ue):ge;typeof et=="string"?typeof Ne=="function"?Ne(et,We):We(!0):We(et!==!1)}else We(!0)},appendListener:function(Me){var Ue=!0;function Ne(){Ue&&Me.apply(void 0,arguments)}return Ce.push(Ne),function(){Ue=!1,Ce=Ce.filter(function(We){return We!==Ne})}},notifyListeners:function(){for(var Me=arguments.length,Ue=new Array(Me),Ne=0;Ne<Me;Ne++)Ue[Ne]=arguments[Ne];Ce.forEach(function(We){return We.apply(void 0,Ue)})}}}var F=!(typeof window>"u"||!window.document||!window.document.createElement);function ee(ge,Ce){Ce(window.confirm(ge))}var te="popstate",K="hashchange";function H(){try{return window.history.state||{}}catch{return{}}}function X(ge){ge===void 0&&(ge={}),F||(0,C.Z)(!1);var Ce,Me=window.history,Ue=((Ce=window.navigator.userAgent).indexOf("Android 2.")===-1&&Ce.indexOf("Android 4.0")===-1||Ce.indexOf("Mobile Safari")===-1||Ce.indexOf("Chrome")!==-1||Ce.indexOf("Windows Phone")!==-1)&&window.history&&"pushState"in window.history,Ne=window.navigator.userAgent.indexOf("Trident")!==-1,We=ge,et=We.forceRefresh,rt=et!==void 0&&et,re=We.getUserConfirmation,ne=re===void 0?ee:re,Se=We.keyLength,he=Se===void 0?6:Se,we=ge.basename?D(P(ge.basename)):"";function xe(mt){var $t=mt||{},Mt=$t.key,Dt=$t.state,Qe=window.location,pt=Qe.pathname+Qe.search+Qe.hash;return we&&(pt=U(pt,we)),z(pt,Dt,Mt)}function ze(){return Math.random().toString(36).substr(2,he)}var Ee=V();function se(mt){(0,S.Z)(ht,mt),ht.length=Me.length,Ee.notifyListeners(ht.location,ht.action)}function L(mt){mt.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1||le(xe(mt.state))}function j(){le(xe(H()))}var Z=!1;function le(mt){Z?(Z=!1,se()):Ee.confirmTransitionTo(mt,"POP",ne,function($t){$t?se({action:"POP",location:mt}):(function(Mt){var Dt=ht.location,Qe=Ae.indexOf(Dt.key);Qe===-1&&(Qe=0);var pt=Ae.indexOf(Mt.key);pt===-1&&(pt=0);var Ut=Qe-pt;Ut&&(Z=!0,Ke(Ut))})(mt)})}var Te=xe(H()),Ae=[Te.key];function Le(mt){return we+$(mt)}function Ke(mt){Me.go(mt)}var nt=0;function Be(mt){(nt+=mt)===1&&mt===1?(window.addEventListener(te,L),Ne&&window.addEventListener(K,j)):nt===0&&(window.removeEventListener(te,L),Ne&&window.removeEventListener(K,j))}var vt=!1,ht={length:Me.length,action:"POP",location:Te,createHref:Le,push:function(mt,$t){var Mt="PUSH",Dt=z(mt,$t,ze(),ht.location);Ee.confirmTransitionTo(Dt,Mt,ne,function(Qe){if(Qe){var pt=Le(Dt),Ut=Dt.key,jt=Dt.state;if(Ue)if(Me.pushState({key:Ut,state:jt},null,pt),rt)window.location.href=pt;else{var hr=Ae.indexOf(ht.location.key),_r=Ae.slice(0,hr+1);_r.push(Dt.key),Ae=_r,se({action:Mt,location:Dt})}else window.location.href=pt}})},replace:function(mt,$t){var Mt="REPLACE",Dt=z(mt,$t,ze(),ht.location);Ee.confirmTransitionTo(Dt,Mt,ne,function(Qe){if(Qe){var pt=Le(Dt),Ut=Dt.key,jt=Dt.state;if(Ue)if(Me.replaceState({key:Ut,state:jt},null,pt),rt)window.location.replace(pt);else{var hr=Ae.indexOf(ht.location.key);hr!==-1&&(Ae[hr]=Dt.key),se({action:Mt,location:Dt})}else window.location.replace(pt)}})},go:Ke,goBack:function(){Ke(-1)},goForward:function(){Ke(1)},block:function(mt){mt===void 0&&(mt=!1);var $t=Ee.setPrompt(mt);return vt||(Be(1),vt=!0),function(){return vt&&(vt=!1,Be(-1)),$t()}},listen:function(mt){var $t=Ee.appendListener(mt);return Be(1),function(){Be(-1),$t()}}};return ht}var J="hashchange",G={hashbang:{encodePath:function(ge){return ge.charAt(0)==="!"?ge:"!/"+B(ge)},decodePath:function(ge){return ge.charAt(0)==="!"?ge.substr(1):ge}},noslash:{encodePath:B,decodePath:P},slash:{encodePath:P,decodePath:P}};function Q(ge){var Ce=ge.indexOf("#");return Ce===-1?ge:ge.slice(0,Ce)}function pe(){var ge=window.location.href,Ce=ge.indexOf("#");return Ce===-1?"":ge.substring(Ce+1)}function ye(ge){window.location.replace(Q(window.location.href)+"#"+ge)}function de(ge){ge===void 0&&(ge={}),F||(0,C.Z)(!1);var Ce=window.history,Me=(window.navigator.userAgent.indexOf("Firefox"),ge),Ue=Me.getUserConfirmation,Ne=Ue===void 0?ee:Ue,We=Me.hashType,et=We===void 0?"slash":We,rt=ge.basename?D(P(ge.basename)):"",re=G[et],ne=re.encodePath,Se=re.decodePath;function he(){var Be=Se(pe());return rt&&(Be=U(Be,rt)),z(Be)}var we=V();function xe(Be){(0,S.Z)(nt,Be),nt.length=Ce.length,we.notifyListeners(nt.location,nt.action)}var ze=!1,Ee=null;function se(){var Be,vt,ht,mt=pe(),$t=ne(mt);if(mt!==$t)ye($t);else{var Mt=he(),Dt=nt.location;if(!ze&&(vt=Mt,(Be=Dt).pathname===vt.pathname&&Be.search===vt.search&&Be.hash===vt.hash)||Ee===$(Mt))return;Ee=null,ht=Mt,ze?(ze=!1,xe()):we.confirmTransitionTo(ht,"POP",Ne,function(Qe){Qe?xe({action:"POP",location:ht}):(function(pt){var Ut=nt.location,jt=le.lastIndexOf($(Ut));jt===-1&&(jt=0);var hr=le.lastIndexOf($(pt));hr===-1&&(hr=0);var _r=jt-hr;_r&&(ze=!0,Te(_r))})(ht)})}}var L=pe(),j=ne(L);L!==j&&ye(j);var Z=he(),le=[$(Z)];function Te(Be){Ce.go(Be)}var Ae=0;function Le(Be){(Ae+=Be)===1&&Be===1?window.addEventListener(J,se):Ae===0&&window.removeEventListener(J,se)}var Ke=!1,nt={length:Ce.length,action:"POP",location:Z,createHref:function(Be){var vt=document.querySelector("base"),ht="";return vt&&vt.getAttribute("href")&&(ht=Q(window.location.href)),ht+"#"+ne(rt+$(Be))},push:function(Be,vt){var ht="PUSH",mt=z(Be,void 0,void 0,nt.location);
48we.confirmTransitionTo(mt,ht,Ne,function($t){if($t){var Mt=$(mt),Dt=ne(rt+Mt);if(pe()!==Dt){Ee=Mt,Ut=Dt,window.location.hash=Ut;var Qe=le.lastIndexOf($(nt.location)),pt=le.slice(0,Qe+1);pt.push(Mt),le=pt,xe({action:ht,location:mt})}else xe()}var Ut})},replace:function(Be,vt){var ht="REPLACE",mt=z(Be,void 0,void 0,nt.location);we.confirmTransitionTo(mt,ht,Ne,function($t){if($t){var Mt=$(mt),Dt=ne(rt+Mt);pe()!==Dt&&(Ee=Mt,ye(Dt));var Qe=le.indexOf($(nt.location));Qe!==-1&&(le[Qe]=Mt),xe({action:ht,location:mt})}})},go:Te,goBack:function(){Te(-1)},goForward:function(){Te(1)},block:function(Be){Be===void 0&&(Be=!1);var vt=we.setPrompt(Be);return Ke||(Le(1),Ke=!0),function(){return Ke&&(Ke=!1,Le(-1)),vt()}},listen:function(Be){var vt=we.appendListener(Be);return Le(1),function(){Le(-1),vt()}}};return nt}function _e(ge,Ce,Me){return Math.min(Math.max(ge,Ce),Me)}function Re(ge){ge===void 0&&(ge={});var Ce=ge,Me=Ce.getUserConfirmation,Ue=Ce.initialEntries,Ne=Ue===void 0?["/"]:Ue,We=Ce.initialIndex,et=We===void 0?0:We,rt=Ce.keyLength,re=rt===void 0?6:rt,ne=V();function Se(L){(0,S.Z)(se,L),se.length=se.entries.length,ne.notifyListeners(se.location,se.action)}function he(){return Math.random().toString(36).substr(2,re)}var we=_e(et,0,Ne.length-1),xe=Ne.map(function(L){return z(L,void 0,typeof L=="string"?he():L.key||he())}),ze=$;function Ee(L){var j=_e(se.index+L,0,se.entries.length-1),Z=se.entries[j];ne.confirmTransitionTo(Z,"POP",Me,function(le){le?Se({action:"POP",location:Z,index:j}):Se()})}var se={length:xe.length,action:"POP",location:xe[we],index:we,entries:xe,createHref:ze,push:function(L,j){var Z="PUSH",le=z(L,j,he(),se.location);ne.confirmTransitionTo(le,Z,Me,function(Te){if(Te){var Ae=se.index+1,Le=se.entries.slice(0);Le.length>Ae?Le.splice(Ae,Le.length-Ae,le):Le.push(le),Se({action:Z,location:le,index:Ae,entries:Le})}})},replace:function(L,j){var Z="REPLACE",le=z(L,j,he(),se.location);ne.confirmTransitionTo(le,Z,Me,function(Te){Te&&(se.entries[se.index]=le,Se({action:Z,location:le}))})},go:Ee,goBack:function(){Ee(-1)},goForward:function(){Ee(1)},canGo:function(L){var j=se.index+L;return j>=0&&j<se.entries.length},block:function(L){return L===void 0&&(L=!1),ne.setPrompt(L)},listen:function(L){return ne.appendListener(L)}};return se}},8679:function(f,b,m){var S=m(1296),w={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},T={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},A={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},C={};function P(F){return S.isMemo(F)?A:C[F.$$typeof]||w}C[S.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C[S.Memo]=A;var B=Object.defineProperty,U=Object.getOwnPropertyNames,D=Object.getOwnPropertySymbols,$=Object.getOwnPropertyDescriptor,z=Object.getPrototypeOf,V=Object.prototype;f.exports=function F(ee,te,K){if(typeof te!="string"){if(V){var H=z(te);H&&H!==V&&F(ee,H,K)}var X=U(te);D&&(X=X.concat(D(te)));for(var J=P(ee),G=P(te),Q=0;Q<X.length;++Q){var pe=X[Q];if(!(T[pe]||K&&K[pe]||G&&G[pe]||J&&J[pe])){var ye=$(te,pe);try{B(ee,pe,ye)}catch{}}}}return ee}},6103:function(f,b){/** @license React v16.13.1
49		     * react-is.production.min.js
50		     *
51		     * Copyright (c) Facebook, Inc. and its affiliates.
52		     *
53		     * This source code is licensed under the MIT license found in the
54		     * LICENSE file in the root directory of this source tree.
55		     */var m=typeof Symbol=="function"&&Symbol.for,S=m?Symbol.for("react.element"):60103,w=m?Symbol.for("react.portal"):60106,T=m?Symbol.for("react.fragment"):60107,A=m?Symbol.for("react.strict_mode"):60108,C=m?Symbol.for("react.profiler"):60114,P=m?Symbol.for("react.provider"):60109,B=m?Symbol.for("react.context"):60110,U=m?Symbol.for("react.async_mode"):60111,D=m?Symbol.for("react.concurrent_mode"):60111,$=m?Symbol.for("react.forward_ref"):60112,z=m?Symbol.for("react.suspense"):60113,V=m?Symbol.for("react.suspense_list"):60120,F=m?Symbol.for("react.memo"):60115,ee=m?Symbol.for("react.lazy"):60116,te=m?Symbol.for("react.block"):60121,K=m?Symbol.for("react.fundamental"):60117,H=m?Symbol.for("react.responder"):60118,X=m?Symbol.for("react.scope"):60119;function J(Q){if(typeof Q=="object"&&Q!==null){var pe=Q.$$typeof;switch(pe){case S:switch(Q=Q.type){case U:case D:case T:case C:case A:case z:return Q;default:switch(Q=Q&&Q.$$typeof){case B:case $:case ee:case F:case P:return Q;default:return pe}}case w:return pe}}}function G(Q){return J(Q)===D}b.AsyncMode=U,b.ConcurrentMode=D,b.ContextConsumer=B,b.ContextProvider=P,b.Element=S,b.ForwardRef=$,b.Fragment=T,b.Lazy=ee,b.Memo=F,b.Portal=w,b.Profiler=C,b.StrictMode=A,b.Suspense=z,b.isAsyncMode=function(Q){return G(Q)||J(Q)===U},b.isConcurrentMode=G,b.isContextConsumer=function(Q){return J(Q)===B},b.isContextProvider=function(Q){return J(Q)===P},b.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===S},b.isForwardRef=function(Q){return J(Q)===$},b.isFragment=function(Q){return J(Q)===T},b.isLazy=function(Q){return J(Q)===ee},b.isMemo=function(Q){return J(Q)===F},b.isPortal=function(Q){return J(Q)===w},b.isProfiler=function(Q){return J(Q)===C},b.isStrictMode=function(Q){return J(Q)===A},b.isSuspense=function(Q){return J(Q)===z},b.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===T||Q===D||Q===C||Q===A||Q===z||Q===V||typeof Q=="object"&&Q!==null&&(Q.$$typeof===ee||Q.$$typeof===F||Q.$$typeof===P||Q.$$typeof===B||Q.$$typeof===$||Q.$$typeof===K||Q.$$typeof===H||Q.$$typeof===X||Q.$$typeof===te)},b.typeOf=J},1296:function(f,b,m){f.exports=m(6103)},5826:function(f){f.exports=Array.isArray||function(b){return Object.prototype.toString.call(b)=="[object Array]"}},8620:function(f,b,m){var S=m(5826);f.exports=function z(V,F,ee){return S(F)||(ee=F||ee,F=[]),ee=ee||{},V instanceof RegExp?(function(H,X){var J=H.source.match(/\((?!\?)/g);if(J)for(var G=0;G<J.length;G++)X.push({name:G,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return U(H,X)})(V,F):S(V)?(function(H,X,J){for(var G=[],Q=0;Q<H.length;Q++)G.push(z(H[Q],X,J).source);
55return U(new RegExp("(?:"+G.join("|")+")",D(J)),X)})(V,F,ee):(te=F,$(T(V,K=ee),te,K));var te,K},f.exports.parse=T,f.exports.compile=function(z,V){return C(T(z,V),V)},f.exports.tokensToFunction=C,f.exports.tokensToRegExp=$;var w=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function T(z,V){for(var F,ee=[],te=0,K=0,H="",X=V&&V.delimiter||"/";(F=w.exec(z))!=null;){var J=F[0],G=F[1],Q=F.index;if(H+=z.slice(K,Q),K=Q+J.length,G)H+=G[1];else{var pe=z[K],ye=F[2],de=F[3],_e=F[4],Re=F[5],ge=F[6],Ce=F[7];H&&(ee.push(H),H="");var Me=ye!=null&&pe!=null&&pe!==ye,Ue=ge==="+"||ge==="*",Ne=ge==="?"||ge==="*",We=F[2]||X,et=_e||Re;ee.push({name:de||te++,prefix:ye||"",delimiter:We,optional:Ne,repeat:Ue,partial:Me,asterisk:!!Ce,pattern:et?B(et):Ce?".*":"[^"+P(We)+"]+?"})}}return K<z.length&&(H+=z.substr(K)),H&&ee.push(H),ee}function A(z){return encodeURI(z).replace(/[\/?#]/g,function(V){return"%"+V.charCodeAt(0).toString(16).toUpperCase()})}function C(z,V){for(var F=new Array(z.length),ee=0;ee<z.length;ee++)typeof z[ee]=="object"&&(F[ee]=new RegExp("^(?:"+z[ee].pattern+")$",D(V)));return function(te,K){for(var H="",X=te||{},J=(K||{}).pretty?A:encodeURIComponent,G=0;G<z.length;G++){var Q=z[G];if(typeof Q!="string"){var pe,ye=X[Q.name];if(ye==null){if(Q.optional){Q.partial&&(H+=Q.prefix);continue}throw new TypeError('Expected "'+Q.name+'" to be defined')}if(S(ye)){if(!Q.repeat)throw new TypeError('Expected "'+Q.name+'" to not repeat, but received `'+JSON.stringify(ye)+"`");if(ye.length===0){if(Q.optional)continue;throw new TypeError('Expected "'+Q.name+'" to not be empty')}for(var de=0;de<ye.length;de++){if(pe=J(ye[de]),!F[G].test(pe))throw new TypeError('Expected all "'+Q.name+'" to match "'+Q.pattern+'", but received `'+JSON.stringify(pe)+"`");H+=(de===0?Q.prefix:Q.delimiter)+pe}}else{if(pe=Q.asterisk?encodeURI(ye).replace(/[?#]/g,function(_e){return"%"+_e.charCodeAt(0).toString(16).toUpperCase()}):J(ye),!F[G].test(pe))throw new TypeError('Expected "'+Q.name+'" to match "'+Q.pattern+'", but received "'+pe+'"');H+=Q.prefix+pe}}else H+=Q}return H}}function P(z){return z.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function B(z){return z.replace(/([=!:$\/()])/g,"\\$1")}function U(z,V){return z.keys=V,z}function D(z){return z&&z.sensitive?"":"i"}function $(z,V,F){S(V)||(F=V||F,V=[]);for(var ee=(F=F||{}).strict,te=F.end!==!1,K="",H=0;H<z.length;H++){var X=z[H];if(typeof X=="string")K+=P(X);else{var J=P(X.prefix),G="(?:"+X.pattern+")";V.push(X),X.repeat&&(G+="(?:"+J+G+")*"),K+=G=X.optional?X.partial?J+"
55("+G+")?":"(?:"+J+"("+G+"))?":J+"("+G+")"}}var Q=P(F.delimiter||"/"),pe=K.slice(-Q.length)===Q;return ee||(K=(pe?K.slice(0,-Q.length):K)+"(?:"+Q+"(?=$))?"),K+=te?"$":ee&&pe?"":"(?="+Q+"|$)",U(new RegExp("^"+K,D(F)),V)}},9748:function(f,b,m){m.r(b),m.d(b,{Children:function(){return se},Component:function(){return C.wA},Fragment:function(){return C.HY},PureComponent:function(){return Se},StrictMode:function(){return Ur},Suspense:function(){return Te},SuspenseList:function(){return Ke},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return zr},cloneElement:function(){return yn},createContext:function(){return C.kr},createElement:function(){return C.az},createFactory:function(){return Fn},createPortal:function(){return ht},createRef:function(){return C.Vf},default:function(){return vo},findDOMNode:function(){return un},flushSync:function(){return En},forwardRef:function(){return ze},hydrate:function(){return jt},isElement:function(){return Vi},isFragment:function(){return Fr},isValidElement:function(){return At},lazy:function(){return Le},memo:function(){return he},render:function(){return Ut},startTransition:function(){return bi},unmountComponentAtNode:function(){return Rn},unstable_batchedUpdates:function(){return _n},useCallback:function(){return pe},useContext:function(){return ye},useDebugValue:function(){return de},useDeferredValue:function(){return ri},useEffect:function(){return H},useErrorBoundary:function(){return _e},useId:function(){return Re},useImperativeHandle:function(){return G},useInsertionEffect:function(){return $i},useLayoutEffect:function(){return X},useMemo:function(){return Q},useReducer:function(){return K},useRef:function(){return J},useState:function(){return te},useSyncExternalStore:function(){return Wr},useTransition:function(){return dn},version:function(){return zn}});
55var S,w,T,A,C=m(6400),P=0,B=[],U=[],D=C.YM.__b,$=C.YM.__r,z=C.YM.diffed,V=C.YM.__c,F=C.YM.unmount;function ee(He,$e){C.YM.__h&&C.YM.__h(w,He,P||$e),P=0;var je=w.__H||(w.__H={__:[],__h:[]});return He>=je.__.length&&je.__.push({__V:U}),je.__[He]}function te(He){return P=1,K(et,He)}function K(He,$e,je){var qe=ee(S++,2);if(qe.t=He,!qe.__c&&(qe.__=[je?je($e):et(void 0,$e),function(Pt){var Ot=qe.__N?qe.__N[0]:qe.__[0],Wt=qe.t(Ot,Pt);Ot!==Wt&&(qe.__N=[Wt,qe.__[1]],qe.__c.setState({}))}],qe.__c=w,!w.u)){var Ge=function(Pt,Ot,Wt){if(!qe.__c.__H)return!0;var tr=qe.__c.__H.__.filter(function(vr){return vr.__c});if(tr.every(function(vr){return!vr.__N}))return!_t||_t.call(this,Pt,Ot,Wt);var Sr=!1;return tr.forEach(function(vr){if(vr.__N){var jr=vr.__[0];vr.__=vr.__N,vr.__N=void 0,jr!==vr.__[0]&&(Sr=!0)}}),!(!Sr&&qe.__c.props===Pt)&&(!_t||_t.call(this,Pt,Ot,Wt))};w.u=!0;var _t=w.shouldComponentUpdate,yt=w.componentWillUpdate;w.componentWillUpdate=function(Pt,Ot,Wt){if(this.__e){var tr=_t;_t=void 0,Ge(Pt,Ot,Wt),_t=tr}yt&&yt.call(this,Pt,Ot,Wt)},w.shouldComponentUpdate=Ge}return qe.__N||qe.__}function H(He,$e){var je=ee(S++,3);!C.YM.__s&&We(je.__H,$e)&&(je.__=He,je.i=$e,w.__H.__h.push(je))}function X(He,$e){var je=ee(S++,4);!C.YM.__s&&We(je.__H,$e)&&(je.__=He,je.i=$e,w.__h.push(je))}function J(He){return P=5,Q(function(){return{current:He}},[])}function G(He,$e,je){P=6,X(function(){return typeof He=="function"?(He($e()),function(){return He(null)}):He?(He.current=$e(),function(){return He.current=null}):void 0},je==null?je:je.concat(He))}function Q(He,$e){var je=ee(S++,7);return We(je.__H,$e)?(je.__V=He(),je.i=$e,je.__h=He,je.__V):je.__}function pe(He,$e){return P=8,Q(function(){return He},$e)}function ye(He){var $e=w.context[He.__c],je=ee(S++,9);return je.c=He,$e?(je.__==null&&(je.__=!0,$e.sub(w)),$e.props.value):He.__}function de(He,$e){C.YM.useDebugValue&&C.YM.useDebugValue($e?$e(He):He)}function _e(He){var $e=ee(S++,10),je=te();return $e.__=He,w.componentDidCatch||(w.componentDidCatch=function(qe,Ge){$e.__&&$e.__(qe,Ge),je[1](qe)}),[je[0],function(){je[1](void 0)}]}function Re(){var He=ee(S++,11);if(!He.__){for(var $e=w.__v;$e!==null&&!$e.__m&&$e.__!==null;)$e=$e.__;var je=$e.__m||($e.__m=[0,0]);He.__="P"+je[0]+"-"+je[1]++}return He.__}function ge(){for(var He;He=B.shift();)if(He.__P&&He.__H)try{He.__H.__h.forEach(Ue),He.__H.__h.forEach(Ne),He.__H.__h=[]}catch($e){He.__H.__h=[],C.YM.__e($e,He.__v)}}C.YM.__b=function(He){w=null,D&&D(He)},C.YM.__r=function(He){$&&$(He),S=0;var $e=(w=He.__c).__H;$e&&(T===w?($e.__h=[],w.__h=[],$e.__.forEach(function(je){je.__N&&(je.__=je.__N),je.__V=U,je.__N=je.i=void 0})):($e.__h.forEach(Ue),$e.__h.forEach(Ne),$e.__h=[],S=0)),T=w},C.YM.diffed=function(He){z&&z(He);var $e=He.__c;$e&&$e.__H&&($e.__H.__h.length&&(B.push($e)!==1&&A===C.YM.requestAnimationFrame||((A=C.YM.requestAnimationFrame)||Me)(ge)),$e.__H.__.forEach(function(je){je.i&&(je.__H=je.i),je.__V!==U&&(je.__=je.__V),je.i=void 0,je.__V=U})),T=w=null},C.YM.__c=function(He,$e){$e.some(function(je){try{je.__h.forEach(Ue),je.__h=je.__h.filter(function(qe){return!qe.__||Ne(qe)})}catch(qe){$e.some(function(Ge){Ge.__h&&(Ge.__h=[])}),$e=[],C.YM.__e(qe,je.__v)}}),V&&V(He,$e)},C.YM.unmount=function(He){F&&F(He);var $e,je=He.__c;je&&je.__H&&(je.__H.__.forEach(function(qe){try{Ue(qe)}catch(Ge){$e=Ge}}),je.__H=void 0,$e&&C.YM.__e($e,je.__v))};var Ce=typeof requestAnimationFrame=="function";function Me(He){var $e,je=function(){clearTimeout(qe),Ce&&cancelAnimationFrame($e),setTimeout(He)},qe=setTimeout(je,100);Ce&&($e=requestAnimationFrame(je))}function Ue(He){var $e=w,je=He.__c;typeof je=="function"&&(He.__c=void 0,je()),w=$e}function Ne(He){var $e=w;He.__c=He.__(),w=$e}function We(He,$e){return!He||He.length!==$e.length||$e.some(function(je,qe){return je!==He[qe]})}function et(He,$e){return typeof $e=="function"?$e(He):$e}function rt(He,$e){for(var je in $e)He[je]=$e[je];return He}function re(He,$e){for(var je in He)if(je!=="__source"&&!(je in $e))return!0;for(var qe in $e)if(qe!=="__source"&&He[qe]!==$e[qe])return!0;return!1}function ne(He,$e){return He===$e&&(He!==0||1/He==1/$e)||He!=He&&$e!=$e}function Se(He){this.props=He}function he(He,$e){function je(Ge){var _t=this.props.ref,yt=_t==Ge.ref;return!yt&&_t&&(_t.call?_t(null):_t.current=null),$e?!$e(this.props,Ge)||!yt:re(this.props,Ge)}function qe(Ge){return this.shouldComponentUpdate=je,(0,C.az)(He,Ge)}return qe.displayName="Memo("+(He.displayName||He.name)+")",qe.prototype.isReactComponent=!0,qe.__f=!0,qe}(Se.prototype=new C.wA).isPureReactComponent=!0,Se.prototype.shouldComponentUpdate=function(He,$e){return re(this.props,He)||re(this.state,$e)};var we=C.YM.__b;C.YM.__b=function(He){He.type&&He.type.__f&&He.ref&&(He.props.ref=He.ref,He.ref=null),we&&we(He)};var xe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ze(He){function $e(je){var qe=rt({},je);return delete qe.ref,He(qe,je.ref||null)}return $e.$$typeof=xe,$e.render=$e,$e.prototype.isReactComponent=$e.__f=!0,$e.displayName="ForwardRef("+(He.displayName||He.name)+")",$e}var Ee=function(He,$e){return He==null?null:(0,C.bR)((0,C.bR)(He).map($e))},se={map:Ee,forEach:Ee,count:function(He){return He?(0,C.bR)(He).length:0},only:function(He){var $e=(0,C.bR)(He);
55if($e.length!==1)throw"Children.only";return $e[0]},toArray:C.bR},L=C.YM.__e;C.YM.__e=function(He,$e,je,qe){if(He.then){for(var Ge,_t=$e;_t=_t.__;)if((Ge=_t.__c)&&Ge.__c)return $e.__e==null&&($e.__e=je.__e,$e.__k=je.__k),Ge.__c(He,$e)}L(He,$e,je,qe)};var j=C.YM.unmount;function Z(He,$e,je){return He&&(He.__c&&He.__c.__H&&(He.__c.__H.__.forEach(function(qe){typeof qe.__c=="function"&&qe.__c()}),He.__c.__H=null),(He=rt({},He)).__c!=null&&(He.__c.__P===je&&(He.__c.__P=$e),He.__c=null),He.__k=He.__k&&He.__k.map(function(qe){return Z(qe,$e,je)})),He}function le(He,$e,je){return He&&(He.__v=null,He.__k=He.__k&&He.__k.map(function(qe){return le(qe,$e,je)}),He.__c&&He.__c.__P===$e&&(He.__e&&je.insertBefore(He.__e,He.__d),He.__c.__e=!0,He.__c.__P=je)),He}function Te(){this.__u=0,this.t=null,this.__b=null}function Ae(He){var $e=He.__.__c;return $e&&$e.__a&&$e.__a(He)}function Le(He){var $e,je,qe;function Ge(_t){if($e||($e=He()).then(function(yt){je=yt.default||yt},function(yt){qe=yt}),qe)throw qe;if(!je)throw $e;return(0,C.az)(je,_t)}return Ge.displayName="Lazy",Ge.__f=!0,Ge}function Ke(){this.u=null,this.o=null}C.YM.unmount=function(He){var $e=He.__c;$e&&$e.__R&&$e.__R(),$e&&He.__h===!0&&(He.type=null),j&&j(He)},(Te.prototype=new C.wA).__c=function(He,$e){var je=$e.__c,qe=this;qe.t==null&&(qe.t=[]),qe.t.push(je);var Ge=Ae(qe.__v),_t=!1,yt=function(){_t||(_t=!0,je.__R=null,Ge?Ge(Pt):Pt())};je.__R=yt;var Pt=function(){if(!--qe.__u){if(qe.state.__a){var Wt=qe.state.__a;qe.__v.__k[0]=le(Wt,Wt.__c.__P,Wt.__c.__O)}var tr;for(qe.setState({__a:qe.__b=null});tr=qe.t.pop();)tr.forceUpdate()}},Ot=$e.__h===!0;qe.__u++||Ot||qe.setState({__a:qe.__b=qe.__v.__k[0]}),He.then(yt,yt)},Te.prototype.componentWillUnmount=function(){this.t=[]},Te.prototype.render=function(He,$e){if(this.__b){if(this.__v.__k){var je=document.createElement("div"),qe=this.__v.__k[0].__c;this.__v.__k[0]=Z(this.__b,je,qe.__O=qe.__P)}this.__b=null}var Ge=$e.__a&&(0,C.az)(C.HY,null,He.fallback);return Ge&&(Ge.__h=null),[(0,C.az)(C.HY,null,$e.__a?null:He.children),Ge]};var nt=function(He,$e,je){if(++je[1]===je[0]&&He.o.delete($e),He.props.revealOrder&&(He.props.revealOrder[0]!=="t"||!He.o.size))for(je=He.u;je;){for(;je.length>3;)je.pop()();if(je[1]<je[0])break;He.u=je=je[2]}};function Be(He){return this.getChildContext=function(){return He.context},He.children}function vt(He){var $e=this,je=He.i;$e.componentWillUnmount=function(){(0,C.sY)(null,$e.l),$e.l=null,$e.i=null},$e.i&&$e.i!==je&&$e.componentWillUnmount(),$e.l||($e.i=je,$e.l={nodeType:1,parentNode:je,childNodes:[],appendChild:function(qe){this.childNodes.push(qe),$e.i.appendChild(qe)},insertBefore:function(qe,Ge){this.childNodes.push(qe),$e.i.appendChild(qe)},removeChild:function(qe){this.childNodes.splice(this.childNodes.indexOf(qe)>>>1,1),$e.i.removeChild(qe)}}),(0,C.sY)((0,C.az)(Be,{context:$e.context},He.__v),$e.l)}function ht(He,$e){var je=(0,C.az)(vt,{__v:He,i:$e});return je.containerInfo=$e,je}(Ke.prototype=new C.wA).__a=function(He){var $e=this,je=Ae($e.__v),qe=$e.o.get(He);return qe[0]++,function(Ge){var _t=function(){$e.props.revealOrder?(qe.push(Ge),nt($e,He,qe)):Ge()};je?je(_t):_t()}},Ke.prototype.render=function(He){this.u=null,this.o=new Map;var $e=(0,C.bR)(He.children);He.revealOrder&&He.revealOrder[0]==="b"&&$e.reverse();for(var je=$e.length;je--;)this.o.set($e[je],this.u=[1,0,this.u]);return He.children},Ke.prototype.componentDidUpdate=Ke.prototype.componentDidMount=function(){var He=this;this.o.forEach(function($e,je){nt(He,je,$e)})};var mt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$t=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Mt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Dt=/[A-Z0-9]/g,Qe=typeof document<"u",pt=function(He){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(He)};function Ut(He,$e,je){return $e.__k==null&&($e.textContent=""),(0,C.sY)(He,$e),typeof je=="function"&&je(),He?He.__c:null}function jt(He,$e,je){return(0,C.ZB)(He,$e),typeof je=="function"&&je(),He?He.__c:null}C.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(He){Object.defineProperty(C.wA.prototype,He,{configurable:!0,get:function(){return this["UNSAFE_"+He]},set:function($e){Object.defineProperty(this,He,{configurable:!0,writable:!0,value:$e})}})});var hr=C.YM.event;function _r(){}function mn(){return this.cancelBubble}function kr(){return this.defaultPrevented}C.YM.event=function(He){return hr&&(He=hr(He)),He.persist=_r,He.isPropagationStopped=mn,He.isDefaultPrevented=kr,He.nativeEvent=He};
55var gr,On={enumerable:!1,configurable:!0,get:function(){return this.class}},Ln=C.YM.vnode;C.YM.vnode=function(He){typeof He.type=="string"&&(function($e){var je=$e.props,qe=$e.type,Ge={};for(var _t in je){var yt=je[_t];if(!(_t==="value"&&"defaultValue"in je&&yt==null||Qe&&_t==="children"&&qe==="noscript"||_t==="class"||_t==="className")){var Pt=_t.toLowerCase();_t==="defaultValue"&&"value"in je&&je.value==null?_t="value":_t==="download"&&yt===!0?yt="":Pt==="ondoubleclick"?_t="ondblclick":Pt!=="onchange"||qe!=="input"&&qe!=="textarea"||pt(je.type)?Pt==="onfocus"?_t="onfocusin":Pt==="onblur"?_t="onfocusout":Mt.test(_t)?_t=Pt:qe.indexOf("-")===-1&&$t.test(_t)?_t=_t.replace(Dt,"-$&").toLowerCase():yt===null&&(yt=void 0):Pt=_t="oninput",Pt==="oninput"&&Ge[_t=Pt]&&(_t="oninputCapture"),Ge[_t]=yt}}qe=="select"&&Ge.multiple&&Array.isArray(Ge.value)&&(Ge.value=(0,C.bR)(je.children).forEach(function(Ot){Ot.props.selected=Ge.value.indexOf(Ot.props.value)!=-1})),qe=="select"&&Ge.defaultValue!=null&&(Ge.value=(0,C.bR)(je.children).forEach(function(Ot){Ot.props.selected=Ge.multiple?Ge.defaultValue.indexOf(Ot.props.value)!=-1:Ge.defaultValue==Ot.props.value})),je.class&&!je.className?(Ge.class=je.class,Object.defineProperty(Ge,"className",On)):(je.className&&!je.class||je.class&&je.className)&&(Ge.class=Ge.className=je.className),$e.props=Ge})(He),He.$$typeof=mt,Ln&&Ln(He)};var gn=C.YM.__r;C.YM.__r=function(He){gn&&gn(He),gr=He.__c};var wr=C.YM.diffed;C.YM.diffed=function(He){wr&&wr(He);var $e=He.props,je=He.__e;je!=null&&He.type==="textarea"&&"value"in $e&&$e.value!==je.value&&(je.value=$e.value==null?"":$e.value),gr=null};var zr={ReactCurrentDispatcher:{current:{readContext:function(He){return gr.__n[He.__c].props.value}}}},zn="17.0.2";function Fn(He){return C.az.bind(null,He)}function At(He){return!!He&&He.$$typeof===mt}function Fr(He){return At(He)&&He.type===C.HY}function yn(He){return At(He)?C.Tm.apply(null,arguments):He}function Rn(He){return!!He.__k&&((0,C.sY)(null,He),!0)}function un(He){return He&&(He.base||He.nodeType===1&&He)||null}var _n=function(He,$e){return He($e)},En=function(He,$e){return He($e)},Ur=C.HY;function bi(He){He()}function ri(He){return He}function dn(){return[!1,bi]}var $i=X,Vi=At;function Wr(He,$e){var je=$e(),qe=te({h:{__:je,v:$e}}),Ge=qe[0].h,_t=qe[1];return X(function(){Ge.__=je,Ge.v=$e,ne(Ge.__,$e())||_t({h:Ge})},[He,je,$e]),H(function(){return ne(Ge.__,Ge.v())||_t({h:Ge}),He(function(){ne(Ge.__,Ge.v())||_t({h:Ge})})},[He]),je}var vo={useState:te,useId:Re,useReducer:K,useEffect:H,useLayoutEffect:X,useInsertionEffect:$i,useTransition:dn,useDeferredValue:ri,useSyncExternalStore:Wr,startTransition:bi,useRef:J,useImperativeHandle:G,useMemo:Q,useCallback:pe,useContext:ye,useDebugValue:de,version:"17.0.2",Children:se,render:Ut,hydrate:jt,unmountComponentAtNode:Rn,createPortal:ht,createElement:C.az,createContext:C.kr,createFactory:Fn,cloneElement:yn,createRef:C.Vf,Fragment:C.HY,isValidElement:At,isElement:Vi,isFragment:Fr,findDOMNode:un,Component:C.wA,PureComponent:Se,memo:he,forwardRef:ze,flushSync:En,unstable_batchedUpdates:_n,StrictMode:Ur,Suspense:Te,SuspenseList:Ke,lazy:Le,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zr}},6400:function(f,b,m){m.d(b,{HY:function(){return X},Tm:function(){return xe},Vf:function(){return H},YM:function(){return w},ZB:function(){return we},az:function(){return te},bR:function(){return Re},kr:function(){return ze},sY:function(){return he},wA:function(){return J}});var S,w,T,A,C,P,B,U,D={},$=[],z=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;function F(Ee,se){for(var L in se)Ee[L]=se[L];return Ee}function ee(Ee){var se=Ee.parentNode;se&&se.removeChild(Ee)}function te(Ee,se,L){var j,Z,le,Te={};for(le in se)le=="key"?j=se[le]:le=="ref"?Z=se[le]:Te[le]=se[le];if(arguments.length>2&&(Te.children=arguments.length>3?S.call(arguments,2):L),typeof Ee=="function"&&Ee.defaultProps!=null)for(le in Ee.defaultProps)Te[le]===void 0&&(Te[le]=Ee.defaultProps[le]);return K(Ee,Te,j,Z,null)}function K(Ee,se,L,j,Z){var le={type:Ee,props:se,key:L,ref:j,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Z??++T};return Z==null&&w.vnode!=null&&w.vnode(le),le}function H(){return{current:null}}function X(Ee){return Ee.children}function J(Ee,se){this.props=Ee,this.context=se}function G(Ee,se){if(se==null)return Ee.__?G(Ee.__,Ee.__.__k.indexOf(Ee)+1):null;for(var L;se<Ee.__k.length;se++)if((L=Ee.__k[se])!=null&&L.__e!=null)return L.__e;return typeof Ee.type=="function"?G(Ee):null}function Q(Ee){var se,L;if((Ee=Ee.__)!=null&&Ee.__c!=null){for(Ee.__e=Ee.__c.base=null,se=0;se<Ee.__k.length;se++)if((L=Ee.__k[se])!=null&&L.__e!=null){Ee.__e=Ee.__c.base=L.__e;break}return Q(Ee)}}function pe(Ee){(!Ee.__d&&(Ee.__d=!0)&&A.push(Ee)&&!ye.__r++||C!==w.debounceRendering)&&((C=w.debounceRendering)||P)(ye)}function ye(){var Ee,se,L,j,Z,le,Te,Ae,Le;for(A.sort(B);Ee=A.shift();)Ee.__d&&(se=A.length,j=void 0,Z=void 0,le=void 0,Ae=(Te=(L=Ee).__v).__e,(Le=L.__P)&&(j=[],Z=[],(le=F({},Te)).__v=Te.__v+1,et(Le,Te,le,L.__n,Le.ownerSVGElement!==void 0,Te.__h!=null?[Ae]:null,j,Ae??G(Te),Te.__h,Z),rt(j,Te,Z),Te.__e!=Ae&&Q(Te)),A.length>se&&A.sort(B));ye.__r=0}function de(Ee,se,L,j,Z,le,Te,Ae,Le,Ke,nt){var Be,vt,ht,mt,$t,Mt,Dt,Qe,pt,Ut=0,jt=j&&j.__k||$,hr=jt.length,_r=hr,mn=se.length;
55for(L.__k=[],Be=0;Be<mn;Be++)(mt=L.__k[Be]=(mt=se[Be])==null||typeof mt=="boolean"||typeof mt=="function"?null:typeof mt=="string"||typeof mt=="number"||typeof mt=="bigint"?K(null,mt,null,null,mt):V(mt)?K(X,{children:mt},null,null,null):mt.__b>0?K(mt.type,mt.props,mt.key,mt.ref?mt.ref:null,mt.__v):mt)!=null?(mt.__=L,mt.__b=L.__b+1,(Qe=Ce(mt,jt,Dt=Be+Ut,_r))===-1?ht=D:(ht=jt[Qe]||D,jt[Qe]=void 0,_r--),et(Ee,mt,ht,Z,le,Te,Ae,Le,Ke,nt),$t=mt.__e,(vt=mt.ref)&&ht.ref!=vt&&(ht.ref&&re(ht.ref,null,mt),nt.push(vt,mt.__c||$t,mt)),$t!=null&&(Mt==null&&(Mt=$t),(pt=ht===D||ht.__v===null)?Qe==-1&&Ut--:Qe!==Dt&&(Qe===Dt+1?Ut++:Qe>Dt?_r>mn-Dt?Ut+=Qe-Dt:Ut--:Ut=Qe<Dt&&Qe==Dt-1?Qe-Dt:0),Dt=Be+Ut,typeof mt.type!="function"||Qe===Dt&&ht.__k!==mt.__k?typeof mt.type=="function"||Qe===Dt&&!pt?mt.__d!==void 0?(Le=mt.__d,mt.__d=void 0):Le=$t.nextSibling:Le=ge(Ee,$t,Le):Le=_e(mt,Le,Ee),typeof L.type=="function"&&(L.__d=Le))):(ht=jt[Be])&&ht.key==null&&ht.__e&&(ht.__e==Le&&(Le=G(ht)),ne(ht,ht,!1),jt[Be]=null);for(L.__e=Mt,Be=hr;Be--;)jt[Be]!=null&&(typeof L.type=="function"&&jt[Be].__e!=null&&jt[Be].__e==L.__d&&(L.__d=jt[Be].__e.nextSibling),ne(jt[Be],jt[Be]))}function _e(Ee,se,L){for(var j,Z=Ee.__k,le=0;Z&&le<Z.length;le++)(j=Z[le])&&(j.__=Ee,se=typeof j.type=="function"?_e(j,se,L):ge(L,j.__e,se));return se}function Re(Ee,se){return se=se||[],Ee==null||typeof Ee=="boolean"||(V(Ee)?Ee.some(function(L){Re(L,se)}):se.push(Ee)),se}function ge(Ee,se,L){return L==null||L.parentNode!==Ee?Ee.insertBefore(se,null):se==L&&se.parentNode!=null||Ee.insertBefore(se,L),se.nextSibling}function Ce(Ee,se,L,j){var Z=Ee.key,le=Ee.type,Te=L-1,Ae=L+1,Le=se[L];if(Le===null||Le&&Z==Le.key&&le===Le.type)return L;if(j>(Le!=null?1:0))for(;Te>=0||Ae<se.length;){if(Te>=0){if((Le=se[Te])&&Z==Le.key&&le===Le.type)return Te;Te--}if(Ae<se.length){if((Le=se[Ae])&&Z==Le.key&&le===Le.type)return Ae;Ae++}}return-1}function Me(Ee,se,L){se[0]==="-"?Ee.setProperty(se,L??""):Ee[se]=L==null?"":typeof L!="number"||z.test(se)?L:L+"px"}function Ue(Ee,se,L,j,Z){var le;e:if(se==="style")if(typeof L=="string")Ee.style.cssText=L;else{if(typeof j=="string"&&(Ee.style.cssText=j=""),j)for(se in j)L&&se in L||Me(Ee.style,se,"");if(L)for(se in L)j&&L[se]===j[se]||Me(Ee.style,se,L[se])}else if(se[0]==="o"&&se[1]==="n")le=se!==(se=se.replace(/(PointerCapture)$|Capture$/,"$1")),se=se.toLowerCase()in Ee?se.toLowerCase().slice(2):se.slice(2),Ee.l||(Ee.l={}),Ee.l[se+le]=L,L?j||Ee.addEventListener(se,le?We:Ne,le):Ee.removeEventListener(se,le?We:Ne,le);else if(se!=="dangerouslySetInnerHTML"){if(Z)se=se.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(se!=="width"&&se!=="height"&&se!=="href"&&se!=="list"&&se!=="form"&&se!=="tabIndex"&&se!=="download"&&se!=="rowSpan"&&se!=="colSpan"&&se in Ee)try{Ee[se]=L??"";break e}catch{}typeof L=="function"||(L==null||L===!1&&se[4]!=="-"?Ee.removeAttribute(se):Ee.setAttribute(se,L))}}function Ne(Ee){return this.l[Ee.type+!1](w.event?w.event(Ee):Ee)}function We(Ee){return this.l[Ee.type+!0](w.event?w.event(Ee):Ee)}function et(Ee,se,L,j,Z,le,Te,Ae,Le,Ke){var nt,Be,vt,ht,mt,$t,Mt,Dt,Qe,pt,Ut,jt,hr,_r,mn,kr=se.type;if(se.constructor!==void 0)return null;L.__h!=null&&(Le=L.__h,Ae=se.__e=L.__e,se.__h=null,le=[Ae]),(nt=w.__b)&&nt(se);e:if(typeof kr=="function")try{if(Dt=se.props,Qe=(nt=kr.contextType)&&j[nt.__c],pt=nt?Qe?Qe.props.value:nt.__:j,L.__c?Mt=(Be=se.__c=L.__c).__=Be.__E:("prototype"in kr&&kr.prototype.render?se.__c=Be=new kr(Dt,pt):(se.__c=Be=new J(Dt,pt),Be.constructor=kr,Be.render=Se),Qe&&Qe.sub(Be),Be.props=Dt,Be.state||(Be.state={}),Be.context=pt,Be.__n=j,vt=Be.__d=!0,Be.__h=[],Be._sb=[]),Be.__s==null&&(Be.__s=Be.state),kr.getDerivedStateFromProps!=null&&(Be.__s==Be.state&&(Be.__s=F({},Be.__s)),F(Be.__s,kr.getDerivedStateFromProps(Dt,Be.__s))),ht=Be.props,mt=Be.state,Be.__v=se,vt)kr.getDerivedStateFromProps==null&&Be.componentWillMount!=null&&Be.componentWillMount(),Be.componentDidMount!=null&&Be.__h.push(Be.componentDidMount);else{if(kr.getDerivedStateFromProps==null&&Dt!==ht&&Be.componentWillReceiveProps!=null&&Be.componentWillReceiveProps(Dt,pt),!Be.__e&&(Be.shouldComponentUpdate!=null&&Be.shouldComponentUpdate(Dt,Be.__s,pt)===!1||se.__v===L.__v)){for(se.__v!==L.__v&&(Be.props=Dt,Be.state=Be.__s,Be.__d=!1),se.__e=L.__e,se.__k=L.__k,se.__k.forEac
55h(function(gr){gr&&(gr.__=se)}),Ut=0;Ut<Be._sb.length;Ut++)Be.__h.push(Be._sb[Ut]);Be._sb=[],Be.__h.length&&Te.push(Be);break e}Be.componentWillUpdate!=null&&Be.componentWillUpdate(Dt,Be.__s,pt),Be.componentDidUpdate!=null&&Be.__h.push(function(){Be.componentDidUpdate(ht,mt,$t)})}if(Be.context=pt,Be.props=Dt,Be.__P=Ee,Be.__e=!1,jt=w.__r,hr=0,"prototype"in kr&&kr.prototype.render){for(Be.state=Be.__s,Be.__d=!1,jt&&jt(se),nt=Be.render(Be.props,Be.state,Be.context),_r=0;_r<Be._sb.length;_r++)Be.__h.push(Be._sb[_r]);Be._sb=[]}else do Be.__d=!1,jt&&jt(se),nt=Be.render(Be.props,Be.state,Be.context),Be.state=Be.__s;while(Be.__d&&++hr<25);Be.state=Be.__s,Be.getChildContext!=null&&(j=F(F({},j),Be.getChildContext())),vt||Be.getSnapshotBeforeUpdate==null||($t=Be.getSnapshotBeforeUpdate(ht,mt)),de(Ee,V(mn=nt!=null&&nt.type===X&&nt.key==null?nt.props.children:nt)?mn:[mn],se,L,j,Z,le,Te,Ae,Le,Ke),Be.base=se.__e,se.__h=null,Be.__h.length&&Te.push(Be),Mt&&(Be.__E=Be.__=null)}catch(gr){se.__v=null,(Le||le!=null)&&(se.__e=Ae,se.__h=!!Le,le[le.indexOf(Ae)]=null),w.__e(gr,se,L)}else le==null&&se.__v===L.__v?(se.__k=L.__k,se.__e=L.__e):se.__e=(function(gr,On,Ln,gn,wr,zr,zn,Fn,At){var Fr,yn,Rn,un=Ln.props,_n=On.props,En=On.type,Ur=0;if(En==="svg"&&(wr=!0),zr!=null){for(;Ur<zr.length;Ur++)if((Fr=zr[Ur])&&"setAttribute"in Fr==!!En&&(En?Fr.localName===En:Fr.nodeType===3)){gr=Fr,zr[Ur]=null;break}}if(gr==null){if(En===null)return document.createTextNode(_n);gr=wr?document.createElementNS("http://www.w3.org/2000/svg",En):document.createElement(En,_n.is&&_n),zr=null,Fn=!1}if(En===null)un===_n||Fn&&gr.data===_n||(gr.data=_n);else{if(zr=zr&&S.call(gr.childNodes),yn=(un=Ln.props||D).dangerouslySetInnerHTML,Rn=_n.dangerouslySetInnerHTML,!Fn){if(zr!=null)for(un={},Ur=0;Ur<gr.attributes.length;Ur++)un[gr.attributes[Ur].name]=gr.attributes[Ur].value;(Rn||yn)&&(Rn&&(yn&&Rn.__html==yn.__html||Rn.__html===gr.innerHTML)||(gr.innerHTML=Rn&&Rn.__html||""))}if((function(bi,ri,dn,$i,Vi){var Wr;for(Wr in dn)Wr==="children"||Wr==="key"||Wr in ri||Ue(bi,Wr,null,dn[Wr],$i);for(Wr in ri)Vi&&typeof ri[Wr]!="function"||Wr==="children"||Wr==="key"||Wr==="value"||Wr==="checked"||dn[Wr]===ri[Wr]||Ue(bi,Wr,ri[Wr],dn[Wr],$i)})(gr,_n,un,wr,Fn),Rn)On.__k=[];else if(de(gr,V(Ur=On.props.children)?Ur:[Ur],On,Ln,gn,wr&&En!=="foreignObject",zr,zn,zr?zr[0]:Ln.__k&&G(Ln,0),Fn,At),zr!=null)for(Ur=zr.length;Ur--;)zr[Ur]!=null&&ee(zr[Ur]);Fn||("value"in _n&&(Ur=_n.value)!==void 0&&(Ur!==gr.value||En==="progress"&&!Ur||En==="option"&&Ur!==un.value)&&Ue(gr,"value",Ur,un.value,!1),"checked"in _n&&(Ur=_n.checked)!==void 0&&Ur!==gr.checked&&Ue(gr,"checked",Ur,un.checked,!1))}return gr})(L.__e,se,L,j,Z,le,Te,Le,Ke);(nt=w.diffed)&&nt(se)}function rt(Ee,se,L){for(var j=0;j<L.length;j++)re(L[j],L[++j],L[++j]);w.__c&&w.__c(se,Ee),Ee.some(function(Z){try{Ee=Z.__h,Z.__h=[],Ee.some(function(le){le.call(Z)})}catch(le){w.__e(le,Z.__v)}})}function re(Ee,se,L){try{typeof Ee=="function"?Ee(se):Ee.current=se}catch(j){w.__e(j,L)}}function ne(Ee,se,L){var j,Z;if(w.unmount&&w.unmount(Ee),(j=Ee.ref)&&(j.current&&j.current!==Ee.__e||re(j,null,se)),(j=Ee.__c)!=null){if(j.componentWillUnmount)try{j.componentWillUnmount()}catch(le){w.__e(le,se)}j.base=j.__P=null,Ee.__c=void 0}if(j=Ee.__k)for(Z=0;Z<j.length;Z++)j[Z]&&ne(j[Z],se,L||typeof Ee.type!="function");L||Ee.__e==null||ee(Ee.__e),Ee.__=Ee.__e=Ee.__d=void 0}function Se(Ee,se,L){return this.constructor(Ee,L)}function he(Ee,se,L){var j,Z,le,Te;w.__&&w.__(Ee,se),Z=(j=typeof L=="function")?null:L&&L.__k||se.__k,le=[],Te=[],et(se,Ee=(!j&&L||se).__k=te(X,null,[Ee]),Z||D,D,se.ownerSVGElement!==void 0,!j&&L?[L]:Z?null:se.firstChild?S.call(se.childNodes):null,le,!j&&L?L:Z?Z.__e:se.firstChild,j,Te),rt(le,Ee,Te)}function we(Ee,se){he(Ee,se,we)}function xe(Ee,se,L){var j,Z,le,Te,Ae=F({},Ee.props);for(le in Ee.type&&Ee.type.defaultProps&&(Te=Ee.type.defaultProps),se)le=="key"?j=se[le]:le=="ref"?Z=se[le]:Ae[le]=se[le]===void 0&&Te!==void 0?Te[le]:se[le];return arguments.length>2&&(Ae.children=arguments.length>3?S.call(arguments,2):L),K(Ee.type,Ae,j||Ee.key,Z||Ee.ref,null)}function ze(Ee,se){var L={__c:se="__cC"+U++,__:Ee,Consumer:function(j,Z){return j.children(Z)},Provider:function(j){var Z,le;return this.getChildContext||(Z=[],(le={})[se]=this,this.getChildContext=function(){return le},this.shouldComponentUpdate=function(Te){this.props.value!==Te.value&&Z.some(function(Ae){Ae.__e=!0,pe(Ae)})},this.sub=function(Te){Z.push(Te);var Ae=Te.componentWillUnmount;Te.componentWillUnmount=function(){Z.splice(Z.indexOf(Te),1),Ae&&Ae.call(Te)}}),j.children}};return L.Provider.__=L.Consumer.contextType=L}S=$.slice,w={__e:function(Ee,se,L,j){for(var Z,le,Te;se=se.__;)if((Z=se.__c)&&!Z.__)try{if((le=Z.constructor)&&le.getDerivedStateFromError!=null&&(Z.setState(le.getDerivedStateFromError(Ee)),Te=Z.__d),Z.componentDidCatch!=null&&(Z.componentDidCatch(Ee,j||{}),Te=Z.__d),Te)return Z.__E=Z}catch(Ae){Ee=Ae}throw Ee}},T=0,J.prototype.setState=function(Ee,se){var L;L=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=F({},this.state),typeof Ee=="function"&&(Ee=Ee(F({},L),this.props)),Ee&&F(L,Ee),Ee!=null&&this.__v&&(se&&this._sb.push(se),pe(this))},J.prototype.forceUpdate=function(Ee){this.__v&&(this.__e=!0,Ee&&this.__h.push(Ee),pe(this))},J.prototype.render=X,A=[],P=typeof Promise=="function"?Promise.prototype.then.bind(Prom
55ise.resolve()):setTimeout,B=function(Ee,se){return Ee.__v.__b-se.__v.__b},ye.__r=0,U=0},2703:function(f,b,m){var S=m(414);function w(){}function T(){}T.resetWarningCache=w,f.exports=function(){function A(B,U,D,$,z,V){if(V!==S){var F=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 F.name="Invariant Violation",F}}function C(){return A}A.isRequired=A;var P={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:C,element:A,elementType:A,instanceOf:C,node:A,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:T,resetWarningCache:w};return P.PropTypes=P,P}},5697:function(f,b,m){f.exports=m(2703)()},414:function(f){f.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5518:function(f,b,m){var S;(S=m(9748))&&typeof S=="object"&&"default"in S&&S.default;var w=new(m(3451)),T=w.getBrowser();w.getCPU();var A=w.getDevice(),C=w.getEngine(),P=w.getOS(),B=w.getUA(),U="mobile",D="tablet",$="Safari",z="Edge",V="Mobile Safari",F="iOS",ee=function(de){return de||(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none")},te=function(){return!(typeof window>"u"||!window.navigator&&!navigator)&&(window.navigator||navigator)},K=function(de){var _e=te();return _e&&_e.platform&&(_e.platform.indexOf(de)!==-1||_e.platform==="MacIntel"&&_e.maxTouchPoints>1&&!window.MSStream)},H=function(de){return de.type===void 0},X=function(de){return de.name===z},J=function(de){return typeof de=="string"&&de.indexOf("Edg/")!==-1},G=function(){return K("iPad")};A.type,(function(de){de.type})(A),(function(de){de.type})(A),(function(de){de.type})(A),(function(de){return de.name===V})(T)||G(),(function(de){de.name})(T);var Q=(function(de){var _e=de.type;return _e===U||_e===D})(A)||G();(function(de){de.type})(A),(function(de){return de.type===D})(A)||G(),H(A),H(A),(function(de){de.name})(P),(function(de){de.name})(P);var pe=(function(de){return de.name===F})(P)||G();(function(de){de.name})(T),(function(de){de.name})(T);var ye=(function(de){var _e=de.name;return _e===$||_e===V})(T);(function(de){de.name})(T),(function(de){de.name})(T),(function(de){var _e=de.version;ee(_e)})(P),(function(de){var _e=de.name;ee(_e)})(P),(function(de){var _e=de.version;ee(_e)})(T),(function(de){var _e=de.major;ee(_e)})(T),(function(de){var _e=de.name;ee(_e)})(T),(function(de){var _e=de.vendor;ee(_e)})(A),(function(de){var _e=de.model;ee(_e)})(A),(function(de){var _e=de.name;ee(_e)})(C),(function(de){var _e=de.version;ee(_e)})(C),X(T)||J(B),(function(de){de.name})(T),(function(de){var _e=de.type;ee(_e,"browser")})(A),G(),K("iPhone"),K("iPod"),(function(){var de=te(),_e=de&&de.userAgent&&de.userAgent.toLowerCase();typeof _e=="string"&&/electron/.test(_e)})(),J(B),X(T)&&J(B),(function(de){de.name})(P),(function(de){de.name})(P),(function(de){de.name})(T),(function(de){de.name})(T),b.gn=pe,b.tq=Q,b.G6=ye},3727:function(f,b,m){m.d(b,{UT:function(){return U},rU:function(){return ee}});var S=m(6550),w=m(1721),T=m(9748),A=m(7531),C=m(7462),P=m(3366),B=m(8776);T.default.Component;var U=(function(H){function X(){for(var J,G=arguments.length,Q=new Array(G),pe=0;pe<G;pe++)Q[pe]=arguments[pe];return(J=H.call.apply(H,[this].concat(Q))||this).history=(0,A.q_)(J.props),J}return(0,w.Z)(X,H),X.prototype.render=function(){return T.default.createElement(S.F0,{history:this.history,children:this.props.children})},X})(T.default.Component),D=function(H,X){return typeof H=="function"?H(X):H},$=function(H,X){return typeof H=="string"?(0,A.ob)(H,null,null,X):H},z=function(H){return H},V=T.default.forwardRef;V===void 0&&(V=z);var F=V(function(H,X){var J=H.innerRef,G=H.navigate,Q=H.onClick,pe=(0,P.Z)(H,["innerRef","navigate","onClick"]),ye=pe.target,de=(0,C.Z)({},pe,{onClick:function(_e){try{Q&&Q(_e)}catch(ge){throw _e.preventDefault(),ge}var Re;_e.defaultPrevented||_e.button!==0||ye&&ye!=="_self"||(Re=_e).metaKey||Re.altKey||Re.ctrlKey||Re.shiftKey||(_e.preventDefault(),G())}});return de.ref=z!==V&&X||J,T.default.createElement("a",de)}),ee=V(function(H,X){var J=H.component,G=J===void 0?F:J,Q=H.replace,pe=H.to,ye=H.innerRef,de=(0,P.Z)(H,["component","replace","to","innerRef"]);return T.default.createElement(S.s6.Consumer,null,function(_e){_e||(0,B.Z)(!1);var Re=_e.history,ge=$(D(pe,_e.location),_e.location),Ce=ge?Re.createHref(ge):"",Me=(0,C.Z)({},de,{href:Ce,navigate:function(){var Ue=D(pe,_e.location),Ne=(0,A.Ep)(_e.location)===(0,A.Ep)($(Ue));(Q||Ne?Re.replace:Re.push)(Ue)}});return z!==V?Me.ref=X||ye:Me.innerRef=ye,T.default.createElement(G,Me)})}),te=function(H){return H},K=T.default.forwardRef;K===void 0&&(K=te),K(function(H,X){var J=H["aria-current"],G=J===void 0?"page":J,Q=H.activeClassName,pe=Q===void 0?"active":Q,ye=H.activeStyle,de=H.className,_e=H.exact,Re=H.isActive,ge=H.location,Ce=H.sensitive,Me=H.strict,Ue=H.style,Ne=H.to,We=H.innerRef,et=(0,P.Z)(H,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return T.default.createElement(S.s6.Consumer,null,function(rt){rt||(0,B.Z)(!1);var re=ge||rt.location,ne=$(D(Ne,re),re),Se=ne.pathname,he=Se&&Se.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),we=he?(0,S.LX)(re.pathname,{path:he,exact:_e,sensitive:Ce,strict:
55Me}):null,xe=!!(Re?Re(we,re):we),ze=typeof de=="function"?de(xe):de,Ee=typeof Ue=="function"?Ue(xe):Ue;xe&&(ze=(function(){for(var L=arguments.length,j=new Array(L),Z=0;Z<L;Z++)j[Z]=arguments[Z];return j.filter(function(le){return le}).join(" ")})(ze,pe),Ee=(0,C.Z)({},Ee,ye));var se=(0,C.Z)({"aria-current":xe&&G||null,className:ze,style:Ee,to:ne},et);return te!==K?se.ref=X||We:se.innerRef=We,T.default.createElement(ee,se)})})},6550:function(f,b,m){m.d(b,{$B:function(){return Ue},AW:function(){return Re},F0:function(){return K},Gn:function(){return Q},LX:function(){return _e},TH:function(){return Me},VA:function(){return H},k6:function(){return Ce},s6:function(){return te}});var S=m(1721),w=m(9748),T=m(5697),A=m.n(T),C=m(7531),P=m(8776),B=m(7462),U=m(8620),D=m.n(U);m(663),m(3366);var $=(m(8679),1073741823),z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:m.g!==void 0?m.g:{},V=w.default.createContext||function(Ne,We){var et,rt,re,ne="__create-react-context-"+(z[re="__global_unique_id__"]=(z[re]||0)+1)+"__",Se=(function(we){function xe(){for(var Ee,se,L,j=arguments.length,Z=new Array(j),le=0;le<j;le++)Z[le]=arguments[le];return(Ee=we.call.apply(we,[this].concat(Z))||this).emitter=(se=Ee.props.value,L=[],{on:function(Te){L.push(Te)},off:function(Te){L=L.filter(function(Ae){return Ae!==Te})},get:function(){return se},set:function(Te,Ae){se=Te,L.forEach(function(Le){return Le(se,Ae)})}}),Ee}(0,S.Z)(xe,we);var ze=xe.prototype;return ze.getChildContext=function(){var Ee;return(Ee={})[ne]=this.emitter,Ee},ze.componentWillReceiveProps=function(Ee){if(this.props.value!==Ee.value){var se,L=this.props.value,j=Ee.value;((Z=L)===(le=j)?Z!==0||1/Z==1/le:Z!=Z&&le!=le)?se=0:(se=typeof We=="function"?We(L,j):$,(se|=0)!=0&&this.emitter.set(Ee.value,se))}var Z,le},ze.render=function(){return this.props.children},xe})(w.default.Component);Se.childContextTypes=((et={})[ne]=A().object.isRequired,et);var he=(function(we){function xe(){for(var Ee,se=arguments.length,L=new Array(se),j=0;j<se;j++)L[j]=arguments[j];return(Ee=we.call.apply(we,[this].concat(L))||this).observedBits=void 0,Ee.state={value:Ee.getValue()},Ee.onUpdate=function(Z,le){(0|Ee.observedBits)&le&&Ee.setState({value:Ee.getValue()})},Ee}(0,S.Z)(xe,we);var ze=xe.prototype;return ze.componentWillReceiveProps=function(Ee){var se=Ee.observedBits;this.observedBits=se??$},ze.componentDidMount=function(){this.context[ne]&&this.context[ne].on(this.onUpdate);var Ee=this.props.observedBits;this.observedBits=Ee??$},ze.componentWillUnmount=function(){this.context[ne]&&this.context[ne].off(this.onUpdate)},ze.getValue=function(){return this.context[ne]?this.context[ne].get():Ne},ze.render=function(){return(Ee=this.props.children,Array.isArray(Ee)?Ee[0]:Ee)(this.state.value);var Ee},xe})(w.default.Component);return he.contextTypes=((rt={})[ne]=A().object,rt),{Provider:Se,Consumer:he}},F=function(Ne){var We=V();return We.displayName=Ne,We},ee=F("Router-History"),te=F("Router"),K=(function(Ne){function We(rt){var re;return(re=Ne.call(this,rt)||this).state={location:rt.history.location},re._isMounted=!1,re._pendingLocation=null,rt.staticContext||(re.unlisten=rt.history.listen(function(ne){re._pendingLocation=ne})),re}(0,S.Z)(We,Ne),We.computeRootMatch=function(rt){return{path:"/",url:"/",params:{},isExact:rt==="/"}};var et=We.prototype;return et.componentDidMount=function(){var rt=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(re){rt._isMounted&&rt.setState({location:re})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},et.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},et.render=function(){return w.default.createElement(te.Provider,{value:{history:this.props.history,location:this.state.location,match:We.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},w.default.createElement(ee.Provider,{children:this.props.children||null,value:this.props.history}))},We})(w.default.Component),H=(function(Ne){function We(){for(var et,rt=arguments.length,re=new Array(rt),ne=0;ne<rt;ne++)re[ne]=arguments[ne];return(et=Ne.call.apply(Ne,[this].concat(re))||this).history=(0,C.PP)(et.props),et}return(0,S.Z)(We,Ne),We.prototype.render=function(){return w.default.createElement(K,{history:this.history,children:this.props.children})},We})(w.default.Component);w.default.Component;var X={},J=1e4,G=0;function Q(Ne,We){return Ne===void 0&&(Ne="/"),We===void 0&&(We={}),Ne==="/"?Ne:(function(et){if(X[et])return X[et];var rt=D().compile(et);return G<J&&(X[et]=rt,G++),rt})(Ne)(We,{pretty:!0})}var pe={},ye=1e4,de=0;function _e(Ne,We){We===void 0&&(We={}),(typeof We=="string"||Array.isArray(We))&&(We={path:We});var et=We,rt=et.path,re=et.exact,ne=re!==void 0&&re,Se=et.strict,he=Se!==void 0&&Se,we=et.sensitive,xe=we!==void 0&&we;return[].concat(rt).reduce(function(ze,Ee){if(!Ee&&Ee!=="")return null;if(ze)return ze;var se=(function(Le,Ke){var nt=""+Ke.end+Ke.strict+Ke.sensitive,Be=pe[nt]||(pe[nt]={});if(Be[Le])return Be[Le];var vt=[],ht={regexp:D()(Le,vt,Ke),keys:vt};return de<ye&&(Be[Le]=ht,de++),ht})(Ee,{end:ne,strict:he,sensitive:xe}),L=se.regexp,j=se.keys,Z=L.exec(Ne);
55if(!Z)return null;var le=Z[0],Te=Z.slice(1),Ae=Ne===le;return ne&&!Ae?null:{path:Ee,url:Ee==="/"&&le===""?"/":le,isExact:Ae,params:j.reduce(function(Le,Ke,nt){return Le[Ke.name]=Te[nt],Le},{})}},null)}var Re=(function(Ne){function We(){return Ne.apply(this,arguments)||this}return(0,S.Z)(We,Ne),We.prototype.render=function(){var et=this;return w.default.createElement(te.Consumer,null,function(rt){rt||(0,P.Z)(!1);var re,ne=et.props.location||rt.location,Se=et.props.computedMatch?et.props.computedMatch:et.props.path?_e(ne.pathname,et.props):rt.match,he=(0,B.Z)({},rt,{location:ne,match:Se}),we=et.props,xe=we.children,ze=we.component,Ee=we.render;return Array.isArray(xe)&&(re=xe,w.default.Children.count(re)===0)&&(xe=null),w.default.createElement(te.Provider,{value:he},he.match?xe?typeof xe=="function"?xe(he):xe:ze?w.default.createElement(ze,he):Ee?Ee(he):null:typeof xe=="function"?xe(he):null)})},We})(w.default.Component);w.default.Component,w.default.Component;var ge=w.default.useContext;function Ce(){return ge(ee)}function Me(){return ge(te).location}function Ue(Ne){var We=Me(),et=ge(te).match;return Ne?_e(We.pathname,Ne):et}},86:function(f,b){},663:function(f,b,m){m(86)},8660:function(f,b,m){/*! *****************************************************************************
56		    Copyright (C) Microsoft. All rights reserved.
57		    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
58		    this file except in compliance with the License. You may obtain a copy of the
59		    License at http://www.apache.org/licenses/LICENSE-2.0
60		    
61		    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
62		    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
63		    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
64		    MERCHANTABLITY OR NON-INFRINGEMENT.
65		    
66		    See the Apache Version 2.0 License for specific language governing permissions
67		    and limitations under the License.
68		    ***************************************************************************** */var S,w;w=S||(S={}),(function(){var T=typeof m.g=="object"?m.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),A=C(w);function C(P,B){return function(U,D){typeof P[U]!="function"&&Object.defineProperty(P,U,{configurable:!0,writable:!0,value:D}),B&&B(U,D)}}T.Reflect===void 0?T.Reflect=w:A=C(T.Reflect,A),(function(P){var B=Object.prototype.hasOwnProperty,U=typeof Symbol=="function",D=U&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:"@@toPrimitive",$=U&&Symbol.iterator!==void 0?Symbol.iterator:"@@iterator",z=typeof Object.create=="function",V={__proto__:[]}instanceof Array,F=!z&&!V,ee={create:z?function(){return Ee(Object.create(null))}:V?function(){return Ee({__proto__:null})}:function(){return Ee({})},has:F?function(se,L){return B.call(se,L)}:function(se,L){return L in se},get:F?function(se,L){return B.call(se,L)?se[L]:void 0}:function(se,L){return se[L]}},te=Object.getPrototypeOf(Function),K=typeof process=="object"&&t&&t.REFLECT_METADATA_USE_MAP_POLYFILL==="true",H=K||typeof Map!="function"||typeof Map.prototype.entries!="function"?(function(){var se={},L=[],j=(function(){function Ae(Le,Ke,nt){this._index=0,this._keys=Le,this._values=Ke,this._selector=nt}return Ae.prototype["@@iterator"]=function(){return this},Ae.prototype[$]=function(){return this},Ae.prototype.next=function(){var Le=this._index;if(Le>=0&&Le<this._keys.length){var Ke=this._selector(this._keys[Le],this._values[Le]);return Le+1>=this._keys.length?(this._index=-1,this._keys=L,this._values=L):this._index++,{value:Ke,done:!1}}return{value:void 0,done:!0}},Ae.prototype.throw=function(Le){throw this._index>=0&&(this._index=-1,this._keys=L,this._values=L),Le},Ae.prototype.return=function(Le){return this._index>=0&&(this._index=-1,this._keys=L,this._values=L),{value:Le,done:!0}},Ae})();return(function(){function Ae(){this._keys=[],this._values=[],this._cacheKey=se,this._cacheIndex=-2}return Object.defineProperty(Ae.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ae.prototype.has=function(Le){return this._find(Le,!1)>=0},Ae.prototype.get=function(Le){var Ke=this._find(Le,!1);return Ke>=0?this._values[Ke]:void 0},Ae.prototype.set=function(Le,Ke){var nt=this._find(Le,!0);return this._values[nt]=Ke,this},Ae.prototype.delete=function(Le){var Ke=this._find(Le,!1);if(Ke>=0){for(var nt=this._keys.length,Be=Ke+1;Be<nt;Be++)this._keys[Be-1]=this._keys[Be],this._values[Be-1]=this._values[Be];return this._keys.length--,this._values.length--,Le===this._cacheKey&&(this._cacheKey=se,this._cacheIndex=-2),!0}return!1},Ae.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=se,this._cacheIndex=-2},Ae.prototype.keys=function(){return new j(this._keys,this._values,Z)},Ae.prototype.values=function(){return new j(this._keys,this._values,le)},Ae.prototype.entries=function(){return new j(this._keys,this._values,Te)},Ae.prototype["@@iterator"]=function(){return this.entries()},Ae.prototype[$]=function(){return this.entries()},Ae.prototype._find=function(Le,Ke){return this._cacheKey!==Le&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Le)),this._cacheIndex<0&&Ke&&(this._cacheIndex=this._keys.length,this._keys.push(Le),this._values.push(void 0)),this._cacheIndex},Ae})();function Z(Ae,Le){return Ae}function le(Ae,Le){return Le}function Te(Ae,Le){return[Ae,Le]}})():Map,X=K||typeof Set!="function"||typeof Set.prototype.entries!="function"?(function(){function se(){this._map=new H}return Object.defineProperty(se.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),se.prototype.has=function(L){return this._map.has(L)},se.prototype.add=function(L){return this._map.set(L,L),this},se.prototype.delete=function(L){return this._map.delete(L)},se.prototype.clear=function(){this._map.clear()},se.prototype.keys=function(){return this._map.keys()},se.prototype.values=function(){return this._map.values()},se.prototype.entries=function(){return this._map.entries()},se.prototype["@@iterator"]=function(){return this.keys()},se.prototype[$]=function(){return this.keys()},se})():Set,J=new(K||typeof WeakMap!="function"?(function(){var se=ee.create(),L=j();return(function(){function Ae(){this._key=j()}return Ae.prototype.has=function(Le){var Ke=Z(Le,!1);return Ke!==void 0&&ee.has(Ke,this._key)},Ae.prototype.get=function(Le){var Ke=Z(Le,!1);return Ke!==void 0?ee.get(Ke,this._key):void 0},Ae.prototype.set=function(Le,Ke){return Z(Le,!0)[this._key]=Ke,this},Ae.prototype.delete=function(Le){var Ke=Z(Le,!1);return Ke!==void 0&&delete Ke[this._key]},Ae.prototype.clear=function(){this._key=j()},Ae})();function j(){var Ae;do Ae="@@WeakMap@@"+Te();while(ee.has(se,Ae));return se[Ae]=!0,Ae}function Z(Ae,Le){if(!B.call(Ae,L)){if(!Le)return;Object.defineProperty(Ae,L,{value:ee.create()})}return Ae[L]}function le(Ae,Le){for(var Ke=0;Ke<Le;++Ke)Ae[Ke]=255*Math.random()|0;return Ae}function Te(){var Ae,Le=(Ae=16,typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(Ae)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(Ae)):le(new 
68Uint8Array(Ae),Ae):le(new Array(Ae),Ae));Le[6]=79&Le[6]|64,Le[8]=191&Le[8]|128;for(var Ke="",nt=0;nt<16;++nt){var Be=Le[nt];nt!==4&&nt!==6&&nt!==8||(Ke+="-"),Be<16&&(Ke+="0"),Ke+=Be.toString(16).toLowerCase()}return Ke}})():WeakMap);function G(se,L,j){var Z=J.get(se);if(Me(Z)){if(!j)return;Z=new H,J.set(se,Z)}var le=Z.get(L);if(Me(le)){if(!j)return;le=new H,Z.set(L,le)}return le}function Q(se,L,j){if(pe(se,L,j))return!0;var Z=ze(L);return!Ue(Z)&&Q(se,Z,j)}function pe(se,L,j){var Z=G(L,j,!1);return!Me(Z)&&(function(le){return!!le})(Z.has(se))}function ye(se,L,j){if(pe(se,L,j))return de(se,L,j);var Z=ze(L);return Ue(Z)?void 0:ye(se,Z,j)}function de(se,L,j){var Z=G(L,j,!1);if(!Me(Z))return Z.get(se)}function _e(se,L,j,Z){G(j,Z,!0).set(se,L)}function Re(se,L){var j=ge(se,L),Z=ze(se);if(Z===null)return j;var le=Re(Z,L);if(le.length<=0)return j;if(j.length<=0)return le;for(var Te=new X,Ae=[],Le=0,Ke=j;Le<Ke.length;Le++){var nt=Ke[Le];Te.has(nt)||(Te.add(nt),Ae.push(nt))}for(var Be=0,vt=le;Be<vt.length;Be++)nt=vt[Be],Te.has(nt)||(Te.add(nt),Ae.push(nt));return Ae}function ge(se,L){var j=[],Z=G(se,L,!1);if(Me(Z))return j;for(var le=(function(Ke){var nt=Se(Ke,$);if(!re(nt))throw new TypeError;var Be=nt.call(Ke);if(!Ne(Be))throw new TypeError;return Be})(Z.keys()),Te=0;;){var Ae=we(le);if(!Ae)return j.length=Te,j;var Le=he(Ae);try{j[Te]=Le}catch(Ke){try{xe(le)}finally{throw Ke}}Te++}}function Ce(se){if(se===null)return 1;switch(typeof se){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return se===null?1:6;default:return 6}}function Me(se){return se===void 0}function Ue(se){return se===null}function Ne(se){return typeof se=="object"?se!==null:typeof se=="function"}function We(se,L){switch(Ce(se)){case 0:case 1:case 2:case 3:case 4:case 5:return se}var j=Se(se,D);if(j!==void 0){var Z=j.call(se,"string");if(Ne(Z))throw new TypeError;return Z}return(function(le){var Te,Ae,Le=le.toString;if(re(Le)&&!Ne(Ae=Le.call(le))||re(Te=le.valueOf)&&!Ne(Ae=Te.call(le)))return Ae;throw new TypeError})(se)}function et(se){var L=We(se);return(function(j){return typeof j=="symbol"})(L)?L:(function(j){return""+j})(L)}function rt(se){return Array.isArray?Array.isArray(se):se instanceof Object?se instanceof Array:Object.prototype.toString.call(se)==="[object Array]"}function re(se){return typeof se=="function"}function ne(se){return typeof se=="function"}function Se(se,L){var j=se[L];if(j!=null){if(!re(j))throw new TypeError;return j}}function he(se){return se.value}function we(se){var L=se.next();return!L.done&&L}function xe(se){var L=se.return;L&&L.call(se)}function ze(se){var L=Object.getPrototypeOf(se);if(typeof se!="function"||se===te||L!==te)return L;var j=se.prototype,Z=j&&Object.getPrototypeOf(j);if(Z==null||Z===Object.prototype)return L;var le=Z.constructor;return typeof le!="function"||le===se?L:le}function Ee(se){return se.__=void 0,delete se.__,se}P("decorate",function(se,L,j,Z){if(Me(j)){if(!rt(se))throw new TypeError;if(!ne(L))throw new TypeError;return(function(le,Te){for(var Ae=le.length-1;Ae>=0;--Ae){var Le=(0,le[Ae])(Te);if(!Me(Le)&&!Ue(Le)){if(!ne(Le))throw new TypeError;Te=Le}}return Te})(se,L)}if(!rt(se))throw new TypeError;if(!Ne(L))throw new TypeError;if(!Ne(Z)&&!Me(Z)&&!Ue(Z))throw new TypeError;return Ue(Z)&&(Z=void 0),(function(le,Te,Ae,Le){for(var Ke=le.length-1;Ke>=0;--Ke){var nt=(0,le[Ke])(Te,Ae,Le);if(!Me(nt)&&!Ue(nt)){if(!Ne(nt))throw new TypeError;Le=nt}}return Le})(se,L,j=et(j),Z)}),P("metadata",function(se,L){return function(j,Z){if(!Ne(j))throw new TypeError;if(!Me(Z)&&!(function(le){switch(Ce(le)){case 3:case 4:return!0;default:return!1}})(Z))throw new TypeError;_e(se,L,j,Z)}}),P("defineMetadata",function(se,L,j,Z){if(!Ne(j))throw new TypeError;return Me(Z)||(Z=et(Z)),_e(se,L,j,Z)}),P("hasMetadata",function(se,L,j){if(!Ne(L))throw new TypeError;return Me(j)||(j=et(j)),Q(se,L,j)}),P("hasOwnMetadata",function(se,L,j){if(!Ne(L))throw new TypeError;return Me(j)||(j=et(j)),pe(se,L,j)}),P("getMetadata",function(se,L,j){if(!Ne(L))throw new TypeError;return Me(j)||(j=et(j)),ye(se,L,j)}),P("getOwnMetadata",function(se,L,j){if(!Ne(L))throw new TypeError;return Me(j)||(j=et(j)),de(se,L,j)}),P("getMetadataKeys",function(se,L){if(!Ne(se))throw new TypeError;return Me(L)||(L=et(L)),Re(se,L)}),P("getOwnMetadataKeys",function(se,L){if(!Ne(se))throw new TypeError;return Me(L)||(L=et(L)),ge(se,L)}),P("deleteMetadata",function(se,L,j){if(!Ne(L))throw new TypeError;Me(j)||(j=et(j));var Z=G(L,j,!1);if(Me(Z)||!Z.delete(se))return!1;if(Z.size>0)return!0;var le=J.get(L);return le.delete(j),le.size>0||J.delete(L),!0})})(A)})()},8502:function(f,b,m){m.d(b,{w:function(){return T}});var S=m(9748),w=m(6595),T=(0,S.createContext)({clips:null,status:w.G.Idle,dispatch:function(){}})},8949:function(f,b,m){m.d(b,{Z:function(){return F}});var S=m(7582),w=m(2385),T=m(956),A=m(3441),C=m(355),P=m(9283),B=(function(ee){function te(K){var H=ee.call(this)||this;return H.shouldPersonalize=!1,H.endpoint="clips",H.method=C.w.get,H.clipId="",H.clipId=K,H}return(0,S.ZT)(te,ee),te.prototype.buildEndpoint=function(){return this.clipId?"".concat(this.endpoint,"/").concat(this.clipId):this.endpoint},te.prototype.buildRequestContent=function(){},te.prototype.transformResponse=function(K){return K?(P.Z.initialiseShareStateForClips([K]),K):null},te})(A.I),U=(function(ee){function te(K){var H=ee.call(this)||this;return H.shouldPersonalize=!1,H.endpoint="clips/externalId",H.method=C.w.get,H.clipExternalId="",H.clipExternalId=K,H}return(0,S.ZT)(te,ee),te.prototype.buildEndpoint=function(){return this.clipExternalId?"".concat(this.endpoint,"/").concat(this.clipExternalId):this.endpoint},te.prototype.buildRequestContent=function(){},te.prototype.transformResponse=function(K){return K?(P.Z.initialiseShareStateForClips([K]),K):null},te})(A.I),D=m(1900),$=(function(ee){function te(K){var H=ee.call(this)||this;return H.shouldPersonalize=!0,H.endpoint="clips",H.method=C.w.get,H.collection=K,H}return(0,S.ZT)(te,ee),te.prototype.buildEndpoint=function(){return this.collection?"".concat(this.endpoint,"/").concat(this.collection,"/clips"):this.endpoint},te.prototype.buildRequestContent=function(){},te.prototype.transformResponse=function(K){return K?(P.Z.initialiseShareStateForClips(K.clips),(0,D.R)(K),K):null},te})(A.I),z=m(3871),V=(function(ee){function te(){var K=ee!==null&&ee.apply(this,arguments)||this;return K.logTag="ClipsApiService",K.collectionsCache_={},K.clipsCache_={},K.clipsByExternalIdCache_={},K}return(0,S.ZT)(te,ee),te.prototype.loadClips=function(K,H){return(0,S.mG)(this,void 0,void 0,function(){var X,J,G;return(0,S.Jh)(this,function(Q){switch(Q.label){case 0:if(!K)throw new Error("Collection is required to load Clips data");if(H!=null&&H.retrieve&&this.collectionsCache_[K])return X=this.collectionsCache_[K],delete this.collectionsCache_[K],[2,Promise.resolve(X)];J=new $(K),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,w.Z.executeCommand(J)];case 2:if(!(G=Q.sent()))throw new Error("Clips null");if(G.clips.length===0)throw new z.X("Clips",K);return H!=null&&H.store&&(this.collectionsCache_[K]=G),[2,G];case 3:throw Q.sent();case 4:return[2]}})})},te.prototype.loadClip=function(K,H){return(0,S.mG)(this,void 0,void 0,function(){var X,J,G;return(0,S.Jh)(this,function(Q){switch(Q.label){case 0:if(H!=null&&H.retrieve&&this.clipsCache_[K])return X=this.clipsCache_[K],delete this.clipsCache_[K],[2,Promise.resolve(X)];J=new B(K),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,w.Z.executeCommand(J)];case 2:return(G=Q.sent())&&(H!=null&&H.store)&&(this.clipsCache_[K]=G,G.externalId&&(this.clipsByExternalIdCache_[G.externalId]=G)),[2,G];case 3:throw Q.sent();case 4:return[2]}})})},te.prototype.loadClipByExternalId=function(K,H){return(0,S.mG)(this,void 0,void 0,function(){var X,J,G;return(0,S.Jh)(this,function(Q){switch(Q.label){case 0:if(H!=null&&H.retrieve&&this.clipsByExternalIdCache_[K])return X=this.clipsByExternalIdCache_[K],delete this.clipsByExternalIdCache_[K],[2,Promise.resolve(X)];J=new U(K),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,w.Z.executeCommand(J)];case 2:return(G=Q.sent())&&(H!=null&&H.store)&&(G.id&&(this.clipsCache_[G.id]=G),this.clipsByExternalIdCache_[K]=G),[2,G];case 3:throw Q.sent();case 4:return[2]}})})},te.sharedInstance=new te,te})(T.b),F=V.sharedInstance},1900:function(f,b,m){m.d(b,{R:function(){return T}});
68var S=m(9283),w=m(8936),T=function(A){var C=A.clips,P=A.enableViewedOrdering;C.sort(function(B,U){var D=S.Z.getClipViewedState(B.id)!==w.N.read,$=S.Z.getClipViewedState(U.id)!==w.N.read;P||(D=!1,$=!1);var z=B.isLive,V=U.isLive;return z||V?!z&&V?1:z&&!V?-1:z&&V?D&&!$?-1:!D&&$?1:B.sortOrder-U.sortOrder:0:D===$?B.sortOrder-U.sortOrder:D?-1:1})}},9420:function(f,b,m){m.d(b,{zn:function(){return z},ZP:function(){return F},A6:function(){return V}});var S=m(7582),w=m(1822),T=m(7753),A=(function(ee){function te(K,H,X){var J=ee.call(this)||this;return J.clipAfterAd=null,J.discarded=!1,J.isLoaded=!1,J.inserted=!1,J.isPausedByUser_=!1,J.handleAdLoaded_=function(G){return J.onAdLoaded(G)},J.loadStartTimestamp_=Date.now(),J.clipBeforeAd=K,J.clipAfterAd=X||null,J.collection=H,J.uniqueId=Math.floor(4503599627370496*Math.random()),J.createAdElement_(),J}return(0,S.ZT)(te,ee),te.prototype.discard=function(){var K,H;this.discarded=!0,this.pause(),(H=(K=this.element_).discard)===null||H===void 0||H.call(K),this.element_.remove()},te.prototype.insert=function(K){K.append(this.element_),this.inserted=!0,this.element_.addEventListener(T.k.load,this.handleAdLoaded_)},Object.defineProperty(te.prototype,"clipBeforeAdIndex",{get:function(){return this.clipBeforeAd.indexInCategory},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"element",{get:function(){return this.element_},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isPausedByUser",{get:function(){return this.isPausedByUser_},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"timeSinceLoadStart",{get:function(){return Date.now()-this.loadStartTimestamp_},enumerable:!1,configurable:!0}),te.prototype.pause=function(K){var H,X,J=(K===void 0?{}:K).userInitiated,G=J!==void 0&&J;(X=(H=this.element_).pause)===null||X===void 0||X.call(H),G&&(this.isPausedByUser_=!0)},te.prototype.play=function(K){var H=K===void 0?{}:K,X=H.ignoreUserPausedState,J=X!==void 0&&X,G=H.userInitiated,Q=G!==void 0&&G;return!(this.isPausedByUser_&&!Q&&!J||!this.element_.play||(this.element_.play(),(Q||J)&&(this.isPausedByUser_=!1),0))},te.prototype.restart=function(){var K,H;return!this.isPausedByUser_&&!!this.element_.play&&((H=(K=this.element_).rewind)===null||H===void 0||H.call(K),this.play())},te.prototype.onAdLoaded=function(K){var H=K.detail.ad,X=H.advertiserName,J=H.duration,G=H.id,Q=H.pageType,pe=H.swipeUpText,ye=H.swipeUpUrl;this.isLoaded=!0,this.id=G||"".concat(this.uniqueId),this.advertiserName=X,this.duration=J,this.pageType=Q,this.swipeUpText=pe,this.swipeUpUrl=ye,this.element_.removeEventListener(T.k.load,this.handleAdLoaded_)},te.prototype.createAdElement_=function(){var K=(0,w.gv)({clip:this.clipBeforeAd,collection:this.collection,nextClip:this.clipAfterAd});if(K&&(0,w.Ev)(K)){var H=document.createElement("amp-ad");H.setAttribute("layout","fill"),H.setAttribute("clip-ad","");var X=(0,w.cV)(K);Object.keys(X).forEach(function(J){var G=X[J];J==="json"?H.setAttribute("json",JSON.stringify(G)):H.setAttribute(J,G)}),this.element_=H}},te.prototype.hide=function(){this.pause(),this.element_.style.opacity="0"},te.prototype.show=function(K,H){var X,J,G=(H===void 0?{}:H).startMuted,Q=G!==void 0&&G;if(!K)return this.pause(),void(this.element_.style.opacity="1");this.element_.style.opacity="1",Q&&((J=(X=this.element_).mute)===null||J===void 0||J.call(X)),this.play()},te})(function(){}),C=m(1736),P=m(6661),B=m(7112),U=m(1438),D=m(2727),$=(function(ee){function te(){var K=ee.call(this)||this;return K.logTag="ClipsNavService",K.firstNavigationTimestamp_=Date.now(),K.lastNavigationTimestamp_=Date.now(),K.isCategoryAnimating_=!1,K.isTabActive_=!document.hidden,K.isUserScrollingQuickly_=!1,K.onScrollEndCallbacks_=[],K.pausedStateToRestore_=!1,K}return(0,S.ZT)(te,ee),Object.defineProperty(te.prototype,"firstNavigationTimestamp",{set:function(K){this.firstNavigationTimestamp_=K},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isAnimating",{get:function(){return this.isCategoryAnimating_},set:function(K){this.isCategoryAnimating_=K},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isTabActive",{get:function(){return this.isTabActive_},set:function(K){this.isTabActive_=K}
68,enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isProbablyInitialNavigation",{get:function(){return Date.now()-this.firstNavigationTimestamp_<100},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"isUserScrollingQuickly",{get:function(){return this.isUserScrollingQuickly_},set:function(K){var H=this;this.isUserScrollingQuickly_=K,K?setTimeout(function(){H.isUserScrollingQuickly_&&Date.now()-H.lastNavigationTimestamp_>=750&&(H.isUserScrollingQuickly_=!1,H.triggerOnScrollEndCallbacks_())},751):this.triggerOnScrollEndCallbacks_()},enumerable:!1,configurable:!0}),te.prototype.onScrollEnd=function(K){this.isUserScrollingQuickly?this.onScrollEndCallbacks_.push(K):K()},Object.defineProperty(te.prototype,"pausedStateToRestore",{get:function(){return this.pausedStateToRestore_},set:function(K){this.pausedStateToRestore_=K},enumerable:!1,configurable:!0}),te.prototype.isInitialNavigationEvent_=function(K){return"slideIndex"in K},te.prototype.recordNavigationEvent=function(K){var H=Date.now(),X=H-this.lastNavigationTimestamp_;this.isUserScrollingQuickly=!this.isCategoryAnimating_&&X<750,this.lastNavigationTimestamp_=H},te.prototype.triggerOnScrollEndCallbacks_=function(){this.onScrollEndCallbacks_.forEach(function(K){K()})},te})(m(956).b),z=300;function V(ee){return ee instanceof A}var F=(function(ee){function te(K){var H=ee.call(this)||this;return H.logTag="ClipsNavService",H.activeAppendedSlideIndex_=-1,H.activeSlideIndex_=-1,H.activeClip_=null,H.allSlides_=[],H.appendedSlides_=[],H.hasUserSeenAnAd_=!1,H.isActiveCategory_=!1,H.slidesUntilNextAdWhenMovingBackwards_=H.adFrequency_===0?H.adFrequency_-1:null,H.slidesUntilNextAdWhenMovingForwards_=H.adFrequency_===0?H.adFrequency_-1:null,H.collection_=K,H}return(0,S.ZT)(te,ee),Object.defineProperty(te.prototype,"activeAppendedSlideIndex",{get:function(){return this.activeAppendedSlideIndex_},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"activeClip",{get:function(){return this.activeClip_},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"activeClipIndexInCollection",{get:function(){return V(this.activeSlide_)?null:this.activeSlide_.indexInCollection},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"appendedSlides",{get:function(){return this.appendedSlides_},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"clipIndicesToLoadOrPreload",{get:function(){var K=[];return this.slidesToLoadOrPreload_.forEach(function(H){V(H)||K.push(H)}),K.map(function(H){return H.indexInCollection})},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"shouldShowAds",{get:function(){return this.adFrequency_>0},enumerable:!1,configurable:!0}),te.prototype.closePlayer=function(){this.allSlides_=this.collectionClips_,this.appendedSlides_=[],this.activeClip_&&B.Z.broadcastEvent(D.C.clipSlideHidden,this.activeClip_.id)},te.prototype.getAppendedSlideByIndex=function(K){return this.appendedSlides[K]},Object.defineProperty(te.prototype,"isActiveCategory",{get:function(){return this.isActiveCategory_},set:function(K){if(this.isActiveCategory_=K,!K&&this.activeClip_){var H=this.activeClip_.id;setTimeout(function(){B.Z.broadcastEvent(D.C.clipSlideHidden,H)},z)}},enumerable:!1,configurable:!0}),te.prototype.isActiveSlide=function(K){return V(this.activeSlide_)&&V(K)?this.activeSlide_.uniqueId===K.uniqueId:!V(this.activeSlide_)&&!V(K)&&this.activeSlide_.indexInCategory===K.indexInCategory},te.prototype.recordNavigationEvent=function(K){var H,X,J;this.isRepeatNavigationEvent_(K)||(ee.prototype.recordNavigationEvent.call(this,K),this.isInitialNavigationEvent_(K)?(J=K.slideIndex,H=this.allSlides_[J],X=this.appendedSlides.findIndex(function(G){return V(H)&&V(G)?H.uniqueId===G.uniqueId:!V(H)&&!V(G)&&H.indexInCategory===G.indexInCategory})):(X=K.appendedSlideIndex,H=this.appendedSlides[X],J=this.allSlides_.findIndex(function(G){return V(H)&&V(G)?H.uniqueId===G.uniqueId:!V(H)&&!V(G)&&H.indexInCategory===G.indexInCategory})),this.activeSlideIndex_=J,this.activeAppendedSlideIndex_=X,V(H)||(this.activeClip_=H),this.isInitialNavigationEvent_(K)?this.handleInitialNavigation_():this.handleNavigation_(K.direction),this.checkHiddenSlides_())},te.prototype.reopenClipPlayer=function(){this.recordNavigationEvent({slideIndex:this.activeSlideIndex_})},te.prototype.goToClip=function(K,H){var X=this.allSlides_.findIndex(function(ye){return ye.id===K});if(X===-1){if((X=H.findIndex(function(ye){return ye.id===K}))===-1)return;var J=H.map(function(ye,de){return(0,S.pi)((0,S.pi)({},ye),{indexInCategory:de})});this.allSlides_=J}for(var G=0;G<this.appendedSlides_.length;G++)if(G===this.activeAppendedSlideIndex_)this.appendedSlides_[G]=this.allSlides_[X];else{var Q=G-this.activeAppendedSlideIndex_,pe=this.getAdjacentSlideIndex_(X,Q,"loadedAds");pe!==null&&(this.appendedSlides_[G]=this.allSlides_[pe])}this.activeSlideIndex_=X,this.activeClip_=this.allSlides_[X]},te.prototype.setCollectionClips=function(K,H){var X=K.map(function(J,G){return(0,S.pi)((0,S.pi)({},J),{indexInCategory:G})});this.allSlides_=X,this.setAppendedSlides_(H),this.recordNavigationEvent({slideIndex:this.activeSlideIndex_})},te.prototype.setHasUserSeenAnAd=function(K){this.hasUserSeenAnAd_=K},te.prototype.updateCollection=function(K){this.collection_=K},Object.defineProperty(te.prototype,"activeSlide_",{get:function(){return this.allSlides_[this.activeSlideIndex_]}
68,enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"adInitialIndex_",{get:function(){if(!P.Z.settings||!P.Z.settings.adsFrom)return null;var K=P.Z.settings,H=K.adsFrom,X=K.ads.clips;if(H===U.m.storyteller&&X.initialIndex)return X.initialIndex?Math.max(3,X.initialIndex):null;if(H===U.m.integratingApp&&X.initialIndex&&C.Z.getAdConfig){var J=C.Z.getAdConfig({clip:{id:"",categories:[]},collection:this.collection_});return J&&(0,w.gX)(J)&&J.slot&&X.initialIndex?Math.max(3,X.initialIndex):null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"adFrequency_",{get:function(){if(!P.Z.settings||!P.Z.settings.adsFrom)return 0;var K=P.Z.settings,H=K.adsFrom,X=K.ads.clips;if(H===U.m.storyteller&&X.frequency)return Math.max(3,X.frequency);if(H===U.m.integratingApp&&X.frequency&&C.Z.getAdConfig){var J=C.Z.getAdConfig({clip:{id:"",categories:[]},collection:this.collection_});return J&&(0,w.gX)(J)&&J.slot?Math.max(3,X.frequency):0}return 0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"collectionClips_",{get:function(){var K=[];return this.allSlides_.forEach(function(H){V(H)||K.push(H)}),K},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slidesToLoadOrPreload_",{get:function(){var K=[this.activeSlide_],H=this.getAdjacentSlideIndex_(this.activeSlideIndex_,1);if(H!==null){var X=this.allSlides_[H];K.push(X)}var J=this.getAdjacentSlideIndex_(this.activeSlideIndex_,-1);if(J!==null){var G=this.allSlides_[J];K.push(G)}return K},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"shouldReplaceAppendedSlides_",{get:function(){return!!this.shouldShowAds||this.collectionClips_.length>5},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slideBeforeNextAdOffset_",{get:function(){return this.slidesUntilNextAdWhenMovingForwards_===null?0:this.slidesUntilNextAdWhenMovingForwards_},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"slideBeforePreviousAdOffset_",{get:function(){return this.slidesUntilNextAdWhenMovingBackwards_===null?0:-1*this.slidesUntilNextAdWhenMovingBackwards_-1},enumerable:!1,configurable:!0}),te.prototype.checkHiddenSlides_=function(){for(var K=1;K<this.appendedSlides_.length;K++){var H=this.appendedSlides_[K];V(H)||K!==this.activeAppendedSlideIndex_&&K!==this.activeAppendedSlideIndex_-1&&K!==this.activeAppendedSlideIndex_+1&&(this.activeClip_&&H.id===this.activeClip_.id||B.Z.broadcastEvent(D.C.clipSlideHidden,H.id))}},te.prototype.createAdPage_=function(K){if(!(V(K)||this.allSlides_.findIndex(function(pe){return V(pe)&&pe.clipBeforeAdIndex===K.indexInCategory&&!pe.discarded})>=0)){var H=K.indexInCategory,X=this.allSlides_.findIndex(function(pe){return!V(pe)&&pe.indexInCategory===H}),J=this.getAdjacentSlideIndex_(X,1,"noAds"),G=this.allSlides_[J],Q=new A(K,this.collection_,G);X<0||(this.allSlides_.splice(X+1,0,Q),this.activeSlideIndex_>X&&this.activeSlideIndex_++)}},te.prototype.replaceAdIfTimedOut_=function(K,H){if(!K.isLoaded){this.removeAd_(K,H,!0);var X=this.getAdjacentAppendedSlidesIndices_(this.activeAppendedSlideIndex),J=X.nextSlideIndex,G=X.previousSlideIndex,Q=this.getAdjacentSlide_(this.activeSlideIndex_,H==="next"?1:-1);Q&&this.replaceAppendedSlide_(H==="next"?J:G,Q)}},te.prototype.getAdjacentSlideIndex_=function(K,H,X){var J=this;H===void 0&&(H=0),X===void 0&&(X="all");var G=K,Q=[],pe=[];if(X!=="all"&&this.allSlides_.forEach(function(_e,Re){if(V(_e)&&Re!==K){var ge=_e.isLoaded&&!_e.discarded&&_e.inserted;X!=="noAds"&&ge||pe.push(Re)}}),H>=0)for(var ye=1;ye<=H;ye++)Q.push(1);else for(ye=H;ye<=-1;ye++)Q.push(-1);var de=function(_e,Re){var ge=_e+Re;return Re>0&&ge>=J.allSlides_.length&&(ge=0),Re<0&&ge<0&&(ge=J.allSlides_.length-1),pe.includes(ge)?de(ge,Re):ge};return Q.forEach(function(_e){G=de(G,_e)}),G},te.prototype.getAdjacentSlide_=function(K,H){H===void 0&&(H=0);var X=this.getAdjacentSlideIndex_(K,H);return X!==null?this.allSlides_[X]:null},te.prototype.getAdjacentAppendedSlidesIndices_=function(K){var H=this.appendedSlides.length;return{nextSlideIndex:K+1<H?K+1:0,previousSlideIndex:K-1>=0?K-1:H-1}},te.prototype.getAppendedSlideIndices_=function(K){var H=this,X=Math.min(5,this.allSlides_.length),J=[0];if(X===5&&(J=Array.from(Array(X).keys()).map(function(de){return de-2})),X<5)for(var G=1;G<this.allSlides_.length;G++)G%2==0?J.push(-1*Math.floor(G/2)):J.push(Math.floor(G/2)+1);var Q=J.findIndex(function(de){return de===0});if(K&&Q>=0){var pe=J.slice(0,Q),ye=J.slice(Q);J=(0,S.ev)((0,S.ev)([],ye,!0),pe,!0)}return J.map(function(de){var _e=de;return _e<1&&(_e=H.allSlides_.length+_e),_e>=H.allSlides_.length&&(_e-=H.allSlides_.length),_e})},te.prototype.handleInitialNavigation_=function(){if(this.adFrequency_!==0){this.hasUserSeenAnAd_=!1;var K=this.adInitialIndex_||this.adFrequency_;this.slidesUntilNextAdWhenMovingBackwards_=K-1,this.slidesUntilNextAdWhenMovingForwards_=K-1;var H=this.getAdjacentSlideIndex_(this.activeSlideIndex_,this.slideBeforeNextAdOffset_),X=this.getAdjacentSlideIndex_(this.activeSlideIndex_,this.slideBeforePreviousAdOffset_),J=H!==null?this.allSlides_[H]:null,G=X!==null&&X!==H?this.allSlides_[X]:null;J&&this.createAdPage_(J),G&&this.createAdPage_(G)}},te.prototype.handleNavigation_=function(K){if(this.shouldReplaceAppendedSlides_)if(this.slidesUntilNextAdWhenMovingForwards_!==null&&this.slidesUntilNextAdWhenMovingBackwards_!==null&&this.adFrequency_!==0){var H=this.shouldActiveSlideHaveAnAd_(K);if(K==="next")if(H)this.slidesUntilNextAdWhenMovingForwards_=this.adFrequency_,this.slidesUntilNextAdWhenMovingBackwards_=this.adFrequency_;else{var X=!this.hasUserSeenAnAd_&&this.adInitialIndex_?this.adInitialIndex_:this.adFrequency_;this.slidesUntilNextAdWhenMovingForwards_--,this.slidesUntilNextAdWhenMovingBackwards_=X-1-this.slidesUntilNextAdWhenMovingForwards_}else K==="prev"&&(H?(this.slidesUntilNextAdWhenMovingForwards_=this.adFrequency_,this.slidesUntilNextAdWhenMovingBackwards_=this.adFrequency_):(X=!this.hasUserSeenAnAd_&&this.adInitialIndex_?this.adInitialIndex_:this.adFrequency_,this.slidesUntilNextAdWhenMovingBackwards_--,this.slidesUntilNextAdWhenMovingForwards_=X-1-this.slidesUntilNextAdWhenMovingBackwards_));var J=K==="next"?this.slideBeforeNextAdOffset_:this.slideBeforePreviousAdOffset_,G=this.getAdjacentSlideIndex_(this.activeSlideIndex_,J,"noAds"),Q=G!==null?this.allSlides_[G]:null;(V(this.activeSlide_)||H)&&Q&&this.createAdPage_(Q);var pe=this.getAdjacentSlide_(this.activeSlideIndex_,K==="next"?1:-1);pe&&V(pe)&&this.replaceAdIfTimedOut_(pe,K),this.replaceAdjacentHiddenSlide_(K)}else this.replaceAdjacentHiddenSlide_(K)},te.prototype.isRepeatNavigationEvent_=function(K){return!this.isInitialNavigationEvent_(K)&&K.appendedSlideIndex===this.activeAppendedSlideIndex},te.prototype.removeAd_=function(K,H,X){var J=this,G=this.allSlides_.findIndex(function(Me){return!!V(Me)&&Me.uniqueId===K.uniqueId}),Q=[],pe=this.allSlides_.length-1,ye=H==="next"?this.allSlides_.length-1:0,de=G===ye,_e=!1,Re=G<this.activeSlideIndex_?1:0,ge=function(Me){var Ue=J.allSlides_[Me];if(Me!==G){var Ne=function(){H==="next"?Q.push(Ue):Q.unshift(Ue)};if(H==="next"?Me<G:Me>G)return de?_e?void Ne():!V(Ue)||X&&!K.discarded?(Ne(),void(_e=!0)):void(Me<J.activeSlideIndex_&&Re++):void Ne();if(H==="next"?Me>G:Me<G){if(_e)return void Ne();if(!V(Ue)||X&&!K.discarded)return Ne(),void(_e=!0);Me<J.activeSlideIndex_&&Re++}}};if(H==="next")for(var Ce=0;Ce<=pe;Ce++)ge(Ce);else for(Ce=pe;Ce>=0;Ce--)ge(Ce);this.allSlides_=Q,Re>0&&(this.activeSlideIndex_-=Re)},te.prototype.replaceAdjacentHiddenSlide_=function(K){var H=this.getAdjacentAppendedSlidesIndices_(this.activeAppendedSlideIndex),X=H.nextSlideIndex,J=H.previousSlideIndex;if(K!=="next"){if(K==="prev"){var G=this.getAdjacentSlide_(this.activeSlideIndex_,-2),Q=this.getAdjacentAppendedSlidesIndices_(J).previousSlideIndex;if(G)if(_e=V(G),Re=this.slidesUntilNextAdWhenMovingBackwards_===1,!_e||Re&&!G.discarded)this.replaceAppendedSlide_(Q,G);else{this.removeAd_(G,K,Re);var pe=this.getAdjacentSlide_(this.activeSlideIndex_,-2);pe&&this.replaceAppendedSlide_(Q,pe)}}}else{var ye=this.getAdjacentSlide_(this.activeSlideIndex_,2),de=this.getAdjacentAppendedSlidesIndices_(X).nextSlideIndex;if(ye){var _e=V(ye),Re=this.slidesUntilNextAdWhenMovingForwards_===1;if(!_e||Re&&!ye.discarded)this.replaceAppendedSlide_(de,ye);else{this.removeAd_(ye,K,Re);var ge=this.getAdjacentSlide_(this.activeSlideIndex_,2);ge&&this.replaceAppendedSlide_(de,ge)}}}},te.prototype.replaceAppendedSlide_=function(K,H){var X=this.appendedSlides_[K];V(X)&&X.discard(),this.appendedSlides_[K]=H},te.prototype.setAppendedSlides_=function(K){var H,X,J=[];J=this.shouldReplaceAppendedSlides_?this.getAppendedSlideIndices_(!K):Array.from(Array(this.collectionClips_.length).keys());var G=this.allSlides_,Q=0;if(K){var pe=this.allSlides_.findIndex(function(Me){return Me.id===K});pe>=0&&(Q=pe)}if(Q>=0&&(this.activeSlideIndex_=Q),Q>0){var ye=this.allSlides_.slice(0,Q),de=this.allSlides_.slice(Q);G=(0,S.ev)((0,S.ev)([],de,!0),ye,!0)}var _e=J.map(function(Me){return G[Me]});this.appendedSlides_=_e;var Re=_e.findIndex(function(Me){return Me.id===K});Re<0&&(Re=0);var ge=_e.map(function(Me,Ue){return{clip:Me,appendedSlideIndex:Ue}}).filter(function(Me){return Me.clip.id===K});if(Re=ge.length>1?ge.sort(function(Me,Ue){var Ne=Math.abs(2-Me.appendedSlideIndex),We=Math.abs(2-Ue.appendedSlideIndex);return Ne>We?1:Ne<We?-1:0})[0].appendedSlideIndex:(X=(H=ge[0])===null||H===void 0?void 0:H.appendedSlideIndex)!==null&&X!==void 0?X:0,this.activeAppendedSlideIndex_=Re,this.adFrequency_!==0){var Ce=!this.hasUserSeenAnAd_&&this.adInitialIndex_?this.adInitialIndex_:this.adFrequency_;this.slidesUntilNextAdWhenMovingBackwards_=Ce-1,this.slidesUntilNextAdWhenMovingForwards_=Ce-1}},te.prototype.shouldActiveSlideHaveAnAd_=function(K){return this.slidesUntilNextAdWhenMovingBackwards_!==null&&this.slidesUntilNextAdWhenMovingForwards_!==null&&(K==="prev"&&this.slidesUntilNextAdWhenMovingBackwards_===0||K==="next"&&this.slidesUntilNextAdWhenMovingForwards_===0)},te})($)},4096:function(f,b,m){m.d(b,{Z:function(){return fl}});var S=m(7582),w=m(9748);function T(I,E,{checkForDefaultPrevented:k=!0}={}){return function(O){if(I==null||I(O),k===!1||!O.defaultPrevented)return E==null?void 0:E(O)}}function A(I,E){if(typeof I=="function")return I(E);I!=null&&(I.current=E)}function C(...I){return E=>{let k=!1;const O=I.map(Y=>{const W=A(Y,E);return k||typeof W!="function"||(k=!0),W});if(k)return()=>{for(let Y=0;Y<O.length;Y++){const W=O[Y];typeof W=="function"?W():A(I[Y],null)}}}}function P(...I){return w.useCallback(C(...I),I)}var B=m(6400),U=0;function D(I,E,k,O,Y,W){var ae,oe,ue={};for(oe in E)oe=="ref"?ae=E[oe]:ue[oe]=E[oe];var ve={type:I,props:ue,key:k,ref:ae,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--U,__source:Y,__self:W};if(typeof I=="function"&&(ae=I.defaultProps))for(oe in ae)ue[oe]===void 0&&(ue[oe]=ae[oe]);return B.YM.vnode&&B.YM.vnode(ve),ve}function $(...I){const E=I[0];if(I.length===1)return E;const k=()=>{const O=I.map(Y=>({useScope:Y(),scopeName:Y.scopeName}));return function(Y){const W=O.reduce((ae,{useScope:oe,scopeName:ue})=>({...ae,...oe(Y)[`__scope${ue}`]}),{});return w.useMemo(()=>({[`__scope${E.scopeName}`]:W}),[W])}};return k.scopeName=E.scopeName,k}var z=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},V=w[" useId ".trim().toString()]||(()=>{}),F=0;function ee(I){const[E,k]=w.useState(V());return z(()=>{k(O=>O??String(F++))},[I]),I||(E?`radix-${E}`:"")}var te=w[" useInsertionEffect ".trim().toString()]||z;function K(I){const E=(function(O){const Y=w.forwardRef((W,ae)=>{const{children:oe,...ue}=W;if(w.isValidElement(oe)){const ve=(function(fe){var Oe,ke;let me=(Oe=Object.getOwnPropertyDescriptor(fe.props,"ref"))==null?void 0:Oe.get,Ie=me&&"isReactWarning"in me&&me.
68isReactWarning;return Ie?fe.ref:(me=(ke=Object.getOwnPropertyDescriptor(fe,"ref"))==null?void 0:ke.get,Ie=me&&"isReactWarning"in me&&me.isReactWarning,Ie?fe.props.ref:fe.props.ref||fe.ref)})(oe),be=(function(fe,me){const Ie={...me};for(const Oe in me){const ke=fe[Oe],Ve=me[Oe];/^on[A-Z]/.test(Oe)?ke&&Ve?Ie[Oe]=(...Pe)=>{const De=Ve(...Pe);return ke(...Pe),De}:ke&&(Ie[Oe]=ke):Oe==="style"?Ie[Oe]={...ke,...Ve}:Oe==="className"&&(Ie[Oe]=[ke,Ve].filter(Boolean).join(" "))}return{...fe,...Ie}})(ue,oe.props);return oe.type!==w.Fragment&&(be.ref=ae?C(ae,ve):ve),w.cloneElement(oe,be)}return w.Children.count(oe)>1?w.Children.only(null):null});return Y.displayName=`${O}.SlotClone`,Y})(I),k=w.forwardRef((O,Y)=>{const{children:W,...ae}=O,oe=w.Children.toArray(W),ue=oe.find(X);if(ue){const ve=ue.props.children,be=oe.map(fe=>fe===ue?w.Children.count(ve)>1?w.Children.only(null):w.isValidElement(ve)?ve.props.children:null:fe);return D(E,{...ae,ref:Y,children:w.isValidElement(ve)?w.cloneElement(ve,void 0,be):null})}return D(E,{...ae,ref:Y,children:W})});return k.displayName=`${I}.Slot`,k}var H=Symbol("radix.slottable");function X(I){return w.isValidElement(I)&&typeof I.type=="function"&&"__radixId"in I.type&&I.type.__radixId===H}var J=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((I,E)=>{const k=K(`Primitive.${E}`),O=w.forwardRef((Y,W)=>{const{asChild:ae,...oe}=Y,ue=ae?k:E;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D(ue,{...oe,ref:W})});return O.displayName=`Primitive.${E}`,{...I,[E]:O}},{});function G(I){const E=w.useRef(I);return w.useEffect(()=>{E.current=I}),w.useMemo(()=>(...k)=>{var O;return(O=E.current)==null?void 0:O.call(E,...k)},[])}var Q,pe="dismissableLayer.update",ye=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),de=w.forwardRef((I,E)=>{const{disableOutsidePointerEvents:k=!1,onEscapeKeyDown:O,onPointerDownOutside:Y,onFocusOutside:W,onInteractOutside:ae,onDismiss:oe,...ue}=I,ve=w.useContext(ye),[be,fe]=w.useState(null),me=(be==null?void 0:be.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,Ie]=w.useState({}),Oe=P(E,ct=>fe(ct)),ke=Array.from(ve.layers),[Ve]=[...ve.layersWithOutsidePointerEventsDisabled].slice(-1),Pe=ke.indexOf(Ve),De=be?ke.indexOf(be):-1,Fe=ve.layersWithOutsidePointerEventsDisabled.size>0,Xe=De>=Pe,ut=(function(ct,at=globalThis==null?void 0:globalThis.document){const ft=G(ct),it=w.useRef(!1),Je=w.useRef(()=>{});return w.useEffect(()=>{const Ze=lt=>{if(lt.target&&!it.current){let Tt=function(){ge("dismissableLayer.pointerDownOutside",ft,Ct,{discrete:!0})};const Ct={originalEvent:lt};lt.pointerType==="touch"?(at.removeEventListener("click",Je.current),Je.current=Tt,at.addEventListener("click",Je.current,{once:!0})):Tt()}else at.removeEventListener("click",Je.current);it.current=!1},st=window.setTimeout(()=>{at.addEventListener("pointerdown",Ze)},0);return()=>{window.clearTimeout(st),at.removeEventListener("pointerdown",Ze),at.removeEventListener("click",Je.current)}},[at,ft]),{onPointerDownCapture:()=>it.current=!0}})(ct=>{const at=ct.target,ft=[...ve.branches].some(it=>it.contains(at));Xe&&!ft&&(Y==null||Y(ct),ae==null||ae(ct),ct.defaultPrevented||(oe==null||oe()))},me),ot=(function(ct,at=globalThis==null?void 0:globalThis.document){const ft=G(ct),it=w.useRef(!1);return w.useEffect(()=>{const Je=Ze=>{Ze.target&&!it.current&&ge("dismissableLayer.focusOutside",ft,{originalEvent:Ze},{discrete:!1})};return at.addEventListener("focusin",Je),()=>at.removeEventListener("focusin",Je)},[at,ft]),{onFocusCapture:()=>it.current=!0,onBlurCapture:()=>it.current=!1}})(ct=>{const at=ct.target;[...ve.branches].some(ft=>ft.contains(at))||(W==null||W(ct),ae==null||ae(ct),ct.defaultPrevented||(oe==null||oe()))},me);return(function(ct,at=globalThis==null?void 0:globalThis.document){const ft=G(ct);w.useEffect(()=>{const it=Je=>{Je.key==="Escape"&&ft(Je)};return at.addEventListener("keydown",it,{capture:!0}),()=>at.removeEventListener("keydown",it,{capture:!0})},[ft,at])})(ct=>{De===ve.layers.size-1&&(O==null||O(ct),!ct.defaultPrevented&&oe&&(ct.preventDefault(),oe()))},me),w.useEffect(()=>{if(be)return k&&(ve.layersWithOutsidePointerEventsDisabled.size===0&&(Q=me.body.style.pointerEvents,me.body.style.pointerEvents="none"),ve.layersWithOutsidePointerEventsDisabled.add(be)),ve.layers.add(be),Re(),()=>{k&&ve.layersWithOutsidePointerEventsDisabled.size===1&&(me.body.style.pointerEvents=Q)}},[be,me,k,ve]),w.useEffect(()=>()=>{be&&(ve.layers.delete(be),ve.layersWithOutsidePointerEventsDisabled.delete(be),Re())},[be,ve]),w.useEffect(()=>{const ct=()=>Ie({});return document.addEventListener(pe,ct),()=>document.removeEventListener(pe,ct)},[]),D(J.div,{...ue,ref:Oe,style:{pointerEvents:Fe?Xe?"auto":"none":void 0,...I.style},onFocusCapture:T(I.onFocusCapture,ot.onFocusCapture),onBlurCapture:T(I.onBlurCapture,ot.onBlurCapture),onPointerDownCapture:T(I.onPointerDownCapture,ut.onPointerDownCapture)})});de.displayName="DismissableLayer";var _e=w.forwardRef((I,E)=>{const k=w.useContext(ye),O=w.useRef(null),Y=P(E,O);return w.useEffect(()=>{const W=O.current;if(W)return k.branches.add(W),()=>{k.branches.delete(W)}},[k.branches]),D(J.div,{...I,ref:Y})});function Re(){const I=new CustomEvent(pe);document.dispatchEvent(I)}function ge(I,E,k,{discrete:O}){const Y=k.originalEvent.target,W=new CustomEvent(I,{bubbles:!1,cancelable:!0,detail:k});var ae,oe;E&&Y.addEventListener(I,E,{once:!0}),O?(oe=W,(ae=Y)&&w.flushSync(()=>ae.dispatchEvent(oe))):Y.dispatchEvent(W)}_e.displayName="DismissableLayerBranch";var Ce="focusScope.autoFocusOnMount",Me="focusScope.autoFocusOnUnmount",Ue={bubbles:!1,cancelable:!0},Ne=w.forwardRef((I,E)=>{const{loop:k=!1,trapped:O=!1,onMountAutoFocus:Y,onUnmountAutoFocus:W,...ae}=I,[oe,ue]=w.useState(null),ve=G(Y),be=G(W),fe=w.useRef(null),me=P(E,ke=>ue(ke)),Ie=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(O){let ke=function(Fe){if(Ie.paused||!oe)return;const Xe=Fe.target;oe.contains(Xe)?fe.current=Xe:re(fe.current,{select:!0})},Ve=function(Fe){if(Ie.paused||!oe)return;const Xe=Fe.relatedTarget;Xe!==null&&(oe.contains(Xe)||re(fe.current,{select:!0}))},Pe=function(Fe){if(document.activeElement===document.body)for(const Xe of Fe)Xe.removedNodes.length>0&&re(oe)};document.addEventListener("focusin",ke),document.addEventListener("focusout",Ve);const De=new MutationObserver(Pe);return oe&&De.observe(oe,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",ke),document.removeEventListener("focusout",Ve),De.disconnect()}}},[O,oe,Ie.paused]),w.useEffect(()=>{if(oe){ne.add(Ie);const ke=document.activeElement;if(!oe.contains(ke)){const Ve=new CustomEvent(Ce,Ue);oe.addEventListener(Ce,ve),oe.dispatchEvent(Ve),Ve.defaultPrevented||((function(Pe,{select:De=!1}={}){const Fe=document.activeElement;for(const Xe of Pe)if(re(Xe,{select:De}),document.activeElement!==Fe)return})(We(oe).filter(Pe=>Pe.tagName!=="A"),{select:!0}),document.activeElement===ke&&re(oe))}return()=>{oe.removeEventListener(Ce,ve),setTimeout(()=>{const Ve=new CustomEvent(Me,Ue);oe.addEventListener(Me,be),oe.dispatchEvent(Ve),Ve.defaultPrevented||re(ke??document.body,{select:!0}),oe.removeEventListener(Me,be),ne.remove(Ie)},0)}}},[oe,ve,be,Ie]);const Oe=w.useCallback(ke=>{if(!k&&!O||Ie.paused)return;const Ve=ke.key==="Tab"&&!ke.altKey&&!ke.ctrlKey&&!ke.metaKey,Pe=document.activeElement;if(Ve&&Pe){const De=ke.currentTarget,[Fe,Xe]=(function(ut){const ot=We(ut);return[et(ot,ut),et(ot.reverse(),ut)]})(De);Fe&&Xe?ke.shiftKey||Pe!==Xe?ke.shiftKey&&Pe===Fe&&(ke.preventDefault(),k&&re(Xe,{select:!0})):(ke.preventDefault(),k&&re(Fe,{select:!0})):Pe===De&&ke.preventDefault()}},[k,O,Ie.paused]);return D(J.div,{tabIndex:-1,...ae,ref:me,onKeyDown:Oe})});function We(I){const E=[],k=document.createTreeWalker(I,NodeFilter.SHOW_ELEMENT,{acceptNode:O=>{const Y=O.tagName==="INPUT"&&O.type==="hidden";return O.disabled||O.hidden||Y?NodeFilter.FILTER_SKIP:O.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;k.nextNode();)E.push(k.currentNode);return E}function et(I,E){for(const k of I)if(!rt(k,{upTo:E}))return k}function rt(I,{upTo:E}){if(getComputedStyle(I).visibility==="hidden")return!0;for(;I;){if(E!==void 0&&I===E)return!1;if(getComputedStyle(I).display==="none")return!0;I=I.parentElement}return!1}function re(I,{select:E=!1}={}){if(I&&I.focus){const O=document.activeElement;I.focus({preventScroll:!0}),I!==O&&(k=I)instanceof HTMLInputElement&&"select"in k&&E&&I.select()}var k}Ne.displayName="FocusScope";var ne=(function(){let I=[];return{add(E){const k=I[0];E!==k&&(k==null||k.pause()),I=Se(I,E),I.unshift(E)},remove(E){var k;I=Se(I,E),(k=I[0])==null||k.resume()}}})();function Se(I,E){const k=[...I],O=k.indexOf(E);return O!==-1&&k.splice(O,1),k}var he=w.forwardRef((I,E)=>{var oe;const{container:k,...O}=I,[Y,W]=w.useState(!1);z(()=>W(!0),[]);const ae=k||Y&&((oe=globalThis==null?void 0:globalThis.document)==null?void 0:oe.body);return ae?w.default.createPortal(D(J.div,{...O,ref:E}),ae):null});he.displayName="Portal";var we=I=>{const{present:E,children:k}=I,O=(function(ae){const[oe,ue]=w.useState(),ve=w.useRef(null),be=w.useRef(ae),fe=w.useRef("none"),me=ae?"mounted":"unmounted",[Ie,Oe]=(ke=me,Ve={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},w.useReducer((Pe,De)=>Ve[Pe][De]??Pe,ke));var ke,Ve;return w.useEffect(()=>{const Pe=xe(ve.current);fe.current=Ie==="mounted"?Pe:"none"},[Ie]),z(()=>{const Pe=ve.current,De=be.current;if(De!==ae){const Fe=fe.current,Xe=xe(Pe);Oe(ae?"MOUNT":Xe==="none"||(Pe==null?void 0:Pe.display)==="none"?"UNMOUNT":De&&Fe!==Xe?"ANIMATION_OUT":"UNMOUNT"),be.current=ae}}
68,[ae,Oe]),z(()=>{if(oe){let Pe;const De=oe.ownerDocument.defaultView??window,Fe=ut=>{const ot=xe(ve.current).includes(CSS.escape(ut.animationName));if(ut.target===oe&&ot&&(Oe("ANIMATION_END"),!be.current)){const ct=oe.style.animationFillMode;oe.style.animationFillMode="forwards",Pe=De.setTimeout(()=>{oe.style.animationFillMode==="forwards"&&(oe.style.animationFillMode=ct)})}},Xe=ut=>{ut.target===oe&&(fe.current=xe(ve.current))};return oe.addEventListener("animationstart",Xe),oe.addEventListener("animationcancel",Fe),oe.addEventListener("animationend",Fe),()=>{De.clearTimeout(Pe),oe.removeEventListener("animationstart",Xe),oe.removeEventListener("animationcancel",Fe),oe.removeEventListener("animationend",Fe)}}Oe("ANIMATION_END")},[oe,Oe]),{isPresent:["mounted","unmountSuspended"].includes(Ie),ref:w.useCallback(Pe=>{ve.current=Pe?getComputedStyle(Pe):null,ue(Pe)},[])}})(E),Y=typeof k=="function"?k({present:O.isPresent}):w.Children.only(k),W=P(O.ref,(function(ae){var ve,be;let oe=(ve=Object.getOwnPropertyDescriptor(ae.props,"ref"))==null?void 0:ve.get,ue=oe&&"isReactWarning"in oe&&oe.isReactWarning;return ue?ae.ref:(oe=(be=Object.getOwnPropertyDescriptor(ae,"ref"))==null?void 0:be.get,ue=oe&&"isReactWarning"in oe&&oe.isReactWarning,ue?ae.props.ref:ae.props.ref||ae.ref)})(Y));return typeof k=="function"||O.isPresent?w.cloneElement(Y,{ref:W}):null};function xe(I){return(I==null?void 0:I.animationName)||"none"}we.displayName="Presence";var ze=0;function Ee(){const I=document.createElement("span");return I.setAttribute("data-radix-focus-guard",""),I.tabIndex=0,I.style.outline="none",I.style.opacity="0",I.style.position="fixed",I.style.pointerEvents="none",I}var se="right-scroll-bar-position",L="width-before-scroll-bar";function j(I,E){return typeof I=="function"?I(E):I&&(I.current=E),I}var Z=typeof window<"u"?w.useLayoutEffect:w.useEffect,le=new WeakMap;function Te(I){return I}var Ae=(function(I){I===void 0&&(I={});var E=(function(k,O){O===void 0&&(O=Te);var Y=[],W=!1;return{read:function(){if(W)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return Y.length?Y[Y.length-1]:k},useMedium:function(ae){var oe=O(ae,W);return Y.push(oe),function(){Y=Y.filter(function(ue){return ue!==oe})}},assignSyncMedium:function(ae){for(W=!0;Y.length;){var oe=Y;Y=[],oe.forEach(ae)}Y={push:function(ue){return ae(ue)},filter:function(){return Y}}},assignMedium:function(ae){W=!0;var oe=[];if(Y.length){var ue=Y;Y=[],ue.forEach(ae),oe=Y}var ve=function(){var fe=oe;oe=[],fe.forEach(ae)},be=function(){return Promise.resolve().then(ve)};be(),Y={push:function(fe){oe.push(fe),be()},filter:function(fe){return oe=oe.filter(fe),Y}}}}})(null);return E.options=(0,S.pi)({async:!0,ssr:!1},I),E})(),Le=function(){},Ke=w.forwardRef(function(I,E){var k=w.useRef(null),O=w.useState({onScrollCapture:Le,onWheelCapture:Le,onTouchMoveCapture:Le}),Y=O[0],W=O[1],ae=I.forwardProps,oe=I.children,ue=I.className,ve=I.removeScrollBar,be=I.enabled,fe=I.shards,me=I.sideCar,Ie=I.noRelative,Oe=I.noIsolation,ke=I.inert,Ve=I.allowPinchZoom,Pe=I.as,De=Pe===void 0?"div":Pe,Fe=I.gapMode,Xe=(0,S._T)(I,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ut=me,ot=(function(at){var ft,it,Je=(ft=function(Ze){return at.forEach(function(st){return j(st,Ze)})},(it=(0,w.useState)(function(){return{value:null,callback:ft,facade:{get current(){return it.value},set current(Ze){var st=it.value;st!==Ze&&(it.value=Ze,it.callback(Ze,st))}}}})[0]).callback=ft,it.facade);return Z(function(){var Ze=le.get(Je);if(Ze){var st=new Set(Ze),lt=new Set(at),Tt=Je.current;st.forEach(function(Ct){lt.has(Ct)||j(Ct,null)}),lt.forEach(function(Ct){st.has(Ct)||j(Ct,Tt)})}le.set(Je,at)},[at]),Je})([k,E]),ct=(0,S.pi)((0,S.pi)({},Xe),Y);return w.createElement(w.Fragment,null,be&&w.createElement(ut,{sideCar:Ae,removeScrollBar:ve,shards:fe,noRelative:Ie,noIsolation:Oe,inert:ke,setCallbacks:W,allowPinchZoom:!!Ve,lockRef:k,gapMode:Fe}
68),ae?w.cloneElement(w.Children.only(oe),(0,S.pi)((0,S.pi)({},ct),{ref:ot})):w.createElement(De,(0,S.pi)({},ct,{className:ue,ref:ot}),oe))});Ke.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ke.classNames={fullWidth:L,zeroRight:se};var nt=function(I){var E=I.sideCar,k=(0,S._T)(I,["sideCar"]);if(!E)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var O=E.read();if(!O)throw new Error("Sidecar medium not found");return w.createElement(O,(0,S.pi)({},k))};nt.isSideCarExport=!0;var Be=function(){var I=0,E=null;return{add:function(k){var O,Y,W;I==0&&(E=(function(){if(!document)return null;var ae=document.createElement("style");ae.type="text/css";var oe=m.nc;return oe&&ae.setAttribute("nonce",oe),ae})())&&(Y=k,(O=E).styleSheet?O.styleSheet.cssText=Y:O.appendChild(document.createTextNode(Y)),W=E,(document.head||document.getElementsByTagName("head")[0]).appendChild(W)),I++},remove:function(){!--I&&E&&(E.parentNode&&E.parentNode.removeChild(E),E=null)}}},vt=function(){var I,E=(I=Be(),function(k,O){w.useEffect(function(){return I.add(k),function(){I.remove()}},[k&&O])});return function(k){var O=k.styles,Y=k.dynamic;return E(O,Y),null}},ht={left:0,top:0,right:0,gap:0},mt=function(I){return parseInt(I||"",10)||0},$t=vt(),Mt="data-scroll-locked",Dt=function(I,E,k,O){var Y=I.left,W=I.top,ae=I.right,oe=I.gap;return k===void 0&&(k="margin"),`
69  .`.concat("with-scroll-bars-hidden",` {
70   overflow: hidden `).concat(O,`;
71   padding-right: `).concat(oe,"px ").concat(O,`;
72  }
73  body[`).concat(Mt,`] {
74    overflow: hidden `).concat(O,`;
75    overscroll-behavior: contain;
76    `).concat([E&&"position: relative ".concat(O,";"),k==="margin"&&`
77    padding-left: `.concat(Y,`px;
78    padding-top: `).concat(W,`px;
79    padding-right: `).concat(ae,`px;
80    margin-left:0;
81    margin-top:0;
82    margin-right: `).concat(oe,"px ").concat(O,`;
83    `),k==="padding"&&"padding-right: ".concat(oe,"px ").concat(O,";")].filter(Boolean).join(""),`
84  }
85  
86  .`).concat(se,` {
87    right: `).concat(oe,"px ").concat(O,`;
88  }
89  
90  .`).concat(L,` {
91    margin-right: `).concat(oe,"px ").concat(O,`;
92  }
93  
94  .`).concat(se," .").concat(se,` {
95    right: 0 `).concat(O,`;
96  }
97  
98  .`).concat(L," .").concat(L,` {
99    margin-right: 0 `).concat(O,`;
100  }
101  
102  body[`).concat(Mt,`] {
103    `).concat("--removed-body-scroll-bar-size",": ").concat(oe,`px;
104  }
105`)},Qe=function(){var I=parseInt(document.body.getAttribute(Mt)||"0",10);return isFinite(I)?I:0},pt=function(I){var E=I.noRelative,k=I.noImportant,O=I.gapMode,Y=O===void 0?"margin":O;w.useEffect(function(){return document.body.setAttribute(Mt,(Qe()+1).toString()),function(){var ae=Qe()-1;ae<=0?document.body.removeAttribute(Mt):document.body.setAttribute(Mt,ae.toString())}},[]);var W=w.useMemo(function(){return(function(ae){if(ae===void 0&&(ae="margin"),typeof window>"u")return ht;var oe,ue,ve,be,fe,me=(oe=ae,ue=window.getComputedStyle(document.body),ve=ue[oe==="padding"?"paddingLeft":"marginLeft"],be=ue[oe==="padding"?"paddingTop":"marginTop"],fe=ue[oe==="padding"?"paddingRight":"marginRight"],[mt(ve),mt(be),mt(fe)]),Ie=document.documentElement.clientWidth,Oe=window.innerWidth;return{left:me[0],top:me[1],right:me[2],gap:Math.max(0,Oe-Ie+me[2]-me[0])}})(Y)},[Y]);return w.createElement($t,{styles:Dt(W,!E,Y,k?"":"!important")})},Ut=!1;if(typeof window<"u")try{var jt=Object.defineProperty({},"passive",{get:function(){return Ut=!0,!0}});window.addEventListener("test",jt,jt),window.removeEventListener("test",jt,jt)}catch{Ut=!1}var hr=!!Ut&&{passive:!1},_r=function(I,E){if(!(I instanceof Element))return!1;var k,O=window.getComputedStyle(I);return O[E]!=="hidden"&&!(O.overflowY===O.overflowX&&(k=I,k.tagName!=="TEXTAREA")&&O[E]==="visible")},mn=function(I,E){var k=E.ownerDocument,O=E;do{if(typeof ShadowRoot<"u"&&O instanceof ShadowRoot&&(O=O.host),kr(I,O)){var Y=gr(I,O);if(Y[1]>Y[2])return!0}O=O.parentNode}while(O&&O!==k.body);return!1},kr=function(I,E){return I==="v"?_r(E,"overflowY"):(function(k){return _r(k,"overflowX")})(E)},gr=function(I,E){return I==="v"?[(O=E).scrollTop,O.scrollHeight,O.clientHeight]:[(k=E).scrollLeft,k.scrollWidth,k.clientWidth];var k,O},On=function(I){return"changedTouches"in I?[I.changedTouches[0].clientX,I.changedTouches[0].clientY]:[0,0]},Ln=function(I){return[I.deltaX,I.deltaY]},gn=function(I){return I&&"current"in I?I.current:I},wr=function(I){return`
106  .block-interactivity-`.concat(I,` {pointer-events: none;}
107  .allow-interactivity-`).concat(I,` {pointer-events: all;}
108`)},zr=0,zn=[];function Fn(I){for(var E=null;I!==null;)I instanceof ShadowRoot&&(E=I.host,I=I.host),I=I.parentNode;return E}var At,Fr=(At=function(I){var E=w.useRef([]),k=w.useRef([0,0]),O=w.useRef(),Y=w.useState(zr++)[0],W=w.useState(vt)[0],ae=w.useRef(I);w.useEffect(function(){ae.current=I},[I]),w.useEffect(function(){if(I.inert){document.body.classList.add("block-interactivity-".concat(Y));var ke=(0,S.ev)([I.lockRef.current],(I.shards||[]).map(gn),!0).filter(
108Boolean);return ke.forEach(function(Ve){return Ve.classList.add("allow-interactivity-".concat(Y))}),function(){document.body.classList.remove("block-interactivity-".concat(Y)),ke.forEach(function(Ve){return Ve.classList.remove("allow-interactivity-".concat(Y))})}}},[I.inert,I.lockRef.current,I.shards]);var oe=w.useCallback(function(ke,Ve){if("touches"in ke&&ke.touches.length===2||ke.type==="wheel"&&ke.ctrlKey)return!ae.current.allowPinchZoom;var Pe,De=On(ke),Fe=k.current,Xe="deltaX"in ke?ke.deltaX:Fe[0]-De[0],ut="deltaY"in ke?ke.deltaY:Fe[1]-De[1],ot=ke.target,ct=Math.abs(Xe)>Math.abs(ut)?"h":"v";if("touches"in ke&&ct==="h"&&ot.type==="range")return!1;var at=mn(ct,ot);if(!at)return!0;if(at?Pe=ct:(Pe=ct==="v"?"h":"v",at=mn(ct,ot)),!at)return!1;if(!O.current&&"changedTouches"in ke&&(Xe||ut)&&(O.current=Pe),!Pe)return!0;var ft=O.current||Pe;return(function(it,Je,Ze,st){var lt=(function(on,$n){return on==="h"&&$n==="rtl"?-1:1})(it,window.getComputedStyle(Je).direction),Tt=lt*st,Ct=Ze.target,Gt=Je.contains(Ct),kt=!1,Lt=Tt>0,zt=0,pr=0;do{if(!Ct)break;var Cr=gr(it,Ct),Nr=Cr[0],ln=Cr[1]-Cr[2]-lt*Nr;(Nr||ln)&&kr(it,Ct)&&(zt+=ln,pr+=Nr);var jn=Ct.parentNode;Ct=jn&&jn.nodeType===Node.DOCUMENT_FRAGMENT_NODE?jn.host:jn}while(!Gt&&Ct!==document.body||Gt&&(Je.contains(Ct)||Je===Ct));return(Lt&&Math.abs(zt)<1||!Lt&&Math.abs(pr)<1)&&(kt=!0),kt})(ft,Ve,ke,ft==="h"?Xe:ut)},[]),ue=w.useCallback(function(ke){var Ve=ke;if(zn.length&&zn[zn.length-1]===W){var Pe="deltaY"in Ve?Ln(Ve):On(Ve),De=E.current.filter(function(Xe){return Xe.name===Ve.type&&(Xe.target===Ve.target||Ve.target===Xe.shadowParent)&&(ut=Xe.delta,ot=Pe,ut[0]===ot[0]&&ut[1]===ot[1]);var ut,ot})[0];if(De&&De.should)Ve.cancelable&&Ve.preventDefault();else if(!De){var Fe=(ae.current.shards||[]).map(gn).filter(Boolean).filter(function(Xe){return Xe.contains(Ve.target)});(Fe.length>0?oe(Ve,Fe[0]):!ae.current.noIsolation)&&Ve.cancelable&&Ve.preventDefault()}}},[]),ve=w.useCallback(function(ke,Ve,Pe,De){var Fe={name:ke,delta:Ve,target:Pe,should:De,shadowParent:Fn(Pe)};E.current.push(Fe),setTimeout(function(){E.current=E.current.filter(function(Xe){return Xe!==Fe})},1)},[]),be=w.useCallback(function(ke){k.current=On(ke),O.current=void 0},[]),fe=w.useCallback(function(ke){ve(ke.type,Ln(ke),ke.target,oe(ke,I.lockRef.current))},[]),me=w.useCallback(function(ke){ve(ke.type,On(ke),ke.target,oe(ke,I.lockRef.current))},[]);w.useEffect(function(){return zn.push(W),I.setCallbacks({onScrollCapture:fe,onWheelCapture:fe,onTouchMoveCapture:me}),document.addEventListener("wheel",ue,hr),document.addEventListener("touchmove",ue,hr),document.addEventListener("touchstart",be,hr),function(){zn=zn.filter(function(ke){return ke!==W}),document.removeEventListener("wheel",ue,hr),document.removeEventListener("touchmove",ue,hr),document.removeEventListener("touchstart",be,hr)}},[]);var Ie=I.removeScrollBar,Oe=I.inert;return w.createElement(w.Fragment,null,Oe?w.createElement(W,{styles:wr(Y)}):null,Ie?w.createElement(pt,{noRelative:I.noRelative,gapMode:I.gapMode}):null)},Ae.useMedium(At),nt),yn=w.forwardRef(function(I,E){return w.createElement(Ke,(0,S.pi)({},I,{ref:E,sideCar:Fr}))});yn.classNames=Ke.classNames;var Rn=yn,un=new WeakMap,_n=new WeakMap,En={},Ur=0,bi=function(I){return I&&(I.host||bi(I.parentNode))},ri=function(I,E,k){k===void 0&&(k="data-aria-hidden");var O=Array.from(Array.isArray(I)?I:[I]),Y=(function(W){return typeof document>"u"?null:(Array.isArray(W)?W[0]:W).ownerDocument.body})(I);return Y?(O.push.apply(O,Array.from(Y.querySelectorAll("[aria-live], script"))),(function(W,ae,oe,ue){var ve,be=(ve=ae,(Array.isArray(W)?W:[W]).map(function(Pe){if(ve.contains(Pe))return Pe;var De=bi(Pe);return De&&ve.contains(De)?De:(console.error("aria-hidden",Pe,"in not contained inside",ve,". Doing nothing"),null)}).filter(function(Pe){return!!Pe}));En[oe]||(En[oe]=new WeakMap);var fe=En[oe],me=[],Ie=new Set,Oe=new Set(be),ke=function(Pe){Pe&&!Ie.has(Pe)&&(Ie.add(Pe),ke(Pe.parentNode))};be.forEach(ke);var Ve=function(Pe){Pe&&!Oe.has(Pe)&&Array.prototype.forEach.call(Pe.children,function(De){if(Ie.has(De))Ve(De);else try{var Fe=De.getAttribute(ue),Xe=Fe!==null&&Fe!=="false",ut=(un.get(De)||0)+1,ot=(fe.get(De)||0)+1;un.set(De,ut),fe.set(De,ot),me.push(De),ut===1&&Xe&&_n.set(De,!0),ot===1&&De.setAttribute(oe,"true"),Xe||De.setAttribute(ue,"true")}catch(ct){console.error("aria-hidden: cannot operate on ",De,ct)}})};return Ve(ae),Ie.clear(),Ur++,function(){me.forEach(function(Pe){var De=un.get(Pe)-1,Fe=fe.get(Pe)-1;un.set(Pe,De),fe.set(Pe,Fe),De||(_n.has(Pe)||Pe.removeAttribute(ue),_n.delete(Pe)),Fe||Pe.removeAttribute(oe)}),--Ur||(un=new WeakMap,un=new WeakMap,_n=new WeakMap,En={})}})(O,Y,k,"aria-hidden")):function(){return null}},dn="Dialog",[$i]=(function(I,E=[]){let k=[];const O=()=>{const Y=k.map(W=>w.createContext(W));return function(W){const ae=(W==null?void 0:W[I])||Y;return w.useMemo(()=>({[`__scope${I}`]:{...W,[I]:ae}}),[W,ae])}};return O.scopeName=I,[function(Y,W){const ae=w.createContext(W),oe=k.length;k=[...k,W];const ue=ve=>{var ke;const{scope:be,children:fe,...me}=ve,Ie=((ke=be==null?void 0:be[I])==null?void 0:ke[oe])||ae,Oe=w.useMemo(()=>me,Object.values(me));return D(Ie.Provider,{value:Oe,children:fe})};return ue.displayName=Y+"Provider",[ue,function(ve,be){var Ie;const fe=((Ie=be==null?void 0:be[I])==null?void 0:Ie[oe])||ae,me=w.useContext(fe);if(me)return me;if(W!==void 0)return W;throw new Error(`\`${ve}\` must be used within \`${Y}\``)}]},$(O,...E)]})(dn),[Vi,Wr]=$i(dn),vo=I=>{const{__scopeDialog:E,children:k,open:O,defaultOpen:Y,onOpenChange:W,modal:ae=!0}=I,oe=w.useRef(null),ue=w.useRef(null),[ve,be]=(function({prop:fe,defaultProp:me,onChange:Ie=()=>{},caller:Oe}){const[ke,Ve,Pe]=(function({defaultProp:Xe,onChange:ut}){const[ot,ct]=w.useState(Xe),at=w.useRef(ot),ft=w.useRef(ut);return te(()=>{ft.current=ut},[ut]),w.useEffect(()=>{var it;at.current!==ot&&((it=ft.current)==null||it.call(ft,ot),at.current=ot)},[ot,at]),[ot,ct,ft]})({defaultProp:me,onChange:Ie}),De=fe!==void 0,Fe=De?fe:ke;{const Xe=w.useRef(fe!==void 0);w.useEffect(()=>{const ut=Xe.current;ut!==De&&console.warn(`${Oe} is changing from ${ut?"controlled":"uncontrolled"} to ${De?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),Xe.current=De},[De,Oe])}return[Fe,w.useCallback(Xe=>{var ut;if(De){const ot=(function(ct){return typeof ct=="function"})(Xe)?Xe(fe):Xe;ot!==fe&&((ut=Pe.current)==null||ut.call(Pe,ot))}else Ve(Xe)},[De,fe,Ve,Pe])]})({prop:O,defaultProp:Y??!1,onChange:W,caller:dn});return D(Vi,{scope:E,triggerRef:oe,contentRef:ue,contentId:ee(),titleId:ee(),descriptionId:ee(),open:ve,onOpenChange:be,onOpenToggle:w.useCallback(()=>be(fe=>!fe),[be]),modal:ae,children:k})};vo.displayName=dn;var He="DialogTrigger",$e=w.forwardRef((I,E)=>{const{__scopeDialog:k,...O}=I,Y=Wr(He,k),W=P(E,Y.triggerRef);return D(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":Y.open,"aria-controls":Y.contentId,"data-state":Bi(Y.open),...O,ref:W,onClick:T(
108I.onClick,Y.onOpenToggle)})});$e.displayName=He;var[je,qe]=$i("DialogPortal",{forceMount:void 0}),Ge="DialogOverlay",_t=w.forwardRef((I,E)=>{const k=qe(Ge,I.__scopeDialog),{forceMount:O=k.forceMount,...Y}=I,W=Wr(Ge,I.__scopeDialog);return W.modal?D(we,{present:O||W.open,children:D(Pt,{...Y,ref:E})}):null});_t.displayName=Ge;var yt=K("DialogOverlay.RemoveScroll"),Pt=w.forwardRef((I,E)=>{const{__scopeDialog:k,...O}=I,Y=Wr(Ge,k);return D(Rn,{as:yt,allowPinchZoom:!0,shards:[Y.contentRef],children:D(J.div,{"data-state":Bi(Y.open),...O,ref:E,style:{pointerEvents:"auto",...O.style}})})}),Ot="DialogContent",Wt=w.forwardRef((I,E)=>{const k=qe(Ot,I.__scopeDialog),{forceMount:O=k.forceMount,...Y}=I,W=Wr(Ot,I.__scopeDialog);return D(we,{present:O||W.open,children:W.modal?D(tr,{...Y,ref:E}):D(Sr,{...Y,ref:E})})});Wt.displayName=Ot;var tr=w.forwardRef((I,E)=>{const k=Wr(Ot,I.__scopeDialog),O=w.useRef(null),Y=P(E,k.contentRef,O);return w.useEffect(()=>{const W=O.current;if(W)return ri(W)},[]),D(vr,{...I,ref:Y,trapFocus:k.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:T(I.onCloseAutoFocus,W=>{var ae;W.preventDefault(),(ae=k.triggerRef.current)==null||ae.focus()}),onPointerDownOutside:T(I.onPointerDownOutside,W=>{const ae=W.detail.originalEvent,oe=ae.button===0&&ae.ctrlKey===!0;(ae.button===2||oe)&&W.preventDefault()}),onFocusOutside:T(I.onFocusOutside,W=>W.preventDefault())})}),Sr=w.forwardRef((I,E)=>{const k=Wr(Ot,I.__scopeDialog),O=w.useRef(!1),Y=w.useRef(!1);return D(vr,{...I,ref:E,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:W=>{var ae,oe;(ae=I.onCloseAutoFocus)==null||ae.call(I,W),W.defaultPrevented||(O.current||((oe=k.triggerRef.current)==null||oe.focus()),W.preventDefault()),O.current=!1,Y.current=!1},onInteractOutside:W=>{var ue,ve;(ue=I.onInteractOutside)==null||ue.call(I,W),W.defaultPrevented||(O.current=!0,W.detail.originalEvent.type==="pointerdown"&&(Y.current=!0));const ae=W.target;((ve=k.triggerRef.current)==null?void 0:ve.contains(ae))&&W.preventDefault(),W.detail.originalEvent.type==="focusin"&&Y.current&&W.preventDefault()}})}),vr=w.forwardRef((I,E)=>{const{__scopeDialog:k,trapFocus:O,onOpenAutoFocus:Y,onCloseAutoFocus:W,...ae}=I,oe=Wr(Ot,k),ue=w.useRef(null),ve=P(E,ue);return w.useEffect(()=>{const be=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",be[0]??Ee()),document.body.insertAdjacentElement("beforeend",be[1]??Ee()),ze++,()=>{ze===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(fe=>fe.remove()),ze--}},[]),D(B.HY,{children:[D(Ne,{asChild:!0,loop:!0,trapped:O,onMountAutoFocus:Y,onUnmountAutoFocus:W,children:D(de,{role:"dialog",id:oe.contentId,"aria-describedby":oe.descriptionId,"aria-labelledby":oe.titleId,"data-state":Bi(oe.open),...ae,ref:ve,onDismiss:()=>oe.onOpenChange(!1)})}),D(B.HY,{children:[D(Un,{titleId:oe.titleId}),D(dt,{contentRef:ue,descriptionId:oe.descriptionId})]})]})}),jr="DialogTitle",qr=w.forwardRef((I,E)=>{const{__scopeDialog:k,...O}=I,Y=Wr(jr,k);return D(J.h2,{id:Y.titleId,...O,ref:E})});qr.displayName=jr;var Qn="DialogDescription",Yi=w.forwardRef((I,E)=>{const{__scopeDialog:k,...O}=I,Y=Wr(Qn,k);return D(J.p,{id:Y.descriptionId,...O,ref:E})});Yi.displayName=Qn;var ni="DialogClose",uo=w.forwardRef((I,E)=>{const{__scopeDialog:k,...O}=I,Y=Wr(ni,k);return D(J.button,{type:"button",...O,ref:E,onClick:T(I.onClick,()=>Y.onOpenChange(!1))})});function Bi(I){return I?"open":"closed"}uo.displayName=ni;var Br="DialogTitleWarning",[ci,fi]=(function(I,E){const k=w.createContext(E),O=Y=>{const{children:W,...ae}=Y,oe=w.useMemo(()=>ae,Object.values(ae));return D(k.Provider,{value:oe,children:W})};return O.displayName=I+"Provider",[O,function(Y){const W=w.useContext(k);if(W)return W;if(E!==void 0)return E;throw new Error(`\`${Y}\` must be used within \`${I}\``)}]})(Br,{contentName:Ot,titleName:jr,docsSlug:"dialog"}),Un=({titleId:I})=>{const E=fi(Br),k=`\`${E.contentName}\` requires a \`${E.titleName}\` for the component to be accessible for screen reader users.
109
110If you want to hide the \`${E.titleName}\`, you can wrap it with our VisuallyHidden component.
111
112For more information, see https://radix-ui.com/primitives/docs/components/${E.docsSlug}`;return w.useEffect(()=>{I&&(document.getElementById(I)||console.error(k))},[k,I]),null},dt=({contentRef:I,descriptionId:E})=>{const k=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fi("DialogDescriptionWarning").contentName}}.`;return w.useEffect(()=>{var Y;const O=(Y=I.current)==null?void 0:Y.getAttribute("aria-describedby");E&&O&&(document.getElementById(E)||console.warn(k))},[k,I,E]),null},gt=vo,Ye=Wt,St=qr,Et=Symbol.for("react.lazy"),wt=w[" use ".trim().toString()];function Rt(I){return I!=null&&typeof I=="object"&&"$$typeof"in I&&I.$$typeof===Et&&"_payload"in I&&typeof(E=I._payload)=="object"&&E!==null&&"then"in E;var E}function qt(I){const E=(function(O){const Y=w.forwardRef((W,ae)=>{let{children:oe,...ue}=W;if(Rt(oe)&&typeof wt=="function"&&(oe=wt(oe._payload)),w.isValidElement(oe)){const ve=(function(fe){var Oe,ke;let me=(Oe=Object.getOwnPropertyDescriptor(fe.props,"ref"))==null?void 0:Oe.get,Ie=me&&"isReactWarning"in me&&me.
112isReactWarning;return Ie?fe.ref:(me=(ke=Object.getOwnPropertyDescriptor(fe,"ref"))==null?void 0:ke.get,Ie=me&&"isReactWarning"in me&&me.isReactWarning,Ie?fe.props.ref:fe.props.ref||fe.ref)})(oe),be=(function(fe,me){const Ie={...me};for(const Oe in me){const ke=fe[Oe],Ve=me[Oe];/^on[A-Z]/.test(Oe)?ke&&Ve?Ie[Oe]=(...Pe)=>{const De=Ve(...Pe);return ke(...Pe),De}:ke&&(Ie[Oe]=ke):Oe==="style"?Ie[Oe]={...ke,...Ve}:Oe==="className"&&(Ie[Oe]=[ke,Ve].filter(Boolean).join(" "))}return{...fe,...Ie}})(ue,oe.props);return oe.type!==w.Fragment&&(be.ref=ae?C(ae,ve):ve),w.cloneElement(oe,be)}return w.Children.count(oe)>1?w.Children.only(null):null});return Y.displayName=`${O}.SlotClone`,Y})(I),k=w.forwardRef((O,Y)=>{let{children:W,...ae}=O;Rt(W)&&typeof wt=="function"&&(W=wt(W._payload));const oe=w.Children.toArray(W),ue=oe.find(Mr);if(ue){const ve=ue.props.children,be=oe.map(fe=>fe===ue?w.Children.count(ve)>1?w.Children.only(null):w.isValidElement(ve)?ve.props.children:null:fe);return D(E,{...ae,ref:Y,children:w.isValidElement(ve)?w.cloneElement(ve,void 0,be):null})}return D(E,{...ae,ref:Y,children:W})});return k.displayName=`${I}.Slot`,k}var Bt=Symbol("radix.slottable");function Mr(I){return w.isValidElement(I)&&typeof I.type=="function"&&"__radixId"in I.type&&I.type.__radixId===Bt}var Er=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((I,E)=>{const k=qt(`Primitive.${E}`),O=w.forwardRef((Y,W)=>{const{asChild:ae,...oe}=Y,ue=ae?k:E;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D(ue,{...oe,ref:W})});return O.displayName=`Primitive.${E}`,{...I,[E]:O}},{}),Zr=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Cn=w.forwardRef((I,E)=>D(Er.span,{...I,ref:E,style:{...Zr,...I.style}}));Cn.displayName="VisuallyHidden";var Wn=Cn,ar=m(6550),dr=m(5518),pn=m(4184),Yt=m.n(pn),Jt=m(7112),Yr=m(5259),Qr=m(6940),Hr=m(4637),nr=m(9420),Tr=m(791),nn=m(4576),fn=function(){return w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 320 512","aria-hidden":"true"},w.createElement("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"}))},Ir=function(){return w.createElement("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},w.createElement("path",{d:"M1 7.119c0-.9416.1493-1.7755.4331-2.5135.298-.7626.7011-1.4022 1.204-1.9318.5048-.5317 1.093-.9398 1.7718-1.2288l.0073-.0031C5.0877 1.1497 5.816 1 6.6121 1c.9384 0 1.7267.1993 2.3933.57l.0062.0033c.7.3828 1.2437.8793 1.65 1.4904l.8203 1.2335.8373-1.222c.4247-.6198.9773-1.12 1.6726-1.5037l.0027-.0015c.6667-.3707 1.455-.57 2.3934-.57.805 0 1.5318.1502 2.1927.4404h-.0001l.0106.0045c.6789.289 1.267.697 1.7718 1.2288.5017.5284.9004 1.1662 1.1907 1.927l.0038.0097c.29.7366.4426 1.5687.4426 2.5086 0 1.4362-.3784 2.8836-1.1671 4.353-.7996 1.4896-1.9408 2.96-3.4431 4.4076l-.0018.0017c-1.5011 1.4534-3.2875 2.8511-5.3656 4.1903l-.0055.0036a3.3878 3.3878 0 0 1-.4304.2375l-.0068.0032-.0069.0032a.7421.7421 0 0 1-.0709.0302 1.0338 1.0338 0 0 1-.0884-.0366 2.7716 2.7716 0 0 1-.4019-.2261l-.0112-.0076-.0114-.0074c-2.0785-1.3395-3.8736-2.7379-5.391-4.1928-1.5014-1.4468-2.642-2.9164-3.4414-4.4052C1.3752 10.0044 1 8.5564 1 7.1191Z",stroke:"#fff",strokeWidth:"2"}))},an=function(){return w.createElement("svg",{width:"81",height:"81",viewBox:"0 0 81 81",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w.createElement("circle",{cx:"40.5",cy:"40.5",r:"40.5",fill:"#808080","fill-opacity":"0.3"}),w.createElement("g",{opacity:"0.9",filter:"url(#filter0_d_12359_24616)"},w.createElement("path",{d:"M29.9104 61C30.4471 61 30.9685 60.9089 31.4746 60.7268C31.996 60.5599 32.5787 60.2943 33.2228 59.9301L60.8257 44.0862C61.8838 43.4791 62.6735 42.8645 63.1949 42.2423C63.7316 41.6201 64 40.8688 64 39.9886C64 39.1084 63.7316 38.3572 63.1949 37.735C62.6735 37.1127 61.8838 36.4981 60.8257 35.8911L33.2228 20.0472C32.5787 19.6829 31.996 19.4173 31.474
1126 19.2504C30.9685 19.0835 30.4471 19 29.9104 19C28.837 19 27.9169 19.387 27.1501 20.161C26.3834 20.9198 26 21.9821 26 23.348V56.6293C26 57.9951 26.3834 59.065 27.1501 59.839C27.9169 60.613 28.837 61 29.9104 61Z",fill:"white"})),w.createElement("defs",null,w.createElement("filter",{id:"filter0_d_12359_24616",x:"22",y:"19",width:"46",height:"50",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},w.createElement("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),w.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),w.createElement("feOffset",{dy:"4"}),w.createElement("feGaussianBlur",{stdDeviation:"2"}),w.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),w.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),w.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12359_24616"}),w.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_12359_24616",result:"shape"}))))},en=function(){return w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",fill:"none",viewBox:"0 0 60 60"},w.createElement("path",{fill:"#fff",d:"M14 30.879c0 8.8 7.012 15.826 15.797 15.826 8.772 0 15.784-7.026 15.784-15.826 0-.74-.53-1.271-1.285-1.271-.726 0-1.187.53-1.187 1.271 0 7.43-5.909 13.353-13.312 13.353-7.416 0-13.325-5.922-13.325-13.353 0-7.389 5.909-13.283 13.325-13.283 1.55 0 3.031.153 4.19.447L28.08 23.95a1.21 1.21 0 0 0-.363.88c0 .698.531 1.23 1.215 1.23.378 0 .67-.113.894-.35l7.585-7.654c.307-.322.433-.629.433-.978 0-.35-.14-.698-.433-.978l-7.585-7.724c-.21-.251-.502-.377-.894-.377-.698 0-1.215.559-1.215 1.257 0 .321.112.643.35.894l5.363 5.364a17.4 17.4 0 0 0-3.632-.392C21.012 15.124 14 22.122 14 30.88"}))},br=function(){return w.createElement("svg",{width:"20",height:"24",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},w.createElement("path",{d:"M3.6283 24h12.7434c1.1947 0 2.0981-.2902 2.7102-.8706.6121-.5735.9181-1.4196.9181-2.5385V10.2692c0-1.1189-.306-1.965-.9181-2.5384-.6121-.5804-1.5155-.8707-2.7102-.8707h-3.0089v2.0665h2.8651c.5088 0 .8997.1293 1.1725.388.2803.2518.4204.633.4204 1.1434v9.9546c0 .5105-.1401.8916-.4204 1.1433-.2728.2588-.6637.3882-1.1725.3882H3.7611c-.5163 0-.9108-.1294-1.1837-.3882-.2654-.2517-.3982-.6328-.3982-1.1433V10.458c0-.5105.1328-.8916.3982-1.1433.2729-.2588.6674-.3881 1.1837-.3881h2.8871V6.86H3.6283c-1.1947 0-2.098.2903-2.7102.8707C.3061 8.3042 0 9.1503 0 10.2692v10.3217c0 1.1259.306 1.9755.9181 2.549.6121.5734 1.5155.8601 2.7102.8601ZM10 15.6399c.2802 0 .5199-.0944.719-.2833.2065-.1888.3098-.4125.3098-.6713V4.1223l-.0885-1.5629.6858.7658 1.5487 1.5734c.1843.1888.413.2832.6858.2832.2508 0 .4646-.077.6416-.2307.1844-.1609.2766-.3637.2766-.6084 0-.2238-.0959-.4301-.2876-.619L10.7743.3358c-.1327-.126-.2618-.2133-.3871-.2623a1.0561 1.0561 0 0 0-.7744 0c-.1253.049-.258.1364-.3982.2623l-3.7168 3.388c-.1844.1889-.2766.3952-.2766.619 0 .2447.0849.4475.2545.6084.177.1538.3945.2307.6526.2307.2802 0 .5089-.0944.6859-.2832l1.5486-1.5734.697-.7658-.0886 1.563v10.5629c0 .2588.0996.4825.2987.6713.2065.1889.4499.2833.7301.2833Z",fill:"#fff"}))},It=function(){return w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"10 10 28 28",preserveAspectRatio:"xMinYMin",fill:"none","aria-hidden":"true"},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.53 16.97a.95.95 0 0 1 1.1-.76c.75.13 2.28.7 3.63 1.9a7.709 7.709 0 0 1 2.62 5.95c0 1.86-.55 3.32-1.33 4.45l-1.38-1.37c.48-.8.8-1.81.8-3.08 0-2.16-.92-3.59-1.97-4.53a6.4295 6.4295 0 0 0-2.7-1.45.9499.9499 0 0 1-.77-1.1v-.01Z",fill:"currentColor"}),w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.54 21.03a.9509.9509 0 0 1 .4201-.5973.952.952 0 0 1 .3477-.1333.952.952 0 0 1 .3722.0106c.7.16 2.5 1.19 2.5 3.71 0 .7-.15 1.28-.36 1.76l-1.56-1.52c.05-.6-.07-1.25-.48-1.71-.23-.26-.47-.36-.51-.38-.01 0 0 0 0 0a.9496.9496 0 0 1-.7394-.7659.9502.9502 0 0 1 .0094
112-.3741Z",fill:"currentColor"}),w.createElement("path",{d:"M23.4 16.79v1.56l1.9 1.9v-4.27c0-.3-.12-.6-.29-.84a1.5906 1.5906 0 0 0-.7-.57c-.29-.11-.61-.16-.9-.1-.3.06-.61.21-.82.42l-1.31 1.34 1.33 1.34.8-.78h-.01Z",fill:"currentColor"}),w.createElement("path",{d:"m20.12 18.73-1.76 1.81h-2.59c-.94 0-1.7.76-1.7 1.7v3.45c0 .93.75 1.68 1.67 1.7l2.6.04 4.9 4.9a.65.65 0 0 0 1.1-.46v-9.1",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round"}),w.createElement("path",{d:"m17.13 15.36 17.2 17.19",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("path",{d:"M28.47 30.84A7.2004 7.2004 0 0 0 31 29.67",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round"}))},xn=function(){return w.createElement("svg",{width:"24",height:"24",viewBox:"10 10 28 28",preserveAspectRatio:"xMinYMin",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},w.createElement("path",{d:"M28.47 17.14c1.15.2 5.46 1.98 5.46 6.92 0 4.95-4.39 6.63-5.46 6.83",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round"}),w.createElement("path",{d:"M28.47 21.24c.37.08 1.75.79 1.75 2.78 0 1.99-1.4 2.67-1.75 2.74",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"}),w.createElement("path",{d:"m18.36 27.48 4.88 4.9a.65.65 0 0 0 1.1-.46V16.09c0-.58-.7-.87-1.1-.45l-4.88 4.94h-2.59c-.94 0-1.7.77-1.7 1.7v3.45c0 .93.75 1.69 1.67 1.7l2.62.05Z",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round"}))},tn=m(841),zi=function(I){return I>=1e3?(I/1e3).toFixed(1)+"k":I.toString()},bo=function(){return w.default.createElement("div",{className:"loadingSpinner-JkBvqe"},w.default.createElement("div",null),w.default.createElement("div",null),w.default.createElement("div",null),w.default.createElement("div",null))},Xi=m(16),Ji="beforeSlideIn-LmZQTB",Gr="slideInAnimation-BznBJm",vn="slideOutAnimation-oiiXPl",Lo="callToAction-wMENvy",wo=m(6346),So=function(I){var E,k,O=I.backButtonIcon,Y=I.children,W=I.clipsNavService,ae=I.closeButtonTitle,oe=I.hasError,ue=oe!==void 0&&oe,ve=I.header,be=I.isActiveSwiperSlide,fe=I.isA
112nimatingIn,me=I.isAnimatingOut,Ie=I.isLastPlayerInStack,Oe=I.isMuted,ke=I.metadata,Ve=I.onClose,Pe=I.onRetry,De=I.onPrimaryAction,Fe=I.onSecondaryAction,Xe=I.primaryActionText,ut=I.secondaryActionText,ot=I.showPlayButton,ct=I.toggleMute,at=I.togglePause,ft=(0,Xi.F)(),it=(0,w.useRef)(null),Je=(0,w.useState)(!1),Ze=Je[0],st=Je[1],lt=(0,w.useRef)(be&&Ie);(function(kt){var Lt=kt.clipsNavService,zt=kt.isActiveSwiperSlide,pr=kt.isAnimatingOut,Cr=kt.isAnimatingIn,Nr=kt.wrapperRef,ln=(function(bn){for(;bn&&bn.tagName!=="swiper-container".toUpperCase();)bn=bn.parentElement;return bn})(Nr.current),jn=ln==null?void 0:ln.querySelector(".swiper-slide-prev"),on=ln==null?void 0:ln.querySelector(".swiper-slide-next"),$n=(0,w.useMemo)(function(){return zt},[zt]);(0,w.useEffect)(function(){var bn,Vn=(bn=Nr.current)===null||bn===void 0?void 0:bn.classList;if(Vn&&zt&&Lt.isActiveCategory&&!pr)return Cr?void(Vn==null||Vn.add(Gr)):(Vn==null||Vn.remove(Ji),void(Vn==null||Vn.remove(Gr)))},[Lt,zt,Cr,pr,$n,Nr]),(0,w.useEffect)(function(){var bn,Vn=(bn=Nr.current)===null||bn===void 0?void 0:bn.classList;Vn&&zt&&Lt.isActiveCategory&&(Cr||(pr?(jn&&(jn.style.opacity="0"),on&&(on.style.opacity="0"),setTimeout(function(){Vn==null||Vn.add(vn)},nr.zn)):Vn==null||Vn.remove(vn)))},[Lt,zt,Cr,pr,jn,on,$n,Nr])})({clipsNavService:W,isActiveSwiperSlide:be,isAnimatingOut:me,isAnimatingIn:fe,wrapperRef:it}),(0,w.useEffect)(function(){Ie||(lt.current=!1)},[Ie]);var Tt=function(){var kt,Lt,zt=(Lt=(kt=ft==null?void 0:ft.player)===null||kt===void 0?void 0:kt.actionButton)===null||Lt===void 0?void 0:Lt.icon;if(zt)try{var pr=new URL(zt);return w.default.createElement(wo.Ee,{src:pr.toString(),width:20,height:20,alt:"",className:"callToActionIcon-hbHeQp"})}catch{return null}return null};(0,w.useEffect)(function(){st(!1)},[O]);var Ct=(0,w.useCallback)(function(kt){kt.stopPropagation(),ct==null||ct(),kt.currentTarget.blur()},[ct]),Gt=(0,w.useCallback)(function(kt){kt.target===it.current&&["Enter","Space"].includes(kt.code)&&(at==null||at())},[at]);return(0,w.useEffect)(function(){var kt,Lt;be&&((Lt=(kt=it.current)===null||kt===void 0?void 0:kt.focus)===null||Lt===void 0||Lt.call(kt))},[be]),w.default.createElement("div",{className:Yt()("slideWrapper-GfZNTy",(E={},E["isMobile-epTlWw"]=dr.tq,E))},w.default.createElement("div",{className:"mask-V8u7+U"},w.default.createElement("div",{className:Yt()("contentWrapper-mS34HD",(k={},k[Ji]=be&&lt.current,k)),ref:it,onClick:at,onKeyDown:Gt,tabIndex:0,role:"button","aria-pressed":ot,"aria-label":"Pause Clip"},ot&&!ue&&w.default.createElement("div",{className:"pauseIcon-xMBHxy"},w.default.createElement(an,null)),ue&&Pe&&w.default.createElement("button",{className:"refreshButton-0z9fC8",onClick:function(kt){kt.stopPropagation(),Pe()},title:"Retry loading video"},w.default.createElement(en,null)),Y,w.default.createElement("div",{className:"overlayWrapper-1lxXFt"},w.default.createElement("div",{className:"gradientOverlay-0wZcjd"}),ae&&w.default.createElement("button",{onClick:function(kt){kt.stopPropagation(),Ve==null||Ve()},className:"backButton-E+CqNA",title:ae},O&&!Ze?w.default.createElement(wo.Ee,{src:O,alt:"",className:"backButtonIcon-Pb1MPz",onError:function(){st(!0)}}):w.default.createElement(fn,null)),ve||null,ct&&w.default.createElement("button",{className:"muteButton-zIDTUl",onClick:Ct,title:Oe?"Unmute":"Mute"},Oe?w.default.createElement(It,null):w.default.createElement(xn,null)),ke||null,(Xe||ut)&&w.default.createElement("div",{className:"callToActionWrapper-AseKLi"},Xe&&w.default.createElement("button",{onClick:De,className:Lo},Tt(),Xe),ut&&Fe&&w.default.createElement("button",{onClick:Fe,className:Lo},Tt(),ut))))))},Oi=m(4999),sr=m(9512),Dr=m(4991),Or=m(3766),fr=m(3269),Ar=m(6661),rn=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.pausedClip,W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),Qi=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.resumedClip,W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),wi=m(8844),eo=m(647),Mn=m(3914),Si=m(8585),Ei=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.likedClip,W.alwaysSend=!0,W.isDisabled=function(){return!Mn.Z.isFunctionalFeatureEnabled(Si.d.clipLikes)},W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),ea=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.unlikedClip,W.alwaysSend=!0,W.isDisabled=function(){return!Mn.Z.isFunctionalFeatureEnabled(Si.d.clipLikes)},W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),qo=m(2727);function hi(I){var E;return!!(!((E=Ar.Z.clipLikes)===null||E===void 0)&&E[I])}var ui,po,Ro=m(9283),fo=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.shareButtonTapped,W.isDisabled=function(){return!Mn.Z.isFunctionalFeatureEnabled(Si.d.clipShares)},W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),Mo=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.shareSuccess,W.isDisabled=function(){return!Mn.Z.isFunctionalFeatureEnabled(Si.d.clipShares)},W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,shareMethod:"",collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,shareMethod:"",collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),ta=m(1736),ra=m(8105),Za=(function(I){function E(k,O,Y,W,ae){var oe=I.call(this)||this;return oe.clip=k,oe.clipIndex=O,oe.collection=Y,oe.buttonActionText=W,oe.buttonActionUrl=ae,oe.activityType=Or.T.actionButtonTapped,oe}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!0,clipActionText:this.buttonActionText,clipActionUrl:this.buttonActionUrl,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(k){return new fr.B(k)})}},E.prototype.buildEventData=function(){return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!0,clipActionText:this.buttonActionText,clipActionUrl:this.buttonActionUrl,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(k){return new fr.B(k)})}},E})(Dr.Z);function xa(I){return!!I&&I.type===ui.store&&"appStoreId"in I&&!!I.appStoreId}function Aa(I){return!!I&&I.type===ui.store&&"playStoreBundleId"in I&&!!I.playStoreBundleId}function Pa(I){return!!I&&(I.type===ui.web||I.type===ui.inApp)&&"url"in I&&!!I.url}function pa(I){return!!I&&I.type===ui.sheet&&"url"in I&&!!I.url&&"text"in I&&!!I.text}(po=ui||(ui={})).inApp="inApp",po.sheet="sheet",po.store="store",po.web="web";var Fi=m(9980),Do=function(I){var E=I.url,k=I.openInNewTab;k===void 0||k?window.open(E,"_blank"):window.location.href=E},Li="visibilitychange",Zo=function(I){var E=I.clipsNavService,k=I.isActiveSwiperSlide,O=I.isPausedGlobally,Y=I.isPausedBeforePageInactive,W=I.shouldRemainPausedWhenPageBecomesActive,ae=W!==void 0&&W,oe=I.handlePlay,ue=I.handlePause,ve=I.handleRestorePausedState,be=(0,w.useRef)(Y);be.current=Y,(0,w.useEffect)(function(){if(k&&!O){var fe=function(me){var Ie,Oe=(Ie=me).type!=="blur"&&Ie.type!=="pagehide"&&(Ie.type==="focus"||Ie.type==="pageshow"?!document.hidden:!document.hidden&&document.hasFocus());if(Oe!==E.isTabActive)if(E.isTabActive=Oe,Oe){if(E.pausedStateToRestore||ae)return ve==null||ve(),void((function(ke){return!!ke})(ve)&&(E.pausedStateToRestore=!1));E.pausedStateToRestore=!1,oe(!1)}else E.pausedStateToRestore=be.current,ue(!1)};return document.addEventListener(Li,fe),window.addEventListener("focus",fe,!1),window.addEventListener("blur",fe,!1),window.addEventListener("pageshow",fe,!1),window.addEventListener("pagehide",fe,!1),function(){document.removeEventListener(Li,fe),window.removeEventListener("focus",fe,!1),window.removeEventListener("blur",fe,!1),window.removeEventListener("pageshow",fe,!1),window.removeEventListener("pagehide",fe,!1)}}},[E,k,O,Y,ae,oe,ue,ve])},No={closed:"closed-haSy4C",moreButton:"moreButton-TX+aIU",category:"category-TH49VO"},$o=function(I){var E,k,O=I.categories,Y=I.currentCategory,W=I.handleSelectCategory,ae=I.isExpanded,oe=I.isTitleExpandable,ue=I.setIsExpanded,ve=(0,w.useState)(!1),be=ve[0],fe=ve[1],me=(0,w.useRef)(null),Ie=(0,w.useMemo)(function(){return O.filter(function(ke){return ke.availableForNavigation})},[O]),Oe=(0,w.useMemo)(function(){var ke=Ie.findIndex(function(Pe){return Pe.externalId===Y});if(ke>=0&&Ie.length>0){var Ve=Ie.splice(ke,1)[0];if(!Ve)return Ie;Ie.push(Ve)}return Ie},[Ie,Y]);return(0,w.useEffect)(function(){var ke=me.current||{},Ve=ke.scrollHeight,Pe=ke.offsetHeight;fe(!(!Ve||!Pe)&&Pe<Ve)},[(k=me.current)===null||k===void 0?void 0:k.scrollHeight]),w.default.createElement("div",{className:No.categoriesListCollapsable},w.default.createElement("div",{ref:me,className:Yt()((E={},E[No.closed]=!ae,E))},Oe.map(function(ke,Ve){return w.default.createElement(w.default.Fragment,null,w.default.createElement("a",{className:No.category,onClick:function(Pe){Y!==ke.externalId&&(Pe==null||Pe.stopPropagation(),W(ke.externalId))},tabIndex:0},ke.displayTitle||ke.name),Ve===Oe.length-1?" ":", ")})),(oe||be)&&w.default.createElement("button",{className:No.moreButton,onClick:function(ke){ke==null||ke.stopPropagation(),ue(!ae)}},ae?"less":"more"))},Dn={videoWrapper:"videoWrapper-3vHBrc",feedTitle:"feedTitle-rTqPkK",feedTitleImage:"feedTitleImage-QlZ4k+",video:"video-dPQf5n",blankVideo:"blankVideo-qlVGnO",hasError:"hasError-wBZvNo",actionButton:"actionButton-0u4aZg",metadataLeft:"metadataLeft-NpmyKz",clipTitleWithChip:"clipTitleWithChip-OU+0rc",clipTitleChipWrapper:"clipTitleChipWrapper-Lh3igh",clipTitle:"clipTitle-VfjqsZ",closed:"closed-olRltf",clipDescription:"clipDescription-01Nat9",metadataRight:"metadataRight-ENfy74",clipLikes:"clipLikes-QLT+g2",clipSh
112ares:"clipShares-DnifFI",isLiked:"isLiked-2rFFBz"},na=function(I){var E,k,O,Y,W=I.clip,ae=I.clipsNavService,oe=I.closeButtonTitle,ue=I.collection,ve=I.clipIndex,be=I.currentClipNavigationCategory,fe=I.feedTitle,me=I.feedTitleImageUrl,Ie=I.handleSelectCategory,Oe=I.incrementLoopCount,ke=I.isActiveSwiperSlide,Ve=I.isMuted,Pe=I.isLastPlayerInStack,De=I.isPausedGlobally,Fe=I.onClose,Xe=I.showCategories,ut=I.toggleMute,ot=I.isAnimatingIn,ct=I.isAnimatingOut,at=I.videoRef,ft=(0,Xi.F)(),it=ft.clipPlayer,Je=ft.player.icons,Ze=(0,w.useRef)(null),st=(0,w.useState)(ke&&!Hr.Z.isPlaybackEnabled),lt=st[0],Tt=st[1],Ct=(0,w.useState)(!1),Gt=Ct[0],kt=Ct[1],Lt=(0,w.useState)(!1),zt=Lt[0],pr=Lt[1],Cr=(0,w.useState)(!1),Nr=Cr[0],ln=Cr[1],jn=(0,w.useState)(!1),on=jn[0],$n=jn[1],bn=(0,w.useState)(!1),Vn=bn[0],Pr=bn[1],ir=(0,w.useRef)(null),Bn=(0,w.useRef)(null),cn=(function(or){var Qt=or.clip,wn=or.clipIndex,Zn=or.collection,In=(0,w.useMemo)(function(){return"storyteller.clipLike ".concat(Qt.id)},[Qt.id]),Kn=(0,w.useMemo)(function(){return"storyteller.clipUnlike ".concat(Qt.id)},[Qt.id]),si=(0,w.useState)(hi(Qt.id)),Jn=si[0],Yn=si[1],Di=(0,w.useCallback)(function(){var li;Jn?(Jt.Z.broadcastEvent(Kn),sr.Z.recordActivity(new ea(Qt,wn,Zn))):(Jt.Z.broadcastEvent(In),sr.Z.recordActivity(new Ei(Qt,wn,Zn))),Ar.Z.clipLikes=(0,S.pi)((0,S.pi)({},Ar.Z.clipLikes),((li={})[Qt.id]=!Jn,li)),Yn(!Jn)},[In,Kn,Qt,wn,Zn,Jn]),so=(0,w.useCallback)(function(li){li.stopPropagation(),Di(),li.currentTarget.blur()},[Di]);return(0,w.useEffect)(function(){Jt.Z.on(In,function(){Yn(!0)}),Jt.Z.on(Kn,function(){Yn(!1)})},[In,Kn]),(0,w.useEffect)(function(){Yn(hi(Qt.id))},[Qt]),(0,w.useEffect)(function(){Jt.Z.on(qo.C.clipSlideHidden,function(li){li!==Qt.id||Mn.Z.isFunctionalFeatureEnabled(Si.d.clipLikes)||Yn(!1)})},[Qt.id]),{onLike:so,isLiked:Jn}})({clip:W,clipIndex:W.indexInCollection,collection:ue}),qn=cn.onLike,Ai=cn.isLiked,Io=it.disableUrls,ai=it.showLikeButton,oo=it.showShareButton,mo=(0,w.useCallback)(function(){var or;Hr.Z.isPlaybackEnabled?(or=Ze.current)===null||or===void 0||or.play().catch(function(Qt){console.error(Qt),Qt.name==="NotAllowedError"&&Tt(!0)}):Tt(!0)},[]),ko=(function(or){var Qt=or.clip,wn=or.clipIndex,Zn=or.collection,In=or.onClose,Kn=(0,w.useCallback)(function(kn,Rr){sr.Z.recordActivity(new Za(Qt,wn,Zn,kn,Rr))},[Qt,wn,Zn]),si=Qt.primaryAction,Jn=Qt.secondaryAction,Yn=navigator.userAgent,Di=/iPad|iPhone/.test(Yn),so=/Android/.test(Yn),li=function(kn){return!(!Di||!xa(kn))||!(!so||!Aa(kn))||!!(Pa(kn)||pa(kn)||(0,Fi.JB)(kn)||(0,Fi.MI)(kn)||(0,Fi.H5)(kn)||(0,Fi.Yz)(kn))},Pi=(0,w.useCallback)(function(kn,Rr){if(kn.stopPropagation(),Di&&xa(Rr)){var lo=(vi=Rr.appStoreId,"https://apps.apple.com/us/app/".concat(vi));return Kn(Rr.text,lo),void Do({url:lo,openInNewTab:Rr.openInNewTab})}var vi,ja;return so&&Aa(Rr)?(ja=Rr.playStoreBundleId,lo="https://play.google.com/store/apps/details?id=".concat(ja),Kn(Rr.text,lo),void Do({url:lo,openInNewTab:Rr.openInNewTab})):Pa(Rr)?(Kn(Rr.text,Rr.url),void(Rr.type===ui.inApp&&ta.Z.userNavigatedToApp?ta.Z.userNavigatedToApp(Rr.url):Do({url:Rr.url,openInNewTab:Rr.openInNewTab}))):pa(Rr)?(Kn(Rr.text,Rr.url),void Do({url:Rr.url,openInNewTab:!0})):(0,Fi.JB)(Rr)?(Kn(Rr.text),void(Rr.clipCollectionId!==Zn&&(In==null||In(),ra.Z.openCollection(Rr.clipCollectionId)))):(0,Fi.MI)(Rr)?(Kn(Rr.text),void(Rr.clipId!==Qt.id&&ra.Z.openClipById(Rr.clipId))):(0,Fi.H5)(Rr)?(Kn(Rr.text),In==null||In(),void ra.Z.openCategory(Rr.storyCategoryId)):(0,Fi.Yz)(Rr)?(Kn(Rr.text),In==null||In(),void ra.Z.openStory({id:Rr.storyId})):void 0},[Qt.id,Zn,Kn,so,Di,In]);return{onPrimaryAction:(0,w.useCallback)(function(kn){Pi(kn,si)},[Pi,si]),onSecondaryAction:(0,w.useCallback)(function(kn){Pi(kn,Jn)},[Pi,Jn]),primaryActionText:li(si)?si==null?void 0:si.text:null,secondaryActionText:li(Jn)?Jn==null?void 0:Jn.text:null}})({clip:W,clipIndex:W.indexInCollection,collection:ue,onClose:Fe}),Uo=ko.onPrimaryAction,ls=ko.onSecondaryAction,Na=ko.primaryActionText,ba=ko.secondaryActionText,ao=(0,w.useCallback)(function(or){or===void 0&&(or=!0),mo(),Tt(!1),or&&sr.Z.recordActivity(new Qi(W,W.indexInCollection,ue))},[W,mo,ue]),Oo=(0,w.useCallback)(function(or){var Qt;or===void 0&&(or=!0),(Qt=Ze.current)===null||Qt===void 0||Qt.pause(),Tt(!0),or&&sr.Z.recordActivity(new rn(W,W.indexInCollection,ue))},[Ze,W,ue]),Wo=(0,w.useCallback)(function(){var or,Qt=(or=Ze.current)===null||or===void 0?void 0:or.paused;if(!Qt||Hr.Z.isPlaybackEnabled)return Qt?ao():Oo()},[Ze,ao,Oo]),wa=(function(or){var Qt=or.clip,wn=or.clipIndex,Zn=or.clipsNavService,In=or.collection,Kn=or.handleVideoPause,si=or.handleVideoPlay,Jn=(0,w.useState)(Ro.Z.getClipShares(Qt)),Yn=Jn[0],Di=Jn[1],so=(0,w.useCallback)(function(Pi){if(Pi.stopPropagation(),navigator.share){Ro.Z.setClipSh
112ared(Qt),Di(function(vi){return vi+1}),sr.Z.recordActivity(new fo(Qt,wn,In)),Kn(!1);var kn=function(){sr.Z.recordActivity(new Mo(Qt,wn,In)),Zn.isTabActive&&!Zn.pausedStateToRestore&&si(!1)},Rr=function(){Zn.isTabActive&&!Zn.pausedStateToRestore&&si(!1)},lo=Qt.deepLink.replace("[COLLECTIONID]",In);try{if(!ta.Z.onShareButtonTapped)throw new Error;ta.Z.onShareButtonTapped(Qt.description,Qt.description,lo).then(function(){kn()}).catch(function(){return Rr()})}catch{navigator.share({title:Qt.description||"",url:lo}).then(function(){kn()}).catch(function(){return Rr()})}}},[Qt,wn,Zn.isTabActive,Zn.pausedStateToRestore,In,Kn,si]),li=!!navigator.share;return(0,w.useEffect)(function(){Jt.Z.on(qo.C.clipSlideHidden,function(Pi){Pi!==Qt.id||Mn.Z.isFunctionalFeatureEnabled(Si.d.clipShares)||Di(Qt.shareCount)})},[Qt.id,Qt.shareCount]),(0,w.useEffect)(function(){Di(Ro.Z.getClipShares(Qt))},[Qt]),{sharesCount:Yn,onClipShare:so,isShareActive:li}})({clip:W,clipIndex:W.indexInCollection,clipsNavService:ae,collection:ue,handleVideoPlay:ao,handleVideoPause:Oo}),$a=wa.onClipShare,cs=wa.isShareActive,Va=wa.sharesCount,Ba=(0,w.useCallback)(function(){ao(!1),Oe(W.id,W.indexInCollection)},[ao,W.id,W.indexInCollection,Oe]),us=ke&&lt,Sa=(0,w.useMemo)(function(){var or=W.clipCategories.find(function(Qt){return Qt.externalId===be});return(or==null?void 0:or.displayTitle)||(or==null?void 0:or.name)},[W.clipCategories,be]);(0,w.useEffect)(function(){var or=Bn.current||{},Qt=or.scrollHeight,wn=or.offsetHeight;Pr(!(!Qt||!wn)&&wn<Qt)},[(Y=Bn.current)===null||Y===void 0?void 0:Y.scrollHeight]);var za=(0,w.useCallback)(function(){var or,Qt,wn=Ze.current,Zn=(wn==null?void 0:wn.readyState)!==4;if(wn&&ke&&!Zn&&!Nr){var In=((or=wn.buffered)===null||or===void 0?void 0:or.length)-1;In>=0&&((Qt=wn.buffered)===null||Qt===void 0?void 0:Qt.end(In))===wn.duration&&ln(!0)}},[ke,Nr]),Mi=(0,w.useCallback)(function(){ir.current&&(clearTimeout(ir.current),ir.current=null),kt(!1),pr(!0),Tt(!1)},[]),Fa=(0,w.useCallback)(function(){pr(!1)},[]),Ua=(0,w.useCallback)(function(){ir.current&&(clearTimeout(ir.current),ir.current=null),kt(!1),ke&&!Nr&&(mo(),pr(!0))},[ke,Nr,mo]);(0,w.useEffect)(function(){Jt.Z.on(eo._.playbackEnabled,function(){ke&&ae.isTabActive&&ao(!1)})},[ae,ao,ke]),(0,w.useEffect)(function(){Jt.Z.on(eo._.playbackDisabled,function(){Oo(!1)})},[Oo]),Zo({clipsNavService:ae,isActiveSwiperSlide:ke,isPausedGlobally:De,isPausedBeforePageInactive:lt,handlePlay:ao,handlePause:Oo}),(0,w.useEffect)(function(){ke?Hr.Z.isPlaybackEnabled||Tt(!0):(Tt(!1),kt(!1))},[ke]),(0,w.useEffect)(function(){kt(!1)},[W.id]);var Jo=(0,w.useCallback)(function(){ir.current&&(clearTimeout(ir.current),ir.current=null),ir.current=setTimeout(function(){var or;((or=Ze.current)===null||or===void 0?void 0:or.readyState)===HTMLMediaElement.HAVE_NOTHING&&kt(!0),ir.current=null},1e4)},[]),Wa=(0,w.useCallback)(function(){var or;Tt(!1),pr(!1),ln(!1),kt(!1),(or=Ze.current)===null||or===void 0||or.load(),Jo()},[Jo]);return(0,w.useEffect)(function(){return ke?Jo():ir.current&&(clearTimeout(ir.current),ir.current=null),function(){ir.current&&(clearTimeout(ir.current),ir.current=null)}},[Jo,ke]),w.default.createElement(So,{backButtonIcon:Je.back,clipsNavService:ae,closeButtonTitle:oe,hasError:Gt,header:w.default.createElement(w.default.Fragment,null,Sa?w.default.createElement("h2",{className:Dn.feedTitle},Sa):w.default.createElement(w.default.Fragment,null,me?w.default.createElement(wo.Ee,{className:Dn.feedTitleImage,src:me,alt:fe,width:794,height:100}):w.default.createElement(w.default.Fragment,null,fe?w.default.createElement("h2",{className:Dn.feedTitle},fe):null))),isActiveSwiperSlide:ke,isAnimatingIn:ot,isAnimatingOut:ct,isLastPlayerInStack:Pe,isMuted:Ve,metadata:w.default.createElement(w.default.Fragment,null,w.default.createElement("div",{className:Dn.metadataLeft},w.default.createElement("div",{className:Dn.clipTitleWithChip},W.isLive&&w.default.createElement("div",{className:Dn.clipTitleChipWrapper},w.default.createElement(tn.A,{cellType:wi.E.square,chipType:Oi.x.liveUnread,alignment:"left"})),w.default.createElement("div",{className:Yt()(Dn.clipTitle,(E={},E[Dn.closed]=!on,E)),ref:Bn},w.default.createElement("p",null,W.description))),Xe&&w.default.createElement("p",{className:Dn.clipDescription},w.default.createElement($o,{categories:W.clipCategories,currentCategory:be,handleSelectCategory:function(or){Ie(or,ve)},isExpanded:on,isTitleExpandable:Vn,setIsExpanded:$n}))),w.default.createElement("div",{className:Dn.metadataRight},ai&&w.default.createElement("div",{className:Yt()(Dn.clipLikes,(k={},k[Dn.isLiked]=Ai,k))},w.default.createElement("button",{onClick:qn,className:Dn.actionButton,title:"".concat(Ai?"Unlike":"Like"," this Clip")},w.default.createElement(Ir,null)),w.default.createElement("span",{className:Dn.values},zi(Ai?W.likeCount+1:W.likeCount))),cs&&oo&&!Io&&w.default.createElement("div",{className:Dn.clipShares},w.default.createElement("button",{onClick:$a,className:Dn.actionButton,title:"Share this Clip"},w.default.createElement(br,null)),w.default.createElement("span",{className:Dn.values},zi(Va))))),onClose:Fe,onRetry:Wa,onPrimaryAction:Uo,onSecondaryAction:ls,primaryActionText:Na,secondaryActionText:ba,showPlayButton:us,toggleMute:ut,togglePause:Wo},w.default.createElement("div",{className:Dn.videoWrapper},!zt&&!lt&&!ot&&!ct&&!Gt&&w.default.createElement("div",{className:Dn.blankVideo},w.default.createElement(bo,null)),w.default.createElement("video",{ref:function(or){Ze.current=or,at(or)},className:Yt()(Dn.video,(O={},O[Dn.hasError]=Gt,O)),preload:"auto",muted:Ve,onEnded:Ba,onWaiting:Fa,onPlaying:Mi,onProgress:za,onLoadedData:Ua,onError:function(or){var Qt,wn=(Qt=or.target)===null||Qt===void 0?void 0:Qt.src;wn&&(wn===W.url||W.isLive)&&kt(!0)}
112,"aria-label":W.description,playsInline:!0})))},Ti=m(830),Ui=m(7753),Wi=m(4388),Vo=m(1438);function Ka(){return Ar.Z.settings&&Ar.Z.settings.adsFrom===Vo.m.storyteller?w.default.createElement(w.default.Fragment,null,w.default.createElement("template",{id:"image-ad",type:"amp-mustache"},w.default.createElement("amp-img",{src:"{{creativeUrl}}",layout:"fill",width:"720",height:"1280",id:"image-ad-media"})),w.default.createElement("template",{id:"video-ad",type:"amp-mustache"},w.default.createElement("amp-video",{autoplay:!0,loop:!0,layout:"fill",width:"1080",height:"1920",id:"video-ad-media"},w.default.createElement("source",{type:"video/mp4",src:"{{creativeUrl}}"})))):null}var Eo=m(7409);function To(I){var E=I===void 0?{}:I,k=E.maxTouchPoints,O=E.platform,Y=O===void 0?"":O,W=E.userAgent;return/iPad|iPhone|iPod/.test(W===void 0?"":W)||Y==="MacIntel"&&(k||0)>1}function fa(I){return I!==Eo.G.image&&(function(){return typeof navigator<"u"&&(ae=To({maxTouchPoints:(k=(E={maxTouchPoints:navigator.maxTouchPoints,platform:navigator.platform,userAgent:navigator.userAgent})===void 0?{}:E).maxTouchPoints,platform:(O=k.platform)===void 0?"":O,userAgent:W=(Y=k.userAgent)===void 0?"":Y}),oe=/Safari/.test(W)&&!/CriOS|FxiOS|EdgiOS|OPiOS|DuckDuckGo/i.test(W),ae&&oe);var E,k,O,Y,W,ae,oe})()}var to,Ya=function(I){var E=I.ad,k=I.clipsNavService,O=I.isActiveSwiperSlide,Y=I.isMuted,W=I.toggleMute,ae=I.updateClipPlayerBackground,oe=(0,S._T)(I,["ad","clipsNavService","isActiveSwiperSlide","isMuted","toggleMute","updateClipPlayerBackground"]),ue=fa(E.pageType),ve=(0,w.useState)(E.isPausedByUser),be=ve[0],fe=ve[1],me=(0,w.useState)(function(){return ue}),Ie=me[0],Oe=me[1],ke=(0,w.useState)(!1),Ve=ke[0],Pe=ke[1],De=(0,w.useState)(E.element.backgroundImageUrl||null),Fe=De[0],Xe=De[1],ut=(0,w.useState)(0),ot=ut[0],ct=ut[1],at=(0,w.useRef)(null),ft=(0,w.useRef)(null),it=E.pageType===Eo.G.video,Je=Y||Ie,Ze=(0,w.useRef)(Je);Ze.current=Je;var st=O&&be&&!!Fe&&(function(Pr){return Pr===Eo.G.video&&typeof navigator<"u"&&To({maxTouchPoints:navigator.maxTouchPoints,platform:navigator.platform,userAgent:navigator.userAgent})})(E.pageType),lt=O&&Ve&&!!Fe&&E.pageType===Eo.G.video,Tt=st||lt||!O&&!!Fe,Ct=(function(Pr){var ir=Pr.ad,Bn=Pr.clipsNavService,cn=Pr.isActive,qn=(0,w.useMemo)(function(){return Bn.activeClip},[Bn.activeClip]);(0,w.useEffect)(function(){cn&&sr.Z.recordActivity(new Ti.Aw({ad:ir,openedReason:Wi.T.swipe}))},[ir,qn,cn]);var Ai=(0,w.useCallback)(function(ko){var Uo=ko.detail.progressType;Uo==="firstQuartile"?sr.Z.recordActivity(new Ti.mp({ad:ir})):Uo==="midpoint"?sr.Z.recordActivity(new Ti.ku({ad:ir})):Uo==="thirdQuartile"&&sr.Z.recordActivity(new Ti.C$({ad:ir}))},[ir]),Io=(0,w.useCallback)(function(){sr.Z.recordActivity(new Ti.r8({ad:ir}))},[ir]),ai=(0,w.useCallback)(function(){sr.Z.recordActivity(new Ti.V3({ad:ir}))},[ir]),oo=(0,w.useCallback)(function(){sr.Z.recordActivity(new Ti.YC({ad:ir}))},[ir]),mo=(0,w.useCallback)(function(){sr.Z.recordActivity(new Ti.Ed({ad:ir}))},[ir]);return(0,w.useEffect)(function(){return ir.element.addEventListener(Ui.k.progress,Ai),ir.element.addEventListener(Ui.k.complete,Io),function(){ir.element.removeEventListener(Ui.k.progress,Ai),ir.element.removeEventListener(Ui.k.complete,Io)}},[ir.element,Io,Ai]),{handleAdActionButtonTapped:mo,handlePausedAdEvent:ai,handleResumedAdEvent:oo}})({ad:E,clipsNavService:k,isActive:O}),Gt=Ct.handleAdActionButtonTapped,kt=Ct.handlePausedAdEvent,Lt=Ct.handleResumedAdEvent,zt=(0,w.useCallback)(function(Pr){var ir,Bn,cn,qn;Pr===void 0&&(Pr=!1),Pr&&(Ze.current=!0,Oe(!0)),E.pageType===Eo.G.video&&(Pr||Ze.current?(Bn=(ir=E.element).mute)===null||Bn===void 0||Bn.call(ir):(qn=(cn=E.element).unmute)===null||qn===void 0||qn.call(cn))},[E]),pr=(0,w.useCallback)(function(Pr){return(!E.isPausedByUser||Pr!=null&&Pr.ignoreUserPausedState||Pr!=null&&Pr.userInitiated)&&zt(ue&&!(Pr!=null&&Pr.userInitiated)),E.play(Pr)},[E,ue,zt]),Cr=(0,w.useCallback)(function(){return zt(ue),E.restart()},[E,ue,zt]),Nr=(0,w.useCallback)(function(){ft.current!==null&&(window.clearTimeout(ft.current),ft.current=null)},[]),ln=(0,w.useCallback)(function(){E.pageType===Eo.G.video&&(Nr(),Pe(!0),ft.current=window.setTimeout(function(){Pe(!1),ft.current=null},500))},[E.pageType,Nr]);(0,w.useEffect)(function(){at.current&&E.insert(at.current)},[E]),(0,w.useEffect)(function(){var Pr,ir,Bn,cn;return O?(ir=(Pr=E.element).attachPlaybackListeners)===null||ir===void 0||ir.call(Pr):(cn=(Bn=E.element).removePlaybackListeners)===null||cn===void 0||cn.call(Bn),function(){var qn,Ai;(Ai=(qn=E.element).removePlaybackListeners)===null||Ai===void 0||Ai.call(qn)}},[E.element,O]),(0,w.useEffect)(function(){var Pr,ir=!1,Bn=function(cn){cn&&!ir&&Xe(cn)};return E.element.backgroundImageUrl?Bn(E.element.backgroundImageUrl):(Pr=E.element.getBackgroun
112dImageUrl)===null||Pr===void 0||Pr.then(function(cn){Bn(cn)}).catch(function(cn){return console.log(cn)}),function(){ir=!0}},[E,ot]),(0,w.useEffect)(function(){O&&Fe&&k.isActiveSlide(E)&&ae(1,Fe)},[E,k,O,Fe,ae]),(0,w.useEffect)(function(){fe(E.isPausedByUser),Oe(ue),Xe(E.element.backgroundImageUrl||null),Pe(!1),Nr()},[E,Nr,ue]),(0,w.useEffect)(function(){if(!O)return E.pause(),Pe(!1),void Nr();it?pr({ignoreUserPausedState:E.isPausedByUser})?(fe(!1),ln()):E.isPausedByUser&&(fe(!0),Pe(!1)):Pe(!1)},[E,it,Nr,O,pr,ln]),(0,w.useEffect)(function(){var Pr=function(){ct(function(ir){return ir+1})};return E.element.addEventListener(Ui.k.load,Pr),function(){E.element.removeEventListener(Ui.k.load,Pr)}},[E]),(0,w.useEffect)(function(){var Pr=function(){O&&Cr()&&(fe(!1),ln())};return E.element.addEventListener(Ui.k.complete,Pr),function(){E.element.removeEventListener(Ui.k.complete,Pr)}},[E,O,Cr,ln]);var jn=(0,w.useCallback)(function(){E.pageType===Eo.G.video&&(pr()?(fe(!1),ln()):E.isPausedByUser&&fe(!0))},[E,pr,ln]),on=(0,w.useCallback)(function(){E.pause(),Pe(!1),Nr()},[E,Nr]),$n=(0,w.useCallback)(function(){fe(!0)},[]);Zo({clipsNavService:k,isActiveSwiperSlide:O,isPausedBeforePageInactive:E.isPausedByUser,shouldRemainPausedWhenPageBecomesActive:E.isPausedByUser,handlePlay:jn,handlePause:on,handleRestorePausedState:$n});var bn=(0,w.useCallback)(function(){E.element&&E.element.pause&&E.element.play&&it&&(be?pr({userInitiated:!0})&&(k.pausedStateToRestore=!1,fe(!1),ln(),Lt()):(E.pause({userInitiated:!0}),fe(!0),Pe(!1),Nr(),kt()))},[E,it,k,Nr,kt,Lt,be,pr,ln]),Vn=(0,w.useCallback)(function(){var Pr,ir;Ie?(Oe(!1),Ze.current=Y,Y?W():(ir=(Pr=E.element).unmute)===null||ir===void 0||ir.call(Pr)):W()},[E.element,Y,Ie,W]);return(0,w.useEffect)(function(){O&&it&&zt()},[it,O,Y,zt]),w.default.createElement(So,(0,S.pi)({},oe,{clipsNavService:k,isActiveSwiperSlide:O,isMuted:Je,metadata:w.default.createElement("div",{className:"metadata-jt5mEH"},w.default.createElement("p",{className:"adChip-usoBg7"},"Ad"),E.advertiserName?w.default.createElement("p",{className:"advertiserName-YpMqPV"},E.advertiserName):null),onPrimaryAction:function(Pr){Pr.stopPropagation(),E.swipeUpUrl&&(k.pausedStateToRestore=E.isPausedByUser,E.pause(),Pe(!1),Nr(),Gt(),Do({url:E.swipeUpUrl,openInNewTab:!0}))},primaryActionText:E.swipeUpText,showPlayButton:O&&be&&it,toggleMute:it?Vn:void 0,togglePause:bn}),w.default.createElement("div",{className:"adSurface-43atRA"},w.default.createElement("amp-layout",{ref:at,className:"adLayout-9rnON9",layout:"fill"},w.default.createElement(Ka,null)),Tt&&Fe&&w.default.createElement("img",{alt:"","aria-hidden":"true",className:"pausedPosterFallback-v9WGoJ","data-st-ad-poster-fallback":"","data-st-paused-ad-poster-fallback":"",src:Fe})))},ji=m(7502),Ko=m(4881),Xa=m(546),Co=m(4990),bt=(function(I){function E(k,O,Y,W){var ae=I.call(this)||this;return ae.clip=k,ae.clipIndex=O,ae.collection=Y,ae.openedReason=W,ae.activityType=Or.T.openedClip,ae.alwaysSend=!0,ae.isDisabled=function(){return!Mn.Z.isFunctionalFeatureEnabled(Si.d.clipViewedStatus)},ae.clipAction=ae.clip.primaryAction||ae.clip.secondaryAction,ae}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,openedReason:this.openedReason,collection:this.collection,categories:this.clip.clipCategories.map(function(Y){return Y.name}),categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)}),contentLength:this.clip.duration}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,openedReason:this.openedReason,collection:this.collection,categories:this.clip.clipCategories.map(function(Y){return Y.name}),categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)}),contentLength:this.clip.duration}},E})(Dr.Z),xt=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.completedLoop,W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),Zt=(function(I){function E(k,O,Y,W){var ae=I.call(this)||this;return ae.clip=k,ae.clipIndex=O,ae.collection=Y,ae.reason=W,ae.activityType=Or.T.dismissedClip,ae.clipAction=ae.clip.primaryAction||ae.clip.secondaryAction,ae}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,dismissedReason:this.reason,durationViewed:sr.Z.clipsPlayerDurationViewed,clipsViewed:sr.Z.clipsViewed,loopsViewed:sr.Z.loopsViewed,collection:this.collection,categories:this.clip.clipCategories.map(function(Y){return Y.name}),categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,dismissedReason:this.reason,durationViewed:sr.Z.clipsPlayerDurationViewed,clipsViewed:sr.Z.clipsViewed,loopsViewed:sr.Z.loopsViewed,collection:this.collection,categories:this.clip.clipCategories.map(function(Y){return Y.name}),categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),Nt=(function(I){function E(k,O,Y,W){var ae=I.call(this)||this;return ae.clip=k,ae.clipIndex=O,ae.collection=Y,ae.durationViewed=W,ae.activityType=Or.T.finishedClip,ae.clipAction=ae.clip.primaryAction||ae.clip.secondaryAction,ae}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,loopsViewed:sr.Z.getL
112oopsViewedForClip(this.clip.id),durationViewed:this.durationViewed,contentLength:this.clip.duration,collection:this.collection,categories:this.clip.clipCategories.map(function(Y){return Y.name}),categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,loopsViewed:sr.Z.getLoopsViewedForClip(this.clip.id),durationViewed:this.durationViewed,contentLength:this.clip.duration,collection:this.collection,categories:this.clip.clipCategories.map(function(Y){return Y.name}),categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),Vt=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.previousClip,W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),Ht=(function(I){function E(k,O,Y){var W=I.call(this)||this;return W.clip=k,W.clipIndex=O,W.collection=Y,W.activityType=Or.T.nextClip,W.clipAction=W.clip.primaryAction||W.clip.secondaryAction,W}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:this.clip.clipCategories.map(function(Y){return new fr.B(Y)})}},E})(Dr.Z),ur=function(I){return I?new Date().getTime()-I.getTime():0},Xt=(function(I){function E(k,O,Y,W){var ae=I.call(this)||this;return ae.clip=k,ae.clipIndex=O,ae.collection=Y,ae.category=W,ae.activityType=Or.T.dismissedCategory,ae.clipAction=ae.clip.primaryAction||ae.clip.secondaryAction,ae}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new fr.B(this.category)],categoryId:this.category.id,categoryName:this.category.name}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new fr.B(this.category)],c
112ategoryId:this.category.id,categoryName:this.category.name}},E})(Dr.Z),Kt=(function(I){function E(k,O,Y,W){var ae=I.call(this)||this;return ae.clip=k,ae.clipIndex=O,ae.collection=Y,ae.category=W,ae.activityType=Or.T.openedCategory,ae.clipAction=ae.clip.primaryAction||ae.clip.secondaryAction,ae}return(0,S.ZT)(E,I),E.prototype.buildRequestContent=function(){var k,O;return{activityItemType:this.activityType,externalId:Ar.Z.userId,clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new fr.B(this.category)],categoryId:this.category.id,categoryName:this.category.name}},E.prototype.buildEventData=function(){var k,O;return{clipId:this.clip.id,clipTitle:this.clip.description,clipIndex:this.clipIndex+1,clipHasAction:!!this.clipAction,clipActionText:(k=this.clipAction)===null||k===void 0?void 0:k.text,clipActionUrl:(O=this.clipAction)===null||O===void 0?void 0:O.url,collection:this.collection,categories:this.clip.categories,categoryDetails:[new fr.B(this.category)],categoryId:this.category.id,categoryName:this.category.name}},E})(Dr.Z);(function(I){I.slideIndex="data-swiper-slide-index",I.slideId="data-id",I.slideHash="data-hash",I.slideHistory="data-history"})(to||(to={}));var $r=function(I){var E=I.clipsNavService,k=I.clips,O=I.collection,Y=I.initialClipId,W=I.isCategoryNavigation,ae=I.categoryName,oe=I.setIsReady,ue=(0,Xi.F)().clipPlayer,ve=(0,w.useContext)(Xa.Z),be=(0,w.useState)(),fe=be[0],me=be[1],Ie=(0,w.useState)(),Oe=Ie[0],ke=Ie[1],Ve=(0,w.useRef)(Co.z.backButtonTapped),Pe=(0,ar.k6)(),De=(0,ar.TH)().search,Fe=new URLSearchParams(De).get("openedReason")===Wi.T.clipListTap,Xe=new URLSearchParams(De).get("openedReason")===Wi.T.deepLink,ut=new Date,ot=(0,w.useMemo)(function(){return W?Xe?Wi.T.deepLink:Wi.T.categoryListTap:Fe?Wi.T.clipListTap:Wi.T.deepLink},[W,Fe,Xe]),ct=(0,w.useCallback)(function(Ct){var Gt;if(!ue.disableUrls){var kt=(Ct.virtual&&Ct.virtual.slides.length>0?Ct.virtual.slides:Ct.slides).find(function(zt){return Number(zt.getAttribute(to.slideIndex))===Ct.realIndex}),Lt=kt?kt.getAttribute(to.slideHash)||kt.getAttribute(to.slideHistory):"";Lt&&((Gt=window.history)===null||Gt===void 0||Gt.replaceState(null,"","".concat(location.pathname).concat(location.search,"#").concat(Lt)))}},[ue.disableUrls]),at=(0,w.useCallback)(function(Ct){Hr.Z.isVisible=!0,Ve.current=Co.z.backButtonTapped,sr.Z.clipsPlayerViewStartTime=new Date,sr.Z.clipsViewed++;var Gt=E.getAppendedSlideByIndex(Ct.realIndex);if(Gt&&!(0,nr.A6)(Gt)){var kt=Gt;sr.Z.resetLoopsViewedForClip(kt.id);var Lt=kt.clipCategories.find(function(on){return on.externalId===ae});W&&Lt&&sr.Z.recordActivity(new Kt(kt,kt.indexInCollection,O,Lt))}if(Ct.onClose=function(){var on;Hr.Z.isVisible=!1,Ct.disable(),Ct.destroy(),(on=ve.onPlayerDismissed)===null||on===void 0||on.call(ve)},ke(function(){return function(){var on;Hr.Z.isVisible=!1,Ct.disable(),Ct.destroy(),(on=ve.onPlayerDismissed)===null||on===void 0||on.call(ve)}}),Ct.slidePrev(0,!1),Ct.slideNext(0,!1),!W){var zt=Y;if(!zt&&!ue.disableUrls){var pr=document.location.hash.replace("#",""),Cr=pr.indexOf("?");zt=Cr!==-1?pr.substring(0,Cr):pr}var Nr=Ct.virtual&&Ct.virtual.slides.length>0?Ct.virtual.slides:Ct.slides,ln=zt?Nr.find(function(on){var $n;return($n=on.getAttribute(ue.disableUrls?to.slideId:to.slideHash))===null||$n===void 0?void 0:$n.includes(zt)}):void 0,jn=(ln==null?void 0:ln.getAttribute(to.slideIndex))||0;Ct.slideToLoop(jn,0,!1),Gt=E.getAppendedSlideByIndex(jn)}Gt&&!(0,nr.A6)(Gt)&&(kt=Gt,Ro.Z.setClipViewed(kt.id),sr.Z.recordActivity(new bt(kt,kt.indexInCollection,O,ot))),oe(!0),me(Ct.realIndex)},[E,O,ve,ot,Y,W,ae,oe,ue.disableUrls]),ft=(0,w.useCallback)(function(Ct){if(Ct&&Ct.initialised){var Gt=Ct.realIndexBeforeTransition;me(Ct.realIndex);var kt=E.getAppendedSlideByIndex(Gt),Lt=E.getAppendedSlideByIndex(Ct.realIndex);if(kt&&!(0,nr.A6)(kt)){var zt=kt;sr.Z.recordActivity(new Nt(zt,zt.indexInCollection,O,ur(ut))),sr.Z.recordActivity(new Ht(zt,zt.indexInCollection,O))}if(kt&&(0,nr.A6)(kt)){var pr=kt;sr.Z.recordActivity(new Ti.yF({ad:pr}))}if(Lt&&!(0,nr.A6)(Lt)){var Cr=Lt;Ro.Z.setClipViewed(Cr.id),sr.Z.recordActivity(new bt(Cr,Cr.indexInCollection,O,Wi.T.swipe)),sr.Z.resetLoopsViewedForClip(Cr.id),ut=new Date,sr.Z.clipsViewed++}ct(Ct)}},[E.appendedSlides,k,O,W]),it=(0,w.useCallback)(function(Ct){if(Ct&&Ct.initialised){var Gt=Ct.realIndexBeforeTransition,kt=E.getAppendedSlideByIndex(Gt),Lt=E.getAppendedSlideByIndex(Ct.realIndex);if(me(Ct.realIndex),kt&&!(0,nr.A6)(kt)){var zt=kt;sr.Z.recordActivity(new Nt(zt,zt.indexInCollection,O,ur(ut))),sr.Z.recordActivity(new Vt(zt,zt.indexInCollection,O))}if(kt&&(0,nr.A6)(kt)){var pr=kt;sr.Z.recordActivity(new Ti.yF({ad:pr}))}if(Lt&&!(0,nr.A6)(Lt)){var Cr=Lt;Ro.Z.setClipViewed(Cr.id),sr.Z.recordActivity(new bt(Cr,Cr.indexInCollection,O,Wi.T.swipe)),sr.Z.resetLoopsViewedForClip(Cr.id),ut=new Date,sr.Z.clipsViewed++}ct(Ct)}},[E.appendedSlides,k,O]),Je=(0,w.useCallback)(function(Ct){var Gt=E.getAppendedSlideByIndex(Ct.realIndex);if(Gt&&!(0,nr.A6)(Gt)){var kt=Gt;sr.Z.recordActivity(new Nt(kt,kt.indexInCollection,O,ur(ut))),sr.Z.resetLoopsViewedForClip(kt.id)}if(Gt&&(0,nr.A6)(Gt)){var Lt=Gt;sr.Z.recordActivity(new Ti.yF({ad:Lt}))}if(W){var zt=null;Gt&&!(0,nr.A6)(Gt)&&(zt=(kt=Gt).clipCategories.find(function(Cr){return Cr.externalId===ae}))&&sr.Z.recordActivity(new Xt(kt,kt.indexInCollection,O,zt))}else{Gt&&!(0,nr.A6)(Gt)&&(kt=Gt,sr.Z.recordActivity(new Zt(kt,kt.indexInCollection,O,Ve.current))),Gt&&(0,nr.A6)(Gt)&&(Lt=Gt,sr.Z.recordActivity(new Ti.KS({ad:Lt,dismissedReason:Ve.current}))),Pe.push("/storyteller-home");var pr=new URL(window.location.href);pr.hash="",window.history.replaceState("{}","",pr)}},[E,ae,O,Ve,W,Pe,ut]),Ze=(0,w.useCallback)(function(Ct,Gt){sr.Z.incrementLoopsViewedForClip(Ct);var kt=k.findIndex(function(Lt){return Lt.id===Ct});kt>-1&&sr.Z.recordActivity(new xt(k[kt],Gt,O))},[k,O]),st=(0,w.useCallback)(function(Ct){if(Ct!==void 0){var Gt=k.findIndex(function(kt){return kt.indexInCollection===Ct});Gt>-1&&sr.Z.recordActivity(new Nt(k[Gt],k[Gt].indexInCollection,O,ur(ut)))}},[k,O,ut]),lt=(0,w.useCallback)(function(){if(fe!==void 0){var Ct=E.getAppendedSlideByIndex(fe);if(Ct&&!(0,nr.A6)(Ct)){var Gt=Ct;sr.Z.recordActivity(new bt(Gt,Gt.indexInCollection,O,Wi.T.categoryBackTap)),ut=new Date,sr.Z.clipsViewed++}}},[fe,E.appendedSlides]);(0,w.useEffect)(function(){Jt.Z.on(eo._.dismissPlayer,function(){Ve.current=Co.z.instanceMethod,Oe==null||Oe()})},[Oe]);var Tt=(0,w.useCallback)(function(){var Ct,Gt,kt,Lt;Lt=(kt=(Ct={delegate:ve}).historyBack)===void 0?function(){return window.history.back()}:kt,(Gt=Ct.delegate).onTopLevelBackTapped?Gt.onTopLevelBackTapped():Lt(
112)},[ve]);return{clipDismissedReason:Ve,onAfterInit:at,onDestroy:Je,onSlideNext:ft,onSlidePrev:it,onClose:Oe,onTopLevelBackTap:Tt,incrementLoopCount:Ze,sendFinishedClipCommandOnClipCategorySelect:st,sendOpenedClipCommandOnClipCategoryReset:lt}},Vr=m(373),Kr=m(7563);function cr(I){return I!==null&&typeof I=="object"&&"constructor"in I&&I.constructor===Object}function Xr(I,E){I===void 0&&(I={}),E===void 0&&(E={}),Object.keys(E).forEach(k=>{I[k]===void 0?I[k]=E[k]:cr(E[k])&&cr(I[k])&&Object.keys(E[k]).length>0&&Xr(I[k],E[k])})}const ro={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function An(){const I=typeof document<"u"?document:{};return Xr(I,ro),I}const xo={document:ro,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:I=>typeof setTimeout>"u"?(I(),null):setTimeout(I,0),cancelAnimationFrame(I){typeof setTimeout<"u"&&clearTimeout(I)}};function sn(){const I=typeof window<"u"?window:{};return Xr(I,xo),I}function mi(I){return I===void 0&&(I=""),I.trim().split(" ").filter(E=>!!E.trim())}function gi(I,E){return E===void 0&&(E=0),setTimeout(I,E)}function Xn(){return Date.now()}function no(I,E){E===void 0&&(E="x");const k=sn();let O,Y,W;const ae=(function(oe){const ue=sn();let ve;return ue.getComputedStyle&&(ve=ue.getComputedStyle(oe,null)),!ve&&oe.currentStyle&&(ve=oe.currentStyle),ve||(ve=oe.style),ve})(I);return k.WebKitCSSMatrix?(Y=ae.transform||ae.webkitTransform,Y.split(",").length>6&&(Y=Y.split(", ").map(oe=>oe.replace(",",".")).join(", ")),W=new k.WebKitCSSMatrix(Y==="none"?"":Y)):(W=ae.MozTransform||ae.OTransform||ae.MsTransform||ae.msTransform||ae.transform||ae.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),O=W.toString().split(",")),E==="x"&&(Y=k.WebKitCSSMatrix?W.m41:O.length===16?parseFloat(O[12]):parseFloat(O[4])),E==="y"&&(Y=k.WebKitCSSMatrix?W.m42:O.length===16?parseFloat(O[13]):parseFloat(O[5])),Y||0}function Ci(I){return typeof I=="object"&&I!==null&&I.constructor&&Object.prototype.toString.call(I).slice(8,-1)==="Object"}function Nn(){const I=Object(arguments.length<=0?void 0:arguments[0]),E=["__proto__","constructor","prototype"];for(let O=1;O<arguments.length;O+=1){const Y=O<0||arguments.length<=O?void 0:arguments[O];if(Y!=null&&(k=Y,!(typeof window<"u"&&window.HTMLElement!==void 0?k instanceof HTMLElement:k&&(k.nodeType===1||k.nodeType===11)))){const W=Object.keys(Object(Y)).filter(ae=>E.indexOf(ae)<0);for(let ae=0,oe=W.length;ae<oe;ae+=1){const ue=W[ae],ve=Object.getOwnPropertyDescriptor(Y,ue);ve!==void 0&&ve.enumerable&&(Ci(I[ue])&&Ci(Y[ue])?Y[ue].__swiper__?I[ue]=Y[ue]:Nn(I[ue],Y[ue]):!Ci(I[ue])&&Ci(Y[ue])?(I[ue]={},Y[ue].__swiper__?I[ue]=Y[ue]:Nn(I[ue],Y[ue])):I[ue]=Y[ue])}}}var k;return I}function Hi(I,E,k){I.style.setProperty(E,k)}function Pn(I){let{swiper:E,targetPosition:k,side:O}=I;const Y=sn(),W=-E.translate;let ae,oe=null;const ue=E.params.speed;E.wrapperEl.style.scrollSnapType="none",Y.cancelAnimationFrame(E.cssModeFrameID);const ve=k>W?"next":"prev",be=(me,Ie)=>ve==="next"&&me>=Ie||ve==="prev"&&me<=Ie,fe=()=>{ae=new Date().getTime(),oe===null&&(oe=ae);const me=Math.max(Math.min((ae-oe)/ue,1),0),Ie=.5-Math.cos(me*Math.PI)/2;let Oe=W+Ie*(k-W);if(be(Oe,k)&&(Oe=k),E.wrapperEl.scrollTo({[O]:Oe}),be(Oe,k))return E.wrapperEl.style.overflow="hidden",E.wrapperEl.style.scrollSnapType="",setTimeout(()=>{E.wrapperEl.style.overflow="",E.wrapperEl.scrollTo({[O]:Oe})}),void Y.cancelAnimationFrame(E.cssModeFrameID);E.cssModeFrameID=Y.requestAnimationFrame(fe)};fe()}function yi(I){return I.querySelector(".swiper-slide-transform")||I.shadowRoot&&I.shadowRoot.querySelector(".swiper-slide-transform")||I}function hn(I,E){return E===void 0&&(E=""),[...I.children].filter(k=>k.matches(E))}function Yo(I){try{return void console.warn(I)}catch{}}function ei(I,E){E===void 0&&(E=[]);const k=document.createElement(I);return k.classList.add(...Array.isArray(E)?E:mi(E)),k}function Xo(I){const E=sn(),k=An(),O=I.getBoundingClientRect(),Y=k.body,W=I.clientTop||Y.clientTop||0,ae=I.clientLeft||Y.clientLeft||0,oe=I===E?E.scrollY:I.scrollTop,ue=I===E?E.scrollX:I.scrollLeft;return{top:O.top+oe-W,left:O.left+ue-ae}}function xi(I,E){return sn().getComputedStyle(I,null).getPropertyValue(E)}function Gi(I){let E,k=I;if(k){for(E=0;(k=k.previousSibling)!==null;)k.nodeType===1&&(E+=1);return E}}function qi(I,E){const k=[];let O=I.parentElement;for(;O;)E?O.matches(E)&&k.push(O):k.push(O),O=O.parentElement;return k}function _i(I,E){E&&I.addEventListener("transitionend",function k(O){O.target===I&&(E.call(I,O),I.removeEventListener("transitionend",k))})}
112function ha(I,E,k){const O=sn();return k?I[E==="width"?"offsetWidth":"offsetHeight"]+parseFloat(O.getComputedStyle(I,null).getPropertyValue(E==="width"?"margin-right":"margin-top"))+parseFloat(O.getComputedStyle(I,null).getPropertyValue(E==="width"?"margin-left":"margin-bottom")):I.offsetWidth}let Bo,ho,Zi;function Ia(){return Bo||(Bo=(function(){const I=sn(),E=An();return{smoothScroll:E.documentElement&&E.documentElement.style&&"scrollBehavior"in E.documentElement.style,touch:!!("ontouchstart"in I||I.DocumentTouch&&E instanceof I.DocumentTouch)}})()),Bo}var ka={on(I,E,k){const O=this;if(!O.eventsListeners||O.destroyed||typeof E!="function")return O;const Y=k?"unshift":"push";return I.split(" ").forEach(W=>{O.eventsListeners[W]||(O.eventsListeners[W]=[]),O.eventsListeners[W][Y](E)}),O},once(I,E,k){const O=this;if(!O.eventsListeners||O.destroyed||typeof E!="function")return O;function Y(){O.off(I,Y),Y.__emitterProxy&&delete Y.__emitterProxy;for(var W=arguments.length,ae=new Array(W),oe=0;oe<W;oe++)ae[oe]=arguments[oe];E.apply(O,ae)}return Y.__emitterProxy=E,O.on(I,Y,k)},onAny(I,E){const k=this;if(!k.eventsListeners||k.destroyed||typeof I!="function")return k;const O=E?"unshift":"push";return k.eventsAnyListeners.indexOf(I)<0&&k.eventsAnyListeners[O](I),k},offAny(I){const E=this;if(!E.eventsListeners||E.destroyed||!E.eventsAnyListeners)return E;const k=E.eventsAnyListeners.indexOf(I);return k>=0&&E.eventsAnyListeners.splice(k,1),E},off(I,E){const k=this;return!k.eventsListeners||k.destroyed||k.eventsListeners&&I.split(" ").forEach(O=>{E===void 0?k.eventsListeners[O]=[]:k.eventsListeners[O]&&k.eventsListeners[O].forEach((Y,W)=>{(Y===E||Y.__emitterProxy&&Y.__emitterProxy===E)&&k.eventsListeners[O].splice(W,1)})}),k},emit(){const I=this;if(!I.eventsListeners||I.destroyed||!I.eventsListeners)return I;let E,k,O;for(var Y=arguments.length,W=new Array(Y),ae=0;ae<Y;ae++)W[ae]=arguments[ae];return typeof W[0]=="string"||Array.isArray(W[0])?(E=W[0],k=W.slice(1,W.length),O=I):(E=W[0].events,k=W[0].data,O=W[0].context||I),k.unshift(O),(Array.isArray(E)?E:E.split(" ")).forEach(oe=>{I.eventsAnyListeners&&I.eventsAnyListeners.length&&I.eventsAnyListeners.forEach(ue=>{ue.apply(O,[oe,...k])}),I.eventsListeners&&I.eventsListeners[oe]&&I.eventsListeners[oe].forEach(ue=>{ue.apply(O,k)})}),I}};const ia=(I,E)=>{if(!I||I.destroyed||!I.params)return;const k=E.closest(I.isElement?"swiper-slide":`.${I.params.slideClass}`);if(k){let O=k.querySelector(`.${I.params.lazyPreloaderClass}`);!O&&I.isElement&&(k.shadowRoot?O=k.shadowRoot.querySelector(`.${I.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{k.shadowRoot&&(O=k.shadowRoot.querySelector(`.${I.params.lazyPreloaderClass}`),O&&O.remove())})),O&&O.remove()}},ma=(I,E)=>{if(!I.slides[E])return;const k=I.slides[E].querySelector('[loading="lazy"]');k&&k.removeAttribute("loading")},ga=I=>{if(!I||I.destroyed||!I.params)return;let E=I.params.lazyPreloadPrevNext;const k=I.slides.length;if(!k||!E||E<0)return;E=Math.min(E,k);const O=I.params.slidesPerView==="auto"?I.slidesPerViewDynamic():Math.ceil(I.params.slidesPerView),Y=I.activeIndex;if(I.params.grid&&I.params.grid.rows>1){const ae=Y,oe=[ae-E];return oe.push(...Array.from({length:E}).map((ue,ve)=>ae+O+ve)),void I.slides.forEach((ue,ve)=>{oe.includes(ue.column)&&ma(I,ve)})}const W=Y+O-1;if(I.params.rewind||I.params.loop)for(let ae=Y-E;ae<=W+E;ae+=1){const oe=(ae%k+k)%k;(oe<Y||oe>W)&&ma(I,oe)}else for(let ae=Math.max(Y-E,0);ae<=Math.min(W+E,k-1);ae+=1)ae!==Y&&(ae>W||ae<Y)&&ma(I,ae)};var Ja={updateSize:function(){const I=this;let E,k;const O=I.el;E=I.params.width!==void 0&&I.params.width!==null?I.params.width:O.clientWidth,k=I.params.height!==void 0&&I.params.height!==null?I.params.height:O.clientHeight,E===0&&I.isHorizontal()||k===0&&I.isVertical()||(E=E-parseInt(xi(O,"padding-left")||0,10)-parseInt(xi(O,"padding-right")||0,10),k=k-parseInt(xi(O,"padding-top")||0,10)-parseInt(xi(O,"padding-bottom")||0,10),Number.isNaN(E)&&(E=0),Number.isNaN(k)&&(k=0),Object.assign(I,{width:E,height:k,size:I.isHorizontal()?E:k}))},updateSlides:function(){const I=this;function E(it,Je){return parseFloat(it.getPropertyValue(I.getDirectionLabel(Je))||0)}const k=I.params,{wrapperEl:O,slidesEl:Y,size:W,rtlTranslate:ae,wrongRTL:oe}=I,ue=I.virtual&&k.virtual.enabled,ve=ue?I.virtual.slides.length:I.slides.length,be=hn(Y,`.${I.params.slideClass}, swiper-slide`),fe=ue?I.virtual.slides.length:be.length;let me=[];const Ie=[],Oe=[];let ke=k.slidesOffsetBefore;typeof ke=="function"&&(ke=k.slidesOffsetBefore.call(I));let Ve=k.slidesOffsetAfter;typeof Ve=="function"&&(Ve=k.slidesOffsetAfter.call(I));const Pe=I.snapGrid.length,De=I.slidesGrid.length;let Fe=k.spaceBetween,Xe=-ke,ut=0,ot=0;if(W===void 0)return;typeof Fe=="string"&&Fe.indexOf("%")>=0?Fe=parseFloat(Fe.replace("%",""))/100*W:typeof Fe=="string"&&(Fe=parseFloat(Fe)),I.virtualSize=-Fe,be.forEach(it=>{ae?it.style.marginLeft="":it.style.marginRight="",it.style.marginBottom="",it.style.marginTop=""}),k.centeredSlides&&k.cssMode&&(Hi(O,"--swiper-centered-offset-before",""),Hi(O,"--swiper-centered-offset-after",""));const ct=k.grid&&k.grid.rows>1&&I.grid;let at;ct?I.grid.initSlides(be):I.grid&&I.grid.unsetSlides();
112const ft=k.slidesPerView==="auto"&&k.breakpoints&&Object.keys(k.breakpoints).filter(it=>k.breakpoints[it].slidesPerView!==void 0).length>0;for(let it=0;it<fe;it+=1){let Je;if(at=0,be[it]&&(Je=be[it]),ct&&I.grid.updateSlide(it,Je,be),!be[it]||xi(Je,"display")!=="none"){if(k.slidesPerView==="auto"){ft&&(be[it].style[I.getDirectionLabel("width")]="");const Ze=getComputedStyle(Je),st=Je.style.transform,lt=Je.style.webkitTransform;if(st&&(Je.style.transform="none"),lt&&(Je.style.webkitTransform="none"),k.roundLengths)at=I.isHorizontal()?ha(Je,"width",!0):ha(Je,"height",!0);else{const Tt=E(Ze,"width"),Ct=E(Ze,"padding-left"),Gt=E(Ze,"padding-right"),kt=E(Ze,"margin-left"),Lt=E(Ze,"margin-right"),zt=Ze.getPropertyValue("box-sizing");if(zt&&zt==="border-box")at=Tt+kt+Lt;else{const{clientWidth:pr,offsetWidth:Cr}=Je;at=Tt+Ct+Gt+kt+Lt+(Cr-pr)}}st&&(Je.style.transform=st),lt&&(Je.style.webkitTransform=lt),k.roundLengths&&(at=Math.floor(at))}else at=(W-(k.slidesPerView-1)*Fe)/k.slidesPerView,k.roundLengths&&(at=Math.floor(at)),be[it]&&(be[it].style[I.getDirectionLabel("width")]=`${at}px`);be[it]&&(be[it].swiperSlideSize=at),Oe.push(at),k.centeredSlides?(Xe=Xe+at/2+ut/2+Fe,ut===0&&it!==0&&(Xe=Xe-W/2-Fe),it===0&&(Xe=Xe-W/2-Fe),Math.abs(Xe)<.001&&(Xe=0),k.roundLengths&&(Xe=Math.floor(Xe)),ot%k.slidesPerGroup==0&&me.push(Xe),Ie.push(Xe)):(k.roundLengths&&(Xe=Math.floor(Xe)),(ot-Math.min(I.params.slidesPerGroupSkip,ot))%I.params.slidesPerGroup==0&&me.push(Xe),Ie.push(Xe),Xe=Xe+at+Fe),I.virtualSize+=at+Fe,ut=at,ot+=1}}if(I.virtualSize=Math.max(I.virtualSize,W)+Ve,ae&&oe&&(k.effect==="slide"||k.effect==="coverflow")&&(O.style.width=`${I.virtualSize+Fe}px`),k.setWrapperSize&&(O.style[I.getDirectionLabel("width")]=`${I.virtualSize+Fe}px`),ct&&I.grid.updateWrapperSize(at,me),!k.centeredSlides){const it=[];for(let Je=0;Je<me.length;Je+=1){let Ze=me[Je];
112k.roundLengths&&(Ze=Math.floor(Ze)),me[Je]<=I.virtualSize-W&&it.push(Ze)}me=it,Math.floor(I.virtualSize-W)-Math.floor(me[me.length-1])>1&&me.push(I.virtualSize-W)}if(ue&&k.loop){const it=Oe[0]+Fe;if(k.slidesPerGroup>1){const Je=Math.ceil((I.virtual.slidesBefore+I.virtual.slidesAfter)/k.slidesPerGroup),Ze=it*k.slidesPerGroup;for(let st=0;st<Je;st+=1)me.push(me[me.length-1]+Ze)}for(let Je=0;Je<I.virtual.slidesBefore+I.virtual.slidesAfter;Je+=1)k.slidesPerGroup===1&&me.push(me[me.length-1]+it),Ie.push(Ie[Ie.length-1]+it),I.virtualSize+=it}if(me.length===0&&(me=[0]),Fe!==0){const it=I.isHorizontal()&&ae?"marginLeft":I.getDirectionLabel("marginRight");be.filter((Je,Ze)=>!(k.cssMode&&!k.loop)||Ze!==be.length-1).forEach(Je=>{Je.style[it]=`${Fe}px`})}if(k.centeredSlides&&k.centeredSlidesBounds){let it=0;Oe.forEach(Ze=>{it+=Ze+(Fe||0)}),it-=Fe;const Je=it-W;me=me.map(Ze=>Ze<=0?-ke:Ze>Je?Je+Ve:Ze)}if(k.centerInsufficientSlides){let it=0;if(Oe.forEach(Je=>{it+=Je+(Fe||0)}),it-=Fe,it<W){const Je=(W-it)/2;me.forEach((Ze,st)=>{me[st]=Ze-Je}),Ie.forEach((Ze,st)=>{Ie[st]=Ze+Je})}}if(Object.assign(I,{slides:be,snapGrid:me,slidesGrid:Ie,slidesSizesGrid:Oe}),k.centeredSlides&&k.cssMode&&!k.centeredSlidesBounds){Hi(O,"--swiper-centered-offset-before",-me[0]+"px"),Hi(O,"--swiper-centered-offset-after",I.size/2-Oe[Oe.length-1]/2+"px");const it=-I.snapGrid[0],Je=-I.slidesGrid[0];I.snapGrid=I.snapGrid.map(Ze=>Ze+it),I.slidesGrid=I.slidesGrid.map(Ze=>Ze+Je)}if(fe!==ve&&I.emit("slidesLengthChange"),me.length!==Pe&&(I.params.watchOverflow&&I.checkOverflow(),I.emit("snapGridLengthChange")),Ie.length!==De&&I.emit("slidesGridLengthChange"),k.watchSlidesProgress&&I.updateSlidesOffset(),I.emit("slidesUpdated"),!(ue||k.cssMode||k.effect!=="slide"&&k.effect!=="fade")){const it=`${k.containerModifierClass}backface-hidden`,Je=I.el.classList.contains(it);fe<=k.maxBackfaceHiddenSlides?Je||I.el.classList.add(it):Je&&I.el.classList.remove(it)}},updateAutoHeight:function(I){const E=this,k=[],O=E.virtual&&E.params.virtual.enabled;let Y,W=0;typeof I=="number"?E.setTransition(I):I===!0&&E.setTransition(E.params.speed);const ae=oe=>O?E.slides[E.getSlideIndexByData(oe)]:E.slides[oe];if(E.params.slidesPerView!=="auto"&&E.params.slidesPerView>1)if(E.params.centeredSlides)(E.visibleSlides||[]).forEach(oe=>{k.push(oe)});else for(Y=0;Y<Math.ceil(E.params.slidesPerView);Y+=1){const oe=E.activeIndex+Y;if(oe>E.slides.length&&!O)break;k.push(ae(oe))}else k.push(ae(E.activeIndex));for(Y=0;Y<k.length;Y+=1)if(k[Y]!==void 0){const oe=k[Y].offsetHeight;W=oe>W?oe:W}(W||W===0)&&(E.wrapperEl.style.height=`${W}px`)},updateSlidesOffset:function(){const I=this,E=I.slides,k=I.isElement?I.isHorizontal()?I.wrapperEl.offsetLeft:I.wrapperEl.offsetTop:0;for(let O=0;O<E.length;O+=1)E[O].swiperSlideOffset=(I.isHorizontal()?E[O].offsetLeft:E[O].offsetTop)-k-I.cssOverflowAdjustment()},updateSlidesProgress:function(I){I===void 0&&(I=this&&this.translate||0);const E=this,k=E.params,{slides:O,rtlTranslate:Y,snapGrid:W}=E;if(O.length===0)return;O[0].swiperSlideOffset===void 0&&E.updateSlidesOffset();let ae=-I;Y&&(ae=I),O.forEach(ue=>{ue.classList.remove(k.slideVisibleClass,k.slideFullyVisibleClass)}),E.visibleSlidesIndexes=[],E.visibleSlides=[];let oe=k.spaceBetween;typeof oe=="string"&&oe.indexOf("%")>=0?oe=parseFloat(oe.replace("%",""))/100*E.size:typeof oe=="string"&&(oe=parseFloat(oe));for(let ue=0;ue<O.length;ue+=1){const ve=O[ue];let be=ve.swiperSlideOffset;k.cssMode&&k.centeredSlides&&(be-=O[0].swiperSlideOffset);const fe=(ae+(k.centeredSlides?E.minTranslate():0)-be)/(ve.swiperSlideSize+oe),me=(ae-W[0]+(k.centeredSlides?E.minTranslate():0)-be)/(ve.swiperSlideSize+oe),Ie=-(ae-be),Oe=Ie+E.slidesSizesGrid[ue],ke=Ie>=0&&Ie<=E.size-E.slidesSizesGrid[ue];(Ie>=0&&Ie<E.size-1||Oe>1&&Oe<=E.size||Ie<=0&&Oe>=E.size)&&(E.visibleSlides.push(ve),E.visibleSlidesIndexes.push(ue),O[ue].classList.add(k.slideVisibleClass)),ke&&O[ue].classList.add(k.slideFullyVisibleClass),ve.progress=Y?-fe:fe,ve.originalProgress=Y?-me:me}},updateProgress:function(I){const E=this;if(I===void 0){const be=E.rtlTranslate?-1:1;I=E&&E.translate&&E.translate*be||0}const k=E.params,O=E.maxTranslate()-E.minTranslate();let{progress:Y,isBeginning:W,isEnd:ae,progressLoop:oe}=E;const ue=W,ve=ae;if(O===0)Y=0,W=!0,ae=!0;else{Y=(I-E.minTranslate())/O;const be=Math.abs(I-E.minTranslate())<1,fe=Math.abs(I-E.maxTranslate())<1;W=be||Y<=0,ae=fe||Y>=1,be&&(Y=0),fe&&(Y=1)}if(k.loop){const be=E.getSlideIndexByData(0),fe=E.getSlideIndexByData(E.slides.length-1),me=E.slidesGrid[be],Ie=E.slidesGrid[fe],Oe=E.slidesGrid[E.slidesGrid.length-1],ke=Math.abs(I);oe=ke>=me?(ke-me)/Oe:(ke+Oe-Ie)/Oe,oe>1&&(oe-=1)}Object.assign(E,{progress:Y,progressLoop:oe,isBeginning:W,isEnd:ae}),(k.watchSlidesProgress||k.centeredSlides&&k.autoHeight)&&E.updateSlidesProgress(I),W&&!ue&&E.emit("reachBeginning toEdge"),ae&&!ve&&E.emit("reachEnd toEdge"),(ue&&!W||ve&&!ae)&&E.emit("fromEdge"),E.emit("progress",Y)},updateSlidesClasses:function(){const I=this,{slides:E,params:k,slidesEl:O,activeIndex:Y}=I,W=I.virtual&&k.virtual.enabled,ae=I.grid&&k.grid&&k.grid.rows>1,oe=fe=>hn(O,`.${k.slideClass}${fe}, swiper-slide${fe}`)[0];let ue,ve,be;if(E.forEach(fe=>{fe.classList.remove(k.slideActiveClass,k.slideNextClass,k.slidePrevClass)}),W)if(k.loop){let fe=Y-I.virtual.slidesBefore;fe<0&&(fe=I.virtual.slides.length+fe),fe>=I.virtual.slides.length&&(fe-=I.virtual.slides.length),ue=oe(`[data-swiper-slide-index="${fe}"]`)}else ue=oe(`[data-swiper-slide-index="${Y}"]`);else ae?(ue=E.filter(fe=>fe.column===Y)[0],be=E.filter(fe=>fe.column===Y+1)[0],ve=E.filter(fe=>fe.column===Y-1)[0]):ue=E[Y];ue&&(ue.classList.add(k.slideActiveClass),ae?(be&&be.classList.add(k.slideNextClass),ve&&ve.classList.add(k.slidePrevClass)):(be=(function(fe,me){const Ie=[];for(;fe.nextElementSibling;){const Oe=fe.nextElementSibling;me?Oe.matches(me)&&Ie.push(Oe):Ie.push(Oe),fe=Oe}return Ie})(ue,`.${k.slideClass}, swiper-slide`)[0],k.loop&&!be&&(be=E[0]),be&&be.classList.add(k.slideNextClass),ve=(function(fe,me){const Ie=[];for(;fe.previousElementSibling;){const Oe=fe.previousElementSibling;me?Oe.matches(me)&&Ie.push(Oe):Ie.push(Oe),fe=Oe}return Ie})(ue,`.${k.slideClass}, swiper-slide`)[0],k.loop&&!ve===0&&(ve=E[E.length-1]),ve&&ve.classList.add(k.slidePrevClass))),I.emitSlidesClasses()},updateActiveIndex:function(I){const E=this,k=E.rtlTranslate?E.translate:-E.translate,{snapGrid:O,params:Y,activeIndex:W,realIndex:ae,snapIndex:oe}=E;let ue,ve=I;const be=Ie=>{let Oe=Ie-E.virtual.slidesBefore;return Oe<0&&(Oe=E.virtual.slides.length+Oe),Oe>=E.virtual.slides.length&&(Oe-=E.virtual.slides.length),Oe};if(ve===void 0&&(ve=(function(Ie){const{slidesGrid:Oe,params:ke}=Ie,Ve=Ie.rtlTranslate?Ie.translate:-Ie.translate;let Pe;for(let De=0;De<Oe.length;De+=1)Oe[De+1]!==void 0?Ve>=Oe[De]&&Ve<Oe[De+1]-(Oe[De+1]-Oe[De])/2?Pe=De:Ve>=Oe[De]&&Ve<Oe[De+1]&&(Pe=De+1):Ve>=Oe[De]&&(Pe=De);return ke.normalizeSlideIndex&&(Pe<0||Pe===void 0)&&(Pe=0),Pe})(E)),O.indexOf(k)>=0)ue=O.indexOf(k);else{const Ie=Math.min(Y.slidesPerGroupSkip,ve);ue=Ie+Math.floor((ve-Ie)/Y.slidesPerGroup)}if(ue>=O.length&&(ue=O.length-1),ve===W&&!E.params.loop)return void(ue!==oe&&(E.snapIndex=ue,E.emit("snapIndexChange")));if(ve===W&&E.params.loop&&E.virtual&&E.params.virtual.enabled)return void(E.realIndex=be(ve));const fe=E.grid&&Y.grid&&Y.grid.rows>1;let me;if(E.virtual&&Y.virtual.enabled&&Y.loop)me=be(ve);else if(fe){const Ie=E.slides.filter(ke=>ke.column===ve)[0];let Oe=parseInt(Ie.getAttribute("data-swiper-slide-index"),10);Number.isNaN(Oe)&&(Oe=Math.max(E.slides.indexOf(Ie),0)),me=Math.floor(Oe/Y.grid.rows)}else if(E.slides[ve]){const Ie=E.slides[ve].getAttribute("data-swiper-slide-index");me=Ie?parseInt(Ie,10):ve}else me=ve;Object.assign(E,{previousSnapIndex:oe,snapIndex:ue,previousRealIndex:ae,realIndex:me,previousIndex:W,activeIndex:ve}),E.initialized&&ga(E),E.emit("activeIndexChange"),E.emit("snapIndexChange"),(E.initialized||E.params.runCallbacksOnInit)&&(ae!==me&&E.emit("realIndexChange"),E.emit("slideChange"))},updateClickedSlide:function(I,E){const k=this,O=k.params;let Y=I.closest(`.${O.slideClass}, swiper-slide`);!Y&&k.isElement&&E&&E.length>
1121&&E.includes(I)&&[...E.slice(E.indexOf(I)+1,E.length)].forEach(oe=>{!Y&&oe.matches&&oe.matches(`.${O.slideClass}, swiper-slide`)&&(Y=oe)});let W,ae=!1;if(Y){for(let oe=0;oe<k.slides.length;oe+=1)if(k.slides[oe]===Y){ae=!0,W=oe;break}}if(!Y||!ae)return k.clickedSlide=void 0,void(k.clickedIndex=void 0);k.clickedSlide=Y,k.virtual&&k.params.virtual.enabled?k.clickedIndex=parseInt(Y.getAttribute("data-swiper-slide-index"),10):k.clickedIndex=W,O.slideToClickedSlide&&k.clickedIndex!==void 0&&k.clickedIndex!==k.activeIndex&&k.slideToClickedSlide()}},Qa={getTranslate:function(I){I===void 0&&(I=this.isHorizontal()?"x":"y");const{params:E,rtlTranslate:k,translate:O,wrapperEl:Y}=this;if(E.virtualTranslate)return k?-O:O;if(E.cssMode)return O;let W=no(Y,I);return W+=this.cssOverflowAdjustment(),k&&(W=-W),W||0},setTranslate:function(I,E){const k=this,{rtlTranslate:O,params:Y,wrapperEl:W,progress:ae}=k;let oe,ue=0,ve=0;k.isHorizontal()?ue=O?-I:I:ve=I,Y.roundLengths&&(ue=Math.floor(ue),ve=Math.floor(ve)),k.previousTranslate=k.translate,k.translate=k.isHorizontal()?ue:ve,Y.cssMode?W[k.isHorizontal()?"scrollLeft":"scrollTop"]=k.isHorizontal()?-ue:-ve:Y.virtualTranslate||(k.isHorizontal()?ue-=k.cssOverflowAdjustment():ve-=k.cssOverflowAdjustment(),W.style.transform=`translate3d(${ue}px, ${ve}px, 0px)`);const be=k.maxTranslate()-k.minTranslate();oe=be===0?0:(I-k.minTranslate())/be,oe!==ae&&k.updateProgress(I),k.emit("setTranslate",k.translate,E)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(I,E,k,O,Y){I===void 0&&(I=0),E===void 0&&(E=this.params.speed),k===void 0&&(k=!0),O===void 0&&(O=!0);const W=this,{params:ae,wrapperEl:oe}=W;if(W.animating&&ae.preventInteractionOnTransition)return!1;const ue=W.minTranslate(),ve=W.maxTranslate();let be;if(be=O&&I>ue?ue:O&&I<ve?ve:I,W.updateProgress(be),ae.cssMode){const fe=W.isHorizontal();if(E===0)oe[fe?"scrollLeft":"scrollTop"]=-be;else{if(!W.support.smoothScroll)return Pn({swiper:W,targetPosition:-be,side:fe?"left":"top"}),!0;oe.scrollTo({[fe?"left":"top"]:-be,behavior:"smooth"})}return!0}return E===0?(W.setTransition(0),W.setTranslate(be),k&&(W.emit("beforeTransitionStart",E,Y),W.emit("transitionEnd"))):(W.setTransition(E),W.setTranslate(be),k&&(W.emit("beforeTransitionStart",E,Y),W.emit("transitionStart")),W.animating||(W.animating=!0,W.onTranslateToWrapperTransitionEnd||(W.onTranslateToWrapperTransitionEnd=function(fe){W&&!W.destroyed&&fe.target===this&&(W.wrapperEl.removeEventListener("transitionend",W.onTranslateToWrapperTransitionEnd),W.onTranslateToWrapperTransitionEnd=null,delete W.onTranslateToWrapperTransitionEnd,k&&W.emit("transitionEnd"))}),W.wrapperEl.addEventListener("transitionend",W.onTranslateToWrapperTransitionEnd))),!0}};function yr(I){let{swiper:E,runCallbacks:k,direction:O,step:Y}=I;const{activeIndex:W,previousIndex:ae}=E;let oe=O;if(oe||(oe=W>ae?"next":W<ae?"prev":"reset"),E.emit(`transition${Y}`),k&&W!==ae){if(oe==="reset")return void E.emit(`slideResetTransition${Y}`);E.emit(`slideChangeTransition${Y}`),oe==="next"?E.emit(`slideNextTransition${Y}`):E.emit(`slidePrevTransition${Y}`)}}var Lr={setTransition:function(I,E){const k=this;k.params.cssMode||(k.wrapperEl.style.transitionDuration=`${I}ms`,k.wrapperEl.style.transitionDelay=I===0?"0ms":""),k.emit("setTransition",I,E)},transitionStart:function(I,E){I===void 0&&(I=!0);const k=this,{params:O}=k;O.cssMode||(O.autoHeight&&k.updateAutoHeight(),yr({swiper:k,runCallbacks:I,direction:E,step:"Start"}))},transitionEnd:function(I,E){I===void 0&&(I=!0);const k=this,{params:O}=k;k.animating=!1,O.cssMode||(k.setTransition(0),yr({swiper:k,runCallbacks:I,direction:E,step:"End"}))}},Tn={slideTo:function(I,E,k,O,Y){I===void 0&&(I=0),E===void 0&&(E=this.params.speed),k===void 0&&(k=!0),typeof I=="string"&&(I=parseInt(I,10));const W=this;let ae=I;ae<0&&(ae=0);const{params:oe,snapGrid:ue,slidesGrid:ve,previousIndex:be,activeIndex:fe,rtlTranslate:me,wrapperEl:Ie,enabled:Oe}=W;if(W.animating&&oe.preventInteractionOnTransition||!Oe&&!O&&!Y)return!1;const ke=Math.min(W.params.slidesPerGroupSkip,ae);let Ve=ke+Math.floor((ae-ke)/W.params.slidesPerGroup);Ve>=ue.length&&(Ve=ue.length-1);const Pe=-ue[Ve];if(oe.normalizeSlideIndex)for(let Fe=0;Fe<ve.length;Fe+=1){const Xe=-Math.floor(100*Pe),ut=Math.floor(100*ve[Fe]),ot=Math.floor(100*ve[Fe+1]);ve[Fe+1]!==void 0?Xe>=ut&&Xe<ot-(ot-ut)/2?ae=Fe:Xe>=ut&&Xe<ot&&(ae=Fe+1):Xe>=ut&&(ae=Fe)}if(W.initialized&&ae!==fe&&(!W.allowSlideNext&&(me?Pe>W.translate&&Pe>W.minTranslate():Pe<W.translate&&Pe<W.minTranslate())||!W.allowSlidePrev&&Pe>W.translate&&Pe>W.maxTranslate()&&(fe||0)!==ae))return!1;let De;if(ae!==(be||0)&&k&&W.emit("beforeSlideChangeStart"),W.updateProgress(Pe),De=ae>fe?"next":ae<fe?"prev":"reset",me&&-Pe===W.translate||!me&&Pe===W.translate)return W.updateActiveIndex(ae),oe.autoHeight&&W.updateAutoHeight(),W.updateSlidesClasses(),oe.effect!=="slide"&&W.setTranslate(Pe),De!=="reset"&&(W.transitionStart(k,De),W.transitionEnd(k,De)),!1;if(oe.cssMode){const Fe=W.isHorizontal(),Xe=me?Pe:-Pe;if(E===0){const ut=W.virtual&&W.params.virtual.enabled;ut&&(W.wrapperEl.style.scrollSnapType="none",W._immediateVirtual=!0),ut&&!W._cssModeVirtualInitialSet&&W.params.initialSlide>0?(W._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{Ie[Fe?"scrollLeft":"scrollTop"]=Xe})):Ie[Fe?"scrollLeft":"scrollTop"]=Xe,ut&&requestAnimationFrame(()=>{W.wrapperEl.style.scrollSnapType="",W._immediateVirtual=!1})}else{if(!W.support.smoothScroll)return Pn({swiper:W,targetPosition:Xe,side:Fe?"left"
112:"top"}),!0;Ie.scrollTo({[Fe?"left":"top"]:Xe,behavior:"smooth"})}return!0}return W.setTransition(E),W.setTranslate(Pe),W.updateActiveIndex(ae),W.updateSlidesClasses(),W.emit("beforeTransitionStart",E,O),W.transitionStart(k,De),E===0?W.transitionEnd(k,De):W.animating||(W.animating=!0,W.onSlideToWrapperTransitionEnd||(W.onSlideToWrapperTransitionEnd=function(Fe){W&&!W.destroyed&&Fe.target===this&&(W.wrapperEl.removeEventListener("transitionend",W.onSlideToWrapperTransitionEnd),W.onSlideToWrapperTransitionEnd=null,delete W.onSlideToWrapperTransitionEnd,W.transitionEnd(k,De))}),W.wrapperEl.addEventListener("transitionend",W.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(I,E,k,O){I===void 0&&(I=0),E===void 0&&(E=this.params.speed),k===void 0&&(k=!0),typeof I=="string"&&(I=parseInt(I,10));const Y=this,W=Y.grid&&Y.params.grid&&Y.params.grid.rows>1;let ae=I;if(Y.params.loop)if(Y.virtual&&Y.params.virtual.enabled)ae+=Y.virtual.slidesBefore;else{let oe;if(W){const me=ae*Y.params.grid.rows;oe=Y.slides.filter(Ie=>1*Ie.getAttribute("data-swiper-slide-index")===me)[0].column}else oe=Y.getSlideIndexByData(ae);const ue=W?Math.ceil(Y.slides.length/Y.params.grid.rows):Y.slides.length,{centeredSlides:ve}=Y.params;let be=Y.params.slidesPerView;be==="auto"?be=Y.slidesPerViewDynamic():(be=Math.ceil(parseFloat(Y.params.slidesPerView,10)),ve&&be%2==0&&(be+=1));let fe=ue-oe<be;if(ve&&(fe=fe||oe<Math.ceil(be/2)),fe){const me=ve?oe<Y.activeIndex?"prev":"next":oe-Y.activeIndex-1<Y.params.slidesPerView?"next":"prev";Y.loopFix({direction:me,slideTo:!0,activeSlideIndex:me==="next"?oe+1:oe-ue+1,slideRealIndex:me==="next"?Y.realIndex:void 0})}if(W){const me=ae*Y.params.grid.rows;ae=Y.slides.filter(Ie=>1*Ie.getAttribute("data-swiper-slide-index")===me)[0].column}else ae=Y.getSlideIndexByData(ae)}return requestAnimationFrame(()=>{Y.slideTo(ae,E,k,O)}),Y},slideNext:function(I,E,k){I===void 0&&(I=this.params.speed),E===void 0&&(E=!0);const O=this,{enabled:Y,params:W,animating:ae}=O;if(!Y)return O;let oe=W.slidesPerGroup;W.slidesPerView==="auto"&&W.slidesPerGroup===1&&W.slidesPerGroupAuto&&(oe=Math.max(O.slidesPerViewDynamic("current",!0),1));const ue=O.activeIndex<W.slidesPerGroupSkip?1:oe,ve=O.virtual&&W.virtual.enabled;if(W.loop){if(ae&&!ve&&W.loopPreventsSliding)return!1;if(O.loopFix({direction:"next"}),O._clientLeft=O.wrapperEl.clientLeft,O.activeIndex===O.slides.length-1&&W.cssMode)return requestAnimationFrame(()=>{O.slideTo(O.activeIndex+ue,I,E,k)}),!0}return W.rewind&&O.isEnd?O.slideTo(0,I,E,k):O.slideTo(O.activeIndex+ue,I,E,k)},slidePrev:function(I,E,k){I===void 0&&(I=this.params.speed),E===void 0&&(E=!0);const O=this,{params:Y,snapGrid:W,slidesGrid:ae,rtlTranslate:oe,enabled:ue,animating:ve}=O;if(!ue)return O;const be=O.virtual&&Y.virtual.enabled;if(Y.loop){if(ve&&!be&&Y.loopPreventsSliding)return!1;O.loopFix({direction:"prev"}),O._clientLeft=O.wrapperEl.clientLeft}function fe(Ve){return Ve<0?-Math.floor(Math.abs(Ve)):Math.floor(Ve)}const me=fe(oe?O.translate:-O.translate),Ie=W.map(Ve=>fe(Ve));let Oe=W[Ie.indexOf(me)-1];if(Oe===void 0&&Y.cssMode){let Ve;W.forEach((Pe,De)=>{me>=Pe&&(Ve=De)}),Ve!==void 0&&(Oe=W[Ve>0?Ve-1:Ve])}let ke=0;if(Oe!==void 0&&(ke=ae.indexOf(Oe),ke<0&&(ke=O.activeIndex-1),Y.slidesPerView==="auto"&&Y.slidesPerGroup===1&&Y.slidesPerGroupAuto&&(ke=ke-O.slidesPerViewDynamic("previous",!0)+1,ke=Math.max(ke,0))),Y.rewind&&O.isBeginning){const Ve=O.params.virtual&&O.params.virtual.enabled&&O.virtual?O.virtual.slides.length-1:O.slides.length-1;return O.slideTo(Ve,I,E,k)}return Y.loop&&O.activeIndex===0&&Y.cssMode?(requestAnimationFrame(()=>{O.slideTo(ke,I,E,k)}),!0):O.slideTo(ke,I,E,k)},slideReset:function(I,E,k){return I===void 0&&(I=this.params.speed),E===void 0&&(E=!0),this.slideTo(this.activeIndex,I,E,k)},slideToClosest:function(I,E,k,O){I===void 0&&(I=this.params.speed),E===void 0&&(E=!0),O===void 0&&(O=.5);const Y=this;let W=Y.activeIndex;const ae=Math.min(Y.params.slidesPerGroupSkip,W),oe=ae+Math.floor((W-ae)/Y.params.slidesPerGroup),ue=Y.rtlTranslate?Y.translate:-Y.translate;if(ue>=Y.snapGrid[oe]){const ve=Y.snapGrid[oe];ue-ve>(Y.snapGrid[oe+1]-ve)*O&&(W+=Y.params.slidesPerGroup)}else{const ve=Y.snapGrid[oe-1];ue-ve<=(Y.snapGrid[oe]-ve)*O&&(W-=Y.params.slidesPerGroup)}
112return W=Math.max(W,0),W=Math.min(W,Y.slidesGrid.length-1),Y.slideTo(W,I,E,k)},slideToClickedSlide:function(){const I=this,{params:E,slidesEl:k}=I,O=E.slidesPerView==="auto"?I.slidesPerViewDynamic():E.slidesPerView;let Y,W=I.clickedIndex;const ae=I.isElement?"swiper-slide":`.${E.slideClass}`;if(E.loop){if(I.animating)return;Y=parseInt(I.clickedSlide.getAttribute("data-swiper-slide-index"),10),E.centeredSlides?W<I.loopedSlides-O/2||W>I.slides.length-I.loopedSlides+O/2?(I.loopFix(),W=I.getSlideIndex(hn(k,`${ae}[data-swiper-slide-index="${Y}"]`)[0]),gi(()=>{I.slideTo(W)})):I.slideTo(W):W>I.slides.length-O?(I.loopFix(),W=I.getSlideIndex(hn(k,`${ae}[data-swiper-slide-index="${Y}"]`)[0]),gi(()=>{I.slideTo(W)})):I.slideTo(W)}else I.slideTo(W)}},ii={loopCreate:function(I){const E=this,{params:k,slidesEl:O}=E;if(!k.loop||E.virtual&&E.params.virtual.enabled)return;const Y=()=>{hn(O,`.${k.slideClass}, swiper-slide`).forEach((be,fe)=>{be.setAttribute("data-swiper-slide-index",fe)})},W=E.grid&&k.grid&&k.grid.rows>1,ae=k.slidesPerGroup*(W?k.grid.rows:1),oe=E.slides.length%ae!=0,ue=W&&E.slides.length%k.grid.rows!=0,ve=be=>{for(let fe=0;fe<be;fe+=1){const me=E.isElement?ei("swiper-slide",[k.slideBlankClass]):ei("div",[k.slideClass,k.slideBlankClass]);E.slidesEl.append(me)}};oe?(k.loopAddBlankSlides?(ve(ae-E.slides.length%ae),E.recalcSlides(),E.updateSlides()):Yo("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),Y()):(ue&&(k.loopAddBlankSlides?(ve(k.grid.rows-E.slides.length%k.grid.rows),E.recalcSlides(),E.updateSlides()):Yo("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),Y()),E.loopFix({slideRealIndex:I,direction:k.centeredSlides?void 0:"next"})},loopFix:function(I){let{slideRealIndex:E,slideTo:k=!0,direction:O,setTranslate:Y,activeSlideIndex:W,byController:ae,byMousewheel:oe}=I===void 0?{}:I;const ue=this;if(!ue.params.loop)return;ue.emit("beforeLoopFix");const{slides:ve,allowSlidePrev:be,allowSlideNext:fe,slidesEl:me,params:Ie}=ue,{centeredSlides:Oe}=Ie;if(ue.allowSlidePrev=!0,ue.allowSlideNext=!0,ue.virtual&&Ie.virtual.enabled)return k&&(Ie.centeredSlides||ue.snapIndex!==0?Ie.centeredSlides&&ue.snapIndex<Ie.slidesPerView?ue.slideTo(ue.virtual.slides.length+ue.snapIndex,0,!1,!0):ue.snapIndex===ue.snapGrid.length-1&&ue.slideTo(ue.virtual.slidesBefore,0,!1,!0):ue.slideTo(ue.virtual.slides.length,0,!1,!0)),ue.allowSlidePrev=be,ue.allowSlideNext=fe,void ue.emit("loopFix");let ke=Ie.slidesPerView;ke==="auto"?ke=ue.slidesPerViewDynamic():(ke=Math.ceil(parseFloat(Ie.slidesPerView,10)),Oe&&ke%2==0&&(ke+=1));const Ve=Ie.slidesPerGroupAuto?ke:Ie.slidesPerGroup;let Pe=Ve;Pe%Ve!=0&&(Pe+=Ve-Pe%Ve),Pe+=Ie.loopAdditionalSlides,ue.loopedSlides=Pe;const De=ue.grid&&Ie.grid&&Ie.grid.rows>1;ve.length<ke+Pe?Yo("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):De&&Ie.grid.fill==="row"&&Yo("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const Fe=[],Xe=[];let ut=ue.activeIndex;W===void 0?W=ue.getSlideIndex(ve.filter(Ze=>Ze.classList.contains(Ie.slideActiveClass))[0]):ut=W;const ot=O==="next"||!O,ct=O==="prev"||!O;let at=0,ft=0;const it=De?Math.ceil(ve.length/Ie.grid.rows):ve.length,Je=(De?ve[W].column:W)+(Oe&&Y===void 0?-ke/2+.5:0);if(Je<Pe){at=Math.max(Pe-Je,Ve);for(let Ze=0;Ze<Pe-Je;Ze+=1){const st=Ze-Math.floor(Ze/it)*it;if(De){const lt=it-st-1;for(let Tt=ve.length-1;Tt>=0;Tt-=1)ve[Tt].column===lt&&Fe.push(Tt)}else Fe.push(it-st-1)}}else if(Je+ke>it-Pe){ft=Math.max(Je-(it-2*Pe),Ve);for(let Ze=0;Ze<ft;Ze+=1){const st=Ze-Math.floor(Ze/it)*it;De?ve.forEach((lt,Tt)=>{lt.column===st&&Xe.push(Tt)}):Xe.push(st)}}if(ue.__preventObserver__=!0,requestAnimationFrame(()=>{ue.__preventObserver__=!1}),ct&&Fe.forEach(Ze=>{ve[Ze].swiperLoopMoveDOM=!0,me.prepend(ve[Ze]),ve[Ze].swiperLoopMoveDOM=!1}),ot&&Xe.forEach(Ze=>{ve[Ze].swiperLoopMoveDOM=!0,me.append(ve[Ze]),ve[Ze].swiperLoopMoveDOM=!1}),ue.recalcSlides(),Ie.slidesPerView==="auto"?ue.updateSlides():De&&(Fe.length>0&&ct||Xe.length>
1120&&ot)&&ue.slides.forEach((Ze,st)=>{ue.grid.updateSlide(st,Ze,ue.slides)}),Ie.watchSlidesProgress&&ue.updateSlidesOffset(),k){if(Fe.length>0&&ct){if(E===void 0){const Ze=ue.slidesGrid[ut],st=ue.slidesGrid[ut+at]-Ze;oe?ue.setTranslate(ue.translate-st):(ue.slideTo(ut+at,0,!1,!0),Y&&(ue.touchEventsData.startTranslate=ue.touchEventsData.startTranslate-st,ue.touchEventsData.currentTranslate=ue.touchEventsData.currentTranslate-st))}else if(Y){const Ze=De?Fe.length/Ie.grid.rows:Fe.length;ue.slideTo(ue.activeIndex+Ze,0,!1,!0),ue.touchEventsData.currentTranslate=ue.translate}}else if(Xe.length>0&&ot)if(E===void 0){const Ze=ue.slidesGrid[ut],st=ue.slidesGrid[ut-ft]-Ze;oe?ue.setTranslate(ue.translate-st):(ue.slideTo(ut-ft,0,!1,!0),Y&&(ue.touchEventsData.startTranslate=ue.touchEventsData.startTranslate-st,ue.touchEventsData.currentTranslate=ue.touchEventsData.currentTranslate-st))}else{const Ze=De?Xe.length/Ie.grid.rows:Xe.length;ue.slideTo(ue.activeIndex-Ze,0,!1,!0)}}if(ue.allowSlidePrev=be,ue.allowSlideNext=fe,ue.controller&&ue.controller.control&&!ae){const Ze={slideRealIndex:E,direction:O,setTranslate:Y,activeSlideIndex:W,byController:!0};Array.isArray(ue.controller.control)?ue.controller.control.forEach(st=>{!st.destroyed&&st.params.loop&&st.loopFix({...Ze,slideTo:st.params.slidesPerView===Ie.slidesPerView&&k})}):ue.controller.control instanceof ue.constructor&&ue.controller.control.params.loop&&ue.controller.control.loopFix({...Ze,slideTo:ue.controller.control.params.slidesPerView===Ie.slidesPerView&&k})}ue.emit("loopFix")},loopDestroy:function(){const I=this,{params:E,slidesEl:k}=I;if(!E.loop||I.virtual&&I.params.virtual.enabled)return;I.recalcSlides();const O=[];I.slides.forEach(Y=>{const W=Y.swiperSlideIndex===void 0?1*Y.getAttribute("data-swiper-slide-index"):Y.swiperSlideIndex;O[W]=Y}),I.slides.forEach(Y=>{Y.removeAttribute("data-swiper-slide-index")}),O.forEach(Y=>{k.append(Y)}),I.recalcSlides(),I.slideTo(I.realIndex,0)}},oi={setGrabCursor:function(I){const E=this;if(!E.params.simulateTouch||E.params.watchOverflow&&E.isLocked||E.params.cssMode)return;const k=E.params.touchEventsTarget==="container"?E.el:E.wrapperEl;E.isElement&&(E.__preventObserver__=!0),k.style.cursor="move",k.style.cursor=I?"grabbing":"grab",E.isElement&&requestAnimationFrame(()=>{E.__preventObserver__=!1})},unsetGrabCursor:function(){const I=this;I.params.watchOverflow&&I.isLocked||I.params.cssMode||(I.isElement&&(I.__preventObserver__=!0),I[I.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",I.isElement&&requestAnimationFrame(()=>{I.__preventObserver__=!1}))}};function Ki(I,E,k){const O=sn(),{params:Y}=I,W=Y.edgeSwipeDetection,ae=Y.edgeSwipeThreshold;
112return!W||!(k<=ae||k>=O.innerWidth-ae)||W==="prevent"&&(E.preventDefault(),!0)}function Ao(I){const E=this,k=An();let O=I;O.originalEvent&&(O=O.originalEvent);const Y=E.touchEventsData;if(O.type==="pointerdown"){if(Y.pointerId!==null&&Y.pointerId!==O.pointerId)return;Y.pointerId=O.pointerId}else O.type==="touchstart"&&O.targetTouches.length===1&&(Y.touchId=O.targetTouches[0].identifier);if(O.type==="touchstart")return void Ki(E,O,O.targetTouches[0].pageX);const{params:W,touches:ae,enabled:oe}=E;if(!oe||!W.simulateTouch&&O.pointerType==="mouse"||E.animating&&W.preventInteractionOnTransition)return;!E.animating&&W.cssMode&&W.loop&&E.loopFix();let ue=O.target;if(W.touchEventsTarget==="wrapper"&&!E.wrapperEl.contains(ue)||"which"in O&&O.which===3||"button"in O&&O.button>0||Y.isTouched&&Y.isMoved)return;const ve=!!W.noSwipingClass&&W.noSwipingClass!=="",be=O.composedPath?O.composedPath():O.path;ve&&O.target&&O.target.shadowRoot&&be&&(ue=be[0]);const fe=W.noSwipingSelector?W.noSwipingSelector:`.${W.noSwipingClass}`,me=!(!O.target||!O.target.shadowRoot);if(W.noSwiping&&(me?(function(Pe,De){return De===void 0&&(De=this),(function Fe(Xe){if(!Xe||Xe===An()||Xe===sn())return null;Xe.assignedSlot&&(Xe=Xe.assignedSlot);const ut=Xe.closest(Pe);return ut||Xe.getRootNode?ut||Fe(Xe.getRootNode().host):null})(De)})(fe,ue):ue.closest(fe)))return void(E.allowClick=!0);if(W.swipeHandler&&!ue.closest(W.swipeHandler))return;ae.currentX=O.pageX,ae.currentY=O.pageY;const Ie=ae.currentX,Oe=ae.currentY;if(!Ki(E,O,Ie))return;Object.assign(Y,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),ae.startX=Ie,ae.startY=Oe,Y.touchStartTime=Xn(),E.allowClick=!0,E.updateSize(),E.swipeDirection=void 0,W.threshold>0&&(Y.allowThresholdMove=!1);let ke=!0;ue.matches(Y.focusableElements)&&(ke=!1,ue.nodeName==="SELECT"&&(Y.isTouched=!1)),k.activeElement&&k.activeElement.matches(Y.focusableElements)&&k.activeElement!==ue&&k.activeElement.blur();const Ve=ke&&E.allowTouchMove&&W.touchStartPreventDefault;!W.touchStartForcePreventDefault&&!Ve||ue.isContentEditable||O.preventDefault(),W.freeMode&&W.freeMode.enabled&&E.freeMode&&E.animating&&!W.cssMode&&E.freeMode.onTouchStart(),E.emit("touchStart",O)}
112function zo(I){const E=An(),k=this,O=k.touchEventsData,{params:Y,touches:W,rtlTranslate:ae,enabled:oe}=k;if(!oe||!Y.simulateTouch&&I.pointerType==="mouse")return;let ue,ve=I;if(ve.originalEvent&&(ve=ve.originalEvent),ve.type==="pointermove"&&(O.touchId!==null||ve.pointerId!==O.pointerId))return;if(ve.type==="touchmove"){if(ue=[...ve.changedTouches].filter(ut=>ut.identifier===O.touchId)[0],!ue||ue.identifier!==O.touchId)return}else ue=ve;if(!O.isTouched)return void(O.startMoving&&O.isScrolling&&k.emit("touchMoveOpposite",ve));const be=ue.pageX,fe=ue.pageY;if(ve.preventedByNestedSwiper)return W.startX=be,void(W.startY=fe);if(!k.allowTouchMove)return ve.target.matches(O.focusableElements)||(k.allowClick=!1),void(O.isTouched&&(Object.assign(W,{startX:be,startY:fe,currentX:be,currentY:fe}),O.touchStartTime=Xn()));if(Y.touchReleaseOnEdges&&!Y.loop){if(k.isVertical()){if(fe<W.startY&&k.translate<=k.maxTranslate()||fe>W.startY&&k.translate>=k.minTranslate())return O.isTouched=!1,void(O.isMoved=!1)}else if(be<W.startX&&k.translate<=k.maxTranslate()||be>W.startX&&k.translate>=k.minTranslate())return}if(E.activeElement&&ve.target===E.activeElement&&ve.target.matches(O.focusableElements))return O.isMoved=!0,void(k.allowClick=!1);O.allowTouchCallbacks&&k.emit("touchMove",ve),W.previousX=W.currentX,W.previousY=W.currentY,W.currentX=be,W.currentY=fe;const me=W.currentX-W.startX,Ie=W.currentY-W.startY;if(k.params.threshold&&Math.sqrt(me**2+Ie**2)<k.params.threshold)return;if(O.isScrolling===void 0){let ut;k.isHorizontal()&&W.currentY===W.startY||k.isVertical()&&W.currentX===W.startX?O.isScrolling=!1:me*me+Ie*Ie>=25&&(ut=180*Math.atan2(Math.abs(Ie),Math.abs(me))/Math.PI,O.isScrolling=k.isHorizontal()?ut>Y.touchAngle:90-ut>Y.touchAngle)}if(O.isScrolling&&k.emit("touchMoveOpposite",ve),O.startMoving===void 0&&(W.currentX===W.startX&&W.currentY===W.startY||(O.startMoving=!0)),O.isScrolling)return void(O.isTouched=!1);if(!O.startMoving)return;k.allowClick=!1,!Y.cssMode&&ve.cancelable&&ve.preventDefault(),Y.touchMoveStopPropagation&&!Y.nested&&ve.stopPropagation();let Oe=k.isHorizontal()?me:Ie,ke=k.isHorizontal()?W.currentX-W.previousX:W.currentY-W.previousY;Y.oneWayMovement&&(Oe=Math.abs(Oe)*(ae?1:-1),ke=Math.abs(ke)*(ae?1:-1)),W.diff=Oe,Oe*=Y.touchRatio,ae&&(Oe=-Oe,ke=-ke);const Ve=k.touchesDirection;k.swipeDirection=Oe>0?"prev":"next",k.touchesDirection=ke>0?"prev":"next";const Pe=k.params.loop&&!Y.cssMode,De=k.touchesDirection==="next"&&k.allowSlideNext||k.touchesDirection==="prev"&&k.allowSlidePrev;if(!O.isMoved){if(Pe&&De&&k.loopFix({direction:k.swipeDirection}),O.startTranslate=k.getTranslate(),k.setTransition(0),k.animating){const ut=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});k.wrapperEl.dispatchEvent(ut)}O.allowMomentumBounce=!1,!Y.grabCursor||k.allowSlideNext!==!0&&k.allowSlidePrev!==!0||k.setGrabCursor(!0),k.emit("sliderFirstMove",ve)}if(new Date().getTime(),O.isMoved&&O.allowThresholdMove&&Ve!==k.touchesDirection&&Pe&&De&&Math.abs(Oe)>=1)return Object.assign(W,{startX:be,startY:fe,currentX:be,currentY:fe,startTranslate:O.currentTranslate}),O.loopSwapReset=!0,void(O.startTranslate=O.currentTranslate);k.emit("sliderMove",ve),O.isMoved=!0,O.currentTranslate=Oe+O.startTranslate;let Fe=!0,Xe=Y.resistanceRatio;if(Y.touchReleaseOnEdges&&(Xe=0),Oe>0?(Pe&&De&&O.allowThresholdMove&&O.currentTranslate>(Y.centeredSlides?k.minTranslate()-k.slidesSizesGrid[k.activeIndex+1]:k.minTranslate())&&k.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),O.currentTranslate>k.minTranslate()&&(Fe=!1,Y.resistance&&(O.currentTranslate=k.minTranslate()-1+(-k.minTranslate()+O.startTranslate+Oe)**Xe))):Oe<0&&(Pe&&De&&O.allowThresholdMove&&O.currentTranslate<(Y.centeredSlides?k.maxTranslate()+k.slidesSizesGrid[k.slidesSizesGrid.length-1]:k.maxTranslate())&&k.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:k.slides.length-(Y.slidesPerView==="auto"?k.slidesPerViewDynamic():Math.ceil(parseFloat(Y.slidesPerView,10)))}),O.currentTranslate<k.maxTranslate()&&(Fe=!1,Y.resistance&&(O.currentTranslate=k.maxTranslate()+1-(k.maxTranslate()-O.startTranslate-Oe)**Xe))),Fe&&(ve.preventedByNestedSwiper=!0),!k.allowSlideNext&&k.swipeDirection==="next"&&O.currentTranslate<O.startTranslate&&(O.currentTranslate=O.startTranslate),!k.allowSlidePrev&&k.swipeDirection==="prev"&&O.currentTranslate>O.startTranslate&&(O.currentTranslate=O.startTranslate),k.allowSlidePrev||k.allowSlideNext||(O.currentTranslate=O.startTranslate),Y.threshold>0){if(!(Math.abs(Oe)>Y.threshold||O.allowThresholdMove))return void(O.currentTranslate=O.startTranslate);
112if(!O.allowThresholdMove)return O.allowThresholdMove=!0,W.startX=W.currentX,W.startY=W.currentY,O.currentTranslate=O.startTranslate,void(W.diff=k.isHorizontal()?W.currentX-W.startX:W.currentY-W.startY)}Y.followFinger&&!Y.cssMode&&((Y.freeMode&&Y.freeMode.enabled&&k.freeMode||Y.watchSlidesProgress)&&(k.updateActiveIndex(),k.updateSlidesClasses()),Y.freeMode&&Y.freeMode.enabled&&k.freeMode&&k.freeMode.onTouchMove(),k.updateProgress(O.currentTranslate),k.setTranslate(O.currentTranslate))}function ya(I){const E=this,k=E.touchEventsData;let O,Y=I;if(Y.originalEvent&&(Y=Y.originalEvent),Y.type==="touchend"||Y.type==="touchcancel"){if(O=[...Y.changedTouches].filter(Xe=>Xe.identifier===k.touchId)[0],!O||O.identifier!==k.touchId)return}else{if(k.touchId!==null||Y.pointerId!==k.pointerId)return;O=Y}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(Y.type)&&(!["pointercancel","contextmenu"].includes(Y.type)||!E.browser.isSafari&&!E.browser.isWebView))return;k.pointerId=null,k.touchId=null;const{params:W,touches:ae,rtlTranslate:oe,slidesGrid:ue,enabled:ve}=E;if(!ve||!W.simulateTouch&&Y.pointerType==="mouse")return;if(k.allowTouchCallbacks&&E.emit("touchEnd",Y),k.allowTouchCallbacks=!1,!k.isTouched)return k.isMoved&&W.grabCursor&&E.setGrabCursor(!1),k.isMoved=!1,void(k.startMoving=!1);W.grabCursor&&k.isMoved&&k.isTouched&&(E.allowSlideNext===!0||E.allowSlidePrev===!0)&&E.setGrabCursor(!1);const be=Xn(),fe=be-k.touchStartTime;if(E.allowClick){const Xe=Y.path||Y.composedPath&&Y.composedPath();E.updateClickedSlide(Xe&&Xe[0]||Y.target,Xe),E.emit("tap click",Y),fe<300&&be-k.lastClickTime<300&&E.emit("doubleTap doubleClick",Y)}if(k.lastClickTime=Xn(),gi(()=>{E.destroyed||(E.allowClick=!0)}),!k.isTouched||!k.isMoved||!E.swipeDirection||ae.diff===0&&!k.loopSwapReset||k.currentTranslate===k.startTranslate&&!k.loopSwapReset)return k.isTouched=!1,k.isMoved=!1,void(k.startMoving=!1);let me;if(k.isTouched=!1,k.isMoved=!1,k.startMoving=!1,me=W.followFinger?oe?E.translate:-E.translate:-k.currentTranslate,W.cssMode)return;if(W.freeMode&&W.freeMode.enabled)return void E.freeMode.onTouchEnd({currentPos:me});const Ie=me>=-E.maxTranslate()&&!E.params.loop;let Oe=0,ke=E.slidesSizesGrid[0];for(let Xe=0;Xe<ue.length;Xe+=Xe<W.slidesPerGroupSkip?1:W.slidesPerGroup){const ut=Xe<W.slidesPerGroupSkip-1?1:W.slidesPerGroup;ue[Xe+ut]!==void 0?(Ie||me>=ue[Xe]&&me<ue[Xe+ut])&&(Oe=Xe,ke=ue[Xe+ut]-ue[Xe]):(Ie||me>=ue[Xe])&&(Oe=Xe,ke=ue[ue.length-1]-ue[ue.length-2])}let Ve=null,Pe=null;W.rewind&&(E.isBeginning?Pe=W.virtual&&W.virtual.enabled&&E.virtual?E.virtual.slides.length-1:E.slides.length-1:E.isEnd&&(Ve=0));const De=(me-ue[Oe])/ke,Fe=Oe<W.slidesPerGroupSkip-1?1:W.slidesPerGroup;if(fe>W.longSwipesMs){if(!W.longSwipes)return void E.slideTo(E.activeIndex);E.swipeDirection==="next"&&(De>=W.longSwipesRatio?E.slideTo(W.rewind&&E.isEnd?Ve:Oe+Fe):E.slideTo(Oe)),E.swipeDirection==="prev"&&(De>1-W.longSwipesRatio?E.slideTo(Oe+Fe):Pe!==null&&De<0&&Math.abs(De)>W.longSwipesRatio?E.slideTo(Pe):E.slideTo(Oe))}else{if(!W.shortSwipes)return void E.slideTo(E.activeIndex);!E.navigation||Y.target!==E.navigation.nextEl&&Y.target!==E.navigation.prevEl?(E.swipeDirection==="next"&&E.slideTo(Ve!==null?Ve:Oe+Fe),E.swipeDirection==="prev"&&E.slideTo(Pe!==null?Pe:Oe)):Y.target===E.navigation.nextEl?E.slideTo(Oe+Fe):E.slideTo(Oe)}}function Oa(){const I=this,{params:E,el:k}=I;if(k&&k.offsetWidth===0)return;E.breakpoints&&I.setBreakpoint();const{allowSlideNext:O,allowSlidePrev:Y,snapGrid:W}=I,ae=I.virtual&&I.params.virtual.enabled;I.allowSlideNext=!0,I.allowSlidePrev=!0,I.updateSize(),I.updateSlides(),I.updateSlidesClasses();const oe=ae&&E.loop;!(E.slidesPerView==="auto"||E.slidesPerView>1)||!I.isEnd||I.isBeginning||I.params.centeredSlides||oe?I.params.loop&&!ae?I.slideToLoop(I.realIndex,0,!1,!0):I.slideTo(I.activeIndex,0,!1,!0):I.slideTo(I.slides.length-1,0,!1,!0),I.autoplay&&I.autoplay.running&&I.autoplay.paused&&(clearTimeout(I.autoplay.resizeTimeout),I.autoplay.resizeTimeout=setTimeout(()=>{I.autoplay&&I.autoplay.running&&I.autoplay.paused&&I.autoplay.resume()},500)),I.allowSlidePrev=Y,I.allowSlideNext=O,I.params.watchOverflow&&W!==I.snapGrid&&I.checkOverflow()}function La(I){const E=this;E.enabled&&(E.allowClick||(E.params.preventClicks&&I.preventDefault(),E.params.preventClicksPropagation&&E.animating&&(I.stopPropagation(),I.stopImmediatePropagation())))}function es(){const I=this,{wrapperEl:E,rtlTranslate:k,enabled:O}=I;if(!O)return;let Y;I.previousTranslate=I.translate,I.isHorizontal()?I.translate=-E.scrollLeft:I.translate=-E.scrollTop,I.translate===0&&(I.translate=0),I.updateActiveIndex(),I.updateSlidesClasses();const W=I.maxTranslate()-I.minTranslate();Y=W===0?0:(I.translate-I.minTranslate())/W,Y!==I.progress&&I.updateProgress(k?-I.translate:I.translate),I.emit("setTranslate",I.translate,!1)}function ts(I){const E=this;ia(E,I.target),E.params.cssMode||E.params.slidesPerView!=="auto"&&!E.params.autoHeight||E.update()}function Zs(){const I=this;I.documentTouchHandlerProceeded||(I.documentTouchHandlerProceeded=!0,I.params.touchReleaseOnEdges&&(I.el.style.touchAction="auto"))}const ys=(I,E)=>{const k=An(),{params:O,el:Y,wrapperEl:W,device:ae}=I,oe=!!O.nested,ue=E==="on"?"addEventListener":"removeEventListener",ve=E;k[ue]("touchstart",I.onDocumentTouchStart,{passive:!1,capture:oe}),Y[ue]("touchstart",I.onTouchStart,{passive:!1}),Y[ue]("pointerdown",I.onTouchStart,{passive:!1}),k[ue]("touchmove",I.onTouchMove,{passive:!1,capture:oe}),k[ue]("pointermove",I.onTouchMove,{passive:!1,capture:oe}),k[ue]("touchend",I.onTouchEnd,{passive:!0}),k[ue]("pointerup",I.onTouchEnd,{passive:!0}),k[ue]("pointercancel",I.onTouchEnd,{passive:!0}),k[ue]("touchcancel",I.onTouchEnd,{passive:!0}),k[ue]("pointerout",I.onTouchEnd,{passive:!0}),k[ue]("pointerleave",I.onTouchEnd,{passive:!0}),k[ue]("contextmenu",I.onTouchEnd,{passive:!0}),(O.preventClicks||O.preventClicksPropagation)&&Y[ue]("click",I.onClick,!0),O.cssMode&&W[ue]("scroll",I.onScroll),O.updateOnWindowResize?I[ve](ae.ios||ae.android?"resize orientationchange observerUpdate":"resize observerUpdate",Oa,!0):I[ve]("observerUpdate",Oa,!0),Y[ue]("load",I.onLoad,{capture:!0})};var Ks={attachEvents:function(){const I=this,{params:E}=I;I.onTouchStart=Ao.bind(I),I.onTouchMove=zo.bind(I),I.onTouchEnd=ya.bind(I),I.onDocumentTouchStart=Zs.bind(I),E.cssMode&&(I.onScroll=es.bind(I)),I.onClick=La.bind(I),I.onLoad=ts.bind(I),ys(I,"on")},detachEvents:function(){ys(this,"off")}};const _s=(I,E)=>I.grid&&E.grid&&E.grid.rows>1;var Ys={setBreakpoint:function(){const I=this,{realIndex:E,initialized:k,params:O,el:Y}=I,W=O.breakpoints;if(!W||W&&Object.keys(W).length===0)return;
112const ae=I.getBreakpoint(W,I.params.breakpointsBase,I.el);if(!ae||I.currentBreakpoint===ae)return;const oe=(ae in W?W[ae]:void 0)||I.originalParams,ue=_s(I,O),ve=_s(I,oe),be=O.enabled;ue&&!ve?(Y.classList.remove(`${O.containerModifierClass}grid`,`${O.containerModifierClass}grid-column`),I.emitContainerClasses()):!ue&&ve&&(Y.classList.add(`${O.containerModifierClass}grid`),(oe.grid.fill&&oe.grid.fill==="column"||!oe.grid.fill&&O.grid.fill==="column")&&Y.classList.add(`${O.containerModifierClass}grid-column`),I.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(Ve=>{if(oe[Ve]===void 0)return;const Pe=O[Ve]&&O[Ve].enabled,De=oe[Ve]&&oe[Ve].enabled;Pe&&!De&&I[Ve].disable(),!Pe&&De&&I[Ve].enable()});const fe=oe.direction&&oe.direction!==O.direction,me=O.loop&&(oe.slidesPerView!==O.slidesPerView||fe),Ie=O.loop;fe&&k&&I.changeDirection(),Nn(I.params,oe);const Oe=I.params.enabled,ke=I.params.loop;Object.assign(I,{allowTouchMove:I.params.allowTouchMove,allowSlideNext:I.params.allowSlideNext,allowSlidePrev:I.params.allowSlidePrev}),be&&!Oe?I.disable():!be&&Oe&&I.enable(),I.currentBreakpoint=ae,I.emit("_beforeBreakpoint",oe),k&&(me?(I.loopDestroy(),I.loopCreate(E),I.updateSlides()):!Ie&&ke?(I.loopCreate(E),I.updateSlides()):Ie&&!ke&&I.loopDestroy()),I.emit("breakpoint",oe)},getBreakpoint:function(I,E,k){if(E===void 0&&(E="window"),!I||E==="container"&&!k)return;let O=!1;const Y=sn(),W=E==="window"?Y.innerHeight:k.clientHeight,ae=Object.keys(I).map(oe=>{if(typeof oe=="string"&&oe.indexOf("@")===0){const ue=parseFloat(oe.substr(1));return{value:W*ue,point:oe}}return{value:oe,point:oe}});ae.sort((oe,ue)=>parseInt(oe.value,10)-parseInt(ue.value,10));for(let oe=0;oe<ae.length;oe+=1){const{point:ue,value:ve}=ae[oe];E==="window"?Y.matchMedia(`(min-width: ${ve}px)`).matches&&(O=ue):ve<=k.clientWidth&&(O=ue)}return O||"max"}},Xs={addClasses:function(){const I=this,{classNames:E,params:k,rtl:O,el:Y,device:W}=I,ae=(function(oe,ue){const ve=[];return oe.forEach(be=>{typeof be=="object"?Object.keys(be).forEach(fe=>{be[fe]&&ve.push(ue+fe)}):typeof be=="string"&&ve.push(ue+be)}),ve})(["initialized",k.direction,{"free-mode":I.params.freeMode&&k.freeMode.enabled},{autoheight:k.autoHeight},{rtl:O},{grid:k.grid&&k.grid.rows>1},{"grid-column":k.grid&&k.grid.rows>1&&k.grid.fill==="column"},{android:W.android},{ios:W.ios},{"css-mode":k.cssMode},{centered:k.cssMode&&k.centeredSlides},{"watch-progress":k.watchSlidesProgress}],k.containerModifierClass);E.push(...ae),Y.classList.add(...E),I.emitContainerClasses()},removeClasses:function(){const{el:I,classNames:E}=this;I.classList.remove(...E),this.emitContainerClasses()}},rs={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Js(I,E){return function(k){k===void 0&&(k={});const O=Object.keys(k)[0],Y=k[O];typeof Y=="object"&&Y!==null?(I[O]===!0&&(I[O]={enabled:!0}),O==="navigation"&&I[O]&&I[O].enabled&&!I[O].prevEl&&!I[O].nextEl&&(I[O].auto=!0),["pagination","scrollbar"].indexOf(O)>=0&&I[O]&&I[O].enabled&&!I[O].el&&(I[O].auto=!0),O in I&&"enabled"in Y&&(typeof I[O]!="object"||"enabled"in I[O]||(I[O].enabled=!0),I[O]||(I[O]={enabled:!1})),Nn(E,k)):Nn(E,k)}}const ns={eventsEmitter:ka,update:Ja,translate:Qa,transition:Lr,slide:Tn,loop:ii,grabCursor:oi,events:Ks,breakpoints:Ys,checkOverflow:{checkOverflow:function(){const I=this,{isLocked:E,params:k}=I,{slidesOffsetBefore:O}=k;if(O){const Y=I.slides.length-1,W=I.slidesGrid[Y]+I.slidesSizesGrid[Y]+2*O;I.isLocked=I.size>W}else I.isLocked=I.snapGrid.length===1;k.allowSlideNext===!0&&(I.allowSlideNext=!I.isLocked),k.allowSlidePrev===!0&&(I.allowSlidePrev=!I.isLocked),E&&E!==I.isLocked&&(I.isEnd=!1),E!==I.isLocked&&I.emit(I.isLocked?"lock":"unlock")}},classes:Xs},is={};class Ri{constructor(){let E,k;for(var O=arguments.length,Y=new Array(O),W=0;W<O;W++)Y[W]=arguments[W];Y.length===1&&Y[0].constructor&&Object.prototype.toString.call(Y[0]).slice(8,-1)==="Object"?k=Y[0]:[E,k]=Y,k||(k={}),k=Nn({},k),E&&!k.el&&(k.el=E);const ae=An();if(k.el&&typeof k.el=="string"&&ae.querySelectorAll(k.el).length>1){const be=[];return ae.querySelectorAll(k.el).forEach(fe=>{const me=Nn({},k,{el:fe});be.push(new Ri(me))}),be}const oe=this;oe.__swiper__=!0,oe.support=Ia(),oe.device=(function(be){return be===void 0&&(be={}),ho||(ho=(function(fe){let{userAgent:me}=fe===void 0?{}:fe;const Ie=Ia(),Oe=sn(),ke=Oe.navigator.platform,Ve=me||Oe.navigator.userAgent,Pe={ios:!1,android:!1},De=Oe.screen.width,Fe=Oe.screen.height,Xe=Ve.match(/(Android);?[\s\/]+([\d.]+)?/);let ut=Ve.match(/(iPad).*OS\s([\d_]+)/);const ot=Ve.match(/(iPod)(.*OS\s([\d_]+))?/),ct=!ut&&Ve.match(/(iPhone\sOS|iOS)\s([\d_]+)/),at=ke==="Win32";let ft=ke==="MacIntel";return!ut&&ft&&Ie.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${De}x${Fe}`)>=0&&(ut=Ve.match(/(Version)\/([\d.]+)/),ut||(ut=[0,1,"13_0_0"]),ft=!1),Xe&&!at&&(Pe.os="android",Pe.android=!0),(ut||ct||ot)&&(Pe.os="ios",Pe.ios=!0),Pe})(be)),ho})({userAgent:k.userAgent}),oe.browser=(Zi||(Zi=(function(){const be=sn();let fe=!1;function me(){const Ie=be.navigator.userAgent.toLowerCase();return Ie.indexOf("safari")>=0&&Ie.indexOf("chrome")<0&&Ie.indexOf("android")<0}if(me()){const Ie=String(be.navigator.userAgent);if(Ie.includes("Version/")){const[Oe,ke]=Ie.split("Version/")[1].split(" ")[0].split(".").map(Ve=>Number(Ve));fe=Oe<16||Oe===16&&ke<2}}return{isSafari:fe||me(),needPerspectiveFix:fe,isWebView:/(iPhone|iPod|iPad).*AppleWeb
112Kit(?!.*Safari)/i.test(be.navigator.userAgent)}})()),Zi),oe.eventsListeners={},oe.eventsAnyListeners=[],oe.modules=[...oe.__modules__],k.modules&&Array.isArray(k.modules)&&oe.modules.push(...k.modules);const ue={};oe.modules.forEach(be=>{be({params:k,swiper:oe,extendParams:Js(k,ue),on:oe.on.bind(oe),once:oe.once.bind(oe),off:oe.off.bind(oe),emit:oe.emit.bind(oe)})});const ve=Nn({},rs,ue);return oe.params=Nn({},ve,is,k),oe.originalParams=Nn({},oe.params),oe.passedParams=Nn({},k),oe.params&&oe.params.on&&Object.keys(oe.params.on).forEach(be=>{oe.on(be,oe.params.on[be])}),oe.params&&oe.params.onAny&&oe.onAny(oe.params.onAny),Object.assign(oe,{enabled:oe.params.enabled,el:E,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>oe.params.direction==="horizontal",isVertical:()=>oe.params.direction==="vertical",activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/8388608)*8388608},allowSlideNext:oe.params.allowSlideNext,allowSlidePrev:oe.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:oe.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:oe.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),oe.emit("_swiper"),oe.params.init&&oe.init(),oe}getDirectionLabel(E){return this.isHorizontal()?E:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[E]}getSlideIndex(E){const{slidesEl:k,params:O}=this,Y=Gi(hn(k,`.${O.slideClass}, swiper-slide`)[0]);return Gi(E)-Y}getSlideIndexByData(E){return this.getSlideIndex(this.slides.filter(k=>1*k.getAttribute("data-swiper-slide-index")===E)[0])}recalcSlides(){const{slidesEl:E,params:k}=this;this.slides=hn(E,`.${k.slideClass}, swiper-slide`)}enable(){const E=this;E.enabled||(E.enabled=!0,E.params.grabCursor&&E.setGrabCursor(),E.emit("enable"))}disable(){const E=this;E.enabled&&(E.enabled=!1,E.params.grabCursor&&E.unsetGrabCursor(),E.emit("disable"))}setProgress(E,k){const O=this;E=Math.min(Math.max(E,0),1);const Y=O.minTranslate(),W=(O.maxTranslate()-Y)*E+Y;O.translateTo(W,k===void 0?0:k),O.updateActiveIndex(),O.updateSlidesClasses()}emitContainerClasses(){const E=this;if(!E.params._emitClasses||!E.el)return;const k=E.el.className.split(" ").filter(O=>O.indexOf("swiper")===0||O.indexOf(E.params.containerModifierClass)===0);E.emit("_containerClasses",k.join(" "))}getSlideClasses(E){const k=this;return k.destroyed?"":E.className.split(" ").filter(O=>O.indexOf("swiper-slide")===0||O.indexOf(k.params.slideClass)===0).join(" ")}emitSlidesClasses(){const E=this;if(!E.params._emitClasses||!E.el)return;const k=[];E.slides.forEach(O=>{const Y=E.getSlideClasses(O);k.push({slideEl:O,classNames:Y}),E.emit("_slideClass",O,Y)}),E.emit("_slideClasses",k)}slidesPerViewDynamic(E,k){E===void 0&&(E="current"),k===void 0&&(k=!1);const{params:O,slides:Y,slidesGrid:W,slidesSizesGrid:ae,size:oe,activeIndex:ue}=this;let ve=1;if(typeof O.slidesPerView=="number")return O.slidesPerView;if(O.centeredSlides){let be,fe=Y[ue]?Y[ue].swiperSlideSize:0;for(let me=ue+1;me<Y.length;me+=1)Y[me]&&!be&&(fe+=Y[me].swiperSlideSize,ve+=1,fe>oe&&(be=!0));for(let me=ue-1;me>=0;me-=1)Y[me]&&!be&&(fe+=Y[me].swiperSlideSize,ve+=1,fe>oe&&(be=!0))}else if(E==="current")for(let be=ue+1;be<Y.length;be+=1)(k?W[be]+ae[be]-W[ue]<oe:W[be]-W[ue]<oe)&&(ve+=1);else for(let be=ue-1;be>=0;be-=1)W[ue]-W[be]<oe&&(ve+=1);return ve}update(){const E=this;if(!E||E.destroyed)return;const{snapGrid:k,params:O}=E;function Y(){const ae=E.rtlTranslate?-1*E.translate:E.translate,oe=Math.min(Math.max(ae,E.maxTranslate()),E.minTranslate());E.setTranslate(oe),E.updateActiveIndex(),E.updateSlidesClasses()}let W;if(O.breakpoints&&E.setBreakpoint(),[...E.el.querySelectorAll('[loading="lazy"]')].forEac
112h(ae=>{ae.complete&&ia(E,ae)}),E.updateSize(),E.updateSlides(),E.updateProgress(),E.updateSlidesClasses(),O.freeMode&&O.freeMode.enabled&&!O.cssMode)Y(),O.autoHeight&&E.updateAutoHeight();else{if((O.slidesPerView==="auto"||O.slidesPerView>1)&&E.isEnd&&!O.centeredSlides){const ae=E.virtual&&O.virtual.enabled?E.virtual.slides:E.slides;W=E.slideTo(ae.length-1,0,!1,!0)}else W=E.slideTo(E.activeIndex,0,!1,!0);W||Y()}O.watchOverflow&&k!==E.snapGrid&&E.checkOverflow(),E.emit("update")}changeDirection(E,k){k===void 0&&(k=!0);const O=this,Y=O.params.direction;return E||(E=Y==="horizontal"?"vertical":"horizontal"),E===Y||E!=="horizontal"&&E!=="vertical"||(O.el.classList.remove(`${O.params.containerModifierClass}${Y}`),O.el.classList.add(`${O.params.containerModifierClass}${E}`),O.emitContainerClasses(),O.params.direction=E,O.slides.forEach(W=>{E==="vertical"?W.style.width="":W.style.height=""}),O.emit("changeDirection"),k&&O.update()),O}changeLanguageDirection(E){const k=this;k.rtl&&E==="rtl"||!k.rtl&&E==="ltr"||(k.rtl=E==="rtl",k.rtlTranslate=k.params.direction==="horizontal"&&k.rtl,k.rtl?(k.el.classList.add(`${k.params.containerModifierClass}rtl`),k.el.dir="rtl"):(k.el.classList.remove(`${k.params.containerModifierClass}rtl`),k.el.dir="ltr"),k.update())}mount(E){const k=this;if(k.mounted)return!0;let O=E||k.params.el;if(typeof O=="string"&&(O=document.querySelector(O)),!O)return!1;O.swiper=k,O.parentNode&&O.parentNode.host&&O.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(k.isElement=!0);const Y=()=>`.${(k.params.wrapperClass||"").trim().split(" ").join(".")}`;let W=O&&O.shadowRoot&&O.shadowRoot.querySelector?O.shadowRoot.querySelector(Y()):hn(O,Y())[0];return!W&&k.params.createElements&&(W=ei("div",k.params.wrapperClass),O.append(W),hn(O,`.${k.params.slideClass}`).forEach(ae=>{W.append(ae)})),Object.assign(k,{el:O,wrapperEl:W,slidesEl:k.isElement&&!O.parentNode.host.slideSlots?O.parentNode.host:W,hostEl:k.isElement?O.parentNode.host:O,mounted:!0,rtl:O.dir.toLowerCase()==="rtl"||xi(O,"direction")==="rtl",rtlTranslate:k.params.direction==="horizontal"&&(O.dir.toLowerCase()==="rtl"||xi(O,"direction")==="rtl"),wrongRTL:xi(W,"display")==="-webkit-box"}),!0}init(E){const k=this;if(k.initialized||k.mount(E)===!1)return k;k.emit("beforeInit"),k.params.breakpoints&&k.setBreakpoint(),k.addClasses(),k.updateSize(),k.updateSlides(),k.params.watchOverflow&&k.checkOverflow(),k.params.grabCursor&&k.enabled&&k.setGrabCursor(),k.params.loop&&k.virtual&&k.params.virtual.enabled?k.slideTo(k.params.initialSlide+k.virtual.slidesBefore,0,k.params.runCallbacksOnInit,!1,!0):k.slideTo(k.params.initialSlide,0,k.params.runCallbacksOnInit,!1,!0),k.params.loop&&k.loopCreate(),k.attachEvents();const O=[...k.el.querySelectorAll('[loading="lazy"]')];return k.isElement&&O.push(...k.hostEl.querySelectorAll('[loading="lazy"]')),O.forEach(Y=>{Y.complete?ia(k,Y):Y.addEventListener("load",W=>{ia(k,W.target)})}),ga(k),k.initialized=!0,ga(k),k.emit("init"),k.emit("afterInit"),k}destroy(E,k){E===void 0&&(E=!0),k===void 0&&(k=!0);const O=this,{params:Y,el:W,wrapperEl:ae,slides:oe}=O;return O.params===void 0||O.destroyed||(O.emit("beforeDestroy"),O.initialized=!1,O.detachEvents(),Y.loop&&O.loopDestroy(),k&&(O.removeClasses(),W.removeAttribute("style"),ae.removeAttribute("style"),oe&&oe.length&&oe.forEach(ue=>{ue.classList.remove(Y.slideVisibleClass,Y.slideFullyVisibleClass,Y.slideActiveClass,Y.slideNextClass,Y.slidePrevClass),ue.removeAttribute("style"),ue.removeAttribute("data-swiper-slide-index")})),O.emit("destroy"),Object.keys(O.eventsListeners).forEach(ue=>{O.off(ue)}),E!==!1&&(O.el.swiper=null,(function(ue){const ve=ue;Object.keys(ve).forEach(be=>{try{ve[be]=null}catch{}try{delete ve[be]}catch{}})})(O)),O.destroyed=!0),null}static extendDefaults(E){Nn(is,E)}static get extendedDefaults(){return is}static get defaults(){return rs}static installModule(E){Ri.prototype.__modules__||(Ri.prototype.__modules__=[]);const k=Ri.prototype.__modules__;typeof E=="function"&&k.indexOf(E)<0&&k.push(E)}static use(E){return Array.isArray(E)?(E.forEach(k=>Ri.installModule(k)),Ri):(Ri.installModule(E),Ri)}}function os(I,E,k,O){return I.params.createElements&&Object.keys(O).forEach(Y=>{if(!k[Y]&&k.auto===!0){let W=hn(I.el,`.${O[Y]}`)[0];W||(W=ei("div",O[Y]),W.className=O[Y],I.el.append(W)),k[Y]=W,E[Y]=W}}),k}function Po(I){return I===void 0&&(I=""),`.${I.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Qs(I){const E=this,{params:k,slidesEl:O}=E;k.loop&&E.loopDestroy();const Y=W=>{if(typeof W=="string"){const ae=document.createElement("div");ae.innerHTML=W,O.append(ae.children[0]),ae.innerHTML=""}else O.append(W)};if(typeof I=="object"&&"length"in I)for(let W=0;W<I.length;W+=1)I[W]&&Y(I[W]);else Y(I);E.recalcSlides(),k.loop&&E.loopCreate(),k.observer&&!E.isElement||E.update()}function el(I){const E=this,{params:k,activeIndex:O,slidesEl:Y}=E;k.loop&&E.loopDestroy();let W=O+1;const ae=oe=>{if(typeof oe=="string"){const ue=document.createElement("div");ue.innerHTML=oe,Y.prepend(ue.children[0]),ue.innerHTML=""}
112else Y.prepend(oe)};if(typeof I=="object"&&"length"in I){for(let oe=0;oe<I.length;oe+=1)I[oe]&&ae(I[oe]);W=O+I.length}else ae(I);E.recalcSlides(),k.loop&&E.loopCreate(),k.observer&&!E.isElement||E.update(),E.slideTo(W,0,!1)}function tl(I,E){const k=this,{params:O,activeIndex:Y,slidesEl:W}=k;let ae=Y;O.loop&&(ae-=k.loopedSlides,k.loopDestroy(),k.recalcSlides());const oe=k.slides.length;if(I<=0)return void k.prependSlide(E);if(I>=oe)return void k.appendSlide(E);let ue=ae>I?ae+1:ae;const ve=[];for(let be=oe-1;be>=I;be-=1){const fe=k.slides[be];fe.remove(),ve.unshift(fe)}if(typeof E=="object"&&"length"in E){for(let be=0;be<E.length;be+=1)E[be]&&W.append(E[be]);ue=ae>I?ae+E.length:ae}else W.append(E);for(let be=0;be<ve.length;be+=1)W.append(ve[be]);k.recalcSlides(),O.loop&&k.loopCreate(),O.observer&&!k.isElement||k.update(),O.loop?k.slideTo(ue+k.loopedSlides,0,!1):k.slideTo(ue,0,!1)}function rl(I){const E=this,{params:k,activeIndex:O}=E;let Y=O;k.loop&&(Y-=E.loopedSlides,E.loopDestroy());let W,ae=Y;if(typeof I=="object"&&"length"in I){for(let oe=0;oe<I.length;oe+=1)W=I[oe],E.slides[W]&&E.slides[W].remove(),W<ae&&(ae-=1);ae=Math.max(ae,0)}else W=I,E.slides[W]&&E.slides[W].remove(),W<ae&&(ae-=1),ae=Math.max(ae,0);E.recalcSlides(),k.loop&&E.loopCreate(),k.observer&&!E.isElement||E.update(),k.loop?E.slideTo(ae+E.loopedSlides,0,!1):E.slideTo(ae,0,!1)}function nl(){const I=this,E=[];for(let k=0;k<I.slides.length;k+=1)E.push(k);I.removeSlide(E)}function oa(I){const{effect:E,swiper:k,on:O,setTranslate:Y,setTransition:W,overwriteParams:ae,perspective:oe,recreateShadows:ue,getEffectParams:ve}=I;let be;O("beforeInit",()=>{if(k.params.effect!==E)return;k.classNames.push(`${k.params.containerModifierClass}${E}`),oe&&oe()&&k.classNames.push(`${k.params.containerModifierClass}3d`);const fe=ae?ae():{};Object.assign(k.params,fe),Object.assign(k.originalParams,fe)}),O("setTranslate",()=>{k.params.effect===E&&Y()}),O("setTransition",(fe,me)=>{k.params.effect===E&&W(me)}),O("transitionEnd",()=>{if(k.params.effect===E&&ue){if(!ve||!ve().slideShadows)return;k.slides.forEach(fe=>{fe.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(me=>me.remove())}),ue()}}),O("virtualUpdate",()=>{k.params.effect===E&&(k.slides.length||(be=!0),requestAnimationFrame(()=>{be&&k.slides&&k.slides.length&&(Y(),be=!1)}))})}function _a(I,E){const k=yi(E);return k!==E&&(k.style.backfaceVisibility="hidden",k.style["-webkit-backface-visibility"]="hidden"),k}function Ra(I){let{swiper:E,duration:k,transformElements:O,allSlides:Y}=I;const{activeIndex:W}=E;if(E.params.virtualTranslate&&k!==0){let ae,oe=!1;ae=Y?O:O.filter(ue=>{const ve=ue.classList.contains("swiper-slide-transform")?(be=ue).parentElement?be.parentElement:E.slides.filter(fe=>fe.shadowRoot&&fe.shadowRoot===be.parentNode)[0]:ue;var be;return E.getSlideIndex(ve)===W}),ae.forEach(ue=>{_i(ue,()=>{if(oe||!E||E.destroyed)return;oe=!0,E.animating=!1;const ve=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});E.wrapperEl.dispatchEvent(ve)})})}}function aa(I,E,k){const O=`swiper-slide-shadow${k?`-${k}`:""}${I?` swiper-slide-shadow-${I}`:""}`,Y=yi(E);let W=Y.querySelector(`.${O.split(" ").join(".")}`);return W||(W=ei("div",O.split(" ")),Y.append(W)),W}Object.keys(ns).forEach(I=>{Object.keys(ns[I]).forEach(E=>{Ri.prototype[E]=ns[I][E]})}),Ri.use([function(I){let{swiper:E,on:k,emit:O}=I;const Y=sn();let W=null,ae=null;const oe=()=>{E&&!E.destroyed&&E.initialized&&(O("beforeResize"),O("resize"))},ue=()=>{E&&!E.destroyed&&E.initialized&&O("orientationchange")};k("init",()=>{E.params.resizeObserver&&Y.ResizeObserver!==void 0?E&&!E.destroyed&&E.initialized&&(W=new ResizeObserver(ve=>{ae=Y.requestAnimationFrame(()=>{const{width:be,height:fe}=E;let me=be,Ie=fe;ve.forEach(Oe=>{let{contentBoxSize:ke,contentRect:Ve,target:Pe}=Oe;Pe&&Pe!==E.el||(me=Ve?Ve.width:(ke[0]||ke).inlineSize,Ie=Ve?Ve.height:(ke[0]||ke).blockSize)}),me===be&&Ie===fe||oe()})}),W.observe(E.el)):(Y.addEventListener("resize",oe),Y.addEventListener("orientationchange",ue))}),k("destroy",()=>{ae&&Y.cancelAnimationFrame(ae),W&&W.unobserve&&E.el&&(W.unobserve(E.el),W=null),Y.removeEventListener("resize",oe),Y.removeEventListener("orientationchange",ue)})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;const W=[],ae=sn(),oe=function(ue,ve){ve===void 0&&(ve={});const be=new(ae.MutationObserver||ae.WebkitMutationObserver)(fe=>{if(E.__preventObserver__)return;if(fe.length===1)return void Y("observerUpdate",fe[0]);const me=function(){Y("observerUpdate",fe[0])};ae.requestAnimationFrame?ae.requestAnimationFrame(me):ae.setTimeout(me,0)});be.observe(ue,{attributes:ve.attributes===void 0||ve.attributes,childList:ve.childList===void 0||ve.childList,characterData:ve.characterData===void 0||ve.characterData}
112),W.push(be)};k({observer:!1,observeParents:!1,observeSlideChildren:!1}),O("init",()=>{if(E.params.observer){if(E.params.observeParents){const ue=qi(E.hostEl);for(let ve=0;ve<ue.length;ve+=1)oe(ue[ve])}oe(E.hostEl,{childList:E.params.observeSlideChildren}),oe(E.wrapperEl,{attributes:!1})}}),O("destroy",()=>{W.forEach(ue=>{ue.disconnect()}),W.splice(0,W.length)})}]);const il=[function(I){let E,{swiper:k,extendParams:O,on:Y,emit:W}=I;O({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const ae=An();k.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const oe=ae.createElement("div");function ue(be,fe){const me=k.params.virtual;if(me.cache&&k.virtual.cache[fe])return k.virtual.cache[fe];let Ie;return me.renderSlide?(Ie=me.renderSlide.call(k,be,fe),typeof Ie=="string"&&(oe.innerHTML=Ie,Ie=oe.children[0])):Ie=k.isElement?ei("swiper-slide"):ei("div",k.params.slideClass),Ie.setAttribute("data-swiper-slide-index",fe),me.renderSlide||(Ie.innerHTML=be),me.cache&&(k.virtual.cache[fe]=Ie),Ie}function ve(be){const{slidesPerView:fe,slidesPerGroup:me,centeredSlides:Ie,loop:Oe}=k.params,{addSlidesBefore:ke,addSlidesAfter:Ve}=k.params.virtual,{from:Pe,to:De,slides:Fe,slidesGrid:Xe,offset:ut}=k.virtual;k.params.cssMode||k.updateActiveIndex();const ot=k.activeIndex||0;let ct,at,ft;ct=k.rtlTranslate?"right":k.isHorizontal()?"left":"top",Ie?(at=Math.floor(fe/2)+me+Ve,ft=Math.floor(fe/2)+me+ke):(at=fe+(me-1)+Ve,ft=(Oe?fe:me)+ke);let it=ot-ft,Je=ot+at;Oe||(it=Math.max(it,0),Je=Math.min(Je,Fe.length-1));let Ze=(k.slidesGrid[it]||0)-(k.slidesGrid[0]||0);function st(){k.updateSlides(),k.updateProgress(),k.updateSlidesClasses(),W("virtualUpdate")}if(Oe&&ot>=ft?(it-=ft,Ie||(Ze+=k.slidesGrid[0])):Oe&&ot<ft&&(it=-ft,Ie&&(Ze+=k.slidesGrid[0])),Object.assign(k.virtual,{from:it,to:Je,offset:Ze,slidesGrid:k.slidesGrid,slidesBefore:ft,slidesAfter:at}),Pe===it&&De===Je&&!be)return k.slidesGrid!==Xe&&Ze!==ut&&k.slides.forEach(Lt=>{Lt.style[ct]=Ze-Math.abs(k.cssOverflowAdjustment())+"px"}),k.updateProgress(),void W("virtualUpdate");if(k.params.virtual.renderExternal)return k.params.virtual.renderExternal.call(k,{offset:Ze,from:it,to:Je,slides:(function(){const Lt=[];for(let zt=it;zt<=Je;zt+=1)Lt.push(Fe[zt]);return Lt})()}),void(k.params.virtual.renderExternalUpdate?st():W("virtualUpdate"));const lt=[],Tt=[],Ct=Lt=>{let zt=Lt;return Lt<0?zt=Fe.length+Lt:zt>=Fe.length&&(zt-=Fe.length),zt};if(be)k.slides.filter(Lt=>Lt.matches(`.${k.params.slideClass}, swiper-slide`)).forEach(Lt=>{Lt.remove()});else for(let Lt=Pe;Lt<=De;Lt+=1)if(Lt<it||Lt>Je){const zt=Ct(Lt);k.slides.filter(pr=>pr.matches(`.${k.params.slideClass}[data-swiper-slide-index="${zt}"], swiper-slide[data-swiper-slide-index="${zt}"]`)).forEach(pr=>{pr.remove()})}const Gt=Oe?-Fe.length:0,kt=Oe?2*Fe.length:Fe.length;for(let Lt=Gt;Lt<kt;Lt+=1)if(Lt>=it&&Lt<=Je){const zt=Ct(Lt);De===void 0||be?Tt.push(zt):(Lt>De&&Tt.push(zt),Lt<Pe&&lt.push(zt))}if(Tt.forEach(Lt=>{k.slidesEl.append(ue(Fe[Lt],Lt))}),Oe)for(let Lt=lt.length-1;Lt>=0;Lt-=1){const zt=lt[Lt];k.slidesEl.prepend(ue(Fe[zt],zt))}else lt.sort((Lt,zt)=>zt-Lt),lt.forEach(Lt=>{k.slidesEl.prepend(ue(Fe[Lt],Lt))});hn(k.slidesEl,".swiper-slide, swiper-slide").forEach(Lt=>{Lt.style[ct]=Ze-Math.abs(k.cssOverflowAdjustment())+"px"}),st()}Y("beforeInit",()=>{if(!k.params.virtual.enabled)return;let be;if(k.passedParams.virtual.slides===void 0){const fe=[...k.slidesEl.children].filter(me=>me.matches(`.${k.params.slideClass}, swiper-slide`));fe&&fe.length&&(k.virtual.slides=[...fe],be=!0,fe.forEach((me,Ie)=>{me.setAttribute("data-swiper-slide-index",Ie),k.virtual.cache[Ie]=me,me.remove()}))}be||(k.virtual.slides=k.params.virtual.slides),k.classNames.push(`${k.params.containerModifierClass}virtual`),k.params.watchSlidesProgress=!0,k.originalParams.watchSlidesProgress=!0,ve()}),Y("setTranslate",()=>{k.params.virtual.enabled&&(k.params.cssMode&&!k._immediateVirtual?(clearTimeout(E),E=setTimeout(()=>{ve()},100)):ve())}),Y("init update resize",()=>{k.params.virtual.enabled&&k.params.cssMode&&Hi(k.wrapperEl,"--swiper-virtual-size",`${k.virtualSize}px`)}),Object.assign(k.virtual,{appendSlide:function(be){if(typeof be=="object"&&"length"in be)for(let fe=0;fe<be.length;fe+=1)be[fe]&&k.virtual.slides.push(be[fe]);else k.virtual.slides.push(be);ve(!0)},prependSlide:function(be){const fe=k.activeIndex;let me=fe+1,Ie=1;if(Array.isArray(be)){for(let Oe=0;Oe<be.length;Oe+=1)be[Oe]&&k.virtual.slides.unshift(be[Oe]);me=fe+be.length,Ie=be.length}else k.virtual.slides.unshift(be);if(k.params.virtual.cache){const Oe=k.virtual.cache,ke={};Object.keys(Oe).forEach(Ve=>{const Pe=Oe[Ve],De=Pe.getAttribute("data-swiper-slide-index");De&&Pe.setAttribute("data-swiper-slide-index",parseInt(De,10)+Ie),ke[parseInt(Ve,10)+Ie]=Pe}),k.virtual.cache=ke}ve(!0),k.slideTo(me,0)},removeSlide:function(be){if(be==null)return;let fe=k.activeIndex;if(Array.isArray(be))for(let me=be.length-1;me>=0;me-=1)k.params.virtual.cache&&(delete k.virtual.cache[be[me]],Object.keys(k.virtual.cache).forEach(Ie=>{Ie>be&&(k.virtual.cache[Ie-1]=k.virtual.cache[Ie],k.virtual.cache[Ie-1].setAttribute("data-swiper-slide-index",Ie-1),delete k.virtual.cache[Ie])})),k.virtual.slides.splice(be[me],1),be[me]<fe&&(fe-=1),fe=Math.max(fe,0);else k.params.virtual.cache&&(delete k.virtual.cache[be],Object.keys(k.virtual.cache).forEach(me=>{me>be&&(k.virtual.cache[me-1]=k.virtual.cache[me],k.virtual.cache[me-1].setAttribute("data-swiper-slide-index",me-1),delete k.virtual.cache[me])})),k.virtual.slides.splice(be,1),be<fe&&(fe-=1),fe=Math.max(fe,0);ve(!0),k.slideTo(fe,0)},removeAllSlides:function(){k.virtual.slides=[],k.params.virtual.cache&&(k.virtual.cache={}),ve(!0),k.slideTo(0,0)},update:ve})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;const W=An(),ae=sn();function oe(be){if(!E.enabled)return;const{rtlTranslate:fe}=E;let me=be;me.originalEvent&&(me=me.originalEvent);const Ie=me.keyCode||me.charCode,Oe=E.params.keyboard.pageUpDown,ke=Oe&&Ie===33,Ve=Oe&&Ie===34,Pe=Ie===37,De=Ie===39,Fe=Ie===38,Xe=Ie===40;if(!E.allowSlideNext&&(E.isHorizontal()&&De||E.isVertical()&&Xe||Ve)||!E.allowSlidePrev&&(E.isHorizontal()&&Pe||E.isVertical()&&Fe||ke))return!1;if(!(me.shiftKey||me.altKey||me.ctrlKey||me.metaKey||W.activeElement&&W.activeElement.nodeName&&(W.activeElement.nodeName.toLowerCase()==="input"||W.activeElement.nodeName.toLowerCase()==="textarea"))){if(E.params.keyboard.onlyInViewport&&(ke||Ve||Pe||De||Fe||Xe)){let ut=!1;
112if(qi(E.el,`.${E.params.slideClass}, swiper-slide`).length>0&&qi(E.el,`.${E.params.slideActiveClass}`).length===0)return;const ot=E.el,ct=ot.clientWidth,at=ot.clientHeight,ft=ae.innerWidth,it=ae.innerHeight,Je=Xo(ot);fe&&(Je.left-=ot.scrollLeft);const Ze=[[Je.left,Je.top],[Je.left+ct,Je.top],[Je.left,Je.top+at],[Je.left+ct,Je.top+at]];for(let st=0;st<Ze.length;st+=1){const lt=Ze[st];if(lt[0]>=0&&lt[0]<=ft&&lt[1]>=0&&lt[1]<=it){if(lt[0]===0&&lt[1]===0)continue;ut=!0}}if(!ut)return}E.isHorizontal()?((ke||Ve||Pe||De)&&(me.preventDefault?me.preventDefault():me.returnValue=!1),((Ve||De)&&!fe||(ke||Pe)&&fe)&&E.slideNext(),((ke||Pe)&&!fe||(Ve||De)&&fe)&&E.slidePrev()):((ke||Ve||Fe||Xe)&&(me.preventDefault?me.preventDefault():me.returnValue=!1),(Ve||Xe)&&E.slideNext(),(ke||Fe)&&E.slidePrev()),Y("keyPress",Ie)}}function ue(){E.keyboard.enabled||(W.addEventListener("keydown",oe),E.keyboard.enabled=!0)}function ve(){E.keyboard.enabled&&(W.removeEventListener("keydown",oe),E.keyboard.enabled=!1)}E.keyboard={enabled:!1},k({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),O("init",()=>{E.params.keyboard.enabled&&ue()}),O("destroy",()=>{E.keyboard.enabled&&ve()}),Object.assign(E.keyboard,{enable:ue,disable:ve})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;const W=sn();let ae;k({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),E.mousewheel={enabled:!1};let oe,ue=Xn();const ve=[];function be(){E.enabled&&(E.mouseEntered=!0)}function fe(){E.enabled&&(E.mouseEntered=!1)}function me(Pe){return!(E.params.mousewheel.thresholdDelta&&Pe.delta<E.params.mousewheel.thresholdDelta||E.params.mousewheel.thresholdTime&&Xn()-ue<E.params.mousewheel.thresholdTime||!(Pe.delta>=6&&Xn()-ue<60)&&(Pe.direction<0?E.isEnd&&!E.params.loop||E.animating||(E.slideNext(),Y("scroll",Pe.raw)):E.isBeginning&&!E.params.loop||E.animating||(E.slidePrev(),Y("scroll",Pe.raw)),ue=new W.Date().getTime(),1))}function Ie(Pe){let De=Pe,Fe=!0;if(!E.enabled||Pe.target.closest(`.${E.params.mousewheel.noMousewheelClass}`))return;const Xe=E.params.mousewheel;E.params.cssMode&&De.preventDefault();let ut=E.el;E.params.mousewheel.eventsTarget!=="container"&&(ut=document.querySelector(E.params.mousewheel.eventsTarget));const ot=ut&&ut.contains(De.target);if(!E.mouseEntered&&!ot&&!Xe.releaseOnEdges)return!0;De.originalEvent&&(De=De.originalEvent);let ct=0;const at=E.rtlTranslate?-1:1,ft=(function(Je){let Ze=0,st=0,lt=0,Tt=0;return"detail"in Je&&(st=Je.detail),"wheelDelta"in Je&&(st=-Je.wheelDelta/120),"wheelDeltaY"in Je&&(st=-Je.wheelDeltaY/120),"wheelDeltaX"in Je&&(Ze=-Je.wheelDeltaX/120),"axis"in Je&&Je.axis===Je.HORIZONTAL_AXIS&&(Ze=st,st=0),lt=10*Ze,Tt=10*st,"deltaY"in Je&&(Tt=Je.deltaY),"deltaX"in Je&&(lt=Je.deltaX),Je.shiftKey&&!lt&&(lt=Tt,Tt=0),(lt||Tt)&&Je.deltaMode&&(Je.deltaMode===1?(lt*=40,Tt*=40):(lt*=800,Tt*=800)),lt&&!Ze&&(Ze=lt<1?-1:1),Tt&&!st&&(st=Tt<1?-1:1),{spinX:Ze,spinY:st,pixelX:lt,pixelY:Tt}})(De);if(Xe.forceToAxis)if(E.isHorizontal()){if(!(Math.abs(ft.pixelX)>Math.abs(ft.pixelY)))return!0;ct=-ft.pixelX*at}else{if(!(Math.abs(ft.pixelY)>Math.abs(ft.pixelX)))return!0;ct=-ft.pixelY}else ct=Math.abs(ft.pixelX)>Math.abs(ft.pixelY)?-ft.pixelX*at:-ft.pixelY;if(ct===0)return!0;Xe.invert&&(ct=-ct);let it=E.getTranslate()+ct*Xe.sensitivity;if(it>=E.minTranslate()&&(it=E.minTranslate()),it<=E.maxTranslate()&&(it=E.maxTranslate()),Fe=!!E.params.loop||!(it===E.minTranslate()||it===E.maxTranslate()),Fe&&E.params.nested&&De.stopPropagation(),E.params.freeMode&&E.params.freeMode.enabled){const Je={time:Xn(),delta:Math.abs(ct),direction:Math.sign(ct)},Ze=oe&&Je.time<oe.time+500&&Je.delta<=oe.delta&&Je.direction===oe.direction;if(!Ze){oe=void 0;let st=E.getTranslate()+ct*Xe.sensitivity;const lt=E.isBeginning,Tt=E.isEnd;if(st>=E.minTranslate()&&(st=E.minTranslate()),st<=E.maxTranslate()&&(st=E.maxTranslate()),E.setTransition(0),E.setTranslate(st),E.updateProgress(),E.updateActiveIndex(),E.updateSlidesClasses(),(!lt&&E.isBeginning||!Tt&&E.isEnd)&&E.updateSlidesClasses(),E.params.loop&&E.loopFix({direction:Je.direction<0?"next":"prev",byMousewheel:!0}),E.params.freeMode.sticky){clearTimeout(ae),ae=void 0,ve.length>=15&&ve.shift();const Ct=ve.length?ve[ve.length-1]:void 0,Gt=ve[0];if(ve.push(Je),Ct&&(Je.delta>Ct.delta||Je.direction!==Ct.direction))ve.splice(0);else if(ve.length>=15&&Je.time-Gt.time<500&&Gt.delta-Je.delta>=1&&Je.delta<=6){const kt=ct>0?.8:.2;oe=Je,ve.splice(0),ae=gi(()=>{E.slideToClosest(E.params.speed,!0,void 0,kt)},0)}ae||(ae=gi(()=>{oe=Je,ve.splice(0),E.slideToClosest(E.params.speed,!0,void 0,.5)},500))}if(Ze||Y("scroll",De),E.params.autoplay&&E.params.autoplayDisableOnInteraction&&E.autoplay.stop(),Xe.releaseOnEdges&&(st===E.minTranslate()||st===E.maxTranslate()))return!0}}else{const Je={time:Xn(),delta:Math.abs(ct),direction:Math.sign(ct),raw:Pe};ve.length>=2&&ve.shift();const Ze=ve.length?ve[ve.length-1]:void 0;if(ve.push(Je),Ze?(Je.direction!==Ze.direction||Je.delta>
112Ze.delta||Je.time>Ze.time+150)&&me(Je):me(Je),(function(st){const lt=E.params.mousewheel;if(st.direction<0){if(E.isEnd&&!E.params.loop&&lt.releaseOnEdges)return!0}else if(E.isBeginning&&!E.params.loop&&lt.releaseOnEdges)return!0;return!1})(Je))return!0}return De.preventDefault?De.preventDefault():De.returnValue=!1,!1}function Oe(Pe){let De=E.el;E.params.mousewheel.eventsTarget!=="container"&&(De=document.querySelector(E.params.mousewheel.eventsTarget)),De[Pe]("mouseenter",be),De[Pe]("mouseleave",fe),De[Pe]("wheel",Ie)}function ke(){return E.params.cssMode?(E.wrapperEl.removeEventListener("wheel",Ie),!0):!E.mousewheel.enabled&&(Oe("addEventListener"),E.mousewheel.enabled=!0,!0)}function Ve(){return E.params.cssMode?(E.wrapperEl.addEventListener(event,Ie),!0):!!E.mousewheel.enabled&&(Oe("removeEventListener"),E.mousewheel.enabled=!1,!0)}O("init",()=>{!E.params.mousewheel.enabled&&E.params.cssMode&&Ve(),E.params.mousewheel.enabled&&ke()}),O("destroy",()=>{E.params.cssMode&&ke(),E.mousewheel.enabled&&Ve()}),Object.assign(E.mousewheel,{enable:ke,disable:Ve})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;k({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),E.navigation={nextEl:null,prevEl:null};const W=Oe=>(Array.isArray(Oe)?Oe:[Oe]).filter(ke=>!!ke);function ae(Oe){let ke;return Oe&&typeof Oe=="string"&&E.isElement&&(ke=E.el.querySelector(Oe),ke)?ke:(Oe&&(typeof Oe=="string"&&(ke=[...document.querySelectorAll(Oe)]),E.params.uniqueNavElements&&typeof Oe=="string"&&ke.length>1&&E.el.querySelectorAll(Oe).length===1&&(ke=E.el.querySelector(Oe))),Oe&&!ke?Oe:ke)}function oe(Oe,ke){const Ve=E.params.navigation;(Oe=W(Oe)).forEach(Pe=>{Pe&&(Pe.classList[ke?"add":"remove"](...Ve.disabledClass.split(" ")),Pe.tagName==="BUTTON"&&(Pe.disabled=ke),E.params.watchOverflow&&E.enabled&&Pe.classList[E.isLocked?"add":"remove"](Ve.lockClass))})}function ue(){const{nextEl:Oe,prevEl:ke}=E.navigation;if(E.params.loop)return oe(ke,!1),void oe(Oe,!1);oe(ke,E.isBeginning&&!E.params.rewind),oe(Oe,E.isEnd&&!E.params.rewind)}function ve(Oe){Oe.preventDefault(),(!E.isBeginning||E.params.loop||E.params.rewind)&&(E.slidePrev(),Y("navigationPrev"))}function be(Oe){Oe.preventDefault(),(!E.isEnd||E.params.loop||E.params.rewind)&&(E.slideNext(),Y("navigationNext"))}function fe(){const Oe=E.params.navigation;if(E.params.navigation=os(E,E.originalParams.navigation,E.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!Oe.nextEl&&!Oe.prevEl)return;let ke=ae(Oe.nextEl),Ve=ae(Oe.prevEl);Object.assign(E.navigation,{nextEl:ke,prevEl:Ve}),ke=W(ke),Ve=W(Ve);const Pe=(De,Fe)=>{De&&De.addEventListener("click",Fe==="next"?be:ve),!E.enabled&&De&&De.classList.add(...Oe.lockClass.split(" "))};ke.forEach(De=>Pe(De,"next")),Ve.forEach(De=>Pe(De,"prev"))}function me(){let{nextEl:Oe,prevEl:ke}=E.navigation;Oe=W(Oe),ke=W(ke);const Ve=(Pe,De)=>{Pe.removeEventListener("click",De==="next"?be:ve),Pe.classList.remove(...E.params.navigation.disabledClass.split(" "))};Oe.forEach(Pe=>Ve(Pe,"next")),ke.forEach(Pe=>Ve(Pe,"prev"))}O("init",()=>{E.params.navigation.enabled===!1?Ie():(fe(),ue())}),O("toEdge fromEdge lock unlock",()=>{ue()}),O("destroy",()=>{me()}),O("enable disable",()=>{let{nextEl:Oe,prevEl:ke}=E.navigation;Oe=W(Oe),ke=W(ke),E.enabled?ue():[...Oe,...ke].filter(Ve=>!!Ve).forEach(Ve=>Ve.classList.add(E.params.navigation.lockClass))}),O("click",(Oe,ke)=>{let{nextEl:Ve,prevEl:Pe}=E.navigation;Ve=W(Ve),Pe=W(Pe);const De=ke.target;if(E.params.navigation.hideOnClick&&!Pe.includes(De)&&!Ve.includes(De)){if(E.pagination&&E.params.pagination&&E.params.pagination.clickable&&(E.pagination.el===De||E.pagination.el.contains(De)))return;let Fe;Ve.length?Fe=Ve[0].classList.contains(E.params.navigation.hiddenClass):Pe.length&&(Fe=Pe[0].classList.contains(E.params.navigation.hiddenClass)),Y(Fe===!0?"navigationShow":"navigationHide"),[...Ve,...Pe].filter(Xe=>!!Xe).forEach(Xe=>Xe.classList.toggle(E.params.navigation.hiddenClass))}});const Ie=()=>{E.el.classList.add(...E.params.navigation.navigationDisabledClass.split(" ")),me()};Object.assign(E.navigation,{enable:()=>{E.el.classList.remove(...E.params.navigation.navigationDisabledClass.split(" ")),fe(),ue()},disable:Ie,update:ue,init:fe,destroy:me})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;const W="swiper-pagination";let ae;k({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:Pe=>Pe,formatFractionTotal:Pe=>Pe,bulletClass:`${W}-bullet`,bulletActiveClass:`${W}-bullet-active`,modifierClass:`${W}-`,currentClass:`${W}-current`,totalClass:`${W}-total`,hiddenClass:`${W}-hidden`,progressbarFillClass:`${W}-progressbar-fill`,progressbarOppositeClass:`${W}-progressbar-opposite`,clickableClass:`${W}-clickable`,lockClass:`${W}-lock`,horizontalClass:`${W}-horizontal`,verticalClass:`${W}-vertical`,paginationDisabledClass:`${W}-disabled`}}),E.pagination={el:null,bullets:[]};let oe=0;const ue=Pe=>(Array.isArray(Pe)?Pe:[Pe]).filter(De=>!!De);function ve(){return!E.params.pagination.el||!E.pagination.el||Array.isArray(E.pagination.el)&&E.pagination.el.length===0}function be(Pe,De){const{bulletActiveClass:Fe}=E.params.pagination;Pe&&(Pe=Pe[(De==="prev"?"previous":"next")+"ElementSibling"])&&(Pe.classList.add(`${Fe}-${De}`),(Pe=Pe[(De==="prev"?"previous":"next")+"ElementSibling"])&&Pe.classList.add(`${Fe}-${De}-${De}`))}function fe(Pe){const De=Pe.target.closest(Po(E.params.pagination.bulletClass));if(!De)return;Pe.preventDefault();const Fe=Gi(De)*E.params.slidesPerGroup;if(E.params.loop){if(E.realIndex===Fe)return;E.slideToLoop(Fe)}else E.slideTo(Fe)}function me(){const Pe=E.rtl,De=E.params.pagination;if(ve())return;let Fe,Xe,ut=E.pagination.el;ut=ue(ut);const ot=E.virtual&&E.params.virtual.enabled?E.virtual.slides.length:E.slides.length,ct=E.params.loop?Math.
112ceil(ot/E.params.slidesPerGroup):E.snapGrid.length;if(E.params.loop?(Xe=E.previousRealIndex||0,Fe=E.params.slidesPerGroup>1?Math.floor(E.realIndex/E.params.slidesPerGroup):E.realIndex):E.snapIndex!==void 0?(Fe=E.snapIndex,Xe=E.previousSnapIndex):(Xe=E.previousIndex||0,Fe=E.activeIndex||0),De.type==="bullets"&&E.pagination.bullets&&E.pagination.bullets.length>0){const at=E.pagination.bullets;let ft,it,Je;if(De.dynamicBullets&&(ae=ha(at[0],E.isHorizontal()?"width":"height",!0),ut.forEach(Ze=>{Ze.style[E.isHorizontal()?"width":"height"]=ae*(De.dynamicMainBullets+4)+"px"}),De.dynamicMainBullets>1&&Xe!==void 0&&(oe+=Fe-(Xe||0),oe>De.dynamicMainBullets-1?oe=De.dynamicMainBullets-1:oe<0&&(oe=0)),ft=Math.max(Fe-oe,0),it=ft+(Math.min(at.length,De.dynamicMainBullets)-1),Je=(it+ft)/2),at.forEach(Ze=>{const st=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(lt=>`${De.bulletActiveClass}${lt}`)].map(lt=>typeof lt=="string"&&lt.includes(" ")?lt.split(" "):lt).flat();Ze.classList.remove(...st)}),ut.length>1)at.forEach(Ze=>{const st=Gi(Ze);st===Fe?Ze.classList.add(...De.bulletActiveClass.split(" ")):E.isElement&&Ze.setAttribute("part","bullet"),De.dynamicBullets&&(st>=ft&&st<=it&&Ze.classList.add(...`${De.bulletActiveClass}-main`.split(" ")),st===ft&&be(Ze,"prev"),st===it&&be(Ze,"next"))});else{const Ze=at[Fe];if(Ze&&Ze.classList.add(...De.bulletActiveClass.split(" ")),E.isElement&&at.forEach((st,lt)=>{st.setAttribute("part",lt===Fe?"bullet-active":"bullet")}),De.dynamicBullets){const st=at[ft],lt=at[it];for(let Tt=ft;Tt<=it;Tt+=1)at[Tt]&&at[Tt].classList.add(...`${De.bulletActiveClass}-main`.split(" "));be(st,"prev"),be(lt,"next")}}if(De.dynamicBullets){const Ze=Math.min(at.length,De.dynamicMainBullets+4),st=(ae*Ze-ae)/2-Je*ae,lt=Pe?"right":"left";at.forEach(Tt=>{Tt.style[E.isHorizontal()?lt:"top"]=`${st}px`})}}ut.forEach((at,ft)=>{if(De.type==="fraction"&&(at.querySelectorAll(Po(De.currentClass)).forEach(it=>{it.textContent=De.formatFractionCurrent(Fe+1)}),at.querySelectorAll(Po(De.totalClass)).forEach(it=>{it.textContent=De.formatFractionTotal(ct)})),De.type==="progressbar"){let it;it=De.progressbarOpposite?E.isHorizontal()?"vertical":"horizontal":E.isHorizontal()?"horizontal":"vertical";const Je=(Fe+1)/ct;let Ze=1,st=1;it==="horizontal"?Ze=Je:st=Je,at.querySelectorAll(Po(De.progressbarFillClass)).forEach(lt=>{lt.style.transform=`translate3d(0,0,0) scaleX(${Ze}) scaleY(${st})`,lt.style.transitionDuration=`${E.params.speed}ms`})}De.type==="custom"&&De.renderCustom?(at.innerHTML=De.renderCustom(E,Fe+1,ct),ft===0&&Y("paginationRender",at)):(ft===0&&Y("paginationRender",at),Y("paginationUpdate",at)),E.params.watchOverflow&&E.enabled&&at.classList[E.isLocked?"add":"remove"](De.lockClass)})}function Ie(){const Pe=E.params.pagination;if(ve())return;const De=E.virtual&&E.params.virtual.enabled?E.virtual.slides.length:E.grid&&E.params.grid.rows>1?E.slides.length/Math.ceil(E.params.grid.rows):E.slides.length;let Fe=E.pagination.el;Fe=ue(Fe);let Xe="";if(Pe.type==="bullets"){let ut=E.params.loop?Math.ceil(De/E.params.slidesPerGroup):E.snapGrid.length;E.params.freeMode&&E.params.freeMode.enabled&&ut>De&&(ut=De);for(let ot=0;ot<ut;ot+=1)Pe.renderBullet?Xe+=Pe.renderBullet.call(E,ot,Pe.bulletClass):Xe+=`<${Pe.bulletElement} ${E.isElement?'part="bullet"':""} class="${Pe.bulletClass}"></${Pe.bulletElement}>`}Pe.type==="fraction"&&(Xe=Pe.renderFraction?Pe.renderFraction.call(E,Pe.currentClass,Pe.totalClass):`<span class="${Pe.currentClass}"></span> / <span class="${Pe.totalClass}"></span>`),Pe.type==="progressbar"&&(Xe=Pe.renderProgressbar?Pe.renderProgressbar.call(E,Pe.progressbarFillClass):`<span class="${Pe.progressbarFillClass}"></span>`),E.pagination.bullets=[],Fe.forEach(ut=>{Pe.type!=="custom"&&(ut.innerHTML=Xe||""),Pe.type==="bullets"&&E.pagination.bullets.push(...ut.querySelectorAll(Po(Pe.bulletClass)))}),Pe.type!=="custom"&&Y("paginationRender",Fe[0])}function Oe(){E.params.pagination=os(E,E.originalParams.pagination,E.params.pagination,{el:"swiper-pagination"});const Pe=E.params.pagination;if(!Pe.el)return;let De;typeof Pe.el=="string"&&E.isElement&&(De=E.el.querySelector(Pe.el)),De||typeof Pe.el!="string"||(De=[...document.querySelectorAll(Pe.el)]),De||(De=Pe.el),De&&De.length!==0&&(E.params.uniqueNavElements&&typeof Pe.el=="string"&&Array.isArray(De)&&De.length>1&&(De=[...E.el.querySelectorAll(Pe.el)],De.length>1&&(De=De.filter(Fe=>qi(Fe,".swiper")[0]===E.el)[0])),Array.isArray(De)&&De.length===1&&(De=De[0]),Object.assign(E.pagination,{el:De}),De=ue(De),De.forEach(Fe=>{Pe.type==="bullets"&&Pe.clickable&&Fe.classList.add(...(Pe.clickableClass||"").split(" ")),Fe.classList.add(Pe.modifierClass+Pe.type),Fe.classList.add(E.isHorizontal()?Pe.horizontalClass:Pe.verticalClass),Pe.type==="bullets"&&Pe.dynamicBullets&&(Fe.classList.add(`${Pe.modifierClass}${Pe.type}-dynamic`),oe=0,Pe.dynamicMainBullets<1&&(Pe.dynamicMainBullets=1)),Pe.type==="progressbar"&&Pe.progressbarOpposite&&Fe.classList.add(Pe.progressbarOppositeClass),Pe.clickable&&Fe.addEventListener("click",fe),E.enabled||Fe.classList.add(Pe.lockClass)}))}function ke(){const Pe=E.params.pagination;if(ve())return;let De=E.pagination.el;De&&(De=ue(De),De.forEach(Fe=>{Fe.classList.remove(Pe.hiddenClass),Fe.classList.remove(Pe.modifierClass+Pe.type),Fe.classList.remove(E.isHorizontal()?Pe.horizontalClass:Pe.verticalClass),Pe.clickable&&(Fe.classList.remove(...(Pe.clickableClass||"").split(" ")),Fe.removeEventListener("click",fe))}
112)),E.pagination.bullets&&E.pagination.bullets.forEach(Fe=>Fe.classList.remove(...Pe.bulletActiveClass.split(" ")))}O("changeDirection",()=>{if(!E.pagination||!E.pagination.el)return;const Pe=E.params.pagination;let{el:De}=E.pagination;De=ue(De),De.forEach(Fe=>{Fe.classList.remove(Pe.horizontalClass,Pe.verticalClass),Fe.classList.add(E.isHorizontal()?Pe.horizontalClass:Pe.verticalClass)})}),O("init",()=>{E.params.pagination.enabled===!1?Ve():(Oe(),Ie(),me())}),O("activeIndexChange",()=>{E.snapIndex===void 0&&me()}),O("snapIndexChange",()=>{me()}),O("snapGridLengthChange",()=>{Ie(),me()}),O("destroy",()=>{ke()}),O("enable disable",()=>{let{el:Pe}=E.pagination;Pe&&(Pe=ue(Pe),Pe.forEach(De=>De.classList[E.enabled?"remove":"add"](E.params.pagination.lockClass)))}),O("lock unlock",()=>{me()}),O("click",(Pe,De)=>{const Fe=De.target,Xe=ue(E.pagination.el);if(E.params.pagination.el&&E.params.pagination.hideOnClick&&Xe&&Xe.length>0&&!Fe.classList.contains(E.params.pagination.bulletClass)){if(E.navigation&&(E.navigation.nextEl&&Fe===E.navigation.nextEl||E.navigation.prevEl&&Fe===E.navigation.prevEl))return;const ut=Xe[0].classList.contains(E.params.pagination.hiddenClass);Y(ut===!0?"paginationShow":"paginationHide"),Xe.forEach(ot=>ot.classList.toggle(E.params.pagination.hiddenClass))}});const Ve=()=>{E.el.classList.add(E.params.pagination.paginationDisabledClass);let{el:Pe}=E.pagination;Pe&&(Pe=ue(Pe),Pe.forEach(De=>De.classList.add(E.params.pagination.paginationDisabledClass))),ke()};Object.assign(E.pagination,{enable:()=>{E.el.classList.remove(E.params.pagination.paginationDisabledClass);let{el:Pe}=E.pagination;Pe&&(Pe=ue(Pe),Pe.forEach(De=>De.classList.remove(E.params.pagination.paginationDisabledClass))),Oe(),Ie(),me()},disable:Ve,render:Ie,update:me,init:Oe,destroy:ke})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;const W=An();let ae,oe,ue,ve,be=!1,fe=null,me=null;function Ie(){if(!E.params.scrollbar.el||!E.scrollbar.el)return;const{scrollbar:at,rtlTranslate:ft}=E,{dragEl:it,el:Je}=at,Ze=E.params.scrollbar,st=E.params.loop?E.progressLoop:E.progress;let lt=oe,Tt=(ue-oe)*st;ft?(Tt=-Tt,Tt>0?(lt=oe-Tt,Tt=0):-Tt+oe>ue&&(lt=ue+Tt)):Tt<0?(lt=oe+Tt,Tt=0):Tt+oe>ue&&(lt=ue-Tt),E.isHorizontal()?(it.style.transform=`translate3d(${Tt}px, 0, 0)`,it.style.width=`${lt}px`):(it.style.transform=`translate3d(0px, ${Tt}px, 0)`,it.style.height=`${lt}px`),Ze.hide&&(clearTimeout(fe),Je.style.opacity=1,fe=setTimeout(()=>{Je.style.opacity=0,Je.style.transitionDuration="400ms"},1e3))}function Oe(){if(!E.params.scrollbar.el||!E.scrollbar.el)return;const{scrollbar:at}=E,{dragEl:ft,el:it}=at;ft.style.width="",ft.style.height="",ue=E.isHorizontal()?it.offsetWidth:it.offsetHeight,ve=E.size/(E.virtualSize+E.params.slidesOffsetBefore-(E.params.centeredSlides?E.snapGrid[0]:0)),oe=E.params.scrollbar.dragSize==="auto"?ue*ve:parseInt(E.params.scrollbar.dragSize,10),E.isHorizontal()?ft.style.width=`${oe}px`:ft.style.height=`${oe}px`,it.style.display=ve>=1?"none":"",E.params.scrollbar.hide&&(it.style.opacity=0),E.params.watchOverflow&&E.enabled&&at.el.classList[E.isLocked?"add":"remove"](E.params.scrollbar.lockClass)}function ke(at){return E.isHorizontal()?at.clientX:at.clientY}function Ve(at){const{scrollbar:ft,rtlTranslate:it}=E,{el:Je}=ft;let Ze;Ze=(ke(at)-Xo(Je)[E.isHorizontal()?"left":"top"]-(ae!==null?ae:oe/2))/(ue-oe),Ze=Math.max(Math.min(Ze,1),0),it&&(Ze=1-Ze);const st=E.minTranslate()+(E.maxTranslate()-E.minTranslate())*Ze;E.updateProgress(st),E.setTranslate(st),E.updateActiveIndex(),E.updateSlidesClasses()}function Pe(at){const ft=E.params.scrollbar,{scrollbar:it,wrapperEl:Je}=E,{el:Ze,dragEl:st}=it;be=!0,ae=at.target===st?ke(at)-at.target.getBoundingClientRect()[E.isHorizontal()?"left":"top"]:null,at.preventDefault(),at.stopPropagation(),Je.style.transitionDuration="100ms",st.style.transitionDuration="100ms",Ve(at),clearTimeout(me),Ze.style.transitionDuration="0ms",ft.hide&&(Ze.style.opacity=1),E.params.cssMode&&(E.wrapperEl.style["scroll-snap-type"]="none"),Y("scrollbarDragStart",at)}function De(at){const{scrollbar:ft,wrapperEl:it}=E,{el:Je,dragEl:Ze}=ft;be&&(at.preventDefault?at.preventDefault():at.returnValue=!1,Ve(at),it.style.transitionDuration="0ms",Je.style.transitionDuration="0ms",Ze.style.transitionDuration="0ms",Y("scrollbarDragMove",at))}
112function Fe(at){const ft=E.params.scrollbar,{scrollbar:it,wrapperEl:Je}=E,{el:Ze}=it;be&&(be=!1,E.params.cssMode&&(E.wrapperEl.style["scroll-snap-type"]="",Je.style.transitionDuration=""),ft.hide&&(clearTimeout(me),me=gi(()=>{Ze.style.opacity=0,Ze.style.transitionDuration="400ms"},1e3)),Y("scrollbarDragEnd",at),ft.snapOnRelease&&E.slideToClosest())}function Xe(at){const{scrollbar:ft,params:it}=E,Je=ft.el;if(!Je)return;const Ze=Je,st=!!it.passiveListeners&&{passive:!1,capture:!1},lt=!!it.passiveListeners&&{passive:!0,capture:!1};if(!Ze)return;const Tt=at==="on"?"addEventListener":"removeEventListener";Ze[Tt]("pointerdown",Pe,st),W[Tt]("pointermove",De,st),W[Tt]("pointerup",Fe,lt)}function ut(){const{scrollbar:at,el:ft}=E;E.params.scrollbar=os(E,E.originalParams.scrollbar,E.params.scrollbar,{el:"swiper-scrollbar"});const it=E.params.scrollbar;if(!it.el)return;let Je,Ze;if(typeof it.el=="string"&&E.isElement&&(Je=E.el.querySelector(it.el)),Je||typeof it.el!="string")Je||(Je=it.el);else if(Je=W.querySelectorAll(it.el),!Je.length)return;E.params.uniqueNavElements&&typeof it.el=="string"&&Je.length>1&&ft.querySelectorAll(it.el).length===1&&(Je=ft.querySelector(it.el)),Je.length>0&&(Je=Je[0]),Je.classList.add(E.isHorizontal()?it.horizontalClass:it.verticalClass),Je&&(Ze=Je.querySelector(Po(E.params.scrollbar.dragClass)),Ze||(Ze=ei("div",E.params.scrollbar.dragClass),Je.append(Ze))),Object.assign(at,{el:Je,dragEl:Ze}),it.draggable&&E.params.scrollbar.el&&E.scrollbar.el&&Xe("on"),Je&&Je.classList[E.enabled?"remove":"add"](...mi(E.params.scrollbar.lockClass))}function ot(){const at=E.params.scrollbar,ft=E.scrollbar.el;ft&&ft.classList.remove(...mi(E.isHorizontal()?at.horizontalClass:at.verticalClass)),E.params.scrollbar.el&&E.scrollbar.el&&Xe("off")}k({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),E.scrollbar={el:null,dragEl:null},O("init",()=>{E.params.scrollbar.enabled===!1?ct():(ut(),Oe(),Ie())}),O("update resize observerUpdate lock unlock",()=>{Oe()}),O("setTranslate",()=>{Ie()}),O("setTransition",(at,ft)=>{var it;it=ft,E.params.scrollbar.el&&E.scrollbar.el&&(E.scrollbar.dragEl.style.transitionDuration=`${it}ms`)}),O("enable disable",()=>{const{el:at}=E.scrollbar;at&&at.classList[E.enabled?"remove":"add"](...mi(E.params.scrollbar.lockClass))}),O("destroy",()=>{ot()});const ct=()=>{E.el.classList.add(...mi(E.params.scrollbar.scrollbarDisabledClass)),E.scrollbar.el&&E.scrollbar.el.classList.add(...mi(E.params.scrollbar.scrollbarDisabledClass)),ot()};Object.assign(E.scrollbar,{enable:()=>{E.el.classList.remove(...mi(E.params.scrollbar.scrollbarDisabledClass)),E.scrollbar.el&&E.scrollbar.el.classList.remove(...mi(E.params.scrollbar.scrollbarDisabledClass)),ut(),Oe(),Ie()},disable:ct,updateSize:Oe,setTranslate:Ie,init:ut,destroy:ot})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({parallax:{enabled:!1}});const Y="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",W=(oe,ue)=>{const{rtl:ve}=E,be=ve?-1:1,fe=oe.getAttribute("data-swiper-parallax")||"0";let me=oe.getAttribute("data-swiper-parallax-x"),Ie=oe.getAttribute("data-swiper-parallax-y");const Oe=oe.getAttribute("data-swiper-parallax-scale"),ke=oe.getAttribute("data-swiper-parallax-opacity"),Ve=oe.getAttribute("data-swiper-parallax-rotate");if(me||Ie?(me=me||"0",Ie=Ie||"0"):E.isHorizontal()?(me=fe,Ie="0"):(Ie=fe,me="0"),me=me.indexOf("%")>=0?parseInt(me,10)*ue*be+"%":me*ue*be+"px",Ie=Ie.indexOf("%")>=0?parseInt(Ie,10)*ue+"%":Ie*ue+"px",ke!=null){const De=ke-(ke-1)*(1-Math.abs(ue));oe.style.opacity=De}let Pe=`translate3d(${me}, ${Ie}, 0px)`;Oe!=null&&(Pe+=` scale(${Oe-(Oe-1)*(1-Math.abs(ue))})`),Ve&&Ve!=null&&(Pe+=` rotate(${Ve*ue*-1}deg)`),oe.style.transform=Pe},ae=()=>{const{el:oe,slides:ue,progress:ve,snapGrid:be,isElement:fe}=E,me=hn(oe,Y);E.isElement&&me.push(...hn(E.hostEl,Y)),me.forEach(Ie=>{W(Ie,ve)}),ue.forEach((Ie,Oe)=>{let ke=Ie.progress;E.params.slidesPerGroup>1&&E.params.slidesPerView!=="auto"&&(ke+=Math.ceil(Oe/2)-ve*(be.length-1)),ke=Math.min(Math.max(ke,-1),1),Ie.querySelectorAll(`${Y}, [data-swiper-parallax-rotate]`).forEach(Ve=>{W(Ve,ke)})})};O("beforeInit",()=>{E.params.parallax.enabled&&(E.params.watchSlidesProgress=!0,E.originalParams.watchSlidesProgress=!0)}),O("init",()=>{E.params.parallax.enabled&&ae()}),O("setTranslate",()=>{E.params.parallax.enabled&&ae()}),O("setTransition",(oe,ue)=>{E.params.parallax.enabled&&(function(ve){ve===void 0&&(ve=E.params.speed);const{el:be,hostEl:fe}=E,me=[...be.querySelectorAll(Y)];E.isElement&&me.push(...fe.querySelectorAll(Y)),me.forEach(Ie=>{let Oe=parseInt(Ie.getAttribute("data-swiper-parallax-duration"),10)||ve;ve===0&&(Oe=0),Ie.style.transitionDuration=`${Oe}ms`})})(ue)})},function(I){let{swiper:E,extendParams:k,on:O,emit:Y}=I;const W=sn();k({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),E.zoom={enabled:!1};let ae,oe,ue=1,ve=!1;const be=[],fe={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},me={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},Ie={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let Oe=1;
112function ke(){if(be.length<2)return 1;const Ze=be[0].pageX,st=be[0].pageY,lt=be[1].pageX,Tt=be[1].pageY;return Math.sqrt((lt-Ze)**2+(Tt-st)**2)}function Ve(Ze){const st=E.isElement?"swiper-slide":`.${E.params.slideClass}`;return!!Ze.target.matches(st)||E.slides.filter(lt=>lt.contains(Ze.target)).length>0}function Pe(Ze){if(Ze.pointerType==="mouse"&&be.splice(0,be.length),!Ve(Ze))return;const st=E.params.zoom;if(ae=!1,oe=!1,be.push(Ze),!(be.length<2)){if(ae=!0,fe.scaleStart=ke(),!fe.slideEl){fe.slideEl=Ze.target.closest(`.${E.params.slideClass}, swiper-slide`),fe.slideEl||(fe.slideEl=E.slides[E.activeIndex]);let lt=fe.slideEl.querySelector(`.${st.containerClass}`);if(lt&&(lt=lt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),fe.imageEl=lt,fe.imageWrapEl=lt?qi(fe.imageEl,`.${st.containerClass}`)[0]:void 0,!fe.imageWrapEl)return void(fe.imageEl=void 0);fe.maxRatio=fe.imageWrapEl.getAttribute("data-swiper-zoom")||st.maxRatio}if(fe.imageEl){const[lt,Tt]=(function(){if(be.length<2)return{x:null,y:null};const Ct=fe.imageEl.getBoundingClientRect();return[(be[0].pageX+(be[1].pageX-be[0].pageX)/2-Ct.x-W.scrollX)/ue,(be[0].pageY+(be[1].pageY-be[0].pageY)/2-Ct.y-W.scrollY)/ue]})();fe.originX=lt,fe.originY=Tt,fe.imageEl.style.transitionDuration="0ms"}ve=!0}}function De(Ze){if(!Ve(Ze))return;const st=E.params.zoom,lt=E.zoom,Tt=be.findIndex(Ct=>Ct.pointerId===Ze.pointerId);Tt>=0&&(be[Tt]=Ze),be.length<2||(oe=!0,fe.scaleMove=ke(),fe.imageEl&&(lt.scale=fe.scaleMove/fe.scaleStart*ue,lt.scale>fe.maxRatio&&(lt.scale=fe.maxRatio-1+(lt.scale-fe.maxRatio+1)**.5),lt.scale<st.minRatio&&(lt.scale=st.minRatio+1-(st.minRatio-lt.scale+1)**.5),fe.imageEl.style.transform=`translate3d(0,0,0) scale(${lt.scale})`))}function Fe(Ze){if(!Ve(Ze)||Ze.pointerType==="mouse"&&Ze.type==="pointerout")return;const st=E.params.zoom,lt=E.zoom,Tt=be.findIndex(Ct=>Ct.pointerId===Ze.pointerId);Tt>=0&&be.splice(Tt,1),ae&&oe&&(ae=!1,oe=!1,fe.imageEl&&(lt.scale=Math.max(Math.min(lt.scale,fe.maxRatio),st.minRatio),fe.imageEl.style.transitionDuration=`${E.params.speed}ms`,fe.imageEl.style.transform=`translate3d(0,0,0) scale(${lt.scale})`,ue=lt.scale,ve=!1,lt.scale>1&&fe.slideEl?fe.slideEl.classList.add(`${st.zoomedSlideClass}`):lt.scale<=1&&fe.slideEl&&fe.slideEl.classList.remove(`${st.zoomedSlideClass}`),lt.scale===1&&(fe.originX=0,fe.originY=0,fe.slideEl=void 0)))}function Xe(Ze){if(!Ve(Ze)||!(function(Lt){const zt=`.${E.params.zoom.containerClass}`;return!!Lt.target.matches(zt)||[...E.hostEl.querySelectorAll(zt)].filter(pr=>pr.contains(Lt.target)).length>0})(Ze))return;const st=E.zoom;if(!fe.imageEl||!me.isTouched||!fe.slideEl)return;me.isMoved||(me.width=fe.imageEl.offsetWidth,me.height=fe.imageEl.offsetHeight,me.startX=no(fe.imageWrapEl,"x")||0,me.startY=no(fe.imageWrapEl,"y")||0,fe.slideWidth=fe.slideEl.offsetWidth,fe.slideHeight=fe.slideEl.offsetHeight,fe.imageWrapEl.style.transitionDuration="0ms");const lt=me.width*st.scale,Tt=me.height*st.scale;if(lt<fe.slideWidth&&Tt<fe.slideHeight)return;if(me.minX=Math.min(fe.slideWidth/2-lt/2,0),me.maxX=-me.minX,me.minY=Math.min(fe.slideHeight/2-Tt/2,0),me.maxY=-me.minY,me.touchesCurrent.x=be.length>0?be[0].pageX:Ze.pageX,me.touchesCurrent.y=be.length>0?be[0].pageY:Ze.pageY,Math.max(Math.abs(me.touchesCurrent.x-me.touchesStart.x),Math.abs(me.touchesCurrent.y-me.touchesStart.y))>5&&(E.allowClick=!1),!me.isMoved&&!ve&&(E.isHorizontal()&&(Math.floor(me.minX)===Math.floor(me.startX)&&me.touchesCurrent.x<me.touchesStart.x||Math.floor(me.maxX)===Math.floor(me.startX)&&me.touchesCurrent.x>me.touchesStart.x)||!E.isHorizontal()&&(Math.floor(me.minY)===Math.floor(me.startY)&&me.touchesCurrent.y<me.touchesStart.y||Math.floor(me.maxY)===Math.floor(me.startY)&&me.touchesCurrent.y>me.touchesStart.y)))return void(me.isTouched=!1);Ze.cancelable&&Ze.preventDefault(),Ze.stopPropagation(),me.isMoved=!0;const Ct=(st.scale-ue)/(fe.maxRatio-E.params.zoom.minRatio),{originX:Gt,originY:kt}=fe;me.currentX=me.touchesCurrent.x-me.touchesStart.x+me.startX+Ct*(me.width-2*Gt),me.currentY=me.touchesCurrent.y-me.touchesStart.y+me.startY+Ct*(me.height-2*kt),me.currentX<me.minX&&(me.currentX=me.minX+1-(me.minX-me.currentX+1)**.8),me.currentX>me.maxX&&(me.currentX=me.maxX-1+(me.currentX-me.maxX+1)**.8),me.currentY<me.minY&&(me.currentY=me.minY+1-(me.minY-me.currentY+1)**.8),me.currentY>me.maxY&&(me.currentY=me.maxY-1+(me.currentY-me.maxY+1)**.8),Ie.prevPositionX||(Ie.prevPositionX=me.touchesCurrent.x),Ie.prevPositionY||(Ie.prevPositionY=me.touchesCurrent.y),Ie.prevTime||(Ie.prevTime=Date.now()),Ie.x=(me.touchesCurrent.x-Ie.prevPositionX)/(Date.now()-Ie.prevTime)/2,Ie.y=(me.touchesCurrent.y-Ie.prevPositionY)/(Date.now()-Ie.prevTime)/2,Math.abs(me.touchesCurrent.x-Ie.prevPositionX)<2&&(Ie.x=0),Math.abs(me.touchesCurrent.y-Ie.prevPositionY)<2&&(Ie.y=0),Ie.prevPositionX=me.touchesCurrent.x,Ie.prevPositionY=me.touchesCurrent.y,Ie.prevTime=Date.now(),fe.imageWrapEl.style.transform=`translate3d(${me.currentX}px, ${me.currentY}px,0)`}function ut(){const Ze=E.zoom;fe.slideEl&&E.activeIndex!==E.slides.indexOf(fe.slideEl)&&(fe.imageEl&&(fe.imageEl.style.transform="translate3d(0,
1120,0) scale(1)"),fe.imageWrapEl&&(fe.imageWrapEl.style.transform="translate3d(0,0,0)"),fe.slideEl.classList.remove(`${E.params.zoom.zoomedSlideClass}`),Ze.scale=1,ue=1,fe.slideEl=void 0,fe.imageEl=void 0,fe.imageWrapEl=void 0,fe.originX=0,fe.originY=0)}function ot(Ze){const st=E.zoom,lt=E.params.zoom;if(!fe.slideEl){Ze&&Ze.target&&(fe.slideEl=Ze.target.closest(`.${E.params.slideClass}, swiper-slide`)),fe.slideEl||(E.params.virtual&&E.params.virtual.enabled&&E.virtual?fe.slideEl=hn(E.slidesEl,`.${E.params.slideActiveClass}`)[0]:fe.slideEl=E.slides[E.activeIndex]);let qn=fe.slideEl.querySelector(`.${lt.containerClass}`);qn&&(qn=qn.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),fe.imageEl=qn,fe.imageWrapEl=qn?qi(fe.imageEl,`.${lt.containerClass}`)[0]:void 0}if(!fe.imageEl||!fe.imageWrapEl)return;let Tt,Ct,Gt,kt,Lt,zt,pr,Cr,Nr,ln,jn,on,$n,bn,Vn,Pr,ir,Bn;E.params.cssMode&&(E.wrapperEl.style.overflow="hidden",E.wrapperEl.style.touchAction="none"),fe.slideEl.classList.add(`${lt.zoomedSlideClass}`),me.touchesStart.x===void 0&&Ze?(Tt=Ze.pageX,Ct=Ze.pageY):(Tt=me.touchesStart.x,Ct=me.touchesStart.y);const cn=typeof Ze=="number"?Ze:null;ue===1&&cn&&(Tt=void 0,Ct=void 0),st.scale=cn||fe.imageWrapEl.getAttribute("data-swiper-zoom")||lt.maxRatio,ue=cn||fe.imageWrapEl.getAttribute("data-swiper-zoom")||lt.maxRatio,!Ze||ue===1&&cn?(pr=0,Cr=0):(ir=fe.slideEl.offsetWidth,Bn=fe.slideEl.offsetHeight,Gt=Xo(fe.slideEl).left+W.scrollX,kt=Xo(fe.slideEl).top+W.scrollY,Lt=Gt+ir/2-Tt,zt=kt+Bn/2-Ct,Nr=fe.imageEl.offsetWidth,ln=fe.imageEl.offsetHeight,jn=Nr*st.scale,on=ln*st.scale,$n=Math.min(ir/2-jn/2,0),bn=Math.min(Bn/2-on/2,0),Vn=-$n,Pr=-bn,pr=Lt*st.scale,Cr=zt*st.scale,pr<$n&&(pr=$n),pr>Vn&&(pr=Vn),Cr<bn&&(Cr=bn),Cr>Pr&&(Cr=Pr)),cn&&st.scale===1&&(fe.originX=0,fe.originY=0),fe.imageWrapEl.style.transitionDuration="300ms",fe.imageWrapEl.style.transform=`translate3d(${pr}px, ${Cr}px,0)`,fe.imageEl.style.transitionDuration="300ms",fe.imageEl.style.transform=`translate3d(0,0,0) scale(${st.scale})`}function ct(){const Ze=E.zoom,st=E.params.zoom;if(!fe.slideEl){E.params.virtual&&E.params.virtual.enabled&&E.virtual?fe.slideEl=hn(E.slidesEl,`.${E.params.slideActiveClass}`)[0]:fe.slideEl=E.slides[E.activeIndex];let lt=fe.slideEl.querySelector(`.${st.containerClass}`);lt&&(lt=lt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),fe.imageEl=lt,fe.imageWrapEl=lt?qi(fe.imageEl,`.${st.containerClass}`)[0]:void 0}fe.imageEl&&fe.imageWrapEl&&(E.params.cssMode&&(E.wrapperEl.style.overflow="",E.wrapperEl.style.touchAction=""),Ze.scale=1,ue=1,fe.imageWrapEl.style.transitionDuration="300ms",fe.imageWrapEl.style.transform="translate3d(0,0,0)",fe.imageEl.style.transitionDuration="300ms",fe.imageEl.style.transform="translate3d(0,0,0) scale(1)",fe.slideEl.classList.remove(`${st.zoomedSlideClass}`),fe.slideEl=void 0,fe.originX=0,fe.originY=0)}function at(Ze){const st=E.zoom;st.scale&&st.scale!==1?ct():ot(Ze)}function ft(){return{passiveListener:!!E.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!E.params.passiveListeners||{passive:!1,capture:!0}}}function it(){const Ze=E.zoom;if(Ze.enabled)return;Ze.enabled=!0;const{passiveListener:st,activeListenerWithCapture:lt}=ft();E.wrapperEl.addEventListener("pointerdown",Pe,st),E.wrapperEl.addEventListener("pointermove",De,lt),["pointerup","pointercancel","pointerout"].forEach(Tt=>{E.wrapperEl.addEventListener(Tt,Fe,st)}),E.wrapperEl.addEventListener("pointermove",Xe,lt)}function Je(){const Ze=E.zoom;if(!Ze.enabled)return;Ze.enabled=!1;const{passiveListener:st,activeListenerWithCapture:lt}=ft();E.wrapperEl.removeEventListener("pointerdown",Pe,st),E.wrapperEl.removeEventListener("pointermove",De,lt),["pointerup","pointercancel","pointerout"].forEach(Tt=>{E.wrapperEl.removeEventListener(Tt,Fe,st)}),E.wrapperEl.removeEventListener("pointermove",Xe,lt)}Object.defineProperty(E.zoom,"scale",{get:()=>Oe,set(Ze){if(Oe!==Ze){const st=fe.imageEl,lt=fe.slideEl;Y("zoomChange",Ze,st,lt)}Oe=Ze}}),O("init",()=>{E.params.zoom.enabled&&it()}),O("destroy",()=>{Je()}),O("touchStart",(Ze,st)=>{E.zoom.enabled&&(function(lt){const Tt=E.device;if(!fe.imageEl||me.isTouched)return;Tt.android&&lt.cancelable&&lt.preventDefault(),me.isTouched=!0;const Ct=be.length>0?be[0]:lt;me.touchesStart.x=Ct.pageX,me.touchesStart.y=Ct.pageY})(st)}),O("touchEnd",(Ze,st)=>{E.zoom.enabled&&(function(){const lt=E.zoom;if(!fe.imageEl)return;if(!me.isTouched||!me.isMoved)return me.isTouched=!1,void(me.isMoved=!1);me.isTouched=!1,me.isMoved=!1;let Tt=300,Ct=300;const Gt=Ie.x*Tt,kt=me.currentX+Gt,Lt=Ie.y*Ct,zt=me.currentY+Lt;Ie.x!==0&&(Tt=Math.abs((kt-me.currentX)/Ie.x)),Ie.y!==0&&(Ct=Math.abs((zt-me.currentY)/Ie.y));const pr=Math.max(Tt,Ct);me.currentX=kt,me.currentY=zt;const Cr=me.width*lt.scale,Nr=me.height*lt.scale;me.minX=Math.min(fe.slideWidth/2-Cr/2,0),me.maxX=-me.minX,me.minY=Math.min(fe.slideHeight/2-Nr/2,0),me.maxY=-me.minY,me.currentX=Math.max(Math.min(me.currentX,me.maxX),me.minX),me.currentY=Math.max(Math.min(me.currentY,me.maxY),me.minY),fe.imageWrapEl.style.transitionDuration=`${pr}ms`,fe.imageWrapEl.style.transform=`translate3d(${me.currentX}px, ${me.currentY}px,0)`})()}),O("doubleTap",(Ze,st)=>{!E.animating&&E.params.zoom.enabled&&E.zoom.enabled&&E.params.zoom.toggle&&at(st)}),O("transitionEnd",()=>{E.zoom.enabled&&E.params.zoom.enabled&&ut()}),O("slideChange",()=>{E.zoom.enabled&&E.params.zoom.enabled&&E.params.cssMode&&ut()}),Object.assign(E.zoom,{enable:it,disable:Je,in:ot,out:ct,toggle:at})},function(I){let{swiper:E,extendParams:k,on:O}=I;function Y(ae,oe){const ue=(function(){let fe,me,Ie;return(Oe,ke)=>{for(me=-1,fe=Oe.length;fe-me>1;)Ie=fe+me>>1,Oe[Ie]<=ke?me=Ie:fe=Ie;return fe}})();let ve,be;return this.x=ae,this.y=oe,this.lastIndex=ae.length-1,this.interpolate=function(fe){return fe?(be=ue(this.x,fe),ve=be-1,(fe-this.x[ve])*(this.y[be]-this.y[ve])/(this.x[be]-this.x[ve])+this.y[ve]):0},this}function W(){E.controller.control&&E.controller.spline&&(E.controller.spline=void 0,delete E.controller.spline)}k({controller:{control:void 0,inverse:!1,by:"slide"}}),E.controller={control:void 0},O("beforeInit",()=>{if(typeof window<"u"&&(typeof E.params.controller.control=="string"||E.params.controller.control instanceof HTMLElement)){const ae=document.querySelector(E.params.controller.control);if(ae&&ae.swiper)E.controller.control=ae.swiper;else if(ae){const oe=ue=>{E.controller.control=ue.detail[0],E.update(),ae.removeEventListener("init",oe)};ae.addEventListener("init",oe)}}else E.controller.control=E.params.controller.control}),O("update",()=>{W()}),O("resize",()=>{W()}),O("observerUpdate",()=>{W()}),O("setTranslate",(ae,oe,ue)=>{E.controller.control&&!E.controller.control.destroyed&&E.controller.setTranslate(oe,ue)}),O("setTransition",(ae,oe,ue)=>{E.controller.control&&!E.controller.control.destroyed&&E.controller.setTransition(oe,ue)}),Object.assign(E.controller,{setTranslate:function(ae,oe){const ue=E.controller.control;let ve,be;const fe=E.constructor;function me(Ie){if(Ie.destroyed)return;const Oe=E.rtlTranslate?-E.translate:E.translate;var ke;E.params.controller.by==="slide"&&(ke=Ie,E.controller.spline=E.params.loop?new Y(E.slidesGrid,ke.slidesGrid):new Y(E.snapGrid,ke.snapGrid),be=-E.controller.spline.interpolate(-Oe)),be&&E.params.controller.by!=="container"||(ve=(Ie.maxTranslate()-Ie.minTranslate())/(E.maxTranslate()-E.minTranslate()),!Number.isNaN(ve)&&Number.isFinite(ve)||(ve=1),be=(Oe-E.minTranslate())*ve+Ie.minTranslate()),E.params.controller.inverse&&(be=Ie.maxTranslate()-be),Ie.updateProgress(be),Ie.setTranslate(be,E),Ie.updateActiveIndex(),Ie.updateSlidesClasses()}if(Array.isArray(ue))for(let Ie=0;Ie<ue.length;Ie+=1)ue[Ie]!==oe&&ue[Ie]instanceof fe&&me(ue[Ie]);else ue instanceof fe&&oe!==ue&&me(ue)},setTransition:function(ae,oe){const ue=E.constructor,ve=E.controller.control;let be;function fe(me){me.destroyed||(me.setTransition(ae,E),ae!==0&&(me.transitionStart(),me.params.autoHeight&&gi(()=>{me.updateAutoHeight()}),_i(me.wrapperEl,()=>{ve&&me.transitionEnd()})))}if(Array.isArray(ve))for(be=0;be<ve.length;be+=1)ve[be]!==oe&&ve[be]instanceof ue&&fe(ve[be]);else ve instanceof ue&&oe!==ve&&fe(ve)}})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),E.a11y={clicked:!1};let Y=null;function W(ot){const ct=Y;ct.length!==0&&(ct.innerHTML="",ct.innerHTML=ot)}const ae=ot=>(Array.isArray(ot)?ot:[ot]).filter(ct=>!!ct);
112function oe(ot){(ot=ae(ot)).forEach(ct=>{ct.setAttribute("tabIndex","0")})}function ue(ot){(ot=ae(ot)).forEach(ct=>{ct.setAttribute("tabIndex","-1")})}function ve(ot,ct){(ot=ae(ot)).forEach(at=>{at.setAttribute("role",ct)})}function be(ot,ct){(ot=ae(ot)).forEach(at=>{at.setAttribute("aria-roledescription",ct)})}function fe(ot,ct){(ot=ae(ot)).forEach(at=>{at.setAttribute("aria-label",ct)})}function me(ot){(ot=ae(ot)).forEach(ct=>{ct.setAttribute("aria-disabled",!0)})}function Ie(ot){(ot=ae(ot)).forEach(ct=>{ct.setAttribute("aria-disabled",!1)})}function Oe(ot){if(ot.keyCode!==13&&ot.keyCode!==32)return;const ct=E.params.a11y,at=ot.target;E.pagination&&E.pagination.el&&(at===E.pagination.el||E.pagination.el.contains(ot.target))&&!ot.target.matches(Po(E.params.pagination.bulletClass))||(E.navigation&&E.navigation.nextEl&&at===E.navigation.nextEl&&(E.isEnd&&!E.params.loop||E.slideNext(),E.isEnd?W(ct.lastSlideMessage):W(ct.nextSlideMessage)),E.navigation&&E.navigation.prevEl&&at===E.navigation.prevEl&&(E.isBeginning&&!E.params.loop||E.slidePrev(),E.isBeginning?W(ct.firstSlideMessage):W(ct.prevSlideMessage)),E.pagination&&at.matches(Po(E.params.pagination.bulletClass))&&at.click())}function ke(){return E.pagination&&E.pagination.bullets&&E.pagination.bullets.length}function Ve(){return ke()&&E.params.pagination.clickable}const Pe=(ot,ct,at)=>{var ft;oe(ot),ot.tagName!=="BUTTON"&&(ve(ot,"button"),ot.addEventListener("keydown",Oe)),fe(ot,at),ft=ct,ae(ot).forEach(it=>{it.setAttribute("aria-controls",ft)})},De=()=>{E.a11y.clicked=!0},Fe=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{E.destroyed||(E.a11y.clicked=!1)})})},Xe=ot=>{if(E.a11y.clicked)return;const ct=ot.target.closest(`.${E.params.slideClass}, swiper-slide`);if(!ct||!E.slides.includes(ct))return;const at=E.slides.indexOf(ct)===E.activeIndex,ft=E.params.watchSlidesProgress&&E.visibleSlides&&E.visibleSlides.includes(ct);at||ft||ot.sourceCapabilities&&ot.sourceCapabilities.firesTouchEvents||(E.isHorizontal()?E.el.scrollLeft=0:E.el.scrollTop=0,E.slideTo(E.slides.indexOf(ct),0))},ut=()=>{const ot=E.params.a11y;ot.itemRoleDescriptionMessage&&be(E.slides,ot.itemRoleDescriptionMessage),ot.slideRole&&ve(E.slides,ot.slideRole);const ct=E.slides.length;ot.slideLabelMessage&&E.slides.forEach((at,ft)=>{const it=E.params.loop?parseInt(at.getAttribute("data-swiper-slide-index"),10):ft;fe(at,ot.slideLabelMessage.replace(/\{\{index\}\}/,it+1).replace(/\{\{slidesLength\}\}/,ct))})};O("beforeInit",()=>{Y=ei("span",E.params.a11y.notificationClass),Y.setAttribute("aria-live","assertive"),Y.setAttribute("aria-atomic","true")}),O("afterInit",()=>{E.params.a11y.enabled&&(()=>{const ot=E.params.a11y;E.el.append(Y);const ct=E.el;ot.containerRoleDescriptionMessage&&be(ct,ot.containerRoleDescriptionMessage),ot.containerMessage&&fe(ct,ot.containerMessage);const at=E.wrapperEl,ft=ot.id||at.getAttribute("id")||`swiper-wrapper-${it=16,it===void 0&&(it=16),"x".repeat(it).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var it;const Je=E.params.autoplay&&E.params.autoplay.enabled?"off":"polite";var Ze,st;Ze=ft,ae(at).forEach(Ct=>{Ct.setAttribute("id",Ze)}),st=Je,ae(at).forEach(Ct=>{Ct.setAttribute("aria-live",st)}),ut();let{nextEl:lt,prevEl:Tt}=E.navigation?E.navigation:{};lt=ae(lt),Tt=ae(Tt),lt&&lt.forEach(Ct=>Pe(Ct,ft,ot.nextSlideMessage)),Tt&&Tt.forEach(Ct=>Pe(Ct,ft,ot.prevSlideMessage)),Ve()&&ae(E.pagination.el).forEach(Ct=>{Ct.addEventListener("keydown",Oe)}),E.el.addEventListener("focus",Xe,!0),E.el.addEventListener("pointerdown",De,!0),E.el.addEventListener("pointerup",Fe,!0)})()}),O("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{E.params.a11y.enabled&&ut()}),O("fromEdge toEdge afterInit lock unlock",()=>{E.params.a11y.enabled&&(function(){if(E.params.loop||E.params.rewind||!E.navigation)return;const{nextEl:ot,prevEl:ct}=E.navigation;ct&&(E.isBeginning?(me(ct),ue(ct)):(Ie(ct),oe(ct))),ot&&(E.isEnd?(me(ot),ue(ot)):(Ie(ot),oe(ot)))})()}),O("paginationUpdate",()=>{E.params.a11y.enabled&&(function(){const ot=E.params.a11y;
112ke()&&E.pagination.bullets.forEach(ct=>{E.params.pagination.clickable&&(oe(ct),E.params.pagination.renderBullet||(ve(ct,"button"),fe(ct,ot.paginationBulletMessage.replace(/\{\{index\}\}/,Gi(ct)+1)))),ct.matches(Po(E.params.pagination.bulletActiveClass))?ct.setAttribute("aria-current","true"):ct.removeAttribute("aria-current")})})()}),O("destroy",()=>{E.params.a11y.enabled&&(function(){Y&&Y.remove();let{nextEl:ot,prevEl:ct}=E.navigation?E.navigation:{};ot=ae(ot),ct=ae(ct),ot&&ot.forEach(at=>at.removeEventListener("keydown",Oe)),ct&&ct.forEach(at=>at.removeEventListener("keydown",Oe)),Ve()&&ae(E.pagination.el).forEach(at=>{at.removeEventListener("keydown",Oe)}),E.el.removeEventListener("focus",Xe,!0),E.el.removeEventListener("pointerdown",De,!0),E.el.removeEventListener("pointerup",Fe,!0)})()})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let Y=!1,W={};const ae=fe=>fe.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),oe=fe=>{const me=sn();let Ie;Ie=fe?new URL(fe):me.location;const Oe=Ie.pathname.slice(1).split("/").filter(Ve=>Ve!==""),ke=Oe.length;return{key:Oe[ke-2],value:Oe[ke-1]}},ue=(fe,me)=>{const Ie=sn();if(!Y||!E.params.history.enabled)return;let Oe;Oe=E.params.url?new URL(E.params.url):Ie.location;const ke=E.slides[me];let Ve=ae(ke.getAttribute("data-history"));if(E.params.history.root.length>0){let De=E.params.history.root;De[De.length-1]==="/"&&(De=De.slice(0,De.length-1)),Ve=`${De}/${fe?`${fe}/`:""}${Ve}`}else Oe.pathname.includes(fe)||(Ve=`${fe?`${fe}/`:""}${Ve}`);E.params.history.keepQuery&&(Ve+=Oe.search);const Pe=Ie.history.state;Pe&&Pe.value===Ve||(E.params.history.replaceState?Ie.history.replaceState({value:Ve},null,Ve):Ie.history.pushState({value:Ve},null,Ve))},ve=(fe,me,Ie)=>{if(me)for(let Oe=0,ke=E.slides.length;Oe<ke;Oe+=1){const Ve=E.slides[Oe];if(ae(Ve.getAttribute("data-history"))===me){const Pe=E.getSlideIndex(Ve);E.slideTo(Pe,fe,Ie)}}else E.slideTo(0,fe,Ie)},be=()=>{W=oe(E.params.url),ve(E.params.speed,W.value,!1)};O("init",()=>{E.params.history.enabled&&(()=>{const fe=sn();if(E.params.history){if(!fe.history||!fe.history.pushState)return E.params.history.enabled=!1,void(E.params.hashNavigation.enabled=!0);Y=!0,W=oe(E.params.url),(W.key||W.value)&&ve(0,W.value,E.params.runCallbacksOnInit),E.params.history.replaceState||fe.addEventListener("popstate",be)}})()}),O("destroy",()=>{E.params.history.enabled&&(()=>{const fe=sn();E.params.history.replaceState||fe.removeEventListener("popstate",be)})()}),O("transitionEnd _freeModeNoMomentumRelease",()=>{Y&&ue(E.params.history.key,E.activeIndex)}),O("slideChange",()=>{Y&&E.params.cssMode&&ue(E.params.history.key,E.activeIndex)})},function(I){let{swiper:E,extendParams:k,emit:O,on:Y}=I,W=!1;const ae=An(),oe=sn();k({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(be,fe){if(E.virtual&&E.params.virtual.enabled){const me=E.slides.filter(Ie=>Ie.getAttribute("data-hash")===fe)[0];return me?parseInt(me.getAttribute("data-swiper-slide-index"),10):0}return E.getSlideIndex(hn(E.slidesEl,`.${E.params.slideClass}[data-hash="${fe}"], swiper-slide[data-hash="${fe}"]`)[0])}}});const ue=()=>{O("hashChange");const be=ae.location.hash.replace("#",""),fe=E.virtual&&E.params.virtual.enabled?E.slidesEl.querySelector(`[data-swiper-slide-index="${E.activeIndex}"]`):E.slides[E.activeIndex];if(be!==(fe?fe.getAttribute("data-hash"):"")){const me=E.params.hashNavigation.getSlideIndex(E,be);if(me===void 0||Number.isNaN(me))return;E.slideTo(me)}},ve=()=>{if(!W||!E.params.hashNavigation.enabled)return;const be=E.virtual&&E.params.virtual.enabled?E.slidesEl.querySelector(`[data-swiper-slide-index="${E.activeIndex}"]`):E.slides[E.activeIndex],fe=be?be.getAttribute("data-hash")||be.getAttribute("data-history"):"";E.params.hashNavigation.replaceState&&oe.history&&oe.history.replaceState?(oe.history.replaceState(null,null,`#${fe}`||""),O("hashSet")):(ae.location.hash=fe||"",O("hashSet"))};Y("init",()=>{E.params.hashNavigation.enabled&&(()=>{if(!E.params.hashNavigation.enabled||E.params.history&&E.params.history.enabled)return;W=!0;const be=ae.location.hash.replace("#","");if(be){const me=E.params.hashNavigation.getSlideIndex(E,be);E.slideTo(me||0,0,E.params.runCallbacksOnInit,!0)}E.params.hashNavigation.watchState&&oe.addEventListener("hashchange",ue)})()}),Y("destroy",()=>{E.params.hashNavigation.enabled&&E.params.hashNavigation.watchState&&oe.removeEventListener("hashchange",ue)}),Y("transitionEnd _freeModeNoMomentumRelease",()=>{W&&ve()}),Y("slideChange",()=>{W&&E.params.cssMode&&ve()})},function(I){let E,k,{swiper:O,extendParams:Y,on:W,emit:ae,params:oe}=I;O.autoplay={running:!1,paused:!1,timeLeft:0},Y({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let ue,ve,be,fe,me,Ie,Oe,ke,Ve=oe&&oe.autoplay?oe.autoplay.delay:3e3,Pe=oe&&oe.autoplay?oe.autoplay.delay:3e3,De=new Date().getTime();function Fe(st){O&&!O.destroyed&&O.wrapperEl&&st.target===O.wrapperEl&&(O.wrapperEl.removeEventListener("transitionend",Fe),ke||ft())}const Xe=()=>{if(O.destroyed||!O.autoplay.running)return;O.autoplay.paused?ve=!0:ve&&(Pe=ue,ve=!1);const st=O.autoplay.paused?ue:De+Pe-new Date().getTime();O.autoplay.timeLeft=st,ae("autoplayTimeLeft",st,st/Ve),k=requestAnimationFrame(()=>{Xe()})},ut=st=>{if(O.destroyed||!O.autoplay.running)return;cancelAnimationFrame(k),Xe();let lt=st===void 0?O.params.autoplay.delay:st;Ve=O.params.autoplay.delay,Pe=O.params.autoplay.delay;const Tt=(()=>{let kt;if(kt=O.virtual&&O.params.virtual.enabled?O.slides.filter(Lt=>Lt.classList.contains("swiper-slide-active"))[0]:O.slides[O.activeIndex],kt)return parseInt(kt.getAttribute("data-swiper-autoplay"),
11210)})();!Number.isNaN(Tt)&&Tt>0&&st===void 0&&(lt=Tt,Ve=Tt,Pe=Tt),ue=lt;const Ct=O.params.speed,Gt=()=>{O&&!O.destroyed&&(O.params.autoplay.reverseDirection?!O.isBeginning||O.params.loop||O.params.rewind?(O.slidePrev(Ct,!0,!0),ae("autoplay")):O.params.autoplay.stopOnLastSlide||(O.slideTo(O.slides.length-1,Ct,!0,!0),ae("autoplay")):!O.isEnd||O.params.loop||O.params.rewind?(O.slideNext(Ct,!0,!0),ae("autoplay")):O.params.autoplay.stopOnLastSlide||(O.slideTo(0,Ct,!0,!0),ae("autoplay")),O.params.cssMode&&(De=new Date().getTime(),requestAnimationFrame(()=>{ut()})))};return lt>0?(clearTimeout(E),E=setTimeout(()=>{Gt()},lt)):requestAnimationFrame(()=>{Gt()}),lt},ot=()=>{De=new Date().getTime(),O.autoplay.running=!0,ut(),ae("autoplayStart")},ct=()=>{O.autoplay.running=!1,clearTimeout(E),cancelAnimationFrame(k),ae("autoplayStop")},at=(st,lt)=>{if(O.destroyed||!O.autoplay.running)return;clearTimeout(E),st||(Oe=!0);const Tt=()=>{ae("autoplayPause"),O.params.autoplay.waitForTransition?O.wrapperEl.addEventListener("transitionend",Fe):ft()};if(O.autoplay.paused=!0,lt)return Ie&&(ue=O.params.autoplay.delay),Ie=!1,void Tt();ue=(ue||O.params.autoplay.delay)-(new Date().getTime()-De),O.isEnd&&ue<0&&!O.params.loop||(ue<0&&(ue=0),Tt())},ft=()=>{O.isEnd&&ue<0&&!O.params.loop||O.destroyed||!O.autoplay.running||(De=new Date().getTime(),Oe?(Oe=!1,ut(ue)):ut(),O.autoplay.paused=!1,ae("autoplayResume"))},it=()=>{if(O.destroyed||!O.autoplay.running)return;const st=An();st.visibilityState==="hidden"&&(Oe=!0,at(!0)),st.visibilityState==="visible"&&ft()},Je=st=>{st.pointerType==="mouse"&&(Oe=!0,ke=!0,O.animating||O.autoplay.paused||at(!0))},Ze=st=>{st.pointerType==="mouse"&&(ke=!1,O.autoplay.paused&&ft())};W("init",()=>{O.params.autoplay.enabled&&(O.params.autoplay.pauseOnMouseEnter&&(O.el.addEventListener("pointerenter",Je),O.el.addEventListener("pointerleave",Ze)),An().addEventListener("visibilitychange",it),ot())}),W("destroy",()=>{O.el.removeEventListener("pointerenter",Je),O.el.removeEventListener("pointerleave",Ze),An().removeEventListener("visibilitychange",it),O.autoplay.running&&ct()}),W("_freeModeStaticRelease",()=>{(fe||Oe)&&ft()}),W("_freeModeNoMomentumRelease",()=>{O.params.autoplay.disableOnInteraction?ct():at(!0,!0)}),W("beforeTransitionStart",(st,lt,Tt)=>{!O.destroyed&&O.autoplay.running&&(Tt||!O.params.autoplay.disableOnInteraction?at(!0,!0):ct())}),W("sliderFirstMove",()=>{!O.destroyed&&O.autoplay.running&&(O.params.autoplay.disableOnInteraction?ct():(be=!0,fe=!1,Oe=!1,me=setTimeout(()=>{Oe=!0,fe=!0,at(!0)},200)))}),W("touchEnd",()=>{if(!O.destroyed&&O.autoplay.running&&be){if(clearTimeout(me),clearTimeout(E),O.params.autoplay.disableOnInteraction)return fe=!1,void(be=!1);fe&&O.params.cssMode&&ft(),fe=!1,be=!1}}),W("slideChange",()=>{!O.destroyed&&O.autoplay.running&&(Ie=!0)}),Object.assign(O.autoplay,{start:ot,stop:ct,pause:at,resume:ft})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let Y=!1,W=!1;function ae(){const ve=E.thumbs.swiper;if(!ve||ve.destroyed)return;const be=ve.clickedIndex,fe=ve.clickedSlide;if(fe&&fe.classList.contains(E.params.thumbs.slideThumbActiveClass)||be==null)return;let me;me=ve.params.loop?parseInt(ve.clickedSlide.getAttribute("data-swiper-slide-index"),10):be,E.params.loop?E.slideToLoop(me):E.slideTo(me)}function oe(){const{thumbs:ve}=E.params;if(Y)return!1;Y=!0;const be=E.constructor;if(ve.swiper instanceof be)E.thumbs.swiper=ve.swiper,Object.assign(E.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(E.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),E.thumbs.swiper.update();else if(Ci(ve.swiper)){const fe=Object.assign({},ve.swiper);Object.assign(fe,{watchSlidesProgress:!0,slideToClickedSlide:!1}),E.thumbs.swiper=new be(fe),W=!0}return E.thumbs.swiper.el.classList.add(E.params.thumbs.thumbsContainerClass),E.thumbs.swiper.on("tap",ae),!0}function ue(ve){const be=E.thumbs.swiper;
112if(!be||be.destroyed)return;const fe=be.params.slidesPerView==="auto"?be.slidesPerViewDynamic():be.params.slidesPerView;let me=1;const Ie=E.params.thumbs.slideThumbActiveClass;if(E.params.slidesPerView>1&&!E.params.centeredSlides&&(me=E.params.slidesPerView),E.params.thumbs.multipleActiveThumbs||(me=1),me=Math.floor(me),be.slides.forEach(Ve=>Ve.classList.remove(Ie)),be.params.loop||be.params.virtual&&be.params.virtual.enabled)for(let Ve=0;Ve<me;Ve+=1)hn(be.slidesEl,`[data-swiper-slide-index="${E.realIndex+Ve}"]`).forEach(Pe=>{Pe.classList.add(Ie)});else for(let Ve=0;Ve<me;Ve+=1)be.slides[E.realIndex+Ve]&&be.slides[E.realIndex+Ve].classList.add(Ie);const Oe=E.params.thumbs.autoScrollOffset,ke=Oe&&!be.params.loop;if(E.realIndex!==be.realIndex||ke){const Ve=be.activeIndex;let Pe,De;if(be.params.loop){const Fe=be.slides.filter(Xe=>Xe.getAttribute("data-swiper-slide-index")===`${E.realIndex}`)[0];Pe=be.slides.indexOf(Fe),De=E.activeIndex>E.previousIndex?"next":"prev"}else Pe=E.realIndex,De=Pe>E.previousIndex?"next":"prev";ke&&(Pe+=De==="next"?Oe:-1*Oe),be.visibleSlidesIndexes&&be.visibleSlidesIndexes.indexOf(Pe)<0&&(be.params.centeredSlides?Pe=Pe>Ve?Pe-Math.floor(fe/2)+1:Pe+Math.floor(fe/2)-1:Pe>Ve&&be.params.slidesPerGroup,be.slideTo(Pe,ve?0:void 0))}}E.thumbs={swiper:null},O("beforeInit",()=>{const{thumbs:ve}=E.params;if(ve&&ve.swiper)if(typeof ve.swiper=="string"||ve.swiper instanceof HTMLElement){const be=An(),fe=()=>{const Ie=typeof ve.swiper=="string"?be.querySelector(ve.swiper):ve.swiper;if(Ie&&Ie.swiper)ve.swiper=Ie.swiper,oe(),ue(!0);else if(Ie){const Oe=ke=>{ve.swiper=ke.detail[0],Ie.removeEventListener("init",Oe),oe(),ue(!0),ve.swiper.update(),E.update()};Ie.addEventListener("init",Oe)}return Ie},me=()=>{E.destroyed||fe()||requestAnimationFrame(me)};requestAnimationFrame(me)}else oe(),ue(!0)}),O("slideChange update resize observerUpdate",()=>{ue()}),O("setTransition",(ve,be)=>{const fe=E.thumbs.swiper;fe&&!fe.destroyed&&fe.setTransition(be)}),O("beforeDestroy",()=>{const ve=E.thumbs.swiper;ve&&!ve.destroyed&&W&&ve.destroy()}),Object.assign(E.thumbs,{init:oe,update:ue})},function(I){let{swiper:E,extendParams:k,emit:O,once:Y}=I;k({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(E,{freeMode:{onTouchStart:function(){if(E.params.cssMode)return;const W=E.getTranslate();E.setTranslate(W),E.setTransition(0),E.touchEventsData.velocities.length=0,E.freeMode.onTouchEnd({currentPos:E.rtl?E.translate:-E.translate})},onTouchMove:function(){if(E.params.cssMode)return;const{touchEventsData:W,touches:ae}=E;W.velocities.length===0&&W.velocities.push({position:ae[E.isHorizontal()?"startX":"startY"],time:W.touchStartTime}),W.velocities.push({position:ae[E.isHorizontal()?"currentX":"currentY"],time:Xn()})},onTouchEnd:function(W){let{currentPos:ae}=W;if(E.params.cssMode)return;const{params:oe,wrapperEl:ue,rtlTranslate:ve,snapGrid:be,touchEventsData:fe}=E,me=Xn()-fe.touchStartTime;if(ae<-E.minTranslate())E.slideTo(E.activeIndex);else if(ae>-E.maxTranslate())E.slides.length<be.length?E.slideTo(be.length-1):E.slideTo(E.slides.length-1);else{if(oe.freeMode.momentum){if(fe.velocities.length>1){const Xe=fe.velocities.pop(),ut=fe.velocities.pop(),ot=Xe.position-ut.position,ct=Xe.time-ut.time;E.velocity=ot/ct,E.velocity/=2,Math.abs(E.velocity)<oe.freeMode.minimumVelocity&&(E.velocity=0),(ct>150||Xn()-Xe.time>300)&&(E.velocity=0)}else E.velocity=0;E.velocity*=oe.freeMode.momentumVelocityRatio,fe.velocities.length=0;let Ie=1e3*oe.freeMode.momentumRatio;const Oe=E.velocity*Ie;let ke=E.translate+Oe;ve&&(ke=-ke);let Ve,Pe=!1;const De=20*Math.abs(E.velocity)*oe.freeMode.momentumBounceRatio;let Fe;if(ke<E.maxTranslate())oe.freeMode.momentumBounce?(ke+E.maxTranslate()<-De&&(ke=E.maxTranslate()-De),Ve=E.maxTranslate(),Pe=!0,fe.allowMomentumBounce=!0):ke=E.maxTranslate(),oe.loop&&oe.centeredSlides&&(Fe=!0);else if(ke>E.minTranslate())oe.freeMode.momentumBounce?(ke-E.minTranslate()>De&&(ke=E.minTranslate()+De),Ve=E.minTranslate(),Pe=!0,fe.allowMomentumBounce
112=!0):ke=E.minTranslate(),oe.loop&&oe.centeredSlides&&(Fe=!0);else if(oe.freeMode.sticky){let Xe;for(let ut=0;ut<be.length;ut+=1)if(be[ut]>-ke){Xe=ut;break}ke=Math.abs(be[Xe]-ke)<Math.abs(be[Xe-1]-ke)||E.swipeDirection==="next"?be[Xe]:be[Xe-1],ke=-ke}if(Fe&&Y("transitionEnd",()=>{E.loopFix()}),E.velocity!==0){if(Ie=Math.abs(ve?(-ke-E.translate)/E.velocity:(ke-E.translate)/E.velocity),oe.freeMode.sticky){const Xe=Math.abs((ve?-ke:ke)-E.translate),ut=E.slidesSizesGrid[E.activeIndex];Ie=Xe<ut?oe.speed:Xe<2*ut?1.5*oe.speed:2.5*oe.speed}}else if(oe.freeMode.sticky)return void E.slideToClosest();oe.freeMode.momentumBounce&&Pe?(E.updateProgress(Ve),E.setTransition(Ie),E.setTranslate(ke),E.transitionStart(!0,E.swipeDirection),E.animating=!0,_i(ue,()=>{E&&!E.destroyed&&fe.allowMomentumBounce&&(O("momentumBounce"),E.setTransition(oe.speed),setTimeout(()=>{E.setTranslate(Ve),_i(ue,()=>{E&&!E.destroyed&&E.transitionEnd()})},0))})):E.velocity?(O("_freeModeNoMomentumRelease"),E.updateProgress(ke),E.setTransition(Ie),E.setTranslate(ke),E.transitionStart(!0,E.swipeDirection),E.animating||(E.animating=!0,_i(ue,()=>{E&&!E.destroyed&&E.transitionEnd()}))):E.updateProgress(ke),E.updateActiveIndex(),E.updateSlidesClasses()}else{if(oe.freeMode.sticky)return void E.slideToClosest();oe.freeMode&&O("_freeModeNoMomentumRelease")}(!oe.freeMode.momentum||me>=oe.longSwipesMs)&&(O("_freeModeStaticRelease"),E.updateProgress(),E.updateActiveIndex(),E.updateSlidesClasses())}}}})},function(I){let E,k,O,Y,{swiper:W,extendParams:ae,on:oe}=I;ae({grid:{rows:1,fill:"column"}});const ue=()=>{let ve=W.params.spaceBetween;return typeof ve=="string"&&ve.indexOf("%")>=0?ve=parseFloat(ve.replace("%",""))/100*W.size:typeof ve=="string"&&(ve=parseFloat(ve)),ve};oe("init",()=>{Y=W.params.grid&&W.params.grid.rows>1}),oe("update",()=>{const{params:ve,el:be}=W,fe=ve.grid&&ve.grid.rows>1;Y&&!fe?(be.classList.remove(`${ve.containerModifierClass}grid`,`${ve.containerModifierClass}grid-column`),O=1,W.emitContainerClasses()):!Y&&fe&&(be.classList.add(`${ve.containerModifierClass}grid`),ve.grid.fill==="column"&&be.classList.add(`${ve.containerModifierClass}grid-column`),W.emitContainerClasses()),Y=fe}),W.grid={initSlides:ve=>{const{slidesPerView:be}=W.params,{rows:fe,fill:me}=W.params.grid,Ie=W.virtual&&W.params.virtual.enabled?W.virtual.slides.length:ve.length;O=Math.floor(Ie/fe),E=Math.floor(Ie/fe)===Ie/fe?Ie:Math.ceil(Ie/fe)*fe,be!=="auto"&&me==="row"&&(E=Math.max(E,be*fe)),k=E/fe},unsetSlides:()=>{W.slides&&W.slides.forEach(ve=>{ve.swiperSlideGridSet&&(ve.style.height="",ve.style[W.getDirectionLabel("margin-top")]="")})},updateSlide:(ve,be,fe)=>{const{slidesPerGroup:me}=W.params,Ie=ue(),{rows:Oe,fill:ke}=W.params.grid,Ve=W.virtual&&W.params.virtual.enabled?W.virtual.slides.length:fe.length;let Pe,De,Fe;if(ke==="row"&&me>1){const Xe=Math.floor(ve/(me*Oe)),ut=ve-Oe*me*Xe,ot=Xe===0?me:Math.min(Math.ceil((Ve-Xe*Oe*me)/Oe),me);Fe=Math.floor(ut/ot),De=ut-Fe*ot+Xe*me,Pe=De+Fe*E/Oe,be.style.order=Pe}else ke==="column"?(De=Math.floor(ve/Oe),Fe=ve-De*Oe,(De>O||De===O&&Fe===Oe-1)&&(Fe+=1,Fe>=Oe&&(Fe=0,De+=1))):(Fe=Math.floor(ve/k),De=ve-Fe*k);be.row=Fe,be.column=De,be.style.height=`calc((100% - ${(Oe-1)*Ie}px) / ${Oe})`,be.style[W.getDirectionLabel("margin-top")]=Fe!==0?Ie&&`${Ie}px`:"",be.swiperSlideGridSet=!0},updateWrapperSize:(ve,be)=>{const{centeredSlides:fe,roundLengths:me}=W.params,Ie=ue(),{rows:Oe}=W.params.grid;if(W.virtualSize=(ve+Ie)*E,W.virtualSize=Math.ceil(W.virtualSize/Oe)-Ie,W.params.cssMode||(W.wrapperEl.style[W.getDirectionLabel("width")]=`${W.virtualSize+Ie}px`),fe){const ke=[];for(let Ve=0;Ve<be.length;Ve+=1){let Pe=be[Ve];me&&(Pe=Math.floor(Pe)),be[Ve]<W.virtualSize+be[0]&&ke.push(Pe)}be.splice(0,be.length),be.push(...ke)}}}},function(I){let{swiper:E}=I;Object.assign(E,{appendSlide:Qs.bind(E),prependSlide:el.bind(E),addSlide:tl.bind(E),removeSlide:rl.bind(E),removeAllSlides:nl.bind(E)})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({fadeEffect:{crossFade:!1}}),oa({effect:"fade",swiper:E,on:O,setTranslate:()=>{const{slides:Y}=E;E.params.fadeEffect;for(let W=0;W<Y.length;W+=1){const ae=E.slides[W];let oe=-ae.swiperSlideOffset;E.params.virtualTranslate||(oe-=E.translate);let ue=0;E.isHorizontal()||(ue=oe,oe=0);const ve=E.params.fadeEffect.crossFade?Math.max(1-Math.abs(ae.progress),0):1+Math.min(Math.max(ae.progress,-1),0),be=_a(0,ae);be.style.opacity=ve,be.style.transform=`translate3d(${oe}px, ${ue}px, 0px)`}},setTransition:Y=>{const W=E.slides.map(ae=>yi(ae));W.forEach(ae=>{ae.style.transitionDuration=`${Y}ms`}),Ra({swiper:E,duration:Y,transformElements:W,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!E.params.cssMode})})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const Y=(W,ae,oe)=>{let ue=oe?W.querySelector(".swiper-slide-shadow-left"):W.querySelector(".swiper-slide-shadow-top"),ve=oe?W.querySelector(".swiper-slide-shadow-right"):W.querySelector(".swiper-slide-shadow-bottom");ue||(ue=ei("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(oe?"left"
112:"top")).split(" ")),W.append(ue)),ve||(ve=ei("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(oe?"right":"bottom")).split(" ")),W.append(ve)),ue&&(ue.style.opacity=Math.max(-ae,0)),ve&&(ve.style.opacity=Math.max(ae,0))};oa({effect:"cube",swiper:E,on:O,setTranslate:()=>{const{el:W,wrapperEl:ae,slides:oe,width:ue,height:ve,rtlTranslate:be,size:fe,browser:me}=E,Ie=E.params.cubeEffect,Oe=E.isHorizontal(),ke=E.virtual&&E.params.virtual.enabled;let Ve,Pe=0;Ie.shadow&&(Oe?(Ve=E.wrapperEl.querySelector(".swiper-cube-shadow"),Ve||(Ve=ei("div","swiper-cube-shadow"),E.wrapperEl.append(Ve)),Ve.style.height=`${ue}px`):(Ve=W.querySelector(".swiper-cube-shadow"),Ve||(Ve=ei("div","swiper-cube-shadow"),W.append(Ve))));for(let Fe=0;Fe<oe.length;Fe+=1){const Xe=oe[Fe];let ut=Fe;ke&&(ut=parseInt(Xe.getAttribute("data-swiper-slide-index"),10));let ot=90*ut,ct=Math.floor(ot/360);be&&(ot=-ot,ct=Math.floor(-ot/360));const at=Math.max(Math.min(Xe.progress,1),-1);let ft=0,it=0,Je=0;ut%4==0?(ft=4*-ct*fe,Je=0):(ut-1)%4==0?(ft=0,Je=4*-ct*fe):(ut-2)%4==0?(ft=fe+4*ct*fe,Je=fe):(ut-3)%4==0&&(ft=-fe,Je=3*fe+4*fe*ct),be&&(ft=-ft),Oe||(it=ft,ft=0);const Ze=`rotateX(${Oe?0:-ot}deg) rotateY(${Oe?ot:0}deg) translate3d(${ft}px, ${it}px, ${Je}px)`;at<=1&&at>-1&&(Pe=90*ut+90*at,be&&(Pe=90*-ut-90*at),E.browser&&E.browser.isSafari&&Math.abs(Pe)/90%2==1&&(Pe+=.001)),Xe.style.transform=Ze,Ie.slideShadows&&Y(Xe,at,Oe)}if(ae.style.transformOrigin=`50% 50% -${fe/2}px`,ae.style["-webkit-transform-origin"]=`50% 50% -${fe/2}px`,Ie.shadow)if(Oe)Ve.style.transform=`translate3d(0px, ${ue/2+Ie.shadowOffset}px, ${-ue/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${Ie.shadowScale})`;else{const Fe=Math.abs(Pe)-90*Math.floor(Math.abs(Pe)/90),Xe=1.5-(Math.sin(2*Fe*Math.PI/360)/2+Math.cos(2*Fe*Math.PI/360)/2),ut=Ie.shadowScale,ot=Ie.shadowScale/Xe,ct=Ie.shadowOffset;Ve.style.transform=`scale3d(${ut}, 1, ${ot}) translate3d(0px, ${ve/2+ct}px, ${-ve/2/ot}px) rotateX(-89.99deg)`}const De=(me.isSafari||me.isWebView)&&me.needPerspectiveFix?-fe/2:0;ae.style.transform=`translate3d(0px,0,${De}px) rotateX(${E.isHorizontal()?0:Pe}deg) rotateY(${E.isHorizontal()?-Pe:0}deg)`,ae.style.setProperty("--swiper-cube-translate-z",`${De}px`)},setTransition:W=>{const{el:ae,slides:oe}=E;if(oe.forEach(ue=>{ue.style.transitionDuration=`${W}ms`,ue.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(ve=>{ve.style.transitionDuration=`${W}ms`})}),E.params.cubeEffect.shadow&&!E.isHorizontal()){const ue=ae.querySelector(".swiper-cube-shadow");ue&&(ue.style.transitionDuration=`${W}ms`)}},recreateShadows:()=>{const W=E.isHorizontal();E.slides.forEach(ae=>
112{const oe=Math.max(Math.min(ae.progress,1),-1);Y(ae,oe,W)})},getEffectParams:()=>E.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({flipEffect:{slideShadows:!0,limitRotation:!0}});const Y=(W,ae)=>{let oe=E.isHorizontal()?W.querySelector(".swiper-slide-shadow-left"):W.querySelector(".swiper-slide-shadow-top"),ue=E.isHorizontal()?W.querySelector(".swiper-slide-shadow-right"):W.querySelector(".swiper-slide-shadow-bottom");oe||(oe=aa("flip",W,E.isHorizontal()?"left":"top")),ue||(ue=aa("flip",W,E.isHorizontal()?"right":"bottom")),oe&&(oe.style.opacity=Math.max(-ae,0)),ue&&(ue.style.opacity=Math.max(ae,0))};oa({effect:"flip",swiper:E,on:O,setTranslate:()=>{const{slides:W,rtlTranslate:ae}=E,oe=E.params.flipEffect;for(let ue=0;ue<W.length;ue+=1){const ve=W[ue];let be=ve.progress;E.params.flipEffect.limitRotation&&(be=Math.max(Math.min(ve.progress,1),-1));const fe=ve.swiperSlideOffset;let me=-180*be,Ie=0,Oe=E.params.cssMode?-fe-E.translate:-fe,ke=0;E.isHorizontal()?ae&&(me=-me):(ke=Oe,Oe=0,Ie=-me,me=0),E.browser&&E.browser.isSafari&&(Math.abs(me)/90%2==1&&(me+=.001),Math.abs(Ie)/90%2==1&&(Ie+=.001)),ve.style.zIndex=-Math.abs(Math.round(be))+W.length,oe.slideShadows&&Y(ve,be);const Ve=`translate3d(${Oe}px, ${ke}px, 0px) rotateX(${Ie}deg) rotateY(${me}deg)`;_a(0,ve).style.transform=Ve}},setTransition:W=>{const ae=E.slides.map(oe=>yi(oe));ae.forEach(oe=>{oe.style.transitionDuration=`${W}ms`,oe.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(ue=>{ue.style.transitionDuration=`${W}ms`})}),Ra({swiper:E,duration:W,transformElements:ae})},recreateShadows:()=>{E.params.flipEffect,E.slides.forEach(W=>{let ae=W.progress;E.params.flipEffect.limitRotation&&(ae=Math.max(Math.min(W.progress,1),-1)),Y(W,ae)})},getEffectParams:()=>E.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!E.params.cssMode})})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),oa({effect:"coverflow",swiper:E,on:O,setTranslate:()=>{const{width:Y,height:W,slides:ae,slidesSizesGrid:oe}=E,ue=E.params.coverflowEffect,ve=E.isHorizontal(),be=E.translate,fe=ve?Y/2-be:W/2-be,me=ve?ue.rotate:-ue.rotate,Ie=ue.depth;for(let Oe=0,ke=ae.length;Oe<ke;Oe+=1){const Ve=ae[Oe],Pe=oe[Oe],De=(fe-Ve.swiperSlideOffset-Pe/2)/Pe,Fe=typeof ue.modifier=="function"?ue.modifier(De):De*ue.modifier;let Xe=ve?me*Fe:0,ut=ve?0:me*Fe,ot=-Ie*Math.abs(Fe),ct=ue.stretch;typeof ct=="string"&&ct.indexOf("%")!==-1&&(ct=parseFloat(ue.stretch)/100*Pe);let at=ve?0:ct*Fe,ft=ve?ct*Fe:0,it=1-(1-ue.scale)*Math.abs(Fe);Math.abs(ft)<.001&&(ft=0),Math.abs(at)<.001&&(at=0),Math.abs(ot)<.001&&(ot=0),Math.abs(Xe)<.001&&(Xe=0),Math.abs(ut)<.001&&(ut=0),Math.abs(it)<.001&&(it=0),E.browser&&E.browser.isSafari&&(Math.abs(Xe)/90%2==1&&(Xe+=.001),Math.abs(ut)/90%2==1&&(ut+=.001));const Je=`translate3d(${ft}px,${at}px,${ot}px)  rotateX(${ut}deg) rotateY(${Xe}deg) scale(${it})`;if(_a(0,Ve).style.transform=Je,Ve.style.zIndex=1-Math.abs(Math.round(Fe)),ue.slideShadows){let Ze=ve?Ve.querySelector(".swiper-slide-shadow-left"):Ve.querySelector(".swiper-slide-shadow-top"),st=ve?Ve.querySelector(".swiper-slide-shadow-right"):Ve.querySelector(".swiper-slide-shadow-bottom");Ze||(Ze=aa("coverflow",Ve,ve?"left":"top")),st||(st=aa("coverflow",Ve,ve?"right":"bottom")),Ze&&(Ze.style.opacity=Fe>0?Fe:0),st&&(st.style.opacity=-Fe>0?-Fe:0)}}},setTransition:Y=>{E.slides.map(W=>yi(W)).forEach(W=>{W.style.transitionDuration=`${Y}ms`,W.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(ae=>{ae.style.transitionDuration=`${Y}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const Y=W=>typeof W=="string"?W:`${W}px`;oa({effect:"creative",swiper:E,on:O,setTranslate:()=>{const{slides:W,wrapperEl:ae,slidesSizesGrid:oe}=E,ue=E.params.creativeEffect,{progressMultiplier:ve}=ue,be=E.params.centeredSlides;if(be){const fe=oe[0]/2-E.params.slidesOffsetBefore||0;ae.style.transform=`translateX(calc(50% - ${fe}px))`}for(let fe=0;fe<W.length;fe+=1){const me=W[fe],Ie=me.progress,Oe=Math.min(Math.max(me.progress,-ue.limitProgress),ue.limitProgress);let ke=Oe;be||(ke=Math.min(Math.max(me.originalProgress,-ue.limitProgress),ue.limitProgress));const Ve=me.swiperSlideOffset,Pe=[E.params.cssMode?-Ve-E.translate:-Ve,0,0],De=[0,0,0];let Fe=!1;E.isHorizontal()||(Pe[1]=Pe[0],Pe[0]=0);
112let Xe={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};Oe<0?(Xe=ue.next,Fe=!0):Oe>0&&(Xe=ue.prev,Fe=!0),Pe.forEach((Je,Ze)=>{Pe[Ze]=`calc(${Je}px + (${Y(Xe.translate[Ze])} * ${Math.abs(Oe*ve)}))`}),De.forEach((Je,Ze)=>{let st=Xe.rotate[Ze]*Math.abs(Oe*ve);E.browser&&E.browser.isSafari&&Math.abs(st)/90%2==1&&(st+=.001),De[Ze]=st}),me.style.zIndex=-Math.abs(Math.round(Ie))+W.length;const ut=Pe.join(", "),ot=`rotateX(${De[0]}deg) rotateY(${De[1]}deg) rotateZ(${De[2]}deg)`,ct=ke<0?`scale(${1+(1-Xe.scale)*ke*ve})`:`scale(${1-(1-Xe.scale)*ke*ve})`,at=ke<0?1+(1-Xe.opacity)*ke*ve:1-(1-Xe.opacity)*ke*ve,ft=`translate3d(${ut}) ${ot} ${ct}`;if(Fe&&Xe.shadow||!Fe){let Je=me.querySelector(".swiper-slide-shadow");if(!Je&&Xe.shadow&&(Je=aa("creative",me)),Je){const Ze=ue.shadowPerProgress?Oe*(1/ue.limitProgress):Oe;Je.style.opacity=Math.min(Math.max(Math.abs(Ze),0),1)}}const it=_a(0,me);it.style.transform=ft,it.style.opacity=at,Xe.origin&&(it.style.transformOrigin=Xe.origin)}},setTransition:W=>{const ae=E.slides.map(oe=>yi(oe));ae.forEach(oe=>{oe.style.transitionDuration=`${W}ms`,oe.querySelectorAll(".swiper-slide-shadow").forEach(ue=>{ue.style.transitionDuration=`${W}ms`})}),Ra({swiper:E,duration:W,transformElements:ae,allSlides:!0})},perspective:()=>E.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!E.params.cssMode})})},function(I){let{swiper:E,extendParams:k,on:O}=I;k({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),oa({effect:"cards",swiper:E,on:O,setTranslate:()=>{const{slides:Y,activeIndex:W,rtlTranslate:ae}=E,oe=E.params.cardsEffect,{startTranslate:ue,isTouched:ve}=E.touchEventsData,be=ae?-E.translate:E.translate;for(let fe=0;fe<Y.length;fe+=1){const me=Y[fe],Ie=me.progress,Oe=Math.min(Math.max(Ie,-4),4);let ke=me.swiperSlideOffset;E.params.centeredSlides&&!E.params.cssMode&&(E.wrapperEl.style.transform=`translateX(${E.minTranslate()}px)`),E.params.centeredSlides&&E.params.cssMode&&(ke-=Y[0].swiperSlideOffset);let Ve=E.params.cssMode?-ke-E.translate:-ke,Pe=0;const De=-100*Math.abs(Oe);let Fe=1,Xe=-oe.perSlideRotate*Oe,ut=oe.perSlideOffset-.75*Math.abs(Oe);const ot=E.virtual&&E.params.virtual.enabled?E.virtual.from+fe:fe,ct=(ot===W||ot===W-1)&&Oe>0&&Oe<1&&(ve||E.params.cssMode)&&be<ue,at=(ot===W||ot===W+1)&&Oe<0&&Oe>-1&&(ve||E.params.cssMode)&&be>ue;if(ct||at){const Je=(1-Math.abs((Math.abs(Oe)-.5)/.5))**.5;Xe+=-28*Oe*Je,Fe+=-.5*Je,ut+=96*Je,Pe=-25*Je*Math.abs(Oe)+"%"}if(Ve=Oe<0?`calc(${Ve}px ${ae?"-":"+"} (${ut*Math.abs(Oe)}%))`:Oe>0?`calc(${Ve}px ${ae?"-":"+"} (-${ut*Math.abs(Oe)}%))`:`${Ve}px`,!E.isHorizontal()){const Je=Pe;Pe=Ve,Ve=Je}const ft=Oe<0?""+(1+(1-Fe)*Oe):""+(1-(1-Fe)*Oe),it=`
113        translate3d(${Ve}, ${Pe}, ${De}px)
114        rotateZ(${oe.rotate?ae?-Xe:Xe:0}deg)
115        scale(${ft})
116      `;if(oe.slideShadows){let Je=me.querySelector(".swiper-slide-shadow");Je||(Je=aa("cards",me)),Je&&(Je.style.opacity=Math.min(Math.max((Math.abs(Oe)-.5)/.5,0),1))}me.style.zIndex=-Math.abs(Math.round(Ie))+Y.length,_a(0,me).style.transform=it}},setTransition:Y=>{const W=E.slides.map(ae=>yi(ae));W.forEach(ae=>{ae.style.transitionDuration=`${Y}ms`,ae.querySelectorAll(".swiper-slide-shadow").forEach(oe=>{oe.style.transitionDuration=`${Y}ms`})}),Ra({swiper:E,duration:Y,transformElements:W})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!E.params.cssMode})})}];Ri.use(il);const Ma=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function sa(I){return typeof I=="object"&&I!==null&&I.constructor&&Object.prototype.toString.call(I).slice(8,-1)==="Object"&&!I.__swiper__}function as(I,E){const k=["__proto__","constructor","prototype"];Object.keys(E).filter(O=>
116k.indexOf(O)<0).forEach(O=>{I[O]===void 0?I[O]=E[O]:sa(E[O])&&sa(I[O])&&Object.keys(E[O]).length>0?E[O].__swiper__?I[O]=E[O]:as(I[O],E[O]):I[O]=E[O]})}function Da(I){return I===void 0&&(I=""),I.replace(/-[a-z]/g,E=>E.toUpperCase().replace("-",""))}const vs=I=>{if(parseFloat(I)===Number(I))return Number(I);if(I==="true"||I==="")return!0;if(I==="false")return!1;if(I==="null")return null;if(I!=="undefined"){if(typeof I=="string"&&I.includes("{")&&I.includes("}")&&I.includes('"')){let E;try{E=JSON.parse(I)}catch{E=I}return E}return I}},bs=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function ws(I,E,k){const O={},Y={};as(O,rs);const W=[...Ma,"on"],ae=W.map(ue=>ue.replace(/_/,""));W.forEach(ue=>{ue=ue.replace("_",""),I[ue]!==void 0&&(Y[ue]=I[ue])});const oe=[...I.attributes];return typeof E=="string"&&k!==void 0&&oe.push({name:E,value:sa(k)?{...k}:k}),oe.forEach(ue=>{const ve=bs.filter(be=>ue.name.indexOf(`${be}-`)===0)[0];if(ve){const be=Da(ve),fe=Da(ue.name.split(`${ve}-`)[1]);Y[be]===void 0&&(Y[be]={}),Y[be]===!0&&(Y[be]={enabled:!0}),Y[be][fe]=vs(ue.value)}else{const be=Da(ue.name);if(!ae.includes(be))return;const fe=vs(ue.value);Y[be]&&bs.includes(ue.name)&&!sa(fe)?(Y[be].constructor!==Object&&(Y[be]={}),Y[be].enabled=!!fe):Y[be]=fe}}),as(O,Y),O.navigation?O.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...O.navigation!==!0?O.navigation:{}}:O.navigation===!1&&delete O.navigation,O.scrollbar?O.scrollbar={el:".swiper-scrollbar",...O.scrollbar!==!0?O.scrollbar:{}}:O.scrollbar===!1&&delete O.scrollbar,O.pagination?O.pagination={el:".swiper-pagination",...O.pagination!==!0?O.pagination:{}}:O.pagination===!1&&delete O.pagination,{params:O,passedParams:Y}}const ol=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;
116left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}
116.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;
116left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",Ss=typeof window>"u"||typeof HTMLElement>"u"?class{}:HTMLElement,Es=`<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>
117    `,Ts=(I,E)=>{if(typeof CSSStyleSheet<"u"&&I.adoptedStyleSheets){const k=new CSSStyleSheet;k.replaceSync(E),I.adoptedStyleSheets=[k]}else{const k=document.createElement("style");k.rel="stylesheet",k.textContent=E,I.appendChild(k)}};class Cs extends Ss{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return Es}static get prevButtonSvg(){return Es.replace("/></svg>",' transform-origin="center" transform="rotate(180)"/></svg>')}cssStyles(){return[ol,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(`
118`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const E=this.slideSlots||0,k=[...this.querySelectorAll("[slot^=slide-]")].map(O=>parseInt(O.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=k.length?Math.max(...k)+1:0,this.rendered){if(this.slideSlots>E)for(let O=E;O<this.slideSlots;O+=1){const Y=document.createElement("swiper-slide");Y.setAttribute("part",`slide slide-${O+1}`);const W=document.createElement("slot");W.setAttribute("name",`slide-${O+1}`),Y.appendChild(W),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(Y)}else if(this.slideSlots<E){const O=this.swiper.slides;for(let Y=O.length-1;Y>=0;Y-=1)Y>this.slideSlots&&O[Y].remove()}}}
118render(){if(this.rendered)return;this.calcSlideSlots();let E=this.cssStyles();this.slideSlots>0&&(E=E.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),E.length&&Ts(this.shadowRoot,E),this.cssLinks().forEach(W=>{if(this.shadowRoot.querySelector(`link[href="${W}"]`))return;const ae=document.createElement("link");ae.rel="stylesheet",ae.href=W,this.shadowRoot.appendChild(ae)});const k=document.createElement("div");var O,Y;k.classList.add("swiper"),k.part="container",k.innerHTML=`
119      <slot name="container-start"></slot>
120      <div class="swiper-wrapper" part="wrapper">
121        <slot></slot>
122        ${Array.from({length:this.slideSlots}).map((W,ae)=>`
123        <swiper-slide part="slide slide-${ae}">
124          <slot name="slide-${ae}"></slot>
125        </swiper-slide>
126        `).join("")}
127      </div>
128      <slot name="container-end"></slot>
129      ${O=this.passedParams,O===void 0&&(O={}),O.navigation&&O.navigation.nextEl===void 0&&O.navigation.prevEl===void 0?`
130        <div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div>
131        <div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div>
132      `:""}
133      ${Y=this.passedParams,Y===void 0&&(Y={}),Y.pagination&&Y.pagination.el===void 0?`
134        <div part="pagination" class="swiper-pagination"></div>
135      `:""}
136      ${(function(W){return W===void 0&&(W={}),W.scrollbar&&W.scrollbar.el===void 0})(this.passedParams)?`
137        <div part="scrollbar" class="swiper-scrollbar"></div>
138      `:""}
139    `,this.shadowRoot.appendChild(k),this.rendered=!0}initialize(){var E=this;if(this.initialized)return;this.initialized=!0;const{params:k,passedParams:O}=ws(this);this.swiperParams=k,this.passedParams=O,delete this.swiperParams.init,this.render(),this.swiper=new Ri(this.shadowRoot.querySelector(".swiper"),{...k.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...k,touchEventsTarget:"container",onAny:function(Y){Y==="observerUpdate"&&E.calcSlideSlots();const W=k.eventsPrefix?`${k.eventsPrefix}${Y.toLowerCase()}`:Y.toLowerCase();for(var ae=arguments.length,oe=new Array(ae>1?ae-1:0),ue=1;ue<ae;ue++)oe[ue-1]=arguments[ue];const ve=new CustomEvent(W,{detail:oe,bubbles:Y!=="hashChange",cancelable:!0});E.dispatchEvent(ve)}})}connectedCallback(){this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init!==!1&&this.getAttribute("init")!=="false"&&this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(E,k){const{params:O,passedParams:Y}=ws(this,E,k);this.passedParams=Y,this.swiperParams=O,this.swiper&&this.swiper.params[E]===k||(function(W){let{swiper:ae,slides:oe,passedParams:ue,changedParams:ve,nextEl:be,prevEl:fe,scrollbarEl:me,paginationEl:Ie}=W;const Oe=ve.filter(lt=>lt!=="children"&&lt!=="direction"&&lt!=="wrapperClass"),{params:ke,pagination:Ve,navigation:Pe,scrollbar:De,virtual:Fe,thumbs:Xe}=ae;let ut,ot,ct,at,ft,it,Je,Ze;ve.includes("thumbs")&&ue.thumbs&&ue.thumbs.swiper&&ke.thumbs&&!ke.thumbs.swiper&&(ut=!0),ve.includes("controller")&&ue.controller&&ue.controller.control&&ke.controller&&!ke.controller.control&&(ot=!0),ve.includes("pagination")&&ue.pagination&&(ue.pagination.el||Ie)&&(ke.pagination||ke.pagination===!1)&&Ve&&!Ve.el&&(ct=!0),ve.includes("scrollbar")&&ue.scrollbar&&(ue.scrollbar.el||me)&&(ke.scrollbar||ke.scrollbar===!1)&&De&&!De.el&&(at=!0),ve.includes("navigation")&&ue.navigation&&(ue.navigation.prevEl||fe)&&(ue.navigation.nextEl||be)&&(ke.navigation||ke.navigation===!1)&&Pe&&!Pe.prevEl&&!Pe.nextEl&&(ft=!0);const st=lt=>{ae[lt]&&(ae[lt].destroy(),lt==="navigation"?(ae.isElement&&(ae[lt].prevEl.remove(),ae[lt].nextEl.remove()),ke[lt].prevEl=void 0,ke[lt].nextEl=void 0,ae[lt].prevEl=void 0,ae[lt].nextEl=void 0):(ae.isElement&&ae[lt].el.remove(),ke[lt].el=void 0,ae[lt].el=void 0))};ve.includes("loop")&&ae.isElement&&(ke.loop&&!ue.loop?it=!0:!ke.loop&&ue.loop?Je=!0:Ze=!0),Oe.forEach(lt=>{if(sa(ke[lt])&&sa(ue[lt]))Object.assign(ke[lt],ue[lt]),lt!=="navigation"&&lt!=="pagination"&&lt!=="scrollbar"||!("enabled"in ue[lt])||ue[lt].enabled||st(lt);else{const Tt=ue[lt];Tt!==!0&&Tt!==!1||lt!=="navigation"&&lt!=="pagination"&&lt!=="scrollbar"?ke[lt]=ue[lt]:Tt===!1&&st(lt)}}),Oe.includes("controller")&&!ot&&ae.controller&&ae.controller.control&&ke.controller&&ke.controller.control&&(ae.controller.control=ke.controller.control),ve.
139includes("children")&&oe&&Fe&&ke.virtual.enabled?(Fe.slides=oe,Fe.update(!0)):ve.includes("virtual")&&Fe&&ke.virtual.enabled&&(oe&&(Fe.slides=oe),Fe.update(!0)),ve.includes("children")&&oe&&ke.loop&&(Ze=!0),ut&&Xe.init()&&Xe.update(!0),ot&&(ae.controller.control=ke.controller.control),ct&&(!ae.isElement||Ie&&typeof Ie!="string"||(Ie=document.createElement("div"),Ie.classList.add("swiper-pagination"),Ie.part.add("pagination"),ae.el.appendChild(Ie)),Ie&&(ke.pagination.el=Ie),Ve.init(),Ve.render(),Ve.update()),at&&(!ae.isElement||me&&typeof me!="string"||(me=document.createElement("div"),me.classList.add("swiper-scrollbar"),me.part.add("scrollbar"),ae.el.appendChild(me)),me&&(ke.scrollbar.el=me),De.init(),De.updateSize(),De.setTranslate()),ft&&(ae.isElement&&(be&&typeof be!="string"||(be=document.createElement("div"),be.classList.add("swiper-button-next"),be.innerHTML=ae.hostEl.constructor.nextButtonSvg,be.part.add("button-next"),ae.el.appendChild(be)),fe&&typeof fe!="string"||(fe=document.createElement("div"),fe.classList.add("swiper-button-prev"),fe.innerHTML=ae.hostEl.constructor.prevButtonSvg,fe.part.add("button-prev"),ae.el.appendChild(fe))),be&&(ke.navigation.nextEl=be),fe&&(ke.navigation.prevEl=fe),Pe.init(),Pe.update()),ve.includes("allowSlideNext")&&(ae.allowSlideNext=ue.allowSlideNext),ve.includes("allowSlidePrev")&&(ae.allowSlidePrev=ue.allowSlidePrev),ve.includes("direction")&&ae.changeDirection(ue.direction,!1),(it||Ze)&&ae.loopDestroy(),(Je||Ze)&&ae.loopCreate(),ae.update()})({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Da(E)],...E==="navigation"&&Y[E]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},...E==="pagination"&&Y[E]?{paginationEl:".swiper-pagination"}:{},...E==="scrollbar"&&Y[E]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(E,k,O){this.initialized&&(k==="true"&&O===null&&(O=!1),this.updateSwiperOnPropChange(E,O))}static get observedAttributes(){return Ma.filter(E=>E.includes("_")).map(E=>E.replace(/[A-Z]/g,k=>`-${k}`).replace("_","").toLowerCase())}}Ma.forEach(I=>{I!=="init"&&(I=I.replace("_",""),Object.defineProperty(Cs.prototype,I,{configurable:!0,get(){return(this.passedParams||{})[I]},set(E){this.passedParams||(this.passedParams={}),this.passedParams[I]=E,this.initialized&&this.updateSwiperOnPropChange(I,E)}}))});class al extends Ss{constructor(){super(),this.attachShadow({mode:"open"})}render(){const E=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(Ts(this.shadowRoot,"::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}"),this.shadowRoot.appendChild(document.createElement("slot")),E){const k=document.createElement("div");k.classList.add("swiper-lazy-preloader"),k.part.add("preloader"),this.shadowRoot.appendChild(k)}}initialize(){this.render()}connectedCallback(){this.initialize()}}typeof window<"u"&&(window.SwiperElementRegisterParams=I=>{Ma.push(...I)});var Fo,di={lightbox:"lightbox-tXHVbc",isCategory:"isCategory-pclR-u",isAnimating:"isAnimating-mSalXm",blurredBackgroun
139d:"blurredBackground-J4bteS",isCategoryNavigation:"isCategoryNavigation-w+YDXf",isMobile:"isMobile-u00uf9",fadeInAnimation:"fadeInAnimation-GwpQgl",fadeOutAnimation:"fadeOutAnimation-Mn96gp",customSwiper:"customSwiper-Gog4at",isInactive:"isInactive-aqb6Pv",swiperSlide:"swiperSlide-OzDvwW"},sl=function(I){var E,k=I.children,O=I.isVisible,Y=I.swiperRef,W=(0,S._T)(I,["children","isVisible","swiperRef"]);return(0,w.useEffect)(function(){typeof window<"u"&&(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",Cs),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",al)),Y.current&&(Object.assign(Y.current,W),Y.current.initialize())},[k]),w.default.createElement("swiper-container",{init:"false",ref:Y,className:Yt()(di.customSwiper,(E={},E[di.isInactive]=!O,E))},k)},ll=function(I){var E=I.children,k=(0,S._T)(I,["children"]);return w.default.createElement("swiper-slide",(0,S.pi)({className:di.swiperSlide},k),E)};(function(I){I.mousewheel="mousewheel",I.touch="touch",I.keyPress="keyPress"})(Fo||(Fo={}));var va,io,ss=!dr.G6;function xs(I){return"deltaY"in I}(function(I){I.Up="ArrowUp",I.Down="ArrowDown"})(va||(va={})),(function(I){I.up="up",I.down="down"})(io||(io={}));var cl={direction:"vertical",keyboard:{enabled:ss},modules:[function(I){var E,k,O,Y=I.on,W=I.emit;Y("slideChange",function(ae){ae.realIndex!==E&&(k=E,E=ae.realIndex)}),Y("setTransition",function(ae,oe){(k||k===0)&&O>0&&(ae.realIndexBeforeTransition=k,W("slideTransitionEnd")),O=oe}),Y("afterInit",function(ae){ae.initialised=!0}),Y("destroy",function(ae){ae.initialised=!1})},function(I){var E=I.swiper,k=I.on,O=!1,Y=!O,W=!1,ae=null,oe=[],ue=function(){E.enabled&&(W=!0)},ve=function(){E.enabled&&(W=!1)},be=function(ke){return ke>0?io.down:io.up},fe=function(ke){oe.unshift(ke),oe.length>2&&oe.pop()},me=function(ke,Ve){E.enabled&&(ae=ke,E.transitionTrigger=Ve,ke===io.down?E.slideNext(600):E.slidePrev(600),O=!0)},Ie=function(ke){if(E.enabled&&W&&(ke.key===va.Up||ke.key===va.Down)){var Ve=ke.key===va.Up?io.up:io.down;ae!==null&&ae!==Ve&&(O=!1,Y=!0),!O&&Y&&(me(Ve,Fo.keyPress),fe({timestamp:Date.now(),direction:Ve}))}},Oe=function(ke){if(E.enabled){var Ve=E.el,Pe=Ve&&Ve.contains(ke.target);if(W||Pe){var De=ke.deltaY;if(Math.abs(De)>5){var Fe=be(De);ae!==null&&ae!==Fe&&(O=!1,Y=!0),!O&&Y&&(me(Fe,Fo.mousewheel),fe({timestamp:Date.now(),deltaY:De}))}}}};k("init",function(ke){var Ve=ke.el;ke.transitionTrigger=null,W=!0,Ve.addEventListener("mouseenter",ue),Ve.addEventListener("mouseleave",ve),Ve.addEventListener("wheel",Oe),ss||document.addEventListener("keydown",Ie)}),k("destroy",function(ke){var Ve=ke.el;Ve.removeEventListener("mouseenter",ue),Ve.removeEventListener("mouseleave",ve),Ve.removeEventListener("wheel",Oe),ss||document.addEventListener("keydown",Ie)}),k("touchStart",function(){E.transitionTrigger=Fo.touch}),k("keyPress",function(){E.transitionTrigger=Fo.keyPress}),k("slideChangeTransitionStart",function(){O=!0,Y=!1}),k("slideTransitionEnd",function(ke){var Ve=ke.realIndex,Pe=ke.realIndexBeforeTransition,De=ke.transitionTrigger,Fe=!1,Xe=null,ut=null,ot=oe[0];if(ot){Xe=xs(ot)?be(ot.deltaY):ot.direction,ut=xs(ot)?Fo.mousewheel:Fo.keyPress;var ct=E.slides.length-1,at=Ve>=Pe?io.down:io.up;Pe===ct&&Ve===0&&(at=io.down),Pe===0&&Ve===ct&&(at=io.up),Fe=Xe!==at}E.enabled&&Fe&&Xe&&!O&&De===ut?me(Xe,ut):(O=!1,setTimeout(function(){O||(Y=!0)},300))})}],centeredSlides:!0,slidesPerView:dr.tq?1:1.25,slidesPerGroup:1,spaceBetween:dr.tq?0:30},ul=cl,dl=m(8949),As=function(I){var E,k,O,Y,W,ae,oe,ue,ve,be,fe,me,Ie=I.clips,Oe=I.clipsNavService,ke=I.currentBackgroundContainer,Ve=I.currentBackgroundImageUrl,Pe=I.currentClipNavigationCategory,De=I.currentMutedState,Fe=I.setCurrentMutedState,Xe=I.feedHeader,ut=I.basename,ot=I.collection,ct=I.initialCategoryId,at=I.initialClipId,ft=I.isInline,it=I.isParentInline,Je=I.isCategoryNavigation,Ze=I.onLightboxClick,st=I.resetCategory,lt=I.setOnLightboxClick,Tt=I.isDisabled,Ct=I.isNavigationAnimatingIn,Gt=Ct!==void 0&&Ct,kt=I.isNavigationAnimatingOut,Lt=kt!==void 0&&kt,zt=I.onPlayerClose,pr=I.supportsNavigation,Cr=I.topLevelBackButtonEnabled,Nr=Cr!==void 0&&Cr,ln=(0,w.useState)(null),jn=ln[0],on=ln[1],$n=(function(Ft){var mr=this,lr=Ft.routerClips,er=Ft.routerInitialClipId,Sn=Ft.setClipToLoadId,pi=(0,w.useState)([]),Ii=pi[0],ki=pi[1];return(0,w.useEffect)(function(){lr.length!==0&&(er?lr.findIndex(function(jo){return jo.id===er})>=0?ki(lr):(0,S.mG)(mr,void 0,void 0,function(){var jo;return(0,S.Jh)(this,function(Qo){switch(Qo.label){case 0:return Qo.trys.push([0,2,,3]),[4,dl.Z.loadClip(er,{retrieve:!0})];case 1:return(jo=Qo.sent())?(ki((0,S.ev)([jo],lr,!0)),Sn(jo.id)):ki(lr),[3,3];case 2:return Qo.sent(),ki(lr),[3,3];case 3:return[2]}})}):ki(lr))},[lr,er,Sn]),{clips:Ii}})({routerInitialClipId:at,routerClips:Ie,setClipToLoadId:on}).clips,bn=(0,w.useState)(!0),Vn=bn[0],Pr=bn[1],ir=(0,Xi.F)(),Bn=(0,ar.TH)(),cn=Bn.pathname,qn=Bn.search,Ai=(0,ar.k6)(),Io=(0,nn.Z)(),ai=(0,w.useRef)(null),oo=(0,w.useRef)(null),mo=(0,w.useRef)(null),ko=(0,w.useState)(Xe),Uo=ko[0],ls=ko[1],Na=(0,w.useState)(De==null||De),ba=Na[0],ao=Na[1],Oo=(0,w.useState)(!1),Wo=Oo[0],wa=Oo[1],$a=(0,w.useState)(!1),cs=$a[0],Va=$a[1],Ba=(0,w.useState)(!0),us=Ba[0],Sa=Ba[1],za=(0,w.useState)(),Mi=za[0],Fa=za[1],Ua=(0,w.useState)(!1),Jo=Ua[0],Wa=Ua[1],or=(0,w.useState)(!1),Qt=or[0],wn=or[1],Zn=(0,w.useState)(function(){}),In=Zn[0],Kn=Zn[1],si=(0,w.useRef)(!0),Jn=(0,w.useRef)(),Yn=(0,w.useRef)(),Di=(0,Yr.l)({isLightboxVisible:!0,lightbox:oo}).lightboxHasCorrectHeight,so=(0,w.useMemo)(function(){return Je||ft||Di},[Je,ft,Di]);Y=Oe.shouldShowAds,W=((O=Ar.Z.settings)===null||O===void 0?void 0:O.adsFrom)==="storyteller",ae=(0,ji.Z)((0,Ko.c)("v0/amp-ad-0.1.js"),Y),oe=(0,ji.Z)((0,Ko.c)("v0.js"),Y),ue=(0,ji.Z)((0,Ko.c)("v0/amp-mustache-0.2.js"),Y&&W,{"custom-template":"amp-mustache"}),ve=(0,ji.Z)((0,Ko.c)("v0/amp-img-0.1.js"),Y&&W),be=(0,ji.Z)((0,Ko.c)("v0/amp-video-0.1.js"),Y&&W),fe=(0,w.useMemo)(function(){return ae===ji.q.ready&&oe===ji.q.ready},[ae,oe]),me=(0,w.useMemo)(function(){return!W||ue===ji.q.ready&&ve===ji.q.ready&&be===ji.q.ready},[ue,ve,be,W]),(0,w.useMemo)(function(){return!Y||fe&&me},[fe,me,Y]),(function(Ft,mr){(0,w.useEffect)(function(){if(!mr){var lr=Ft.current;return function(){mr||lr!=null&&lr.swiper.destroyed||lr==null||lr.swiper.destroy()}}},[Ft,mr])})(ai,Je),(0,w.useEffect)(function(){$n.length===0&&Ie.length>0&&ls(Xe)},[Ie,$n.length,Xe]),(0,w.useEffect)(function(){var Ft=new URLSearchParams(qn).get("openedReason"),mr=new 
139URLSearchParams(qn).get("category");(Ft||mr)&&Ai.replace({pathname:cn,search:""})},[Ai,cn,qn]);var li=(0,w.useMemo)(function(){return $n.map(function(Ft,mr){return(0,S.pi)((0,S.pi)({},Ft),{indexInCollection:mr})})},[$n]),Pi=(0,w.useMemo)(function(){return Je&&Pe?li.filter(function(Ft){return Ft.categories.includes(Pe)}):ct?li.filter(function(Ft){return Ft.categories.includes(ct)}):li},[li,Pe,ct,Je]),kn=(0,w.useMemo)(function(){var Ft=Pi.length;return Ft>1&&Ft<4?(0,S.ev)((0,S.ev)([],Pi,!0),Pi,!0):Pi},[Pi]),Rr=(0,w.useCallback)(function(Ft,mr){var lr=ke||mo.current,er=!dr.tq&&Ft>=0;lr&&er&&(Jn.current=mr,lr.style.backgroundImage=mr?"url(".concat(mr,")"):"")},[Mi,ke]),lo=(0,w.useMemo)(function(){return!Mi&&!!Pe},[Mi,Pe]),vi=(0,w.useMemo)(function(){return Oe.appendedSlides.length},[Oe.appendedSlides]),ja=(0,w.useCallback)(function(){on(null)},[]),Ps=(function(Ft){var mr=Ft.activeClipId,lr=Ft.clips,er=Ft.clipsNavService,Sn=Ft.initialClipId,pi=Ft.isActiveCategory,Ii=Ft.isPlayerReady,ki=Ft.onSlidesAppendedOrReappended,jo=Ft.updateClipPlayerBackground,Qo=(0,Kr.fx)().loadHlsLibrary,Ta=(0,w.useRef)({}),hs=(0,w.useRef)({}),Ds=(0,w.useState)(!1),Ns=Ds[0],ua=Ds[1],$s=(0,w.useState)(0),Al=$s[0],Vs=$s[1],Bs=(0,w.useCallback)(function(xr){return new Promise(function(Jr){if(hs.current[xr.id])return Jr(hs.current[xr.id]);var ti=new Image;ti.src=xr.thumbnailUrl,ti.onload=function(){return hs.current[xr.id]=ti,Jr(ti)}})},[]),da=(0,w.useCallback)(function(xr){xr===void 0&&(xr=!1),Object.values(Ta.current).forEach(function(Jr){Jr&&Jr.pause()}),er.appendedSlides.forEach(function(Jr,ti){if((0,nr.A6)(Jr))xr?Jr.hide():Jr.pause();else if(xr){var Hn=er.clipIndicesToLoadOrPreload.includes(Jr.indexInCollection),Ho=Ta.current[ti];Ho&&!Hn&&(Ho.removeAttribute("poster"),Ho.removeAttribute("src"),Ho.src="")}})},[er]),zs=(0,w.useCallback)(function(xr,Jr){return new Promise(function(ti,Hn){var Ho=xr.canPlayType("application/vnd.apple.mpegurl");if(!Jr.isLive||Ho)return xr.src!==Jr.url&&(xr.setAttribute("src",Jr.url),xr.load(),xr.addEventListener("loadeddata",function(){xr.src===Jr.url&&xr.readyState>=2&&xr.removeAttribute("poster")})),xr.hlsInstance&&(xr.hlsInstance.detachMedia(),xr.hlsInstance.destroy()),ti();Qo().then(function(){if(!er.clipIndicesToLoadOrPreload.includes(Jr.indexInCollection))return ti();if(!Hls.isSupported())return Hn(new Error("HLS is not supported"));if(Jr.liveStreamUrl&&Jr.liveStreamUrl===xr.src)return ti();var Gn=xr.hlsInstance||new Hls;Gn.loadSource(Jr.url),Gn.attachMedia(xr),Gn.on(Hls.Events.MEDIA_ATTACHED,function(){var yo=xr.src;return xr.hlsInstance=Gn,Jr.liveStreamUrl=yo,xr.addEventListener("loadeddata",function(){xr.src===yo&&xr.readyState>=2&&xr.removeAttribute("poster")}),ti()}),Gn.on(Hls.Events.ERROR,function(yo,Go){return Hn(Go&&typeof Go=="object"&&"details"in Go?new Error(Go.details):new Error("Unknown HLS error"))})}).catch(function(Gn){return Hn(Gn)})})},[er,Qo]),Fs=(0,w.useCallback)(function(){er.appendedSlides.forEach(function(xr,Jr){if((0,nr.A6)(xr)){var ti=er.isActiveSlide(xr);return er.setHasUserSeenAnAd(!0),void xr.show(ti,{startMuted:ti&&fa(xr.pageType)})}var Hn=xr,Ho=er.clipIndicesToLoadOrPreload.includes(Hn.indexInCollection),Gn=Ta.current[Jr];Ho?(Bs(Hn).then(function(yo){if(er.clipIndicesToLoadOrPreload.includes(Hn.indexInCollection)){var Go=Gn.readyState>=2,Ca=!1;Gn.src&&(Ca=Hn.isLive&&Hn.liveStreamUrl?Gn.src===Hn.liveStreamUrl:Gn.src===Hn.url);var Ga=er.activeClipIndexInCollection===Hn.indexInCollection;Ca&&Go?Gn.removeAttribute("poster"):Ga||Gn.setAttribute("poster",yo.src),Ga&&jo(er.activeAppendedSlideIndex,yo.src)}}).catch(function(){}),Gn&&zs(Gn,Hn).then(function(){var yo=er.activeClipIndexInCollection===Hn.indexInCollection,Go=er.activeAppendedSlideIndex===Jr;yo&&Go&&er.isActiveCategory&&Hr.Z.isPlaybackEnabled?Gn.play().catch(function(Ca){var Ga=er.activeClipIndexInCollection===Hn.indexInCollection,Il=er.activeAppendedSlideIndex===Jr;Ca.name==="AbortError"&&Ga&&Il?Gn.play():console.error(Ca)}):Gn.pause()}).catch(function(yo){Vr.Z.logError(yo.message)})):Gn&&Gn.pause()})},[er,Bs,jo,zs]);(0,w.useEffect)(function(){if(Ii&&Ns)return er.isUserScrollingQuickly&&da(!0),er.onScrollEnd(function(){Fs()}),void ua(!1)},[er,Ii,da,Fs,Ns]);var Us=(0,w.useCallback)(function(xr){er.setCollectionClips(xr,Sn),Vs(er.appendedSlides.length),ua(!0)},[er,Sn]),Ws=(0,w.useCallback)(function(xr,Jr){ua(!1),er.goToClip(xr,Jr),Vs(er.appendedSlides.length),ki()},[er,ki]);(0,w.useEffect)(function(){lr.length!==0&&(pi?mr?Ws(mr,lr):er.appendedSlides.length>0?(er.reopenClipPlayer(),ua(!0)):Us(lr):da())},[mr,Us,lr,er,pi,da,Ws]);var Pl=(0,w.useCallback)(function(xr,Jr){er.appendedSlides[xr]&&(er.recordNavigationEvent({appendedSlideIndex:xr,direction:Jr}),da(),ua(!0))},[er,da]);return(0,w.useEffect)(function(){var xr=Ta.current;return function(){ua(!1),er.closePlayer(),Object.values(xr).forEach(function(Jr){var ti,Hn;Jr&&((ti=Jr.hlsInstance)===null||ti===void 0||ti.detachMedia(),(Hn=Jr.hlsInstance)===null||Hn===void 0||Hn.destroy())})}},[]),{clipsVideosEls:Ta,totalAppendedSlides:Al,updateActiveIndex:Pl}})({activeClipId:jn,clips:kn,clipsNavService:Oe,initialClipId:at,isActiveCategory:lo||!Mi,isPlayerReady:Wo,onSlidesAppendedOrReappended:ja,updateClipPlayerBackgroun
139d:Rr}),hl=Ps.clipsVideosEls,ds=Ps.updateActiveIndex,go=$r({clips:kn,clipsNavService:Oe,collection:ot,categoryName:Pe,initialClipId:at,isCategoryNavigation:Je,setIsReady:wa}),la=go.clipDismissedReason,ml=go.incrementLoopCount,Is=go.onAfterInit,Ha=go.onDestroy,ks=go.onSlideNext,Os=go.onSlidePrev,ps=go.onClose,Ls=go.onTopLevelBackTap,Rs=go.sendFinishedClipCommandOnClipCategorySelect,Ms=go.sendOpenedClipCommandOnClipCategoryReset,gl=(0,w.useCallback)(function(Ft,mr){Yn.current=new nr.ZP(Ft),Yn.current.isAnimating=!0,Yn.current.isActiveCategory=!0,Oe.isAnimating=!0,Oe.isActiveCategory=!1,Wa(!0),Rs(mr),Sa(!1),Fa(Ft),setTimeout(function(){var lr;Wa(!1),Va(!0),(lr=ai.current)===null||lr===void 0||lr.swiper.disable(),si.current=!1,Jn.current=void 0,Oe.isAnimating=!1,Yn.current&&(Yn.current.isAnimating=!1)},nr.zn)},[Oe,Rs]),yl=(0,w.useCallback)(function(){if(Mi){Jn.current=void 0,wn(!0);var Ft=ai.current;Ft==null||Ft.swiper.enable(),si.current=!0,Va(!1),Ms(),Sa(!0),setTimeout(function(){Oe.isActiveCategory=!0,Yn.current&&(Yn.current.isActiveCategory=!1),wn(!1),Fa(void 0),Yn.current=void 0},2*nr.zn)}},[Mi,Oe,Ms]),ca=(0,w.useCallback)(function(){oo.current&&(oo.current.classList.remove(di.fadeInAnimation),oo.current.classList.add(di.fadeOutAnimation)),setTimeout(function(){Pr(!1),zt==null||zt()},nr.zn)},[zt]),fs=(0,w.useMemo)(function(){return ft&&Nr?function(){Ls()}:Je&&st?function(){st();var Ft=ai.current;Ft!=null&&Ft.swiper&&Ha(Ft==null?void 0:Ft.swiper)}:function(){ca(),setTimeout(function(){ps==null||ps()},nr.zn)}},[ca,ft,Je,ps,Ls,st,Nr,Ha]),Ea=(0,w.useCallback)(function(Ft){var mr,lr,er,Sn,pi,Ii=null,ki=Ft instanceof KeyboardEvent&&Ft.key==="Escape";ki&&ft||(ki&&it?fs():(Ft instanceof BeforeUnloadEvent?Ii=Co.z.windowUnload:ki&&(Ii=Co.z.escapeKeyPressed),Ii&&(la.current=Ii,Hr.Z.isVisible=!1,(lr=(mr=ai==null?void 0:ai.current)===null||mr===void 0?void 0:mr.swiper)===null||lr===void 0||lr.disable(),(Sn=(er=ai==null?void 0:ai.current)===null||er===void 0?void 0:er.swiper)===null||Sn===void 0||Sn.destroy(),(pi=Io.onPlayerDismissed)===null||pi===void 0||pi.call(Io)),zt==null||zt()))},[la,ft,it,Io,fs,zt]);(0,w.useEffect)(function(){return window.addEventListener("keydown",Ea),window.addEventListener("beforeunload",Ea),function(){window.removeEventListener("keydown",Ea),window.removeEventListener("beforeunload",Ea)}},[Ea]);var _l=(0,w.useMemo)(function(){return(function(Ft){var mr=Ft.topLevelBackButtonEnabled;return Ft.isInline?mr!==void 0&&mr?"Back":null:Ft.isCategoryNavigation&&Ft.resetCategory?"Back":"Close player"})({isInline:ft,isCategoryNavigation:Je,resetCategory:st,topLevelBackButtonEnabled:Nr})},[Je,ft,st,Nr]);(0,w.useEffect)(function(){var Ft=ai==null?void 0:ai.current;if(Wo&&Ft&&!Je){var mr=function(er){var Sn=er.detail[0];Ha(Sn)},lr="swiperdestroy";return Ft.addEventListener(lr,mr),function(){Ft.removeEventListener(lr,mr)}}},[Wo,Ha,Je]);var vl=(0,w.useCallback)(function(){Fe?Fe(function(Ft){return!Ft}):ao(function(Ft){return!Ft})},[Fe]),bl=(0,w.useMemo)(function(){return!(si.current&&!Mi)||(De??ba)},[Mi,De,ba]),wl=(0,w.useMemo)(function(){return Array.from(Array(vi).keys())},[vi]),Sl=(0,w.useCallback)(function(Ft,mr){if(mr.target&&!ft&&!it&&Array.from(mr.target.classList).some(function(er){return er.startsWith("slideWrapper")})){var lr=Ze||In;lr?lr():(ca(),setTimeout(function(){var er;la.current=Co.z.backgroundTapped,(er=Ft.onClose)===null||er===void 0||er.call(Ft)},nr.zn))}},[ca,la,ft,it,In,Ze]),El=(0,w.useCallback)(function(Ft){Is(Ft),(lt||Kn)(function(mr){return function(){mr==null||mr(),ca(),setTimeout(function(){var lr;la.current=Co.z.backgroundTapped,(lr=Ft.onClose)===null||lr===void 0||lr.call(Ft)},nr.zn)}})},[ca,la,Is,lt]),Tl=(0,w.useCallback)(function(Ft){var mr=Ft.realIndex,lr=Ft.realIndexBeforeTransition;if(!Oe.isProbablyInitialNavigation&&lr!==mr){var er=vi-1,Sn=mr>=lr;lr===er&&mr===0&&(Sn=!0),lr===0&&mr===er&&(Sn=!1),ds(mr,Sn?"next":"prev"),Tt||(Sn?ks(Ft):Os(Ft))}},[Oe,Tt,ks,Os,vi,ds]),Cl=(0,w.useCallback)(function(){Oe.isActiveCategory=!0,Oe.firstNavigationTimestamp=Date.now()},[Oe]),xl=(0,w.useMemo)(function(){return!((Wo&&kn||Je)&&so)},[Je,Wo,so,kn]);return(0,w.useEffect)(function(){oo.current&&Qr.Z.setDocumentStyle({element:oo.current,id:"lightbox-theme-".concat(ut||"clips"),playerType:Qr.G.Clips,selector:".".concat(di.lightbox),theme:ir})},[ut,ir]),(0,w.useEffect)(function(){Jt.Z.on(eo._.openedPlayer,function(Ft){var mr,lr,er;if(!Je&&Ft.clipId&&Ft.collection===ot&&Ft.basename===ut){var Sn=Oe.appendedSlides.findIndex(function(ki){return ki.id===Ft.clipId}),pi=Oe.activeAppendedSlideIndex;
139if(Sn===pi)return;if(Sn>=0){var Ii=!1;if(Math.abs(Sn-pi)===1&&(Ii=!0),Sn===0&&pi===vi-1&&(Ii=!0),Sn===vi-1&&pi===0&&(Ii=!0),Ii&&((mr=ai.current)===null||mr===void 0?void 0:mr.swiper))return void((er=(lr=ai.current)===null||lr===void 0?void 0:lr.swiper)===null||er===void 0||er.slideTo(Sn,600))}on(Ft.clipId)}})},[ut,Oe,ot,Je,vi,ds]),w.default.createElement(pl,{id:Pe||"",isInline:ft,isOpen:Vn,className:Yt()(di.lightbox,Tr.dO,(E={},E[di.fadeInAnimation]=!Je,E[di.isCategory]=Je,E[di.isAnimating]=Lt||Gt,E[di.isIOS]=dr.gn,E[di.isSafari]=dr.G6,E)),style:{"--lightbox-animation-duration":"".concat(nr.zn,"ms")},ref:oo},w.default.createElement(w.default.Fragment,null,xl&&w.default.createElement(bo,null),vi>0&&w.default.createElement(sl,(0,S.pi)({swiperRef:ai,on:{slideTransitionEnd:Tl,beforeInit:Cl,afterInit:El,click:Sl}},ul,{isVisible:si.current,loop:vi>1}),wl.map(function(Ft){var mr,lr=Oe.appendedSlides[Ft],er=Oe.activeAppendedSlideIndex===Ft,Sn={closeButtonTitle:_l,isActiveSwiperSlide:er,isAnimatingIn:Jo||Gt,isAnimatingOut:Qt||Lt,isMuted:bl,isLastPlayerInStack:lo,onClose:fs,toggleMute:vl};return w.default.createElement(ll,{key:Ft,"data-hash":ir.clipPlayer.disableUrls?"":(0,nr.A6)(lr)?"".concat(ut,"/").concat(ot,"/").concat(((mr=Oe.activeClip)===null||mr===void 0?void 0:mr.id)||""):ft?lr.id:"".concat(ut,"/").concat(ot,"/").concat(lr.id),"data-id":lr.id,style:{opacity:so?1:0}},lr&&Wo?w.default.createElement(w.default.Fragment,null,(0,nr.A6)(lr)?w.default.createElement(Ya,(0,S.pi)({key:Ft,ad:lr,clipsNavService:Oe,updateClipPlayerBackground:Rr},Sn)):w.default.createElement(na,(0,S.pi)({clipsNavService:Oe,feedTitle:Uo.title,feedTitleImageUrl:Uo.imageUrl,clip:lr,clipIndex:lr.indexInCollection,collection:ot,incrementLoopCount:ml,handleSelectCategory:gl,currentClipNavigationCategory:Pe,isPausedGlobally:cs,showCategories:pr,videoRef:function(pi){return hl.current[Ft]=pi}},Sn))):null)})),!Je&&w.default.createElement("div",{className:Yt()(di.blurredBackground,(k={},k[di.isMobile]=dr.tq,k[di.isCategoryNavigation]=Je,k)),ref:mo}),!!Mi&&w.default.createElement(As,{clips:$n,clipsNavService:Yn.current||Oe,feedHeader:{title:Mi},isCategoryNavigation:!0,collection:ot,basename:ut,resetCategory:yl,currentBackgroundContainer:ke||mo.current,currentBackgroundImageUrl:Ve||Jn.current,currentClipNavigationCategory:Mi,currentMutedState:De??ba,setCurrentMutedState:Fe||ao,initialCategoryId:null,isInline:!1,isParentInline:ft||it,isDisabled:us,isNavigationAnimatingIn:Jo,isNavigationAnimatingOut:Qt,onLightboxClick:Ze||In,setOnLightboxClick:lt||Kn,supportsNavigation:pr})))},pl=(0,w.forwardRef)(function(I,E){var k=I.children,O=I.isInline,Y=I.isOpen,W=(0,S._T)(I,["children","isInline","isOpen"]);return O?w.default.createElement("div",{className:di.lightbox,ref:E},k):w.default.createElement(gt,{open:Y},w.default.createElement(Ye,(0,S.pi)({},W,{ref:E}),w.default.createElement(Wn,null,w.default.createElement(St,null,"Clips Player")),k))}),fl=As},1822:function(f,b,m){m.d(b,{Ev:function(){return te},M:function(){return ee},cV:function(){return F},gX:function(){return K},gv:function(){return z},n1:function(){return V}});var S=m(7582),w=m(3269),T=m(1736),A=m(2385),C=m(3914),P=m(6661),B=m(1438),U=m(4366),D=function(H){return!!H},$=function(H){return(H==null?void 0:H.trim())||void 0},z=function(H){var X,J,G,Q,pe=H.clip,ye=H.collection,de=H.nextClip,_e=null,Re=C.Z.eventTrackingOptions.enableAdTracking;if(((X=P.Z.settings)===null||X===void 0?void 0:X.adsFrom)===B.m.storyteller){var ge=A.Z.buildUrl("ads/clips",Re),Ce=new URLSearchParams(Re?{collection:ye,clipCategories:pe.categories.join(","),nextClipCategories:((J=de==null?void 0:de.categories)===null||J===void 0?void 0:J.join(","))||""}:{});_e={type:"custom",remoteUrl:"".concat(ge,"&").concat(Ce.toString())}}if(((G=P.Z.settings)===null||G===void 0?void 0:G.adsFrom)===B.m.integratingApp&&T.Z.getAdConfig){var Me=T.Z.getAdConfig({clip:{id:"",categories:pe.clipCategories},nextClip:de?{categories:de.clipCategories}:void 0,collection:ye});if(Me&&K(Me)){var Ue=Me.publisherProvidedId,Ne=(0,S._T)(Me,["publisherProvidedId"]),We=Re?$(Ue):void 0,et=Re?{stCollection:ye,stClipCategories:pe.clipCategories.map(function(rt){return rt.externalId}).filter(D),stNextClipCategories:((Q=de==null?void 0:de.clipCategories)===null||Q===void 0?void 0:Q.map(function(rt){return rt.externalId}).filter(D))||[]}:{};_e=(0,S.pi)((0,S.pi)((0,S.pi)({},Ne),We?{publisherProvidedId:We}:{}),{customTargeting:(0,S.pi)((0,S.pi)({},et),Me.customTargeting)})}}return _e},V=function(H){var X,J,G,Q,pe,ye=H.categories,de=H.story,_e=null,Re=C.Z.eventTrackingOptions.enableAdTracking,ge=ye!=null&&ye.length?ye[0]:void 0,Ce=((J=(X=de.categories.filter(function(ne){return ne.externalId===ge})[0])===null||X===void 0?void 0:X.placement)===null||J===void 0?void 0:J.code)||"";if(((G=P.Z.settings)===null||G===void 0?void 0:G.adsFrom)===B.m.storyteller){var Me=A.Z.buildUrl("ads/stories",Re),Ue=new URLSearchParams(Re?{placement:Ce,categories:(ye==null?void 0:ye.join(","))||"",storyCategories:de.categories.map(function(ne){return ne.externalId}).join(",")}:{});_e={type:"custom",remoteUrl:"".concat(Me,"&").concat(Ue.toString())}}if(((Q=P.Z.settings)===null||Q===void 0?void 0:Q.adsFrom)===B.m.integratingApp&&T.Z.getAdConfig){var Ne=T.Z.getAdConfig({placement:Ce,categories:ye||[],story:{id:"",categories:de.categories.map(function(ne){return new w.B(ne)})}});if(Ne&&K(Ne)){var We=Ne.publisherProvidedId,et=(0,S._T)(Ne,["publisherProvidedId"]),rt=Re?$(We):void 0,re=Re?{stCurrentCategory:((pe=(0,U.x)(de.categories,ye||[]))===null||pe===void 0?void 0:pe.externalId)||"",stPlacement:Ce,stCategories:de.categories.map(function(ne){return ne.externalId}).filter(D)}:{};_e=(0,S.pi)((0,S.pi)((0,S.pi)({},et),rt?{publisherProvidedId:rt}:{}),{customTargeting:(0,S.pi)((0,S.pi)({},re),Ne.customTargeting)})}}return _e},F=function(H){if(K(H)){var X=C.Z.eventTrackingOptions.enableAdTracking?$(H.publisherProvidedId):void 0;return{type:"doubleclick","data-slot":H.slot,json:(0,S.pi)({targeting:H.customTargeting||{}},X?{ppid:X}:{})}}return{type:"custom","data-url":H.remoteUrl}},ee=function(H,X){if(!H)return"";var J={"ad-attributes":F(H),"storyteller-attributes":(0,S.pi)((0,S.pi)({adStrategy:X==null?void 0:X.strategy,adFrequency:X==null?void 0:X.frequency},X&&"buffer"in X?{adBuffer:X==null?void 0:X.buffer}:{}),X&&"initialIndex"in X?{adInitialIndex:X.initialIndex}:{})};return JSON.stringify(J,function(G,Q){if(Q!==null)return Q})},te=function(H){return!(!H||K(H)&&!H.slot)},K=function(H){return H.type!=="custom"}},1462:function(f,b,m){var S,w;m.d(b,{q:function(){return S}}),(w=S||(S={}))[w.local=0]="local",w[w.dev=1]="dev",w[w.staging=2]="staging",w[w.production=3]="production"},942:function(f,b,m){var S,w;m.d(b,{v:function(){return S}}),(w=S||(S={})).start="start",w.center="center",w.end="end"},9628:function(f,b,m){var S,w;m.d(b,{R:function(){return S}}),(w=S||(S={})).left="left",w.center="center",w.right="right"},5754:function(f,b,m){m.d(b,{W:function(){return Dt}});
139var S=m(7582),w="colors-primary",T="colors-success",A="colors-alert",C={primary:"colors-white-primary",secondary:"colors-white-secondary",tertiary:"colors-white-tertiary"},P={primary:"colors-black-primary",secondary:"colors-black-secondary",tertiary:"colors-black-tertiary"},B="colors-focus-indicator",U="primitives-corner-radius",D="lists-background-color",$={tileSpacing:"row-tile-spacing",startInset:"row-start-inset",endInset:"row-end-inset",startPadding:"row-start-padding",endPadding:"row-end-padding",scrollIndicatorBackgroundColor:"scroll-indicator-background",scrollIndicatorColor:"scroll-indicator-color"},z={tileSpacing:"grid-tile-spacing",topInset:"grid-top-inset",bottomInset:"grid-bottom-inset",startInset:"grid-start-inset",endInset:"grid-end-inset"},V={textSize:"tile-chip-text-size"},F={textSize:"tile-title-text-size",lineHeight:"tile-title-line-height",alignment:"tile-title-alignment",fontWeight:"tile-title-font-weight"},ee={liveChip:{readImage:"circular-live-chip-read-image",unreadImage:"circular-live-chip-unread-image",readBackgroundColor:"circular-live-chip-read-background-color",unreadBackgroundColor:"circular-live-chip-unread-background-color",readTextColor:"circular-live-chip-read-text-color",unreadTextColor:"circular-live-chip-unread-text-color"},title:{readTextColor:"circular-title-read-text-color",unreadTextColor:"circular-title-unread-text-color"},unreadIndicatorColor:"circular-unread-indicator-color",readIndicatorColor:"circular-read-indicator-color",readStrokeWidth:"circular-tile-read-stroke-width",unreadStrokeWidth:"circular-tile-unread-stroke-width"},te={chip:{alignment:"rectangular-chip-alignment"},liveChip:{readImage:"rectangular-live-chip-read-image",unreadImage:"rectangular-live-chip-unread-image",readBackgroundColor:"rectangular-live-chip-read-background-color",unreadBackgroundColor:"rectangular-live-chip-unread-background-color",readTextColor:"rectangular-live-chip-read-text-color",unreadTextColor:"rectangular-live-chip-unread-text-color"},title:{textColor:"rectangular-title-color"},padding:"rectangular-tile-padding",unreadIndicator:{image:"rectangular-unread-indicator-image",backgroundColor:"rectangular-unread-indicator-background-color",textColor:"rectangular-unread-indicator-text-color"}},K="button-background-color",H="button-text-color",X="button-text-case",J="button-corner-radius",G="instructions-heading-color",Q="instructions-subheading-color",pe="instructions-background-color",ye={textColor:"instructions-button-text-color",backgroundColor:"instructions-button-background-color"},de={answerTextColor:"poll-answer-text-color",percentBarColor:"poll-percent-bar-color",selectedAnswerBorderColor:"poll-selected-answer-border-color",answeredMessageTextColor:"poll-answered-message-text-color",selectedAnswerBorderImage:"poll-selected-answer-border-image"},_e={correctColor:"quiz-correct-color",incorrectColor:"quiz-incorrect-color"},Re=m(4883),ge=m(9984),Ce=m(8199),Me=m(3089),Ue=(function(){function Qe(){this.backgroundColor=null,this.textColor=null,this.textCase=Me.q.default,this.cornerRadius=null}return(0,S.gn)([(0,ge.P)(K),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"backgroundColor",void 0),(0,S.gn)([(0,ge.P)(H),(0,Ce.t)(function(pt){return{default:pt.colors.black.primary}})],Qe.prototype,"textColor",void 0),(0,S.gn)([(0,ge.P)(X,Re.g.textCase)],Qe.prototype,"textCase",void 0),(0,S.gn)([(0,ge.P)(J,Re.g.pixel),(0,Ce.t)(function(pt){return{default:pt.primitives.cornerRadius}})],Qe.prototype,"cornerRadius",void 0),Qe})(),Ne=m(8705),We=(function(){function Qe(){this.primary="#1a1a1a",this.secondary=null,this.tertiary=null}return(0,S.gn)([(0,ge.P)(P.primary)],Qe.prototype,"primary",void 0),(0,S.gn)([(0,ge.P)(P.secondary),(0,Ce.t)(function(pt){return{default:(0,Ne.Gz)(pt.colors.black.primary,.85)}})],Qe.prototype,"secondary",void 0),(0,S.gn)([(0,ge.P)(P.tertiary),(0,Ce.t)(function(pt){return{default:(0,Ne.Gz)(pt.colors.black.primary,.7)}})],Qe.prototype,"tertiary",void 0),Qe})(),et=(function(){function Qe(){this.primary="#ffffff",this.secondary=null,this.tertiary=null}return(0,S.gn)([(0,ge.P)(C.primary)],Qe.prototype,"primary",void 0),(0,S.gn)([(0,ge.P)(C.secondary),(0,Ce.t)(function(pt){return{default:(0,Ne.Gz)(pt.colors.white.primary,.85)}})],Qe.prototype,"secondary",void 0),(0,S.gn)([(0,ge.P)(C.tertiary),(0,Ce.t)(function(pt){return{default:(0,Ne.Gz)(pt.colors.white.primary,.7)}})],Qe.prototype,"tertiary",void 0),Qe})(),rt=(function(){function Qe(){this.primary="#1C62EB",this.success="#3bb327",this.alert="#e21219",this.white=new et,this.black=new We,this.focusIndicator=null}return(0,S.gn)([(0,ge.P)(w)],Qe.prototype,"primary",void 0),(0,S.gn)([(0,ge.P)(T)],Qe.prototype,"success",void 0),(0,S.gn)([(0,ge.P)(A)],Qe.prototype,"alert",void 0),(0,S.gn)([(0,ge.P)(B),(0,Ce.t)(function(pt){return{default:pt.colors.primary,dark:pt.colors.primary}})],Qe.prototype,"focusIndicator",void 0),Qe})(),re=(function(){function Qe(){this.answerTextColor=null,this.percentBarColor="#CDD0DC",this.selectedAnswerBorderColor=null,this.answeredMessageTextColor=null,this.selectedAnswerBorderImage=null,this.showVoteCount=!0,this.showPercentBarBackgroun
139d=!1}return(0,S.gn)([(0,ge.P)(de.answerTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.black.primary}})],Qe.prototype,"answerTextColor",void 0),(0,S.gn)([(0,ge.P)(de.percentBarColor)],Qe.prototype,"percentBarColor",void 0),(0,S.gn)([(0,ge.P)(de.selectedAnswerBorderColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.tertiary}})],Qe.prototype,"selectedAnswerBorderColor",void 0),(0,S.gn)([(0,ge.P)(de.answeredMessageTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.tertiary}})],Qe.prototype,"answeredMessageTextColor",void 0),(0,S.gn)([(0,ge.P)(de.selectedAnswerBorderImage)],Qe.prototype,"selectedAnswerBorderImage",void 0),Qe})(),ne=(function(){function Qe(){this.correctColor=null,this.incorrectColor=null}return(0,S.gn)([(0,ge.P)(_e.correctColor),(0,Ce.t)(function(pt){return{default:pt.colors.success}})],Qe.prototype,"correctColor",void 0),(0,S.gn)([(0,ge.P)(_e.incorrectColor),(0,Ce.t)(function(pt){return{default:pt.colors.alert}})],Qe.prototype,"incorrectColor",void 0),Qe})(),Se=function(){this.poll=new re,this.triviaQuiz=new ne},he=(function(){function Qe(){this.textColor=null,this.backgroundColor=null}return(0,S.gn)([(0,ge.P)(ye.textColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary,dark:pt.colors.black.primary}})],Qe.prototype,"textColor",void 0),(0,S.gn)([(0,ge.P)(ye.backgroundColor),(0,Ce.t)(function(pt){return{default:pt.colors.black.primary,dark:pt.colors.white.primary}})],Qe.prototype,"backgroundColor",void 0),Qe})(),we=(function(){function Qe(){this.show=!0,this.headingColor=null,this.subHeadingColor=null,this.backgroundColor=null,this.button=new he,this.icons={}}return(0,S.gn)([(0,ge.P)(G),(0,Ce.t)(function(pt){return{default:pt.colors.black.primary,dark:pt.colors.white.primary}})],Qe.prototype,"headingColor",void 0),(0,S.gn)([(0,ge.P)(Q),(0,Ce.t)(function(pt){return{default:pt.colors.black.secondary,dark:pt.colors.white.secondary}})],Qe.prototype,"subHeadingColor",void 0),(0,S.gn)([(0,ge.P)(pe),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary,dark:pt.colors.black.primary}})],Qe.prototype,"backgroundColor",void 0),Qe})(),xe=(function(){function Qe(){this.tileSpacing=8,this.topInset=12,this.bottomInset=12,this.startInset=16,this.endInset=16,this.columns=2}return(0,S.gn)([(0,ge.P)(z.tileSpacing,Re.g.pixel)],Qe.prototype,"tileSpacing",void 0),(0,S.gn)([(0,ge.P)(z.topInset,Re.g.pixel)],Qe.prototype,"topInset",void 0),(0,S.gn)([(0,ge.P)(z.bottomInset,Re.g.pixel)],Qe.prototype,"bottomInset",void 0),(0,S.gn)([(0,ge.P)(z.startInset,Re.g.pixel)],Qe.prototype,"startInset",void 0),(0,S.gn)([(0,ge.P)(z.endInset,Re.g.pixel)],Qe.prototype,"endInset",void 0),Qe})(),ze=(function(){function Qe(pt){this.tileSpacing=8,this.startInset=12,this.endInset=12,this.startPadding=0,this.endPadding=0,this.showScrollIndicator=!0,this.scrollIndicatorBackgroundColor="white",this.scrollIndicatorColor="rgba(26, 26, 26, 0.7)",this.scrollIndicatorFade=!0,this.scrollIndicatorInlineAlignment="inside",pt&&Object.assign(this,pt)}return(0,S.gn)([(0,ge.P)($.tileSpacing,Re.g.pixel)],Qe.prototype,"tileSpacing",void 0),(0,S.gn)([(0,ge.P)($.startInset,Re.g.pixel)],Qe.prototype,"startInset",void 0),(0,S.gn)([(0,ge.P)($.endInset,Re.g.pixel)],Qe.prototype,"endInset",void 0),(0,S.gn)([(0,ge.P)($.startPadding,Re.g.pixel)],Qe.prototype,"startPadding",void 0),(0,S.gn)([(0,ge.P)($.endPadding,Re.g.pixel)],Qe.prototype,"endPadding",void 0),(0,S.gn)([(0,ge.P)($.scrollIndicatorBackgroundColor)],Qe.prototype,"scrollIndicatorBackgroundColor",void 0),(0,S.gn)([(0,ge.P)($.scrollIndicatorColor)],Qe.prototype,"scrollIndicatorColor",void 0),Qe})(),Ee=(function(){function Qe(pt){this.row=new ze,this.grid=new xe,this.backgroundColor=null,pt&&Object.assign(this,pt)}return(0,S.gn)([(0,ge.P)(D),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary,dark:pt.colors.black.primary}})],Qe.prototype,"backgroundColor",void 0),Qe})(),se=m(9628),L=function(){this.actionButton={alignment:se.R.center,icon:null,showOnMobile:!0},this.disableUrls=!1,this.showStoryIcon=!0,this.showShareButton=!0,this.playAllStories=!1,this.icons={}},j=(function(){function Qe(){this.cornerRadius=4}return(0,S.gn)([(0,ge.P)(U,Re.g.pixel)],Qe.prototype,"cornerRadius",void 0),Qe}
139)(),Z=(function(){function Qe(){this.unreadBackgroundColor=null,this.readBackgroundColor=null,this.unreadImage=null,this.readImage=null,this.readTextColor=null,this.unreadTextColor=null}return(0,S.gn)([(0,ge.P)(ee.liveChip.unreadBackgroundColor),(0,Ce.t)(function(pt){return{default:pt.colors.alert}})],Qe.prototype,"unreadBackgroundColor",void 0),(0,S.gn)([(0,ge.P)(ee.liveChip.readBackgroundColor),(0,Ce.t)(function(pt){return{default:pt.colors.black.tertiary}})],Qe.prototype,"readBackgroundColor",void 0),(0,S.gn)([(0,ge.P)(ee.liveChip.unreadImage)],Qe.prototype,"unreadImage",void 0),(0,S.gn)([(0,ge.P)(ee.liveChip.readImage)],Qe.prototype,"readImage",void 0),(0,S.gn)([(0,ge.P)(ee.liveChip.readTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"readTextColor",void 0),(0,S.gn)([(0,ge.P)(ee.liveChip.unreadTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"unreadTextColor",void 0),Qe})(),le=(function(){function Qe(){this.readTextColor=null,this.unreadTextColor=null}return(0,S.gn)([(0,ge.P)(ee.title.readTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.black.tertiary,dark:pt.colors.white.tertiary}})],Qe.prototype,"readTextColor",void 0),(0,S.gn)([(0,ge.P)(ee.title.unreadTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.black.primary,dark:pt.colors.white.primary}})],Qe.prototype,"unreadTextColor",void 0),Qe})(),Te=(function(){function Qe(){this.liveChip=new Z,this.title=new le,this.unreadIndicatorColor=null,this.readIndicatorColor="#C5C5C5",this.unreadStrokeWidth=2,this.readStrokeWidth=1,this.scrollIndicatorBlockAlignment="cell"}return(0,S.gn)([(0,ge.P)(ee.unreadIndicatorColor),(0,Ce.t)(function(pt){return{default:pt.colors.primary}})],Qe.prototype,"unreadIndicatorColor",void 0),(0,S.gn)([(0,ge.P)(ee.readIndicatorColor)],Qe.prototype,"readIndicatorColor",void 0),(0,S.gn)([(0,ge.P)(ee.unreadStrokeWidth)],Qe.prototype,"unreadStrokeWidth",void 0),(0,S.gn)([(0,ge.P)(ee.readStrokeWidth)],Qe.prototype,"readStrokeWidth",void 0),Qe})(),Ae=(function(){function Qe(){this.image=null,this.backgroundColor=null,this.textColor=null}return(0,S.gn)([(0,ge.P)(te.unreadIndicator.image)],Qe.prototype,"image",void 0),(0,S.gn)([(0,ge.P)(te.unreadIndicator.backgroundColor),(0,Ce.t)(function(pt){return{default:pt.colors.primary}})],Qe.prototype,"backgroundColor",void 0),(0,S.gn)([(0,ge.P)(te.unreadIndicator.textColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"textColor",void 0),Qe})(),Le=(function(){function Qe(){this.textColor=null}return(0,S.gn)([(0,ge.P)(te.title.textColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"textColor",void 0),Qe})(),Ke=m(942),nt=(function(){function Qe(){this.alignment=Ke.v.end}return(0,S.gn)([(0,ge.P)(te.chip.alignment)],Qe.prototype,"alignment",void 0),Qe})(),Be=(function(){function Qe(){this.unreadBackgroundColor=null,this.readBackgroundColor=null,this.unreadImage=null,this.readImage=null,this.readTextColor=null,this.unreadTextColor=null}return(0,S.gn)([(0,ge.P)(te.liveChip.unreadBackgroundColor),(0,Ce.t)(function(pt){return{default:pt.colors.alert}})],Qe.prototype,"unreadBackgroundColor",void 0),(0,S.gn)([(0,ge.P)(te.liveChip.readBackgroundColor),(0,Ce.t)(function(pt){return{default:pt.colors.black.tertiary}})],Qe.prototype,"readBackgroundColor",void 0),(0,S.gn)([(0,ge.P)(te.liveChip.unreadImage)],Qe.prototype,"unreadImage",void 0),(0,S.gn)([(0,ge.P)(te.liveChip.readImage)],Qe.prototype,"readImage",void 0),(0,S.gn)([(0,ge.P)(te.liveChip.readTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"readTextColor",void 0),(0,S.gn)([(0,ge.P)(te.liveChip.unreadTextColor),(0,Ce.t)(function(pt){return{default:pt.colors.white.primary}})],Qe.prototype,"unreadTextColor",void 0),Qe})(),vt=(function(){function Qe(){this.chip=new nt,this.liveChip=new Be,this.padding=8,this.unreadIndicator=new Ae,this.title=new Le,this.showWebStoriesIcon=!1,this.showGradient=!0}return(0,S.gn)([(0,ge.P)(te.padding,Re.g.pixel)],Qe.prototype,"padding",void 0),Qe})(),ht=(function(){function Qe(){this.textSize=11,this.show=!0}return(0,S.gn)([(0,ge.P)(V.textSize,Re.g.pixel)],Qe.prototype,"textSize",void 0),Qe})(),mt=(function(){function Qe(){this.textSize=11,this.lineHeight=13,this.alignment=Ke.v.center,this.fontWeight=700,this.show=!0}return(0,S.gn)([(0,ge.P)(F.textSize,Re.g.pixel)],Qe.prototype,"textSize",void 0),(0,S.gn)([(0,ge.P)(F.lineHeight,Re.g.pixel)],Qe.prototype,"lineHeight",void 0),(0,S.gn)([(0,ge.P)(F.alignment,Re.g.textAlign)],Qe.prototype,"alignment",void 0),(0,S.gn)([(0,ge.P)(F.fontWeight)],Qe.prototype,"fontWeight",void 0),Qe})(),$t=function(){this.chip=new ht,this.title=new mt,this.circularTile=new Te,this.rectangularTile=new vt},Mt=function(){this.disableUrls=!1,this.showShareButton=!0,this.showLikeButton=!0},Dt=(function(){function Qe(pt){this.colors=new rt,this.font="inherit",this.primitives=new j,this.lists=new Ee,this.storyTiles=new $t,this.player=new L,this.clipPlayer=new Mt,this.buttons=new Ue,this.instructions=new we,this.engagementUnits=new Se,this.isDark=!1,pt&&this.copyProperties(this,pt,[])}return Qe.prototype.copyProperties=function(pt,Ut,jt){var hr=this;jt===void 0&&(jt=[]),Object.keys(Ut).forEach(function(_r){typeof Ut[_r]=="object"&&Ut[_r]!==null?hr.copyProperties(pt,Ut[_r],(0,S.ev)((0,S.ev)([],jt,!0),[_r],!1)):hr.setNestedThemeProperty(pt,Ut[_r],(0,S.ev)((0,S.ev)([],jt,!0),[_r],!1))})},Qe.prototype.setNestedThemeProperty=function(pt,Ut,jt){var hr=jt[0],_r=jt.slice(1);_r.length?this.setNestedThemeProperty(pt[hr],Ut,_r):pt[hr]=Ut},Qe.prototype.toPlainObject=function(){return this},(0,S.gn)([(0,ge.P)("font",Re.g.any)],Qe.prototype,"font",void 0),Qe})()},3089:function(f,b,m){var S,w;m.d(b,{q:function(){return S}}),(w=S||(S={})).default="default",w.upper="upper",w.lower="lower"},7814:function(f,b,m){m.d(b,{V:function(){return w}});var S=m(5754),w=function(T){T===void 0&&(T=null),this.light=new S.W,this.dark=new S.W,T&&(this.light=new S.W(T.light),this.dark=new S.W(T.dark))}},4539:function(f,b,m){var S,w;m.d(b,{V:function(){return S}}),(w=S||(S={})).auto="auto",w.light="light",w.dark="dark"},1554:function(f,b,m){m.d(b,{Z0:function(){return T},k9:function(){return A},q4:function(){return S},qS:function(){return w}});var S="10.13.6",w="20260518.1",T="https://localhost:8000/dist",A="https://stories.usestoryteller.com/amp"},830:function(f,b,m){m.d(b,{Ed:function(){return F},KS:function(){return ee},yF:function(){return te},Aw:function(){return K},V3:function(){return H},YC:function(){return X},eF:function(){return J},r8:function(){return ye},mp:function(){return G},ku:function(){return Q},C$:function(){return pe}});var S,w,T=m(7582),A=m(6661),C=m(4991);(w=S||(S={})).Stories="stories",w.Clips="clips";var P,B,U=m(5784),D=m(4366);(function(de){de.BetweenClips="betweenClips",de.BetweenStories="betweenStories",de.BetweenStoriesAndPages="betweenStoriesAndPages",de.BetweenPages="betweenPages"})(B||(B={}));var $=((P={})[B.BetweenClips]="Between Clips",P[B.BetweenStories]="Between Stories",P[B.BetweenPages]="Between Pages",P[B.BetweenStoriesAndPages]="Between Stories and Pages",P),z=(function(de){function _e(Re){var ge=de.call(this)||this;ge.isAdCommand=!0;var Ce=Re.ad;if(ge.ad=Ce,"story"in Re){ge.adType=S.Stories;var Me=Re.story,Ue=Re.currentCategories;ge.storyOrClipEventData={categories:Me.categories.map(function(et){return et.name}),currentCategory:new U.u((0,D.x)(Me.categories,Ue)),pageHasAction:!!ge.ad.swipeUpUrl,pageActionText:ge.ad.swipeUpText,pageActionUrl:ge.ad.swipeUpUrl};var Ne=A.Z.settings.ads.stories.strategy;ge.adPlacement=Ne,ge.adStrategy=$[Ne]}else{ge.adType=S.Clips;var We=Re.ad;ge.storyOrClipEventData={collection:We.collection,clipHasAction:!!ge.ad.swipeUpUrl,clipActionText:ge.ad.swipeUpText,clipActionUrl:ge.ad.swipeUpUrl},Ne=A.Z.settings.ads.clips.strategy,ge.adPlacement=Ne,ge.adStrategy=$[Ne]}return ge}return(0,T.ZT)(_e,de),_e.prototype.buildRequestContent=function(){return(0,T.pi)((0,T.pi)({activityItemType:this.activityType,externalId:A.Z.userId,adId:this.ad.id,adPlacement:this.adPlacement,adStrategy:this.adStrategy,adType:this.adType,advertiserName:this.ad.advertiserName,pageType:this.ad.pageType},this.storyOrClipEventData),this.buildAdCommandData())},_e.prototype.buildEventData=function(){return(0,T.pi)((0,T.pi)({ad
139Id:this.ad.id,adPlacement:this.adPlacement,adStrategy:this.adStrategy,adType:this.adType,advertiserName:this.ad.advertiserName,pageType:this.ad.pageType},this.storyOrClipEventData),this.buildAdCommandData())},_e})(C.Z),V=m(3766),F=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.adActionButtonTapped,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),ee=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.dismissedAd,ge.dismissedReason=Re.dismissedReason,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{contentLength:this.ad.duration,dismissedReason:this.dismissedReason}},_e})(z),te=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.finishedAd,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),K=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.openedAd,ge.openedReason=Re.openedReason,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{contentLength:this.ad.duration,openedReason:this.openedReason}},_e})(z),H=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.pausedAdPage,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),X=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.resumedAdPage,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),J=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.skippedAd,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),G=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.viewedAdPageFirstQuartile,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),Q=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.viewedAdPageMidpoint,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),pe=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.viewedAdPageThirdQuartile,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z),ye=(function(de){function _e(Re){var ge=de.call(this,Re)||this;return ge.activityType=V.T.viewedAdPageComplete,ge}return(0,T.ZT)(_e,de),_e.prototype.buildAdCommandData=function(){return{}},_e})(z)},546:function(f,b,m){var S=m(9748),w=m(3983),T=(0,S.createContext)(new w.d);b.Z=T},4991:function(f,b,m){m.d(b,{Z:function(){return P}});var S=m(7582),w=m(3441),T=m(355),A=m(6661),C=(function(B){function U(D){var $=B.call(this)||this;return $.shouldPersonalize=!1,$.endpoint="activity/recordActivity",$.method=T.w.post,$.requestContent=D,$.requestContent.externalId=A.Z.eventUserId,$}return(0,S.ZT)(U,B),U.prototype.buildRequestContent=function(){return this.requestContent},U})(w.I),P=(function(){function B(){this.alwaysSend=!1,this.isAdCommand=!1,this.isDisabled=function(){return!1}}return B.prototype.createActivityRequestCommand=function(){var U=this.buildRequestContent();return new C(U)},B})()},1815:function(f,b,m){var S=m(7582),w=m(6661),T=m(3766),A=m(4991),C=m(3269),P=m(5784),B=m(9283),U=m(4366),D=(function($){function z(V,F,ee,te){var K=$.call(this)||this;return K.openReason=V,K.story=F,K.page=ee,K.currentCategories=te,K.activityType=T.T.openedStory,K.storyReadStatus=B.Z.getStoryReadState(F.id).status,K.storyPlaybackMode=B.Z.getStoryPlaybackMode(F.id),K}return(0,S.ZT)(z,$),z.prototype.buildRequestContent=function(){var V=this;return{activityItemType:this.activityType,externalId:w.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyReadStatus:this.storyReadStatus,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(F){return F.id===V.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openReason,categories:this.story.categories.map(function(F){return F.name}),categoryDetails:this.story.categories.map(function(F){return new C.B(F)}),currentCategory:new P.u((0,U.x)(this.story.categories,this.currentCategories))}},z.prototype.buildEventData=function(){var V=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyReadStatus:this.storyReadStatus,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(F){return F.id===V.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openReason,categories:this.story.categories.map(function(F){return F.name}),categoryDetails:this.story.categories.map(function(F){return new C.B(F)}),currentCategory:new P.u((0,U.x)(this.story.categories,this.currentCategories))}},z})(A.Z);b.Z=D},7112:function(f,b,m){var S=m(7582),w=(function(T){function A(){var C=T!==null&&T.apply(this,arguments)||this;return C.logTag="EventEmitter",C}return(0,S.ZT)(A,T),A.prototype.broadcastEvent=function(C,P,B){var U;P===void 0&&(P=null),B===void 0&&(B=document.body),(U=typeof window.CustomEvent=="function"||window.CustomEvent.toString().indexOf("CustomEventConstructor")>-1?new CustomEvent(C,{detail:P}):document.createEvent("CustomEvent")).initCustomEvent(C,!0,!0,P),B.dispatchEvent(U)},A.prototype.on=function(C,P,B){var U=this;document.addEventListener(C,function(D){U.logInfo("Received event ".concat(C)),P(D.detail)},B)},A.sharedInstance=new A,A})(m(956).b);b.Z=w.sharedInstance},7840:function(f,b,m){var S=m(9748),w=m(3983),T=(0,S.createContext)(new w.c);b.Z=T},3983:function(f,b,m){m.d(b,{c:function(){return w},d:function(){return T}});var S=m(7582),w=function(){this.onDataLoadStarted=function(){},this.onDataLoadComplete=function(){},this.onPlayerDismissed=function(){}},T=(function(A){function C(){return A!==null&&A.apply(this,arguments)||this}return(0,S.ZT)(C,A),C})(w)},3766:function(f,b,m){var S,w;m.d(b,{T:function(){return S}}),(w=S||(S={})).actionButtonTapped="actionButtonTapped",w.shareButtonTapped="shareButtonTapped",w.shareSuccess="shareSuccess",w.openedStory="openedStory",w.dism
139issedStory="dismissedStory",w.skippedStory="skippedStory",w.completedStory="completedStory",w.openedPage="openedPage",w.previousPage="previousPage",w.previousStory="previousStory",w.votedPoll="votedPoll",w.triviaQuizQuestionAnswered="triviaQuizQuestionAnswered",w.triviaQuizCompleted="triviaQuizCompleted",w.openedAd="openedAd",w.dismissedAd="dismissedAd",w.pausedAdPage="pausedAdPage",w.resumedAdPage="resumedAdPage",w.finishedAd="finishedAd",w.skippedAd="skippedAd",w.adActionButtonTapped="adActionButtonTapped",w.viewedAdPageFirstQuartile="viewedAdPageFirstQuartile",w.viewedAdPageMidpoint="viewedAdPageMidpoint",w.viewedAdPageThirdQuartile="viewedAdPageThirdQuartile",w.viewedAdPageComplete="viewedAdPageComplete",w.pausedClip="pausedClip",w.resumedClip="resumedClip",w.likedClip="likedClip",w.unlikedClip="unlikedClip",w.openedClip="openedClip",w.openedCategory="openedCategory",w.dismissedClip="dismissedClip",w.dismissedCategory="dismissedCategory",w.finishedClip="finishedClip",w.completedLoop="completedLoop",w.nextClip="nextClip",w.previousClip="previousClip",w.completedPage="completedPage",w.skippedPage="skippedPage",w.swipedUp="swipedUp",w.viewedPage="viewedPage",w.completedAd="completedAd",w.swipedUpOnAd="swipedUpOnAd",w.previousAd="previousAd",w.impression="impression",w.readyToPlay="readyToPlay",w.mediaStarted="mediaStarted",w.bufferingStarted="bufferingStarted",w.bufferingEnded="bufferingEnded"},3269:function(f,b,m){m.d(b,{B:function(){return S}});var S=function(w){var T;this.name=w.name,this.id=w.id,this.type=w.type,this.placement=typeof w.placement=="string"?w.placement:(T=w.placement)===null||T===void 0?void 0:T.title,this.externalId=w.externalId}},5784:function(f,b,m){m.d(b,{u:function(){return S}});var S=function(w){var T;this.title=(w==null?void 0:w.name)||"",this.id=(w==null?void 0:w.externalId)||"",this.placement=(T=w==null?void 0:w.placement)===null||T===void 0?void 0:T.title}},4990:function(f,b,m){var S,w;m.d(b,{z:function(){return S}}),(w=S||(S={})).backgroundTapped="backgroundTapped",w.instanceMethod="instanceMethod",w.windowUnload="windowUnload",w.closeButtonTapped="closeButtonTapped",w.swipedDown="swipedDown",w.swipedFirstStory="swipedFirstStory",w.swipedFinalStory="swipedFinalStory",w.skippedFinalPage="skippedFinalPage",w.completedFinalPage="completedFinalPage",w.backTapped="backTapped",w.escapeKeyPressed="escapeKeyPressed",w.backButtonTapped="backButtonTapped"},4388:function(f,b,m){var S,w;m.d(b,{T:function(){return S}}),(w=S||(S={})).storyListTap="storyListTap",w.deepLink="deepLink",w.swipe="swipe",w.automaticPlayback="automaticPlayback",w.tap="tap",w.clipListTap="clipListTap",w.categoryListTap="categoryListTap",w.categoryBackTap="categoryBackTap"},8671:function(f,b,m){var S,w;m.d(b,{e:function(){return S}}),(w=S||(S={})).list="list",w.singleStory="singleStory"},647:function(f,b,m){var S,w;m.d(b,{_:function(){return S}}),(w=S||(S={})).openedPlayer="storyteller.openedPlayer",w.dismissPlayer="storyteller.dismissPlayer",w.eventTrackingOptionsUpdated="storyteller.eventTrackingOptionsUpdated",w.getAdConfigUpdated="storyteller.getAdConfigUpdated",w.userNavigatedToAppUpdated="storyteller.userNavigatedToAppUpdated",w.userActivity="storyteller.UserActivity",w.storyStatusUpdate="storyteller.storyStatusUpdate",w.readInstructions="storyteller.ReadInstructions",w.colorSchemeChanged="storyteller.colorSchemeChanged",w.themeUpdated="storyteller.themeUpdated",w.playbackDisabled="storyteller.playbackDisabled",w.playbackEnabled="storyteller.playbackEnabled",w.questionAnsweredCorrectly="storyteller.questionAnsweredCorrectly",w.storyPlayerState="storyteller.storyPlayerState"},1736:function(f,b){var m=(function(){function S(){this.logTag="StorytellerDelegate",this.onUserActivityOccurred=function(){},this.getAdConfig=function(){return null}}return S.prototype.setDelegate=function(w){this.onUserActivityOccurred=w.onUserActivityOccurred,this.onShareButtonTapped=w.onShareButtonTapped,this.getAdConfig=w.getAdConfig,this.userNavigatedToApp=w.userNavigatedToApp},S.prototype.getInstance=function(){return{onUserActivityOccurred:this.onUserActivityOccurred,onShareButtonTapped:this.onShareButtonTapped,getAdConfig:this.getAdConfig,userNavigatedToApp:this.userNavigatedToApp}},S.sharedInstance=new S,S})();b.Z=m.sharedInstance},4576:function(f,b,m){var S=m(9748),w=m(7840);b.Z=function(){return(0,S.useContext)(w.Z)}},9512:function(f,b,m){var S=m(7582),w=m(956),T=m(2385),A=m(8585),C=m(3914),P=m(3766),B=m(1736),U=(function(D){function $(){var z=D!==null&&D.apply(this,arguments)||this;return z.logTag="UserActivityService",z._loopsViewed=0,z._loopsViewedForClip={},z._clipsViewed=0,z._pagesViewed=0,z}return(0,S.ZT)($,D),Object.defineProperty($.prototype,"storyDurationViewed",{get:function(){return this.storyViewStartTime?new Date().getTime()-this.storyViewStartTime.getTime():0}
139,enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"clipsPlayerViewStartTime",{get:function(){return this._clipsPlayerViewStartTime},set:function(z){this._clipsPlayerViewStartTime=z},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"clipsPlayerDurationViewed",{get:function(){return this._clipsPlayerViewStartTime?new Date().getTime()-this._clipsPlayerViewStartTime.getTime():0},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"loopsViewed",{get:function(){return this._loopsViewed},set:function(z){this._loopsViewed=z},enumerable:!1,configurable:!0}),$.prototype.getLoopsViewedForClip=function(z){return this._loopsViewedForClip[z]||0},$.prototype.setLoopsViewedForClip=function(z){this._loopsViewedForClip[z.clipId]=z.loopsViewed},$.prototype.resetLoopsViewedForClip=function(z){this._loopsViewedForClip[z]=0},$.prototype.incrementLoopsViewedForClip=function(z){this._loopsViewedForClip[z]++},Object.defineProperty($.prototype,"clipsViewed",{get:function(){return C.Z.isFunctionalFeatureEnabled(A.d.clipViewedStatus)?this._clipsViewed:0},set:function(z){C.Z.isFunctionalFeatureEnabled(A.d.clipViewedStatus)&&(this._clipsViewed=z)},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"pagesViewed",{get:function(){return this._pagesViewed},enumerable:!1,configurable:!0}),$.prototype.recordActivity=function(z){try{if(!(B.Z===null||B.Z===void 0)&&B.Z.onUserActivityOccurred&&C.Z.eventTrackingOptions.enableUserActivityTracking&&(C.Z.eventTrackingOptions.enableAdTracking||!z.isAdCommand)){var V=z.buildEventData();B.Z.onUserActivityOccurred(z.activityType,this.filterForVppaCompliance_(V))}!z.isDisabled()&&(z.alwaysSend||C.Z.eventTrackingOptions.enableFunctionalCookies&&C.Z.eventTrackingOptions.enableStorytellerTracking&&(C.Z.eventTrackingOptions.enableAdTracking||!z.isAdCommand))&&T.Z.executeCommand(z.createActivityRequestCommand(),!0)}catch(F){throw F}finally{z.activityType===P.T.openedPage?this._pagesViewed++:z.activityType===P.T.dismissedStory?(this._pagesViewed=0,this.storyViewStartTime=null):z.activityType===P.T.completedLoop?this.loopsViewed++:z.activityType===P.T.dismissedClip&&(this.clipsViewed=0,this.loopsViewed=0,this.clipsPlayerViewStartTime=null)}},$.prototype.filterForVppaCompliance_=function(z){if(C.Z.eventTrackingOptions.enableFullVideoAnalytics)return z;for(var V=["storyId","storyTitle","storyDisplayTitle","clipId","clipTitle","pageId","pageTitle"],F={},ee=0,te=Object.keys(z);ee<te.length;ee++){var K=te[ee];F[K]=V.includes(K)?null:z[K]}return F},$.sharedInstance=new $,$})(w.b);b.Z=U.sharedInstance},2385:function(f,b,m){m.d(b,{Z:function(){return V}});var S=m(7582),w=m(1462),T=m(1554),A=m(956),C=(function(F){function ee(){var te=F.call(this,"JsonParseError - Cannot parse response json")||this;return Object.setPrototypeOf(te,ee.prototype),te}return(0,S.ZT)(ee,F),ee})(Error),P=m(3914),B=m(6661),U=m(1016),D=m(5690),$=m(355),z=(function(F){function ee(){var te=F!==null&&F.apply(this,arguments)||this;return te.logTag="DataService",te}return(0,S.ZT)(ee,F),ee.prototype.executeCommand=function(te,K){return(0,S.mG)(this,void 0,void 0,function(){var H;return(0,S.Jh)(this,function(X){switch(X.label){case 0:return[4,this.getResponseJson(te,K)];case 1:return H=X.sent(),[2,te.transformResponse(H)]}})})},ee.prototype.getResponseJson=function(te,K){return K===void 0&&(K=!1),(0,S.mG)(this,void 0,void 0,function(){var H,X,J,G,Q,pe,ye,de;return(0,S.Jh)(this,function(_e){switch(_e.label){case 0:H=this.buildHeaders(),X={method:te.method,headers:H,keepalive:K},J=(0,S.pi)((0,S.pi)({},te.buildRequestContent()),{excludeFromAnalytics:!P.Z.eventTrackingOptions.enableStorytellerTracking}),te.method===$.w.post&&(X.body=JSON.stringify(J)),G=this.buildUrl(te.buildEndpoint(),te.shouldPersonalize),_e.label=1;case 1:return _e.trys.push([1,3,,4]),[4,fetch(G,X)];case 2:return Q=_e.sent(),[3,4];case 3:throw pe=_e.sent(),this.logError(pe.toString()),U.G.unknown;case 4:if(!Q.ok)return[3,10];_e.label=5;case 5:return _e.trys.push([5,8,,9]),[4,Q.text()];case 6:return(ye=_e.sent()).length===0?[2,null]:[4,JSON.parse(ye)];case 7:return[2,_e.sent()];case 8:if(_e.sent(),Q.status!==204)throw new C;return[2,null];case 9:return[3,12];case 10:return[4,Q.text()];case 11:return de=_e.sent(),te.handleError(Q.status,de),[2,null];case 12:return[2]}})})},ee.prototype.buildHeaders=function(){return{Accept:"application/json","Content-Type":"text/plain","User-Agent":"Storyteller Javascript SDK - Client [Web] - Version [".concat(T.q4,"]")}},ee.prototype.buildUrl=function(te,K){var H,X=B.Z.environment;if(B.Z.customInstanceHost)this.apiBaseUrl=B.Z.customInstanceHost;else switch(X){case w.q.local:this.apiBaseUrl="https://localhost:44342";break;case w.q.dev:this.apiBaseUrl="https://dev.api.usestoryteller.com";break;case w.q.staging:this.apiBaseUrl="https://staging.api.usestoryteller.com";break;case w.q.production:this.apiBaseUrl="https://api.usestoryteller.com"}var J="".concat(this.apiBaseUrl,"/api/app/").concat(te),G=new URL(J),Q="Web";if(te==="activity/recordActivity"){var pe=document.querySelector('meta[name="platform"]');if(pe){var ye=(H=pe.getAttribute("content"))!==null&&H!==void 0?H:"";pe&&(Q=ye)}}if(G.searchParams.append("clientPlatform",Q),G.searchParams.append("clientVersion",T.q4),G.searchParams.append("x-storyteller-api-key",B.Z.apiKey||""),K&&P.Z.eventTrackingOptions.enablePersonalization)for(var de=0,_e=Object.entries(D.Z.getUserAttributes());de<_e.length;de++){var Re=_e[de],ge=Re[0],Ce=Re[1];G.searchParams.append("userAttributes[".concat(ge,"]"),Ce)}return G.searchParams.sort(),G.toString().replace(new RegExp(encodeURIComponent("["),"g"),"[").replace(new RegExp(encodeURIComponent("]"),"g"),"]").replace("clientPlatform","ClientPlatform").replace("clientVersion","ClientVersion")},ee.sharedInstance=new ee,ee})(A.b),V=z.sharedInstance},3871:function(f,b,m){m.d(b,{X:function(){return w}});var S=m(7582),w=(function(T){function A(C,P){var B,U=P?" for ".concat(C==="Stories"?"category":"collection"," ").concat(P):"";return B=T.call(this,"EmptyResponseError - The API call succeeded but no ".concat(C," were returned").concat(U,"."))||this,Object.setPrototypeOf(B,A.prototype),B}return(0,S.ZT)(A,T),A})(Error)},1016:function(f,b,m){m.d(b,{G:function(){return w}});var S=m(7582),w=(function(T){function A(C,P){var B=T.call(this,C?"".concat(C," - ").concat(P):P)||this;return B.status=C,Object.setPrototypeOf(B,A.prototype),B}return(0,S.ZT)(A,T),Object.defineProperty(A,"badRequest",{get:function(){return new A(400,"Forbidden")}
139,enumerable:!1,configurable:!0}),Object.defineProperty(A,"unauthorized",{get:function(){return new A(401,"Invalid API Key")},enumerable:!1,configurable:!0}),Object.defineProperty(A,"forbidden",{get:function(){return new A(403,"Forbidden")},enumerable:!1,configurable:!0}),Object.defineProperty(A,"notFound",{get:function(){return new A(404,"Not Found")},enumerable:!1,configurable:!0}),Object.defineProperty(A,"timeOut",{get:function(){return new A(408,"Request Timeout")},enumerable:!1,configurable:!0}),Object.defineProperty(A,"locked",{get:function(){return new A(423,"Locked")},enumerable:!1,configurable:!0}),Object.defineProperty(A,"internalServerError",{get:function(){return new A(500,"Internal Server Error")},enumerable:!1,configurable:!0}),Object.defineProperty(A,"unknown",{get:function(){return new A(null,"Network Error")},enumerable:!1,configurable:!0}),A.create=function(C){var P=A.errorMap[C];return P?P():A.unknown},A.errorMap={400:function(){return A.badRequest},401:function(){return A.unauthorized},403:function(){return A.forbidden},404:function(){return A.notFound},408:function(){return A.timeOut},423:function(){return A.locked},500:function(){return A.unauthorized}},A})(Error)},3441:function(f,b,m){m.d(b,{I:function(){return w}});var S=m(1016),w=(function(){function T(){}return T.prototype.buildEndpoint=function(){return this.endpoint},T.prototype.buildRequestContent=function(){return{}},T.prototype.transformResponse=function(A){return A||null},T.prototype.handleError=function(A,C){throw S.G.create(A)},T})()},355:function(f,b,m){var S,w;m.d(b,{w:function(){return S}}),(w=S||(S={})).get="get",w.post="post"},6595:function(f,b,m){var S,w;m.d(b,{G:function(){return S}}),(w=S||(S={})).Error="error",w.Idle="idle",w.Pending="pending",w.Success="success"},3843:function(f,b,m){var S=m(7582),w=m(9748),T=(function(A){function C(){var P=A!==null&&A.apply(this,arguments)||this;return P.state={hasError:!1},P}return(0,S.ZT)(C,A),C.getDerivedStateFromError=function(P){return{hasError:!0}},C.prototype.componentDidCatch=function(P,B){this.props.onError&&this.props.onError(P,B)},C.prototype.render=function(){return this.state.hasError?w.createElement(w.Fragment,null):this.props.children},C})(w.Component);b.Z=T},2357:function(f,b,m){m.d(b,{i:function(){return S}});var S=(function(){function w(){}return w.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(T){var A=16*Math.random()|0;return(T==="x"?A:3&A|8).toString(16)})},w})()},8080:function(f,b,m){var S=m(9748);b.Z=function(w,T,A,C){var P=(0,S.useRef)();(0,S.useEffect)(function(){var B=(A==null?void 0:A.current)||window;if(B&&B.addEventListener){P.current!==T&&(P.current=T);var U=function(D){P&&P.current&&P.current(D)};return B.addEventListener(w,U),function(){B.removeEventListener(w,U)}}},[w,A,T,C])}},5259:function(f,b,m){m.d(b,{P:function(){return S},l:function(){return P}});var S,w,T=m(9748),A=m(5518);(w=S||(S={})).Correct="correct",w.Initial="initial",w.Incorrect="incorrect";var C=A.G6&&A.gn,P=function(B){var U=B.isLightboxVisible,D=B.lightbox,$=(0,T.useRef)(),z=(0,T.useState)(S.Initial),V=z[0],F=z[1];(0,T.useEffect)(function(){var te,K,H="storyteller-size-helper-svh",X="storyteller-size-helper-dvh",J=document.querySelector("#".concat(H)),G=document.querySelector("#".concat(X));J?te=J:((te=document.createElement("div")).id=H,te.style.height="100svh",te.style.position="absolute",te.style.display="block",te.style.opacity="0",document.body.appendChild(te)),G?K=G:((K=document.createElement("div")).id=X,K.style.height="100dvh",K.style.position="absolute",K.style.display="block",K.style.opacity="0",document.body.appendChild(K)),$.current={svh:te,dvh:K}},[]);var ee=(0,T.useCallback)(function(){return new Promise(function(te,K){var H,X,J=function(ye,de){return ye!==void 0&&de!==void 0&&(ye===de||ye===de+1||ye===de-1)},G=D.current;if(!G)return K("Lightbox is not available");if(J(G.clientHeight,window.innerHeight)&&J((H=$.current)===null||H===void 0?void 0:H.svh.clientHeight,(X=$.current)===null||X===void 0?void 0:X.dvh.clientHeight))return te();function Q(){if(J(G==null?void 0:G.clientHeight,window.innerHeight))return window.removeEventListener("resize",Q),te()}window.addEventListener("resize",Q);var pe=new ResizeObserver(function(ye){for(var de=0,_e=ye;de<_e.length;de++){var Re=_e[de];if(J(Re.contentRect.height,window.innerHeight)&&G)return pe.unobserve(G),te()}});pe.observe(G),setTimeout(function(){if(G&&J(G.clientHeight,window.innerHeight))return window.removeEventListener("resize",Q),pe.unobserve(G),te()},1e3)})},[D]);return(0,T.useEffect)(function(){C&&V!==S.Correct&&U&&D.current&&ee().then(function(){return F(S.Correct)}).catch(function(){})},[U,D,V,ee]),{lightboxHasCorrectHeight:!C||V===S.Correct,setLightboxHeightStatus:F}}},7502:function(f,b,m){m.d(b,{q:function(){return S}});var S,w,T=m(9748),A=m(6346);(w=S||(S={})).loading="loading",w.idle="idle",w.error="error",w.ready="ready",b.Z=function(C,P,B){P===void 0&&(P=!0),B===void 0&&(B={});var U=(0,T.useState)(C?S.loading:S.idle),D=U[0],$=U[1];return(0,T.useEffect)(function(){if(P){if(C){var z=document.querySelector('script[src="'.concat(C,'"]'));if(z)z.getAttribute("data-status")&&$(z.getAttribute("data-status"));else{(z=(0,A.hT)()).src=C,z.async=!0,z.setAttribute("data-status",S.loading),Object.keys(B).forEac
139h(function(ee){var te=B[ee];z.setAttribute(ee,te)});var V=function(ee){var te=ee.type==="load"?S.ready:S.error;z==null||z.setAttribute("data-status",te)};z.onload=V,z.onerror=V,z.addEventListener("load",V),z.addEventListener("error",V),document.body.appendChild(z)}var F=function(ee){$(ee.type==="load"?S.ready:S.error)};return z.onload=F,z.onerror=F,z.addEventListener("load",F),z.addEventListener("error",F),function(){z&&(z.onload=null,z.onerror=null,z.removeEventListener("load",F),z.removeEventListener("error",F))}}$(S.idle)}},[B,P,C]),D}},1114:function(f,b,m){m.d(b,{K:function(){return w},w:function(){return S}});var S=function(){this.isStorytellerMessage=!0};function w(T){return!!("data"in T&&T.data&&typeof T.data=="object"&&"isStorytellerMessage"in T.data&&typeof T.data.isStorytellerMessage=="boolean")&&T.data.isStorytellerMessage}},3495:function(f,b,m){m.d(b,{z:function(){return T}});var S=m(7582),w=m(2727),T=(function(A){function C(P){var B=P.operation,U=P.openedReason,D=A.call(this)||this;return D.messageType=w.C.playerControl,D.data={operation:B,openedReason:U},D}return(0,S.ZT)(C,A),C})(m(1114).w)},2408:function(f,b,m){m.d(b,{Z:function(){return P}});var S=m(7112),w=m(1114),T=m(7582),A=m(2727),C=(function(B){function U(){var D=B.call(this)||this;return D.messageType=A.C.messagingInitialized,D.data={src:"".concat(window.location.origin).concat(window.location.pathname)},D}return(0,T.ZT)(U,B),U})(w.w),P=(function(){function B(){this.childrenWithMessaging_=[],this.initialized_=!1,this.onChildrenReady_={}}return B.prototype.initialize=function(){var U=this;this.initialized_||(window.addEventListener("message",function(D){return U.handleMessage(D)}),window!==window.parent&&this.sendMessageToParent(new C),this.initialized_=!0)},B.prototype.sendMessageToChild=function(U,D){var $=this,z=function(){if(U.src)if($.childrenWithMessaging_.some(function(ee){return U.src.startsWith(ee)}))$.sendMessageCore(U.contentWindow,D);else{var V="";try{var F=new URL(U.src);V="".concat(F.origin).concat(F.pathname)}catch{}V&&($.onChildrenReady_[V]?$.onChildrenReady_[V].push(function(){return $.sendMessageCore(U.contentWindow,D)}):$.onChildrenReady_[V]=[function(){return $.sendMessageCore(U.contentWindow,D)}])}};U.src?z():U.onload=z},B.prototype.sendMessageToParent=function(U){this.sendMessageCore(window.parent,U)},B.prototype.sendMessageCore=function(U,D){U==null||U.postMessage(D,"*")},B.prototype.handleMessage=function(U){var D;if((0,w.K)(U)){if(U.data.messageType===A.C.messagingInitialized){var $=(D=U.data.data)===null||D===void 0?void 0:D.src;return $?(this.childrenWithMessaging_.push($),void(this.onChildrenReady_[$]&&this.onChildrenReady_[$].forEach(function(z){return z()}))):void 0}S.Z.broadcastEvent(U.data.messageType,U.data.data)}},B.sharedInstance=new B,B})().sharedInstance},2727:function(f,b,m){var S,w;m.d(b,{C:function(){return S}}),(w=S||(S={})).answeredQuiz="answeredQuiz",w.backButtonClicked="backButtonClicked",w.clipSlideHidden="clipSlideHidden",w.resetEngagementUnitUI="resetEngagementUnitUI",w.eventTrackingOptionsUpdated="eventTrackingOptionsUpdated",w.messagingInitialized="messagingInitialized",w.pollsReceived="pollsReceived",w.shareButtonTapped="shareButtonTapped",w.votedPoll="votedPoll",w.playerControl="playerControl"},6661:function(f,b,m){var S=m(7582),w=m(1462),T=m(956),A=m(2357),C=m(3914),P=m(4779),B=m(373),U=m(2434),D=m(8585),$=(function(z){function V(){var F=z.call(this)||this;return F.logTag="DataStorageService",C.Z.onEventTrackingOptionsUpdated=function(ee){ee.enableRemoteViewingStore||F.deleteStoredUserId(),C.Z.shouldStoreRecentStoryPlaybackMode()||P.Z.remove(P.d.recentStoryPlaybackMode)},F}return(0,S.ZT)(V,z),Object.defineProperty(V.prototype,"userId",{get:function(){var F;if(!C.Z.eventTrackingOptions.enableFunctionalCookies||!C.Z.eventTrackingOptions.enablePersonalization||!C.Z.eventTrackingOptions.enableRemoteViewingStore)return null;if(U.A)return P.Z.get(P.d.userId)||null;var ee=P.Z.get(P.d.user);return(F=ee==null?void 0:ee.userId)!==null&&F!==void 0?F:null},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"eventUserId",{get:function(){return C.Z.eventTrackingOptions.enableFunctionalCookies&&C.Z.eventTrackingOptions.enableRemoteViewingStore?this.storedUserId:null}
139,enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"storedUserId",{get:function(){var F=P.Z.get(P.d.user);return F?F.userId:P.Z.get(P.d.userId)},enumerable:!1,configurable:!0}),V.prototype.ensureUserIdIsHashed=function(){return(0,S.mG)(this,void 0,void 0,function(){var F;return(0,S.Jh)(this,function(ee){return U.A||P.Z.get(P.d.user)?[2,Promise.resolve()]:(F=P.Z.get(P.d.userId),[2,this.setUserId(F||A.i.newGuid())])})})},V.prototype.deleteStoredUserId=function(){P.Z.remove(P.d.user),P.Z.remove(P.d.userId)},V.prototype.setUserId=function(F){return(0,S.mG)(this,void 0,void 0,function(){var ee,te,K,H,X;return(0,S.Jh)(this,function(J){switch(J.label){case 0:return ee=P.Z.get(P.d.userId),U.A?(ee&&ee!==F&&this.resetUserData(),P.Z.add(P.d.userId,F),[2,Promise.resolve()]):(te=P.Z.get(P.d.user),F?[4,this.hashUserId_(F)]:[3,2]);case 1:return K=J.sent(),(ee&&ee!==F||te&&te.userId!==K)&&this.resetUserData(),H={userId:K},P.Z.add(P.d.user,H),P.Z.remove(P.d.userId),[2,Promise.resolve()];case 2:return(ee&&ee!==F||te&&te.userId!==F)&&this.resetUserData(),X={userId:F},P.Z.add(P.d.user,X),P.Z.remove(P.d.userId),[2,Promise.resolve()]}})})},V.prototype.hashUserId_=function(F){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(ee){return[2,crypto.subtle.digest("SHA-256",new TextEncoder().encode(F)).then(function(te){for(var K=[],H=new DataView(te),X=0;X<H.byteLength;X+=4)K.push("00000000".concat(H.getUint32(X).toString(16)).slice(-8));return K.join("")})]})})},Object.defineProperty(V.prototype,"apiKey",{get:function(){return this.apiKey_||P.Z.get(P.d.apiKey)},set:function(F){this.apiKey_=F,P.Z.add(P.d.apiKey,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"environment",{get:function(){return P.Z.get(P.d.environment)||w.q.production},set:function(F){P.Z.add(P.d.environment,F),B.Z.environment=F},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"customInstanceHost",{get:function(){return P.Z.get(P.d.customInstanceHost)},set:function(F){P.Z.add(P.d.customInstanceHost,F==null?void 0:F.replace(/\/$/,""))},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"settings",{get:function(){return P.Z.get(P.d.settings)},set:function(F){P.Z.add(P.d.settings,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"pollAnswerMap",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.pollVotes)&&P.Z.get(P.d.pollAnswerMap)||{}},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.pollVotes)&&P.Z.add(P.d.pollAnswerMap,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"polls",{get:function(){return P.Z.get(P.d.polls)||[]},set:function(F){P.Z.add(P.d.polls,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"quizAnswerMap",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.triviaQuizAnswers)&&P.Z.get(P.d.quizAnswerMap)||{}},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.triviaQuizAnswers)&&P.Z.add(P.d.quizAnswerMap,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"quizAnsweredCorrectlyMap",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.triviaQuizAnswers)&&P.Z.get(P.d.quizAnsweredCorrectlyMap)||{}},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.triviaQuizAnswers)&&P.Z.add(P.d.quizAnsweredCorrectlyMap,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"quizzes",{get:function(){return P.Z.get(P.d.quizzes)||[]},set:function(F){P.Z.add(P.d.quizzes,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"storiesReadMap",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.pageReadStatus)&&P.Z.get(P.d.storiesReadMap)||{}},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.pageReadStatus)&&P.Z.add(P.d.storiesReadMap,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"recentStoryPlaybackMode",{get:function(){return C.Z.shouldStoreRecentStoryPlaybackMode()&&P.Z.get(P.d.recentStoryPlaybackMode)||{}},set:function(F){C.Z.shouldStoreRecentStoryPlaybackMode()&&P.Z.add(P.d.recentStoryPlaybackMode,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"clipsViewed",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.clipViewedStatus)&&P.Z.get(P.d.clipsViewed)||[]},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.clipViewedStatus)&&P.Z.add(P.d.clipsViewed,F)}
139,enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"forceShowShareButton",{get:function(){return P.Z.get(P.d.forceShowShareButton)||!1},set:function(F){P.Z.add(P.d.forceShowShareButton,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"hasShownInstructions",{get:function(){return!!P.Z.get(P.d.hasShownInstructions)},set:function(F){P.Z.add(P.d.hasShownInstructions,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"clipLikes",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.clipLikes)&&P.Z.get(P.d.clipLikes)||{}},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.clipLikes)&&P.Z.add(P.d.clipLikes,F)},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"clipShares",{get:function(){return C.Z.isFunctionalFeatureEnabled(D.d.clipShares)&&P.Z.get(P.d.clipShares)||{}},set:function(F){C.Z.isFunctionalFeatureEnabled(D.d.clipShares)&&P.Z.add(P.d.clipShares,F)},enumerable:!1,configurable:!0}),V.prototype.resetUserData=function(){P.Z.add(P.d.hasShownInstructions,!1),P.Z.add(P.d.polls,[]),P.Z.add(P.d.quizzes,[]),P.Z.add(P.d.forceShowShareButton,!1),C.Z.eventTrackingOptions.enablePersonalization&&P.Z.add(P.d.userAttributes,{}),C.Z.shouldStoreRecentStoryPlaybackMode()&&P.Z.add(P.d.recentStoryPlaybackMode,{}),C.Z.eventTrackingOptions.enableRemoteViewingStore&&(P.Z.add(P.d.clipLikes,{}),P.Z.add(P.d.clipShares,{}),P.Z.add(P.d.clipsViewed,[]),P.Z.add(P.d.pollAnswerMap,{}),P.Z.add(P.d.quizAnswerMap,{}),P.Z.add(P.d.quizAnsweredCorrectlyMap,{}),P.Z.add(P.d.storiesReadMap,{}))},V.sharedInstance=new V,V})(T.b);b.Z=$.sharedInstance},4779:function(f,b,m){m.d(b,{d:function(){return S},Z:function(){return D}});var S,w,T=m(7582),A=m(956),C=m(3914),P=function($){this.key=$.key,this.value=$.value},B=m(8585);(w=S||(S={})).apiKey="Storyteller.apiKey",w.ampEnvironment="Storyteller.ampEnvironment",w.ampVersion="Storyteller.ampVersion",w.clipLikes="Storyteller.clipLikes",w.clipShares="Storyteller.clipShares",w.clipsViewed="Storyteller.clipsViewed",w.customEnvironment="Storyteller.customEnvironment",w.customInstanceHost="Storyteller.customInstanceHost",w.environment="Storyteller.environment",w.forceShowShareButton="Storyteller.forceShowShareButton",w.hasShownInstructions="Storyteller.hasShownInstructions",w.pollAnswerMap="Storyteller.pollAnswerMap",w.polls="Storyteller.polls",w.quizAnswerMap="Storyteller.quizAnswerMap",w.quizAnsweredCorrectlyMap="Storyteller.quizAnsweredCorrectlyMap",w.quizzes="Storyteller.quizzes",w.recentStoryPlaybackMode="Storyteller.recentStoryPlaybackMode",w.settings="Storyteller.settings",w.storiesReadMap="Storyteller.storiesReadMap",w.user="Storyteller.user",w.userAttributes="Storyteller.userAttributesStorage",w.userId="Storyteller.userId",w.webSdkEnvironment="Storyteller.webSdkEnvironment",w.webSdkVersion="Storyteller.webSdkVersion";var U=[S.apiKey,S.customInstanceHost,S.quizAnsweredCorrectlyMap,S.quizzes,S.polls,S.settings],D=(function($){function z(){var V=$.call(this)||this;V.logTag="LocalStorageService",V.storage_={};try{V.localStorageSupported=typeof window.localStorage!==void 0&&window.localStorage!==null}catch{V.localStorageSupported=!1}return C.Z.onEventTrackingOptionsUpdated=V.onEventTrackingOptionsUpdated_.bind(V),V}return(0,T.ZT)(z,$),z.prototype.hasItem=function(V){return this.localStorageSupported?!(!this.shouldValueHaveFallback_(V)||!this.isFallbackValueDefined_(V))||this.isLocalStorageValueDefined_(V):!!this.storage_[V]},z.prototype.add=function(V,F){this.canKeyBeStored_(V)&&(this.localStorageSupported?(this.shouldValueHaveFallback_(V)&&(this.storage_[V]=F),localStorage.setItem(V,JSON.stringify(F))):this.storage_[V]=F)},z.prototype.getAllItems=function(){for(var V=new Array,F=0;F<localStorage.length;F++){var ee=localStorage.key(F);if(ee!==null){var te=localStorage.getItem(ee);V.push(new P({key:ee,value:te}))}}return V},z.prototype.getAllValues=function(){for(var V=new Array,F=0;F<localStorage.length;F++){var ee=localStorage.key(F);if(ee!==null){var te=localStorage.getItem(ee);V.push(te)}}return V},z.prototype.get=function(V){if(!this.localStorageSupported)return this.storage_[V]||null;if(this.shouldValueHaveFallback_(V)&&this.isFallbackValueDefined_(V))return this.restoreIfUnavailable_(V),this.storage_[V];var F=localStorage.getItem(V);return F===null?F:JSON.parse(F)},z.prototype.remove=function(V){this.localStorageSupported?(this.shouldValueHaveFallback_(V)&&(this.storage_[V]=void 0),localStorage.removeItem(V)):this.storage_[V]=void 0},z.prototype.clear=function(){this.localStorageSupported&&localStorage.clear(),this.storage_={}},z.prototype.canKeyBeStored_=function(V){return C.Z.eventTrackingOptions.enableFunctionalCookies||U.includes(V)},z.prototype.isFallbackValueDefined_=function(V){return this.storage_[V]!==void 0&&this.storage_[V]!==null},z.prototype.isLocalStorageValueDefined_=function(V){return localStorage.getItem(V)!==null},z.prototype.onEventTrackingOptionsUpdated_=function(V,F){if(!V.enableFunctionalCookies)for(var ee=0,te=Object.values(S).filter(function(H){return!U.includes(H)});ee<te.length;ee++){var K=te[ee];this.remove(K)}V.enablePersonalization||this.remove(S.userAttributes),F(B.d.clipLikes)||this.remove(S.clipLikes),F(B.d.clipShares)||this.remove(S.clipShares),F(B.d.clipViewedStatus)||this.remove(S.clipsViewed),F(B.d.pageReadStatus)||this.remove(S.storiesReadMap),F(B.d.pollVotes)||this.remove(S.pollAnswerMap),F(B.d.triviaQuizAnswers)||(this.remove(S.quizAnswerMap),this.remove(S.quizAnsweredCorrectlyMap))},z.prototype.restoreIfUnavailable_=function(V){this.localStorageSupported&&!this.isLocalStorageValueDefined_(V)&&this.isFallbackValueDefined_(V)&&localStorage.setItem(V,JSON.stringify(this.storage_[V])
139)},z.prototype.shouldValueHaveFallback_=function(V){return[S.settings,S.storiesReadMap,S.userId].includes(V)},z.sharedInstance=new z,z})(A.b).sharedInstance},8585:function(f,b,m){var S,w;m.d(b,{d:function(){return S}}),(w=S||(S={})).all="all",w.clipLikes="clipLikes",w.clipShares="clipShares",w.clipViewedStatus="clipViewedStatus",w.pageReadStatus="pageReadStatus",w.pollVotes="pollVotes",w.triviaQuizAnswers="triviaQuizAnswers"},3914:function(f,b,m){var S=m(7582),w=m(956),T=m(7112),A=m(647),C=m(8585),P=(function(B){function U(){var D=B!==null&&B.apply(this,arguments)||this;return D.logTag="PrivacyService",D.disabledFunctionalFeatures_=[],D.enableAdTracking_=!0,D.enableFullVideoAnalytics_=!0,D.enableFunctionalCookies_=!0,D.enablePersonalization_=!0,D.enableRemoteViewingStore_=!0,D.enableStorytellerTracking_=!0,D.enableUserActivityTracking_=!0,D.onEventTrackingOptionsUpdated_=[],D}return(0,S.ZT)(U,B),Object.defineProperty(U.prototype,"eventTrackingOptions",{get:function(){return{disabledFunctionalFeatures:this.disabledFunctionalFeatures_,enableAdTracking:this.enableAdTracking_,enableFullVideoAnalytics:this.enableFullVideoAnalytics_,enableFunctionalCookies:this.enableFunctionalCookies_,enablePersonalization:this.enableFunctionalCookies_!==!1&&this.enablePersonalization_,enableRemoteViewingStore:this.enableRemoteViewingStore_,enableStorytellerTracking:this.enableFunctionalCookies_!==!1&&this.enableStorytellerTracking_,enableUserActivityTracking:this.enableUserActivityTracking_}}
139,set:function(D){var $,z,V,F,ee,te,K,H;this.disabledFunctionalFeatures_=($=D.disabledFunctionalFeatures)!==null&&$!==void 0?$:[],this.enableAdTracking_=(z=D.enableAdTracking)===null||z===void 0||z,this.enableFullVideoAnalytics_=(V=D.enableFullVideoAnalytics)===null||V===void 0||V,this.enableFunctionalCookies_=(F=D.enableFunctionalCookies)===null||F===void 0||F,this.enablePersonalization_=(ee=D.enablePersonalization)===null||ee===void 0||ee,this.enableRemoteViewingStore_=(te=D.enableRemoteViewingStore)===null||te===void 0||te,this.enableStorytellerTracking_=(K=D.enableStorytellerTracking)===null||K===void 0||K,this.enableUserActivityTracking_=(H=D.enableUserActivityTracking)===null||H===void 0||H;for(var X=0,J=this.onEventTrackingOptionsUpdated_;X<J.length;X++)(0,J[X])(this.eventTrackingOptions,this.isFunctionalFeatureEnabled.bind(this));T.Z.broadcastEvent(A._.eventTrackingOptionsUpdated,this.eventTrackingOptions)},enumerable:!1,configurable:!0}),U.prototype.shouldStoreRecentStoryPlaybackMode=function(){var D=this.enableFunctionalCookies_&&this.enableStorytellerTracking_,$=this.isFunctionalFeatureEnabled(C.d.pageReadStatus)||this.isFunctionalFeatureEnabled(C.d.pollVotes)||this.isFunctionalFeatureEnabled(C.d.triviaQuizAnswers);return D||$},Object.defineProperty(U.prototype,"onEventTrackingOptionsUpdated",{set:function(D){this.onEventTrackingOptionsUpdated_.push(D)},enumerable:!1,configurable:!0}),U.prototype.isFunctionalFeatureEnabled=function(D){return!this.disabledFunctionalFeatures_.includes(D)&&!this.disabledFunctionalFeatures_.includes(C.d.all)},U.sharedInstance=new U,U})(w.b);b.Z=P.sharedInstance},9283:function(f,b,m){var S=m(7582),w=m(6661),T=m(3914),A=m(7112),C=m(956),P=m(8936),B=m(8671),U=m(647),D=m(8585),$=(function(z){function V(){var F=z!==null&&z.apply(this,arguments)||this;return F.logTag="UserDataService",F._defaultStoryReadState={status:P.N.unread,initialPage:0,pagesRead:[]},F}return(0,S.ZT)(V,z),V.prototype.initialiseReadStateForStories=function(F){var ee=this;F.forEach(function(te){ee.checkStoryReadStatus(te)})},V.prototype.initialiseShareStateForClips=function(F){var ee=w.Z.clipShares;F.forEach(function(te){ee.hasOwnProperty(te.id)||(ee[te.id]=te.shareCount)}),w.Z.clipShares=ee},V.prototype.setPageViewed=function(F){var ee,te=F.page,K=F.story;if(T.Z.isFunctionalFeatureEnabled(D.d.pageReadStatus)){var H=w.Z.storiesReadMap[K.id]||this._defaultStoryReadState,X=H.pagesRead.includes(te.id)?H.pagesRead:(0,S.ev)((0,S.ev)([],H.pagesRead,!0),[te.id],!1),J=this.getStoryReadStatus_(K,X),G=0;if(J===P.N.unread){var Q=K.pages.findIndex(function(_e){return _e.id===te.id}),pe=K.pages.findIndex(function(_e,Re){return!X.includes(_e.id)&&Re>Q});if(pe>-1)G=pe;else{var ye=K.pages.findIndex(function(_e){return!X.includes(_e.id)});ye>-1&&(G=ye)}}var de=(0,S.pi)((0,S.pi)({},H),{status:J,initialPage:G,pagesRead:X});w.Z.storiesReadMap=(0,S.pi)((0,S.pi)({},w.Z.storiesReadMap),((ee={})[K.id]=de,ee)),A.Z.broadcastEvent(U._.storyStatusUpdate,{storyId:K.id,newStoryReadState:de})}},V.prototype.getStoryReadState=function(F){return F&&w.Z.storiesReadMap[F]?w.Z.storiesReadMap[F]:this._defaultStoryReadState},V.prototype.removeStoryQuizResultPage=function(F,ee){var te,K=(0,S.pi)({},this.getStoryReadState(F.id)),H=F.pages.findIndex(function(X){return X.id===ee});K.initialPage===H&&(K.initialPage=K.initialPage-1),w.Z.storiesReadMap=(0,S.pi)((0,S.pi)({},w.Z.storiesReadMap),((te={})[F.id]=K,te)),A.Z.broadcastEvent(U._.storyStatusUpdate,{storyId:F.id,newStoryReadState:K})},V.prototype.setClipViewed=function(F){var ee=new Set((0,S.ev)((0,S.ev)([],w.Z.clipsViewed,!0),[F],!1));w.Z.clipsViewed=Array.from(ee)},V.prototype.setClipShared=function(F){var ee,te,K=(te=w.Z.clipShares[F.id])!==null&&te!==void 0?te:F.shareCount;w.Z.clipShares=(0,S.pi)((0,S.pi)({},w.Z.clipShares),((ee={})[F.id]=K+1,ee))},V.prototype.getClipShares=function(F){var ee;return T.Z.isFunctionalFeatureEnabled(D.d.clipShares)&&(ee=w.Z.clipShares[F.id])!==null&&ee!==void 0?ee:F.shareCount},V.prototype.getClipViewedState=function(F){return F&&w.Z.clipsViewed.includes(F)?P.N.read:P.N.unread},V.prototype.getStoryPlaybackMode=function(F){return w.Z.recentStoryPlaybackMode[F]?w.Z.recentStoryPlaybackMode[F]:B.e.list},V.prototype.setStoryPlaybackMode=function(F,ee){var te;w.Z.recentStoryPlaybackMode=((te={})[F]=ee,te)},V.prototype.checkStoryReadStatus=function(F){var ee,te=this._defaultStoryReadState;w.Z.storiesReadMap.hasOwnProperty(F.id)&&(te=(0,S.pi)((0,S.pi)((0,S.pi)({},this._defaultStoryReadState),w.Z.storiesReadMap[F.id]),{status:this.getStoryReadStatus_(F,w.Z.storiesReadMap[F.id].pagesRead)})),w.Z.storiesReadMap=(0,S.pi)((0,S.pi)({},w.Z.storiesReadMap),((ee={})[F.id]=te,ee))},V.prototype.getStoryReadStatus_=function(F,ee){ee===void 0&&(ee=[]);for(var te=!0,K=F.pages,H=0;H<K.length;H++){var X=K[H],J=ee.includes(X.id),G=X.type==="triviaQuiz"&&!X.questionId&&!T.Z.isFunctionalFeatureEnabled(D.d.triviaQuizAnswers);if(!J&&!G){te=!1;break}}return te?P.N.read:P.N.unread},V.sharedInstance=new V,V})(C.b);b.Z=$.sharedInstance},4883:function(f,b,m){m.d(b,{F:function(){return A},g:function(){return S}});var S,w,T=m(8705);(w=S||(S={})).any="any",w.pixel="pixel",w.textAlign="alignment",w.textCase="textCase";var A=function(C,P){switch(P){case S.pixel:return(0,T.B5)(C);case S.textAlign:return(0,T.iD)(C);case S.textCase:return(0,T.I4)(C);default:return C}}},9984:function(f,b,m){m.d(b,{E:function(){return T},P:function(){return w}}),m(8660);var S=m(4883),w=function(A,C){return C===void 0&&(C=S.g.any),function(P,B){Reflect.defineMetadata("cssVariableName",A,P,B),Reflect.defineMetadata("cssVariableType",C,P,B)}},T=function(A,C){return{name:Reflect.getMetadata("cssVariableName",A,C),type:Reflect.getMetadata("cssVariableType",A,C)}}},8199:function(f,b,m){m.d(b,{p:function(){return w},t:function(){return S}});var S=function(T){return function(A,C){Reflect.defineMetadata("fallbackFun",T,A,C)}},w=function(T,A,C,P){var B=Reflect.getMetadata("fallbackFun",T,A)(C);return P&&B.dark||B.default}},6356:function(f,b,m){var S,w;m.d(b,{Ux:function(){return T},m5:function(){return S},sF:function(){return A}}),(w=S||(S={})).ltr="ltr",w.rtl="rtl";var T=function(){return getComputedStyle(document.body).direction},A=function(){return T()}},8705:function(f,b,m){m.d(b,{B5:function(){return B},Gz:function(){return $},I4:function(){return D},b1:function(){return z},iD:function(){return U},qK:function(){return P},yG:function(){return C}});var S=m(7582),w=m(942),T=m(3089),A=m(6356),C=function(V){return"--storyteller-".concat(V)},P=function(V){return Object.keys(V).reduce(function(F,ee){var te;return(0,S.pi)((0,S.pi)({},F),((te={})[C(ee)]=V[ee],te))},{})},B=function(V){return"".concat(V,"px")}
139,U=function(V){switch(V){case w.v.center:return"center";case w.v.start:return(0,A.Ux)()===A.m5.ltr?"left":"right";case w.v.end:return(0,A.Ux)()===A.m5.ltr?"right":"left"}},D=function(V){switch(V){case T.q.default:return"none";case T.q.upper:return"uppercase";case T.q.lower:return"lowercase"}},$=function(V,F){var ee=V.replace("#","");return ee.length>6&&(ee=ee.substr(0,6)),"#"+ee+Math.round(255*Math.min(Math.max(F||1,0),1)).toString(16).toUpperCase()},z=function(){return("ontouchstart"in window||navigator.maxTouchPoints>0)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}},642:function(f,b,m){m.d(b,{v:function(){return S}});var S=(0,m(9748).createContext)(null)},1508:function(f,b,m){m.d(b,{V:function(){return T}});var S=m(5754),w=m(8199),T=(function(){function A(C,P){P===void 0&&(P=null),this.isDark=C;var B=this.isDark?P==null?void 0:P.dark:P==null?void 0:P.light;this.theme=new S.W(B)}return A.prototype.build=function(){return this.setFallbacks(this.theme),this.theme.isDark=this.isDark,this.theme},A.prototype.setFallbacks=function(C){var P=this;Object.keys(C).forEach(function(B){typeof C[B]=="object"&&C[B]!==null?P.setFallbacks(C[B]):Reflect.hasMetadata("fallbackFun",C,B)&&!C[B]&&(C[B]=(0,w.p)(C,B,P.theme,P.isDark))})},A})()},6940:function(f,b,m){m.d(b,{G:function(){return A},Z:function(){return K}});var S,w,T=m(7582);m(8660),(w=S||(S={})).light="light",w.dark="dark";var A,C=m(7814),P=m(4539),B=m(2434),U=m(956),D=m(4883),$=m(9984),z=m(8705),V=m(9705);(function(H){H.Clips="clips",H.Stories="stories",H.None="none"})(A||(A={}));var F=["colors","font","primitives","player","buttons","instructions","engagementUnits"],ee=["storyTiles.circularTile.liveChip.unreadBackgroundColor","storyTiles.circularTile.liveChip.unreadTextColor","storyTiles.rectangularTile.liveChip.unreadBackgroundColor","storyTiles.rectangularTile.liveChip.unreadTextColor"],te=(function(H){function X(){var J=H!==null&&H.apply(this,arguments)||this;return J.logTag="ThemeService",J}return(0,T.ZT)(X,H),Object.defineProperty(X.prototype,"defaultTheme",{get:function(){return X._defaultTheme},enumerable:!1,configurable:!0}),X.prototype.getStyleElContentRecursive_=function(J,G,Q,pe,ye){var de=this;return pe===void 0&&(pe=[]),ye===void 0&&(ye=A.None),Object.keys(G).forEach(function(_e){if(de.shouldIncludeKey(_e,pe,ye)){if(typeof G[_e]=="object"&&G[_e]!==null)Q=de.getStyleElContentRecursive_(J,G[_e],Q,(0,T.ev)((0,T.ev)([],pe,!0),[_e],!1),ye);else if(Reflect.hasMetadata("cssVariableName",G,_e)){var Re=G[_e];if(Re!==null){var ge=(0,$.E)(G,_e),Ce=ge.name,Me=ge.type,Ue=(0,D.F)(Re,Me),Ne="".concat((0,z.yG)(Ce),": ").concat(Ue,";");Q="".concat(Q,`
140`).concat(Ne)}}}}),Q},X.prototype.setDocumentStyle=function(J){var G=J.element,Q=J.id,pe=J.playerType,ye=pe===void 0?A.None:pe,de=J.selector,_e=J.theme,Re="storyteller-".concat(Q),ge=G.querySelector("#".concat(Re));ge||((ge=document.createElement("style")).id=Re);var Ce=this.getStyleElContentRecursive_(_e,_e,"",[],ye);ge.innerHTML=`
141`.concat(de,` {
142  `).concat(Ce,`
143  `).concat((0,V.R1)(),`
144}
145/*@ sourceURL=`).concat(Re,".css */");var Me=G;if(G.tagName==="HTML"){var Ue=G.querySelector("head");Ue&&(Me=Ue)}Me.prepend(ge)},X.prototype.clone=function(J){var G=new C.V;return this.copyProperties(G,J,[]),G},X.prototype.merge=function(J,G){var Q=this.clone(J);return this.mergeProperties(Q,G,[]),Q},X.prototype.copyProperties=function(J,G,Q){var pe=this;Q===void 0&&(Q=[]),G&&Object.keys(G).forEach(function(ye){typeof G[ye]=="object"&&G[ye]!==null?pe.copyProperties(J,G[ye],(0,T.ev)((0,T.ev)([],Q,!0),[ye],!1)):G.hasOwnProperty(ye)&&pe.setNestedThemeProperty(J,G[ye],(0,T.ev)((0,T.ev)([],Q,!0),[ye],!1))})},X.prototype.mergeProperties=function(J,G,Q,pe){var ye=this;Q===void 0&&(Q=[]),pe===void 0&&(pe=A.None),Object.keys(G).forEach(function(de){ye.shouldIncludeKey(de,Q,pe)&&(typeof G[de]=="object"&&G[de]!==null?ye.mergeProperties(J,G[de],(0,T.ev)((0,T.ev)([],Q,!0),[de],!1),pe):G.hasOwnProperty(de)&&G[de]!==ye.getNestedThemeProperty(ye.defaultTheme,(0,T.ev)((0,T.ev)([],Q,!0),[de],!1))&&ye.setNestedThemeProperty(J,G[de],(0,T.ev)((0,T.ev)([],Q,!0),[de],!1)))})},X.prototype.toSerializableTheme=function(J,G){G===void 0&&(G=A.None);var Q={};return this.getNonDefaultProps(Q,J,[],G),Q},X.prototype.getNonDefaultProps=function(J,G,Q,pe){var ye=this;Q===void 0&&(Q=[]),pe===void 0&&(pe=A.None),Object.keys(G).forEach(function(de){typeof G[de]=="object"&&G[de]!==null?ye.mergeProperties(J,G[de],(0,T.ev)((0,T.ev)([],Q,!0),[de],!1),pe):G.hasOwnProperty(de)&&G[de]!==ye.getNestedThemeProperty(ye.defaultTheme,(0,T.ev)((0,T.ev)([],Q,!0),[de],!1))&&ye.setNestedThemeProperty(J,G[de],(0,T.ev)((0,T.ev)([],Q,!0),[de],!1))})},X.prototype.shouldIncludeKey=function(J,G,Q){if(Q===A.None||G.length===0)return!0;var pe=function(de){return F.includes(de)};if(pe(J)&&G.length<=1||pe(G[0])||G.length>1&&pe(G[1]))return!0;var ye=(0,T.ev)((0,T.ev)([],G,!0),[J],!1).filter(function(de,_e){return _e>0||de!=="light"&&de!=="dark"});return!!ee.some(function(de){var _e=de.split(".");return ye.every(function(Re,ge){return Re===_e[ge]})})},X.prototype.setNestedThemeProperty=function(J,G,Q){var pe=Q[0],ye=Q.slice(1);ye.length?(J[pe]===void 0&&(J[pe]={}),this.setNestedThemeProperty(J[pe],G,ye)):J[pe]=G},X.prototype.getNestedThemeProperty=function(J,G){var Q=G[0],pe=G.slice(1);return pe.length?this.getNestedThemeProperty(J[Q],pe):J[Q]},X.prototype.prefersDarkMode=function(J){switch(J){case P.V.auto:return this.getColorScheme()===S.dark;case P.V.dark:return!0;case P.V.light:return!1}},X.prototype.getColorScheme=function(){var J=S.light;return!B.A&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(J=S.dark),J},X.sharedInstance=new X,X._defaultTheme=new C.V,X})(U.b),K=te.sharedInstance},16:function(f,b,m){m.d(b,{F:function(){return A}});var S=m(9748),w=m(5754),T=m(642),A=function(){return(0,S.useContext)(T.v)||new w.W}},3916:function(f,b,m){m.d(b,{i:function(){return w}});var S=m(7068),w=function(T){return new CustomEvent(S.n.engagementUnitAnswered,{detail:T,bubbles:!0,composed:!0})}},109:function(f,b,m){m.d(b,{Z:function(){return re}});var S,w,T=m(9748),A=m(6661),C=m(7582);(w=S||(S={}))[w.text=0]="text",w[w.image=1]="image";var P=m(7409),B=m(2408),U=m(2727),D=m(1114),$=(function(ne){function Se(he,we,xe,ze){var Ee=ne.call(this)||this;return Ee.messageType=U.C.answeredQuiz,Ee.data={quiz:he,answerId:we,questionId:xe,score:ze},Ee}return(0,C.ZT)(Se,ne),Se})(D.w),z=m(4184),V=m.n(z),F=function(){return T.createElement("svg",{width:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T.createElement("path",{d:"M12 0C5.37219 0 0 5.37281 0 12C0 18.6272 5.37281 24 12 24C18.6272 24 24 18.6272 24 12C24 5.37281 18.6272 0 12 0ZM17.4253 10.4453L11.5274 16.3432C11.247 16.6235 10.8792 16.764 10.5121 16.764C10.145 16.764 9.77721 16.6235 9.49686 16.3432L6.40929 13.2556C5.84859 12.6949 5.84859 11.7858 6.40929 11.2245C6.96998 10.6638 7.87909 10.6638 8.44041 11.2245L10.5127 13.2968L15.3954 8.41417C15.9561 7.85348 16.8652 7.85348 17.4265 8.41417C17.986 8.97487 17.986 9.88397 17.4253 10.4453Z",fill:"white"}))},ee=function(){return T.createElement("svg",{width:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T.createElement("path",{d:"M12 0C5.37281 0 0 5.37281 0 12C0 18.6272 5.37281 24 12 24C18.6272 24 24 18.6272 24 12C24 5.37281 18.6278 0 12 0ZM16.3432 14.3121C16.9039 14.8728 16.9039 15.7819 16.3432 16.3432C16.0629 16.6235 15.6951 16.764 15.328 16.764C14.9608 16.764 14.5931 16.6235 14.3127 16.3432L12.0006 14.0311L9.68854 16.3432C9.40819 16.6235 9.04043 16.764 8.67329 16.764C8.30553 16.764 7.93839 16.6235 7.65805 16.3432C7.09735 15.7825 7.09735 14.8734 7.65805 14.3121L9.97013 12L7.65805 9.68791C7.09735 9.12722 7.09735 8.21812 7.65805 7.6568C8.21874 7.0961 9.12847 7.0961 9.68916 7.6568L12.0012 9.96889L14.3133 7.6568C14.874 7.0961 15.7831 7.0961 16.3444 7.6568C16.9051 8.21749 16.9051 9.12659 16.3444 9.68791L14.0324 12L16.3432 14.3121Z",fill:"white"}))},te=function(ne){var Se=ne.answer,he=Se.answer,we=Se.id,xe=Se.isCorrect,ze=ne.hasAnswered,Ee=ne.selected,se=ne.handleAnswer;return T.createElement("button",{className:V()("textQuizAnswer",{answeredCorrectly:ze&&xe,answeredIncorrectly:ze&&Ee&&!xe}),onClick:se(we),role:"button"},T.createElement("span",{className:V()("answerText",{answerTextAnswered:ze&&(xe||Ee&&!xe)})},he),T.createElement("span",{className:"icon"},ze&&xe?T.createElement(F,null):T.createElement(ee,null)))},K=function(ne){var Se=ne.question,he=ne.handleQuizAnswer,we=ne.answered,xe=ne.answerId,ze=ne.totalQuestions,Ee=Se.sortOrder+1;return T.createElement("div",{className:V()("textQuiz","quizOverlay")},Se.answers.map(function(se,L){return T.createElement(te,{answer:se,question:Se,handleAnswer:he,hasAnswered:we,selected:xe===se.id,key:L})}),T.createElement("span",{className:"questionNumber"},"Question ",T.createElement("b",null,"".concat(Ee," out of ").concat(ze))))},H=m(7068),X=m(7112),J=m(647),G=m(8080),Q=m(3916),pe=m(3495),ye=m(4388),de=typeof window<"u"&&window.parent===window,_e=m(8585),Re=function(){return T.createElement("div",null)},ge=function(ne){return S.text==S.text?T.createElement(K,(0,C.pi)({},ne)):T.createElement(Re,null)},Ce=function(ne){var Se,he,we=ne.quiz,xe=ne.question,ze=ne.totalQuestions,Ee=ne.engagementUnitId,se=ne.pageId,L=new URLSearchParams(window.location.search).get("storyId")||"",j=(0,T.useState)((he=(Se=A.Z.quizAnswerMap)===null||Se===void 0?void 0:Se[L])===null||he===void 0?void 0:he[xe.id]),Z=j[0],le=j[1],Te=(0,T.useRef)(document.getElementById(se)),Ae=!!Z,Le=function(Ke,nt){return nt===void 0&&(nt=ye.T.tap),function(){var Be,vt,ht,mt,$t,Mt,Dt,Qe;if(Ae)B.Z.sendMessageToParent(new pe.z({operation:"go-to-next-page",openedReason:nt}));else{var pt=xe.answers.find(function(_r){return _r.id===Ke});if(pt){var Ut=(Dt=(Mt=($t=A.Z.quizAnsweredCorrectlyMap)===null||$t===void 0?void 0:$t[L])===null||Mt===void 0?void 0:Mt[Ee])!==null&&Dt!==void 0?Dt:0;pt.isCorrect&&(Ut+=1,A.Z.quizAnsweredCorrectlyMap=(0,C.pi)((0,C.pi)({},A.Z.quizAnsweredCorrectlyMap),((Be={})[L]=((vt={})[Ee]=Ut,vt),Be)),X.Z.broadcastEvent(J._.questionAnsweredCorrectly,Ee)),A.Z.quizAnswerMap=(0,C.pi)((0,C.pi)({},A.Z.quizAnswerMap),((ht={})[L]=(0,C.pi)((0,C.pi)({},A.Z.quizAnswerMap[L]),((mt={})[xe.id]=pt.id,mt)),ht));var jt=we.questions.indexOf(xe)===we.questions.length-1;B.Z.sendMessageToParent(new $(we,pt.id,xe.id,jt?Ut:void 0));var hr=(0,Q.i)({answerId:pt.id,quizId:we.id,quizTitle:we.title,questionId:xe.id,quizScore:jt?Ut:void 0,pageId:se,pageType:P.G.triviaQuiz});(Qe=Te.current)===null||Qe===void 0||Qe.dispatchEvent(hr),de&&X.Z.broadcastEvent(U.C.answeredQuiz,{quiz:we,question:xe.id,answer:pt.id}),le(pt.id)}}}};return(0,G.Z)(H.n.storyPageProgress,function(Ke){var nt=Ke.detail.progress,Be=xe.answers.find(function(vt){return!vt.isCorrect});Be&&nt>.85&&nt<1&&!Ae&&Le(Be==null?void 0:Be.id,ye.T.automaticPlayback)()},Te),(0,G.Z)(H.n.storyPageSwitch,function(Ke){if(Ke.detail.direction==="next"){var nt=xe.answers.find(function(Be){return!Be.isCorrect});nt&&Le(nt==null?void 0:nt.id,ye.T.automaticPlayback)}},Te),(0,T.useEffect)(function(){X.Z.on(U.C.resetEngagementUnitUI,function(Ke){var nt=Ke.questionOrEngagementUnitId,Be=Ke.type;(!nt||nt===xe.id)&&Be.includes(_e.d.triviaQuizAnswers)&&le(null)})},[xe.id]),T.createElement("div",null,T.createElement("div",{className:"pageOverlay"},T.createElement(ge,{question:xe,handleQuizAnswer:Le,answered:Ae,answerId:Z,totalQuestions:ze})))},Me=function(ne){var Se=ne.handleClick;return T.createElement("button",{className:"shareButton-TgTt3E",onClick:function(){return Se()},role:"button"},T.createElement("span",{className:"shareButtonText-Z713Mn"},"Share Your Result"))},Ue=(function(ne){function Se(he,we,xe){var ze=ne.call(this)||this;return ze.messageType=U.C.shareButtonTapped,ze.data={score:he,quizId:we,title:xe},ze}return(0,C.ZT)(Se,ne),Se})(D.w),Ne=function(ne){var Se,he=ne.score,we=ne.totalQuestions,xe=ne.engagementUnitId,ze=ne.showShareButton,Ee=ne.forceShowShareButton,se=A.Z.quizzes.filter(function(le){return le.engagementUnitId===xe})[0],L=se.id,j=se.title,Z=!de&&(ze&&!!window.navigator.share||Ee);return T.createElement("div",null,T.createElement("div",{className:"pageOverlay-l4wCBF"},T.createElement("div",{className:V()("quizResult-T1N1qL","resultsOverlay-Xowxan")},T.createElement("span",{className:V()("score-9J0DTU",(Se={},Se["shareDisabled-nLxpOW"]=!Z,Se))},"".concat(he,"/").concat(we)),Z&&T.createElement(Me,{handleClick:function(){B.Z.sendMessageToParent(new 
145Ue(he,L,j))}}))))},We=m(1508),et=m(6940),rt=m(2173),re=(function(){function ne(){this.calcTotalQuestions=function(Se){return A.Z.quizzes.filter(function(he){return he.engagementUnitId===Se}).map(function(he){return he.questions.length})[0]}}return ne.prototype.getGridLayer=function(Se){return document.querySelector('amp-story-grid-layer[id="'.concat(Se,'"]'))},ne.prototype.renderQuizPage=function(Se,he){var we=this,xe=new We.V(et.Z.prefersDarkMode(rt.Z.uiStyle),rt.Z.theme).build();if(Se){var ze=Se.questions.length;he.forEach(function(Ee){if(Ee.questionId){var se=Se.questions.find(function(j){return j.id===Ee.questionId});return se?we.renderQuestion(Se,se,ze,Ee.engagementUnitId,Ee.pageId):void 0}var L=Ee.engagementUnitId;if(ze)return we.renderResult(L,ze,xe.player.showShareButton&&!xe.player.disableUrls,A.Z.forceShowShareButton)})}X.Z.on(J._.questionAnsweredCorrectly,function(Ee){return we.renderResult(Ee,we.calcTotalQuestions(Ee),xe.player.showShareButton&&!xe.player.disableUrls,A.Z.forceShowShareButton)})},ne.prototype.renderQuestion=function(Se,he,we,xe,ze){var Ee=this.getGridLayer(he.id);Ee&&T.render(T.createElement(Ce,{quiz:Se,question:he,totalQuestions:we,engagementUnitId:xe,pageId:ze}),Ee)},ne.prototype.renderResult=function(Se,he,we,xe){xe===void 0&&(xe=!1);var ze=this.getGridLayer(Se),Ee=this.getScore(Se);ze&&T.render(T.createElement(Ne,{score:Ee,totalQuestions:he,engagementUnitId:Se,showShareButton:we,forceShowShareButton:xe}),ze)},ne.prototype.getScore=function(Se){var he,we,xe=new URLSearchParams(window.location.search).get("storyId")||"",ze=((we=(he=A.Z.quizAnsweredCorrectlyMap)===null||he===void 0?void 0:he[xe])===null||we===void 0?void 0:we[Se])||0;return ze??0},ne.prototype.clearQuizData=function(){A.Z.quizAnsweredCorrectlyMap={},A.Z.quizAnswerMap={}},ne.sharedInstance=new ne,ne})().sharedInstance},5620:function(f,b,m){m.d(b,{Z:function(){return $}});var S=m(7582),w=m(2385),T=m(6661),A=m(956),C=m(3441),P=m(355),B=m(5690),U=(function(z){function V(F){var ee=z.call(this)||this;return ee.shouldPersonalize=!1,ee.endpoint="triviaQuizzes",ee.method=P.w.get,ee.engagementUnits=F,ee}return(0,S.ZT)(V,z),V.prototype.buildEndpoint=function(){var F=new URLSearchParams;return this.engagementUnits.forEach(function(ee){return F.append("engagementUnits",ee)}),"".concat(this.endpoint,"?").concat(F.toString(),"&").concat(B.Z.parseUserAttributesToQueryStringAlphabetically())},V})(C.I),D=(function(z){function V(){var F=z!==null&&z.apply(this,arguments)||this;return F.logTag="QuizzesApiService",F}return(0,S.ZT)(V,z),V.prototype.loadQuizzes=function(F){return(0,S.mG)(this,void 0,void 0,function(){var ee,te;return(0,S.Jh)(this,function(K){switch(K.label){case 0:if(!F.engagementUnits.length)return[2,[]];ee=new U(F.engagementUnits),K.label=1;case 1:return K.trys.push([1,3,,4]),[4,w.Z.executeCommand(ee)];case 2:return(te=K.sent())&&(T.Z.quizzes.some(function(H){return H.engagementUnitId===te[0].engagementUnitId})||(T.Z.quizzes=(0,S.ev)((0,S.ev)([],T.Z.quizzes,!0),te,!0))),[2,te];case 3:return K.sent(),[2,null];case 4:return[2]}})})},V.sharedInstance=new V,V})(A.b),$=D.sharedInstance},5230:function(f,b,m){m.d(b,{Bp:function(){return P},Cb:function(){return A},y3:function(){return B}});var S=m(7582),w=m(6595),T=m(956),A="storyteller-player-",C=(function(U){function D($){var z=U.call(this)||this;return z.logTag="ListViewService",z.isBasenameBasedOnContent_=!1,z.isDisabled_=!1,z.loadingState_=w.G.Idle,z.urlsDisabled_=!1,z.onLoaded_=[],z.onDisabledStateUpdate_=$,z}return(0,S.ZT)(D,U),D.prototype.enable=function(){this.isDisabled_&&(this.isDisabled_=!1,this.onDisabledStateUpdate_())},D.prototype.disable=function(){this.isDisabled_||(this.isDisabled_=!0,this.onDisabledStateUpdate_())},Object.defineProperty(D.prototype,"id",{get:function(){return this.id_},set:function($){this.id_=$},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"basename",{get:function(){return this.basename_},set:function($){this.basename_=$},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"isBasenameBasedOnContent",{get:function(){return this.isBasenameBasedOnContent_},set:function($){this.isBasenameBasedOnContent_=$}
145,enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"isDisabled",{get:function(){return this.isDisabled_},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"loadingState",{get:function(){return this.loadingState_},set:function($){var z;if(this.loadingState_=$,[w.G.Error,w.G.Success].includes($))for(;this.onLoaded_.length;)(z=this.onLoaded_.pop())===null||z===void 0||z.call(this)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"playerContainerId",{get:function(){return this.playerContainerId_},set:function($){this.playerContainerId_=$},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"urlsDisabled",{get:function(){return this.urlsDisabled_},set:function($){this.urlsDisabled_=$},enumerable:!1,configurable:!0}),D.prototype.whenLoaded=function($){this.loadingState!==w.G.Success?this.onLoaded_.push($):$()},D})(T.b),P=(function(U){function D($){var z=U.call(this,$)||this;return z.logTag="StoriesListViewService",z.categories_=[],z}return(0,S.ZT)(D,U),Object.defineProperty(D.prototype,"categories",{get:function(){return this.categories_},set:function($){this.categories_=$},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"stories",{get:function(){return this.stories_},set:function($){this.stories_=$},enumerable:!1,configurable:!0}),D})(C),B=(function(U){function D($){var z=U.call(this,$)||this;return z.logTag="ClipsListViewService",z.isUnreachable_=!1,z}return(0,S.ZT)(D,U),Object.defineProperty(D.prototype,"clips",{get:function(){return this.clips_},set:function($){this.clips_=$},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"collection",{get:function(){return this.collection_},set:function($){this.collection_=$},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"isUnreachable",{get:function(){return this.isUnreachable_},set:function($){this.isUnreachable_=$},enumerable:!1,configurable:!0}),D})(C)},8105:function(f,b,m){var S=m(7582),w=m(8671),T=m(7112),A=m(8949),C=m(6008),P=m(9283),B=m(956),U=m(4338),D=m(791),$=m(5230),z=m(647),V="storyteller-view-id",F="stories-",ee="clips-",te="Please set the `disableUrls` theme property to `false` to proceed.",K={store:!0},H=(function(J){function G(){var Q=J!==null&&J.apply(this,arguments)||this;return Q.logTag="ListViewsService",Q._storiesViews=[],Q._clipsViews=[],Q.hasActiveDefaultClipsView_=!1,Q.hasActiveDefaultStoriesView_=!1,Q.viewportMimimumScale_=null,Q}return(0,S.ZT)(G,J),G.prototype.formatBasename=function(Q){return Q.replace(/[^a-zA-Z0-9_-]/g,"")},Object.defineProperty(G.prototype,"_storiesOnCurrentPage",{get:function(){for(var Q=document.querySelectorAll("[".concat(V,'^="').concat(F,'"]')),pe=[],ye=function(Re){var ge=Q[Re].getAttribute(V),Ce=de._storiesViews.find(function(Me){return Me.id===ge});Ce&&pe.push(Ce)},de=this,_e=0;_e<Q.length;_e++)ye(_e);return pe},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"_clipsOnCurrentPage",{get:function(){for(var Q=document.querySelectorAll("[".concat(V,'^="').concat(ee,'"]')),pe=[],ye=function(Re){var ge=Q[Re].getAttribute(V),Ce=de._clipsViews.find(function(Me){return Me.id===ge});Ce&&pe.push(Ce)},de=this,_e=0;_e<Q.length;_e++)ye(_e);return pe},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"clipsViewWithDefaultBasename",{get:function(){return this._clipsOnCurrentPage.find(function(Q){return Q.basename===D.xM})},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"storiesViewWithDefaultBasename",{get:function(){return this._storiesOnCurrentPage.find(function(Q){return Q.basename===D.c$})},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"hasActiveDefaultClipsView",{set:function(Q){this.hasActiveDefaultClipsView_=Q;var pe=this.clipsViewWithDefaultBasename;pe&&(Q?pe.disable():pe.enable())},enumerable:!1,configurable:!0}),Object.defineProperty(G.prototype,"hasActiveDefaultStoriesView",{set:function(Q){this.hasActiveDefaultStoriesView_=Q;var pe=this.storiesViewWithDefaultBasename;pe&&(Q?pe.disable():pe.enable())},enumerable:!1,configurable:!0}),G.prototype.onViewBasenameUpdated=function(Q){var pe=Q instanceof $.Bp;Q.basename===(pe?D.c$:D.xM)?(pe?this.hasActiveDefaultStoriesView_:this.hasActiveDefaultClipsView_)&&Q.disable():Q.enable()},G.prototype.getListViewUniqueId=function(Q){var pe=Q===U.D.stories?this._storiesViews:this._clipsViews;return"".concat(Q===U.D.stories?F:ee).concat(pe.length)},G.prototype.registerStoriesView=function(Q){this._storiesViews.push(Q)},G.prototype.registerClipsView=function(Q){this._clipsViews.push(Q)},G.prototype.getViewportMinimumScaleToRestore=function(){if(!this.viewportMimimumScale_){var Q=document.querySelector('meta[name="viewport"]');if(Q){var pe=Q.getAttribute("content")||"",ye=pe.indexOf("minimum-scale=");if(ye!==-1){var de=pe.indexOf(",",ye);
145de===-1&&(de=pe.length);var _e=pe.substring(ye+14,de);this.viewportMimimumScale_=_e}}}},Object.defineProperty(G.prototype,"viewportMimimumScale",{get:function(){return this.viewportMimimumScale_},enumerable:!1,configurable:!0}),G.prototype.getPlayerContainerId=function(Q){return"".concat($.Cb).concat(Q)},G.prototype.playerIsUsedByOtherViews=function(Q,pe,ye){var de=Q===U.D.stories?this._storiesViews:this._clipsViews,_e=!1;return de.forEach(function(Re){Re.playerContainerId===ye&&Re.id!==pe&&(_e=!0)}),_e},G.prototype.categoriesAreTheSame=function(Q,pe){return Q.sort().toString()===pe.sort().toString()},G.prototype.getStoriesViewBasename=function(Q,pe,ye){var de=this;if(ye===void 0&&(ye=[]),this._clipsOnCurrentPage.findIndex(function(Me){return Me.basename===pe})===-1){var _e=this._storiesOnCurrentPage.findIndex(function(Me){return Me.basename===pe});if(_e>-1&&this.categoriesAreTheSame(ye,this._storiesOnCurrentPage[_e].categories))return{basename:this.formatBasename(pe),isBasenameBasedOnContent:!0};if(_e===-1)return{basename:this.formatBasename(pe),isBasenameBasedOnContent:!1}}var Re=this._storiesOnCurrentPage.findIndex(function(Me){return Me.id!==Q&&de.categoriesAreTheSame(ye,Me.categories)});if(Re>-1){var ge=this._storiesOnCurrentPage[Re].basename;return{basename:this.formatBasename(ge),isBasenameBasedOnContent:!0}}var Ce=ye.length?ye.join("-"):"all-stories";return{basename:this.formatBasename(Ce),isBasenameBasedOnContent:!0}},G.prototype.getClipsViewBasename=function(Q,pe,ye){if(ye===void 0&&(ye=""),this._storiesOnCurrentPage.findIndex(function(ge){return ge.basename===pe})===-1){var de=this._clipsOnCurrentPage.findIndex(function(ge){return ge.basename===pe});if(de>-1&&this._clipsOnCurrentPage[de].collection===ye)return{basename:this.formatBasename(pe),isBasenameBasedOnContent:!0};if(de===-1)return{basename:this.formatBasename(pe),isBasenameBasedOnContent:!1}}var _e=this._clipsOnCurrentPage.findIndex(function(ge){return ge.id!==Q&&ge.collection===ye});if(_e>-1){var Re=this._clipsOnCurrentPage[_e].basename;return{basename:this.formatBasename(Re),isBasenameBasedOnContent:!0}}return{basename:this.formatBasename(ye),isBasenameBasedOnContent:!0}},G.prototype.checkForUnreachableClipPlayers=function(){var Q=this,pe=this._clipsOnCurrentPage.map(function(ye){return ye.id});this._clipsViews.forEach(function(ye,de){ye.isUnreachable||pe.includes(ye.id)||(Q._clipsViews[de].isUnreachable=!0,T.Z.broadcastEvent("clipPlayerUnreachable",ye.id))})},G.prototype.openStory=function(Q){return(0,S.mG)(this,void 0,void 0,function(){var pe,ye,de,_e,Re,ge,Ce,Me,Ue,Ne,We,et;return(0,S.Jh)(this,function(rt){switch(rt.label){case 0:pe=X(Q),rt.label=1;case 1:for(rt.trys.push([1,2,,10]),We=null,ye=[],de=0,_e=this._storiesOnCurrentPage;de<_e.length;de++)Re=_e[de],ge=Re.stories||[],(Ce=ge.findIndex(function(re){return pe?re.id===Q.id:re.externalId===Q.externalId}))>-1&&(ye.push(Re),We=ge[Ce]);if(ye.length>=1&&We){if((Me=ye.filter(function(re){return!re.urlsDisabled})).length===0)throw new Error("There are no Stories views with URLs enabled on the current page. ".concat(te));return Ue=Me[0],location.hash="".concat(Ue.basename,"/").concat(We.id),P.Z.setStoryPlaybackMode(We.id,w.e.singleStory),[2,Promise.resolve()]}throw new Error("There are no Stories views with this Story ".concat(pe?"ID":"External ID"," on the current page, or the Stories view have URLs disabled."));case 2:Ne=rt.sent(),We=void 0,rt.label=3;case 3:return rt.trys.push([3,8,,9]),X(Q)?[4,C.Z.loadStoryById(Q.id,K)]:[3,5];case 4:return We=rt.sent(),[3,7];case 5:return[4,C.Z.loadStoryByExternalId(Q.externalId,K)];case 6:We=rt.sent(),rt.label=7;case 7:return[3,9];case 8:return et=rt.sent(),[2,Promise.reject(et)];case 9:return We?(Ne instanceof Error&&this.log("Created #stories view for ".concat(pe?"openStory(".concat(Q.id,")"):"openStoryByExternalId(".concat(Q.externalId,")"),": ").concat(Ne.message)),location.hash="".concat(D.c$,"/").concat(We.id),P.Z.setStoryPlaybackMode(We.id,w.e.singleStory),[2,Promise.resolve()]):[2,Promise.reject("No Story with the provided ".concat(pe?"ID":"External ID"," was found."))];case 10:return[2]}})})},G.prototype.openPage=function(Q){return(0,S.mG)(this,void 0,void 0,function(){var pe,ye,de,_e,Re,ge;return(0,S.Jh)(this,function(Ce){switch(Ce.label){case 0:if(Ce.trys.push([0,1,,6]),(pe=this._storiesOnCurrentPage.filter(function(Me){return(Me.stories||[]).findIndex(function(Ue){return Ue.pages.findIndex(function(Ne){return Ne.id===Q})>-1})>-1})).length===0)throw new Error("No page with this ID could be found on the page.");if((ye=pe.filter(function(Me){return!Me.urlsDisabled})).length===0)throw new Error("There are no Stories views with URLs enabled on the current page. ".concat(te));return de=ye[0],Re=de.stories.find(function(Me){return Me.pages.findIndex(function(Ue){return Ue.id===Q})>-1}),location.hash="".concat(de.basename,"/").concat(Re.id,"/").concat(Q),P.Z.setStoryPlaybackMode(Re.id,w.e.singleStory),[2,Promise.resolve()];case 1:_e=Ce.sent(),Re=void 0,Ce.label=2;case 2:return Ce.trys.push([2,4,,5]),[4,C.Z.loadStoryByPageId(Q,K)];case 3:return Re=Ce.sent(),[3,5];case 4:return ge=Ce.sent(),[2,Promise.reject(ge)];case 5:return _e instanceof Error&&this.log("Created #stories view for openPage(".concat(Q,"): ").concat(_e.message)),location.hash="".concat(D.c$,"/").concat(Re.id,"/").concat(Q),[2,Promise.resolve()];case 6:return[2]}})})},G.prototype.openCategory=function(Q,pe){return(0,S.mG)(this,void 0,void 0,function(){var ye,de,_e,Re,ge,Ce,Me;return(0,S.Jh)(this,function(Ue){switch(Ue.label){case 0:if(Ue.trys.push([0,1,,6]),(ye=this._storiesOnCurrentPage.filter(function(Ne){return Ne.categories.length===1&&Ne.categories[0]===Q})).length===0)throw new Error("No category with this ID was found on the current page.");if((de=ye.filter(function(Ne){return!Ne.urlsDisabled})).length===0)throw new Error("There are no Stories views with URLs enabled on the current page. ".concat(te));if(_e=de[0],Re=_e.stories||[],pe){if(Re.find(function(Ne){return Ne.id===pe}))return location.hash="".concat(_e.basename,"/").concat(pe),[2,Promise.resolve()];this.log("Story ID ".concat(pe," couldn't be found in the Category with ID ").concat(Q,". Opening the first Story in the Category instead..."))}return location.hash="".concat(_e.basename,"/").concat(Re[0].id),[2,Promise.resolve()];case 1:ge=Ue.sent(),Ce=void 0,Ue.label=2;case 2:return Ue.trys.push([2,4,,5]),[4,C.Z.loadStories([Q],K)];case 3:return Ce=Ue.sent(),[3,5];case 4:return Me=Ue.sent(),[2,Promise.reject(Me)];case 5:if(ge instanceof Error&&this.log("Created #stories view for openCategory(".concat(Q,"): ").concat(ge.message)),pe){if(Ce.stories.find(function(Ne){return Ne.id===pe}))return location.hash="".concat(D.c$,"/").concat(pe,"?categoryId=").concat(Q),[2,Promise.resolve()];this.log("Story ID ".concat(pe," couldn't be found in the Category with ID ").concat(Q,". Opening the first Story in the Category instead..."))}return location.hash="".concat(D.c$,"/").concat(Ce.stories[0].id,"?categoryId=").concat(Q),[2,Promise.resolve()];case 6:return[2]}})})},G.prototype.openCollection=function(Q,pe,ye){return(0,S.mG)(this,void 0,void 0,function(){var de,_e,Re,ge,Ce,Me,Ue,Ne,We;return(0,S.Jh)(this,function(et){switch(et.label){case 0:de=function(rt,re){var ne=new URLSearchParams((0,S.pi)((0,S.pi)({},re?{category:re}:{}),ye?{openedReason:ye}:{}));return"".concat(rt?"/".concat(rt):"").concat(re||ye?"?".concat(ne.toString()):"")},et.label=1;case 1:if(et.trys.push([1,2,,7]),(_e=this._clipsOnCurrentPage.filter(function(rt){return rt.collection===Q})).length===0)throw new Error("There are no Clips views with this collection on the current page.");if((Re=_e.filter(function(rt){return!rt.urlsDisabled})).length===0)throw new Error("There are no Clips views with URLs enabled on the current page. ".concat(te));
145if(pe!=null&&pe.clipId){if(ge=Re.find(function(rt){return(rt.clips||[]).find(function(re){return re.id===pe.clipId})}))return location.hash="".concat(ge.basename,"/").concat(Q).concat(de(pe.clipId)),[2,Promise.resolve()];this.logWarning("openCollection(".concat(Q,"): Clip with ID ").concat(pe.clipId," was not found in the Collection. Opening the first Clip in the Collection instead..."))}if(pe!=null&&pe.categoryId){if(Ce=Re.find(function(rt){return(rt.clips||[]).find(function(re){return re.categories.includes(pe.categoryId)})}))return location.hash="".concat(Ce.basename,"/").concat(Q).concat(de(void 0,pe.categoryId)),[2,Promise.resolve()];this.logWarning("openCollection(".concat(Q,"): Category with ID ").concat(pe.categoryId," was not found in the Collection. Opening the first Clip in the Collection instead..."))}return location.hash="".concat(Re[0].basename,"/").concat(Q).concat(de((Re[0].clips||[])[0].id)),[2,Promise.resolve()];case 2:Me=et.sent(),et.label=3;case 3:return et.trys.push([3,5,,6]),[4,A.Z.loadClips(Q,K)];case 4:if(Ue=et.sent(),Me instanceof Error&&this.log("Created #clips view for openCollection(".concat(Q,"): ").concat(Me.message)),pe==null?void 0:pe.clipId){if(Ue.clips.find(function(rt){return rt.id===pe.clipId}))return location.hash="".concat(D.xM,"/").concat(Q).concat(de(pe.clipId)),[2,Promise.resolve()];this.logWarning("openCollection(".concat(Q,"): Clip with ID ").concat(pe.clipId," was not found in the Collection. Opening the first Clip in the Collection instead..."))}if(pe!=null&&pe.categoryId){if(Ne=Ue.clips.find(function(rt){return rt.categories.includes(pe.categoryId)}))return location.hash="".concat(D.xM,"/").concat(Q).concat(de(Ne.id,pe.categoryId)),[2,Promise.resolve()];this.logWarning("openCollection(".concat(Q,"): Category with ID ").concat(pe.categoryId," was not found in the Collection. Opening the first Clip in the Collection instead..."))}return location.hash="".concat(D.xM,"/").concat(Q).concat(de(Ue.clips[0].id)),[2,Promise.resolve()];case 5:return We=et.sent(),[2,Promise.reject(We)];case 6:return[3,7];case 7:return[2]}})})},G.prototype.getViewWithClip=function(Q){var pe=this._clipsOnCurrentPage.filter(function(de){return(de.clips||[]).find(function(_e){return _e.id===Q})});if(pe.length===0)throw new Error("The clip with ID ".concat(Q," could not be found."));var ye=pe.filter(function(de){return!de.urlsDisabled});if(ye.length===0)throw new Error("The clip with ID ".concat(Q," couldn't be opened, because there are no Clips views with URLs enabled on the current page. ").concat(te));return ye[0]},G.prototype.openClipById=function(Q){return(0,S.mG)(this,void 0,void 0,function(){var pe,ye,de,_e,Re,ge,Ce,Me,Ue,Ne,We,et,rt;return(0,S.Jh)(this,function(re){switch(re.label){case 0:for(re.trys.push([0,1,,6]),pe=null,ye=[],de=0,_e=this._clipsOnCurrentPage;de<_e.length;de++)Re=_e[de],ge=Re.clips||[],(Ce=ge.findIndex(function(ne){return ne.id===Q}))>-1&&(ye.push(Re),pe=ge[Ce]);if(ye.length>=1&&pe){if((Me=ye.filter(function(ne){return!ne.urlsDisabled})).length===0)throw new Error("There are no Clips views with URLs enabled on the current page. ".concat(te));return Ue=Me[0],location.hash="".concat(Ue.basename,"/").concat(Ue.collection,"/").concat(Q),T.Z.broadcastEvent(z._.openedPlayer,{clipId:Q,basename:Ue.basename,collection:Ue.collection}),[2,Promise.resolve()]}throw new Error("There are no Clips views with this Clip ID on the current page, or the Clips view have URLs disabled.");case 1:Ne=re.sent(),We=null,re.label=2;case 2:return re.trys.push([2,4,,5]),[4,A.Z.loadClip(Q,K)];case 3:return We=re.sent(),[3,5];case 4:return et=re.sent(),[2,Promise.reject(et)];case 5:return We?(rt=this._clipsOnCurrentPage.find(function(ne){return ne.collection===(We==null?void 0:We.collectionId)}))?(location.hash="".concat(rt.basename,"/").concat(We.collectionId,"/").concat(Q),[2,Promise.resolve()]):(Ne instanceof Error&&this.log("Created #clips view for openClip(".concat(Q,"): ").concat(Ne.message)),location.hash="".concat(D.xM,"/").concat(We.collectionId,"/").concat(Q),[2,Promise.resolve()]):[2,Promise.reject("No Clip with the provided ID was found.")];case 6:return[2]}})})},G.prototype.openClip=function(Q,pe){try{var ye=this.getViewWithClip(Q);location.hash="".concat(ye.basename,"/").concat(ye.collection,"/").concat(Q)}catch(de){de instanceof Error&&(pe?pe(de.message):this.logError(de.message))}},G.prototype.openClipByExternalId=function(Q,pe){return(0,S.mG)(this,void 0,void 0,function(){var ye,de,_e,Re,ge,Ce,Me,Ue,Ne,We,et,rt;return(0,S.Jh)(this,function(re){switch(re.label){case 0:if(re.trys.push([0,1,,6]),(ye=this._clipsOnCurrentPage.filter(function(ne){return ne.collection===Q})).length===0)throw new Error("There are no Clips views with this collection on the current page.");if((de=ye.filter(function(ne){return!ne.urlsDisabled})).length===0)throw new Error("There are no Clips views with this collection with URLs enabled on the current page. ".concat(te));for(_e=null,Re=null,ge=0,Ce=de;ge<Ce.length;ge++)if(Me=Ce[ge],Ue=(Me.clips||[]).find(function(ne){return ne.externalId===pe})){_e=Me,Re=Ue;break}if(!_e||!Re)throw new Error("The existing views for this collection don't include a Clip with the external ID ".concat(pe,"."));return location.hash="".concat(_e.basename,"/").concat(Q,"/").concat(Re.id),[2,Promise.resolve()];case 1:Ne=re.sent(),re.label=2;case 2:return re.trys.push([2,4,,5]),[4,A.Z.loadClips(Q,K)];case 3:return We=re.sent(),(et=We.clips.find(function(ne){return ne.externalId===pe}))?(Ne instanceof Error&&this.log("Created #clips view for openCollection(".concat(Q,"): ").concat(Ne.message)),location.hash="".concat(D.xM,"/").concat(Q,"/").concat(et.id),[2,Promise.resolve()]):[2,Promise.reject("The Clip with the external ID ".concat(pe," couldn't be found in the collection with ID ").concat(Q,"."))];case 4:return rt=re.sent(),[2,Promise.reject(rt)];case 5:return[3,6];case 6:return[2]}})})},G.sharedInstance=new G,G})(B.b);function X(J){return"id"in J}b.Z=H.sharedInstance},6265:function(f,b,m){var S=m(7582),w=m(9748),T=m(6550),A=m(5546),C=m(3871),P=m(4096),B=m(1092),U=m(4338),D=m(6595),$=m(5230),z=(function(V){function F(){var ee=V.call(this)||this;return ee.logTag="StorytellerClipsBaseView",ee.mediaType=U.D.clips,ee.supportsNavigation=!1,ee.listViewService_=new $.y3(ee.onDisabledStateUpdate_.bind(ee)),ee}return(0,S.ZT)(F,V),F.prototype.onDisabledStateUpdate_=function(){this.isDefaultView_||this.renderPlayer()}
145,F.prototype.getClipPropsFromRouteParams=function(ee){var te,K,H;return ee!=null&&ee.params&&(ee.params.basename&&(te=ee.params.basename),ee.params.collection&&(H=ee.params.collection,ee.params.clipId&&(K=ee.params.clipId))),{basename:te,collection:H,clipId:K}},F.prototype.onClipsLoadSuccess=function(ee){this.listViewService_.clips=ee.clips,this.listViewService_.loadingState=D.G.Success,this.feedTitle=ee.feedTitle,this.feedTitleImageUrl=ee.feedTitleImageUrl,this.supportsNavigation=ee.supportsNavigation,this.isReadUnreadOrderingEnabled_=ee.enableViewedOrdering,this.viewTheme_=ee.theme},F.prototype.onClipsLoadFailure=function(ee){this.listViewService_.clips=[],this.listViewService_.loadingState=D.G.Error,ee instanceof C.X?this.logWarning(ee.message):ee instanceof Error?this.logError(ee.message):typeof ee=="string"&&this.logError(ee)},F.prototype.loadClips=function(){this.listViewService_.collection&&(this.listViewService_.loadingState=D.G.Pending)},F.prototype.renderPlayer=function(){var ee,te=this;this.memoryRouterProps_&&!this.isDefaultView_||w.render(w.createElement(B.Z,{displayLimit:this.listConfiguration.displayLimit,clips:this.listViewService_.clips,clipsStatus:this.listViewService_.loadingState,basename:this.basename,delegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_||null,theme:this.listTheme_},w.createElement(T.AW,{path:["/:basename?/:collection/:clipId?"],render:function(K){var H=K.location,X=K.match,J=te.getClipPropsFromRouteParams(X),G=J.collection,Q=J.basename,pe=J.clipId;if(!G||G!==te.listConfiguration.collection||Q!==te.basename||te.listViewService_.isUnreachable||te.listViewService_.isDisabled)return null;var ye=new URLSearchParams(H.search).get("category");return w.createElement(P.Z,{clips:te.listViewService_.clips||[],clipsNavService:te.clipsNavService,feedHeader:ye?{title:ye}:{title:te.feedTitle,imageUrl:te.feedTitleImageUrl},collection:te.listViewService_.collection,basename:te.basename,isCategoryNavigation:!1,initialCategoryId:ye,initialClipId:pe,isInline:!1,onPlayerClose:function(){var de;return(de=te.onPlayerClose_)===null||de===void 0?void 0:de.call(te)},supportsNavigation:te.supportsNavigation})}})),(ee=this.playerContainerEl_)!==null&&ee!==void 0?ee:null)},F})(A.Z);b.Z=z},841:function(f,b,m){m.d(b,{A:function(){return $}});var S=m(9748),w=m(16),T=m(4184),A=m.n(T),C=m(4999),P=m(8844),B=m(6346),U={chip:"chip-iMw6G6",inRow:"inRow-2DyRTh",newChip:"newChip-mzzrHi",liveReadChip:"liveReadChip-DHjft6",liveUnreadChip:"liveUnreadChip-G3q7mK",newChipAlignRight:"newChipAlignRight-IajaQK",newChipAlignLeft:"newChipAlignLeft-Awj7bB",newChipAlignCenter:"newChipAlignCenter--8SAz8"},D=function(z){var V=z.cellType,F=z.read,ee=(0,w.F)().storyTiles[V===P.E.round?"circularTile":"rectangularTile"];return F?ee.liveChip.readImage?S.createElement(B.Ee,{src:ee.liveChip.readImage}):S.createElement(S.Fragment,null,"live"):ee.liveChip.unreadImage?S.createElement(B.Ee,{src:ee.liveChip.unreadImage}):S.createElement(S.Fragment,null,"live")},$=function(z){var V,F=z.cellType,ee=z.className,te=z.chipType,K=z.alignment,H=z.inRow;return te?S.createElement("span",{className:A()(U.chip,U["".concat(te,"Chip")],(V={},V[U.newChipAlignRight]=K==="right",V[U.newChipAlignLeft]=K==="left",V[U.newChipAlignCenter]=K==="center",V[U.inRow]=H,V),ee),"data-cell-type":F,role:"presentation"},te===C.x.new?"new":S.createElement(D,{cellType:F,read:te===C.x.liveRead})):S.createElement("span",null)}},4999:function(f,b,m){var S,w;m.d(b,{x:function(){return S}}),(w=S||(S={})).liveRead="liveRead",w.liveUnread="liveUnread",w.new="new"},4338:function(f,b,m){var S,w;m.d(b,{D:function(){return S}}),(w=S||(S={})).stories="stories",w.clips="clips"},1092:function(f,b,m){m.d(b,{Z:function(){return K}});var S,w=m(7582),T=m(9748),A=m(6550),C=m(3727),P=m(3843),B=m(546),U=m(7840),D=m(642),$=m(7050),z=m(7563);(S||(S={})).setClips="setClips";var V=function(H,X){if(X.type===S.setClips)return X.payload},F=m(8502),ee=function(H){var X=H.children,J=H.rootEl;return J?T.createElement($.y.Provider,{value:J},X):T.createElement(T.Fragment,null,X)},te=function(H){var X=H.children,J=H.memoryRouterProps;return J?T.createElement(A.VA,(0,w.pi)({},J),X):T.createElement(C.UT,{hashType:"noslash"},X)},K=function(H){var X=(0,T.useReducer)(V,H.clips),J=X[0],G=X[1],Q={displayLimit:H.displayLimit,clips:J,status:H.clipsStatus,dispatch:G};return(0,T.useEffect)(function(){var pe;G((pe=H.clips,{type:S.setClips,payload:pe}))},[H.clips]),T.createElement(P.Z,{onError:H.onError},T.createElement(ee,{rootEl:H.rootEl},T.createElement(U.Z.Provider,{value:H.delegate},T.createElement(B.Z.Provider,{value:H.delegate},T.createElement(D.v.Provider,{value:H.theme},T.createElement(te,{memoryRouterProps:H.memoryRouterProps},T.createElement(z.i,null,T.createElement(F.w.Provider,{value:Q},H.children))))))))}},4745:function(f,b,m){var S=m(7582),w=m(9748),T=m(6550),A=m(3727),C=m(9789),P=m(6661),B=m(7112),U=m(647),D=m(3843),$=m(7840),z=m(642),V=m(7050),F=function(te){var K=te.children,H=te.rootEl;return H?w.createElement(V.y.Provider,{value:H},K):w.createElement(w.Fragment,null,K)},ee=function(te){var K=te.children,H=te.memoryRouterProps;return H?w.createElement(T.VA,(0,S.pi)({},H),K):w.createElement(A.UT,{hashType:"noslash"},K)};b.Z=function(te){var K=te.children,H=te.displayLimit,X=te.listDelegate,J=te.onError,G=te.rootEl,Q=te.stories,pe=te.storiesStatus,ye=te.theme,de=te.memoryRouterProps,_e=(0,w.useState)(P.Z.storiesReadMap),Re=_e[0],ge=_e[1],Ce=(0,w.useCallback)(function(Ue){var Ne,We=(0,S.pi)((0,S.pi)({},Re),((Ne={})[Ue.storyId]=Ue.newStoryReadState,Ne));ge(We)},[Re]),Me={displayLimit:H,stories:Q,status:pe,storiesReadMap:Re};return(0,w.useEffect)(function(){B.Z.on(U._.storyStatusUpdate,Ce)},[Ce]),w.createElement(D.Z,{onError:J},w.createElement(F,{rootEl:G},w.createElement($.Z.Provider,{value:X},w.createElement(z.v.Provider,{value:ye},w.createElement(ee,{memoryRouterProps:de},w.createElement(C.A.Provider,{value:Me},K))))))}},9820:function(f,b,m){m.d(b,{Z:function(){return C}});var S=m(9748),w=m(7502),T=m(6346),A=m(4881),C=function(P){var B=P.children,U=(0,w.Z)((0,A.c)("amp-story-player-v0.js"));return(function(D){var $=(0,S.useState)(D?"loading":"idle"),z=($[0],$[1]);(0,S.useEffect)(function(){if(D){var V=document.querySelector('link[href="'.concat(D,'"]'));if(V)z(V.getAttribute("data-status")||"");else{(V=(0,T.EW)()).href=D,V.rel="stylesheet",V.type="text/css",V.setAttribute("data-status","loading");var F=function(te){V==null||V.setAttribute("data-status",te.type==="load"?"ready":"error")};V.onload=F,V.onerror=F,V.addEventListener("load",F),V.addEventListener("error",F),document.body.appendChild(V)}var ee=function(te){z(te.type==="load"?"ready":"error")};return V.onload=ee,V.onerror=ee,V.addEventListener("load",ee),V.addEventListener("error",ee),function(){V&&(V.onload=null,V.onerror=null,V.removeEventListener("load",ee),V.removeEventListener("error",ee))}}z("idle")},[D])})((0,A.c)("amp-story-player-v0.css")),U!==w.q.ready?S.default.createElement(S.default.Fragment,null):S.default.createElement(S.default.Fragment,null,B)}},791:function(f,b,m){m.d(b,{Hs:function(){return P},ZO:function(){return T},c$:function(){return C},dO:function(){return S},q9:function(){return w},xM:function(){return A}});
145var S="storyteller-player-visible",w="No element with ID %s was found. The Storyteller view couldn't be initialized.",T="The provided container ID %s is not valid. Only ASCII letters, numbers, dashes (`-`), and underscores (`_`) should be used. To avoid unexpected behaviour, the view's basename will be formatted to only include allowed characters.",A="clips",C="stories",P={appearance:{tiles:{title:{show:!0}}},behavior:{reloading:{reloadOnExit:!1,reloadOnForeground:!1}}}},7563:function(f,b,m){m.d(b,{fx:function(){return P},i:function(){return C}});var S=m(9748),w=m(6346),T="https://cdn.jsdelivr.net/npm/[email protected]",A=(0,S.createContext)({loadHlsLibrary:function(){return Promise.resolve()}}),C=function(B){var U=B.children;return S.createElement(A.Provider,{value:{loadHlsLibrary:function(){return new Promise(function(D,$){var z=document.querySelector('script[src="'.concat(T,'"]')),V=!z;z||((z=(0,w.hT)()).src=T,z.async=!0);var F=function(){return z==null||z.setAttribute("data-status","ready"),D()},ee=function(){return z==null||z.setAttribute("data-status","error"),$()};z.getAttribute("data-status")==="ready"?F():(z.onload=F,z.onerror=ee,z.addEventListener("load",F),z.addEventListener("error",ee)),V&&document.body.appendChild(z)})}}},U)},P=function(){var B=(0,S.useContext)(A);if(!B)throw new Error("useHlsContext must be used within a HlsContext Provider");return B}},7050:function(f,b,m){m.d(b,{y:function(){return S}});var S=m(9748).createContext(null)},8844:function(f,b,m){var S,w;m.d(b,{E:function(){return S}}),(w=S||(S={})).round="round",w.square="square"},4637:function(f,b,m){var S=m(7582),w=m(956),T=m(8105),A=m(7112),C=m(647),P=(function(B){function U(){var D=B!==null&&B.apply(this,arguments)||this;return D.logTag="PlayerService",D._isPlayerVisible=!1,D._isPlaybackEnabled=!0,D}return(0,S.ZT)(U,B),Object.defineProperty(U.prototype,"isVisible",{get:function(){return this._isPlayerVisible},set:function(D){this._isPlayerVisible!==D&&this.updateViewportMinimumScale_(D),this._isPlayerVisible=D},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"isPlaybackEnabled",{get:function(){return this._isPlaybackEnabled},enumerable:!1,configurable:!0}),U.prototype.enablePlayback=function(){this._isPlaybackEnabled=!0,A.Z.broadcastEvent(C._.playbackEnabled)},U.prototype.disablePlayback=function(){this._isPlaybackEnabled=!1,A.Z.broadcastEvent(C._.playbackDisabled)},U.prototype.updateViewportMinimumScale_=function(D){var $=document.querySelector('meta[name="viewport"]'),z=T.Z.viewportMimimumScale;if($){var V=$.getAttribute("content")||"",F="minimum-scale=",ee=V.indexOf(F);if(ee===-1)return D?void $.setAttribute("content","".concat(V,", ").concat(F,"1")):z?void $.setAttribute("content","".concat(V,", ").concat(F).concat(z)):void 0;var te=V.indexOf(",",ee);te===-1&&(te=V.length);var K=V.substring(ee+14,te);return D?void $.setAttribute("content",V.replace("".concat(F).concat(K),"".concat(F,"1"))):z?void $.setAttribute("content",V.replace("".concat(F).concat(K),"".concat(F).concat(z))):void $.setAttribute("content",V.replace(", ".concat(F,"1"),"").replace(",".concat(F,"1"),"").replace("".concat(F,"1"),""))}D&&(($=document.createElement("meta")).name="viewport",$.content="width=device-width, initial-scale=1, minimum-scale=1",document.head.appendChild($))},U.sharedInstance=new U,U})(w.b);b.Z=P.sharedInstance},1143:function(f,b,m){m.d(b,{Z:function(){return K}});var S=m(7582),w=m(9748),T=m(6550),A=m(4745),C=m(9820),P=m(3871),B=m(6595),U=m(4637),D=m(8672),$=m(4091),z=m(5546),V=m(4338),F=m(9283),ee=(function(H){function X(J){var G=H.call(this)||this;return G.logTag="StoriesPlayerSyncService",G._syncedStoriesIds=[],G._onStorySyncCheckComplete={},G.onStoriesMismatch_=J,G}return(0,S.ZT)(X,H),Object.defineProperty(X.prototype,"apiStories",{set:function(J){this._apiStories=J,this.checkIfStoriesAreInSync_()},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"playerStories",{set:function(J){this._playerStories=J,this.checkIfStoriesAreInSync_()},enumerable:!1,configurable:!0}),X.prototype.resetPlayerStories=function(){this._playerStories=null,this.checkIfStoriesAreInSync_()},X.prototype.updatePlayerStory=function(J){if(this._playerStories){var G=this._playerStories.findIndex(function(Q){return Q.href===J.href});G>-1?this._playerStories[G]=J:this._playerStories.push(J)}else this._playerStories=[J];this.checkIfStoriesAreInSync_()},X.prototype.ifStoryIsSynced=function(J,G){this._syncedStoriesIds.includes(J)?G():this._onStorySyncCheckComplete[J]?this._onStorySyncCheckComplete[J].push(G):this._onStorySyncCheckComplete[J]=[G]},X.prototype.whenStorySyncCheckComplete_=function(J){this._onStorySyncCheckComplete[J]&&(this._onStorySyncCheckComplete[J].forEach(function(G){return G()}),this._onStorySyncCheckComplete[J]=[])},X.prototype.checkIfStoriesAreInSync_=function(){var J=this;if(this._playerStories&&this._apiStories){for(var G=[],Q="",pe=!1,ye=[],de=function(Ce){var Me=_e._apiStories[Ce],Ue=_e._playerStories.findIndex(function(Se){return Se.href.includes(Me.id)});if(!(Ue>=0))return Q="- Story ".concat(Me.id," is not in player ").concat(Q),"continue";var Ne=_e._playerStories[Ue];
145if(!Ne.pages)return G.push(Me),"continue";for(var We=[],et=!1,rt=0;rt<Me.pages.length;rt++){var re=Me.pages[rt],ne=Ne.pages.includes(re.id);Ne.pages.length>=1&&!ne?(et=!0,Q="- Page ".concat(re.id," in story ").concat(Me.id," is not in player ").concat(Q)):We.push(re)}Me.pages=We,et&&(pe=!0,F.Z.checkStoryReadStatus(Me)),G.push(Me),ye.push(Me.id)},_e=this,Re=0;Re<this._apiStories.length;Re++)de(Re);Q&&this.logError("The Stories AMPHTML doesn't match the Stories returned by the API: ".concat(Q));var ge=ye.filter(function(Ce){return!J._syncedStoriesIds.includes(Ce)});this.stories=G,this._syncedStoriesIds=ye,pe?(this._onStorySyncCheckComplete={},this.onStoriesMismatch_()):ge.forEach(function(Ce){return J.whenStorySyncCheckComplete_(Ce)})}else this.stories=this._apiStories},X})(m(956).b),te=m(5230),K=(function(H){function X(){var J=H.call(this)||this;return J.logTag="StorytellerStoriesBaseView",J.mediaType=V.D.stories,J.isPlayerVisible_=!1,J.playerShouldBeAppendedToDOM_=!1,J.storiesShouldPreload_=!1,J.storiesPlayerSyncService_=new ee(J.onStoriesMismatch_.bind(J)),J.listViewService_=new te.Bp(J.onDisabledStateUpdate_.bind(J)),J}return(0,S.ZT)(X,H),Object.defineProperty(X.prototype,"stories",{get:function(){return this.storiesPlayerSyncService_.stories},set:function(J){this.storiesPlayerSyncService_.apiStories=J,this.listViewService_.stories=this.stories},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"playAllStories_",{get:function(){return this.listTheme_.player.playAllStories||!this.isReadUnreadOrderingEnabled_},enumerable:!1,configurable:!0}),X.prototype.onDisabledStateUpdate_=function(){this.isDefaultView_||this.renderPlayer()},X.prototype.onStoriesLoadFailure=function(J){J instanceof P.X?this.logWarning(J.message):J instanceof Error?this.logError(J.message):typeof J=="string"&&this.logError(J)},X.prototype.onStoriesMismatch_=function(){this.renderStoryteller()},X.prototype.loadStories=function(){this.listViewService_.loadingState=B.G.Pending},X.prototype.getStoriesWithRowIndex=function(){var J;return((J=this.stories)===null||J===void 0?void 0:J.map(function(G,Q){return(0,S.pi)((0,S.pi)({},G),{rowIndex:Q})}))||null},Object.defineProperty(X.prototype,"playerShouldBeAppendedToDOM",{set:function(J){J&&(this.playerShouldBeAppendedToDOM_=!0)},enumerable:!1,configurable:!0}),X.prototype.updatePlayerVisibility=function(J){this.isPlayerVisible_!==J&&(U.Z.isVisible=J,this.playerShouldBeAppendedToDOM=J)},X.prototype.renderPlayer=function(){var J,G=this;this.memoryRouterProps_&&!this.isDefaultView_||w.render(w.createElement(A.Z,{displayLimit:this.listConfiguration.displayLimit,stories:this.getStoriesWithRowIndex(),storiesStatus:this.listViewService_.loadingState,basename:this.basename,listDelegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_||null,theme:this.listTheme_},w.createElement(T.AW,{path:["/:basename?/:storyId?/:pageId?"],render:function(Q){var pe=Q.match,ye=Q.location,de=new URLSearchParams(ye.search).get("categoryId"),_e=(!de||G.listViewService_.categories.length===1&&G.listViewService_.categories[0]===de)&&!!pe.params.storyId&&G.basename===(pe==null?void 0:pe.params.basename)&&!G.listViewService_.isDisabled;return _e||G.playerShouldBeAppendedToDOM_?w.createElement(C.Z,null,w.createElement($.Z,{storyId:pe.params.storyId,pageId:pe.params.pageId,basename:G.basename,isVisible:_e,playAllStories:G.playAllStories_,setIsPlayerVisible:function(Re){return G.updatePlayerVisibility(Re)},shouldShowInstructions:G.shouldShowInstructions,currentCategories:G.listViewService_.categories,storiesPlayerSyncService:G.storiesPlayerSyncService_},w.createElement(D.Z,{cellType:G.cellType_,initialStoryId:pe.params.storyId,basename:G.basename,categories:G.listViewService_.categories,playAllStories:G.playAllStories_,uiTheme:G.listConfiguration.theme,uiStyle:G.listConfiguration.uiStyle,useGoogleWebStoryUrls:G.useGoogleWebStoryUrls_,viewId:G.id}))):null}})),(J=this.playerContainerEl_)!==null&&J!==void 0?J:null)},X})(z.Z)},5546:function(f,b,m){var S=m(7582),w=m(3983),T=m(956),A=m(6940),C=m(2173),P=m(1508),B=m(4539),U=m(8105),D=m(2408),$=m(7112),z=m(647),V=m(8844),F=m(5754),ee=m(4338),te=m(791),K=(function(H){function X(){var J=H!==null&&H.apply(this,arguments)||this;return J.logTag="StorytellerListViewBase",J.cellType_=V.E.square,J.delegate_=new w.c,J.isDefaultView_=!1,J.listTheme_=new F.W,J.viewTheme_=te.Hs,J}return(0,S.ZT)(X,H),X.prototype.parseAttributes=function(J){return J},X.prototype.parseBaseAttributes=function(){var J,G=(J=this.rootEl_)===null||J===void 0?void 0:J.dataset.uiStyle,Q=B.V.auto;return G&&(Q=B.V[G]),{uiStyle:Q}},Object.defineProperty(X.prototype,"delegate",{get:function(){return this.delegate_},set:function(J){this.delegate_=Object.assign(this.createDefaultDelegate(),J)}
145,enumerable:!1,configurable:!0}),X.prototype.createDefaultDelegate=function(){return new w.c},Object.defineProperty(X.prototype,"theme",{get:function(){return this.theme_},set:function(J){this.themeInput=J,this.buildTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"uiStyle",{get:function(){return this.attributes_?this.attributes_.uiStyle:B.V.auto},set:function(J){this.attributes_.uiStyle=J,this.buildTheme()},enumerable:!1,configurable:!0}),X.prototype.buildTheme=function(){this.themeInput?this.theme_=A.Z.merge(C.Z.theme,this.themeInput):this.theme_=A.Z.clone(C.Z.theme),this.listTheme_=new P.V(A.Z.prefersDarkMode(this.uiStyle),this.theme_).build(),this.rootEl_&&A.Z.setDocumentStyle({element:this.rootEl_,id:"list-theme-".concat(this.listViewService_.id),selector:"#".concat(this.rootEl_.id),theme:this.listTheme_}),this.isDefaultView_||(this.mediaType===ee.D.stories?this.listViewService_.urlsDisabled=this.listTheme_.player.disableUrls:this.listViewService_.urlsDisabled=this.listTheme_.clipPlayer.disableUrls,this.renderStoryteller())},Object.defineProperty(X.prototype,"displayLimit",{get:function(){return this.displayLimit_},set:function(J){this.displayLimit_=J,this.renderStoryteller()},enumerable:!1,configurable:!0}),X.prototype.onError=function(J){this.logError(J.message)},Object.defineProperty(X.prototype,"basename",{get:function(){return this.listViewService_.basename},set:function(J){if(this.isDefaultView_)throw new Error("Cannot set basename on a default view.");this.listViewService_.basename=J,U.Z.onViewBasenameUpdated(this.listViewService_)},enumerable:!1,configurable:!0}),Object.defineProperty(X.prototype,"id",{get:function(){return this.listViewService_.id},enumerable:!1,configurable:!0}),X.prototype.initializeListView=function(){var J,G=this;if(!this.isDefaultView_){var Q=U.Z.getListViewUniqueId(this.mediaType);this.listViewService_.id=Q,(J=this.rootEl_)===null||J===void 0||J.setAttribute("storyteller-view-id",Q),this.registerListView(),this.assignViewBasename()}this.theme_=A.Z.clone(C.Z.theme),this.buildTheme(),$.Z.on(z._.themeUpdated,function(){return G.buildTheme()}),D.Z.initialize(),this.initialize()},X.prototype.updateListConfiguration=function(J){J.hasOwnProperty("displayLimit")&&(this.displayLimit_=J.displayLimit?parseInt("".concat(J.displayLimit)):void 0),(J.theme||J.uiStyle)&&(J.theme&&(this.themeInput=J.theme),J.uiStyle&&(this.uiStyle=J.uiStyle,this.attributes_.uiStyle=J.uiStyle,this.rootEl_&&(this.rootEl_.dataset.uiStyle=J.uiStyle)),this.buildTheme()),J.basename&&this.assignViewBasename(J.basename)},X.prototype.assignViewBasename=function(J){var G,Q,pe,ye=(pe=this.mediaType===ee.D.stories?U.Z.getStoriesViewBasename(this.id,J||((G=this.rootEl_)===null||G===void 0?void 0:G.dataset.baseUrl)||this.mediaType,this.listViewService_.categories):U.Z.getClipsViewBasename(this.id,J||((Q=this.rootEl_)===null||Q===void 0?void 0:Q.dataset.baseUrl)||this.mediaType,this.listViewService_.collection)).basename,de=pe.isBasenameBasedOnContent;this.basename!==ye&&(this.updatePlayerContainerEl(ye),this.basename=ye,this.listViewService_.isBasenameBasedOnContent=de)},X.prototype.updatePlayerContainerEl=function(J){var G=U.Z.getPlayerContainerId(J),Q=document.querySelector("#".concat(G)),pe=!1;if(this.playerContainerEl_&&(pe=U.Z.playerIsUsedByOtherViews(this.mediaType,this.id,this.playerContainerEl_.id)),Q)return this.playerContainerEl_&&!pe&&document.body.removeChild(this.playerContainerEl_),this.playerContainerEl_=Q,void(this.listViewService_.playerContainerId=G);this.playerContainerEl_&&!pe||(this.playerContainerEl_=document.body.appendChild(document.createElement("div"))),this.playerContainerEl_.id=G,this.listViewService_.playerContainerId=G},X})(T.b);b.Z=K},9705:function(f,b,m){m.d(b,{LF:function(){return B},R1:function(){return U}});var S=m(8705),w=m(8936),T=m(8844),A=m(6818),C=2,P=2,B=function(D){var $=D.cellType,z=D.isReadUnreadOrderingEnabled,V=D.media,F=V===void 0?[]:V,ee=D.theme,te=P+C;if($===T.E.square)return{top:te,left:te,bottom:te,right:te};var K=ee.storyTiles.circularTile,H=K.unreadStrokeWidth,X=K.readStrokeWidth,J=H,G=H,Q=H;if(z){var pe=(0,A.R)(F==null?void 0:F[0]),ye=(0,A.R)(F==null?void 0:F[F.length-1]);if(pe===w.N.read&&(G=X),ye===w.N.read&&(Q=X),pe===w.N.read||ye===w.N.read)J=Math.max(H,X);else for(var de=1;de<(F||[]).length-1;de++){var _e=F==null?void 0:F[de];if((0,A.R)(_e)===w.N.read){J=Math.max(H,X);break}}}return{top:J+te,left:G+te,bottom:J+te,right:Q+te}};function U(){return`
146  `.concat((0,S.yG)("focus-outline-width"),": ").concat((0,S.B5)(C),`;
147  `).concat((0,S.yG)("focus-outline-offset"),": ").concat((0,S.B5)(P),`;
148  `)}},6818:function(f,b,m){m.d(b,{R:function(){return C}});var S=m(6339),w=m(5792),T=m(9283),A=m(8936),C=function(P){var B=A.N.unread;return(0,S.z)(P)&&(B=T.Z.getStoryReadState(P==null?void 0:P.id).status),(0,w.N)(P)&&(B=T.Z.getClipViewedState(P==null?void 0:P.id)),B}},5792:function(f,b,m){m.d(b,{N:function(){return S}});var S=function(w){return!(!w||!("description"in w))}},6339:function(f,b,m){m.d(b,{z:function(){return S}});var S=function(w){return!(!w||!("titles"in w))}},2434:function(f,b,m){m.d(b,{A:function(){return S}});var S=typeof document>"u"||typeof window>"u"},956:function(f,b,m){m.d(b,{b:function(){return A}});var S=m(7582),w=m(1554),T=m(373),A=(function(){function C(){}return C.prototype.logError=function(P){for(var B=[],U=1;U<arguments.length;U++)B[U-1]=arguments[U];T.Z.logError.apply(T.Z,(0,S.ev)([this.formatMessage(P)],B,!1))},C.prototype.logInfo=function(P){T.Z.logInfo(this.formatMessage(P))},C.prototype.log=function(P){T.Z.log(this.formatMessage(P))},C.prototype.logWarning=function(P){for(var B=[],U=1;U<arguments.length;U++)B[U-1]=arguments[U];T.Z.logWarning.apply(T.Z,(0,S.ev)([this.formatMessage(P)],B,!1))},C.prototype.formatMessage=function(P){return"Storyteller Javascript SDK : ".concat(w.q4," : ").concat(this.logTag," : ").concat(P)},C})()},373:function(f,b,m){var S=m(7582),w=m(1462),T=(function(){function A(){this._environment=w.q.production,this._isLoggingEnabled=!1}return Object.defineProperty(A.prototype,"environment",{set:function(C){this._environment=C||w.q.production}
148,enumerable:!1,configurable:!0}),A.prototype.enableLogging=function(){this._isLoggingEnabled=!0,this.logInfo("Storyteller logging enabled")},A.prototype.logError=function(C){for(var P=[],B=1;B<arguments.length;B++)P[B-1]=arguments[B];console&&console.error&&console.error.apply(console,(0,S.ev)([C],P,!1))},A.prototype.logInfo=function(C){(this._environment!==w.q.production||this._isLoggingEnabled)&&console&&console.info&&console.info(C)},A.prototype.logWarning=function(C){for(var P=[],B=1;B<arguments.length;B++)P[B-1]=arguments[B];(this._environment!==w.q.production||this._isLoggingEnabled)&&console&&console.warn&&console.warn.apply(console,(0,S.ev)([C],P,!1))},A.prototype.log=function(C){(this._environment!==w.q.production||this._isLoggingEnabled)&&console&&console.log&&console.log(C)},A.sharedInstance=new A,A})();b.Z=T.sharedInstance},1438:function(f,b,m){var S,w;m.d(b,{m:function(){return S}}),(w=S||(S={})).noAds="noAds",w.storyteller="storyteller",w.integratingApp="integratingApp"},9980:function(f,b,m){var S,w;function T(B){return!!B&&B.type===S.clipCollection&&"clipCollectionId"in B&&!!B.clipCollectionId}function A(B){return!!B&&B.type===S.clip&&"clipId"in B&&!!B.clipId}function C(B){return!!B&&B.type===S.storyCategory&&"storyCategoryId"in B&&!!B.storyCategoryId}function P(B){return!!B&&B.type===S.story&&"storyId"in B&&!!B.storyId}m.d(b,{MI:function(){return A},JB:function(){return T},Yz:function(){return P},H5:function(){return C}}),(w=S||(S={})).clip="clip",w.clipCollection="clipCollection",w.story="story",w.storyCategory="storyCategory"},6346:function(f,b,m){m.d(b,{Ee:function(){return T},Xf:function(){return C},EW:function(){return A},hT:function(){return P}});var S=m(7582),w=m(9748);function T(B){var U=(0,w.useRef)(null);return(0,w.useEffect)(function(){U.current&&(U.current.onload=function(D){var $;($=B.onLoad)===null||$===void 0||$.call(B,D)},U.current.onerror=function(D){var $;($=B.onError)===null||$===void 0||$.call(B,D)})},[B.onLoad,B.onError]),w.default.createElement("img",(0,S.pi)({},B,{alt:B.alt||"","data-uc-allowed":"true",ref:U}))}function A(){var B=document.createElement("link");return B.dataset.ucAllowed="true",B}function C(B){return w.default.createElement("script",(0,S.pi)({},B,{"data-uc-allowed":"true"}))}function P(){var B=document.createElement("script");return B.dataset.ucAllowed="true",B}},4881:function(f,b,m){m.d(b,{c:function(){return P}});var S=m(6661),w=m(4779),T=m(1462),A=m(1554),C="https://stories.usestoryteller.com/amp";function P(B){var U=w.Z.get(w.d.customEnvironment)==="production",D=U?C:A.k9,$="".concat(D,"/").concat(A.qS),z=w.Z.get(w.d.ampEnvironment);if(!U&&(z==="local"||S.Z.environment&&S.Z.environment!==T.q.production))if(z==="local")$=A.Z0;else{var V=w.Z.get(w.d.ampVersion),F=D;z==="dev"&&(F="https://storytellerdev.azureedge.net/amp"),z==="staging"&&(F="https://storytellerstaging.azureedge.net/amp"),V&&($="".concat(F,"/").concat(V))}return"".concat($,"/").concat(B)}},4366:function(f,b,m){function S(w,T){return w===void 0&&(w=[]),T===void 0&&(T=[]),w.find(function(A){return T.includes(A.externalId)})}m.d(b,{x:function(){return S}})},7392:function(f,b,m){m.d(b,{z:function(){return T}});var S=m(9283),w=m(8936),T=function(A){var C=A.enableReadUnreadOrdering;A.stories.sort(function(P,B){var U=!1,D=!1;C&&(U=S.Z.getStoryReadState(P.id).status!==w.N.read,D=S.Z.getStoryReadState(B.id).status!==w.N.read);var $=P.isPinned,z=B.isPinned,V=$||z,F=P.isLive,ee=B.isLive,te=F||ee;return V?!$&&z?1:$&&!z?-1:$&&z?U&&!D?-1:!U&&D?1:P.sortOrder-B.sortOrder:0:te?!F&&ee?1:F&&!ee?-1:F&&ee?U&&!D?-1:!U&&D?1:P.sortOrder-B.sortOrder:0:U===D?P.sortOrder-B.sortOrder:U?-1:1})}},7753:function(f,b,m){var S,w;m.d(b,{k:function(){return S}}),(w=S||(S={})).complete="amp-ad-complete",w.load="amp-ad-load",w.progress="amp-ad-progress"},7068:function(f,b,m){var S,w;m.d(b,{n:function(){return S}}),(w=S||(S={})).playerReady="ready",w.playerStoryPagesAppended="storyPagesAppended",w.engagementUnitAnswered="ampstory:engagementunitanswered",w.storyMutedState="amp-story-muted-state",w.storyNavigation="navigation",w.storyPageAttachmentOpen="story-page-attachment-tap",w.storyPageNavigation="storyNavigation",w.storyPageProgress="ampstory:pageprogress",w.storyPageShow="pageshow",w.storyPageVisible="story-page-visible",w.storyPageSwitch="ampstory:switchpage",w.playerClose="amp-story-player-close",w.playerKeyPress="amp-story-player-keypress",w.playerNoNextStory="noNextStory",w.playerShareButtonTapped="amp-story-player-share",w.playerTouchEnd="amp-story-player-touchend",w.playerTouchMove="amp-story-player-touchmove",w.playerTouchStart="amp-story-player-touchstart",w.storyAdView="story-ad-view",w.storyAdClick="story-ad-click",w.storyAdComplete="story-ad-complete",w.storyAdSkipped="story-ad-skipped",w.storyAdPaused="story-ad-paused",w.storyAdProgress="story-ad-progress",w.storyAdResumed="story-ad-resumed"},7409:function(f,b,m){var S,w;m.d(b,{G:function(){return S}}),(w=S||(S={})).image="image",w.video="video",w.poll="poll",w.triviaQuiz="triviaQuiz"},8936:function(f,b,m){var S,w;m.d(b,{N:function(){return S}}),(w=S||(S={})).unread="unread",w.read="read"},6008:function(f,b,m){m.d(b,{Z:function(){return ee}});var S=m(7582),w=m(2385),T=m(3871),A=m(956),C=m(3441),P=m(355),B=m(9283),U=m(7392),D=(function(te){function K(H){var X=te.call(this)||this;return X.shouldPersonalize=!0,X.endpoint="story/stories/default",X.method=P.
148w.get,X.categories=[],X.categories=H,X}return(0,S.ZT)(K,te),K.prototype.buildEndpoint=function(){if(!this.categories)return this.endpoint;var H=new URLSearchParams,X=this.categories.join(",");return H.append("categories",X),"".concat(this.endpoint,"?").concat(H.toString())},K.prototype.transformResponse=function(H){return H?(B.Z.initialiseReadStateForStories(H.stories),(0,U.z)(H),H):null},K})(C.I),$=(function(te){function K(H){var X=te.call(this)||this;return X.shouldPersonalize=!1,X.endpoint="story/stories/externalId",X.method=P.w.get,X.storyExternalId="",X.storyExternalId=H,X}return(0,S.ZT)(K,te),K.prototype.buildEndpoint=function(){return this.storyExternalId?"".concat(this.endpoint,"/").concat(this.storyExternalId):this.endpoint},K.prototype.transformResponse=function(H){return H?(B.Z.initialiseReadStateForStories([H]),H):null},K})(C.I),z=(function(te){function K(H){var X=te.call(this)||this;return X.shouldPersonalize=!1,X.endpoint="story/stories",X.method=P.w.get,X.storyId="",X.storyId=H,X}return(0,S.ZT)(K,te),K.prototype.buildEndpoint=function(){return this.storyId?"".concat(this.endpoint,"/").concat(this.storyId):this.endpoint},K.prototype.transformResponse=function(H){return H?(B.Z.initialiseReadStateForStories([H]),H):null},K})(C.I),V=(function(te){function K(H){var X=te.call(this)||this;return X.shouldPersonalize=!1,X.endpoint="story/stories/pages",X.method=P.w.get,X.pageId="",X.pageId=H,X}return(0,S.ZT)(K,te),K.prototype.buildEndpoint=function(){return this.pageId?"".concat(this.endpoint,"/").concat(this.pageId,"/story"):this.endpoint},K.prototype.transformResponse=function(H){return H?(B.Z.initialiseReadStateForStories([H]),H):null},K})(C.I),F=(function(te){function K(){var H=te!==null&&te.apply(this,arguments)||this;return H.logTag="StoriesApiService",H.categoriesCache_={},H.storiesCache_={},H}return(0,S.ZT)(K,te),K.prototype.loadStories=function(H,X){return(0,S.mG)(this,void 0,void 0,function(){var J,G,Q,pe;return(0,S.Jh)(this,function(ye){switch(ye.label){case 0:if(J=(H==null?void 0:H.length)===1,(X==null?void 0:X.retrieve)&&J&&this.categoriesCache_[H[0]])return G=this.categoriesCache_[H[0]],delete this.categoriesCache_[H[0]],[2,Promise.resolve(G)];Q=new D(H),ye.label=1;case 1:return ye.trys.push([1,3,,4]),[4,w.Z.executeCommand(Q)];case 2:if(!(pe=ye.sent()))throw new Error("Stories null");if(pe.stories.length===0)throw new T.X("Stories",H==null?void 0:H.join(","));return X!=null&&X.store&&J&&(this.categoriesCache_[H[0]]=pe),[2,pe];case 3:throw ye.sent();case 4:return[2]}})})},K.prototype.loadStoryByExternalId=function(H,X){return(0,S.mG)(this,void 0,void 0,function(){var J,G;return(0,S.Jh)(this,function(Q){switch(Q.label){case 0:J=new $(H),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,w.Z.executeCommand(J)];case 2:if(!(G=Q.sent()))throw new Error("No Story with the provided External ID was found.");return G&&(X!=null&&X.store)&&(this.storiesCache_[G.id]=G),[2,G];case 3:throw Q.sent();case 4:return[2]}})})},K.prototype.loadStoryById=function(H,X){return(0,S.mG)(this,void 0,void 0,function(){var J,G,Q;return(0,S.Jh)(this,function(pe){switch(pe.label){case 0:if(X!=null&&X.retrieve&&this.storiesCache_[H])return J=this.storiesCache_[H],delete this.storiesCache_[H],[2,Promise.resolve(J)];G=new z(H),pe.label=1;case 1:return pe.trys.push([1,3,,4]),[4,w.Z.executeCommand(G)];case 2:return(Q=pe.sent())&&(X!=null&&X.store)&&(this.storiesCache_[H]=Q),[2,Q];case 3:throw pe.sent();case 4:return[2]}})})},K.prototype.loadStoryByPageId=function(H,X){return(0,S.mG)(this,void 0,void 0,function(){var J,G;return(0,S.Jh)(this,function(Q){switch(Q.label){case 0:J=new V(H),Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,w.Z.executeCommand(J)];case 2:if(!(G=Q.sent()))throw new Error("No Story associated with this Page ID was found.");return G&&(X!=null&&X.store)&&(this.storiesCache_[G.id]=G),[2,G];case 3:throw Q.sent();case 4:return[2]}})})},K.sharedInstance=new K,K})(A.b),ee=F.sharedInstance},9789:function(f,b,m){m.d(b,{A:function(){return S}});
148var S=(0,m(9748).createContext)({stories:null,status:"",storiesReadMap:{}})},1417:function(f,b,m){m.d(b,{r:function(){return S}});var S=200},4091:function(f,b,m){m.d(b,{f:function(){return A}});var S=m(9748),w=m(4576),T=m(16),A=(0,S.createContext)({});b.Z=function(C){var P=C.pageId,B=C.children,U=C.storyId,D=C.basename,$=C.isVisible,z=C.playAllStories,V=C.setIsPlayerVisible,F=C.currentCategories,ee=C.shouldShowInstructions,te=C.storiesPlayerSyncService,K=(0,S.useRef)(null),H=(0,w.Z)(),X=(0,S.useRef)(0),J=(0,S.useState)($),G=J[0],Q=J[1],pe=(0,S.useRef)(!0),ye=(0,T.F)();(0,S.useEffect)(function(){var _e,Re;G||((_e=K.current)===null||_e===void 0||_e.pause(!0),(Re=K.current)===null||Re===void 0||Re.mute())},[G,K]);var de=(0,S.useCallback)(function(_e){Q(_e),V(_e)},[V]);return S.createElement(A.Provider,{value:{pageId:P,storyId:U,basename:D,isVisible:$,playAllStories:z,currentCategories:F,player:K,finalStoryIndex:X,muteState:pe,setLightboxVisible:de,isLightboxVisible:G,listDelegate:H,shouldShowInstructions:ee,storiesPlayerSyncService:te,theme:ye}},B)}},3779:function(f,b,m){var S=m(9748),w=m(9789);b.Z=function(){var T=(0,S.useContext)(w.A);if(!T)throw new Error("useStoriesContext must be used within a StoriesContext Provider");return T}},8672:function(f,b,m){m.d(b,{Z:function(){return He}});var S,w,T,A=m(7582),C=m(9748),P=m(5518),B=m(4184),U=m.n(B),D=m(4091),$=function(){var $e=C.useContext(D.f);if(!$e)throw new Error("useStoryViewContext must be used within a StoryViewContextProvider");return $e},z=m(7112),V=m(3914),F=m(647),ee=m(1822),te=m(6661),K=m(6940),H=m(6346),X=m(16),J=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M31.631 9.293a.883.883 0 0 1-.256-.606l-.008-2.422a.846.846 0 0 1 .851-.851.86.86 0 0 1 .857.856l.008 2.423a.848.848 0 0 1-1.451.6ZM28.609 11.1a.859.859 0 0 1-1.211-.004L24.36 8.058a.859.859 0 0 1-.004-1.21.859.859 0 0 1 1.211.003l3.038 3.038c.334.334.336.88.004 1.211ZM35.876 11.124a.859.859 0 0 1-.004-1.211l3.018-3.018a.859.859 0 0 1 1.216 1.215l-3.019 3.018a.859.859 0 0 1-1.21-.004ZM38.313 15.625a.883.883 0 0 1-.606-.256.883.883 0 0 1-.256-.607.846.846 0 0 1 .85-.85l2.423.007a.86.86 0 0 1 .857.857.846.846 0 0 1-.851.851l-2.417-.002ZM38.942 22.64l-3.038-3.038a.859.859 0 0 1-.004-1.21.859.859 0 0 1 1.211.003l3.038 3.038c.334.334.336.879.004 1.211a.859.859 0 0 1-1.211-.004Z"}),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",fillRule:"evenodd",d:"M21.1 31.921a.4.4 0 0 1 .645.114l2.123 4.55c.77 1.653 3.17 1.497 3.72-.242l6.716-21.226c.49-1.544-.965-2.999-2.51-2.51l-21.226 6.717c-1.738.55-1.894 2.949-.242 3.72l4.55 2.123a.4.4 0 0 1 .114.645l-4.923 4.923a2 2 0 0 0 0 2.828l3.281 3.281a2 2 0 0 0 2.829 0l4.923-4.923Zm4.84 3.901 6.717-21.226a.272.272 0 0 0-.341-.341l-21.227 6.717c-.084.027-.118.062-.137.087a.294.294 0 0 0-.052.154.294.294 0 0 0 .032.16c.015.028.044.067.124.105l4.551 2.123a2.128 2.128 0 0 1 .605 3.433l-4.923 4.923a.272.272 0 0 0 0 .385l3.281 3.28a.272.272 0 0 0 .385 0l4.923-4.922a2.128 2.128 0 0 1 3.433.605l2.123 4.55c.037.08.076.11.104.125.037.02.093.036.16.032a.293.293 0 0 0 .155-.053c.025-.019.06-.052.087-.137Z",clipRule:"evenodd"}))},G=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M14.368 7.293a.883.883 0 0 0 .257-.606l.008-2.422a.846.846 0 0 0-.851-.851.86.86 0 0 0-.857.856l-.008 2.423a.848.848 0 0 0 1.451.6ZM18.391 8.1a.859.859 0 0 0 1.211-.004l3.038-3.038a.859.859 0 0 0 .004-1.21.859.859 0 0 0-1.211.003L18.395 6.89a.859.859 0 0 0-.004 1.211ZM10.124 9.124a.859.859 0 0 0 .004-1.211L7.11 4.895A.859.859 0 0 0 5.894 6.11l3.019 3.018a.859.859 0 0 0 1.21-.004ZM7.687 13.625a.883.883 0 0 0 .606-.256.883.883 0 0 0 .256-.607.846.846 0 0 0-.85-.85l-2.423.007a.86.86 0 0 0-.857.857.846.846 0 0 0 .851.851l2.417-.002ZM6.058 21.64l3.038-3.038a.859.859 0 0 0 .004-1.21.859.859 0 0 0-1.211.003L4.85 20.433a.859.859 0 0 0-.004 1.211.859.859 0 0 0 1.211-.004Z"}
148),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",fillRule:"evenodd",d:"M33.5 12.72h-5a.78.78 0 0 0-.78.78v21c0 .43.35.78.78.78h5c.43 0 .78-.35.78-.78v-21a.78.78 0 0 0-.78-.78Zm-5-1.72a2.5 2.5 0 0 0-2.5 2.5v21a2.5 2.5 0 0 0 2.5 2.5h5a2.5 2.5 0 0 0 2.5-2.5v-21a2.5 2.5 0 0 0-2.5-2.5h-5ZM19.5 12.72h-5a.78.78 0 0 0-.78.78v21c0 .43.35.78.78.78h5c.43 0 .78-.35.78-.78v-21a.78.78 0 0 0-.78-.78Zm-5-1.72a2.5 2.5 0 0 0-2.5 2.5v21a2.5 2.5 0 0 0 2.5 2.5h5a2.5 2.5 0 0 0 2.5-2.5v-21a2.5 2.5 0 0 0-2.5-2.5h-5Z",clipRule:"evenodd"}))},Q=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M10.293 15.324a.883.883 0 0 1-.606.257l-2.422.008a.846.846 0 0 1-.851-.852.86.86 0 0 1 .856-.856l2.423-.008a.848.848 0 0 1 .6 1.451ZM12.1 18.347a.859.859 0 0 1-.004 1.211l-3.038 3.038a.859.859 0 0 1-1.21.004.859.859 0 0 1 .003-1.211l3.038-3.038a.859.859 0 0 1 1.211-.004ZM12.124 11.08a.859.859 0 0 1-1.211.004L7.895 8.065A.859.859 0 0 1 9.11 6.85l3.018 3.018a.859.859 0 0 1-.004 1.211ZM16.625 8.642a.883.883 0 0 1-.256.607.883.883 0 0 1-.607.256.846.846 0 0 1-.85-.85l.007-2.423a.86.86 0 0 1 .857-.857.846.846 0 0 1 .851.851l-.002 2.416ZM23.64 8.014l-3.038 3.038a.859.859 0 0 1-1.21.004.859.859 0 0 1 .003-1.211l3.038-3.038a.859.859 0 0 1 1.211-.004.859.859 0 0 1-.004 1.211Z"}),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",fillRule:"evenodd",d:"M32.921 25.856a.4.4 0 0 1 .114-.645l4.55-2.123c1.653-.77 1.497-3.17-.242-3.72l-21.226-6.716c-1.544-.49-2.999.965-2.51 2.51l6.717 21.226c.55 1.738 2.949 1.894 3.72.242l2.123-4.55a.4.4 0 0 1 .645-.114l4.923 4.923a2 2 0 0 0 2.828 0l3.281-3.281a2 2 0 0 0 0-2.829l-4.923-4.923Zm3.901-4.84L15.596 14.3a.272.272 0 0 0-.341.341l6.717 21.226c.027.085.062.119.087.138a.294.294 0 0 0 .154.052.293.293 0 0 0 .16-.032c.028-.015.067-.044.105-.125l2.123-4.55a2.128 2.128 0 0 1 3.433-.605l4.923 4.923a.272.272 0 0 0 .385 0l3.28-3.281a.272.272 0 0 0 0-.385L31.7 27.078a2.128 2.128 0 0 1 .604-3.433l4.551-2.123c.08-.038.11-.077.125-.104a.294.294 0 0 0 .032-.16.293.293 0 0 0-.053-.155c-.019-.025-.052-.06-.
148137-.087Z",clipRule:"evenodd"}))},pe=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{stroke:$e.isDark?"#ffffff":"#1a1a1a",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.72",d:"m22.997 18.5 7 6.5-7 6.5"}),C.createElement("path",{fill:"#1C62EB",d:"M16.032 9.302a.98.98 0 0 0 .284-.672l.009-2.686A.938.938 0 0 0 15.38 5a.953.953 0 0 0-.95.95l-.009 2.686a.938.938 0 0 0 .944.943.94.94 0 0 0 .666-.277ZM19.383 11.305a.952.952 0 0 0 1.343-.004l3.368-3.369A.952.952 0 0 0 24.1 6.59a.952.952 0 0 0-1.343.004l-3.369 3.368a.952.952 0 0 0-.004 1.343ZM11.325 11.332a.952.952 0 0 0 .005-1.343L7.982 6.642A.952.952 0 0 0 6.636 7.99l3.346 3.347a.952.952 0 0 0 1.343-.005ZM8.623 16.323a.979.979 0 0 0 .672-.285.98.98 0 0 0 .284-.672.938.938 0 0 0-.943-.944l-2.686.009a.953.953 0 0 0-.95.95.938.938 0 0 0 .944.944l2.679-.002ZM7.926 24.1l3.368-3.368a.952.952 0 0 0 .005-1.343.952.952 0 0 0-1.343.005l-3.368 3.368a.952.952 0 0 0-.005 1.343.952.952 0 0 0 1.343-.005Z"}),C.createElement("path",{stroke:$e.isDark?"#ffffff":"#1a1a1a",strokeLinecap:"round",strokeWidth:"1.72",d:"M10.927 26.237c.384 7.712 6.759 13.847 14.566 13.847 8.055 0 14.585-6.53 14.585-14.585 0-7.807-6.135-14.182-13.847-14.566"}))},ye=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M26.162 8.533a.889.889 0 0 0 .614-.25l1.73-1.718a.852.852 0 0 0 0-1.211.865.865 0 0 0-1.22 0l-1.73 1.718a.852.852 0 0 0 0 1.212c.165.163.381.249.606.249ZM26.413 15.656a.852.852 0 0 0 0 1.212l.865.86c.173.171.39.257.614.257a.889.889 0 0 0 .614-.25.852.852 0 0 0 0-1.21l-.865-.86a.868.868 0 0 0-1.228-.009ZM27.027 11.97c0 .473.39.86.865.86h4.325a.865.865 0 0 0 .864-.86c0-.472-.389-.86-.864-.86h-4.325a.865.865 0 0 0-.865.86ZM21.838 6.815a.865.865 0 0 0 .865-.86V1.66a.865.865 0 0 0-1.73 0v4.296c0 .473.39.86.865.86ZM16.9 8.284c.172.163.389.249.614.249a.889.889 0 0 0 .614-.25.852.852 0 0 0 0-1.21l-1.73-1.72a.865.865 0 0 0-1.22 0 .852.852 0 0 0 0 1.212L16.9 8.284ZM16.035 15.656l-.865.86a.852.852 0 0 0 0 1.211.86.86 0 0 0 .614.258.889.889 0 0 0 .614-.25l.865-.858a.852.852 0 0 0 0-1.212.868.868 0 0 0-1.228-.009ZM11.46 12.83h4.324a.865.865 0 0 0 .865-.86c0-.472-.39-.86-.865-.86h-4.325a.865.865 0 0 0-.864.86c0 .473.389.86.864.86Z"}),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",d:"M35.676 22.281h-.822c-.527-.48-1.358-.859-2.638-.859h-2.551c-.528-.481-1.358-.86-2.638-.86h-1.73V11.97c0-.85 0-3.437-3.46-3.437-3.459 0-3.459 2.587-3.459 3.437v17.185c0 .43-.069.662-.112.765-.164-.034-.718-.223-1.877-1.366-2.119-2.105-4.462-2.913-6.27-2.174C8.779 26.93 8 28.262 8 30.015c0 .232.095.447.25.61 2.682 2.663 5.147 6.032 6.755 9.228 2.457 4.872 6.798 7.347 12.887 7.347C35.702 47.2 40 42.93 40 35.17v-6.874c0-3.763-1.617-6.015-4.324-6.015Zm-7.784 23.2c-5.388 0-9.194-2.156-11.338-6.401-1.635-3.257-4.109-6.66-6.816-9.409.078-.86.442-1.47 1.047-1.718.839-.344 2.49-.078 4.385 1.804 1.012 1.005 2.508 2.277 3.78 1.753.527-.206 1.158-.79 1.158-2.355V11.97c0-.962 0-1.718 1.73-1.718s1.73.756 1.73 1.718v12.89c0 1.718.864 2.577 1.73 2.577V22.28h1.729c1.591 0 1.721.74 1.73.86V24c0 1.718.865 2.578 1.73 2.578V23.14h1.73c1.59 0 1.72.74 1.729.86 0 1.718.865 2.578 1.73 2.578V24c2.343 0 2.594 3.007 2.594 4.296v6.874c0 6.84-3.494 10.311-10.378 10.311Z"}))},de=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M27.162 14.111a.856.856 0 0 0 1.116-.49c.32-.797.476-1.63.476-2.471 0-3.785-3.106-6.867-6.92-6.867-3.816 0-6.921 3.082-6.921 6.867 0 .841.164 1.674.475 2.472a.875.875 0 0 0 1.125.49.863.863 0 0 0 .493-1.117 5.105 5.105 0 0 1-.355-1.845c0-2.841 2.328-5.15 5.19-5.15 2.864 0 5.191 2.309 5.191 5.15 0 .626-.12 1.244-.354 1.845a.852.852 0 0 0 .484 1.116Z"}),C.createElement("path",{fill:"#1C62EB",d:"M13.433 17.235a.857.857 0 0 0 .286-1.184 9.365 9.365 0 0 1-1.393-4.901c0-5.21 4.265-9.442 9.516-9.442
148s9.516 4.232 9.516 9.442a9.346 9.346 0 0 1-1.401 4.91.86.86 0 0 0 .285 1.184.853.853 0 0 0 .45.129c.294 0 .58-.146.735-.412a11.065 11.065 0 0 0 1.653-5.803C33.08 5.004 28.036 0 21.833 0c-6.202 0-11.246 5.004-11.246 11.158 0 2.043.571 4.043 1.652 5.803a.881.881 0 0 0 1.194.274Z"}),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",d:"M35.676 22.308h-.822c-.527-.481-1.358-.86-2.638-.86h-2.551c-.528-.48-1.358-.858-2.638-.858h-1.73v-8.593c0-.85 0-3.437-3.46-3.437-3.459 0-3.459 2.586-3.459 3.437v17.185c0 .43-.069.662-.112.765-.164-.034-.718-.223-1.877-1.366-2.119-2.105-4.462-2.913-6.27-2.174C8.779 26.957 8 28.289 8 30.04c0 .232.095.447.25.61 2.682 2.664 5.147 6.033 6.755 9.229 2.457 4.872 6.798 7.347 12.887 7.347 7.81 0 12.108-4.27 12.108-12.03v-6.874c0-3.764-1.617-6.015-4.324-6.015Zm-7.784 23.2c-5.388 0-9.194-2.157-11.338-6.401-1.635-3.257-4.109-6.66-6.816-9.41.078-.858.442-1.468 1.047-1.718.839-.343 2.49-.077 4.385 1.805 1.012 1.005 2.508 2.277 3.78 1.753.527-.207 1.158-.79 1.158-2.355V11.997c0-.962 0-1.718 1.73-1.718s1.73.756 1.73 1.718v12.889c0 1.719.864 2.578 1.73 2.578v-5.156h1.729c1.591 0 1.721.74 1.73.86v.859c0 1.718.865 2.578 1.73 2.578V23.167h1.73c1.59 0 1.72.74 1.729.86 0 1.718.865 2.578 1.73 2.578v-2.578c2.343 0 2.594 3.007 2.594 4.296v6.874c0 6.84-3.494 10.311-10.378 10.311Z"}))},_e=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M16.799 8.857a.875.875 0 0 0 .416-.507l.693-2.317a.853.853 0 0 0-.569-1.063.848.848 0 0 0-1.058.572l-.694 2.317a.853.853 0 0 0 .57 1.063c.218.066.447.04.642-.065ZM20.365 14.986a.853.853 0 0 0 .57 1.063l1.154.348c.23.07.459.043.654-.062a.852.852 0 0 0-.153-1.569l-1.155-.348a.851.851 0 0 0-1.07.568ZM19.165 11.466a.853.853 0 0 0 1.155.348l3.753-2.027a.86.86 0 0 0 .347-1.159.853.853 0 0 0-1.154-.348l-3.754 2.027a.86.86 0 0 0-.347 1.159ZM12.238 9.376a.86.86 0 0 0 .347-1.159l-2.02-3.767a.853.853 0 0 0-1.154-.348.86.86 0 0 0-.347 1.158l2.02 3.768a.853.853 0 0 0 1.154.348ZM8.641 12.98a.87.87 0 0 0 .65-.07.852.852 0 0 0-.154-1.569l-2.308-.696a.853.853 0 0 0-.49 1.634l2.302.7ZM11.356 19.85l-.347 1.16a.853.853 0 0 0 .57 1.062c.23.07.458.044.654-.062a.876.876 0 0 0 .415-.506l.347-1.16a.853.853 0 0 0-.57-1.062.851.851 0 0 0-1.07.569ZM6.056 19.516l3.753-2.027a.86.86 0 0 0 .347-1.159.853.853 0 0 0-1.154-.348l-3.754 2.027a.86.86 0 0 0-.347 1.159.853.853 0 0 0 1.155.348Z"}),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",d:"m31.767 16.467-.724.389c-.692-.175-1.603-.115-2.73.49l-2.249 1.206c-.692-.174-1.602-.115-2.73.49l-1.524.818-4.063-7.57c-.403-.75-1.626-3.03-4.674-1.393-3.048 1.635-1.825 3.914-1.423 4.664l8.126 15.142c.204.379.252.616.263.727-.161.048-.738.143-2.3-.316-2.862-.853-5.31-.456-6.553 1.05-.921 1.118-.977 2.66-.148 4.204.11.204.295.349.51.419 3.621 1.08 7.386 2.882 10.315 4.938 4.468 3.131 9.464 3.258 14.828.38 6.882-3.694 8.65-9.489 4.981-16.326l-3.25-6.057c-1.78-3.316-4.27-4.535-6.655-3.255ZM35.88 40.59c-4.748 2.548-9.12 2.447-13.018-.279-2.98-2.096-6.768-3.925-10.454-5.068-.338-.794-.306-1.503.11-2.009.576-.7 2.158-1.246 4.716-.483 1.367.407 3.287.82 4.16-.243.367-.431.647-1.245-.093-2.623l-8.126-15.142c-.455-.848-.812-1.514.712-2.332 1.524-.818 1.881-.152 2.337.696l6.094 11.357c.813 1.514 1.981 1.862 2.743 1.453l-1.219-2.27-1.219-2.272 1.524-.818c1.403-.753 1.866-.163 1.93-.061l.407.757c.813 1.514 1.981 1.863 2.743 1.453l-1.219-2.27-.406-.758 1.524-.818c1.402-.752 1.866-.163 1.93-.06.813 1.514 1.982 1.862 2.744 1.453l-1.22-2.272c2.066-1.108 3.709 1.423 4.319 2.56l3.25 6.056c3.234 6.027 1.797 10.738-4.27 13.993Z"}))},Re=function(){var $e=(0,X.F)();return C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none"},C.createElement("path",{fill:"#1C62EB",d:"M43.137 4.008c-.086-.43-.517-.774-.949-.688a.892.892 0 0 0-.69 1.032l.432 2.58C37.79 3.663 30.889 1.6 23.298 1.6c-4.917 0-9.661 1.032-13.801 2.838-.518.258-1.208.516-2.07 1.032a1.805 1.805 0 0 0-.518.344c-.086.086-.518.258-.518.343l-1.035.774.432-2.58a.892.892 0 0 0-.69-1.031.895.895 0 0 0-1.036.688L3.2 9.168c-.086.55.136 1.03.862 1.03h5.176c.517 0 .863-.429.863-.859s-.432-.86-.863-.86H6.046c.432-.344.863-.688 1.294-.946C11.998 4.782 17.432 3.32 23.298 3.32c7.418 0 14.146 1.978 17.855 5.16h-3.105c-.431 0-.863.43-.863.86 0 .429.432.859.863.859h5.175c.665 0 .852-.602.777-1.118l-.863-5.073Z"}
148),C.createElement("path",{fill:$e.isDark?"#ffffff":"#1a1a1a",d:"m35.369 26-.724-.388c-.237-.673-.79-1.4-1.918-2.004L30.48 22.4c-.237-.673-.79-1.4-1.918-2.004l-1.524-.818 4.063-7.572c.402-.75 1.625-3.028-1.423-4.664-3.048-1.636-4.271.643-4.674 1.393l-8.126 15.142c-.203.379-.374.55-.46.621-.129-.108-.527-.536-1.008-2.091-.872-2.857-2.555-4.677-4.497-4.88-1.441-.15-2.757.655-3.586 2.2a.884.884 0 0 0-.067.656C8.362 24 8.94 28.132 8.847 31.71c-.14 5.454 2.516 9.687 7.88 12.566 6.882 3.693 12.689 1.963 16.358-4.874l3.25-6.057c1.78-3.316 1.42-6.064-.966-7.345ZM17.54 42.763c-4.747-2.547-7.08-6.247-6.964-11.002.1-3.642-.47-7.81-1.556-11.513.475-.72 1.084-1.086 1.735-1.02.902.095 2.231 1.11 3.01 3.664.417 1.364 1.134 3.192 2.502 3.332.562.068 1.395-.149 2.134-1.527l8.127-15.142c.455-.848.812-1.515 2.336-.697 1.524.818 1.167 1.485.712 2.333L23.48 22.547c-.812 1.514-.457 2.68.305 3.089l1.22-2.272 1.218-2.271 1.524.818c1.403.752 1.168 1.465 1.118 1.575l-.406.757c-.813 1.514-.457 2.68.305 3.09l1.219-2.272.406-.757 1.524.818c1.403.752 1.167 1.465 1.118 1.575-.812 1.514-.457 2.68.306 3.09l1.218-2.272c2.066 1.108.864 3.877.255 5.012l-3.25 6.057c-3.235 6.027-7.955 7.434-14.02 4.178Z"}))},ge={instructionsContainer:"instructionsContainer-rPD7tt",instructionsModal:"instructionsModal--5vO8l",header:"header-+R1WfF",pointerIcon:"pointerIcon-T6MRAL",pointerInputInstruction:"pointerInputInstruction-4WGWfv",touchIcon:"touchIcon-tSPR04",touchInputInstruction:"touchInputInstruction-UWtSKG",instruction:"instruction-lh1Am-",icon:"icon-AnJ1zE",closeBtn:"closeBtn-otWjKz"},Ce=function($e){var je=$e.header,qe=$e.pointerInputInstruction,Ge=$e.touchInputInstruction,_t=$e.pointerIcon,yt=$e.touchIcon,Pt=$e.customIcon;return C.createElement("div",{className:ge.instruction},C.createElement("div",{className:ge.icon},Pt?C.createElement(H.Ee,{src:Pt,alt:"",width:"48",height:"48"}):C.createElement(C.Fragment,null,C.createElement("div",{className:ge.pointerIcon},_t),C.createElement("div",{className:ge.touchIcon},yt))),C.createElement("div",{className:ge.instructionDetails},C.createElement("h2",{className:ge.instructionHeader},je),C.createElement("p",{className:ge.pointerInputInstruction},qe),C.createElement("p",{className:ge.touchInputInstruction},Ge)))},Me=function($e){var je,qe,Ge,_t,yt=$e.handleInstructionsRead,Pt=$e.hasShownInstructions,Ot=(0,X.F)(),Wt=$().shouldShowInstructions,tr=C.useRef(null),Sr=function(){te.Z.hasShownInstructions=!0,yt()};return Pt||!Wt?(yt(),null):C.createElement("div",{className:ge.instructionsContainer,onClick:function(vr){return vr.target===tr.current&&Sr()},ref:tr},C.createElement("div",{className:ge.instructionsModal},C.createElement("div",{className:ge.instructions},C.createElement("div",{className:ge.header},C.createElement("h1",null,"Navigating Stories"),C.createElement("p",null,"Use the following gestures to browse story content")),C.createElement(Ce,{header:"Go Forward",pointerInputInstruction:"Click the page",touchInputInstruction:"Tap the page",pointerIcon:C.createElement(J,null),touchIcon:C.createElement(ye,null),customIcon:(je=Ot.instructions.icons)===null||je===void 0?void 0:je.forward}),C.createElement(Ce,{header:"Pause",pointerInputInstruction:"Click the icon in the top right",touchInputInstruction:"Press and hold",pointerIcon:C.createElement(G,null),touchIcon:C.createElement(de,null),customIcon:(qe=Ot.instructions.icons)===null||qe===void 0?void 0:qe.pause}),C.createElement(Ce,{header:"Go Back",pointerInputInstruction:"Click the left edge of the page",touchInputInstruction:"Tap the left edge",pointerIcon:C.createElement(Q,null),touchIcon:C.createElement(_e,null),customIcon:(Ge=Ot.instructions.icons)===null||Ge===void 0?void 0:Ge.back}),C.createElement(Ce,{header:"Move Between Stories",pointerInputInstruction:"Use the arrows",touchInputInstruction:"Swipe left or right",pointerIcon:C.createElement(pe,null),touchIcon:C.createElement(Re,null),customIcon:(_t=Ot.instructions.icons)===null||_t===void 0?void 0:_t.swipe}),C.createElement("button",{className:ge.closeBtn,onClick:Sr},"Tap to Start"))))},Ue=m(6550),Ne=m(1736),We=m(1815),et=m(9283),rt=m(3766),re=m(5784),ne=m(4991),Se=m(4366),he=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.actionButtonTapped,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.
148name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),we=m(4990),xe=m(4388),ze=m(8671),Ee=m(9512),se=m(8080),L=m(2408),j=m(2727),Z=m(6008),le=m(4637),Te=m(7409),Ae=(function($e){function je(){var qe=$e!==null&&$e.apply(this,arguments)||this;return qe.logTag="EngagementUnitsService",qe.formatPollDeepLink=function(Ge,_t){if(!Ge)return"";var yt=decodeURI(Ge);return yt.includes("[POLLANSWERID]")?yt.replace("[POLLANSWERID]",_t):yt},qe.formatQuizDeepLink=function(Ge,_t,yt){if(!Ge)return"";var Pt=decodeURI(Ge);return Pt.includes("[TRIVIAQUIZID]")?Pt.replace("[TRIVIAQUIZID]",_t).replace("[TRIVIAQUIZSCORE]",yt.toString()):Pt},qe.getPollSharingText=function(Ge,_t){var yt,Pt,Ot,Wt=(yt=te.Z.settings)===null||yt===void 0?void 0:yt.sharingInstructions;if(!Ge||!_t||!Wt)return"";if(_t.type===Te.G.image||_t.type===Te.G.video)return(Ot=Wt==null?void 0:Wt.default)==null?void 0:Ot.replace("[STORYTITLE]",Ge.titles.longDisplay||Ge.titles.internal).replace("[LINK]",_t.deepLinkInternal);if(_t.type===Te.G.poll){var tr=te.Z.polls,Sr=te.Z.pollAnswerMap,vr=tr.find(function(Qn){return Qn.engagementUnitId===_t.engagementUnit.id}),jr=vr&&Sr[vr==null?void 0:vr.id],qr=((Pt=vr==null?void 0:vr.answers.find(function(Qn){return Qn.id===jr}))===null||Pt===void 0?void 0:Pt.title)||"";return(Ot=jr?Wt==null?void 0:Wt.poll.answered:Wt==null?void 0:Wt.poll.unanswered)==null?void 0:Ot.replace("[POLLQUESTION]",_t.engagementUnit.title).replace("[POLLANSWER]",qr).replace("[LINK]","")}return""},qe.getQuizSharingText=function(Ge,_t,yt,Pt){var Ot,Wt,tr=(Ot=te.Z.settings)===null||Ot===void 0?void 0:Ot.sharingInstructions;return Ge&&_t&&tr?_t.type===Te.G.image||_t.type===Te.G.video?(Wt=tr==null?void 0:tr.default)==null?void 0:Wt.replace("[STORYTITLE]",Ge.titles.longDisplay||Ge.titles.internal).replace("[LINK]",_t.deepLinkInternal):_t.type===Te.G.triviaQuiz?(Wt=tr==null?void 0:tr.triviaQuiz)==null?void 0:Wt.replace("[TRIVIAQUIZTITLE]",Pt).replace("[TRIVIAQUIZSCORE]",yt.toString()).replace("[LINK]",""):"":""},qe}return(0,A.ZT)(je,$e),je.sharedInstance=new je,je})(m(956).b),Le=Ae.sharedInstance,Ke=m(3779),nt=m(8585),Be=(function($e){function je(qe,Ge,_t,yt,Pt,Ot){var Wt=$e.call(this)||this;return Wt.quiz=qe,Wt.answerId=Ge,Wt.questionId=_t,Wt.currentCategories=yt,Wt.story=Pt,Wt.page=Ot,Wt.activityType=rt.T.triviaQuizQuestionAnswered,Wt.alwaysSend=!0,Wt.storyPlaybackMode=ze.e.singleStory,Wt.isDisabled=function(){return!V.Z.isFunctionalFeatureEnabled(nt.d.triviaQuizAnswers)},Wt.pageIndex=Wt.story.pages?Wt.story.pages.findIndex(function(tr){var Sr;return tr.id===((Sr=Wt.page)===null||Sr===void 0?void 0:Sr.id)})+1:void 0,Wt.storyPlaybackMode=et.Z.getStoryPlaybackMode(Pt.id),Wt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe,Ge,_t,yt,Pt,Ot,Wt,tr,Sr,vr,jr;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:(qe=this.story)===null||qe===void 0?void 0:qe.id,storyTitle:(Ge=this.story.titles)===null||Ge===void 0?void 0:Ge.internal,storyDisplayTitle:(_t=this.story.titles)===null||_t===void 0?void 0:_t.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:(yt=this.story.pages)===null||yt===void 0?void 0:yt.length,storyPlaybackMode:this.storyPlaybackMode,pageId:(Pt=this.page)===null||Pt===void 0?void 0:Pt.id,pageIndex:this.pageIndex,pageTitle:(Ot=this.page)===null||Ot===void 0?void 0:Ot.title,pageType:(Wt=this.page)===null||Wt===void 0?void 0:Wt.type,pageHasAction:!!(!((tr=this.page)===null||tr===void 0)&&tr.swipe
148UpUrl),pageActionText:(Sr=this.page)===null||Sr===void 0?void 0:Sr.swipeUpText,pageActionUrl:(vr=this.page)===null||vr===void 0?void 0:vr.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizQuestionId:this.questionId,triviaQuizAnswerId:this.answerId,categories:((jr=this.story.categories)===null||jr===void 0?void 0:jr.map(function(qr){return qr.name}))||[],currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe,Ge,_t,yt,Pt,Ot,Wt,tr,Sr,vr,jr;return{storyId:(qe=this.story)===null||qe===void 0?void 0:qe.id,storyTitle:(Ge=this.story.titles)===null||Ge===void 0?void 0:Ge.internal,storyDisplayTitle:(_t=this.story.titles)===null||_t===void 0?void 0:_t.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:(yt=this.story.pages)===null||yt===void 0?void 0:yt.length,storyPlaybackMode:this.storyPlaybackMode,pageId:(Pt=this.page)===null||Pt===void 0?void 0:Pt.id,pageIndex:this.pageIndex,pageTitle:(Ot=this.page)===null||Ot===void 0?void 0:Ot.title,pageType:(Wt=this.page)===null||Wt===void 0?void 0:Wt.type,pageHasAction:!!(!((tr=this.page)===null||tr===void 0)&&tr.swipeUpUrl),pageActionText:(Sr=this.page)===null||Sr===void 0?void 0:Sr.swipeUpText,pageActionUrl:(vr=this.page)===null||vr===void 0?void 0:vr.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizQuestionId:this.questionId,triviaQuizAnswerId:this.answerId,categories:((jr=this.story.categories)===null||jr===void 0?void 0:jr.map(function(qr){return qr.name}))||[],currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),vt=(function($e){function je(qe,Ge,_t,yt,Pt){var Ot=$e.call(this)||this;return Ot.quiz=qe,Ot.score=Ge,Ot.currentCategories=_t,Ot.story=yt,Ot.page=Pt,Ot.activityType=rt.T.triviaQuizCompleted,Ot.storyPlaybackMode=ze.e.singleStory,Ot.pageIndex=Ot.story.pages?Ot.story.pages.findIndex(function(Wt){var tr;return Wt.id===((tr=Ot.page)===null||tr===void 0?void 0:tr.id)})+1:void 0,Ot.storyPlaybackMode=et.Z.getStoryPlaybackMode(yt.id),Ot}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe,Ge,_t,yt,Pt,Ot,Wt,tr,Sr,vr;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:(qe=this.story.titles)===null||qe===void 0?void 0:qe.internal,storyDisplayTitle:(Ge=this.story.titles)===null||Ge===void 0?void 0:Ge.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:(_t=this.story.pages)===null||_t===void 0?void 0:_t.length,storyPlaybackMode:this.storyPlaybackMode,pageId:(yt=this.page)===null||yt===void 0?void 0:yt.id,pageIndex:this.pageIndex,pageTitle:(Pt=this.page)===null||Pt===void 0?void 0:Pt.title,pageType:(Ot=this.page)===null||Ot===void 0?void 0:Ot.type,pageHasAction:!!(!((Wt=this.page)===null||Wt===void 0)&&Wt.swipeUpUrl),pageActionText:(tr=this.page)===null||tr===void 0?void 0:tr.swipeUpText,pageActionUrl:(Sr=this.page)===null||Sr===void 0?void 0:Sr.swipeUpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizScore:this.score,categories:((vr=this.story.categories)===null||vr===void 0?void 0:vr.map(function(jr){return jr.name}))||[],currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe,Ge,_t,yt,Pt,Ot,Wt,tr,Sr,vr,jr;return{storyId:(qe=this.story)===null||qe===void 0?void 0:qe.id,storyTitle:(Ge=this.story.titles)===null||Ge===void 0?void 0:Ge.internal,storyDisplayTitle:(_t=this.story.titles)===null||_t===void 0?void 0:_t.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:(yt=this.story.pages)===null||yt===void 0?void 0:yt.length,storyPlaybackMode:this.storyPlaybackMode,pageId:(Pt=this.page)===null||Pt===void 0?void 0:Pt.id,pageIndex:this.pageIndex,pageTitle:(Ot=this.page)===null||Ot===void 0?void 0:Ot.title,pageType:(Wt=this.page)===null||Wt===void 0?void 0:Wt.type,pageHasAction:!!(!((tr=this.page)===null||tr===void 0)&&tr.swipeUpUrl),pageActionText:(Sr=this.page)===null||Sr===void 0?void 0:Sr.swipeUpText,pageActionUrl:(vr=this.page)===null||vr===void 0?void 0:vr.swipe
148UpUrl,triviaQuizId:this.quiz.id,triviaQuizTitle:this.quiz.title,triviaQuizScore:this.score,categories:((jr=this.story.categories)===null||jr===void 0?void 0:jr.map(function(qr){return qr.name}))||[],currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),ht=(function($e){function je(qe,Ge,_t,yt){var Pt=$e.call(this)||this;return Pt.answerId=qe,Pt.story=Ge,Pt.page=_t,Pt.currentCategories=yt,Pt.activityType=rt.T.votedPoll,Pt.alwaysSend=!0,Pt.storyPlaybackMode=ze.e.singleStory,Pt.isDisabled=function(){return!V.Z.isFunctionalFeatureEnabled(nt.d.pollVotes)},Pt.storyPlaybackMode=et.Z.getStoryPlaybackMode(Ge.id),Pt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe,Ge,_t,yt=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:(qe=this.story.titles)===null||qe===void 0?void 0:qe.internal,storyDisplayTitle:(Ge=this.story.titles)===null||Ge===void 0?void 0:Ge.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Pt){return Pt.id===yt.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,pollAnswerId:this.answerId,categories:((_t=this.story.categories)===null||_t===void 0?void 0:_t.map(function(Pt){return Pt.name}))||[],currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe,Ge,_t,yt=this;return{storyId:this.story.id,storyTitle:(qe=this.story.titles)===null||qe===void 0?void 0:qe.internal,storyDisplayTitle:(Ge=this.story.titles)===null||Ge===void 0?void 0:Ge.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Pt){return Pt.id===yt.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,pollAnswerId:this.answerId,categories:((_t=this.story.categories)===null||_t===void 0?void 0:_t.map(function(Pt){return Pt.name}))||[],currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),mt=(function($e){function je(qe,Ge,_t,yt){var Pt=$e.call(this)||this;return Pt.reason=qe,Pt.story=Ge,Pt.page=_t,Pt.currentCategories=yt,Pt.activityType=rt.T.dismissedStory,Pt.storyPlaybackMode=et.Z.getStoryPlaybackMode(Ge.id),Pt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,dismissedReason:this.reason,durationViewed:Ee.Z.storyDurationViewed,pagesViewed:Ee.Z.pagesViewed,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,dismissedReason:this.reason,durationViewed:Ee.Z.storyDurationViewed,pagesViewed:Ee.Z.pagesViewed,categories:this.story.categories.map(function(Ge){return Ge.
148name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),$t=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.skippedStory,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),Mt=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.previousStory,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),Dt=m(3269),Qe=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.completedStory,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories)),categories:this.story.categories.map(function(Ge){return Ge.
148name}),categoryDetails:this.story.categories.map(function(Ge){return new Dt.B(Ge)})}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories)),categories:this.story.categories.map(function(Ge){return Ge.name}),categoryDetails:this.story.categories.map(function(Ge){return new Dt.B(Ge)})}},je})(ne.Z),pt=(function($e){function je(qe,Ge,_t,yt){var Pt=$e.call(this)||this;return Pt.story=qe,Pt.page=Ge,Pt.openedReason=_t,Pt.currentCategories=yt,Pt.activityType=rt.T.openedPage,Pt.alwaysSend=!0,Pt.isDisabled=function(){return!V.Z.isFunctionalFeatureEnabled(nt.d.pageReadStatus)},Pt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),Pt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openedReason,contentLength:this.page.duration,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,openedReason:this.openedReason,contentLength:this.page.duration,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),Ut=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.previousPage,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.
148name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),jt=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.skippedPage,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),hr=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.completedPage,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,contentLength:this.page.duration,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,contentLength:this.page.duration,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z);(T=S||(S={})).manualAdvance="manualAdvance",T.autoAdvance="autoAdvance",(function($e){$e.goToPageAction="goToPageAction",$e.autoAdvanceTime="autoAdvanceTime",$e.autoAdvanceMedia="autoAdvanceMedia",$e.manualAdvance="manualAdvance",$e.viewerSelectPage="viewerSelectPage",$e.adAutoAdvanceTime="adAutoAdvanceTime",$e.adAutoAdvanceMedia="adAutoAdvanceMedia",$e.adManualAdvance="adManualAdvance"})(w||(w={}));var _r,mn="/storyteller-home",kr=m(830),gr=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.shareButtonTapped,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.
148name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z),On=(function($e){function je(qe,Ge,_t){var yt=$e.call(this)||this;return yt.story=qe,yt.page=Ge,yt.currentCategories=_t,yt.activityType=rt.T.shareSuccess,yt.storyPlaybackMode=et.Z.getStoryPlaybackMode(qe.id),yt}return(0,A.ZT)(je,$e),je.prototype.buildRequestContent=function(){var qe=this;return{activityItemType:this.activityType,externalId:te.Z.userId,storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,shareMethod:this.page.shareMethod,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je.prototype.buildEventData=function(){var qe=this;return{storyId:this.story.id,storyTitle:this.story.titles.internal,storyDisplayTitle:this.story.titles.longDisplay,storyIndex:this.story.rowIndex+1,storyPageCount:this.story.pages.length,storyPlaybackMode:this.storyPlaybackMode,pageId:this.page.id,pageIndex:this.story.pages.findIndex(function(Ge){return Ge.id===qe.page.id})+1,pageTitle:this.page.title,pageType:this.page.type,pageHasAction:!!this.page.swipeUpUrl,pageActionText:this.page.swipeUpText,pageActionUrl:this.page.swipeUpUrl,shareMethod:this.page.shareMethod,categories:this.story.categories.map(function(Ge){return Ge.name}),currentCategory:new re.u((0,Se.x)(this.story.categories,this.currentCategories))}},je})(ne.Z);(function($e){$e.share="share",$e.shareMedia="shareMedia",$e.shareLink="shareLink"})(_r||(_r={}));var Ln,gn=m(6595),wr=m(7068),zr=m(1417);(function($e){$e.web="web",$e.inApp="inApp",$e.sheet="sheet",$e.store="store",$e.externalApp="externalApp",$e.none="none"})(Ln||(Ln={}));var zn=m(1114),Fn=(function($e){function je(){var qe=$e.call(this)||this;return qe.messageType=j.C.eventTrackingOptionsUpdated,qe.data=V.Z.eventTrackingOptions,qe}return(0,A.ZT)(je,$e),je})(zn.w),At=(function($e){function je(qe){var Ge=qe.questionOrEngagementUnitId,_t=qe.type,yt=$e.call(this)||this;return yt.messageType=j.C.resetEngagementUnitUI,yt.data={questionOrEngagementUnitId:Ge,type:_t},yt}return(0,A.ZT)(je,$e),je})(zn.w),Fr=m(8105),yn=m(9980),Rn=function($e){var je,qe,Ge,_t,yt,Pt,Ot,Wt,tr,Sr,vr,jr,qr=$e.categories,Qn=$e.newAmpStory,Yi=(0,Ke.Z)(),ni=Yi.stories,uo=Yi.status,Bi=(0,C.useState)(ni),Br=Bi[0],ci=Bi[1],fi=(0,C.useState)(gn.G.Idle),Un=fi[0],dt=fi[1],gt=(0,C.useState)(te.Z.hasShownInstructions),Ye=gt[0],St=gt[1],Et=(0,C.useState)(!1),wt=Et[0],Rt=Et[1],qt=(0,C.useState)(!1),Bt=qt[0],Mr=qt[1],Er=(0,C.useState)(""),Zr=Er[0],Cn=Er[1],Wn=(0,C.useState)(!0),ar=Wn[0],dr=Wn[1],pn=(0,C.useState)(void 0),Yt=pn[0],Jt=pn[1],Yr=(0,Ue.k6)(),Qr=(0,Ue.TH)(),Hr=Qr.pathname,nr=Qr.search,Tr=$(),nn=Tr.basename,fn=Tr.currentCategories,Ir=Tr.isVisible,an=Tr.setLightboxVisible,en=Tr.isLightboxVisible,br=Tr.muteState,It=Tr.player,xn=Tr.shouldShowInstructions,tn=Tr.storyId,zi=Tr.storiesPlayerSyncService,bo=Tr.pageId,Xi=(0,C.useMemo)(function(){return!!Br&&!!tn&&!Br.find(function(bt){return bt.id===tn})&&Un!==gn.G.Pending&&Un!==gn.G.Success},[Br,Un,tn]),Ji=(0,C.useMemo)(function(){return!!Br&&(Xi?Un===gn.G.Success:uo===gn.G.Success)},[uo,Un,Br,Xi]),Gr=(0,C.useRef)(),vn=(0,C.useRef)(),Lo=(0,C.useRef)(),wo=(0,C.useRef)(!1),So=(0,C.useRef)(Object.assign({},Gr.current)),Oi=(0,C.useRef)(Object.assign({},vn.current)),sr=(0,C.useRef)(null),Dr=(0,C.useRef)(),Or=(0,C.useCallback)(function(bt,xt){var Zt,Nt,Vt,Ht,ur=[];if(V.Z.isFunctionalFeatureEnabled(nt.d.triviaQuizAnswers)||ur.push(nt.d.triviaQuizAnswers),V.Z.isFunctionalFeatureEnabled(nt.d.pollVotes)||ur.push(nt.d.pollVotes),ur.length!==0)if(bt){var Xt=(Nt=(Zt=It.current)===null||Zt===void 0?void 0:Zt.getStories())===null||Nt===void 0?void 0:Nt.find(function(cr){return new URL(cr.href).pathname.includes(bt.id)}),Kt=(xt==null?void 0:xt.questionId)||((Vt=xt==null?void 0:xt.engagementUnit)===null||Vt===void 0?void 0:Vt.id);Xt&&L.Z.sendMessageToChild(Xt.iframe,new At({questionOrEngagementUnitId:Kt,type:ur}))}else for(var $r=0,Vr=((Ht=It.current)===null||Ht===void 0?void 0:Ht.getStories())||[];$r<Vr.length;$r++){var Kr=Vr[$r];L.Z.sendMessageToChild(Kr.iframe,new At({type:ur}))}},[It]),fr=(0,C.useCallback)(function(bt){var xt;(bt==null?void 0:bt.id)!==((xt=vn.current)===null||xt===void 0?void 0:xt.i
148d)&&(Oi.current=Object.assign({},vn.current),vn.current=bt,Or(Gr.current,Oi.current))},[Or]),Ar=(0,C.useCallback)(function(bt){var xt;(bt==null?void 0:bt.id)!==((xt=Gr.current)===null||xt===void 0?void 0:xt.id)&&(So.current=Object.assign({},Gr.current),Gr.current=bt,Or(So.current))},[Or]),rn=(0,C.useCallback)(function(){Gr.current=void 0,vn.current=void 0,So.current=void 0,Oi.current=void 0},[]),Qi=(0,C.useCallback)(function(bt){var xt=bt??!Ir;(xt||!Ir)&&(wo.current=!1,en&&xt&&an(!1),dt(gn.G.Idle),Rt(!1),Mr(!1),It.current&&(It.current.pause(!0),It.current.resetCurrentPage(),It.current.mute()),Or())},[en,Ir,It,an,Or]),wi=(0,C.useCallback)(function(bt){return Br==null?void 0:Br.find(function(xt){return xt.id===bt})},[Br]),eo=(0,C.useCallback)(function(){return!!Dr.current&&new Date().getTime()-Dr.current.date.getTime()<250},[Dr]),Mn=(function(bt){var xt=bt.currentAd,Zt=bt.currentPage,Nt=bt.currentStory,Vt=bt.hasRecentNavigationSwipe,Ht=bt.getStoryById,ur=bt.previousPageWasAnAd,Xt=$(),Kt=Xt.currentCategories,$r=Xt.isVisible,Vr=(0,C.useCallback)(function(){xt.current=void 0},[xt]),Kr=(0,C.useCallback)(function(cr){cr&&xt.current&&Ee.Z.recordActivity(new kr.yF({ad:xt.current,story:cr,currentCategories:Kt}))},[xt,Kt]);return{handleAdActionButtonTapped:(0,C.useCallback)(function(cr){Nt.current&&(xt.current=cr.detail.ad,Ee.Z.recordActivity(new kr.Ed({ad:cr.detail.ad,story:Nt.current,currentCategories:Kt})))},[xt,Kt,Nt]),handleAdComplete:(0,C.useCallback)(function(cr){var Xr=Ht(cr.detail.storyId);Kr(Xr),Vr(),Xr&&Ee.Z.recordActivity(new kr.r8({ad:cr.detail.ad,story:Xr,currentCategories:Kt}))},[Kt,Kr,Ht,Vr]),handleAdDismissed:(0,C.useCallback)(function(cr){Nt.current&&xt.current&&(Kr(Nt.current),Ee.Z.recordActivity(new kr.KS({ad:xt.current,story:Nt.current,currentCategories:Kt,dismissedReason:cr})),Vr())},[xt,Kt,Nt,Kr,Vr]),handleAdOpened:(0,C.useCallback)(function(cr){if(Nt.current){var Xr=cr.detail,ro=Xr.ad,An=Xr.storyAdvancementMode;xt.current=ro,ur.current=!0;var xo=xe.T.automaticPlayback;if(cr.detail.storyAdvancementMode===w.manualAdvance&&(xo=Vt()?xe.T.swipe:xe.T.tap),Ee.Z.recordActivity(new kr.Aw({ad:ro,story:Nt.current,currentCategories:Kt,openedReason:xo})),Zt.current){var sn=Nt.current.pages[Nt.current.pages.length-1];if(!V.Z.isFunctionalFeatureEnabled(nt.d.triviaQuizAnswers))for(var mi=0,gi=(0,A.ev)([],Nt.current.pages,!0).reverse();mi<gi.length;mi++){var Xn=gi[mi];if(Xn.type!=="triviaQuiz"||Xn.questionId){sn=Xn;break}}var no=Zt.current.id===sn.id;An===w.manualAdvance&&(Ee.Z.recordActivity(new jt(Nt.current,Zt.current,Kt)),no&&Ee.Z.recordActivity(new $t(Nt.current,Zt.current,Kt))),An!==w.autoAdvanceMedia&&An!==w.autoAdvanceTime||Ee.Z.recordActivity(new hr(Nt.current,Zt.current,Kt))}}},[xt,Kt,Zt,Nt,Vt,ur]),handleAdPaused:(0,C.useCallback)(function(cr){Nt.current&&$r&&Ee.Z.recordActivity(new kr.V3({ad:cr.detail.ad,story:Nt.current,currentCategories:Kt}))},[Kt,Nt,$r]),handleAdProgress:(0,C.useCallback)(function(cr){if(Nt.current){xt.current=cr.detail.ad;var Xr={ad:cr.detail.ad,story:Nt.current,currentCategories:Kt};cr.detail.progressType==="firstQuartile"&&Ee.Z.recordActivity(new kr.mp(Xr)),cr.detail.progressType==="midpoint"&&Ee.Z.recordActivity(new kr.ku(Xr)),cr.detail.progressType==="thirdQuartile"&&Ee.Z.recordActivity(new kr.C$(Xr))}},[xt,Kt,Nt]),handleAdResumed:(0,C.useCallback)(function(cr){Nt.current&&$r&&Ee.Z.recordActivity(new kr.YC({ad:cr.detail.ad,story:Nt.current,currentCategories:Kt}))},[Kt,Nt,$r]),handleAdSkipped:(0,C.useCallback)(function(cr){var Xr=Ht(cr.detail.storyId);Kr(Xr),Vr(),Xr&&$r&&Ee.Z.recordActivity(new kr.eF({ad:cr.detail.ad,story:Xr,currentCategories:Kt}))},[Kt,Ht,Kr,$r,Vr])}})({currentAd:Lo,currentPage:vn,currentStory:Gr,hasRecentNavigationSwipe:eo,getStoryById:wi,previousPageWasAnAd:wo}),Si=Mn.handleAdActionButtonTapped,Ei=Mn.handleAdComplete,ea=Mn.handleAdDismissed,qo=Mn.handleAdOpened,hi=Mn.handleAdPaused,ui=Mn.handleAdProgress,po=Mn.handleAdResumed,Ro=Mn.handleAdSkipped,fo=(function(bt){var xt,Zt,Nt=bt.currentAd,Vt=bt.currentStory,Ht=bt.currentPage,ur=bt.currentPageId,Xt=bt.handleAdDismissed,Kt=bt.handlePlayerClose,$r=bt.hasRecentNavigationSwipe,Vr=bt.pageOpenedReasonOverride,Kr=bt.playerStories,cr=bt.previousStory,Xr=bt.previousPage,ro=bt.previousPageWasAnAd,An=bt.resetCurrentStoryAndPage,xo=bt.setCurrentStory,sn=bt.setCurrentPage,mi=bt.setCurrentPageId,gi=bt.setLightBoxAnimationIsEnabled,Xn=bt.setPlayerIsLoaded,no=(0,Ke.Z)().stories,Ci=$(),Nn=Ci.isVisible,Hi=Ci.basename,Pn=Ci.currentCategories,yi=Ci.finalStoryIndex,hn=Ci.listDelegate,Yo=Ci.pageId,ei=Ci.storyId,X
148o=Ci.playAllStories,xi=(0,C.useRef)([]),Gi=(0,C.useRef)(xe.T.tap),qi=(0,C.useCallback)(function(yr){var Lr=Kr==null?void 0:Kr.find(function(ii){return ii.pages.findIndex(function(oi){return oi.id===yr})>=0}),Tn=Lr==null?void 0:Lr.pages.find(function(ii){return ii.id===yr});(Lr==null?void 0:Lr.id)===ei&&(ur!==yr&&mi(yr),Lr&&xo(Lr),Tn&&sn(Tn))},[ur,Kr,sn,mi,xo,ei]),_i=(0,Ue.k6)(),ha=(xt=Nn,Zt=(0,C.useRef)(),(0,C.useEffect)(function(){Zt.current=xt},[xt]),Zt),Bo=(0,C.useCallback)(function(){_i.push(mn);var yr=new URL(window.location.href);yr.hash="",window.history.replaceState("{}","",yr)},[_i]),ho=(0,C.useCallback)(function(yr){return yr&&Kr?Kr.findIndex(function(Lr){return Lr.id===yr.id}):-1},[Kr]),Zi=(0,C.useCallback)(function(yr,Lr){var Tn;Lr===void 0&&(Lr=!0),gi(Lr),Kt(!0),Bo(),(Tn=hn.onPlayerDismissed)===null||Tn===void 0||Tn.call(hn),Xt(yr),Vt.current&&Ht.current&&Ee.Z.recordActivity(new mt(yr,Vt.current,Ht.current,Pn)),An()},[Pn,Ht,Vt,Xt,Kt,hn,Bo,An,gi]);(0,C.useEffect)(function(){z.Z.on(F._.dismissPlayer,function(yr){Nn&&(gi(yr),Kt(!0),Bo(),Vt.current&&Ht.current&&Ee.Z.recordActivity(new mt(we.z.instanceMethod,Vt.current,Ht.current,Pn)),An())})},[Pn,Ht,Vt,Kt,Nn,Bo,An,gi]);var Ia=(0,C.useCallback)(function(yr){var Lr,Tn,ii;if(Nn){var oi=Kr&&Kr[yr.detail.index];if(oi&&Kr){if(!Xo&&oi.rowIndex>yi.current&&yi.current>=0)Zi(yr.detail.playerAdvancementModeExcludingAds===S.manualAdvance?we.z.skippedFinalPage:we.z.completedFinalPage);else if(xo(oi),Vt.current){et.Z.setStoryPlaybackMode(Vt.current.id,ze.e.list);var Ki=et.Z.getStoryReadState(Vt.current.id);$r()?(Vr.current=xe.T.swipe,Ee.Z.recordActivity(new We.Z(xe.T.swipe,Vt.current,Vt.current.pages[Ki.initialPage],Pn))):Ee.Z.storyDurationViewed>250&&Ee.Z.recordActivity(new We.Z(yr.detail.playerAdvancementModeExcludingAds===S.manualAdvance?xe.T.tap:xe.T.automaticPlayback,Vt.current,Vt.current.pages[Ki.initialPage],Pn));var Ao=ho(cr.current),zo=ho(Vt.current);!ro.current&&(!((Lr=cr.current)===null||Lr===void 0)&&Lr.id)&&(!((Tn=Ht.current)===null||Tn===void 0)&&Tn.id)&&zo>Ao&&yr.detail.playerAdvancementModeExcludingAds===S.manualAdvance&&Ee.Z.recordActivity(new $t(cr.current,Ht.current,Pn)),Vt.current&&Ht.current&&(!((ii=cr.current)===null||ii===void 0)&&ii.id)&&zo<Ao&&Ee.Z.recordActivity(new Mt(cr.current,Ht.current,Pn)),_i.replace("/".concat(Hi,"/").concat(Vt.current.id))}}}},[Hi,Zi,Pn,Ht,Vt,yi,ho,$r,_i,Nn,Vr,Xo,Kr,Xr,ro,cr,xo]),ka=(0,C.useCallback)(function(yr,Lr){return yr.pages.findIndex(function(Tn){return Tn.id===Lr.id})},[]),ia=(0,C.useCallback)(function(yr){var Lr=yr.detail.trigger==="backgroundTapped"?we.z.backgroundTapped:we.z.closeButtonTapped;Zi(Lr)},[Zi]),ma=(0,C.useCallback)(function(yr){yr.detail.key==="Escape"&&Zi(we.z.escapeKeyPressed)},[Zi]),ga=(0,C.useCallback)(function(yr){var Lr;if(Nn&&(qi(yr.detail.pageId),Vt.current&&Vt.current.pages.findIndex(function(Ao){return Ao.id===yr.detail.pageId})!==-1)){if(Yo&&yr.detail.pageId!==Yo)_i.replace("/".concat(Hi,"/").concat(Vt.current.id));else if(Xn(),!Nt.current&&Ht.current){var Tn=ka(Vt.current,Ht.current),ii=Vt.current.pages.length-1;if(!V.Z.isFunctionalFeatureEnabled(nt.d.triviaQuizAnswers))for(var oi=Vt.current.pages.length-1;oi>=0;oi--){var Ki=Vt.current.pages[oi];if(Ki.type!=="triviaQuiz"||Ki.questionId){ii=oi;break}}Tn===ii&&Ee.Z.recordActivity(new Qe(Vt.current,Ht.current,Pn)),et.Z.setPageViewed({story:Vt.current,page:Ht.current}),yr.detail.playerAdvancementModeExcludingAds===S.manualAdvance?Gi.current=xe.T.tap:Gi.current=xe.T.automaticPlayback,Ee.Z.recordActivity(new pt(Vt.current,Ht.current,(Lr=Vr.current)!==null&&Lr!==void 0?Lr:Gi.current,Pn)),Vr.current=null}}},[Hi,Pn,Ht,Vt,ka,_i,Nn,Vr,Xr,Xn,qi,ha]),Ja=(0,C.useCallback)(function(yr){if(Nn){var Lr=yr.detail,Tn=Lr.playerAdvancementModeExcludingAds,ii=Lr.storyPageId,oi=Lr.storyPageRealIndex,Ki=Lr.storyPreviousPageId,Ao=Lr.storyPreviousPageRealIndex;if(qi(ii),Vt.current&&Vt.current.id===ei&&Ht.current&&Xr.current){var zo=Vt.current.pages.findIndex(function(ts){return ts.id===Ki})>-1,ya=zo&&oi>Ao,Oa=ho(Vt.current),La=ho(cr.current),es=!zo&&!!cr.current&&La>-1&&Oa===La+1;zo&&oi===Ao-1&&(Gi.current=xe.T.tap,Ee.Z.recordActivity(new Ut(Vt.current,Xr.current,Pn))),ro.current?ro.current=!1:(!ya&&!es||(Tn!==S.manualAdvance||Vr.current)&&Vr.current!==xe.T.ta
148p&&Vr.current!==xe.T.swipe||(Gi.current=xe.T.tap,Ee.Z.recordActivity(new jt(ya?Vt.current:cr.current,Xr.current,Pn))),(Tn===S.autoAdvance&&!Vr.current||Vr.current===xe.T.automaticPlayback)&&(Gi.current=xe.T.automaticPlayback,Ee.Z.recordActivity(new hr(ya?Vt.current:cr.current,Xr.current,Pn))))}}},[Pn,Ht,Vt,ho,Nn,Vr,Kr,Xr,ro,cr,ei,qi]),Qa=(0,C.useCallback)(function(){var yr;if(no&&Vt.current){var Lr=et.Z.getStoryReadState(Vt.current.id).status,Tn=((yr=Vt.current)===null||yr===void 0?void 0:yr.rowIndex)||-1,ii=no.findIndex(function(oi,Ki){return Ki>Tn&&et.Z.getStoryReadState(oi.id).status!==Lr});ii>-1?yi.current=ii-1:Tn>=no.length?yi.current=Tn:yi.current=no.length-1}},[Vt,yi,no]);return(0,C.useEffect)(function(){return _i.listen(function(yr){var Lr;(xi.current.length>=1?xi.current[xi.current.length-1]:"")!==mn?(xi.current.push(yr.pathname),_i.action==="POP"&&!yr.pathname.includes(Hi)&&Vt.current&&Ht.current&&((Lr=hn.onPlayerDismissed)===null||Lr===void 0||Lr.call(hn),Xt(we.z.backTapped),Ee.Z.recordActivity(new mt(we.z.backTapped,Vt.current,Ht.current,Pn)))):xi.current=[]})},[Hi,Pn,Ht,Vt,Xt,_i,hn]),(0,C.useEffect)(function(){var yr=function(){var Lr;if(Vt.current&&Ht.current){(Lr=hn.onPlayerDismissed)===null||Lr===void 0||Lr.call(hn),Xt(we.z.backTapped),Ee.Z.recordActivity(new mt(we.z.windowUnload,Vt.current,Ht.current,Pn));var Tn=Vt.current.pages[Vt.current.pages.length-1];Ht.current.id!==Tn.id&&Ee.Z.recordActivity(new $t(Vt.current,Ht.current,Pn))}};return window.addEventListener("beforeunload",yr),function(){window.removeEventListener("beforeunload",yr)}},[Pn,Ht,Vt,Xt,hn]),{closeStoryView:Zi,handleStoryNavigation:Ia,handleAmpPlayerClose:ia,handlePlayerKeyPressed:ma,handlePageNavigation:ga,handleStoryPageVisible:Ja,handleNoNextStory:function(yr){return Zi(yr.detail.playerAdvancementModeExcludingAds===S.manualAdvance?we.z.skippedFinalPage:we.z.completedFinalPage)},handleSetFinalStoryIndex:Qa}})({currentAd:Lo,currentStory:Gr,currentPage:vn,currentPageId:Zr,handleAdDismissed:ea,handlePlayerClose:Qi,hasRecentNavigationSwipe:eo,pageOpenedReasonOverride:sr,playerStories:Br,previousStory:So,previousPage:Oi,previousPageWasAnAd:wo,resetCurrentStoryAndPage:rn,setCurrentStory:Ar,setCurrentPage:fr,setCurrentPageId:Cn,setLightBoxAnimationIsEnabled:dr,setPlayerIsLoaded:function(){return Rt(!0)}}),Mo=fo.closeStoryView,ta=fo.handleAmpPlayerClose,ra=fo.handleStoryNavigation,Za=fo.handlePageNavigation,xa=fo.handleStoryPageVisible,Aa=fo.handleNoNextStory,Pa=fo.handlePlayerKeyPressed,pa=fo.handleSetFinalStoryIndex,Fi=(je={currentStory:Gr,currentPage:vn,setIsSharing:Mr},qe=je.currentStory,Ge=je.currentPage,_t=je.setIsSharing,yt=$(),Pt=yt.currentCategories,Ot=yt.player,Wt=(0,C.useCallback)(function(){var bt;qe.current&&Ge.current&&(_t(!0),Ee.Z.recordActivity(new gr(qe.current,Ge.current,Pt)),(bt=Ot.current)===null||bt===void 0||bt.pause())},[Pt,Ge,qe,Ot,_t]),tr=(0,C.useCallback)(function(){var bt;_t(!1),(bt=Ot.current)===null||bt===void 0||bt.play(),qe.current&&Ge.current&&Ee.Z.recordActivity(new On(qe.current,Ge.current,Pt))},[Pt,Ge,qe,Ot,_t]),Sr=(0,C.useCallback)(function(){var bt;_t(!1),(bt=Ot.current)===null||bt===void 0||bt.play()},[Ot,_t]),vr=(0,C.useCallback)(function(bt,xt){if(qe.current&&Ge.current){Wt();try{if(!Ne.Z.onShareButtonTapped)throw new Error;Ne.Z.onShareButtonTapped(xt,qe.current.titles.longDisplay||qe.current.titles.internal,bt).then(function(){tr()}).catch(Sr)}catch{navigator.share({text:xt,title:qe.current.titles.longDisplay||qe.current.titles.internal,url:bt}).then(function(){tr()}).catch(Sr)}}},[Ge,qe,Sr,Wt,tr]),jr=(0,C.useCallback)(function(){if(qe.current&&Ge.current){Wt();var bt=qe.current.titles.longDisplay||qe.current.titles.internal||"Story";fetch(Ge.current.background.url).then(function(xt){return xt.blob()}).then(function(xt){var Zt=window.URL.createObjectURL(xt),Nt=document.createElement("a");Nt.href=Zt,Nt.download=bt,document.body.appendChild(Nt),Nt.click(),Nt.remove()}).then(function(){return tr()}).catch(function(xt){console.error(xt),Sr()})}},[Ge,qe,Sr,Wt,tr]),{handleShare:(0,C.useCallback)(function(bt,xt){Ge.current&&(Ge.current.shareMethod===_r.shareMedia||Ge.current.shareMethod===_r.share?jr():vr(bt,xt))},[Ge,vr,jr])}).handleShare,Do=(0,C.useCallback)(function(bt){var xt,Zt,Nt=bt||((xt=Gr.current)===null||xt===void 0?void 0:xt.i
148d)||"",Vt=It&&It.current&&(!((Zt=It.current)===null||Zt===void 0)&&Zt.getStories)?It.current.getStories():[];return Vt!=null&&Vt.filter(function(Ht){return Ht.href.indexOf(Nt)!==-1}).length?Vt==null?void 0:Vt.filter(function(Ht){return Ht.href.indexOf(Nt)!==-1})[0]:null},[It]),Li=(0,C.useMemo)(function(){return Ir&&Yt!==void 0&&(!Yt||Ye||!xn)},[Yt,Ye,Ir,xn]),Zo=(0,C.useCallback)(function(){var bt;Ir&&an(!0),(bt=It.current)===null||bt===void 0||bt.removeEventListener(wr.n.storyPageNavigation,Zo)},[Ir,It,an]),No=(0,C.useCallback)(function(){var bt,xt;if(It.current){var Zt=(xt=(bt=It.current.querySelector(".i-amphtml-story-player-shadow-root-intermediary"))===null||bt===void 0?void 0:bt.shadowRoot)===null||xt===void 0?void 0:xt.querySelector("button:not([disabled])");Zt&&Zt.focus()}},[It]),$o=(0,C.useCallback)(function(){It.current&&Li&&!Bt&&(It.current.play(),le.Z.isPlaybackEnabled?br.current===!1&&It.current.unmute():It.current.disablePlayback())},[Bt,Li,br,It]),Dn=(0,C.useCallback)(function(){Ye||(z.Z.broadcastEvent(F._.readInstructions),St(!0)),$o()},[Ye,$o]),na=(0,C.useCallback)(function(){return new Promise(function(bt){var xt=It.current,Zt=function(){return bt(xt)};return xt!=null&&xt.isReady?Zt():xt==null||xt.addEventListener(wr.n.playerReady,Zt),function(){xt==null||xt.removeEventListener(wr.n.playerReady,Zt)}})},[It]),Ti=(0,C.useCallback)(function(){na().then(function(){var bt=Do();if(bt&&It.current&&Gr.current){Ee.Z.storyViewStartTime=new Date;var xt=et.Z.getStoryReadState(Gr.current.id);pa();var Zt=bo||Gr.current.pages[xt.initialPage].id;It.current.show(bt.href,Zt,{animate:!1});var Nt="i-amphtml-iframe-position",Vt="0",Ht=[];if(It.current.getStories().forEach(function(Xt){var Kt,$r=Xt.href===bt.href,Vr=(Kt=Xt.iframe.attributes.getNamedItem(Nt))===null||Kt===void 0?void 0:Kt.value;$r&&Vr!==Vt&&Ht.push(Xt),!$r&&Xt.distance<=1&&Vr===Vt&&Ht.push(Xt)}),Li?$o():Ir||(Qi(),rn()),Ht.length>=1){var ur=new MutationObserver(function(Xt){Xt.forEach(function(){var Kt,$r=Ht.find(function(cr){return cr.href===bt.href}),Vr=!$r||((Kt=$r.iframe.attributes.getNamedItem(Nt))===null||Kt===void 0?void 0:Kt.value)===Vt,Kr=!Ht.filter(function(cr){return cr.href!==bt.href&&cr.distance<=1}).map(function(cr){var Xr;return(Xr=cr.iframe.attributes.getNamedItem(Nt))===null||Xr===void 0?void 0:Xr.value}).includes(Vt);Vr&&Kr&&(ur.disconnect(),setTimeout(function(){Rt(!0)},zr.r))})});Ht.forEach(function(Xt){ur.observe(Xt.iframe,{attributes:!0,attributeFilter:[Nt]})})}else Rt(!0)}}).catch(function(){})},[na,bo,It,Do,pa,Ir,Li,$o,Qi,rn]);(0,C.useEffect)(function(){var bt;Ir?((bt=It.current)===null||bt===void 0||bt.addEventListener(wr.n.storyPageNavigation,Zo),Zo()):an(!1)},[Zo,en,Ir,It,an]),(0,C.useEffect)(function(){ci(ni)},[ni]),(0,C.useEffect)(function(){var bt=function(xt){It.current&&(It.current.contains(xt.target)||No())};return Li?(No(),document.addEventListener("focusin",bt)):document.removeEventListener("focusin",bt),function(){document.removeEventListener("focusin",bt)}},[No,Li,It]),(0,C.useEffect)(function(){var bt;if(window.AmpStoryPlayer&&!(!((bt=It.current)===null||bt===void 0)&&bt.isReady)&&Br){new window.AmpStoryPlayer(window,It.current);var xt=It.current;xt==null||xt.load(),na().then(function(Nt){zi.playerStories=Nt.getStories()}).catch(function(){});var Zt=function(Nt){zi.updatePlayerStory(Nt.detail.story)};return xt==null||xt.addEventListener(wr.n.playerStoryPagesAppended,Zt),function(){xt==null||xt.removeEventListener(wr.n.playerStoryPagesAppended,Zt)}}},[na,It,Br,zi]),(0,C.useEffect)(function(){z.Z.on(F._.playbackEnabled,function(){Li&&It.current&&It.current.enablePlayback()})},[Li,It]),(0,C.useEffect)(function(){z.Z.on(F._.playbackDisabled,function(){It.current&&It.current.disablePlayback()})},[It]);var Ui=(0,C.useCallback)(function(bt,xt){for(var Zt,Nt,Vt=0,Ht=bt;Vt<Ht.length;Vt++){var ur=Ht[Vt],Xt=ur.pages.filter(function(Kt){return Kt.type==="triviaQuiz"}).find(function(Kt){return!Kt.questionId});Xt&&(xt?(Zt=It.current)===null||Zt===void 0||Zt.enablePage(ur.id,Xt.id):((Nt=It.current)===null||Nt===void 0||Nt.disablePage(ur.id,Xt.id),et.Z.removeStoryQuizResultPage(ur,Xt.id)))}},[It]);(0,C.useEffect)(function(){z.Z.on(F._.eventTrackingOptionsUpdated,function(){var bt;
148(bt=It.current)===null||bt===void 0||bt.getStories().forEach(function(xt){return L.Z.sendMessageToChild(xt.iframe,new Fn)})})},[It]),(0,C.useEffect)(function(){Br&&Ui(Br,V.Z.isFunctionalFeatureEnabled(nt.d.triviaQuizAnswers)),z.Z.on(F._.eventTrackingOptionsUpdated,function(){Br&&Ui(Br,V.Z.isFunctionalFeatureEnabled(nt.d.triviaQuizAnswers))})},[Ui,It,Br]),(0,C.useEffect)(function(){z.Z.on(F._.readInstructions,function(){St(!0)})},[]),(0,C.useEffect)(function(){Li&&$o()},[$o,Li]),(0,C.useEffect)(function(){z.Z.on(F._.storyStatusUpdate,function(bt){var xt,Zt=wi(bt.storyId),Nt=Zt==null?void 0:Zt.pages[bt.newStoryReadState.initialPage].id;Nt&&((xt=It.current)===null||xt===void 0||xt.updateStoryInitialPageId(bt.storyId,Nt))})},[wi,It]),(0,C.useEffect)(function(){if(tn&&Ir&&Ji){var bt=new URLSearchParams(nr).get("openedReason")===xe.T.storyListTap;Jt(bt),zi.ifStoryIsSynced(tn,function(){var xt=wi(tn);if(xt){Ee.Z.storyViewStartTime=new Date;var Zt=et.Z.getStoryReadState(xt.id);if(bt)sr.current=xe.T.storyListTap,Yr.replace({pathname:Hr,search:""});else if(et.Z.setStoryPlaybackMode(xt.id,ze.e.singleStory),Ee.Z.storyDurationViewed<250){var Nt=Zt.initialPage,Vt=xt.pages.findIndex(function(Ht){return Ht.id===bo});Vt>-1&&(Nt=Vt),sr.current=xe.T.deepLink,Ee.Z.recordActivity(new We.Z(xe.T.deepLink,xt,xt.pages[Nt],fn))}}})}},[fn,wi,Ir,Br,Ji,zi]),(0,C.useEffect)(function(){if(Ir&&Ji){var bt=wi(tn||"");Ar(bt),It&&It.current&&Gr.current&&Ti()}},[wi,Ir,It,Ji,Ar]),(0,C.useEffect)(function(){if(Ir&&Xi){if(tn&&(ni!=null&&ni.find(function(bt){return bt.id===tn})))return ci(ni),void dt(gn.G.Success);dt(gn.G.Pending),(0,A.mG)(void 0,void 0,void 0,function(){var bt,xt,Zt,Nt,Vt,Ht,ur,Xt;return(0,A.Jh)(this,function(Kt){switch(Kt.label){case 0:bt=function(){dt(gn.G.Idle),Yr.push("/")},Kt.label=1;case 1:return Kt.trys.push([1,3,,4]),[4,Z.Z.loadStoryById(tn)];case 2:return(xt=Kt.sent())?(Zt=(0,A.pi)((0,A.pi)({},xt),{rowIndex:Br?Br.length:0}),et.Z.setStoryPlaybackMode(Zt.id,ze.e.singleStory),ci(function($r){return $r?(0,A.ev)((0,A.ev)([],$r,!0),[Zt],!1):[Zt]}),Nt=Qn(Zt),(Xt=It.current)===null||Xt===void 0||Xt.add([Nt]),Vt=et.Z.getStoryReadState(Zt.id),Ar(Zt),fr(Zt.pages[Vt.initialPage]),dt(gn.G.Success),Ht=(0,Ue.Gn)("/:basename/:storyId",{basename:nn,storyId:Zt.id}),Yr.replace(Ht)):bt(),[3,4];case 3:return ur=Kt.sent(),console.error(ur),bt(),[3,4];case 4:return[2]}})})}},[nn,ni,Yr,It,Br,ci,Xi,tn,Qn,Ir,Ar,fr]);var Wi=(0,C.useCallback)(function(){var bt,xt;if(Gr.current&&vn.current){var Zt=vn.current,Nt=Zt.action,Vt=Zt.swipeUpType,Ht=Zt.swipeUpUrl;Ee.Z.recordActivity(new he(Gr.current,vn.current,fn)),Vt===Ln.inApp&&Ht&&((bt=Ne.Z.userNavigatedToApp)===null||bt===void 0||bt.call(Ne.Z,Ht)),Nt&&(function(ur){var Xt=ur.action,Kt=ur.categories,$r=ur.closeStoryView,Vr=ur.currentStoryId,Kr=ur.goToStory,cr=ur.playerStories;if((0,yn.Yz)(Xt))return Vr===Xt.storyId?void 0:(cr||[]).findIndex(function(Xr){return Xr.id===Xt.storyId})>=0?void(Kr==null||Kr(Xt.storyId,0,{animate:!0})):void Fr.Z.openStory({id:Xt.storyId});if((0,yn.H5)(Xt))return Kt.length===1&&Kt[0]===Xt.storyCategoryId||Kt.length===0&&!Xt.storyCategoryId?void 0:($r(),void Fr.Z.openCategory(Xt.storyCategoryId));if((0,yn.MI)(Xt))return $r(),void Fr.Z.openClipById(Xt.clipId);(0,yn.JB)(Xt)&&($r(),Fr.Z.openCollection(Xt.clipCollectionId))})({action:Nt,categories:qr,closeStoryView:function(){return Mo(we.z.windowUnload)},currentStoryId:(xt=Gr.current)===null||xt===void 0?void 0:xt.id,goToStory:function(){for(var ur,Xt=[],Kt=0;Kt<arguments.length;Kt++)Xt[Kt]=arguments[Kt];return(ur=It.current)===null||ur===void 0?void 0:ur.go.apply(ur,Xt)},playerStories:Br})}},[qr,Mo,fn,It,Br]),Vo=(0,C.useRef)([]),Ka=(0,C.useCallback)(function(bt){if(bt.detail.isNavigationalSwipe){var xt=Vo.current[0]-Vo.current[Vo.current.length-1];if(Math.abs(xt)<50)return;Dr.current={direction:xt<0?"right":"left",date:new Date},Br&&Gr.current&&vn.current&&Dr.current.direction==="left"&&Gr.current.rowIndex===Br.length-1?Mo(we.z.swipedFinalStory):Gr.current&&vn.current&&Dr.current.direction==="right"&&Gr.current.rowIndex===0&&Mo(we.z.swipedFirstStory)}Vo.current=[]},[Mo,Dr,Br]),Eo=(0,C.useCallback)(function(bt){bt.persisted&&Ir&&window.location.reload()},[Ir]),To=(function(bt){var xt=bt.currentCategories,Zt=bt.currentStory,Nt=bt.currentPage,Vt=bt.handleShareButtonTapped;return{getPollAnswerId:function(){var Ht=Zt.current,ur=Nt.current,Xt=te.Z.polls,Kt=te.Z.pollAnswerMap;if(!Ht||!ur)return"";var $r=Xt.find(function(Vr){return Vr.engagementUnitId===ur.engagementUnit.id});return $r&&Kt[$r==null?void 0:$r.id]||""},getPollSharingText:function(){return Le.getPollSharingText(Zt.current,Nt.current)},handleAnsweredQuiz:(0,C.useCallback)(function(Ht){var ur,Xt,Kt=Ht.detail,$r=Kt.quiz,Vr=Kt.questionId,Kr=Kt.answerId,cr=Kt.score;Zt.current&&Nt.current&&(te.Z.quizAnswerMap=(0,A.pi)((0,A.pi)({},te.Z.quizAnswerMap),((ur={})[Nt.current.id]=(0,A.pi)((0,A.pi)({},te.Z.quizAnswerMap[Nt.current.id]),((Xt={})[Vr]=Kr,Xt)),ur)),Ee.Z.recordActivity(new Be($r,Kr,Vr,xt,Zt.current,Nt.current)),cr&&Ee.Z.recordActivity(new vt($r,cr,xt,Zt.current,Nt.current)))},[xt,Nt,Zt]),handlePollVote:(0,C.useCallback)(function(Ht){var ur;if(Zt.current&&Nt.current){var Xt=Ht.detail.pollId,Kt=Ht.detail.answerId;te.Z.pollAnswerMap=(0,A.pi)((0,A.pi)({},te.Z.pollAnswerMap),((ur={})[Xt]=Kt,ur)),Ee.Z.recordActivity(new ht(Kt,Zt.current,Nt.current,xt))}},[xt,Nt,Zt]),handlePollsReceived:function(Ht){var ur=Ht.detail.polls;te.Z.polls=(0,A.ev)([],ur,!0)},handleQuizResultsShareButtonTapped:function(Ht){var ur=Ht.detail.quizId,Xt=Ht.detail.score,Kt=Ht.detail.title,$r=Nt.current!==void 0?Nt.current.deepLinkInternal:"",Vr=Le.formatQuizDeepLink($r,ur,Xt),Kr=Le.getQuizSharingText(Zt.current,Nt.current,Xt,Kt);Kr&&Vt(Vr,Kr)}}})({currentCategories:fn,currentStory:Gr,currentPage:vn,handleShareButtonTapped:Fi}),fa=To.getPollAnswerId,to=To.getPollSharingText,Ya=To.handleAnsweredQuiz,ji=To.handlePollVote,Ko=To.handlePollsReceived,Xa=To.handleQuizResultsShareButtonTapped,Co=(0,C.useCallback)(function(){if(vn.current){var bt="",xt="";vn.current.type===Te.G.poll?(bt=Le.formatPollDeepLink(vn.current.deepLinkInternal,fa()),xt=to()):bt=vn.current.deepLinkInternal,Fi(bt,xt)}},[vn,fa,to,Fi]);return(0,se.Z)(wr.n.storyNavigation,ra,It),(0,se.Z)(wr.n.playerKeyPress,Pa,It,wt),(0,se.Z)(wr.n.storyPageNavigation,Za,It),(0,se.Z)(wr.n.storyPageVisible,xa,It,Zr),(0,se.Z)(wr.n.playerNoNextStory,Aa,It),(0,se.Z)(wr.n.storyPageAttachmentOpen,Wi,It,Zr),(0,se.Z)(wr.n.playerClose,ta,It,Zr),(0,se.Z)(wr.n.playerShareButtonTapped,Co,It),(0,se.Z)(wr.n.playerTouchEnd,Ka,It),(0,se.Z)(wr.n.playerTouchMove,function(bt){Vo.current=(0,A.ev)((0,A.ev)([],Vo.current,!0),bt.detail.touches.map(function(xt){return xt.screenX}),!0)},It),(0,se.Z)(wr.n.storyMutedState,function(bt){br.current=bt.detail.muted},It),(0,se.Z)(wr.n.storyPageShow,Eo),(0,se.Z)(j.C.votedPoll,ji),(0,se.Z)(j.C.shareButtonTapped,Xa),(0,se.Z)(j.C.answeredQuiz,Ya),(0,se.Z)(j.C.pollsReceived,Ko),(0,se.Z)(j.C.playerControl,function(bt){var xt,Zt=bt.detail,Nt=Zt.operation,Vt=Zt.openedReason;if(It.current){if(Vt&&(sr.current=Vt),Nt==="play")It.current.play();else if(Nt==="pause")It.current.pause();else if(Nt==="go-to-next-page")It.current.go(0,1);else if(Nt==="go-to-next-page-or-story"){var Ht=((xt=Gr.current)===null||xt===void 0?void 0:xt.pages)||[];Ht.findIndex(function(ur){var Xt;return ur.id===((Xt=vn.current)===null||Xt===void 0?void 0:Xt.id)})===Ht.length-1?It.current.go(1,0):It.current.go(0,1)}}else console.error("!!! No player.current set in handlePlayerControls")}),(0,se.Z)(wr.n.storyAdView,qo,It,Zr),(0,se.Z)(wr.n.storyAdClick,Si,It,Zr),(0,se.Z)(wr.n.storyAdComplete,Ei,It,Zr),(0,se.Z)(wr.n.storyAdSkipped,Ro,It,Zr),(0,se.Z)(wr.n.storyAdPaused,hi,It,Zr),(0,se.Z)(wr.n.storyAdProgress,ui,It,Zr),(0,se.Z)(wr.n.storyAdResumed,po,It,Zr),{canShowInstructions:Yt,closeStoryView:Mo,isLightboxVisible:en,handleInstructionsRead:Dn,hasShownInstructions:Ye,lightBoxAnimationIsEnabled:ar,player:It,playerIsLoaded:wt,playerStories:Br,playerStoriesAreReady:Ji}},un=m(5259),_n=m(791),En="lightbox-TzQVTy",Ur="closed-JZRi-p",bi=m(5690),ri=m(1554),dn=m(4779),$i=m(1462),Vi=function($e){var je,qe,Ge,_t=$e.categories,yt=$e.cellType,Pt=$e.initialPageId,Ot=$e.story,Wt
148=$e.uiTheme,tr=$e.uiStyle,Sr=$e.useGoogleWebStoryUrls;if(this.title=Ot.titles.longDisplay||Ot.titles.internal,this.posterImage=Ot.thumbnailUrl,Sr&&Ot.googleWebStoryUrl)this.href=Ot.googleWebStoryUrl;else{var vr=K.Z.toSerializableTheme(Wt,K.G.Stories),jr=(0,ee.n1)({categories:_t,story:Ot}),qr=new URLSearchParams({autoplay:"1",cellType:yt,eventTrackingOptions:JSON.stringify(V.Z.eventTrackingOptions),userId:te.Z.userId||"",inAppActionsHaveCustomBehaviour:(!!Ne.Z.userNavigatedToApp).toString(),storyId:Ot.id,sortIndex:Ot.rowIndex.toString(),"x-storyteller-api-key":te.Z.apiKey||"",adConfig:(0,ee.Ev)(jr)?(0,ee.M)(jr,(je=te.Z.settings)===null||je===void 0?void 0:je.ads.stories):"",theme:JSON.stringify(vr),uiStyle:tr});if(V.Z.eventTrackingOptions.enablePersonalization)for(var Qn=0,Yi=Object.entries(bi.Z.getUserAttributes());Qn<Yi.length;Qn++){var ni=Yi[Qn],uo=ni[0],Bi=ni[1];qr.append("userAttributes[".concat(uo,"]"),Bi)}if(_t){var Br=_t.join(",");qr.append("categories",Br)}var ci=et.Z.getStoryReadState(Ot.id),fi=Pt||((qe=Ot.pages[ci.initialPage])===null||qe===void 0?void 0:qe.id)||((Ge=Ot.pages[0])===null||Ge===void 0?void 0:Ge.id),Un=dn.Z.get(dn.d.ampEnvironment),dt=dn.Z.get(dn.d.webSdkEnvironment);if(Un==="local"||dt==="local"||te.Z.environment&&te.Z.environment!==$i.q.production){var gt=(function(){var Ye=dn.Z.get(dn.d.webSdkEnvironment)||"staging",St=dn.Z.get(dn.d.ampEnvironment)||"staging",Et=new URLSearchParams({webSdkEnvironment:Ye,ampSdkEnvironment:St});if(Ye!=="local"){var wt=dn.Z.get(dn.d.webSdkVersion)||ri.q4;Et.append("webSdkVersion",wt)}if(St!=="local"){var Rt=dn.Z.get(dn.d.ampVersion)||ri.qS;Et.append("ampVersion",Rt)}return Et})();this.href="".concat(Ot.webStoryUrl,"?").concat(gt.toString(),"&").concat(qr.toString()).concat(fi?"#page=".concat(fi):"")}else qr.append("webSdkVersion",ri.q4),qr.append("ampVersion",ri.qS),this.href="".concat(Ot.webStoryUrl,"?").concat(qr.toString()).concat(fi?"#page=".concat(fi):"")}},Wr=m(9628),vo=C.createElement("div",{className:"loadingSpinner-lI89Zg"},C.createElement("div",null),C.createElement("div",null),C.createElement("div",null),C.createElement("div",null)),He=function($e){var je,qe,Ge=$e.cellType,_t=$e.uiStyle,yt=$e.useGoogleWebStoryUrls,Pt=$e.viewId,Ot=(0,A._T)($e,["cellType","uiStyle","useGoogleWebStoryUrls","viewId"]),Wt=$().pageId,tr=(0,X.F)(),Sr=(0,C.useRef)(null),vr=JSON.stringify({behavior:{autoplay:!1,pageScroll:!1,playAllStories:!V.Z.eventTrackingOptions.enableFunctionalCookies||Ot.playAllStories},controls:[{name:"share",position:"end",visibility:window.navigator.share&&tr.player.showShareButton&&!tr.player.disableUrls?"visible":"hidden"},{name:"close",position:"end"}],display:{icon:!!tr.player.showStoryIcon&&"visible",actionButtonVisibility:tr.player.actionButton.showOnMobile?"visible":"desktop",actionButtonPosition:(qe=tr.player.actionButton.alignment)!==null&&qe!==void 0?qe:Wr.R.right}}),jr=function(ar){return new Vi({categories:Ot.categories,cellType:Ge,initialPageId:Wt,story:ar,uiTheme:Ot.uiTheme,uiStyle:_t,useGoogleWebStoryUrls:yt})},qr=Rn({categories:Ot.categories,newAmpStory:jr}),Qn=qr.canShowInstructions,Yi=qr.closeStoryView,ni=qr.handleInstructionsRead,uo=qr.hasShownInstructions,Bi=qr.isLightboxVisible,Br=qr.lightBoxAnimationIsEnabled,ci=qr.player,fi=qr.playerIsLoaded,Un=qr.playerStories,dt=qr.playerStoriesAreReady;(0,C.useEffect)(function(){Sr.current&&K.Z.setDocumentStyle({element:Sr.current,id:"lightbox-theme-".concat(Pt||"stories"),playerType:K.G.Stories,selector:".".concat(En),theme:tr})},[Un,tr,Pt]);var gt,Ye,St,Et,wt,Rt,qt,Bt,Mr,Er,Zr=(0,C.useMemo)(function(){return Br&&!P.tq},[Br]),Cn=(gt={isLightboxVisible:Bi,lightbox:Sr,lightboxShouldAnimate:Zr,playerStories:Un},Ye=gt.isLightboxVisible,St=gt.lightbox,Et=gt.lightboxShouldAnimate,wt=gt.playerStories,Rt=(0,C.useRef)(null),qt=(0,C.useRef)(!1),Bt=(0,un.l)({isLightboxVisible:Ye,lightbox:St}),Mr=Bt.lightboxHasCorrectHeight,Er=Bt.setLightboxHeightStatus,(0,C.useEffect)(function(){var ar=Rt.current,dr=St.current;if(dr)return ar&&clearTimeout(ar),Ye?(dr.style.display="block",qt.current||Er(un.P.Incorrect),qt.current=!0,setTimeout(function(){dr.classList.remove(Ur),dr.classList.add(_n.dO)},25)):(qt.current=!1,dr.classList.add(Ur),dr.classList.remove(_n.dO),Et?Rt.current=setTimeout(function(){dr.style.display="none",Rt.current=null},zr.r):dr.style.display="none"),function(){ar&&clearTimeout(ar)}},[Ye,St,Et,wt,Er]),{lightboxHasCorrectHeight:Mr}).lightboxHasCorrectHeight;(function(ar,dr,pn){var Yt=(0,C.useRef)({scaleVal:1,scalingDown:!1,toggleThresholdPx:60,deltaY:0,isSwipeY:null,touchStartX:0,touchStartY:0});if((0,se.Z)(wr.n.playerTouchStart,function(nr){var Tr;(Tr=ar.current)===null||Tr===void 0||Tr.classList.add("dragging"),Yt.current.touchStartX=nr.detail.touches[0].screenX,Yt.current.touchStartY=nr.detail.touches[0].screenY},dr),(0,se.Z)(wr.n.playerTouchMove,function(nr){if(ar.current){var Tr=nr.detail.touches[0],nn=Tr.screenX,fn=Tr.screenY;Yt.current.isSwipeY===null&&(Yt.current.isSwipeY=Math.abs(Yt.current.touchStartY-fn)>Math.abs(Yt.current.touchStartX-nn)),Yt.current.isSwipeY!==!1&&(Yt.current.deltaY=Yt.current.touchStartY-fn,Yt.current.deltaY>0||(Yt.current.scalingDown||(Yt.current.scalingDown=!0,Jt(0)),Yt.current.isSwipeY=!0,ar.current.style.transform="translate3d(0, ".concat(Math.pow(-Yt.current.deltaY,.6),"px, 0) scale3d(").concat(Yt.current.scaleVal,", ").concat(Yt.current.scaleVal,", 1)")))}},dr),(0,se.Z)(wr.n.playerTouchEnd,function(){var nr;Yr(),(nr=ar.current)===null||nr===void 0||nr.classList.remove("dragging"),Yt.current.isSwipeY===!0&&Yt.current.deltaY<0&&Math.abs(Yt.current.deltaY)>Yt.current.toggleThresholdPx?Hr():Yt.current.isSwipeY===!0&&Qr(),Yt.current.isSwipeY=null},dr),ar)var Jt=function(nr){var Tr,nn;ar.current&&nr<1&&Yt.current.scalingDown&&(Yt.current.scaleVal=(nn=nr,1*(1-(Tr=--nn*nn*nn+1))+.95*Tr),ar.current.style.transform="translate3d(0px, ".concat(Math.pow(-Yt.current.deltaY,.6),"px, 0) scale3d(").concat(Yt.current.scaleVal,", ").concat(Yt.current.scaleVal,", 1)"),requestAnimationFrame(function(){return Jt(nr+=.05)}))},Yr=function(){Yt.current.scalingDown=!1,Yt.current.scaleVal=1},Qr=function(){ar.current&&(ar.current.style.transform="translate3d(0, 0, 0) scale3d(1, 1, 1)")},Hr=function(){pn(we.z.swipedDown,!1),Qr()}})(Sr,ci,Yi);var Wn=(0,C.useMemo)(function(){return Cn&&fi&&dt},[Cn,fi,dt]);return(0,C.useEffect)(function(){z.Z.on(F._.getAdConfigUpdated,function(){Un==null||Un.forEach(function(ar){var dr,pn,Yt=(0,ee.n1)({categories:Ot.categories,story:ar}),Jt=(0,ee.Ev)(Yt)?(0,ee.M)(Yt,(dr=te.Z.settings)===null||dr===void 0?void 0:dr.ads.stories):"";(pn=ci.current)===null||pn===void 0||pn.updateStoryAdConfig(ar.id,Jt)})})},[ci,Un,Ot.categories]),(0,C.useEffect)(function(){z.Z.on(F._.userNavigatedToAppUpdated,function(ar){var dr;(dr=ci.current)===null||dr===void 0||dr.setInAppActionsHaveCustomBehaviour(ar)})},[ci]),Un?C.createElement("div",{className:U()(En,(je={}
148,je["animated-j21IR0"]=Zr,je["isIOS-Pni0Hn"]=P.gn,je)),ref:Sr,style:{"--lightbox-animation-duration":"".concat(zr.r,"ms")}},vo,C.createElement("amp-story-player",{class:"storytellerPlayer-19WHsz",ref:ci,key:Un.map(function(ar){return"".concat(ar.id)}).join(),style:{opacity:Wn?1:0,visibility:Wn?"visible":"hidden"}},C.createElement(H.Xf,{type:"application/json"},vr),Un&&Un.map(function(ar){var dr=jr(ar);return C.createElement("a",{href:dr.href,key:ar.id,"data-story-title":dr.title},C.createElement(H.Ee,{src:dr.posterImage,loading:"lazy",width:"320",height:"480","data-amp-story-player-poster-img":!0}))})),Qn&&C.createElement(Me,{hasShownInstructions:uo,handleInstructionsRead:ni})):null}},6916:function(f,b,m){m.d(b,{Z:function(){return L}});var S=m(7582),w=m(9748),T=m(1462),A=m(7814),C=m(1554),P=m(2434),B=m(7112),U=m(647),D=m(2357),$=m(2173),z=m(8105),V=m(3914),F=m(6661),ee=m(4779),te=m(2385),K=m(1016),H=(function(j){function Z(){var le=j.call(this,"InitializationError - Unable to load settings.")||this;return Object.setPrototypeOf(le,Z.prototype),le}return(0,S.ZT)(Z,j),Z})(Error),X=(function(j){function Z(){var le=j.call(this,"InvalidApiKeyError - The API Key provided was invalid")||this;return Object.setPrototypeOf(le,Z.prototype),le}return(0,S.ZT)(Z,j),Z})(Error),J=(function(j){function Z(){var le=j.call(this,"NetworkError - Problem with getting the data from network.")||this;return Object.setPrototypeOf(le,Z.prototype),le}return(0,S.ZT)(Z,j),Z})(Error),G=(function(j){function Z(){var le=j.call(this,"NetworkTimeoutError - Ensure the device has access to network.")||this;return Object.setPrototypeOf(le,Z.prototype),le}return(0,S.ZT)(Z,j),Z})(Error),Q=m(956),pe=m(3441),ye=m(355),de=(function(j){function Z(){var le=j!==null&&j.apply(this,arguments)||this;return le.shouldPersonalize=!1,le.endpoint="settings/settings/default",le.method=ye.w.get,le}return(0,S.ZT)(Z,j),Z})(pe.I),_e=(function(j){function Z(){var le=j!==null&&j.apply(this,arguments)||this;return le.logTag="SettingsApiService",le}return(0,S.ZT)(Z,j),Z.prototype.requestSettings=function(){return(0,S.mG)(this,void 0,void 0,function(){var le,Te,Ae;return(0,S.Jh)(this,function(Le){switch(Le.label){case 0:le=new de,Le.label=1;case 1:return Le.trys.push([1,3,,4]),[4,te.Z.executeCommand(le)];case 2:if(Te=Le.sent(),F.Z.settings=Te,!Te)throw new H;return[3,4];case 3:throw Ae=Le.sent(),this.logError(Ae.toString()),Ae instanceof K.G?Ae.status===401||Ae.status===404?new X:Ae.status===408?new G:new J:new J;case 4:return[2]}})})},Z.sharedInstance=new Z,Z})(Q.b),Re=_e.sharedInstance,ge=m(4637),Ce=m(373),Me=m(791),Ue=m(6008),Ne=m(1143),We=m(1417),et=m(6595),rt=(function(j){function Z(le,Te){var Ae=j.call(this)||this;Ae.logTag="StorytellerStoriesDefaultView",Ae.isDefaultView_=!0,Ae.playerShouldBeAppendedToDOM_=!0,Ae.storiesShouldPreload_=!0,Ae.useGoogleWebStoryUrls_=!1;var Le=document.getElementById(Me.c$);return Le||(Le=document.createElement("div"),document.body.appendChild(Le)),z.Z.hasActiveDefaultStoriesView=!0,Ae.listViewService_.basename=Me.c$,Ae.playerContainerEl_=Le,Ae.storyId_=le,Te&&(Ae.listViewService_.categories=[Te]),Ae.initializeListView(),Ae}return(0,S.ZT)(Z,j),Object.defineProperty(Z.prototype,"listConfiguration",{get:function(){return{basename:this.basename,categories:[],displayLimit:1,preload:!0,theme:this.theme_,uiStyle:$.Z.uiStyle}},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"memoryRouterProps_",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"shouldShowInstructions",{get:function(){return $.Z.currentTheme.instructions.show}
148,enumerable:!1,configurable:!0}),Z.prototype.initialize=function(){this.loadStories({retrieve:!0})},Z.prototype.loadStories=function(le){return(0,S.mG)(this,void 0,void 0,function(){var Te,Ae,Le,Ke;return(0,S.Jh)(this,function(nt){switch(nt.label){case 0:j.prototype.loadStories.call(this),nt.label=1;case 1:return nt.trys.push([1,6,,7]),Te=[],this.listViewService_.categories.length>0?[4,Ue.Z.loadStories(this.listViewService_.categories,le)]:[3,3];case 2:return Ae=nt.sent(),Te=Ae.stories,[3,5];case 3:return[4,Ue.Z.loadStoryById(this.storyId_,le)];case 4:if(!(Le=nt.sent()))throw new Error("Story null");Te=[Le],nt.label=5;case 5:return this.onStoriesLoadSuccess({stories:Te,enableReadUnreadOrdering:!1,theme:Me.Hs}),[3,7];case 6:return Ke=nt.sent(),this.onStoriesLoadFailure(Ke),[3,7];case 7:return[2]}})})},Z.prototype.onStoriesLoadSuccess=function(le){this.stories=le.stories,this.listViewService_.loadingState=et.G.Success,this.renderPlayer()},Z.prototype.onStoriesLoadFailure=function(le){j.prototype.onStoriesLoadFailure.call(this,le),this.stories=[],this.listViewService_.loadingState=et.G.Error},Z.prototype.registerListView=function(){},Z.prototype.renderStoryteller=function(){this.renderPlayer()},Z.prototype.updatePlayerVisibility=function(le){var Te=this;j.prototype.updatePlayerVisibility.call(this,le),le||this.listViewService_.isDisabled||(z.Z.hasActiveDefaultStoriesView=!1,this.listViewService_.disable(),setTimeout(function(){Te.playerContainerEl_.remove()},We.r))},Z})(Ne.Z),re=m(6265),ne=m(9420),Se=m(8949),he=(function(j){function Z(le){var Te=j.call(this)||this;Te.logTag="StorytellerClipsDefaultView",Te.isDefaultView_=!0,Te.useGoogleWebStoryUrls_=!1;var Ae=document.createElement("div");return document.body.appendChild(Ae),z.Z.hasActiveDefaultClipsView=!0,Te.listViewService_.basename=Me.xM,Te.listViewService_.collection=le,Te.playerContainerEl_=Ae,Te.clipsNavService=new ne.ZP(le),Te.initializeListView(),Te}return(0,S.ZT)(Z,j),Object.defineProperty(Z.prototype,"listConfiguration",{get:function(){return{collection:this.listViewService_.collection,displayLimit:1,theme:this.theme_,uiStyle:$.Z.uiStyle}},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"memoryRouterProps_",{get:function(){return null},enumerable:!1,configurable:!0}),Z.prototype.onClipsLoadSuccess=function(le){j.prototype.onClipsLoadSuccess.call(this,le),this.renderStoryteller()},Z.prototype.loadClips=function(le){return(0,S.mG)(this,void 0,void 0,function(){var Te,Ae;return(0,S.Jh)(this,function(Le){switch(Le.label){case 0:if(!this.listViewService_.collection)return[2];j.prototype.loadClips.call(this),Le.label=1;case 1:return Le.trys.push([1,3,,4]),[4,Se.Z.loadClips(this.listConfiguration.collection,le)];case 2:return Te=Le.sent(),this.onClipsLoadSuccess(Te),[3,4];case 3:return Ae=Le.sent(),this.onClipsLoadFailure(Ae),[3,4];case 4:return[2]}})})},Z.prototype.initialize=function(){this.loadClips({retrieve:!0})},Z.prototype.registerListView=function(){},Z.prototype.renderStoryteller=function(){this.renderPlayer()},Z.prototype.onPlayerClose_=function(){z.Z.hasActiveDefaultClipsView=!1,this.playerContainerEl_.remove(),this.listViewService_.disable()},Z})(re.Z),we=m(6550),xe=m(3727),ze=function(j){var Z=j.memoryRouterProps,le=j.onRouteMatch;return Z?w.default.createElement(we.VA,(0,S.pi)({},Z),w.default.createElement(Ee,{memoryRouterProps:Z,onRouteMatch:le})):w.default.createElement(xe.UT,{hashType:"noslash"},w.default.createElement(Ee,{memoryRouterProps:Z,onRouteMatch:le}))},Ee=function(j){var Z=j.onRouteMatch,le=(0,we.TH)().search,Te=(0,we.$B)("/stories/:storyId"),Ae=(0,we.$B)("/clips/:collectionId/:clipId?"),Le=(0,w.useRef)(!1),Ke=(0,w.useRef)(!1);return(0,w.useEffect)(function(){if(Te&&!Le.current){var nt=new URLSearchParams(le).get("categoryId");Le.current=!0,Z({categoryId:nt,storyId:Te.params.storyId})}Te||(Le.current=!1)},[le,Te,Z]),(0,w.useEffect)(function(){Ae&&!Ke.current&&(Ke.current=!0,Z({collectionId:Ae.params.collectionId,clipId:Ae.params.clipId})),Ae||(Ke.current=!1)},[Ae,Z]),null},se=m(1736),L=(function(){function j(){this.version=C.q4,this._isInitialized=!1}return Object.defineProperty(j.prototype,"isInitialized",{get:function(){return this._isInitialized}
148,enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"isPlayerVisible",{get:function(){return ge.Z.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"delegate",{get:function(){return se.Z.getInstance()},set:function(Z){se.Z.setDelegate(Z),Z.getAdConfig&&B.Z.broadcastEvent(U._.getAdConfigUpdated),B.Z.broadcastEvent(U._.userNavigatedToAppUpdated,!!Z.userNavigatedToApp)},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"theme",{get:function(){return $.Z.theme},set:function(Z){$.Z.theme=Z},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"customInstanceHost",{set:function(Z){F.Z.customInstanceHost=Z},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"currentTheme",{get:function(){return $.Z.currentTheme},enumerable:!1,configurable:!0}),j.prototype.initialize=function(Z,le){var Te,Ae;return le===void 0&&(le={}),(0,S.mG)(this,void 0,void 0,function(){var Le,Ke,nt,Be,vt,ht,mt;return(0,S.Jh)(this,function($t){switch($t.label){case 0:return Z||this._isInitialized?(Ke=ee.Z.get(ee.d.customEnvironment),nt=null,P.A||(Be=document.querySelector('meta[name="environment"]'))&&(nt=(Te=Be.getAttribute("content"))!==null&&Te!==void 0?Te:""),vt=(Ae=nt??Ke)!==null&&Ae!==void 0?Ae:"production",ht=F.Z.apiKey!==Z,F.Z.environment=T.q[vt],F.Z.apiKey=Z,[4,this.setUserDetails(le,ht)]):(Le="Storyteller couldn't be initialized because no API key was provided.",Ce.Z.logError(Le),[2,Promise.reject(Le)]);case 1:return $t.sent(),this.setStorytellerStyles_(),P.A||(this.theme=new A.V,z.Z.getViewportMinimumScaleToRestore(),(mt=window.matchMedia("(prefers-color-scheme: dark)")).addEventListener&&mt.addEventListener("change",function(){return $.Z.buildTheme()})),this._isInitialized||this._isInitialized?(Ce.Z.logWarning("Storyteller has already been initialized. Reusing the existing instance."),[2,Promise.resolve()]):[4,Re.requestSettings()];case 2:return $t.sent(),this._isInitialized=!0,this.renderStorytellerRouter_(),[2]}})})},Object.defineProperty(j.prototype,"eventTrackingOptions",{get:function(){return V.Z.eventTrackingOptions},set:function(Z){V.Z.eventTrackingOptions=Z},enumerable:!1,configurable:!0}),j.prototype.enablePlayback=function(){ge.Z.enablePlayback()},j.prototype.disablePlayback=function(){ge.Z.disablePlayback()},j.prototype.dismissPlayer=function(Z){B.Z.broadcastEvent(U._.dismissPlayer,Z)},j.prototype.enableEventTracking=function(){V.Z.eventTrackingOptions={disabledFunctionalFeatures:[],enableAdTracking:!0,enableFullVideoAnalytics:!0,enableFunctionalCookies:!0,enablePersonalization:!0,enableRemoteViewingStore:!0,enableUserActivityTracking:!0,enableStorytellerTracking:!0}},j.prototype.disableEventTracking=function(){V.Z.eventTrackingOptions={disabledFunctionalFeatures:[],enableAdTracking:!0,enableFullVideoAnalytics:!0,enableFunctionalCookies:!0,enablePersonalization:!0,enableRemoteViewingStore:!0,enableUserActivityTracking:!0,enableStorytellerTracking:!1}},j.prototype.enableLogging=function(){Ce.Z.enableLogging()},j.prototype.setUserDetails=function(Z,le){return le===void 0&&(le=!1),(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(Te){switch(Te.label){case 0:return V.Z.eventTrackingOptions.enableRemoteViewingStore?Z.externalId===void 0?[3,2]:[4,F.Z.setUserId(Z.externalId)]:[2,F.Z.deleteStoredUserId()];case 1:case 3:case 5:return[2,Te.sent()];case 2:return F.Z.storedUserId&&!le?[3,4]:[4,F.Z.setUserId(D.i.newGuid())];case 4:return[4,F.Z.ensureUserIdIsHashed()]}})})},Object.defineProperty(j.prototype,"currentUserId",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"currentApiKey",{get:function(){return F.Z.apiKey},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"uiStyle",{get:function(){return $.Z.uiStyle},enumerable:!1,configurable:!0}),j.prototype.openStory=function(Z){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(le){return[2,z.Z.openStory({id:Z})]})})},j.prototype.openStoryByExternalId=function(Z){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(le){return[2,z.Z.openStory({externalId:Z})]})})},j.prototype.openPage=function(Z){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(le){return[2,z.Z.openPage(Z)]})})},j.prototype.openCategory=function(Z,le){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(Te){return[2,z.Z.openCategory(Z,le)]})})},j.prototype.openCollection=function(Z,le,Te){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(Ae){return[2,z.Z.openCollection(Z,le,Te)]})})},j.prototype.openClip=function(Z,le){z.Z.openClip(Z,le)},j.prototype.openClipByExternalId=function(Z,le){return(0,S.mG)(this,void 0,void 0,function(){return(0,S.Jh)(this,function(Te){return[2,z.Z.openClipByExternalId(Z,le)]})})},j.prototype.setStorytellerStyles_=function(){if(!P.A&&!document.documentElement.hasAttribute("amp-version")){var Z="storyteller-sdk-styles",le=document.documentElement.querySelector("#".concat(Z));le||((le=document.createElement("style")).id=Z),le.innerHTML=`
149      html:has(.`.concat(Me.dO,`),
150      html.i-amphtml-fie > body:has(.`).concat(Me.dO,`),
151      html.i-amphtml-singledoc > body:has(.`).concat(Me.dO,`),
152      body:has(.`).concat(Me.dO,`) {
153        overflow: hidden !important;
154        --storyteller-row-overflow: hidden;
155      }
156      /*@ sourceURL=`).concat(Z,".css */");var Te=document.documentElement.querySelector("head");
156Te?Te.prepend(le):document.documentElement.prepend(le)}},j.prototype.renderStorytellerRouter_=function(){if(!P.A){var Z=document.createElement("div");document.body.appendChild(Z),w.render(w.createElement(ze,{memoryRouterProps:null,onRouteMatch:function(le){if("storyId"in le){var Te=le.categoryId,Ae=le.storyId,Le=z.Z.storiesViewWithDefaultBasename;return Le?void Le.whenLoaded(function(){!Te&&(Le.stories||[]).findIndex(function(Be){return Be.id===Ae})>-1||Te&&Le.categories.length===1&&Le.categories[0]===Te||new rt(Ae,Te)}):void new rt(Ae,Te)}var Ke=le.collectionId,nt=z.Z.clipsViewWithDefaultBasename;nt?nt.whenLoaded(function(){nt.collection!==Ke&&new he(Ke)}):new he(Ke)}}),Z)}},j.sharedInstance=new j,j})().sharedInstance},2173:function(f,b,m){var S=m(7582),w=m(956),T=m(2434),A=m(1508),C=m(7112),P=m(647),B=m(6940),U=m(4539),D=(function($){function z(){var V=$!==null&&$.apply(this,arguments)||this;return V.logTag="StorytellerThemeService",V.uiStyle=U.V.auto,V}return(0,S.ZT)(z,$),Object.defineProperty(z.prototype,"currentTheme",{get:function(){return this.currentTheme_},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"theme",{get:function(){return this.theme_},set:function(V){this.theme_=V,this.buildTheme()},enumerable:!1,configurable:!0}),z.prototype.buildTheme=function(){if(this.currentTheme_=new A.V(B.Z.prefersDarkMode(this.uiStyle),this.theme_).build(),!T.A){var V=document.documentElement.hasAttribute("amp-version");B.Z.setDocumentStyle({element:document.documentElement,id:"theme",playerType:V?B.G.Stories:B.G.None,selector:":root",theme:this.currentTheme_}),C.Z.broadcastEvent(P._.themeUpdated)}},z.sharedInstance=new z,z})(w.b);b.Z=D.sharedInstance},5690:function(f,b,m){var S=m(7582),w=m(956),T=m(4779),A=m(3914),C=(function(P){function B(){var U=P.call(this)||this;return U.logTag="UserPropertiesService",U}return(0,S.ZT)(B,P),B.prototype.getUserAttributes=function(){return T.Z.get(T.d.userAttributes)||{}},B.prototype.getUserAttribute=function(U){return this.getUserAttributes()[U]},B.prototype.setUserAttribute=function(U,D){if(!U||!D)throw new Error("Key and value are required when setting user attributes");if(A.Z.eventTrackingOptions.enablePersonalization){var $=this.getUserAttributes();return $[U]=D,T.Z.add(T.d.userAttributes,$),!!this.getUserAttributes()[U]||-1}this.logWarning("User attributes are not being stored because eventTrackingOptions.enablePersonalization is false")},B.prototype.setLocale=function(U){this.setUserAttribute("stLocale",U||"")},Object.defineProperty(B.prototype,"locale",{get:function(){return this.getUserAttribute("stLocale")},enumerable:!1,configurable:!0}),B.prototype.removeUserAttribute=function(U){var D=this.getUserAttributes();delete D[U],T.Z.add(T.d.userAttributes,D)},B.prototype.parseUserAttributesToQueryStringAlphabetically=function(){var U=this.getUserAttributes(),D=Object.keys(U);D.sort();var $="";return D.forEach(function(z){$+="&userAttributes[".concat(z,"]=").concat(U[z])}),$.substring(1)},B.sharedInstance=new B,B})(w.b);b.Z=C.sharedInstance},3451:function(f,b,m){var S;(function(w,T){var A="function",C="undefined",P="object",B="string",U="major",D="model",$="name",z="type",V="vendor",F="version",ee="architecture",te="console",K="mobile",H="tablet",X="smarttv",J="wearable",G="embedded",Q="Amazon",pe="Apple",ye="ASUS",de="BlackBerry",_e="Browser",Re="Chrome",ge="Firefox",Ce="Google",Me="Huawei",Ue="LG",Ne="Microsoft",We="Motorola",et="Opera",rt="Samsung",re="Sharp",ne="Sony",Se="Xiaomi",he="Zebra",we="Facebook",xe="Chromium OS",ze="Mac OS",Ee=function(Be){for(var vt={},ht=0;ht<Be.length;ht++)vt[Be[ht].toUpperCase()]=Be[ht];return vt},se=function(Be,vt){return typeof Be===B&&L(vt).indexOf(L(Be))!==-1},L=function(Be){return Be.toLowerCase()},j=function(Be,vt){if(typeof Be===B)return Be=Be.replace(/^\s\s*/,""),typeof vt===C?Be:Be.substring(0,350)},Z=function(Be,vt){for(var ht,mt,$t,Mt,Dt,Qe,pt=0;pt<vt.length&&!Dt;){var Ut=vt[pt],jt=vt[pt+1];for(ht=mt=0;ht<Ut.length&&!Dt&&Ut[ht];)if(Dt=Ut[ht++].exec(Be))for($t=0;$t<jt.length;$t++)Qe=Dt[++mt],typeof(Mt=jt[$t])===P&&Mt.length>0?Mt.length===2?typeof Mt[1]==A?this[Mt[0]]=Mt[1].call(this,Qe):this[Mt[0]]=Mt[1]:Mt.length===3?typeof Mt[1]!==A||Mt[1].exec&&Mt[1].test?this[Mt[0]]=Qe?Qe.replace(Mt[1],Mt[2]):T:this[Mt[0]]=Qe?Mt[1].call(this,Qe,Mt[2]):T:Mt.length===4&&(this[Mt[0]]=Qe?Mt[3].call(this,Qe.replace(Mt[1],Mt[2])):T):this[Mt]=Qe||T;pt+=2}},le=function(Be,vt){for(var ht in vt)if(typeof vt[ht]===P&&vt[ht].length>0){for(var mt=0;mt<vt[ht].length;mt++)if(se(vt[ht][mt],Be))return ht==="?"?T:ht}else if(se(vt[ht],Be))return ht==="?"?T:ht;return Be},Te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ae={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[F,[$,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[F,[$,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[$,F],[/opios[\/ ]+([\w\.]+)/i],[F,[$,et+" Mini"]],[/\bopr\/([\w\.]+)/i],[F,[$,et]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[$,F],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[F,[$,"UC"+_e]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[F,[$,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[F,[$,"WeChat"]],[/konqueror\/([\w\.]+)/i],[F,[$,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[F,[$,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[F,[$,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[$,/(.+)/,"$1 Secure "+_e],F],[/\bfocus\/([\w\.]+)/i],[F,[$,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[F,[$,et+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[F,[$,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[F,[$,"Dolphin"]],[/coast\/([\w\.]+)/i],[F,[$,et+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[F,[$,"MIUI "+_e]],[/fxios\/([-\w\.]+)/i],[F,[$,ge]],[/\bqihu|(qi?ho?o?|360)browser/i],[[$,"360 "+_e]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[$,/(.+)/,"$1 "+_e],F],[/(comodo_dragon)\/([\w\.]+)/i],[[$,/_/g," "],F],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[$,F],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[$],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[$,we],F],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[$,F],[/\bgsa\/([\w\.]+) .*safari\//i],[F,[$,"GSA"]],[/musical_ly(?:.
vendor: 5,142 bytes, line 156
156+app_?version\/|_)([\w\.]+)/i],[F,[$,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[F,[$,Re+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[$,Re+" WebView"],F],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[F,[$,"Android "+_e]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[$,F],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[F,[$,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[F,$],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[$,[F,le,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[$,F],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[$,"Netscape"],F],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[F,[$,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[$,F],[/(cobalt)\/([\w\.]+)/i],[$,[F,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ee,"amd64"]],[/(ia32(?=;))/i],[[ee,L]],[/((?:i[346]|x)86)[;\)]/i],[[ee,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ee,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ee,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ee,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ee,/ower/,"",L]],[/(sun4\w)[;\)]/i],[[ee,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ee,L]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[D,[V,rt],[z,H]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[D,[V,rt],[z,K]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[D,[V,pe],[z,K]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[D,[V,pe],[z,H]],[/(macintosh);/i],[D,[V,pe]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[D,[V,re],[z,K]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[D,[V,Me],[z,H]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[D,[V,Me],[z,K]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[D,/_/g," "],[V,Se],[z,K]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[D,/_/g," "],[V,Se],[z,H]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[D,[V,"OPPO"],[z,K]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[D,[V,"Vivo"],[z,K]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[D,[V,"Realme"],[z,K]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[D,[V,We],[z,K]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[D,[V,We],[z,H]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[D,[V,Ue],[z,H]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[D,[V,Ue],[z,K]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[D,[V,"Lenovo"],[z,H]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[D,/_/g," "],[V,"Nokia"],[z,K]],[/(pixel c)\b/i],[D,[V,Ce],[z,H]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[D,[V,Ce],[z,K]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[D,[V,ne],[z,K]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[D,"Xperia Tablet"],[V,ne],[z,H]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[D,[V,"OnePlus"],[z,K]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[D,[V,Q],[z,H]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[D,/(.+)/g,"Fire Phone $1"],[V,Q],[z,K]],[/(playbook);[-\w\),; ]+(rim)/i],[D,V,[z,H]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[D,[V,de],[z,K]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[D,[V,ye],[z,H]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[D,[V,ye],[z,K]],[/(nexus 9)/i],[D,[V,"HTC"],[z,H]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[V,[D,/_/g," "],[z,K]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[D,[V,"Acer"],[z,H]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[D,[V,"Meizu"],[z,K]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 6,014 bytes, line 156
156s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[V,D,[z,K]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[V,D,[z,H]],[/(surface duo)/i],[D,[V,Ne],[z,H]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[D,[V,"Fairphone"],[z,K]],[/(u304aa)/i],[D,[V,"AT&T"],[z,K]],[/\bsie-(\w*)/i],[D,[V,"Siemens"],[z,K]],[/\b(rct\w+) b/i],[D,[V,"RCA"],[z,H]],[/\b(venue[\d ]{2,7}) b/i],[D,[V,"Dell"],[z,H]],[/\b(q(?:mv|ta)\w+) b/i],[D,[V,"Verizon"],[z,H]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[D,[V,"Barnes & Noble"],[z,H]],[/\b(tm\d{3}\w+) b/i],[D,[V,"NuVision"],[z,H]],[/\b(k88) b/i],[D,[V,"ZTE"],[z,H]],[/\b(nx\d{3}j) b/i],[D,[V,"ZTE"],[z,K]],[/\b(gen\d{3}) b.+49h/i],[D,[V,"Swiss"],[z,K]],[/\b(zur\d{3}) b/i],[D,[V,"Swiss"],[z,H]],[/\b((zeki)?tb.*\b) b/i],[D,[V,"Zeki"],[z,H]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[V,"Dragon Touch"],D,[z,H]],[/\b(ns-?\w{0,9}) b/i],[D,[V,"Insignia"],[z,H]],[/\b((nxa|next)-?\w{0,9}) b/i],[D,[V,"NextBook"],[z,H]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[V,"Voice"],D,[z,K]],[/\b(lvtel\-)?(v1[12]) b/i],[[V,"LvTel"],D,[z,K]],[/\b(ph-1) /i],[D,[V,"Essential"],[z,K]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[D,[V,"Envizen"],[z,H]],[/\b(trio[-\w\. ]+) b/i],[D,[V,"MachSpeed"],[z,H]],[/\btu_(1491) b/i],[D,[V,"Rotor"],[z,H]],[/(shield[\w ]+) b/i],[D,[V,"Nvidia"],[z,H]],[/(sprint) (\w+)/i],[V,D,[z,K]],[/(kin\.[onetw]{3})/i],[[D,/\./g," "],[V,Ne],[z,K]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[D,[V,he],[z,H]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[D,[V,he],[z,K]],[/smart-tv.+(samsung)/i],[V,[z,X]],[/hbbtv.+maple;(\d+)/i],[[D,/^/,"SmartTV"],[V,rt],[z,X]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[V,Ue],[z,X]],[/(apple) ?tv/i],[V,[D,pe+" TV"],[z,X]],[/crkey/i],[[D,Re+"cast"],[V,Ce],[z,X]],[/droid.+aft(\w)( bui|\))/i],[D,[V,Q],[z,X]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[D,[V,re],[z,X]],[/(bravia[\w ]+)( bui|\))/i],[D,[V,ne],[z,X]],[/(mitv-\w{5}) bui/i],[D,[V,Se],[z,X]],[/Hbbtv.*(technisat) (.*);/i],[V,D,[z,X]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[V,j],[D,j],[z,X]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[z,X]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[V,D,[z,te]],[/droid.+; (shield) bui/i],[D,[V,"Nvidia"],[z,te]],[/(playstation [345portablevi]+)/i],[D,[V,ne],[z,te]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[D,[V,Ne],[z,te]],[/((pebble))app/i],[V,D,[z,J]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[D,[V,pe],[z,J]],[/droid.+; (glass) \d/i],[D,[V,Ce],[z,J]],[/droid.+; (wt63?0{2,3})\)/i],[D,[V,he],[z,J]],[/(quest( 2| pro)?)/i],[D,[V,we],[z,J]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[V,[z,G]],[/(aeobc)\b/i],[D,[V,Q],[z,G]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[D,[z,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[D,[z,H]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[z,H]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[z,K]],[/(android[-\w\. ]{0,9});.+buil/i],[D,[V,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[F,[$,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[F,[$,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[$,F],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[F,$]],os:[[/microsoft (windows) (vista|xp)/i],[$,F],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[$,[F,le,Te]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[$,"Windows"],[F,le,Te]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[F,/_/g,"."],[$,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[$,ze],[F,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[F,$],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[$,F],[/\(bb(10);/i],[F,[$,de]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[F,[$,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[F,[$,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[F,[$,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[F,[$,"watchOS"]],[/crkey\/([\d\.]+)/i],[F,[$,Re+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[$,xe],F],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[$,F],[/(sunos) ?([\w\.\d]*)/i],[[$,"Solaris"],F],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[$,F]]},Le=function(Be,vt){if(typeof Be===P&&(vt=Be,Be=T),!(this instanceof Le))return new Le(Be,vt).getResult();var ht=typeof w!==C&&w.navigator?w.navigator:T,mt=Be||(ht&&ht.userAgent?ht.userAgent:""),$t=ht&&ht.userAgentData?ht.userAgentData:T,Mt=vt?
156(function(Qe,pt){var Ut={};for(var jt in Qe)pt[jt]&&pt[jt].length%2==0?Ut[jt]=pt[jt].concat(Qe[jt]):Ut[jt]=Qe[jt];return Ut})(Ae,vt):Ae,Dt=ht&&ht.userAgent==mt;return this.getBrowser=function(){var Qe,pt={};return pt[$]=T,pt[F]=T,Z.call(pt,mt,Mt.browser),pt[U]=typeof(Qe=pt[F])===B?Qe.replace(/[^\d\.]/g,"").split(".")[0]:T,Dt&&ht&&ht.brave&&typeof ht.brave.isBrave==A&&(pt[$]="Brave"),pt},this.getCPU=function(){var Qe={};return Qe[ee]=T,Z.call(Qe,mt,Mt.cpu),Qe},this.getDevice=function(){var Qe={};return Qe[V]=T,Qe[D]=T,Qe[z]=T,Z.call(Qe,mt,Mt.device),Dt&&!Qe[z]&&$t&&$t.mobile&&(Qe[z]=K),Dt&&Qe[D]=="Macintosh"&&ht&&typeof ht.standalone!==C&&ht.maxTouchPoints&&ht.maxTouchPoints>2&&(Qe[D]="iPad",Qe[z]=H),Qe},this.getEngine=function(){var Qe={};return Qe[$]=T,Qe[F]=T,Z.call(Qe,mt,Mt.engine),Qe},this.getOS=function(){var Qe={};return Qe[$]=T,Qe[F]=T,Z.call(Qe,mt,Mt.os),Dt&&!Qe[$]&&$t&&$t.platform!="Unknown"&&(Qe[$]=$t.platform.replace(/chrome os/i,xe).replace(/macos/i,ze)),Qe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return mt},this.setUA=function(Qe){return mt=typeof Qe===B&&Qe.length>350?j(Qe,350):Qe,this},this.setUA(mt),this};Le.VERSION="1.0.35",Le.BROWSER=Ee([$,F,U]),Le.CPU=Ee([ee]),Le.DEVICE=Ee([D,V,z,te,K,X,H,J,G]),Le.ENGINE=Le.OS=Ee([$,F]),typeof b!==C?(f.exports&&(b=f.exports=Le),b.UAParser=Le):m.amdO?(S=(function(){return Le}).call(b,m,b,f))===T||(f.exports=S):typeof w!==C&&(w.UAParser=Le);var Ke=typeof w!==C&&(w.jQuery||w.Zepto);if(Ke&&!Ke.ua){var nt=new Le;Ke.ua=nt.getResult(),Ke.ua.get=function(){return nt.getUA()},Ke.ua.set=function(Be){nt.setUA(Be);var vt=nt.getResult();for(var ht in vt)Ke.ua[ht]=vt[ht]}}})(typeof window=="object"?window:this)},7462:function(f,b,m){function S(){return S=Object.assign?Object.assign.bind():function(w){for(var T=1;T<arguments.length;T++){var A=arguments[T];for(var C in A)Object.prototype.hasOwnProperty.call(A,C)&&(w[C]=A[C])}return w},S.apply(this,arguments)}m.d(b,{Z:function(){return S}})},1721:function(f,b,m){function S(T,A){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,P){return C.__proto__=P,C})(T,A)}function w(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,S(T,A)}m.d(b,{Z:function(){return w}})},3366:function(f,b,m){function S(w,T){if(w==null)return{};var A,C,P={},B=Object.keys(w);for(C=0;C<B.length;C++)A=B[C],T.indexOf(A)>=0||(P[A]=w[A]);return P}m.d(b,{Z:function(){return S}})},8776:function(f,b,m){m.d(b,{Z:function(){return w}});var S="Invariant failed";function w(T,A){if(!T)throw new Error(S)}},7582:function(f,b,m){m.d(b,{Jh:function(){return B},ZT:function(){return w},_T:function(){return A},ev:function(){return U},gn:function(){return C},mG:function(){return P},pi:function(){return T}});var S=function(D,$){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,V){z.__proto__=V}||function(z,V){for(var F in V)Object.prototype.hasOwnProperty.call(V,F)&&(z[F]=V[F])})(D,$)};function w(D,$){if(typeof $!="function"&&$!==null)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function z(){this.constructor=D}S(D,$),D.prototype=$===null?Object.create($):(z.prototype=$.prototype,new z)}var T=function(){return T=Object.assign||function(D){for(var $,z=1,V=arguments.length;z<V;z++)for(var F in $=arguments[z])Object.prototype.hasOwnProperty.call($,F)&&(D[F]=$[F]);return D},T.apply(this,arguments)};function A(D,$){var z={};for(var V in D)Object.prototype.hasOwnProperty.call(D,V)&&$.indexOf(V)<0&&(z[V]=D[V]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function"){var F=0;for(V=Object.getOwnPropertySymbols(D);F<V.length;F++)$.indexOf(V[F])<0&&Object.prototype.propertyIsEnumerable.call(D,V[F])&&(z[V[F]]=D[V[F]])}return z}function C(D,$,z,V){var F,ee=arguments.length,te=ee<3?$:V===null?V=Object.getOwnPropertyDescriptor($,z):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(D,$,z,V);else for(var K=D.length-1;K>=0;K--)(F=D[K])&&(te=(ee<3?F(te):ee>3?F($,z,te):F($,z))||te);return ee>3&&te&&Object.defineProperty($,z,te),te}function P(D,$,z,V){return new(z||(z=Promise))(function(F,ee){function te(X){try{H(V.next(X))}catch(J){ee(J)}}function K(X){try{H(V.throw(X))}catch(J){ee(J)}}function H(X){var J;X.done?F(X.value):(J=X.value,J instanceof z?J:new z(function(G){G(J)})).then(te,K)}H((V=V.apply(D,$||[])).next())})}function B(D,$){var z,V,F,ee,te={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return ee={next:K(0),throw:K(1),return:K(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function K(H){return function(X){return(function(J){if(z)throw new TypeError("Generator is already executing.");for(;ee&&(ee=0,J[0]&&(te=0)),te;)try{if(z=1,V&&(F=2&J[0]?V.return:J[0]?V.throw||((F=V.return)&&F.call(V),0):V.next)&&!(F=F.call(V,J[1])).done)return F;switch(V=0,F&&(J=[2&J[0],F.value]),J[0]){case 0:case 1:F=J;break;case 4:return te.label++,{value:J[1],done:!1};case 5:te.label++,V=J[1],J=[0];continue;case 7:J=te.ops.pop(),te.trys.pop();continue;default:if(!((F=(F=te.trys).length>0&&F[F.length-1])||J[0]!==6&&J[0]!==2)){te=0;continue}if(J[0]===3&&(!F||J[1]>F[0]&&J[1]<F[3])){te.label=J[1];break}if(J[0]===6&&te.label<F[1]){te.label=F[1],F=J;break}if(F&&te.label<F[2]){te.label=F[2],te.ops.push(J);break}F[2]&&te.ops.pop(),te.trys.pop();continue}J=$.call(D,te)}catch(G){J=[6,G],V=0}finally{z=F=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}})([H,X])}}}function U(D,$,z){if(z||arguments.length===2)for(var V,F=0,ee=$.length;F<ee;F++)!V&&F in $||(V||(V=Array.prototype.slice.call($,0,F)),V[F]=$[F]);return D.concat(V||Array.prototype.slice.call($))}typeof SuppressedError=="function"&&SuppressedError}},o={};function c(f){var b=o[f];if(b!==void 0)return b.exports;var m=o[f]={exports:{}};
156return r[f].call(m.exports,m,m.exports,c),m.exports}c.amdO={},c.n=function(f){var b=f&&f.__esModule?function(){return f.default}:function(){return f};return c.d(b,{a:b}),b},c.d=function(f,b){for(var m in b)c.o(b,m)&&!c.o(f,m)&&Object.defineProperty(f,m,{enumerable:!0,get:b[m]})},c.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),c.o=function(f,b){return Object.prototype.hasOwnProperty.call(f,b)},c.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},c.nc=void 0;var d={};(function(){c.r(d),c.d(d,{ActivityEventDetail:function(){return Yi},ActivityType:function(){return uo.T},Alignment:function(){return ne.v},ButtonAlignment:function(){return Sr.R},CellType:function(){return A.E},DismissedReason:function(){return Bi.z},GridView:function(){return bi},OpenedReason:function(){return K.T},QuizApiService:function(){return Br.Z},QuizRenderer:function(){return ci.Z},RowView:function(){return un},ServerRenderer:function(){return Un},Story:function(){return Qn},StorytellerClipsGridView:function(){return qe},StorytellerClipsPlayerView:function(){return tr},StorytellerClipsRowView:function(){return _t},StorytellerStoriesGridView:function(){return bi},StorytellerStoriesRowView:function(){return un},StorytellerTrackedFunctionalFeature:function(){return Fr.d},TextCase:function(){return vr.q},Theme:function(){return jr.W},UiStyle:function(){return zr.V},UiTheme:function(){return qr.V},User:function(){return fi.Z},UserActivityData:function(){return ni},sharedInstance:function(){return f.Z}});var f=c(6916),b=c(7582),m=c(9748),S=c(4184),w=c.n(S),T=c(6595),A=c(8844),C=c(16),P=c(6346),B=c(3779),U=c(8502),D=function(){var dt=(0,m.useContext)(U.w);if(!dt)throw new Error("useClipsContext must be used within a ClipsContext Provider");return dt},$=c(373),z=c(7050),V=function(dt){var gt=dt.cellType,Ye=dt.isLoading,St=Ye!==void 0&&Ye,Et=dt.rowDirection,wt=dt.titleHeight,Rt=dt.viewTheme,qt=(0,m.useContext)(z.y),Bt=(0,C.F)(),Mr=!Rt.appearance.tiles.title.show,Er=Bt.lists.grid,Zr=(0,m.useRef)(null),Cn=(0,m.useState)({width:0,height:0,aspectRatio:0}),Wn=Cn[0],ar=Cn[1],dr=(0,m.useMemo)(function(){return gt===A.E.square?40:wt+30},[gt,wt]),pn=(0,m.useMemo)(function(){return gt===A.E.square?160:wt>0?140:120},[gt,wt]),Yt=(0,m.useCallback)(function(){var Jt=.6666666666666666;if(qt)if(Et!=="row"){var Yr=((qt==null?void 0:qt.clientWidth)-Er.tileSpacing*(Er.columns-1))/Er.columns;ar({width:Yr,height:Yr/Jt,aspectRatio:Jt})}else{var Qr=qt==null?void 0:qt.clientHeight;Qr<dr&&qt&&!qt.style.height&&!qt.style.minHeight&&!St&&(qt.style.height="".concat(pn,"px"),$.Z.logWarning("The Storyteller row container height isn't set. The cells will use the default height of ".concat(pn,"px."))),gt===A.E.round&&(Jt=Mr?(Qr-14-8)/Qr:(Qr-(wt+7+4+2))/Qr),ar({width:Jt*Qr,height:Qr,aspectRatio:Jt})}else ar({width:0,height:0,aspectRatio:0})},[gt,pn,St,Er,Mr,dr,qt,Et,wt]);return(0,m.useEffect)(function(){qt&&window.ResizeObserver&&(Zr.current&&Zr.current.unobserve(qt),Zr.current=new ResizeObserver(Yt),Zr.current.observe(qt))},[qt,Yt]),(0,m.useEffect)(function(){Yt()},[Yt]),Wn},F=c(9283),ee=c(9512),te=c(1815),K=c(4388),H=c(8671),X=c(8936),J="storyCellContainer-x7+6pO",G="storyCell-WAKj5m",Q="fullHeight-0JgPjh",pe="fallback-vEGwQg",ye="storyTitle-OMQgdD",de="storyViewed-dvLd1j",_e="titlePlaceholder--Ok6tW",Re="titlePlaceholderContainer-UE-8bf",ge=c(841),Ce=c(3727),Me=(0,m.forwardRef)(function(dt,gt){var Ye=dt.to,St=dt.native,Et=dt.children,wt=(0,b._T)(dt,["to","native","children"]);return St?m.createElement("a",(0,b.pi)({href:Ye,ref:gt},wt),Et):m.createElement(Ce.rU,(0,b.pi)({to:Ye,ref:gt},wt),Et)});Me.displayName="StoryLink";var Ue=c(4999),Ne=function(dt){var gt,Ye=dt.alignment;return m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"16",viewBox:"0 0 24 24",width:"16",className:w()("storyIcon-mbX1dN",(gt={},gt["alignLeft-XfXKqs"]=Ye==="left",gt["alignRight-w1rV-Z"]=Ye==="right",gt))},m.createElement("g",null,m.createElement("rect",{fill:"none",height:"24",width:"24"})),m.createElement("g",null,m.createElement("g",null),m.createElement("g",null,m.createElement("rect",{fill:"var(--storyteller-colors-white-primary)",height:"15",width:"10",x:"7",y:"4"}),m.createElement("rect",{fill:"var(--storyteller-colors-white-primary)",height:"11",width:"2",x:"3",y:"6"}),m.createElement("rect",{fill:"var(--storyteller-colors-white-primary)",height:"11",width:"2",x:"19",y:"6"}))))},We=(0,m.createContext)(null),et=function(dt){var gt=dt.children,Ye=dt.viewTheme;return m.createElement(We.Provider,{value:Ye},gt)},rt=function(){var dt=(0,m.useContext)(We);
156if(!dt)throw new Error("useViewTheme must be used within a ViewThemeContext Provider");return dt},re=c(6356),ne=c(942),Se=c(5792),he=c(6339),we=function(dt){var gt,Ye=(0,m.useState)(!0),St=Ye[0],Et=Ye[1],wt=dt.media,Rt=dt.mediaViewed,qt=dt.handleMediaClick,Bt=dt.fullWidth,Mr=dt.fullHeight,Er=dt.fallback,Zr=dt.shouldLoad,Cn=dt.googleWebStoryUrl,Wn=dt.isReadUnreadOrderingEnabled,ar=dt.collection,dr=dt.width,pn=rt(),Yt=(0,m.useRef)(null),Jt=(0,C.F)(),Yr=(function(an,en){switch(an.storyTiles.rectangularTile.chip.alignment){case ne.v.start:return en===re.m5.ltr?"left":"right";case ne.v.end:return en===re.m5.ltr?"right":"left";case ne.v.center:return"center";default:return en===re.m5.ltr?"right":"left"}})(Jt,(0,re.sF)()),Qr=(function(an){switch(an){case"left":case"center":return"right";case"right":return"left"}})(Yr),Hr=wt==null?void 0:wt.isLive,nr=(function(){if(!Wn)return Hr?Ue.x.liveUnread:null;var an=(0,he.z)(wt)&&wt.isPinned;return Hr&&Rt?Ue.x.liveRead:Hr?Ue.x.liveUnread:Rt||an?null:Ue.x.new})(),Tr=(0,he.z)(wt)?(wt==null?void 0:wt.titles.longDisplay)||(wt==null?void 0:wt.titles.internal):wt==null?void 0:wt.description,nn=(0,m.useMemo)(function(){if(dr!==0&&wt)return dr>480?wt.thumbnails.large:dr>320?wt.thumbnails.medium:wt.thumbnails.small},[wt,dr]),fn=(0,m.useMemo)(function(){return Er||St},[Er,St]),Ir=pn.appearance.tiles.title.show;return m.createElement(Me,{to:Cn||"/".concat(dt.basename).concat(ar?"/".concat(ar,"/"):"/").concat((wt==null?void 0:wt.id)||"").concat("?openedReason=".concat((0,Se.N)(wt)?K.T.clipListTap:K.T.storyListTap)),native:!!dt.googleWebStoryUrl,onClick:qt,className:w()(J,"rectangular-Kd4AdR",(gt={},gt["fullWidth-Q2BU6x"]=Bt,gt[Q]=Mr,gt[pe]=fn,gt)),ref:Yt},m.createElement("div",{className:G},nn&&m.createElement(P.Ee,{src:nn,loading:Zr?void 0:"lazy",className:"rectangularBackground-eXSm7Y",alt:Tr||"",onLoad:function(){return Et(!1)},onError:function(){return Et(!1)},style:{opacity:St?0:1}}),!fn&&Jt.storyTiles.rectangularTile.showGradient&&m.createElement("div",{className:"rectangularTileGradient-HZOHwI"}),!fn&&Jt.storyTiles.chip.show&&m.createElement(ge.A,{cellType:A.E.square,chipType:nr,alignment:Yr,inRow:!0}),Ir&&m.createElement("div",{className:ye},fn?m.createElement("div",{className:Re},m.createElement("div",{className:_e}),m.createElement("div",{className:_e})):m.createElement(m.Fragment,null,Tr||"")),Jt.storyTiles.rectangularTile.showWebStoriesIcon&&m.createElement(Ne,{alignment:Qr})))},xe=["left top","top left","right top","top right","right bottom","bottom right","left bottom","bottom left","top","bottom","left","right"];function ze(dt){return dt.offset!==null}function Ee(dt){switch(dt){case"top":return 180;case"bottom":default:return 0;case"left":return 90;case"right":return-90;case"left top":case"top left":return 135;case"right top":case"top right":return-135;case"right bottom":case"bottom right":return-45;case"left bottom":case"bottom left":return 45}}var se,L,j=function(dt){var gt=dt.gradientId,Ye=dt.stroke,St=dt.strokeWidth;if(!Ye)return null;var Et=[{offset:0,color:Ye},{offset:100,color:Ye}],wt=0;if(Ye.includes("gradient"))try{var Rt=(function(Bt){var Mr=0,Er=[];if(!Bt.includes("linear-gradient"))throw new Error("Non-linear gradients are not supported. The round Story cells borders might not render as expected.");var Zr=/linear-gradient\((.+)\)/g.exec(Bt);if(Zr&&Zr.length>1)for(var Cn=(function(Ir){for(var an=[],en=Ir.length,br="",It=0,xn=0;xn<en;xn++){var tn=Ir[xn];tn==="("?(It++,br+=tn):tn===")"?(It--,br+=tn):tn===","&&It===0?(an.push(br.trim()),br=""):br+=tn}return br&&an.push(br.trim()),an})(Zr[1].trim()),Wn=0;Wn<Cn.length;Wn++){var ar=Cn[Wn];if(/\d+deg/.test(ar)){var dr=parseInt(ar.replace("deg",""),10);Mr||isNaN(dr)||(Mr=dr)}else{var pn=new RegExp("to (".concat(xe.join("|"),")")).exec(ar);if(pn)Mr=Ee(pn[1]);else{var Yt=/(.+)( [\d]+%)/.exec(ar),Jt=ar.trim(),Yr=null;if(Yt){Jt=Yt[1].trim();var Qr=parseInt(Yt[2].split("%")[0].trim(),10);isNaN(Qr)||(Yr=Qr)}Er.push({offset:Yr,color:Jt})}}}for(var Hr=[],nr=Er.length,Tr=100/(nr-1),nn=0;nn<nr;nn++){var fn=Er[nn];ze(fn)?Hr.push(fn):(Yr=nn*Tr,Hr.push({color:fn.color,offset:Yr}))}return{angle:Mr,stopColors:Hr}})(Ye),qt=Rt.angle;Et=Rt.stopColors,wt=qt}catch(Bt){Bt instanceof Error&&$.Z.logError(Bt.message)}return m.createElement("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"}
156,m.createElement("circle",{cx:"50",cy:"50",r:"50",stroke:"url(#".concat(gt,")"),strokeWidth:St,vectorEffect:"non-scaling-stroke",shapeRendering:"geometricPrecision"}),m.createElement("defs",null,m.createElement("linearGradient",{id:gt,x1:"0%",y1:"0%",x2:"0%",y2:"100%",gradientTransform:"rotate(".concat(wt,", 0.5, 0.5)")},Et.map(function(Bt){var Mr=Bt.color,Er=Bt.offset;return m.createElement("stop",{key:Er,offset:"".concat(Er,"%"),stopColor:Mr})}))))};(L=se||(se={}))[L.unread=0]="unread",L[L.read=1]="read",L[L.liveUnread=2]="liveUnread",L[L.liveRead=3]="liveRead";var Z,le=function(dt){var gt,Ye,St,Et=(0,m.useState)(!0),wt=Et[0],Rt=Et[1],qt=dt.basename,Bt=dt.media,Mr=dt.mediaViewed,Er=dt.handleMediaClick,Zr=dt.fullHeight,Cn=dt.fallback,Wn=dt.shouldLoad,ar=dt.googleWebStoryUrl,dr=dt.isReadUnreadOrderingEnabled,pn=dt.collection,Yt=dt.renderedAt,Jt=Mr&&dr,Yr=(0,C.F)(),Qr=rt(),Hr=(St=Bt==null?void 0:Bt.isLive)!==null&&St!==void 0&&St,nr=!!(0,he.z)(Bt)&&Bt.isPinned,Tr=(0,m.useMemo)(function(){return Cn||wt},[Cn,wt]),nn=(0,m.useMemo)(function(){return en=Hr||nr,br=Jt||!1,Tr?se.unread:en?br?se.liveRead:se.liveUnread:br?se.read:se.unread;var en,br},[Hr,nr,Jt,Tr]),fn=(0,m.useMemo)(function(){return(function(en,br,It){var xn=null,tn=It.storyTiles[en===A.E.round?"circularTile":"rectangularTile"];switch(br){case se.read:xn=It.storyTiles.circularTile.readIndicatorColor;break;case se.unread:xn=It.storyTiles.circularTile.unreadIndicatorColor;break;case se.liveRead:xn=tn.liveChip.readBackgroundColor;break;case se.liveUnread:xn=tn.liveChip.unreadBackgroundColor;break;default:xn=It.storyTiles.circularTile.readIndicatorColor}return xn})(A.E.round,nn,Yr)},[nn,Yr]),Ir=(0,he.z)(Bt)&&((Bt==null?void 0:Bt.titles.shortDisplay)||(Bt==null?void 0:Bt.titles.internal)),an=Qr.appearance.tiles.title.show;return m.createElement(Me,{to:ar||"/".concat(dt.basename).concat(pn?"/".concat(pn,"/"):"/").concat((Bt==null?void 0:Bt.id)||"").concat("?openedReason=".concat((0,Se.N)(Bt)?K.T.clipListTap:K.T.storyListTap)),native:!!ar,onClick:Er,className:w()(J,"round-y-5ac9",(gt={},gt[pe]=Tr,gt[de]=Jt,gt[Q]=Zr,gt["noTitle-4AQnST"]=!an,gt))},m.createElement("div",{className:w()("roundCellContainer-q2ahxl")},m.createElement("div",{className:w()(G,(Ye={},Ye[de]=Jt||Tr,Ye))},(0,he.z)(Bt)&&(Bt==null?void 0:Bt.profilePictureUrl)&&m.createElement(P.Ee,{src:Bt.profilePictureUrl,loading:Wn?void 0:"lazy",className:"roundBackground-TOOOIv",alt:Ir||"",onLoad:function(){return Rt(!1)},onError:function(){return Rt(!1)},style:{opacity:wt?0:1}})),m.createElement(j,{gradientId:"".concat(qt||"storyteller","-").concat((Bt==null?void 0:Bt.id)||"").concat(Yt?"-".concat(Yt):""),stroke:fn,strokeWidth:Yr.storyTiles.circularTile[Jt||Tr?"readStrokeWidth":"unreadStrokeWidth"]})),Hr&&Yr.storyTiles.chip.show&&m.createElement(ge.A,{cellType:A.E.round,className:"live-mRtwld",chipType:Jt?Ue.x.liveRead:Ue.x.liveUnread,inRow:!0}),an&&m.createElement("div",{className:ye},Tr?m.createElement("div",{className:Re},m.createElement("div",{className:_e}),m.createElement("div",{className:_e})):m.createElement(m.Fragment,null,Ir||"")))},Te=function(dt){switch(dt.cellType){case A.E.square:return m.createElement(we,(0,b.pi)({},dt));case A.E.round:return m.createElement(le,(0,b.pi)({},dt));default:return m.createElement(m.Fragment,null)}},Ae=function(dt){var gt=dt.cellWidth,Ye=dt.media,St=dt.mediaIndex,Et=dt.visible,wt=(0,m.useState)(Et),Rt=wt[0],qt=wt[1],Bt=F.Z.get
156StoryReadState(Ye==null?void 0:Ye.id),Mr=((0,he.z)(Ye)?Bt.status:F.Z.getClipViewedState(Ye==null?void 0:Ye.id))===X.N.read;return(0,m.useEffect)(function(){Et&&qt(!0)},[Et]),m.createElement(Te,(0,b.pi)({},dt,{shouldLoad:Rt,mediaViewed:Mr,handleMediaClick:function(){var Er;Ye&&St!==void 0&&((0,Se.N)(Ye)||(F.Z.setStoryPlaybackMode(Ye.id,H.e.list),(Er=dt.storiesPlayerSyncService)===null||Er===void 0||Er.ifStoryIsSynced(Ye.id,function(){ee.Z.recordActivity(new te.Z(K.T.storyListTap,Ye,Ye.pages[Bt.initialPage],dt.currentCategories))})))},width:gt}))},Le=function(){return m.createElement("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m.createElement("path",{d:"M9.75 1L15 6M15 6L9.75 11M15 6H1",stroke:"var(--storyteller-scroll-indicator-color)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},Ke=c(8705);(function(dt){dt.cellSpacing="cell-spacing",dt.insetStart="inset-start",dt.insetEnd="inset-end",dt.numCols="num-cols"})(Z||(Z={}));var nt=c(4338),Be=c(6818),vt=c(9705),ht="storyScrollBtn-xpMB7W",mt="visible-zorq0n",$t="outside-K9wYJP",Mt="hideFade-Sn5uus",Dt="scrollArrow-7oRJQx",Qe="touch-EyCjLz",pt="centeredWithRoundThumb-cO2V7s",Ut=function(dt){var gt,Ye,St,Et,wt,Rt,qt=(0,C.F)(),Bt=(0,B.Z)(),Mr=Bt.displayLimit,Er=Bt.stories,Zr=Bt.status,Cn=D(),Wn=Cn.displayLimit,ar=Cn.clips,dr=Cn.status,pn=(Er==null?void 0:Er.slice(0,Mr))||null,Yt=(ar==null?void 0:ar.slice(0,Wn))||null,Jt=dt.mediaType===nt.D.stories?pn:Yt,Yr=dt.mediaType===nt.D.stories?Zr:dr,Qr=(function(Dr,Or){var fr=(0,C.F)();if(!Or.appearance.tiles.title.show||Dr===A.E.square)return{numLines:0,containerHeight:0};var Ar=Math.floor(39/fr.storyTiles.title.lineHeight);return Ar>3&&(Ar=3),Ar<1&&(Ar=1),{numLines:Ar,containerHeight:Ar*fr.storyTiles.title.lineHeight}})(dt.cellType,dt.viewTheme),Hr=(0,m.useMemo)(function(){return Yr===T.G.Pending||Yr===T.G.Idle},[Yr]),nr=V({cellType:dt.cellType,isLoading:Hr,rowDirection:"row",titleHeight:Qr.containerHeight,viewTheme:dt.viewTheme}),Tr=(function(Dr,Or){var fr=(0,m.useRef)(),Ar=(0,m.useRef)(),rn=(0,m.useRef)(null),Qi=(0,m.useState)({left:!1,right:!1}),wi=Qi[0],eo=Qi[1],Mn=Or+(Dr||0),Si=function(){return rn.current?Math.floor(rn.current.clientWidth/Mn):0},Ei=(0,m.useCallback)(function(){if(rn.current){var hi={left:rn.current.scrollLeft>1,right:rn.current.scrollWidth-rn.current.clientWidth-1>rn.current.scrollLeft};eo(hi)}},[]);(0,m.useEffect)(function(){if(rn.current){var hi=rn.current;return hi==null||hi.addEventListener("scroll",Ei),window.ResizeObserver&&(fr.current=new ResizeObserver(Ei),fr.current.observe(rn.current)),window.MutationObserver&&(Ar.current=new MutationObserver(Ei),Ar.current.observe(rn.current,{childList:!0,attributes:!0,subtree:!0})),window.addEventListener("resize",Ei),Ei(),function(){var ui,po;hi==null||hi.removeEventListener("scroll",Ei),(ui=fr.current)===null||ui===void 0||ui.disconnect(),(po=Ar.current)===null||po===void 0||po.disconnect(),window.removeEventListener("resize",Ei)}}},[Ei]),(0,m.useEffect)(function(){Ei()},[Ei,Mn]);var ea=function(){return rn.current?Math.floor(rn.current.scrollLeft/Mn):0},qo=function(hi){if(rn.current){var ui=ea();rn.current.scrollLeft=(ui+hi)*Mn}};return{scrollContainer:rn,getScrollIndex:ea,scrollBy:qo,scrollByPage:function(hi){rn.current&&qo(hi*Si())},overflows:wi,getPageSize:Si}}
156)(qt.lists.row.tileSpacing,nr.width),nn=Tr.scrollContainer,fn=Tr.scrollByPage,Ir=Tr.overflows,an=Tr.getScrollIndex,en=Tr.getPageSize,br=(0,Ke.b1)(),It=an()-1,xn=an()+en()+1,tn=(0,m.useMemo)(function(){for(var Dr,Or,fr=[],Ar=(Or=(Dr=Jt==null?void 0:Jt.length)!==null&&Dr!==void 0?Dr:dt.displayLimit)!==null&&Or!==void 0?Or:12,rn=0;rn<Ar;rn++)fr.push(null);return fr},[Jt,dt.displayLimit]),zi=dt.viewTheme.appearance.tiles.title.show,bo=qt.lists.row.showScrollIndicator,Xi=zi?nr.width-9:nr.width-10,Ji=dt.cellType===A.E.round&&qt.storyTiles.circularTile.scrollIndicatorBlockAlignment==="thumbnail",Gr=qt.lists.row.scrollIndicatorInlineAlignment==="outside",vn=!Gr||Ir.left||Ir.right,Lo=(0,m.useMemo)(function(){var Dr=0,Or=0;if(dt.cellType===A.E.square)return{firstCellStrokeWidth:Dr,lastCellStrokeWidth:Or};var fr=qt.storyTiles.circularTile,Ar=fr.readStrokeWidth,rn=fr.unreadStrokeWidth,Qi=rn>1?Math.ceil(rn/2):rn;if(Dr=Qi,Or=Qi,Hr)return{firstCellStrokeWidth:Dr,lastCellStrokeWidth:Or};var wi=Ar>1?Math.ceil(Ar/2):Ar,eo=Jt==null?void 0:Jt[0];if((0,Be.R)(eo)===X.N.read&&(Dr=wi),Jt==null?void 0:Jt.length){var Mn=Jt.length-1,Si=Jt==null?void 0:Jt[Mn];(0,Be.R)(Si)===X.N.read&&(Or=wi)}return{firstCellStrokeWidth:Dr,lastCellStrokeWidth:Or}},[Hr,Jt,dt.cellType,qt.storyTiles.circularTile]),wo=Lo.firstCellStrokeWidth,So=Lo.lastCellStrokeWidth,Oi=(0,vt.LF)({cellType:dt.cellType,isReadUnreadOrderingEnabled:dt.isReadUnreadOrderingEnabled,media:Jt,theme:qt}),sr=dt.cellType===A.E.round?{"row-round-cell-width":(0,Ke.B5)(nr.width),"row-round-cell-container-size":(0,Ke.B5)(Xi),"row-round-cell-title-height":(0,Ke.B5)(Qr.containerHeight),"row-round-cell-title-max-lines":Qr.numLines,"row-start-round-cell-stroke-width":(0,Ke.B5)(wo),"row-end-round-cell-stroke-width":(0,Ke.B5)(So),"row-round-cell-padding-top":(0,Ke.B5)(14),"row-round-cell-padding-bottom":(0,Ke.B5)(8)}:{"row-square-cell-width":(0,Ke.B5)(nr.width),"row-square-cell-height":(0,Ke.B5)(nr.height),"row-height":(0,Ke.B5)(Oi.top+Oi.bottom+nr.height)};return m.createElement(et,{viewTheme:dt.viewTheme},m.createElement("div",{className:"storyteller-bq7AJb",style:(0,Ke.qK)((0,b.pi)((gt={},gt[Z.insetStart]=(0,Ke.B5)(qt.lists.row.startInset),gt[Z.insetEnd]=(0,Ke.B5)(qt.lists.row.endInset),gt["row-focus-outline-offset-top"]=(0,Ke.B5)(Oi.top),gt["row-focus-outline-offset-left"]=(0,Ke.B5)(Oi.left),gt["row-focus-outline-offset-bottom"]=(0,Ke.B5)(Oi.bottom),gt["row-focus-outline-offset-right"]=(0,Ke.B5)(Oi.right),gt),sr))},bo&&vn&&m.createElement("div",{className:w()(ht,"scrollLeft-INWdYG",(Ye={},Ye[$t]=Gr,Ye[mt]=Ir.left||Gr&&Ir.right,Ye[Qe]=br,Ye[Mt]=!qt.lists.row.scrollIndicatorFade,Ye))},m.createElement("button",{className:w()(Dt,(St={},St[pt]=Ji,St[Qe]=br,St)),disabled:Gr&&!Ir.left,onClick:function(){return!br&&fn(-1)},title:"Previous ".concat(dt.mediaType===nt.D.stories?"Stories":"Clips")},qt.lists.row.scrollIndicatorIcon?m.createElement(P.Ee,{src:qt.lists.row.scrollIndicatorIcon}):m.createElement(Le,null))),m.createElement("div",{className:w()("storytellerContainer-VXwt8t",(Et={},Et["square-pnO8eX"]=dt.cellType===A.E.square,Et)),ref:nn},tn.map(function(Dr,Or){var fr=Jt==null?void 0:Jt[Or];return m.createElement(Ae,{key:"rowItem".concat(Or),basename:dt.basename,currentCategories:dt.currentCategories||[],collection:dt.collection,cellType:dt.cellType,cellWidth:nr.width,fullHeight:!0,media:fr,mediaIndex:Or,visible:!Hr&&Or>=It&&Or<=xn,fallback:Hr,googleWebStoryUrl:(0,he.z)(fr)&&dt.useGoogleWebStoryUrls?fr.googleWebStoryUrl:void 0,isReadUnreadOrderingEnabled:dt.isReadUnreadOrderingEnabled,renderedAt:dt.renderedAt,storiesPlayerSyncService:dt.storiesPlayerSyncService})})),bo&&vn&&m.createElement("div",{className:w()(ht,"scrollRight-HxVo0U",(wt={},wt[$t]=Gr,wt[mt]=Ir.right||Gr&&Ir.left,wt[Qe]=br,wt[Mt]=!qt.lists.row.scrollIndicatorFade,wt))},m.createElement("button",{className:w()(Dt,(Rt={},Rt[pt]=Ji,Rt[Qe]=br,Rt)),disabled:Gr&&!Ir.right,onClick:function(){return!br&&fn(1)},title:"Next ".concat(dt.mediaType===nt.D.stories?"Stories":"Clips")},qt.lists.row.scrollIndicatorIcon?m.createElement(P.Ee,{src:qt.lists.row.scrollIndicatorIcon}):m.createElement(Le,null)))))},jt=c(6550),hr=c(4745),_r=c(9820),mn=c(6008),kr=c(1016),gr=c(8105),On=c(3914),Ln=c(8672),gn=c(4091),wr=c(1143),zr=c(4539),zn=c(7392),Fn=c(1417),At=c(791),Fr=c(8585),yn=(function(dt){function gt(Ye,St,Et){St===void 0&&(St=[]),Et===void 0&&(Et=!1);var wt=dt.call(this)||this;wt.logTag="StorytellerStoriesView";var Rt=document.getElementById(Ye);if(!Rt)return wt.logError(At.q9,Ye),wt;try{document.querySelector("#".concat(Ye))}
156catch(qt){qt instanceof DOMException&&qt.name==="SyntaxError"&&wt.logWarning(At.ZO,Ye)}return Rt.classList.add("storyteller"),wt.rootEl_=Rt,wt.listViewService_.categories=St,wt.useGoogleWebStoryUrls_=Et,wt.initializeListView(),wt}return(0,b.ZT)(gt,dt),Object.defineProperty(gt.prototype,"listConfiguration",{get:function(){return{basename:this.basename,categories:this.listViewService_.categories,displayLimit:this.displayLimit_,preload:this.storiesShouldPreload_,theme:this.theme_,uiStyle:this.attributes_?this.attributes_.uiStyle:zr.V.auto}},set:function(Ye){this.updateListConfiguration(Ye);var St=!gr.Z.categoriesAreTheSame(Ye.categories||[],this.listViewService_.categories);Ye.preload&&(this.storiesShouldPreload_=!0,this.playerShouldBeAppendedToDOM_=!0),Ye.categories&&St?(this.listViewService_.categories=Ye.categories,this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename(),this.loadStories(),this.renderStoryteller()):this.renderStoryteller()},enumerable:!1,configurable:!0}),Object.defineProperty(gt.prototype,"shouldShowInstructions",{get:function(){return this.listTheme_.instructions.show}
156,enumerable:!1,configurable:!0}),gt.prototype.openStory=function(Ye){var St,Et;if(!((St=this.stories)===null||St===void 0)&&St.length){var wt=this.stories.find(function(Rt){return Rt.id===Ye});location.hash="".concat(this.basename,"/").concat((Et=wt==null?void 0:wt.id)!==null&&Et!==void 0?Et:Ye),F.Z.setStoryPlaybackMode((wt==null?void 0:wt.id)||Ye,H.e.singleStory)}},gt.prototype.openPage=function(Ye,St){var Et,wt=(Et=this.stories)===null||Et===void 0?void 0:Et.find(function(Rt){return Rt.pages.some(function(qt){return qt.id===Ye})});wt?(location.hash="".concat(this.basename,"/").concat(wt.id,"/").concat(Ye),F.Z.setStoryPlaybackMode(wt.id,H.e.singleStory)):St==null||St("The page with id ".concat(Ye," could not be found"))},gt.prototype.reloadData=function(){return(0,b.mG)(this,void 0,void 0,function(){return(0,b.Jh)(this,function(Ye){switch(Ye.label){case 0:return[4,this.loadStories()];case 1:return Ye.sent(),[2]}})})},gt.prototype.onStoriesLoadSuccess=function(Ye){var St,Et;this.storiesPlayerSyncService_.resetPlayerStories(),this.stories=Ye.stories,this.listViewService_.loadingState=T.G.Success,this.isReadUnreadOrderingEnabled_=Ye.enableReadUnreadOrdering,this.viewTheme_=Ye.theme,(Et=(St=this.delegate).onDataLoadComplete)===null||Et===void 0||Et.call(St,!0,null,this.stories.length),this.renderStoryteller()},gt.prototype.onStoriesLoadFailure=function(Ye){var St,Et,wt,Rt;dt.prototype.onStoriesLoadFailure.call(this,Ye),this.storiesPlayerSyncService_.resetPlayerStories(),this.stories=[],this.listViewService_.loadingState=T.G.Error,Ye instanceof Error?(Et=(St=this.delegate).onDataLoadComplete)===null||Et===void 0||Et.call(St,!1,Ye,0):(Rt=(wt=this.delegate).onDataLoadComplete)===null||Rt===void 0||Rt.call(wt,!1,kr.G.unknown,0)},gt.prototype.loadStories=function(){var Ye,St;return(0,b.mG)(this,void 0,void 0,function(){var Et,wt;return(0,b.Jh)(this,function(Rt){switch(Rt.label){case 0:dt.prototype.loadStories.call(this),this.renderStoryteller(),(St=(Ye=this.delegate).onDataLoadStarted)===null||St===void 0||St.call(Ye),Rt.label=1;case 1:return Rt.trys.push([1,3,,4]),[4,mn.Z.loadStories(this.listViewService_.categories)];case 2:return Et=Rt.sent(),this.onStoriesLoadSuccess(Et),[3,4];case 3:return wt=Rt.sent(),this.onStoriesLoadFailure(wt),[3,4];case 4:return[2]}})})},Object.defineProperty(gt.prototype,"memoryRouterProps_",{get:function(){var Ye,St=this;if(this.listViewService_.urlsDisabled){var Et=((Ye=this.stories)===null||Ye===void 0?void 0:Ye.map(function(wt){var Rt=wt.id;return"/".concat(St.basename,"/").concat(Rt)}))||[];return{initialEntries:(0,b.ev)(["/"],Et,!0),initialIndex:0}}return null},enumerable:!1,configurable:!0}),gt.prototype.onStoriesMismatch_=function(){this.renderStoryteller()},Object.defineProperty(gt.prototype,"playerShouldBeAppendedToDOM",{set:function(Ye){Ye&&(this.playerShouldBeAppendedToDOM_=!0)},enumerable:!1,configurable:!0}),gt.prototype.initialize=function(){this.attributes_=this.parseAttributes(this.parseBaseAttributes()),this.loadStories(),this.renderStoryteller()},gt.prototype.updatePlayerVisibility=function(Ye){var St=this;if(dt.prototype.updatePlayerVisibility.call(this,Ye),this.isPlayerVisible_!==Ye){this.isPlayerVisible_=Ye;var Et=this.viewTheme_.behavior.reloading.reloadOnExit;if(!Ye&&this.stories&&this.isReadUnreadOrderingEnabled_&&Et&&On.Z.isFunctionalFeatureEnabled(Fr.d.pageReadStatus)){var wt=(0,b.ev)([],this.stories,!0);(0,zn.z)({stories:wt,enableReadUnreadOrdering:!0}),wt.some(function(Rt,qt){var Bt;return Rt.id!==((Bt=St.stories)===null||Bt===void 0?void 0:Bt[qt].id)})&&(this.stories=wt,setTimeout(function(){St.renderStoryteller()},Fn.r)),wt=[]}}},gt.prototype.registerListView=function(){gr.Z.registerStoriesView(this.listViewService_)},Object.defineProperty(gt.prototype,"categories",{get:function(){return this.listViewService_.categories},set:function(Ye){this.listViewService_.categories=Ye},enumerable:!1,configurable:!0}),gt.prototype.renderStorytellerList=function(){var Ye=this;this.listRenderedAt_=Date.now(),m.render(m.createElement(hr.Z,{displayLimit:this.listConfiguration.displayLimit,stories:this.getStoriesWithRowIndex(),storiesStatus:this.listViewService_.loadingState,basename:this.basename,listDelegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_,theme:this.listTheme_},m.createElement(jt.AW,{render:this.renderList.bind(this)}),this.memoryRouterProps_&&m.createElement(jt.AW,{path:["/:basename?/:storyId?/:pageId?"],render:function(St){var Et=St.match,wt=!!Et.params.storyId&&Ye.basename===(Et==null?void 0:Et.params.basename);return wt||Ye.playerShouldBeAppendedToDOM_?m.createElement(_r.Z,null,m.createElement(gn.Z,{storyId:Et.params.storyId,pageId:Et.params.pageId,basename:Ye.basename,isVisible:wt,playAllStories:Ye.playAllStories_,setIsPlayerVisible:function(Rt){return Ye.updatePlayerVisibility(Rt)},shouldShowInstructions:Ye.shouldShowInstructions,currentCategories:Ye.listViewService_.categories,storiesPlayerSyncService:Ye.storiesPlayerSyncService_},m.createElement(Ln.Z,{cellType:Ye.cellType_,initialStoryId:Et.params.storyId,basename:Ye.basename,categories:Ye.listViewService_.categories,playAllStories:Ye.playAllStories_,uiTheme:Ye.listConfiguration.theme,uiStyle:Ye.listConfiguration.uiStyle,useGoogleWebStoryUrls:Ye.useGoogleWebStoryUrls_,viewId:Ye.id}))):null}})),this.rootEl_)},gt.prototype.renderStoryteller=function(){this.renderStorytellerList(),this.renderPlayer()},gt})(wr.Z),Rn=(function(dt){function gt(){var Ye=dt!==null&&dt.apply(this,arguments)||this;return Ye.logTag="StorytellerStoriesRowView",Ye}return(0,b.ZT)(gt,dt),Object.defineProperty(gt.prototype,"cellType",{set:function(Ye){this.attributes_.cellType=Ye,this.renderStorytellerList()}
156,enumerable:!1,configurable:!0}),Object.defineProperty(gt.prototype,"configuration",{get:function(){return(0,b.pi)((0,b.pi)({},this.listConfiguration),{cellType:this.attributes_.cellType})},set:function(Ye){Ye.cellType&&(this.attributes_.cellType=Ye.cellType,this.cellType_=Ye.cellType),this.listConfiguration=Ye},enumerable:!1,configurable:!0}),gt.prototype.parseAttributes=function(Ye){var St=this.rootEl_.dataset.cellType,Et=A.E.square;return St&&(Et=A.E[St]),(0,b.pi)((0,b.pi)({},Ye),{cellType:Et})},gt.prototype.renderList=function(){return m.createElement(Ut,(0,b.pi)({},this.attributes_,{basename:this.basename,currentCategories:this.listViewService_.categories,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:this.useGoogleWebStoryUrls_,mediaType:nt.D.stories,renderedAt:this.listRenderedAt_,storiesPlayerSyncService:this.storiesPlayerSyncService_,viewTheme:this.viewTheme_}))},gt})(yn),un=Rn,_n=c(8080),En=function(dt){var gt,Ye,St=(0,C.F)(),Et=(0,B.Z)(),wt=Et.displayLimit,Rt=Et.stories,qt=Et.status,Bt=D(),Mr=Bt.displayLimit,Er=Bt.clips,Zr=Bt.status,Cn=(Rt==null?void 0:Rt.slice(0,wt))||null,Wn=(Er==null?void 0:Er.slice(0,Mr))||null,ar=St.lists.grid.columns,dr=(0,m.useState)([-1,-1]),pn=dr[0],Yt=dr[1],Jt=dt.mediaType===nt.D.stories?Cn:Wn,Yr=dt.mediaType===nt.D.stories?qt:Zr,Qr=(0,m.useMemo)(function(){return Yr===T.G.Pending||Yr===T.G.Idle},[Yr]),Hr=(0,m.useRef)(null),nr=(0,m.useMemo)(function(){for(var en,br,It=[],xn=(br=(en=Jt==null?void 0:Jt.length)!==null&&en!==void 0?en:dt.displayLimit)!==null&&br!==void 0?br:ar,tn=0;tn<xn;tn++)It.push(null);return It},[Jt,dt.displayLimit,ar]),Tr=Math.ceil(((Ye=Jt==null?void 0:Jt.length)!==null&&Ye!==void 0?Ye:0)/ar),nn=(0,m.useCallback)(function(){var en,br=(en=Hr.current)===null||en===void 0?void 0:en.getBoundingClientRect();if(br){var It=Math.max(document.documentElement.clientHeight,window.innerHeight),xn=br.height/Tr;if((br==null?void 0:br.bottom)>=xn&&(br==null?void 0:br.top)-It<xn){var tn=Tr-Math.ceil((br==null?void 0:br.bottom)/xn)-1,zi=1-Math.ceil(((br==null?void 0:br.top)-It)/xn);Yt([tn,zi])}else Yt([-1,-1])}else Yt([-1,-1])},[Tr]);(0,_n.Z)("scroll",nn),(0,_n.Z)("resize",nn),(0,m.useEffect)(nn,[nn]);var fn=(0,m.useCallback)(function(en){return Math.floor(en/ar)},[ar]),Ir=(0,vt.LF)({cellType:A.E.square,isReadUnreadOrderingEnabled:dt.isReadUnreadOrderingEnabled,media:Jt,theme:St}),an=V({cellType:A.E.square,isLoading:Qr,rowDirection:"column",titleHeight:0,viewTheme:dt.viewTheme});return m.createElement(et,{viewTheme:dt.viewTheme},m.createElement("div",{className:"storyteller-BIOKwp",style:(0,Ke.qK)((gt={},gt[Z.cellSpacing]=(0,Ke.B5)(St.lists.grid.tileSpacing),gt[Z.insetStart]=(0,Ke.B5)(St.lists.grid.startInset),gt[Z.insetEnd]=(0,Ke.B5)(St.lists.grid.endInset),gt[Z.numCols]=ar,gt["row-focus-outline-offset-top"]=(0,Ke.B5)(Ir.top),gt["row-focus-outline-offset-left"]=(0,Ke.B5)(Ir.left),gt["row-focus-outline-offset-bottom"]=(0,Ke.B5)(Ir.bottom),gt["row-focus-outline-offset-right"]=(0,Ke.B5)(Ir.right),gt["row-square-cell-width"]=(0,Ke.B5)(an.width),gt["row-square-cell-height"]=(0,Ke.B5)(an.height),gt))},m.createElement("div",{className:"gridContainer-P1tOQZ",ref:Hr},nr.map(function(en,br){var It=Jt==null?void 0:Jt[br];return m.createElement(Ae,{key:"gridItem".concat(br),basename:dt.basename,currentCategories:dt.currentCategories||[],collection:dt.collection,cellType:A.E.square,cellWidth:an.width,fullWidth:!0,media:It,mediaIndex:br,visible:!Qr&&fn(br)>=pn[0]&&fn(br)<=pn[1],fallback:Qr,googleWebStoryUrl:(0,he.z)(It)&&dt.useGoogleWebStoryUrls?It.googleWebStoryUrl:void 0,isReadUnreadOrderingEnabled:dt.isReadUnreadOrderingEnabled,storiesPlayerSyncService:dt.storiesPlayerSyncService})}))))},Ur=(function(dt){function gt(){var Ye=dt!==null&&dt.apply(this,arguments)||this;return Ye.logTag="StorytellerStoriesGridView",Ye}return(0,b.ZT)(gt,dt),Object.defineProperty(gt.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(Ye){this.listConfiguration=Ye},enumerable:!1,configurable:!0}),gt.prototype.renderList=function(){return m.createElement(En,{basename:this.basename,currentCategories:this.listViewService_.categories,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:this.useGoogleWebStoryUrls_,mediaType:nt.D.stories,storiesPlayerSyncService:this.storiesPlayerSyncService_,viewTheme:this.viewTheme_})},gt})(yn),bi=Ur,ri=c(7112),dn=c(6265),$i=c(9420),Vi=c(8949),Wr=c(1900),vo=c(4096),He=c(1092),$e=(function(dt){function gt(Ye,St,Et,wt){Et===void 0&&(Et=!1);var Rt=(wt===void 0?{}:wt).deferInitialization,qt=Rt!==void 0&&Rt,Bt=dt.call(this)||this;Bt.logTag="StorytellerClipsView";var Mr=document.getElementById(Ye);if(!Mr)return Bt.logError(At.q9,Ye),Bt;
156try{document.querySelector("#".concat(Ye))}catch(Er){Er instanceof DOMException&&Er.name==="SyntaxError"&&Bt.logWarning(At.ZO,Ye)}return Mr.classList.add("storyteller"),Bt.rootEl_=Mr,Bt.listViewService_.collection=St,Bt.useGoogleWebStoryUrls_=Et,Bt.clipsNavService=new $i.ZP(St),qt||Bt.initializeClipsView_(),Bt}return(0,b.ZT)(gt,dt),gt.prototype.initializeClipsView_=function(){this.initializeListView(),gr.Z.checkForUnreachableClipPlayers(),this.listenToUnreachablePlayerEvents_()},gt.prototype.listenToUnreachablePlayerEvents_=function(){var Ye=this,St=new AbortController;ri.Z.on("clipPlayerUnreachable",function(Et){Et===Ye.id&&(Ye.listViewService_.isUnreachable=!0,Ye.playerContainerEl_&&(gr.Z.playerIsUsedByOtherViews(Ye.mediaType,Ye.id,Ye.playerContainerEl_.id)||(m.unmountComponentAtNode(Ye.playerContainerEl_),document.body.removeChild(Ye.playerContainerEl_)),Ye.playerContainerEl_=void 0),St.abort())},{signal:St.signal})},Object.defineProperty(gt.prototype,"listConfiguration",{get:function(){return{collection:this.listViewService_.collection,displayLimit:this.displayLimit_,theme:this.theme_,uiStyle:this.attributes_?this.attributes_.uiStyle:zr.V.auto}},set:function(Ye){this.updateListConfiguration(Ye),Ye.collection&&this.listViewService_.collection!==Ye.collection?(this.listViewService_.collection=Ye.collection,this.clipsNavService.updateCollection(Ye.collection),this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename(),this.loadClips(),this.renderStoryteller()):this.renderStoryteller()},enumerable:!1,configurable:!0}),Object.defineProperty(gt.prototype,"memoryRouterProps_",{get:function(){var Ye,St=this;if(this.listViewService_.urlsDisabled){var Et=((Ye=this.listViewService_.clips)===null||Ye===void 0?void 0:Ye.map(function(wt){var Rt=wt.id;return"/".concat(St.basename,"/").concat(St.listViewService_.collection,"/").concat(Rt)}))||[];return{initialEntries:(0,b.ev)(["/"],Et,!0),initialIndex:0}}return null},enumerable:!1,configurable:!0}),gt.prototype.reloadData=function(){return(0,b.mG)(this,void 0,void 0,function(){return(0,b.Jh)(this,function(Ye){switch(Ye.label){case 0:return[4,this.loadClips()];case 1:return Ye.sent(),[2]}})})},gt.prototype.onClipsLoadSuccess=function(Ye){var St,Et;dt.prototype.onClipsLoadSuccess.call(this,Ye),(Et=(St=this.delegate).onDataLoadComplete)===null||Et===void 0||Et.call(St,!0,null,Ye.clips.length),this.renderStoryteller()},gt.prototype.onClipsLoadFailure=function(Ye){var St,Et,wt,Rt;dt.prototype.onClipsLoadFailure.call(this,Ye),Ye instanceof Error?(Et=(St=this.delegate).onDataLoadComplete)===null||Et===void 0||Et.call(St,!1,Ye,0):(Rt=(wt=this.delegate).onDataLoadComplete)===null||Rt===void 0||Rt.call(wt,!1,kr.G.unknown,0)},gt.prototype.loadClips=function(){var Ye,St;return(0,b.mG)(this,void 0,void 0,function(){var Et,wt;return(0,b.Jh)(this,function(Rt){switch(Rt.label){case 0:if(!this.listViewService_.collection)return[2];dt.prototype.loadClips.call(this),this.renderStoryteller(),(St=(Ye=this.delegate).onDataLoadStarted)===null||St===void 0||St.call(Ye),Rt.label=1;case 1:return Rt.trys.push([1,3,,4]),[4,Vi.Z.loadClips(this.listViewService_.collection)];case 2:return Et=Rt.sent(),this.onClipsLoadSuccess(Et),[3,4];case 3:return wt=Rt.sent(),this.onClipsLoadFailure(wt),[3,4];case 4:return[2]}})})},gt.prototype.initialize=function(){this.attributes_=this.parseAttributes(this.parseBaseAttributes()),this.loadClips(),this.renderStoryteller()},gt.prototype.onPlayerClose_=function(){var Ye=this.viewTheme_.behavior.reloading.reloadOnExit;if(this.listViewService_.clips&&Ye&&this.isReadUnreadOrderingEnabled_&&On.Z.isFunctionalFeatureEnabled(Fr.d.clipViewedStatus)){var St=(0,b.ev)([],this.listViewService_.clips,!0);(0,Wr.R)({clips:this.listViewService_.clips,enableViewedOrdering:!0}),this.listViewService_.clips.some(function(Et,wt){return Et.id!==St[wt].id})&&this.renderStoryteller(),St=[]}},gt.prototype.registerListView=function(){gr.Z.registerClipsView(this.listViewService_)},gt.prototype.renderStorytellerList=function(){var Ye=this;this.listRenderedAt_=Date.now(),m.render(m.createElement(He.Z,{displayLimit:this.listConfiguration.displayLimit,clips:this.listViewService_.clips,clipsStatus:this.listViewService_.loadingState,basename:this.basename,delegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_,theme:this.listTheme_},m.createElement(jt.AW,{render:this.renderList.bind(this)}),this.memoryRouterProps_&&m.createElement(jt.AW,{path:["/:basename?/players/:playerId?/clips/:playId?","/:basename?/:collection/:clipId"],render:function(St){var Et=St.match,wt=Ye.getClipPropsFromRouteParam
156s(Et),Rt=wt.collection,qt=wt.basename,Bt=wt.clipId;return Rt&&Rt===Ye.listConfiguration.collection&&qt===Ye.basename&&!Ye.listViewService_.isUnreachable?m.createElement(vo.Z,{clips:Ye.listViewService_.clips||[],clipsNavService:Ye.clipsNavService,feedHeader:{title:Ye.feedTitle,imageUrl:Ye.feedTitleImageUrl},collection:Ye.listViewService_.collection,basename:Ye.basename,isCategoryNavigation:!1,initialCategoryId:null,initialClipId:Bt,isInline:!1,supportsNavigation:Ye.supportsNavigation}):null}})),this.rootEl_)},gt.prototype.renderStoryteller=function(){this.renderStorytellerList(),this.renderPlayer()},gt})(dn.Z),je=(function(dt){function gt(){var Ye=dt!==null&&dt.apply(this,arguments)||this;return Ye.logTag="StorytellerClipsGridView",Ye}return(0,b.ZT)(gt,dt),Object.defineProperty(gt.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(Ye){this.listConfiguration=Ye},enumerable:!1,configurable:!0}),gt.prototype.renderList=function(){return m.createElement(En,{basename:this.basename,collection:this.listViewService_.collection,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:!1,mediaType:nt.D.clips,viewTheme:this.viewTheme_})},gt})($e),qe=je,Ge=(function(dt){function gt(){var Ye=dt!==null&&dt.apply(this,arguments)||this;return Ye.logTag="StorytellerClipsRowView",Ye}return(0,b.ZT)(gt,dt),Object.defineProperty(gt.prototype,"cellType",{set:function(Ye){this.attributes_.cellType=Ye,this.renderStorytellerList()},enumerable:!1,configurable:!0}),gt.prototype.parseAttributes=function(Ye){var St=this.rootEl_.dataset.cellType,Et=A.E.square;return St&&(Et=A.E[St]),(0,b.pi)((0,b.pi)({},Ye),{cellType:Et})},Object.defineProperty(gt.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(Ye){this.listConfiguration=Ye},enumerable:!1,configurable:!0}),gt.prototype.renderList=function(){return m.createElement(Ut,(0,b.pi)({},this.attributes_,{basename:this.basename,collection:this.listViewService_.collection,displayLimit:this.listConfiguration.displayLimit,isReadUnreadOrderingEnabled:this.isReadUnreadOrderingEnabled_,useGoogleWebStoryUrls:!1,mediaType:nt.D.clips,renderedAt:this.listRenderedAt_,viewTheme:this.viewTheme_}))},gt})($e),_t=Ge,yt=c(3983),Pt=function(dt){return!!(dt!=null&&dt.trim())},Ot=function(dt){return Pt(dt.clipId)||Pt(dt.externalId)},Wt=function(dt){var gt,Ye,St;if(typeof dt=="string")return{collection:dt};var Et=(gt=dt.collection)===null||gt===void 0?void 0:gt.trim(),wt=(Ye=dt.clipId)===null||Ye===void 0?void 0:Ye.trim(),Rt=(St=dt.externalId)===null||St===void 0?void 0:St.trim(),qt=[Et,wt,Rt].filter(Pt).length;if(qt>1)throw new Error("StorytellerClipsPlayerView only supports one source at a time. Provide exactly one of `collection`, `clipId`, or `externalId`.");if(qt===0)throw new Error("StorytellerClipsPlayerView requires one of `collection`, `clipId`, or `externalId`.");return Et?{collection:Et}:wt?{clipId:wt}:{externalId:Rt}},tr=(function(dt){function gt(Ye,St,Et){Et===void 0&&(Et=!1);var wt=this,Rt=Wt(St);return(wt=dt.call(this,Ye,Rt.collection||"",Et,{deferInitialization:!0})||this).logTag="StorytellerClipsPlayerView",wt.topLevelBackButtonEnabled_=!1,wt.usesSingleClipSource_=!1,wt.source_=Rt,wt.usesSingleClipSource_=Ot(Rt),wt.delegate_=wt.createDefaultDelegate(),wt.rootEl_&&wt.initializeClipsView_(),wt}return(0,b.ZT)(gt,dt),Object.defineProperty(gt.prototype,"configuration",{get:function(){return this.listConfiguration},set:function(Ye){this.listConfiguration=Ye},enumerable:!1,configurable:!0}),Object.defineProperty(gt.prototype,"topLevelBackButtonEnabled",{get:function(){return this.topLevelBackButtonEnabled_},set:function(Ye){this.topLevelBackButtonEnabled_!==Ye&&(this.topLevelBackButtonEnabled_=Ye,this.renderStoryteller())},enumerable:!1,configurable:!0}),gt.prototype.createDefaultDelegate=function(){return new yt.d},Object.defineProperty(gt.prototype,"listConfiguration",{get:function(){return{collection:this.source_.collection,clipId:this.source_.clipId,externalId:this.source_.externalId,displayLimit:this.displayLimit_,theme:this.theme_,uiStyle:this.attributes_?this.attributes_.uiStyle:zr.V.auto}},set:function(Ye){this.updateListConfiguration(Ye);var St,Et,wt,Rt,qt=!1;try{var Bt=(this.source_,wt="clipId"in(St=Ye),Rt="externalId"in St,(Et="collection"in St)||wt||Rt?Wt({collection:Et?St.collection:void 0,clipId:wt?St.clipId:void 0,externalId:Rt?St.externalId:void 0}):null);Bt&&(qt=Bt.collection!==this.source_.collection||Bt.clipId!==this.source_.clipId||Bt.externalId!==this.source_.externalId)&&(this.source_=Bt,this.usesSingleClipSource_=Ot(Bt),this.listViewService_.collection=Bt.collection||"",this.clipsNavService.updateCollection(Bt.collection||""),this.resetSingleClipState_(),this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename())}catch(Mr){if(Mr instanceof Error)return void this.logError(Mr.message);throw Mr}qt?this.loadClips():this.renderStoryteller()}
156,enumerable:!1,configurable:!0}),gt.prototype.loadClips=function(){return(0,b.mG)(this,void 0,void 0,function(){return(0,b.Jh)(this,function(Ye){switch(Ye.label){case 0:return this.usesSingleClipSource_?[4,this.loadSingleClip_()]:[3,2];case 1:case 3:return Ye.sent(),[2];case 2:return[4,dt.prototype.loadClips.call(this)]}})})},gt.prototype.renderList=function(){var Ye=this.listViewService_.collection||"";return m.createElement(vo.Z,{clips:this.listViewService_.clips||[],clipsNavService:this.clipsNavService,feedHeader:{title:this.feedTitle,imageUrl:this.feedTitleImageUrl},collection:Ye,basename:this.basename,initialCategoryId:null,isInline:!0,isCategoryNavigation:!1,topLevelBackButtonEnabled:this.topLevelBackButtonEnabled_,supportsNavigation:!this.usesSingleClipSource_&&this.supportsNavigation})},gt.prototype.renderPlayer=function(){},gt.prototype.resetSingleClipState_=function(){this.listViewService_.clips=[],this.feedTitle=void 0,this.feedTitleImageUrl=void 0,this.supportsNavigation=!1,this.isReadUnreadOrderingEnabled_=!1,this.viewTheme_=At.Hs},gt.prototype.onSingleClipLoadSuccess=function(){var Ye,St;this.listViewService_.isBasenameBasedOnContent&&this.assignViewBasename(),(St=(Ye=this.delegate).onDataLoadComplete)===null||St===void 0||St.call(Ye,!0,null,1),this.renderStoryteller()},gt.prototype.onSingleClipLoadFailure=function(Ye){var St,Et,wt,Rt;if(this.listViewService_.clips=[],this.listViewService_.loadingState=T.G.Error,this.renderStoryteller(),Ye instanceof Error)return(Et=(St=this.delegate).onDataLoadComplete)===null||Et===void 0||Et.call(St,!1,Ye,0),void this.logError(Ye.message);(Rt=(wt=this.delegate).onDataLoadComplete)===null||Rt===void 0||Rt.call(wt,!1,kr.G.unknown,0)},gt.prototype.loadSingleClip_=function(){var Ye,St,Et,wt;return(0,b.mG)(this,void 0,void 0,function(){var Rt,qt,Bt,Mr;return(0,b.Jh)(this,function(Er){switch(Er.label){case 0:if(Rt=(Ye=this.source_.clipId)===null||Ye===void 0?void 0:Ye.trim(),qt=(St=this.source_.externalId)===null||St===void 0?void 0:St.trim(),!Rt&&!qt)return[2];this.resetSingleClipState_(),this.listViewService_.loadingState=T.G.Pending,this.renderStoryteller(),(wt=(Et=this.delegate).onDataLoadStarted)===null||wt===void 0||wt.call(Et),Er.label=1;case 1:return Er.trys.push([1,7,,8]),Bt=void 0,Rt?[4,Vi.Z.loadClip(Rt,{retrieve:!0})]:[3,3];case 2:if(!(Bt=Er.sent()))throw new Error("Clip ".concat(Rt," was not found."));return[3,6];case 3:return qt?[4,Vi.Z.loadClipByExternalId(qt,{retrieve:!0})]:[3,5];case 4:if(!(Bt=Er.sent()))throw new Error("Clip with external ID ".concat(qt," was not found."));return[3,6];case 5:return[2];case 6:return this.listViewService_.collection=Bt.collectionId,this.clipsNavService.updateCollection(Bt.collectionId),this.listViewService_.clips=[Bt],this.listViewService_.loadingState=T.G.Success,this.onSingleClipLoadSuccess(),[3,8];case 7:return Mr=Er.sent(),this.onSingleClipLoadFailure(Mr),[3,8];case 8:return[2]}})})},gt.prototype.renderStorytellerList=function(){this.listRenderedAt_=Date.now(),m.render(m.createElement(He.Z,{displayLimit:this.listConfiguration.displayLimit,clips:this.listViewService_.clips,clipsStatus:this.listViewService_.loadingState,basename:this.basename,delegate:this.delegate_,memoryRouterProps:this.memoryRouterProps_,onError:this.onError.bind(this),rootEl:this.rootEl_,theme:this.listTheme_},m.createElement(jt.AW,{render:this.renderList.bind(this)})),this.rootEl_)},gt})($e),Sr=c(9628),vr=c(3089),jr=c(5754),qr=c(7814),Qn=function(){},Yi=((function(dt){(0,b.ZT)(function(){return dt!==null&&dt.apply(this,arguments)||this},dt)})(Qn),function(dt,gt){this.type=dt,this.data=gt}),ni=function(){},uo=c(3766),Bi=c(4990),Br=c(5620),ci=c(109),fi=c(5690),Un=(function(dt){function gt(){var Ye=dt.call(this)||this;return Ye.logTag="StorytellerServerRenderer",Ye}return(0,b.ZT)(gt,dt),gt.prototype.getStories=function(Ye){return Ye===void 0&&(Ye=[]),(0,b.mG)(this,void 0,void 0,function(){return(0,b.Jh)(this,function(St){switch(St.label){case 0:return[4,mn.Z.loadStories(Ye)];case 1:return[2,St.sent().stories.filter(function(Et){return!!Et.googleWebStoryUrl}
156).map(function(Et){return{href:Et.googleWebStoryUrl,id:Et.id,title:Et.titles.longDisplay||Et.titles.internal,thumbnailUrl:Et.thumbnailUrl}})]}})})},gt.prototype.render=function(Ye){return m.createElement("amp-story-player",{style:{display:"none"}},Ye.map(function(St){return m.createElement("a",{href:St.href,key:St.id},m.createElement(P.Ee,{src:St.thumbnailUrl,loading:"lazy",width:"320",height:"480","data-amp-story-player-poster-img":!0}),m.createElement("span",null,St.title))}))},gt.sharedInstance=new gt,gt})(c(956).b).sharedInstance})(),(e.Storyteller=e.Storyteller||{}).ActivityEventDetail=d.ActivityEventDetail,(e.Storyteller=e.Storyteller||{}).ActivityType=d.ActivityType,(e.Storyteller=e.Storyteller||{}).Alignment=d.Alignment,(e.Storyteller=e.Storyteller||{}).ButtonAlignment=d.ButtonAlignment,(e.Storyteller=e.Storyteller||{}).CellType=d.CellType,(e.Storyteller=e.Storyteller||{}).DismissedReason=d.DismissedReason,(e.Storyteller=e.Storyteller||{}).GridView=d.GridView,(e.Storyteller=e.Storyteller||{}).OpenedReason=d.OpenedReason,(e.Storyteller=e.Storyteller||{}).QuizApiService=d.QuizApiService,(e.Storyteller=e.Storyteller||{}).QuizRenderer=d.QuizRenderer,(e.Storyteller=e.Storyteller||{}).RowView=d.RowView,(e.Storyteller=e.Storyteller||{}).ServerRenderer=d.ServerRenderer,(e.Storyteller=e.Storyteller||{}).Story=d.Story,(e.Storyteller=e.Storyteller||{}).StorytellerClipsGridView=d.StorytellerClipsGridView,(e.Storyteller=e.Storyteller||{}).StorytellerClipsPlayerView=d.StorytellerClipsPlayerView,(e.Storyteller=e.Storyteller||{}).StorytellerClipsRowView=d.StorytellerClipsRowView,(e.Storyteller=e.Storyteller||{}).StorytellerStoriesGridView=d.StorytellerStoriesGridView,(e.Storyteller=e.Storyteller||{}).StorytellerStoriesRowView=d.StorytellerStoriesRowView,(e.Storyteller=e.Storyteller||{}).StorytellerTrackedFunctionalFeature=d.StorytellerTrackedFunctionalFeature,(e.Storyteller=e.Storyteller||{}).TextCase=d.TextCase,(e.Storyteller=e.Storyteller||{}).Theme=d.Theme,(e.Storyteller=e.Storyteller||{}).UiStyle=d.UiStyle,(e.Storyteller=e.Storyteller||{}).UiTheme=d.UiTheme,(e.Storyteller=e.Storyteller||{}).User=d.User,(e.Storyteller=e.Storyteller||{}).UserActivityData=d.UserActivityData,(e.Storyteller=e.Storyteller||{}).sharedInstance=d.sharedInstance,Object.defineProperty(e.Storyteller=e.Storyteller||{},"__esModule",{value:!0})})()),storyteller_min;var e,t}function requireStorytellerSdkJavascript(){return hasRequiredStorytellerSdkJavascript?storytellerSdkJavascript:(hasRequiredStorytellerSdkJavascript=1,storytellerSdkJavascript=requireStoryteller_min().Storyteller)}var storytellerSdkJavascriptExports=requireStorytellerSdkJavascript();const index$3=getDefaultExportFromCjs(storytellerSdkJavascriptExports),Storyteller=_mergeNamespaces({__proto__:null,default:index$3},[storytellerSdkJavascriptExports]),initStoryteller=e=>{try{return storytellerSdkJavascriptExports.sharedInstance.initialize(e.apiKey),{instance:Storyteller}}catch(t){return console.error("Error initializing Storyteller:",t),null}},index_client_9gBWJSUpUj57Kb3MABx9opDlM4NTmLtceANorGzEnxY=defineNuxtPlugin(async()=>{var b,m,S,w,T,A;let e,t;const r=useRuntimeConfig().public,o=r.isDev,c=(S=(m=(b=r.core)==null?void 0:b.web)==null?void 0:m.thirdPartyIntegrations)==null?void 0:S.braze,d=c!=null&&c.enabled?([e,t]=executeAsync(()=>initBraze(c,o)),e=await e,t(),e):null,f=(A=(T=(w=r.core)==null?void 0:w.web)==null?void 0:T.thirdPartyIntegrations)==null?void 0:A.storyteller;return setBrazeInstance(d),{provide:{integrations:{braze:d,storyteller:f!=null&&f.enabled?initStoryteller(f):null}}}}),useUserStore=defineStore({id:"userStore",state:()=>({user:{},userAttributes:{},userSegments:[],userSegmentsLoading:!1,preventNavigation:!1}),actions:{async setUser(e){var o,c,d;this.user=e,window&&(window.loggedIn=this.user!==void 0);const t=(c=(o=e==null?void 0:e.userDetails)==null?void 0:o.custom_attributes)==null?void 0:c.brazeExternalId;if(t){const f=await whenBrazeReady();f==null||f.changeUser(t)}(d=useRuntimeConfig().public.club.emarsysWebChannel)!=null&&d.merchantID&&this.pushUserToEmarsysWebChannel(),this.fetchUserSegments()},setRefreshedUser(e){this.user={userDetails:e}},navigateToReturnUrl(e){this.preventNavigation||window.location.replace(e)},setPreventNavigation(e){this.preventNavigation=e},async fetchUserSegments(){const{$auth:e}=useNuxtApp();if(!this.getUserDetails)return this.userSegments=[],void(this.userSegmentsLoading=!1);this.userSegmentsLoading=!0;try{this.userSegments=await(e==null?void 0:e.fetchUserSegments())||[]}finally{this.userSegmentsLoading=!1}},async pushUserToEmarsysWebChannel(){const{$auth:e}=useNuxtApp(),t=(await e.getUser()).username;ScarabQueue.push(["setCustomerId",t]),ScarabQueue.push(["go"])}},getters:{isLoggedIn:e=>!!e.user&&Object.keys(e.user).length>0,getUserDetails:e=>{var t;return e.user&&"userDetails"in e.user?(t=e.user)==null?void 0:t.userDetails:e.user}}}),auth_client_bOdD2eZDKjGqlDOjac9qS96XZZhkUEoIUfJVu2Y9fgk=defineNuxtPlugin({name:"auth",dependsOn:["gcfesdk"],async setup(){var b,m,S;let e,t;const{$gc:r}=useNuxtApp(),o=useRequestURL(),c=useRuntimeConfig(),d=((m=(b=c.public.club)==null?void 0:b.ssoOptions)==null?void 0:m.provider)||"GCSSO",f=([e,t]=executeAsync(()=>{var w,T;return r().auth(d,c.public.sso,o.hostname,(T=(w=c.public.club)==null?void 0:w.ssoOptions)==null?void 0:T.version)}),e=await e,t(),e);if(d==="OIDC"){const w=useUserStore(),T=()=>f.userManager.getUser();let A,C=(S=([e,t]=executeAsync(()=>T()),e=await e,t(),e))==null?void 0:S.access_token;const P=async()=>(A||(A=f.signInSilent().finally(()=>{A=void 0})),await A),B=async()=>{const D=await T();if(!(D!=null&&D.expired))return D;try{return await P()}catch($){return console.error("OIDC token refresh failed",$),null}};f.getSession=B,f.getUser=B,f.isAuthed=async()=>await B()!==null,f.userManager.events.addUserLoaded(D=>{const $=C!==void 0&&C!==D.access_token;C=D.access_token,$&&w.setRefreshedUser(D.profile)});const U=()=>{document.hidden||B()};window.self===window.top&&(window.addEventListener("focus",U),document.addEventListener("visibilitychange",U))}return{provide:{auth:f}}}});var __classPrivateFieldSet$p=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$p=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_AdvertisingCMS_url,_AdvertisingCMS_token;
156class AdvertisingCMS{constructor(t,r,o){_AdvertisingCMS_url.set(this,void 0),_AdvertisingCMS_token.set(this,void 0),__classPrivateFieldSet$p(this,_AdvertisingCMS_url,t,"f"),__classPrivateFieldSet$p(this,_AdvertisingCMS_token,o,"f")}getUrl(t){return`https://advertising.cms.admin.gc.${__classPrivateFieldGet$p(this,_AdvertisingCMS_url,"f")}/v${t}`}async getAdvertisingSlotsByAd(t){const r=t,o=`${this.getUrl(2)}/slots/${r}`;return(await(await fetch(o,{headers:{Authorization:__classPrivateFieldGet$p(this,_AdvertisingCMS_token,"f")}})).json()).data}async getAdvertisingSlots(){const t=`${this.getUrl(2)}/slots?page.size=25`;return(await(await fetch(t,{headers:{Authorization:__classPrivateFieldGet$p(this,_AdvertisingCMS_token,"f")}})).json()).data}async getAdById(t){const r=`${this.getUrl(2)}/${t}`;return(await(await fetch(r,{headers:{Authorization:__classPrivateFieldGet$p(this,_AdvertisingCMS_token,"f")}})).json()).data}}_AdvertisingCMS_url=new WeakMap,_AdvertisingCMS_token=new WeakMap;var __classPrivateFieldSet$o=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$o=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_AdvertisingWeb_url;class AdvertisingWeb{constructor(t){_AdvertisingWeb_url.set(this,void 0),__classPrivateFieldSet$o(this,_AdvertisingWeb_url,t,"f")}getUrl(t){return`https://advertising.cms.web.gc.${__classPrivateFieldGet$o(this,_AdvertisingWeb_url,"f")}/v${t}`}async getAdvertisingSlots(t){const r=t,o=`${this.getUrl(2)}/slots/${r}?includeAllAdverts=true`;return(await(await fetch(o)).json()).data}}_AdvertisingWeb_url=new WeakMap;/*!
157 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
158 * SPDX-License-Identifier: Apache-2.0
159 */var AuthenticationDetails=(function(){function e(r){var o=r||{},c=o.ValidationData,d=o.Username,f=o.Password,b=o.AuthParameters,m=o.ClientMetadata;this.validationData=c||{},this.authParameters=b||{},this.clientMetadata=m||{},this.username=d,this.password=f}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e})(),buffer$1={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=function(m){var S=d(m),w=S[0],T=S[1];return 3*(w+T)/4-T},base64Js.toByteArray=function(m){var S,w,T=d(m),A=T[0],C=T[1],P=new r((function(D,$,z){return 3*($+z)/4-z})(0,A,C)),B=0,U=C>0?A-4:A;for(w=0;w<U;w+=4)S=t[m.charCodeAt(w)]<<18|t[m.charCodeAt(w+1)]<<12|t[m.charCodeAt(w+2)]<<6|t[m.charCodeAt(w+3)],P[B++]=S>>16&255,P[B++]=S>>8&255,P[B++]=255&S;return C===2&&(S=t[m.charCodeAt(w)]<<2|t[m.charCodeAt(w+1)]>>4,P[B++]=255&S),C===1&&(S=t[m.charCodeAt(w)]<<10|t[m.charCodeAt(w+1)]<<4|t[m.charCodeAt(w+2)]>>2,P[B++]=S>>8&255,P[B++]=255&S),P},base64Js.fromByteArray=function(m){for(var S,w=m.length,T=w%3,A=[],C=16383,P=0,B=w-T;P<B;P+=C)A.push(b(m,P,P+C>B?B:P+C));return T===1?(S=m[w-1],A.push(e[S>>2]+e[S<<4&63]+"==")):T===2&&(S=(m[w-2]<<8)+m[w-1],A.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),A.join("")};for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)e[c]=o[c],t[o.charCodeAt(c)]=c;function d(m){var S=m.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=m.indexOf("=");return w===-1&&(w=S),[w,w===S?0:4-w%4]}function f(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[63&m]}function b(m,S,w){for(var T,A=[],C=S;C<w;C+=3)T=(m[C]<<16&16711680)+(m[C+1]<<8&65280)+(255&m[C+2]),A.push(f(T));return A.join("")}return t[45]=62,t[95]=63,base64Js}var ieee754={},hasRequiredIeee754,isarray,hasRequiredIsarray,hasRequiredBuffer$1;/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(e,t,r,o,c){var d,f,b=8*c-o-1,m=(1<<b)-1,S=m>>1,w=-7,T=r?c-1:0,A=r?-1:1,C=e[t+T];for(T+=A,d=C&(1<<-w)-1,C>>=-w,w+=b;w>0;d=256*d+e[t+T],T+=A,w-=8);for(f=d&(1<<-w)-1,d>>=-w,w+=o;w>0;f=256*f+e[t+T],T+=A,w-=8);if(d===0)d=1-S;else{if(d===m)return f?NaN:1/0*(C?-1:1);f+=Math.pow(2,o),d-=S}return(C?-1:1)*f*Math.pow(2,d-o)},ieee754.write=function(e,t,r,o,c,d){var f,b,m,S=8*d-c-1,w=(1<<S)-1,T=w>>1,A=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=o?0:d-1,P=o?1:-1,B=t<0||t===0&&1
159/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(b=isNaN(t)?1:0,f=w):(f=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-f))<1&&(f--,m*=2),(t+=f+T>=1?A/m:A*Math.pow(2,1-T))*m>=2&&(f++,m/=2),f+T>=w?(b=0,f=w):f+T>=1?(b=(t*m-1)*Math.pow(2,c),f+=T):(b=t*Math.pow(2,T-1)*Math.pow(2,c),f=0));c>=8;e[r+C]=255&b,C+=P,b/=256,c-=8);for(f=f<<c|b,S+=c;S>0;e[r+C]=255&f,C+=P,f/=256,S-=8);e[r+C-P]|=128*B}),ieee754}function requireIsarray(){if(hasRequiredIsarray)return isarray;hasRequiredIsarray=1;var e={}.toString;return isarray=Array.isArray||function(t){return e.call(t)=="[object Array]"}}function requireBuffer$1(){return hasRequiredBuffer$1||(hasRequiredBuffer$1=1,(function(e){var t={},r=requireBase64Js(),o=requireIeee754(),c=requireIsarray();/*!
160		 * The buffer module from node.js, for the browser.
161		 *
162		 * @author   Feross Aboukhadijeh <http://feross.org>
163		 * @license  MIT
164		 */function d(){return b.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(re,ne){if(d()<ne)throw new RangeError("Invalid typed array length");return b.TYPED_ARRAY_SUPPORT?(re=new Uint8Array(ne)).__proto__=b.prototype:(re===null&&(re=new b(ne)),re.length=ne),re}function b(re,ne,Se){if(!(b.TYPED_ARRAY_SUPPORT||this instanceof b))return new b(re,ne,Se);if(typeof re=="number"){if(typeof ne=="string")throw new Error("If encoding is specified then the first argument must be a string");return w(this,re)}return m(this,re,ne,Se)}function m(re,ne,Se,he){if(typeof ne=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&ne instanceof ArrayBuffer?(function(we,xe,ze,Ee){if(xe.byteLength,ze<0||xe.byteLength<ze)throw new RangeError("'offset' is out of bounds");if(xe.byteLength<ze+(Ee||0))throw new RangeError("'length' is out of bounds");return xe=ze===void 0&&Ee===void 0?new Uint8Array(xe):Ee===void 0?new Uint8Array(xe,ze):new Uint8Array(xe,ze,Ee),b.TYPED_ARRAY_SUPPORT?(we=xe).__proto__=b.prototype:we=T(we,xe),we})(re,ne,Se,he):typeof ne=="string"?(function(we,xe,ze){if(typeof ze=="string"&&ze!==""||(ze="utf8"),!b.isEncoding(ze))throw new TypeError('"encoding" must be a valid string encoding');var Ee=0|C(xe,ze);we=f(we,Ee);var se=we.write(xe,ze);return se!==Ee&&(we=we.slice(0,se)),we})(re,ne,Se):(function(we,xe){if(b.isBuffer(xe)){var ze=0|A(xe.length);return(we=f(we,ze)).length===0||xe.copy(we,0,0,ze),we}if(xe){if(typeof ArrayBuffer<"u"&&xe.buffer instanceof ArrayBuffer||"length"in xe)return typeof xe.length!="number"||(Ee=xe.length)!=Ee?f(we,0):T(we,xe);if(xe.type==="Buffer"&&c(xe.data))return T(we,xe.data)}var Ee;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")})(re,ne)}function S(re){if(typeof re!="number")throw new TypeError('"size" argument must be a number');if(re<0)throw new RangeError('"size" argument must not be negative')}function w(re,ne){if(S(ne),re=f(re,ne<0?0:0|A(ne)),!b.TYPED_ARRAY_SUPPORT)for(var Se=0;Se<ne;++Se)re[Se]=0;return re}function T(re,ne){var Se=ne.length<0?0:0|A(ne.length);re=f(re,Se);for(var he=0;he<Se;he+=1)re[he]=255&ne[he];return re}function A(re){if(re>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|re}function C(re,ne){if(b.isBuffer(re))return re.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(re)||re instanceof ArrayBuffer))return re.byteLength;typeof re!="string"&&(re=""+re);var Se=re.length;if(Se===0)return 0;for(var he=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return Se;case"utf8":case"utf-8":case void 0:return We(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Se;case"hex":return Se>>>1;case"base64":return et(re).length;default:if(he)return We(re).length;ne=(""+ne).toLowerCase(),he=!0}}function P(re,ne,Se){var he=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((Se===void 0||Se>this.length)&&(Se=this.length),Se<=0)||(Se>>>=0)<=(ne>>>=0))return"";for(re||(re="utf8");;)switch(re){case"hex":return Q(this,ne,Se);case"utf8":case"utf-8":return H(this,ne,Se);case"ascii":return J(this,ne,Se);case"latin1":case"binary":return G(this,ne,Se);case"base64":return K(this,ne,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,ne,Se);default:if(he)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),he=!0}}function B(re,ne,Se){var he=re[ne];re[ne]=re[Se],re[Se]=he}function U(re,ne,Se,he,we){if(re.length===0)return-1;if(typeof Se=="string"?(he=Se,Se=0):Se>2147483647?Se=2147483647:Se<-2147483648&&(Se=-2147483648),Se=+Se,isNaN(Se)&&(Se=we?0:re.length-1),Se<0&&(Se=re.length+Se),Se>=re.length){if(we)return-1;Se=re.length-1}else if(Se<0){if(!we)return-1;Se=0}if(typeof ne=="string"&&(ne=b.from(ne,he)),b.isBuffer(ne))return ne.length===0?-1:D(re,ne,Se,he,we);if(typeof ne=="number")return ne&=255,b.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?we?Uint8Array.prototype.indexOf.call(re,ne,Se):Uint8Array.prototype.lastIndexOf.call(re,ne,Se):D(re,[ne],Se,he,we);throw new TypeError("val must be string, number or Buffer")}function D(re,ne,Se,he,we){var xe,ze=1,Ee=re.length,se=ne.length;if(he!==void 0&&((he=String(he).toLowerCase())==="ucs2"||he==="ucs-2"||he==="utf16le"||he==="utf-16le")){if(re.length<2||ne.length<2)return-1;ze=2,Ee/=2,se/=2,Se/=2}function L(Te,Ae){return ze===1?Te[Ae]:Te.readUInt16BE(Ae*ze)}if(we){var j=-1;for(xe=Se;xe<Ee;
164xe++)if(L(re,xe)===L(ne,j===-1?0:xe-j)){if(j===-1&&(j=xe),xe-j+1===se)return j*ze}else j!==-1&&(xe-=xe-j),j=-1}else for(Se+se>Ee&&(Se=Ee-se),xe=Se;xe>=0;xe--){for(var Z=!0,le=0;le<se;le++)if(L(re,xe+le)!==L(ne,le)){Z=!1;break}if(Z)return xe}return-1}function $(re,ne,Se,he){Se=Number(Se)||0;var we=re.length-Se;he?(he=Number(he))>we&&(he=we):he=we;var xe=ne.length;if(xe%2!=0)throw new TypeError("Invalid hex string");he>xe/2&&(he=xe/2);for(var ze=0;ze<he;++ze){var Ee=parseInt(ne.substr(2*ze,2),16);if(isNaN(Ee))return ze;re[Se+ze]=Ee}return ze}function z(re,ne,Se,he){return rt(We(ne,re.length-Se),re,Se,he)}function V(re,ne,Se,he){return rt((function(we){for(var xe=[],ze=0;ze<we.length;++ze)xe.push(255&we.charCodeAt(ze));return xe})(ne),re,Se,he)}function F(re,ne,Se,he){return V(re,ne,Se,he)}function ee(re,ne,Se,he){return rt(et(ne),re,Se,he)}function te(re,ne,Se,he){return rt((function(we,xe){for(var ze,Ee,se,L=[],j=0;j<we.length&&!((xe-=2)<0);++j)Ee=(ze=we.charCodeAt(j))>>8,se=ze%256,L.push(se),L.push(Ee);return L})(ne,re.length-Se),re,Se,he)}function K(re,ne,Se){return ne===0&&Se===re.length?r.fromByteArray(re):r.fromByteArray(re.slice(ne,Se))}function H(re,ne,Se){Se=Math.min(re.length,Se);for(var he=[],we=ne;we<Se;){var xe,ze,Ee,se,L=re[we],j=null,Z=L>239?4:L>223?3:L>191?2:1;if(we+Z<=Se)switch(Z){case 1:L<128&&(j=L);break;case 2:(192&(xe=re[we+1]))==128&&(se=(31&L)<<6|63&xe)>127&&(j=se);break;case 3:xe=re[we+1],ze=re[we+2],(192&xe)==128&&(192&ze)==128&&(se=(15&L)<<12|(63&xe)<<6|63&ze)>2047&&(se<55296||se>57343)&&(j=se);break;case 4:xe=re[we+1],ze=re[we+2],Ee=re[we+3],(192&xe)==128&&(192&ze)==128&&(192&Ee)==128&&(se=(15&L)<<18|(63&xe)<<12|(63&ze)<<6|63&Ee)>65535&&se<1114112&&(j=se)}j===null?(j=65533,Z=1):j>65535&&(j-=65536,he.push(j>>>10&1023|55296),j=56320|1023&j),he.push(j),we+=Z}return(function(le){var Te=le.length;if(Te<=X)return String.fromCharCode.apply(String,le);for(var Ae="",Le=0;Le<Te;)Ae+=String.fromCharCode.apply(String,le.slice(Le,Le+=X));return Ae})(he)}e.Buffer=b,e.SlowBuffer=function(re){return+re!=re&&(re=0),b.alloc(+re)},e.INSPECT_MAX_BYTES=50,b.TYPED_ARRAY_SUPPORT=t.TYPED_ARRAY_SUPPORT!==void 0?t.TYPED_ARRAY_SUPPORT:(function(){try{var re=new Uint8Array(1);return re.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},re.foo()===42&&typeof re.subarray=="function"&&re.subarray(1,1).byteLength===0}catch{return!1}})(),e.kMaxLength=d(),b.poolSize=8192,b._augment=function(re){return re.__proto__=b.prototype,re},b.from=function(re,ne,Se){return m(null,re,ne,Se)},b.TYPED_ARRAY_SUPPORT&&(b.prototype.__proto__=Uint8Array.prototype,b.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&b[Symbol.species]===b&&Object.defineProperty(b,Symbol.species,{value:null,configurable:!0})),b.alloc=function(re,ne,Se){return(function(he,we,xe,ze){return S(we),we<=0?f(he,we):xe!==void 0?typeof ze=="string"?f(he,we).fill(xe,ze):f(he,we).fill(xe):f(he,we)})(null,re,ne,Se)},b.allocUnsafe=function(re){return w(null,re)},b.allocUnsafeSlow=function(re){return w(null,re)},b.isBuffer=function(re){return!(re==null||!re._isBuffer)},b.compare=function(re,ne){if(!b.isBuffer(re)||!b.isBuffer(ne))throw new TypeError("Arguments must be Buffers");if(re===ne)return 0;for(var Se=re.length,he=ne.length,we=0,xe=Math.min(Se,he);we<xe;++we)if(re[we]!==ne[we]){Se=re[we],he=ne[we];break}return Se<he?-1:he<Se?1:0},b.isEncoding=function(re){switch(String(re).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},b.concat=function(re,ne){if(!c(re))throw new TypeError('"list" argument must be an Array of Buffers');if(re.length===0)return b.alloc(0);var Se;if(ne===void 0)for(ne=0,Se=0;Se<re.length;++Se)ne+=re[Se].length;var he=b.allocUnsafe(ne),we=0;for(Se=0;Se<re.length;++Se){var xe=re[Se];if(!b.isBuffer(xe))throw new TypeError('"list" argument must be an Array of Buffers');xe.copy(he,we),we+=xe.length}return he},b.byteLength=C,b.prototype._isBuffer=!0,b.prototype.swap16=function(){var re=this.length;if(re%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;ne<re;ne+=2)B(this,ne,ne+1);return this},b.prototype.swap32=function(){var re=this.length;if(re%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var ne=0;ne<re;ne+=4)B(this,ne,ne+3),B(this,ne+1,ne+2);return this},b.prototype.swap64=function(){var re=this.length;if(re%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var ne=0;ne<re;ne+=8)B(this,ne,ne+7),B(this,ne+1,ne+6),B(this,ne+2,ne+5),B(this,ne+3,ne+4);return this},b.prototype.toString=function(){var re=0|this.length;return re===0?"":arguments.length===0?H(this,0,re):P.apply(this,arguments)},b.prototype.equals=function(re){if(!b.isBuffer(re))throw new TypeError("Argument must be a Buffer");return this===re||b.compare(this,re)===0},b.prototype.inspect=function(){var re="",ne=e.INSPECT_MAX_BYTES;return this.length>0&&(re=this.toString("hex",0,ne).match(/.{2}/g).join(" "),this.length>ne&&(re+=" ... ")),"<Buffer "+re+">"},b.prototype.compare=function(re,ne,Se,he,we){if(!b.isBuffer(re))throw new TypeError("Argument must be a Buffer");if(ne===void 0&&(ne=0),Se===void 0&&(Se=re?re.length:0),he===void 0&&(he=0),we===void 0&&(we=this.length),ne<0||Se>re.length||he<0||we>this.length)throw new RangeError("out of range index");if(he>=we&&ne>=Se)return 0;if(he>=we)return-1;if(ne>=Se)return 1;if(this===re)return 0;for(var xe=(we>>>=0)-(he>>>=0),ze=(Se>>>=0)-(ne>>>=0),Ee=Math.min(xe,ze),se=this.slice(he,we),L=re.slice(ne,Se),j=0;j<Ee;++j)if(se[j]!==L[j]){xe=se[j],ze=L[j];break}return xe<ze?-1:ze<xe?1:0},b.prototype.includes=function(re,ne,Se){return this.indexOf(re,ne,Se)!==-1},b.prototype.indexOf=function(re,ne,Se){return U(this,re,ne,Se,!0)},b.prototype.lastIndexOf=function(re,ne,Se){return U(this,re,ne,Se,!1)},b.prototype.write=function(re,ne,Se,he){if(ne===void 0)he="utf8",Se=this.length,ne=0;else if(Se===void 0&&typeof ne=="string")he=ne,Se=this.length,ne=0;else{if(!isFinite(ne))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ne|=0,isFinite(Se)?(Se|=0,he===void 0&&(he="utf8")):(he=Se,Se=void 0)}var we=this.length-ne;if((Se===void 0||Se>we)&&(Se=we),re.length>0&&(Se<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");for(var xe=!1;;)switch(he){case"hex":return $(this,re,ne,Se);case"utf8":case"utf-8":return z(this,re,ne,Se);case"ascii":return V(this,re,ne,Se);case"latin1":case"binary":return F(this,re,ne,Se);case"base64":return ee(this,re,ne,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,re,ne,Se);default:if(xe)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),xe=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;function J(re,ne,Se){var he="";Se=Math.min(re.length,Se);for(var we=ne;we<Se;++we)he+=String.fromCharCode(127&re[we]);return he}function G(re,ne,Se){var he="";Se=Math.min(re.length,Se);for(var we=ne;we<Se;++we)he+=String.fromCharCode(re[we]);return he}
vendor: 4,606 bytes, line 164
164function Q(re,ne,Se){var he=re.length;(!ne||ne<0)&&(ne=0),(!Se||Se<0||Se>he)&&(Se=he);for(var we="",xe=ne;xe<Se;++xe)we+=Ne(re[xe]);return we}function pe(re,ne,Se){for(var he=re.slice(ne,Se),we="",xe=0;xe<he.length;xe+=2)we+=String.fromCharCode(he[xe]+256*he[xe+1]);return we}function ye(re,ne,Se){if(re%1!=0||re<0)throw new RangeError("offset is not uint");if(re+ne>Se)throw new RangeError("Trying to access beyond buffer length")}function de(re,ne,Se,he,we,xe){if(!b.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>we||ne<xe)throw new RangeError('"value" argument is out of bounds');if(Se+he>re.length)throw new RangeError("Index out of range")}function _e(re,ne,Se,he){ne<0&&(ne=65535+ne+1);for(var we=0,xe=Math.min(re.length-Se,2);we<xe;++we)re[Se+we]=(ne&255<<8*(he?we:1-we))>>>8*(he?we:1-we)}function Re(re,ne,Se,he){ne<0&&(ne=4294967295+ne+1);for(var we=0,xe=Math.min(re.length-Se,4);we<xe;++we)re[Se+we]=ne>>>8*(he?we:3-we)&255}function ge(re,ne,Se,he,we,xe){if(Se+he>re.length)throw new RangeError("Index out of range");if(Se<0)throw new RangeError("Index out of range")}function Ce(re,ne,Se,he,we){return we||ge(re,0,Se,4),o.write(re,ne,Se,he,23,4),Se+4}function Me(re,ne,Se,he,we){return we||ge(re,0,Se,8),o.write(re,ne,Se,he,52,8),Se+8}b.prototype.slice=function(re,ne){var Se,he=this.length;if((re=~~re)<0?(re+=he)<0&&(re=0):re>he&&(re=he),(ne=ne===void 0?he:~~ne)<0?(ne+=he)<0&&(ne=0):ne>he&&(ne=he),ne<re&&(ne=re),b.TYPED_ARRAY_SUPPORT)(Se=this.subarray(re,ne)).__proto__=b.prototype;else{var we=ne-re;Se=new b(we,void 0);for(var xe=0;xe<we;++xe)Se[xe]=this[xe+re]}return Se},b.prototype.readUIntLE=function(re,ne,Se){re|=0,ne|=0,Se||ye(re,ne,this.length);for(var he=this[re],we=1,xe=0;++xe<ne&&(we*=256);)he+=this[re+xe]*we;return he},b.prototype.readUIntBE=function(re,ne,Se){re|=0,ne|=0,Se||ye(re,ne,this.length);for(var he=this[re+--ne],we=1;ne>0&&(we*=256);)he+=this[re+--ne]*we;return he},b.prototype.readUInt8=function(re,ne){return ne||ye(re,1,this.length),this[re]},b.prototype.readUInt16LE=function(re,ne){return ne||ye(re,2,this.length),this[re]|this[re+1]<<8},b.prototype.readUInt16BE=function(re,ne){return ne||ye(re,2,this.length),this[re]<<8|this[re+1]},b.prototype.readUInt32LE=function(re,ne){return ne||ye(re,4,this.length),(this[re]|this[re+1]<<8|this[re+2]<<16)+16777216*this[re+3]},b.prototype.readUInt32BE=function(re,ne){return ne||ye(re,4,this.length),16777216*this[re]+(this[re+1]<<16|this[re+2]<<8|this[re+3])},b.prototype.readIntLE=function(re,ne,Se){re|=0,ne|=0,Se||ye(re,ne,this.length);for(var he=this[re],we=1,xe=0;++xe<ne&&(we*=256);)he+=this[re+xe]*we;return he>=(we*=128)&&(he-=Math.pow(2,8*ne)),he},b.prototype.readIntBE=function(re,ne,Se){re|=0,ne|=0,Se||ye(re,ne,this.length);for(var he=ne,we=1,xe=this[re+--he];he>0&&(we*=256);)xe+=this[re+--he]*we;return xe>=(we*=128)&&(xe-=Math.pow(2,8*ne)),xe},b.prototype.readInt8=function(re,ne){return ne||ye(re,1,this.length),128&this[re]?-1*(255-this[re]+1):this[re]},b.prototype.readInt16LE=function(re,ne){ne||ye(re,2,this.length);var Se=this[re]|this[re+1]<<8;return 32768&Se?4294901760|Se:Se},b.prototype.readInt16BE=function(re,ne){ne||ye(re,2,this.length);var Se=this[re+1]|this[re]<<8;return 32768&Se?4294901760|Se:Se},b.prototype.readInt32LE=function(re,ne){return ne||ye(re,4,this.length),this[re]|this[re+1]<<8|this[re+2]<<16|this[re+3]<<24},b.prototype.readInt32BE=function(re,ne){return ne||ye(re,4,this.length),this[re]<<24|this[re+1]<<16|this[re+2]<<8|this[re+3]},b.prototype.readFloatLE=function(re,ne){return ne||ye(re,4,this.length),o.read(this,re,!0,23,4)},b.prototype.readFloatBE=function(re,ne){return ne||ye(re,4,this.length),o.read(this,re,!1,23,4)},b.prototype.readDoubleLE=function(re,ne){return ne||ye(re,8,this.length),o.read(this,re,!0,52,8)},b.prototype.readDoubleBE=function(re,ne){return ne||ye(re,8,this.length),o.read(this,re,!1,52,8)},b.prototype.writeUIntLE=function(re,ne,Se,he){re=+re,ne|=0,Se|=0,he||de(this,re,ne,Se,Math.pow(2,8*Se)-1,0);var we=1,xe=0;for(this[ne]=255&re;++xe<Se&&(we*=256);)this[ne+xe]=re/we&255;return ne+Se},b.prototype.writeUIntBE=function(re,ne,Se,he){re=+re,ne|=0,Se|=0,he||de(this,re,ne,Se,Math.pow(2,8*Se)-1,0);var we=Se-1,xe=1;for(this[ne+we]=255&re;--we>=0&&(xe*=256);)this[ne+we]=re/xe&255;return ne+Se},b.prototype.writeUInt8=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,1,255,0),b.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),this[ne]=255&re,ne+1},b.prototype.writeUInt16LE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,2,65535,0),b.TYPED_ARRAY_SUPPORT?(this[ne]=255&re,this[ne+1]=re>>>
1648):_e(this,re,ne,!0),ne+2},b.prototype.writeUInt16BE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,2,65535,0),b.TYPED_ARRAY_SUPPORT?(this[ne]=re>>>8,this[ne+1]=255&re):_e(this,re,ne,!1),ne+2},b.prototype.writeUInt32LE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,4,4294967295,0),b.TYPED_ARRAY_SUPPORT?(this[ne+3]=re>>>24,this[ne+2]=re>>>16,this[ne+1]=re>>>8,this[ne]=255&re):Re(this,re,ne,!0),ne+4},b.prototype.writeUInt32BE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,4,4294967295,0),b.TYPED_ARRAY_SUPPORT?(this[ne]=re>>>24,this[ne+1]=re>>>16,this[ne+2]=re>>>8,this[ne+3]=255&re):Re(this,re,ne,!1),ne+4},b.prototype.writeIntLE=function(re,ne,Se,he){if(re=+re,ne|=0,!he){var we=Math.pow(2,8*Se-1);de(this,re,ne,Se,we-1,-we)}var xe=0,ze=1,Ee=0;for(this[ne]=255&re;++xe<Se&&(ze*=256);)re<0&&Ee===0&&this[ne+xe-1]!==0&&(Ee=1),this[ne+xe]=(re/ze|0)-Ee&255;return ne+Se},b.prototype.writeIntBE=function(re,ne,Se,he){if(re=+re,ne|=0,!he){var we=Math.pow(2,8*Se-1);de(this,re,ne,Se,we-1,-we)}var xe=Se-1,ze=1,Ee=0;for(this[ne+xe]=255&re;--xe>=0&&(ze*=256);)re<0&&Ee===0&&this[ne+xe+1]!==0&&(Ee=1),this[ne+xe]=(re/ze|0)-Ee&255;return ne+Se},b.prototype.writeInt8=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,1,127,-128),b.TYPED_ARRAY_SUPPORT||(re=Math.floor(re)),re<0&&(re=255+re+1),this[ne]=255&re,ne+1},b.prototype.writeInt16LE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,2,32767,-32768),b.TYPED_ARRAY_SUPPORT?(this[ne]=255&re,this[ne+1]=re>>>8):_e(this,re,ne,!0),ne+2},b.prototype.writeInt16BE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,2,32767,-32768),b.TYPED_ARRAY_SUPPORT?(this[ne]=re>>>8,this[ne+1]=255&re):_e(this,re,ne,!1),ne+2},b.prototype.writeInt32LE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,4,2147483647,-2147483648),b.TYPED_ARRAY_SUPPORT?(this[ne]=255&re,this[ne+1]=re>>>8,this[ne+2]=re>>>16,this[ne+3]=re>>>24):Re(this,re,ne,!0),ne+4},b.prototype.writeInt32BE=function(re,ne,Se){return re=+re,ne|=0,Se||de(this,re,ne,4,2147483647,-2147483648),re<0&&(re=4294967295+re+1),b.TYPED_ARRAY_SUPPORT?(this[ne]=re>>>24,this[ne+1]=re>>>16,this[ne+2]=re>>>8,this[ne+3]=255&re):Re(this,re,ne,!1),ne+4},b.prototype.writeFloatLE=function(re,ne,Se){return Ce(this,re,ne,!0,Se)},b.prototype.writeFloatBE=function(re,ne,Se){return Ce(this,re,ne,!1,Se)},b.prototype.writeDoubleLE=function(re,ne,Se){return Me(this,re,ne,!0,Se)},b.prototype.writeDoubleBE=function(re,ne,Se){return Me(this,re,ne,!1,Se)},b.prototype.copy=function(re,ne,Se,he){if(Se||(Se=0),he||he===0||(he=this.length),ne>=re.length&&(ne=re.length),ne||(ne=0),he>0&&he<Se&&(he=Se),he===Se||re.length===0||this.length===0)return 0;if(ne<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),re.length-ne<he-Se&&(he=re.length-ne+Se);var we,xe=he-Se;if(this===re&&Se<ne&&ne<he)for(we=xe-1;we>=0;--we)re[we+ne]=this[we+Se];else if(xe<1e3||!b.TYPED_ARRAY_SUPPORT)for(we=0;we<xe;++we)re[we+ne]=this[we+Se];else Uint8Array.prototype.set.call(re,this.subarray(Se,Se+xe),ne);return xe},b.prototype.fill=function(re,ne,Se,he){if(typeof re=="string"){if(typeof ne=="string"?(he=ne,ne=0,Se=this.length):typeof Se=="string"&&(he=Se,Se=this.length),re.length===1){var we=re.charCodeAt(0);we<256&&(re=we)}if(he!==void 0&&typeof he!="string")throw new TypeError("encoding must be a string");if(typeof he=="string"&&!b.isEncoding(he))throw new TypeError("Unknown encoding: "+he)}else typeof re=="number"&&(re&=255);if(ne<0||this.length<ne||this.length<Se)throw new RangeError("Out of range index");if(Se<=ne)return this;var xe;if(ne>>>=0,Se=Se===void 0?this.length:Se>>>0,re||(re=0),typeof re=="number")for(xe=ne;xe<Se;++xe)this[xe]=re;else{var ze=b.isBuffer(re)?re:We(new b(re,he).toString()),Ee=ze.length;for(xe=0;xe<Se-ne;++xe)this[xe+ne]=ze[xe%Ee]}return this};var Ue=/[^+\/0-9A-Za-z-_]/g;function Ne(re){return re<16?"0"+re.toString(16):re.toString(16)}function We(re,ne){var Se;ne=ne||1/0;for(var he=re.length,we=null,xe=[],ze=0;ze<he;++ze){if((Se=re.charCodeAt(ze))>55295&&Se<57344){if(!we){if(Se>56319){(ne-=3)>-1&&xe.push(239,191,189);continue}if(ze+1===he){(ne-=3)>-1&&xe.push(239,191,189);continue}we=Se;continue}if(Se<56320){(ne-=3)>-1&&xe.push(239,191,189),we=Se;continue}Se=65536+(we-55296<<10|Se-56320)}else we&&(ne-=3)>-1&&xe.push(239,191,189);if(we=null,Se<128){if((ne-=1)<0)break;xe.push(Se)}else if(Se<2048){if((ne-=2)<0)break;xe.push(Se>>6|192,63&Se|128)}
164else if(Se<65536){if((ne-=3)<0)break;xe.push(Se>>12|224,Se>>6&63|128,63&Se|128)}else{if(!(Se<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;xe.push(Se>>18|240,Se>>12&63|128,Se>>6&63|128,63&Se|128)}}return xe}function et(re){return r.toByteArray((function(ne){if((ne=(function(Se){return Se.trim?Se.trim():Se.replace(/^\s+|\s+$/g,"")})(ne).replace(Ue,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne})(re))}function rt(re,ne,Se,he){for(var we=0;we<he&&!(we+Se>=ne.length||we>=re.length);++we)ne[we+Se]=re[we];return we}})(buffer$1)),buffer$1}var bufferExports$1=requireBuffer$1(),define_global_default={},crypto$1;if(typeof window<"u"&&window.crypto&&(crypto$1=window.crypto),!crypto$1&&typeof window<"u"&&window.msCrypto&&(crypto$1=window.msCrypto),!crypto$1&&define_global_default!==void 0&&define_global_default.crypto&&(crypto$1=define_global_default.crypto),!crypto$1&&typeof require=="function")try{crypto$1=require("crypto")}catch{}function cryptoSecureRandomInt(){if(crypto$1){if(typeof crypto$1.getRandomValues=="function")try{return crypto$1.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof crypto$1.randomBytes=="function")try{return crypto$1.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function hexStringify(e){for(var t=e.words,r=e.sigBytes,o=[],c=0;c<r;c++){var d=t[c>>>2]>>>24-c%4*8&255;o.push((d>>>4).toString(16)),o.push((15&d).toString(16))}return o.join("")}var WordArray=(function(){function e(r,o){r=this.words=r||[],this.sigBytes=o??4*r.length}var t=e.prototype;return t.random=function(r){for(var o=[],c=0;c<r;c+=4)o.push(cryptoSecureRandomInt());return new e(o,r)},t.toString=function(){return hexStringify(this)},e})(),build$1={},extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var c in o)o.hasOwnProperty(c)&&(r[c]=o[c])},extendStatics(e,t)};function __extends(e,t){function r(){this.constructor=e}extendStatics(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var c in t=arguments[r])Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c]);return e},__assign.apply(this,arguments)};function __rest(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(o=Object.getOwnPropertySymbols(e);c<o.length;c++)t.indexOf(o[c])<0&&Object.prototype.propertyIsEnumerable.call(e,o[c])&&(r[o[c]]=e[o[c]])}return r}function __decorate(e,t,r,o){var c,d=arguments.length,f=d<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,t,r,o);else for(var b=e.length-1;b>=0;b--)(c=e[b])&&(f=(d<3?c(f):d>3?c(t,r,f):c(t,r))||f);return d>3&&f&&Object.defineProperty(t,r,f),f}function __param(e,t){return function(r,o){t(r,o,e)}}function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function __awaiter(e,t,r,o){return new(r||(r=Promise))(function(c,d){function f(S){try{m(o.next(S))}catch(w){d(w)}}function b(S){try{m(o.throw(S))}catch(w){d(w)}}function m(S){var w;S.done?c(S.value):(w=S.value,w instanceof r?w:new r(function(T){T(w)})).then(f,b)}m((o=o.apply(e,t||[])).next())})}function __generator(e,t){var r,o,c,d,f={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return d={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function b(m){return function(S){return(function(w){if(r)throw new TypeError("Generator is already executing.");for(;f;)try{if(r=1,o&&(c=2&w[0]?o.return:w[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,w[1])).done)return c;switch(o=0,c&&(w=[2&w[0],c.value]),w[0]){case 0:case 1:c=w;break;case 4:return f.label++,{value:w[1],done:!1};case 5:f.label++,o=w[1],w=[0];continue;case 7:w=f.ops.pop(),f.trys.pop();continue;default:if(c=f.trys,!((c=c.length>0&&c[c.length-1])||w[0]!==6&&w[0]!==2)){f=0;continue}if(w[0]===3&&(!c||w[1]>c[0]&&w[1]<c[3])){f.label=w[1];break}if(w[0]===6&&f.label<c[1]){f.label=c[1],c=w;break}if(c&&f.label<c[2]){f.label=c[2],f.ops.push(w);break}c[2]&&f.ops.pop(),f.trys.pop();continue}w=t.call(e,f)}catch(T){w=[6,T],o=0}finally{r=c=0}if(5&w[0])throw w[1];
164return{value:w[0]?w[1]:void 0,done:!0}})([m,S])}}}function __createBinding(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}function __exportStar(e,t){for(var r in e)r==="default"||t.hasOwnProperty(r)||(t[r]=e[r])}function __values(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o,c,d=r.call(e),f=[];try{for(;(t===void 0||t-- >0)&&!(o=d.next()).done;)f.push(o.value)}catch(b){c={error:b}}finally{try{o&&!o.done&&(r=d.return)&&r.call(d)}finally{if(c)throw c.error}}return f}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),c=0;for(t=0;t<r;t++)for(var d=arguments[t],f=0,b=d.length;f<b;f++,c++)o[c]=d[f];return o}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,c=r.apply(e,t||[]),d=[];return o={},f("next"),f("throw"),f("return"),o[Symbol.asyncIterator]=function(){return this},o;function f(T){c[T]&&(o[T]=function(A){return new Promise(function(C,P){d.push([T,A,C,P])>1||b(T,A)})})}function b(T,A){try{(C=c[T](A)).value instanceof __await?Promise.resolve(C.value.v).then(m,S):w(d[0][2],C)}catch(P){w(d[0][3],P)}var C}function m(T){b("next",T)}function S(T){b("throw",T)}function w(T,A){T(A),d.shift(),d.length&&b(d[0][0],d[0][1])}}function __asyncDelegator(e){var t,r;return t={},o("next"),o("throw",function(c){throw c}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(c,d){t[c]=e[c]?function(f){return(r=!r)?{value:__await(e[c](f)),done:c==="return"}:d?d(f):f}:d}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(c){t[c]=e[c]&&function(d){return new Promise(function(f,b){(function(m,S,w,T){Promise.resolve(T).then(function(A){m({value:A,done:w})},S)})(f,b,(d=e[c](d)).done,d.value)})}}}
164function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet$n(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function __classPrivateFieldSet$n(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}const tslib_es6=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return __assign},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet:__classPrivateFieldGet$n,__classPrivateFieldSet:__classPrivateFieldSet$n,__createBinding,__decorate,__exportStar,__extends,__generator,__importDefault,__importStar,__makeTemplateObject,__metadata,__param,__read,__rest,__spread,__spreadArrays,__values},Symbol.toStringTag,{value:"Module"})),require$$0$2=getAugmentedNamespace(tslib_es6);var jsSha256={},constants={},hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,Object.defineProperty(constants,"__esModule",{value:!0}),constants.MAX_HASHABLE_LENGTH=constants.INIT=constants.KEY=constants.DIGEST_LENGTH=constants.BLOCK_SIZE=void 0,constants.BLOCK_SIZE=64,constants.DIGEST_LENGTH=32,constants.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),constants.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],constants.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),constants}var RawSha256={},hasRequiredRawSha256;function requireRawSha256(){if(hasRequiredRawSha256)return RawSha256;hasRequiredRawSha256=1,Object.defineProperty(RawSha256,"__esModule",{value:!0}),RawSha256.RawSha256=void 0;var e=requireConstants(),t=(function(){function r(){this.state=Int32Array.from(e.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(o){if(this.finished)throw new Error("Attempted to update an already finished hash.");var c=0,d=o.byteLength;if(this.bytesHashed+=d,8*this.bytesHashed>e.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;d>0;)this.buffer[this.bufferLength++]=o[c++],d--,this.bufferLength===e.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var o=8*this.bytesHashed,c=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),d=this.bufferLength;if(c.setUint8(this.bufferLength++,128),d%e.BLOCK_SIZE>=e.BLOCK_SIZE-8){for(var f=this.bufferLength;f<e.BLOCK_SIZE;f++)c.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(f=this.bufferLength;f<e.BLOCK_SIZE-8;f++)c.setUint8(f,0);c.setUint32(e.BLOCK_SIZE-8,Math.floor(o/4294967296),!0),c.setUint32(e.BLOCK_SIZE-4,o),this.hashBuffer(),this.finished=!0}var b=new Uint8Array(e.DIGEST_LENGTH);for(f=0;f<8;f++)b[4*f]=this.state[f]>>>24&255,b[4*f+1]=this.state[f]>>>16&255,b[4*f+2]=this.state[f]>>>8&255,b[4*f+3]=this.state[f]>>>0&255;return b},r.prototype.hashBuffer=function(){for(var o=this.buffer,c=this.state,d=c[0],f=c[1],b=c[2],m=c[3],S=c[4],w=c[5],T=c[6],A=c[7],C=0;C<e.BLOCK_SIZE;C++){if(C<16)this.temp[C]=(255&o[4*C])<<24|(255&o[4*C+1])<<16|(255&o[4*C+2])<<8|255&o[4*C+3];else{var P=this.temp[C-2],B=(P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10,U=((P=this.temp[C-15])>>>7|P<<25)^(P>>>18|P<<14)^P>>>3;this.temp[C]=(B+this.temp[C-7]|0)+(U+this.temp[C-16]|0)}var D=(((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&w^~S&T)|0)+(A+(e.KEY[C]+this.temp[C]|0)|0)|0,$=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&f^d&b^f&b)|0;A=T,T=w,w=S,S=m+D|0,m=b,b=f,f=d,d=D+$|0}c[0]+=d,c[1]+=f,c[2]+=b,c[3]+=m,c[4]+=S,c[5]+=w,c[6]+=T,c[7]+=A},r})();
164return RawSha256.RawSha256=t,RawSha256}var build={},convertToBuffer={};const fromUtf8$2=e=>{const t=[];for(let r=0,o=e.length;r<o;r++){const c=e.charCodeAt(r);if(c<128)t.push(c);else if(c<2048)t.push(c>>6|192,63&c|128);else if(r+1<e.length&&(64512&c)==55296&&(64512&e.charCodeAt(r+1))==56320){const d=65536+((1023&c)<<10)+(1023&e.charCodeAt(++r));t.push(d>>18|240,d>>12&63|128,d>>6&63|128,63&d|128)}else t.push(c>>12|224,c>>6&63|128,63&c|128)}return Uint8Array.from(t)},toUtf8$2=e=>{let t="";for(let r=0,o=e.length;r<o;r++){const c=e[r];if(c<128)t+=String.fromCharCode(c);else if(192<=c&&c<224){const d=e[++r];t+=String.fromCharCode((31&c)<<6|63&d)}else if(240<=c&&c<365){const d="%"+[c,e[++r],e[++r],e[++r]].map(f=>f.toString(16)).join("%");t+=decodeURIComponent(d)}else t+=String.fromCharCode((15&c)<<12|(63&e[++r])<<6|63&e[++r])}return t};function fromUtf8$1(e){return new TextEncoder().encode(e)}function toUtf8$1(e){return new TextDecoder("utf-8").decode(e)}const fromUtf8=e=>typeof TextEncoder=="function"?fromUtf8$1(e):fromUtf8$2(e),toUtf8=e=>typeof TextDecoder=="function"?toUtf8$1(e):toUtf8$2(e),distEs=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8,toUtf8},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(distEs);var hasRequiredConvertToBuffer;function requireConvertToBuffer(){if(hasRequiredConvertToBuffer)return convertToBuffer;hasRequiredConvertToBuffer=1,Object.defineProperty(convertToBuffer,"__esModule",{value:!0}),convertToBuffer.convertToBuffer=void 0;var e=require$$0$1,t=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:e.fromUtf8;return convertToBuffer.convertToBuffer=function(r){return r instanceof Uint8Array?r:typeof r=="string"?t(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)},convertToBuffer}var isEmptyData={},hasRequiredIsEmptyData;function requireIsEmptyData(){return hasRequiredIsEmptyData||(hasRequiredIsEmptyData=1,Object.defineProperty(isEmptyData,"__esModule",{value:!0}),isEmptyData.isEmptyData=void 0,isEmptyData.isEmptyData=function(e){return typeof e=="string"?e.length===0:e.byteLength===0}),isEmptyData}var numToUint8={},hasRequiredNumToUint8;function requireNumToUint8(){return hasRequiredNumToUint8||(hasRequiredNumToUint8=1,Object.defineProperty(numToUint8,"__esModule",{value:!0}),numToUint8.numToUint8=void 0,numToUint8.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}),numToUint8}var uint32ArrayFrom={},hasRequiredUint32ArrayFrom,hasRequiredBuild$1,hasRequiredJsSha256,hasRequiredBuild;function requireUint32ArrayFrom(){return hasRequiredUint32ArrayFrom||(hasRequiredUint32ArrayFrom=1,Object.defineProperty(uint32ArrayFrom,"__esModule",{value:!0}),uint32ArrayFrom.uint32ArrayFrom=void 0,uint32ArrayFrom.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return Uint32Array.from(e)}),uint32ArrayFrom}function requireBuild$1(){return hasRequiredBuild$1||(hasRequiredBuild$1=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uint32ArrayFrom=e.numToUint8=e.isEmptyData=e.convertToBuffer=void 0;var t=requireConvertToBuffer();Object.defineProperty(e,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var r=requireIsEmptyData();Object.defineProperty(e,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var o=requireNumToUint8();Object.defineProperty(e,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var c=requireUint32ArrayFrom();Object.defineProperty(e,"uint32ArrayFrom",{enumerable:!0,get:function(){return c.uint32ArrayFrom}})})(build)),build}function requireJsSha256(){if(hasRequiredJsSha256)return jsSha256;hasRequiredJsSha256=1,Object.defineProperty(jsSha256,"__esModule",{value:!0}),jsSha256.Sha256=void 0;var e=require$$0$2,t=requireConstants(),r=requireRawSha256(),o=requireBuild$1(),c=(function(){function d(f){if(this.hash=new r.RawSha256,f){this.outer=new r.RawSha256;var b=(function(w){var T=(0,o.convertToBuffer)(w);if(T.byteLength>t.BLOCK_SIZE){var A=new r.RawSha256;A.update(T),T=A.digest()}var C=new Uint8Array(t.BLOCK_SIZE);return C.set(T),C})(f),m=new Uint8Array(t.BLOCK_SIZE);m.set(b);for(var S=0;S<t.BLOCK_SIZE;S++)b[S]^=54,m[S]^=92;for(this.hash.update(b),this.outer.update(m),S=0;S<b.byteLength;S++)b[S]=0}}return d.prototype.update=function(f){if(!(0,o.isEmptyData)(f)&&!this.error)try{this.hash.update((0,o.convertToBuffer)(f))}catch(b){this.error=b}},d.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},d.prototype.digest=function(){return(0,e.__awaiter)(this,void 0,void 0,function(){return(0,e.__generator)(this,function(f){return[2,this.digestSync()]})})},d})();return jsSha256.Sha256=c,jsSha256}function requireBuild(){return hasRequiredBuild||(hasRequiredBuild=1,e=build$1,Object.defineProperty(e,"__esMo
164dule",{value:!0}),(0,require$$0$2.__exportStar)(requireJsSha256(),e)),build$1;var e}var buildExports=requireBuild(),dbits;function BigInteger(e,t){e!=null&&this.fromString(e,t)}function nbi(){return new BigInteger(null)}var canary=0xdeadbeefcafe,j_lm=(16777215&canary)==15715070;function am1(e,t,r,o,c,d){for(;--d>=0;){var f=t*this[e++]+r[o]+c;c=Math.floor(f/67108864),r[o++]=67108863&f}return c}function am2(e,t,r,o,c,d){for(var f=32767&t,b=t>>15;--d>=0;){var m=32767&this[e],S=this[e++]>>15,w=b*m+S*f;c=((m=f*m+((32767&w)<<15)+r[o]+(1073741823&c))>>>30)+(w>>>15)+b*S+(c>>>30),r[o++]=1073741823&m}return c}function am3(e,t,r,o,c,d){for(var f=16383&t,b=t>>14;--d>=0;){var m=16383&this[e],S=this[e++]>>14,w=b*m+S*f;c=((m=f*m+((16383&w)<<14)+r[o]+c)>>28)+(w>>14)+b*S,r[o++]=268435455&m}return c}var inBrowser=typeof navigator<"u";inBrowser&&j_lm&&navigator.appName=="Microsoft Internet Explorer"?(BigInteger.prototype.am=am2,dbits=30):inBrowser&&j_lm&&navigator.appName!="Netscape"?(BigInteger.prototype.am=am1,dbits=26):(BigInteger.prototype.am=am3,dbits=28),BigInteger.prototype.DB=dbits,BigInteger.prototype.DM=(1<<dbits)-1,BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP),BigInteger.prototype.F1=BI_FP-dbits,BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz",BI_RC=new Array,rr,vv;for(rr=48,vv=0;vv<=9;++vv)BI_RC[rr++]=vv;for(rr=97,vv=10;vv<36;++vv)BI_RC[rr++]=vv;for(rr=65,vv=10;vv<36;++vv)BI_RC[rr++]=vv;function int2char(e){return BI_RM.charAt(e)}function intAt(e,t){var r=BI_RC[e.charCodeAt(t)];return r??-1}function bnpCopyTo(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function bnpFromInt(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function nbv(e){var t=nbi();return t.fromInt(e),t}function bnpFromString(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else{if(t!=4)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");r=2}this.t=0,this.s=0;for(var o=e.length,c=!1,d=0;--o>=0;){var f=intAt(e,o);f<0?e.charAt(o)=="-"&&(c=!0):(c=!1,d==0?this[this.t++]=f:d+r>this.DB?(this[this.t-1]|=(f&(1<<this.DB-d)-1)<<d,this[this.t++]=f>>this.DB-d):this[this.t-1]|=f<<d,(d+=r)>=this.DB&&(d-=this.DB))}this.clamp(),c&&BigInteger.ZERO.subTo(this,this)}function bnpClamp(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else{if(e!=4)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var r,o=(1<<t)-1,c=!1,d="",f=this.t,b=this.DB-f*this.DB%t;if(f-- >0)for(b<this.DB&&(r=this[f]>>b)>0&&(c=!0,d=int2char(r));f>=0;)b<t?(r=(this[f]&(1<<b)-1)<<t-b,r|=this[--f]>>(b+=this.DB-t)):(r=this[f]>>(b-=t)&o,b<=0&&(b+=this.DB,--f)),r>0&&(c=!0),c&&(d+=int2char(r));return c?d:"0"}function bnNegate(){var e=nbi();return BigInteger.ZERO.subTo(this,e),e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if((t=r-e.t)!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0}function nbits(e){var t,r=1;return(t=e>>>16)!=0&&(e=t,r+=16),(t=e>>8)!=0&&(e=t,r+=8),(t=e>>4)!=0&&(e=t,r+=4),(t=e>>2)!=0&&(e=t,r+=2),(t=e>>1)!=0&&(e=t,r+=1),r}function bnBitLength(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}function bnpDRShiftTo(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s}function bnpLShiftTo(e,t){var r,o=e%this.DB,c=this.DB-o,d=(1<<c)-1,f=Math.floor(e/this.DB),b=this.s<<o&this.DM;for(r=this.t-1;r>=0;--r)t[r+f+1]=this[r]>>c|b,b=(this[r]&d)<<o;for(r=f-1;r>=0;--r)t[r]=0;t[f]=b,t.t=this.t+f+1,t.s=this.s,t.clamp()}function bnpRShiftTo(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var o=e%this.DB,c=this.DB-o,d=(1<<o)-1;t[0]=this[r]>>o;for(var f=r+1;f<this.t;++f)t[f-r-1]|=(this[f]&d)<<c,t[f-r]=this[f]>>o;o>0&&(t[this.t-r-1]|=(this.s&d)<<c),t.t=this.t-r,t.clamp()}}function bnpSubTo(e,t){for(var r=0,o=0,c=Math.min(e.t,this.t);r<c;)o+=this[r]-e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o-=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o-=e[r],t[r++]=o&this.DM,o>>=this.DB;o-=e.s}t.s=o<0?-1:0,o<-1?t[r++]=this.DV+o:o>0&&(t[r++]=o),t.t=r,t.clamp()}function bnpMultiplyTo(e,t){var r=this.abs(),o=e.abs(),c=r.t;for(t.t=c+o.t;--c>=0;)t[c]=0;for(c=0;c<o.t;++c)t[c+r.t]=r.am(0,o[c],t,c,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&BigInteger.ZERO.subTo(t,t)}function bnpSquareTo(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var o=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,o,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()}function bnpDivRemTo(e,t,r){var o=e.abs();if(!(o.t<=0)){var c=this.abs();if(c.t<o.t)return t!=null&&t.fromInt(0),void(r!=null&&this.copyTo(r));r==null&&(r=nbi());var d=nbi(),f=this.s,b=e.s,m=this.DB-nbits(o[o.t-1]);m>0?(o.lShiftTo(m,d),c.lShiftTo(m,r)):(o.copyTo(d),c.copyTo(r));var S=d.t,w=d[S-1];if(w!=0){var T=w*(1<<this.F1)+(S>1?d[S-2]>>this.F2:0),A=this.FV/T,C=(1<<this.F1)/T,P=1<<this.F2,B=r.t,U=B-S,D=t??nbi();for(d.dlShiftTo(U,D),r.compareTo(D)>=0&&(r[r.t++]=1,r.subTo(D,r)),BigInteger.ONE.dlShiftTo(S,D),D.subTo(d,d);d.t<S;)d[d.t++]=0;for(;--U>=0;){var $=r[--B]==w?this.DM:Math.floor(r[B]*A+(r[B-1]+P)*C);if((r[B]+=d.am(0,$,r,U,0,S))<$)for(d.dlShiftTo(U,D),r.subTo(D,r);r[B]<--$;)r.subTo(D,r)}t!=null&&(r.drShiftTo(S,t),f!=b&&BigInteger.ZERO.subTo(t,t)),r.t=S,r.clamp(),m>0&&r.rShiftTo(m,r),f<0&&BigInteger.ZERO.subTo(r,r)}}}function bnMod(e){var t=nbi();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(BigInteger.ZERO)>0&&e.subTo(t,t),t}function bnpInvDigit(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;
164return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t}function bnEquals(e){return this.compareTo(e)==0}function bnpAddTo(e,t){for(var r=0,o=0,c=Math.min(e.t,this.t);r<c;)o+=this[r]+e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o+=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o+=e[r],t[r++]=o&this.DM,o>>=this.DB;o+=e.s}t.s=o<0?-1:0,o>0?t[r++]=o:o<-1&&(t[r++]=this.DV+o),t.t=r,t.clamp()}function bnAdd(e){var t=nbi();return this.addTo(e,t),t}function bnSubtract(e){var t=nbi();return this.subTo(e,t),t}function bnMultiply(e){var t=nbi();return this.multiplyTo(e,t),t}function bnDivide(e){var t=nbi();return this.divRemTo(e,t,null),t}function Montgomery(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function montConvert(e){var t=nbi();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(BigInteger.ZERO)>0&&this.m.subTo(t,t),t}function montRevert(e){var t=nbi();return e.copyTo(t),this.reduce(t),t}function montReduce(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],o=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,o,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function montSqrTo(e,t){e.squareTo(t),this.reduce(t)}function montMulTo(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function bnModPow(e,t,r){var o,c=e.bitLength(),d=nbv(1),f=new Montgomery(t);if(c<=0)return d;o=c<18?1:c<48?3:c<144?4:c<768?5:6;var b=new Array,m=3,S=o-1,w=(1<<o)-1;if(b[1]=f.convert(this),o>1){var T=nbi();for(f.sqrTo(b[1],T);m<=w;)b[m]=nbi(),f.mulTo(T,b[m-2],b[m]),m+=2}var A,C,P=e.t-1,B=!0,U=nbi();for(c=nbits(e[P])-1;P>=0;){for(c>=S?A=e[P]>>c-S&w:(A=(e[P]&(1<<c+1)-1)<<S-c,P>0&&(A|=e[P-1]>>this.DB+c-S)),m=o;!(1&A);)A>>=1,--m;if((c-=m)<0&&(c+=this.DB,--P),B)b[A].copyTo(d),B=!1;else{for(;m>1;)f.sqrTo(d,U),f.sqrTo(U,d),m-=2;m>0?f.sqrTo(d,U):(C=d,d=U,U=C),f.mulTo(U,b[A],d)}for(;P>=0&&!(e[P]&1<<c);)f.sqrTo(d,U),C=d,d=U,U=C,--c<0&&(c=this.DB-1,--P)}var D=f.revert(d);return r(null,D),D}/*!
165 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
166 * SPDX-License-Identifier: Apache-2.0
167 */function randomBytes(e){return bufferExports$1.Buffer.from(new WordArray().random(e).toString(),"hex")}Montgomery.prototype.convert=montConvert,Montgomery.prototype.revert=montRevert,Montgomery.prototype.reduce=montReduce,Montgomery.prototype.mulTo=montMulTo,Montgomery.prototype.sqrTo=montSqrTo,BigInteger.prototype.copyTo=bnpCopyTo,BigInteger.prototype.fromInt=bnpFromInt,BigInteger.prototype.fromString=bnpFromString,BigInteger.prototype.clamp=bnpClamp,BigInteger.prototype.dlShiftTo=bnpDLShiftTo,BigInteger.prototype.drShiftTo=bnpDRShiftTo,BigInteger.prototype.lShiftTo=bnpLShiftTo,BigInteger.prototype.rShiftTo=bnpRShiftTo,BigInteger.prototype.subTo=bnpSubTo,BigInteger.prototype.multiplyTo=bnpMultiplyTo,BigInteger.prototype.squareTo=bnpSquareTo,BigInteger.prototype.divRemTo=bnpDivRemTo,BigInteger.prototype.invDigit=bnpInvDigit,BigInteger.prototype.addTo=bnpAddTo,BigInteger.prototype.toString=bnToString,BigInteger.prototype.negate=bnNegate,BigInteger.prototype.abs=bnAbs,BigInteger.prototype.compareTo=bnCompareTo,BigInteger.prototype.bitLength=bnBitLength,BigInteger.prototype.mod=bnMod,BigInteger.prototype.equals=bnEquals,BigInteger.prototype.add=bnAdd,BigInteger.prototype.subtract=bnSubtract,BigInteger.prototype.multiply=bnMultiply,BigInteger.prototype.divide=bnDivide,BigInteger.prototype.modPow=bnModPow,BigInteger.ZERO=nbv(0),BigInteger.ONE=nbv(1);var HEX_MSB_REGEX=/^[89a-f]/i,initN="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",newPasswordRequiredChallengeUserAttributePrefix="userAttributes.",AuthenticationHelper=(function(){function e(r){this.N=new BigInteger(initN,16),this.g=new BigInteger("2",16),this.k=new BigInteger(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=bufferExports$1.Buffer.from("Caldera Derived Key","utf8"),this.poolName=r}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(r){var o=this;this.largeAValue?r(null,this.largeAValue):this.calculateA(this.smallAValue,function(c,d){c&&r(c,null),o.largeAValue=d,r(null,o.largeAValue)})},t.generateRandomSmallA=function(){return new BigInteger(randomBytes(128).toString("hex"),16)},t.generateRandomString=function(){return randomBytes(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(r,o,c){var d=this;this.randomPassword=this.generateRandomString();var f=""+r+o+":"+this.randomPassword,b=this.hash(f),m=randomBytes(16).toString("hex");this.SaltToHashDevices=this.padHex(new BigInteger(m,16)),this.g.modPow(new BigInteger(this.hexHash(this.SaltToHashDevices+b),16),this.N,function(S,w){S&&c(S,null),d.verifierDevices=d.padHex(w),c(null,null)})},t.calculateA=function(r,o){var c=this;this.g.modPow(r,this.N,function(d,f){d&&o(d,null),f.mod(c.N).equals(BigInteger.ZERO)&&o(new Error("Illegal paramater. A mod N cannot be 0."),null),o(null,f)})},t.calculateU=function(r,o){return this.UHexHash=this.hexHash(this.padHex(r)+this.padHex(o)),new BigInteger(this.UHexHash,16)},t.hash=function(r){var o=new buildExports.Sha256;o.update(r);var c=o.digestSync(),d=bufferExports$1.Buffer.from(c).toString("hex");return new Array(64-d.length).join("0")+d},t.hexHash=function(r){return this.hash(bufferExports$1.Buffer.from(r,"hex"))},t.computehkdf=function(r,o){var c=bufferExports$1.Buffer.concat([this.infoBits,bufferExports$1.Buffer.from("�","utf8")]),d=new buildExports.Sha256(o);d.update(r);var f=d.digestSync(),b=new buildExports.Sha256(f);return b.update(c),b.digestSync().slice(0,16)},t.getPasswordAuthenticationKey=function(r,o,c,d,f){var b=this;if(c.mod(this.N).equals(BigInteger.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,c),this.UValue.equals(BigInteger.ZERO))throw new Error("U cannot be zero.");var m=""+this.poolName+r+":"+o,S=this.hash(m),w=new BigInteger(this.hexHash(this.padHex(d)+S),16);this.calculateS(w,c,function(T,A){T&&f(T,null);var C=b.computehkdf(bufferExports$1.Buffer.from(b.padHex(A),"hex"),bufferExports$1.Buffer.from(b.padHex(b.UValue),"hex"));f(null,C)})},t.calculateS=function(r,o,c){var d=this;this.g.modPow(r,this.N,function(f,b){f&&c(f,null),o.subtract(d.k.multiply(b)).modPow(d.smallAValue.add(d.UValue.multiply(r)),d.N,function(m,S){m&&c(m,null),c(null,S.mod(d.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return newPasswordRequiredChallengeUserAttributePrefix},t.padHex=function(r){if(!(r instanceof BigInteger))throw new Error("Not a BigInteger");var o=r.compareTo(BigInteger.ZERO)<0,c=r.abs().toString(16);if(c=c.length%2!=0?"0"+c:c,c=HEX_MSB_REGEX.test(c)?"00"+c:c,o){var d=c.split("").map(function(f){var b=15&~parseInt(f,16);return"0123456789ABCDEF".charAt(b)}).join("");(c=new BigInteger(d,16).add(BigInteger.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(c=c.substring(2))}return c},e})(),CognitoJwtToken=(function(){function e(r){this.jwtToken=r||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var r=this.jwtToken.split(".")[1];try{return JSON.parse(bufferExports$1.Buffer.from(r,"base64").toString("utf8"))}catch{return{}}},e})();function _inheritsLoose$2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf$2(e,t)}function _setPrototypeOf$2(e,t){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_setPrototypeOf$2(e,t)}var CognitoAccessToken=(function(e){function t(r){var o=(r===void 0?{}:r).AccessToken;return e.call(this,o||"")||this}return _inheritsLoose$2(t,e),t})(CognitoJwtToken);function _inheritsLoose$1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf$1(e,t)}function _setPrototypeOf$1(e,t){return _setPrototypeOf$1=Object.
167setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_setPrototypeOf$1(e,t)}var CognitoIdToken=(function(e){function t(r){var o=(r===void 0?{}:r).IdToken;return e.call(this,o||"")||this}return _inheritsLoose$1(t,e),t})(CognitoJwtToken),CognitoRefreshToken=(function(){function e(t){var r=(t===void 0?{}:t).RefreshToken;this.token=r||""}return e.prototype.getToken=function(){return this.token},e})(),version$1="5.0.4",BASE_USER_AGENT="aws-amplify/"+version$1,Platform={userAgent:BASE_USER_AGENT,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},getUserAgent=function(){return Platform.userAgent},CognitoUserSession=(function(){function e(r){var o=r===void 0?{}:r,c=o.IdToken,d=o.RefreshToken,f=o.AccessToken,b=o.ClockDrift;if(f==null||c==null)throw new Error("Id token and Access Token must be present.");this.idToken=c,this.refreshToken=d,this.accessToken=f,this.clockDrift=b===void 0?this.calculateClockDrift():b}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var r=Math.floor(new Date/1e3)-this.clockDrift;return r<this.accessToken.getExpiration()&&r<this.idToken.getExpiration()},e})(),monthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],DateHelper=(function(){function e(){}return e.prototype.getNowString=function(){var t=new Date,r=weekNames[t.getUTCDay()],o=monthNames[t.getUTCMonth()],c=t.getUTCDate(),d=t.getUTCHours();d<10&&(d="0"+d);var f=t.getUTCMinutes();f<10&&(f="0"+f);var b=t.getUTCSeconds();return b<10&&(b="0"+b),r+" "+o+" "+c+" "+d+":"+f+":"+b+" UTC "+t.getUTCFullYear()},e})(),CognitoUserAttribute=(function(){function e(r){var o=r===void 0?{}:r,c=o.Name,d=o.Value;this.Name=c||"",this.Value=d||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(r){return this.Value=r,this},t.getName=function(){return this.Name},t.setName=function(r){return this.Name=r,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e})(),dataMemory={},MemoryStorage=(function(){function e(){}return e.setItem=function(t,r){return dataMemory[t]=r,dataMemory[t]},e.getItem=function(t){return Object.prototype.hasOwnProperty.call(dataMemory,t)?dataMemory[t]:void 0},e.removeItem=function(t){return delete dataMemory[t]},e.clear=function(){return dataMemory={}},e})(),StorageHelper=(function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=MemoryStorage}}return e.prototype.getStorage=function(){return this.storageWindow},e})(),isNavigatorAvailable=typeof navigator<"u",userAgent=isNavigatorAvailable?Platform.isReactNative?"react-native":navigator.userAgent:"nodejs",CognitoUser=(function(){function e(r){if(r==null||r.Username==null||r.Pool==null)throw new Error("Username and Pool information are required.");this.username=r.Username||"",this.pool=r.Pool,this.Session=null,this.client=r.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=r.Storage||new StorageHelper().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(r){this.clearCachedUserData(),this.signInUserSession=r,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(r){this.authenticationFlowType=r},t.initiateAuth=function(r,o){var c=this,d=r.getAuthParameters();d.USERNAME=this.username;var f=Object.keys(r.getValidationData()).length!==0?r.getValidationData():r.getClientMetadata(),b={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:f};this.getUserContextData()&&(b.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",b,function(m,S){if(m)return o.onFailure(m);var w=S.ChallengeName,T=S.ChallengeParameters;return w==="CUSTOM_CHALLENGE"?(c.Session=S.Session,o.customChallenge(T)):(c.signInUserSession=c.getCognitoUserSession(S.AuthenticationResult),c.cacheTokens(),o.onSuccess(c.signInUserSession))})},t.authenticateUser=function(r,o){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(r,o):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(r,o):o.onFailure(new Error("Authentication flow type is invali
167d."))},t.authenticateUserDefaultAuth=function(r,o){var c,d,f=this,b=new AuthenticationHelper(this.pool.getUserPoolName()),m=new DateHelper,S={};this.deviceKey!=null&&(S.DEVICE_KEY=this.deviceKey),S.USERNAME=this.username,b.getLargeAValue(function(w,T){w&&o.onFailure(w),S.SRP_A=T.toString(16),f.authenticationFlowType==="CUSTOM_AUTH"&&(S.CHALLENGE_NAME="SRP_A");var A=Object.keys(r.getValidationData()).length!==0?r.getValidationData():r.getClientMetadata(),C={AuthFlow:f.authenticationFlowType,ClientId:f.pool.getClientId(),AuthParameters:S,ClientMetadata:A};f.getUserContextData(f.username)&&(C.UserContextData=f.getUserContextData(f.username)),f.client.request("InitiateAuth",C,function(P,B){if(P)return o.onFailure(P);var U=B.ChallengeParameters;f.username=U.USER_ID_FOR_SRP,f.userDataKey=f.keyPrefix+"."+f.username+".userData",c=new BigInteger(U.SRP_B,16),d=new BigInteger(U.SALT,16),f.getCachedDeviceKeyAndPassword(),b.getPasswordAuthenticationKey(f.username,r.getPassword(),c,d,function(D,$){D&&o.onFailure(D);var z=m.getNowString(),V=bufferExports$1.Buffer.concat([bufferExports$1.Buffer.from(f.pool.getUserPoolName(),"utf8"),bufferExports$1.Buffer.from(f.username,"utf8"),bufferExports$1.Buffer.from(U.SECRET_BLOCK,"base64"),bufferExports$1.Buffer.from(z,"utf8")]),F=new buildExports.Sha256($);F.update(V);var ee=F.digestSync(),te=bufferExports$1.Buffer.from(ee).toString("base64"),K={};K.USERNAME=f.username,K.PASSWORD_CLAIM_SECRET_BLOCK=U.SECRET_BLOCK,K.TIMESTAMP=z,K.PASSWORD_CLAIM_SIGNATURE=te,f.deviceKey!=null&&(K.DEVICE_KEY=f.deviceKey);var H=function(J,G){return f.client.request("RespondToAuthChallenge",J,function(Q,pe){return Q&&Q.code==="ResourceNotFoundException"&&Q.message.toLowerCase().indexOf("device")!==-1?(K.DEVICE_KEY=null,f.deviceKey=null,f.randomPassword=null,f.deviceGroupKey=null,f.clearCachedDeviceKeyAndPassword(),H(J,G)):G(Q,pe)})},X={ChallengeName:"PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:K,Session:B.Session,ClientMetadata:A};f.getUserContextData()&&(X.UserContextData=f.getUserContextData()),H(X,function(J,G){return J?o.onFailure(J):f.authenticateUserInternal(G,b,o)})})})})},t.authenticateUserPlainUsernamePassword=function(r,o){var c=this,d={};if(d.USERNAME=this.username,d.PASSWORD=r.getPassword(),d.PASSWORD){var f=new AuthenticationHelper(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(d.DEVICE_KEY=this.deviceKey);var b=Object.keys(r.getValidationData()).length!==0?r.getValidationData():r.getClientMetadata(),m={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:b};this.getUserContextData(this.username)&&(m.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",m,function(S,w){return S?o.onFailure(S):c.authenticateUserInternal(w,f,o)})}else o.onFailure(new Error("PASSWORD parameter is required"))},t.authenticateUserInternal=function(r,o,c){var d=this,f=r.ChallengeName,b=r.ChallengeParameters;if(f==="SMS_MFA")return this.Session=r.Session,c.mfaRequired(f,b);if(f==="SELECT_MFA_TYPE")return this.Session=r.Session,c.selectMFAType(f,b);if(f==="MFA_SETUP")return this.Session=r.Session,c.mfaSetup(f,b);if(f==="SOFTWARE_TOKEN_MFA")return this.Session=r.Session,c.totpRequired(f,b);if(f==="CUSTOM_CHALLENGE")return this.Session=r.Session,c.customChallenge(b);if(f==="NEW_PASSWORD_REQUIRED"){this.Session=r.Session;var m=null,S=null,w=[],T=o.getNewPasswordRequiredChallengeUserAttributePrefix();if(b&&(m=JSON.parse(r.ChallengeParameters.userAttributes),S=JSON.parse(r.ChallengeParameters.requiredAttributes)),S)for(var A=0;A<S.length;A++)w[A]=S[A].substr(T.length);return c.newPasswordRequired(m,w)}if(f==="DEVICE_SRP_AUTH")return this.Session=r.Session,void this.getDeviceResponse(c);this.signInUserSession=this.getCognitoUserSession(r.AuthenticationResult),this.challengeName=f,this.cacheTokens();var C=r.AuthenticationResult.NewDeviceMetadata;if(C==null)return c.onSuccess(this.signInUserSession);o.generateHashDevice(r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,r.AuthenticationResult.
167NewDeviceMetadata.DeviceKey,function(P){if(P)return c.onFailure(P);var B={Salt:bufferExports$1.Buffer.from(o.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:bufferExports$1.Buffer.from(o.getVerifierDevices(),"hex").toString("base64")};d.verifierDevices=B.PasswordVerifier,d.deviceGroupKey=C.DeviceGroupKey,d.randomPassword=o.getRandomPassword(),d.client.request("ConfirmDevice",{DeviceKey:C.DeviceKey,AccessToken:d.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:B,DeviceName:userAgent},function(U,D){return U?c.onFailure(U):(d.deviceKey=r.AuthenticationResult.NewDeviceMetadata.DeviceKey,d.cacheDeviceKeyAndPassword(),D.UserConfirmationNecessary===!0?c.onSuccess(d.signInUserSession,D.UserConfirmationNecessary):c.onSuccess(d.signInUserSession))})})},t.completeNewPasswordChallenge=function(r,o,c,d){var f=this;if(!r)return c.onFailure(new Error("New password is required."));var b=new AuthenticationHelper(this.pool.getUserPoolName()),m=b.getNewPasswordRequiredChallengeUserAttributePrefix(),S={};o&&Object.keys(o).forEach(function(T){S[m+T]=o[T]}),S.NEW_PASSWORD=r,S.USERNAME=this.username;var w={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:S,Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(w.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",w,function(T,A){return T?c.onFailure(T):f.authenticateUserInternal(A,b,c)})},t.getDeviceResponse=function(r,o){var c=this,d=new AuthenticationHelper(this.deviceGroupKey),f=new DateHelper,b={};b.USERNAME=this.username,b.DEVICE_KEY=this.deviceKey,d.getLargeAValue(function(m,S){m&&r.onFailure(m),b.SRP_A=S.toString(16);var w={ChallengeName:"DEVICE_SRP_AUTH",ClientId:c.pool.getClientId(),ChallengeResponses:b,ClientMetadata:o,Session:c.Session};c.getUserContextData()&&(w.UserContextData=c.getUserContextData()),c.client.request("RespondToAuthChallenge",w,function(T,A){if(T)return r.onFailure(T);var C=A.ChallengeParameters,P=new BigInteger(C.SRP_B,16),B=new BigInteger(C.SALT,16);d.getPasswordAuthenticationKey(c.deviceKey,c.randomPassword,P,B,function(U,D){if(U)return r.onFailure(U);var $=f.getNowString(),z=bufferExports$1.Buffer.concat([bufferExports$1.Buffer.from(c.deviceGroupKey,"utf8"),bufferExports$1.Buffer.from(c.deviceKey,"utf8"),bufferExports$1.Buffer.from(C.SECRET_BLOCK,"base64"),bufferExports$1.Buffer.from($,"utf8")]),V=new buildExports.Sha256(D);V.update(z);var F=V.digestSync(),ee=bufferExports$1.Buffer.from(F).toString("base64"),te={};te.USERNAME=c.username,te.PASSWORD_CLAIM_SECRET_BLOCK=C.SECRET_BLOCK,te.TIMESTAMP=$,te.PASSWORD_CLAIM_SIGNATURE=ee,te.DEVICE_KEY=c.deviceKey;var K={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:c.pool.getClientId(),ChallengeResponses:te,Session:A.Session};c.getUserContextData()&&(K.UserContextData=c.getUserContextData()),c.client.request("RespondToAuthChallenge",K,function(H,X){return H?r.onFailure(H):(c.signInUserSession=c.getCognitoUserSession(X.AuthenticationResult),c.cacheTokens(),r.onSuccess(c.signInUserSession))})})})})},t.confirmRegistration=function(r,o,c,d){var f={ClientId:this.pool.getClientId(),ConfirmationCode:r,Username:this.username,ForceAliasCreation:o,ClientMetadata:d};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",f,function(b){return b?c(b,null):c(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(r,o,c){var d=this,f={};f.USERNAME=this.username,f.ANSWER=r;var b=new AuthenticationHelper(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(f.DEVICE_KEY=this.deviceKey);var m={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:c};this.getUserContextData()&&(m.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",m,function(S,w){return S?o.onFailure(S):d.authenticateUserInternal(w,b,o)})},t.sendMFACode=function(r,o,c,d){var f=this,b={};b.USERNAME=this.username,b.SMS_MFA_CODE=r;var m=c||"SMS_MFA";m==="SOFTWARE_TOKEN_MFA"&&(b.SOFTWARE_TOKEN_MFA_CODE=r),this.deviceKey!=null&&(b.DEVICE_KEY=this.deviceKey);var S={ChallengeName:m,ChallengeResponses:b,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(S.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",S,function(w,T){if(w)return o.onFailure(w);if(T.ChallengeName!=="DEVICE_SRP_AUTH"){if(f.signInUserSession=f.getCognitoUserSession(T.AuthenticationResult),f.cac
167heTokens(),T.AuthenticationResult.NewDeviceMetadata==null)return o.onSuccess(f.signInUserSession);var A=new AuthenticationHelper(f.pool.getUserPoolName());A.generateHashDevice(T.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,T.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(C){if(C)return o.onFailure(C);var P={Salt:bufferExports$1.Buffer.from(A.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:bufferExports$1.Buffer.from(A.getVerifierDevices(),"hex").toString("base64")};f.verifierDevices=P.PasswordVerifier,f.deviceGroupKey=T.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,f.randomPassword=A.getRandomPassword(),f.client.request("ConfirmDevice",{DeviceKey:T.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:f.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:P,DeviceName:userAgent},function(B,U){return B?o.onFailure(B):(f.deviceKey=T.AuthenticationResult.NewDeviceMetadata.DeviceKey,f.cacheDeviceKeyAndPassword(),U.UserConfirmationNecessary===!0?o.onSuccess(f.signInUserSession,U.UserConfirmationNecessary):o.onSuccess(f.signInUserSession))})})}else f.getDeviceResponse(o)})},t.changePassword=function(r,o,c,d){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:r,ProposedPassword:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:d},function(f){return f?c(f,null):c(null,"SUCCESS")})},t.enableMFA=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);var o=[];o.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c){return c?r(c,null):r(null,"SUCCESS")})},t.setUserMfaPreference=function(r,o,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:r,SoftwareTokenMfaSettings:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?c(d,null):c(null,"SUCCESS")})},t.disableMFA=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o){return o?r(o,null):r(null,"SUCCESS")})},t.deleteUser=function(r,o){var c=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:o},function(d){return d?r(d,null):(c.clearCachedUser(),r(null,"SUCCESS"))})},t.updateAttributes=function(r,o,c){var d=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return o(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:r,ClientMetadata:c},function(f,b){return f?o(f,null):d.getUserData(function(){return o(null,"SUCCESS",b)},{bypassCache:!0})})},t.getUserAttributes=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o,c){if(o)return r(o,null);for(var d=[],f=0;f<c.UserAttributes.length;f++){var b={Name:c.UserAttributes[f].Name,Value:c.UserAttributes[f].Value},m=new CognitoUserAttribute(b);d.push(m)}return r(null,d)})},t.getMFAOptions=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(o,c){return o?r(o,null):r(null,c.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(r){var o=this;return r===void 0&&(r={}),new Promise(function(c){var d=o.signInUserSession.getRefreshToken();d&&d.getToken()?o.refreshSession(d,c,r.clientMetadata):c()})},t.getUserData=function(r,o){var c=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return this.clearCachedUserData(),r(new Error("User is not authenticated"),null);
167var d=this.getUserDataFromCache();if(d)if(this.isFetchUserDataAndTokenRequired(o))this.fetchUserData().then(function(f){return c.refreshSessionIfPossible(o).then(function(){return f})}).then(function(f){return r(null,f)}).catch(r);else try{return void r(null,JSON.parse(d))}catch(f){return this.clearCachedUserData(),void r(f,null)}else this.fetchUserData().then(function(f){r(null,f)}).catch(r)},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(r){var o=(r||{}).bypassCache;return o!==void 0&&o},t.fetchUserData=function(){var r=this;return this.createGetUserRequest().then(function(o){return r.cacheUserData(o),o})},t.deleteAttributes=function(r,o){var c=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return o(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:r,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?o(d,null):c.getUserData(function(){return o(null,"SUCCESS")},{bypassCache:!0})})},t.resendConfirmationCode=function(r,o){var c={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:o};this.client.request("ResendConfirmationCode",c,function(d,f){return d?r(d,null):r(null,f)})},t.getSession=function(r,o){if(o===void 0&&(o={}),this.username==null)return r(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return r(null,this.signInUserSession);var c="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,d=c+".idToken",f=c+".accessToken",b=c+".refreshToken",m=c+".clockDrift";if(this.storage.getItem(d)){var S=new CognitoIdToken({IdToken:this.storage.getItem(d)}),w=new CognitoAccessToken({AccessToken:this.storage.getItem(f)}),T=new CognitoRefreshToken({RefreshToken:this.storage.getItem(b)}),A=parseInt(this.storage.getItem(m),0)||0,C=new CognitoUserSession({IdToken:S,AccessToken:w,RefreshToken:T,ClockDrift:A});if(C.isValid())return this.signInUserSession=C,r(null,this.signInUserSession);if(!T.getToken())return r(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(T,r,o.clientMetadata)}else r(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(r,o,c){var d=this,f=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(o):o,b={};b.REFRESH_TOKEN=r.getToken();var m="CognitoIdentityServiceProvider."+this.pool.getClientId(),S=m+".LastAuthUser";if(this.storage.getItem(S)){this.username=this.storage.getItem(S);var w=m+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(w),b.DEVICE_KEY=this.deviceKey}var T={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:b,ClientMetadata:c};this.getUserContextData()&&(T.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",T,function(A,C){if(A)return A.code==="NotAuthorizedException"&&d.clearCachedUser(),f(A,null);if(C){var P=C.AuthenticationResult;return Object.prototype.hasOwnProperty.call(P,"RefreshToken")||(P.RefreshToken=r.getToken()),d.signInUserSession=d.getCognitoUserSession(P),d.cacheTokens(),f(null,d.signInUserSession)}})},t.cacheTokens=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId(),o=r+"."+this.username+".idToken",c=r+"."+this.username+".accessToken",d=r+"."+this.username+".refreshToken",f=r+"."+this.username+".clockDrift",b=r+".LastAuthUser";this.storage.setItem(o,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(c,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(d,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(f,""+this.signInUserSession.getClockDrift()),this.storage.setItem(b,this.username)},t.cacheUserData=function(r){this.storage.setItem(this.userDataKey,JSON.stringify(r))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()}
167,t.cacheDeviceKeyAndPassword=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,o=r+".deviceKey",c=r+".randomPasswordKey",d=r+".deviceGroupKey";this.storage.setItem(o,this.deviceKey),this.storage.setItem(c,this.randomPassword),this.storage.setItem(d,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,o=r+".deviceKey",c=r+".randomPasswordKey",d=r+".deviceGroupKey";this.storage.getItem(o)&&(this.deviceKey=this.storage.getItem(o),this.randomPassword=this.storage.getItem(c),this.deviceGroupKey=this.storage.getItem(d))},t.clearCachedDeviceKeyAndPassword=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,o=r+".deviceKey",c=r+".randomPasswordKey",d=r+".deviceGroupKey";this.storage.removeItem(o),this.storage.removeItem(c),this.storage.removeItem(d)},t.clearCachedTokens=function(){var r="CognitoIdentityServiceProvider."+this.pool.getClientId(),o=r+"."+this.username+".idToken",c=r+"."+this.username+".accessToken",d=r+"."+this.username+".refreshToken",f=r+".LastAuthUser",b=r+"."+this.username+".clockDrift";this.storage.removeItem(o),this.storage.removeItem(c),this.storage.removeItem(d),this.storage.removeItem(f),this.storage.removeItem(b)},t.getCognitoUserSession=function(r){var o=new CognitoIdToken(r),c=new CognitoAccessToken(r),d=new CognitoRefreshToken(r);return new CognitoUserSession({IdToken:o,AccessToken:c,RefreshToken:d})},t.forgotPassword=function(r,o){var c={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:o};this.getUserContextData()&&(c.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",c,function(d,f){return d?r.onFailure(d):typeof r.inputVerificationCode=="function"?r.inputVerificationCode(f):r.onSuccess(f)})},t.confirmPassword=function(r,o,c,d){var f={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:r,Password:o,ClientMetadata:d};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",f,function(b){return b?c.onFailure(b):c.onSuccess("SUCCESS")})},t.getAttributeVerificationCode=function(r,o,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:r,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:c},function(d,f){return d?o.onFailure(d):typeof o.inputVerificationCode=="function"?o.inputVerificationCode(f):o.onSuccess("SUCCESS")})},t.verifyAttribute=function(r,o,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:r,Code:o,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?c.onFailure(d):c.onSuccess("SUCCESS")})},t.getDevice=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(o,c){return o?r.onFailure(o):r.onSuccess(c)})},t.forgetSpecificDevice=function(r,o){if(this.signInUserSession==null||!this.signInUserSession.isValid())return o.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:r},function(c){return c?o.onFailure(c):o.onSuccess("SUCCESS")})},t.forgetDevice=function(r){var o=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:r.onFailure,onSuccess:function(c){return o.deviceKey=null,o.deviceGroupKey=null,o.randomPassword=null,o.clearCachedDeviceKeyAndPassword(),r.onSuccess(c)}})},t.setDeviceStatusRemembered=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(o){return o?r.onFailure(o):r.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(r){if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(o){return o?r.onFailure(o):r.onSuccess("SUCCESS")})},t.listDevices=function(r,o,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));var d={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:r};o&&(d.PaginationToken=o),this.client.request("ListDevices",d,function(f,b){return f?c.onFailure(f):c.onSuccess(b)})},t.globalSignOut=function(r){var o=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return r.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c){return c?r.onFailure(c):(o.clearCachedUser(),r.onSuccess("SUCCESS"))})},t.signOut=function(r){var o=this;
167r&&typeof r=="function"?this.getSession(function(c,d){if(c)return r(c);o.revokeTokens(function(f){o.cleanClientData(),r(f)})}):this.cleanClientData()},t.revokeTokens=function(r){if(r===void 0&&(r=function(){}),typeof r!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession)return r(new Error("User is not authenticated"));if(!this.signInUserSession.getAccessToken())return r(new Error("No Access token available"));var o=this.signInUserSession.getRefreshToken().getToken(),c=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(c)&&o)return this.revokeToken({token:o,callback:r});r()},t.isSessionRevocable=function(r){if(r&&typeof r.decodePayload=="function")try{return!!r.decodePayload().origin_jti}catch{}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(r){var o=r.token,c=r.callback;this.client.requestWithRetry("RevokeToken",{Token:o,ClientId:this.pool.getClientId()},function(d){if(d)return c(d);c()})},t.sendMFASelectionAnswer=function(r,o){var c=this,d={};d.USERNAME=this.username,d.ANSWER=r;var f={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:d,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",f,function(b,m){return b?o.onFailure(b):(c.Session=m.Session,r==="SMS_MFA"?o.mfaRequired(m.ChallengeName,m.ChallengeParameters):r==="SOFTWARE_TOKEN_MFA"?o.totpRequired(m.ChallengeName,m.ChallengeParameters):void 0)})},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(r){var o=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,d){return c?r.onFailure(c):r.associateSecretCode(d.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(c,d){return c?r.onFailure(c):(o.Session=d.Session,r.associateSecretCode(d.SecretCode))})},t.verifySoftwareToken=function(r,o,c){var d=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:r,FriendlyDeviceName:o},function(f,b){return f?c.onFailure(f):c.onSuccess(b)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:r,FriendlyDeviceName:o},function(f,b){if(f)return c.onFailure(f);d.Session=b.Session;var m={};m.USERNAME=d.username;var S={ChallengeName:"MFA_SETUP",ClientId:d.pool.getClientId(),ChallengeResponses:m,Session:d.Session};d.getUserContextData()&&(S.UserContextData=d.getUserContextData()),d.client.request("RespondToAuthChallenge",S,function(w,T){return w?c.onFailure(w):(d.signInUserSession=d.getCognitoUserSession(T.AuthenticationResult),d.cacheTokens(),c.onSuccess(d.signInUserSession))})})},e})();/*!
168 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
169 * SPDX-License-Identifier: Apache-2.0
170 */function unfetch_module(e,t){return t=t||{},new Promise(function(r,o){var c=new XMLHttpRequest,d=[],f=[],b={},m=function(){return{ok:(c.status/100|0)==2,statusText:c.statusText,status:c.status,url:c.responseURL,text:function(){return Promise.resolve(c.responseText)},json:function(){return Promise.resolve(c.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([c.response]))},clone:m,headers:{keys:function(){return d},entries:function(){return f},get:function(w){return b[w.toLowerCase()]},has:function(w){return w.toLowerCase()in b}}}};for(var S in c.open(t.method||"get",e,!0),c.onload=function(){c.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(w,T,A){d.push(T=T.toLowerCase()),f.push([T,A]),b[T]=b[T]?b[T]+","+A:A}),r(m())},c.onerror=o,c.withCredentials=t.credentials=="include",t.headers)c.setRequestHeader(S,t.headers[S]);c.send(t.body||null)})}const unfetch_module$1=Object.freeze(Object.defineProperty({__proto__:null,default:unfetch_module},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(unfetch_module$1);var browser,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser?browser:(hasRequiredBrowser=1,browser=self.fetch||(self.fetch=require$$0.default||require$$0))}function UserAgent(){}requireBrowser(),UserAgent.prototype.userAgent=getUserAgent();var getAmplifyUserAgent=function(e){var t=UserAgent.category?" "+UserAgent.category:"",r=UserAgent.framework?" framework/"+UserAgent.framework:"";return""+UserAgent.prototype.userAgent+t+r};function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _wrapNativeSuper(e){var t=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(r){if(r===null||!_isNativeFunction(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return _construct(r,arguments,_getPrototypeOf(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(o,r)},_wrapNativeSuper(e)}function _construct(e,t,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var c=new(e.bind.apply(e,o));return r&&_setPrototypeOf(c,r.prototype),c}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _isNativeFunction(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(e)}var CognitoError=(function(e){function t(r,o,c,d){var f;return(f=e.call(this,r)||this).code=o,f.name=c,f.statusCode=d,f}return _inheritsLoose(t,e),t})(_wrapNativeSuper(Error)),Client=(function(){function e(r,o,c){this.endpoint=o||"https://cognito-idp."+r+".amazonaws.com/";var d=(c||{}).credentials;this.fetchOptions=d?{credentials:d}:{}}var t=e.prototype;return t.promisifyRequest=function(r,o){var c=this;return new Promise(function(d,f){c.request(r,o,function(b,m){b?f(new CognitoError(b.message,b.code,b.name,b.statusCode)):d(m)})})},t.requestWithRetry=function(r,o,c){var d=this;jitteredExponentialRetry(function(f){return new Promise(function(b,m){d.request(r,f,function(S,w){S?m(S):b(w)})})},[o],5e3).then(function(f){return c(null,f)}).catch(function(f){return c(f)})},t.request=function(r,o,c){var d,f={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProvi
170derService."+r,"X-Amz-User-Agent":getAmplifyUserAgent(),"Cache-Control":"no-store"},b=Object.assign({},this.fetchOptions,{headers:f,method:"POST",mode:"cors",body:JSON.stringify(o)});fetch(this.endpoint,b).then(function(m){return d=m,m},function(m){throw m instanceof TypeError?new Error("Network error"):m}).then(function(m){return m.json().catch(function(){return{}})}).then(function(m){if(d.ok)return c(null,m);var S=(m.__type||m.code).split("#").pop(),w=new Error(m.message||m.Message||null);return w.name=S,w.code=S,c(w)}).catch(function(m){if(d&&d.headers&&d.headers.get("x-amzn-errortype"))try{var S=d.headers.get("x-amzn-errortype").split(":")[0],w=new Error(d.status?d.status.toString():null);return w.code=S,w.name=S,w.statusCode=d.status,c(w)}catch{return c(m)}else m instanceof Error&&m.message==="Network error"&&(m.code="NetworkError");return c(m)})},e})(),logger$1={debug:function(){}},isNonRetryableError=function(e){return e&&e.nonRetryable};function retry(e,t,r,o){if(o===void 0&&(o=1),typeof e!="function")throw Error("functionToRetry must be a function");return logger$1.debug(e.name+" attempt #"+o+" with args: "+JSON.stringify(t)),e.apply(void 0,t).catch(function(c){if(logger$1.debug("error on "+e.name,c),isNonRetryableError(c))throw logger$1.debug(e.name+" non retryable error",c),c;var d=r(o,t,c);if(logger$1.debug(e.name+" retrying in "+d+" ms"),d!==!1)return new Promise(function(f){return setTimeout(f,d)}).then(function(){return retry(e,t,r,o+1)});throw c})}function jitteredBackoff(e){return function(t){var r=100*Math.pow(2,t)+100*Math.random();return!(r>e)&&r}}function jitteredExponentialRetry(e,t,r){return retry(e,t,jitteredBackoff(r))}/*!
171 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
172 * SPDX-License-Identifier: Apache-2.0
173 */var USER_POOL_ID_MAX_LENGTH=55,CognitoUserPool=(function(){function e(r,o){var c=r||{},d=c.UserPoolId,f=c.ClientId,b=c.endpoint,m=c.fetchOptions,S=c.AdvancedSecurityDataCollectionFlag;if(!d||!f)throw new Error("Both UserPoolId and ClientId are required.");if(d.length>USER_POOL_ID_MAX_LENGTH||!/^[\w-]+_[0-9a-zA-Z]+$/.test(d))throw new Error("Invalid UserPoolId format.");var w=d.split("_")[0];this.userPoolId=d,this.clientId=f,this.client=new Client(w,b,m),this.advancedSecurityDataCollectionFlag=S!==!1,this.storage=r.Storage||new StorageHelper().getStorage(),o&&(this.wrapRefreshSessionCallback=o)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(r,o,c,d,f,b){var m=this,S={ClientId:this.clientId,Username:r,Password:o,UserAttributes:c,ValidationData:d,ClientMetadata:b};this.getUserContextData(r)&&(S.UserContextData=this.getUserContextData(r)),this.client.request("SignUp",S,function(w,T){if(w)return f(w,null);var A={Username:r,Pool:m,Storage:m.storage},C={user:new CognitoUser(A),userConfirmed:T.UserConfirmed,userSub:T.UserSub,codeDeliveryDetails:T.CodeDeliveryDetails};return f(null,C)})},t.getCurrentUser=function(){var r="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",o=this.storage.getItem(r);if(o){var c={Username:o,Pool:this,Storage:this.storage};return new CognitoUser(c)}return null},t.getUserContextData=function(r){if(typeof AmazonCognitoAdvancedSecurityData<"u"){var o=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var c=o.getData(r,this.userPoolId,this.clientId);if(c)return{EncodedData:c}}return{}}},e})(),js_cookie={exports:{}},hasRequiredJs_cookie;function requireJs_cookie(){return hasRequiredJs_cookie||(hasRequiredJs_cookie=1,e=function(){function t(){for(var o=0,c={};o<arguments.length;o++){var d=arguments[o];for(var f in d)c[f]=d[f]}return c}function r(o){return o.replace(/(%[0-9A-Z]{2}
173)+/g,decodeURIComponent)}return(function o(c){function d(){}function f(m,S,w){if(typeof document<"u"){typeof(w=t({path:"/"},d.defaults,w)).expires=="number"&&(w.expires=new Date(1*new Date+864e5*w.expires)),w.expires=w.expires?w.expires.toUTCString():"";try{var T=JSON.stringify(S);/^[\{\[]/.test(T)&&(S=T)}catch{}S=c.write?c.write(S,m):encodeURIComponent(String(S)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),m=encodeURIComponent(String(m)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var A="";for(var C in w)w[C]&&(A+="; "+C,w[C]!==!0&&(A+="="+w[C].split(";")[0]));return document.cookie=m+"="+S+A}}function b(m,S){if(typeof document<"u"){for(var w={},T=document.cookie?document.cookie.split("; "):[],A=0;A<T.length;A++){var C=T[A].split("="),P=C.slice(1).join("=");S||P.charAt(0)!=='"'||(P=P.slice(1,-1));try{var B=r(C[0]);if(P=(c.read||c)(P,B)||r(P),S)try{P=JSON.parse(P)}catch{}if(w[B]=P,m===B)break}catch{}}return m?w[m]:w}}return d.set=f,d.get=function(m){return b(m,!1)},d.getJSON=function(m){return b(m,!0)},d.remove=function(m,S){f(m,"",t(S,{expires:-1}))},d.defaults={},d.withConverter=o,d})(function(){})},js_cookie.exports=e()),js_cookie.exports;var e}var js_cookieExports=requireJs_cookie(),CookieStorage=(function(){function e(r){if(r===void 0&&(r={}),r.domain&&(this.domain=r.domain),r.path?this.path=r.path:this.path="/",Object.prototype.hasOwnProperty.call(r,"expires")?this.expires=r.expires:this.expires=365,Object.prototype.hasOwnProperty.call(r,"secure")?this.secure=r.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(r,"sameSite")){if(!["strict","lax","none"].includes(r.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(r.sameSite==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=r.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(r,o){var c={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(c.sameSite=this.sameSite),js_cookieExports.set(r,o,c),js_cookieExports.get(r)},t.getItem=function(r){return js_cookieExports.get(r)},t.removeItem=function(r){var o={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(o.sameSite=this.sameSite),js_cookieExports.remove(r,o)},t.clear=function(){for(var r=js_cookieExports.get(),o=Object.keys(r).length,c=0;c<o;++c)this.removeItem(Object.keys(r)[c]);return{}},e})(),__classPrivateFieldSet$m=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$m=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_GCSSO_instances,_GCSSO_url,_GCSSO_ssoCreds,_GCSSO_domain,_GCSSO_currentDomain,_GCSSO_ssoUserData,_GCSSO_version,_GCSSO_entitlements,_GCSSO_segments,_GCSSO_userPool,_GCSSO_user,_GCSSO_setSession;class GCSSO{constructor(t,r,o,c,d){_GCSSO_instances.add(this),_GCSSO_url.set(this,void 0),_GCSSO_ssoCreds.set(this,void 0),_GCSSO_domain.set(this,void 0),_GCSSO_currentDomain.set(this,void 0),_GCSSO_ssoUserData.set(this,void 0),_GCSSO_version.set(this,void 0),_GCSSO_entitlements.set(this,void 0),_GCSSO_segments.set(this,void 0),_GCSSO_userPool.set(this,void 0),_GCSSO_user.set(this,void 0),__classPrivateFieldSet$m(this,_GCSSO_currentDomain,c,"f"),c=(c=c.replace("www.livepreview","").replace("livepreview","").replace("www","").replace("video","").replace("beta.",".").replace("live","").replace("tv.",".").replace("player.","."))&&c.substring(0,1)!=="."?`.${c}`:c;const f=new CookieStorage({domain:c,secure:c!="localhost",expires:28,path:"/"});__classPrivateFieldSet$m(this,_GCSSO_url,t,"f"),__classPrivateFieldSet$m(this,_GCSSO_ssoCreds,o,"f"),__classPrivateFieldSet$m(this,_GCSSO_domain,c,"f"),__classPrivateFieldSet$m(this,_GCSSO_version,d,"f"),__classPrivateFieldSet$m(this,_GCSSO_entitlements,[],"f"),__classPrivateFieldSet$m(this,_GCSSO_userPool,new CognitoUserPool({...o,Storage:f}),"f"),__classPrivateFieldSet$m(this,_GCSSO_segments,[],"f")}isAuthed(){var t;return((t=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null?void 0:t.getSignInUserSession())!=null}async fetchUserSegments(){var c,d,f;const t=(c=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null?void 0:c.username,r=await fetch(`https://segments.web.gc.${__classPrivateFieldGet$m(this,_GCSSO_url,"f")}/v2/users/${t}`),o=await r.json();return(f=(d=o==null?void 0:o.data)==null?void 0:d.attributes)!=null&&f.segments&&__classPrivateFieldSet$m(this,_GCSSO_segments,o.data.attributes.segments,"f"),__classPrivateFieldGet$m(this,_GCSSO_segments,"f")}async getEntitlements(){var f,b,m,S,w,T;if(__classPrivateFieldGet$m(this,_GCSSO_entitlements,"f")&&__classPrivateFieldGet$m(this,_GCSSO_entitlements,"f").length>0)return __classPrivateFieldGet$m(this,_GCSSO_entitlements,"f");const t=__classPrivateFieldGet$m(this,_GCSSO_user,"f"),r=(b=(f=t==null?void 0:t.signInUserSession)==null?void 0:f.idToken)==null?void 0:b.jwtToken,o=t==null?void 0:t.username,c=await fetch(`https://streamline.web.gc.${__classPrivateFieldGet$m(this,_GCSSO_url,"f")}/v2/users/entitlements/${o}`,{headers:{Authorization:r}}),d=await c.json();return(S=(m=d==null?void 0:d.data)==null?void 0:m.attributes)!=null&&S.entitlements&&__classPrivateFieldSet$m(this,_GCSSO_entitlements,d.data.attributes.entitlements,"f"),((T=(w=d==null?void 0:d.data)==null?void 0:w.attributes)==null?void 0:T.entitlements)||[]}async signout(){var r;(r=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null||r.signOut(),__classPrivateFieldSet$m(this,_GCSSO_ssoUserData,void 0,"f"),__classPrivateFieldSet$m(this,_GCSSO_entitlements,[],"f"),__classPrivateFieldSet$m(this,_GCSSO_segments,[],"f"),delete this.userDetails;const t=__classPrivateFieldGet$m(this,_GCSSO_userPool,"f").getCurrentUser();__classPrivateFieldSet$m(this,_GCSSO_user,t||void 0,"f")}async getUser(){var r;if(__classPrivateFieldGet$m(this,_GCSSO_domain,"f")!==`.${__classPrivateFieldGet$m(this,_GCSSO_currentDomain,"f")}`){const o=new CookieStorage({domain:`.${__classPrivateFieldGet$m(this,_GCSSO_currentDomain,"f")}`,secure:__classPrivateFieldGet$m(this,_GCSSO_currentDomain,"f")!="localhost",expires:28,path:"/"}),c=`CognitoIdentityServiceProvider.${__classPrivateFieldGet$m(this,_GCSSO_ssoCreds,"f").ClientId}`;document.cookie.split(";").filter(d=>d.includes(c)).map(d=>
173d.split("=")[0]).forEach(d=>{o.removeItem(d.trim())})}if(__classPrivateFieldGet$m(this,_GCSSO_user,"f")==null){const o=__classPrivateFieldGet$m(this,_GCSSO_userPool,"f").getCurrentUser();__classPrivateFieldSet$m(this,_GCSSO_user,o||void 0,"f")}if(__classPrivateFieldGet$m(this,_GCSSO_user,"f")==null)return!1;if(((r=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null?void 0:r.getSignInUserSession())==null){const o=new Promise((d,f)=>{var b;(b=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null||b.getSession((m,S)=>{m&&f(m),d(S)})}),c=await o.catch(()=>null);__classPrivateFieldGet$m(this,_GCSSO_instances,"m",_GCSSO_setSession).call(this,c)}return __classPrivateFieldSet$m(this,_GCSSO_ssoUserData,__classPrivateFieldGet$m(this,_GCSSO_ssoUserData,"f")||await this.getSSOUser(),"f"),{...__classPrivateFieldGet$m(this,_GCSSO_user,"f"),...__classPrivateFieldGet$m(this,_GCSSO_ssoUserData,"f")}}async getSession(){const t=await this.getUser();return!!t&&(t==null?void 0:t.signInUserSession)}async registerUser(t,r){return new Promise((o,c)=>{var f;const d=[];if(d.push(new CognitoUserAttribute({Name:"email",Value:t.email})),d.push(new CognitoUserAttribute({Name:"given_name",Value:t.firstname})),d.push(new CognitoUserAttribute({Name:"family_name",Value:t.lastname})),t.address){const b=[t.address.streetAddress.addressLine1,t.address.streetAddress.addressLine2,t.address.streetAddress.addressLine3].filter(
173Boolean).join(`
174`);d.push(new CognitoUserAttribute({Name:"address",Value:JSON.stringify({street_address:b||"",postal_code:t.address.postcode||"",country:t.address.country||"",locality:t.address.locality||"",region:t.address.region||""})}))}t.phone&&d.push(new CognitoUserAttribute({Name:"phone_number",Value:`${t.code}${t.phone.charAt(0)=="0"?t.phone.substring(1):t.phone}`})),t.dob&&d.push(new CognitoUserAttribute({Name:"birthdate",Value:t.dob})),(f=__classPrivateFieldGet$m(this,_GCSSO_userPool,"f"))==null||f.signUp(t.email,t.password,d,[],(b,m)=>{b&&(b.name==="UsernameExistsException"?c({name:b.name,message:"User with this email already exists"}):c({name:b.name,message:"An unknown error occured"})),o(m)},r)})}async updateUser(t){return new Promise((r,o)=>{var m;const c=[];c.push(new CognitoUserAttribute({Name:"email",Value:t.email})),c.push(new CognitoUserAttribute({Name:"given_name",Value:t.firstname})),c.push(new CognitoUserAttribute({Name:"family_name",Value:t.lastname}));const d=[t.addressLine1,t.addressLine2,t.addressLine3].filter(
174Boolean).join(`
175`),f=JSON.stringify({street_address:d||"",locality:t.locality||"",region:t.region||"",postal_code:t.postcode||"",country:t.country||""});c.push(new CognitoUserAttribute({Name:"address",Value:f})),t.phone&&c.push(new CognitoUserAttribute({Name:"phone_number",Value:`${t.code}${t.phone.charAt(0)=="0"?t.phone.substring(1):t.phone}`})),t.dob&&c.push(new CognitoUserAttribute({Name:"birthdate",Value:t.dob}));const b=(m=__classPrivateFieldGet$m(this,_GCSSO_userPool,"f"))==null?void 0:m.getCurrentUser();if(!b)return o({name:"UserNotAuthenticated",message:"User is not logged in."});b.getSession((S,w)=>{if(S||!w.isValid())return o({name:"SessionInvalid",message:"Failed to update user."});b.updateAttributes(c,(T,A)=>{if(T)return o({name:T.name,message:T.message});r(A)})})})}async updateUserMetaData(t){const r=await this.getSession(),o=__classPrivateFieldGet$m(this,_GCSSO_user,"f"),c=o==null?void 0:o.username,d={data:{id:c,type:"sso-cognito-user",attributes:t}};try{const f=await fetch(`https://sso.cms.web.gc.${__classPrivateFieldGet$m(this,_GCSSO_url,"f")}/v2/${c}?token=${r.idToken.jwtToken}`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r.accessToken.jwtToken}`},body:JSON.stringify(d)});if(!f.ok)throw new Error(`Response not OK: ${f.statusText}`);return f}catch(f){throw console.error("Error in updateUserMetaData:",f),f}}async verifyUser(t,r){return new Promise((o,c)=>{const d={Username:t.email,Pool:__classPrivateFieldGet$m(this,_GCSSO_userPool,"f")};new CognitoUser(d).confirmRegistration(r,!0,(f,b)=>{f&&c(f),o(b)})})}async forgotPassword(t){return new Promise((r,o)=>{const c={Username:t.email,Pool:__classPrivateFieldGet$m(this,_GCSSO_userPool,"f")};new CognitoUser(c).forgotPassword({onSuccess:d=>{r(d)},onFailure:d=>{o(d)}})})}async resetPassword(t,r){return new Promise((o,c)=>{const d={Username:t.email,Pool:__classPrivateFieldGet$m(this,_GCSSO_userPool,"f")};new CognitoUser(d).confirmPassword(r,t.password,{onSuccess:f=>{o(f)},onFailure:f=>{c(f)}})})}async setNewPassword(t,r){return new Promise((o,c)=>{var d;delete t.email_verified,delete t.email,delete t.phone_number_verified,delete t.phone_number,(d=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null||d.completeNewPasswordChallenge(r,{},{onSuccess:async f=>{o(await __classPrivateFieldGet$m(this,_GCSSO_instances,"m",_GCSSO_setSession).call(this,f))},onFailure:f=>{c(f)}})})}async getUserDetails(){var S,w,T,A,C;const t=await new Promise((P,B)=>{var U;(U=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null||U.getUserAttributes((D,$)=>{D&&B(D),P($)})}),r=(((w=(S=__classPrivateFieldGet$m(this,_GCSSO_ssoUserData,"f"))==null?void 0:S.attributes)==null?void 0:w.marketingPrefs)||[]).map(P=>({...P,content:P.title||P.content,checked:P.value||P.checked,id:P.id})),o={};t.forEach(P=>{const B=P.getName();o[B]=P.getValue()});let c={},d=[];try{o.address&&(c=JSON.parse(o.address),d=((T=c.street_address)==null?void 0:T.split(/\r?\n/))||[])}catch(P){console.error("Failed to parse address:",P)}const f=o.phone_number?o.phone_number.substring(0,3):"",b=o.phone_number?o.phone_number.substring(3):"",m=((C=(A=__classPrivateFieldGet$m(this,_GCSSO_ssoUserData,"f"))==null?void 0:A.attributes)==null?void 0:C.favourite)||"";return{firstname:o.given_name||"",lastname:o.family_name||"",email:o.email||"",dob:o.birthdate||"",code:f,phone:b,addressLine1:d[0]||"",addressLine2:d[1]||"",addressLine3:d[2]||"",locality:c.locality||"",region:c.region||"",postcode:c.postal_code||"",country:c.country||"",marketingPrefs:r||[],favourite:m}}async login(t){return __classPrivateFieldGet$m(this,_GCSSO_userPool,"f")==null?new Error("No Userpool Defined"):new Promise((r,o)=>{const c={Username:t.email,Password:t.password},d=new AuthenticationDetails(c);__classPrivateFieldSet$m(this,_GCSSO_user,new CognitoUser({Username:c.Username,Pool:__classPrivateFieldGet$m(this,_GCSSO_userPool,"f"),Storage:new CookieStorage({domain:__classPrivateFieldGet$m(this,_GCSSO_domain,"f"),secure:__classPrivateFieldGet$m(this,_GCSSO_domain,"f")!="localhost",expires:28,path:"/"})}),"f"),__classPrivateFieldGet$m(this,_GCSSO_user,"f").authenticateUser(d,{onSuccess:async f=>{r(await __classPrivateFieldGet$m(this,_GCSSO_instances,"m",_GCSSO_setSession).call(this,f))},onFailure(f){o(f)},newPasswordRequired(f,b){o({code:"NewPasswordRequired",userAttributes:f,requiredAttributes:b})}})})}async getSSOUser(){var c,d;const t=__classPrivateFieldGet$m(this,_GCSSO_user,"f"),r=(d=(c=t==null?void 0:t.signInUserSession)==null?void 0:c.idToken)==null?void 0:d.jwtToken,o=t==null?void 0:t.username;if(o&&r&&__classPrivateFieldGet$m(this,_GCSSO_version,"f")!==1){const f=await fetch(`https://sso.cms.web.gc.${__classPrivateFieldGet$m(this,_GCSSO_url,"f")}/v2/${o}?token=${r}`),{data:b}=await f.json();return b}return{}}async refreshSession(){var r;
175const t=await this.getSession();(r=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null||r.refreshSession(t.refreshToken,(o,c)=>{console.info(o,c)})}}_GCSSO_url=new WeakMap,_GCSSO_ssoCreds=new WeakMap,_GCSSO_domain=new WeakMap,_GCSSO_currentDomain=new WeakMap,_GCSSO_ssoUserData=new WeakMap,_GCSSO_version=new WeakMap,_GCSSO_entitlements=new WeakMap,_GCSSO_segments=new WeakMap,_GCSSO_userPool=new WeakMap,_GCSSO_user=new WeakMap,_GCSSO_instances=new WeakSet,_GCSSO_setSession=async function(e){var t;return(t=__classPrivateFieldGet$m(this,_GCSSO_user,"f"))==null||t.setSignInUserSession(e),this.userDetails=await this.getUserDetails(),__classPrivateFieldSet$m(this,_GCSSO_ssoUserData,__classPrivateFieldGet$m(this,_GCSSO_ssoUserData,"f")||await this.getSSOUser(),"f"),{...__classPrivateFieldGet$m(this,_GCSSO_user,"f"),...__classPrivateFieldGet$m(this,_GCSSO_ssoUserData,"f")}};class InvalidTokenError extends Error{}function b64DecodeUnicode(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let o=r.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function base64UrlDecode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(t)}catch{return atob(t)}}function jwtDecode(e,t){if(typeof e!="string")throw new InvalidTokenError("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,o=e.split(".")[r];if(typeof o!="string")throw new InvalidTokenError(`Invalid token specified: missing part #${r+1}`);let c;try{c=base64UrlDecode(o)}catch(d){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${r+1} (${d.message})`)}try{return JSON.parse(c)}catch(d){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${r+1} (${d.message})`)}}InvalidTokenError.prototype.name="InvalidTokenError";var nopLogger={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},level,logger,Log=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(Log||{}),Log2;Log2=Log||(Log={}),Log2.reset=function(){level=3,logger=nopLogger},Log2.setLevel=function(e){if(!(0<=e&&e<=4))throw new Error("Invalid log level");level=e},Log2.setLogger=function(e){logger=e};var Logger=class _o{constructor(t){this._name=t}debug(...t){level>=4&&logger.debug(_o._format(this._name,this._method),...t)}info(...t){level>=3&&logger.info(_o._format(this._name,this._method),...t)}warn(...t){level>=2&&logger.warn(_o._format(this._name,this._method),...t)}error(...t){level>=1&&logger.error(_o._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const r=Object.create(this);return r._method=t,r.debug("begin"),r}static createStatic(t,r){const o=new _o(`${t}.${r}`);return o.debug("begin"),o}static _format(t,r){const o=`[${t}]`;return r?`${o} ${r}:`:o}static debug(t,...r){level>=4&&logger.debug(_o._format(t),...r)}static info(t,...r){level>=3&&logger.info(_o._format(t),...r)}static warn(t,...r){level>=2&&logger.warn(_o._format(t),...r)}static error(t,...r){level>=1&&logger.error(_o._format(t),...r)}};Log.reset();var JwtUtils=class{static decode(e){try{return jwtDecode(e)}catch(t){throw Logger.error("JwtUtils.decode",t),t}}static async generateSignedJwt(e,t,r){const o=`${CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`,c=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},r,new TextEncoder().encode(o));return`${o}.${CryptoUtils.encodeBase64Url(new Uint8Array(c))}`}static async generateSignedJwtWithHmac(e,t,r){const o=`${CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${CryptoUtils.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`,c=await window.crypto.subtle.sign("HMAC",r,new TextEncoder().encode(o));return`${o}.${CryptoUtils.encodeBase64Url(new Uint8Array(c))}`}},UUID_V4_TEMPLATE="10000000-1000-4000-8000-100000000000",toBase64=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),_CryptoUtils=class co{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return UUID_V4_TEMPLATE.replace(/[018]/g,t=>(+t^co._randomWord()&15>>+t/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return co.generateUUIDv4()+co.generateUUIDv4()+co.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const r=new TextEncoder().encode(t),o=await crypto.subtle.digest("SHA-256",r);return toBase64(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(r){throw Logger.error("CryptoUtils.generateCodeChallenge",r),r}}static generateBasicAuth(t,r){const o=new TextEncoder().encode([t,r].join(":"));return toBase64(o)}static async hash(t,r){const o=new TextEncoder().encode(r),c=await crypto.subtle.digest(t,o);return new Uint8Array(c)}static async customCalculateJwkThumbprint(t){let r;switch(t.kty){case"RSA":r={e:t.e,kty:t.kty,n:t.n};break;case"EC":r={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":r={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":r={crv:t.k,kty:t.kty};break;default:throw new Error("Unknown jwk type")}const o=await co.hash("SHA-256",JSON.stringify(r));return co.encodeBase64Url(o)}static async generateDPoPProof({url:t,accessToken:r,httpMethod:o,keyPair:c,nonce:d}){let f,b;const m={jti:window.crypto.randomUUID(),htm:o??"GET",htu:t,iat:Math.floor(Date.now()/1e3)};r&&(f=await co.hash("SHA-256",r),b=co.encodeBase64Url(f),m.ath=b),d&&(m.nonce=
175d);try{const S=await crypto.subtle.exportKey("jwk",c.publicKey),w={alg:"ES256",typ:"dpop+jwt",jwk:{crv:S.crv,kty:S.kty,x:S.x,y:S.y}};return await JwtUtils.generateSignedJwt(w,m,c.privateKey)}catch(S){throw S instanceof TypeError?new Error(`Error exporting dpop public key: ${S.message}`):S}}static async generateDPoPJkt(t){try{const r=await crypto.subtle.exportKey("jwk",t.publicKey);return await co.customCalculateJwkThumbprint(r)}catch(r){throw r instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${r.message}`):r}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}static async generateClientAssertionJwt(t,r,o,c="HS256"){const d=Math.floor(Date.now()/1e3),f={alg:c,typ:"JWT"},b={iss:t,sub:t,aud:o,jti:co.generateUUIDv4(),exp:d+300,iat:d},m={HS256:"SHA-256",HS384:"SHA-384",HS512:"SHA-512"}[c];if(!m)throw new Error(`Unsupported algorithm: ${c}. Supported algorithms are: HS256, HS384, HS512`);const S=new TextEncoder,w=await crypto.subtle.importKey("raw",S.encode(r),{name:"HMAC",hash:m},!1,["sign"]);return await JwtUtils.generateSignedJwtWithHmac(f,b,w)}};_CryptoUtils.encodeBase64Url=e=>toBase64(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var CryptoUtils=_CryptoUtils,Event$1=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new Logger(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){const t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(const t of this._callbacks)await t(...e)}},PopupUtils=class{static center({...e}){var t;return e.width==null&&(e.width=(t=[800,720,600,480].find(r=>r<=window.outerWidth/1.618))!=null?t:360),e.left!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&(e.top!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,r])=>`${t}=${typeof r!="boolean"?r:r?"yes":"no"}`).join(",")}},Timer=class qa extends Event$1{constructor(){super(...arguments),this._logger=new Logger(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-qa.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=qa.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const r=this._logger.create("init");t=Math.max(Math.floor(t),1);const o=qa.getEpochTime()+t;if(this.expiration===o&&this._timerHandle)return void r.debug("skipping since already initialized for expiration at",this.expiration);this.cancel(),r.debug("using duration",t),this._expiration=o;const c=Math.min(t,5);this._timerHandle=setInterval(this._callback,1e3*c)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},UrlUtils=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const r=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];
175return new URLSearchParams(r.slice(1))}},URL_STATE_DELIMITER=";",ErrorResponse=class extends Error{constructor(e,t){var r,o,c;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw Logger.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(r=e.error_description)!=null?r:null,this.error_uri=(o=e.error_uri)!=null?o:null,this.state=e.userState,this.session_state=(c=e.session_state)!=null?c:null,this.url_state=e.url_state}},ErrorTimeout=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},AccessTokenEvents=class{constructor(e){this._logger=new Logger("AccessTokenEvents"),this._expiringTimer=new Timer("Access token expiring"),this._expiredTimer=new Timer("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}async load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let c=r-this._expiringNotificationTimeInSeconds;c<=0&&(c=1),t.debug("registering expiring timer, raising in",c,"seconds"),this._expiringTimer.init(c)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const o=r+1;t.debug("registering expired timer, raising in",o,"seconds"),this._expiredTimer.init(o)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},CheckSessionIFrame=class{constructor(e,t,r,o,c){this._callback=e,this._client_id=t,this._intervalInSeconds=o,this._stopOnError=c,this._logger=new Logger("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=f=>{f.origin===this._frame_origin&&f.source===this._frame.contentWindow&&(f.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):f.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(f.data+" message from check session op iframe"))};const d=new URL(r);this._frame_origin=d.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=d.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},InMemoryWebStorage=class{constructor(){this._logger=new Logger("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},ErrorDPoPNonce=class extends Error{constructor(e,t){super(t),this.name="ErrorDPoPNonce",this.nonce=e}},JsonService=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new Logger("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:r,...o}=t;if(!r)return await fetch(e,o);const c=new AbortController,d=setTimeout(()=>c.abort(),1e3*r);try{return await fetch(e,{...t,signal:c.signal})}catch(f){throw f instanceof DOMException&&f.name==="AbortError"?new ErrorTimeout("Network timed out"):f}finally{clearTimeout(d)}}async getJson(e,{token:t,credentials:r,timeoutInSeconds:o}={}){const c=this._logger.create("getJson"),d={Accept:this._contentTypes.join(", ")};let f;t&&(c.debug("token passed, setting Authorization header"),d.Authorization="Bearer "+t),this._appendExtraHeaders(d);
175try{c.debug("url:",e),f=await this.fetchWithTimeout(e,{method:"GET",headers:d,timeoutInSeconds:o,credentials:r})}catch(S){throw c.error("Network Error"),S}c.debug("HTTP response received, status",f.status);const b=f.headers.get("Content-Type");if(b&&!this._contentTypes.find(S=>b.startsWith(S))&&c.throw(new Error(`Invalid response Content-Type: ${b??"undefined"}, from URL: ${e}`)),f.ok&&this._jwtHandler&&(b==null?void 0:b.startsWith("application/jwt")))return await this._jwtHandler(await f.text());let m;try{m=await f.json()}catch(S){throw c.error("Error parsing JSON response",S),f.ok?S:new Error(`${f.statusText} (${f.status})`)}if(!f.ok)throw c.error("Error from server:",m),m.error?new ErrorResponse(m):new Error(`${f.statusText} (${f.status}): ${JSON.stringify(m)}`);return m}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:o,initCredentials:c,extraHeaders:d}){const f=this._logger.create("postForm"),b={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded",...d};let m;r!==void 0&&(b.Authorization="Basic "+r),this._appendExtraHeaders(b);try{f.debug("url:",e),m=await this.fetchWithTimeout(e,{method:"POST",headers:b,body:t,timeoutInSeconds:o,credentials:c})}catch(A){throw f.error("Network error"),A}f.debug("HTTP response received, status",m.status);const S=m.headers.get("Content-Type");if(S&&!this._contentTypes.find(A=>S.startsWith(A)))throw new Error(`Invalid response Content-Type: ${S??"undefined"}, from URL: ${e}`);const w=await m.text();let T={};if(w)try{T=JSON.parse(w)}catch(A){throw f.error("Error parsing JSON response",A),m.ok?A:new Error(`${m.statusText} (${m.status})`)}if(!m.ok){if(f.error("Error from server:",T),m.headers.has("dpop-nonce")){const A=m.headers.get("dpop-nonce");throw new ErrorDPoPNonce(A,`${JSON.stringify(T)}`)}throw T.error?new ErrorResponse(T,t):new Error(`${m.statusText} (${m.status}): ${JSON.stringify(T)}`)}return T}_appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),o=["accept","content-type"],c=["authorization"];r.length!==0&&r.forEach(d=>{if(o.includes(d.toLocaleLowerCase()))return void t.warn("Protected header could not be set",d,o);if(c.includes(d.toLocaleLowerCase())&&Object.keys(e).includes(d))return void t.warn("Header could not be overridden",d,c);const f=typeof this._extraHeaders[d]=="function"?this._extraHeaders[d]():this._extraHeaders[d];f&&f!==""&&(e[d]=f)})}},MetadataService=class{constructor(e){this._settings=e,this._logger=new Logger("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new JsonService(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},t,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const r=this._logger.create(`_getMetadataProperty('${e}')`),o=await this.getMetadata();if(r.debug("resolved"),o[e]===void 0){if(t===!0)return void r.warn("Metadata does not contain optional property");r.throw(new Error("Metadata does not contain property "+e))}return o[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const r=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},WebStorageStateStore=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new Logger("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let r=0;r<e;r++){const o=await this._store.key(r);o&&o.indexOf(this._prefix)===0&&t.push(o.substr(this._prefix.length))}return t}},DefaultResponseType="code",DefaultScope="openid",DefaultClientAuthentication="client_secret_post",DefaultStaleStateAgeInSeconds=900,OidcClientSettingsStore=class{constructor({authority:e,metadataUrl:t,metadata:r,signingKeys:o,metadataSeed:c,client_id:d,client_secret:f,response_type:b=DefaultResponseType,scope:m=DefaultScope,redirect_uri:S,post_logout_redirect_uri:w,client_authentication:T=DefaultClientAuthentication,token_endpoint_auth_signing_alg:A="HS256",prompt:C,display:P,max_age:B,ui_locales:U,acr_values:D,resource:$,response_mode:z,filterProtocolClaims:V=!0,loadUserInfo:F=!1,requestTimeoutInSeconds:ee,staleStateAgeInSeconds:te=DefaultStaleStateAgeInSeconds,mergeClaimsStrategy:K={array:"replace"},disablePKCE:H=!1,stateStore:X,revokeTokenAdditionalContentTypes:J,fetchRequestCredentials:G,refreshTokenAllowedScope:Q,extraQueryParams:pe={},extraTokenParams:ye={},extraHeaders:de={},dpop:_e,omitScopeWhenRequesting:Re=!1}){var ge;if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=r,this.metadataSeed=c,this.signingKeys=o,this.client_id=d,this.client_secret=f,this.response_type=b,this.scope=m,this.redirect_uri=S,this.post_logout_redirect_uri=w,this.client_authentication=T,this.token_endpoint_auth_signing_alg=A,this.prompt=C,this.display=P,this.max_age=B,this.ui_locales=U,this.acr_values=D,this.resource=$,this.response_mode=z,this.filterProtocolClaims=V==null||V,this.loadUserInfo=!!F,this.staleStateAgeInSeconds=te,this.mergeClaimsStrategy=K,this.omitScopeWhenRequesting=Re,this.disablePKCE=!!H,this.revokeTokenAdditionalContentTypes=J,this.fetchRequestCredentials=G||"same-origin",this.requestTimeoutInSeconds=ee,X)this.stateStore=X;else{const Ce=typeof window<"u"?window.localStorage:new InMemoryWebStorage;this.stateStore=new WebStorageStateStore({store:Ce})}if(this.refreshTokenAllowedScope=Q,this.extraQueryParams=pe,this.extraTokenParams=ye,this.extraHeaders=de,this.dpop=_e,this.dpop&&!((ge=this.dpop)!=null&&ge.store))throw new Error("A DPoPStore is required when dpop is enabled")}},UserInfoService=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Logger("UserInfoService"),this._getClaimsFromJwt=async r=>{const o=this._logger.create("_getClaimsFromJwt");try{const c=JwtUtils.decode(r);return o.debug("JWT decoding successful"),c}catch(c){throw o.error("Error parsing JWT response"),c}},this._jsonService=new JsonService(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);const o=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug("got claims",o),o}},TokenClient=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Logger("TokenClient"),this._jsonService=new JsonService(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:o=this._settings.client_secret,extraHeaders:c,...d}){const f=this._logger.create("exchangeCode");r||f.throw(new Error("A client_id is required")),t||f.throw(new Error("A redirect_uri is required")),d.code||f.throw(new Error("A code is required"));const b=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[T,A]of Object.entries(d))A!=null&&b.set(T,A);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&o==null)throw f.throw(new Error("A client_secret is required")),null;let m;const S=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":m=CryptoUtils.generateBasicAuth(r,o);break;case"client_secret_post":b.append("client_id",r),o&&b.append("client_secret",o);break;case"client_secret_jwt":{const T=await CryptoUtils.generateClientAssertionJwt(r,o,S,this._settings.token_endpoint_auth_signing_alg);b.append("client_id",r),b.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),b.append("client_assertion",T);break}}f.debug("got token endpoint");const w=await this._jsonService.postForm(S,{body:b,basicAuth:m,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:c});return f.debug("got response"),w}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:o=this._settings.scope,...c}){const d=this._logger.create("exchangeCredentials");t||d.throw(new Error("A client_id is required"));const f=new URLSearchParams({grant_type:e});this._settings.omitScopeWhenRequesting||f.set("scope",o);for(const[w,T]of Object.entries(c))T!=null&&f.set(w,T);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&r==null)throw d.throw(new Error("A client_secret is required")),null;let b;const m=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":b=CryptoUtils.generateBasicAuth(t,r);break;case"client_secret_post":f.append("client_id",t),r&&f.append("client_secret",r);break;case"client_secret_jwt":{const w=await CryptoUtils.generateClientAssertionJwt(t,r,m,this._settings.token_endpoint_auth_signing_alg);f.append("client_id",t),f.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),f.append("client_assertion",w);break}}d.debug("got token endpoint");const S=await this._jsonService.postForm(m,{body:f,basicAuth:b,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return d.debug("got response"),S}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:o,extraHeaders:c,...d}){const f=this._logger.create("exchangeRefreshToken");t||f.throw(new Error("A client_id is required")),d.refresh_token||f.throw(new Error("A refresh_token is required"));const b=new URLSearchParams({grant_type:e});for(const[T,A]of Object.entries(d))Array.isArray(A)?A.forEach(C=>b.append(T,C)):A!=null&&b.set(T,A);if((this._settings.client_authentication==="client_secret_basic"||this._settings.client_authentication==="client_secret_jwt")&&r==null)throw f.throw(new Error("A client_secret is required")),null;let m;const S=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case"client_secret_basic":m=CryptoUtils.generateBasicAuth(t,r);break;case"client_secret_post":b.append("client_id",t),r&&b.append("client_secret",r);break;case"client_secret_jwt":{const T=await CryptoUtils.generateClientAssertionJwt(t,r,S,this._settings.token_endpoint_auth_signing_alg);b.append("client_id",t),b.append("client_assertion_type","urn:ietf:params:oauth:client-assertion-type:jwt-bearer"),b.append("client_assertion",T);break}}f.debug("got token endpoint");const w=await this._jsonService.postForm(S,{body:b,basicAuth:m,timeoutInSeconds:o,init
175Credentials:this._settings.fetchRequestCredentials,extraHeaders:c});return f.debug("got response"),w}async revoke(e){var t;const r=this._logger.create("revoke");e.token||r.throw(new Error("A token is required"));const o=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const c=new URLSearchParams;for(const[d,f]of Object.entries(e))f!=null&&c.set(d,f);c.set("client_id",this._settings.client_id),this._settings.client_secret&&c.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(o,{body:c,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),r.debug("got response")}},ResponseValidator=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new Logger("ResponseValidator"),this._userInfoService=new UserInfoService(this._settings,this._metadataService),this._tokenClient=new TokenClient(this._settings,this._metadataService)}async validateSigninResponse(e,t,r){const o=this._logger.create("validateSigninResponse");this._processSigninState(e,t),o.debug("state processed"),await this._processCode(e,t,r),o.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e,"",t.nonce),o.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),o.debug("claims processed")}async validateCredentialsResponse(e,t){const r=this._logger.create("validateCredentialsResponse"),o=e.isOpenId&&!!e.id_token;o&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,o),r.debug("claims processed")}async validateRefreshResponse(e,t){const r=this._logger.create("validateRefreshResponse");e.userState=t.data,e.session_state!=null||(e.session_state=t.session_state),e.scope!=null||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const o=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,o),r.debug("claims processed")}validateSignoutResponse(e,t){const r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(new Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new ErrorResponse(e)}_processSigninState(e,t){const r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(new Error("State does not match")),t.client_id||r.throw(new Error("No client_id on state")),t.authority||r.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,e.scope!=null||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new ErrorResponse(e);t.code_verifier&&!e.code&&r.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){const o=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token)return void o.debug("not loading user info");o.debug("loading user info");const c=await this._userInfoService.getClaims(e.access_token);o.debug("user info claims received from user info endpoint"),r&&c.sub!==e.profile.sub&&o.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(c)),o.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t,r){const o=this._logger.create("_processCode");if(e.code){o.debug("Validating code");const c=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:r,...t.extraTokenParams});Object.assign(e,c)}else o.debug("No code to process")}_validateIdTokenAttributes(e,t,r){var o;const c=this._logger.create("_validateIdTokenAttributes");c.debug("decoding ID Token JWT");const d=JwtUtils.decode((o=e.id_token)!=null?o:"");if(d.sub||c.throw(new Error("ID Token is missing a subject claim")),r&&d.nonce!==r&&c.throw(new Error("nonce in id_token does not match nonce in client storage")),t){const f=JwtUtils.decode(t);d.sub!==f.sub&&c.throw(new Error("sub in id_token does not match current sub")),d.auth_time&&d.auth_time!==f.auth_time&&c.throw(new Error("auth_time in id_token does not match original auth_time")),d.azp&&d.azp!==f.azp&&c.throw(new Error("azp in id_token does not match original azp")),!d.azp&&f.azp&&c.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=d}},State$1=class ms{constructor(t){this.id=t.id||CryptoUtils.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=Timer.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new Logger("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return Logger.createStatic("State","fromStorageString"),Promise.resolve(new ms(JSON.parse(t)))}static async clearStaleState(t,r){const o=Logger.createStatic("State","clearStaleState"),c=Timer.getEpochTime()-r,d=await t.getAllKeys();o.debug("got keys",d);for(let f=0;f<d.length;f++){const b=d[f],m=await t.get(b);let S=!1;if(m)try{const w=await ms.fromStorageString(m);o.debug("got item from key:",b,w.created),w.created<=c&&(S=!0)}catch(w){o.error("Error parsing state for key:",b,w),S=!0}else o.debug("no item in storage for key:",b),S=!0;S&&(o.debug("removed item for key:",b),t.remove(b))}}},SigninState=class gs extends State$1{constructor(t){super(t),this.code_verifier=t.code_verifier,this.co
175de_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo,this.nonce=t.nonce}static async create(t){const r=t.code_verifier===!0?CryptoUtils.generateCodeVerifier():t.code_verifier||void 0,o=r?await CryptoUtils.generateCodeChallenge(r):void 0;return new gs({...t,code_verifier:r,code_challenge:o})}toStorageString(){return new Logger("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo,nonce:this.nonce})}static fromStorageString(t){Logger.createStatic("SigninState","fromStorageString");const r=JSON.parse(t);return gs.create(r)}},_SigninRequest=class Hs{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:r,client_id:o,redirect_uri:c,response_type:d,scope:f,state_data:b,response_mode:m,request_type:S,client_secret:w,nonce:T,url_state:A,resource:C,skipUserInfo:P,extraQueryParams:B,extraTokenParams:U,disablePKCE:D,dpopJkt:$,omitScopeWhenRequesting:z,...V}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!o)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!c)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!d)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!f)throw this._logger.error("create: No scope passed"),new Error("scope");if(!r)throw this._logger.error("create: No authority passed"),new Error("authority");const F=await SigninState.create({data:b,request_type:S,url_state:A,code_verifier:!D,client_id:o,authority:r,redirect_uri:c,response_mode:m,client_secret:w,scope:f,extraTokenParams:U,skipUserInfo:P,nonce:T}),ee=new URL(t);ee.searchParams.append("client_id",o),ee.searchParams.append("redirect_uri",c),ee.searchParams.append("response_type",d),z||ee.searchParams.append("scope",f),T&&ee.searchParams.append("nonce",T),$&&ee.searchParams.append("dpop_jkt",$);let te=F.id;A&&(te=`${te}${URL_STATE_DELIMITER}${A}
175`),ee.searchParams.append("state",te),F.code_challenge&&(ee.searchParams.append("code_challenge",F.code_challenge),ee.searchParams.append("code_challenge_method","S256")),C&&(Array.isArray(C)?C:[C]).forEach(K=>ee.searchParams.append("resource",K));for(const[K,H]of Object.entries({response_mode:m,...V,...B}))H!=null&&ee.searchParams.append(K,H.toString());return new Hs({url:ee.href,state:F})}};_SigninRequest._logger=new Logger("SigninRequest");var SigninRequest=_SigninRequest,OidcScope="openid",SigninResponse=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(URL_STATE_DELIMITER);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(URL_STATE_DELIMITER))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Timer.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+Timer.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(OidcScope))||!!this.id_token}},SignoutRequest=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:o,extraQueryParams:c,request_type:d,client_id:f,url_state:b}){if(this._logger=new Logger("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const m=new URL(e);if(r&&m.searchParams.append("id_token_hint",r),f&&m.searchParams.append("client_id",f),o&&(m.searchParams.append("post_logout_redirect_uri",o),t||b)){this.state=new State$1({data:t,request_type:d,url_state:b});let S=this.state.id;b&&(S=`${S}${URL_STATE_DELIMITER}${b}`),m.searchParams.append("state",S)}for(const[S,w]of Object.entries({...c}))w!=null&&m.searchParams.append(S,w.toString());this.url=m.href}},SignoutResponse=class{constructor(e){if(this.state=e.get("state"),this.state){const t=decodeURIComponent(this.state).split(URL_STATE_DELIMITER);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(URL_STATE_DELIMITER))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},DefaultProtocolClaims=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],InternalRequiredProtocolClaims=["sub","iss","aud","exp","iat"],ClaimsService=class{constructor(e){this._settings=e,this._logger=new Logger("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let r;r=Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:DefaultProtocolClaims;for(const o of r)InternalRequiredProtocolClaims.includes(o)||delete t[o]}return t}mergeClaims(e,t){const r={...e};for(const[o,c]of Object.entries(t))if(r[o]!==c)if(Array.isArray(r[o])||Array.isArray(c))if(this._settings.mergeClaimsStrategy.array=="replace")r[o]=c;else{const d=Array.isArray(r[o])?r[o]:[r[o]];for(const f of Array.isArray(c)?c:[c])d.includes(f)||d.push(f);r[o]=d}else typeof r[o]=="object"&&typeof c=="object"?r[o]=this.mergeClaims(r[o],c):r[o]=c;return r}},DPoPState=class{constructor(e,t){this.keys=e,this.nonce=t}},OidcClient=class{constructor(e,t){this._logger=new Logger("OidcClient"),this.settings=e instanceof OidcClientSettingsStore?e:new OidcClientSettingsStore(e),this.metadataService=t??new MetadataService(this.settings),this._claimsService=new ClaimsService(this.settings),this._validator=new ResponseValidator(this.settings,this.metadataService,this._claimsService),this._tokenClient=new TokenClient(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:o,id_token_hint:c,login_hint:d,skipUserInfo:f,nonce:b,url_state:m,response_type:S=this.settings.response_type,scope:w=this.settings.scope,redirect_uri:T=this.settings.redirect_uri,prompt:A=this.settings.prompt,display:C=this.settings.display,max_age:P=this.settings.max_age,ui_locales:B=this.settings.ui_locales,acr_values:U=this.settings.acr_values,resource:D=this.settings.resource,response_mode:$=this.settings.response_mode,extraQueryParams:z=this.settings.extraQueryParams,extraTokenParams:V=this.settings.extraTokenParams,dpopJkt:F,omitScopeWhenRequesting:ee=this.settings.omitScopeWhenRequesting}){const te=this._logger.create("createSigninRequest");
175if(S!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const K=await this.metadataService.getAuthorizationEndpoint();te.debug("Received authorization endpoint",K);const H=await SigninRequest.create({url:K,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:T,response_type:S,scope:w,state_data:e,url_state:m,prompt:A,display:C,max_age:P,ui_locales:B,id_token_hint:c,login_hint:d,acr_values:U,dpopJkt:F,resource:D,request:t,request_uri:r,extraQueryParams:z,extraTokenParams:V,request_type:o,response_mode:$,client_secret:this.settings.client_secret,skipUserInfo:f,nonce:b,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:ee});await this.clearStaleState();const X=H.state;return await this.settings.stateStore.set(X.id,X.toStorageString()),H}async readSigninResponseState(e,t=!1){const r=this._logger.create("readSigninResponseState"),o=new SigninResponse(UrlUtils.readParams(e,this.settings.response_mode));if(!o.state)throw r.throw(new Error("No state in response")),null;const c=await this.settings.stateStore[t?"remove":"get"](o.state);if(!c)throw r.throw(new Error("No matching state found in storage")),null;return{state:await SigninState.fromStorageString(c),response:o}}async processSigninResponse(e,t,r=!0){const o=this._logger.create("processSigninResponse"),{state:c,response:d}=await this.readSigninResponseState(e,r);if(o.debug("received state from storage; validating response"),this.settings.dpop&&this.settings.dpop.store){const f=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:f}}try{await this._validator.validateSigninResponse(d,c,t)}catch(f){if(!(f instanceof ErrorDPoPNonce&&this.settings.dpop))throw f;{const b=await this.getDpopProof(this.settings.dpop.store,f.nonce);t.DPoP=b,await this._validator.validateSigninResponse(d,c,t)}}return d}async getDpopProof(e,t){let r,o;return(await e.getAllKeys()).includes(this.settings.client_id)?(o=await e.get(this.settings.client_id),o.nonce!==t&&t&&(o.nonce=t,await e.set(this.settings.client_id,o))):(r=await CryptoUtils.generateDPoPKeys(),o=new DPoPState(r,t),await e.set(this.settings.client_id,o)),await CryptoUtils.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:"POST",keyPair:o.keys,nonce:o.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:o={}}){const c=await this._tokenClient.exchangeCredentials({username:e,password:t,...o}),d=new SigninResponse(new URLSearchParams);return Object.assign(d,c),await this._validator.validateCredentialsResponse(d,r),d}async useRefreshToken({state:e,redirect_uri:t,resource:r,timeoutInSeconds:o,extraHeaders:c,extraTokenParams:d}){var f;const b=this._logger.create("useRefreshToken");let m,S;if(this.settings.refreshTokenAllowedScope===void 0)m=e.scope;else{const T=this.settings.refreshTokenAllowedScope.split(" ");m=(((f=e.scope)==null?void 0:f.split(" "))||[]).filter(A=>T.includes(A)).join(" ")}if(this.settings.dpop&&this.settings.dpop.store){const T=await this.getDpopProof(this.settings.dpop.store);c={...c,DPoP:T}}try{S=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:m,redirect_uri:t,resource:r,timeoutInSeconds:o,extraHeaders:c,...d})}catch(T){if(!(T instanceof ErrorDPoPNonce&&this.settings.dpop))throw T;c.DPoP=await this.getDpopProof(this.settings.dpop.store,T.nonce),S=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:m,redirect_uri:t,resource:r,timeoutInSeconds:o,extraHeaders:c,...d})}const w=new SigninResponse(new URLSearchParams);return Object.assign(w,S),b.debug("validating response",w),await this._validator.validateRefreshResponse(w,{...e,scope:m}),w}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:o,url_state:c,post_logout_redirect_uri:d=this.settings.post_logout_redirect_uri,extraQueryParams:f=this.settings.extraQueryParams}={}){const b=this._logger.create("createSignoutRequest"),m=await this.metadataService.getEndSessionEndpoint();if(!m)throw b.throw(new Error("No end session endpoint")),null;b.debug("Received end session endpoint",m),r||!d||t||(r=this.settings.client_id);
175const S=new SignoutRequest({url:m,id_token_hint:t,client_id:r,post_logout_redirect_uri:d,state_data:e,extraQueryParams:f,request_type:o,url_state:c});await this.clearStaleState();const w=S.state;return w&&(b.debug("Signout request has state to persist"),await this.settings.stateStore.set(w.id,w.toStorageString())),S}async readSignoutResponseState(e,t=!1){const r=this._logger.create("readSignoutResponseState"),o=new SignoutResponse(UrlUtils.readParams(e,this.settings.response_mode));if(!o.state){if(r.debug("No state in response"),o.error)throw r.warn("Response was error:",o.error),new ErrorResponse(o);return{state:void 0,response:o}}const c=await this.settings.stateStore[t?"remove":"get"](o.state);if(!c)throw r.throw(new Error("No matching state found in storage")),null;return{state:await State$1.fromStorageString(c),response:o}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:r,response:o}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(o,r)):t.debug("No state from storage; skipping response validation"),o}clearStaleState(){return this._logger.create("clearStaleState"),State$1.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},SessionMonitor=class{constructor(e){this._userManager=e,this._logger=new Logger("SessionMonitor"),this._start=async t=>{const r=t.session_state;if(!r)return;const o=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,o.debug("session_state",r,", sub",this._sub)):(this._sub=void 0,o.debug("session_state",r,", anonymous user")),this._checkSessionIFrame)this._checkSessionIFrame.start(r);else try{const c=await this._userManager.metadataService.getCheckSessionIframe();if(c){o.debug("initializing check session iframe");const d=this._userManager.settings.client_id,f=this._userManager.settings.checkSessionIntervalInSeconds,b=this._userManager.settings.stopCheckSessionOnError,m=new CheckSessionIFrame(this._callback,d,c,f,b);await m.load(),this._checkSessionIFrame=m,m.start(r)}else o.warn("no check session iframe found in the metadata")}catch(c){o.error("Error from getCheckSessionIframe:",c instanceof Error?c.message:c)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const r=setInterval(async()=>{clearInterval(r);try{const o=await this._userManager.querySessionStatus();if(o){const c={session_state:o.session_state,profile:o.sub?{sub:o.sub}:null};this._start(c)}}catch(o){t.error("error from querySessionStatus",o instanceof Error?o.message:o)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const r=await this._userManager.querySessionStatus();let o=!0;r&&this._checkSessionIFrame?r.sub===this._sub?(o=!1,this._checkSessionIFrame.start(r.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",r.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",r.sub):t.debug("subject no longer signed into OP"),o?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(r){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",r),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const r={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(r)}}}},User=class Gs{constructor(t){var r;this.id_token=t.id_token,this.session_state=(r=t.session_state)!=null?r:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Timer.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+Timer.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,r;return(r=(t=this.scope)==null?void 0:t.split(" "))!=null?r:[]}toStorageString(){return new Logger("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return Logger.createStatic("User","fromStorageString"),new Gs(JSON.parse(t))}},messageSource="oidc-client",AbstractChildWindow=class{constructor(){this._abort=new Event$1("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:r,keepOpen:o}=await new Promise((c,d)=>{const f=m=>{var S;const w=m.data,T=(S=e.scriptOrigin)!=null?S:window.location.origin;if(m.origin===T&&(w==null?void 0:w.source)===messageSource){try{const A=UrlUtils.readParams(w.url,e.response_mode).get("state");if(A||t.warn("no state found in response url"),m.source!==this._window&&A!==e.state)return}catch{this._dispose(),d(new Error("Invalid response from window"))}c(w)}};window.addEventListener("message",f,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",f,!1));const b=new BroadcastChannel(`oidc-client-popup-${e.state}`);b.addEventListener("message",f,!1),this._disposeHandlers.add(()=>b.close()),this._disposeHandlers.add(this._abort.addHandler(m=>{this._dispose(),d(m)}))});return t.debug("got response from window"),this._dispose(),o||this.close(),{url:r}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,o=window.location.origin){const c={source:messageSource,url:t,keepOpen:r},d=new Logger("_notifyParent");
175if(e)d.debug("With parent. Using parent.postMessage."),e.postMessage(c,o);else{d.debug("No parent. Using BroadcastChannel.");const f=new URL(t).searchParams.get("state");if(!f)throw new Error("No parent and no state in URL. Can't complete notification.");const b=new BroadcastChannel(`oidc-client-popup-${f}`);b.postMessage(c),b.close()}}},DefaultPopupWindowFeatures={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},DefaultPopupTarget="_blank",DefaultAccessTokenExpiringNotificationTimeInSeconds=60,DefaultCheckSessionIntervalInSeconds=2,DefaultSilentRequestTimeoutInSeconds=10,UserManagerSettingsStore=class extends OidcClientSettingsStore{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:o=DefaultPopupWindowFeatures,popupWindowTarget:c=DefaultPopupTarget,redirectMethod:d="assign",redirectTarget:f="self",iframeNotifyParentOrigin:b=e.iframeNotifyParentOrigin,iframeScriptOrigin:m=e.iframeScriptOrigin,requestTimeoutInSeconds:S,silent_redirect_uri:w=e.redirect_uri,silentRequestTimeoutInSeconds:T,automaticSilentRenew:A=!0,validateSubOnSilentRenew:C=!0,includeIdTokenInSilentRenew:P=!1,monitorSession:B=!1,monitorAnonymousSession:U=!1,checkSessionIntervalInSeconds:D=DefaultCheckSessionIntervalInSeconds,query_status_response_type:$="code",stopCheckSessionOnError:z=!0,revokeTokenTypes:V=["access_token","refresh_token"],revokeTokensOnSignout:F=!1,includeIdTokenInSilentSignout:ee=!1,accessTokenExpiringNotificationTimeInSeconds:te=DefaultAccessTokenExpiringNotificationTimeInSeconds,maxSilentRenewTimeoutRetries:K,userStore:H}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=o,this.popupWindowTarget=c,this.redirectMethod=d,this.redirectTarget=f,this.iframeNotifyParentOrigin=b,this.iframeScriptOrigin=m,this.silent_redirect_uri=w,this.silentRequestTimeoutInSeconds=T||S||DefaultSilentRequestTimeoutInSeconds,this.automaticSilentRenew=A,this.validateSubOnSilentRenew=C,this.includeIdTokenInSilentRenew=P,this.monitorSession=B,this.monitorAnonymousSession=U,this.checkSessionIntervalInSeconds=D,this.stopCheckSessionOnError=z,this.query_status_response_type=$,this.revokeTokenTypes=V,this.revokeTokensOnSignout=F,this.includeIdTokenInSilentSignout=ee,this.accessTokenExpiringNotificationTimeInSeconds=te,this.maxSilentRenewTimeoutRetries=K,H)this.userStore=H;else{const X=typeof window<"u"?window.sessionStorage:new InMemoryWebStorage;this.userStore=new WebStorageStateStore({store:X})}}},IFrameWindow=class qs extends AbstractChildWindow{constructor({silentRequestTimeoutInSeconds:t=DefaultSilentRequestTimeoutInSeconds}){super(),this._logger=new Logger("IFrameWindow"),this._timeoutInSeconds=t,this._frame=qs.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const r=setTimeout(()=>{this._abort.raise(new ErrorTimeout("IFrame timed out without a response"))},1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(r)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",r=>{var o;const c=r.target;(o=c.parentNode)==null||o.removeChild(c),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,r){return super._notifyParent(window.parent,t,!1,r)}},IFrameNavigator=class{constructor(e){this._settings=e,this._logger=new Logger("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new IFrameWindow({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),IFrameWindow.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},checkForPopupClosedInterval=500,second=1e3,PopupWindow=class extends AbstractChildWindow{constructor({popupWindowTarget:e=DefaultPopupTarget,popupWindowFeatures:t={},popupSignal:r,popupAbortOnClose:o}){super(),this._logger=new Logger("PopupWindow");const c=PopupUtils.center({...DefaultPopupWindowFeatures,...t});this._window=window.open(void 0,e,PopupUtils.serialize(c)),this.abortOnClose=!!o,r&&r.addEventListener("abort",()=>{var d;this._abort.raise(new Error((d=r.reason)!=null?d:"Popup aborted"))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{this._window&&typeof this._window.closed=="boolean"&&!this._window.closed?this.close():this._abort.raise(new Error("Popup blocked by user"))},t.closePopupWindowAfterInSeconds*second)}async navigate(e){var t;(t=this._window)==null||t.focus();const r=setInterval(()=>{this._window&&!this._window.closed||(this._logger.debug("Popup closed by user or isolated by redirect"),o(),this._disposeHandlers.delete(o),this.abortOnClose&&this._abort.raise(new Error("Popup closed by user")))},checkForPopupClosedInterval),o=()=>clearInterval(r);return this._disposeHandlers.add(o),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){super._notifyParent(window.opener,e,t),t||window.opener||window.close()}},PopupNavigator=class{constructor(e){this._settings=e,this._logger=new Logger("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:r,popupAbortOnClose:o}){return new PopupWindow({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:r,popupAbortOnClose:o})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),PopupWindow.notifyOpener(e,t)}},RedirectNavigator=class{constructor(e){this._settings=e,this._logger=new Logger("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;this._logger.create("prepare");let o=window.self;t==="top"&&(o=(r=window.top)!=null?r:window.self);const c=o.location[e].bind(o.location);let d;return{navigate:async f=>(this._logger.create("navigate"),await new Promise((m,S)=>{d=S,window.addEventListener("pageshow",()=>m(window.location.href)),c(f.url)})),close:()=>{this._logger.create("close"),d==null||d(new Error("Redirect aborted")),o.stop()}}}async callback(){}},UserManagerEvents=class extends AccessTokenEvents{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Logger("UserManagerEvents"),this._userLoaded=new Event$1("User loaded"),this._userUnloaded=new Event$1("User unloaded"),this._silentRenewError=ne
175w Event$1("Silent renew error"),this._userSignedIn=new Event$1("User signed in"),this._userSignedOut=new Event$1("User signed out"),this._userSessionChanged=new Event$1("User session changed")}async load(e,t=!0){await super.load(e),t&&await this._userLoaded.raise(e)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},SilentRenewService=class{constructor(e){this._userManager=e,this._logger=new Logger("SilentRenewService"),this._isStarted=!1,this._retryTimer=new Timer("Retry Silent Renew"),this._timeoutRetryCount=0,this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),this._timeoutRetryCount=0,t.debug("silent token renewal successful")}catch(r){if(r instanceof ErrorTimeout){this._timeoutRetryCount++;const o=this._userManager.settings.maxSilentRenewTimeoutRetries;return o!==void 0&&this._timeoutRetryCount>o?(t.error(`Timeout retry limit reached (${this._timeoutRetryCount} > ${o}), raising silentRenewError:`,r),this._timeoutRetryCount=0,void await this._userManager.events._raiseSilentRenewError(r)):(t.warn(`ErrorTimeout from signinSilent (attempt ${this._timeoutRetryCount}), retry in 5s:`,r),void this._retryTimer.init(5))}t.error("Error from signinSilent:",r),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(r)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},RefreshState=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},UserManager=class{constructor(e,t,r,o){this._logger=new Logger("UserManager"),this.settings=new UserManagerSettingsStore(e),this._client=new OidcClient(e),this._redirectNavigator=t??new RedirectNavigator(this.settings),this._popupNavigator=r??new PopupNavigator(this.settings),this._iframeNavigator=o??new IFrameNavigator(this.settings),this._events=new UserManagerEvents(this.settings),this._silentRenewService=new SilentRenewService(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new SessionMonitor(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(e=!1){const t=this._logger.create("getUser"),r=await this._loadUser();return r?(t.info("user loaded"),await this._events.load(r,e),r):(t.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){var t;this._logger.create("signinRedirect");const{redirectMethod:r,...o}=e;let c;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(c=await this.generateDPoPJkt(this.settings.dpop));const d=await this._redirectNavigator.prepare({redirectMethod:r});await this._signinStart({request_type:"si:r",dpopJkt:c,...o},d)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){const o=this._logger.create("signinResourceOwnerCredential"),c=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});o.debug("got signin response");const d=await this._buildUser(c);return d.profile&&d.profile.sub?o.info("success, signed in subject",d.profile.sub):o.info("no subject"),d}async signinPopup(e={}){var t;const r=this._logger.create("signinPopup");let o;(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(o=await this.generateDPoPJkt(this.settings.dpop));const{popupWindowFeatures:c,popupWindowTarget:d,popupSignal:f,popupAbortOnClose:b,...m}=e,S=this.settings.popup_redirect_uri;S||r.throw(new Error("No popup_redirect_uri configured"));const w=await this._popupNavigator.prepare({popupWindowFeatures:c,popupWindowTarget:d,popupSignal:f,popupAbortOnClose:b}),T=await this._signin({request_type:"si:p",redirect_uri:S,display:"popup",dpopJkt:o,...m},w);return T&&(T.profile&&T.profile.sub?r.info("success, signed in subject",T.profile.sub):r.info("no subject")),T}async signinPopupCallback(e=window.location.href,t=!1){const r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t,r;const o=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:c,...d}=e;let f,b=await this._loadUser();if(!e.forceIframeAuth&&(b!=null&&b.refresh_token)){o.debug("using refresh token");const T=new RefreshState(b);return await this._useRefreshToken({state:T,redirect_uri:d.redirect_uri,resource:d.resource,extraTokenParams:d.extraTokenParams,timeoutInSeconds:c})}(t=this.settings.dpop)!=null&&t.bind_authorization_code&&(f=await this.generateDPoPJkt(this.settings.dpop));const m=this.settings.silent_redirect_uri;let S;m||o.throw(new Error("No silent_redirect_uri configured")),b&&this.settings.val
175idateSubOnSilentRenew&&(o.debug("subject prior to silent renew:",b.profile.sub),S=b.profile.sub);const w=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:c});return b=await this._signin({request_type:"si:s",redirect_uri:m,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?b==null?void 0:b.id_token:void 0,dpopJkt:f,...d},w,S),b&&((r=b.profile)!=null&&r.sub?o.info("success, signed in subject",b.profile.sub):o.info("no subject")),b}async _useRefreshToken(e){const t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),r=new User({...e.state,...t});return await this.storeUser(r),await this._events.load(r),r}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":await this.signinPopupCallback(e);break;case"si:s":await this.signinSilentCallback(e);break;default:throw new Error("invalid request_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":return await this.signoutRedirectCallback(e);case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid request_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...o}=e,c=this.settings.silent_redirect_uri;c||t.throw(new Error("No silent_redirect_uri configured"));const d=await this._loadUser(),f=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),b=await this._signinStart({request_type:"si:s",redirect_uri:c,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?d==null?void 0:d.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...o},f);try{const m={},S=await this._client.processSigninResponse(b.url,m);return t.debug("got signin response"),S.session_state&&S.profile.sub?(t.info("success for subject",S.profile.sub),{session_state:S.session_state,sub:S.profile.sub}):(t.info("success, user not authenticated"),null)}catch(m){if(this.settings.monitorAnonymousSession&&m instanceof ErrorResponse)switch(m.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:m.session_state}}throw m}}async _signin(e,t,r){const o=await this._signinStart(e,t);return await this._signinEnd(o.url,r)}async _signinStart(e,t){const r=this._logger.create("_signinStart");try{const o=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:o.url,state:o.state.id,response_mode:o.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(o){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),o}}async _signinEnd(e,t){const r=this._logger.create("_signinEnd"),o=await this._client.processSigninResponse(e,{});return r.debug("got signin response"),await this._buildUser(o,t)}async _buildUser(e,t){const r=this._logger.create("_buildUser"),o=new User(e);if(t){if(t!==o.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",o.profile.sub),new ErrorResponse({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(o),r.debug("user stored"),await this._events.load(o),o}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:r,...o}=e,c=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...o},c),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:o,popupSignal:c,...d}=e,f=this.settings.popup_post_logout_redirect_uri,b=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:o,popupSignal:c});await this._signout({request_type:"so:p",post_logout_redirect_uri:f,state:f==null?void 0:{},...d},b),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){const r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;const o=this._logger.create("_signoutStart");try{const c=await this._loadUser();o.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(c);const d=e.id_token_hint||c&&c.id_token;d&&(o.debug("setting id_token_hint in signout request"),e.id_token_hint=d),await this.removeUser(),o.debug("user removed, creating signout request");
175const f=await this._client.createSignoutRequest(e);return o.debug("got signout request"),await t.navigate({url:f.url,state:(r=f.state)==null?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(c){throw o.debug("error after preparing navigator, closing navigator window"),t.close(),c}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;const r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:o,...c}=e,d=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,f=this.settings.popup_post_logout_redirect_uri,b=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:o});await this._signout({request_type:"so:s",post_logout_redirect_uri:f,id_token_hint:d,...c},b),r.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const r=this._logger.create("_revokeInternal");if(!e)return;const o=t.filter(c=>typeof e[c]=="string");if(o.length){for(const c of o)await this._client.revokeToken(e[c],c),r.info(`${c} revoked successfully`),c!=="access_token"&&(e[c]=null);await this.storeUser(e),r.debug("user stored"),await this._events.load(e)}else r.debug("no need to revoke due to no token(s)")}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),User.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(e,t,r,o){var c,d;const f=await((d=(c=this.settings.dpop)==null?void 0:c.store)==null?void 0:d.get(this.settings.client_id));if(f)return await CryptoUtils.generateDPoPProof({url:e,accessToken:t==null?void 0:t.access_token,httpMethod:r,keyPair:f.keys,nonce:o})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);if(!t){const r=await CryptoUtils.generateDPoPKeys();t=new DPoPState(r),await e.store.set(this.settings.client_id,t)}return await CryptoUtils.generateDPoPJkt(t.keys)}},__classPrivateFieldGet$l=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},__classPrivateFieldSet$l=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},_OIDC_entitlements;class OIDC{constructor(t,r,o,c){_OIDC_entitlements.set(this,[]),this.get
175Session=async()=>await this.userManager.getUser(),this.isAuthed=async()=>await this.userManager.getUser()!=null,this.getUser=async()=>await this.getSession(),this.getUserDetails=async()=>{var d;return(d=await this.userManager.getUser())==null?void 0:d.profile},this.getEntitlements=async()=>{var S,w,T,A;if(__classPrivateFieldGet$l(this,_OIDC_entitlements,"f")&&__classPrivateFieldGet$l(this,_OIDC_entitlements,"f").length>0)return __classPrivateFieldGet$l(this,_OIDC_entitlements,"f");const d=await this.userManager.getUser(),f=this.idProperty.split(".").reduce((C,P)=>C==null?void 0:C[P],d==null?void 0:d.profile),b=await fetch(`https://streamline.web.gc.${this.url}/v2/users/entitlements/${f}`),m=await b.json();return(w=(S=m==null?void 0:m.data)==null?void 0:S.attributes)!=null&&w.entitlements&&__classPrivateFieldSet$l(this,_OIDC_entitlements,m.data.attributes.entitlements,"f"),((A=(T=m==null?void 0:m.data)==null?void 0:T.attributes)==null?void 0:A.entitlements)||[]},this.userSignoutCallback=async()=>{try{return await this.userManager.signoutCallback()}catch(d){return console.error("OIDC ERROR",d),!1}},this.userCallback=async()=>{try{return await this.userManager.signinRedirectCallback()}catch(d){return console.error("OIDC ERROR",d),!1}},this.login=async()=>await this.userManager.signinRedirect(),this.signInSilent=async()=>await this.userManager.signinSilent(),this.signout=async()=>{const d=await this.userManager.getUser();await this.userManager.removeUser(),await this.userManager.signoutRedirect({id_token_hint:d==null?void 0:d.id_token})},this.url=t,this.idProperty=(c==null?void 0:c.idProperty)||"sub",this.settings={...o,userStore:new WebStorageStateStore({store:window.localStorage})},this.userManager=new UserManager({...this.settings,monitorSession:!0})}}_OIDC_entitlements=new WeakMap;var buffer={},hasRequiredBuffer;/*!
176 * The buffer module from node.js, for the browser.
177 *
178 * @author   Feross Aboukhadijeh <https://feross.org>
179 * @license  MIT
180 */function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,(function(e){const t=requireBase64Js(),r=requireIeee754(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=function(L){return+L!=L&&(L=0),f.alloc(+L)},e.INSPECT_MAX_BYTES=50;const c=2147483647;function d(L){if(L>c)throw new RangeError('The value "'+L+'" is invalid for option "size"');const j=new Uint8Array(L);return Object.setPrototypeOf(j,f.prototype),j}function f(L,j,Z){if(typeof L=="number"){if(typeof j=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(L)}return b(L,j,Z)}function b(L,j,Z){if(typeof L=="string")return(function(Ae,Le){if(typeof Le=="string"&&Le!==""||(Le="utf8"),!f.isEncoding(Le))throw new TypeError("Unknown encoding: "+Le);const Ke=0|C(Ae,Le);let nt=d(Ke);const Be=nt.write(Ae,Le);return Be!==Ke&&(nt=nt.slice(0,Be)),nt})(L,j);if(ArrayBuffer.isView(L))return(function(Ae){if(we(Ae,Uint8Array)){const Le=new Uint8Array(Ae);return T(Le.buffer,Le.byteOffset,Le.byteLength)}return w(Ae)})(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(we(L,ArrayBuffer)||L&&we(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(we(L,SharedArrayBuffer)||L&&we(L.buffer,SharedArrayBuffer)))return T(L,j,Z);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=L.valueOf&&L.valueOf();if(le!=null&&le!==L)return f.from(le,j,Z);const Te=(function(Ae){if(f.isBuffer(Ae)){const Le=0|A(Ae.length),Ke=d(Le);return Ke.length===0||Ae.copy(Ke,0,0,Le),Ke}if(Ae.length!==void 0)return typeof Ae.length!="number"||xe(Ae.length)?d(0):w(Ae);if(Ae.type==="Buffer"&&Array.isArray(Ae.data))return w(Ae.data)})(L);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return f.from(L[Symbol.toPrimitive]("string"),j,Z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function m(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');
180if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function S(L){return m(L),d(L<0?0:0|A(L))}function w(L){const j=L.length<0?0:0|A(L.length),Z=d(j);for(let le=0;le<j;le+=1)Z[le]=255&L[le];return Z}function T(L,j,Z){if(j<0||L.byteLength<j)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<j+(Z||0))throw new RangeError('"length" is outside of buffer bounds');let le;return le=j===void 0&&Z===void 0?new Uint8Array(L):Z===void 0?new Uint8Array(L,j):new Uint8Array(L,j,Z),Object.setPrototypeOf(le,f.prototype),le}function A(L){if(L>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return 0|L}function C(L,j){if(f.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||we(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const Z=L.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&Z===0)return 0;let Te=!1;for(;;)switch(j){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return ne(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Z;case"hex":return Z>>>1;case"base64":return Se(L).length;default:if(Te)return le?-1:ne(L).length;j=(""+j).toLowerCase(),Te=!0}}function P(L,j,Z){let le=!1;if((j===void 0||j<0)&&(j=0),j>this.length||((Z===void 0||Z>this.length)&&(Z=this.length),Z<=0)||(Z>>>=0)<=(j>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return G(this,j,Z);case"utf8":case"utf-8":return K(this,j,Z);case"ascii":return X(this,j,Z);case"latin1":case"binary":return J(this,j,Z);case"base64":return te(this,j,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,j,Z);default:if(le)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),le=!0}}function B(L,j,Z){const le=L[j];L[j]=L[Z],L[Z]=le}function U(L,j,Z,le,Te){if(L.length===0)return-1;if(typeof Z=="string"?(le=Z,Z=0):Z>2147483647?Z=2147483647:Z<-2147483648&&(Z=-2147483648),xe(Z=+Z)&&(Z=Te?0:L.length-1),Z<0&&(Z=L.length+Z),Z>=L.length){if(Te)return-1;Z=L.length-1}else if(Z<0){if(!Te)return-1;Z=0}if(typeof j=="string"&&(j=f.from(j,le)),f.isBuffer(j))return j.length===0?-1:D(L,j,Z,le,Te);if(typeof j=="number")return j&=255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(L,j,Z):Uint8Array.prototype.lastIndexOf.call(L,j,Z):D(L,[j],Z,le,Te);throw new TypeError("val must be string, number or Buffer")}function D(L,j,Z,le,Te){let Ae,Le=1,Ke=L.length,nt=j.length;if(le!==void 0&&((le=String(le).toLowerCase())==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(L.length<2||j.length<2)return-1;Le=2,Ke/=2,nt/=2,Z/=2}function Be(vt,ht){return Le===1?vt[ht]:vt.readUInt16BE(ht*Le)}if(Te){let vt=-1;for(Ae=Z;Ae<Ke;Ae++)if(Be(L,Ae)===Be(j,vt===-1?0:Ae-vt)){if(vt===-1&&(vt=Ae),Ae-vt+1===nt)return vt*Le}else vt!==-1&&(Ae-=Ae-vt),vt=-1}else for(Z+nt>Ke&&(Z=Ke-nt),Ae=Z;Ae>=0;Ae--){let vt=!0;for(let ht=0;ht<nt;ht++)if(Be(L,Ae+ht)!==Be(j,ht)){vt=!1;break}if(vt)return Ae}return-1}function $(L,j,Z,le){Z=Number(Z)||0;const Te=L.length-Z;le?(le=Number(le))>Te&&(le=Te):le=Te;const Ae=j.length;let Le;for(le>Ae/2&&(le=Ae/2),Le=0;Le<le;++Le){const Ke=parseInt(j.substr(2*Le,2),16);if(xe(Ke))return Le;L[Z+Le]=Ke}return Le}function z(L,j,Z,le){return he(ne(j,L.length-Z),L,Z,le)}function V(L,j,Z,le){return he((function(Te){const Ae=[];for(let Le=0;Le<Te.length;++Le)Ae.push(255&Te.charCodeAt(Le));return Ae})(j),L,Z,le)}function F(L,j,Z,le){return he(Se(j),L,Z,le)}function ee(L,j,Z,le){return he((function(Te,Ae){let Le,Ke,nt;const Be=[];for(let vt=0;vt<Te.length&&!((Ae-=2)<0);
180++vt)Le=Te.charCodeAt(vt),Ke=Le>>8,nt=Le%256,Be.push(nt),Be.push(Ke);return Be})(j,L.length-Z),L,Z,le)}function te(L,j,Z){return j===0&&Z===L.length?t.fromByteArray(L):t.fromByteArray(L.slice(j,Z))}function K(L,j,Z){Z=Math.min(L.length,Z);const le=[];let Te=j;for(;Te<Z;){const Ae=L[Te];let Le=null,Ke=Ae>239?4:Ae>223?3:Ae>191?2:1;if(Te+Ke<=Z){let nt,Be,vt,ht;switch(Ke){case 1:Ae<128&&(Le=Ae);break;case 2:nt=L[Te+1],(192&nt)==128&&(ht=(31&Ae)<<6|63&nt,ht>127&&(Le=ht));break;case 3:nt=L[Te+1],Be=L[Te+2],(192&nt)==128&&(192&Be)==128&&(ht=(15&Ae)<<12|(63&nt)<<6|63&Be,ht>2047&&(ht<55296||ht>57343)&&(Le=ht));break;case 4:nt=L[Te+1],Be=L[Te+2],vt=L[Te+3],(192&nt)==128&&(192&Be)==128&&(192&vt)==128&&(ht=(15&Ae)<<18|(63&nt)<<12|(63&Be)<<6|63&vt,ht>65535&&ht<1114112&&(Le=ht))}}Le===null?(Le=65533,Ke=1):Le>65535&&(Le-=65536,le.push(Le>>>10&1023|55296),Le=56320|1023&Le),le.push(Le),Te+=Ke}return(function(Ae){const Le=Ae.length;if(Le<=H)return String.fromCharCode.apply(String,Ae);let Ke="",nt=0;for(;nt<Le;)Ke+=String.fromCharCode.apply(String,Ae.slice(nt,nt+=H));return Ke})(le)}e.kMaxLength=c,f.TYPED_ARRAY_SUPPORT=(function(){try{const L=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(L,j),L.foo()===42}catch{return!1}})(),f.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(L,j,Z){return b(L,j,Z)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(L,j,Z){return(function(le,Te,Ae){return m(le),le<=0?d(le):Te!==void 0?typeof Ae=="string"?d(le).fill(Te,Ae):d(le).fill(Te):d(le)})(L,j,Z)},f.allocUnsafe=function(L){return S(L)},f.allocUnsafeSlow=function(L){return S(L)},f.isBuffer=function(L){return L!=null&&L._isBuffer===!0&&L!==f.prototype},f.compare=function(L,j){if(we(L,Uint8Array)&&(L=f.from(L,L.offset,L.byteLength)),we(j,Uint8Array)&&(j=f.from(j,j.offset,j.byteLength)),!f.isBuffer(L)||!f.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(L===j)return 0;let Z=L.length,le=j.length;for(let Te=0,Ae=Math.min(Z,le);Te<Ae;++Te)if(L[Te]!==j[Te]){Z=L[Te],le=j[Te];break}return Z<le?-1:le<Z?1:0},f.isEncoding=function(L){switch(String(L).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(L,j){if(!Array.isArray(L))throw new TypeError('"list" argument must be an Array of Buffers');if(L.length===0)return f.alloc(0);let Z;if(j===void 0)for(j=0,Z=0;Z<L.length;++Z)j+=L[Z].length;const le=f.allocUnsafe(j);let Te=0;for(Z=0;Z<L.length;++Z){let Ae=L[Z];if(we(Ae,Uint8Array))Te+Ae.length>le.length?(f.isBuffer(Ae)||(Ae=f.from(Ae)),Ae.copy(le,Te)):Uint8Array.prototype.set.call(le,Ae,Te);else{if(!f.isBuffer(Ae))throw new TypeError('"list" argument must be an Array of Buffers');Ae.copy(le,Te)}Te+=Ae.length}return le},f.byteLength=C,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<L;j+=2)B(this,j,j+1);return this},f.prototype.swap32=function(){const L=this.length;if(L%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<L;j+=4)B(this,j,j+3),B(this,j+1,j+2);return this},f.prototype.swap64=function(){const L=this.length;if(L%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<L;j+=8)B(this,j,j+7),B(this,j+1,j+6),B(this,j+2,j+5),B(this,j+3,j+4);return this},f.prototype.toString=function(){const L=this.length;return L===0?"":arguments.length===0?K(this,0,L):P.apply(this,arguments)}
180,f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(L){if(!f.isBuffer(L))throw new TypeError("Argument must be a Buffer");return this===L||f.compare(this,L)===0},f.prototype.inspect=function(){let L="";const j=e.INSPECT_MAX_BYTES;return L=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(L+=" ... "),"<Buffer "+L+">"},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(L,j,Z,le,Te){if(we(L,Uint8Array)&&(L=f.from(L,L.offset,L.byteLength)),!f.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(j===void 0&&(j=0),Z===void 0&&(Z=L?L.length:0),le===void 0&&(le=0),Te===void 0&&(Te=this.length),j<0||Z>L.length||le<0||Te>this.length)throw new RangeError("out of range index");if(le>=Te&&j>=Z)return 0;if(le>=Te)return-1;if(j>=Z)return 1;if(this===L)return 0;let Ae=(Te>>>=0)-(le>>>=0),Le=(Z>>>=0)-(j>>>=0);const Ke=Math.min(Ae,Le),nt=this.slice(le,Te),Be=L.slice(j,Z);for(let vt=0;vt<Ke;++vt)if(nt[vt]!==Be[vt]){Ae=nt[vt],Le=Be[vt];break}return Ae<Le?-1:Le<Ae?1:0},f.prototype.includes=function(L,j,Z){return this.indexOf(L,j,Z)!==-1},f.prototype.indexOf=function(L,j,Z){return U(this,L,j,Z,!0)},f.prototype.lastIndexOf=function(L,j,Z){return U(this,L,j,Z,!1)},f.prototype.write=function(L,j,Z,le){if(j===void 0)le="utf8",Z=this.length,j=0;else if(Z===void 0&&typeof j=="string")le=j,Z=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j>>>=0,isFinite(Z)?(Z>>>=0,le===void 0&&(le="utf8")):(le=Z,Z=void 0)}const Te=this.length-j;if((Z===void 0||Z>Te)&&(Z=Te),L.length>0&&(Z<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");let Ae=!1;for(;;)switch(le){case"hex":return $(this,L,j,Z);case"utf8":case"utf-8":return z(this,L,j,Z);case"ascii":case"latin1":case"binary":return V(this,L,j,Z);case"base64":return F(this,L,j,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,L,j,Z);default:if(Ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),Ae=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const H=4096;function X(L,j,Z){let le="";Z=Math.min(L.length,Z);for(let Te=j;Te<Z;++Te)le+=String.fromCharCode(127&L[Te]);return le}function J(L,j,Z){let le="";Z=Math.min(L.length,Z);for(let Te=j;Te<Z;++Te)le+=String.fromCharCode(L[Te]);return le}function G(L,j,Z){const le=L.length;(!j||j<0)&&(j=0),(!Z||Z<0||Z>le)&&(Z=le);let Te="";for(let Ae=j;Ae<Z;++Ae)Te+=ze[L[Ae]];return Te}function Q(L,j,Z){const le=L.slice(j,Z);let Te="";for(let Ae=0;Ae<le.length-1;Ae+=2)Te+=String.fromCharCode(le[Ae]+256*le[Ae+1]);return Te}
180function pe(L,j,Z){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+j>Z)throw new RangeError("Trying to access beyond buffer length")}function ye(L,j,Z,le,Te,Ae){if(!f.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>Te||j<Ae)throw new RangeError('"value" argument is out of bounds');if(Z+le>L.length)throw new RangeError("Index out of range")}function de(L,j,Z,le,Te){We(j,le,Te,L,Z,7);let Ae=Number(j&BigInt(4294967295));L[Z++]=Ae,Ae>>=8,L[Z++]=Ae,Ae>>=8,L[Z++]=Ae,Ae>>=8,L[Z++]=Ae;let Le=Number(j>>BigInt(32)&BigInt(4294967295));return L[Z++]=Le,Le>>=8,L[Z++]=Le,Le>>=8,L[Z++]=Le,Le>>=8,L[Z++]=Le,Z}function _e(L,j,Z,le,Te){We(j,le,Te,L,Z,7);let Ae=Number(j&BigInt(4294967295));L[Z+7]=Ae,Ae>>=8,L[Z+6]=Ae,Ae>>=8,L[Z+5]=Ae,Ae>>=8,L[Z+4]=Ae;let Le=Number(j>>BigInt(32)&BigInt(4294967295));return L[Z+3]=Le,Le>>=8,L[Z+2]=Le,Le>>=8,L[Z+1]=Le,Le>>=8,L[Z]=Le,Z+8}function Re(L,j,Z,le,Te,Ae){if(Z+le>L.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("Index out of range")}function ge(L,j,Z,le,Te){return j=+j,Z>>>=0,Te||Re(L,0,Z,4),r.write(L,j,Z,le,23,4),Z+4}function Ce(L,j,Z,le,Te){return j=+j,Z>>>=0,Te||Re(L,0,Z,8),r.write(L,j,Z,le,52,8),Z+8}f.prototype.slice=function(L,j){const Z=this.length;(L=~~L)<0?(L+=Z)<0&&(L=0):L>Z&&(L=Z),(j=j===void 0?Z:~~j)<0?(j+=Z)<0&&(j=0):j>Z&&(j=Z),j<L&&(j=L);const le=this.subarray(L,j);return Object.setPrototypeOf(le,f.prototype),le},f.prototype.readUintLE=f.prototype.readUIntLE=function(L,j,Z){L>>>=0,j>>>=0,Z||pe(L,j,this.length);let le=this[L],Te=1,Ae=0;for(;++Ae<j&&(Te*=256);)le+=this[L+Ae]*Te;return le},f.prototype.readUintBE=f.prototype.readUIntBE=function(L,j,Z){L>>>=0,j>>>=0,Z||pe(L,j,this.length);let le=this[L+--j],Te=1;for(;j>0&&(Te*=256);)le+=this[L+--j]*Te;return le},f.prototype.readUint8=f.prototype.readUInt8=function(L,j){return L>>>=0,j||pe(L,1,this.length),this[L]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(L,j){return L>>>=0,j||pe(L,2,this.length),this[L]|this[L+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(L,j){return L>>>=0,j||pe(L,2,this.length),this[L]<<8|this[L+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(L,j){return L>>>=0,j||pe(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(L,j){return L>>>=0,j||pe(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},f.prototype.readBigUInt64LE=Ee(function(L){et(L>>>=0,"offset");const j=this[L],Z=this[L+7];j!==void 0&&Z!==void 0||rt(L,this.length-8);const le=j+256*this[++L]+65536*this[++L]+this[++L]*2**24,Te=this[++L]+256*this[++L]+65536*this[++L]+Z*2**24;return BigInt(le)+(BigInt(Te)<<BigInt(32))}),f.prototype.readBigUInt64BE=Ee(function(L){et(L>>>=0,"offset");const j=this[L],Z=this[L+7];j!==void 0&&Z!==void 0||rt(L,this.length-8);const le=j*2**24+65536*this[++L]+256*this[++L]+this[++L],Te=this[++L]*2**24+65536*this[++L]+256*this[++L]+Z;return(BigInt(le)<<BigInt(32))+BigInt(Te)}),f.prototype.readIntLE=function(L,j,Z){L>>>=0,j>>>=0,Z||pe(L,j,this.length);let le=this[L],Te=1,Ae=0;for(;++Ae<j&&(Te*=256);)le+=this[L+Ae]*Te;return Te*=128,le>=Te&&(le-=Math.pow(2,8*j)),le},f.prototype.readIntBE=function(L,j,Z){L>>>=0,j>>>=0,Z||pe(L,j,this.length);let le=j,Te=1,Ae=this[L+--le];for(;le>0&&(Te*=256);)Ae+=this[L+--le]*Te;return Te*=128,Ae>=Te&&(Ae-=Math.pow(2,8*j)),Ae},f.prototype.readInt8=function(L,j){return L>>>=0,j||pe(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},f.prototype.readInt16LE=function(L,j){L>>>=0,j||pe(L,2,this.length);const Z=this[L]|this[L+1]<<8;return 32768&Z?4294901760|Z:Z},f.prototype.readInt16BE=function(L,j){L>>>=0,j||pe(L,2,this.length);const Z=this[L+1]|this[L]<<8;return 32768&Z?4294901760|Z:Z},f.prototype.readInt32LE=function(L,j){return L>>>=0,j||pe(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},f.prototype.readInt32BE=function(L,j){return L>>>=0,j||pe(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},f.prototype.readBigInt64LE=Ee(function(L){et(L>>>=0,"offset");const j=this[L],Z=this[L+7];j!==void 0&&Z!==void 0||rt(L,this.length-8);const le=this[L+4]+256*this[L+5]+65536*this[L+6]+(Z<<24);return(BigInt(le)<<BigInt(32))+BigInt(j+256*this[++L]+65536*this[++L]+this[++L]*2**24)}),f.prototype.readBigInt64BE=Ee(function(L){et(L>>>=0,"offset");const j=this[L],Z=this[L+7];j!==void 0&&Z!==void 0||rt(L,this.length-8);const le=(j<<24)+65536*this[++L]+256*this[++L]+this[++L];return(BigInt(le)<<BigInt(32))+BigInt(this[++L]*2**24+65536*this[++L]+256*this[++L]+Z)}),f.prototype.readFloatLE=function(L,j){return L>>>=0,j||pe(L,4,this.length),r.read(this,L,!0,23,4)},f.prototype.readFloatBE=function(L,j){return L>>>=0,j||pe(L,4,this.length),r.read(this,L,!1,23,4)},f.prototype.readDoubleLE=function(L,j){return L>>>=0,j||pe(L,8,this.length),r.read(this,L,!0,52,8)},f.prototype.readDoubleBE=function(L,j){return L>>>=0,j||pe(L,8,this.length),r.read(this,L,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(L,j,Z,le){L=+L,j>>>=0,Z>>>=0,!le&&ye(this,L,j,Z,Math.pow(2,8*Z)-1,0);let Te=1,Ae=0;for(this[j]=255&L;++Ae<Z&&(Te*=256);)this[j+Ae]=L/Te&255;return j+Z},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(L,j,Z,le){L=+L,j>>>=0,Z>>>=0,!le&&ye(this,L,j,Z,Math.pow(2,8*Z)-1,0);let Te=Z-1,Ae=1;for(this[j+Te]=255&L;--Te>=0&&(Ae*=256);)this[j+Te]=L/Ae&255;return j+Z},f.prototype.writeUint8=f.prototype.writeUInt8=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,1,255,0),this[j]=255&L,j+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,2,65535,0),this[j]=255&L,this[j+1]=L>>>8,j+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,2,65535,0),this[j]=L>>>8,this[j+1]=255&L,j+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,4,4294967295,0),this[j+3]=L>>>24,this[j+2]=L>>>16,this[j+1]=L>>>8,this[j]=255&L,j+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,4,4294967295,0),this[j]=L>>>24,this[j+1]=L>>>16,this[j+2]=L>>>8,this[j+3]=255&L,j+4},f.prototype.writeBigUInt64LE=Ee(function(L,j=0){return de(this,L,j,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=Ee(function(L,j=0){return _e(this,L,j,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(L,j,Z,le){if(L=+L,j>>>=0,!le){const Ke=Math.pow(2,8*Z-1);ye(this,L,j,Z,Ke-1,-Ke)}let Te=0,Ae=1,Le=0;for(this[j]=255&L;++Te<Z&&(Ae*=256);)L<0&&Le===0&&this[j+Te-1]!==0&&(Le=1),this[j+Te]=(L/Ae|0)-Le&255;return j+Z},f.prototype.writeIntBE=function(L,j,Z,le){if(L=+L,j>>>=0,!le){const Ke=Math.pow(2,8*Z-1);ye(this,L,j,Z,Ke-1,-Ke)}let Te=Z-1,Ae=1,Le=0;for(this[j+Te]=255&L;--Te>=0&&(Ae*=256);)L<0&&Le===0&&this[j+Te+1]!==0&&(Le=1),this[j+Te]=(L/Ae|0)-Le&255;return j+Z},f.prototype.writeInt8=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,1,127,-128),L<0&&(L=255+L+1),this[j]=255&L,j+1},f.prototype.writeInt16LE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,2,32767,-32768),this[j]=255&L,this[j+1]=L>>>8,j+2},f.prototype.writeInt16BE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,2,32767,-32768),this[j]=L>>>8,this[j+1]=255&L,j+2},f.prototype.writeInt32LE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,4,2147483647,-2147483648),this[j]=255&L,this[j+1]=L>>>8,this[j+2]=L>>>16,this[j+3]=L>>>24,j+4},f.prototype.writeInt32BE=function(L,j,Z){return L=+L,j>>>=0,Z||ye(this,L,j,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[j]=L>>>24,this[j+1]=L>>>16,this[j+2]=L>>>8,this[j+3]=255&L,j+4},f.prototype.writeBigInt64LE=Ee(function(L,j=0){return de(this,L,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=Ee(function(L,j=0){return _e(this,L,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(L,j,Z){return ge(this,L,j,!0,Z)},f.prototype.writeFloatBE=function(L,j,Z){return ge(this,L,j,!1,Z)},f.prototype.writeDoubleLE=function(L,j,Z){return Ce(this,L,j,!0,Z)},f.prototype.writeDoubleBE=function(L,j,Z){return Ce(this,L,j,!1,Z)},f.prototype.copy=function(L,j,Z,le){if(!f.isBuffer(L))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),le||le===0||(le=this.length),j>=L.length&&(j=L.length),j||(j=0),le>0&&le<Z&&(le=Z),le===Z||L.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),L.length-j<le-Z&&(le=L.length-j+Z);const Te=le-Z;return this===L&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,Z,le):Uint8Array.prototype.set.call(L,this.subarray(Z,le),j),Te},f.prototype.fill=function(L,j,Z,le){if(typeof L=="string"){if(typeof j=="string"?(le=j,j=0,Z=this.length):typeof Z=="string"&&(le=Z,Z=this.length),le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!f.isEncoding(le))throw new TypeError("Unknown encoding: "+le);if(L.length===1){const Ae=L.charCodeAt(0);(le==="utf8"&&Ae<128||le==="latin1")&&(L=Ae)}}else typeof L=="number"?L&=255:typeof L=="boolean"&&(L=Number(L));if(j<0||this.length<j||this.length<Z)throw new RangeError("Out of range index");if(Z<=j)return this;let Te;if(j>>>=0,Z=Z===void 0?this.length:Z>>>0,L||(L=0),typeof L=="number")for(Te=j;Te<Z;++Te)this[Te]=L;else{const Ae=f.isBuffer(L)?L:f.from(L,le),Le=Ae.length;
180if(Le===0)throw new TypeError('The value "'+L+'" is invalid for argument "value"');for(Te=0;Te<Z-j;++Te)this[Te+j]=Ae[Te%Le]}return this};const Me={};function Ue(L,j,Z){Me[L]=class extends Z{constructor(){super(),Object.defineProperty(this,"message",{value:j.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(le){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:le,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}function Ne(L){let j="",Z=L.length;const le=L[0]==="-"?1:0;for(;Z>=le+4;Z-=3)j=`_${L.slice(Z-3,Z)}${j}`;return`${L.slice(0,Z)}${j}`}function We(L,j,Z,le,Te,Ae){if(L>Z||L<j){const Le=typeof j=="bigint"?"n":"";let Ke;throw Ke=j===0||j===BigInt(0)?`>= 0${Le} and < 2${Le} ** ${8*(Ae+1)}${Le}`:`>= -(2${Le} ** ${8*(Ae+1)-1}${Le}) and < 2 ** ${8*(Ae+1)-1}${Le}`,new Me.ERR_OUT_OF_RANGE("value",Ke,L)}(function(Le,Ke,nt){et(Ke,"offset"),Le[Ke]!==void 0&&Le[Ke+nt]!==void 0||rt(Ke,Le.length-(nt+1))})(le,Te,Ae)}function et(L,j){if(typeof L!="number")throw new Me.ERR_INVALID_ARG_TYPE(j,"number",L)}function rt(L,j,Z){throw Math.floor(L)!==L?(et(L,Z),new Me.ERR_OUT_OF_RANGE("offset","an integer",L)):j<0?new Me.ERR_BUFFER_OUT_OF_BOUNDS:new Me.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${j}`,L)}Ue("ERR_BUFFER_OUT_OF_BOUNDS",function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ue("ERR_INVALID_ARG_TYPE",function(L,j){return`The "${L}" argument must be of type number. Received type ${typeof j}`},TypeError),Ue("ERR_OUT_OF_RANGE",function(L,j,Z){let le=`The value of "${L}" is out of range.`,Te=Z;return Number.isInteger(Z)&&Math.abs(Z)>2**32?Te=Ne(String(Z)):typeof Z=="bigint"&&(Te=String(Z),(Z>BigInt(2)**BigInt(32)||Z<-(BigInt(2)**BigInt(32)))&&(Te=Ne(Te)),Te+="n"),le+=` It must be ${j}. Received ${Te}`,le},RangeError);const re=/[^+/0-9A-Za-z-_]/g;function ne(L,j){let Z;j=j||1/0;const le=L.length;let Te=null;const Ae=[];for(let Le=0;Le<le;++Le){if(Z=L.charCodeAt(Le),Z>55295&&Z<57344){if(!Te){if(Z>56319){(j-=3)>-1&&Ae.push(239,191,189);continue}if(Le+1===le){(j-=3)>-1&&Ae.push(239,191,189);continue}Te=Z;continue}if(Z<56320){(j-=3)>-1&&Ae.push(239,191,189),Te=Z;continue}Z=65536+(Te-55296<<10|Z-56320)}else Te&&(j-=3)>-1&&Ae.push(239,191,189);if(Te=null,Z<128){if((j-=1)<0)break;Ae.push(Z)}else if(Z<2048){if((j-=2)<0)break;Ae.push(Z>>6|192,63&Z|128)}else if(Z<65536){if((j-=3)<0)break;Ae.push(Z>>12|224,Z>>6&63|128,63&Z|128)}else{if(!(Z<1114112))throw new Error("Invalid code point");if((j-=4)<0)break;Ae.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,63&Z|128)}}return Ae}function Se(L){return t.toByteArray((function(j){if((j=(j=j.split("=")[0]).trim().replace(re,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j})(L))}function he(L,j,Z,le){let Te;for(Te=0;Te<le&&!(Te+Z>=j.length||Te>=L.length);++Te)j[Te+Z]=L[Te];return Te}function we(L,j){return L instanceof j||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===j.name}function xe(L){return L!=L}const ze=(function(){const L="0123456789abcdef",j=new Array(256);for(let Z=0;Z<16;++Z){const le=16*Z;for(let Te=0;Te<16;++Te)j[le+Te]=L[Z]+L[Te]}return j})();function Ee(L){return typeof BigInt>"u"?se:L}function se(){throw new Error("BigInt not supported")}})(buffer)),buffer}var bufferExports=requireBuffer();const version="3.7.8",VERSION=version,_hasBuffer=typeof Buffer=="function",_TD=typeof TextDecoder=="function"?new TextDecoder:void 0,_TE=typeof TextEncoder=="function"?new TextEncoder:void 0,b64ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",b64chs=Array.prototype.slice.call(b64ch),b64tab=(e=>{let t={};return b64chs.forEach((r,o)=>t[r]=o),t})(),b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,_fromCC=String.fromCharCode.bind(String),_U8Afrom=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),_mkUriSafe=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),_tidyB64=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),btoaPolyfill=e=>{let t,r,o,c,d="";const f=e.length%3;for(let b=0;b<e.length;){if((r=e.charCodeAt(b++))>255||(o=e.charCodeAt(b++))>255||(c=e.charCodeAt(b++))>255)throw new TypeError("invalid character found");t=r<<16|o<<8|c,d+=b64chs[t>>18&63]+b64chs[t>>12&63]+b64chs[t>>6&63]+b64chs[63&t]}return f?d.slice(0,f-3)+"===".substring(f):d},_btoa=typeof btoa=="function"?e=>btoa(e):_hasBuffer?e=>Buffer.from(e,"binary").toString("base64"):btoaPolyfill,_fromUint8Array=_hasBuffer?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,o=e.length;r<o;r+=4096)t.push(_fromCC.apply(null,e.subarray(r,r+4096)));return _btoa(t.join(""))},fromUint8Array=(e,t=!1)=>t?_mkUriSafe(_fromUint8Array(e)):_fromUint8Array(e),cb_utob=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?_fromCC(192|t>>>6)+_fromCC(128|63&t):_fromCC(224|t>>>12&15)+_fromCC(128|t>>>6&63)+_fromCC(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return _fromCC(240|t>>>18&7)+_fromCC(128|t>>>12&63)+_fromCC(128|t>>>6&63)+_fromCC(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=e=>e.replace(re_utob,cb_utob),_encode=_hasBuffer?e=>Buffer.from(e,"utf8").toString("base64"):_TE?e=>_fromUint8Array(_TE.encode(e)):e=>_btoa(utob(e)),encode=(e,t=!1)=>t?_mkUriSafe(_encode(e)):_encode(e),encodeURI$1=e=>encode(e,!0),re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return _fromCC((t>>>10)+55296)+_fromCC(56320+(1023&t));case 3:return _fromCC((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return _fromCC((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=e=>e.replace(re_btou,cb_btou),atobPolyfill=e=>
180{if(e=e.replace(/\s+/g,""),!b64re.test(e))throw new TypeError("malformed base64.");let t,r,o;e+="==".slice(2-(3&e.length));let c=[];for(let d=0;d<e.length;)t=b64tab[e.charAt(d++)]<<18|b64tab[e.charAt(d++)]<<12|(r=b64tab[e.charAt(d++)])<<6|(o=b64tab[e.charAt(d++)]),r===64?c.push(_fromCC(t>>16&255)):o===64?c.push(_fromCC(t>>16&255,t>>8&255)):c.push(_fromCC(t>>16&255,t>>8&255,255&t));return c.join("")},_atob=typeof atob=="function"?e=>atob(_tidyB64(e)):_hasBuffer?e=>Buffer.from(e,"base64").toString("binary"):atobPolyfill,_toUint8Array=_hasBuffer?e=>_U8Afrom(Buffer.from(e,"base64")):e=>_U8Afrom(_atob(e).split("").map(t=>t.charCodeAt(0))),toUint8Array=e=>_toUint8Array(_unURI(e)),_decode=_hasBuffer?e=>Buffer.from(e,"base64").toString("utf8"):_TD?e=>_TD.decode(_toUint8Array(e)):e=>btou(_atob(e)),_unURI=e=>_tidyB64(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),decode=e=>_decode(_unURI(e)),isValid=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},_noEnum=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),extendString=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,_noEnum(r));e("fromBase64",function(){return decode(this)}),e("toBase64",function(t){return encode(this,t)}),e("toBase64URI",function(){return encode(this,!0)}),e("toBase64URL",function(){return encode(this,!0)}),e("toUint8Array",function(){return toUint8Array(this)})},extendUint8Array=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,_noEnum(r));e("toBase64",function(t){return fromUint8Array(this,t)}),e("toBase64URI",function(){return fromUint8Array(this,!0)}),e("toBase64URL",function(){return fromUint8Array(this,!0)})},extendBuiltins=()=>{extendString(),extendUint8Array()},gBase64={version,VERSION,atob:_atob,atobPolyfill,btoa:_btoa,btoaPolyfill,fromBase64:decode,toBase64:encode,encode,encodeURI:encodeURI$1,encodeURL:encodeURI$1,utob,btou,decode,isValid,fromUint8Array,toUint8Array,extendString,extendUint8Array,extendBuiltins};var __classPrivateFieldSet$k=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$k=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_Kore_instances,_Kore_creds,_Kore_user,_Kore_sessionEndpoint,_Kore_tokenEndpoint,_Kore_entitlements,_Kore_noTokenLogin,_Kore_clearCookie;class Kore{constructor(t,r,o,c){_Kore_instances.add(this),_Kore_creds.set(this,void 0),_Kore_user.set(this,void 0),this.upperCase="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.lowerCase="abcdefghijklmnopqrstuvwxyz",this.mShift=11,this.shiftLength=26-this.mShift,this.nEntropy=22,this.mEntropy=22,_Kore_sessionEndpoint.set(this,void 0),_Kore_tokenEndpoint.set(this,void 0),_Kore_entitlements.set(this,[]),this.url=t,this.cache=r,__classPrivateFieldSet$k(this,_Kore_creds,o,"f"),this.domain=c,__classPrivateFieldSet$k(this,_Kore_tokenEndpoint,`https://sa-api.gc.${this.url}/v1/refresh_token`,"f"),__classPrivateFieldSet$k(this,_Kore_sessionEndpoint,`https://sa-api.gc.${this.url}/v1/sessionsignin/`,"f")}async getEntitlements(){var c,d,f,b,m;if(__classPrivateFieldGet$k(this,_Kore_entitlements,"f")&&__classPrivateFieldGet$k(this,_Kore_entitlements,"f").length>0)return __classPrivateFieldGet$k(this,_Kore_entitlements,"f");const t=(c=__classPrivateFieldGet$k(this,_Kore_user,"f"))==null?void 0:c.id,r=await fetch(`https://streamline.web.gc.${this.url}/v2/users/entitlements/${t}`),o=await r.json();return(f=(d=o==null?void 0:o.data)==null?void 0:d.attributes)!=null&&f.entitlements&&__classPrivateFieldSet$k(this,_Kore_entitlements,o.data.attributes.entitlements,"f"),((m=(b=o==null?void 0:o.data)==null?void 0:b.attributes)==null?void 0:m.entitlements)||[]}async login(t){const r=encodeURIComponent(`${t.origin}${t.pathname}`),o=`${__classPrivateFieldGet$k(this,_Kore_creds,"f").BrandedUI}/auth/login?tenantid=${__classPrivateFieldGet$k(this,_Kore_creds,"f").id}&returnvisitorurl=${r}&successredirecturl=${r}&loginSuccess=true&mandatory=${__classPrivateFieldGet$k(this,_Kore_creds,"f").useMandatory??"true"}`;window.location.href=o}async signout(t){__classPrivateFieldSet$k(this,_Kore_user,void 0,"f"),__classPrivateFieldGet$k(this,_Kore_instances,"m",_Kore_clearCookie).call(this);const r=encodeURIComponent(`${t.origin}${t.pathname}`),o=`${__classPrivateFieldGet$k(this,_Kore_creds,"f").BrandedUI}/dashboard/logout?tenantid=${__classPrivateFieldGet$k(this,_Kore_creds,"f").id}&forcelogout=true&returnvisitorurl=${r}&successredirecturl=${r}&logoutSuccess=true`;window.location.href=o}async loginRedirect(t){if(t){const r=this.extractTokens(t);document.cookie=`_gc_sa_sso_refresh=${r.refresh_token}; expires=${r.refresh_token_expires_utc}; path=/;`,document.cookie=`_gc_sa_sso_access=${r.access_token}; expires=${r.access_token_expires_utc}; path=/;`;const o=r.access_token.split(".");let c=gBase64.decode(o[1]);c=JSON.parse(c),__classPrivateFieldSet$k(this,_Kore_user,c,"f")}else __classPrivateFieldGet$k(this,_Kore_instances,"m",_Kore_noTokenLogin).call(this)}async getUser(){return __classPrivateFieldGet$k(this,_Kore_user,"f")||!1}async getUserDetails(){return await this.getUser()}async isAuthed(){return __classPrivateFieldGet$k(this,_Kore_user,"f")!=null}async getSession(){return __classPrivateFieldGet$k(this,_Kore_user,"f")||!1}deobfuscatePayload(t){const r=t.substring(this.nEntropy,this.nEntropy+this.mEntropy),o=t.split(r),c=o[0]+o[1];let d,f="";for(d=0;d<c.length;d++)f+=this.getShiftedLetter(c[d]);return bufferExports.Buffer.from(f,"base64").toString("ascii")}getShiftedLetter(t){if(isNaN(t)){let r;
180r=t==t.toUpperCase()?this.upperCase:this.lowerCase;const o=r.indexOf(t)+this.shiftLength;return o>r.length-1?r[o-(r.length-1)-1]:r[o]}return t}extractTokens(t){const r=this.deobfuscatePayload(t).substring(0);return JSON.parse('{"'+decodeURI(r).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}}_Kore_creds=new WeakMap,_Kore_user=new WeakMap,_Kore_sessionEndpoint=new WeakMap,_Kore_tokenEndpoint=new WeakMap,_Kore_entitlements=new WeakMap,_Kore_instances=new WeakSet,_Kore_noTokenLogin=async function(){const e=document.cookie.replace(/(?:(?:^|.*;\s*)_sa_sso_upid\s*\=\s*([^;]*).*$)|^.*$/,"$1"),t=document.cookie.replace(/(?:(?:^|.*;\s*)_gc_sa_sso_refresh\s*\=\s*([^;]*).*$)|^.*$/,"$1"),r=document.cookie.replace(/(?:(?:^|.*;\s*)_gc_sa_sso_access\s*\=\s*([^;]*).*$)|^.*$/,"$1");if(e){if(r){const o=r.split(".");let c=gBase64.decode(o[1]);c=JSON.parse(c),__classPrivateFieldSet$k(this,_Kore_user,c,"f")}else if(t&&!r){const o=await fetch(`${__classPrivateFieldGet$k(this,_Kore_tokenEndpoint,"f")}?refresh_token=${t}&user_agent_pass=true`),c=await o.json();if(c.success){document.cookie=`_gc_sa_sso_refresh=${c.response.refresh_token}; expires=${c.response.refresh_token_expires_utc}; path=/;`,document.cookie=`_gc_sa_sso_access=${c.response.access_token}; expires=${c.response.access_token_expires_utc}; path=/;`;const d=c.response.access_token.split(".");
180let f=gBase64.decode(d[1]);f=JSON.parse(f),__classPrivateFieldSet$k(this,_Kore_user,f,"f")}else __classPrivateFieldGet$k(this,_Kore_instances,"m",_Kore_clearCookie).call(this)}else if(!t&&!r){const o=await fetch(`${__classPrivateFieldGet$k(this,_Kore_sessionEndpoint,"f")}${this.deobfuscatePayload(e)}?user_agent_pass=true`),c=await o.json();if(c.success){document.cookie=`_gc_sa_sso_refresh=${c.response.refresh_token}; expires=${c.response.refresh_token_expires_utc}; path=/;`,document.cookie=`_gc_sa_sso_access=${c.response.access_token}; expires=${c.response.access_token_expires_utc}; path=/;`;const d=c.response.access_token.split(".");let f=gBase64.decode(d[1]);f=JSON.parse(f),__classPrivateFieldSet$k(this,_Kore_user,f,"f")}else __classPrivateFieldGet$k(this,_Kore_instances,"m",_Kore_clearCookie).call(this)}}else __classPrivateFieldGet$k(this,_Kore_instances,"m",_Kore_clearCookie).call(this)},_Kore_clearCookie=function(){document.cookie="_gc_sa_sso_refresh=; expires = Thu, 01 Jan 1970 00:00:00 GMT; path=/;",document.cookie="_gc_sa_sso_access=; expires = Thu, 01 Jan 1970 00:00:00 GMT; path=/;"};const getAuth=(e,t,r,o,c,d,f)=>{switch(e){case"GCSSO":return new GCSSO(r,o,t,c,d);case"OIDC":return new OIDC(r,o,t,f);case"Kore":return new Kore(r,o,t,c)}};var __classPrivateFieldSet$j=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$j=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_BadmintonWeb_url,_BadmintonWeb_cacheStore,_BadmintonWeb_teams;class BadmintonWeb{constructor(t,r){_BadmintonWeb_url.set(this,void 0),_BadmintonWeb_cacheStore.set(this,void 0),_BadmintonWeb_teams.set(this,void 0),__classPrivateFieldSet$j(this,_BadmintonWeb_url,t,"f"),__classPrivateFieldSet$j(this,_BadmintonWeb_cacheStore,r,"f")}getFilterUrl(t){return`https://filters.football.web.gc.${__classPrivateFieldGet$j(this,_BadmintonWeb_url,"f")}/v${t}`}getUrl(t){return`https://participants.badminton.web.gc.${__classPrivateFieldGet$j(this,_BadmintonWeb_url,"f")}/v${t}`}async getTeams(){const t=__classPrivateFieldGet$j(this,_BadmintonWeb_cacheStore,"f").getObjectCacheItem("Badminton","Teams");if(t!=null)return t.object;const r=await fetch(this.getUrl(2)),o=await r.json();return __classPrivateFieldSet$j(this,_BadmintonWeb_teams,o==null?void 0:o.data,"f"),__classPrivateFieldGet$j(this,_BadmintonWeb_cacheStore,"f").addObjectCache("Badminton","Teams",o==null?void 0:o.data),o==null?void 0:o.data}async getTeamBySlug(t){var o,c;__classPrivateFieldGet$j(this,_BadmintonWeb_teams,"f")===void 0&&await this.getTeams();let r=(o=__classPrivateFieldGet$j(this,_BadmintonWeb_teams,"f"))==null?void 0:o.find(d=>d.attributes.displayName.toLowerCase()===t);return r||(r=(c=__classPrivateFieldGet$j(this,_BadmintonWeb_teams,"f"))==null?void 0:c[0]),r}async getPlayerBySlug(t,r){return(await this.getTeamBySlug(r)).attributes.groups.map(o=>o.participants).flat().find(o=>`${o.firstName.toLowerCase()}-${o.lastName.toLowerCase()}`===t)}async getSquad(t){var f,b,m;const r=__classPrivateFieldGet$j(this,_BadmintonWeb_cacheStore,"f").getObjectCacheItem("Badminton","Teams");if(r!=null)return(f=r.object.find(w=>{var T;return((T=w.attributes)==null?void 0:T.displayName)===t}).attributes)==null?void 0:f.groups;const o=await fetch(this.getUrl(2)),c=await o.json();return __classPrivateFieldSet$j(this,_BadmintonWeb_teams,c==null?void 0:c.data,"f"),__classPrivateFieldGet$j(this,_BadmintonWeb_cacheStore,"f").addObjectCache("Badminton","Teams",c==null?void 0:c.data),(m=((b=c==null?void 0:c.data)==null?void 0:b.find(S=>{var w;return((w=S.attributes)==null?void 0:w.displayName)===t})).attributes)==null?void 0:m.groups}}async function handleRequest(e,t,r){var o,c,d,f,b,m,S;try{const w=new URLSearchParams;(c=(o=t==null?void 0:t.routeOptions)==null?void 0:o.page)!=null&&c.size&&w.append("page[size]",t.routeOptions.page.size.toString()),(f=(d=t==null?void 0:t.routeOptions)==null?void 0:d.page)!=null&&f.number&&w.append("page[number]",t.routeOptions.page.number.toString()),(b=t==null?void 0:t.routeOptions)!=null&&b.sort&&w.append("sort",t.routeOptions.sort),(m=t==null?void 0:t.routeOptions)!=null&&m.start&&w.append("start",t.routeOptions.start.toString()),(S=t==null?void 0:t.routeOptions)!=null&&S.filterQuery&&w.append("filter",t.routeOptions.filterQuery),t!=null&&t.params&&Object.entries(t.params).forEac
180h(([P,B])=>{B!=null&&w.append(P,B.toString())});const T=w.toString(),A=T?`${e}?${T}`:e,C=await fetch(A,{method:(t==null?void 0:t.method)||"GET",body:t!=null&&t.body?JSON.stringify(t.body):void 0,headers:r?{Authorization:r}:void 0});if(C.status===204)return Promise.resolve(C);if(!C.ok)throw new Error(`HTTP error! status: ${C.status}`);return await C.json()}catch(w){throw new Error(`Request failed: ${w instanceof Error?w.message:"Unknown error"}`,{cause:w})}}_BadmintonWeb_url=new WeakMap,_BadmintonWeb_cacheStore=new WeakMap,_BadmintonWeb_teams=new WeakMap;class ClientTeamDefaultsAdmin{constructor(t,r,o=null){this.token=null,this.url=t,this.sport=r,this.token=o}get baseUrl(){return`https://client-team-defaults.${this.sport}.admin.gc.${this.url}/v2`}async fetchClientTeamDefaults(){const t=await handleRequest(`${this.baseUrl}`,{},this.token),r=t.data.sort((o,c)=>{var d,f;return(((d=o.attributes)==null?void 0:d.forcedOrder)??1/0)-(((f=c.attributes)==null?void 0:f.forcedOrder)??1/0)});return Promise.resolve({...t,data:r})}async fetchClientTeamDefaultById(t){if(!t)throw new Error("Team ID is required");return handleRequest(`${this.baseUrl}/${t}`,{},this.token)}}class ClientTeamDefaultsWeb{constructor(t,r){this.url=t,this.sport=r}get baseUrl(){return`https://client-team-defaults.${this.sport}.web.gc.${this.url}/v2`}async fetchClientTeamDefaults(){const t=await handleRequest(`${this.baseUrl}/`,{}),r=t.data.sort((o,c)=>{var d,f;return(((d=o.attributes)==null?void 0:d.forcedOrder)??1/0)-(((f=c.attributes)==null?void 0:f.forcedOrder)??1/0)});return Promise.resolve({...t,data:r})}async fetchClientTeamDefaultById(t){if(!t)throw new Error("Team ID is required");return handleRequest(`${this.baseUrl}/${t}/`,{})}}class CompetitionsWeb{constructor(t,r,o){this.url=t,this.sport=r,this.cacheStore=o}get baseUrl(){return`https://competitions.${this.sport}.web.gc.${this.url}/v2`}async fetchAllCompetitions(t){return await handleRequest(this.baseUrl,{routeOptions:t})}async fetchCompetitionById(t,r){if(!t)throw new Error("Competition ID is required");return await handleRequest(`${this.baseUrl}/${t}`,{routeOptions:r})}async fetchCompetitionSeasons(t,r){if(!t)throw new Error("Competition ID is required");return await handleRequest(`${this.baseUrl}/${t}/seasons`,{routeOptions:r})}async fetchCompetitionStandings(t,r,o){if(!t)throw new Error("Competition ID is required");let c;return c=r?`${this.baseUrl}/${t}/standings?seasonID=${r}`:`${this.baseUrl}/${t}/standings`,await handleRequest(c,{routeOptions:o})}async fetchCompetitionRankingsTeams(t,r,o){if(!t)throw new Error("Competition ID is required");return await handleRequest(`${this.baseUrl}/${t}/rankings/teams`,{routeOptions:o})}async fetchCompetitionRankingsParticipants(t,r,o,c){if(!t)throw new Error("Competition ID is required");return await handleRequest(`${this.baseUrl}/${t}/rankings/participants`,{routeOptions:c})}}class CompetitionsAdmin{constructor(t,r,o=null){this.token=null,this.url=t,this.sport=r,this.token=o}get baseUrl(){return`https://competitions.${this.sport}.admin.gc.${this.url}/v2`}async fetchAllCompetitions(t){return await handleRequest(this.baseUrl,{routeOptions:t},this.token)}async fetchCompetitionById(t,r){if(!t)throw new Error("Competition ID is required");return await handleRequest(`${this.baseUrl}/${t}`,{routeOptions:r},this.token)}async fetchCompetitionSeasons(t,r){if(!t)throw new Error("Competition ID is required");return await handleRequest(`${this.baseUrl}/${t}/seasons`,{routeOptions:r},this.token)}async createCompetition(t){return await handleRequest(`${this.baseUrl}`,{method:"POST",body:t},this.token)}async updateCompetition(t,r){const o=`${this.baseUrl}/${t}`;return await handleRequest(o,{method:"PATCH",body:r},this.token)}async deleteCompetition(t){const r=`${this.baseUrl}/${t}`;return await handleRequest(r,{method:"DELETE"},this.token)}async attachTeamsToCompetition(t,r){const o=`${this.baseUrl}/${t}/teams`;return await handleRequest(o,{method:"POST",body:r},this.token)}async detachTeamsToCompetition(t,r){const o=`${this.baseUrl}/${t}/teams/detach`;return await handleRequest(o,{method:"POST",body:r},this.token)}}var __classPrivateFieldSet$i=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$i=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_CountriesWeb_url;class CountriesWeb{constructor(t){_CountriesWeb_url.set(this,void 0),__classPrivateFieldSet$i(this,_CountriesWeb_url,t,"f")}getUrl(t){return`https://countries.cms.web.gc.${__classPrivateFieldGet$i(this,_CountriesWeb_url,"f")}/v${t}`}async getCountries(){return await(await fetch(`${this.getUrl(1)}/countries`)).json()}}
180function handleQueryParam(e,t=new URLSearchParams,r){return Object.entries(e).forEach(([o,c])=>{c!=null&&c!==void 0&&typeof c=="object"?handleQueryParam(c,t,o):c&&t.append(`${r?r+".":""}${o}`,c)}),t}_CountriesWeb_url=new WeakMap;var __classPrivateFieldSet$h=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$h=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_DartsWeb_url;class DartsWeb{constructor(t){_DartsWeb_url.set(this,void 0),__classPrivateFieldSet$h(this,_DartsWeb_url,t,"f")}getUrl(t,r){return`https://${r}.darts.web.gc.${__classPrivateFieldGet$h(this,_DartsWeb_url,"f")}/v${t}`}async getParticipants(){return await(await fetch(`${this.getUrl(2,"participants")}/?page.size=128&filter=isCurrentTourCardHolder:eq:1`)).json()}async searchParticipants(t){return await(await fetch(`${this.getUrl(2,"participants")}/?page.size=128&filter=isCurrentTourCardHolder:eq:1&filter=${t}`)).json()}async getParticipantBySlug(t){return await(await fetch(`${this.getUrl(2,"participants")}/slug/${t}`)).json()}async getParticipantById(t){return await(await fetch(`${this.getUrl(2,"participants")}/${t}`)).json()}async getParticipantHeadToHead(t,r){return await(await fetch(`${this.getUrl(2,"participants")}/${t}/h2h/${r}`)).json()}async getTournaments(t={page:{size:20}}){return await(await fetch(`${this.getUrl(2,"tournaments")}?${handleQueryParam(t)}`)).json()}async getTournamentCalendar(t={page:{size:20}}){return await(await fetch(`${this.getUrl(2,"tournaments")}/calendar?${handleQueryParam(t)}`)).json()}async getRankings(t={page:{size:20}}){return await(await fetch(`${this.getUrl(2,"rankings")}?${handleQueryParam(t)}`)).json()}async getRankingByID(t,r={page:{size:250}}){return await(await fetch(`${this.getUrl(2,"rankings")}/${t}?${handleQueryParam(r)}`)).json()}async getTournamentById(t){return await(await fetch(`${this.getUrl(2,"tournaments")}/${t}`)).json()}async getFixture(t){return await(await fetch(`${this.getUrl(2,"fixtures")}/${t}`)).json()}async getAllFixtures(t={page:{size:10}}){return await(await fetch(`${this.getUrl(2,"fixtures")}?${handleQueryParam(t)}`)).json()}async getTimeline(t,r=void 0){return await(await fetch(`${this.getUrl(2,"fixtures")}/${t}/timeline?${r?handleQueryParam(r):""}`)).json()}async getTakeover(){return await(await fetch(`${this.getUrl(2,"tournaments")}/takeovers`)).json()}}_DartsWeb_url=new WeakMap;class FixturesWeb{constructor(t,r,o){this.isFixturesAutoFillQuery=c=>c.type==="match"&&c.contentFill==="auto-fill",this.isFixturesManualFillQuery=c=>c.type==="match"&&c.contentFill==="manual-fill",this.url=t,this.sport=r,this.cacheStore=o}get baseUrl(){return`https://${this.sport==="football"?"matches":"fixtures"}.${this.sport}.web.gc.${this.url}/v2`}async getByQuery(t){if(this.isFixturesAutoFillQuery(t))return(await handleRequest(`${this.baseUrl}/opta/getlastresults`,{routeOptions:t.params??void 0,params:t.autofillOptions,method:"GET"})).body;if(this.isFixturesManualFillQuery(t)){const r=t.manualFillIds.map(o=>handleRequest(`${this.baseUrl}/opta/getsingle`,{params:o,method:"GET"}));return(await Promise.allSettled(r)).map(o=>o.status==="fulfilled"?o.value.body:void 0).filter(o=>o)}return null}async fetchAllFixtures(t,r){return await handleRequest(this.baseUrl,{routeOptions:r,params:t})}async fetchFixtureById(t){if(!t.fixtureId)throw new Error("Fixture ID is required");if(this.sport==="football"){const{seasonId:r,teamId:o,fixtureId:c}=t;if(!r)throw new Error("Season ID is required for football fixtures");if(!o)throw new Error("Team ID is required for football fixtures");return await handleRequest(`${this.baseUrl}/matches/${r}/${o}/${c}`)}if(this.sport==="rugbyleague")return await handleRequest(`${this.baseUrl}/${t.fixtureId}/`);throw new Error("Unsupported sport type")}async fetchFixtureByPathParams(t,r,o,c){if(!t)throw new Error("Fixture ID is required");if(!r)throw new Error("Season ID is required");if(!o)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/matches/${r}/${o}/${t}`,{routeOptions:c})}async fetchFixtureParticipants(t,r){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/`,{routeOptions:r})}async fetchParticipantsStats(t,r){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/stats/`,{routeOptions:r})}async fetchParticipantStats(t,r,o){if(!t)throw new Error("Fixture ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participant/stats/${r}/`,{routeOptions:o})}async fetchFixtureTeams(t,r){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/teams/`,{routeOptions:r})}async fetchFixtureTeamsStats(t,r){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/teams/stats/`,{routeOptions:r})}async fetchFixtureTeamStats(t,r,o){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/teams/stats/${r}/`,{routeOptions:o})}async fetchFixtureEvents(t,r){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/events/`,{routeOptions:r})}async fetchFixtureCommentary(t,r){if(!t)throw new Error("Fixture ID is required");return await handleRequest(`${this.baseUrl}/${t}/commentary/`,{routeOptions:r})}}class FixturesAdmin{constructor(t,r,o=null){this.token=null,this.url=t,this.sport=r,this.token=o}get baseUrl(){return`https://fixtures.${this.sport}.admin.gc.${this.url}/v2`}async fetchAllFixtures(t,r,o,c){return handleRequest(`${this.baseUrl}`,{params:{teamID:t,competitionID:r,seasonID:o,includeDeleted:c,pageSize:1e3}},this.token)}async fetchFixtureById(t,r){return handleRequest(`${this.baseUrl}/${t}`,{params:{includeDeleted:r}},this.token)}async getFixtureParticipants(t,r){return handleRequest(`${this.baseUrl}fixtures/${t}/participants`,{routeOptions:r},this.token)}async createSingleCustomFixture(t){return await handleRequest(`${this.baseUrl}`,{method:"POST",body:t},this.token)}async updateFixture(t,r){const o=`${this.baseUrl}/${t}`;return await handleRequest(o,{method:"PATCH",body:r},this.token)}async deleteFixture(t){const r=`${this.baseUrl}/${t}`;return await handleRequest(r,{method:"DELETE"},this.token)}async updateScore(t,r){const o=`${this.baseUrl}/${t}/teams`;await handleRequest(o,{method:"POST",body:r},this.token)}}class SeasonsWeb{constructor(t,r,o){this.url=t,this.sport=r,this.cacheStore=o}get baseUrl(){return`https://seasons.${this.sport}.web.gc.${this.url}/v2`}async fetchAllSeasons(t){return await handleRequest(this.baseUrl,{routeOptions:t})}}var __classPrivateFieldSet$g=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$g=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_FootballCMS_url,_FootballCMS_teams,_FootballCMS_token;class FootballCMS{constructor(t,r,o){_FootballCMS_url.set(this,void 0),_FootballCMS_teams.set(this,void 0),_FootballCMS_token.set(this,void 0),__classPrivateFieldSet$g(this,_FootballCMS_url,t,"f"),__classPrivateFieldSet$g(this,_FootballCMS_token,o,"f")}getFilterUrl(t){return`https://matches.football.admin.gc.${__classPrivateFieldGet$g(this,_FootballCMS_url,"f")}/v${t}/opta/filters`}getTeamsUrl(){return`https://teams.football.admin.gc.${__classPrivateFieldGet$g(this,_FootballCMS_url,"f")}`}getUrl(t,r){return`https://${t}.football.admin.gc.${__classPrivateFieldGet$g(this,_FootballCMS_url,"f")}/v${r}`}async getAllMatches(t){const r=`https://matches.football.admin.gc.${__classPrivateFieldGet$g(this,_FootballCMS_url,"f")}/v${t}/opta?clientMatches=true&pageSize=100`;return await(await fetch(r,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()}async getTeamByString(t){var o;__classPrivateFieldGet$g(this,_FootballCMS_teams,"f")===void 0&&await this.getTeams();const r=(o=__classPrivateFieldGet$g(this,_FootballCMS_teams,"f"))==null?void 0:o.filter(c=>c.teamName.toLowerCase()===t.toLowerCase())[0];if(r){const c=r.seasons[0].competitions.filter(d=>!d.competitionName.toLowerCase().includes("cup"))[0].competitionID;return{id:r.id,comp:c,season:r.seasons}}return{}}async getTeams(){const t=`${this.getFilterUrl(1)}`,r=await fetch(t,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}}),o=await r.json();return __classPrivateFieldSet$g(this,_FootballCMS_teams,o.body.map(c=>({id:c.teamID,...c})),"f"),__classPrivateFieldGet$g(this,_FootballCMS_teams,"f")}async getSeasons(t){const r=await this.getTeams(),o=r==null?void 0:r.filter(c=>c.teamName.toLowerCase()===t)[0];return o==null?void 0:o.seasons}async getSeasonsByTeamId(t){const r=await this.getTeams(),o=r==null?void 0:r.filter(c=>c.teamID===t)[0];return o==null?void 0:o.seasons}
180async getLatestSeason(t){return(await this.getSeasons(t))[0]}async getLatestSeasonByTeamId(t){return(await this.getSeasonsByTeamId(t))[0]}async getPlayerBySlug(t){const r=`${this.getUrl("players",1)}/players/opta/getsingle?playerSlug=${t}`;return(await(await fetch(r,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()).body}async getPlayerById(t){const r=`${this.getUrl("players",1)}/players/opta/getsingle?playerID=${t}`;return(await(await fetch(r,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()).body}async getLatestFixtures(t,r=1,o="Both"){const c=await this.getTeamByString(t),d=`${this.getUrl("matches",1)}/opta/getupcoming?homeOrAway=${o}&numberOfMatches=${r}&seasonID=${c.season[0].seasonID}&teamID=${c.id}`;return(await(await fetch(d,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()).body}async getUpcomingFixtures(t,r,o,c=100){let d=`teamID=${t}`;r&&(d+=`&seasonID=${r}`),o&&(d+=`&competitionID=${o}`);const f=`${this.getUrl("matches",1)}/opta/getupcoming?${d}&numberOfMatches=${c}`;return await(await fetch(f,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()}async getAllUpcomingFixtures(){const t=`${this.getUrl("matches",1)}/opta/getupcoming&numberOfMatches=100`;return await(await fetch(t,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()}async getFixtures(t,r="all",o,c,d=!0){o===void 0&&(o=(await this.getLatestSeasonByTeamId(t)).seasonID);const f=c?`${this.getUrl("matches",1)}/opta?clientMatches=true&teamID=${t}&seasonID=${o}&competitionID=${c}&pageSize=100&published=${d}`:`${this.getUrl("matches",1)}/opta?clientMatches=true&teamID=${t}&seasonID=${o}&pageSize=100`,b=await fetch(f,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}}),m=await b.json();if(m&&m.body){if(r==="results"){const S=new Date;return m.body.filter(w=>new Date(w.kickOffUTCTimestamp)<S||w.period==="FullTime").sort((w,T)=>{const A=new Date(w.kickOffUTC),C=new Date(T.kickOffUTC);return C>A?1:C<A?-1:0})}if(r==="fixtures"){const S=new Date;return m.body.filter(w=>new Date(w.kickOffUTCTimestamp)>=S||w.period!=="FullTime")}return m.body}return[]}async getSquad(t){const r=await this.getTeamByString(t),o=`${this.getUrl("teams",1)}/squads/opta?teamID=${r.id}`;return(await(await fetch(o,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()).body}
180async getPlayersByPosition(t,r){return(await this.getSquad(t))[r]}async getTable(t,r){const o=await this.getTeamByString(t),c=`${this.getUrl("league-tables",1)}/opta?competitionID=${r||o.comp}&teamID=${o.id}`,d=await fetch(c,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}}),f=await d.json();return{compId:o.comp,table:f.body.leagueTable,icons:f.body.competitionIcons,name:f.body.competitionName}}async getLatestResults(t,r=1,o=!0){const c=`${this.getUrl("matches",1)}/opta/getlastresults?teamID=${t}&numberOfFixtures=${r}&published=${o}`;return(await(await fetch(c,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()).body}async getMatch(t,r,o){o===void 0&&(o=(await this.getLatestSeasonByTeamId(r)).seasonID);const c=`${this.getUrl("matches",1)}/opta/getsingle?matchID=${t}&teamID=${r}&seasonID=${o}`;return(await(await fetch(c,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()).body.Items[0]}async getCustomFixtures(t){const r=t?`${this.getUrl("matches",1)}/custom&teamID=${t}&pageSize=100`:`${this.getUrl("matches",1)}/custom`;return await(await fetch(r,{headers:{Authorization:__classPrivateFieldGet$g(this,_FootballCMS_token,"f")}})).json()}}_FootballCMS_url=new WeakMap,_FootballCMS_teams=new WeakMap,_FootballCMS_token=new WeakMap;var __classPrivateFieldSet$f=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$f=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_FootballWeb_url,_FootballWeb_cacheStore,_FootballWeb_teams;class FootballWeb{constructor(t,r){_FootballWeb_url.set(this,void 0),_FootballWeb_cacheStore.set(this,void 0),_FootballWeb_teams.set(this,void 0),this.match={id:async o=>{var d,f;const c=o.split("/");return[await this.getMatch(c[0],(f=c[1]==="undefined"?(d=await this.getTeams())==null?void 0:d[0].teamName:c[1])==null?void 0:f.replace(" ","-").toLowerCase(),c[2])]},latestResult:async(o,c)=>this.getLatestResults(o,c),nextMatch:async(o,c)=>{var f;const d=o.split("/");return this.getLatestFixtures(d.length>1?d[0]:o,((f=c==null?void 0:c.page)==null?void 0:f.size)||1,"Both")}},__classPrivateFieldSet$f(this,_FootballWeb_url,t,"f"),__classPrivateFieldSet$f(this,_FootballWeb_cacheStore,r,"f")}getFilterUrl(t){return`https://filters.football.web.gc.${__classPrivateFieldGet$f(this,_FootballWeb_url,"f")}/v${t}`}getUrl(t,r){return`https://${t}.football.web.gc.${__classPrivateFieldGet$f(this,_FootballWeb_url,"f")}/v${r}`}getStreamlineUrl(t){return __classPrivateFieldGet$f(this,_FootballWeb_url,"f")==="lfc-services.co.uk"?`https://streamline.webapi.gc.${__classPrivateFieldGet$f(this,_FootballWeb_url,"f")}/v${t}`:null}async getTeamByString(t=""){var c,d;__classPrivateFieldGet$f(this,_FootballWeb_teams,"f")===void 0&&await this.getTeams();let r=(c=__classPrivateFieldGet$f(this,_FootballWeb_teams,"f"))==null?void 0:c.find(f=>f.teamName.toLowerCase()===t.toLowerCase());r||(r=(d=__classPrivateFieldGet$f(this,_FootballWeb_teams,"f"))==null?void 0:d[0]);const o=r.seasons[0].competitions.map(f=>f.competitionID);return{id:r.id,comps:o,season:r.seasons,name:r.formattedTeamName??r.teamName,slug:r.slugTeamName,showTeamOnWeb:r.showTeamOnWeb,showFixturesOnWeb:r.showFixturesOnWeb,showLeagueTableOnWeb:r.showLeagueTableOnWeb}}async getTeamBySlug(t=""){var c,d;__classPrivateFieldGet$f(this,_FootballWeb_teams,"f")===void 0&&await this.getTeams();let r=(c=__classPrivateFieldGet$f(this,_FootballWeb_teams,"f"))==null?void 0:c.find(f=>f.slugTeamName.toLowerCase()===t.toLowerCase());r||(r=(d=__classPrivateFieldGet$f(this,_FootballWeb_teams,"f"))==null?void 0:d[0]);const o=r.seasons[0].competitions.map(f=>f.competitionID);return{id:r.id,comps:o,season:r.seasons,name:r.formattedTeamName??r.teamName,slug:r.slugTeamName,customTable:r.customTable??"",teamName:r.teamName}}async getTeamById(t){var c,d;__classPrivateFieldGet$f(this,_FootballWeb_teams,"f")===void 0&&await this.getTeams();let r=(c=__classPrivateFieldGet$f(this,_FootballWeb_teams,"f"))==null?void 0:c.filter(f=>f.id===t)[0];r||(r=(d=__classPrivateFieldGet$f(this,_FootballWeb_teams,"f"))==null?void 0:d[0]);const o=r.seasons[0].competitions.map(f=>f.competitionID);return{id:r.id,comps:o,season:r.seasons,slug:r.teamName.toLowerCase().replace(" ","-").replace("'","")}}async getTeams(){var c,d,f;const t=`${this.getFilterUrl(2)}/filters`,r=(c=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f"))==null?void 0:c.getObjectCacheItem("Football","teams");let o;return r!=null?o=r.object:(o=await(await fetch(t)).json(),(d=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f"))==null||d.addObjectCache("Football","teams",o)),__classPrivateFieldSet$f(this,_FootballWeb_teams,((f=o.data)==null?void 0:f.map(b=>({id:b.id,...b.attributes})))||[],"f"),__classPrivateFieldGet$f(this,_FootballWeb_teams,"f")}async getSeasons(t){const r=await this.getTeams(),o=r==null?void 0:r.filter(c=>(c.teamName||"").toLowerCase()===(t||"").toLowerCase())[0];return o==null?void 0:o.seasons}async getSeasonsByTeamID(t){const r=await this.getTeams(),o=r==null?void 0:r.filter(c=>(c.id||"").toLowerCase()===(t||"").toLowerCase())[0];return o==null?void 0:o.seasons}async getCompetitionByID(t){return(await(await fetch(`https://compet
180itions.football.web.gc.${__classPrivateFieldGet$f(this,_FootballWeb_url,"f")}/v1/opta/${t}`)).json()).body[0]}async getLatestSeason(t){return(await this.getSeasons(t))[0]}async getPlayerBySlug(t,r){const o=r!=null?await this.getTeamByString(r):void 0,c=`${this.getUrl("players",1)}/opta/getsingle?playerSlug=${t}${o!=null?`&teamID=${o.id}`:""}`,d=`player|${t}`,f=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").getObjectCacheItem("Football",d);if(f!=null)return f.object;const b=await fetch(c),m=await b.json();return __classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").addObjectCache("Football",d,m.body),m.body}async getPlayerById(t){const r=`${this.getUrl("players",1)}/opta/getsingle?playerID=${t}`,o=`player|${t}`,c=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").getObjectCacheItem("Football",o);if(c!=null)return c.object;const d=await fetch(r),f=await d.json();return __classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").addObjectCache("Football",o,f.body),f.body}async getFixtures(t,r="all",o,c,d,f){var A,C,P,B,U,D,$;let b=d;o===void 0&&(o=(await this.getLatestSeason(t)).seasonID),d||(b=(await this.getTeamByString(t)).id);const m=`fixtures|${b}+${o}+${c}+${o}${((A=f==null?void 0:f.page)==null?void 0:A.number)??""}`,S=(C=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f"))==null?void 0:C.getObjectCacheItem("Football",m);let w;if(S!=null)w=S.object;else{const z=`${this.getUrl("matches",2)}/opta?clientMatches=true${c?"&competitionID="+c:""}&teamID=${b}&seasonID=${o}&pageSize=${((P=f==null?void 0:f.page)==null?void 0:P.size)||100}&pageNumber=${((B=f==null?void 0:f.page)==null?void 0:B.number)||1}`;w=await(await fetch(z)).json(),(U=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f"))==null||U.addObjectCache("Football",m,w)}if(w.body==null)return[];const T=["FirstHalf","HalfTime","SecondHalf","ExtraFirstHalf","ExtraSecondHalf","ExtraHalfTime","ShootOut","FullTime90","FullTimePens"];if(r==="results"){const z=new Date;return(D=w.body)==null?void 0:D.filter(V=>new Date(V.kickOffUTCTimestamp)<z&&V.period!=="Postponed"&&!T.includes(V.period)||V.period==="FullTime").sort((V,F)=>{const ee=new Date(V.kickOffUTC),te=new Date(F.kickOffUTC);return te>ee?1:te<ee?-1:0})}if(r==="fixtures"){const z=new Date;return($=w.body)==null?void 0:$.filter(V=>{const F=new Date(V.kickOffUTCTimestamp);return V.period!=="FullTime"&&F>=z||V.period!=="Abandoned"&&F>=z||V.period==="Postponed"||T.includes(V.period)})}return w.body}async getSameDayFixtures(t,r,o){var w;const c=`football|sameDay=${t}+${r}+${o}`,d=(w=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f"))==null?void 0:w.getObjectCacheItem("Football",c);if(d!=null)return d.object;const f=await this.getTeamByString(o),b=`${this.getUrl("matches",2)}/opta/fixturessameday?matchID=${t}&seasonID=${r}&teamID=${f.id}&competitionID=${f.comps[0]}`,m=await fetch(b),S=await m.json();return __classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").addObjectCache("Football",c,S.body),S.body}async getVideos(t,r){if(!this.getStreamlineUrl(2))return[];const o=`${this.getStreamlineUrl(2)}/search/videos?${r.toString()}`;try{const c=await fetch(o);return c.ok?(await c.json()).data??[]:(console.error(`related videos batch failed (${c.status})`,t),[])}catch(c){return console.error("error fetching related videos batch",c),[]}}async getSquad(t){const r=await this.getTeamByString(t),o=`${this.getUrl("teams",2)}/squads/opta?teamID=${r.id}`;return(await(await fetch(o)).json()).body}async getSquadById(t){try{const r=`${this.getUrl("teams",2)}/squads/opta?teamID=${t}`;return(await(await fetch(r)).json()).body}catch(r){console.error("Error getting squad with id ",t,r)}}
180async getPlayersByPosition(t,r){return(await this.getSquad(t))[r]}async getTable(t,r=5,o,c,d){var w,T,A,C,P;const f=d?`&seasonID=${d}`:"",b=`league-table=${t}+${o}+${d}`,m=(w=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f"))==null?void 0:w.getObjectCacheItem("Football",b);if(m!=null)return m.object;const S=`${this.getUrl("league-tables",1)}/opta?competitionID=${o}&teamID=${c}&positions=${r}${f}`;try{const B=await fetch(S),U=await B.json();return __classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").addObjectCache("league-table",b,U),{compId:o,table:(T=U==null?void 0:U.body)==null?void 0:T.leagueTable,icons:(A=U==null?void 0:U.body)==null?void 0:A.competitionIcons,name:(C=U==null?void 0:U.body)==null?void 0:C.competitionName,code:(P=U==null?void 0:U.body)==null?void 0:P.competitionCode}}catch(B){console.error("Error fetching table",B)}}async getAllCustomTables(t,r){const o=`${this.getUrl("customleaguedata",1)}/leaguetables/?teamID=${t}&seasonID=${r}`;return await(await fetch(o)).json()}async getCustomTableById(t){const r=`${this.getUrl("customleaguedata",1)}/leaguetables/${t}`;return await(await fetch(r)).json()}async getLatestResults(t,r={page:{size:1}}){var f;const o=await this.getTeamByString(t),c=`${this.getUrl("matches",2)}/opta/getlastresults?teamID=${o.id}&numberOfFixtures=${(f=r==null?void 0:r.page)==null?void 0:f.size}`;return(await(await fetch(c)).json()).body}async getMatch(t,r,o,c){let d=c;o===void 0&&(o=(await this.getLatestSeason(r)).seasonID),d||(d=(await this.getTeamByString(r.replace(/-/g," "))).id);const f=`fixture|+${t}+${r}+${o}`,b=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").getObjectCacheItem("Football",f);let m;if(b!=null)m=b.object;else{const S=`${this.getUrl("matches",2)}/opta/getsingle?teamID=${d}&matchID=${t}&seasonID=${o}`;m=await(await fetch(S)).json(),__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").addObjectCache("Football",f,m)}return m==null?void 0:m.body}async getLatestFixtures(t,r=1,o="Both"){const c=await this.getTeamByString(t),d=`${this.getUrl("matches",2)}/opta/getupcoming?homeOrAway=${o}&numberOfMatches=${r}&seasonID=${c.season[0].seasonID}&teamID=${c.id}`;return(await(await fetch(d)).json()).body}async getCommentary(t,r,o){o===void 0&&(o=(await this.getLatestSeason(r)).seasonID);const c=(await this.getTeamByString(r)).id,d=`commentary|+${t}+${r}+${o}`,f=__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").getObjectCacheItem("Football",d);let b;if(f!=null)b=f.object;else{const m=`${this.getUrl("commentary",1)}/getsingle?teamID=${c}&matchID=${t}&seasonID=${o}&showCustom=true`;b=await(await fetch(m)).json(),__classPrivateFieldGet$f(this,_FootballWeb_cacheStore,"f").addObjectCache("Football",d,b)}return b==null?void 0:b.body}async getCommentaryV2(t,r,o){return await(await fetch(`${this.getUrl("match-centre",2)}/commentary/${o}/${r}/${t}`)).json()}async getLoanedPlayers(t){const r=`${this.getUrl("teams",2)}/loaned-out-players/team/${t}/`;return(await(await fetch(r)).json()).data}}_FootballWeb_url=new WeakMap,_FootballWeb_cacheStore=new WeakMap,_FootballWeb_teams=new WeakMap;var __classPrivateFieldSet$e=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$e=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_FormsCMS_url,_FormsCMS_token;class FormsCMS{constructor(t,r,o){_FormsCMS_url.set(this,void 0),_FormsCMS_token.set(this,void 0),__classPrivateFieldSet$e(this,_FormsCMS_url,t,"f"),__classPrivateFieldSet$e(this,_FormsCMS_token,o,"f")}getUrl(t){return`https://forms.cms.admin.gc.${__classPrivateFieldGet$e(this,_FormsCMS_url,"f")}/v${t}`}async getForms(){const t=`${this.getUrl(1)}/formlayouts?pageSize=100&pageNumber=1`;return await(await fetch(t,{headers:{Authorization:__classPrivateFieldGet$e(this,_FormsCMS_token,"f")}})).json()}async getFormById(t){const r=`${this.getUrl(1)}/formlayouts/getsingle?formID=${t}`;return await(await fetch(r,{headers:{Authorization:__classPrivateFieldGet$e(this,_FormsCMS_token,"f")}})).json()}}
180_FormsCMS_url=new WeakMap,_FormsCMS_token=new WeakMap;var __classPrivateFieldSet$d=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$d=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_FormsWeb_url;class FormsWeb{constructor(t){_FormsWeb_url.set(this,void 0),__classPrivateFieldSet$d(this,_FormsWeb_url,t,"f")}getUrl(t){return`https://forms.cms.web.gc.${__classPrivateFieldGet$d(this,_FormsWeb_url,"f")}/v${t}`}async getFormById(t){const r=`${this.getUrl(1)}?formID=${t}`;return(await(await fetch(r)).json()).body}async submitForm(t){const r=`${this.getUrl(1)}`;return await fetch(r,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(t)})}}_FormsWeb_url=new WeakMap;var __classPrivateFieldSet$c=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$c=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_MediaLibrary_url,_MediaLibrary_token;class MediaLibrary{constructor(t,r,o){_MediaLibrary_url.set(this,void 0),_MediaLibrary_token.set(this,void 0),__classPrivateFieldSet$c(this,_MediaLibrary_url,t,"f"),__classPrivateFieldSet$c(this,_MediaLibrary_token,o,"f")}getUrl(t){return`https://media.cms.admin.gc.${__classPrivateFieldGet$c(this,_MediaLibrary_url,"f")}/v${t}`}async postImage(t){const r=`${this.getUrl(1)}/upload`;return await(await fetch(r,{method:"POST",body:JSON.stringify(t),headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")}})).json()}async getImageById(t){const r=`${this.getUrl(1)}/${t}`;return await(await fetch(r,{method:"GET",headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")}})).json()}async getDirectories(t,r,o){const c=t?`/directory/${t}?pageNumber=${r||"1"}&pageSize=${o||"150"}`:"/directories",d=`${this.getUrl(1)}${c}`;return await(await fetch(d,{method:"GET",headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")}})).json()}async addDirectory(t){const r=`${this.getUrl(1)}/directory/add`;return await(await fetch(r,{method:"POST",headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")},body:JSON.stringify(t)})).json()}async getRoot(t=1,r=30){const o=`${this.getUrl(1)}/directory/root?pageNumber=${t}&pageSize=${r}`;return await(await fetch(o,{method:"GET",headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")}})).json()}async updateImageDirectory(t){const r=`${this.getUrl(1)}/directory/move-items`;return await(await fetch(r,{method:"POST",headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")},body:JSON.stringify(t)})).json()}async getBySearch(t={pageSize:25,pageNumber:1}){const r=`${this.getUrl(1)}?searchTerm=${t.filterQuery}&pageSize=${t.pageSize}&pageNumber=${t.pageNumber}`;return await(await fetch(r,{method:"GET",headers:{Authorization:__classPrivateFieldGet$c(this,_MediaLibrary_token,"f")}})).json()}}_MediaLibrary_url=new WeakMap,_MediaLibrary_token=new WeakMap;var __classPrivateFieldSet$b=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$b=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_MediaWeb_url;class MediaWeb{constructor(t){_MediaWeb_url.set(this,void 0),__classPrivateFieldSet$b(this,_MediaWeb_url,t,"f")}getUrl(t){return`https://media.cms.web.gc.${__classPrivateFieldGet$b(this,_MediaWeb_url,"f")}/v${t}`}async getImageFromId(t){const r=`${this.getUrl(1)}/${t}`;return(await(await fetch(r)).json()).body}}_MediaWeb_url=new WeakMap;var __classPrivateFieldSet$a=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$a=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_MultiClubWeb_url;class MultiClubWeb{constructor(t){_MultiClubWeb_url.set(this,void 0),__classPrivateFieldSet$a(this,_MultiClubWeb_url,t,"f")}getUrl(t){return`https://multi-club-matches.football.web.gc.${__classPrivateFieldGet$a(this,_MultiClubWeb_url,"f")}/v${t}`}async getCompetitions(t=!0){try{const r=t?"?includeLiveMatchCount=true":"",o=await fetch(`${this.getUrl(2)}
180/competitions${r}`),{data:c}=await o.json();return c?c.map(d=>({competitionID:d.id,competitionName:d.attributes.competitionName,competitionCode:d.attributes.competitionCode,crestURL:d.attributes.crestURL,liveMatchCount:d.attributes.liveMatchCount,groups:d.attributes.groups||[]})):[]}catch{throw new Error("Competitions not found")}}async getCompetitionRounds(t,r){try{if(!r||!t)throw new Error("competitionID and seasonID are required");const o=await fetch(`${this.getUrl(2)}/league-table-rounds?seasonID=${t}&competitionID=${r}`),{data:c}=await o.json();return c||[]}catch{throw new Error("Competition rounds not found")}}async getMatches(t={page:{size:10,number:1}},r){const o=handleQueryParam(t);r!=null&&r.seasonID&&o.append("seasonID",r.seasonID),r!=null&&r.competitionID&&o.append("competitionID",r.competitionID),r!=null&&r.teamID&&o.append("teamID",r.teamID),r!=null&&r.teamHomeAway&&o.append("teamHomeAway",r.teamHomeAway),r!=null&&r.period&&o.append("period",r.period);try{const c=await fetch(`${this.getUrl(2)}/matches/?${o}`),d=await c.json(),{data:f,meta:b}=d,m=(b==null?void 0:b.populatedDates)||[];return{data:f,metaPopulatedDatesData:m,metaPopulatedDates:Object.keys(m)}}catch{throw new Error("Matches not found")}}async getMatch(t){var r,o,c,d;try{const f=await fetch(`${this.getUrl(2)}/matches/${t}`),b=(await f.json()).data,{matchTeams:m=[],homeTeamID:S,awayTeamID:w}=b.attributes,T=m.find(C=>C.teamID===S),A=m.find(C=>C.teamID===w);return{matchData:b,homeTeamGoalsData:((r=T==null?void 0:T.events)==null?void 0:r.goals)??[],awayTeamGoalsData:((o=A==null?void 0:A.events)==null?void 0:o.goals)??[],homeTeamBookingsData:((c=T==null?void 0:T.events)==null?void 0:c.bookings)??[],awayTeamBookingsData:((d=A==null?void 0:A.events)==null?void 0:d.bookings)??[]}}catch{throw new Error("Match not found")}}async getLeagueTable(t,r,o,c){const d=`${this.getUrl(2)}/league-tables/`;let f=`?competitionID=${t}&seasonID=${r}`;o&&(f+=`&roundID=${o}`),c&&(f+=`&dateFilter=${c}`);try{const b=await fetch(`${d}${f}`),{data:m}=await b.json();return m}catch{throw new Error("Failed to fetch league table")}}async getSeasons(){const t=`${this.getUrl(2)}/seasons`;try{const r=await fetch(t),{data:o}=await r.json();return o?o.map(c=>({seasonID:c.id,seasonName:c.attributes.seasonName})):[]}catch{throw new Error("Failed to fetch seasons")}}async getTeams(t={page:{size:72}},r){const o=handleQueryParam(t);r!=null&&r.competitionID&&o.append("competitionID",r.competitionID),r!=null&&r.seasonID&&o.append("seasonID",r.seasonID);try{const c=await fetch(`${this.getUrl(2)}/teams?${o}`),{data:d}=await c.json();return d?d.map(f=>{let b;return b="teams"in f.attributes?f.attributes.teams:f.attributes,{teamID:f.id,teamName:b.teamName,teamOfficialName:b.teamOfficialName,teamShortName:b.teamShortName,teamNameInitials:b.teamNameInitials,teamURL:b.teamURL,crestURL:b.crestURL,stadiumName:b.stadiumName,streamingURL:b.streamingURL,ticketURL:b.ticketURL,matchCentreURL:b.matchCentreURL,retailURL:b.retailURL,facebookURL:b.facebookURL,twitterURL:b.twitterURL}}):[]}catch{throw new Error("Teams not found")}}}_MultiClubWeb_url=new WeakMap;var __classPrivateFieldSet$9=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$9=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_NewsCMS_url,_NewsCMS_cacheStore,_NewsCMS_token;class NewsCMS{constructor(t,r,o){_NewsCMS_url.set(this,void 0),_NewsCMS_cacheStore.set(this,void 0),_NewsCMS_token.set(this,void 0),__classPrivateFieldSet$9(this,_NewsCMS_url,t,"f"),__classPrivateFieldSet$9(this,_NewsCMS_cacheStore,r,"f"),__classPrivateFieldSet$9(this,_NewsCMS_token,o,"f")}getUrl(t){return`https://news.cms.admin.gc.${__classPrivateFieldGet$9(this,_NewsCMS_url,"f")}/v${t}`}async getSearchResults(t,r=!0,o={page:{size:20},sort:"publishedDateTime:desc"}){var w;const c=`search|${t}|${((w=o==null?void 0:o.page)==null?void 0:w.number)||1}`,d=__classPrivateFieldGet$9(this,_NewsCMS_cacheStore,"f").getObjectCacheItem("News",c);if(d!=null)return d.object;const f=handleQueryParam(o),b=`?q=${encodeURIComponent(r?`"${t}"`:t)}&${f.toString()}`,m=await fetch(`${this.getUrl(2)}/search${b}`,{headers:{Authorization:__classPrivateFieldGet$9(this,_NewsCMS_token,"f")}}),S=await m.json();return __classPrivateFieldGet$9(this,_NewsCMS_cacheStore,"f").addObjectCache("News",c,S),S}async getIsFeatured(t,r="",o={page:{size:20},sort:"featuredOrder:asc"}
180){return await this.getSearchResults(`(${t?"":"NOT "}featured:1${r&&` AND ${r}`})`,!1,o)}async getCategories(t={pageSize:50}){const r=handleQueryParam(t);return(await(await fetch(`${this.getUrl(1)}/categories?${r}`,{headers:{Authorization:__classPrivateFieldGet$9(this,_NewsCMS_token,"f")}})).json()).body.filter(c=>c.onSite==1)}async getByCategory(t,r={page:{size:20},sort:"publishedDateTime:desc"},o=""){return await this.getSearchResults(`(postCategory:"${t}"${o&&` AND ${o}`} AND postStatus:"Published" AND NOT deleted:true)`,!1,r)}async getBySlug(t){return await(await fetch(`${this.getUrl(1)}/byslug?postSlug=${t}`,{headers:{Authorization:__classPrivateFieldGet$9(this,_NewsCMS_token,"f")}})).json()}async getById(t){return await(await fetch(`${this.getUrl(2)}/${t}`,{headers:{Authorization:__classPrivateFieldGet$9(this,_NewsCMS_token,"f")}})).json()}async getLatest(t="",r={page:{size:20},sort:"publishedDateTime:desc"}){const o=t==null?void 0:t.replaceAll("&"," AND ");return await this.getSearchResults(o,!1,r)}async getFeatured(){return(await fetch(`${this.getUrl(1)}/featured`,{headers:{Authorization:__classPrivateFieldGet$9(this,_NewsCMS_token,"f")}})).json()}async getByTag(t,r){const o=`tag_${r}_${t}`;return(await fetch(`${this.getUrl(2)}/search?q=(${o})`,{headers:{Authorization:__classPrivateFieldGet$9(this,_NewsCMS_token,"f")}})).json()}}_NewsCMS_url=new WeakMap,_NewsCMS_cacheStore=new WeakMap,_NewsCMS_token=new WeakMap;var __classPrivateFieldSet$8=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$8=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_NewsWeb_url,_NewsWeb_cacheStore,_NewsWeb_hiddenCategories;class NewsWeb{constructor(t,r,o){_NewsWeb_url.set(this,void 0),_NewsWeb_cacheStore.set(this,void 0),_NewsWeb_hiddenCategories.set(this,void 0),this.isNewsAutoFillQuery=c=>c.type==="news"&&c.contentFill==="auto-fill",this.isNewsManualFillQuery=c=>c.type==="news"&&c.contentFill==="manual-fill",__classPrivateFieldSet$8(this,_NewsWeb_url,t,"f"),__classPrivateFieldSet$8(this,_NewsWeb_cacheStore,r,"f"),__classPrivateFieldSet$8(this,_NewsWeb_hiddenCategories,o,"f")}async isFetchingCheck(t){return new Promise(r=>{setTimeout(()=>{t!="fetching"&&r(!1),r(!0)},100)})}getUrl(t){return`https://news.cms.web.gc.${__classPrivateFieldGet$8(this,_NewsWeb_url,"f")}/v${t}`}applyExclusions(t){var o;if(!((o=__classPrivateFieldGet$8(this,_NewsWeb_hiddenCategories,"f"))!=null&&o.length))return t;const r=__classPrivateFieldGet$8(this,_NewsWeb_hiddenCategories,"f").filter(c=>!(t!=null&&t.includes(`postCategory:"${c}"`))).map(c=>`NOT postCategory:"${c}"`).join(" AND ");return r?t?`${t} AND ${r}`:r:t}async getByQuery(t){var r,o,c,d,f,b,m,S;if(this.isNewsAutoFillQuery(t)){const w={"page.size":((r=t.params)==null?void 0:r.pageSize)??String(t.count),"page.number":(o=t.params)==null?void 0:o.pageNumber,sort:"publishedDateTime:desc"};try{switch(t.method){case"getIsFeatured":w.q="(featured:1)",w.sort="featuredOrder:asc";break;case"getLatest":(c=t.autofillOptions)!=null&&c.latest&&(w.q=String(t.autofillOptions.latest));break;case"getByCategory":(d=t.autofillOptions)!=null&&d.category&&(w.q=`(postCategory:"${(f=t.autofillOptions)==null?void 0:f.category}")`);break;default:w.q=""}return((b=t.autofillOptions)==null?void 0:b.applyExclusions)!==!1&&(w.q=this.applyExclusions(w.q)),(await handleRequest(`${this.getUrl(2)}/search`,{routeOptions:t.params??void 0,method:"GET",params:w})).data}catch(T){console.error("Error in News/Web/getByQuery",T)}}else if(this.isNewsManualFillQuery(t)){if(!t.manualFillIds||t.manualFillIds.length===0)return[];try{if(t.manualFillIds.length===1){const w=t.manualFillIds.map(T=>handleRequest(`${this.getUrl(1)}/${T}`));return(await Promise.allSettled(w)).filter(T=>T.status==="fulfilled").map(T=>T.value&&typeof T.value=="object"&&"body"in T.value?T.value.body:T.value)}{const w=t.manualFillIds.map(T=>`postID:"${T}"`).join(" OR ");return(await handleRequest(`${this.getUrl(2)}/search`,{routeOptions:t.params??void 0,method:"GET",params:{"page.size":((m=t.params)==null?void 0:m.pageSize)??String(t.count),"page.number":(S=t.params)==null?void 0:S.pageNumber,sort:"publishedDateTime:desc",q:w}})).data}}catch(w){console.error("Error in News/Web/getByQuery",w)}}return null}async getSearchResults(t,r=!0,o={page:{size:12},sort:"publishedDateTime:desc"},c=!1,d=!0){d&&(t=this.applyExclusions(t));const f=handleQueryParam(o),b=`search|${t}|${f.toString()}|${r}${c?"|fullResponse":""}`,m=__classPrivateFieldGet$8(this,_NewsWeb_cacheStore,"f").getObjectCacheItem("News",b);if(m!=null){const A=await m.object;if(!await this.isFetchingCheck(A))return A}const S=t?`q=${encodeURIComponent(r&&!t.includes("tagsData")?`"${t}"`:t)}`:"";__classPrivateFieldGet$8(this,_NewsWeb_cacheStore,"f").addObjectCache("News",b,"fetching");const w=await fetch(`${this.getUrl(2)}/search?${f.toString()}${S&&`&${S}`}`),T=c?await w.json():(await w.json()).data;return __classPrivateFieldGet$8(this,_NewsWeb_cacheStore,"f").addObjectCache("News",b,T),T}async getIsFeatured(t,r={page:{size:12},sort:"featuredOrder:asc"}
180,o=""){return await this.getSearchResults(`(${t?"":"NOT "}featured:1${o&&` AND ${o}`})`,!1,{...r,sort:t?"featuredOrder:asc":"publishedDateTime:desc"})}async getCategories(t={pageSize:50}){const r=handleQueryParam(t);return(await(await fetch(`${this.getUrl(1)}/categories?${r}`)).json()).body.filter(c=>c.onSite==1)}async getByCategory(t,r={page:{size:12},sort:"publishedDateTime:desc"},o="",c){return c!=null?await this.getSearchResults(`(postCategory:"${t}"%20AND%20NOT%20postID:"${c}"${o&&` AND ${o}`})`,!1,r):await this.getSearchResults(`postCategory:"${t}"${o&&` AND ${o}`}`,!1,r)}async getLatest(t="",r={page:{size:12},sort:"publishedDateTime:desc"},o=""){const c=t==null?void 0:t.replaceAll("&"," AND ");return await this.getSearchResults(c+o,!1,r)}async getBySlug(t){return(await(await fetch(`${this.getUrl(1)}/byslug?postSlug=${t}`)).json()).body}async getById(t){var o;return(o=(await(await fetch(`${this.getUrl(1)}/${t}`)).json()).body)==null?void 0:o[0]}async getPreview(t){return(await(await fetch(`${this.getUrl(1)}/preview/${t}`)).json()).body}async getNewsSingle(t){return(await(await fetch(`${this.getUrl(1)}/${t}`)).json()).body}}_NewsWeb_url=new WeakMap,_NewsWeb_cacheStore=new WeakMap,_NewsWeb_hiddenCategories=new WeakMap;var __classPrivateFieldSet$7=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$7=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_PagesWeb_url,_PagesWeb_cacheStore;class PagesWeb{constructor(t,r){_PagesWeb_url.set(this,void 0),_PagesWeb_cacheStore.set(this,void 0),__classPrivateFieldSet$7(this,_PagesWeb_url,t,"f"),__classPrivateFieldSet$7(this,_PagesWeb_cacheStore,r,"f")}getUrl(t){return`https://pages.cms.web.gc.${__classPrivateFieldGet$7(this,_PagesWeb_url,"f")}/v${t}`}getTemplateUrl(t){return`https://page-templates.cms.web.gc.${__classPrivateFieldGet$7(this,_PagesWeb_url,"f")}/v${t}`}async getByFullPath(t){var c,d;const r=await fetch(`${this.getUrl(2)}/?fullPath=${t}`).catch(()=>{throw new Error("Page not found")});if(!r.ok)throw new Error("Page not found");const o=await r.json();if(!((d=(c=o.data)==null?void 0:c[0])!=null&&d.attributes))throw new Error("Page not found");return o.data[0]}async getTemplate(t){var c,d,f;const r=await fetch(`${this.getTemplateUrl(2)}/${t}`).catch(()=>{throw new Error("Page not found")});if(!r.ok)throw new Error("Page not found");const o=await r.json();if(((f=(d=(c=o.data)==null?void 0:c.attributes)==null?void 0:d.templateData)==null?void 0:f.content)===void 0)throw new Error("Page not found");return{content:o==null?void 0:o.data}}async getBySlug(t){return(await(await fetch(`${this.getUrl(2)}/byslug?postSlug=${t}`)).json()).data[0].attributes.content}async getPreview(t){const r=await fetch(`${this.getUrl(1)}/preview/${t}`),o=await r.json();if(!o.body)throw new Error("Page not found");return{...o.body.content,page:{...o.body}}}async getPages(t={pageSize:100}){const r=handleQueryParam(t);return await(await fetch(`${this.getUrl(2)}/?${r}`)).json()}async getSearchResults(t,r={page:{size:12},sort:"savedTimestamp:desc"},o=!1){var w;const c=handleQueryParam(r),d=`search|${t}|${((w=r==null?void 0:r.page)==null?void 0:w.number)||1}${o?"|fullResponse":""}`,f=__classPrivateFieldGet$7(this,_PagesWeb_cacheStore,"f").getObjectCacheItem("Page",d);if(f!=null)return f.object;const b=await fetch(`${this.getUrl(2)}/search?q=${t||""}&${c}`),m=await b.json(),S=o?m:m.data;return __classPrivateFieldGet$7(this,_PagesWeb_cacheStore,"f").addObjectCache("Page",d,S),S}}_PagesWeb_url=new WeakMap,_PagesWeb_cacheStore=new WeakMap;var __classPrivateFieldSet$6=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$6=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_SegmentationCMS_url,_SegmentationCMS_token;class SegmentationCMS{constructor(t,r,o){_SegmentationCMS_url.set(this,void 0),_SegmentationCMS_token.set(this,void 0),__classPrivateFieldSet$6(this,_SegmentationCMS_url,t,"f"),__classPrivateFieldSet$6(this,_SegmentationCMS_token,o,"f")}getUrl(t){return`https://segments.admin.gc.${__classPrivateFieldGet$6(this,_SegmentationCMS_url,"f")}/v${t}`}async getSegments(){return await(await fetch(`${this.getUrl(2)}/`,{headers:{Authorization:__classPrivateFieldGet$6(this,_SegmentationCMS_token,"f")}})).json()}}
180_SegmentationCMS_url=new WeakMap,_SegmentationCMS_token=new WeakMap;var __classPrivateFieldSet$5=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$5=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_SponsorsWeb_url;class SponsorsWeb{constructor(t){_SponsorsWeb_url.set(this,void 0),__classPrivateFieldSet$5(this,_SponsorsWeb_url,t,"f")}getUrl(t){return`https://sponsors.cms.web.gc.${__classPrivateFieldGet$5(this,_SponsorsWeb_url,"f")}/v${t}`}async getFooterSponsors(t){const r=handleQueryParam(t),o=`${this.getUrl(1)}/footersponsors?${r}`;return(await(await fetch(o)).json()).body}async getSponsors(t){const r=`${this.getUrl(1)}/sections/sponsors?sectionID=${t}`;return(await(await fetch(r)).json()).body}}_SponsorsWeb_url=new WeakMap;class TeamsAdmin{constructor(t,r,o=null){this.token=null,this.url=t,this.sport=r,this.token=o}get baseUrl(){return`https://teams.${this.sport}.admin.gc.${this.url}/v2`}async fetchAllTeams(t){const r=await handleRequest(this.baseUrl,{routeOptions:t},this.token);if(!r)throw new Error("Failed to fetch teams");return r}async fetchTeamById(t,r){if(!t)throw new Error("Team ID is required");const o=await handleRequest(`${this.baseUrl}/${t}`,{routeOptions:r},this.token);if(!o)throw new Error("Failed to fetch team");return o}async createTeam(t){const r=await handleRequest(`${this.baseUrl}`,{method:"POST",body:t},this.token);if(!r)throw new Error("Failed to create team");return r}async updateTeam(t,r){if(!t)throw new Error("Team ID is required");const o=await handleRequest(`${this.baseUrl}/${t}`,{method:"PATCH",body:r},this.token);if(!o)throw new Error("Failed to update team");return o}async deleteTeam(t){if(!t)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/${t}`,{method:"DELETE"},this.token)}async fetchTeamParticipants(t,r,o){if(!t)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/`,{routeOptions:r,params:o},this.token)}async fetchTeamParticipantById(t,r,o,c){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/${r}/`,{routeOptions:o,params:c},this.token)}async createTeamParticipant(t,r){if(!t)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/`,{method:"POST",body:r},this.token)}async deleteTeamParticipant(t,r){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");await handleRequest(`${this.baseUrl}/${t}/participants/${r}/`,{method:"DELETE"},this.token)}async updateTeamParticipant(t,r,o){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/${r}/`,{method:"PATCH",body:o},this.token)}async createTeamParticipantMetadata(t,r,o){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/${r}/metadata/`,{method:"POST",body:o},this.token)}async updateTeamParticipantMetadata(t,r,o){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/${r}/metadata/`,{method:"PATCH",body:o},this.token)}async fetchTeamsWithMetadata(t=!0){const r={includeMetaData:t},o=await handleRequest(`${this.baseUrl}`,{params:r},this.token);if(!o)throw new Error("Failed to fetch teams with metadata");return o}async fetchTeamByIdWithMetadata(t,r=!0){if(!t)throw new Error("Team ID is required");const o={includeMetaData:r},c=await handleRequest(`${this.baseUrl}/${t}`,{params:o},this.token);if(!c)throw new Error("Failed to fetch team with metadata");return c}async fetchTeamByCompetitionID(t,r){if(!t)throw new Error("Competition ID is required");const o=await handleRequest(`${this.baseUrl}`,{routeOptions:r,params:{competitionID:t}},this.token);
180if(!o)throw new Error("Failed to fetch teams by competition ID");return o}async updateTeamMetadata(t,r){if(!t)throw new Error("Team ID is required");const o=await handleRequest(`${this.baseUrl}/${t}/metadata`,{method:"PATCH",body:r},this.token);if(!o)throw new Error("Failed to update team metadata");return o}}class TeamsWeb{constructor(t,r){this.url=t,this.sport=r}get baseUrl(){return`https://teams.${this.sport}.web.gc.${this.url}/v2`}async fetchAllTeams(t){return await handleRequest(this.baseUrl,{routeOptions:t})}async fetchTeamById(t,r){if(!t)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/${t}/`,{routeOptions:r})}async fetchTeamParticipants(t,r){if(!t)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/`,{routeOptions:r})}async fetchTeamParticipantById(t,r,o){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/${r}/`,{routeOptions:o})}async fetchTeamParticipantStats(t,r,o){if(!t)throw new Error("Team ID is required");if(!r)throw new Error("Participant ID is required");return await handleRequest(`${this.baseUrl}/${t}/participants/${r}/stats/`,{routeOptions:o})}async fetchTeamFixtures(t,r){if(!t)throw new Error("Team ID is required");return await handleRequest(`${this.baseUrl}/${t}/fixtures/`,{routeOptions:r})}}var __classPrivateFieldSet$4=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$4=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_TemplatesWeb_url;class TemplatesWeb{constructor(t){_TemplatesWeb_url.set(this,void 0),__classPrivateFieldSet$4(this,_TemplatesWeb_url,t,"f")}getUrl(t){return`https://page-templates.cms.web.gc.${__classPrivateFieldGet$4(this,_TemplatesWeb_url,"f")}/v${t}`}async getTemplateBySlug(t){try{const r=await fetch(`${this.getUrl(2)}/${t}`),{data:o}=await r.json();return o}catch{throw new Error("Page Template not found")}}}_TemplatesWeb_url=new WeakMap;var __classPrivateFieldSet$3=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$3=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_VideosCMS_url,_VideosCMS_cacheStore,_VideosCMS_features,_VideosCMS_token;class VideosCMS{constructor(t,r,o,c){_VideosCMS_url.set(this,void 0),_VideosCMS_cacheStore.set(this,void 0),_VideosCMS_features.set(this,void 0),_VideosCMS_token.set(this,void 0),__classPrivateFieldSet$3(this,_VideosCMS_url,t,"f"),__classPrivateFieldSet$3(this,_VideosCMS_cacheStore,r,"f"),__classPrivateFieldSet$3(this,_VideosCMS_features,o,"f"),__classPrivateFieldSet$3(this,_VideosCMS_token,c,"f")}getUrl(t){return __classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamline"?`https://streamline.admin.gc.${__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoUrl}/v${t}`:__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamAMG"?__classPrivateFieldGet$3(this,_VideosCMS_features,"f").config.streamAMG.cloudMatrixAPI:__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="youtube"?`https://youtube.cms.web.gc.${__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoUrl}/v1/youtube`:void 0}getCalendarUrl(t){return __classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamline"?`https://calendar.cms.admin.gc.${__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoUrl}/v${t}`:__classPrivateFieldGet$3(this,_VideosCMS_features,"f").config.streamAMG.streamPlayFeed}getFeedUrl(t){return`https://videos.cms.admin.gc.${__classPrivateFieldGet$3(this,_VideosCMS_url,"f")}/v${t}`}async getByPlaylistID(t){return(await(await fetch(`${this.getUrl(2)}/playlists?playlists=${t}`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()).data[0].attributes.videoData.map(o=>({...o,type:"video"}))}async getByVideoID(t,r){if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamline")return[(await(await fetch(`${this.getUrl(2)}/videos/${t}${r?`?include=${r}`:""}`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()).data];if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamAMG")return[await(await fetch(`${this.getUrl()}en/search?query=(mediaData.entryId:${t})`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()]}async getBySearch(t,r,o=0){if(r=r||"raw",__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamAMG"){const c=`search|${t}|1`,d=20,f=__classPrivateFieldGet$3(this,_VideosCMS_cacheStore,"f").getObjectCacheItem("Video",c),b=t.includes("metaData")?`${t}`:(t==null?void 0:t.length)>1?`(metaData.title:${encodeURIComponent(t)}~)`:"";if(f!=null)return f.object;const m=await fetch(`${this.getUrl()}en/search?query=(mediaData.mediaType:OnDemand)${b.length>1?`%20AND%20${b}`:""}&sortby=publicationData.releaseFrom&sortOrder=desc&pageIndex=${o}&pageSize=${d}`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}}),S=(await m.json()).itemData.map(w=>({...w,type:"video"}));return __classPrivateFieldGet$3(this,_VideosCMS_cacheStore,"f").addObjectCache("Video",c,S),S}if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamline"){const c=`search|${t}|1`,d=__classPrivateFieldGet$3(this,_VideosCMS_cacheStore,"f").getObjectCacheItem("Video",c);if(d!=null)return d.object.data;let f;return t=t==="="?"":t,f=r==="gc"?`page[number]=${o||1}&q=${t}`:t.length>0?`q=(title:"${t}"%20OR%20tagData.searchTags:"${t}"%20OR%20tagData.tags:"${t}")&sort=publicationData.createdAt:desc&page[size]=100`:"q=(_exists_:publicationData.createdAt)&sort=publicationData.createdAt:desc&page[size]=100",(await(await fetch(`${this.getUrl(2)}/search?${f}`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()).data}if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="youtube")return(await(await fetch(`${this.getUrl(2)}`)).json()).body}async getByCategory(t){if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamline"){const r=`video|Category=${t}|1`,o=__classPrivateFieldGet$3(this,_VideosCMS_cacheStore,"f").getObjectCacheItem("Video",r);if(o!=null)return o.object;let c;return c=t&&t.length>0?`q=(tagData.categories:"${t}")%20AND%20(publicationData.published:1)&page[size]=100&`:"q=(publicationData.published:1)&page[size]=100&",(await(await fetch(`${this.getUrl(2)}/search?${c}sort=publicationData.createdAt:desc`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()).data}if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamAMG"){const c=`video|category=${t}|1`,d=__classPrivateFieldGet$3(this,_VideosCMS_cacheStore,"f").getObjectCacheItem("Video",c);if(d!=null)return d.object;const f=await fetch(`${this.getUrl()}en/search?query=(metaData.title:${encodeURIComponent(t)})&pageSize=12&pageIndex=0`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}}),b=(await f.json()).itemData.map(m=>({...m,type:"video"}));return __classPrivateFieldGet$3(this,_VideosCMS_cacheStore,"f").addObjectCache("Video",c,b),b}
180if(__classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="youtube")return(await(await fetch(`${this.getUrl(2)}`)).json()).body}async sessionCheck(t){const r=await fetch(`${this.getUrl(2)}/session/check`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")},method:"POST",body:JSON.stringify({data:{attributes:t}})});return{data:await r.json(),status:r.status}}async getCalendar(){return __classPrivateFieldGet$3(this,_VideosCMS_features,"f").videoProvider==="streamline"?await(await fetch(`${this.getCalendarUrl(2)}/calendar?excludePastEvents=true`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json():{data:await(await fetch(this.getCalendarUrl(),{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()}}async getAudio(t){return await(await fetch(`${this.getUrl(2)}/streams/${t}`,{headers:{Authorization:__classPrivateFieldGet$3(this,_VideosCMS_token,"f")}})).json()}}_VideosCMS_url=new WeakMap,_VideosCMS_cacheStore=new WeakMap,_VideosCMS_features=new WeakMap,_VideosCMS_token=new WeakMap;var __classPrivateFieldSet$2=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$2=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_VideosWeb_cacheStore,_VideosWeb_features;class VideosWeb{constructor(t,r,o){_VideosWeb_cacheStore.set(this,void 0),_VideosWeb_features.set(this,void 0),this.isVideoAutoFillQuery=c=>c.type==="videos"&&c.contentFill==="auto-fill",this.isVideoManualFillQuery=c=>c.type==="videos"&&c.contentFill==="manual-fill",__classPrivateFieldSet$2(this,_VideosWeb_cacheStore,r,"f"),__classPrivateFieldSet$2(this,_VideosWeb_features,o,"f")}getUrl(t){return __classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamline"?`https://streamline.web.gc.${__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoUrl}/v${t}`:__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamAMG"?__classPrivateFieldGet$2(this,_VideosWeb_features,"f").config.video.streamAMG.cloudMatrixAPI:__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="youtube"?`https://youtube.cms.web.gc.${__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoUrl}/v1/youtube`:void 0}getCalendarUrl(t){return __classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamline"?`https://calendar.web.gc.${__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoUrl}/v${t}`:__classPrivateFieldGet$2(this,_VideosWeb_features,"f").config.video.streamAMG.streamPlayFeed}getFeedUrl(t){return`https://videos.cms.web.gc.${__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoUrl}/v${t}`}async getByQuery(t){var r,o,c,d,f,b,m,S,w;if(this.isVideoAutoFillQuery(t)){let T="search";const A={sort:"publicationData.startAt:desc","page.size":((r=t.params)==null?void 0:r.pageSize)??String(t.count),"page.number":(o=t.params)==null?void 0:o.pageNumber};switch(t.method){case"getLatest":(c=t.autofillOptions)!=null&&c.latest&&(A.q=t.autofillOptions.latest);break;case"getByCategory":(d=t.autofillOptions)!=null&&d.category&&(A.q=`(tagData.categories:"${t.autofillOptions.category}") AND (_exists_:publicationData.startAt)`);break;case"getByPlaylistID":(f=t.autofillOptions)!=null&&f.playlistID&&(T="playlists",A.q=`playlists=${t.autofillOptions.playlistID}`);break;case"getByPlayerID":(b=t.autofillOptions)!=null&&b.playerID&&(A.q=`(title:"${t.autofillOptions.playerID}"%20OR%20tagData.searchTags:"${t.autofillOptions.playerID}"%20OR%20tagData.tags:"${t.autofillOptions.playerID}"%20OR%20tagData.tournament_type:"${t.autofillOptions.playerID}"%20OR%20tagData.event:"${t.autofillOptions.playerID}"%20OR%20tagData.players:"${t.autofillOptions.playerID}"%20OR%20tagData.fixtures:"${t.autofillOptions.playerID}"%20OR%20tagData.teams:"${t.autofillOptions.playerID}")%20AND%20(_exists_:publicationData.startAt)`);break;case"getByMatchID":(m=t.autofillOptions)!=null&&m.matchID&&(A.q=`(title:"${t.autofillOptions.matchID}"%20OR%20tagData.searchTags:"${t.autofillOptions.matchID}"%20OR%20tagData.tags:"${t.autofillOptions.matchID}"%20OR%20tagData.tournament_type:"${t.autofillOptions.matchID}"%20OR%20tagData.event:"${t.autofillOptions.matchID}"%20OR%20tagData.players:"${t.autofillOptions.matchID}"%20OR%20tagData.fixtures:"${t.autofillOptions.matchID}"%20OR%20tagData.teams:"${t.autofillOptions.matchID}")%20AND%20(_exists_:publicationData.startAt)`);break;default:A.q=""}return(await handleRequest(`${this.getUrl(2)}/${T}`,{routeOptions:t.params??void 0,method:"GET",params:A})).data}if(this.isVideoManualFillQuery(t)){if(!t.manualFillIds||t.manualFillIds.length===0)return[];try{if(t.manualFillIds.length===1){const A=t.manualFillIds.map(C=>handleRequest(`${this.getUrl(2)}/videos/${C}`));return(await Promise.allSettled(A)).filter(C=>C.status==="fulfilled").map(C=>C.value&&typeof C.value=="object"&&"data"in C.value?C.value.data:C.value)}const T=t.manualFillIds.map(A=>`videoID:"${A}"`).join(" OR ");return(await handleRequest(`${this.getUrl(2)}/search`,{routeOptions:t.params??void 0,method:"GET",params:{"page.size":((S=t.params)==null?void 0:S.pageSize)??String(t.count),"page.number":(w=t.params)==null?void 0:w.pageNumber,sort:"publicationData.startAt:desc",q:T}})).data}catch(T){return console.error("Error in Video/Web/getByQuery",T),[]}}}async getPlaylists(){return(await(await fetch(`${this.getUrl(2)}/playlists`)).json()).data}async getByPlaylistID(t){return(await(await fetch(`${this.getUrl(2)}/playlists?playlists=${t}`)).json()).data[0].attributes.videoData.map(o=>({...o,type:"video"}))}async getByVideoID(t){if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamline")return[(await(await fetch(`${this.getUrl(2)}/videos/${t}`)).json()).data];if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamAMG")return[await(await fetch(`${this.getUrl()}en/search?query=(mediaData.entryId:${t})`)).json()]}async getBySearch(t,r="raw",o=__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamAMG"?0:1,c=20,d=!1){if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamAMG"){const f=`search|${t}|${o}${d?"|fullResponse":""}`,b=__classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").getObjectCacheItem("Video",f),m=t.includes("metaData")?`${t}`:(t==null?void 0:t.length)>1?`(metaData.title:${encodeURIComponent(t)}~)`:"";if(b!=null)return b.object;const S=await fetch(`${this.getUrl()}en/search?query=(mediaData.mediaType:OnDemand)${m.length>1?`%20AND%20${m}`:""}&sortby=publicationData.releaseFrom&sortOrder=desc&pageIndex=${o}&pageSize=${c}`),w=await S.json(),T=w.itemData.map(C=>({...C,type:"video"})),A=d?{...w,itemData:T}:T;return __classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").addObjectCache("Video",f,A),A}if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamline"){const f=`search|${t=t==="="?"":t}|${o}${d?"|fullResponse":""}`,b=__classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").getObjectCacheItem("Video",f);if(b!=null)return b.object;let m;m=r==="gc"?`page.number=${o||1}&${t}`:t.length>0?`page.number=${o||1}&page.size=12&q=(title:"${t}"%20OR%20tagData.searchTags:"${t}"%20OR%20tagData.tags:"${t}"%20OR%20tagData.tournament_type:"${t}"%20OR%20tagData.event:"${t}"%20OR%20tagData.players:"${t}"%20OR%20tagData.fixtures:"${t}"%20OR%20tagData.teams:"${t}")%20AND%20(_exists_:publicationData.startAt)&sort=publicationData.startAt:desc`:`page.number=${o||1}&page.size=12&q=(_exists_:publicationData.startAt)&sort=publicationData.startAt:desc`;const S=await fetch(`${this.getUrl(2)}/search?${m}`),w=await S.json(),T=d?w:w.data;return __classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").addObjectCache("Video",f,T),T}if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="youtube"){const f=await fetch(`${this.getUrl(2)}`),b=await f.json();
180return d?b:b.body}}async getCategories(){return await(await fetch(`${this.getFeedUrl(2)}/categories`)).json()}async getMemberships(){return(await(await fetch(`${this.getFeedUrl(2)}/memberships`)).json()).data}async getLatest(){return await this.getBySearch("","raw",void 0,12)}async getByCategory(t){if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamline"){const r=`video|Category=${t}|1`,o=__classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").getObjectCacheItem("Video",r);if(o!=null)return o.object;let c;return c=t.length>0?`(tagData.categories:"${t}")%20AND%20(_exists_:publicationData.startAt)`:"(_exists_:publicationData.startAt)",(await(await fetch(`${this.getUrl(2)}/search?q=${c}&sort=publicationData.startAt:desc`)).json()).data}if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamAMG"){const c=`video|category=${t}|1`,d=__classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").getObjectCacheItem("Video",c);if(d!=null)return d.object;const f=await fetch(`${this.getUrl()}en/search?query=(metaData.title:${encodeURIComponent(t)})&pageSize=12&pageIndex=0&sortby=publicationData.releaseFrom&sortOrder=desc`),b=(await f.json()).itemData.map(m=>({...m,type:"video"}));return __classPrivateFieldGet$2(this,_VideosWeb_cacheStore,"f").addObjectCache("Video",c,b),b}if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="youtube")return(await(await fetch(`${this.getUrl(2)}`)).json()).body}async sessionCheck(t){const r=await fetch(`${this.getUrl(2)}/session/check`,{method:"POST",body:JSON.stringify({data:{attributes:t}})});return{data:await r.json(),status:r.status}}async getCalendar(t={page:{size:12}}){if(__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoProvider==="streamline"){const o=handleQueryParam(t);return await(await fetch(`${this.getCalendarUrl(2)}/calendar?excludePastEvents=true&${o.toString()}`)).json()}return{data:await(await fetch(`${this.getCalendarUrl()}?start=today`)).json()}}async getLiveStream(t){return[(await(await fetch(`${this.getUrl(2)}/streams/${t}?dvrMode=true`)).json()).data]}async getAudio(t){return await(await fetch(`${this.getUrl(2)}/streams/${t}`)).json()}async getScheduledEvents(t={page:{size:12}}){return await(await fetch(`${this.getUrl(2)}/scheduler?${handleQueryParam(t)}`)).json()}async getScheduledEventById(t){return await(await fetch(`${this.getUrl(2)}/scheduler/${t}`)).json()}async getEpgChannel(t){return await(await fetch(`https://streamline.webapi.gc.${__classPrivateFieldGet$2(this,_VideosWeb_features,"f").videoUrl}/v2/channels?countryCode=${t}`)).json()}}_VideosWeb_cacheStore=new WeakMap,_VideosWeb_features=new WeakMap;var __classPrivateFieldSet$1=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet$1=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_VideoFeedsWeb_url;class VideoFeedsWeb{constructor(t){_VideoFeedsWeb_url.set(this,void 0),__classPrivateFieldSet$1(this,_VideoFeedsWeb_url,t,"f")}getUrl(t){return`https://videos.cms.web.gc.${__classPrivateFieldGet$1(this,_VideoFeedsWeb_url,"f")}/v${t}/content/`}async getByFeedID(t){return await(await fetch(`${this.getUrl(2)}${t}`)).json()}}_VideoFeedsWeb_url=new WeakMap;var __classPrivateFieldSet=function(e,t,r,o,c){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!c)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!c:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?c.call(e,r):c?c.value=r:t.set(e,r),r},__classPrivateFieldGet=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},_StreamlineAdmin_url,_StreamlineAdmin_features,_StreamlineAdmin_token;class StreamlineAdmin{constructor(t,r,o=null){_StreamlineAdmin_url.set(this,void 0),_StreamlineAdmin_features.set(this,void 0),_StreamlineAdmin_token.set(this,void 0),__classPrivateFieldSet(this,_StreamlineAdmin_url,t,"f"),__classPrivateFieldSet(this,_StreamlineAdmin_features,r,"f"),__classPrivateFieldSet(this,_StreamlineAdmin_token,o??"","f")}getUrl(t){return`https://streamline.admin.gc.${__classPrivateFieldGet(this,_StreamlineAdmin_features,"f").videoUrl}/v${t}`}getFeedUrl(t){return`https://videos.cms.admin.gc.${__classPrivateFieldGet(this,_StreamlineAdmin_url,"f")}/v${t}`}async fetchStreamlineConfig(){if(__classPrivateFieldGet(this,_StreamlineAdmin_features,"f").videoProvider==="streamline")return handleRequest(`${this.getUrl(2)}/config`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateStreamlineConfig(t){return handleRequest(`${this.getUrl(2)}/config`,{method:"PATCH",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchBypassSessionChecks(){return handleRequest(`${this.getUrl(2)}/bypassStreamlineSessionChecks`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateBypassSessionChecks(t){return handleRequest(`${this.getUrl(2)}/bypassStreamlineSessionChecks`,{method:"PATCH",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllMemberships(){return handleRequest(`${this.getFeedUrl(2)}
180/memberships`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchMembershipSingle(t){return handleRequest(`${this.getFeedUrl(2)}/memberships/${t}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createMembership(t){return handleRequest(`${this.getFeedUrl(2)}/memberships`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateMembership(t,r){return handleRequest(`${this.getFeedUrl(2)}/memberships/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteMembership(t){await handleRequest(`${this.getFeedUrl(2)}/memberships/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllCategories(){return handleRequest(`${this.getFeedUrl(2)}/categories`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchCategorySingle(t){return handleRequest(`${this.getFeedUrl(2)}/categories/${t}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createCategory(t){return handleRequest(`${this.getFeedUrl(2)}/categories`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateCategory(t,r){return handleRequest(`${this.getFeedUrl(2)}/categories/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteCategory(t){await handleRequest(`${this.getFeedUrl(2)}/categories/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllPackages(t,r,o){return handleRequest(`${this.getUrl(2)}/packages`,{method:"GET",routeOptions:{page:{number:t,size:r}},params:o?{"filter[title,contains,string]":o.toLowerCase()}:void 0},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchPackageSingle(t){return handleRequest(`${this.getUrl(2)}/packages/${t}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createPackage(t){return handleRequest(`${this.getUrl(2)}/packages`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updatePackage(t,r){return handleRequest(`${this.getUrl(2)}/packages/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deletePackage(t){await handleRequest(`${this.getUrl(2)}/packages/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchPackagePrice(t,r){return handleRequest(`${this.getUrl(2)}/packages/${t}/price/${r}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createPackagePrice(t,r){return handleRequest(`${this.getUrl(2)}/packages/${t}/price`,{method:"POST",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updatePackagePrice(t,r,o){return handleRequest(`${this.getUrl(2)}/packages/${t}/price/${r}`,{method:"PATCH",body:o},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllSchedules(t=1,r=25){return handleRequest(`${this.getUrl(2)}/scheduler`,{method:"GET",routeOptions:{page:{number:t,size:r}}},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchScheduleSingle(t){return handleRequest(`${this.getUrl(2)}/scheduler/${t}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createSchedule(t){return handleRequest(`${this.getUrl(2)}/scheduler`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateSchedule(t,r){return handleRequest(`${this.getUrl(2)}/scheduler/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteSchedule(t){await handleRequest(`${this.getUrl(2)}/scheduler/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllEntitlements(t=1,r=25){return handleRequest(`${this.getUrl(2)}/entitlements`,{method:"GET",routeOptions:{page:{number:t,size:r}}},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createEntitlement(t){return handleRequest(`${this.getUrl(2)}/entitlements`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteEntitlement(t){await handleRequest(`${this.getUrl(2)}/entitlements/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllStreams(t=1,r=25){return handleRequest(`${this.getUrl(2)}/streams`,{method:"GET",routeOptions:{page:{number:t,size:r}}},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchStreamSingle(t){return handleRequest(`${this.getUrl(2)}/streams/${t}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createStream(t){return handleRequest(`${this.getUrl(2)}/streams`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateStream(t,r){return handleRequest(`${this.getUrl(2)}/streams/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteStream(t){await handleRequest(`${this.getUrl(2)}/streams/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async setLiveStreamEnabled(t,r){await handleRequest(`${this.getUrl(2)}/streams/${t}/${r?"enable":"disable"}`,{method:"PUT"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async resetLiveStreamKey(t){await handleRequest(`${this.getUrl(2)}/streams/${t}/reset`,{method:"POST"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchAllCountries(){return handleRequest(`${this.getUrl(2)}/countryProfiles`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchCountrySingle(t){return handleRequest(`${this.getUrl(2)}/countryProfiles/${t}`,{method:"GET"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async createCountry(t){return handleRequest(`${this.getUrl(2)}/countryProfiles`,{method:"POST",body:t},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateCountry(t,r){return handleRequest(`${this.getUrl(2)}/countryProfiles/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteCountry(t){await handleRequest(`${this.getUrl(2)}/countryProfiles/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async searchVideos(t="",r=1,o=25,c="publicationData.createdAt:desc"){return handleRequest(`${this.getUrl(2)}/search`,{method:"GET",routeOptions:{page:{number:r,size:o},sort:c},params:t?{q:t}:void 0},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async fetchVideoSingle(t,r){return handleRequest(`${this.getUrl(2)}/videos/${t}`,{method:"GET",params:r?{include:r}:void 0},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async updateVideo(t,r){return handleRequest(`${this.getUrl(2)}/videos/${t}`,{method:"PATCH",body:r},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}async deleteVideo(t){await handleRequest(`${this.getUrl(2)}/videos/${t}`,{method:"DELETE"},__classPrivateFieldGet(this,_StreamlineAdmin_token,"f"))}}
180_StreamlineAdmin_url=new WeakMap,_StreamlineAdmin_features=new WeakMap,_StreamlineAdmin_token=new WeakMap;class GCFESDK{constructor(t,r,o,c=null){var d;this.token=null,this.news={web:()=>new NewsWeb(this.url,this.cacheStore,this.hiddenCategories),cms:f=>new NewsCMS(this.url,this.cacheStore,f)},this.pages={web:()=>new PagesWeb(this.url,this.cacheStore)},this.videos={web:()=>new VideosWeb(this.url,this.cacheStore,this.features),cms:f=>new VideosCMS(this.url,this.cacheStore,this.features,f)},this.badminton={web:()=>new BadmintonWeb(this.url,this.cacheStore)},this.darts={web:()=>new DartsWeb(this.url)},this.multiClub={web:()=>new MultiClubWeb(this.url)},this.football={web:()=>{var f,b;if(!((b=(f=this.features)==null?void 0:f.sports)!=null&&b.includes("football")))throw Error(`Football feature unavailable on ${this.url}`);return new FootballWeb(this.url,this.cacheStore)},cms:f=>new FootballCMS(this.url,this.cacheStore,f)},this.forms={web:()=>new FormsWeb(this.url),cms:f=>new FormsCMS(this.url,this.cacheStore,f)},this.media={cms:f=>new MediaLibrary(this.url,this.cacheStore,f),web:()=>new MediaWeb(this.url)},this.sponsors={web:()=>new SponsorsWeb(this.url)},this.advertising={web:()=>new AdvertisingWeb(this.url),cms:f=>new AdvertisingCMS(this.url,this.cacheStore,f)},this.templates={web:()=>new TemplatesWeb(this.url)},this.videoFeeds={web:()=>new VideoFeedsWeb(this.url)},this.segmentation={cms:f=>new SegmentationCMS(this.url,this.cacheStore,f)},this.url=t,this.cacheStore=r,this.features=o,this.sport=o.sports[0]||"football",this.token=c,this.hiddenCategories=((d=o.config.news)==null?void 0:d.hiddenCategories)??[]}get competitionsWeb(){return this._competitionsWeb||(this._competitionsWeb=new CompetitionsWeb(this.url,this.sport,this.cacheStore)),this._competitionsWeb}get competitionsAdmin(){return this._competitionsAdmin||(this._competitionsAdmin=new CompetitionsAdmin(this.url,this.sport,this.token)),this._competitionsAdmin}get fixturesWeb(){return this._fixturesWeb||(this._fixturesWeb=new FixturesWeb(this.url,this.sport,this.cacheStore)),this._fixturesWeb}get fixturesAdmin(){return this._fixturesAdmin||(this._fixturesAdmin=new FixturesAdmin(this.url,this.sport,this.token)),this._fixturesAdmin}get teamsWeb(){return this._teamsWeb||(this._teamsWeb=new TeamsWeb(this.url,this.sport)),this._teamsWeb}get teamsAdmin(){return this._teamsAdmin||(this._teamsAdmin=new TeamsAdmin(this.url,this.sport,this.token)),this._teamsAdmin}get clientTeamDefaultsWeb(){return this._clientTeamDefaultsWeb||(this._clientTeamDefaultsWeb=new ClientTeamDefaultsWeb(this.url,this.sport)),this._clientTeamDefaultsWeb}get clientTeamDefaultsAdmin(){return this._clientTeamDefaultsAdmin||(this._clientTeamDefaultsAdmin=new ClientTeamDefaultsAdmin(this.url,this.sport,this.token)),this._clientTeamDefaultsAdmin}get seasonsWeb(){return this._seasonsWeb||(this._seasonsWeb=new SeasonsWeb(this.url,this.sport,this.cacheStore)),this._seasonsWeb}get streamlineAdmin(){return this._streamlineAdmin||(this._streamlineAdmin=new StreamlineAdmin(this.url,this.features,this.token)),this._streamlineAdmin}get countriesWeb(){return this._countriesWeb||(this._countriesWeb=new CountriesWeb(this.url)),this._countriesWeb}auth(t,r,o,c){return getAuth(t,r,this.url,this.cacheStore,o||"localhost",c,this.features.config.sso)}}const useCacheStore=defineStore({id:"cacheStore",state:()=>({dataCache:{}}),actions:{addObjectCache(e,t,r){Object.keys(this.dataCache).filter(c=>c===e).length===0&&(this.dataCache[e]=[]);const o=this.dataCache[e].filter(c=>(c==null?void 0:c.key)===t);if(o.length>0){const c=this.dataCache[e];this.dataCache[e][c.indexOf(o[0])]={key:t,object:r}}else this.dataCache[e].push({key:t,object:r})},deleteCacheItem(e,t){const r=this.dataCache[e].filter(o=>(o==null?void 0:o.key)===t);if(r.length>0){const o=this.dataCache[e];this.dataCache[e][o.indexOf(r[0])]=void 0}}},getters:{getObjectCache:e=>t=>e.dataCache[t],getObjectCacheItem:e=>(t,r)=>{var o;return e.dataCache[t]!==void 0&&e.dataCache[t].length?(o=e.dataCache[t].filter(c=>(c==null?void 0:c.key)===r))==null?void 0:o[0]:null}}}),gcfesdk_QxiqL0ofcE47RDOUUv2it7_5uVa6dhDLjCkAHDLljy4=defineNuxtPlugin({name:"gcfesdk",setup(){const e=useRuntimeConfig(),t=useCacheStore(),r=e.public.club.features.streamline?"streamline":"streamAMG";return{provide:{gc:()=>{var o;return new GCFESDK(e.public.servicesURL,t,{sports:[e.public.club.sport||"football"],videoProvider:r,videoUrl:e.public.servicesURL,config:{video:e.public.video,sso:{idProperty:(o=e.public.club.ssoOptions)==null?void 0:o.idProperty},news:{hiddenCategories:e.public.hiddenCategories||[]}}})}}}}}),recaptcha_lh6q9BA4JW_hxBMqztY0u3OzGZVC07QRobPWzAPkzqQ=defineNuxtPlugin(e=>{const t={siteKey:useRuntimeConfig().public.recaptcha,loaderOptions:{size:"invisible",autoHideBadge:!0}};e.vueApp.use(ReCaptchaVuePluginExports.VueReCaptcha,t)}),splide_client_fZo_18AmfauKFPEA7WniDaJHxDomK4miQz6nYVogaY0=()=>{},plugins=[revive_payload_client_kG4vF4SWGlhgLJRKrmco1O_zuG41odAu7e9PNPCDOtY,unhead_k2P3m_ZDyjlr2mMYnoDPwavjsDN8hBlk9cFai0bbopU,plugin$1,clickOutsideHandler_zH4j3VQ4X0lnprvGUkOO6tCxGOkbHPYH1_1zIefQIEI,inView_79Wqatl7kpXCcrdqIoft8Rho2uHxqOr2zmYTH_KhGRk,recaptcha_client_oqeR6lL9rxUcxYP_BfXkGmK0iCIA6djI
180Mr1iRR930QY,payload_client_kSYcIMYUswSDcSGoGWqM0MO2T4MjOZsQFA1GU6fqohM,navigation_repaint_client_iZ4sbIDUOBlI58WRS1dxkRZJOsKNs1c7SCqRszdxr6Y,check_outdated_build_client__GMdmUuNCTKDee9GyDhHz84CJEYUp5_FenYjvgAxtj8,chunk_reload_client_90gdG_aWZaDfO85SQYWzwaOywz7zi0wBnFUoX0cT54U,plugin,components_plugin_z4hgvsiddfKkfXTP6M8M4zG5Cb7sGnDhcryKVM45Di4,prefetch_client_plc8Lsxh1X10IEwNhW7mxf0MabjBz64b9ODLi87nY5E,plugin_client_yElHsdJ_bErHTGKC_jWDFnTnvndT2ObInVeiOXa2k6w,index_client_9gBWJSUpUj57Kb3MABx9opDlM4NTmLtceANorGzEnxY,auth_client_bOdD2eZDKjGqlDOjac9qS96XZZhkUEoIUfJVu2Y9fgk,gcfesdk_QxiqL0ofcE47RDOUUv2it7_5uVa6dhDLjCkAHDLljy4,recaptcha_lh6q9BA4JW_hxBMqztY0u3OzGZVC07QRobPWzAPkzqQ,splide_client_fZo_18AmfauKFPEA7WniDaJHxDomK4miQz6nYVogaY0],defineRouteProvider=(e="RouteProvider")=>defineComponent({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,o=t.route,c={};for(const d in t.route)Object.defineProperty(c,d,{get:()=>r===t.renderKey?t.route[d]:o[d],enumerable:!0});return provide(PageRouteSymbol,shallowReactive(c)),()=>t.vnode?h(t.vnode,{ref:t.vnodeRef}):t.vnode}}),RouteProvider=defineRouteProvider(),_routeProviders=new WeakMap,__nuxt_component_0$1=defineComponent({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:o}){const c=useNuxtApp(),d=ref(),f=inject(PageRouteSymbol,null);let b;o({pageRef:d});const m=inject(LayoutMetaSymbol,null);let S;const w=c.deferHydration();if(c.isHydrating){const A=c.hooks.hookOnce("app:error",w);useRouter().beforeEach(A)}e.pageKey&&watch(()=>e.pageKey,(A,C)=>{A!==C&&c.callHook("page:loading:start")});let T=!1;{const A=useRouter().beforeResolve(()=>{T=!1});onBeforeUnmount(()=>{A()})}return()=>h(RouterView,{name:e.name,route:e.route,...t},{default:A=>{const C=haveParentRoutesRendered(f,A.route,A.Component),P=f&&f.matched.length===A.route.matched.length;if(!A.Component)return S&&!P?S:void w();if(S&&m&&!m.isCurrent(A.route))return S;if(C&&f&&(!m||m!=null&&m.isCurrent(f)))return P?S:null;const B=generateRouteKey$1(A,e.pageKey),U=hasChildrenRoutes(f,A.route,A.Component);c.isHydrating||b!==B||U||nextTick$1(()=>{T=!0,c.callHook("page:loading:end")}),b=B;const D=!!(e.transition??A.route.meta.pageTransition??appPageTransition),$=D&&_mergeTransitionProps([e.transition,A.route.meta.pageTransition,appPageTransition,{onAfterLeave(){delete c._runningTransition,c.callHook("page:transition:finish",A.Component)}}]),z=e.keepalive??A.route.meta.keepalive??appKeepalive;return S=_wrapInTransition(D&&$,wrapInKeepAlive(z,h(Suspense,{suspensible:!0,onPending:()=>{D&&(c._runningTransition=!0),c.callHook("page:start",A.Component)}
180,onResolve:()=>{nextTick$1(()=>c.callHook("page:finish",A.Component).then(()=>{if(!T&&!U)return T=!0,c.callHook("page:loading:end")}).finally(w))}},{default:()=>{const V={key:B||void 0,vnode:r.default?normalizeSlot(r.default,A):A.Component,route:A.route,renderKey:B||void 0,trackRootNodes:D,vnodeRef:d};if(!z)return h(RouteProvider,V);const F=A.Component.type,ee=F;let te=_routeProviders.get(ee);return te||(te=defineRouteProvider(F.name||F.__name),_routeProviders.set(ee,te)),h(te,V)}}))).default(),S}})}});function _mergeTransitionProps(e){const t=e.filter(Boolean).map(r=>({...r,onAfterLeave:r.onAfterLeave?toArray$1(r.onAfterLeave):void 0}));return defu(...t)}function haveParentRoutesRendered(e,t,r){if(!e)return!1;const o=t.matched.findIndex(c=>{var d;return((d=c.components)==null?void 0:d.default)===(r==null?void 0:r.type)});return!(!o||o===-1)&&(t.matched.slice(0,o).some((c,d)=>{var f,b,m;return((f=c.components)==null?void 0:f.default)!==((m=(b=e.matched[d])==null?void 0:b.components)==null?void 0:m.default)})||r&&generateRouteKey$1({route:t,Component:r})!==generateRouteKey$1({route:e,Component:r}))}function hasChildrenRoutes(e,t,r){return e?t.matched.findIndex(o=>{var c;return((c=o.components)==null?void 0:c.default)===(r==null?void 0:r.type)})<t.matched.length-1:!1}function normalizeSlot(e,t){const r=e(t);return r.length===1?h(r[0]):h(Fragment,void 0,r)}const LayoutLoader=defineComponent({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup:(e,t)=>()=>h(layouts[e.name],e.layoutProps,t.slots)}),nuxtLayoutProps={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},__nuxt_component_1=defineComponent({name:"NuxtLayout",inheritAttrs:!1,props:nuxtLayoutProps,setup(e,t){const r=useNuxtApp(),o=inject(PageRouteSymbol),c=!o||o===useRoute$1()?useRoute():o,d=computed(()=>{let S=unref(e.name)??(c==null?void 0:c.meta.layout)??"default";return S&&!(S in layouts)&&e.fallback&&(S=unref(e.fallback)),S}),f=shallowRef();t.expose({layoutRef:f});const b=r.deferHydration();if(r.isHydrating){const S=r.hooks.hookOnce("app:error",b);useRouter().beforeEach(S)}let m;return()=>{const S=d.value&&d.value in layouts,w=(c==null?void 0:c.meta.layoutTransition)??appLayoutTransition,T=m;return m=d.value,_wrapInTransition(S&&w,{default:()=>h(Suspense,{suspensible:!0,onResolve:()=>{nextTick$1(b)}},{default:()=>h(LayoutProvider,{layoutProps:mergeProps(t.attrs,{ref:f}),key:d.value||void 0,name:d.value,shouldProvide:!e.name,isRenderingNewLayout:A=>A!==T&&A===d.value,hasTransition:!!w},t.slots)})}).default()}}}),LayoutProvider=defineComponent({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const r=e.name;e.shouldProvide&&provide(LayoutMetaSymbol,{isCurrent:c=>r===(c.meta.layout??"default")});const o=inject(PageRouteSymbol);if(o&&o===useRoute$1()){const c=useRoute(),d={};for(const f in c){const b=f;Object.defineProperty(d,b,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?c[b]:o[b]})}provide(PageRouteSymbol,shallowReactive(d))}return()=>{var c,d;return!r||typeof r=="string"&&!(r in layouts)?(d=(c=t.slots).default)==null?void 0:d.call(c):h(LayoutLoader,{key:r,layoutProps:e.layoutProps,name:r},t.slots)}}}),_export_sfc$1=(e,t)=>{const r=e.__vccOpts||e;for(const[o,c]of t)r[o]=c;return r},_sfc_main$13={};function _sfc_render$4(e,t){const r=__nuxt_component_0$1,o=__nuxt_component_1;return openBlock(),createBlock(o,null,{default:withCtx(()=>[createVNode(r)]),_:1})}const AppComponent=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$4]]);function useViewport(){const e=ref(!1),t=ref(!1),r=ref(!1);let o={};const c=()=>{e.value=o.mobile.matches,t.value=o.tablet.matches,r.value=o.desktop.matches};return onMounted(()=>{o={mobile:window.matchMedia("(max-width: 767px)"),tablet:window.matchMedia("(min-width: 768px) and (max-width: 1024px)"),desktop:window.matchMedia("(min-width: 1025px)")},c(),Object.values(o).forEach(d=>d.addEventListener("change",c))}),onUnmounted(()=>
180{Object.values(o).forEach(d=>d.removeEventListener("change",c))}),{isMobile:e,isTablet:t,isDesktop:r}}const _hoisted_1$S={class:"cursor-pointer gc-base-icon",tabindex:"0",role:"tab"},_hoisted_2$E=["width","height","viewBox"],_hoisted_3$x=["href"],initialViewBox="0 0 24 24",_sfc_main$12=defineComponent({__name:"BaseIcon",props:{icon:{default:"search"},size:{default:24},bgColorClass:{default:""},colorClass:{default:""},color:{default:""},pack:{default:"widgets"},stroke:{default:""},customViewBox:{default:""},mobileSize:{}},setup(e){const t=e,{isMobile:r}=useViewport(),o=computed(()=>t.icon?t.icon.charAt(0).toLowerCase()+t.icon.slice(1):"search"),c=computed(()=>t.stroke?{stroke:t.stroke}:{});return(d,f)=>(openBlock(),createElementBlock("div",_hoisted_1$S,[(openBlock(),createElementBlock("svg",{width:unref(r)&&e.mobileSize||e.size,height:unref(r)&&e.mobileSize||e.size,viewBox:e.customViewBox?e.customViewBox:initialViewBox,xmlns:"http://www.w3.org/2000/svg",class:normalizeClass(["duration-100 ease-in-out",[e.bgColorClass,e.colorClass]]),style:normalizeStyle(c.value)},[createBaseVNode("use",{fill:"red",href:`/gc-icons/${e.pack}/${o.value}.svg#icon`},null,8,_hoisted_3$x)],14,_hoisted_2$E))]))}}),useSSOID=async()=>{const config=useRuntimeConfig(),{$auth}=useNuxtApp(),loading=ref(!0),ssoId=ref(void 0),user=ref(),getUser=async()=>{user.value=await($auth==null?void 0:$auth.getSession())},getSSOID=async()=>{var e,t,r,o,c,d,f,b,m,S,w,T,A,C;if(((t=(e=config.public.club)==null?void 0:e.ssoOptions)==null?void 0:t.provider)==="OIDC"){const userDetails=await($auth==null?void 0:$auth.getUserDetails());ssoId.value=userDetails!==void 0?eval(`userDetails?.${((o=(r=config.public.club)==null?void 0:r.ssoOptions)==null?void 0:o.idProperty)||"sub"}`):(f=(d=(c=user.value)==null?void 0:c.idToken)==null?void 0:d.payload)==null?void 0:f.sub}else if(((m=(b=config.public.club)==null?void 0:b.ssoOptions)==null?void 0:m.provider)==="Kore"){const userDetails=await($auth==null?void 0:$auth.getUser());ssoId.value=userDetails!==void 0?`${eval(`userDetails?.${((w=(S=config.public.club)==null?void 0:S.ssoOptions)==null?void 0:w.idProperty)||"sub"}`)}`:void 0}else ssoId.value=(C=(A=(T=user.value)==null?void 0:T.idToken)==null?void 0:A.payload)==null?void 0:C.sub;loading.value=!1};return await getUser(),await getSSOID(),{user,loading,ssoId}},useGAEventData=async(e,t)=>{const r=useUserStore();let o=null,c=null;const d=ref(),{getUserDetails:f,isLoggedIn:b}=storeToRefs(r),{loading:m,ssoId:S}=await useSSOID(),w=f.value,T=()=>{const A=localStorage.getItem("uniqueUserId");if(A)return A;{const C=crypto.randomUUID();return localStorage.setItem("uniqueUserId",C),C}};return o=await(async A=>{if(A===void 0)return null;const C=new TextEncoder().encode(A||""),P=await crypto.subtle.digest("SHA-256",C);return Array.from(new Uint8Array(P)).map(B=>("00"+B.toString(16)).slice(-2)).join("")})((w==null?void 0:w.email)||t),c=sessionStorage.getItem("newUser")||"returning",b.value&&!e?d.value={country:(w==null?void 0:w.country)||null,timestamp:Math.floor(Date.now()/1e3).toString(),date:new Date().toString(),emailHash:o||null,language:navigator.language||navigator.languages[0],loggedIn:b.value.toString()||"false",ssoId:S.value||null,uniqueUserId:T()||null}:e==="login"?d.value={...d.value,returnUser:c}:e==="sign_up"||e==="forgotten_password"?d.value={...d.value,returnUser:"new"}:e==="account_verify"&&(d.value={...d.value,returnUser:c,authentication_method:"email"}),{userData:d.value,loading:m}},useAnalyticsEvent=(e,t)=>{var o;if(typeof window>"u")return;const r=window;(o=r==null?void 0:r.dataLayer)==null||o.push({event:e,...t})},_hoisted_1$R={class:"rounded text-clear"},_sfc_main$11=defineComponent({__name:"index",props:{hasResults:{type:Boolean},activeTabId:{}},emits:["search"],setup(e,{emit:t}){const r=t,o=e,c=ref(""),d=ref(!1),f=ref(null),b=computed(()=>c.value.trim().length>0),m=computed(()=>b.value?"close":"search"),S=async C=>{C.key==="Enter"&&r("search",c.value);const{userData:P}=await useGAEventData();useAnalyticsEvent("search",{search_term:c.value,search_category:o.activeTabId,user:P})},w=C=>{d.value=C},T=()=>{var C;b.value&&(c.value="",r("search",""),(C=f.value)==null||C.focus())},A=computed(()=>d.value?"bg-nav-main-bg-secondary":"bg-nav-main-bg-primary");return onMounted(()=>{f.value&&f.value.focus()}),(C,P)=>{const B=_sfc_main$12;return openBlock(),createElementBlock("section",_hoisted_1$R,[createBaseVNode("div",{class:normalizeClass(["relative flex transition-colors rounded",unref(A)])},[withDirectives(createBaseVNode("input",{ref_key:"searchInput",ref:f,name:"site-search","onUpdate:modelValue":P[0]||(P[0]=U=>isRef(c)?c.value=U:null),class:normalizeClass(["w-full py-4 font-bold transition-all bg-transparent outline-none text-heading-4xl font-primary text-nav-main-fg-clear placeholder:text-nav-main-fg-dim",{"px-4":unref(d)}]),type:"text",placeholder:"Search...",autocomplete:"off",onKeyup:withKeys(S,["enter"]),onFocus:P[1]||(P[1]=U=>w(!0)),onBlur:P[2]||(P[2]=U=>w(!1))},null,34),[[vModelText,unref(c)]]),createVNode(B,{class:normalizeClass(["absolute p-2 transition-all -translate-y-1/2 roun
180ded-full top-1/2 text-nav-main-fg-clear",[unref(d)?"right-4 bg-nav-main-bg-primary":"right-0 bg-nav-main-bg-secondary",unref(b)?"cursor-pointer":"pointer-events-none"]]),pack:"navigation",icon:unref(m),size:24,onClick:T},null,8,["class","icon"])],2)])}}}),_hoisted_1$Q={class:"sticky top-0 z-10 flex items-center flex-shrink-0 w-full pt-2 pb-8 bg-nav-main-bg-primary"},_hoisted_2$D={class:"hidden text-left md:block text-nav-main-fg-subtle"},_hoisted_3$w={class:"text-nav-main-fg-clear"},_hoisted_4$o={class:"absolute flex space-x-6 font-bold -translate-x-1/2 left-1/2"},_hoisted_5$j=["onClick"],_sfc_main$10=defineComponent({__name:"index",props:{tabs:{},totalResults:{}},emits:["tab-click"],setup(e,{emit:t}){const r=e,o=t,c=computed(()=>r.tabs.filter(d=>!d.hidden));return(d,f)=>(openBlock(),createElementBlock("div",_hoisted_1$Q,[createBaseVNode("p",_hoisted_2$D,[createBaseVNode("b",_hoisted_3$w,toDisplayString(e.totalResults),1),createTextVNode(" Result"+toDisplayString(r.totalResults!==1?"s":"")+" Found ",1)]),createBaseVNode("div",_hoisted_4$o,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(c),b=>(openBlock(),createElementBlock("span",{class:normalizeClass(["relative inline-block text-nav-main-fg-clear after:content-[''] after:absolute after:left-0 after:right-0 after:h-[3px] after:bg-nav-main-fg-accent after:bottom-[-3px] after:origin-left after:transition-transform after:duration-500 after:ease-in-out cursor-pointer",b.isActive?"after:scale-x-100":"after:scale-x-0 hover:after:scale-x-100"]),onClick:m=>(S=>{o("tab-click",S)})(b)},toDisplayString(b.name),11,_hoisted_5$j))),256))])]))}});async function imageMeta(e,t){return await _imageMeta(t).catch(r=>(console.error("Failed to get image meta for "+t,r+""),{width:0,height:0,ratio:0}))}async function _imageMeta(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,r)=>{const o=new Image;o.onload=()=>{const c={width:o.width,height:o.height,ratio:o.width/o.height};t(c)},o.onerror=c=>r(c),o.src=e})}function createMapper(e){return t=>t?e[t]||t:e.missingValue}function createOperationsGenerator({formatter:e,keyMap:t,joinWith:r="/",valueMap:o}={}){e||(e=(d,f)=>`${d}=${f}`),t&&typeof t!="function"&&(t=createMapper(t));const c=o||{};return Object.keys(c).forEach(d=>{typeof c[d]!="function"&&(c[d]=createMapper(c[d]))}),(d={})=>Object.entries(d).filter(([f,b])=>b!==void 0).map(([f,b])=>{const m=c[f];return typeof m=="function"&&(b=m(d[f])),f=typeof t=="function"?t(f):f,e(f,b)}).join(r)}function parseSize(e=""){return typeof e=="number"?e:typeof e=="string"&&e.replace("px","").match(/^\d+$/g)?Number.parseInt(e,10):void 0}function parseDensities(e=""){if(e===void 0||!e.length)return[];const t=new Set;for(const r of e.split(" ")){const o=Number.parseInt(r.replace("x",""));o&&t.add(o)}return Array.from(t)}function checkDensities(e){if(e.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function parseSizes(e){const t={};if(typeof e=="string")for(const r of e.split(/[\s,]+/).filter(o=>o)){const o=r.split(":");o.length!==2?t["1px"]=o[0].trim():t[o[0].trim()]=o[1].trim()}else Object.assign(t,e);return t}function createImage(e){const t={options:e},r=(c,d={})=>resolveImage(t,c,d),o=(c,d={},f={})=>r(c,{...f,modifiers:defu(d,f.modifiers||{})}).url;for(const c in e.presets)o[c]=(d,f,b)=>o(d,f,{...e.presets[c],...b});return o.options=e,o.getImage=r,o.getMeta=(c,d)=>getMeta(t,c,d),o.getSizes=(c,d)=>getSizes(t,c,d),t.$img=o,o}async function getMeta(e,t,r){const o=resolveImage(e,t,{...r});return typeof o.getMeta=="function"?await o.getMeta():await imageMeta(e,o.url)}function resolveImage(e,t,r){var S,w;if(t&&typeof t!="string")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith("data:"))return{url:t};const{provider:o,defaults:c}=getProvider(e,r.provider||e.options.provider),d=getPreset(e,r.preset);if(t=hasProtocol(t)?t:withLeadingSlash(t),!o.supportsAlias){for(const T in e.options.alias)if(t.startsWith(T)){const A=e.options.alias[T];A&&(t=joinURL(A,t.slice(T.length)))}}if(o.validateDomains&&hasProtocol(t)){const T=parseURL$1(t).host;if(!e.options.domains.find(A=>A===T))return{url:t}}const f=defu(r,d,c);f.modifiers={...f.modifiers};const b=f.modifiers.format;(S=f.modifiers)!=null&&S.width&&(f.modifiers.width=parseSize(f.modifiers.width)),(w=f.modifiers)!=null&&w.height&&(f.modifiers.height=parseSize(f.modifiers.height));const m=o.getImage(t,f,e);return m.format=m.format||b||"",m}function getProvider(e,t){const r=e.options.providers[t];if(!r)throw new Error("Unknown provider: "+t);return r}function getPreset(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function getSizes(e,t,r){var P,B,U,D,$;
180const o=parseSize((P=r.modifiers)==null?void 0:P.width),c=parseSize((B=r.modifiers)==null?void 0:B.height),d=parseSizes(r.sizes),f=(U=r.densities)!=null&&U.trim()?parseDensities(r.densities.trim()):e.options.densities;checkDensities(f);const b=o&&c?c/o:0,m=[],S=[];if(Object.keys(d).length>=1){for(const z in d){const V=getSizesVariant(z,String(d[z]),c,b,e);if(V!==void 0){m.push({size:V.size,screenMaxWidth:V.screenMaxWidth,media:`(max-width: ${V.screenMaxWidth}px)`});for(const F of f)S.push({width:V._cWidth*F,src:getVariantSrc(e,t,r,V,F)})}}finaliseSizeVariants(m)}else for(const z of f){const V=Object.keys(d)[0];let F=V?getSizesVariant(V,String(d[V]),c,b,e):void 0;F===void 0&&(F={size:"",screenMaxWidth:0,_cWidth:(D=r.modifiers)==null?void 0:D.width,_cHeight:($=r.modifiers)==null?void 0:$.height}),S.push({width:z,src:getVariantSrc(e,t,r,F,z)})}finaliseSrcsetVariants(S);const w=S[S.length-1],T=m.length?m.map(z=>`${z.media?z.media+" ":""}${z.size}`).join(", "):void 0,A=T?"w":"x",C=S.map(z=>`${z.src} ${z.width}${A}`).join(", ");return{sizes:T,srcset:C,src:w==null?void 0:w.src}}function getSizesVariant(e,t,r,o,c){const d=c.options.screens&&c.options.screens[e]||Number.parseInt(e),f=t.endsWith("vw");if(!f&&/^\d+$/.test(t)&&(t+="px"),!f&&!t.endsWith("px"))return;let b=Number.parseInt(t);if(!(!d||!b))return f&&(b=Math.round(b/100*d)),{size:t,screenMaxWidth:d,_cWidth:b,_cHeight:o?Math.round(b*o):r}}function getVariantSrc(e,t,r,o,c){return e.$img(t,{...r.modifiers,width:o._cWidth?o._cWidth*c:void 0,height:o._cHeight?o._cHeight*c:void 0},r)}function finaliseSizeVariants(e){var r;e.sort((o,c)=>o.screenMaxWidth-c.screenMaxWidth);let t=null;for(let o=e.length-1;o>=0;o--){const c=e[o];c.media===t&&e.splice(o,1),t=c.media}for(let o=0;o<e.length;o++)e[o].media=((r=e[o+1])==null?void 0:r.media)||""}function finaliseSrcsetVariants(e){e.sort((r,o)=>r.width-o.width);let t=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.width===t&&e.splice(r,1),t=o.width}}const operationsGenerator=createOperationsGenerator({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:"&",formatter:(e,t)=>encodeParam$1(e)+"_"+encodeParam$1(t)}),validateDomains=!0,supportsAlias=!0,getImage=(e,{modifiers:t={},baseURL:r}={},o)=>{t.width&&t.height&&(t.resize=`${t.width}x${t.height}`,delete t.width,delete t.height);const c=operationsGenerator(t)||"_";return r||(r=joinURL(o.options.nuxt.baseURL,"/_ipx")),{url:joinURL(r,c,encodePath$1(e).replace(/\/{2,}/g,"/"))}},ipxStaticRuntime$mQdW8jIQpbYHmjoNWhbx2bFOYytwvYdESvBCdzwmJhY=Object.freeze(Object.defineProperty({__proto__:null,getImage,supportsAlias,validateDomains},Symbol.toStringTag,{value:"Module"})),imageOptions={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"ipxStatic",domains:[],alias:{},densities:[1,2],format:["webp","jpeg","jpg","png","gif","avif","webp"],providers:{ipxStatic:{provider:ipxStaticRuntime$mQdW8jIQpbYHmjoNWhbx2bFOYytwvYdESvBCdzwmJhY,defaults:{}}}},useImage=e=>{var o;const t=useRuntimeConfig(),r=useNuxtApp();return r.$img||r._img||(r._img=createImage({...imageOptions,event:(o=r.ssrContext)==null?void 0:o.event,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};function markFeatureUsage(e){var t;(t=performance==null?void 0:performance.mark)==null||t.call(performance,"mark_feature_usage",{detail:{feature:e}})}const baseImageProps={src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[Number,String],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:String,required:!1},sizes:{type:[Object,String],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},alt:{type:String,required:!1},referrerpolicy:{type:String,required:!1},usemap:{type:String,required:!1},longdesc:{type:String,required:!1},ismap:{type:Boolean,required:!1},loading:{type:String,required:!1,validator:e=>["lazy","eager"].includes(e)},crossorigin:{type:[Boolean,String],required:!1,validator:e=>["anonymous","use-credentials","",!0,!1].includes(e)},decoding:{type:String,required:!1,validator:e=>["async","auto","sync"].includes(e)},nonce:{type:[String],required:!1}},useBaseImage=e=>{const t=computed(()=>({provider:e.provider,preset:e.preset})),r=computed(()=>({width:parseSize(e.width),height:parseSize(e.height),alt:e.alt,referrerpolicy:e.referrerpolicy,usemap:e.usemap,longdesc:e.longdesc,ismap:e.ismap,crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,loading:e.loading,decoding:e.decoding,nonce:e.nonce})),o=useImage();return{options:t,attrs:r,modifiers:computed(()=>({...e.modifiers,width:parseSize(e.width),height:parseSize(e.height),format:e.format,quality:e.quality||o.options.quality,background:e.background,fit:e.fit}))}},imgProps={...baseImageProps,placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},custom:{type:Boolean,required:!1}},_hoisted_1$P=["src"],_sfc_main$$=defineComponent({__name:"NuxtImg",props:imgProps,emits:["load","error"],setup(e,{emit:t}){const r=e,o=useAttrs(),c=t,d=!1,f=useImage(),b=useBaseImage(r),m=ref(!1),S=ref(),w=computed(()=>f.getSizes(r.src,{...b.options.value,sizes:r.sizes,densities:r.densities,modifiers:{...b.modifiers.value,width:parseSize(r.width),height:parseSize(r.height)}})),T=computed(()=>{const U={...b.attrs.value,"data-nuxt-img":""};return r.placeholder&&!m.value||(U.sizes=w.value.sizes,U.srcset=w.value.srcset),U}),A=computed(()=>{let U=r.placeholder;if(U===""&&(U=!0),!U||m.value)return!1;if(typeof U=="string")return U;const D=Array.isArray(U)?U:typeof U=="number"?[U,U]:[10,10];return f(r.src,{...b.modifiers.value,width:D[0],height:D[1],quality:D[2]||50,blur:D[3]||3},b.options.value)}
180),C=computed(()=>r.sizes?w.value.src:f(r.src,b.modifiers.value,b.options.value)),P=computed(()=>A.value?A.value:C.value),B=useNuxtApp().isHydrating;return onMounted(()=>{if(A.value||r.custom){const U=new Image;return C.value&&(U.src=C.value),r.sizes&&(U.sizes=w.value.sizes||"",U.srcset=w.value.srcset),U.onload=D=>{m.value=!0,c("load",D)},U.onerror=D=>{c("error",D)},void markFeatureUsage("nuxt-image")}S.value&&(S.value.complete&&B&&(S.value.getAttribute("data-error")?c("error",new Event("error")):c("load",new Event("load"))),S.value.onload=U=>{c("load",U)},S.value.onerror=U=>{c("error",U)})}),(U,D)=>U.custom?renderSlot(U.$slots,"default",normalizeProps$1(mergeProps({key:1},{...unref(d)?{onerror:"this.setAttribute('data-error', 1)"}:{},imgAttrs:{...T.value,...unref(o)},isLoaded:m.value,src:P.value}))):(openBlock(),createElementBlock("img",mergeProps({key:0,ref_key:"imgEl",ref:S,class:A.value&&!m.value?U.placeholderClass:void 0},{...unref(d)?{onerror:"this.setAttribute('data-error', 1)"}:{},...T.value,...unref(o)},{src:P.value}),null,16,_hoisted_1$P))}}),useGCImage=(e,t,r,o,c)=>{var f;const d=useRuntimeConfig();return o?`https://images.gc.${c||((f=d==null?void 0:d.public)==null?void 0:f.servicesURL)}/${e?"fit-in/":""}${t}x${r}/${o}`:""},_sfc_main$_=defineComponent({name:"GamechangerImage",__name:"index",props:{imageKey:{},sizes:{},baseWidth:{},baseHeight:{},alt:{},mobile:{},mobileImageKey:{},fit:{},position:{},disableLazy:{type:Boolean},debug:{type:Boolean},disableRetina:{type:Boolean},imageOrigins:{},autoWidth:{type:Boolean}},setup(e){var H;const t=e,r=t.sizes,o=ref(),c=ref(r.sort((X,J)=>X-J)[0]),d=ref(!1),f=ref(!0),{isMobile:b,isDesktop:m}=useViewport(),S=()=>{f.value=!1},w=useTemplateRef("parent"),T=ref(""),A=()=>{var pe,ye,de,_e,Re;if(!w.value)return;const X=w.value.querySelector("img"),J=(X==null?void 0:X.getBoundingClientRect().width)??0,G=(X==null?void 0:X.getBoundingClientRect().height)??0,Q=J>G?J:G;if(Q&&Q>0){let ge=!1;r.sort((Ce,Me)=>Me-Ce).forEach(Ce=>{Q<Ce&&(c.value=Ce,ge=!0)}),ge||(c.value=r[0]<Q?r[0]:r[r.length-1]),t.debug&&console.log(c.value,ge,t.imageKey)}w.value&&t.imageOrigins&&(b.value&&((pe=t.imageOrigins)!=null&&pe.smallOrigin)?T.value=`object-${(ye=t.imageOrigins)==null?void 0:ye.smallOrigin}`:m.value&&((de=t.imageOrigins)!=null&&de.largeOrigin)?T.value=`object-${(_e=t.imageOrigins)==null?void 0:_e.largeOrigin}`:T.value=`object-${(Re=t.imageOrigins)==null?void 0:Re.defaultOrigin}`)},C=ref(`${(H=o.value)==null?void 0:H.path}${t.imageKey}${c.value}`);let P;const B=computed(()=>{var X,J;return(X=t.imageKey)!=null&&X.includes(".gif")||t.imageKey.includes("http")?t.imageKey:`${(J=t.imageKey)==null?void 0:J.split(".")[0]}.webp`});window==null||window.addEventListener("resize",()=>{clearTimeout(P),P=setTimeout(()=>{A()},100)});const U=computed(()=>(window==null?void 0:window.devicePixelRatio)<=1?D.value:t.imageKey.includes("http")?t.imageKey:useGCImage(!0,c.value*(t.disableRetina?1:2),Math.ceil(c.value/t.baseWidth*t.baseHeight)*(t.disableRetina?1:2),b.value&&t.mobileImageKey!==void 0&&t.mobileImageKey.length>0?t.mobileImageKey:t.imageKey)),D=computed(()=>{var X;return(X=t.imageKey)!=null&&X.includes("http")?t.imageKey:useGCImage(!0,c.value,Math.ceil(c.value/t.baseWidth*t.baseHeight),b.value&&t.mobileImageKey!==void 0&&t.mobileImageKey.length>0?t.mobileImageKey:t.imageKey)}),$=computed(()=>{var X;return(X=B.value)!=null&&X.includes("http")?B.value:useGCImage(!0,c.value,Math.ceil(c.value/t.baseWidth*t.baseHeight),b.value&&t.mobileImageKey!==void 0&&t.mobileImageKey.length>0?t.mobileImageKey:B.value)}),z=computed(()=>(window==null?void 0:window.devicePixelRatio)<=1?$.value:B.value.includes("http")?B.value:useGCImage(!0,c.value*(t.disableRetina?1:2),Math.ceil(c.value/t.baseWidth*t.baseHeight)*(t.disableRetina?1:2),b.value&&t.mobileImageKey!==void 0&&t.mobileImageKey.length>0?t.mobileImageKey:B.value)),V={top:"object-top",bottom:"object-bottom",left:"object-left",right:"object-right",center:"object-center","left-top":"object-left-top","right-top":"object-right-top","left-bottom":"object-left-bottom","right-bottom":"object-right-bottom"},F=computed(()=>t.position?V[t.position]??"object-center":""),ee=()=>{var X;C.value=`${(X=o.value)==null?void 0:X.path}${t.imageKey}${c.value}${window.loadTime}`},te=()=>{f.value=!0,ee(),nextTick$1(()=>{A()})},K=()=>{te()};return watch(()=>t.imageKey,te),onMounted(()=>{ee(),nextTick$1(()=>{A()}),window.addEventListener("loadTimeUpdateEvent",K)}),onBeforeUnmount(()=>{window.removeEventListener("loadTimeUpdateEvent",K)}),(X,J)=>{const G=_sfc_main$$;return e.imageKey?(openBlock(),createElementBlock("div",{key:0,ref_key:"parent",ref:w,class:"gc-image"},[createBaseVNode("picture",null,[(openBlock(),createBlock(G,{key:unref(C),class:normalizeClass(["relative h-full",[unref(T),e.fit==="contain"?"object-contain":"object-cover",{hidden:unref(d)},unref(F),t.autoWidth?"w-auto":"w-full"]]),loading:e.disableLazy!==!0?"lazy":void 0,fit:e.fit,alt:e.alt??void 0,srcset:unref(f)?unref(z):unref(U),height:2*Math.ceil(unref(c)/e.baseWidth*e.baseHeight),width:2*unref(c),onError:S},null,8,["class","loading","fit","alt","srcset","height","width"]))])],512)):createCommentVNode("",!0)}}});
180class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(t){super(`Invalid unit ${t}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n="numeric",s="short",l$1="long",DATE_SHORT={year:n,month:n,day:n},DATE_MED={year:n,month:s,day:n},DATE_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s},DATE_FULL={year:n,month:l$1,day:n},DATE_HUGE={year:n,month:l$1,day:n,weekday:l$1},TIME_SIMPLE={hour:n,minute:n},TIME_WITH_SECONDS={hour:n,minute:n,second:n},TIME_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,timeZoneName:s},TIME_WITH_LONG_OFFSET={hour:n,minute:n,second:n,timeZoneName:l$1},TIME_24_SIMPLE={hour:n,minute:n,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n,minute:n,second:n,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:s},TIME_24_WITH_LONG_OFFSET={hour:n,minute:n,second:n,hourCycle:"h23",timeZoneName:l$1},DATETIME_SHORT={year:n,month:n,day:n,hour:n,minute:n},DATETIME_SHORT_WITH_SECONDS={year:n,month:n,day:n,hour:n,minute:n,second:n},DATETIME_MED={year:n,month:s,day:n,hour:n,minute:n},DATETIME_MED_WITH_SECONDS={year:n,month:s,day:n,hour:n,minute:n,second:n},DATETIME_MED_WITH_WEEKDAY={year:n,month:s,day:n,weekday:s,hour:n,minute:n},DATETIME_FULL={year:n,month:l$1,day:n,hour:n,minute:n,timeZoneName:s},DATETIME_FULL_WITH_SECONDS={year:n,month:l$1,day:n,hour:n,minute:n,second:n,timeZoneName:s},DATETIME_HUGE={year:n,month:l$1,day:n,weekday:l$1,hour:n,minute:n,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS={year:n,month:l$1,day:n,weekday:l$1,hour:n,minute:n,second:n,timeZoneName:l$1};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(t,r){throw new ZoneIsAbstractError}formatOffset(t,r){throw new ZoneIsAbstractError}offset(t){throw new ZoneIsAbstractError}equals(t){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:o}){return parseZoneInfo(t,r,o)}formatOffset(t,r){return formatOffset(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const dtfCache=new Map;function makeDTF(e){let t=dtfCache.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),dtfCache.set(e,t)),t}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,c,d,f,b,m,S,w]=o;return[f,c,d,b,m,S,w]}function partsOffset(e,t){const r=e.formatToParts(t),o=[];for(let c=0;c<r.length;c++){const{type:d,value:f}=r[c],b=typeToPos[d];d==="era"?o[b]=f:isUndefined$1(b)||(o[b]=parseInt(f,10))}return o}const ianaZoneCache=new Map;class IANAZone extends Zone{static create(t){let r=ianaZoneCache.get(t);return r===void 0&&ianaZoneCache.set(t,r=new IANAZone(t)),r}static resetCache(){ianaZoneCache.clear(),dtfCache.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=IANAZone.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:o}){return parseZoneInfo(t,r,o,this.name)}formatOffset(t,r){return formatOffset(this.offset(t),r)}offset(t){if(!this.valid)return NaN;const r=new Date(t);if(isNaN(r))return NaN;const o=makeDTF(this.name);let[c,d,f,b,m,S,w]=o.formatToParts?partsOffset(o,r):hackyOffset(o,r);b==="BC"&&(c=1-Math.abs(c));let T=+r;const A=T%1e3;return T-=A>=0?A:1e3+A,(objToLocalTS({year:c,month:d,day:f,hour:m===24?0:m,minute:S,second:w,millisecond:0})-T)/6e4}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let o=intlLFCache[r];return o||(o=new Intl.ListFormat(e,t),intlLFCache[r]=o),o}
180const intlDTCache=new Map;function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let o=intlDTCache.get(r);return o===void 0&&(o=new Intl.DateTimeFormat(e,t),intlDTCache.set(r,o)),o}const intlNumCache=new Map;function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let o=intlNumCache.get(r);return o===void 0&&(o=new Intl.NumberFormat(e,t),intlNumCache.set(r,o)),o}const intlRelCache=new Map;function getCachedRTF(e,t={}){const{base:r,...o}=t,c=JSON.stringify([e,o]);let d=intlRelCache.get(c);return d===void 0&&(d=new Intl.RelativeTimeFormat(e,t),intlRelCache.set(c,d)),d}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}const intlResolvedOptionsCache=new Map;function getCachedIntResolvedOptions(e){let t=intlResolvedOptionsCache.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),intlResolvedOptionsCache.set(e,t)),t}const weekInfoCache=new Map;function getCachedWeekInfo(e){let t=weekInfoCache.get(e);if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in t||(t={...fallbackWeekSettings,...t}),weekInfoCache.set(e,t)}return t}function parseLocaleString(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(r===-1)return[e];{let o,c;try{o=getCachedDTF(e).resolvedOptions(),c=e}catch{const m=e.substring(0,r);o=getCachedDTF(m).resolvedOptions(),c=m}const{numberingSystem:d,calendar:f}=o;return[c,d,f]}}function intlConfigString(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const o=DateTime.utc(2009,r,1);t.push(e(o))}return t}function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const o=DateTime.utc(2016,11,13+r);t.push(e(o))}return t}function listStuff(e,t,r,o){const c=e.listingMode();return c==="error"?null:c==="en"?r(t):o(t)}function supportsFastNumbers(e){return(!e.numberingSystem||e.numberingSystem==="latn")&&(e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||getCachedIntResolvedOptions(e.locale).numberingSystem==="latn")}class PolyNumberFormatter{constructor(t,r,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:c,floor:d,...f}=o;if(!r||Object.keys(f).length>0){const b={useGrouping:!1,...o};o.padTo>0&&(b.minimumIntegerDigits=o.padTo),this.inf=getCachedINF(t,b)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}return padStart(this.floor?Math.floor(t):roundTo(t,3),this.padTo)}}class PolyDateFormatter{constructor(t,r,o){let c;if(this.opts=o,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const f=t.offset/60*-1,b=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;t.offset!==0&&IANAZone.create(b).valid?(c=b,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const d={...this.opts};d.timeZone=d.timeZone||c,this.dtf=getCachedDTF(r,d)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:o}}return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(t,r,o){this.opts={style:"long",...o},!r&&hasRelative()&&(this.rtf=getCachedRTF(t,o))}format(t,r){return this.rtf?this.rtf.format(t,r):formatRelativeTime(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}const fallbackWeekSettings={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(t){return Locale.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,o,c,d=!1){const f=t||Settings.defaultLocale,b=f||(d?"en-US":systemLocale()),m=r||Settings.defaultNumberingSystem,S=o||Settings.defaultOutputCalendar,w=vali
180dateWeekSettings(c)||Settings.defaultWeekSettings;return new Locale(b,m,S,w,f)}static resetCache(){sysLocaleCache=null,intlDTCache.clear(),intlNumCache.clear(),intlRelCache.clear(),intlResolvedOptionsCache.clear(),weekInfoCache.clear()}static fromObject({locale:t,numberingSystem:r,outputCalendar:o,weekSettings:c}={}){return Locale.create(t,r,o,c)}constructor(t,r,o,c,d){const[f,b,m]=parseLocaleString(t);this.locale=f,this.numberingSystem=r||b||null,this.outputCalendar=o||m||null,this.weekSettings=c,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=d,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=!(this.numberingSystem!==null&&this.numberingSystem!=="latn"||this.outputCalendar!==null&&this.outputCalendar!=="gregory");return t&&r?"en":"intl"}clone(t){return t&&Object.getOwnPropertyNames(t).length!==0?Locale.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,validateWeekSettings(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return listStuff(this,t,months,()=>{const o=this.intl==="ja"||this.intl.startsWith("ja-"),c=(r&=!o)?{month:t,day:"numeric"}:{month:t},d=r?"format":"standalone";if(!this.monthsCache[d][t]){const f=o?b=>this.dtFormatter(b,c).format():b=>this.extract(b,c,"month");this.monthsCache[d][t]=mapMonths(f)}return this.monthsCache[d][t]})}weekdays(t,r=!1){return listStuff(this,t,weekdays,()=>{const o=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=r?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=mapWeekdays(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return listStuff(this,t,eras,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(o=>this.extract(o,r,"era"))),this.eraCache[t]})}extract(t,r,o){const c=this.dtFormatter(t,r).formatToParts().find(d=>d.type.toLowerCase()===o);return c?c.value:null}numberFormatter(t={}){return new PolyNumberFormatter(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new PolyDateFormatter(t,this.intl,r)}relFormatter(t={}){return new PolyRelFormatter(this.intl,this.isEnglish(),t)}listFormatter(t={}){return getCachedLF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||getCachedIntResolvedOptions(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?getCachedWeekInfo(this.locale):fallbackWeekSettings}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(t){return t===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new FixedOffsetZone(signedOffset(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}
180get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return formatOffset(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function normalizeZone(e,t){if(isUndefined$1(e)||e===null)return t;if(e instanceof Zone)return e;if(isString$1(e)){const r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?SystemZone.instance:r==="utc"||r==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}return isNumber$2(e)?FixedOffsetZone.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new InvalidZone(e)}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(e[r].search(numberingSystems.hanidec)!==-1)t+=hanidecChars.indexOf(e[r]);else for(const c in numberingSystemsUTF16){const[d,f]=numberingSystemsUTF16[c];o>=d&&o<=f&&(t+=o-d)}}return parseInt(t,10)}return t}const digitRegexCache=new Map;function resetDigitRegexCache(){digitRegexCache.clear()}function digitRegex({numberingSystem:e},t=""){const r=e||"latn";let o=digitRegexCache.get(r);o===void 0&&(o=new Map,digitRegexCache.set(r,o));let c=o.get(t);return c===void 0&&(c=new RegExp(`${numberingSystems[r]}${t}`),o.set(t,c)),c}let now$1=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid,defaultWeekSettings=null;class Settings{static get now(){return now$1}static set now(t){now$1=t}static set defaultZone(t){defaultZone=t}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(t){defaultLocale=t}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(t){defaultNumberingSystem=t}
180static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(t){defaultOutputCalendar=t}static get defaultWeekSettings(){return defaultWeekSettings}static set defaultWeekSettings(t){defaultWeekSettings=validateWeekSettings(t)}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(t){twoDigitCutoffYear=t%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(t){throwOnInvalid=t}static resetCaches(){Locale.resetCache(),IANAZone.resetCache(),DateTime.resetCache(),resetDigitRegexCache()}}class Invalid{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const o=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const c=o.getUTCDay();return c===0?7:c}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?leapLadder:nonLeapLadder)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?leapLadder:nonLeapLadder,o=r.findIndex(c=>c<t);return{month:o+1,day:t-r[o]}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,r=1){const{year:o,month:c,day:d}=e,f=computeOrdinal(o,c,d),b=isoWeekdayToLocal(dayOfWeek(o,c,d),r);let m,S=Math.floor((f-b+14-t)/7);return S<1?(m=o-1,S=weeksInWeekYear(m,t,r)):S>weeksInWeekYear(o,t,r)?(m=o+1,S=1):m=o,{weekYear:m,weekNumber:S,weekday:b,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:o,weekNumber:c,weekday:d}=e,f=isoWeekdayToLocal(dayOfWeek(o,1,t),r),b=daysInYear(o);let m,S=7*c+d-f-7+t;S<1?(m=o-1,S+=daysInYear(m)):S>b?(m=o+1,S-=daysInYear(o)):m=o;const{month:w,day:T}=uncomputeOrdinal(m,S);return{year:m,month:w,day:T,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:o}=e;return{year:t,ordinal:computeOrdinal(t,r,o),...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e,{month:o,day:c}=uncomputeOrdinal(t,r);return{year:t,month:o,day:c,...timeObject(e)}}function usesLocalWeekValues(e,t){if(!isUndefined$1(e.localWeekday)||!isUndefined$1(e.localWeekNumber)||!isUndefined$1(e.localWeekYear)){if(!isUndefined$1(e.weekday)||!isUndefined$1(e.weekNumber)||!isUndefined$1(e.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined$1(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined$1(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined$1(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidWeekData(e,t=4,r=1){const o=isInteger$1(e.weekYear),c=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),d=integerBetween(e.weekday,1,7);return o?c?!d&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.weekNumber):unitOutOfRange("weekYear",e.weekYear)}function hasInvalidOrdinalData(e){const t=isInteger$1(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!r&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}function hasInvalidGregorianData(e){const t=isInteger$1(e.year),r=integerBetween(e.month,1,12),o=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?r?!o&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){const{hour:t,minute:r,second:o,millisecond:c}=e,d=integerBetween(t,0,23)||t===24&&r===0&&o===0&&c===0,f=integerBetween(r,0,59),b=integerBetween(o,0,59),m=integerBetween(c,0,999);return d?f?b?!m&&unitOutOfRange("millisecond",c):unitOutOfRange("second",o):unitOutOfRange("minute",r):unitOutOfRange("hour",t)}function isUndefined$1(e){return e===void 0}function isNumber$2(e){return typeof e=="number"}function isInteger$1(e){return typeof e=="number"&&e%1==0}function isString$1(e){return typeof e=="string"}function isDate(e){return Object.prototype.toString.call(e)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hasLocaleWeekInfo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function maybeArray(e){return Array.isArray(e)?e:[e]}function bestBy(e,t,r){if(e.length!==0)return e.reduce((o,c)=>{const d=[t(c),c];return o&&r(o[0],d[0])===o[0]?o:d},null)[1]}function pick(e,t){return t.reduce((r,o)=>(r[o]=e[o],r),{})}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(e==null)return null;if(typeof e!="object")throw new InvalidArgumentError("Week settings must be an object");
180if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!integerBetween(t,1,7)))throw new InvalidArgumentError("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function integerBetween(e,t,r){return isInteger$1(e)&&e>=t&&e<=r}function floorMod(e,t){return e-t*Math.floor(e/t)}function padStart(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function parseInteger(e){return isUndefined$1(e)||e===null||e===""?void 0:parseInt(e,10)}function parseFloating(e){return isUndefined$1(e)||e===null||e===""?void 0:parseFloat(e)}function parseMillis(e){if(!isUndefined$1(e)&&e!==null&&e!==""){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function roundTo(e,t,r="round"){const o=10**t;switch(r){case"expand":return e>0?Math.ceil(e*o)/o:Math.floor(e*o)/o;case"trunc":return Math.trunc(e*o)/o;case"round":return Math.round(e*o)/o;case"floor":return Math.floor(e*o)/o;case"ceil":return Math.ceil(e*o)/o;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=floorMod(t-1,12)+1;return r===2?isLeapYear(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function firstWeekOffset(e,t,r){return-isoWeekdayToLocal(dayOfWeek(e,1,t),r)+t-1}function weeksInWeekYear(e,t=4,r=1){const o=firstWeekOffset(e,t,r),c=firstWeekOffset(e+1,t,r);return(daysInYear(e)-o+c)/7}function untruncateYear(e){return e>99?e:e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,o=null){const c=new Date(e),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const f={timeZoneName:t,...d},b=new Intl.DateTimeFormat(r,f).formatToParts(c).find(m=>m.type.toLowerCase()==="timezonename");return b?b.value:null}function signedOffset(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const o=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-o:o)}function asNumber(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const o in e)if(hasOwnProperty(e,o)){const c=e[o];if(c==null)continue;r[t(o)]=asNumber(c)}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),o=Math.trunc(Math.abs(e%60)),c=e>=0?"+":"-";switch(t){case"short":return`${c}${padStart(r,2)}:${padStart(o,2)}`;case"narrow":return`${c}${r}${o>0?`:${o}`:""}`;case"techie":return`${c}${padStart(r,2)}${padStart(o,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return pick(e,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(e){switch(e){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(e){return meridiems[e.hour<12?0:1]}function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}function monthForDateTime(e,t){return months(t)[e.month-1]}function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}function formatRelativeTime(e,t,r="always",o=!1){const c={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&d){const T=e==="days";switch(t){case 1:return T?"tomorrow":`next ${c[e][0]}`;case-1:return T?"yesterday":`last ${c[e][0]}`;case 0:return T?"today":`this ${c[e][0]}`}}const f=Object.is(t,-0)||t<0,b=Math.abs(t),m=b===1,S=c[e],w=o?m?S[1]:S[2]||S[1]:m?c[e][0]:e;return f?`${b} ${w} ago`:`in ${b} ${w}`}function stringifyTokens(e,t){let r="";for(const o of e)o.literal?r+=o.val:r+=t(o.val);return r}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};class Formatter{static create(t,r={}){return new Formatter(t,r)}static parseFormat(t){let r=null,o="",c=!1;const d=[];for(let f=0;f<t.length;f++){const b=t.charAt(f);b==="'"?((o.length>0||c)&&d.push({literal:c||/^\s+$/.test(o),val:o===""?"'":o}),r=null,o="",c=!c):c||b===r?o+=b:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=b,r=b)}return o.length>0&&d.push({literal:c||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(t){return macroTokenToFormatOpts[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem(
180)),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0,o=void 0){if(this.opts.forceSimple)return padStart(t,r);const c={...this.opts};return r>0&&(c.padTo=r),o&&(c.signDisplay=o),this.loc.numberFormatter(c).format(t)}formatDateTimeFromString(t,r){const o=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(T,A)=>this.loc.extract(t,T,A),f=T=>t.isOffsetFixed&&t.offset===0&&T.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,T.format):"",b=(T,A)=>o?monthForDateTime(t,T):d(A?{month:T}:{month:T,day:"numeric"},"month"),m=(T,A)=>o?weekdayForDateTime(t,T):d(A?{weekday:T}:{weekday:T,month:"long",day:"numeric"},"weekday"),S=T=>{const A=Formatter.macroTokenToFormatOpts(T);return A?this.formatWithSystemDefault(t,A):T},w=T=>o?eraForDateTime(t,T):d({era:T},"era");return stringifyTokens(Formatter.parseFormat(r),T=>{switch(T){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return o?meridiemForDateTime(t):d({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return c?d({day:"numeric"},"day"):this.num(t.day);case"dd":return c?d({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return m("short",!0);case"cccc":return m("long",!0);case"ccccc":return m("narrow",!0);case"EEE":return m("short",!1);case"EEEE":return m("long",!1);case"EEEEE":return m("narrow",!1);case"L":return c?d({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?d({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return b("short",!0);case"LLLL":return b("long",!0);case"LLLLL":return b("narrow",!0);case"M":return c?d({month:"numeric"},"month"):this.num(t.month);case"MM":return c?d({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return b("short",!1);case"MMMM":return b("long",!1);case"MMMMM":return b("narrow",!1);case"y":return c?d({year:"numeric"},"year"):this.num(t.year);case"yy":return c?d({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?d({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?d({year:"numeric"},"year"):this.num(t.year,6);case"G":return w("short");case"GG":return w("long");case"GGGGG":return w("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return S(T)}})}formatDurationFromString(t,r){const o=this.opts.signMode==="negativeLargestOnly"?-1:1,c=m=>{switch(m[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";
180case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},d=Formatter.parseFormat(r),f=d.reduce((m,{literal:S,val:w})=>S?m:m.concat(w),[]),b=t.shiftTo(...f.map(c).filter(m=>m));return stringifyTokens(d,((m,S)=>w=>{const T=c(w);if(T){const A=S.isNegativeDuration&&T!==S.largestUnit?o:1;let C;return C=this.opts.signMode==="negativeLargestOnly"&&T!==S.largestUnit?"never":this.opts.signMode==="all"?"always":"auto",this.num(m.get(T)*A,w.length,C)}return w})(b,{isNegativeDuration:b<0,largestUnit:Object.keys(b.values)[0]}))}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce((r,o)=>r+o.source,"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce(([r,o,c],d)=>{const[f,b,m]=d(t,c);return[{...r,...f},b||o,m]},[{},null,1]).slice(0,2)}function parse(e,...t){if(e==null)return[null,null];for(const[r,o]of t){const c=r.exec(e);if(c)return o(c)}return[null,null]}function simpleParse(...e){return(t,r)=>{const o={};let c;for(c=0;c<e.length;c++)o[e[c]]=parseInteger(t[r+c]);return[o,null,r+c]}}const offsetRegex=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:[Tt]${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int$1(e,t,r){const o=e[t];return isUndefined$1(o)?r:parseInteger(o)}function extractISOYmd(e,t){return[{year:int$1(e,t),month:int$1(e,t+1,1),day:int$1(e,t+2,1)},null,t+3]}function extractISOTime(e,t){return[{hours:int$1(e,t,0),minutes:int$1(e,t+1,0),seconds:int$1(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){const r=!e[t]&&!e[t+1],o=signedOffset(e[t+1],e[t+2]);return[{},r?null:FixedOffsetZone.instance(o),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){const[t,r,o,c,d,f,b,m,S]=e,w=t[0]==="-",T=m&&m[0]==="-",A=(C,P=!1)=>C!==void 0&&(P||C&&w)?-C:C;return[{years:A(parseFloating(r)),months:A(parseFloating(o)),weeks:A(parseFloating(c)),days:A(parseFloating(d)),hours:A(parseFloating(f)),minutes:A(parseFloating(b)),seconds:A(parseFloating(m),m==="-0"),milliseconds:A(parseMillis(S),T)}]}const obsOffsets={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,r,o,c,d,f){const b={year:t.length===2?untruncateYear(parseInteger(t)):parseInteger(t),month:monthsShort.indexOf(r)+1,day:parseInteger(o),hour:parseInteger(c),minute:parseInteger(d)};return f&&(b.second=parseInteger(f)),e&&(b.weekday=e.length>3?weekdaysLong.indexOf(e)+1:weekdaysShort.indexOf(e)+1),b}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,o,c,d,f,b,m,S,w,T]=e,A=fromStrings(t,c,o,r,d,f,b);let C;return C=m?obsOffsets[m]:S?0:signedOffset(w,T),[A,new FixedOffsetZone(C)]}function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Frid
180ay|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,o,c,d,f,b]=e;return[fromStrings(t,c,o,r,d,f,b),FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,o,c,d,f,b]=e;return[fromStrings(t,b,r,o,c,d,f),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(e){return parse(e,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(e){return parse(preprocessRFC2822(e),[rfc2822,extractRFC2822])}function parseHTTPDate(e){return parse(e,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(e){return parse(e,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(e){return parse(e,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(e){return parse(e,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...lowOrderMatrix},daysInYearAccurate=365.2425,daysInMonthAccurate=30.436875,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:24*daysInYearAccurate,minutes:24*daysInYearAccurate*60,seconds:24*daysInYearAccurate*60*60,milliseconds:24*daysInYearAccurate*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:24*daysInYearAccurate/4,minutes:24*daysInYearAccurate*60/4,seconds:24*daysInYearAccurate*60*60/4,milliseconds:24*daysInYearAccurate*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:24*daysInMonthAccurate,minutes:24*daysInMonthAccurate*60,seconds:24*daysInMonthAccurate*60*60,milliseconds:24*daysInMonthAccurate*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(e,t,r=!1){const o={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(o)}function durationToMillis(e,t){let r=t.milliseconds??0;for(const o of reverseUnits.slice(1))t[o]&&(r+=t[o]*e[o].milliseconds);return r}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;orderedUnits$1.reduceRight((o,c)=>{if(isUndefined$1(t[c]))return o;if(o){const d=t[o]*r,f=e[c][o],b=Math.floor(d/f);t[c]+=b*r,t[o]-=b*f*r}return c},null),orderedUnits$1.reduce((o,c)=>{if(isUndefined$1(t[c]))return o;if(o){const d=t[o]%1;t[o]-=d,t[c]+=d*e[o][c]}return c},null)}function removeZeroes(e){const t={};for(const[r,o]of Object.entries(e))o!==0&&(t[r]=o);return t}class Duration{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;let o=r?accurateMatrix:casualMatrix;t.matrix&&(o=t.matrix),this.values=t.values,this.loc=t.loc||Locale.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invali
180d||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(t,r){return Duration.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(t===null?"null":typeof t));return new Duration({values:normalizeObject(t,Duration.normalizeUnit),loc:Locale.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(isNumber$2(t))return Duration.fromMillis(t);if(Duration.isDuration(t))return t;if(typeof t=="object")return Duration.fromObject(t);throw new InvalidArgumentError(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[o]=parseISODuration(t);return o?Duration.fromObject(o,r):Duration.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[o]=parseISOTimeOnly(t);return o?Duration.fromObject(o,r):Duration.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invali
180d(t,r=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const o=t instanceof Invalid?t:new Invalid(t,r);if(Settings.throwOnInvalid)throw new InvalidDurationError(o);return new Duration({invalid:o})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new InvalidUnitError(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const o={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?Formatter.create(this.loc,o).formatDurationFromString(this,t):INVALID$2}toHuman(t={}){if(!this.isValid)return INVALID$2;const r=t.showZeros!==!1,o=orderedUnits$1.map(c=>{const d=this.values[c];return isUndefined$1(d)||d===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:c.slice(0,-1)}).format(d)}).filter(c=>c);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(o)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),this.months===0&&this.quarters===0||(t+=this.months+3*this.quarters+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),this.hours===0&&this.minutes===0&&this.seconds===0&&this.milliseconds===0||(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),this.seconds===0&&this.milliseconds===0||(t+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},DateTime.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=Duration.fromDurationLike(t),o={};for(const c of orderedUnits$1)(hasOwnProperty(r.values,c)||hasOwnProperty(this.values,c))&&(o[c]=r.get(c)+this.get(c));return clone$1(this,{values:o},!0)}minus(t){if(!this.isValid)return this;const r=Duration.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const o of Object.keys(this.values))r[o]=asNumber(t(this.values[o],o));return clone$1(this,{values:r},!0)}get(t){return this[Duration.normalizeUnit(t)]}set(t){return this.isValid?clone$1(this,{values:{...this.values,...normalizeObject(t,Duration.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:o,matrix:c}={}){return clone$1(this,{loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:c,conversionAccuracy:o})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return normalizeValues(this.matrix,t),clone$1(this,{values:t},!0)}rescale(){return this.isValid?clone$1(this,{values:removeZeroes(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(f=>Duration.normalizeUnit(f));const r={},o={},c=this.toObject();let d;for(const f of orderedUnits$1)if(t.indexOf(f)>=0){d=f;let b=0;for(const S in o)b+=this.matrix[S][f]*o[S],o[S]=0;isNumber$2(c[f])&&(b+=c[f]);const m=Math.trunc(b);r[f]=m,o[f]=(1e3*b-1e3*m)/1e3}else isNumber$2(c[f])&&(o[f]=c[f]);for(const f in o)o[f]!==0&&(r[d]+=f===d?o[f]:o[f]/this.matrix[d][f]);return normalizeValues(this.matrix,r),clone$1(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return clone$1(this,{values:t},!0)}removeZeros(){return this.isValid?clone$1(this,{values:removeZeroes(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(o,c){return o===void 0||o===0?c===void 0||c===0:o===c}for(const o of orderedUnits$1)if(!r(this.values[o],t.values[o]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}class Interval{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invali
180d||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const o=t instanceof Invalid?t:new Invalid(t,r);if(Settings.throwOnInvalid)throw new InvalidIntervalError(o);return new Interval({invalid:o})}static fromDateTimes(t,r){const o=friendlyDateTime(t),c=friendlyDateTime(r),d=validateStartEnd(o,c);return d??new Interval({start:o,end:c})}static after(t,r){const o=Duration.fromDurationLike(r),c=friendlyDateTime(t);return Interval.fromDateTimes(c,c.plus(o))}static before(t,r){const o=Duration.fromDurationLike(r),c=friendlyDateTime(t);return Interval.fromDateTimes(c.minus(o),c)}static fromISO(t,r){const[o,c]=(t||"").split("/",2);if(o&&c){let d,f,b,m;try{d=DateTime.fromISO(o,r),f=d.isValid}catch{f=!1}try{b=DateTime.fromISO(c,r),m=b.isValid}catch{m=!1}if(f&&m)return Interval.fromDateTimes(d,b);if(f){const S=Duration.fromISO(c,r);if(S.isValid)return Interval.after(d,S)}else if(m){const S=Duration.fromISO(o,r);if(S.isValid)return Interval.before(b,S)}}return Interval.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;const o=this.start.startOf(t,r);let c;return c=r!=null&&r.useLocaleWeeks?this.end.reconfigure({locale:o.locale}):this.end,c=c.startOf(t,r),Math.floor(c.diff(o,t).get(t))+(c.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:r}={}){return this.isValid?Interval.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(friendlyDateTime).filter(f=>this.contains(f)).sort((f,b)=>f.toMillis()-b.toMillis()),o=[];let{s:c}=this,d=0;for(;c<this.e;){const f=r[d]||this.e,b=+f>+this.e?this.e:f;o.push(Interval.fromDateTimes(c,b)),c=b,d+=1}return o}splitBy(t){const r=Duration.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let o,{s:c}=this,d=1;const f=[];for(;c<this.e;){const b=this.start.plus(r.mapUnits(m=>m*d));o=+b>+this.e?this.e:b,f.push(Interval.fromDateTimes(c,o)),c=o,d+=1}return f}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,o=this.e<t.e?this.e:t.e;return r>=o?null:Interval.fromDateTimes(r,o)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,o=this.e>t.e?this.e:t.e;return Interval.fromDateTimes(r,o)}static merge(t){const[r,o]=t.sort((c,d)=>c.s-d.s).reduce(([c,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[c,d.union(f)]:[c.concat([d]),f]:[c,f],[[],null]);return o&&r.push(o),r}static xor(t){let r=null,o=0;const c=[],d=t.map(b=>[{time:b.s,type:"s"},{time:b.e,type:"e"}]),f=Array.prototype.concat(...d).sort((b,m)=>b.time-m.time);for(const b of f)o+=b.type==="s"?1:-1,o===1?r=b.time:(r&&+r!=+b.time&&c.push(Interval.fromDateTimes(r,b.time)),r=null);return Interval.merge(c)}difference(...t){return Interval.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
180toLocaleString(t=DATE_SHORT,r={}){return this.isValid?Formatter.create(this.s.loc.clone(r),t).formatInterval(this):INVALID$1}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:INVALID$1}toFormat(t,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:INVALID$1}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):Duration.invalid(this.invalidReason)}mapEndpoints(t){return Interval.fromDateTimes(t(this.s),t(this.e))}}class Info{static hasDST(t=Settings.defaultZone){const r=DateTime.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return IANAZone.isValidZone(t)}static normalizeZone(t){return normalizeZone(t,Settings.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||Locale.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||Locale.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||Locale.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:o=null,locObj:c=null,outputCalendar:d="gregory"}={}){return(c||Locale.create(r,o,d)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:o=null,locObj:c=null,outputCalendar:d="gregory"}={}){return(c||Locale.create(r,o,d)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:o=null,locObj:c=null}={}){return(c||Locale.create(r,o,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:o=null,locObj:c=null}={}){return(c||Locale.create(r,o,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Locale.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Locale.create(r,null,"gregory").eras(t)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const r=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=r(t)-r(e);return Math.floor(Duration.fromMillis(o).as("days"))}function highOrderDiffs(e,t,r){const o=[["years",(m,S)=>S.year-m.year],["quarters",(m,S)=>S.quarter-m.quarter+4*(S.year-m.year)],["months",(m,S)=>S.month-m.month+12*(S.year-m.year)],["weeks",(m,S)=>{const w=dayDiff(m,S);return(w-w%7)/7}],["days",dayDiff]],c={},d=e;let f,b;for(const[m,S]of o)r.indexOf(m)>=0&&(f=m,c[m]=S(e,t),b=d.plus(c),b>t?(c[m]--,(e=d.plus(c))>t&&(b=e,c[m]--,e=d.plus(c))):e=b);return[e,c,b,f]}function diff(e,t,r,o){let[c,d,f,b]=highOrderDiffs(e,t,r);const m=t-c,S=r.filter(T=>["hours","minutes","seconds","milliseconds"].indexOf(T)>=0);S.length===0&&(f<t&&(f=c.plus({[b]:1})),f!==c&&(d[b]=(d[b]||0)+m/(f-c)));const w=Duration.fromObject(d,o);return S.length>0?Duration.fromMillis(m,o).shiftTo(...S).plus(w):w}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=r=>r){return{regex:e,deser:([r])=>t(parseDigits(r))}}const NBSP=" ",spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(e,t){return e===null?null:{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex(o=>stripInsensitivities(r)===stripInsensitivities(o))+t}}function offset(e,t){return{regex:e,deser:([,r,o])=>signedOffset(r,o),groups:t}}function simple(e){return{regex:e,deser:([t])=>t}}function escapeToken(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(e,t){const r=digitRegex(t),o=digitRegex(t,"{2}"),c=digitRegex(t,"{3}"),d=digitRegex(t,"{4}"),f=digitRegex(t,"{6}"),b=digitRegex(t,"{1,2}"),m=digitRegex(t,"{1,3}"),S=digitRegex(t,"{1,6}"),w=digitRegex(t,"{1,9}"),T=digitRegex(t,"{2,4}"),A=digitRegex(t,"{4,6}"),C=B=>({regex:RegExp(escapeToken(B.val)),deser:([U])=>U,literal:!0}),P=(B=>
180{if(e.literal)return C(B);switch(B.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(S);case"yy":case"kk":return intUnit(T,untruncateYear);case"yyyy":case"kkkk":return intUnit(d);case"yyyyy":return intUnit(A);case"yyyyyy":return intUnit(f);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return intUnit(b);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return intUnit(o);case"MMM":return oneOf(t.months("short",!0),1);case"MMMM":return oneOf(t.months("long",!0),1);case"LLL":return oneOf(t.months("short",!1),1);case"LLLL":return oneOf(t.months("long",!1),1);case"o":case"S":return intUnit(m);case"ooo":case"SSS":return intUnit(c);case"u":return simple(w);case"uu":return simple(b);case"uuu":case"E":case"c":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"EEE":return oneOf(t.weekdays("short",!1),1);case"EEEE":return oneOf(t.weekdays("long",!1),1);case"ccc":return oneOf(t.weekdays("short",!0),1);case"cccc":return oneOf(t.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${b.source})(?::(${o.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${b.source})(${o.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return C(B)}})(e)||{invalidReason:MISSING_FTP};return P.token=e,P}const partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(e,t,r){const{type:o,value:c}=e;if(o==="literal"){const m=/^\s+$/.test(c);return{literal:!m,val:m?" ":c}}const d=t[o];let f=o;o==="hour"&&(f=t.hour12!=null?t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?"hour12":"hour24":r.hour12?"hour12":"hour24");let b=partTypeStyleToTokenVal[f];if(typeof b=="object"&&(b=b[d]),b)return{literal:!1,val:b}}function buildRegex(e){return[`^${e.map(r=>r.regex).reduce((r,o)=>`${r}(${o.source})`,"")}$`,e]}function match(e,t,r){const o=e.match(t);if(o){const c={};let d=1;for(const f in r)if(hasOwnProperty(r,f)){const b=r[f],m=b.groups?b.groups+1:1;!b.literal&&b.token&&(c[b.token.val[0]]=b.deser(o.slice(d,d+m))),d+=m}return[o,c]}return[o,{}]}function dateTimeFromMatches(e){let t,r=null;return isUndefined$1(e.z)||(r=IANAZone.create(e.z)),isUndefined$1(e.Z)||(r||(r=new FixedOffsetZone(e.Z)),t=e.Z),isUndefined$1(e.q)||(e.M=3*(e.q-1)+1),isUndefined$1(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),isUndefined$1(e.u)||(e.S=parseMillis(e.u)),[Object.keys(e).reduce((o,c)=>{const d=(f=>{switch(f){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(c);return d&&(o[d]=e[c]),o},{}),r,t]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(e,t){if(e.literal)return e;const r=formatOptsToTokens(Formatter.macroTokenToFormatOpts(e.val),t);return r==null||r.includes(void 0)?e:r}function expandMacroTokens(e,t){return Array.prototype.concat(...e.map(r=>maybeExpandMacroToken(r,t)))}class TokenParser{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=expandMacroTokens(Formatter.parseFormat(r),t),this.units=this.tokens.map(o=>unitForToken(o,t)),this.disqualifyingUnit=this.units.find(o=>o.invalidReason),!this.disqualifyingUnit){const[o,c]=buildRegex(this.units);this.regex=RegExp(o,"i"),this.handlers=c}}explainFromTokens(t){if(this.isValid){const[r,o]=match(t,this.regex,this.handlers),[c,d,f]=o?dateTimeFromMatches(o):[null,null,void 0];if(hasOwnProperty(o,"a")&&hasOwnProperty(o,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:o,result:c,zone:d,specificOffset:f}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
180dReason:null}}function explainFromTokens(e,t,r){return new TokenParser(e,r).explainFromTokens(t)}function parseFromTokens(e,t,r){const{result:o,zone:c,specificOffset:d,invalidReason:f}=explainFromTokens(e,t,r);return[o,c,d,f]}function formatOptsToTokens(e,t){if(!e)return null;const r=Formatter.create(t,e).dtFormatter(getDummyDateTime()),o=r.formatToParts(),c=r.resolvedOptions();return o.map(d=>tokenForPart(d,e,c))}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){return e.weekData===null&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function possiblyCachedLocalWeekData(e){return e.localWeekData===null&&(e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let o=e-60*t*1e3;const c=r.offset(o);if(t===c)return[o,t];o-=60*(c-t)*1e3;const d=r.offset(o);return c===d?[o,c]:[e-60*Math.min(c,d)*1e3,Math.max(c,d)]}function tsToObj(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,o=e.c.year+Math.trunc(t.years),c=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),d={...e.c,year:o,month:c,day:Math.min(e.c.day,daysInMonth(o,c))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},f=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),b=objToLocalTS(d);let[m,S]=fixOffset(b,r,e.zone);return f!==0&&(m+=f,S=e.zone.offset(m)),{ts:m,o:S}}function parseDataToDateTime(e,t,r,o,c,d){const{setZone:f,zone:b}=r;if(e&&Object.keys(e).length!==0||t){const m=t||b,S=DateTime.fromObject(e,{...r,zone:m,specificOffset:d});return f?S:S.setZone(b)}return DateTime.invalid(new Invalid("unparsable",`the input "${c}" can't be parsed as ${o}`))}function toTechFormat(e,t,r=!0){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate(e,t,r){const o=e.c.year>9999||e.c.year<0;let c="";if(o&&e.c.year>=0&&(c+="+"),c+=padStart(e.c.year,o?6:4),r==="year")return c;if(t){if(c+="-",c+=padStart(e.c.month),r==="month")return c;c+="-"}else if(c+=padStart(e.c.month),r==="month")return c;return c+=padStart(e.c.day),c}function toISOTime(e,t,r,o,c,d,f){let b=!r||e.c.millisecond!==0||e.c.second!==0,m="";switch(f){case"day":case"month":case"year":break;default:if(m+=padStart(e.c.hour),f==="hour")break;if(t){if(m+=":",m+=padStart(e.c.minute),f==="minute")break;b&&(m+=":",m+=padStart(e.c.second))}else{if(m+=padStart(e.c.minute),f==="minute")break;b&&(m+=padStart(e.c.second))}if(f==="second")break;!b||o&&e.c.millisecond===0||(m+=".",m+=padStart(e.c.millisecond,3))}return c&&(e.isOffsetFixed&&e.offset===0&&!d?m+="Z":e.o<0?(m+="-",m+=padStart(Math.trunc(-e.o/60)),m+=":",m+=padStart(Math.trunc(-e.o%60))):(m+="+",m+=padStart(Math.trunc(e.o/60)),m+=":",m+=padStart(Math.trunc(e.o%60)))),d&&(m+="["+e.zone.ianaName+"]"),m}
180const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return normalizeUnit(e)}}function guessOffsetForZone(e){if(zoneOffsetTs===void 0&&(zoneOffsetTs=Settings.now()),e.type!=="iana")return e.offset(zoneOffsetTs);const t=e.name;let r=zoneOffsetGuessCache.get(t);return r===void 0&&(r=e.offset(zoneOffsetTs),zoneOffsetGuessCache.set(t,r)),r}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid)return DateTime.invalid(unsupportedZone(r));const o=Locale.fromObject(t);let c,d;if(isUndefined$1(e.year))c=Settings.now();else{for(const m of orderedUnits)isUndefined$1(e[m])&&(e[m]=defaultUnitValues[m]);const f=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(f)return DateTime.invalid(f);const b=guessOffsetForZone(r);[c,d]=objToTS(e,b,r)}return new DateTime({ts:c,zone:r,loc:o,o:d})}function diffRelative(e,t,r){const o=!!isUndefined$1(r.round)||r.round,c=isUndefined$1(r.rounding)?"trunc":r.rounding,d=(b,m)=>(b=roundTo(b,o||r.calendary?0:2,r.calendary?"round":c),t.loc.clone(r).relFormatter(r).format(b,m)),f=b=>r.calendary?t.hasSame(e,b)?0:t.startOf(b).diff(e.startOf(b),b).get(b):t.diff(e,b).get(b);if(r.unit)return d(f(r.unit),r.unit);for(const b of r.units){const m=f(b);if(Math.abs(m)>=1)return d(m,b)}return d(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t,r={};return e.length>0&&typeof e[e.length-1]=="object"?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}let zoneOffsetTs;const zoneOffsetGuessCache=new Map;class DateTime{constructor(t){const r=t.zone||Settings.defaultZone;
vendor: 4,153 bytes, line 180
180let o=t.invalid||(Number.isNaN(t.ts)?new Invalid("invalid input"):null)||(r.isValid?null:unsupportedZone(r));this.ts=isUndefined$1(t.ts)?Settings.now():t.ts;let c=null,d=null;if(!o)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[c,d]=[t.old.c,t.old.o];else{const f=isNumber$2(t.o)&&!t.old?t.o:r.offset(this.ts);c=tsToObj(this.ts,f),o=Number.isNaN(c.year)?new Invalid("invalid input"):null,c=o?null:c,d=o?null:f}this._zone=r,this.loc=t.loc||Locale.create(),this.invalid=o,this.weekData=null,this.localWeekData=null,this.c=c,this.o=d,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[t,r]=lastOpts(arguments),[o,c,d,f,b,m,S]=r;return quickDT({year:o,month:c,day:d,hour:f,minute:b,second:m,millisecond:S},t)}static utc(){const[t,r]=lastOpts(arguments),[o,c,d,f,b,m,S]=r;return t.zone=FixedOffsetZone.utcInstance,quickDT({year:o,month:c,day:d,hour:f,minute:b,second:m,millisecond:S},t)}static fromJSDate(t,r={}){const o=isDate(t)?t.valueOf():NaN;if(Number.isNaN(o))return DateTime.invalid("invalid input");const c=normalizeZone(r.zone,Settings.defaultZone);return c.isValid?new DateTime({ts:o,zone:c,loc:Locale.fromObject(r)}):DateTime.invalid(unsupportedZone(c))}static fromMillis(t,r={}){if(isNumber$2(t))return t<-MAX_DATE||t>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:t,zone:normalizeZone(r.zone,Settings.defaultZone),loc:Locale.fromObject(r)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(isNumber$2(t))return new DateTime({ts:1e3*t,zone:normalizeZone(r.zone,Settings.defaultZone),loc:Locale.fromObject(r)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const o=normalizeZone(r.zone,Settings.defaultZone);if(!o.isValid)return DateTime.invalid(unsupportedZone(o));const c=Locale.fromObject(r),d=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:f,startOfWeek:b}=usesLocalWeekValues(d,c),m=Settings.now(),S=isUndefined$1(r.specificOffset)?o.offset(m):r.specificOffset,w=!isUndefined$1(d.ordinal),T=!isUndefined$1(d.year),A=!isUndefined$1(d.month)||!isUndefined$1(d.day),C=T||A,P=d.weekYear||d.weekNumber;if((C||w)&&P)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(A&&w)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const B=P||d.weekday&&!C;let U,D,$=tsToObj(m,S);B?(U=orderedWeekUnits,D=defaultWeekUnitValues,$=gregorianToWeek($,f,b)):w?(U=orderedOrdinalUnits,D=defaultOrdinalUnitValues,$=gregorianToOrdinal($)):(U=orderedUnits,D=defaultUnitValues);let z=!1;for(const H of U)isUndefined$1(d[H])?d[H]=z?D[H]:$[H]:z=!0;const V=(B?hasInvalidWeekData(d,f,b):w?hasInvalidOrdinalData(d):hasInvalidGregorianData(d))||hasInvalidTimeData(d);if(V)return DateTime.invalid(V);const F=B?weekToGregorian(d,f,b):w?ordinalToGregorian(d):d,[ee,te]=objToTS(F,S,o),K=new DateTime({ts:ee,zone:o,o:te,loc:c});return d.weekday&&C&&t.weekday!==K.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${K.toISO()}`):K.isValid?K:DateTime.invalid(K.invalid)}static fromISO(t,r={}){const[o,c]=parseISODate(t);return parseDataToDateTime(o,c,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[o,c]=parseRFC2822Date(t);return parseDataToDateTime(o,c,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[o,c]=parseHTTPDate(t);return parseDataToDateTime(o,c,r,"HTTP",r)}static fromFormat(t,r,o={}){if(isUndefined$1(t)||isUndefined$1(r))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:d=null}=o,f=Locale.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0}),[b,m,S,w]=parseFromTokens(f,t,r);return w?DateTime.invalid(w):parseDataToDateTime(b,m,o,`format ${r}`,t,S)}static fromString(t,r,o={}){return DateTime.fromFormat(t,r,o)}static fromSQL(t,r={}){const[o,c]=parseSQL(t);return parseDataToDateTime(o,c,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new InvalidArgumentError("need to specify a reason the DateTime is invali
180d");const o=t instanceof Invalid?t:new Invalid(t,r);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(o);return new DateTime({invalid:o})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){const o=formatOptsToTokens(t,Locale.fromObject(r));return o?o.map(c=>c?c.val:null).join(""):null}static expandFormat(t,r={}){return expandMacroTokens(Formatter.parseFormat(t),Locale.fromObject(r)).map(o=>o.val).join("")}static resetCache(){zoneOffsetTs=void 0,zoneOffsetGuessCache.clear()}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,r=6e4,o=objToLocalTS(this.c),c=this.zone.offset(o-t),d=this.zone.offset(o+t),f=this.zone.offset(o-c*r),b=this.zone.offset(o-d*r);if(f===b)return[this];const m=o-f*r,S=o-b*r,w=tsToObj(m,f),T=tsToObj(S,b);return w.hour===T.hour&&w.minute===T.minute&&w.second===T.second&&w.millisecond===T.millisecond?[clone(this,{ts:m}),clone(this,{ts:S})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:o,calendar:c}=Formatter.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:o,outputCalendar:c}}toUTC(t=0,r={}){return this.setZone(FixedOffsetZone.instance(t),r)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:o=!1}={}){if((t=normalizeZone(t,Settings.defaultZone)).equals(this.zone))return this;if(t.isValid){let c=this.ts;if(r||o){const d=t.offset(this.ts),f=this.toObject();[c]=objToTS(f,d,t)}return clone(this,{ts:c,zone:t})}
vendor: 4,403 bytes, line 180
180return DateTime.invalid(unsupportedZone(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:o}={}){return clone(this,{loc:this.loc.clone({locale:t,numberingSystem:r,outputCalendar:o})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=normalizeObject(t,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:o,startOfWeek:c}=usesLocalWeekValues(r,this.loc),d=!isUndefined$1(r.weekYear)||!isUndefined$1(r.weekNumber)||!isUndefined$1(r.weekday),f=!isUndefined$1(r.ordinal),b=!isUndefined$1(r.year),m=!isUndefined$1(r.month)||!isUndefined$1(r.day),S=b||m,w=r.weekYear||r.weekNumber;if((S||f)&&w)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&f)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let T;d?T=weekToGregorian({...gregorianToWeek(this.c,o,c),...r},o,c):isUndefined$1(r.ordinal)?(T={...this.toObject(),...r},isUndefined$1(r.day)&&(T.day=Math.min(daysInMonth(T.year,T.month),T.day))):T=ordinalToGregorian({...gregorianToOrdinal(this.c),...r});const[A,C]=objToTS(T,this.o,this.zone);return clone(this,{ts:A,o:C})}plus(t){return this.isValid?clone(this,adjustTime(this,Duration.fromDurationLike(t))):this}minus(t){return this.isValid?clone(this,adjustTime(this,Duration.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const o={},c=Duration.normalizeUnit(t);switch(c){case"years":o.month=1;case"quarters":case"months":o.day=1;case"weeks":case"days":o.hour=0;case"hours":o.minute=0;case"minutes":o.second=0;case"seconds":o.millisecond=0}if(c==="weeks")if(r){const d=this.loc.getStartOfWeek(),{weekday:f}=this;f<d&&(o.weekNumber=this.weekNumber-1),o.weekday=d}else o.weekday=1;if(c==="quarters"){const d=Math.ceil(this.month/3);o.month=3*(d-1)+1}return this.set(o)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):INVALID}toLocaleString(t=DATE_SHORT,r={}){return this.isValid?Formatter.create(this.loc.clone(r),t).formatDateTime(this):INVALID}toLocaleParts(t={}){return this.isValid?Formatter.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:o=!1,includeOffset:c=!0,extendedZone:d=!1,precision:f="milliseconds"}={}){if(!this.isValid)return null;const b=t==="extended";let m=toISODate(this,b,f=normalizeUnit(f));return orderedUnits.indexOf(f)>=3&&(m+="T"),m+=toISOTime(this,b,r,o,c,d,f),m}toISODate({format:t="extended",precision:r="day"}={}){return this.isValid?toISODate(this,t==="extended",normalizeUnit(r)):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:o=!0,includePrefix:c=!1,extendedZone:d=!1,format:f="extended",precision:b="milliseconds"}={}){return this.isValid?(b=normalizeUnit(b),(c&&orderedUnits.indexOf(b)>=3?"T":"")+toISOTime(this,f==="extended",r,t,o,d,b)):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:o=!0}={}){let c="HH:mm:ss.SSS";return(r||t)&&(o&&(c+=" "),r?c+="z":t&&(c+="ZZ")),toTechFormat(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():INVALID}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",o={}){if(!this.isValid||!t.isValid)return Duration.invalid("created by diffing an invali
180d DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=maybeArray(r).map(Duration.normalizeUnit),f=t.valueOf()>this.valueOf(),b=diff(f?this:t,f?t:this,d,c);return f?b.negate():b}diffNow(t="milliseconds",r={}){return this.diff(DateTime.now(),t,r)}until(t){return this.isValid?Interval.fromDateTimes(this,t):this}hasSame(t,r,o){if(!this.isValid)return!1;const c=t.valueOf(),d=this.setZone(t.zone,{keepLocalTime:!0});return d.startOf(r,o)<=c&&c<=d.endOf(r,o)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||DateTime.fromObject({},{zone:this.zone}),o=t.padding?this<r?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],d=t.unit;return Array.isArray(t.unit)&&(c=t.unit,d=void 0),diffRelative(r,this.plus(o),{...t,numeric:"always",units:c,unit:d})}toRelativeCalendar(t={}){return this.isValid?diffRelative(t.base||DateTime.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,o={}){const{locale:c=null,numberingSystem:d=null}=o;return explainFromTokens(Locale.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0}),t,r)}static fromStringExplain(t,r,o={}){return DateTime.fromFormatExplain(t,r,o)}static buildFormatParser(t,r={}){const{locale:o=null,numberingSystem:c=null}=r,d=Locale.fromOpts({locale:o,numberingSystem:c,defaultToEN:!0});return new TokenParser(d,t)}static fromFormatParser(t,r,o={}){if(isUndefined$1(t)||isUndefined$1(r))throw new InvalidArgumentError("fromFormatParser requires an input string and a format parser");const{locale:c=null,numberingSystem:d=null}=o,f=Locale.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0});if(!f.equals(r.locale))throw new InvalidArgumentError(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${r.locale}`);const{result:b,zone:m,specificOffset:S,invalidReason:w}=r.explainFromTokens(t);return w?DateTime.invalid(w):parseDataToDateTime(b,m,o,`format ${r.format}`,t,S)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber$2(e.valueOf()))return DateTime.fromJSDate(e);if(e&&typeof e=="object")return DateTime.fromObject(e);throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const _hoisted_1$O={class:"flex items-stretch w-full h-full"},_hoisted_2$C={class:"flex flex-col justify-between flex-1 w-1/2 min-w-0 px-2 py-1"},_hoisted_3$v={class:"text-sm font-bold font-primary line-clamp-3 md:line-clamp-2"},_hoisted_4$n={class:"bottom-0 flex items-center space-x-2 text-xs"},_hoisted_5$i={class:"capitalize truncate text-primary-500"},_hoisted_6$d={key:0,class:"flex-shrink-0 text-primary-500"},_sfc_main$Z=defineComponent({__name:"index",props:{data:{},size:{default:"xs"}},setup(e){var b,m;const t=useRuntimeConfig(),r=e,o=computed(()=>{const S={xs:{baseHeight:100,baseWidth:300,maxWidth:100,fixedHeight:64}
180,sm:{baseHeight:112,baseWidth:200,maxWidth:155,fixedHeight:112}};return S[r.size]??S.xs}),c=t.public.club.logo,d=DateTime.fromISO((m=(b=r==null?void 0:r.data)==null?void 0:b.attributes)==null?void 0:m.publishedDateTime).toFormat("d MMM yyyy"),f=computed(()=>{var S,w,T,A;return((w=(S=r.data)==null?void 0:S.attributes)==null?void 0:w.postCategoryName)||((A=(T=r.data)==null?void 0:T.attributes)==null?void 0:A.postCategory.replaceAll("/","").replaceAll("-"," "))||null});return(S,w)=>{var C,P;const T=_sfc_main$_,A=__nuxt_component_1$1;return e.data?(openBlock(),createElementBlock("section",{key:0,class:"overflow-hidden rounded-md",style:normalizeStyle(`height: ${unref(o).fixedHeight}px`)},[createVNode(A,{to:(P=(C=e.data)==null?void 0:C.attributes)==null?void 0:P.postSlug},{default:withCtx(()=>{var B,U,D,$,z,V,F,ee,te,K;return[createBaseVNode("div",_hoisted_1$O,[createVNode(T,{class:normalizeClass(["w-full h-full aspect-video",`max-w-[${unref(o).maxWidth}px]`]),"image-key":(D=(U=(B=r==null?void 0:r.data)==null?void 0:B.attributes)==null?void 0:U.imageData)!=null&&D.key?(V=(z=($=r==null?void 0:r.data)==null?void 0:$.attributes)==null?void 0:z.imageData)==null?void 0:V.key:unref(c),sizes:[600,300],"base-height":unref(o).baseHeight,"base-width":unref(o).baseWidth,fit:"cover"},null,8,["class","image-key","base-height","base-width"]),createBaseVNode("div",_hoisted_2$C,[createBaseVNode("p",_hoisted_3$v,toDisplayString((ee=(F=e.data)==null?void 0:F.attributes)==null?void 0:ee.postTitle),1),createBaseVNode("div",_hoisted_4$n,[createVNode(A,{to:"news#"+((K=(te=r.data)==null?void 0:te.attributes)==null?void 0:K.postCategory).replace(/\//g,""),class:"flex-shrink min-w-0"},{default:withCtx(()=>[createBaseVNode("p",_hoisted_5$i,toDisplayString(unref(f)),1)]),_:1},8,["to"]),unref(f)?(openBlock(),createElementBlock("span",_hoisted_6$d," | ")):createCommentVNode("",!0),createBaseVNode("time",{class:normalizeClass([[{"!ml-0":!unref(f)}],"flex-shrink-0 whitespace-nowrap"])},toDisplayString(unref(d)),3)])])])]}),_:1},8,["to"])],4)):createCommentVNode("",!0)}}}),_sfc_main$Y={},_hoisted_1$N={class:"absolute inset-0 z-10 flex items-center light"},_hoisted_2$B={class:"z-20 flex items-center justify-center w-10 h-10 m-auto transition duration-300 scale-0 rounded-full bg-surface-high text-clear group-hover/card:scale-100"};function _sfc_render$3(e,t){const r=_sfc_main$12;return openBlock(),createElementBlock("div",_hoisted_1$N,[createBaseVNode("div",_hoisted_2$B,[createVNode(r,{pack:"video",icon:"play",size:18,class:"ml-1"})])])}const __nuxt_component_2$1=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$3]]),PlayButton=Object.freeze(Object.defineProperty({__proto__:null,default:__nuxt_component_2$1},Symbol.toStringTag,{value:"Module"})),_hoisted_1$M={class:"absolute flex items-center justify-center px-2 py-1 text-xs text-white rounded-lg top-2 right-2 bg-gray-900/50"},_sfc_main$X=defineComponent({__name:"DurationBadge",props:{length:{}},setup:e=>(t,r)=>(openBlock(),createElementBlock("div",_hoisted_1$M,toDisplayString(e.length),1))}),twColors={1882:{50:"rgb(var(--1882-50, 250 240 255) / <alpha-value>)",100:"rgb(var(--1882-100, 247 229 255) / <alpha-value>)",200:"rgb(var(--1882-200, 240 204 255) / <alpha-value>)",300:"rgb(var(--1882-300, 231 173 255) / <alpha-value>)",400:"rgb(var(--1882-400, 223 148 255) / <alpha-value>)",500:"rgb(var(--1882-500, 215 123 255) / <alpha-value>)",600:"rgb(var(--1882-600, 192 46 255) / <alpha-value>)",700:"rgb(var(--1882-700, 157 0 224) / <alpha-value>)",800:"rgb(var(--1882-800, 107 0 153) / <alpha-value>)",900:"rgb(var(--1882-900, 54 0 77) / <alpha-value>)",950:"rgb(var(--1882-950, 25 0 36) / <alpha-value>)"},parchment:{50:"rgb(var(--parchment-50, 252 252 251) / <alpha-value>)",100:"rgb(var(--parchment-100, 249 249 246) / <alpha-value>)",200:"rgb(var(--parchment-200, 244 244 239) / <alpha-value>)",300:"rgb(var(--parchment-300, 241 241 236) / <alpha-value>)",400:"rgb(var(--parchment-400, 235 235 230) / <alpha-value>)",500:"rgb(var(--parchment-500, 230 230 225) / <alpha-value>)",600:"rgb(var(--parchment-600, 179 179 175) / <alpha-value>)",700:"rgb(var(--parchment-700, 132 132 129) / <alpha-value>)",800:"rgb(var(--parchment-800, 85 85 83) / <alpha-value>)",900:"rgb(var(--parchment-900, 44 44 43) / <alpha-value>)",950:"rgb(var(--parchment-950, 26 26 25) / <alpha-value>)"},lime:{50:"rgb(var(--lime-50, 248 255 235) / <alpha-value>)",100:"rgb(var(--lime-100, 248 255 235) / <alpha-value>)",200:"rgb(var(--lime-200, 240 255 213) / <alpha-value>)",300:"rgb(var(--lime-300, 225 255 159) / <alpha-value>)",400:"rgb(var(--lime-400, 217 255 122) / <alpha-value>)",500:"rgb(var(--lime-500, 209 255 64) / <alpha-value>)",600:"rgb(var(--lime-600, 160 199 0) / <alpha-value>)",700:"rgb(var(--lime-700, 116 145 0) / <alpha-value>)",800:"rgb(var(--lime-800, 77 97 0) / <alpha-value>)",900:"rgb(var(--lime-900, 39 50 0) / <alpha-value>)",950:"rgb(var(--lime-950, 21 28 0) / <alpha-value>)"},tertiary:{50:"rgb(var(--tertiary-50, 209 210 255) / <alpha-value>)",100:"rgb(var(--tertiary-100, 163 165 255) / <alpha-value>)",200:"rgb(var(--tertiary-200, 66 69 255) / <alpha-value>)",300:"rgb(var(--tertiary-300, 0 4 230) / <alpha-value>)",400:"rgb(var(--tertiary-400, 0 2 133) / <alpha-value>)",500:"rgb(var(--tertiary-500, 0 1 41) / <alpha-value>)",600:"rgb(var(--tertiary-600, 0 1 31) / <alpha-value>)",700:"rgb(var(--tertiary-700, 0 0 25) / <alpha-value>)",800:"rgb(var(--tertiary-800, 0 0 15) / <alpha-value>)",900:"rgb(var(--tertiary-900, 0 0 10) / <alpha-value>)",950:"rgb(var(--tertiary-950, 0 0 5) / <alpha-value>)"},mersey:{50:"rgb(var(--mersey-50, 230 230 255) / <alpha-value>)",100:"rgb(var(--mersey-100, 205 205 255) / <alpha-value>)",200:"rgb(var(--mersey-200, 153 153 255) / <alpha-value>)",300:"rgb(var(--mersey-300, 101 101 255) / <alpha-value>)",400:"rgb(var(--mersey-400, 23 23 255) / <alpha-value>)",500:"rgb(var(--mersey-500, 0 0 158) / <alpha-value>)",600:"rgb(var(--mersey-600, 0 0 134) / <alpha-value>)",700:"rgb(var(--mersey-700, 0 0 116) / <alpha-value>)",800:"rgb(var(--mersey-800, 0 0 92) / <alpha-value>)",900:"rgb(var(--mersey-900, 0 0 70) / <alpha-value>)",950:"rgb(var(--mersey-950, 0 0 49) / <alpha-value>)"},pioneer:{50:"rgb(var(--pioneer-50, 229 255 255) / <alpha-value>)",100:"rgb(var(--pioneer-100, 204 255 255) / <alpha-value>)",200:"rgb(var(--pioneer-200, 153 255 255) / <alpha-value>)",300:"rgb(var(--pioneer-300, 102 255 255) / <alpha-value>)",400:"rgb(var(--pioneer-400, 51 255 255) / <alpha-value>)",500:"rgb(var(--pioneer-500, 0 255 255) / <alpha-value>)",600:"rgb(var(--pioneer-600, 0 204 204) / <alpha-value>)",700:"rgb(var(--pioneer-700, 0 153 153) / <alpha-value>)",800:"rgb(var(--pioneer-800, 0 102 102) / <alpha-value>)",900:"rgb(var(--pioneer-900, 0 51 51) / <alpha-value>)",950:"rgb(var(--pioneer-950, 0 25 25) / <alpha-value>)"},evergreen:{50:"rgb(var(--evergreen-50, 197 248 192) / <alpha-value>)",100:"rgb(var(--evergreen-100, 143 237 130) / <alpha-value>)",200:"rgb(var(--evergreen-200, 117 195 106) / <alpha-value>)",300:"rgb(var(--evergreen-300, 91 154 82) / <alpha-value>)",400:"rgb(var(--evergreen-400, 67 115 60) / <alpha-value>)",500:"rgb(var(--evergreen-500, 45 80 40) / <alpha-value>)",600:"rgb(var(--evergreen-600, 35 64 31) / <alpha-value>)",700:"rgb(var(--evergreen-700, 26 50 22) / <alpha-value>)",800:"rgb(var(--evergreen-800, 17 36 15) / <alpha-value>)",900:"rgb(var(--evergreen-900, 9 22 7) / <alpha-value>)",950:"rgb(var(--evergreen-950, 4 13 4) / <alpha-value>)"},pea:{50:"rgb(var(--pea-50, 214 254 215) / <alpha-value>)",100:"rgb(var(--pea-100, 162 253 167) / <alpha-value>)",200:"rgb(var(--pea-200, 65 240 84) / <alpha-value>)",300:"rgb(var(--pea-300, 58 215 74) / <alpha-value>)",400:"rgb(var(--pea-400, 50 190 65) / <alpha-value>)",500:"rgb(var(--pea-500, 42 165 55) / <alpha-value>)",600:"rgb(var(--pea-600, 31 131 42) / <alpha-value>)",700:"rgb(var(--pea-700, 21 98 29) / <alpha-value>)",800:"rgb(var(--pea-800, 11 67 17) / <alpha-value>)",900:"rgb(var(--pea-900, 4 38 6) / <alpha-value>)",950:"rgb(var(--pea-950, 2 24 3) / <alpha-value>)"}
180,secondary:{50:"rgb(var(--secondary-50, 228 231 236) / <alpha-value>)",100:"rgb(var(--secondary-100, 198 204 215) / <alpha-value>)",200:"rgb(var(--secondary-200, 145 155 176) / <alpha-value>)",300:"rgb(var(--secondary-300, 93 106 131) / <alpha-value>)",400:"rgb(var(--secondary-400, 55 63 77) / <alpha-value>)",500:"rgb(var(--secondary-500, 15 17 21) / <alpha-value>)",600:"rgb(var(--secondary-600, 13 14 18) / <alpha-value>)",700:"rgb(var(--secondary-700, 8 10 12) / <alpha-value>)",800:"rgb(var(--secondary-800, 6 7 9) / <alpha-value>)",900:"rgb(var(--secondary-900, 2 2 3) / <alpha-value>)",950:"rgb(var(--secondary-950, 2 2 3) / <alpha-value>)"},noblett:{50:"rgb(var(--noblett-50, 227 229 234) / <alpha-value>)",100:"rgb(var(--noblett-100, 197 201 212) / <alpha-value>)",200:"rgb(var(--noblett-200, 140 150 170) / <alpha-value>)",300:"rgb(var(--noblett-300, 94 102 117) / <alpha-value>)",400:"rgb(var(--noblett-400, 53 57 66) / <alpha-value>)",500:"rgb(var(--noblett-500, 15 17 21) / <alpha-value>)",600:"rgb(var(--noblett-600, 12 14 18) / <alpha-value>)",700:"rgb(var(--noblett-700, 9 11 14) / <alpha-value>)",800:"rgb(var(--noblett-800, 6 7 10) / <alpha-value>)",900:"rgb(var(--noblett-900, 3 4 5) / <alpha-value>)",950:"rgb(var(--noblett-950, 3 4 5) / <alpha-value>)"},brick:{50:"rgb(var(--brick-50, 246 239 238) / <alpha-value>)",100:"rgb(var(--brick-100, 235 220 219) / <alpha-value>)",200:"rgb(var(--brick-200, 216 185 182) / <alpha-value>)",300:"rgb(var(--brick-300, 198 154 149) / <alpha-value>)",400:"rgb(var(--brick-400, 178 119 113) / <alpha-value>)",500:"rgb(var(--brick-500, 152 89 82) / <alpha-value>)",600:"rgb(var(--brick-600, 123 72 66) / <alpha-value>)",700:"rgb(var(--brick-700, 93 54 50) / <alpha-value>)",800:"rgb(var(--brick-800, 60 35 32) / <alpha-value>)",900:"rgb(var(--brick-900, 30 17 16) / <alpha-value>)",950:"rgb(var(--brick-950, 17 10 9) / <alpha-value>)"},river:{50:"rgb(var(--river-50, 238 246 247) / <alpha-value>)",100:"rgb(var(--river-100, 217 236 237) / <alpha-value>)",200:"rgb(var(--river-200, 179 216 219) / <alpha-value>)",300:"rgb(var(--river-300, 141 197 201) / <alpha-value>)",400:"rgb(var(--river-400, 103 178 183) / <alpha-value>)",500:"rgb(var(--river-500, 74 151 156) / <alpha-value>)",600:"rgb(var(--river-600, 59 120 125) / <alpha-value>)",700:"rgb(var(--river-700, 44 90 93) / <alpha-value>)",800:"rgb(var(--river-800, 30 60 62) / <alpha-value>)",900:"rgb(var(--river-900, 15 30 31) / <alpha-value>)",950:"rgb(var(--river-950, 8 17 17) / <alpha-value>)"},primary:{50:"rgb(var(--primary-50, 219 219 255) / <alpha-value>)",100:"rgb(var(--primary-100, 184 184 255) / <alpha-value>)",200:"rgb(var(--primary-200, 112 112 255) / <alpha-value>)",300:"rgb(var(--primary-300, 46 46 255) / <alpha-value>)",400:"rgb(var(--primary-400, 0 0 230) / <alpha-value>)",500:"rgb(var(--primary-500, 0 1 158) / <alpha-value>)",600:"rgb(var(--primary-600, 0 0 128) / <alpha-value>)",700:"rgb(var(--primary-700, 0 0 97) / <alpha-value>)",800:"rgb(var(--primary-800, 0 0 61) / <alpha-value>)",900:"rgb(var(--primary-900, 0 0 31) / <alpha-value>)",950:"rgb(var(--primary-950, 0 0 15) / <alpha-value>)"},neutral:{50:"rgb(var(--neutral-50, 255 255 255) / <alpha-value>)",100:"rgb(var(--neutral-100, 238 238 238) / <alpha-value>)",200:"rgb(var(--neutral-200, 218 218 218) / <alpha-value>)",300:"rgb(var(--neutral-300, 201 201 201) / <alpha-value>)",400:"rgb(var(--neutral-400, 185 185 185) / <alpha-value>)",500:"rgb(var(--neutral-500, 167 167 167) / <alpha-value>)",600:"rgb(var(--neutral-600, 132 132 132) / <alpha-value>)",700:"rgb(var(--neutral-700, 97 97 97) / <alpha-value>)",800:"rgb(var(--neutral-800, 64 64 64) / <alpha-value>)",900:"rgb(var(--neutral-900, 36 36 36) / <alpha-value>)",950:"rgb(var(--neutral-950, 0 0 0) / <alpha-value>)"}},useStyleObject=(e,t=!1)=>{var c,d,f,b,m,S,w,T,A,C,P,B,U,D,$,z,V,F,ee,te,K,H,X;const r=useRuntimeConfig();if(e==null)return"";const o=[];e.theme&&!t&&(e={fontColor:(b=(f=(d=(c=r.public.club)==null?void 0:c.theme)==null?void 0:d[e.theme])==null?void 0:f.color)==null?void 0:b.color,fontShade:(T=(w=(S=(m=r.public.club)==null?void 0:m.theme)==null?void 0:S[e.theme])==null?void 0:w.color)==null?void 0:T.shade,backgroundColor:(B=(P=(C=(A=r.public.club)==null?void 0:A.theme)==null?void 0:C[e.theme])==null?void 0:P.backgroundColor)==null?void 0:B.color,backgroundShade:(z=($=(D=(U=r.public.club)==null?void 0:U.theme)==null?void 0:D[e.theme])==null?void 0:$.backgroundColor)==null?void 0:z.shade,...e});for(const[J,G]of Object.entries(e))J==="background"&&(e.backgroundColor=(F=(V=e==null?void 0:e[J])==null?void 0:V.color)==null?void 0:F.value,e.backgroundShade=(te=(ee=e==null?void 0:e[J])==null?void 0:ee.color)==null?void 0:te.shade,e.backgroundOpacity=(H=(K=e==null?void 0:e[J])==null?void 0:K.color)==null?void 0:H.opacity);for(const[J,G]of Object.entries(e)){const Q=J;if(styleToClassesMap$1[Q]){if(J==="color"&&G.value&&G.shade)o.push(`text-${G.value}-${G.shade}`);else if(!J.includes("Shade")){if(J.includes("Color")){const pe=J.replace("Color",""),ye=e[`${pe}Shade`],de=(X=styleToClassesMap$1[Q])==null?void 0:X[G],_e="!",Re=pe==="font"?`${_e}text`:pe==="background"?`${_e}bg`:pe,ge=e[`${pe}Opacity`]?`/${e[`${pe}Opacity`]}`:"";
180if(de==="white"||de==="black"){o.push(`${Re}-${de}`);continue}if(!ye){o.push(`${Re}-${de}-500`);continue}o.push(`${Re}-${de}-${ye}${ge}`);continue}J!=="backgroundImage"?o.push(styleToClassesMap$1[Q][G]):o.push(`bg-[url('${G}')`)}}}return o.join(" ")},colorsObj={primary:"primary",secondary:"secondary",tertiary:"tertiary",light:"white",gray:"gray",dark:"black",black:"black",white:"white",away:"away"};for(const e in twColors)colorsObj[e]===void 0&&(colorsObj[e]=e);const shades={100:"100",200:"200",300:"300",400:"400",500:"500",600:"600",700:"700",800:"800",900:"900",950:"950"},styleToClassesMap$1={backgroundImage:"",border:{thin:"border",medium:"border-2",thick:"border-4"},color:{value:colorsObj,shade:shades},fontColor:colorsObj,fontShade:shades,fontCasing:{uppercase:"uppercase",capitalize:"capitalize"},fontDecoration:{default:"",underline:"underline"},backgroundColor:colorsObj,backgroundShade:shades,borderColor:colorsObj,borderShade:shades,fontWeight:{light:"font-light",normal:"font-normal",bold:"font-bold"},borderRadius:{small:"rounded-sm",medium:"rounded-lg",large:"rounded-2xl"},fontFamily:{primary:"font-primary",secondary:"font-secondary",tertiary:"font-tertiary"},dropShadow:{flat:"",shallow:"shadow-md",deep:"shadow-xl"}},_hoisted_1$L={class:"flex flex-col justify-end card-contents card-contents--product"},_hoisted_2$A={key:0},_hoisted_3$u={class:"text-sm"},_hoisted_4$m={class:"flex items-center justify-between"},_hoisted_5$h={key:0},_hoisted_6$c={class:"text-xl font-normal line-through"},_hoisted_7$b={class:"ml-2 text-xl font-bold"},_hoisted_8$9={key:1,class:"text-xl font-normal"},_hoisted_9$6={key:0,class:"px-2 py-1 mr-1 text-xs font-bold leading-4 text-white bg-red-500 border border-red-500 rounded-full"},_sfc_main$W=defineComponent({name:"ContentCardProduct",inheritAttrs:!0,__name:"Product",props:{style:{},detail:{},isCover:{type:Boolean}},setup(e){var o,c,d,f,b,m,S,w,T;const t=e,r=[];return((d=(c=(o=t.style)==null?void 0:o.background)==null?void 0:c.image)==null?void 0:d.opacity)!==void 0&&r.push(`opacity-${(m=(b=(f=t.style)==null?void 0:f.background)==null?void 0:b.image)==null?void 0:m.opacity}`),r.push((T=(w=(S=t.style)==null?void 0:S.background)==null?void 0:w.image)!=null&&T.fill?"object-cover":"object-contain"),(A,C)=>{var P;return openBlock(),createElementBlock("div",{class:normalizeClass([[("useStyleObject"in A?A.useStyleObject:unref(useStyleObject))(e.style),{"absolute bottom-0 h-full flex align-end":((P=e.style)==null?void 0:P.style)=="cover"}],"text-clear bg-surface-high"])},[createBaseVNode("div",_hoisted_1$L,[e.detail?(openBlock(),createElementBlock("div",_hoisted_2$A,[createBaseVNode("div",_hoisted_3$u,toDisplayString(e.detail.name),1),createBaseVNode("div",_hoisted_4$m,[createBaseVNode("div",null,[e.detail.salePrice?(openBlock(),createElementBlock("span",_hoisted_5$h,[createBaseVNode("span",_hoisted_6$c,toDisplayString(e.detail.salePrice),1),createBaseVNode("span",_hoisted_7$b,toDisplayString(e.detail.price),1)])):(openBlock(),createElementBlock("span",_hoisted_8$9,toDisplayString(e.detail.price),1))]),e.detail.salePrice?(openBlock(),createElementBlock("div",_hoisted_9$6," SALE ")):createCommentVNode("",!0)])])):createCommentVNode("",!0)])],2)}}}),_sfc_main$V={__name:"index",props:{tag:{type:String,default:"h3"},isSecondary:{type:Boolean,default:!1},jumbo:{type:Boolean,default:!1}},setup(e){const t=e,r=computed(()=>(t.isSecondary?{h1:"text-4xl md:text-5xl",h2:"text-3xl md:text-4xl",h3:"text-2xl md:text-3xl",h4:"text-xl md:text-2xl",h5:"text-lg md:text-xl",h6:"text-md md:text-lg",h7:"text-sm md:text-md"}:{h1:"text-heading-4xl md:text-heading-5xl",h2:t.jumbo?"text-heading-4xl md:text-heading-8xl":"text-heading-3xl md:text-heading-4xl",h3:"text-heading-2xl md:text-heading-3xl",h4:"text-heading-xl md:text-heading-2xl",h5:"text-heading-lg md:text-heading-xl",h6:"text-heading-md md:text-heading-lg",h7:"text-heading-sm md:text-heading-md"})[t.tag]);return(o,c)=>(openBlock(),createBlock(resolveDynamicComponent(e.tag),{class:normalizeClass(`${e.tag} ${unref(r)} font-heading font-bold`)},{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},8,["class"]))}},index$2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$V},Symbol.toStringTag,{value:"Module"})),_sfc_main$U=Object.assign({name:"LottieAnimation"},{__name:"index",props:["animationDataPath","loopOnStart","rendererSettings"],setup(e){const t=e,r=ref(),o=ref(),c=()=>{r.value.play()},d=()=>{r.value.stop()};return onMounted(()=>{r.value=bodymovin.loadAnimation({container:o.value,renderer:"svg",loop:t.loopOnStart,autoplay:t.loopOnStart,path:t.animationDataPath,rendererSettings:t.rendererSettings}),t.loopOnStart.value||(r.value.onComplete=()=>{d()}),c(),c()}),(f,b)=>(openBlock(),createElementBlock("div",{ref_key:"lottie",ref:o,class:"lottie",onMouseenter:b[0]||(b[0]=m=>e.loopOnStart?"":c())},null,544))}}),__nuxt_component_0=_export_sfc$1(_sfc_main$U,[["__scopeId","data-v-b4b65bfb"]]),index$1=Object.freeze(Object.defineProperty({__proto__:null,default:__nuxt_component_0},Symbol.toStringTag,{value:"Module"})),usePropertiesStore=defineStore("properties-store",()=>{const e=useRuntimeConfig(),t=computed(()=>e.public.properties||null),r=computed(()=>Object.keys(e.public.properties)||[]),o=ref(r.value[0]),c=computed(()=>r.value[0]),d=computed(()=>{var f,b,m,S;return!o.value||!t.value?e:{public:{...t.value[o.value],styleOptions:t.value[o.value].style.options||{uppercase:[],footerBackgroun
180dColor:{color:"primary",shade:"800"},footerTextColor:{color:"white"}},baseStyleObjectCard:((f=t.value[o.value].club)==null?void 0:f.baseStyleObjectCard)||{borderRadius:"medium"},menus:{...t.value[o.value].core.menus,burgerMenu:(S=(m=(b=t.value[o.value].core)==null?void 0:b.menus)==null?void 0:m.header)==null?void 0:S.primaryMenuItems}}}});return{setProperty:f=>{o.value=f},resetProperty:()=>{o.value=c.value},property:o,properties:t,propertyIds:r,defaultProperty:c,activePropertyConfig:d}}),useTheme=(e="light")=>{var B,U,D;const t=useRuntimeConfig(),r=(B=t.public.club.theme)==null?void 0:B[e],o=(U=t.public.club.theme)==null?void 0:U[e==="light"?"dark":"light"],c=(D=t.public.club.theme)==null?void 0:D.club,d=usePropertiesStore(),{activePropertyConfig:f}=toRefs(d),b=computed(()=>{var $,z;return(z=($=t.public)==null?void 0:$.styleOptions)!=null&&z.cardsUseSecondary?"!font-sans heading-secondary":""}),m=computed(()=>{var $,z,V,F;return($=r==null?void 0:r.color)!=null&&$.shade?`text-${(z=r==null?void 0:r.color)==null?void 0:z.color}-${(V=r==null?void 0:r.color)==null?void 0:V.shade}`:`text-${(F=r==null?void 0:r.color)==null?void 0:F.color}`}),S=computed(()=>{var $,z,V,F;return($=o==null?void 0:o.color)!=null&&$.shade?`text-${(z=o==null?void 0:o.color)==null?void 0:z.color}-${(V=o==null?void 0:o.color)==null?void 0:V.shade}`:`text-${(F=o==null?void 0:o.color)==null?void 0:F.color}`}),w=computed(()=>{var $,z,V,F;return c!=null&&c.backgroundColor.shade?`text-${($=c==null?void 0:c.backgroundColor)==null?void 0:$.color}-${(z=c==null?void 0:c.backgroundColor)==null?void 0:z.shade}`:(V=r==null?void 0:r.backgroundColor)!=null&&V.color?`text-${(F=c==null?void 0:c.backgroundColor)==null?void 0:F.color}`:"text-primary-500"}),T=computed(()=>{var $,z,V,F;return($=r==null?void 0:r.backgroundColor)!=null&&$.shade?`bg-${(z=r==null?void 0:r.backgroundColor)==null?void 0:z.color}-${(V=r==null?void 0:r.backgroundColor)==null?void 0:V.shade}`:`bg-${(F=r==null?void 0:r.backgroundColor)==null?void 0:F.color}`}),A=computed(()=>{var $,z,V;return o!=null&&o.backgroundColor.shade?`bg-${($=o==null?void 0:o.backgroundColor)==null?void 0:$.color}-${(z=o==null?void 0:o.backgroundColor)==null?void 0:z.shade}`:`bg-${(V=o==null?void 0:o.backgroundColor)==null?void 0:V.color}`}),C=computed(()=>{var $,z,V,F;return($=c==null?void 0:c.backgroundColor)!=null&&$.shade?`bg-${(z=c.backgroundColor)==null?void 0:z.color}-${(V=c.backgroundColor)==null?void 0:V.shade}`:(F=c==null?void 0:c.backgroundColor)!=null&&F.color?`bg-${c.backgroundColor.color}`:"bg-primary-500"}),P=computed(()=>$=>{var z,V,F,ee;return(z=r==null?void 0:r.accentColor)!=null&&z.shade?`${$}-${(V=r==null?void 0:r.accentColor)==null?void 0:V.color}-${(F=r==null?void 0:r.accentColor)==null?void 0:F.shade} ${$==="border"?"border":""}`:`${$}-${(ee=r==null?void 0:r.accentColor)==null?void 0:ee.color} ${$==="border"?"border":""}`});return{textColor:m,altTextColor:S,primaryTextColor:w,backgroundColor:T,altBackgroundColor:A,primaryBackgroundColor:C,borderRadius:computed(()=>{var $,z,V,F,ee;switch((z=($=f.value.public)==null?void 0:$.club)!=null&&z.baseStyleObjectCard?(ee=(F=(V=f.value.public)==null?void 0:V.club)==null?void 0:F.baseStyleObjectCard)==null?void 0:ee.borderRadius:"medium"){case"small":return"rounded-sm";case"medium":return"rounded-lg";case"large":return"rounded-2xl";default:return""}}),cardsSecondaryFont:b,accentColor:P,getIsUppercase:$=>{var z;return((z=t.public.styleOptions.uppercase)==null?void 0:z.includes($))&&"uppercase"}}},_hoisted_1$K={key:0,class:"absolute left-0 w-full h-full transition duration-100 translate-y-full t-0 group-active/button:translate-y-0 opacity-20 bg-btn-tertiary-bg-active"},_hoisted_2$z={key:1,class:"z-50 transition duration-100"},_hoisted_3$t={key:1,class:"absolute z-50 items-center duration-200 ease-in-out translate-y-1/2 opacity-0 group-hover/button:flex group-hover/button:opacity-100 group-hover/button:-translate-y-0"},_sfc_main$T=defineComponent({name:"PrimitiveButton",__name:"index",props:{link:{default:""},linkType:{default:""},content:{default:""},loading:{type:Boolean,default:!1},icon:{default:""},iconPack:{default:"navigation"},iconViewBox:{default:"0 0 24 24"},iconSize:{default:16},target:{default:""},download:{type:Boolean,default:!1},type:{default:"primary-light"},hover:{default:""},disabled:{type:Boolean},iconAlign:{default:""}},emits:["clicked"],setup(e,{emit:t}){const{borderRadius:r}=useTheme(),o=useRuntimeConfig(),c={"primary-light":"primary","primary-dark":"primary","ghost-light":"secondary","ghost-dark":"secondary","label-light":"tertiary","label-dark":"tertiary",primary:"primary",secondary:"secondary",tertiary:"tertiary"},d={primary:"!cursor-pointer bg-btn-primary-bg text-btn-primary-text active:text-btn-primary-text-active hover:text-btn-primary-text-hover active:bg-btn-primary-bg-active hover:bg-btn-primary-bg-hover border border-btn-primary-bg",secondary:"!cursor-pointer bg-btn-secondary-bg text-btn-secondary-text active:text-btn-secondary-text-active hover:text-btn-secondary-text-hover border border-btn-secondary-stroke active:bg-btn-secondary-bg-active hover:bg-btn-secondary-bg-hover",tertiary:"!cursor-pointer border-0 border-b-2 border-opacity-0 hover:border-opacity-100 rounded-none border-btn-tertiary-stroke border bg-btn-tertiary-bg text-btn-tertiary-text active:text-btn-tertiary-text-active hover:text-btn-tertiary-text-hover hover:border-b-btn-tertiary-text border-transparent","primary-disabled":"text-btn-primary-text-disabled bg-btn-primary-bg-disabled","secondary-disabled":"text-btn-secondary-text-disabled bg-btn-secondary-bg-disabled border-2 border-btn-secondary-text-disabled","tert
180iary-disabled":"text-btn-tertiary-text-disabled bg-btn-tertiary-bg-disabled border-btn-tertiary-stroke-disabled"},f=e,b=t,m=P=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P),S=!(!f.download&&f.linkType!=="file")||void 0,w=S?"a":m(f.link)?"button":__nuxt_component_1$1,T=computed(()=>S&&!f.link?void 0:S&&f.link?`https://images.gc.${o.public.servicesURL}/${f.link}`:(f==null?void 0:f.linkType)==="tel"?`tel:${f.link}`:f.link?f.link:void 0),A=useRouter(),C=P=>{if(!S){if(f.link)return m(f.link)?(P.preventDefault(),P.stopPropagation(),void(window.location.href=`mailto:${f.link}`)):void(f.linkType==="external"||f.link.startsWith("http://")||f.link.startsWith("https://")||f.linkType!=="tel"&&f.target!=="_blank"&&A.push(f.link));b("clicked")}};return(P,B)=>{const U=_sfc_main$12,D=__nuxt_component_0;return e.content?(openBlock(),createBlock(resolveDynamicComponent(unref(w)),{key:0,class:normalizeClass(["py-3 px-3.5 flex justify-center items-center box-border overflow-hidden gap-2 text-base font-bold min-w-[155px] relative group/button transition-colors duration-100 ease-in-out primitive-button",[e.type,c[e.type],unref(r),e.disabled?d[c[e.type]+"-disabled"]:d[c[e.type]]]]),target:unref(S)?"_blank":e.target,download:unref(S),href:unref(S)?unref(T):void 0,to:unref(S)?void 0:unref(T),onClick:withModifiers(C,["stop"])},{default:withCtx(()=>[c[e.type]!=="tertiary"||e.disabled?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1$K)),createBaseVNode("div",{class:normalizeClass(["z-50 flex items-center gap-2",[{"group-hover/button:-translate-y-full group-hover/button:opacity-0 duration-200 ease-in-out":e.hover==="icon-move","flex-row-reverse":e.iconAlign==="right"}]])},[e.icon&&!e.loading?(openBlock(),createBlock(U,{key:0,icon:e.icon,pack:e.iconPack||"navigation",size:e.iconSize,"custom-view-box":e.iconViewBox||"0 0 24 24",class:"z-50"},null,8,["icon","pack","size","custom-view-box"])):createCommentVNode("",!0),e.loading?(openBlock(),createBlock(D,{key:2,class:"w-[24px] h-[24px] transition-all origin-center","animation-data-path":"/assets/lottie/loading.json","loop-on-start":""})):(openBlock(),createElementBlock("span",_hoisted_2$z,toDisplayString(e.content),1))],2),e.hover==="icon-move"?(openBlock(),createElementBlock("div",_hoisted_3$t,[e.icon&&!e.loading?(openBlock(),createBlock(U,{key:0,icon:e.icon,pack:e.iconPack||"navigation",size:e.iconSize,"custom-view-box":e.iconViewBox||"0 0 24 24",class:"z-50"},null,8,["icon","pack","size","custom-view-box"])):(openBlock(),createBlock(D,{key:1,class:"w-[24px] h-[24px] transition-all origin-center","animation-data-path":"/assets/lottie/loading.json","loop-on-start":""}))])):createCommentVNode("",!0)]),_:1},8,["class","target","download","href","to"])):createCommentVNode("",!0)}}}),_hoisted_1$J=["innerHTML"],_hoisted_2$y={key:2,class:"flex mt-auto content-meta"},_hoisted_3$s={key:3,class:"flex gap-2 pt-4 card-actions"},_sfc_main$S=defineComponent({name:"ContentCardContent",inheritAttrs:!0,__name:"Content",props:{content:{},style:{},isCover:{type:Boolean},isHero:{type:Boolean}},setup(e){const t=e,r=useRuntimeConfig(),o=computed(()=>{var m;if(!t.content.timestamp)return"";const f=(m=t==null?void 0:t.content)==null?void 0:m.timestamp,b=DateTime.fromISO(f);return DateTime.now().minus({days:7})<b?b.toRelative():b.toFormat("d MMMM yy")}),c=computed(()=>f=>{if(f.url)return f.url;if(f!=null&&f.linkType)switch(f==null?void 0:f.linkType){case"file":return`https://images.gc.${r.public.servicesURL}/${f.action}`;case"email":return`mailto:${f.action}`;case"tel":return`tel:${f.action}`}return f.action?f.action:void 0}),d=f=>{var b,m,S;return(m=(b=t==null?void 0:t.style)==null?void 0:b.child)!=null&&m[f]?useStyleObject((S=t==null?void 0:t.style)==null?void 0:S.child[f]):null};return(f,b)=>{var w,T,A,C,P,B,U,D,$,z,V,F;const m=_sfc_main$V,S=_sfc_main$T;return openBlock(),createElementBlock("div",{class:normalizeClass(["flex flex-col flex-grow w-full bg-surface-high text-clear",[{"absolute bottom-0 h-full":e.isCover},((w=e.style)==null?void 0:w.theme)||"light"]])},[createBaseVNode("div",{class:normalizeClass(["flex flex-col flex-grow p-4 card-contents",{"justify-end":e.isCover}])},[e.content.title?(openBlock(),createBlock(m,{key:0,class:normalizeClass(["font-bold content-card__title !line-clamp-3 !md:line-clamp-4",{"!font-sans heading-secondary":((A=(T=unref(r).public)==null?void 0:T.styleOptions)==null?void 0:A.cardsUseSecondary)===!0&&e.isHero!==!0,heading:((P=(C=unref(r).public)==null?void 0:C.styleOptions)==null?void 0:P.cardsUseSecondary)!==!0||e.isHero==1,uppercase:(((B=unref(r).public.styleOptions)==null?void 0:B.uppercase)||[]).includes("heroCard")&&e.isHero===!0}]),tag:"h3","is-secondary":((D=(U=unref(r).public)==null?void 0:U.styleOptions)==null?void 0:D.cardsUseSecondary)==1},{default:withCtx(()=>
180[createTextVNode(toDisplayString(e.content.title),1)]),_:1},8,["class","is-secondary"])):createCommentVNode("",!0),($=e.content)!=null&&$.description&&((z=e.content)==null?void 0:z.description)!=="Promo Card"?(openBlock(),createElementBlock("div",{key:1,class:"pt-4 description",innerHTML:e.content.description},null,8,_hoisted_1$J)):createCommentVNode("",!0),e.content.subtext!=null&&e.content.subtext.length>0||unref(o)!="Invalid DateTime"&&unref(o).length>0?(openBlock(),createElementBlock("span",_hoisted_2$y,[createBaseVNode("p",{class:normalizeClass(e.style?d(0):"")},toDisplayString(e.content.subtext)+" |",3),unref(o)!="Invalid DateTime"?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(["ml-1",e.style?d(1):"opacity-50"])},toDisplayString(unref(o)),3)):createCommentVNode("",!0)])):createCommentVNode("",!0),Array.isArray(e.content.actionUrl)?(openBlock(),createElementBlock("div",_hoisted_3$s,[(openBlock(!0),createElementBlock(Fragment,null,renderList((F=(V=e.content)==null?void 0:V.actionUrl)==null?void 0:F.filter(ee=>{var te;return((te=ee==null?void 0:ee.title)==null?void 0:te.length)>0}),ee=>(openBlock(),createElementBlock(Fragment,null,[ee.display?(openBlock(),createBlock(S,{key:ee.title,content:ee==null?void 0:ee.title,to:unref(c)(ee),download:(ee==null?void 0:ee.linkType)==="file"&&ee.action,icon:ee==null?void 0:ee.icon,"icon-pack":ee==null?void 0:ee.iconPack,"icon-align":ee==null?void 0:ee.iconAlign,target:ee==null?void 0:ee.target,type:ee==null?void 0:ee.type,class:"text-sm action"},null,8,["content","to","download","icon","icon-pack","icon-align","target","type"])):createCommentVNode("",!0)],64))),256))])):createCommentVNode("",!0)],2)],2)}}});var l=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,u=e=>!e||typeof e!="object"||Object.keys(e).length===0,x$1=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function i(e,t){e.forEach(function(r){Array.isArray(r)?i(r,t):t.push(r)})}function y(e){let t=[];return i(e,t),t}var a=(...e)=>y(e).filter(Boolean),p=(e,t)=>{let r={},o=Object.keys(e),c=Object.keys(t);for(let d of o)if(c.includes(d)){let f=e[d],b=t[d];Array.isArray(f)||Array.isArray(b)?r[d]=a(b,f):r[d]=typeof f=="object"&&typeof b=="object"?p(f,b):b+" "+f}else r[d]=e[d];for(let d of c)o.includes(d)||(r[d]=t[d]);return r},g=e=>e&&typeof e=="string"?e.replace(/\s+/g," ").trim():e;const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{const d=c.split(CLASS_PART_SEPARATOR);return d[0]===""&&d.length!==1&&d.shift(),getGroupRecursive(d,t)||getGroupIdForArbitraryProperty(c)},getConflictingClassGroupIds:(c,d)=>{const f=r[c]||[];return d&&o[c]?[...f,...o[c]]:f}}},getGroupRecursive=(e,t)=>{var f;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),c=o?getGroupRecursive(e.slice(1),o):void 0;if(c)return c;if(t.validators.length===0)return;const d=e.join(CLASS_PART_SEPARATOR);return(f=t.validators.find(({validator:b})=>b(d)))==null?void 0:f.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},createClassMap=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const c in r)processClassesRecursively(r[c],o,c,t);return o},processClassesRecursively=(e,t,r,o)=>{e.forEach(c=>{if(typeof c=="string")return void((c===""?t:getPart(t,c)).classGroupId=r);if(typeof c=="function")return isThemeGetter(c)?void processClassesRecursively(c(o),t,r,o):void t.validators.push({validator:c,classGroupId:r});Object.entries(c).forEach(([d,f])=>{processClassesRecursively(f,getPart(t,d),r,o)})})},getPart=(e,t)=>{let r=e;return t.split(CLASS_PART_SEPARATOR).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const c=(d,f)=>{r.set(d,f),t++,t>e&&(t=0,o=r,r=new Map)};return{get(d){let f=r.get(d);return f!==void 0?f:(f=o.get(d))!==void 0?(c(d,f),f):void 0},set(d,f){r.has(d)?r.set(d,f):c(d,f)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=MODIFIER_SEPARATOR.length,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=c=>{const d=[];let f,b=0,m=0,S=0;for(let A=0;A<c.length;A++){let C=c[A];if(b===0&&m===0){if(C===MODIFIER_SEPARATOR){d.push(c.slice(S,A)),S=A+MODIFIER_SEPARATOR_LENGTH;continue}if(C==="/"){f=A;continue}}C==="["?b++:C==="]"?b--:C==="("?m++:C===")"&&m--}
180const w=d.length===0?c:c.substring(S),T=stripImportantModifier(w);return{modifiers:d,hasImportantModifier:T!==w,baseClassName:T,maybePostfixModifierPosition:f&&f>S?f-S:void 0}};if(t){const c=t+MODIFIER_SEPARATOR,d=o;o=f=>f.startsWith(c)?d(f.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:f,maybePostfixModifierPosition:void 0}}if(r){const c=o;o=d=>r({className:d,parseClassName:c})}return o},stripImportantModifier=e=>e.endsWith(IMPORTANT_MODIFIER)?e.substring(0,e.length-1):e.startsWith(IMPORTANT_MODIFIER)?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let c=[];return r.forEach(d=>{d[0]==="["||t[d]?(o.push(...c.sort(),d),c=[]):c.push(d)}),o.push(...c.sort()),o}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:d}=t,f=[],b=e.trim().split(SPLIT_CLASSES_REGEX);let m="";for(let S=b.length-1;S>=0;S-=1){const w=b[S],{isExternal:T,modifiers:A,hasImportantModifier:C,baseClassName:P,maybePostfixModifierPosition:B}=r(w);if(T){m=w+(m.length>0?" "+m:m);continue}let U=!!B,D=o(U?P.substring(0,B):P);if(!D){if(!U){m=w+(m.length>0?" "+m:m);continue}if(D=o(P),!D){m=w+(m.length>0?" "+m:m);continue}U=!1}const $=d(A).join(":"),z=C?$+IMPORTANT_MODIFIER:$,V=z+D;if(f.includes(V))continue;f.push(V);const F=c(D,U);for(let ee=0;ee<F.length;++ee){const te=F[ee];f.push(z+te)}m=w+(m.length>0?" "+m:m)}return m};function twJoin(){let e,t,r=0,o="";for(;r<arguments.length;)(e=arguments[r++])&&(t=toValue(e))&&(o&&(o+=" "),o+=t);return o}const toValue=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=toValue(e[o]))&&(r&&(r+=" "),r+=t);return r};function createTailwindMerge(e,...t){let r,o,c,d=function(b){const m=t.reduce((S,w)=>w(S),e());return r=createConfigUtils(m),o=r.cache.get,c=r.cache.set,d=f,f(b)};function f(b){const m=o(b);if(m)return m;const S=mergeClassList(b,r);return c(b,S),S}return function(){return d(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$1=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$1(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$1),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isNever,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,r)=>{const o=arbitraryValueRegex.exec(e);return!!o&&(o[1]?t(o[1]):r(o[2]))},getIsArbitraryVariable=(e,t,r=!1)=>{const o=arbitraryVariableRegex.exec(e);return!!o&&(o[1]?t(o[1]):r)},isLabelPosition=e=>e==="position",imageLabels=new Set(["image","url"]),isLabelImage=e=>imageLabels.has(e),sizeLabels=new Set(["length","size","percentage"]),isLabelSize=e=>sizeLabels.has(e),isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),r=fromTheme("text"),o=fromTheme("font-weight"),c=fromTheme("tracking"),d=fromTheme("leading"),f=fromTheme("breakpoint"),b=fromTheme("container"),m=fromTheme("spacing"),S=fromTheme("radius"),w=fromTheme("shadow"),T=fromTheme("inset-shadow"),A=fromTheme("drop-shadow"),C=fromTheme("blur"),P=fromTheme("perspective"),B=fromTheme("aspect"),U=fromTheme("ease"),D=fromTheme("animate"),$=()=>[isArbitraryVariable,isArbitraryValue,m],z=()=>[isFraction,"full","auto",...$()],V=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],F=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariable,isArbitraryValue],ee=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],te=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],K=()=>["auto",...$()],H=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],X=()=>[e,isArbitraryVariable,isArbitraryValue],J=()=>[isPercent,isArbitraryLength],G=()=>["","none","full",S,isArbitraryVariable,isArbitraryValue],Q=()=>["",isNumber$1,isArbitraryVariableLength,isArbitraryLength],pe=()=>["","none",C,isArbitraryVariable,isArbitraryValue],ye=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryVariable,isArbitraryValue],de=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],_e=()=>["none",isNumber$1,isArbitraryVariable,isArbitraryValue],Re=()=>[isNumber$1,isArbitraryVariable,isArbitraryValue],ge=()=>[isFraction,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$1],text:[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,B]}
vendor: 4,503 bytes, line 180
180],container:["container"],columns:[{columns:[isNumber$1,isArbitraryValue,isArbitraryVariable,b]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",isArbitraryValue,isArbitraryVariable]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",b,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$1,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","stretch","baseline"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","stretch","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[b,"screen",...H()]}],"min-w":[{"min-w":[b,"screen","none",...H()]}],"max-w":[{"max-w":[b,"screen","none","prose",{screen:[f]},...H()]}],h:[{h:["screen",...H()]}],"min-h":[{"min-h":["screen","none",...H()]}],"max-h":[{"max-h":["screen",...H()]}],"font-size":[{text:["base",r,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,isArbitraryVariable,isArbitraryNumber]}
vendor: 4,409 bytes, line 180
180],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$1,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[d,...$()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$1,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[isNumber$1,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",isArbitraryVariablePosition,isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}
vendor: 4,546 bytes, line 180
180],"divide-color":[{divide:X()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$1,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",w,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",isArbitraryVariable,isArbitraryValue,T]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[isNumber$1,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":X()}],opacity:[{opacity:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:pe()}],brightness:[{brightness:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",A,isArbitraryVariable,isArbitraryValue]}],grayscale:[{grayscale:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$1,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$1,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$1,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",U,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$1,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",D,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[P,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":ye()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:ye()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}
vendor: 1,949 bytes, line 180
180],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[isNumber$1,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}
180],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},mergeConfigs=(e,{cacheSize:t,prefix:r,experimentalParseClassName:o,extend:c={},override:d={}})=>(overrideProperty(e,"cacheSize",t),overrideProperty(e,"prefix",r),overrideProperty(e,"experimentalParseClassName",o),overrideConfigProperties(e.theme,d.theme),overrideConfigProperties(e.classGroups,d.classGroups),overrideConfigProperties(e.conflictingClassGroups,d.conflictingClassGroups),overrideConfigProperties(e.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),overrideProperty(e,"orderSensitiveModifiers",d.orderSensitiveModifiers),mergeConfigProperties(e.theme,c.theme),mergeConfigProperties(e.classGroups,c.classGroups),mergeConfigProperties(e.conflictingClassGroups,c.conflictingClassGroups),mergeConfigProperties(e.conflictingClassGroupModifiers,c.conflictingClassGroupModifiers),mergeArrayProperties(e,c,"orderSensitiveModifiers"),e),overrideProperty=(e,t,r)=>{r!==void 0&&(e[t]=r)},overrideConfigProperties=(e,t)=>{if(t)for(const r in t)overrideProperty(e,r,t[r])},mergeConfigProperties=(e,t)=>{if(t)for(const r in t)mergeArrayProperties(e,t,r)},mergeArrayProperties=(e,t,r)=>{const o=t[r];o!==void 0&&(e[r]=e[r]?e[r].concat(o):o)},extendTailwindMerge=(e,...t)=>typeof e=="function"?createTailwindMerge(getDefaultConfig,e,...t):createTailwindMerge(()=>mergeConfigs(getDefaultConfig(),e),...t),twMerge=createTailwindMerge(getDefaultConfig);var ie={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},x=e=>e||void 0,N=(...e)=>x(y(e).filter(Boolean).join(" ")),R=null,v$1={},q=!1,M=(...e)=>t=>t.twMerge?((!R||q)&&(q=!1,R=u(v$1)?twMerge:extendTailwindMerge({...v$1,extend:{theme:v$1.theme,classGroups:v$1.classGroups,conflictingClassGroupModifiers:v$1.conflictingClassGroupModifiers,conflictingClassGroups:v$1.conflictingClassGroups,...v$1.extend}})),x(R(N(e)))):N(e),_=(e,t)=>
180{for(let r in t)e.hasOwnProperty(r)?e[r]=N(e[r],t[r]):e[r]=t[r];return e},ce=(e,t)=>{let{extend:r=null,slots:o={},variants:c={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:b={}}=e,m={...ie,...t},S=r!=null&&r.base?N(r.base,e==null?void 0:e.base):e==null?void 0:e.base,w=r!=null&&r.variants&&!u(r.variants)?p(c,r.variants):c,T=r!=null&&r.defaultVariants&&!u(r.defaultVariants)?{...r.defaultVariants,...b}:b;!u(m.twMergeConfig)&&!x$1(m.twMergeConfig,v$1)&&(q=!0,v$1=m.twMergeConfig);let A=u(r==null?void 0:r.slots),C=u(o)?{}:{base:N(e==null?void 0:e.base,A&&(r==null?void 0:r.base)),...o},P=A?C:_({...r==null?void 0:r.slots},u(C)?{base:e==null?void 0:e.base}:C),B=u(r==null?void 0:r.compoundVariants)?d:a(r==null?void 0:r.compoundVariants,d),U=D=>{if(u(w)&&u(o)&&A)return M(S,D==null?void 0:D.class,D==null?void 0:D.className)(m);if(B&&!Array.isArray(B))throw new TypeError('The "compoundVariants" prop must be an array. Received: '+typeof B);if(f&&!Array.isArray(f))throw new TypeError('The "compoundSlots" prop must be an array. Received: '+typeof f);let $=(X,J,G=[],Q)=>{let pe=G;if(typeof J=="string")pe=pe.concat(g(J).split(" ").map(ye=>`${X}:${ye}`));else if(Array.isArray(J))pe=pe.concat(J.reduce((ye,de)=>ye.concat(`${X}:${de}`),[]));else if(typeof J=="object"&&typeof Q=="string"){for(let ye in J)if(J.hasOwnProperty(ye)&&ye===Q){let de=J[ye];if(de&&typeof de=="string"){let _e=g(de);pe[Q]?pe[Q]=pe[Q].concat(_e.split(" ").map(Re=>`${X}:${Re}`)):pe[Q]=_e.split(" ").map(Re=>`${X}:${Re}`)}else Array.isArray(de)&&de.length>0&&(pe[Q]=de.reduce((_e,Re)=>_e.concat(`${X}:${Re}`),[]))}}return pe},z=(X,J=w,G=null,Q=null)=>{var pe;let ye=J[X];if(!ye||u(ye))return null;let de=(pe=Q==null?void 0:Q[X])!=null?pe:D==null?void 0:D[X];if(de===null)return null;let _e=l(de),Re=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,ge=T==null?void 0:T[X],Ce=[];if(typeof _e=="object"&&Re)for(let[Ue,Ne]of Object.entries(_e)){let We=ye[Ne];Ue!=="initial"?Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(Ue)||(Ce=$(Ue,We,Ce,G)):ge=Ne}let Me=ye[(_e!=null&&typeof _e!="object"?_e:l(ge))||"false"];return typeof Ce=="object"&&typeof G=="string"&&Ce[G]?_(Ce,Me):Ce.length>0?(Ce.push(Me),G==="base"?Ce.join(" "):Ce):Me},V=(X,J)=>{if(!w||typeof w!="object")return null;let G=new Array;
180for(let Q in w){let pe=z(Q,w,X,J),ye=X==="base"&&typeof pe=="string"?pe:pe&&pe[X];ye&&(G[G.length]=ye)}return G},F={};for(let X in D)D[X]!==void 0&&(F[X]=D[X]);let ee=(X,J)=>{var G;let Q=typeof(D==null?void 0:D[X])=="object"?{[X]:(G=D[X])==null?void 0:G.initial}:{};return{...T,...F,...Q,...J}},te=(X=[],J)=>{let G=[];for(let{class:Q,className:pe,...ye}of X){let de=!0;for(let[_e,Re]of Object.entries(ye)){let ge=ee(_e,J)[_e];if(Array.isArray(Re)){if(!Re.includes(ge)){de=!1;break}}else{let Ce=Me=>Me==null||Me===!1;if(Ce(Re)&&Ce(ge))continue;if(ge!==Re){de=!1;break}}}de&&(Q&&G.push(Q),pe&&G.push(pe))}return G},K=X=>{let J=te(B,X);if(!Array.isArray(J))return J;let G={};for(let Q of J)if(typeof Q=="string"&&(G.base=M(G.base,Q)(m)),typeof Q=="object")for(let[pe,ye]of Object.entries(Q))G[pe]=M(G[pe],ye)(m);return G},H=X=>{if(f.length<1)return null;let J={};for(let{slots:G=[],class:Q,className:pe,...ye}of f){if(!u(ye)){let de=!0;for(let _e of Object.keys(ye)){let Re=ee(_e,X)[_e];if(Re===void 0||(Array.isArray(ye[_e])?!ye[_e].includes(Re):ye[_e]!==Re)){de=!1;break}}if(!de)continue}for(let de of G)J[de]=J[de]||[],J[de].push([Q,pe])}return J};if(!u(o)||!A){let X={};if(typeof P=="object"&&!u(P))for(let J of Object.keys(P))X[J]=G=>{var Q,pe;return M(P[J],V(J,G),((Q=K(G))!=null?Q:[])[J],((pe=H(G))!=null?pe:[])[J],G==null?void 0:G.class,G==null?void 0:G.className)(m)};return X}return M(S,w?Object.keys(w).map(X=>z(X,w)):null,te(B),D==null?void 0:D.class,D==null?void 0:D.className)(m)};return U.variantKeys=(()=>{if(w&&typeof w=="object")return Object.keys(w)})(),U.extend=r,U.base=S,U.slots=P,U.variants=w,U.defaultVariants=T,U.compoundSlots=f,U.compoundVariants=B,U};const v=ce({base:"",variants:{variant:{clear:"",subtle:"opacity-60",caption:"uppercase opacity-40 tracking-widest",dim:"text-dim","accent-alt":"text-accent-alt"},size:{"2xs":"",xs:"",sm:"",md:"",lg:"",xl:"","2xl":"","3xl":"","4xl":"","5xl":"","6xl":""},font:{primary:"font-heading",secondary:"font-sans"},tag:{p:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:""},fontWeight:{regular:"",medium:"font-medium",bold:"font-bold"},fontStyle:{normal:"",italic:"italic"},alignment:{start:"text-left",center:"text-center",end:"text-right"},textTransform:{none:"normal-case",capitalize:"capitalize",uppercase:"uppercase"},lineClamp:{1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3",4:"line-clamp-4",5:"line-clamp-5",6:"line-clamp-6"}},compoundVariants:[{font:"primary",size:"xs",class:"font-heading text-heading-xs"},{font:"primary",size:"sm",class:"font-heading text-heading-sm"},{font:"primary",size:"md",class:"font-heading text-heading-md"},{font:"primary",size:"lg",class:"font-heading text-heading-lg"},{font:"primary",size:"xl",class:"font-heading text-heading-xl"},{font:"primary",size:"2xl",class:"font-heading text-heading-2xl"},{font:"primary",size:"3xl",class:"font-heading text-heading-3xl"},{font:"primary",size:"4xl",class:"font-heading text-heading-4xl"},{font:"primary",size:"5xl",class:"font-heading text-heading-5xl"},{font:"primary",size:"6xl",class:"font-heading text-heading-6xl"},{font:"secondary",size:"2xs",class:"text-2xs"},{font:"secondary",size:"xs",class:"text-xs"},{font:"secondary",size:"sm",class:"text-sm"},{font:"secondary",size:"md",class:"text-md"},{font:"secondary",size:"lg",class:"text-lg"},{font:"secondary",size:"xl",class:"text-xl"},{font:"secondary",size:"2xl",class:"text-2xl"},{font:"secondary",size:"3xl",class:"text-3xl"},{font:"secondary",size:"4xl",class:"text-4xl"},{font:"secondary",size:"5xl",class:"text-5xl"},{font:"secondary",size:"6xl",class:"text-6xl"},{font:"secondary",tag:"h1",class:"text-4xl md:text-5xl font-bold"},{font:"secondary",tag:"h2",class:"text-3xl md:text-4xl font-bold"},{font:"secondary",tag:"h3",class:"text-2xl md:text-3xl font-bold"},{font:"secondary",tag:"h4",class:"text-xl md:text-2xl font-bold"},{font:"secondary",tag:"h5",class:"text-lg md:text-xl font-medium"},{font:"secondary",tag:"h6",class:"text-base md:text-lg font-medium"},{font:"primary",tag:"h1",class:"font-heading text-heading-4xl md:text-heading-5xl font-bold"},{font:"primary",tag:"h2",class:"font-heading text-heading-3xl md:text-heading-4xl font-bold"},{font:"primary",tag:"h3",class:"font-heading text-heading-2xl md:text-heading-3xl font-bold"},{font:"primary",tag:"h4",class:"font-heading text-heading-xl md:text-heading-2xl font-bold"},{font:"primary",tag:"h5",class:"font-heading text-heading-lg md:text-heading-xl font-medium"},{font:"primary",tag:"h6",class:"font-heading text-heading-base md:text-heading-lg font-medium"}],defaultVariants:{size:"md",tag:"p",variant:"clear",font:"secondary"}}),_sfc_main$R=defineComponent({name:"Typography",__name:"index",props:{tag:{default:"p"},variant:{default:"clear"},size:{default:"md"},font:{default:"secondary"},content:{},show:{type:Boolean},fontWeight:{default:"regular"},fontStyle:{default:"normal"},alignment:{default:void 0},textTransform:{},lineClamp:{}},setup(e){const t=e,r=computed(()=>v({size:t.size??void 0,variant:t.variant,font:t.font,tag:t.tag,fontStyle:t.fontStyle,fontWeight:t.fontWeight,alignment:t.alignment,textTransform:t.textTransform,lineClamp:t.lineClamp}));return(o,c)=>(openBlock(),createBlock(resolveDynamicComponent(e.tag),{class:normalizeClass([unref(r),e.tag])},{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},8,["class"]))}}),_hoisted_1$I={class:"w-full py-2 overflow-hidden aspect-video max-w-[120px]"},_sfc_main$Q=defineComponent({__name:"index",props:{theme:{default:"light"},description:{default:null},image:{default:()=>{}},link:{default:()=>{}}},setup:e=>(t,r)=>{const o=_sfc_main$R,c=_sfc_main$$,d=__nuxt_component_1$1;return e.image?(openBlock(),createBlock(d,{key:0,class:normalizeClass(["flex items-center justify-between w-full h-full px-4 py-1 max-h-16 bg-surface-high text-clear gc-admin-no-click",e.theme]),to:e.link,external:"",target:"_blank"},{default:withCtx(()=>[renderSlot(t.$slots,"description",{},()=>[createVNode(o,{class:"w-full mt-1 font-bold",size:"sm"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.description??"In Association With:"),1)]),_:1})]),renderSlot(t.$slots,"sponsor",{},()=>[createBaseVNode("div",_hoisted_1$I,[createVNode(c,{src:("useGCImage"in t?t.useGCImage:unref(useGCImage))(!0,120,120,e.image.image),class:"object-contain w-full h-full"},null,8,["src"])])])]),_:3},8,["class","to"])):createCommentVNode("",!0)}}),setInterval$1=window.setInterval,_sfc_main$P=defineComponent({__name:"index",props:{theme:{default:"light"},sponsors:{default:()=>[]},interval:{default:5e3}},setup(e){const t=ref(e.sponsors[0]),r=ref();return onMounted(()=>{e.sponsors.length<=1||(r.value=setInterval$1(()=>{const o=(e.sponsors.findIndex(c=>{var d,f,b;return((f=(d=t.value)==null?void 0:d.image)==null?void 0:f.image)===((b=c.image)==null?void 0:b.image)})+1)%e.sponsors.length;t.value=e.sponsors[o]},e.interval))}),onBeforeUnmount(()=>{clearInterval(r.value)}),(o,c)=>{const d=_sfc_main$Q;return openBlock(),createBlock(Transition,{appear:"",class:normalizeClass(["transition-all duration-[1.2s] ease-in-out transform",e.theme]),"enter-from-class":"z-20 translate-y-32","leave-to-class":"z-10 delay-100 translate-y-32"},{default:withCtx(()=>{var f;return[unref(t)&&unref(t).image?(openBlock(),createBlock(d,mergeProps({key:0},unref(t),{key:(f=unref(t).image)==null?void 0:f.image,image:{image:unref(t).image.image}}),{description:withCtx(()=>[renderSlot(o.$slots,"description")]),_:3},16,["image"])):createCommentVNode("",!0)]}),_:3},8,["class"])}}}),_hoisted_1$H={key:0,class:"relative z-10 w-full h-10 pl-6 -mt-10"},_hoisted_2$x={key:1,class:"relative z-20 w-full h-10 pl-6 -mt-10 text-white bg-primary-800"},_hoisted_3$r={class:"flex items-center justify-start h-full"},_hoisted_4$l={key:2,class:"relative w-full h-10 pl-6 -mt-10 text-gray-700 bg-gray-100"},_hoisted_5$g={class:"flex items-center justify-start h-full"},_hoisted_6$b={class:"text-xs"},_hoisted_7$a={class:"text-base text-gray-500 player-card__first-name"},_hoisted_8$8={class:"mb-4 text-2xl font-bold text-black ellipsis-1 player-card__last-name"},_hoisted_9$5={key:1,class:"mt-6 mb-4 text-2xl font-bold text-black ellipsis-1 player-card__last-name"},_hoisted_10$5={class:"flex items-center justify-between"},_hoisted_11$2={class:"tracking-[2.4px] text-xs text-gray-500 uppercase w-[220px] ellipsis-2 leading-4"},_sfc_main$O=defineComponent({name:"ContentCardPlayer",inheritAttrs:!0,__name:"Player",props:{style:{},content:{}},setup(e){var A,C,P;const t=e,r=useRuntimeConfig(),o=(P=(C=(A=r.public)==null?void 0:A.sport)==null?void 0:C.football)==null?void 0:P.showPlayerSponsors,c=computed(()=>{var B;return t.content.playerProfile&&((B=t.content.playerProfile.sponsorsArray)==null?void 0:B.map(U=>({image:{image:U.sponsorImageKey}})))||[]}),d=computed(()=>t.content.title.split(" ")[0]),f=computed(()=>t.content.title.split(" ").slice(1).join(" ")),b=computed(()=>{var D,$,z,V,F,ee;const B=(z=($=(D=r.public)==null?void 0:D.styleOptions)==null?void 0:$.playerSquadNumber)==null?void 0:z.color,U=(ee=(F=(V=r.public)==null?void 0:V.styleOptions)==null?void 0:F.playerSquadNumber)==null?void 0:ee.shade;return B?`text-${B}${U!==void 0?"-"+U:""}`:"text-gray-100"}),m=computed(()=>t.content.realPosition!=="Unknown"?t.content.realPosition:void 0),S=computed(()=>{var B,U;return{backgroundImage:`url('/assets/flags/4x3/${(U=(B=t.content)==null?void 0:B.countryCode)==null?void 0:U.toLowerCase()}.svg')`}}),w=computed(()=>{var B,U;return{"justify-end":((B=t.style)==null?void 0:B.style)==="cover","justify-between":((U=t.style)==null?void 0:U.style)!=="cover"&&t.content.widgetType!=="Promo"}}),T=computed(()=>{var B,U;return["font-bold text-heading-3xl flex justify-start flex-col",{"!font-sans":(U=(B=r.public)==null?void 0:B.styleOptions)==null?void 0:U.cardsUseSecondary}]});return(B,U)=>{var F;const D=_sfc_main$R,$=_sfc_main$P,z=_sfc_main$12,V=_sfc_main$V;return openBlock(),createElementBlock("div",{class:normalizeClass(["flex flex-col w-full !max-h-[147px]",{"absolute bottom-0 h-full":((F=e.style)==null?void 0:F.style)==="cover"}]),"data-card-type":"Player"},[unref(c)&&unref(o)?(openBlock(),createElementBlock("div",_hoisted_1$H,[createVNode($,{sponsors:unref(c),interval:3e3,class:normalizeClass(["absolute bottom-0 left-0 z-10 w-full h-10",{"bottom-10 !border-0":e.content.captain||e.content.loaned}])},{description:withCtx(()=>[createVNode(D,{class:"ml-2",size:"xs"},{default:withCtx(()=>[...U[0]||(U[0]=[createTextVNode(" Sponsored by ",-1)])]),_:1})]),_:1},8,["sponsors","class"])])):createCommentVNode("",!0),e.content.captain?(openBlock(),createElementBlock("div",_hoisted_2$x,[createBaseVNode("div",_hoisted_3$r,[e.content.captain?(openBlock(),createBlock(z,{key:0,pack:"player",icon:"captain",size:24,class:"mr-2"})):createCommentVNode("",!0),U[1]||(U[1]=createBaseVNode("p",{class:"text-xs"},"Captain",-1))])])):createCommentVNode("",!0),e.content.loaned?(openBlock(),createElementBlock("div",_hoisted_4$l,[createBaseVNode("div",_hoisted_5$g,[createBaseVNode("p",_hoisted_6$b,"Loaned in: "+toDisplayString(e.content.loanedFrom),1)])])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["z-20 flex flex-col flex-grow card-contents bg-surface-high",unref(w)])},[e.content.hideShirtNumber?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["absolute z-10 text-5xl font-bold top-6 left-6",unref(b)])},toDisplayString(e.content.shirtNumber),3)),createBaseVNode("div",null,[e.content.title?(openBlock(),createBlock(V,{key:0,class:normalizeClass(unref(T))},{default:withCtx(()=>[e.content.knownName?(openBlock(),createElementBlock("span",_hoisted_9$5,toDisplayString(e.content.knownName),1)):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",_hoisted_7$a,toDisplayString(e.content.firstName||unref(d)),1),createBaseVNode("span",_hoisted_8$8,toDisplayString(e.content.lastName||unref(f)),1)],64))]),_:1},8,["class"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_10$5,[createBaseVNode("div",_hoisted_11$2,toDisplayString(unref(m)),1),createBaseVNode("div",{class:"z-10 w-8 h-6 ml-4 border rounded-sm",style:normalizeStyle(unref(S))},null,4)])])],2)],2)}}}),_hoisted_1$G={class:"absolute flex items-center justify-center gap-1 px-2 py-1 text-xs text-white rounded-lg top-2 left-2 bg-gray-900/70"}
180,_sfc_main$N=defineComponent({__name:"EntitlementBadge",props:{entitlement:{}},setup:e=>(t,r)=>{const o=_sfc_main$12;return openBlock(),createElementBlock("div",_hoisted_1$G,[createVNode(o,{size:10,pack:"video",icon:"play"}),createTextVNode(" "+toDisplayString(e.entitlement),1)])}}),useStyleObjectCard=(e,t=!1)=>{var b,m,S,w,T;const r=usePropertiesStore(),{activePropertyConfig:o}=toRefs(r);if(!(e={...(m=(b=o.value)==null?void 0:b.public)==null?void 0:m.baseStyleObjectCard,...e}))return"";const d=[],f=useStyleObject(e,t);for(const[A,C]of Object.entries(e)){if(!C)continue;const P=A,B=C;if(P!=="child"){if(P==="hover"){const U=(S=useStyleObjectCard(C))==null?void 0:S.trim(),D=U.split(" ").map($=>`hover:${$}`).join(" ");d.push(D);continue}(w=styleToClassesMap[P])!=null&&w[B]&&d.push((T=styleToClassesMap[P])==null?void 0:T[B])}}return`${d.join(" ")} ${f}`},styleToClassesMap={style:{cover:"cover",stacked:"stack"},alignContent:{left:"items-start text-start",centre:"justify-center text-center",right:"items-end text-end"},cardFormat:{portrait:"",landscape:"","landscape-reverse":""},child:{}},useNewsCard=e=>{var r,o,c,d,f,b,m,S;e=e.attributes!==void 0?e:{attributes:e};const t=useRuntimeConfig().public.club.slugs;return{title:e.attributes.postTitle,imageKey:((o=(r=e==null?void 0:e.attributes)==null?void 0:r.listingImageData)==null?void 0:o.key)||((d=(c=e==null?void 0:e.attributes)==null?void 0:c.imageData)==null?void 0:d.key),timestamp:e.attributes.publishedDateTime,mobileImageKey:(b=(f=e==null?void 0:e.attributes)==null?void 0:f.heroSmallImageData)==null?void 0:b.key,cardType:"news-article",subtext:e.attributes.postCategoryName||e.attributes.newsCategory,cardStyle:e.attributes.cardStyle,actionUrl:(S=(m=e.attributes)==null?void 0:m.postSlug)==null?void 0:S.replace("/news",`/${t.news}`)}},getVideoThumbnail=(e,t=720,r=405)=>{var c,d,f,b,m,S,w,T,A,C,P,B,U,D,$;if((b=(f=(d=(c=e==null?void 0:e.attributes)==null?void 0:c._source)==null?void 0:d.imageData)==null?void 0:f.landscape)!=null&&b.imageKey)return useGCImage(!1,t,r,e.attributes._source.imageData.landscape.imageKey);if((w=(S=(m=e==null?void 0:e.attributes)==null?void 0:m.imageData)==null?void 0:S.landscape)!=null&&w.imageKey)return useGCImage(!1,t,r,e.attributes.imageData.landscape.imageKey);if((T=e==null?void 0:e.mediaData)!=null&&T.thumbnailUrl)return`${e.mediaData.thumbnailUrl}width/${t}`;if((C=(A=e==null?void 0:e.attributes)==null?void 0:A.imageData)!=null&&C.posterImageKey)return useGCImage(!1,t,r,e.attributes.imageData.posterImageKey);const o=((P=e==null?void 0:e.attributes)==null?void 0:P.assetData)||((U=(B=e==null?void 0:e.attributes)==null?void 0:B._source)==null?void 0:U.assetData);return`https://image.mux.com/${($=(D=o==null?void 0:o.playbackIds)==null?void 0:D[0])==null?void 0:$.id}/thumbnail.jpg?token=${o==null?void 0:o.thumbnailToken}&time=10&width=${t}&height=${r}`},useVideoCard=e=>useRuntimeConfig().public.club.features.streamline?getStreamlineModel(e):getStreamAmgModel(e),getStreamlineModel=e=>{var r,o,c,d,f,b,m,S,w,T,A,C,P,B,U,D;const t={free:"Free",freemium:"Login"};return{title:((r=e.attributes._source)==null?void 0:r.title)||e.attributes.title,imageUrl:getVideoThumbnail(e),hoverImgUrl:getHoverImgUrl(e),timestamp:((c=(o=e.attributes._source)==null?void 0:o.publicationData)==null?void 0:c.startAt)||((d=e.attributes.publicationData)==null?void 0:d.startAt),cardType:"video-single",subtext:((f=e.attributes._source)==null?void 0:f.tagData.categories[0])||((m=(b=e.attributes.tagData)==null?void 0:b.categories)==null?void 0:m[0]),actionUrl:`/videos/${e.attributes._id?e.attributes._id:e.id}`,length:Duration.fromObject({seconds:((w=(S=e.attributes._source)==null?void 0:S.assetData)==null?void 0:w.duration)||((T=e.attributes.assetData)==null?void 0:T.duration)||((A=e.attributes.migrationData)==null?void 0:A.duration)}).toFormat("mm:ss"),entitlement:t[(B=(P=(C=e.attributes._source)==null?void 0:C.accessData)==null?void 0:P.entitlements)==null?void 0:B[0]]||t[(D=(U=e.attributes.accessData)==null?void 0:U.entitlements)==null?void 0:D[0]]}},getStreamAmgModel=e=>{var r,o,c,d,f,b;const t=e.metaData.SysEntryEntitlements;return{title:(r=e.metaData)==null?void 0:r.title,imageUrl:getVideoThumbnail(e),timestamp:(o=e.publicationData)==null?void 0:o.createdAt,cardType:"video-single",subtext:((d=(c=e.attributes)==null?void 0:c._source)==null?void 0:d.description)||((b=(f=e.metaData)==null?void 0:f.categories)==null?void 0:b[0])||void 0,actionUrl:`/videos/${e.mediaData.entryId}`,length:Duration.fromObject({seconds:e.metaData.VideoDuration}).toFormat("mm:ss"),entitlement:t.includes("?")?"Free":t.includes("*")||t.length===0?"Login":"Subscriber"}},getHoverImgUrl=e=>{var r,o;const t=e.attributes.assetData||e.attributes._source.assetData;return(o=(r=t==null?void 0:t.playbackIds)==null?void 0:r[0])!=null&&o.id&&(t!=null&&t.gifToken)?`https://image.mux.com/${t==null?void 0:t.playbackIds[0].id}/animated.gif?token=${t==null?void 0:t.gifToken}&time=10&width=400&height=200`:getVideoThumbnail(e)},useCard=e=>{const t=(e==null?void 0:e.type)||"news-article";if(t==="custom")return e;
180const r={"news-article":useNewsCard,video:useVideoCard,custom:()=>null,page:()=>null,player:()=>null}[t];return r==null?null:r(e)},_hoisted_1$F={class:"relative flex-auto overflow-hidden image-wrap"},_sfc_main$M=defineComponent({name:"ContentCard",__name:"index",props:{data:{},widget:{},style:{default:void 0},keepAspect:{type:[String,Boolean],default:!1},isHero:{type:Boolean,default:!1},inHero:{type:Boolean,default:!1}},setup(e){var te,K,H,X,J,G,Q,pe,ye;const t=e,r=ref(t.data instanceof Promise?null:t.data);watch(()=>t.data,async de=>{de instanceof Promise||de&&typeof de.then=="function"?r.value=await de:r.value=de},{immediate:!0});const o=useRoute$1(),c=useRuntimeConfig();let d;try{d=JSON.parse(t.widget.contents)}catch{d=!1}const f=computed(()=>{var de,_e;return{...t.style,theme:m.value?"dark":(de=t.style)==null?void 0:de.theme,background:m.value||(_e=t.style)==null?void 0:_e.background}}),b=computed(()=>{var Re,ge,Ce,Me,Ue,Ne;const de=(Ce=(ge=(Re=c.public)==null?void 0:Re.styleOptions)==null?void 0:ge.playerBackgroun
180d)==null?void 0:Ce.color,_e=(Ne=(Ue=(Me=c.public)==null?void 0:Me.styleOptions)==null?void 0:Ue.playerSquadNumber)==null?void 0:Ne.shade;return de?`bg-${de}${_e!==void 0?"-"+_e:""}`:"bg-primary-500"}),m=computed(()=>{var de,_e,Re;return!!t.isHero||(S.value.cardType==="news-article"?S.value.cardStyle==="Cover":((_e=(de=t.widget)==null?void 0:de.layout)==null?void 0:_e.style)==="cover"||((Re=t.style)==null?void 0:Re.style)==="cover")}),S=computed(()=>{var de;return((de=r.value)==null?void 0:de.widgetName)=="Promo"?d:r.value!=null?useCard(r.value):d||null}),w=computed(()=>t.widget),T=computed(()=>{var de,_e,Re,ge,Ce,Me,Ue,Ne,We,et,rt,re,ne,Se,he,we,xe,ze;return(_e=(de=w.value)==null?void 0:de.link)!=null&&_e.link?w.value.link.link:typeof((Re=S==null?void 0:S.value)==null?void 0:Re.actionUrl)=="string"?`${(ge=S==null?void 0:S.value)==null?void 0:ge.actionUrl}`:((Ue=(Me=(Ce=S==null?void 0:S.value)==null?void 0:Ce.actionUrl)==null?void 0:Me[0])==null?void 0:Ue.linkType)==="file"?`https://images.gc.${(Ne=c==null?void 0:c.public)==null?void 0:Ne.servicesURL}/${(et=(We=S==null?void 0:S.value)==null?void 0:We.actionUrl)==null?void 0:et[0].action}`:((re=(rt=S==null?void 0:S.value.actionUrl)==null?void 0:rt[0])==null?void 0:re.linkType)==="email"?`mailto:${(ne=S==null?void 0:S.value.actionUrl)==null?void 0:ne[0].action}`:(we=(he=(Se=S==null?void 0:S.value)==null?void 0:Se.actionUrl)==null?void 0:he[0])!=null&&we.action?`${(ze=(xe=S==null?void 0:S.value)==null?void 0:xe.actionUrl)==null?void 0:ze[0].action}`:void 0}),A=computed(()=>{var de,_e,Re,ge,Ce,Me,Ue;return((ge=(Re=(_e=(de=r.value)==null?void 0:de.attributes)==null?void 0:_e.imageData)==null?void 0:Re.landscape)==null?void 0:ge.imageKey)!==void 0?(Ce=r.value)==null?void 0:Ce.attributes.imageData.landscape.imageKey:typeof(S==null?void 0:S.value.imageKey)=="string"?S==null?void 0:S.value.imageKey:((Me=S==null?void 0:S.value.imageKey)==null?void 0:Me.image)!==void 0?(Ue=S==null?void 0:S.value.imageKey)==null?void 0:Ue.image:c.public.core.news.articleCardPlaceholderKey}),C=computed(()=>t.inHero||t.isHero),P=computed(()=>C.value?[2400,2e3,1600,1200]:[1600,1200]),B=computed(()=>C.value?1600:1200),U=computed(()=>C.value?900:675),D=computed(()=>{var de,_e;return((de=r.value)==null?void 0:de.type)==="video"||((_e=S.value)==null?void 0:_e.cardType)==="video-single"}),$=computed(()=>{if(!D.value)return;const de=C.value?2400:1200,_e=C.value?1350:675;return getVideoThumbnail(r.value,de,_e)}),z=computed(()=>{var de;return D.value?$.value||c.public.core.news.articleCardPlaceholderKey:((de=S==null?void 0:S.value)==null?void 0:de.imageUrl)||A.value}),V=[];((H=(K=(te=t.style)==null?void 0:te.background)==null?void 0:K.image)==null?void 0:H.opacity)!=null&&V.push(`opacity-${(G=(J=(X=t.style)==null?void 0:X.background)==null?void 0:J.image)==null?void 0:G.opacity}`),V.push((ye=(pe=(Q=t.style)==null?void 0:Q.background)==null?void 0:pe.image)!=null&&ye.fill?"object-cover":"object-contain");const F=V.join(" "),ee=ref(`${o==null?void 0:o.path}${t!=null&&t.inHero?`hero${Math.random()}`:""}`);return onMounted(()=>{ee.value=`${o==null?void 0:o.path}${t!=null&&t.inHero?`hero${Math.random()}`:""}${window.loadTime}`}),(de,_e)=>{var re,ne,Se,he,we,xe,ze,Ee,se,L;const Re=__nuxt_component_2$1,ge=_sfc_main$$,Ce=_sfc_main$_,Me=_sfc_main$X,Ue=_sfc_main$W,Ne=_sfc_main$S,We=_sfc_main$O,et=_sfc_main$N,rt=__nuxt_component_1$1;return unref(S)?(openBlock(),createBlock(rt,{key:0,class:normalizeClass(["flex overflow-hidden content-card min-w-[256px] min-h-[320px] relative transition duration-500 translate-y-0 hover:-translate-y-1 hover:shadow-xl cursor-pointer group/card text-clear bg-surface-low group",[(re=unref(r))==null?void 0:re.type,("useStyleObjectCard"in de?de.useStyleObjectCard:unref(useStyleObjectCard))(unref(f),!0),((ne=e.style)==null?void 0:ne.theme)||((he=(Se=e.widget)==null?void 0:Se.style)==null?void 0:he.theme)||"light",{cover:unref(m),stacked:!unref(m),promo:(xe=(we=e.widget)==null?void 0:we.widgetName)==null?void 0:xe.includes("Promo"),inHero:e.inHero,product:((ze=unref(w))==null?void 0:ze.type)=="product",keepAspect:e.keepAspect=="always",keepAspectDesktop:e.keepAspect=="desktop",player:unref(w).cardType=="player"}]]),to:unref(T),target:(L=(se=(Ee=unref(r))==null?void 0:Ee.actionUrl)==null?void 0:se[0])==null?void 0:L.target},{default:withCtx(()=>{var j,Z,le,Te,Ae,Le,Ke,nt,Be,vt,ht,mt,$t,Mt,Dt,Qe,pt,Ut,jt,hr,_r,mn,kr,gr,On,Ln,gn,wr,zr,zn,Fn,At,Fr,yn,Rn,un;return[createBaseVNode("div",{class:normalizeClass(["relative flex w-full h-full content-card-contents",{"content-right":((j=e.style)==null?void 0:j.alignContent)=="right",cover:unref(m),stacked:!unref(m),inHero:e.inHero,promo:(le=(Z=e.widget)==null?void 0:Z.widgetName)==null?void 0:le.includes("Promo"),product:((Te=unref(w))==null?void 0:Te.type)=="product",profile:((Ae=unref(w))==null?void 0:Ae.type)=="custom",player:unref(w).cardType=="player"}])},[createBaseVNode("div",_hoisted_1$F,[((Le=unref(r))==null?void 0:Le.type)==="video"?(openBlock(),createBlock(Re,{key:0,widget:e.widget,theme:(nt=(Ke=e.widget)==null?void 0:Ke.style)==null?void 0:nt.theme,class:"transition duration-300 opacity-0 group-hover/card:flex group-hover/card:opacity-100"},null,8,["widget","theme"])):createCommentVNode("",!0),unref(m)&&((vt=(Be=e.style)==null?void 0:Be.background)==null?void 0:vt.image)!=null?(openBlock(),createBlock(ge,{key:1,src:($t=(mt=(ht=e.style)==null?void 0:ht.background)==null?void 0:mt.image)==null?void 0:$t.image,class:normalizeClass(["absolute top-0 left-0 z-0 object-left-top w-full h-full",unref(F)])},null,8,["src","class"])):createCommentVNode("",!0),(openBlock(),createBlock(Ce,{key:unref(ee),"image-key":unref(z),"mobile-image-key":(Mt=unref(S))==null?void 0:Mt.mobileImageKey,"base-width":unref(B),"base-height":unref(U),"disable-lazy":e.inHero||e.isHero,alt:(Dt=unref(S))!=null&&Dt.title?unref(S).title:"",sizes:unref(P),class:normalizeClass(["relative w-full h-full z-1 content-card-image",[((Qe=unref(w))==null?void 0:Qe.type)=="product"?"object-contain":"object-cover",{"object-contain":!1,"object-cover":!0,"group-hover/card:brightness-90 transition duration-150":unref(m)}]]),"image-origins":((Ut=(pt=unref(r))==null?void 0:pt.attributes)==null?void 0:Ut.imageOrigins)||((jt=unref(r))==null?void 0:jt.imageOrigins)},null,8,["image-key","mobile-image-key","base-width","base-height","disable-lazy","alt","sizes","image-origins","class"])),((hr=unref(r))==null?void 0:hr.type)==="video"?(openBlock(),createBlock(Me,{key:2,class:"transition duration-300 origin-center group-hover/card:scale-0",length:(_r=unref(S))==null?void 0:_r.length},null,8,["length"])):createCommentVNode("",!0),unref(w).cardType=="player"?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(["absolute top-0 left-0 w-full h-full -z-10",unref(b)])},null,2)):createCommentVNode("",!0),unref(m)?(openBlock(),createElementBlock("div",{key:4,class:normalizeClass({"absolute left-0 bottom-0 w-full h-[60%] bg-gradient-to-t from-black to-transparent z-2 content-card-image-overlay":((kr=(mn=unref(S))==null?void 0:mn.description)==null?void 0:kr.length)||((On=(gr=unref(S))==null?void 0:gr.title)==null?void 0:On.length)||((gn=(Ln=unref(w).detail)==null?void 0:Ln.name)==null?void 0:gn.length)})},null,2)):createCommentVNode("",!0),unref(m)&&unref(w).type=="product"?(openBlock(),createBlock(Ue,{key:5,detail:unref(w).detail,content:unref(S),style:normalizeStyle({...e.style,backgroundColor:void 0,backgroundShade:void 0}),"is-cover":unref(m),class:"text-white bg-transparent content-area--cover"},null,8,["detail","content","style","is-cover"])):unref(m)?(openBlock(),createBlock(Ne,{key:6,class:normalizeClass(["",`bg-transparent content-area--cover text-white ${("useStyleObject"in de?de.useStyleObject:unref(useStyleObject))(unref(f),!0)}`]),content:unref(S),style:normalizeStyle({...e.style||((wr=e.widget)==null?void 0:wr.style),backgroundColor:void 0,backgroundShade:void 0}),"is-cover":unref(m),"is-hero":e.isHero},null,8,["content","style","class","is-cover","is-hero"])):createCommentVNode("",!0)]),unref(m)||unref(w).type!="product"?unref(w).cardType=="player"?(openBlock(),createBlock(We,{key:1,class:normalizeClass(["",`bg-${(zr=e.style)==null?void 0:zr.backgroundColor}-${(zn=e.style)==null?void 0:zn.backgroundShade} content-area`]),content:unref(S),style:normalizeStyle(e.style)}
180,null,8,["content","style","class"])):unref(m)?createCommentVNode("",!0):(openBlock(),createBlock(Ne,{key:2,class:normalizeClass(["",`text-clear bg-${(Fn=e.style)==null?void 0:Fn.backgroundColor}-${(At=e.style)==null?void 0:At.backgroundShade} content-area ${("useStyleObject"in de?de.useStyleObject:unref(useStyleObject))(unref(f),!0)}`]),content:unref(S),style:normalizeStyle(e.style||((Fr=e.widget)==null?void 0:Fr.style)),"is-cover":unref(m),"is-hero":e.isHero},null,8,["content","style","class","is-cover","is-hero"])):(openBlock(),createBlock(Ue,{key:0,class:normalizeClass(["",`text-black bg-${(yn=e.style)==null?void 0:yn.backgroundColor}-${(Rn=e.style)==null?void 0:Rn.backgroundShade} content-area`]),detail:unref(w).detail,content:unref(S),style:normalizeStyle(e.style),"is-cover":unref(m)},null,8,["detail","content","style","is-cover","class"]))],2),((un=unref(r))==null?void 0:un.type)==="video"&&unref(S).entitlement?(openBlock(),createBlock(et,{key:0,class:"transition duration-300 origin-center group-hover/card:scale-0",entitlement:unref(S).entitlement},null,8,["entitlement"])):createCommentVNode("",!0)]}),_:1},8,["class","to","target"])):createCommentVNode("",!0)}}}),_hoisted_1$E=["href"],_hoisted_2$w={class:"flex items-center p-6 transition-transform bg-bg-secondary-nav-main rounded cursor-pointer group/card hover:scale-[1.01]"},_hoisted_3$q={class:"pr-4 truncate"},_sfc_main$L=defineComponent({__name:"index",props:{data:{}},emits:["on-click"],setup(e,{emit:t}){const r=t,o=()=>r("on-click");return(c,d)=>{const f=_sfc_main$12;return openBlock(),createElementBlock("a",{href:`/${e.data.attributes.fullPath}`,onClick:o},[createBaseVNode("div",_hoisted_2$w,[createBaseVNode("h3",_hoisted_3$q,toDisplayString(e.data.attributes.postTitle),1),createVNode(f,{icon:"chevronRight",pack:"navigation",size:18,class:"ml-auto transition-transform duration-300 group-hover/card:translate-x-2"})])],8,_hoisted_1$E)}}}),_sfc_main$K=defineComponent({name:"Spinner",__name:"index",props:{size:{default:"medium"}},setup:e=>(t,r)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`lds-ring ${e.size}`)},[...r[0]||(r[0]=[createBaseVNode("div",null,null,-1),createBaseVNode("div",null,null,-1),createBaseVNode("div",null,null,-1),createBaseVNode("div",null,null,-1)])],2))});function useScrollLoader(e,t,r,o,c,d){const f=ref([]),b=ref(1),m=ref(!1),S=ref(!0),w=ref(null),T=toRef(t);watch(T,()=>{C(),A()});const A=async()=>{if(S.value&&!m.value){m.value=!0,await nextTick$1();try{const P=await e(b.value,r,T.value);w.value=P.meta?P.meta:P.pagingData?{totalCount:P.pagingData.totalCount,totalPages:P.pagingData.pageCount}:null;const B=P.data??P.itemData;f.value.push(...B),w.value&&b.value>=w.value.totalPages?(S.value=!1,d&&d()):b.value++}catch(P){console.error("useScrollLoader: failed to load items",P),S.value=!1}finally{m.value=!1}}},C=()=>{f.value=[],w.value=null,b.value=1,S.value=!0};return{loadMoreItems:A,handleScroll:()=>{if(!o||m.value||!S.value)return;const P=o;P.scrollTop&&c&&c(P.scrollTop),P.scrollHeight-P.scrollTop-P.clientHeight<200&&A()},loading:m,items:f}}const useScrollLoader$1=Object.freeze(Object.defineProperty({__proto__:null,useScrollLoader},Symbol.toStringTag,{value:"Module"})),_hoisted_1$D={key:0},_hoisted_2$v={class:"flex justify-center py-28"},_hoisted_3$p={key:1},_sfc_main$J=defineComponent({__name:"InfiniteScroll",props:{fetchFn:{},container:{},query:{},chunkSize:{default:12},columns:{default:1},onScroll:{type:Function,default:void 0},onEndOfResults:{type:Function,default:void 0}},setup(e){const t=e,{items:r,loadMoreItems:o,handleScroll:c,loading:d}=useScrollLoader(t.fetchFn,toRef(t,"query"),t.chunkSize,t.container,t.onScroll,t.onEndOfResults),f=new MutationObserver(()=>{c()});return onMounted(()=>{t.container.addEventListener("scroll",c),o(),f.observe(t.container,{childList:!0})}),onUnmounted(()=>{t.container.removeEventListener("scroll",c)}),(b,m)=>{const S=_sfc_main$K;return unref(r).length===0&&unref(d)?(openBlock(),createElementBlock("div",_hoisted_1$D,[createBaseVNode("div",_hoisted_2$v,[createVNode(S)])])):unref(r).length!==0||unref(d)?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(["relative grid content-start overflow-x-clip",["grid-cols-1",`lg:grid-cols-${Math.min(e.columns,2)}`,`xl:grid-cols-${e.columns}`]])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(r),(w,T)=>renderSlot(b.$slots,"default",{key:T,item:w})),128)),unref(r).length>1&&unref(d)?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.chunkSize,w=>renderSlot(b.$slots,"skeleton",{key:"inf-scroll-skele-"+w},()=>[m[1]||(m[1]=createBaseVNode("div",{class:"bg-barely-visible rounded animate-pulse h-[112px]"},null,-1))])),128)):createCommentVNode("",!0)],2)):(openBlock(),createElementBlock("div",_hoisted_3$p,[renderSlot(b.$slots,"no-results",{},()=>[m[0]||(m[0]=createBaseVNode("h2",{class:"mt-5 text-2xl font-bold text-center py-28"},"No Results Found.",-1))])]))}}}),useStore=defineStore({id:"store",state:()=>({_showHeader:!0,_showFooter:!0,showStreamlinePromo:!1,showMenu:!1,showSearch:!1,showMDT:!1,isChildfriendly:!1,showSSO:!1,showRegister:!1,sso:{message:void 0,verify:!1,reset:!1,setNewPassword:!1},cleengAuthed:!1,eflCollective:!1,useManagedAds:!1}),getters:{isMenuOpen:e=>e.showMenu,showHeader:e=>useRoute$1().query.isApp!=="true"&&e._showHeader,showFooter:e=>useRoute$1().query.isApp!=="true"&&e._showFooter,isPagePreview(){var t,r;return((r=(t=useRoute$1().params)==null?void 0:t.slug)==null?void 0:r[0])==="preview"}},actions:{setHeaderVisibility(e){this._showHeader=e},setFooterVisibility(e){this._showFooter=e},setChildFriendly(e){this.isChildfriendly=e},getChildFriendly(e){return e!==!1||!this.isChildfriendly},toggleMenu(){this.showMenu=!this.showMenu},setCleengAuth(e){this.cleengAuthed=e},setManagedAds(e){this.useManagedAds=e},setEflCollective(e){this.eflCollective=e}}}),_sfc_main$I=defineComponent({__name:"index",props:{headerMode:{}
180,transparentBackgroundNav:{type:Boolean}},setup(e){const{$gc:t}=useNuxtApp(),r=ref(!1),o=ref(""),c=useStore(),d=useRuntimeConfig(),f=ref(),b=ref(!1),m=ref(!1),S=d.public.club.features["streaming-site"]??!1,w=ref(S?"video":"news"),T=e,A=computed(()=>[{id:"news",name:"News",isActive:w.value==="news",chunkSize:18,expectedCardHeight:112,totalResults:P.news,hidden:S},{id:"video",name:"Video",isActive:w.value==="video",chunkSize:12,expectedCardHeight:320,totalResults:P.video},{id:"pages",name:"Pages",isActive:w.value==="pages",chunkSize:21,expectedCardHeight:72,totalResults:P.pages,hidden:S}]),C=computed(()=>A.value.find(G=>G.id===w.value)||A.value[0]),P=reactive({news:0,video:0,pages:0}),B=G=>{r.value=G>50},U=computed(()=>Object.values(P).some(G=>G>0)),D=G=>{f.value&&(f.value.scrollTop=0),b.value=!1,w.value=G.id},$=()=>{b.value=!0},z=computed(()=>{switch(C.value.id){case"news":case"pages":default:return 3;case"video":return 4}}),V=async(G,Q,pe)=>{var ye;m.value=!0;try{const de=await t().news.web().getSearchResults(X(pe),!1,{page:{number:G,size:Q},sort:"publishedDateTime:desc"},!0,!1)??[];return P.news=((ye=de.meta)==null?void 0:ye.totalCount)??de.pagingData.totalCount,de}finally{m.value=!1}},F=async(G,Q,pe)=>{var ye;m.value=!0;try{const de=await t().videos.web().getBySearch(X(pe),"raw",G,Q,!0)??[];return P.video=((ye=de.meta)==null?void 0:ye.totalCount)??de.pagingData.totalCount,de}finally{m.value=!1}},ee=async(G,Q,pe)=>{var ye;m.value=!0;try{const de=await t().pages.web().getSearchResults(X(pe),{page:{number:G,size:Q},sort:"savedTimestamp:desc"},!0)??[];return P.pages=((ye=de.meta)==null?void 0:ye.totalCount)??de.pagingData.totalCount,de}finally{m.value=!1}},te=G=>{P.news=0,P.video=0,P.pages=0,b.value=!1,o.value=G},K=async G=>{C.value.id==="pages"&&(c.showSearch=!1),await H(G)},H=async G=>{var pe;const{userData:Q}=await useGAEventData();useAnalyticsEvent("select_item",{item_list_name:"search_results",item_name:((pe=G.attributes)==null?void 0:pe.postTitle)||G.title,user:Q})},X=G=>G?G.replace(/[^\p{L}\p{N}\s\-']/gu,""):"",J=computed(()=>{var Q,pe,ye;let G;return T.transparentBackgroundNav?G=(((Q=document.querySelector("#global-nav"))==null?void 0:Q.clientHeight)??100)+(((pe=document.querySelector("#main-nav"))==null?void 0:pe.clientHeight)??100):G=((ye=document.querySelector("#header-container"))==null?void 0:ye.clientHeight)??100,{top:`${G}px`,height:`calc(100vh - ${G}px)`}});return(G,Q)=>{const pe=_sfc_main$11,ye=_sfc_main$10,de=_sfc_main$Z,_e=_sfc_main$M,Re=_sfc_main$L,ge=_sfc_main$J;return openBlock(),createElementBlock("div",{class:"absolute w-screen overlay-active lock-scroll z-[998] flex flex-col",style:normalizeStyle(unref(J)),onClick:Q[3]||(Q[3]=Ce=>unref(c).showSearch=!1)},[createBaseVNode("div",{class:normalizeClass(["flex-shrink-0 z-[999] px-4 md:px-16 transition-all bg-nav-main-bg-primary",[unref(r)?"pt-3 pb-2":"pt-8 pb-4"]]),onClick:Q[0]||(Q[0]=withModifiers(()=>{},["stop"]))},[createVNode(pe,{onSearch:te,"has-results":unref(U),"active-tab-id":unref(w)},null,8,["has-results","active-tab-id"])],2),createVNode(Transition,{name:"nav-slide"},{default:withCtx(()=>[unref(o)?(openBlock(),createElementBlock("div",{key:0,ref_key:"searchResultsContainer",ref:f,class:"px-4 pb-8 overflow-y-auto md:px-16 bg-nav-main-bg-primary",onClick:Q[2]||(Q[2]=withModifiers(()=>{},["stop"]))},[createVNode(ye,{tabs:unref(A),"total-results":unref(C).totalResults??0,"is-loading":unref(m),onTabClick:D},null,8,["tabs","total-results","is-loading"]),createBaseVNode("div",{class:normalizeClass(["transition-all duration-500 ease-in-out",unref(b)?"h-auto":"h-full"])},[createVNode(Transition,{name:"tab-fade",mode:"out-in"},{default:withCtx(()=>[unref(f)?(openBlock(),createBlock(ge,{key:unref(C).id,container:unref(f),"fetch-fn":unref(C).id==="news"?V:unref(C).id==="video"?F:ee,"on-scroll":B,query:unref(o),"chunk-size":unref(C).chunkSize||15,columns:unref(z),"on-end-of-results":$,class:"gap-4"},{default:withCtx(({item:Ce})=>[createBaseVNode("div",{onClick:Q[1]||(Q[1]=Me=>unref(c).showSearch=!1)},[unref(C).id==="news"?(openBlock(),createBlock(de,{key:0,data:Ce,size:"sm",class:"hover:scale-[1.02] transition-transform duration-200 ease-in-out",onClick:Me=>K(Ce)},null,8,["data","onClick"])):unref(C).id==="video"?(openBlock(),createBlock(_e,{key:1,data:Ce,widget:Ce,onClick:Me=>K(Ce)},null,8,["data","widget","onClick"])):unref(C).id==="pages"?(openBlock(),createBlock(Re,{key:2,data:Ce,onClick:Me=>K(Ce)},null,8,["data","onClick"])):createCommentVNode("",!0)])]),skeleton:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(`bg-nav-main-bg-secondary rounded-lg h-[${unref(C).expectedCardHeight??112}px] shadow-sm`)},null,2)]),"no-results":withCtx(()=>[...Q[4]||(Q[4]=[createBaseVNode("h2",{class:"mt-5 text-2xl font-bold text-center py-28 text-nav-main-fg-clear"},"No Results Found.",-1)])]),_:1},8,["container","fetch-fn","query","chunk-size","columns"])):createCommentVNode("",!0)]),_:1})],2)],512)):createCommentVNode("",!0)]),_:1})],4)}}}),byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}let getRandomValues;
180const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(e,t,r){var c;const o=(e=e||{}).random??((c=e.rng)==null?void 0:c.call(e))??rng();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,unsafeStringify(o)}function v4(e,t,r){return native.randomUUID&&!e?native.randomUUID():_v4(e)}const _hoisted_1$C=["id"],_hoisted_2$u={key:0,class:"flex flex-col items-center justify-center w-full h-full space-y-4 lg:space-y-0 lg:space-x-4 lg:flex-row"},_hoisted_3$o=["href"],_sfc_main$H=defineComponent({name:"WidgetAdvertisingSlot",inheritAttrs:!0,__name:"index",props:{data:{},cardStyle:{type:Boolean},isFullWidthSlot:{type:Boolean}},setup(e){const t=e,r=useStore(),{$gc:o}=useNuxtApp(),c=ref([]),d=ref(),f=ref(!1),b=ref(),m=useRoute(),S=()=>{const w=document.getElementById(`ad-${b.value}`);f.value=!(w&&(w==null?void 0:w.offsetWidth)>620)};return onMounted(async()=>{var A,C,P,B,U,D,$,z,V,F,ee,te,K,H,X,J,G,Q;b.value=v4();let w=((C=(A=t.data)==null?void 0:A.widgetData)==null?void 0:C.slotID)||((U=(B=(P=t.data)==null?void 0:P.contents)==null?void 0:B.widgetData)==null?void 0:U.slotID)||(($=(D=t.data)==null?void 0:D.contents)==null?void 0:$.slotID)||((ee=(F=(V=(z=t.data)==null?void 0:z.contents)==null?void 0:V.contents)==null?void 0:F.widgetData)==null?void 0:ee.slotID)||"generic";(m==null?void 0:m.name)==="index"&&w==="generic"&&(w="homepage_slot"),c.value=await o().advertising.web().getAdvertisingSlots(w);let T=1;w==="homepage__slot"?T=3:w==="news_article_slot"&&(T=2),d.value=((pe,ye)=>{var _e;return(_e=pe.sort(()=>.5-Math.random()).slice(0,ye))==null?void 0:_e[0]})(((K=(te=c.value)==null?void 0:te.attributes)==null?void 0:K.adverts)||void 0,T),window.addEventListener("resize",S),nextTick$1(()=>{S()}),d.value!==void 0&&((Q=window==null?void 0:window.dataLayer)==null||Q.push({event:"ad_load",ads:{advertURL:(X=(H=d.value)==null?void 0:H.advertData)==null?void 0:X.url,advertID:(J=d.value)==null?void 0:J.advertID,advertTitle:(G=d.value)==null?void 0:G.advertTitle}}))}),watch(d,()=>{S()}),(w,T)=>{var C,P,B,U,D,$,z,V,F,ee,te,K,H,X,J,G,Q,pe,ye,de,_e,Re,ge,Ce,Me,Ue,Ne,We,et,rt,re,ne,Se,he,we,xe,ze,Ee,se,L;const A=_sfc_main$$;return unref(b)&&unref(c)&&unref(c).id?(openBlock(),createElementBlock("div",{key:0,id:`ad-${unref(b)}`,class:normalizeClass(["w-full",{"mx-auto":(P=(C=e.data.contents)==null?void 0:C.widgetData)==null?void 0:P.contain,"w-full h-full p-2 backdrop-blur-sm bg-white/[0.05] rounded-lg":e.cardStyle}])},[unref(d)&&unref(r).getChildFriendly(unref(d).childFriendly)?(openBlock(),createElementBlock("section",_hoisted_2$u,[createBaseVNode("a",{href:(U=(B=unref(d))==null?void 0:B.advertData)==null?void 0:U.url,target:"_blank",class:"w-full h-full",onClick:T[0]||(T[0]=j=>{var le;return Z=unref(d),void((le=window==null?void 0:window.dataLayer)==null?void 0:le.push({event:"ad_click",ads:{advertURL:Z.advertData.url,advertID:Z.advertID,advertTitle:Z.advertTitle}}));var Z})},[unref(f)&&((V=(z=($=(D=unref(d))==null?void 0:D.advertData)==null?void 0:$.images)==null?void 0:z.mobile)!=null&&V.key)&&!e.isFullWidthSlot?(openBlock(),createBlock(A,{key:0,class:normalizeClass(["object-contain w-full h-full mx-auto",{"min-h-[250px] ":((K=(te=(ee=(F=unref(d))==null?void 0:F.advertData)==null?void 0:ee.images)==null?void 0:te.desktop)==null?void 0:K.imageSize)==="mpu","min-h-[90px]":((G=(J=(X=(H=unref(d))==null?void 0:H.advertData)==null?void 0:X.images)==null?void 0:J.desktop)==null?void 0:G.imageSize)==="banner"}]),src:("useGCImage"in w?w.useGCImage:unref(useGCImage))(!0,500,500,(de=(ye=(pe=(Q=unref(d))==null?void 0:Q.advertData)==null?void 0:pe.images)==null?void 0:ye.mobile)==null?void 0:de.key)},null,8,["class","src"])):createCommentVNode("",!0),unref(f)&&!e.isFullWidthSlot||!((Ce=(ge=(Re=(_e=unref(d))==null?void 0:_e.advertData)==null?void 0:Re.images)==null?void 0:ge.desktop)!=null&&Ce.key)?createCommentVNode("",!0):(openBlock(),createBlock(A,{key:1,src:("useGCImage"in w?w.useGCImage:unref(useGCImage))(!0,1600,1600,(We=(Ne=(Ue=(Me=unref(d))==null?void 0:Me.advertData)==null?void 0:Ue.images)==null?void 0:Ne.desktop)==null?void 0:We.key),class:normalizeClass(["w-full mx-auto",[{"[aspect-ratio:300/250] max-w-[300px]":((ne=(re=(rt=(et=unref(d))==null?void 0:et.advertData)==null?void 0:rt.images)==null?void 0:re.desktop)==null?void 0:ne.imageSize)==="mpu","[aspect-ratio:728/90] max-w-[728px]":((xe=(we=(he=(Se=unref(d))==null?void 0:Se.advertData)==null?void 0:he.images)==null?void 0:we.desktop)==null?void 0:xe.imageSize)==="banner","!max-h-[50px] !max-w-[320px] md:!max-h-[90px] md:!max-w-[728px]":e.isFullWidthSlot,"[aspect-ratio:97/9] max-w-[970px]":((L=(se=(Ee=(ze=unref(d))==null?void 0:ze.advertData)==null?void 0:Ee.images)==null?void 0:se.desktop)==null?void 0:L.imageSize)==="banner-large"}]])},null,8,["src","class"]))],8,_hoisted_3$o)])):createCommentVNode("",!0)],10,_hoisted_1$C)):createCommentVNode("",!0)}}}),_hoisted_1$B={key:0,class:"flex justify-center w-full h-full max-h-16"},_hoisted_2$t=["src","alt"],_sfc_main$G=defineComponent({__name:"SponsorsBanner",props:{sponsors:{},style:{}},setup(e){const t=useStore();return(r,o)=>{const c=__nuxt_component_1$1;return e.sponsors?(openBlock(),createElementBlock("div",_hoisted_1$B,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.sponsors,(d,f)=>
180(openBlock(),createBlock(c,{key:f,to:d.link,class:"max-w-[60px] h-auto p-2",target:"_blank"},{default:withCtx(()=>[d.imageKey&&unref(t).getChildFriendly(d.childFriendly)?(openBlock(),createElementBlock("img",{key:0,src:("useGCImage"in r?r.useGCImage:unref(useGCImage))(!0,120,120,d.imageKey),alt:`${d.name}`,class:"w-full h-full"},null,8,_hoisted_2$t)):createCommentVNode("",!0)]),_:2},1032,["to"]))),128))])):createCommentVNode("",!0)}}}),_hoisted_1$A=["src","alt"],_sfc_main$F=defineComponent({name:"PrimitiveLogo",__name:"index",props:{size:{default:"large"},to:{default:"/"},crestKey:{default:void 0},landscape:{type:Boolean,default:!1}},setup(e){var m;const t=useRuntimeConfig(),r=usePropertiesStore(),o=ref((m=t.public)==null?void 0:m.club.name),{activePropertyConfig:c}=toRefs(r),d=e,{isMobile:f}=useViewport(),b=computed(()=>{if(d.landscape){if(d.size==="small")return f.value,"max-h-[48px] max-w-[80px]";if(d.size==="medium")return f.value,"max-h-[60px] max-w-[100px]";if(d.size==="large")return f.value?" max-h-[85px] max-w-[120px]":"max-h-[85px] max-w-[120px]";if(d.size==="xlarge")return f.value,"max-h-[85px] max-w-[160px]"}else{if(d.size==="small")return f.value?"max-h-[36px] max-w-[36px]":"max-h-[48px] max-w-[48px]";if(d.size==="medium")return f.value?"max-h-[48px] max-w-[48px]":"max-h-[60px] max-w-[60px]";if(d.size==="large")return f.value?"max-h-[60px] max-w-[60px]":"max-h-[85px] max-w-[85px]";if(d.size==="xlarge")return f.value?"max-h-[85px] max-w-[85px]":"max-h-[100px] max-w-[100px]"}});return(S,w)=>{const T=__nuxt_component_1$1;return openBlock(),createBlock(T,{to:e.to?unref(c).public.club.homeSlug||e.to:void 0,class:""},{default:withCtx(()=>[createBaseVNode("img",{src:("useGCImage"in S?S.useGCImage:unref(useGCImage))(!0,350,350,unref(c).public.club.logo||e.crestKey),alt:`${unref(o)} Logo`,class:normalizeClass(["object-contain w-full h-auto",unref(b)])},null,10,_hoisted_1$A)]),_:1},8,["to"])}}}),_hoisted_1$z={class:"flex items-center h-full gap-2"},_hoisted_2$s={key:0,class:"hidden uppercase md:block whitespace-nowrap"},_hoisted_3$n={class:"flex items-center justify-center w-[32px] h-[32px] rounded-full club bg-surface-high border-clear text-clear text-sm pt-1"},_hoisted_4$k={key:0,class:"hidden uppercase md:block whitespace-nowrap"},_hoisted_5$f=["tabindex"],_sfc_main$E=defineComponent({name:"SSOHeaderControl",__name:"index",props:{showText:{type:Boolean,default:!0},globalNavTextSize:{},hoverClass:{}},async setup(e){var C,P,B;let t,r;const o=e,{$auth:c}=useNuxtApp(),d=useRuntimeConfig(),f=useRoute$1(),b=useStore(),m=useUserStore(),S=ref(void 0),w=ref(([t,r]=withAsyncContext(()=>c==null?void 0:c.getSession()),t=await t,r(),t));if(m.$subscribe(async(U,D)=>{var $,z,V,F,ee,te;if(S.value=m.getUserDetails,w.value=await(c==null?void 0:c.getSession()),($=f.query)!=null&&$.returnUrl&&S.value!==void 0&&((z=f.query)==null?void 0:z.method)!=="logout"&&(m.setPreventNavigation(!1),setTimeout(()=>{m.navigateToReturnUrl(f.query.returnUrl||"/")},3e3)),((F=(V=w==null?void 0:w.value)==null?void 0:V.idToken)==null?void 0:F.jwtToken)&&d.public.club.features.paymentProvider==="cleeng"){const K=await fetch(`https://cleeng.web.gc.${d.public.servicesURL}/v2/token`,{method:"POST",headers:{Authorization:`Bearer ${(te=(ee=w==null?void 0:w.value)==null?void 0:ee.idToken)==null?void 0:te.jwtToken}`}}),H=await K.json();await window.cleeng.setAuthTokens(H.data.attributes),b.setCleengAuth(!0)}}),[t,r]=withAsyncContext(()=>c==null?void 0:c.getUser()),t=await t,r(),t&&m.setUser({userDetails:([t,r]=withAsyncContext(()=>c.getUserDetails()),t=await t,r(),t)}),((P=(C=d.public.club)==null?void 0:C.ssoOptions)==null?void 0:P.provider)==="Kore"){const U=useRequestURL();c==null||c.loginRedirect((B=f.query)==null?void 0:B.tokenpayload,U),S.value=([t,r]=withAsyncContext(()=>c==null?void 0:c.getUser()),t=await t,r(),t),m.setUser(S.value),w.value=([t,r]=withAsyncContext(()=>c==null?void 0:c.getSession()),t=await t,r(),t)}const T=async()=>{var U,D,$,z,V,F,ee,te;if(((D=(U=d.public.club)==null?void 0:U.ssoOptions)==null?void 0:D.provider)==="OIDC"||((z=($=d.public.club)==null?void 0:$.ssoOptions)==null?void 0:z.provider)==="Kore")if(await(c==null?void 0:c.isAuthed()))((F=(V=d.public.club)==null?void 0:V.ssoOptions)==null?void 0:F.provider)==="OIDC"&&(o==null?void 0:o.showText)==1?window.location.href=(te=(ee=d.public.club)==null?void 0:ee.ssoOptions)==null?void 0:te.profileUrl:b.showSSO=!0;else{const K=useRequestURL();c.login(K)}else b.showSSO=!0},A=computed(()=>{var U,D,$,z;return`${((D=(U=S.value)==null?void 0:U.firstname)==null?void 0:D[0])||""}${((z=($=S.value)==null?void 0:$.lastname)==null?void 0:z[0])||""}`});return onMounted(()=>{var U,D;if(window.addEventListener("gamechanger:forceLogin",async $=>{var z,V,F,ee;if(((V=(z=d.public.club)==null?void 0:z.ssoOptions)==null?void 0:V.provider)==="OIDC"||((ee=(F=d.public.club)==null?void 0:F.ssoOptions)==null?void 0:ee.provider)==="Kore"){if(!await(c==null?void 0:c.isAuthed())){const te=useRequestURL();c.login(te)}}else b.showSSO=!0}),window.dispatchEvent(new Event("gamechanger:userHandleComplete")),(D=(U=S==null?void 0:S.value)==null?void 0:U.custom_attributes)==null?void 0:D.brazeExternalId)try{dataLayer.push({brazeExternalID:S.value.custom_attributes.brazeExternalId})}catch{console.warn("Braze integration is unavailable")}}),(U,D)=>{var z,V,F,ee,te,K,H,X,J,G,Q,pe;const $=_sfc_main$12;return openBlock(),createElementBlock("div",_hoisted_1$z,[((V=(z=unref(d).public.club)==null?void 0:z.ssoOptions)==null?void 0:V.provider)!=="OIDC"&&((ee=(F=unref(d).public.club)==null?void 0:F.ssoOptions)==null?void 0:ee.provider)!=="Kore"?(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["z-50 flex items-center h-full gap-1",{[`text-${e.globalNavTextSize}`]:e.globalNavTextSize,hoverClass:e.hoverClass}]),tabindex:"0","aria-label":"Log In"},[unref(w)?(openBlock(),createElementBlock("div",{key:1,onClick:D[1]||(D[1]=withModifiers(ye=>T(),["stop"]))},[createBaseVNode("span",_hoisted_3$n,toDisplayString(unref(A)),1)])):(openBlock(),createElementBlock("div",{key:0,class:"flex items-center gap-2",onClick:D[0]||(D[0]=withModifiers(ye=>T(),["stop"]))},[createVNode($,{pack:"navigation",size:24,icon:"account"}),e.showText?(openBlock(),createElementBlock("span",_hoisted_2$s,toDisplayString(!unref(w)&&"Log in"),1)):createCommentVNode("",!0)]))],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["z-50 flex items-center h-full gap-1",{[`text-${e.globalNavTextSize}`]:e.globalNavTextSize}]),tabindex:"0","aria-label":"Log In"},[unref(w)?(openBlock(),createElementBlock("div",{key:1,class:"flex items-center gap-2",tabindex:e.showText?0:""},[((K=(te=unref(d).public.club)==null?void 0:te.ssoOptions)==null?void 0:K.provider)==="OIDC"||((X=(H=unref(d).public.club)==null?void 0:H.ssoOptions)==null?void 0:X.provider)==="Kore"?(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["flex",e.hoverClass]),tabindex:"0",onClick:D[3]||(D[3]=ye=>T())},[createVNode($,{pack:"navigation",size:24,icon:"account"})],2)):createCommentVNode("",!0),!e.showText||((G=(J=unref(d).public.club)==null?void 0:J.ssoOptions)==null?void 0:G.provider)!=="OIDC"&&((pe=(Q=unref(d).public.club)==null?void 0:Q.ssoOptions)==null?void 0:pe.provider)!=="Kore"?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,class:normalizeClass(["flex",e.hoverClass]),tabindex:"0",onClick:D[4]||(D[4]=ye=>{var de,_e;return((_e=(de=unref(d).public.club)==null?void 0:de.ssoOptions)==null?void 0:_e.provider)==="OIDC"?(async()=>{const Re=useRequestURL(),{userData:ge}=await useGAEventData();useAnalyticsEvent("logout",{user:ge}),await c.signout(Re),m.setUser(void 0),sessionStorage.removeItem("newUser"),window.cleeng.logout(),b.setCleengAuth(!1)})():T()})},[...D[5]||(D[5]=[createBaseVNode("span",{class:"uppercase whitespace-nowrap"}," Sign Out",-1)])],2))],8,_hoisted_5$f)):(openBlock(),createElementBlock("button",{key:0,class:normalizeClass(["flex items-center gap-2",e.hoverClass]),onClick:D[2]||(D[2]=withModifiers(ye=>T(),["stop"]))},[createVNode($,{pack:"navigation",size:24,icon:"account"}),e.showText?(openBlock(),createElementBlock("span",_hoisted_4$k,toDisplayString(!unref(w)&&"Log in"),1)):createCommentVNode("",!0)],2))],2))])}}}),_hoisted_1$y={class:"whitespace-nowrap"},_hoisted_2$r={class:"relative inline-flex flex-1 overflow-hidden h-11"},_hoisted_3$m={key:1,class:"relative z-10 w-auto h-full py-2"},_hoisted_4$j={key:2,class:"z-10"},_hoisted_5$e={key:1,class:"md:flex-grow"},_sfc_main$D=defineComponent({name:"HeaderGlobalNav",__name:"index",props:{style:{},officialMessage:{},globalFontIsHeading:{type:Boolean},globalMenuItemInteraction:{},globalNavTextSize:{},globalAlign:{},secondaryMenuItems:{},showSSO:{type:Boolean},logoPosition:{},showOfficialMessage:{type:Boolean}},setup(e){const t=e,r=(S,w="!bg-primary-600/100 text-gray-50")=>`${S?useStyleObject(S):w}`.split(" ").map(T=>T.includes("text")?`hover:!${T}`:`before:${T}`).join(" "),o=ref(),c=ref(!1),d=computed(()=>c.value?{WebkitMaskImage:"linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0))",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"100% 100%",maskImage:"linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0))",maskRepeat:"no-repeat",maskSize:"100% 100%"}:{}),f=()=>{const S=o.value;S&&(c.value=S.scrollWidth>S.clientWidth&&S.scrollLeft<S.scrollWidth-S.clientWidth-1)},b=()=>{f()},m=computed(()=>{var T,A;const S=(T=t.style.children.firstGlobalMenuLink)==null?void 0:T.background.color,w=(A=t.style.children.globalMenuLink)==null?void 0:A.background.color;return!(!S||!w)&&JSON.stringify(S)!==JSON.stringify(w)});return onMounted(()=>{f(),window.addEventListener("resize",f)}),onBeforeUnmount(()=>{window.removeEventListener("resize",f)}),(S,w)=>{var B,U;const T=_sfc_main$12,A=_sfc_main$$,C=__nuxt_component_1$1,P=_sfc_main$E;return openBlock(),createElementBlock("div",{class:normalizeClass(["flex w-full space-between",[("useStyleObject"in S?S.useStyleObject:unref(useStyleObject))(e.style.children?e.style.children.globalMenu:(U=(B=e.style)==null?void 0:B.child)==null?void 0:U[1]),{"columns-3"
180:e.globalAlign!=="left","columns-2":e.globalAlign==="left"}]])},[e.globalAlign!=="left"&&e.showOfficialMessage?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["relative items-center hidden h-full pl-4 md:flex md:pl-6",[`text-${e.globalNavTextSize}`,{"w-auto":!e.showSSO&&e.globalAlign!=="right"}]])},[createBaseVNode("p",_hoisted_1$y,toDisplayString(e.officialMessage),1)],2)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$r,[createBaseVNode("nav",{ref_key:"globalNavScrollContainer",ref:o,class:normalizeClass(["relative inline-flex items-center flex-1 w-full overflow-hidden overflow-x-auto text-center h-11 font-heading no-scrollbar",[{"justify-start":e.globalAlign==="left","justify-start sm:justify-end":e.globalAlign==="right","justify-center":e.globalAlign==="center"}]]),style:normalizeStyle(unref(d)),onScroll:b},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.secondaryMenuItems,(D,$)=>{var z,V,F,ee,te,K,H,X,J,G;return openBlock(),createBlock(C,{key:D.label,to:D.slug,tabindex:"0",role:"tab",class:normalizeClass(["flex-shrink-0 relative flex items-center h-full gap-1 text-center justify-center uppercase px-2 md:px-6 transition duration-500 before:content-[''] before:transition-all before:duration-500 ease-in-out group after:content-[''] after:absolute after:right-0 after:top-3 after:bottom-3 after:w-[1px] after:bg-primary-900/50 last:after:w-0 whitespace-nowrap",[{"before:left-0 before:w-full before:h-full before:bottom-0 before:max-h-0 hover:before:h-full before:absolute hover:before:max-h-[200px] before:origin-bottom":e.globalMenuItemInteraction==="fill","before:absolute before:bottom-0 before:left-0 before-right-0 before:w-full before:scale-x-0 hover:before:scale-x-100 before:origin-center before:h-1":e.globalMenuItemInteraction==="stroke","before:absolute before:top-1 before:left-1 before:right-1 before:bottom-1 before:rounded before:opacity-0 hover:before:opacity-100":e.globalMenuItemInteraction==="padded","font-heading md:text-heading-xs text-heading-2xs":e.globalFontIsHeading==1,"font-sans":e.globalFontIsHeading!=1},`font-${e.style.fontWeight}`,$===0?`${("useStyleObject"in S?S.useStyleObject:unref(useStyleObject))(e.style.children?e.style.children.firstGlobalMenuLink:(ee=(F=(V=(z=e.style)==null?void 0:z.child)==null?void 0:V[1])==null?void 0:F.child)==null?void 0:ee[0])}`:`${("useStyleObject"in S?S.useStyleObject:unref(useStyleObject))(e.style.children?e.style.children.globalMenuLink:(X=(H=(K=(te=e.style)==null?void 0:te.child)==null?void 0:K[1])==null?void 0:H.child)==null?void 0:X[1])}`,`text-${e.globalNavTextSize}`,r($===0?(J=e.style.children)==null?void 0:J.firstGlobalMenuLinkHover:(G=e.style.children)==null?void 0:G.globalMenuLinkHover),$===0&&unref(m)?"after:hidden":"after:block"]])},{default:withCtx(()=>[D.icon?(openBlock(),createBlock(T,{key:0,class:"z-10 hidden sm:block",icon:D.icon,pack:(D==null?void 0:D.pack)||"fan",size:16},null,8,["icon","pack"])):createCommentVNode("",!0),D.imageKey&&D.type==="logo"?(openBlock(),createElementBlock("div",_hoisted_3$m,[createVNode(A,{src:("useGCImage"in S?S.useGCImage:unref(useGCImage))(!0,64,64,D.imageKey),alt:D.label,title:D.label,class:"z-10 h-full transition duration-500 ease-in-out opacity-100"},null,8,["src","alt","title"])])):(openBlock(),createElementBlock("p",_hoisted_4$j,toDisplayString(D.label),1))]),_:2},1032,["to","class"])}),128))],38)]),e.showSSO||e.globalAlign==="right"?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_5$e)),e.showSSO?(openBlock(),createBlock(Suspense,{key:2},{default:withCtx(()=>{var D,$,z,V,F,ee;return[createVNode(P,{"global-nav-text-size":e.globalNavTextSize,class:normalizeClass(["flex items-center justify-end pl-4 pr-2 text-center transition-colors font-heading lg:pr-6 sso-header-control",[("useStyleObject"in S?S.useStyleObject:unref(useStyleObject))(e.style.children?e.style.children.globalMenuLogin:(z=($=(D=e.style)==null?void 0:D.child)==null?void 0:$[1].child)==null?void 0:z[1]),`!text-heading-${e.globalNavTextSize}`,{"font-heading":e.globalFontIsHeading==1,"font-sans":e.globalFontIsHeading!=1}]]),"hover-class":r(e.style.children?e.style.children.globalMenuLoginHover:(ee=(F=(V=e.style)==null?void 0:V.child)==null?void 0:F[1].child)==null?void 0:ee[1])},null,8,["global-nav-text-size","class","hover-class"])]}),fallback:withCtx(()=>[...w[0]||(w[0]=[createBaseVNode("div",{class:"rounded-full bg-gray-200 w-[42px] h-[42px] border border-white"},null,-1)])]),_:1})):createCommentVNode("",!0)],2)}}}),_hoisted_1$x={key:0,class:"text-4xl text-center uppercase"},_hoisted_2$q=["src","alt","title"],_hoisted_3$l={key:2,class:"h-auto"},_sfc_main$C=defineComponent({name:"HeaderPrimaryNav",__name:"PrimaryNav",props:{primaryMenuItems:{},primaryMenuItemInteraction:{},logoPosition:{},logoAlignment:{},align:{},style:{},isMenuOpen:{type:Boolean},officialHeading:{},showOfficialHeading:{type:Boolean},showPrimaryNavOnMenuOpen:{type:Boolean}},setup(e){const t=useRoute$1(),r=useRuntimeConfig().public.servicesURL,o=e,{borderRadius:c}=useTheme(),d=computed(()=>o.logoAlignment==="center"&&o.logoPosition==="attached");return(f,b)=>{const m=_sfc_main$12,S=__nuxt_component_1$1;return openBlock(),createElementBlock("nav",{class:normalizeClass(["relative flex items-center h-full grow",{"min-h-[64px]":e.logoPosition==="offset",invisible:e.isMenuOpen&&!e.showPrimaryNavOnMenuOpen,"w-full  mr-4 ":!unref(d)}])},[createBaseVNode("div",{class:normalizeClass(unref(d)?"overflow-hidden h-full flex items-center":"w-full")},[e.showOfficialHeading?(openBlock(),createElementBlock("div",_hoisted_1$x,toDisplayString(e.officialHeading),
1801)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["relative flex text-center group",{"flex-wrap":unref(d),"items-center":!unref(d),"justify-start":e.align==="left","justify-end":e.align==="right","justify-center":e.align==="center"}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.primaryMenuItems.filter(w=>w.isSitemapOnly!=1),w=>(openBlock(),createBlock(S,{key:w.label,class:normalizeClass(["flex items-center justify-center h-full before:content-[''] before:transition-all before:duration-500 relative px-4 min-h-[56px] whitespace-nowrap primary-nav-item",[{"before:left-0 before:w-full before:h-full before:-bottom-1 before:max-h-0 hover:before:h-[110%] before:absolute hover:before:max-h-[200px] hover:!text-primary-500 before:bg-white before:origin-bottom before:-z-10":e.primaryMenuItemInteraction==="fill","before:absolute before:-bottom-2 before:left-2 before:right-2 before:scale-x-0 before:opacity-0 hover:before:opacity-100 hover:before:scale-x-100 before:origin-center before:h-1 before:bg-white":e.primaryMenuItemInteraction==="stroke","before:absolute before:top-2 before:left-2 before:right-2 before:bottom-2 before:rounded before:opacity-0 hover:before:opacity-100 hover:before:bg-white/[0.5] hover:before:backdrop-blur-lg before:-z-10":e.primaryMenuItemInteraction==="padded","before:h-[110%] before:max-h-[200px] !text-primary-500":e.primaryMenuItemInteraction==="fill"&&unref(t).path===w.slug.replace(/\/$/,""),"before:opacity-100 before:scale-x-100":e.primaryMenuItemInteraction==="stroke"&&unref(t).path===w.slug.replace(/\/$/,""),"before:opacity-100 before:bg-white/[0.5] before:backdrop-blur-lg":e.primaryMenuItemInteraction==="padded"&&unref(t).path===w.slug.replace(/\/$/,""),"relative before:border-0 group/block-hover after:border-0 before:transition-none after:transition-none hover:before:!opacity-0 !min-h-[36px]":e.primaryMenuItemInteraction==="fill-pdc","lg:px-6":!unref(d)},`font-${e.style.fontWeight}`]]),tabindex:"0",to:w.slug,target:w!=null&&w.openInNewTab?"_blank":"_self"},{default:withCtx(()=>[w.icon?(openBlock(),createBlock(m,{key:0,class:"z-10 hidden pr-3 sm:block",icon:w.icon,pack:(w==null?void 0:w.pack)||"fan",size:24},null,8,["icon","pack"])):createCommentVNode("",!0),w.imageKey&&w.type==="logo"?(openBlock(),createElementBlock("img",{key:1,src:`https://images.gc.${unref(r)}/${w.imageKey}`,alt:w.label,title:w.label,class:"max-h-[18px] mb-1"},null,8,_hoisted_2$q)):(openBlock(),createElementBlock("span",_hoisted_3$l,toDisplayString(w.label),1)),e.primaryMenuItemInteraction!=="fill-pdc"||w!=null&&w.altImgSrc?createCommentVNode("",!0):(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(["absolute bottom-0 flex items-center h-0 px-2 overflow-hidden transition-[transform_height] duration-300 ease-in-out -translate-x-1/2 bg-clear text-clear-inverse cursor-pointer left-1/2 group-hover/block-hover:h-full rounded-md",[{borderRadius:unref(c),"!bg-white !h-full !overflow-hidden !after:border-0 !rounded-md":unref(t).path===w.slug.replace(/\/$/,"")}]])},toDisplayString(w.label),3))]),_:2},1032,["to","target","class"]))),128))],2)],2)],2)}}}),_hoisted_1$w={key:0,class:"flex items-center h-full gap-4 mr-2 after:content-[''] after:border after:h-[24px] ml-auto"},_hoisted_2$p=["src","alt"],_sfc_main$B=defineComponent({__name:"Sponsors",props:{sponsors:{},style:{}},setup(e){const t=useStore();return(r,o)=>{const c=__nuxt_component_1$1;return e.sponsors?(openBlock(),createElementBlock("div",_hoisted_1$w,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.sponsors,(d,f)=>(openBlock(),createBlock(c,{key:f,to:d.link,class:"w-[60px] h-auto"},{default:withCtx(()=>[d.imageKey&&unref(t).getChildFriendly(d.childFriendly)?(openBlock(),createElementBlock("img",{key:0,src:("useGCImage"in r?r.useGCImage:unref(useGCImage))(!0,120,120,d.imageKey),alt:`${d.name}`,class:"w-full h-full"},null,8,_hoisted_2$p)):createCommentVNode("",!0)]),_:2},1032,["to"]))),128))])):createCommentVNode("",!0)}}}),_hoisted_1$v=["aria-label"],_sfc_main$A=defineComponent({__name:"Actions",props:{actions:{},isMenuOpen:{type:Boolean},showGlobalNav:{type:Boolean},showSSO:{type:Boolean},logoPosition:{},SSOPosition:{},burgerOnMobileOnly:{type:Boolean}},setup(e){const t=useStore(),r=e,o=ref(r.isMenuOpen),c={Burger:r.isMenuOpen?"Close Menu":"Burger Menu"};return onMounted(()=>{t.showMenu=o.value}),(d,f)=>{const b=_sfc_main$E,m=_sfc_main$12;return openBlock(),createElementBlock("div",{class:normalizeClass(["relative flex items-center h-full shrink",{"border-left":e.logoPosition==="attached"}])},[e.showSSO&&!e.showGlobalNav?(openBlock(),createBlock(Suspense,{key:0},{default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass({"order-2":e.SSOPosition==="right"})},[createVNode(b,{"show-text":!1,class:"rounded-full hover:bg-white/20 w-[42px] !h-[42px] !pr-0 flex items-center justify-center transition-colors duration-500"})],2)]),fallback:withCtx(()=>[...f[0]||(f[0]=[createBaseVNode("div",{class:"rounded-full bg-gray-200 w-[42px] h-[42px] border border-white"},null,-1)])]),_:1})):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.actions,(S,w)=>{return openBlock(),createElementBlock("div",{key:S.label,class:normalizeClass(["rounded-full hover:bg-white/20 w-[42px] h-[42px] flex items-center justify-center transition-colors duration-500",S.icon==="burgerSquare"&&e.burgerOnMobileOnly?"xl:hidden":""]),"aria-label":c[S.label]||S.label},[createVNode(m,{icon:(T=S.icon,T==="search"?t.showSearch?"close"
180:"search":T==="burgerSquare"?t.showMenu?"close":"burgerSquare":T),size:24,class:"cursor-pointer",pack:"navigation",tabindex:"0",role:"tab",onClick:A=>(C=>{C==="burgerSquare"?(t.showSearch&&(t.showSearch=!1),t.toggleMenu()):C==="search"&&(t.showMenu&&(t.showMenu=!1),t.showSearch=!t.showSearch)})(S.icon),onKeydown:[withKeys(A=>w===1?void(t.showMenu=!t.showMenu):w===0?void(t.showSearch=!t.showSearch):null,["enter"]),withKeys(A=>w===1?unref(t).showMenu=!1:w===0?unref(t).showSearch=!0:null,["esc"])]},null,8,["icon","onClick","onKeydown"])],10,_hoisted_1$v);var T}),128))],2)}}}),getTeamCrest=(e,t="light")=>{var r,o,c,d,f,b,m;switch(t){case"light":return((r=e==null?void 0:e.teamCrests)==null?void 0:r.crestDefaultKey)||((o=e==null?void 0:e.teamCrest_Custom)==null?void 0:o.key)||((c=e==null?void 0:e.teamCrests)==null?void 0:c.crestLightKey)||(e==null?void 0:e.teamCrest);case"dark":case"club":return((d=e==null?void 0:e.teamCrests)==null?void 0:d.crestDefaultKey)||((f=e==null?void 0:e.teamCrest_Custom)==null?void 0:f.key)||((b=e==null?void 0:e.teamCrests)==null?void 0:b.crestDarkKey)||(e==null?void 0:e.teamCrest);default:return(e==null?void 0:e.teamCrest)||((m=e==null?void 0:e.teamCrest_Custom)==null?void 0:m.key)}},_hoisted_1$u={key:0,class:"w-full h-full"},_hoisted_2$o={class:"flex items-center py-2 px-4 justify-between bg-transparent/[0.03]"},_hoisted_3$k={class:"flex items-center gap-2 text-lg"},_hoisted_4$i={key:0,class:"font-thin font-secondary"},_hoisted_5$d={key:1,class:"font-bold font-secondary"},_hoisted_6$a={class:"club h-[16px] w-[16px] rounded-full bg-surface flex items-center justify-center text-clear text-xs"},_hoisted_7$9={key:0,class:"flex items-center gap-4 px-4 py-2"},_hoisted_8$7={class:"flex flex-col gap-1"},_hoisted_9$4={class:"font-bold tracking-widest uppercase text-2xs font-secondary text-subtle"},_hoisted_10$4={class:"text-sm font-secondary"},_sfc_main$z=defineComponent({__name:"index",props:{fixture:{},defaultTeamId:{}},setup(e){const t=useRuntimeConfig(),r=e,o=t.public.club.sport||"football",c=computed(()=>{var P,B,U,D,$,z,V,F,ee;const C=r.fixture;return"attributes"in C?{kickOffUTC:((P=C.attributes)==null?void 0:P.kickOffUTC)??"",venue:(B=C.attributes)==null?void 0:B.venue,homeTeamID:(U=C.attributes)==null?void 0:U.homeTeamID,awayTeamID:(D=C.attributes)==null?void 0:D.awayTeamID,homeTeamName:($=C.attributes)==null?void 0:$.homeTeamName,awayTeamName:(z=C.attributes)==null?void 0:z.awayTeamName,homeTeamMetaData:(V=C.attributes)==null?void 0:V.homeTeamMetadata,awayTeamMetaData:(F=C.attributes)==null?void 0:F.awayTeamMetadata,seasonID:(ee=C.attributes)==null?void 0:ee.seasonName,matchID:C.id,teamCrest_Custom:void 0}:"formattedTeamName"in C?{kickOffUTC:C.kickOffUTC,homeOrAway:C.homeOrAway,formattedTeamName:C.formattedTeamName,teamData:C.teamData,mediaAssets:C.mediaAssets,venue:C.venue,seasonID:C.seasonID,matchID:C.matchID,teamCrest_Custom:void 0}:void 0}),d=computed(()=>{var P;const C=((P=c.value)==null?void 0:P.kickOffUTC)??"";return C?C.includes(" ")?DateTime.fromSQL(C,{zone:"utc"}):DateTime.fromISO(C):DateTime.invalid("empty")}),f=computed(()=>d.value.isValid?d.value.toFormat("HH:mm"):""),b=computed(()=>d.value.isValid?d.value.toFormat("EEE dd LLL"):""),m=computed(()=>{var B,U,D,$,z,V;const C=c.value;if(!C)return;if("homeTeamID"in C||"awayTeamID"in C)return c.value.homeTeamID===r.defaultTeamId?{teamName:c.value.awayTeamName,teamCrest:(U=(B=c.value)==null?void 0:B.awayTeamMetaData)==null?void 0:U.crest,teamID:(D=c.value)==null?void 0:D.homeTeamID,teamCrest_Custom:void 0}:{teamName:c.value.homeTeamName,teamCrest:(z=($=c.value)==null?void 0:$.homeTeamMetaData)==null?void 0:z.crest,teamID:(V=c.value)==null?void 0:V.awayTeamID,teamCrest_Custom:void 0};const P=C.teamData;if(P!=null&&P.length)return P[C.homeOrAway==="Away"?0:1]}),S=computed(()=>{var U,D;let C=(D=(U=c.value)==null?void 0:U.mediaAssets)==null?void 0:D.fixtureRibbonOverrideURL;const P="https://";return C&&C.slice(0,8)!==P&&C.slice(0,7)!=="http://"&&(C=P+C),C}),w=computed(()=>{var C;return(C=c.value)==null?void 0:C.seasonID}),T=computed(()=>{var C;return(C=c.value)==null?void 0:C.matchID}),A=computed(()=>{var C,P,B,U;return o==="football"?S.value||((C=m.value)!=null&&C.teamID&&T.value?`/${(U=(B=(P=t.public)==null?void 0:P.club)==null?void 0:B.slugs)==null?void 0:U.fixtures}/${m.value.teamID}/${w.value}/${T.value}
180`:""):""});return(C,P)=>{const B=_sfc_main$12,U=_sfc_main$_,D=_sfc_main$V,$=__nuxt_component_1$1;return openBlock(),createBlock($,{class:"flex card-border cursor-pointer fixture-carousel-card-after-fill text-clear bg-surface-high before:bg-primary-500 before:absolute before:bottom-0 before:left-0 before-right-0 before:w-full before:scale-x-0 hover:before:scale-x-100 before:origin-center before:h-1 before:content-[''] before:transition-all before:duration-500 relative",external:!!unref(S),to:unref(A)},{default:withCtx(()=>[unref(c)?(openBlock(),createElementBlock("div",_hoisted_1$u,[createBaseVNode("div",_hoisted_2$o,[createBaseVNode("div",_hoisted_3$k,[unref(b)?(openBlock(),createElementBlock("p",_hoisted_4$i,toDisplayString(unref(b)),1)):createCommentVNode("",!0),unref(f)?(openBlock(),createElementBlock("p",_hoisted_5$d,toDisplayString(unref(f)),1)):createCommentVNode("",!0)]),createBaseVNode("span",_hoisted_6$a,[createVNode(B,{pack:"fan",size:12,icon:unref(c).homeOrAway==="Home"?"home-icon":"away-icon"},null,8,["icon"])])]),unref(m)?(openBlock(),createElementBlock("div",_hoisted_7$9,[unref(m).teamCrest||unref(m).teamCrest_Custom?(openBlock(),createBlock(U,{key:0,"image-key":unref(getTeamCrest)(unref(m)),fit:"contain",class:"h-[48px] w-[48px]","base-width":48,"base-height":48,sizes:[96,48,24],"disable-retina":!0},null,8,["image-key"])):(openBlock(),createBlock(B,{key:1,pack:"fan",icon:"basic-shield",size:24,class:"inline-block w-4 h-auto mr-2"})),createBaseVNode("div",_hoisted_8$7,[createBaseVNode("p",_hoisted_9$4,toDisplayString(unref(c).formattedTeamName),1),createVNode(D,{tag:"h6",class:"font-bold font-primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(m).teamName),1)]),_:1}),createBaseVNode("p",_hoisted_10$4,toDisplayString(unref(c).venue),1)])])):createCommentVNode("",!0)])):createCommentVNode("",!0)]),_:1},8,["external","to"])}}}),_sfc_main$y=defineComponent({__name:"index",props:{showNext:{type:Boolean},showPrev:{type:Boolean}},emits:["slide-left","slide-right"],setup(e,{emit:t}){const r=t;return(o,c)=>{const d=_sfc_main$12;return openBlock(),createElementBlock("div",null,[createVNode(Transition,{name:"fade"},{default:withCtx(()=>[e.showPrev?(openBlock(),createElementBlock("button",{key:0,"aria-label":"slide left",class:"absolute z-20 items-center justify-center hidden w-8 h-8 text-gray-900 -translate-y-1/2 bg-white rounded-full shadow-xl carousel__arrow carousel__arrow--left p-md:flex top-1/2 left-8 p-md:-left-4",onClick:c[0]||(c[0]=f=>r("slide-left"))},[createVNode(d,{icon:"chevronLeft",pack:"navigation",size:18,class:"mr-1"})])):createCommentVNode("",!0)]),_:1}),createVNode(Transition,{name:"fade"},{default:withCtx(()=>[e.showNext?(openBlock(),createElementBlock("button",{key:0,"aria-label":"slide right",class:"absolute z-20 items-center justify-center hidden w-8 h-8 text-gray-900 -translate-y-1/2 bg-white rounded-full shadow-xl carousel__arrow carousel__arrow--right p-md:flex top-1/2 right-8 p-md:-right-4",onClick:c[1]||(c[1]=f=>r("slide-right"))},[createVNode(d,{icon:"chevronRight",pack:"navigation",size:18,class:"ml-1"})])):createCommentVNode("",!0)]),_:1})])}}});function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}/*!
181 * Splide.js
182 * Version  : 4.1.3
183 * License  : MIT
184 * Copyright: 2022 Naotoshi Fujita
185 */var MEDIA_PREFERS_REDUCED_MOTION="(prefers-reduced-motion: reduce)",CREATED=1,MOUNTED=2,IDLE=3,MOVING=4,SCROLLING=5,DRAGGING=6,DESTROYED=7,STATES={CREATED,MOUNTED,IDLE,MOVING,SCROLLING,DRAGGING,DESTROYED};function empty(e){e.length=0}function slice(e,t,r){return Array.prototype.slice.call(e,t,r)}function apply(e){return e.bind.apply(e,[null].concat(slice(arguments,1)))}var nextTick=setTimeout,noop$1=function(){};function raf(e){return requestAnimationFrame(e)}function typeOf(e,t){return typeof t===e}function isObject$1(e){return!isNull(e)&&typeOf("object",e)}var isArray=Array.isArray,isFunction=apply(typeOf,"function"),isString=apply(typeOf,"string"),isUndefined=apply(typeOf,"undefined");function isNull(e){return e===null}function isHTMLElement(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function toArray(e){return isArray(e)?e:[e]}function forEach(e,t){toArray(e).forEach(t)}function includes(e,t){return e.indexOf(t)>-1}function push(e,t){return e.push.apply(e,toArray(t)),e}
vendor: 4,971 bytes, line 185
185function toggleClass(e,t,r){e&&forEach(t,function(o){o&&e.classList[r?"add":"remove"](o)})}function addClass(e,t){toggleClass(e,isString(t)?t.split(" "):t,!0)}function append(e,t){forEach(t,e.appendChild.bind(e))}function before(e,t){forEach(e,function(r){var o=(t||r).parentNode;o&&o.insertBefore(r,t)})}function matches(e,t){return isHTMLElement(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function children(e,t){var r=e?slice(e.children):[];return t?r.filter(function(o){return matches(o,t)}):r}function child(e,t){return t?children(e,t)[0]:e.firstElementChild}var ownKeys=Object.keys;function forOwn$1(e,t,r){return e&&(r?ownKeys(e).reverse():ownKeys(e)).forEach(function(o){o!=="__proto__"&&t(e[o],o)}),e}function assign(e){return slice(arguments,1).forEach(function(t){forOwn$1(t,function(r,o){e[o]=t[o]})}),e}function merge$1(e){return slice(arguments,1).forEach(function(t){forOwn$1(t,function(r,o){isArray(r)?e[o]=r.slice():isObject$1(r)?e[o]=merge$1({},isObject$1(e[o])?e[o]:{},r):e[o]=r})}),e}function omit(e,t){forEach(t||ownKeys(e),function(r){delete e[r]})}function removeAttribute(e,t){forEach(e,function(r){forEach(t,function(o){r&&r.removeAttribute(o)})})}function setAttribute(e,t,r){isObject$1(t)?forOwn$1(t,function(o,c){setAttribute(e,c,o)}):forEach(e,function(o){isNull(r)||r===""?removeAttribute(o,t):o.setAttribute(t,String(r))})}function create(e,t,r){var o=document.createElement(e);return t&&(isString(t)?addClass(o,t):setAttribute(o,t)),r&&append(r,o),o}function style(e,t,r){if(isUndefined(r))return getComputedStyle(e)[t];isNull(r)||(e.style[t]=""+r)}function display(e,t){style(e,"display",t)}function focus(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function getAttribute(e,t){return e.getAttribute(t)}function hasClass(e,t){return e&&e.classList.contains(t)}function rect(e){return e.getBoundingClientRect()}function remove(e){forEach(e,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function parseHtml(e){return child(new DOMParser().parseFromString(e,"text/html").body)}function prevent(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function query(e,t){return e&&e.querySelector(t)}function queryAll(e,t){return t?slice(e.querySelectorAll(t)):[]}function removeClass(e,t){toggleClass(e,t,!1)}function timeOf(e){return e.timeStamp}function unit(e){return isString(e)?e:e?e+"px":""}var PROJECT_CODE="splide",DATA_ATTRIBUTE="data-"+PROJECT_CODE;function assert(e,t){if(!e)throw new Error("["+PROJECT_CODE+"] "+(t||""))}var min=Math.min,max=Math.max,floor=Math.floor,ceil=Math.ceil,abs=Math.abs;function approximatelyEqual(e,t,r){return abs(e-t)<r}function between(e,t,r,o){var c=min(t,r),d=max(t,r);return o?c<e&&e<d:c<=e&&e<=d}function clamp$1(e,t,r){var o=min(t,r),c=max(t,r);return min(max(o,e),c)}function sign(e){return+(e>0)-+(e<0)}function format(e,t){return forEach(t,function(r){e=e.replace("%s",""+r)}),e}function pad(e){return e<10?"0"+e:""+e}var ids={};function uniqueId(e){return""+e+pad(ids[e]=(ids[e]||0)+1)}function EventBinder(){var e=[];function t(r,o,c){forEach(r,function(d){d&&forEach(o,function(f){f.split(" ").forEach(function(b){var m=b.split(".");c(d,m[0],m[1])})})})}return{bind:function(r,o,c,d){t(r,o,function(f,b,m){var S="addEventListener"in f,w=S?f.removeEventListener.bind(f,b,c,d):f.removeListener.bind(f,c);S?f.addEventListener(b,c,d):f.addListener(c),e.push([f,b,m,c,w])})},unbind:function(r,o,c){t(r,o,function(d,f,b){e=e.filter(function(m){return!!(m[0]!==d||m[1]!==f||m[2]!==b||c&&m[3]!==c)||(m[4](),!1)})})},dispatch:function(r,o,c){var d,f=!0;return typeof CustomEvent=="function"?d=new CustomEvent(o,{bubbles:f,detail:c}):(d=document.createEvent("CustomEvent")).initCustomEvent(o,f,!1,c),r.dispatchEvent(d),d},destroy:function(){e.forEach(function(r){r[4]()}),empty(e)}}}var EVENT_MOUNTED="mounted",EVENT_READY="ready",EVENT_MOVE="move",EVENT_MOVED="moved",EVENT_CLICK="click",EVENT_ACTIVE="active",EVENT_INACTIVE="inactive",EVENT_VISIBLE="visible",EVENT_HIDDEN="hidden",EVENT_REFRESH="refresh",EVENT_UPDATED="updated",EVENT_RESIZE="resize",EVENT_RESIZED="resized",EVENT_DRAG="drag",EVENT_DRAGGING="dragging",EVENT_DRAGGED="dragged",EVENT_SCROLL="scroll",EVENT_SCROLLED="scrolled",EVENT_OVERFLOW="overflow",EVENT_DESTROY="destroy",EVENT_ARROWS_MOUNTED="arrows:mounted",EVENT_ARROWS_UPDATED="arrows:updated",EVENT_PAGINATION_MOUNTED="pagination:mounted",EVENT_PAGINATION_UPDATED="pagination:updated",EVENT_NAVIGATION_MOUNTED="navigation:mounted",EVENT_AUTOPLAY_PLAY="autoplay:play",EVENT_AUTOPLAY_PLAYING="autoplay:playing",EVENT_AUTOPLAY_PAUSE="autoplay:pause",EVENT_LAZYLOAD_LOADED="lazyload:loaded",EVENT_SLIDE_KEYDOWN="sk",EVENT_SHIFTED="sh",EVENT_END_INDEX_CHANGED="ei";function EventInterface(e){var t=e?e.event.bus:document.createDocumentFragment(),r=EventBinder();return e&&e.event.on(EVENT_DESTROY,r.destroy),assign(r,{bus:t,on:function(o,c){r.bind(t,toArray(o).join(" "),function(d){c.apply(c,isArray(d.detail)?d.detail:[])})}
185,off:apply(r.unbind,t),emit:function(o){r.dispatch(t,o,slice(arguments,1))}})}function RequestInterval(e,t,r,o){var c,d,f=Date.now,b=0,m=!0,S=0;function w(){if(!m){if(b=e?min((f()-c)/e,1):1,r&&r(b),b>=1&&(t(),c=f(),o&&++S>=o))return T();d=raf(w)}}function T(){m=!0}function A(){d&&cancelAnimationFrame(d),b=0,d=0,m=!0}return{start:function(C){C||A(),c=f()-(C?b*e:0),m=!1,d=raf(w)},rewind:function(){c=f(),b=0,r&&r(b)},pause:T,cancel:A,set:function(C){e=C},isPaused:function(){return m}}}function State(e){var t=e;return{set:function(r){t=r},is:function(r){return includes(toArray(r),t)}}}function Throttle(e,t){var r=RequestInterval(0,e,null,1);return function(){r.isPaused()&&r.start()}}function Media(e,t,r){var o=e.state,c=r.breakpoints||{},d=r.reducedMotion||{},f=EventBinder(),b=[];function m(A){A&&f.destroy()}function S(A,C){var P=matchMedia(C);f.bind(P,"change",w),b.push([A,P])}function w(){var A=o.is(DESTROYED),C=r.direction,P=b.reduce(function(B,U){return merge$1(B,U[1].matches?U[0]:{})},{});omit(r),T(P),r.destroy?e.destroy(r.destroy==="completely"):A?(m(!0),e.mount()):C!==r.direction&&e.refresh()}function T(A,C,P){merge$1(r,A),C&&merge$1(Object.getPrototypeOf(r),A),!P&&o.is(CREATED)||e.emit(EVENT_UPDATED,r)}return{setup:function(){var A=r.mediaQuery==="min";ownKeys(c).sort(function(C,P){return A?+C-+P:+P-+C}).forEach(function(C){S(c[C],"("+(A?"min":"max")+"-width:"+C+"px)")}),S(d,MEDIA_PREFERS_REDUCED_MOTION),w()},destroy:m,reduce:function(A){matchMedia(MEDIA_PREFERS_REDUCED_MOTION).matches&&(A?merge$1(r,d):omit(r,ownKeys(d)))},set:T}}var ARROW="Arrow",ARROW_LEFT=ARROW+"Left",ARROW_RIGHT=ARROW+"Right",ARROW_UP=ARROW+"Up",ARROW_DOWN=ARROW+"Down",RTL="rtl",TTB="ttb",ORIENTATION_MAP={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[ARROW_UP,ARROW_RIGHT],ArrowRight:[ARROW_DOWN,ARROW_LEFT]};function Direction(e,t,r){return{resolve:function(o,c,d){var f=(d=d||r.direction)!==RTL||c?d===TTB?0:-1:1;return ORIENTATION_MAP[o]&&ORIENTATION_MAP[o][f]||o.replace(/width|left|right/i,function(b,m){var S=ORIENTATION_MAP[b.toLowerCase()][f]||b;return m>0?S.charAt(0).toUpperCase()+S.slice(1):S})},orient:function(o){return o*(r.direction===RTL?1:-1)}}}var ROLE="role",TAB_INDEX="tabindex",DISABLED="disabled",ARIA_PREFIX="aria-",ARIA_CONTROLS=ARIA_PREFIX+"controls",ARIA_CURRENT=ARIA_PREFIX+"current",ARIA_SELECTED=ARIA_PREFIX+"selected",ARIA_LABEL=ARIA_PREFIX+"label",ARIA_LABELLEDBY=ARIA_PREFIX+"labelledby",ARIA_HIDDEN=ARIA_PREFIX+"hidden",ARIA_ORIENTATION=ARIA_PREFIX+"orientation",ARIA_ROLEDESCRIPTION=ARIA_PREFIX+"roledescription",ARIA_LIVE=ARIA_PREFIX+"live",ARIA_BUSY=ARIA_PREFIX+"busy",ARIA_ATOMIC=ARIA_PREFIX+"atomic",ALL_ATTRIBUTES=[ROLE,TAB_INDEX,DISABLED,ARIA_CONTROLS,ARIA_CURRENT,ARIA_LABEL,ARIA_LABELLEDBY,ARIA_HIDDEN,ARIA_ORIENTATION,ARIA_ROLEDESCRIPTION],CLASS_PREFIX=PROJECT_CODE+"__",STATUS_CLASS_PREFIX="is-",CLASS_ROOT=PROJECT_CODE,CLASS_TRACK=CLASS_PREFIX+"track",CLASS_LIST=CLASS_PREFIX+"list",CLASS_SLIDE=CLASS_PREFIX+"slide",CLASS_CLONE=CLASS_SLIDE+"--clone",CLASS_CONTAINER=CLASS_SLIDE+"__container",CLASS_ARROWS=CLASS_PREFIX+"arrows",CLASS_ARROW=CLASS_PREFIX+"arrow",CLASS_ARROW_PREV=CLASS_ARROW+"--prev",CLASS_ARROW_NEXT=CLASS_ARROW+"--next",CLASS_PAGINATION=CLASS_PREFIX+"pagination",CLASS_PAGINATION_PAGE=CLASS_PAGINATION+"__page",CLASS_PROGRESS=CLASS_PREFIX+"progress",CLASS_PROGRESS_BAR=CLASS_PROGRESS+"__bar",CLASS_TOGGLE=CLASS_PREFIX+"toggle",CLASS_SPINNER=CLASS_PREFIX+"spinner",CLASS_SR=CLASS_PREFIX+"sr",CLASS_INITIALIZED=STATUS_CLASS_PREFIX+"initialized",CLASS_ACTIVE=STATUS_CLASS_PREFIX+"active",CLASS_PREV=STATUS_CLASS_PREFIX+"prev",CLASS_NEXT=STATUS_CLASS_PREFIX+"next",CLASS_VISIBLE=STATUS_CLASS_PREFIX+"visible",CLASS_LOADING=STATUS_CLASS_PREFIX+"loading",CLASS_FOCUS_IN=STATUS_CLASS_PREFIX+"focus-in",CLASS_OVERFLOW=STATUS_CLASS_PREFIX+"overflow",STATUS_CLASSES=[CLASS_ACTIVE,CLASS_VISIBLE,CLASS_PREV,CLASS_NEXT,CLASS_LOADING,CLASS_FOCUS_IN,CLASS_OVERFLOW],CLASSES={slide:CLASS_SLIDE,clone:CLASS_CLONE,arrows:CLASS_ARROWS,arrow:CLASS_ARROW,prev:CLASS_ARROW_PREV,next:CLASS_ARROW_NEXT,pagination:CLASS_PAGINATION,page:CLASS_PAGINATION_PAGE,spinner:CLASS_SPINNER};function closest(e,t){if(isFunction(e.closest))return e.closest(t);for(var r=e;
185r&&r.nodeType===1&&!matches(r,t);)r=r.parentElement;return r}var FRICTION=5,LOG_INTERVAL=200,POINTER_DOWN_EVENTS="touchstart mousedown",POINTER_MOVE_EVENTS="touchmove mousemove",POINTER_UP_EVENTS="touchend touchcancel mouseup click";function Elements(e,t,r){var o,c,d,f=EventInterface(e),b=f.on,m=f.bind,S=e.root,w=r.i18n,T={},A=[],C=[],P=[];function B(){o=$("."+CLASS_TRACK),c=child(o,"."+CLASS_LIST),assert(o&&c,"A track/list element is missing."),push(A,children(c,"."+CLASS_SLIDE+":not(."+CLASS_CLONE+")")),forOwn$1({arrows:CLASS_ARROWS,pagination:CLASS_PAGINATION,prev:CLASS_ARROW_PREV,next:CLASS_ARROW_NEXT,bar:CLASS_PROGRESS_BAR,toggle:CLASS_TOGGLE},function(V,F){T[F]=$("."+V)}),assign(T,{root:S,track:o,list:c,slides:A}),(function(){var V=S.id||uniqueId(PROJECT_CODE),F=r.role;S.id=V,o.id=o.id||V+"-track",c.id=c.id||V+"-list",!getAttribute(S,ROLE)&&S.tagName!=="SECTION"&&F&&setAttribute(S,ROLE,F),setAttribute(S,ARIA_ROLEDESCRIPTION,w.carousel),setAttribute(c,ROLE,"presentation")})(),D()}function U(V){var F=ALL_ATTRIBUTES.concat("style");empty(A),removeClass(S,C),removeClass(o,P),removeAttribute([o,c],F),removeAttribute(S,V?F:["style",ARIA_ROLEDESCRIPTION])}function D(){removeClass(S,C),removeClass(o,P),C=z(CLASS_ROOT),P=z(CLASS_TRACK),addClass(S,C),addClass(o,P),setAttribute(S,ARIA_LABEL,r.label),setAttribute(S,ARIA_LABELLEDBY,r.labelledby)}function $(V){var F=query(S,V);return F&&closest(F,"."+CLASS_ROOT)===S?F:void 0}function z(V){return[V+"--"+r.type,V+"--"+r.direction,r.drag&&V+"--draggable",r.isNavigation&&V+"--nav",V===CLASS_ROOT&&CLASS_ACTIVE]}return assign(T,{setup:B,mount:function(){b(EVENT_REFRESH,U),b(EVENT_REFRESH,B),b(EVENT_UPDATED,D),m(document,POINTER_DOWN_EVENTS+" keydown",function(V){d=V.type==="keydown"},{capture:!0}),m(S,"focusin",function(){toggleClass(S,CLASS_FOCUS_IN,!!d)})},destroy:U})}var SLIDE="slide",LOOP="loop",FADE="fade";function Slide$1(e,t,r,o){var c,d=EventInterface(e),f=d.on,b=d.emit,m=d.bind,S=e.Components,w=e.root,T=e.options,A=T.isNavigation,C=T.updateOnMove,P=T.i18n,B=T.pagination,U=T.slideFocus,D=S.Direction.resolve,$=getAttribute(o,"style"),z=getAttribute(o,ARIA_LABEL),V=r>-1,F=child(o,"."+CLASS_CONTAINER);function ee(){var J=e.splides.map(function(G){var Q=G.splide.Components.Slides.getAt(t);return Q?Q.slide.id:""}).join(" ");setAttribute(o,ARIA_LABEL,format(P.slideX,(V?r:t)+1)),setAttribute(o,ARIA_CONTROLS,J),setAttribute(o,ROLE,U?"button":""),U&&removeAttribute(o,ARIA_ROLEDESCRIPTION)}function te(){c||K()}function K(){if(!c){var J=e.index;(G=H())!==hasClass(o,CLASS_ACTIVE)&&(toggleClass(o,CLASS_ACTIVE,G),setAttribute(o,ARIA_CURRENT,A&&G||""),b(G?EVENT_ACTIVE:EVENT_INACTIVE,X)),(function(){var Q=(function(){if(e.is(FADE))return H();var de=rect(S.Elements.track),_e=rect(o),Re=D("left",!0),ge=D("right",!0);return floor(de[Re])<=ceil(_e[Re])&&floor(_e[ge])<=ceil(de[ge])})(),pe=!Q&&(!H()||V);if(e.state.is([MOVING,SCROLLING])||setAttribute(o,ARIA_HIDDEN,pe||""),setAttribute(queryAll(o,T.focusableNodes||""),TAB_INDEX,pe?-1:""),U&&setAttribute(o,TAB_INDEX,pe?-1:0),Q!==hasClass(o,CLASS_VISIBLE)&&(toggleClass(o,CLASS_VISIBLE,Q),b(Q?EVENT_VISIBLE:EVENT_HIDDEN,X)),!Q&&document.activeElement===o){var ye=S.Slides.getAt(e.index);ye&&focus(ye.slide)}})(),toggleClass(o,CLASS_PREV,t===J-1),toggleClass(o,CLASS_NEXT,t===J+1)}var G}function H(){var J=e.index;return J===t||T.cloneStatus&&J===r}var X={index:t,slideIndex:r,slide:o,container:F,isClone:V,mount:function(){V||(o.id=w.id+"-slide"+pad(t+1),setAttribute(o,ROLE,B?"tabpanel":"group"),setAttribute(o,ARIA_ROLEDESCRIPTION,P.slide),setAttribute(o,ARIA_LABEL,z||format(P.slideLabel,[t+1,e.length]))),m(o,"click",apply(b,EVENT_CLICK,X)),m(o,"keydown",apply(b,EVENT_SLIDE_KEYDOWN,X)),f([EVENT_MOVED,EVENT_SHIFTED,EVENT_SCROLLED],K),f(EVENT_NAVIGATION_MOUNTED,ee),C&&f(EVENT_MOVE,te)},destroy:function(){c=!0,d.destroy(),removeClass(o,STATUS_CLASSES),removeAttribute(o,ALL_ATTRIBUTES),setAttribute(o,"style",$),setAttribute(o,ARIA_LABEL,z||"")},update:K,style:function(J,G,Q){style(Q&&F||o,J,G)},isWithin:function(J,G){var Q=abs(J-t);return V||!T.rewind&&!e.is(LOOP)||(Q=min(Q,e.length-Q)),Q<=G}};return X}function Slides(e,t,r){var o=EventInterface(e),c=o.on,d=o.emit,f=o.bind,b=t.Elements,m=b.slides,S=b.list,w=[];function T(){m.forEach(function(D,$){C(D,$,-1)})}function A(){B(function(D){D.destroy()}),empty(w)}function C(D,$,z){var V=Slide$1(e,$,z,D);V.mount(),w.push(V),w.sort(function(F,ee){return F.index-ee.index})}function P(D){return D?U(function($){return!$.isClone}):w}function B(D,$){P($).forEach(D)}function U(D){return w.filter(isFunction(D)?D:function($){return isString(D)?matches($.slide,D):includes(toArray(D),$.index)})}return{mount:function(){T(),c(EVENT_REFRESH,A),c(EVENT_REFRESH,T)},destroy:A,update:function(){B(function(D){D.update()})},register:C,get:P,getIn:function(D){var $=t.Controller,z=$.toIndex(D),V=$.hasFocus()?1:r.perPage;return U(function(F){return between(F.index,z,z+V-1)})},getAt:function(D){return U(D)[0]},add:function(D,$){forEach(D,function(z){if(isString(z)&&(z=parseHtml(z)),isHTMLElement(z)){var V=m[$];V?before(z,V):append(S,z),addClass(z,r.classes.slide),F=z,ee=apply(d,EVENT_RESIZE),te=queryAll(F,"img"),(K=te.length)?te.forEach(function(H){f(H,"load error",function(){--K||ee()})}):ee()}var F,ee,te,K}),d(EVENT_REFRESH)},remove:function(D){remove(U(D).map(function($){return $.slide})),d(EVENT_REFRESH)}
185,forEach:B,filter:U,style:function(D,$,z){B(function(V){V.style(D,$,z)})},getLength:function(D){return D?m.length:w.length},isEnough:function(){return w.length>r.perPage}}}function Layout(e,t,r){var o,c,d,f=EventInterface(e),b=f.on,m=f.bind,S=f.emit,w=t.Slides,T=t.Direction.resolve,A=t.Elements,C=A.root,P=A.track,B=A.list,U=w.getAt,D=w.style;function $(){o=r.direction===TTB,style(C,"maxWidth",unit(r.width)),style(P,T("paddingLeft"),V(!1)),style(P,T("paddingRight"),V(!0)),z(!0)}function z(Q){var pe=rect(C);(Q||c.width!==pe.width||c.height!==pe.height)&&(style(P,"height",(function(){var ye="";return o&&(assert(ye=F(),"height or heightRatio is missing."),ye="calc("+ye+" - "+V(!1)+" - "+V(!0)+")"),ye})()),D(T("marginRight"),unit(r.gap)),D("width",r.autoWidth?null:unit(r.fixedWidth)||(o?"":ee())),D("height",unit(r.fixedHeight)||(o?r.autoHeight?null:ee():F()),!0),c=pe,S(EVENT_RESIZED),d!==(d=G())&&(toggleClass(C,CLASS_OVERFLOW,d),S(EVENT_OVERFLOW,d)))}function V(Q){var pe=r.padding,ye=T(Q?"right":"left");return pe&&unit(pe[ye]||(isObject$1(pe)?0:pe))||"0px"}function F(){return unit(r.height||rect(B).width*r.heightRatio)}function ee(){var Q=unit(r.gap);return"calc((100%"+(Q&&" + "+Q)+")/"+(r.perPage||1)+(Q&&" - "+Q)+")"}function te(){return rect(B)[T("width")]}function K(Q,pe){var ye=U(Q||0);return ye?rect(ye.slide)[T("width")]+(pe?0:J()):0}function H(Q,pe){var ye=U(Q);if(ye){var de=rect(ye.slide)[T("right")],_e=rect(B)[T("left")];return abs(de-_e)+(pe?0:J())}return 0}function X(Q){return H(e.length-1)-H(0)+K(0,Q)}function J(){var Q=U(0);return Q&&parseFloat(style(Q.slide,T("marginRight")))||0}function G(){return e.is(FADE)||X(!0)>te()}return{mount:function(){$(),m(window,"resize load",Throttle(apply(S,EVENT_RESIZE))),b([EVENT_UPDATED,EVENT_REFRESH],$),b(EVENT_RESIZE,z)},resize:z,listSize:te,slideSize:K,sliderSize:X,totalSize:H,getPadding:function(Q){return parseFloat(style(P,T("padding"+(Q?"Right":"Left"))))||0},isOverflow:G}}var MULTIPLIER=2;function Clones(e,t,r){var o,c=EventInterface(e),d=c.on,f=t.Elements,b=t.Slides,m=t.Direction.resolve,S=[];function w(){d(EVENT_REFRESH,T),d([EVENT_UPDATED,EVENT_RESIZE],C),(o=P())&&((function(B){var U=b.get().slice(),D=U.length;if(D){for(;U.length<B;)push(U,U);push(U.slice(-B),U.slice(0,B)).forEach(function($,z){var V=z<B,F=(function(ee,te){var K=ee.cloneNode(!0);return addClass(K,r.classes.clone),K.id=e.root.id+"-clone"+pad(te+1),K})($.slide,z);V?before(F,U[0].slide):append(f.list,F),push(S,F),b.register(F,z-B+(V?0:D),$.index)})}})(o),t.Layout.resize(!0))}function T(){A(),w()}function A(){remove(S),empty(S),c.destroy()}function C(){var B=P();o!==B&&(o<B||!B)&&c.emit(EVENT_REFRESH)}function P(){var B=r.clones;if(e.is(LOOP)){if(isUndefined(B)){var U=r[m("fixedWidth")]&&t.Layout.slideSize(0);B=U&&ceil(rect(f.track)[m("width")]/U)||r[m("autoWidth")]&&e.length||r.perPage*MULTIPLIER}}else B=0;return B}return{mount:w,destroy:A}}function Move(e,t,r){var o,c=EventInterface(e),d=c.on,f=c.emit,b=e.state.set,m=t.Layout,S=m.slideSize,w=m.getPadding,T=m.totalSize,A=m.listSize,C=m.sliderSize,P=t.Direction,B=P.resolve,U=P.orient,D=t.Elements,$=D.list,z=D.track;function V(){t.Controller.isBusy()||(t.Scroll.cancel(),F(e.index),t.Slides.update())}function F(Q){ee(X(Q,!0))}function ee(Q,pe){if(!e.is(FADE)){var ye=pe?Q:(function(de){if(e.is(LOOP)){var _e=H(de),Re=_e>t.Controller.getEnd();(_e<0||Re)&&(de=te(de,Re))}return de})(Q);style($,"transform","translate"+B("X")+"("+ye+"px)"),Q!==ye&&f(EVENT_SHIFTED)}}function te(Q,pe){var ye=Q-G(pe),de=C();return Q-=U(de*(ceil(abs(ye)/de)||1))*(pe?1:-1)}function K(){ee(J(),!0),o.cancel()}function H(Q){for(var pe=t.Slides.get(),ye=0,de=1/0,_e=0;_e<pe.length;_e++){var Re=pe[_e].index,ge=abs(X(Re,!0)-Q);if(!(ge<=de))break;de=ge,ye=Re}return ye}function X(Q,pe){var ye=U(T(Q-1)-(function(de){var _e=r.focus;return _e==="center"?(A()-S(de,!0))/2:+_e*S(de)||0})(Q));return pe?(function(de){return r.trimSpace&&e.is(SLIDE)&&(de=clamp$1(de,0,U(C(!0)-A()))),de})(ye):ye}function J(){var Q=B("left");return rect($)[Q]-rect(z)[Q]+U(w(!1))}function G(Q){return X(Q?t.Controller.getEnd():0,!!r.trimSpace)}return{mount:function(){o=t.Transition,d([EVENT_MOUNTED,EVENT_RESIZED,EVENT_UPDATED,EVENT_REFRESH],V)},move:function(Q,pe,ye,de){var _e,Re;Q!==pe&&(_e=Q>ye,Re=U(te(J(),_e)),_e?Re>=0:Re<=$[B("scrollWidth")]-rect(z)[B("width")])&&(K(),ee(te(J(),Q>ye),!0)),b(MOVING),f(EVENT_MOVE,pe,ye,Q),o.start(pe,function(){b(IDLE),f(EVENT_MOVED,pe,ye,Q),de&&de()})},jump:F,translate:ee,shift:te,cancel:K,toIndex:H,toPosition:X,getPosition:J,getLimit:G,exceededLimit:function(Q,pe){pe=isUndefined(pe)?J():pe;var ye=Q!==!0&&U(pe)<U(G(!1)),de=Q!==!1&&U(pe)>U(G(!0));return ye||de},reposition:V}}function Controller(e,t,r){var o,c,d,f,b=EventInterface(e),m=b.on,S=b.emit,w=t.Move,T=w.getPosition,A=w.getLimit,C=w.toPosition,P=t.Slides,B=P.isEnough,U=P.getLength,D=r.omitEnd,$=e.is(LOOP),z=e.is(SLIDE),V=apply(X,!1),F=apply(X,!0),ee=r.start||0,te=ee;function K(){c=U(!0),d=r.perMove,f=r.perPage,o=Q();var ge=clamp$1(ee,0,D?o:c-1);ge!==ee&&(ee=ge,w.reposition())}function H(){o!==Q()&&S(EVENT_END_INDEX_CHANGED)}function X(ge,Ce){var Me=d||(_e()?1:f),Ue=J(ee+Me*(ge?-1:1),ee,!(d||_e()));return Ue===-1&&z&&!approximatelyEqual(T(),A(!ge),1)?ge?0:o:Ce?Ue:G(Ue)}function J(ge,Ce,Me){if(B()||_e()){var Ue=(function(Ne){if(z&&r.trimSpace==="move"&&Ne!==ee)for(var We=T();We===C(Ne,!0)&&between(Ne,0,e.length-1,!r.rewind);)Ne<ee?--Ne:++Ne;return Ne})(ge);Ue!==ge&&(Ce=ge,ge=Ue,Me=!1),ge<0||ge>o?ge=d||!between(0,ge,Ce,!0)&&!between(o,Ce,ge,!0)?$?Me?ge<0?-(c%f||f):c:ge:r.rewind?ge<0?o:0:-1:pe(ye(ge)):Me&&ge!==Ce&&(ge=pe(ye(Ce)+(ge<Ce?-1:1)))}else ge=-1;return ge}function G(ge){return $?(ge+c)%c||0:ge}function Q(){for(var ge=c-(_e()||$&&d?1:f);D&&ge-- >0;)if(C(c-1,!0)!==C(ge,!0)){ge++;break}return clamp$1(ge,0,c-1)}function pe(ge){return clamp$1(_e()?ge:f*ge,0,o)}function ye(ge){return _e()?min(ge,o):floor((ge>=o?c-1:ge)/f)}function de(ge){ge!==ee&&(te=ee,ee=ge)}function _e(){return!isUndefined(r.focus)||r.isNavigation}function Re(){return e.state.is([MOVING,SCROLLING])&&!!r.waitForTransition}return{mount:function(){K(),m([EVENT_UPDATED,EVENT_REFRESH,EVENT_END_INDEX_CHANGED],K),m(EVENT_RESIZED,H)},go:function(ge,Ce,Me){if(!Re()){var Ue=(function(We){var et=ee;if(isString(We)){var rt=We.match(/([+\-<>])(\d+)?/)||[],re=rt[1],ne=rt[2];re==="+"||re==="-"?et=J(ee+ +(""+re+(+ne||1)),ee):re===">"?et=ne?pe(+ne):V(!0):re==="<"&&(et=F(!0))}else et=$?We:clamp$1(We,0,o);return et})(ge),Ne=G(Ue);Ne>-1&&(Ce||Ne!==ee)&&(de(Ne),w.move(Ue,Ne,te,Me))}},scroll:function(ge,Ce,Me,Ue){t.Scroll.scroll(ge,Ce,Me,function(){var Ne=G(w.toIndex(T()));de(D?min(Ne,o):Ne),Ue&&Ue()})},getNext:V,getPrev:F,getAdjacent:X,getEnd:Q,setIndex:de,getIndex:function(ge){return ge?te:ee},toIndex:pe,toPage:ye,toDest:function(ge){var Ce=w.toIndex(ge);return z?clamp$1(Ce,0,o):Ce},hasFocus:_e,isBusy:Re}}var XML_NAME_SPACE="http://www.w3.org/2000/svg",PATH="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",SIZE=40;function Arrows(e,t,r){var o,c,d=EventInterface(e),f=d.on,b=d.bind,m=d.emit,S=r.classes,w=r.i18n,T=t.Elements,A=t.Controller,C=T.arrows,P=T.track,B=C,U=T.prev,D=T.next,$={};function z(){(function(){var H=r.arrows;!H||U&&D||(B=C||create("div",S.arrows),U=te(!0),D=te(!1),o=!0,append(B,[U,D]),!C&&before(B,P)),U&&D&&(assign($,{prev:U,next:D}),display(B,H?"":"none"),addClass(B,c=CLASS_ARROWS+"--"+r.direction),H&&(f([EVENT_MOUNTED,EVENT_MOVED,EVENT_REFRESH,EVENT_SCROLLED,EVENT_END_INDEX_CHANGED],K),b(D,"click",apply(ee,">")),b(U,"click",apply(ee,"<")),K(),setAttribute([U,D],ARIA_CONTROLS,P.id),m(EVENT_ARROWS_MOUNTED,U,D)))})(),f(EVENT_UPDATED,V)}function V(){F(),z()}function F(){d.destroy(),removeClass(B,c),o?(remove(C?[U,D]:B),U=D=null):removeAttribute([U,D],ALL_ATTRIBUTES)}function ee(H){A.go(H,!0)}function te(H){return parseHtml('<button class="'+S.arrow+" "+(H?S.prev:S.next)+'" type="button"><svg xmlns="'+XML_NAME_SPACE+'" viewBox="0 0 '+SIZE+" "+SIZE+'" width="'+SIZE+'" height="'+SIZE+'" focusable="false">
185<path d="'+(r.arrowPath||PATH)+'" />')}function K(){if(U&&D){var H=e.index,X=A.getPrev(),J=A.getNext(),G=X>-1&&H<X?w.last:w.prev,Q=J>-1&&H>J?w.first:w.next;U.disabled=X<0,D.disabled=J<0,setAttribute(U,ARIA_LABEL,G),setAttribute(D,ARIA_LABEL,Q),m(EVENT_ARROWS_UPDATED,U,D,X,J)}}return{arrows:$,mount:z,destroy:F,update:K}}var INTERVAL_DATA_ATTRIBUTE=DATA_ATTRIBUTE+"-interval";function Autoplay(e,t,r){var o,c,d=EventInterface(e),f=d.on,b=d.bind,m=d.emit,S=RequestInterval(r.interval,e.go.bind(e,">"),function(ee){var te=T.bar;te&&style(te,"width",100*ee+"%"),m(EVENT_AUTOPLAY_PLAYING,ee)}),w=S.isPaused,T=t.Elements,A=t.Elements,C=A.root,P=A.toggle,B=r.autoplay,U=B==="pause";function D(){w()&&t.Slides.isEnough()&&(S.start(!r.resetProgress),c=o=U=!1,V(),m(EVENT_AUTOPLAY_PLAY))}function $(ee){ee===void 0&&(ee=!0),U=!!ee,V(),w()||(S.pause(),m(EVENT_AUTOPLAY_PAUSE))}function z(){U||(o||c?$(!1):D())}function V(){P&&(toggleClass(P,CLASS_ACTIVE,!U),setAttribute(P,ARIA_LABEL,r.i18n[U?"play":"pause"]))}function F(ee){var te=t.Slides.getAt(ee);S.set(te&&+getAttribute(te.slide,INTERVAL_DATA_ATTRIBUTE)||r.interval)}return{mount:function(){B&&((function(){r.pauseOnHover&&b(C,"mouseenter mouseleave",function(ee){o=ee.type==="mouseenter",z()}),r.pauseOnFocus&&b(C,"focusin focusout",function(ee){c=ee.type==="focusin",z()}),P&&b(P,"click",function(){U?D():$(!0)}),f([EVENT_MOVE,EVENT_SCROLL,EVENT_REFRESH],S.rewind),f(EVENT_MOVE,F)})(),P&&setAttribute(P,ARIA_CONTROLS,T.track.id),U||D(),V())},destroy:S.cancel,play:D,pause:$,isPaused:w}}function Cover(e,t,r){var o=EventInterface(e).on;function c(f){t.Slides.forEach(function(b){var m=child(b.container||b.slide,"img");m&&m.src&&d(f,m,b)})}function d(f,b,m){m.style("background",f?'center/cover no-repeat url("'+b.src+'")':"",!0),display(b,f?"none":"")}return{mount:function(){r.cover&&(o(EVENT_LAZYLOAD_LOADED,apply(d,!0)),o([EVENT_MOUNTED,EVENT_UPDATED,EVENT_REFRESH],apply(c,!0)))},destroy:apply(c,!1)}}var BOUNCE_DIFF_THRESHOLD=10,BOUNCE_DURATION=600,FRICTION_FACTOR=.6,BASE_VELOCITY=1.5,MIN_DURATION=800;function Scroll(e,t,r){var o,c,d=EventInterface(e),f=d.on,b=d.emit,m=e.state.set,S=t.Move,w=S.getPosition,T=S.getLimit,A=S.exceededLimit,C=S.translate,P=e.is(SLIDE),B=1;function U(F,ee,te,K,H){var X=w();if(z(),te&&(!P||!A())){var J=t.Layout.sliderSize(),G=sign(F)*J*floor(abs(F)/J)||0;F=S.toPosition(t.Controller.toDest(F%J))+G}var Q=approximatelyEqual(X,F,1);B=1,ee=Q?0:ee||max(abs(F-X)/BASE_VELOCITY,MIN_DURATION),c=K,o=RequestInterval(ee,D,apply($,X,F,H),1),m(SCROLLING),b(EVENT_SCROLL),o.start()}function D(){m(IDLE),c&&c(),b(EVENT_SCROLLED)}function $(F,ee,te,K){var H,X,J=w(),G=(F+(ee-F)*(H=K,(X=r.easingFunc)?X(H):1-Math.pow(1-H,4))-J)*B;C(J+G),P&&!te&&A()&&(B*=FRICTION_FACTOR,abs(G)<BOUNCE_DIFF_THRESHOLD&&U(T(A(!0)),BOUNCE_DURATION,!1,c,!0))}function z(){o&&o.cancel()}function V(){o&&!o.isPaused()&&(z(),D())}return{mount:function(){f(EVENT_MOVE,z),f([EVENT_UPDATED,EVENT_REFRESH],V)},destroy:z,scroll:U,cancel:V}}var SCROLL_LISTENER_OPTIONS={passive:!1,capture:!0};function Drag(e,t,r){var o,c,d,f,b,m,S,w,T=EventInterface(e),A=T.on,C=T.emit,P=T.bind,B=T.unbind,U=e.state,D=t.Move,$=t.Scroll,z=t.Controller,V=t.Elements.track,F=t.Media.reduce,ee=t.Direction,te=ee.resolve,K=ee.orient,H=D.getPosition,X=D.exceededLimit,J=!1;function G(){var We=r.drag;Ne(!We),f=We==="free"}function Q(We){if(m=!1,!S){var et=Ue(We);rt=We.target,re=r.noDrag,matches(rt,"."+CLASS_PAGINATION_PAGE+", ."+CLASS_ARROW)||re&&matches(rt,re)||!et&&We.button||(z.isBusy()?prevent(We,!0):(w=et?V:window,b=U.is([MOVING,SCROLLING]),d=null,P(w,POINTER_MOVE_EVENTS,pe,SCROLL_LISTENER_OPTIONS),P(w,POINTER_UP_EVENTS,ye,SCROLL_LISTENER_OPTIONS),D.cancel(),$.cancel(),_e(We)))}var rt,re}function pe(We){if(U.is(DRAGGING)||(U.set(DRAGGING),C(EVENT_DRAG)),We.cancelable)if(b){D.translate(o+(function(re){return re/(J&&e.is(SLIDE)?FRICTION:1)})(Re(We)));var et=ge(We)>LOG_INTERVAL,rt=J!==(J=X());(et||rt)&&_e(We),m=!0,C(EVENT_DRAGGING),prevent(We)}else(function(re){return abs(Re(re))>abs(Re(re,!0))})(We)&&(b=(function(re){var ne=r.dragMinThreshold,Se=isObject$1(ne),he=Se&&ne.mouse||0,we=(Se?ne.touch:+ne)||10;return abs(Re(re))>
185(Ue(re)?we:he)})(We),prevent(We))}function ye(We){U.is(DRAGGING)&&(U.set(IDLE),C(EVENT_DRAGGED)),b&&((function(et){var rt=(function(Se){if(e.is(LOOP)||!J){var he=ge(Se);if(he&&he<LOG_INTERVAL)return Re(Se)/he}return 0})(et),re=(function(Se){return H()+sign(Se)*min(abs(Se)*(r.flickPower||600),f?1/0:t.Layout.listSize()*(r.flickMaxPages||1))})(rt),ne=r.rewind&&r.rewindByDrag;F(!1),f?z.scroll(re,0,r.snap):e.is(FADE)?z.go(K(sign(rt))<0?ne?"<":"-":ne?">":"+"):e.is(SLIDE)&&J&&ne?z.go(X(!0)?">":"<"):z.go(z.toDest(re),!0),F(!0)})(We),prevent(We)),B(w,POINTER_MOVE_EVENTS,pe),B(w,POINTER_UP_EVENTS,ye),b=!1}function de(We){!S&&m&&prevent(We,!0)}function _e(We){d=c,c=We,o=H()}function Re(We,et){return Me(We,et)-Me(Ce(We),et)}function ge(We){return timeOf(We)-timeOf(Ce(We))}function Ce(We){return c===We&&d||c}function Me(We,et){return(Ue(We)?We.changedTouches[0]:We)["page"+te(et?"Y":"X")]}function Ue(We){return typeof TouchEvent<"u"&&We instanceof TouchEvent}function Ne(We){S=We}return{mount:function(){P(V,POINTER_MOVE_EVENTS,noop$1,SCROLL_LISTENER_OPTIONS),P(V,POINTER_UP_EVENTS,noop$1,SCROLL_LISTENER_OPTIONS),P(V,POINTER_DOWN_EVENTS,Q,SCROLL_LISTENER_OPTIONS),P(V,"click",de,{capture:!0}),P(V,"dragstart",prevent),A([EVENT_MOUNTED,EVENT_UPDATED],G)},disable:Ne,isDragging:function(){return b}}}var NORMALIZATION_MAP={Spacebar:" ",Right:ARROW_RIGHT,Left:ARROW_LEFT,Up:ARROW_UP,Down:ARROW_DOWN};function normalizeKey(e){return e=isString(e)?e:e.key,NORMALIZATION_MAP[e]||e}var KEYBOARD_EVENT="keydown";function Keyboard(e,t,r){var o,c,d=EventInterface(e),f=d.on,b=d.bind,m=d.unbind,S=e.root,w=t.Direction.resolve;function T(){var B=r.keyboard;B&&(o=B==="global"?window:S,b(o,KEYBOARD_EVENT,P))}function A(){m(o,KEYBOARD_EVENT)}function C(){var B=c;c=!0,nextTick(function(){c=B})}function P(B){if(!c){var U=normalizeKey(B);U===w(ARROW_LEFT)?e.go("<"):U===w(ARROW_RIGHT)&&e.go(">")}}return{mount:function(){T(),f(EVENT_UPDATED,A),f(EVENT_UPDATED,T),f(EVENT_MOVE,C)},destroy:A,disable:function(B){c=B}}}var SRC_DATA_ATTRIBUTE=DATA_ATTRIBUTE+"-lazy",SRCSET_DATA_ATTRIBUTE=SRC_DATA_ATTRIBUTE+"-srcset",IMAGE_SELECTOR="["+SRC_DATA_ATTRIBUTE+"], ["+SRCSET_DATA_ATTRIBUTE+"]";function LazyLoad(e,t,r){var o=EventInterface(e),c=o.on,d=o.off,f=o.bind,b=o.emit,m=r.lazyLoad==="sequential",S=[EVENT_MOVED,EVENT_SCROLLED],w=[];function T(){empty(w),t.Slides.forEach(function(U){queryAll(U.slide,IMAGE_SELECTOR).forEach(function(D){var $=getAttribute(D,SRC_DATA_ATTRIBUTE),z=getAttribute(D,SRCSET_DATA_ATTRIBUTE);if($!==D.src||z!==D.srcset){var V=r.classes.spinner,F=D.parentElement,ee=child(F,"."+V)||create("span",V,F);w.push([D,U,ee]),D.src||display(D,"none")}})}),m?B():(d(S),c(S,A),A())}function A(){(w=w.filter(function(U){var D=r.perPage*((r.preloadPages||1)+1)-1;return!U[1].isWithin(e.index,D)||C(U)})).length||d(S)}function C(U){var D=U[0];addClass(U[1].slide,CLASS_LOADING),f(D,"load error",apply(P,U)),setAttribute(D,"src",getAttribute(D,SRC_DATA_ATTRIBUTE)),setAttribute(D,"srcset",getAttribute(D,SRCSET_DATA_ATTRIBUTE)),removeAttribute(D,SRC_DATA_ATTRIBUTE),removeAttribute(D,SRCSET_DATA_ATTRIBUTE)}function P(U,D){var $=U[0],z=U[1];removeClass(z.slide,CLASS_LOADING),D.type!=="error"&&(remove(U[2]),display($,""),b(EVENT_LAZYLOAD_LOADED,$,z),b(EVENT_RESIZE)),m&&B()}function B(){w.length&&C(w.shift())}return{mount:function(){r.lazyLoad&&(T(),c(EVENT_REFRESH,T))},destroy:apply(empty,w),check:A}}function Pagination(e,t,r){var o,c,d=EventInterface(e),f=d.on,b=d.emit,m=d.bind,S=t.Slides,w=t.Elements,T=t.Controller,A=T.hasFocus,C=T.getIndex,P=T.go,B=t.Direction.resolve,U=w.pagination,D=[];function $(){o&&(remove(U?slice(o.children):o),removeClass(o,c),empty(D),o=null),d.destroy()}function z(K){P(">"+K,!0)}function V(K,H){var X=D.length,J=normalizeKey(H),G=F(),Q=-1;J===B(ARROW_RIGHT,!1,G)?Q=++K%X:J===B(ARROW_LEFT,!1,G)?Q=(--K+X)%X:J==="Home"?Q=0:J==="End"&&(Q=X-1);var pe=D[Q];pe&&(focus(pe.button),P(">"+Q),prevent(H,!0))}function F(){return r.paginationDirection||r.direction}function ee(K){return D[T.toPage(K)]}function te(){var K=ee(C(!0)),H=ee(C());if(K){var X=K.button;removeClass(X,CLASS_ACTIVE),removeAttribute(X,ARIA_SELECTED),setAttribute(X,TAB_INDEX,-1)}if(H){var J=H.button;addClass(J,CLASS_ACTIVE),setAttribute(J,ARIA_SELECTED,!0),setAttribute(J,TAB_INDEX,"")}b(EVENT_PAGINATION_UPDATED,{list:o,items:D},K,H)}return{items:D,mount:function K(){$(),f([EVENT_UPDATED,EVENT_REFRESH,EVENT_END_INDEX_CHANGED],K);var H=r.pagination;U&&display(U,H?"":"none"),H&&(f([EVENT_MOVE,EVENT_SCROLL,EVENT_SCROLLED],te),(function(){var X=e.length,J=r.classes,G=r.i18n,Q=r.perPage,pe=A()?T.getEnd()+1:ceil(X/Q);addClass(o=U||create("ul",J.pagination,w.track.parentElement),c=CLASS_PAGINATION+"--"+F()),setAttribute(o,ROLE,"tablist"),setAttribute(o,ARIA_LABEL,G.select),setAttribute(o,ARIA_ORIENTATION,F()===TTB?"vertical":"");for(var ye=0;ye<pe;ye++){var de=create("li",null,o),_e=create("button",{class:J.page,type:"button"},de),Re=S.getIn(ye).map(function(Ce){return Ce.slide.id}),ge=!A()&&Q>1?G.pageX:G.slideX;m(_e,"click",apply(z,ye)),r.paginationKeyboard&&m(_e,"keydown",apply(V,ye)),setAttribute(de,ROLE,"presentation"),setAttribute(_e,ROLE,"tab"),setAttribute(_e,ARIA_CONTROLS,Re.join(" ")),setAttribute(_e,ARIA_LABEL,format(ge,ye+1)),setAttribute(_e,TAB_INDEX,-1),D.push({li:de,button:_e,page:ye})}})(),te(),b(EVENT_PAGINATION_MOUNTED,{list:o,items:D},ee(e.index)))},destroy:$,getAt:ee,update:te}}var TRIGGER_KEYS=[" ","Enter"];function Sync(e,t,r){var o=r.isNavigation,c=r.slideFocus,d=[];
185function f(){e.splides.forEach(function(A){A.isParent||(m(e,A.splide),m(A.splide,e))}),o&&(function(){var A=EventInterface(e),C=A.on;C(EVENT_CLICK,w),C(EVENT_SLIDE_KEYDOWN,T),C([EVENT_MOUNTED,EVENT_UPDATED],S),d.push(A),A.emit(EVENT_NAVIGATION_MOUNTED,e.splides)})()}function b(){d.forEach(function(A){A.destroy()}),empty(d)}function m(A,C){var P=EventInterface(A);P.on(EVENT_MOVE,function(B,U,D){C.go(C.is(LOOP)?D:B)}),d.push(P)}function S(){setAttribute(t.Elements.list,ARIA_ORIENTATION,r.direction===TTB?"vertical":"")}function w(A){e.go(A.index)}function T(A,C){includes(TRIGGER_KEYS,normalizeKey(C))&&(w(A),prevent(C))}return{setup:apply(t.Media.set,{slideFocus:isUndefined(c)?o:c},!0),mount:f,destroy:b,remount:function(){b(),f()}}}function Wheel(e,t,r){var o=EventInterface(e).bind,c=0;function d(f){if(f.cancelable){var b=f.deltaY,m=b<0,S=timeOf(f),w=r.wheelMinThreshold||0,T=r.wheelSleep||0;abs(b)>w&&S-c>T&&(e.go(m?"<":">"),c=S),(function(A){return!r.releaseWheel||e.state.is(MOVING)||t.Controller.getAdjacent(A)!==-1})(m)&&prevent(f)}}return{mount:function(){r.wheel&&o(t.Elements.track,"wheel",d,SCROLL_LISTENER_OPTIONS)}}}var SR_REMOVAL_DELAY=90;function Live(e,t,r){var o=EventInterface(e).on,c=t.Elements.track,d=r.live&&!r.isNavigation,f=create("span",CLASS_SR),b=RequestInterval(SR_REMOVAL_DELAY,apply(m,!1));function m(w){setAttribute(c,ARIA_BUSY,w),w?(append(c,f),b.start()):(remove(f),b.cancel())}function S(w){d&&setAttribute(c,ARIA_LIVE,w?"off":"polite")}return{mount:function(){d&&(S(!t.Autoplay.isPaused()),setAttribute(c,ARIA_ATOMIC,!0),f.textContent="…",o(EVENT_AUTOPLAY_PLAY,apply(S,!0)),o(EVENT_AUTOPLAY_PAUSE,apply(S,!1)),o([EVENT_MOVED,EVENT_SCROLLED],apply(m,!0)))},disable:S,destroy:function(){removeAttribute(c,[ARIA_LIVE,ARIA_ATOMIC,ARIA_BUSY]),remove(f)}}}var ComponentConstructors=Object.freeze({__proto__:null,Media,Direction,Elements,Slides,Layout,Clones,Move,Controller,Arrows,Autoplay,Cover,Scroll,Drag,Keyboard,LazyLoad,Pagination,Sync,Wheel,Live}),I18N={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},DEFAULTS={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:CLASSES,i18n:I18N,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Fade(e,t,r){var o=t.Slides;function c(){o.forEach(function(d){d.style("transform","translateX(-"+100*d.index+"%)")})}return{mount:function(){EventInterface(e).on([EVENT_MOUNTED,EVENT_REFRESH],c)},start:function(d,f){o.style("transition","opacity "+r.speed+"ms "+r.easing),nextTick(f)},cancel:noop$1}}function Slide(e,t,r){var o,c=t.Move,d=t.Controller,f=t.Scroll,b=t.Elements.list,m=apply(style,b,"transition");function S(){m(""),f.cancel()}return{mount:function(){EventInterface(e).bind(b,"transitionend",function(w){w.target===b&&o&&(S(),o())})},start:function(w,T){var A=c.toPosition(w,!0),C=c.getPosition(),P=(function(B){var U=r.rewindSpeed;if(e.is(SLIDE)&&U){var D=d.getIndex(!0),$=d.getEnd();if(D===0&&B>=$||D>=$&&B===0)return U}return r.speed})(w);abs(A-C)>=1&&P>=1?r.useScroll?f.scroll(A,P,!1,T):(m("transform "+P+"ms "+r.easing),c.translate(A,!0),o=T):(c.jump(w),T())},cancel:S}}var _Splide=(function(){function e(r,o){this.event=EventInterface(),this.Components={},this.state=State(CREATED),this.splides=[],this._o={},this._E={};var c=isString(r)?query(document,r):r;assert(c,c+" is invalid."),this.root=c,o=merge$1({label:getAttribute(c,ARIA_LABEL)||"",labelledby:getAttribute(c,ARIA_LABELLEDBY)||""},DEFAULTS,e.defaults,o||{});try{merge$1(o,JSON.parse(getAttribute(c,DATA_ATTRIBUTE)))}catch{assert(!1,"Invalid JSON")}this._o=Object.create(merge$1({},o))}var t=e.prototype;return t.mount=function(r,o){var c=this,d=this.state,f=this.Components;
185return assert(d.is([CREATED,DESTROYED]),"Already mounted!"),d.set(CREATED),this._C=f,this._T=o||this._T||(this.is(FADE)?Fade:Slide),this._E=r||this._E,forOwn$1(assign({},ComponentConstructors,this._E,{Transition:this._T}),function(b,m){var S=b(c,f,c._o);f[m]=S,S.setup&&S.setup()}),forOwn$1(f,function(b){b.mount&&b.mount()}),this.emit(EVENT_MOUNTED),addClass(this.root,CLASS_INITIALIZED),d.set(IDLE),this.emit(EVENT_READY),this},t.sync=function(r){return this.splides.push({splide:r}),r.splides.push({splide:this,isParent:!0}),this.state.is(IDLE)&&(this._C.Sync.remount(),r.Components.Sync.remount()),this},t.go=function(r){return this._C.Controller.go(r),this},t.on=function(r,o){return this.event.on(r,o),this},t.off=function(r){return this.event.off(r),this},t.emit=function(r){var o;return(o=this.event).emit.apply(o,[r].concat(slice(arguments,1))),this},t.add=function(r,o){return this._C.Slides.add(r,o),this},t.remove=function(r){return this._C.Slides.remove(r),this},t.is=function(r){return this._o.type===r},t.refresh=function(){return this.emit(EVENT_REFRESH),this},t.destroy=function(r){r===void 0&&(r=!0);var o=this.event,c=this.state;return c.is(CREATED)?EventInterface(this).on(EVENT_READY,this.destroy.bind(this,r)):(forOwn$1(this._C,function(d){d.destroy&&d.destroy(r)},!0),o.emit(EVENT_DESTROY),o.destroy(),r&&empty(this.splides),c.set(DESTROYED)),this},_createClass(e,[{key:"options",get:function(){return this._o},set:function(r){this._C.Media.set(r,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),e})(),Splide$1=_Splide;Splide$1.defaults={},Splide$1.STATES=STATES;const EVENTS=[EVENT_ACTIVE,EVENT_ARROWS_MOUNTED,EVENT_ARROWS_UPDATED,EVENT_AUTOPLAY_PAUSE,EVENT_AUTOPLAY_PLAY,EVENT_AUTOPLAY_PLAYING,EVENT_CLICK,EVENT_DESTROY,EVENT_DRAG,EVENT_DRAGGED,EVENT_DRAGGING,EVENT_HIDDEN,EVENT_INACTIVE,EVENT_LAZYLOAD_LOADED,EVENT_MOUNTED,EVENT_MOVE,EVENT_MOVED,EVENT_NAVIGATION_MOUNTED,EVENT_PAGINATION_MOUNTED,EVENT_PAGINATION_UPDATED,EVENT_REFRESH,EVENT_RESIZE,EVENT_RESIZED,EVENT_SCROLL,EVENT_SCROLLED,EVENT_UPDATED,EVENT_VISIBLE],SPLIDE_INJECTION_KEY="splide";function isObject$2(e){return e!==null&&typeof e=="object"}function forOwn(e,t){if(e){const r=Object.keys(e);for(let o=0;o<r.length;o++){const c=r[o];if(c!=="__proto__"&&t(e[c],c)===!1)break}}return e}function merge(e,t){const r=e;return forOwn(t,(o,c)=>{Array.isArray(o)?r[c]=o.slice():isObject$2(o)?r[c]=merge(isObject$2(r[c])?r[c]:{},o):r[c]=o}),r}const _sfc_main$2$1=defineComponent({name:"SplideTrack",setup(){onUpdated(()=>{var e;const t=inject(SPLIDE_INJECTION_KEY);(e=t==null?void 0:t.value)==null||e.refresh()})}}),_export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[o,c]of t)r[o]=c;return r},_hoisted_1$1$1={class:"splide__track"},_hoisted_2$n={class:"splide__list"};function _sfc_render$2(e,t,r,o,c,d){return openBlock(),createElementBlock("div",_hoisted_1$1$1,[createBaseVNode("ul",_hoisted_2$n,[renderSlot(e.$slots,"default")])])}const SplideTrack=_export_sfc(_sfc_main$2$1,[["render",_sfc_render$2]]),_sfc_main$1$1=defineComponent({name:"Splide",emits:EVENTS.map(e=>`splide:${e}`),components:{SplideTrack},props:{tag:{default:"div",type:String},options:{default:{},type:Object},extensions:Object,transition:Function,hasTrack:{default:!0,type:Boolean}},setup(e,t){const r=ref(),o=ref();onMounted(()=>{var f;o.value&&(r.value=new Splide$1(o.value,e.options),f=r.value,EVENTS.forEach(b=>{f.on(b,(...m)=>{t.emit(`splide:${b}`,f,...m)})}),r.value.mount(e.extensions,e.transition))}),onBeforeUnmount(()=>{var f;(f=r.value)==null||f.destroy()}),watch(()=>merge({},e.options),f=>{r.value&&(r.value.options=f)},{deep:!0}),provide(SPLIDE_INJECTION_KEY,r);const c=computed(()=>{var f;return((f=r.value)==null?void 0:f.index)||0}),d=computed(()=>{var f;return((f=r.value)==null?void 0:f.length)||0});return{splide:r,root:o,index:c,length:d,go:function(f){var b;(b=r.value)==null||b.go(f)},sync:function(f){var b;(b=r.value)==null||b.sync(f)}}}});function _sfc_render$1(e,t,r,o,c,d){const f=resolveComponent("SplideTrack");return openBlock(),createBlock(resolveDynamicComponent(e.tag),{class:"splide",ref:"root"},{default:withCtx(()=>[e.hasTrack?(openBlock(),createBlock(f,{key:0},{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3})):renderSlot(e.$slots,"default",{key:1})]),_:3},512)}
185const Splide=_export_sfc(_sfc_main$1$1,[["render",_sfc_render$1]]),_sfc_main$x=defineComponent({name:"SplideSlide"}),_hoisted_1$t={class:"splide__slide"};function _sfc_render(e,t,r,o,c,d){return openBlock(),createElementBlock("li",_hoisted_1$t,[renderSlot(e.$slots,"default")])}const SplideSlide=_export_sfc(_sfc_main$x,[["render",_sfc_render]]),SPLIDE_DEFAULT_OPTIONS={gap:16,arrows:!1,pagination:!1,perMove:1,type:"slide",perPage:4,trimSpace:!0,keyboard:!0,drag:!0,breakpoints:{640:{perPage:1,padding:{right:"16px"}},1020:{perPage:2},1280:{perPage:3}}},SPLIDE_GALLERY_OPTIONS={arrows:!1,pagination:!1,perMove:1,type:"slide",perPage:1,trimSpace:!0,keyboard:!0,drag:!0},SPLIDE_MEDIUM_OPTIONS={perMove:1,perPage:3,arrows:!1,pagination:!1,gap:8,padding:{right:78},breakpoints:{1140:{perPage:1,padding:{right:16}}}},SPLIDE_DATES_OPTIONS={perMove:4,autoWidth:!0,gap:9,arrows:!1,pagination:!1,trimSpace:!0},_hoisted_1$s={ref:"container",class:"relative"},_sfc_main$w=defineComponent({name:"Carousel",__name:"index",props:{overrideOptions:{type:Boolean,default:!1},options:{default:void 0},showPeek:{type:Boolean,default:!0},showArrows:{type:Boolean,default:!0},active:{default:void 0}},emits:["carousel-mounted","carousel-updated","slide-left","slide-right"],setup(e,{emit:t}){const r=t;onBeforeUnmount(()=>{var P,B;(B=(P=d.value)==null?void 0:P.splide)==null||B.destroy(!1)});const o=e,c=computed(()=>o.overrideOptions?o.options:o.options||o.overrideOptions?{...SPLIDE_DEFAULT_OPTIONS,...o.options}
185:SPLIDE_DEFAULT_OPTIONS),d=ref(),f=ref(!0),b=ref(!0),m=()=>{var P;(P=d==null?void 0:d.value)==null||P.go("<")},S=()=>{var P;(P=d==null?void 0:d.value)==null||P.go(">")},w=()=>{C(),r("carousel-mounted")},T=()=>{var P,B;C(),r("carousel-updated",(B=(P=d.value)==null?void 0:P.splide)==null?void 0:B.index)},A=()=>{C(),r("carousel-updated")},C=()=>{var D,$,z,V,F,ee,te,K,H,X,J,G,Q;const P=(F=(V=(z=($=(D=d.value)==null?void 0:D.splide)==null?void 0:$.Components)==null?void 0:z.Elements)==null?void 0:V.list)==null?void 0:F.clientWidth,B=o.showPeek?1:0;let U=0;(X=(H=(K=(te=(ee=d.value)==null?void 0:ee.splide)==null?void 0:te.Components)==null?void 0:K.Elements)==null?void 0:H.slides)==null||X.forEach(pe=>{(pe==null?void 0:pe.offsetLeft)<P&&(U+=1)}),f.value=((J=d.value)==null?void 0:J.splide.index)>0,b.value=((G=d.value)==null?void 0:G.splide.index)+(U-B)<((Q=d.value)==null?void 0:Q.splide.length)};return watch(()=>o.active,P=>{var B;P!=null&&((B=d==null?void 0:d.value)==null||B.go(P))}),(P,B)=>{const U=_sfc_main$y;return openBlock(),createElementBlock("div",_hoisted_1$s,[createVNode(unref(Splide),{id:"carousel-carousel",ref_key:"carousel",ref:d,options:unref(c),class:normalizeClass(["carousel__carousel",{"enable-peek":e.showPeek}]),"onSplide:mounted":w,"onSplide:move":A,"onSplide:moved":T},{default:withCtx(()=>[renderSlot(P.$slots,"default")]),_:3},8,["options","class"]),e.showArrows?renderSlot(P.$slots,"arrows",{key:0,slideRight:S,slideLeft:m,showNext:unref(b),showPrev:unref(f)},()=>[createVNode(U,{class:"text-primary-100","show-next":unref(b),"show-prev":unref(f),onSlideLeft:m,onSlideRight:S},null,8,["show-next","show-prev"])]):createCommentVNode("",!0)],512)}}}),DARTS_MATCH_HUB_ADVERT_PLACEHOLDER_KEY="02189310-9925-11f0-b106-bf14491ae90f.png",DARTS_BACKGROUND_KEY="https://images.gc.uzgc2.com/67abeeb0-6159-11f0-a4b4-656f1fbf90b5.png",DARTS_PARTICIPANT_COMPARISON_BACKGROUND_KEY="https://images.gc.pdcservices.co.uk/95443cb0-66e0-11f0-a813-014cdc4de757.png",DARTS_PARTICIPANT_CARD_BACKGROUND_KEY="74c2f2d0-d1be-11f0-8865-5d648685aa1d.png",DARTS_PARTICIPANT_LISTING_CARD_BACKGROUND_KEY="74c2f2d0-d1be-11f0-8865-5d648685aa1d.png",DARTS_TOURNAMENT_PLACEHOLDER_KEY="c554a180-9d39-11f0-90be-31f076307e0b.png",DARTS_PARTICIPANT_PLACEHOLDER_KEY="2acafc00-7e98-11f0-b4ae-6d8420d74fa6.png",DARTS_VIDEO_TAB_ID="Video",DARTS_DEFAULT_TAB_MOBILE="Stats",DARTS_DEFAULT_ACTIVE_TABS=["Default"],DARTS_TABS_FIXED_ORDER=["Default","Video","Timeline","Stats","Games"],DARTS_DEFAULT_TAB="Default",DARTS_TABS={showBack:!0,theme:"light",showVideosTab:!0,tabs:[{element:null,id:"Default",display:!1,title:"Default",variant:"default",active:!0,icon:{icon:"tripleDart",pack:"darts",size:24}},{element:null,id:"Timeline",display:!0,title:"Timeline",variant:"default",active:!1,icon:{icon:"tripleDart",pack:"darts",size:24}},{element:null,id:"Stats",display:!0,title:"Stats",variant:"default",active:!1,icon:{icon:"stats",pack:"legacy",size:24}},{element:null,id:"Games",display:!0,title:"All Boards",variant:"default",active:!1,icon:{icon:"dartboard",pack:"darts",size:24}},{element:null,id:"Video",display:!0,title:"LIVE",variant:"accent",active:!1,icon:{icon:"video",pack:"fan",size:20}}]},getAgeFromDate=e=>{if(e){const t=DateTime.fromISO(e);if(t.isValid){const r=DateTime.now();return String(Math.floor(r.diff(t,"years").years))}return null}},getRelativeTimestamp=e=>{if(!e)return"";const t=e,r=DateTime.fromISO(t);return DateTime.now().minus({days:7})<r?r.toRelative()??"":r.toFormat("d MMMM yy")},getStartEndTimestamp=(e,t)=>{if(e&&t){const r=DateTime.fromISO(e),o=DateTime.fromISO(t);return r.hasSame(o,"day")?r.toFormat("ccc dd LLL yyyy"):r.toFormat("ccc dd LLL - ")+o.toFormat("ccc dd LLL yyyy")}return""},convertFootballMatchTime=(e,t)=>(t==="FirstHalf"||t==="HalfTime")&&e>45?"45'+"+e%45:(t==="SecondHalf"||t==="FullTime")&&e>90?"90'+"+e%90:(t==="ExtraFirstHalf"||t==="FullTime")&&e>105?"105'+"+e%105:(t==="ExtraSecondHalf"||t==="FullTime")&&e>120?"120'+"+e%120:`${e.toString()}'`,getSegmentTypeFromMultiplier=e=>{switch(e){case 1:default:return"Fat";case 2:return"Double";case 3:return"Treble";case 25:return"OuterBull";case 50:return"Bull"}},getMultiplier=(e,t)=>{switch(t){case"Double":return`D${e}`;case"Treble":return`T${e}`;case"OuterBull":return"25";case"Bull":return"BULL";default:return`${e}`}},getMatchStatus=(e,t,r)=>{if(!t||!r)return"TBC";if(e)switch(e){case"Fixture":return"VS";case"Live":return"LIVE";default:return null}return null},getDartsMatchWinner=(e,t,r)=>e?e===t?"participantOne":e===r?"participantTwo":"none":"none",getDartsProfileImageKey=e=>{if(!e)return DARTS_PARTICIPANT_PLACEHOLDER_KEY;if(Array.isArray(e)){const t=e.find(r=>r&&"type"in r?r.type==="profile":r.image);return(t==null?void 0:t.image)||DARTS_PARTICIPANT_PLACEHOLDER_KEY}return typeof e=="object"&&e.image||DARTS_PARTICIPANT_PLACEHOLDER_KEY},getHeadToHeadData=(e,t)=>e&&e.length?e.map(r=>{var m,S;if(!r.attributes)return;const o=r.attributes.participant1ID===t,c=r.attributes.participant1Score===r.attributes.participant2Score,d=r.attributes.winnerParticipantID,f=d?d===t:void 0,b=c&&!d;return{...r.attributes,winnerAlignLeft:f,drawAlign:b,participantLeftScore:o?r.attributes.participant1Score:r.attributes.participant2Score,participantRightScore:o?r.attributes.participant2Score:r.attributes.participant1Score,competitionName:(m=r.attributes.tournament)==null?void 0:m.name,round:(S=r.attributes.stage)==null?void 0:S.name,date:DateTime.fromISO(r.attributes.startDate).isValid?DateTime.fromISO(r.attributes.startDate).toFormat("dd LLL yyyy"):void 0}}):[],getVisitsByParticipant=(e,t)=>
185{var o,c;const r=(c=(o=e.data.attributes)==null?void 0:o.legs)==null?void 0:c.at(-1);return r&&r.visits&&r.visits.length?r.visits.filter(d=>t?d.isParticipant1:!d.isParticipant1).splice(0,5):[]},getFixtureAttributes=e=>{var t,r,o,c,d,f,b,m,S,w,T,A,C,P,B,U,D,$;return{id:e.fixtureID,homeTeamId:(t=e.participant1)==null?void 0:t.participantID,awayTeamId:(r=e.participant2)==null?void 0:r.participantID,homeTeamName:(o=e.participant1)!=null&&o.lastName?((c=e.participant1)==null?void 0:c.firstName)+" "+((d=e.participant1)==null?void 0:d.lastName):"TBC",homeTeamFirstName:((f=e.participant1)==null?void 0:f.firstName)??"",homeTeamLastName:((b=e.participant1)==null?void 0:b.lastName)??"TBC",homeTeamFlag:((S=(m=e.participant1)==null?void 0:m.countryCode)==null?void 0:S.toLowerCase())??"",awayTeamName:(w=e.participant2)!=null&&w.lastName?((T=e.participant2)==null?void 0:T.firstName)+" "+((A=e.participant2)==null?void 0:A.lastName):"TBC",awayTeamFirstName:((C=e.participant2)==null?void 0:C.firstName)||"",awayTeamLastName:((P=e.participant2)==null?void 0:P.lastName)||"TBC",awayTeamFlag:((U=(B=e.participant2)==null?void 0:B.countryCode)==null?void 0:U.toLowerCase())??"",status:e.status,homeTeamScore:e.status==="Fixture"?void 0:e.participant1Score??0,awayTeamScore:e.status==="Fixture"?void 0:e.participant2Score??0,homeTeamImage:getDartsProfileImageKey((D=e.participant1)==null?void 0:D.media),awayTeamImage:getDartsProfileImageKey(($=e.participant2)==null?void 0:$.media),startDate:e.startDate,startTime:e.startTime,winnerParticipantId:e.winnerParticipantID}},participantTransformer=({sport:e,value:t,config:r,options:o})=>e==="badminton"?transformBadmintonResponse({value:t,config:r,options:o}):e==="darts"?transformDartsResponse({value:t}):e==="rugbyleague"?transformRugbyLeagueResponse({value:t,config:r,options:o}):transformFootballResponse({value:t,config:r,options:o}),transformDartsResponse=({value:e})=>{var f,b,m,S,w;let t,r,o;const c=e.statistics?{...e.statistics,meta:{...e.meta,ranking:e.ranking,prizeMoney:e.prizeMoney}}:void 0;if(Array.isArray(e.media)){const T=e.media.find(A=>A.type==="profile");o=T==null?void 0:T.image,t=e.media.filter(A=>A.type==="sponsor"&&A.published).map(A=>({order:A.order,title:A.title,link:A.link??void 0,description:A.description??void 0,imageKey:A.image})),r=e.media.filter(A=>A.type==="gallery").map(A=>({imageKey:(A==null?void 0:A.image)??DARTS_PARTICIPANT_PLACEHOLDER_KEY}))}else o=(f=e.media)==null?void 0:f.image;const d=(b=e.prizeMoney)==null?void 0:b.toLocaleString("en-GB",{style:"currency",currency:"GBP"});return{title:`${e.firstName} ${e.lastName}`,firstName:e.firstName,lastName:e.lastName,imageKey:getDartsProfileImageKey(e.media),playerPosition:e.ranking||0,description:e.countryCode,countryCode:(e.countryCode||"gb-eng").toLowerCase(),id:e.participantID??e.id,actionUrl:`/players/${e.participantSlug}`,stats:c,careerRecord:(m=e.statistics)==null?void 0:m.careerRecord,age:getAgeFromDate(e.dob),slug:e.participantSlug,prizeMoney:e.prizeMoney||0,formattedPrizeMoney:d,birthPlace:((S=e.meta)==null?void 0:S.placeOfBirth)??void 0,nickname:e.nickname,playerProfile:{sponsorsArray:t,profileImageKey:o,bio:(w=e.meta)==null?void 0:w.biography,gallery:r}}},transformBadmintonResponse=({value:e,options:t,config:r})=>{var d;const o=`${e.firstName.toLocaleLowerCase()}-${e.lastName.toLowerCase()}`,c=`/${r.public.club.slugs.players}/${t==null?void 0:t.slugTeamName}/${o}`;return{title:`${e.firstName} ${e.lastName}`,firstName:e.firstName,lastName:e.lastName,imageKey:(d=e.photos)==null?void 0:d.profileImage,description:e.nationality,team:(t==null?void 0:t.groupName)||"",countryCode:e.nationality,playerPosition:"Unknown",id:e.participantID,actionUrl:c,playerProfile:{bio:e.bio,bioImageKey:e.photos.profileImage,primaryRetailLink:null,quote:null,quoteSource:null,shirtType:null,primaryRetailTitle:null,retailImage:null,facebook:e.socials.facebook,website:e.socials.website,tiktok:e.socials.tiktok,twitter:e.socials.twitter,instagram:e.socials.instagram,threads:e.socials.threads,profileImageKey:e.photos.heroImage,pageStructure:{bio:e.bio?"show":"hide",news:"show",retail:"hide",stats:"hide"}}}},transformFootballResponse=({value:e,options:t,config:r})=>{var d,f,b,m,S,w,T,A,C,P,B,U,D,$,z,V,F,ee,te,K,H,X,J,G,Q,pe,ye,de,_e,Re;const o=(f=(d=r.public.sport)==null?void 0:d.football)==null?void 0:f.playerProfilePlaceholderKey,c=e.enableProfilePage?`/${r.public.club.slugs.players}/${t==null?void 0:t.slugTeamName}/${e.playerSlug}`:null;return{title:`${e.firstName} ${e.surname}`,firstName:e.firstName,lastName:e.surname,imageKey:((b=e.playerProfileData)==null?void 0:b.squadImageKey)||o,description:e.country,shirtNumber:e.shirtNumber,hideShirtNumber:e.hideShirtNumber,playerPosition:e.position||"Unknown",team:e.team,countryCode:e.customAlpha2Code||e.alpha2Code?(e.customAlpha2Code||e.alpha2Code).toLowerCase():void 0,loaned:e.loan,loanedFrom:e.onLoanFrom,captain:(m=e.playerProfileData)==null?void 0:m.squadCaptain,knownName:e.knownName,realPosition:e.realPosition,id:e.playerID,actionUrl:c,joinDate:e.joinDate,dob:e.dob,age:getAgeFromDate(e.dob),alpha2Code:e.alpha2Code,stats:e.playerStats,social:{facebook:(S=e.playerProfileData)==null?void 0:S.facebook,instagram:(w=e.playerProfileData)==null?void 0:w.instagram,twitter:(T=e.playerProfileData)==null?void 0:T.twitter,tiktok:(A=e.playerProfileData)==null?void 0:A.tiktok,threads:(C=e.playerProfileData)==null?void 0:C.threads},playerProfile:{bio:(P=e.playerProfileData)==null?void 0:P.biography,bi
185oImageKey:(B=e.playerProfileData)==null?void 0:B.bioImageKey,primaryRetailLink:(U=e.playerProfileData)==null?void 0:U.primaryRetailLink,quote:(D=e.playerProfileData)==null?void 0:D.quote,quoteSource:($=e.playerProfileData)==null?void 0:$.quotee,shirtType:(z=e.playerProfileData)==null?void 0:z.shirtType,profileImageKey:((V=e.playerProfileData)==null?void 0:V.playerProfileForegroundKey)||((F=e.playerProfileData)==null?void 0:F.squadImageKey)||o,profileBackgroundImageKey:(ee=e.playerProfileData)==null?void 0:ee.playerProfileBackgroundOptionalKey,primaryRetailTitle:(te=e.playerProfileData)==null?void 0:te.primaryRetailTitle,gallery:(K=e.playerProfileData)==null?void 0:K.gallery,sponsorsArray:(((H=e.playerProfileData)==null?void 0:H.sponsorsArray)||[]).map(ge=>({title:ge.sponsorText,link:ge.sponsorUrl??void 0,imageKey:ge.sponsorImageKey})),pageStructure:{bio:((J=(X=e.playerProfileData)==null?void 0:X.pageStructure)==null?void 0:J.bio)||null,retail:((Q=(G=e.playerProfileData)==null?void 0:G.pageStructure)==null?void 0:Q.retail)||null,news:((ye=(pe=e.playerProfileData)==null?void 0:pe.pageStructure)==null?void 0:ye.news)||null,stats:((_e=(de=e.playerProfileData)==null?void 0:de.pageStructure)==null?void 0:_e.stats)||null},primaryRetailImageKey:(Re=e.playerProfileData)==null?void 0:Re.primaryRetailImageKey}}},transformRugbyLeagueResponse=({value:e,options:t,config:r})=>{var d,f,b,m,S,w,T,A,C,P,B,U,D;if(!e)throw new Error("Rugby League participant data is missing");const o=(f=(d=r.public.sport)==null?void 0:d.rugbyleague)==null?void 0:f.playerProfilePlaceholderKey,c=`/teams/${t==null?void 0:t.slugTeamName}/${e.participantSlug??e.participantID}`;return{title:`${e.firstName} ${e.lastName}`,firstName:e.firstName,lastName:e.lastName,imageKey:((b=e.metadata)==null?void 0:b.profileImage)||o,shirtNumber:(m=e.squadNumber)==null?void 0:m.toString(),playerPosition:e.position||"Unknown",realPosition:e.position??void 0,knownName:e.knownName,id:e.participantID,actionUrl:c,age:getAgeFromDate(e.dateOfBirth),social:((S=e.metadata)==null?void 0:S.social)??void 0,playerProfile:{bio:(w=e.metadata)==null?void 0:w.bio,bioImageKey:(T=e.metadata)==null?void 0:T.bioImage,profileBackgroundImageKey:(A=e.metadata)==null?void 0:A.profileBackgroundImage,profileImageKey:((C=e.metadata)==null?void 0:C.bioImage)||o,gallery:((P=e.metadata)==null?void 0:P.imageGallery)||[],sponsorsArray:(B=e.metadata)!=null&&B.sponsors&&Array.isArray((U=e.metadata)==null?void 0:U.sponsors)?(D=e.metadata)==null?void 0:D.sponsors.map($=>{var z;return{imageKey:(z=$.image)==null?void 0:z.image,link:$.link,description:$.description}}):[]}}},useTeamsPageStore=defineStore("teamsPage",()=>{const e={defaultTeams:[],teams:[],activeTeamID:"",searchTerm:void 0,activePositionFilter:void 0,loading:!0},t=reactive({...e}),{$gc:r}=useNuxtApp(),o=computed(()=>t.defaultTeams.reduce((c,d)=>d.participants?[...c,...d.participants]:c,[]));return{...toRefs(t),allParticipants:o,fetchDefaultTeams:async()=>{if(t.defaultTeams.length>0)return t.defaultTeams;try{(await r().clientTeamDefaultsWeb.fetchClientTeamDefaults()).data.forEach(c=>{if(!c.attributes)throw new Error("Team attributes are missing");(d=>{t.defaultTeams.findIndex(f=>f.teamID===d.teamID)===-1&&t.defaultTeams.push({...d,participants:[]})})({...c.attributes,teamID:c.id})})}catch(c){console.error("Error fetching default teams:",c)}},fetchTeamById:async c=>{const d=t.teams.findIndex(f=>f.teamID===c);if(d!==-1)return t.teams[d];try{const f=await r().teamsWeb.fetchTeamById(c),b=f.data;if(!b.attributes)throw new Error("Team attributes are missing");return(m=>{const S=t.teams.findIndex(w=>w.teamID===m.teamID);S===-1?t.teams.push(m):t.teams[S]=m})({teamID:b.id,...b.attributes}),f}catch(f){return console.error("Error fetching team by ID:",f),null}},fetchTeamParticipants:async c=>{const d=t.defaultTeams.findIndex(f=>f.teamID===c);if(d!==-1&&t.defaultTeams[d].participants&&t.defaultTeams[d].participants.length>0)return t.defaultTeams[d].participants;try{t.loading=!0;const f=await r().teamsWeb.fetchTeamParticipants(c,{}),b=f.data.map(m=>{if(!m.attributes)throw new Error("Participant attributes are missing");return((S,w,T)=>{var C,P,B;const A=useRuntimeConfig();if(!S)throw new Error("Participant attributes are missing");return{...participantTransformer({value:{...S,participantID:w},sport:(P=(C=A.public)==null?void 0:C.club)==null?void 0:P.sport,config:A,options:{slugTeamName:(B=t.defaultTeams.find(U=>U.teamID===T))==null?void 0:B.slugTeamName}}),team:T}})(m.attributes,m.id,c)});return t.defaultTeams[d].participants=b,f}catch(f){return console.error("Error fetching team participants:",f),null}finally{t.loading=!1}},getTeamIDFromSlug:c=>{const d=t.defaultTeams.find(f=>f.slugTeamName===c);return d?d.teamID:null},reset:()=>{Object.assign(t,e)}}}),_hoisted_1$r={class:"pl-4 lg:pl-[52px] mx-auto header-fixture-carou
185sel relative overflow-hidden light bg-surface-high isolate"},_sfc_main$v=defineComponent({__name:"index",setup(e){const{fetchDefaultTeams:t}=useTeamsPageStore(),{defaultTeams:r}=storeToRefs(useTeamsPageStore()),{$gc:o}=useNuxtApp(),c=ref(useRuntimeConfig().public.club.sport||"football"),d=ref(),f=ref();onMounted(async()=>{var w;c.value==="football"&&await b(),c.value==="rugby"&&(await m(),await t(),f.value=(w=r.value[0])==null?void 0:w.teamID)});const b=async()=>{const w=o().football.web(),T=await w.getTeams();if(!T||T.length===0)return;const A=await w.getLatestSeason(T[0].teamName),C=await w.getFixtures(T[0].teamName,"fixtures",A.seasonID);d.value=C.splice(0,8)},m=async()=>{const w=DateTime.now().toISODate(),T=await o().fixturesWeb.fetchAllFixtures({from:w,teamID:f.value});d.value=T.data},S=ref({type:"slide",perPage:1,arrows:!1,pagination:!1,perMove:1,mediaQuery:"min",gap:0,padding:{right:"48px"},breakpoints:{640:{perPage:1},1020:{perPage:2,padding:{right:"102px"}},1280:{perPage:4}}});return(w,T)=>{const A=_sfc_main$z,C=_sfc_main$w;return openBlock(),createElementBlock("div",_hoisted_1$r,[createVNode(C,{class:"fixture-carousel__fill-before",options:unref(S),"show-peek":!0,"show-arrows":!0},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d),(P,B)=>(openBlock(),createBlock(unref(SplideSlide),{key:B},{default:withCtx(()=>[createVNode(A,{fixture:P,"default-team-id":unref(f)},null,8,["fixture","default-team-id"])]),_:2},1024))),128))]),_:1},8,["options"])])}}}),useHeader=()=>{var r,o,c,d;const e=useRuntimeConfig(),t=usePropertiesStore();return t.property!==void 0&&((o=(r=e.public.menus)==null?void 0:r.propertyHeaders)==null?void 0:o[t.property])!=null?{...(d=(c=e.public.menus)==null?void 0:c.propertyHeaders)==null?void 0:d[t.property],showSSO:e.public.club.features.sso,sponsors:e.public.sponsors.menu}:{...e.public.menus.header,showSSO:e.public.club.features.sso,sponsors:e.public.sponsors.menu}},_hoisted_1$q={key:0,class:"flex items-center text-xl uppercase md:hidden font-heading"},_hoisted_2$m={key:2,class:"font-heading h-[66px] text-white flex-grow flex items-center text-2xl"},_hoisted_3$j={key:1,class:"flex justify-start sm:justify-center flex-none w-[40%] md:w-[10%] h-full items-center"},_hoisted_4$h={key:0,class:""},_hoisted_5$c={class:"flex w-full gap-2 animate-pulse"},_sfc_main$u=defineComponent({__name:"MainNav",props:{siteMap:{type:Boolean},isMenuOpen:{type:Boolean},style:{},logoPosition:{},logoAlignment:{},align:{},primaryMenuItemInteraction:{},showFixtureCarousel:{type:Boolean},crest:{},primaryMenuItems:{},primaryNavTextSize:{},casing:{},navFontIsSecondary:{type:Boolean},actions:{},sponsors:{},showGlobalNav:{type:Boolean},showSSO:{type:Boolean},officialHeading:{},showOfficialHeading:{type:Boolean},SSOPosition:{},showPrimaryNavOnMenuOpen:{type:Boolean},navigationButtons:{},pinSponsors:{type:Boolean}},setup(e){const t=useRuntimeConfig(),r=e,o=computed(()=>r.logoAlignment==="center"&&r.logoPosition==="attached"),c=computed(()=>{var T,A,C;return(C=(A=(T=t.public)==null?void 0:T.club)==null?void 0:A.features)==null?void 0:C["streaming-site"]}),d=ref(),f=ref(),b=ref(),m=ref(),S=ref();onMounted(()=>{w()});const w=async()=>{var T,A,C,P;d.value=await useHeader(),m.value=((T=d.value)==null?void 0:T.navType)==="Complex",b.value=(A=d.value)==null?void 0:A.navigationButton,f.value=(C=d.value)==null?void 0:C.showSSO,S.value=(P=d.value)==null?void 0:P.streamingNav};return(T,A)=>{var z,V,F,ee,te;const C=_sfc_main$F,P=_sfc_main$C,B=_sfc_main$T,U=_sfc_main$B,D=_sfc_main$A,$=_sfc_main$v;return openBlock(),createElementBlock("div",{class:normalizeClass(["relative flex flex-col justify-between w-full",`text-${e.primaryNavTextSize} ${unref(o)?"min-h-[80px]":""}`])},[createBaseVNode("div",{class:normalizeClass(["relative flex w-full h-full px-4 m-auto xl:px-16",{"xl:pl-0":e.logoPosition==="offset"&&e.align==="left"}])},[createBaseVNode("div",{class:normalizeClass(["flex justify-between w-full min-h-[56px]",unref(o)?"h-full":"gap-4 py-2 items-center"])},[unref(o)?createCommentVNode("",!0):(openBlock(),createBlock(C,{key:0,id:"logo-1",size:e.crest,landscape:((z=unref(d))==null?void 0:z.crestOrientation)==="rectangle",position:e.logoPosition,class:normalizeClass(["z-10",{"flex md:hidden":e.logoPosition==="offset"&&e.logoAlignment==="left","absolute left-[50vw] flex":e.logoAlignment==="center","top-[-10px]":e.logoAlignment==="center"&&e.crest==="large","!top-[-20%]":e.logoAlignment==="center"&&e.logoPosition==="offset"&&e.crest==="large","border-right relative ":e.logoPosition==="attached"&&e.align==="center"}]),to:"/"},null,8,["size","landscape","position","class"])),createBaseVNode("div",{class:normalizeClass(["flex items-center",[unref(o)?"w-[30%] md:w-[45%] hidden sm:block":"flex-1",e.showOfficialHeading?"justify-center":""]])},[e.showOfficialHeading?(openBlock(),createElementBlock("div",_hoisted_1$q,toDisplayString(e.officialHeading),
1851)):createCommentVNode("",!0),e.primaryMenuItems.length>0&&e.siteMap!=1&&(!unref(c)||unref(c)&&unref(S))?(openBlock(),createBlock(P,{key:1,class:normalizeClass(["hidden font-heading xl:flex",[{uppercase:e.casing!=="lower","font-sans !text-sm !lg:text-lg":e.navFontIsSecondary===!0,"md:flex items-center":e.logoAlignment==="center"&&e.logoPosition==="attached"},`font-heading text-heading-${e.primaryNavTextSize}`]]),"logo-position":e.logoPosition,"logo-alignment":e.logoAlignment,"primary-nav-text-size":e.primaryNavTextSize,"primary-menu-item-interaction":e.primaryMenuItemInteraction,"primary-menu-items":e.primaryMenuItems,"is-menu-open":e.isMenuOpen,"official-heading":e.officialHeading,align:e.align,"show-official-heading":e.showOfficialHeading,style:normalizeStyle(e.style),"show-primary-nav-on-menu-open":e.showPrimaryNavOnMenuOpen},null,8,["logo-position","logo-alignment","primary-nav-text-size","primary-menu-item-interaction","primary-menu-items","is-menu-open","official-heading","align","show-official-heading","style","show-primary-nav-on-menu-open","class"])):unref(c)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_2$m,toDisplayString(unref(t).public.club.name),1))],2),e.logoAlignment==="center"&&e.logoPosition==="attached"?(openBlock(),createElementBlock("div",_hoisted_3$j,[createVNode(C,{id:"logo-1",size:e.crest,position:e.logoPosition,landscape:!0,class:"z-10 content-center justify-items-center",to:"/"},null,8,["size","position"])])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["flex items-center justify-end",unref(o)?"w-[30%] md:w-[45%]":""])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.navigationButtons,K=>(openBlock(),createElementBlock(Fragment,{key:K},[K?(openBlock(),createBlock(B,{key:0,class:"items-center hidden mr-4 xl:flex w-[120px] font-heading text-heading-xl",type:"primary",hover:"icon-move",content:K.title,icon:K.icon,"icon-pack":K.iconPack,"icon-size":24,link:K.action},null,8,["content","icon","icon-pack","link"])):createCommentVNode("",!0)],64))),128)),e.sponsors.length>0&&(e.sponsors.length<3||e.pinSponsors)?(openBlock(),createBlock(U,{key:0,sponsors:e.sponsors,style:normalizeStyle(e.style),class:normalizeClass(e.pinSponsors?"md:flex hidden":"")},null,8,["sponsors","style","class"])):createCommentVNode("",!0),A[0]||(A[0]=createBaseVNode("div",{class:"weglot-translator-container"},null,-1)),((V=e.actions)==null?void 0:V.length)>0&&(!unref(c)||unref(c)&&unref(S))?(openBlock(),createBlock(D,{key:1,class:normalizeClass({"ml-auto":e.sponsors.length===0}),actions:e.actions,style:normalizeStyle((ee=(F=e.style)==null?void 0:F.child)==null?void 0:ee[0]),"is-menu-open":e.isMenuOpen,"logo-position":e.logoPosition,"show-s-s-o":unref(f),"show-global-nav":e.showGlobalNav,"s-s-o-position":e.SSOPosition,"burger-on-mobile-only":(te=unref(d))==null?void 0:te.burgerOnlyOnMobile},null,8,["class","actions","style","is-menu-open","logo-position","show-s-s-o","show-global-nav","s-s-o-position","burger-on-mobile-only"])):createCommentVNode("",!0)],2)],2)],2),e.showFixtureCarousel&&e.logoPosition!=="offset"&&!unref(c)?(openBlock(),createElementBlock("div",_hoisted_4$h,[(openBlock(),createBlock(Suspense,null,{default:withCtx(()=>[createVNode($)]),fallback:withCtx(()=>[createBaseVNode("div",_hoisted_5$c,[(openBlock(),createElementBlock(Fragment,null,renderList(4,K=>createBaseVNode("div",{key:K,class:"bg-gray-300"})),64))])]),_:1}))])):createCommentVNode("",!0)],2)}}}),_hoisted_1$p={class:"flex flex-col items-center w-full"},_hoisted_2$l={key:2,class:"h-full"},_hoisted_3$i={class:"w-full flex gap-2 animate-pulse h-[300px]"},_sfc_main$t=defineComponent({name:"HeaderComplex",__name:"index",props:{crest:{default:"large"},logoPosition:{default:"offset"},logoAlignment:{default:"left"},align:{default:"left"},globalAlign:{default:"left"},adTheme:{default:"light"},globalNavTextSize:{default:"xs"},primaryNavTextSize:{default:"lg"},officialMessage:{default:"Official Website"},officialHeading:{default:""},globalMenuItemInteraction:{default:"fill"},primaryMenuItemInteraction:{default:"stroke"},lowercasePrimary:{},adSlotId:{default:void 0},showFixtureCarousel:{type:Boolean,default:!1},casing:{default:void 0},siteMap:{type:Boolean,default:!1},isMenuOpen:{type:Boolean,default:!1},hideBorder:{type:Boolean},borderIsSecondary:{type:Boolean},borderIsTertiary:{type:Boolean},globalFontIsHeading:{type:Boolean,default:!1},navFontIsSecondary:{type:Boolean,default:!1},showAdBanner:{type:Boolean,default:void 0},showGlobalNav:{type:Boolean,default:!0},showSSO:{type:Boolean,default:!1},showOfficialMessage:{type:Boolean,default:!1},showOfficialHeading:{type:Boolean,default:!1},style:{},sponsors:{default:[]},actions:{},primaryMenuItems:{default:[]},secondaryMenuItems:{default:[]},mode:{},clubLogoKey:{},showPrimaryNavOnMenuOpen:{type:Boolean,default:!1},useComplexNav:{type:Boolean},SSOPosition:{default:"right"},navigationButtons:{default:void 0},sponsorAlignment:{},showSponsor:{type:Boolean},showSponsorsBanner:{type:Boolean,default:!1},pinSponsors:{type:Boolean},burgerOnlyOnMobile:{type:Boolean},crestOrientation:{},showReveal:{type:Boolean}
185,transparentBackground:{type:Boolean}},setup(e){const t=ref(),r=computed(()=>{var f,b,m;return(m=(b=(f=c.public)==null?void 0:f.club)==null?void 0:b.features)==null?void 0:m["streaming-site"]});onMounted(()=>{o()});const o=async()=>{var f;t.value=await useHeader(),d.value=((f=t.value)==null?void 0:f.navType)==="Complex"},c=useRuntimeConfig(),d=ref();return(f,b)=>{const m=_sfc_main$H,S=_sfc_main$G,w=_sfc_main$F,T=_sfc_main$D,A=_sfc_main$u,C=_sfc_main$v;return openBlock(),createElementBlock("div",null,[e.adSlotId&&!e.isMenuOpen&&e.showAdBanner!==!1?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([e.adTheme,{"z-[100]":e.logoPosition!=="detached"}])},[createVNode(m,{"is-full-width-slot":!0,class:"max-w-[320px] md:max-w-[728px] !max-h-[50px] md:!max-h-[90px] mx-auto relative",data:{contents:{widgetData:{slotID:e.adSlotId}}}},null,8,["data"])],2)):createCommentVNode("",!0),e.sponsors.length>2&&e.showSponsorsBanner===!0?(openBlock(),createBlock(S,{key:1,sponsors:e.sponsors,class:normalizeClass(["w-full bg-primary-500",e.pinSponsors?"md:hidden flex":""])},null,8,["sponsors","class"])):createCommentVNode("",!0),createBaseVNode("header",{class:normalizeClass(["relative z-50 flex flex-row w-full h-full border-b-primary-600 text-clear",[("useStyleObject"in f?f.useStyleObject:unref(useStyleObject))(e.style.children?e.style.children.mainMenu:e.style),{"border-b-primary-600":e.borderIsSecondary!=1&&e.borderIsTertiary!=1,"border-b-secondary-600":e.borderIsSecondary==1,"border-b-tertiary-500":e.borderIsTertiary==1,"border-b-4":!e.hideBorder},{"!bg-[linear-gradient(to_bottom,rgba(0,0,0,1)_0%,rgba(0,0,0,0.738)_19%,rgba(0,0,0,0.541)_34%,rgba(0,0,0,0.382)_47%,rgba(0,0,0,0.278)_56.5%,rgba(0,0,0,0.194)_65%,rgba(0,0,0,0.126)_73%,rgba(0,0,0,0.075)_80.2%,rgba(0,0,0,0.042)_86.1%,rgba(0,0,0,0.021)_91%,rgba(0,0,0,0.008)_95.2%,rgba(0,0,0,0.002)_98.2%,rgba(0,0,0,0)_100%)] !absolute top-0":e.transparentBackground&&!e.showReveal},{"items-center":unref(d)}]])},[e.logoPosition==="offset"&&e.logoAlignment==="left"?(openBlock(),createBlock(w,{key:0,size:e.crest,to:"/",class:"items-center justify-center hidden h-auto py-2 mx-8 lg:mx-12 md:flex shrink-0"},null,8,["size"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1$p,[e.showGlobalNav&&!e.showOfficialHeading?(openBlock(),createBlock(T,{key:0,style:normalizeStyle(e.style),"global-align":e.globalAlign,"secondary-menu-items":e.secondaryMenuItems,"global-font-is-heading":e.globalFontIsHeading,"global-nav-text-size":e.globalNavTextSize,"official-message":e.officialMessage,"global-menu
185-item-interaction":e.globalMenuItemInteraction,"show-s-s-o":e.showSSO,"logo-position":e.logoPosition,"show-official-message":e.showOfficialMessage,id:"global-nav"},null,8,["style","global-align","secondary-menu-items","global-font-is-heading","global-nav-text-size","official-message","global-menu-item-interaction","show-s-s-o","logo-position","show-official-message"])):createCommentVNode("",!0),createVNode(A,{style:normalizeStyle(e.style),"is-menu-open":e.isMenuOpen,align:e.align,"primary-nav-text-size":e.primaryNavTextSize,crest:e.crest,"site-map":e.siteMap,"logo-position":e.logoPosition,"logo-alignment":e.logoAlignment,"primary-menu-item-interaction":e.primaryMenuItemInteraction,"show-fixture-carousel":e.showFixtureCarousel,"primary-menu-items":e.primaryMenuItems,casing:e.casing,actions:e.actions??[],"nav-font-is-secondary":e.navFontIsSecondary,sponsors:e.sponsors,"show-global-nav":e.showGlobalNav,"show-s-s-o":e.showSSO,"official-heading":e.officialHeading,"show-official-heading":e.showOfficialHeading,class:normalizeClass([e.logoPosition==="detached"&&("useStyleObject"in f?f.useStyleObject:unref(useStyleObject))(e.style.children?e.style.children.mainMenu:e.style),{"md:container absolute left-[50%] -translate-x-1/2 w-[365px] top-[72px]":e.logoPosition==="detached"},{"bg-[linear-gradient(to_bottom,rgba(0,0,0,1)_0%,rgba(0,0,0,0.738)_19%,rgba(0,0,0,0.541)_34%,rgba(0,0,0,0.382)_47%,rgba(0,0,0,0.278)_56.5%,rgba(0,0,0,0.194)_65%,rgba(0,0,0,0.126)_73%,rgba(0,0,0,0.075)_80.2%,rgba(0,0,0,0.042)_86.1%,rgba(0,0,0,0.021)_91%,rgba(0,0,0,0.008)_95.2%,rgba(0,0,0,0.002)_98.2%,rgba(0,0,0,0)_100%)]":e.transparentBackground&&!e.isMenuOpen}]),"show-primary-nav-on-menu-open":e.showPrimaryNavOnMenuOpen,"s-s-o-position":e.SSOPosition,"navigation-buttons":e.navigationButtons,"pin-sponsors":e.pinSponsors,id:"main-nav"},null,8,["style","is-menu-open","align","primary-nav-text-size","crest","site-map","logo-position","logo-alignment","primary-menu-item-interaction","show-fixture-carousel","primary-menu-items","casing","actions","nav-font-is-secondary","sponsors","show-global-nav","show-s-s-o","official-heading","show-official-heading","class","show-primary-nav-on-menu-open","s-s-o-position","navigation-buttons","pin-sponsors"])])],2),e.showFixtureCarousel&&e.logoPosition==="offset"&&!unref(r)?(openBlock(),createElementBlock("div",_hoisted_2$l,[(openBlock(),createBlock(Suspense,null,{default:withCtx(()=>[createVNode(C)]),fallback:withCtx(()=>[createBaseVNode("div",_hoisted_3$i,[(openBlock(),createElementBlock(Fragment,null,renderList(4,P=>createBaseVNode("div",{key:P,class:"bg-gray-300"})),64))])]),_:1}))])):createCommentVNode("",!0)])}}}),_sfc_main$s=defineComponent({__name:"index",setup(e){const t=ref(),r=ref(),o=ref(),c=ref(),d=ref(),f=useStore(),b=useRoute$1(),m=computed(()=>f.isMenuOpen),S=usePropertiesStore(),{property:w}=toRefs(S),T=ref(null),A=ref(0);watchEffect(()=>{w.value&&(d.value=useHeader())}),onMounted(()=>{d.value=useHeader(),t.value=!1,o.value=!1,c.value=!1,P(),window.addEventListener("scroll",C)}),onBeforeUnmount(()=>{window.removeEventListener("scroll",C)});const C=()=>{const B=window.scrollY,U=A.value<B;if(d.value.mode==="sticky"&&(t.value=U),d.value.mode==="reveal"){const D=window.scrollY||document.documentElement.scrollTop;D>r.value?o.value=!0:D<r.value&&(c.value=!0),r.value=D<=0?0:D;const $=U&&c.value===!0&&o.value===!0;r.value===0&&(o.value=!1,c.value=!1),t.value=$}},P=()=>{T.value&&(A.value=T.value.offsetHeight)};return(B,U)=>{var z,V,F,ee,te,K,H,X,J;const D=_sfc_main$I,$=_sfc_main$t;return openBlock(),createElementBlock(Fragment,null,[createVNode(Transition,{name:"nav-slide"},{default:withCtx(()=>{var G;return[unref(f).showSearch?(openBlock(),createBlock(D,{key:0,"transparent-background-nav":(G=unref(d))==null?void 0:G.transparentBackground},null,8,["transparent-background-nav"])):createCommentVNode("",!0)]}),_:1}),createBaseVNode("div",{id:"header-container",ref_key:"container",ref:T,class:normalizeClass(["z-[998] relative",[{"pt-[76px] lg:pt-[100px]":((z=unref(d))==null?void 0:z.mode)==="static"}]])},[((V=unref(d))==null?void 0:V.mode)==="reveal"||((F=unref(d))==null?void 0:F.mode)==="sticky"?(openBlock(),createBlock($,mergeProps({key:0,id:"header",ref:"header"},unref(d),{style:(ee=unref(d))==null?void 0:ee.style,class:["top-0 !fixed -translate-y-32 transition-all ease-in-out duration-300 left-0 right-0 pointer-events-none",{"translate-y-0 pointer-events-auto":unref(t)}
185],"show-fixture-carousel":!1,"ad-slot-id":void 0,"show-global-nav":!1,"is-menu-open":unref(m),"logo-position":"attached","show-sponsors-banner":!1,"show-reveal":unref(t),"transparent-background":(te=unref(d))==null?void 0:te.transparentBackground}),null,16,["style","class","is-menu-open","show-reveal","transparent-background"])):createCommentVNode("",!0),createVNode($,mergeProps({class:[{"fixed top-0 w-full":((K=unref(d))==null?void 0:K.mode)==="static"}],id:"header",ref:"header"},unref(d),{style:(H=unref(d))==null?void 0:H.style,"is-menu-open":unref(m),"show-fixture-carousel":((X=unref(d))==null?void 0:X.showFixtureCarousel)&&!unref(m)&&((J=unref(b))==null?void 0:J.path)==="/","show-sponsors-banner":!0}),null,16,["class","style","is-menu-open","show-fixture-carousel"])],2)],64)}}}),_hoisted_1$o={key:1},_sfc_main$r=defineComponent({__name:"index",props:{slug:{},label:{},imgSrc:{},primaryMenuItemInteraction:{}},emits:["close"],setup(e,{emit:t}){const{borderRadius:r}=useTheme(),o=t;return(c,d)=>{var m,S;const f=_sfc_main$_,b=__nuxt_component_1$1;return openBlock(),createElementBlock("li",{class:normalizeClass(["inline-block text-3xl cursor-pointer md:mr-[32px] py-2 font-bold",[(S=(m=c.$config.public.styleOptions)==null?void 0:m.uppercase)!=null&&S.includes("sectionHeading")?"font-sans uppercase":"font-heading",{"group/opacity-indent transition duration-300 hover:bg-white/20":e.primaryMenuItemInteraction!=="fill-pdc"},{"group/block-hover relative":e.primaryMenuItemInteraction==="fill-pdc"},unref(r)]])},[createVNode(b,{to:e.slug,class:normalizeClass(["relative inline-block h-full duration-300",[{"group-hover/opacity-indent:translate-x-2 transform":e.primaryMenuItemInteraction!=="fill-pdc"},{"w-full":e.primaryMenuItemInteraction==="fill-pdc"&&!e.imgSrc}]]),tabindex:"0",role:"tab",onClick:d[0]||(d[0]=w=>o("close"))},{default:withCtx(()=>[e.imgSrc?(openBlock(),createBlock(f,{key:0,class:"max-w-[250px] h-[35px]","base-height":35,"base-width":35,alt:e.label,"image-key":e.imgSrc,fit:"contain",sizes:[250,500],"auto-width":""},null,8,["alt","image-key"])):(openBlock(),createElementBlock("span",_hoisted_1$o,toDisplayString(e.label),1)),e.primaryMenuItemInteraction!=="fill-pdc"||e.imgSrc?createCommentVNode("",!0):(openBlock(),createElementBlock("span",{key:2,class:normalizeClass([unref(r),"absolute bottom-0 left-0 flex items-center w-full h-0 px-2 overflow-hidden transition-all duration-300 ease-in-out cursor-pointer bg-clear text-clear-inverse group-hover/block-hover:h-full"])},toDisplayString(e.label),3))]),_:1},8,["to","class"])],2)}}}),_hoisted_1$n={class:"flex flex-col"},_hoisted_2$k={class:"flex items-center gap-2"},_hoisted_3$h=["href"],_hoisted_4$g=["src","title","name"],_sfc_main$q=defineComponent({__name:"index",setup(e){var d,f,b,m;const t=useRuntimeConfig(),r=t.public.club.name,o=t.public.core.appVersions.android.storeLink??((d=t.public.legacy.body.settings)==null?void 0:d.androidLink)??((f=t.public.core.streaming)==null?void 0:f.androidLink),c=[{name:"iosStore",img:"/appStore/ios-app-store.png",link:t.public.core.appVersions.ios.storeLink??((b=t.public.legacy.body.settings)==null?void 0:b.iosLink)??((m=t.public.core.streaming)==null?void 0:m.iosLink)},{name:"Play Store",img:"/appStore/google-play-badge.png",link:o}];return(S,w)=>{const T=_sfc_main$V;return openBlock(),createElementBlock("div",_hoisted_1$n,[c.filter(A=>A.link!=null&&A.link.length>0).length>0?(openBlock(),createBlock(T,{key:0,class:"py-4 club text-clear primary-menu__sharing-title",tag:"h3"},{default:withCtx(()=>[...w[0]||(w[0]=[createTextVNode(" Download our apps ",-1)])]),_:1})):createCommentVNode("",!0),createBaseVNode("div",_hoisted_2$k,[(openBlock(),createElementBlock(Fragment,null,renderList(c,A=>(openBlock(),createElementBlock(Fragment,{key:A.link},[A.link?(openBlock(),createElementBlock("a",{key:0,href:A.link,class:"max-w-[180px] md:max-w-[140px] h-full rounded-lg hover:-translate-y-[3px] transition-transform"},[createBaseVNode("img",{class:"object-contain w-auto h-full",src:A.img,title:`Download the ${unref(r)} app on the ${A.name}`,name:`Download the ${unref(r)} app on the ${A.name}`},null,8,_hoisted_4$g)],8,_hoisted_3$h)):createCommentVNode("",!0)],64))),64))])])}}}),_hoisted_1$m={class:"absolute bottom-0 left-0 p-2 md:p-4"},_hoisted_2$j={class:"relative"},_sfc_main$p=defineComponent({__name:"index",props:{label:{},imageKey:{},slug:{},bgColor:{}},setup(e){const{borderRadius:t}=useTheme(),r=useStore();return(o,c)=>{const d=_sfc_main$$,f=_sfc_main$V,b=__nuxt_component_1$1;return openBlock(),createElementBlock("div",null,[createVNode(b,{to:e.slug,class:"relative group/hero light"},{default:withCtx(()=>[createVNode(Transition,{"leave-to-class":"opacity-0","leave-active-class":"transition-opacity duration-500 ease"},{default:withCtx(()=>[unref(r).showMenu?(openBlock(),createBlock(d,{key:0,src:("useGCImage"in o?o.useGCImage:unref(useGCImage))(!0,600,500,e.imageKey),class:"object-cover w-full aspect-video"},null,8,["src"])):createCommentVNode("",!0)]),_:1}),createBaseVNode("div",{class:normalizeClass(["absolute bottom-0 left-0 w-full h-full bg-opacity-20 group-hover/hero:bg-opacity-0",e.bgColor])},null,2),createBaseVNode("div",_hoisted_1$m,[createBaseVNode("div",_hoisted_2$j,[createVNode(f,{tag:"h1",class:"px-2 text-clear !text-heading-2xl md:!text-heading-5xl"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.label),1)]),_:1}),createVNode(f,{tag:"h1",class:normalizeClass([unref(t),"absolute bottom-0 left-0 h-0 px-2 overflow-hidden transition-[height] duration-300 ease-in-out text-clear-inverse bg-clear group-hover/hero:h-full !text-heading-2xl md:!text-heading-5xl"])},{default:withCtx(()=>[createTextVNode(toDisplayString(e.label),1)]),_:1},8,["class"])])])]),_:1},8,["to"])])}}}),_hoisted_1$l={class:"duration-300 border-b-[0.33px] border-b-white/50 w-full leading-8 primary-menu__secondary-item"},_hoisted_2$i={key:1,class:"text-xl md:text-2xl"},_sfc_main$o=defineComponent({__name:"index",props:{childMenus:{},level1:{},index:{},icon:{default:"chevronLeft"},iconSize:{default:18},iconPack:{default:"navigation"},iconOpen:{default:"rotate-90"},titlePadding:{},titleInteraction:{},menuType:{}},emits:["close","toggleChildMenu"],setup(e,{emit:t}){const r=useRuntimeConfig(),{borderRadius:o}=useTheme(),c=e,d=computed(()=>{var m;return((m=c.level1.attributes)==null?void 0:m.postType)==="external"}),f=computed(()=>{var m;return d.value?(m=c.level1.attributes)==null?void 0:m.externalUrl:`/${c.level1.attributes.fullPath}`}),b=t;return(m,S)=>{var C,P;const w=_sfc_main$V,T=__nuxt_component_1$1,A=_sfc_main$12;return openBlock(),createElementBlock("li",_hoisted_1$l,[createBaseVNode("div",{class:normalizeClass(["flex items-center justify-between w-full group",[e.titlePadding,unref(o)]])},[createVNode(T,{class:normalizeClass(["w-full cursor-pointer line-clamp-1",[{"group-hover:bg-white/20 group-hover:translate-x-2 duration-300 transform":e.titleInteraction==="opacity-indent"},(P=(C=unref(r).public.styleOptions)==null?void 0:C.uppercase)!=null&&P.includes("sectionHeading")?"font-sans uppercase":""]]),to:unref(d)?void 0:unref(f),href:unref(d)?unref(f):void 0,external:unref(d),onClick:S[0]||(S[0]=B=>b("close"))},{default:withCtx(()=>[e.menuType==="Complex"?(openBlock(),createBlock(w,{key:0,tag:"h3"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.level1.attributes.postTitle),1)]),_:1})):(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString(e.level1.attributes.postTitle),1))]),_:1},8,["class","to","href","external"]),e.level1.attributes.children.length?(openBlock(),createElementBlock("button",{key:0,class:"flex items-end lg:hidden",onClick:S[1]||(S[1]=B=>b("toggleChildMenu",e.index))},[createVNode(A,{class:normalizeClass(["flex ml-auto transition-transform duration-300 md:hidden",e.iconOpen]),icon:e.icon,pack:e.iconPack,size:e.iconSize},null,8,["icon","pack","size","class"])])):createCommentVNode("",!0)],2)])}}}),_sfc_main$n=defineComponent({__name:"index",props:{level2:{},childInteraction:{}},emits:["close"],setup(e,{emit:t}){const{borderRadius:r}=useTheme(),o=e,c=computed(()=>{var b;return((b=o.level2)==null?void 0:b.postType)==="external"}),d=computed(()=>{var b;return c.value?(b=o.level2)==null?void 0:b.externalUrl:`/${o.level2.fullPath}`}),f=t;return(b,m)=>{var w;const S=__nuxt_component_1$1;return openBlock(),createElementBlock("li",{class:normalizeClass(["curs
185or-pointer text-md light primary-menu__child-item",[{"group/opacity-indent transition duration-300 hover:bg-white/20":e.childInteraction==="opacity-indent"},{"group/block-hover relative":e.childInteraction==="fill-up"},unref(r)]])},[createVNode(S,{to:unref(c)?void 0:unref(d),href:unref(c)?unref(d):void 0,external:unref(c),class:normalizeClass(["inline-block w-full transition duration-300",[{"group-hover/opacity-indent:translate-x-2":e.childInteraction==="opacity-indent","text-clear":e.childInteraction==="fill-up"}]]),tabindex:"0",role:"tab",onClick:m[0]||(m[0]=T=>f("close"))},{default:withCtx(()=>{var T;return[createTextVNode(toDisplayString((T=e.level2)==null?void 0:T.postTitle),1)]}),_:1},8,["to","href","external","class"]),e.childInteraction==="fill-up"?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(r),"absolute bottom-0 left-0 flex items-center w-full h-0 px-2 overflow-hidden transition-all duration-300 ease-in-out cursor-pointer pointer-events-none bg-clear text-clear-inverse group-hover/block-hover:h-full"])},toDisplayString((w=e.level2)==null?void 0:w.postTitle),3)):createCommentVNode("",!0)],2)}}}),SlideUpDown={name:"SlideUpDown",props:{active:Boolean,duration:{type:Number,default:500},tag:{type:String,default:"div"},useHidden:{type:Boolean,default:!0}},data:()=>({style:{},initial:!1,hidden:!1}),watch:{active(){this.layout()}},render(){return h(this.tag,{...this.attrs,style:this.style,ref:"container",onTransitionend:this.onTransitionEnd},this.$slots.default())},mounted(){this.layout(),this.initial=!0},created(){this.hidden=!this.active},computed:{el(){return this.$refs.container},attrs(){const e={"aria-hidden":!this.active,"aria-expanded":this.active};return this.useHidden&&(e.hidden=this.hidden),e}},methods:{layout(){this.active?(this.hidden=!1,this.$emit("open-start"),this.initial&&this.setHeight("0px",()=>this.el.scrollHeight+"px")):(this.$emit("close-start"),this.setHeight(this.el.scrollHeight+"px",()=>"0px"))},asap(e){this.initial?this.$nextTick(e):e()},setHeight(e,t){this.style={height:e},this.asap(()=>{this.__=this.el.scrollHeight,this.style={height:t(),overflow:"hidden","transition-property":"height","transition-duration":this.duration+"ms"}})},onTransitionEnd(e){e.target===this.el&&(this.active?(this.style={},this.$emit("open-end")):(this.style={height:"0",overflow:"hidden"},this.hidden=!0,this.$emit("close-end")))}}},_hoisted_1$k={class:"flex flex-col w-full gap-8 mb-8 ease-in-out md:w-1/2 font-primary xl:hidden"},_hoisted_2$h={class:"flex flex-col gap-2"},_hoisted_3$g={key:0,class:"flex flex-col flex-shrink-0 w-full gap-2 mb-2 overflow-auto md:w-1/2 md:mb-4 md:gap-4 xl:mr-4 xl:w-2/5 no-scrollbar"},_hoisted_4$f={class:"grid grid-cols-1 gap-4 md:grid-cols-3 md:mb-4 xl:pb-20"},_hoisted_5$b=["src"],_hoisted_6$9={class:"flex flex-col gap-3"},_hoisted_7$8={key:0,class:"fixed bottom-0 left-0 w-full px-4 backdrop-blur-sm"},_hoisted_8$6={class:"w-full pb-4 md:mb-4 xl:hidden"},_sfc_main$m=defineComponent({__name:"index",props:{primaryMenuItems:{},featuredMenuItems:{},sitemap:{},childTextColor:{},textColor:{},bgColor:{},bgContrastColor:{},secondaryMenuItems:{},pages:{},childMenus:{},navigationButtons:{},primaryMenuItemInteraction:{},menuType:{}},emits:["toggleChildMenu","closeMenu"],setup(e,{emit:t}){const r=e,o=t,{borderRadius:c}=useTheme(),d=computed(()=>b=>{var m;return(m=b==null?void 0:b.attributes)==null?void 0:m.children.filter(S=>{var w;return((w=S.attributes)==null?void 0:w.fullPath)!=="/"})}),f=ref(!1);return watch(()=>r.navigationButtons,b=>{b?setTimeout(()=>{f.value=!0},900):f.value=!1},{immediate:!0}),(b,m)=>{var B,U;const S=_sfc_main$r,w=_sfc_main$q,T=_sfc_main$p,A=_sfc_main$o,C=_sfc_main$n,P=_sfc_main$T;return openBlock(),createElementBlock("nav",{class:normalizeClass(["fixed flex flex-col md:flex-wrap no-scrollbar min-h-auto xl:flex-nowrap pt-24 lg:pt-32 md:flex-row top-0 bottom-0 min-h-screen left-0 z-[99] w-screen px-4 xl:px-16 overflow-y-scroll xl:overflow-visible",[e.bgColor]])},[createBaseVNode("div",_hoisted_1$k,[createBaseVNode("ul",_hoisted_2$h,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.primaryMenuItems.filter(D=>D.featured!=1),D=>(openBlock(),createBlock(S,{key:D.slug,slug:D.slug,label:D.label,"img-src":D.altImgSrc||D.imgSrc,class:normalizeClass(["primary-menu-items__expanded text-heading-4xl",[e.textColor]]),"primary-menu-item-interaction":e.primaryMenuItemInteraction,onClose:m[0]||(m[0]=$=>o("closeMenu"))},null,8,["slug","label","img-src","primary-menu-item-interaction","class"]))),128))]),createVNode(w,{class:"hidden md:flex"})]),e.featuredMenuItems?(openBlock(),createElementBlock("div",_hoisted_3$g,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.featuredMenuItems,(D,$)=>(openBlock(),createElementBlock("div",{key:$},[createVNode(unref(SlideUpDown),{active:D,duration:500},{default:withCtx(()=>[createVNode(T,{slug:D.slug,label:D.label,"image-key":D.imageKey,class:normalizeClass([[unref(c)],"overflow-hidden"]),"bg-color":e.bgColor},null,8,["slug","label","image-key","class","bg-color"])]),_:2}
185,1032,["active"])]))),128))])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["w-full xl:max-h-screen xl:overflow-y-auto no-scrollbar",{"xl:w-3/5":e.primaryMenuItems}])},[createBaseVNode("div",_hoisted_4$f,[((B=e.sitemap)==null?void 0:B.image)!=null?(openBlock(),createElementBlock("img",{key:0,src:("useGCImage"in b?b.useGCImage:unref(useGCImage))(!0,1600,1600,(U=e.sitemap)==null?void 0:U.image),class:"absolute w-full h-full object-contain opacity-15 z-[-1]"},null,8,_hoisted_5$b)):createCommentVNode("",!0),e.pages?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.secondaryMenuItems,(D,$)=>{var z;return openBlock(),createElementBlock("ul",{key:D.id,class:normalizeClass(["p-2 mb-2 md:mb-4",[e.bgContrastColor,unref(c)]])},[createVNode(A,{"level-1":D,"child-menus":e.childMenus,index:$,class:normalizeClass(["!border-b-0",[e.textColor]]),"title-padding":"p-2","title-interaction":"none",tabindex:"0",role:"tab",icon:"plus","icon-pack":"fan","icon-size":24,"icon-open":(z=e.childMenus)!=null&&z[$]?"rotate-45":"","menu-type":e.menuType,onClose:m[1]||(m[1]=V=>o("closeMenu")),onToggleChildMenu:m[2]||(m[2]=V=>o("toggleChildMenu",V))},null,8,["level-1","child-menus","index","class","icon-open","menu-type"]),createVNode(unref(SlideUpDown),{active:e.childMenus[$]},{default:withCtx(()=>[createBaseVNode("ul",_hoisted_6$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d)(D),(V,F)=>(openBlock(),createBlock(C,{key:F,"level-2":V,class:normalizeClass(["px-2 py-2 capitalize cursor-pointer",[e.childTextColor]]),"child-interaction":"opacity-indent",onClose:m[3]||(m[3]=ee=>o("closeMenu"))},null,8,["level-2","class"]))),128))])]),_:2},1032,["active"])],2)}),128)):createCommentVNode("",!0)])],2),createVNode(Transition,{"enter-active-class":"transition-all duration-[0.4s] ease-out","enter-from-class":"translate-y-4 opacity-0","enter-to-class":"translate-y-0 opacity-100"},{default:withCtx(()=>[unref(f)&&e.navigationButtons?(openBlock(),createElementBlock("div",_hoisted_7$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.navigationButtons,D=>(openBlock(),createElementBlock("div",{key:D.action},[createBaseVNode("div",_hoisted_8$6,[createVNode(P,{class:"flex items-center w-full mr-4 leading-none font-heading action min-w-max",type:"primary",content:D.title,icon:D.icon,"icon-size":24,"icon-pack":D.iconPack,link:D.action},null,8,["content","icon","icon-pack","link"])])]))),128))])):createCommentVNode("",!0)]),_:1}),createVNode(w,{class:"flex justify-center mb-20 md:hidden"})],2)}}}),_hoisted_1$j={class:"flex flex-col gap-8 w-full md:max-w-[316px] mb-8 ease-in-out font-primary"},_hoisted_2$g={class:"overflow-y-scroll no-scrollbar"},_hoisted_3$f={class:"flex flex-col gap-6 md:gap-2"},_hoisted_4$e={class:"relative grid w-full grid-cols-1 gap-4 lg:overflow-y-scroll md:grid-cols-2 lg:grid-cols-3 no-scrollbar"},_hoisted_5$a=["src"],_hoisted_6$8={class:"flex flex-col w-full gap-3 pt-4"},_hoisted_7$7={class:"flex flex-col w-full gap-3 pt-4"},_sfc_main$l=defineComponent({__name:"index",props:{primaryMenuItems:{},sitemap:{},childTextColor:{},textColor:{},bgColor:{},navButton:{},secondaryMenuItems:{},pages:{},childMenus:{},isMenuOpen:{type:Boolean}},emits:["toggleChildMenu","closeMenu"],setup(e,{emit:t}){const r=ref(!1);onMounted(()=>{r.value=!0});const o=t,c=computed(()=>d=>{var f;return(f=d==null?void 0:d.attributes)==null?void 0:f.children.filter(b=>{var m;return((m=b==null?void 0:b.attributes)==null?void 0:m.platform)!=="app"}).filter(b=>{var m;return((m=b.attributes)==null?void 0:m.fullPath)!=="/"})});return(d,f)=>{var A,C,P;const b=_sfc_main$12,m=_sfc_main$r,S=_sfc_main$q,w=_sfc_main$o,T=_sfc_main$n;return openBlock(),createElementBlock("nav",{class:normalizeClass(["fixed flex flex-col md:flex-row top-0 bottom-0 min-h-screen left-0 z-[99] w-screen pt-32 xl:pt-40 px-4 md:px-16 lock-scroll overflow-y-scroll no-scrollbar lg:overflow-visible",[e.bgColor]])},[((A=d.headerData)==null?void 0:A.logoPosition)==="detached"?(openBlock(),createElementBlock("div",{key:0,class:"absolute top-0 right-0 m-8 rounded-full hover:bg-white/20 w-[42px] h-[42px] flex items-center justify-center transition-colors duration-500",onClick:f[0]||(f[0]=B=>o("closeMenu")),onKeydown:f[1]||(f[1]=withKeys(B=>o("closeMenu"),["esc"]))},[createVNode(b,{pack:"navigation",icon:"close",size:24,class:"text-clear club"})],32)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1$j,[createBaseVNode("div",_hoisted_2$g,[createBaseVNode("ul",_hoisted_3$f,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.primaryMenuItems.filter(
185B=>B.isHeaderOnly!=1),B=>(openBlock(),createBlock(m,{key:B.slug,slug:B.slug,label:B.label,"img-src":B.image,class:normalizeClass(["primary-menu-items__expanded",[e.textColor]]),onClose:f[2]||(f[2]=U=>o("closeMenu"))},null,8,["slug","label","img-src","class"]))),128))]),createVNode(S,{class:normalizeClass(["hidden md:flex",[e.textColor]])},null,8,["class"])])]),createBaseVNode("div",_hoisted_4$e,[((C=e.sitemap)==null?void 0:C.image)!=null?(openBlock(),createElementBlock("img",{key:0,src:("useGCImage"in d?d.useGCImage:unref(useGCImage))(!0,1600,1600,(P=e.sitemap)==null?void 0:P.image),class:"absolute w-full h-full object-contain opacity-15 z-[-1]"},null,8,_hoisted_5$a)):createCommentVNode("",!0),e.pages?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.secondaryMenuItems,(B,U)=>{var D;return openBlock(),createElementBlock("ul",{key:B.id,class:"last:pb-[32px]"},[createVNode(w,{"level-1":B,"child-menus":e.childMenus,index:U,class:normalizeClass([e.textColor]),tabindex:"0",role:"tab",icon:"chevronDown",pack:"navigation",size:24,"icon-open":(D=e.childMenus)!=null&&D[U]?"rotate-180":"","title-padding":"md:px-2 pt-[10px] pb-[12.5px] md:py-2","title-interaction":"none",onClose:f[3]||(f[3]=$=>o("closeMenu")),onToggleChildMenu:f[4]||(f[4]=$=>o("toggleChildMenu",$))},null,8,["level-1","child-menus","index","class","icon-open"]),createVNode(unref(SlideUpDown),{active:e.childMenus[U],class:"md:hidden"},{default:withCtx(()=>[createBaseVNode("ul",_hoisted_6$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(c)(B),($,z)=>(openBlock(),createBlock(T,{key:z,"level-2":$,class:normalizeClass(["py-1 cursor-pointer text-md md:px-2",[e.childTextColor]]),"child-interaction":"opacity-indent",onClose:f[5]||(f[5]=V=>o("closeMenu"))},null,8,["level-2","class"]))),128))])]),_:2},1032,["active"]),createVNode(unref(SlideUpDown),{active:unref(r),class:"hidden md:flex"},{default:withCtx(()=>[createBaseVNode("ul",_hoisted_7$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(c)(B),($,z)=>(openBlock(),createBlock(T,{key:z,"level-2":$,class:normalizeClass(["py-1 cursor-pointer text-md md:px-2",[e.childTextColor]]),"child-interaction":"opacity-indent",onClose:f[6]||(f[6]=V=>o("closeMenu"))},null,8,["level-2","class"]))),128))])]),_:2},1032,["active"])])}),128)):createCommentVNode("",!0)]),createVNode(S,{class:"flex justify-center my-8 md:hidden"})],2)}}}),_sfc_main$k=defineComponent({name:"MenuContainer",__name:"index",async setup(e){let t,r;const o=useRoute$1(),c=useStore(),{$gc:d}=useNuxtApp(),f=usePropertiesStore(),{activePropertyConfig:b,property:m}=storeToRefs(f),S=ref(),w=ref(),T=ref({}),A=ref("Simple"),C=ref(),P=ref([]);P.value=([t,r]=withAsyncContext(()=>d().pages.web().getPages({"page.size":200,propertyID:m.value})),t=await t,r(),t).data??[],watch(o,()=>{c!=null&&c.showMenu&&te()}),watchEffect(async()=>{m.value&&(P.value=(await d().pages.web().getPages({"page.size":200,propertyID:m.value})).data)});const B=computed(()=>P.value.filter(X=>{var J;return((J=X==null?void 0:X.attributes)==null?void 0:J.platform)!=="app"})),U=computed(()=>{var X;return((X=S.value)==null?void 0:X.primaryMenuItems)??b.value.public.menus.burgerMenu}),D=computed(()=>{var X,J;return(J=(X=b.value.public)==null?void 0:X.styleOptions)==null?void 0:J.sitemap}),$=computed(()=>{var X,J,G,Q,pe,ye,de;return((X=D.value)==null?void 0:X.text)!==void 0?`text-${(G=(J=D.value)==null?void 0:J.text)==null?void 0:G.color}${((pe=(Q=D.value)==null?void 0:Q.text)==null?void 0:pe.shade)!==void 0?`-${(de=(ye=D.value)==null?void 0:ye.text)==null?void 0:de.shade}`:""}/90`:"text-gray-100/90"}),z=computed(()=>{var X,J,G,Q,pe,ye,de;return((X=D.value)==null?void 0:X.text)!==void 0?`text-${(G=(J=D.value)==null?void 0:J.text)==null?void 0:G.color}${((pe=(Q=D.value)==null?void 0:Q.text)==null?void 0:pe.shade)!==void 0?`-${(de=(ye=D.value)==null?void 0:ye.text)==null?void 0:de.shade}`:""}`:"text-white"}),V=computed(()=>{var X,J,G,Q,pe,ye,de;return((X=D.value)==null?void 0:X.background)!==void 0?`bg-${(G=(J=D.value)==null?void 0:J.background)==null?void 0:G.color}${((pe=(Q=D.value)==null?void 0:Q.background)==null?void 0:pe.shade)!==void 0?`-${(de=(ye=D.value)==null?void 0:ye.background)==null?void 0:de.shade}`:""}`:"bg-primary-500"});onMounted(async()=>{H(),window.addEventListener("resize",H),ee()});const F=computed(()=>B.value.filter(X=>X.attributes.fullPath!=="/")),ee=async()=>{var X,J,G;S.value=await useHeader(),A.value=((X=S.value)==null?void 0:X.menuType)??"Simple",w.value=(J=S.value)==null?void 0:J.navigationButtons,C.value=(G=S.value)==null?void 0:G.primaryMenuItemInteraction},te=()=>{c.toggleMenu()},K=X=>{T.value={...T.value,[X]:!T.value[X]}},H=()=>{window.innerWidth>767?T.value=Array(B.value.length).fill(!0):T.value=Array(B.value.length).fill(!1)};return(X,J)=>{const G=_sfc_main$m,Q=_sfc_main$l;return openBlock(),createElementBlock("div",null,[unref(A)==="Complex"?(openBlock(),createBlock(Transition,{key:0,name:"slide-fade"},{default:withCtx(()=>{var pe,ye;return[withDirectives(createVNode(G,{"primary-menu-items":unref(U).filter(de=>de.isHeaderOnly!=1),"featured-menu-items":unref(U).filter(de=>de.imageKey&&de.type==="image"),"primary-menu-item-interaction":unref(C),sitemap:unref(D),"child-text-color":unref($),"text-color":unref(z),"bg-color":unref(V),"bg-contrast-color":"bg-black/50","secondary-menu-items":unref(F),"secondary-menu-items-padding":"small","child-menus":unref(T),pages:u
185nref(B),"menu-type":unref(A),"navigation-buttons":unref(w),onToggleChildMenu:K,onCloseMenu:te,class:normalizeClass({"lock-scroll":(pe=unref(c))==null?void 0:pe.showMenu})},null,8,["primary-menu-items","featured-menu-items","primary-menu-item-interaction","sitemap","child-text-color","text-color","bg-color","secondary-menu-items","child-menus","pages","menu-type","navigation-buttons","class"]),[[vShow,(ye=unref(c))==null?void 0:ye.showMenu]])]}),_:1})):createCommentVNode("",!0),unref(A)==="Simple"?(openBlock(),createBlock(Transition,{key:1,"enter-active-class":"transition-all duration-700 ease-out","leave-active-class":"transition-all duration-700 cubic-bezier(1, 0.5, 0.8, 1)","enter-from-class":"transform -translate-y-20 opacity-0","leave-to-class":"transform -translate-y-20 opacity-0"},{default:withCtx(()=>{var pe;return[(pe=unref(c))!=null&&pe.showMenu?(openBlock(),createBlock(Q,{key:0,"primary-menu-items":unref(U),sitemap:unref(D),"child-text-color":unref($),"text-color":unref(z),"bg-color":unref(V),"secondary-menu-items":unref(F),"child-menus":unref(T),pages:unref(B),onToggleChildMenu:K,onCloseMenu:te},null,8,["primary-menu-items","sitemap","child-text-color","text-color","bg-color","secondary-menu-items","child-menus","pages"])):createCommentVNode("",!0)]}),_:1})):createCommentVNode("",!0)])}}}),_hoisted_1$i=["for"],_hoisted_2$f=["id","type","name","placeholder","autocomplete"],_hoisted_3$e={key:0,class:"absolute top-0 left-0 px-3 leading-[40px] text-slate-600 peer-focus:hidden"},_hoisted_4$d=["aria-label"],_sfc_main$j=defineComponent({__name:"index",props:mergeModels({id:{},name:{},label:{},placeholder:{},autocomplete:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=useModel(e,"modelValue"),r=ref(!1),o=ref(!1),c=computed(()=>(o.value?!r.value:r.value)?"show-password":"hide-password");let d;const f=()=>{clearTimeout(d),r.value=!r.value,r.value&&(d=setTimeout(()=>{r.value=!1},3e3))};return onUnmounted(()=>clearTimeout(d)),(b,m)=>{const S=_sfc_main$12;return openBlock(),createElementBlock("label",{class:"relative w-full",for:e.id},[withDirectives(createBaseVNode("input",{id:e.id,"onUpdate:modelValue":m[0]||(m[0]=w=>t.value=w),class:"w-full py-2 pl-3 pr-10 bg-gray-100 peer text-slate-600 placeholder:text-slate-600",type:unref(r)?"text":"password",name:e.name||e.id,placeholder:e.placeholder,autocomplete:e.autocomplete},null,8,_hoisted_2$f),[[vModelDynamic,t.value]]),e.label&&!t.value?(openBlock(),createElementBlock("span",_hoisted_3$e,toDisplayString(e.label),1)):createCommentVNode("",!0),createBaseVNode("button",{type:"button",class:"absolute -translate-y-1/2 right-3 top-1/2 text-slate-600 focus-visible:ring-2 focus-visible:ring-slate-600","aria-label":unref(r)?"Hide password":"Show password",onClick:withModifiers(f,["prevent"]),onKeydown:m[1]||(m[1]=withKeys(withModifiers(()=>{},["stop"]),["enter"])),onMouseenter:m[2]||(m[2]=w=>o.value=!0),onMouseleave:m[3]||(m[3]=w=>o.value=!1)},[createVNode(S,{pack:"cms",size:20,icon:unref(c),tabindex:"-1","aria-hidden":"true"},null,8,["icon"])],40,_hoisted_4$d)],8,_hoisted_1$i)}}}),useToastStore=defineStore("toast",()=>{const e=ref([]),t=r=>{e.value=e.value.filter(o=>o.key!==r.key)};return{toasts:e,addToast:({message:r,type:o,key:c,title:d,duration:f=8e3})=>{const b={message:r,type:o,key:c,title:d,duration:f,notifyTime:Date.now()};e.value.push(b),setTimeout(()=>t(b),f)},removeToast:t,clearToasts:()=>{e.value=[]}}}),passwordRegex=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[\^\$\*\.\[\]\{\}\(\)\?\-"!@#%&\/\\,><':;|_~`+=])(?=.{8,}).*$/;function validatePassword(e){return passwordRegex.test(e)}const _hoisted_1$h={class:"flex flex-col h-full"},_hoisted_2$e={class:"flex flex-col items-start h-full p-6"},_hoisted_3$d={class:"flex items-center justify-between w-full mb-4"},_hoisted_4$c={class:"flex flex-col flex-1 w-full gap-2"},_hoisted_5$9={class:"relative w-full",for:"username"},_hoisted_6$7={class:"relative w-full",for:"verify"},_hoisted_7$6={key:0,class:"px-2 py-1 bg-white"},_hoisted_8$5={class:"text-xs text-red-400"},_sfc_main$i=defineComponent({__name:"index",emits:["user-registered","user-logged-in"],setup(e,{emit:t}
185){const r=useStore(),o=useUserStore(),c=useToastStore(),d=useState("verifyEmail"),f=ref(!1),b=t,m=ref(null),S=ref({verify:"",password:""}),{$auth:w}=useNuxtApp();onMounted(()=>{d.value=d.value||""});const{addToast:T}=c,A=async()=>{if(f.value=!0,m.value=null,!S.value.password||!validatePassword(S.value.password))return m.value=new Error("Password is required"),void(f.value=!1);if(await C(),await P(),m.value)return void(f.value=!1);r.sso.verify=!1,T({type:"success",message:"Account verified successfully",key:"sso-verify"}),T({type:"info",message:"Successfully logged in",key:"sso-login"}),sessionStorage.setItem("newUser","new");const{userData:B}=await useGAEventData("account_verify");useAnalyticsEvent("account_verify",{method:"email",status:"success",user:B}),f.value=!1,b("user-logged-in",5e3),b("user-registered",5e3)},C=async()=>{try{await w.verifyUser({email:d.value},S.value.verify)}catch(B){B.value=B,console.error("Failed to verify user:",B),T({type:"error",message:"Failed to verify account",key:"sso-verify-error"})}},P=async()=>{try{if(!await w.login({email:d.value,password:S.value.password}))throw T({type:"error",message:"No SSO user found",key:"sso-login-error"}),m.value=new Error("No SSO user found."),new Error("No SSO user found.");const B=await w.getUserDetails();o.setUser({userDetails:B})}catch(B){B.value=B,console.error("Failed to login:",B),T({type:"error",message:"Failed to login",key:"sso-login-error"})}};return(B,U)=>{const D=_sfc_main$V,$=_sfc_main$12,z=_sfc_main$j,V=_sfc_main$T;return openBlock(),createElementBlock("div",_hoisted_1$h,[createBaseVNode("div",_hoisted_2$e,[createBaseVNode("div",_hoisted_3$d,[createVNode(D,{tag:"h2",class:"font-bold"},{default:withCtx(()=>[...U[5]||(U[5]=[createTextVNode(" Verify and Login ",-1)])]),_:1}),createVNode($,{pack:"navigation",size:16,icon:"close",class:"duration-150 cursor-pointer text-primary-200 hover:text-white ease",onClick:U[0]||(U[0]=()=>unref(r).showSSO=!1)})]),createBaseVNode("div",_hoisted_4$c,[U[6]||(U[6]=createBaseVNode("p",{class:"mb-6 text-slate-500"}," You will receive an email containing a verification code, please enter your email, code and password. ",-1)),createBaseVNode("label",_hoisted_5$9,[withDirectives(createBaseVNode("input",{id:"username","onUpdate:modelValue":U[1]||(U[1]=F=>isRef(d)?d.value=F:null),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"email",name:"username",placeholder:"Email"},null,512),[[vModelText,unref(d)]])]),createBaseVNode("label",_hoisted_6$7,[withDirectives(createBaseVNode("input",{id:"verify","onUpdate:modelValue":U[2]||(U[2]=F=>unref(S).verify=F),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"verify",autocomplete:"off",placeholder:"Verification Code"},null,512),[[vModelText,unref(S).verify]])]),createVNode(z,{id:"password",modelValue:unref(S).password,"onUpdate:modelValue":U[3]||(U[3]=F=>unref(S).password=F),name:"password",autocomplete:"off",placeholder:"Password"},null,8,["modelValue"]),unref(m)?(openBlock(),createElementBlock("div",_hoisted_7$6,[createBaseVNode("span",_hoisted_8$5,toDisplayString(unref(m).message),1)])):createCommentVNode("",!0)]),createVNode(V,{content:"Verify Account",class:"w-full mt-4 font-bold",onClick:A,loading:unref(f)},null,8,["loading"]),createVNode(V,{content:"Back",type:"secondary",class:"inline w-full mt-2 verify-account__back-button",onClick:U[4]||(U[4]=F=>unref(r).sso.verify=!1)})])])}}}),_hoisted_1$g={class:"flex flex-col h-full"},_hoisted_2$d={class:"flex flex-col items-start p-6"},_hoisted_3$c={class:"flex items-center justify-between w-full mb-16 text-primary-500"},_hoisted_4$b={class:"flex flex-col w-full gap-2"},_hoisted_5$8={key:0,class:"px-2 py-1 bg-white"},_hoisted_6$6={class:"text-xs text-red-400"},_hoisted_7$5={class:"relative w-full",for:"username"},_hoisted_8$4={key:0,class:"absolute px-3 leading-[40px] text-slate-600"},_hoisted_9$3={class:"relative w-full",for:"verify"},_hoisted_10$3={key:0,class:"absolute px-3 leading-[40px] text-slate-600"},_sfc_main$h=defineComponent({__name:"index",setup(e){const t=useStore(),r=ref(!1),o=ref(!1),c=ref([]);let d=ref({email:"",verify:"",password:""});const f=ref(""),{$auth:b}=useNuxtApp(),m=async()=>{c.value=[],d.value.email.length<1&&c.value.push("Please enter a valid email address"),d.value.password.length<1&&c.value.push("Please enter a Password"),f.value.length<1&&c.value.push("Please confirm your Password"),/\S+@\S+\.\S+/.test(d.value.email)||c.value.push("Please enter a valid email address"),validatePassword(d.value.password)||c.value.push("Password must be at least 8 characters, and contain at least 1 symbol, 1 number, 1 lowercase character, and 1 uppercase character"),d.value.password!=f.value&&c.value.push("Passwords do not match"),c.value.length===0&&await b.resetPassword(d.value,d.value.verify).catch(S=>{c.value.push("Failed to verify account")}
185),c.value.length===0?(t.sso.reset=!1,t.sso.message={heading:"Successfully Reset Password",message:"Your password has now been changed"}):c.value.push("Failed to Reset Password")};return(S,w)=>{const T=_sfc_main$V,A=_sfc_main$12,C=_sfc_main$j,P=_sfc_main$T;return openBlock(),createElementBlock("div",_hoisted_1$g,[createBaseVNode("div",_hoisted_2$d,[createBaseVNode("div",_hoisted_3$c,[createVNode(T,{tag:"h2",class:"font-bold text-heading-xl"},{default:withCtx(()=>[...w[10]||(w[10]=[createTextVNode(" Reset Password ",-1)])]),_:1}),createVNode(A,{pack:"navigation",size:16,icon:"close",class:"duration-150 cursor-pointer text-btn-tertiary-text hover:text-btn-tertiary-text-hover ease",onClick:w[0]||(w[0]=()=>unref(t).showSSO=!1)})]),createBaseVNode("div",_hoisted_4$b,[createVNode(T,{class:"text-heading-md text-slate-600"},{default:withCtx(()=>[...w[11]||(w[11]=[createTextVNode(" Reset your password ",-1)])]),_:1}),w[12]||(w[12]=createBaseVNode("p",{class:"text-slate-500"}," You will receive an email containing a verification code, please enter your email, code and new password. ",-1)),unref(c).length>0?(openBlock(),createElementBlock("div",_hoisted_5$8,[createBaseVNode("span",_hoisted_6$6,toDisplayString(unref(c)[0]),1)])):createCommentVNode("",!0),createBaseVNode("label",_hoisted_7$5,[unref(r)||unref(d).email!=""?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_8$4,"Email")),withDirectives(createBaseVNode("input",{id:"username","onUpdate:modelValue":w[1]||(w[1]=B=>unref(d).email=B),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600",type:"text",name:"username",onFocus:w[2]||(w[2]=B=>r.value=!0),onBlur:w[3]||(w[3]=B=>r.value=!1)},null,544),[[vModelText,unref(d).email]])]),createBaseVNode("label",_hoisted_9$3,[unref(o)||unref(d).verify!=""?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_10$3,"Verification Code")),withDirectives(createBaseVNode("input",{id:"verify","onUpdate:modelValue":w[4]||(w[4]=B=>unref(d).verify=B),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600",type:"text",name:"verify",onFocus:w[5]||(w[5]=B=>o.value=!0),onBlur:w[6]||(w[6]=B=>o.value=!1)},null,544),[[vModelText,unref(d).verify]])]),createVNode(C,{id:"password",modelValue:unref(d).password,"onUpdate:modelValue":w[7]||(w[7]=B=>unref(d).password=B),name:"password",label:"Password"},null,8,["modelValue"]),createVNode(C,{id:"confirmpassword",modelValue:unref(f),"onUpdate:modelValue":w[8]||(w[8]=B=>isRef(f)?f.value=B:null),name:"confirmpassword",label:"Confirm Password"},null,8,["modelValue"])]),createVNode(P,{content:"Reset Password",class:"w-full mt-4 font-bold",onClick:m}),createVNode(P,{content:"Back",class:"inline w-full mt-4 font-bold reset-password__back-button",type:"secondary",onClick:w[9]||(w[9]=B=>unref(t).sso.reset=!1)})])])}}}),_hoisted_1$f={class:"flex flex-col h-full"},_hoisted_2$c={class:"flex flex-col items-start p-6"},_hoisted_3$b={class:"flex items-center justify-between w-full mb-16 text-primary-500"},_hoisted_4$a={class:"flex flex-col w-full gap-2"},_hoisted_5$7={key:0,class:"px-2 py-1 bg-white"},_hoisted_6$5={class:"text-xs text-red-400"},_sfc_main$g=defineComponent({name:"SetNewPassword",__name:"index",setup(e){const t=useUserStore(),r=useStore(),o=ref([]),c=ref({newPassword:"",confirmPassword:""}),{$auth:d}=useNuxtApp(),f=async()=>{o.value=[],c.value.newPassword.length===0&&o.value.push("Please enter a new password"),c.value.confirmPassword.length===0&&o.value.push("Please confirm your new password"),validatePassword(c.value.newPassword)||o.value.push("Password must be at least 8 characters, and contain at least 1 symbol, 1 number, 1 lowercase character, and 1 uppercase character"),c.value.newPassword!=c.value.confirmPassword&&o.value.push("Passwords do not match"),o.value.length===0&&(await d.setNewPassword(t.userAttributes,c.value.newPassword).catch(b=>{o.value.push("Failed to verify account")}),t.setUser({userDetails:await d.getUserDetails()})),o.value.length===0?(r.sso.setNewPassword=!1,r.sso.message={heading:"Successfully Set New Password",message:"Your password has now been changed"}):o.value.push("Failed to set new password")};return(b,m)=>{const S=_sfc_main$V,w=_sfc_main$12,T=_sfc_main$j,A=_sfc_main$T;return openBlock(),createElementBlock("div",_hoisted_1$f,[createBaseVNode("div",_hoisted_2$c,[createBaseVNode("div",_hoisted_3$b,[createVNode(S,{tag:"h2",class:"font-bold text-heading-xl"},{default:withCtx(()=>[...m[4]||(m[4]=[createTextVNode(" Update Password ",-1)])]),_:1}),createVNode(w,{pack:"navigation",size:16,icon:"close",class:"duration-150 cursor-pointer text-primary-200 hover:text-white ease",onClick:m[0]||(m[0]=()=>unref(r).showSSO=!1)})]),createBaseVNode("div",_hoisted_4$a,[createVNode(S,{class:"text-heading-md text-slate-600"},{default:withCtx(()=>
185[...m[5]||(m[5]=[createTextVNode(" Set your new password ",-1)])]),_:1}),unref(o).length>0?(openBlock(),createElementBlock("div",_hoisted_5$7,[createBaseVNode("span",_hoisted_6$5,toDisplayString(unref(o)[0]),1)])):createCommentVNode("",!0),createVNode(T,{id:"password",modelValue:unref(c).newPassword,"onUpdate:modelValue":m[1]||(m[1]=C=>unref(c).newPassword=C),name:"password",placeholder:"New Password"},null,8,["modelValue"]),createVNode(T,{id:"confirmpassword",modelValue:unref(c).confirmPassword,"onUpdate:modelValue":m[2]||(m[2]=C=>unref(c).confirmPassword=C),name:"confirmpassword",placeholder:"Confirm New Password"},null,8,["modelValue"])]),createVNode(A,{content:"Set New Password",class:"w-full mt-4 font-bold",onClick:f}),createVNode(A,{content:"Back",class:"bg-white !text-gray-950 font-bold mt-4 border-2 border-primary-950 inline",onClick:m[3]||(m[3]=C=>unref(r).sso.setNewPassword=!1)})])])}}}),_hoisted_1$e={class:"flex items-center justify-center w-full h-full transition duration-100 club bg-surface-high text-clear cursor-help hover:bg-surface-high/30"},_hoisted_2$b=["innerHTML"],_sfc_main$f=defineComponent({__name:"Index",props:{tooltip:{},anchor:{default:"?"}},setup(e){const t=ref(null),r=ref(null),o=ref(!1),c=ref(!1),d=ref(!1),f=ref({}),b=ref("bottom-left"),{borderRadius:m}=useTheme(),S=()=>{(()=>{const A=t.value,C=r.value;if(!A||!C)return;const P=A.offsetParent;if(!P)return;const B=A.getBoundingClientRect(),U=P.getBoundingClientRect(),D=.55*U.width;C.style.maxWidth=`${D}px`;const $=B.left+B.width/2,z=B.top+B.height/2,V=U.left+U.width/2,F=z<U.top+U.height/2,ee=$<V;b.value=F&&ee?"bottom-left":F&&!ee?"bottom-right":!F&&ee?"top-left":"top-right"})(),requestAnimationFrame(()=>{(()=>{const A=t.value,C=r.value;if(!A||!C)return;const P=A.getBoundingClientRect(),B=C.getBoundingClientRect();let U,D;switch(b.value){case"bottom-left":default:U=P.bottom+window.scrollY+4,D=P.left+window.scrollX;break;case"bottom-right":U=P.bottom+window.scrollY+4,D=P.right+window.scrollX-B.width;break;case"top-left":U=P.top+window.scrollY-B.height-4,D=P.left+window.scrollX;break;case"top-right":U=P.top+window.scrollY-B.height-4,D=P.right+window.scrollX-B.width}f.value={top:`${U}px`,left:`${D}px`}})()})},w=()=>{c.value=!0,o.value=!0,nextTick$1(()=>{S()})},T=()=>{c.value=!1,d.value=!1,setTimeout(()=>{c.value||d.value||(o.value=!1)},100)};return(A,C)=>(openBlock(),createElementBlock("div",{ref_key:"markerRef",ref:t,class:"relative z-10 inline-flex items-center justify-center w-4 h-4 overflow-hidden text-xs rounded-full isolate tooltip",onMouseenter:w,onMouseleave:T,onClick:C[1]||(C[1]=P=>o.value=!0),onBlur:C[2]||(C[2]=P=>o.value=!1)},[renderSlot(A.$slots,"anchor",{},()=>[createBaseVNode("div",_hoisted_1$e,toDisplayString(e.anchor),1)]),(openBlock(),createBlock(Teleport,{to:"body"},[unref(o)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:r,class:normalizeClass(["absolute text-sm dark bg-surface-low text-clear shadow-md z-[9999] p-2",unref(m)]),style:normalizeStyle(unref(f)),onMouseenter:C[0]||(C[0]=P=>d.value=!0),onMouseleave:T},[renderSlot(A.$slots,"default",{},()=>[createBaseVNode("div",{class:"tooltip__content",innerHTML:e.tooltip},null,8,_hoisted_2$b)])],38)):createCommentVNode("",!0)]))],544))}}),_hoisted_1$d={class:"flex flex-grow gap-2"},_hoisted_2$a={class:"flex items-start items-center flex-grow w-full gap-2"},_hoisted_3$a=["checked","name","value"],_hoisted_4$9=["innerHTML"],_sfc_main$e=defineComponent({__name:"Radio",props:{preference:{},currentpreferences:{},group:{}},emits:["value"],setup(e,{emit:t}){const r=t,o=c=>{r("value",c.target.value)};return(c,d)=>{const f=_sfc_main$f;return openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",_hoisted_2$a,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.preference.fields,b=>(openBlock(),createElementBlock("div",{key:b.content,class:"flex items-center w-1/6"},[createBaseVNode("input",{type:"radio",class:"basis-[16px] mt-0.5 h-[16px] flex-shrink-0 club accent-surface-high",checked:e.preference.value===b.content,name:b.name,value:b.content,onChange:o},null,40,_hoisted_3$a),createBaseVNode("div",{class:"ms-1 text-sm text-slate-600 [&>a]:text-primary-500 [&>a]:text-primary [&>a]:underline",innerHTML:b.content},null,8,_hoisted_4$9)]))),128)),e.preference.tooltip!=null?(openBlock(),createBlock(f,{key:0,tooltip:e.preference.tooltip},null,8,["tooltip"])):createCommentVNode("",!0)])])}}}),_hoisted_1$c={class:"flex flex-grow gap-2 mb-2"},_hoisted_2$9={class:"flex items-start flex-grow w-full gap-2"},_hoisted_3$9=["checked"],_hoisted_4$8=["innerHTML"],_sfc_main$d=defineComponent({__name:"Checkbox",props:{preference:{},currentpreferences:{},group:{}},emits:["checked"],setup(e,{emit:t}){const r=e,o=t,c=d=>{o("checked",d.target.checked),r.currentpreferences&&(r.currentpreferences[`${r.group!=null?`${r.group}-`:""}${r.preference.content}`]=d.target.checked)};return(d,f)=>{const b=_sfc_main$f;return openBlock(),createElementBlock("div",_hoisted_1$c,[createBaseVNode("div",_hoisted_2$9,[createBaseVNode("input",{type:"checkbox",class:"basis-[16px] h-[16px] flex-shrink-0 club accent-surface-high",checked:e.preference.checked,onChange:c},null,40,_hoisted_3$9),createBaseVNode("div",{class:"text-sm text-slate-600 [&>a]:text-primary-500 [&>a]:text-primary [&>a]:underline",innerHTML:e.preference.content},null,8,_hoisted_4$8),e.preference.tooltip!=null?(openBlock(),createBlock(b,{key:0,tooltip:e.preference.tooltip},null,8,["tooltip"])):createCommentVNode("",!0)])])}}}),_hoisted_1$b={class:"flex gap-2 leading-none"},_hoisted_2$8={class:"flex-grow"},_hoisted_3$8=["innerHTML"],_hoisted_4$7={key:1,class:"text-sm text-slate-600 [&>a]:text-primary-500 [&>a]:underline flex"},_hoisted_5$6={class:"text-sm text-slate-600 [&>a]:text-primary-500 [&>a]:underline"},_sfc_main$c=defineComponent({__name:"Text",props:{preference:{}}
185,emits:["update-formatted-preferences","update-preferences"],setup(e,{emit:t}){const r=e,o=t,c=f=>{const b=r.preference;b.child=f,o("update-preferences",b)},d=f=>{const b=r.preference;b.child=f,o("update-formatted-preferences",b)};return(f,b)=>{const m=_sfc_main$f,S=_sfc_main$a;return openBlock(),createElementBlock("div",_hoisted_1$b,[createBaseVNode("div",_hoisted_2$8,[e.preference.content?(openBlock(),createElementBlock("div",{key:0,class:"text-sm text-slate-600 [&>a]:text-primary-500 [&>a]:underline inline",innerHTML:e.preference.content},null,8,_hoisted_3$8)):createCommentVNode("",!0),e.preference.content?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4$7,[createBaseVNode("p",_hoisted_5$6,[createBaseVNode("span",null,toDisplayString(e.preference.contentBeforeTooltip),1),e.preference.tooltip&&(e.preference.contentBeforeTooltip||e.preference.contentAfterTooltip)?(openBlock(),createBlock(m,{key:0,tooltip:e.preference.tooltip,class:"ms-1"},null,8,["tooltip"])):createCommentVNode("",!0),createBaseVNode("span",null,toDisplayString(e.preference.contentAfterTooltip),1)])])),e.preference.tooltip&&e.preference.content?(openBlock(),createBlock(m,{key:2,tooltip:e.preference.tooltip,class:"inline ms-1"},null,8,["tooltip"])):createCommentVNode("",!0),e.preference.child?(openBlock(),createBlock(S,{key:3,class:"my-2 ml-2",child:"",preferences:e.preference.child,onUpdatePreferences:c,onUpdateFormattedPreferences:d},null,8,["preferences"])):createCommentVNode("",!0)])])}}}),_hoisted_1$a={key:0,class:"flex gap-2 mt-2"},_hoisted_2$7={class:"flex-grow"},_hoisted_3$7=["innerHTML"],_sfc_main$b=defineComponent({__name:"Group",props:{preference:{},parentPreferences:{}},emits:["update-preferences","update-formatted-preferences"],setup(e,{emit:t}){const r=e,o=t,c=computed(()=>{const b=r.preference.required;return r.parentPreferences.some(m=>{const S=(b==null?void 0:b.includes(m.content))&&m.checked,w=b==null?void 0:b.some(T=>T.value!==void 0&&m.name===T.field&&m.value===T.value);return S||w})}),d=b=>{const m=r.preference;m.child=b,o("update-preferences",m)},f=b=>{const m=r.preference;m.child=b,o("update-formatted-preferences",m)};return(b,m)=>{var T;const S=_sfc_main$a,w=_sfc_main$f;return unref(c)?(openBlock(),createElementBlock("div",_hoisted_1$a,[createBaseVNode("div",_hoisted_2$7,[createBaseVNode("div",{class:normalizeClass(["text-sm text-slate-600 [&>a]:text-primary-500 [&>a]:underline",{hidden:e.preference.hideContent===!0}]),innerHTML:e.preference.content},null,10,_hoisted_3$7),e.preference.child?(openBlock(),createBlock(S,{key:0,class:"my-2 ml-2",child:"",preferences:e.preference.child,onUpdatePreferences:d,onUpdateFormattedPreferences:f},null,8,["preferences"])):createCommentVNode("",!0),e.preference.tooltip!=null?(openBlock(),createBlock(w,{key:1,tooltip:(T=e.preference)==null?void 0:T.tooltip},null,8,["tooltip"])):createCommentVNode("",!0)])])):createCommentVNode("",!0)}}}),ssoOptionsEfl=[{type:"text",content:"Our <a href='https://www.efl.com/efl-digital-privacy-policy/' target='_blank'>EFL Digital Privacy Policy</a> sets out details about how we use your information."},{type:"checkbox",checked:!0,content:"Please untick this box if you do not want EFL Digital to send you more emails or texts with offers and other promotional information relating to iFollow services."},{tooltip:`<p>Your Club and/or  
186 its Club charities, as well as the EFL Group (<a href='https://www.efl.com/about-the-efl/' target='_blank'>EFL</a>, <a href='https://www.efl.com/efl-digital-clubs-company-details/' target='_blank'>EFL Digital</a> & <a href='https://www.efl.com/community/' target='_blank'>EFL in the Community</a>) and Club and <a href='https://www.efl.com/commercial-partners/' target='_blank'>EFL Group partners</a> (existing & future) may communicate with you by email, SMS, automated phone calls or online direct messages. Your preferences can be tailored by clicking more options. You’ll always be able to update your communication preferences whenever we contact you. If you no longer wish to receive information from your Club after you sign up, you will have to contact the Club directly.</p>`,type:"text",content:"Do you want to hear from your Club and the EFL Group about the latest information relating to them and their partners including news, products, offers, competitions, community and charity activities, services & events?",child:[{type:"radio",name:"initialPreferenceCheck",isRequired:!0,fields:[{content:"Yes",name:"initialPreferenceCheck"},{content:"No",name:"initialPreferenceCheck"},{content:"More Options",name:"initialPreferenceCheck"}]},{type:"group",isRequired:"isShown",hideContent:!0,content:"This content will not be shown",required:[{field:"initialPreferenceCheck",value:"More Options"}],child:[{type:"text",content:"<strong>Content sent from your Club</strong>",tooltip:"<p>This means your Club and/or its Club charities.</p>"},{type:"checkbox",content:"Newsletter"},{type:"text",contentBeforeTooltip:"A weekly round-up including news, information, products, offers, competitions, community and charity activities, services, events & updates about your club and its partners",contentAfterTooltip:".",tooltip:"<p>This means existing and future partners of your Club.</p>"},{type:"checkbox",content:"News, products & offers"},{type:"text",contentBeforeTooltip:"Latest news & information about your club and its partners",contentAfterTooltip:", as well as updates on products, offers, competitions, community and charity activities, services & events.",tooltip:"<p>This means existing and future partners of your Club.</p>"},{type:"text",content:"<strong>Content sent from EFL Group</strong>",tooltip:"<p>This includes the EFL, EFL Digital & EFL in the Community.</p>"},{type:"checkbox",content:"Newsletter"},{tooltip:"<p>This means existing and future partners of the EFL Group.</p>",type:"text",contentBeforeTooltip:"A weekly round-up including news, information, products, offers, competitions, community and charity activities, services, events & updates about the EFL Group and its partners",contentAfterTooltip:"."},{type:"checkbox",content:"News, products & offers"},{tooltip:"<p>This means existing and future partners of the EFL Group.</p>",type:"text",contentBeforeTooltip:"Latest news & information about EFL Group and its partners",contentAfterTooltip:", as well as updates on products, offers, competitions, community and charity activities, services & events."}]},{isRequired:"isShown",type:"group",content:"How do you want to hear from your Club and/or the EFL Group?",required:[{field:"initialPreferenceCheck",value:"More Options"}],child:[{type:"checkbox",content:"Email"},{type:"checkbox",content:"SMS"},{type:"checkbox",content:"Automated phone calls"},{tooltip:"<p>By consenting to ‘Online direct messages’, you are permitting your Club and/or the EFL Group to direct message you via social media platforms.</p>",type:"checkbox",content:"Online direct messages"}]}]}
186,{type:"checkbox",isRequired:!0,content:"I agree to the <a href='https://www.efl.com/ifollow/terms-and-conditions/ ' target='_blank'>Terms and Conditions</a> and to having immediate access to iFollow (and understand any specific right to withdraw from the subscription during the first 14 days will not apply)."}],_hoisted_1$9={class:"flex flex-col gap-1"},_sfc_main$a=defineComponent({__name:"Preferences",props:{preferences:{},child:{type:Boolean}},emits:["update-preferences","update-formatted-preferences"],setup(e,{emit:t}){const r=e,o=useRuntimeConfig(),c=t,d=ref([]),f=S=>{const w=d.value.flatMap(A=>A.id===S.id?{...A,child:S.child}:A),T=d.value.flatMap(A=>{var C;return A.id===S.id?{...((C=b([A]))==null?void 0:C[0])??{},child:b(A.child)??null}:A});d.value=w,c("update-preferences",w),c("update-formatted-preferences",T)},b=S=>{if(S&&S.length)return S.map(w=>({...w,title:w.content||w.title,value:w.value||w.checked,checked:w.checked||w.value,child:b(w.child)??null}))},m=(S,w)=>!S||!S.length?[]:(S.length>=1?S:w).map(T=>{const A=w.find(P=>P.content===T.title),C=(A==null?void 0:A.id)??(T==null?void 0:T.id)??v4();return{...A,...T,value:T.value??T.checked??(A==null?void 0:A.checked)??!1,checked:T.value??T.checked??(A==null?void 0:A.checked)??!1,type:(A==null?void 0:A.type)??T.type,id:C,child:m((T==null?void 0:T.child)||[],(A==null?void 0:A.child)||[])}});return onMounted(()=>{const S=o.public.club.features.eflCollective?ssoOptionsEfl:o.public.club.ssoOptions.preferences;d.value=m(r.preferences,S),c("update-preferences",d.value),c("update-formatted-preferences",b(d.value))}),(S,w)=>{const T=_sfc_main$e,A=_sfc_main$d,C=_sfc_main$c,P=_sfc_main$b;return openBlock(),createElementBlock("div",_hoisted_1$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d),B=>(openBlock(),createElementBlock("div",{key:B.id},[B.type==="radio"?(openBlock(),createBlock(T,{key:0,preference:B,onValue:U=>((D,$)=>{d.value=d.value.map(z=>z.id===D.id?{...z,value:$}:z),c("update-preferences",d.value),c("update-formatted-preferences",b(d.value))})(B,U)},null,8,["preference","onValue"])):createCommentVNode("",!0),B.type==="checkbox"?(openBlock(),createBlock(A,{key:1,preference:B,onChecked:U=>((D,$)=>{d.value=d.value.map(z=>z.id===D.id?{...z,checked:$,value:$}:z),c("update-preferences",d.value),c("update-formatted-preferences",b(d.value))})(B,U)},null,8,["preference","onChecked"])):createCommentVNode("",!0),B.type=="text"?(openBlock(),createBlock(C,{key:2,preference:B,onUpdatePreferences:f},null,8,["preference"])):createCommentVNode("",!0),B.type=="group"?(openBlock(),createBlock(P,{key:3,"parent-preferences":unref(d),preference:B,onUpdatePreferences:f},null,8,["parent-preferences","preference"])):createCommentVNode("",!0)]))),128))])}}}),_hoisted_1$8={class:""},_hoisted_2$6={class:"flex flex-col gap-2 mt-4"},_hoisted_3$6={key:0,class:"flex justify-around"},_hoisted_4$6=["onClick"],_hoisted_5$5={key:1,class:"px-2 py-1 bg-white"},_hoisted_6$4={class:"text-sm text-red-400"},_hoisted_7$4={key:2,class:"flex flex-col gap-2 mt-4"},_hoisted_8$3={key:0,class:"relative w-full",for:"title"},_hoisted_9$2={class:"relative w-full",for:"firstname"},_hoisted_10$2={class:"relative w-full",for:"lastname"},_hoisted_11$1={class:"relative w-full",for:"email"},_hoisted_12$1={class:"relative w-full",for:"confirmemail"},_hoisted_13$1={key:3,class:"flex flex-col gap-2 mt-4"},_hoisted_14={key:0,class:"relative w-full",for:"favClub"},_hoisted_15={key:0,class:"absolute px-3 leading-[40px] text-slate-600"},_hoisted_16=["value"],_hoisted_17={key:1,class:"relative w-full",for:"country"},_hoisted_18=["value"],_hoisted_19={key:2,class:"flex flex-row"},_hoisted_20=["value"],_hoisted_21={class:"relative w-full",for:"phone"},_hoisted_22=["for"],_hoisted_23=["id","onUpdate:modelValue","name","placeholder"],_hoisted_24={class:"relative w-full",for:"Locality"},_hoisted_25={class:"relative w-full",for:"Locality"},_hoisted_26={key:4,class:"relative w-full",for:"postcode"},_hoisted_27={key:5,class:"relative flex items-center w-full",for:"dob"},_hoisted_28={key:6,class:"relative w-full"},_hoisted_29={key:7,class:"relative w-full"},_hoisted_30={value:"",disabled:""},_hoisted_31=["value"],_hoisted_32={key:8},_hoisted_33=["for"],_hoisted_34=["for"],_hoisted_35=["id","onUpdate:modelValue","name"],_hoisted_36={value:"",disabled:""},_hoisted_37=["value"],_hoisted_38={key:4,class:"mt-4"},_hoisted_39={class:"flex flex-col gap-2 p-4 bg-white"},_sfc_main$9=defineComponent({name:"RegisterForm ",__name:"index",props:{textColor:{}},async setup(e){var _e,Re,ge,Ce,Me,Ue,Ne,We,et,rt,re,ne,Se,he,we,xe,ze,Ee;let t,r;const o=useRuntimeConfig(),c=(_e=o.public.club.theme)==null?void 0:_e.club,d=(c==null?void 0:c.color)!=null?`text-${(Re=c==null?void 0:c.color)==null?void 0:Re.color}${((ge=c==null?void 0:c.color)==null?void 0:ge.shade)!=null?`-${(Ce=c==null?void 0:c.color)==null?void 0:Ce.shade}`:""}`:"text-white",f=((Me=c==null?void 0:c.color)==null?void 0:Me.color)==="black"?"dark":((Ue=c==null?void 0:c.color)==null?void 0:Ue.color)==="white"?"light":"club",{$auth:b}=useNuxtApp(),m=ref(1),S=ref(!1),w=ref(!1),T=["addressLine1","addressLine2","addressLine3"],A=ref(o.public.club.features.eflCollective?ssoOptionsEfl:o.public.club.ssoOptions.preferences||[]),C=ref([]),P=ref([]),B=o.public.club.sport,U=useStore(),D=["details"],$=ref([]),z=useState("verifyEmail",()=>
186""),V=ref({title:"",email:"",phone:"",code:"+44",address:{streetAddress:{addressLine1:"",addressLine2:"",addressLine3:""},locality:"",region:"",country:"United Kingdom",postcode:""},firstname:"",lastname:"",password:"",dob:"",gender:"",favourite:"",...(et=(We=(Ne=o.public.club)==null?void 0:Ne.ssoOptions)==null?void 0:We.customValues)==null?void 0:et.reduce((se,L)=>(se[L.title]="",se),{})}),F=ref(""),ee=ref(""),te=ref(""),K=computed(()=>{var se,L;if((se=o==null?void 0:o.public)!=null&&se.clubs)return(L=o==null?void 0:o.public)==null?void 0:L.clubs.sort((j,Z)=>{var le,Te,Ae,Le;return((Te=(le=j.attributes)==null?void 0:le.teams)==null?void 0:Te.teamName)>((Le=(Ae=Z.attributes)==null?void 0:Ae.teams)==null?void 0:Le.teamName)?1:-1})}),H=computed(()=>{var se,L,j;return(j=(L=(se=o.public.club)==null?void 0:se.ssoOptions)==null?void 0:L.fields)==null?void 0:j.includes("favClub")}),X=se=>{switch(se){case 1:Q();break;case 2:pe()}},J=se=>/^[a-zA-Z\s\-'.]+$/.test(se)&&se.length<=25&&se.length>0,{$gc:G}=useNuxtApp();if((ne=(re=(rt=o.public.club)==null?void 0:rt.ssoOptions)==null?void 0:re.fields)!=null&&ne.includes("FavouriteDropdown"))try{if(B==="darts"){const se=([t,r]=withAsyncContext(()=>G().darts.web().getParticipants()),t=await t,r(),t),L=se.data.map(j=>{var Z,le;return{name:`${(Z=j.attributes)==null?void 0:Z.firstName} ${(le=j.attributes)==null?void 0:le.lastName}`,id:j.id}});console.log("Favourite Dropdown options:",L),P.value=L}else console.warn("Favourite Dropdown is only supported for darts at this time"),P.value=[]}catch(se){console.error("Error fetching favourite dropdown options:",se),P.value=[]}const Q=()=>{var se,L,j;$.value=[],V.value.title.length<1&&((j=(L=(se=o.public.club)==null?void 0:se.ssoOptions)==null?void 0:L.fields)!=null&&j.includes("Title"))&&$.value.push("Please select a title"),J(V.value.firstname)||$.value.push("Please enter a valid First Name"),J(V.value.lastname)||$.value.push("Please enter a valid Last Name"),V.value.email.length<1&&$.value.push("Please enter a valid email address"),te.value.length<1&&$.value.push("Please confirm your Email"),V.value.password.length<1&&$.value.push("Please enter a Password"),ee.value.length<1&&$.value.push("Please confirm your Password"),/\S+@\S+\.\S+/.test(V.value.email)||$.value.push("Please enter a valid email address"),V.value.email!==te.value&&$.value.push("Emails do not match"),validatePassword(V.value.password)||$.value.push("Password must be at least 8 characters, and contain at least 1 symbol, 1 number, 1 lowercase character, and 1 uppercase character"),V.value.password!==ee.value&&$.value.push("Passwords do not match"),$.value.length===0&&D.length>1&&(m.value=2)},pe=()=>{var j,Z,le,Te,Ae,Le,Ke,nt,Be,vt,ht,mt,$t,Mt,Dt,Qe,pt,Ut,jt,hr,_r,mn,kr;$.value=[],H.value&&!F.value.length&&$.value.push("Please select your favourite club"),!/^\+?\d{8,15}$/.test(V.value.phone)&&((le=(Z=(j=o.public.club)==null?void 0:j.ssoOptions)==null?void 0:Z.fields)!=null&&le.includes("Phone"))&&$.value.push("Please enter a valid phone number"),!/^[A-Za-z0-9 ]{3,10}$/.test(V.value.address.postcode)&&((Le=(Ae=(Te=o.public.club)==null?void 0:Te.ssoOptions)==null?void 0:Ae.fields)!=null&&Le.includes("Postcode"))&&$.value.push("Please enter a valid postcode"),V.value.dob===""&&((Be=(nt=(Ke=o.public.club)==null?void 0:Ke.ssoOptions)==null?void 0:nt.fields)!=null&&Be.includes("DoB"))&&$.value.push("Please enter your date of birth"),V.value.address.streetAddress.addressLine1===""&&((mt=(ht=(vt=o.public.club)==null?void 0:vt.ssoOptions)==null?void 0:ht.fields)!=null&&mt.includes("Address"))&&$.value.push("Please enter your address");const se=new Date(V.value.dob),L=ref(0);if((Mt=($t=o.public.club)==null?void 0:$t.ssoOptions)!=null&&Mt.allowUnder18s||(L.value=18),!((pt=(Qe=(Dt=o.public.club)==null?void 0:Dt.ssoOptions)==null?void 0:Qe.fields)!=null&&pt.includes("DoB"))||se instanceof Date&&!isNaN(se)||$.value.push("Please enter a valid date of birth"),(hr=(jt=(Ut=o.public.club)==null?void 0:Ut.ssoOptions)==null?void 0:jt.fields)==null?void 0:hr.includes("DoB"))if(se instanceof Date&&!isNaN(se.getTime())){const gr=ye(se.getTime());gr<0||gr>110?$.value.push("Please enter a valid date of birth"):L.value>0&&gr<L.value&&$.value.push("You must be over 18 to register")}else $.value.push("Please enter a valid date of birth");(kr=(mn=(_r=o.public.club)==null?void 0:_r.ssoOptions)==null?void 0:mn.fields)!=null&&kr.includes("FavouriteDropdown")&&V.value.favourite===""&&$.value.push("Please select your favourite "+(B==="darts"?"player":"team")),$.value.length===0&&D.length>2&&(m.value=3)},ye=se=>{const L=new Date,j=new Date(se);let Z=L.getFullYear()-j.getFullYear();const le=L.getMonth()-j.getMonth();return(le<0||le===0&&L.getDate()<j.getDate())&&Z--,Z},de=async()=>{$.value=[],X(m.value);let se=A.value.map(Z=>{var le;
186return[Z,Z.child,(le=Z.child)==null?void 0:le.map(Te=>[Te,Te.child])]}).flat(1/0).filter(Z=>Z!==void 0);se=se==null?void 0:se.filter((Z,le)=>se.indexOf(Z)===le);const L=(se==null?void 0:se.filter(Z=>(Z==null?void 0:Z.isRequired)===!0||(Z==null?void 0:Z.isRequired)==="isShown"&&C.value.filter(le=>{var Te;return Array.isArray(Z==null?void 0:Z.required)&&((Te=Z==null?void 0:Z.required)==null?void 0:Te.includes(le.title))&&le.value}).length>0))||[];if((L==null?void 0:L.filter(Z=>Z.type==="radio"?typeof Z.value=="string"&&Z.value!==!1:Z.type==="checkbox"?Z.value===!0||Z.checked===!0:Z.type==="text"||Z.type==="group"||C.value.filter(le=>le.title&&le.title.includes(Z.content)&&le.value).length>0)).length!==L.length&&$.value.push("Please agree to all mandatory fields"),$.value.length===0){z.value=V.value.email;const Z={};V.value.title!==""&&(Z.title=V.value.title),F.value.length&&(Z.favClub=F.value),V.value.favourite!==""&&(Z.favourite=V.value.favourite),Z.marketingPrefs=JSON.stringify(C.value);try{await b.registerUser(V.value,Z),U.sso.verify=!0;const{userData:le}=await useGAEventData("sign_up",V.value.email);useAnalyticsEvent("sign_up",{method:"email",user:le}),U.sso.message={heading:"Successfully Registered",message:"Please check your email for a verification code"}}catch(le){$.value.push(le.message)}}};return((we=(he=(Se=o.public.club)==null?void 0:Se.ssoOptions)==null?void 0:he.fields)==null?void 0:we.filter(se=>se!=="Title").length)>0&&D.push("custom_fields"),((Ee=(ze=(xe=o.public.club)==null?void 0:xe.ssoOptions)==null?void 0:ze.preferences)==null?void 0:Ee.length)>0&&D.push("preferences"),(se,L)=>{var Te,Ae,Le,Ke,nt,Be,vt,ht,mt,$t,Mt,Dt,Qe,pt,Ut,jt,hr,_r,mn,kr,gr,On,Ln,gn,wr,zr,zn,Fn;const j=_sfc_main$j,Z=_sfc_main$a,le=_sfc_main$T;return openBlock(),createElementBlock("div",_hoisted_1$8,[createBaseVNode("div",_hoisted_2$6,[D.length>1?(openBlock(),createElementBlock("div",_hoisted_3$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(D.length,At=>(openBlock(),createElementBlock("div",{key:At,class:normalizeClass(["flex flex-col items-center text-sm text-gray-200 basis-1/3",{"text-barely-visible cursor-pointer":At<unref(m),"font-bold":At===unref(m),"text-primary-300":At>unref(m)}]),onClick:Fr=>m.value=unref(m)>At?At:unref(m)}," Step "+toDisplayString(At),11,_hoisted_4$6))),128))])):createCommentVNode("",!0),unref($).length>0?(openBlock(),createElementBlock("div",_hoisted_5$5,[createBaseVNode("span",_hoisted_6$4,toDisplayString(unref($)[0]),1)])):createCommentVNode("",!0),unref(m)===1?(openBlock(),createElementBlock("div",_hoisted_7$4,[(Le=(Ae=(Te=unref(o).public.club)==null?void 0:Te.ssoOptions)==null?void 0:Ae.fields)!=null&&Le.includes("Title")?(openBlock(),createElementBlock("label",_hoisted_8$3,[withDirectives(createBaseVNode("select",{id:"title","onUpdate:modelValue":L[0]||(L[0]=At=>unref(V).title=At),class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px] placeholder:text-slate-600",name:"title"},[...L[25]||(L[25]=[createStaticVNode('<option value="" hidden disabled selected data-v-bcf2ac4f> Title </option><option value="Mr" data-v-bcf2ac4f>Mr</option><option value="Dr" data-v-bcf2ac4f>Dr</option><option value="Mrs" data-v-bcf2ac4f>Mrs</option><option value="Miss" data-v-bcf2ac4f>Miss</option><option value="Ms" data-v-bcf2ac4f>Ms</option>',6)])],512),[[vModelSelect,unref(V).title]])])):createCommentVNode("",!0),createBaseVNode("label",_hoisted_9$2,[withDirectives(createBaseVNode("input",{id:"firstname","onUpdate:modelValue":L[1]||(L[1]=At=>unref(V).firstname=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"firstname",placeholder:"First name"},null,512),[[vModelText,unref(V).firstname]])]),createBaseVNode("label",_hoisted_10$2,[withDirectives(createBaseVNode("input",{id:"lastname","onUpdate:modelValue":L[2]||(L[2]=At=>unref(V).lastname=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"lastname",placeholder:"Last name"},null,512),[[vModelText,unref(V).lastname]])]),createBaseVNode("label",_hoisted_11$1,[withDirectives(createBaseVNode("input",{id:"email","onUpdate:modelValue":L[3]||(L[3]=At=>unref(V).email=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"email",placeholder:"Email address"},null,512),[[vModelText,unref(V).email]])]),createBaseVNode("label",_hoisted_12$1,[withDirectives(createBaseVNode("input",{id:"confirmemail","onUpdate:modelValue":L[4]||(L[4]=At=>isRef(te)?te.value=At:null),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"confirmemail",placeholder:"Confirm email address"},null,512),[[vModelText,unref(te)]])]),createVNode(j,{id:"password",modelValue:unref(V).password,"onUpdate:modelValue":L[5]||(L[5]=At=>unref(V).password=At),name:"password",placeholder:"Password"},null,8,["modelValue"]),createVNode(j,{id:"confirmpassword",modelValue:unref(ee),"onUpdate:modelValue":L[6]||(L[6]=At=>isRef(ee)?ee.value=At:null),name:"confirmpassword",placeholder:"Confirm password"},null,8,["modelValue"])])):createCommentVNode("",!0),D[unref(m)-1]==="custom_fields"?(
186openBlock(),createElementBlock("div",_hoisted_13$1,[unref(H)?(openBlock(),createElementBlock("label",_hoisted_14,[unref(F).length===0?(openBlock(),createElementBlock("span",_hoisted_15,"Favourite Club")):createCommentVNode("",!0),withDirectives(createBaseVNode("select",{id:"favClub","onUpdate:modelValue":L[7]||(L[7]=At=>isRef(F)?F.value=At:null),class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px]",name:"favClub",placeholder:"Favourite club"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(K),At=>{var Fr,yn,Rn;return openBlock(),createElementBlock("option",{key:At,value:(Fr=At==null?void 0:At.attributes)==null?void 0:Fr.teams.teamName},toDisplayString((Rn=(yn=At==null?void 0:At.attributes)==null?void 0:yn.teams)==null?void 0:Rn.teamName),9,_hoisted_16)}),128))],512),[[vModelSelect,unref(F)]])])):createCommentVNode("",!0),(Be=(nt=(Ke=unref(o).public.club)==null?void 0:Ke.ssoOptions)==null?void 0:nt.fields)!=null&&Be.includes("Country")?(openBlock(),createElementBlock("label",_hoisted_17,[withDirectives(createBaseVNode("select",{id:"country","onUpdate:modelValue":L[8]||(L[8]=At=>unref(V).address.country=At),class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px]",name:"country"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(o).public.countries,At=>(openBlock(),createElementBlock("option",{key:At,value:At},toDisplayString(At),9,_hoisted_18))),128))],512),[[vModelSelect,unref(V).address.country]])])):createCommentVNode("",!0),(mt=(ht=(vt=unref(o).public.club)==null?void 0:vt.ssoOptions)==null?void 0:ht.fields)!=null&&mt.includes("Phone")?(openBlock(),createElementBlock("div",_hoisted_19,[withDirectives(createBaseVNode("select",{id:"code","onUpdate:modelValue":L[9]||(L[9]=At=>unref(V).code=At),class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-[125px] h-[40px]",name:"code"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(o).public.codes).filter(At=>!unref(o).public.codes[At].includes("and")&&unref(o).public.codes[At].length>0),At=>(openBlock(),createElementBlock("option",{key:At,value:`+${unref(o).public.codes[At].replace("+","")}`},toDisplayString(At)+" +"+toDisplayString(unref(o).public.codes[At].replace("+","")),9,_hoisted_20))),128))],512),[[vModelSelect,unref(V).code]]),createBaseVNode("label",_hoisted_21,[withDirectives(createBaseVNode("input",{id:"phone","onUpdate:modelValue":L[10]||(L[10]=At=>unref(V).phone=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600",type:"text",name:"phone",placeholder:"Mobile number"},null,512),[[vModelText,unref(V).phone]])])])):createCommentVNode("",!0),(Dt=(Mt=($t=unref(o).public.club)==null?void 0:$t.ssoOptions)==null?void 0:Mt.fields)!=null&&Dt.includes("Address")?(openBlock(),createElementBlock(Fragment,{key:3},[(openBlock(),createElementBlock(Fragment,null,renderList(T,(At,Fr)=>createBaseVNode("label",{key:At,class:"relative w-full",for:At},[withDirectives(createBaseVNode("input",{id:At,"onUpdate:modelValue":yn=>unref(V).address.streetAddress[At]=yn,class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600",type:"text",name:At,placeholder:`Address line ${Fr+1}${Fr===0?"*":""}`},null,8,_hoisted_23),[[vModelText,unref(V).address.streetAddress[At]]])],8,_hoisted_22)),64)),createBaseVNode("label",_hoisted_24,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":L[11]||(L[11]=At=>unref(V).address.locality=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"locality",placeholder:"Town/City"},null,512),[[vModelText,unref(V).address.locality]])]),createBaseVNode("label",_hoisted_25,[withDirectives(createBaseVNode("input",{"onUpdate:modelValue":L[12]||(L[12]=At=>unref(V).address.region=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"region",placeholder:"County/Region"},null,512),[[vModelText,unref(V).address.region]])])],64)):createCommentVNode("",!0),(Ut=(pt=(Qe=unref(o).public.club)==null?void 0:Qe.ssoOptions)==null?void 0:pt.fields)!=null&&Ut.includes("Postcode")?(openBlock(),createElementBlock("label",_hoisted_26,[withDirectives(createBaseVNode("input",{id:"postcode","onUpdate:modelValue":L[13]||(L[13]=At=>unref(V).address.postcode=At),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",type:"text",name:"postcode",placeholder:"Post code*"},null,512),[[vModelText,unref(V).address.postcode]])])):createCommentVNode("",!0),(_r=(hr=(jt=unref(o).public.club)==null?void 0:jt.ssoOptions)==null?void 0:hr.fields)!=null&&_r.includes("DoB")?(openBlock(),createElementBlock("label",_hoisted_27,[L[26]||(L[26]=createBaseVNode("span",{class:"px-3 text-slate-600 bg-gray-100 h-[42px] leading-[42px] border-r border-slate-500/30"},"Date of Birth*",-1)),withDirectives(createBaseVNode("input",{id:"dob","onUpdate:modelValue":L[14]||(L[14]=At=>unref(V).dob=At),class:"flex-grow px-3 py-2 text-black bg-gray-100 text-slate-600 placeholder:text-slate-600",name:"dob",placeholder:"Date of birth*",type:"date"},null,512),[[vModelText,unref(V).dob]])])):createCommentVNode("",!0),(gr=(kr=(mn=unref(o).public.club)==null?void 0:mn.ssoOptions)==null?void 0:kr.fields)!=null&&gr.includes("Gender")?(openBlock(),createElementBlock("div",_hoisted_28,[withDirectives(createBaseVNode("select",{id:"gender","onUpdate:modelValue":L[15]||(L[15]=At=>unref(V).gender=At),class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px]",name:"gender",onFocus:L[16]||(L[16]=At=>S.value=!0),onBlur:L[17]||(L[17]=At=>S.value=!1)},[...L[27]||(L[27]=[createStaticVNode('<option value="" disabled data-v-bcf2ac4f> Gender </option><option value="Female" data-v-bcf2ac4f>Female</option><option value="Male" data-v-bcf2ac4f>Male</option><option value="Non-binary" data-v-bcf2ac4f>Non-binary</option><option value="Prefer not to say" data-v-bcf2ac4f>Prefer not to say</option>',5)])],544),[[vModelSelect,unref(V).gender]])])):createCommentVNode("",!0),(gn=(Ln=(On=unref(o).public.club)==null?void 0:On.ssoOptions)==null?void 0:Ln.fields)!=null&&gn.includes("FavouriteDropdown")?(openBlock(),createElementBlock("div",_hoisted_29,[withDirectives(createBaseVNode("select",{id:"favourite","onUpdate:modelValue":L[18]||(L[18]=At=>unref(V).favourite=At),class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px]",name:"favourite",onFocus:L[19]||(L[19]=At=>w.value=!0),onBlur:L[20]||(L[20]=At=>w.value=!1)},[createBaseVNode("option",_hoisted_30,toDisplayString(`Favourite  ${unref(B)==="darts"?"Player":"Team"} `),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(P),At=>(openBlock(),createElementBlock("option",{key:At.id,value:At.id},toDisplayString(At.name),9,_hoisted_31))),128)),L[28]||(L[28]=createBaseVNode("option",{value:"preferNotToSay"},"Prefer not to say",-1))],544),[[vModelSelect,unref(V).favourite]])])):createCommentVNode("",!0),(zr=(wr=unref(o).public.club)==null?void 0:wr.ssoOptions)!=null&&zr.customValues?(openBlock(),createElementBlock("div",_hoisted_32,[(openBlock(!0),createElementBlock(Fragment,null,renderList((Fn=(zn=u
186nref(o).public.club)==null?void 0:zn.ssoOptions)==null?void 0:Fn.customValues,At=>(openBlock(),createElementBlock("div",{key:At.title,for:At.title,class:"relative w-full mb-2"},[createBaseVNode("label",{class:"relative w-full",for:At.title},[withDirectives(createBaseVNode("select",{id:At.title,"onUpdate:modelValue":Fr=>unref(V)[At.title]=Fr,class:"text-black px-3 bg-gray-100 text-slate-600 w-full h-[40px]",name:unref(V)[At.title]},[createBaseVNode("option",_hoisted_36,toDisplayString(At.title),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(At.options,Fr=>(openBlock(),createElementBlock("option",{key:Fr,value:Fr},toDisplayString(Fr),9,_hoisted_37))),128))],8,_hoisted_35),[[vModelSelect,unref(V)[At.title]]])],8,_hoisted_34)],8,_hoisted_33))),128))])):createCommentVNode("",!0)])):createCommentVNode("",!0),D[unref(m)-1]==="preferences"?(openBlock(),createElementBlock("div",_hoisted_38,[createBaseVNode("div",_hoisted_39,[createVNode(Z,{preferences:unref(A),onUpdatePreferences:L[21]||(L[21]=At=>A.value=At),onUpdateFormattedPreferences:L[22]||(L[22]=At=>C.value=At)},null,8,["preferences"])])])):createCommentVNode("",!0),D.includes("preferences")||unref(m)!=D.length?createCommentVNode("",!0):(openBlock(),createElementBlock("p",{key:5,class:normalizeClass(["mt-2",[unref(d)]])},[...L[29]||(L[29]=[createTextVNode(" By registering you agree to the ",-1),createBaseVNode("a",{href:"/terms-of-use",target:"_blank"},"terms of use",-1)])],2)),unref(m)<D.length?(openBlock(),createBlock(le,{key:6,content:"Continue",class:"max-w-full mt-4 font-bold",theme:unref(f),tabindex:"0",onClick:L[23]||(L[23]=At=>X(unref(m))),onKeydown:L[24]||(L[24]=withKeys(At=>X(unref(m)),["enter"]))},null,8,["theme"])):createCommentVNode("",!0),unref(m)===D.length?(openBlock(),createBlock(le,{key:7,content:"Register",class:"max-w-full mt-4 font-bold",theme:unref(f),icon:"account",tabindex:"0",onClick:de,onKeydown:withKeys(de,["enter"])},null,8,["theme"])):createCommentVNode("",!0)])])}}}),__nuxt_component_2=_export_sfc$1(_sfc_main$9,[["__scopeId","data-v-bcf2ac4f"]]),index=Object.freeze(Object.defineProperty({__proto__:null,default:__nuxt_component_2},Symbol.toStringTag,{value:"Module"})),_hoisted_1$7={key:0,class:"px-2 py-1 bg-white"},_hoisted_2$5={class:"text-sm text-red-400"},_hoisted_3$5={class:"relative w-full",for:"username"},_hoisted_4$5={key:0,class:"absolute px-3 leading-[40px] text-slate-600"},_hoisted_5$4=["href"],_sfc_main$8=defineComponent({__name:"index",props:{forgotPassword:{type:Boolean}},emits:["forgot-password","user-logged-in","show-account"],setup(e,{emit:t}){const r=useUserStore(),o=useRuntimeConfig(),c=useStore(),d=useToastStore(),f=ref(!1),{$auth:b}=useNuxtApp(),m=ref(!1),S=ref([]),w=ref({email:"",password:""}),T=e,A=t,C=ref(null),{addToast:P}=d,B=async()=>{if(S.value=[],T.forgotPassword){c.sso.reset=!0,await b.forgotPassword(w.value);const{userData:U}=await useGAEventData("forgotten_password",w.value.email);useAnalyticsEvent("forgotten_password",{method:"email",user:U}),c.sso.message={heading:"Password Reset Request",message:"Please check your email for further instructions"},P({key:"password-reset-request",message:"Password reset request sent. Please check your email.",type:"success"}),A("forgot-password",!1)}else if(m.value=!0,await b.login(w.value).catch(async U=>{U.code=="NewPasswordRequired"&&(r.userAttributes=U.userAttributes,c.sso.setNewPassword=!0),U.code=="PasswordResetRequiredException"?(await b.forgotPassword(w.value),c.sso.reset=!0,c.sso.message={heading:"Password Reset Required",message:"Please check your email for further instructions"},m.value=!1):(console.log(U),S.value.push("Incorrect Email/Password Combination"),m.value=!1)})!=null){r.setUser({userDetails:await b.getUserDetails()}),c.sso.message={heading:"Successfully Logged in"},A("show-account",!1),A("user-logged-in"),sessionStorage.getItem("newUser")===null&&sessionStorage.setItem("newUser","returning");const{userData:U}=await useGAEventData("login");useAnalyticsEvent("login",{user:U}),P({key:"successfully-logged-in",message:"Successfully logged in",type:"success"})}};return(U,D)=>{var F,ee,te,K,H,X,J,G,Q,pe;const $=_sfc_main$V,z=_sfc_main$j,V=_sfc_main$T;return openBlock(),createElementBlock("div",{class:"flex flex-col w-full gap-2 mb-10",onKeydown:withKeys(B,["enter"])},[createVNode($,{class:"text-heading-md text-slate-600"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.forgotPassword?"Forgotten Password":"Login"),1)]),_:1}),S.value.length>0?(openBlock(),createElementBlock("div",_hoisted_1$7,[createBaseVNode("span",_hoisted_2$5,toDisplayString(S.value[0]),1)])):createCommentVNode("",!0),createBaseVNode("label",_hoisted_3$5,[f.value||w.value.email!=""?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_4$5,"Email")),withDirectives(createBaseVNode("input",{id:"username",ref_key:"loginInput",ref:C,"onUpdate:modelValue":D[0]||(D[0]=ye=>w.value.email=ye),class:"w-full px-3 py-2 text-black bg-gray-100 text-slate-600",type:"text",name:"username",onFocus:D[1]||(D[1]=ye=>f.value=!0),onBlur:D[2]||(D[2]=ye=>f.value=!1)},null,544),[[vModelText,w.value.email]])]),e.forgotPassword?createCommentVNode("",!0):(openBlock(),createBlock(z,{key:1,id:"password",modelValue:w.value.password,"onUpdate:modelValue":D[3]||(D[3]=ye=>w.value.password=ye),name:"password",label:"Password"},null,8,["modelValue"])),((ee=(F=unref(o).public.club)==null?void 0:F.ssoOptions)==null?void 0:ee.version)!==1?(openBlock(),createElementBlock("a",{key:2,class:"text-xs cursor-pointer text-slate-600 hover:text-primary-500",onClick:D[4]||(D[4]=ye=>A("forgot-password",!e.forgotPassword))},toDisplayString(e.forgotPassword?"Back to Login":"Forgotten your password/verification code?"),1)):(openBlock(),createElementBlock("a",{key:3,class:"text-xs cursor-pointer text-slate-600 hover:text-primary-500",href:((H=(K=(te=unref(o).public.club)==null?void 0:te.ssoOptions)==null?void 0:K.links)==null?void 0:H.forgotPassword)||((G=(J=(X=unref(o).public.club)==null?void 0:X.ssoOptions)==null?void 0:J.links)==null?void 0:G.register)},"Forgotten your password/verification code?",8,_hoisted_5$4)),((pe=(Q=unref(o).public.club)==null?void 0:Q.ssoOptions)==null?void 0:pe.version)!==1?(openBlock(),createElementBlock("div",{key:4,class:"text-xs cursor-pointer text-slate-600 hover:text-primary-500",onClick:D[5]||(D[5]=ye=>unref(c).sso.reset=!0)}," Got a password reset code? ")):createCommentVNode("",!0),createVNode(V,{content:e.forgotPassword?"Reset Password":"Login",loading:m.value,class:"max-w-full mt-4 font-bold",icon:"account",tabindex:"0",onClick:B},null,8,["content","loading"])],32)}}}),_hoisted_1$6={class:"flex flex-col h-full overflow-y-auto"},_hoisted_2$4={class:"flex items-center gap-2 flex-start"},_hoisted_3$4=["src"],_hoisted_4$4=["innerHTML"],_hoisted_5$3={key:2},_hoisted_6$3={key:3},_hoisted_7$3={class:"flex-col p-6"},_hoisted_8$2=["innerHTML"],_sfc_main$7=defineComponent({__name:"Default",props:{showRegister:{type:Boolean},forgotPassword:{type:Boolean},inline:{type:Boolean}},emits:["show-register","forgot-password","user-logged-in","show-account"],setup(e,{emit:t}){var C,P,B,U,D,$,z,V,F,ee,te,K,H,X;const r=useRuntimeConfig(),o=useStore(),c=(C=r.public.club.features)==null?void 0:C.eflCollective,d=e,f=t,b=ref(),m=ref();((P=r.public.club.ssoOptions)==null?void 0:P.showLogo)!==void 0?b.value=(B=r.public.club.ssoOptions)==null?void 0:B.showLogo:b.value=!0,((U=r.public.club.ssoOptions)==null?void 0:U.showName)!==void 0?m.value=(D=r.public.club.ssoOptions)==null?void 0:D.showName:m.value=!0;const S=($=r.public.club.theme)==null?void 0:$.club,w=(S==null?void 0:S.color)!=null?`text-${(z=S==null?void 0:S.color)==null?void 0:z.color}${((V=S==null?void 0:S.color)==null?void 0:V.shade)!=null?`-${(F=S==null?void 0:S.color)==null?void 0:F.shade}`:""}`:"text-white",T=(S==null?void 0:S.color)!=null?`bg-${(ee=S==null?void 0:S.backgroundColor)==null?void 0:ee.color}${((te=S==null?void 0:S.backgroundColor)==null?void 0:te.shade)!=null?`-${parseInt((K=S==null?void 0:S.backgroundColor)==null?void 0:K.shade)+100}`:""}`:"bg-primary-600",A=((H=S==null?void 0:S.color)==null?void 0:H.color)=="black"?"dark":((X=S==null?void 0:S.color)==null?void 0:X.color)=="white"?"light":"club";return(J,G)=>{var Re,ge,Ce,Me,Ue,Ne,We,et,rt,re,ne,Se,he,we,xe,ze,Ee,se,L,j,Z,le,Te,Ae,Le,Ke,nt,Be,vt,ht;const Q=_sfc_main$V,pe=_sfc_main$12,ye=__nuxt_component_2,de=_sfc_main$T,_e=_sfc_main$8;return openBlock(),createElementBlock("div",_hoisted_1$6,[createBaseVNode("div",{class:normalizeClass(["p-6",[unref(T)]])},[createBaseVNode("div",{class:normalizeClass(["flex items-center justify-between w-full mb-16",[unref(w)]]),tabindex:"0"},[createVNode(Q,{tag:"h2",class:"font-bold text-heading-xl"},{default:withCtx(()=>[...G[10]||(G[10]=[createTextVNode(" Register ",-1)])]),_:1}),d.inline?createCommentVNode("",!0):(openBlock(),createBlock(pe,{key:0,pack:"navigation",size:24,icon:"close",class:normalizeClass(["duration-150 cursor-pointer ease flex items-center justify-center w-[42px] h-[42px] rounded-full hover:bg-white/30 transition-all duration-500",[unref(w)]]),"aria-label":"Close",tabindex:"0",onClick:G[0]||(G[0]=()=>unref(o).showSSO=!1),onKeydown:G[1]||(G[1]=withKeys(()=>unref(o).showSSO=!1,["enter"]))},null,8,["class"]))],2),createBaseVNode("div",_hoisted_2$4,[unref(b)===!0?(openBlock(),createElementBlock("img",{key:0,src:("useGCImage"in J?J.useGCImage:unref(useGCImage))(!0,170,170,((Me=(Ce=(ge=(Re=unref(r))==null?void 0:Re.public)==null?void 0:ge.club)==null?void 0:Ce.ssoOptions)==null?void 0:Me.ssoCrest)||((We=(Ne=(Ue=unref(r))==null?void 0:Ue.public)==null?void 0:Ne.club)==null?void 0:We.logo)||""),class:"w-[75px] h-[56px] object-contain sso-logo"},null,8,_hoisted_3$4)):createCommentVNode("",!0),createVNode(Q,{tag:"h2",class:normalizeClass(["font-bold text-heading-3xl",[unref(w)]])},{default:withCtx(()=>{var mt,$t;return[createTextVNode(toDisplayString(unref(m)?(($t=(mt=unref(r).public.club)==null?void 0:mt.ssoOptions)==null?void 0:$t.name)||unref(r).public.club.name:""),1)]}),_:1},8,["class"])]),((rt=(et=unref(r).public.club)==null?void 0:et.ssoOptions)==null?void 0:rt.description)==null?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(["mt-2",[unref(w)]])}," Register free today "+toDisplayString(((ne=(re=unref(r).public.club)==null?void 0:re.ssoOptions)==null?void 0:ne.name)!=null?`to ${(he=(Se=unref(r).public.club)==null?void 0:Se.ssoOptions)==null?void 0:he.name}`:"")+" for access to exclusive "+toDisplayString(((xe=(we=unref(r).public.club)==null?void 0:we.ssoOptions)==null?void 0:xe.name)||unref(r).public.club.name)+" "+toDisplayString(unref(r).public.club.features.eflCollective?"iFollow":"")+" content and benefits. ",3)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["mt-2",[unref(w)]]),innerHTML:(Ee=(ze=unref(r).public.club)==null?void 0:ze.ssoOptions)==null?void 0:Ee.description},null,10,_hoisted_4$4)),((L=(se=unref(r).public.club)==null?void 0:se.ssoOptions)==null?void 0:L.version)!==1?(openBlock(),createElementBlock("div",_hoisted_5$3,[e.showRegister?(openBlock(),createBlock(ye,{key:0,"text-color":unref(w)},null,8,["text-color"])):createCommentVNode("",!0),e.showRegister||unref(c)?createCommentVNode("",!0):(openBlock(),createBlock(de,{key:1,content:"Register",class:"max-w-full mt-4 font-bold",theme:unref(A),icon:"account",tabindex:"0",onClick:G[2]||(G[2]=mt=>f("show-register",!0)),onKeydown:G[3]||(G[3]=withKeys(mt=>f("show-register",!0),["enter"]))},null,8,["theme"])),!e.showRegister&&unref(c)?(openBlock(),createBlock(de,{key:2,content:"Register",class:"max-w-full mt-4 font-bold",theme:unref(A),icon:"account",tabindex:"0",link:"/sso/register"},null,8,["theme"])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["mt-2 text-xs text-center cursor-pointer hover:underline",[unref(w)]]),onClick:G[4]||(G[4]=mt=>unref(o).sso.verify=!0)}," Got a verification code? ",2)])):(openBlock(),createElementBlock("div",_hoisted_6$3,[createVNode(de,{content:"Register",class:"max-w-full mt-4 font-bold",theme:unref(A),icon:"account",tabindex:"0",link:(le=(Z=(j=unref(r).public.club)==null?void 0:j.ssoOptions)==null?void 0:Z.links)==null?void 0:le.register},null,8,["theme","link"])]))],2),createBaseVNode("div",_hoisted_7$3,[createVNode(Q,{tag:"h2",class:normalizeClass(["mb-4 font-bold text-heading-xl",{"mb-8":((Ae=(Te=unref(r).public.club)==null?void 0:Te.ssoOptions)==null?void 0:Ae.loginMessage)==null,"mb-4":((Ke=(Le=unref(r).public.club)==null?void 0:Le.ssoOptions)==null?void 0:Ke.loginMessage)!=null}])},{default:withCtx(()=>[...G[11]||(G[11]=[createTextVNode(" Already Registered? ",-1)])]),_:1},8,["class"]),((Be=(nt=unref(r).public.club)==null?void 0:nt.ssoOptions)==null?void 0:Be.loginMessage)!=null?(openBlock(),createElementBlock("div",{key:0,class:"mb-8 text-slate-600 text-md",innerHTML:(ht=(vt=unref(r).public.club)==null?void 0:vt.ssoOptions)==null?void 0:ht.loginMessage},null,8,_hoisted_8$2)):createCommentVNode("",!0),e.showRegister?createCommentVNode("",!0):(openBlock(),createBlock(_e,{key:1,"forgot-password":e.forgotPassword,onForgotPassword:G[5]||(G[5]=mt=>f("forgot-password",mt)),onUserLoggedIn:G[6]||(G[6]=mt=>f("user-logged-in")),onShowAccount:G[7]||(G[7]=mt=>f("show-account",mt))},null,8,["forgot-password"])),e.showRegister?(openBlock(),createBlock(de,{key:2,content:"Login",class:"max-w-full mt-4 font-bold",tabindex:"0",icon:"account",onClick:G[8]||(G[8]=mt=>f("show-register",!1)),onKeydown:G[9]||(G[9]=withKeys(mt=>f("show-register",!1),["enter"]))})):createCommentVNode("",!0)])])}}}),getCookieValue=e=>{const t=e+"=",r=decodeURIComponent(document.cookie).split(";");for(let o=0;o<r.length;o++){let c=r[o];for(;c.charAt(0)===" ";)c=c.substring(1);if(c.indexOf(t)===0)return c.substring(t.length,c.length)}return""}
186,_hoisted_1$5={key:0,class:"flex flex-col w-full gap-2"},_hoisted_2$3=["for"],_hoisted_3$3={class:"text-slate-600"},_hoisted_4$3=["onUpdate:modelValue"],_hoisted_5$2=["value"],_hoisted_6$2={key:1,class:"flex"},_hoisted_7$2=["value"],_hoisted_8$1={class:"relative w-full",for:"phone"},_hoisted_9$1=["id","onUpdate:modelValue","type","name","disabled"],_hoisted_10$1=["onUpdate:modelValue"],_hoisted_11=["value"],_hoisted_12={key:4,class:"text-xs italic text-gray-500"},_hoisted_13={key:1},_sfc_main$6=defineComponent({__name:"Account",emits:["user-updated"],async setup(e,{emit:t}){var H,X;let r,o;const c=useUserStore(),d=useRuntimeConfig(),{$auth:f,$gc:b}=useNuxtApp(),m=useToastStore(),{addToast:S}=m,w=d.public.club.sport||"football",{user:T}=storeToRefs(c);T.value=c.getUserDetails,c.$subscribe(()=>{T.value=c.getUserDetails});const A=t,C=d.public.club.features.eflCollective,P=ref(!1),B=ref(""),U=([r,o]=withAsyncContext(()=>f.getSSOUser()),r=await r,o(),r),D=U==null?void 0:U.id,$=d.public.club.ssoOptions.fields||[],z=ref(T.value.marketingPrefs||[]),V=ref([{subheader:null,fields:[{id:"firstname",name:"First Name",type:"text",required:!0},{id:"lastname",name:"Last Name",type:"text",required:!0},{id:"email",name:"Email",type:"text",disabled:!0,required:!0},{id:"phone",name:"Mobile Phone Number",required:$.includes("Phone"),type:"phone"},{id:"dob",name:"Date of Birth",type:"date",disabled:T.value.dob&&((X=(H=d.public.club)==null?void 0:H.ssoOptions)==null?void 0:X.dobNotEditable)||!1,required:$.includes("DoB")}]},{subheader:"Address",fields:[{id:"addressLine1",name:"Address Line 1",type:"text",required:$.includes("Address")},{id:"addressLine2",name:"Address Line 2",type:"text",required:!1},{id:"addressLine3",name:"Address Line 3",type:"text",required:!1},{id:"locality",name:"City / Town",type:"text",required:!1},{id:"region",name:"County / Region",type:"text",required:!1},{id:"postcode",name:"Postcode",type:"text",required:$.includes("Address")||$.includes("Postcode")},{id:"country",name:"Country",type:"country",required:$.includes("Country")}]}]),F=ref([]);if($.includes("FavouriteDropdown")){V.value[0].fields.push({id:"favourite",name:"Favourite Player",type:"favouriteDropdown",required:$.includes("FavouriteDropdown")});try{if(w==="darts"){const J=([r,o]=withAsyncContext(()=>b().darts.web().getParticipants()),r=await r,o(),r),G=J.data.map(Q=>{var pe,ye;return{name:`${(pe=Q.attributes)==null?void 0:pe.firstName} ${(ye=Q.attributes)==null?void 0:ye.lastName}`,id:Q.id}});F.value=G}else console.warn("Favourite Dropdown is only supported for darts at this time"),F.value=[]}catch(J){console.error("Error fetching favourite dropdown options:",J),F.value=[]}}const ee=async()=>{if([$.includes("Address")&&"addressLine1",$.includes("Address")&&"postcode",$.includes("Address")&&"country",$.includes("Postcode")&&"postcode",$.includes("Country")&&"country",$.includes("DoB")&&"dob",$.includes("Phone")&&"phone"].filter(Boolean).every(J=>T.value[J]))try{await te(),await f.updateUser(T.value),await(async()=>{var ye;const G=d.public.core.ticketingProvider;if(!G||(G==null?void 0:G.provider)!=="seatgeek"||!G.updateOnPush)return;const Q=getCookieValue(`CognitoIdentityServiceProvider.${(ye=d.public.club.ssoOptions)==null?void 0:ye.creds.ClientId}.${D}.idToken`);if(!Q)return void console.error("User cookie not found");const pe=`${G.updatePostEndpoint}/UrbanZooSso/updateClient`;try{const de=await fetch(pe,{method:"POST",redirect:"follow",body:Q});if(!de.ok)throw new Error(`Error pushing updated user to SeatGeek: ${de.statusText}`);return await de.json()}catch(de){console.error("Error pushing updated user to SeatGeek:",de)}})(),P.value=!0,B.value="User has been updated successfully.",await f.refreshSession();const{userData:J}=await useGAEventData();useAnalyticsEvent("profile_update",{user:J}),A("user-updated",5e3),S({key:"update-user-success",message:"User updated successfully.",type:"success"})}catch(J){console.log("Catch in update user",J),P.value=!1,B.value="Failed to update user.",S({key:"update-user-error",message:"Error updating user, please try again later.",type:"error"})}else S({key:"mandatory-fields",message:"Please fill in all required fields.",type:"error"})},te=async()=>{try{const J={marketingPrefs:z.value||[],favourite:T.value.favourite||""};if(!(await f.updateUserMetaData(J)).ok)throw S({key:"update-preferences-error",message:"Error updating user, please try again later.",type:"error"}),new Error("Error updating preferences")}catch(J){throw S({key:"update-preferences-error",message:"Error updating user, please try again later.",type:"error"}),console.error("Error updating user preferences:",J),J}},K=computed(()=>C?ssoOptionsEfl.map(J=>{var G;return{...J,...((G=T.value.marketingPrefs)==null?void 0:G.find(Q=>J.content===Q.content))||{}}}):T.value.marketingPrefs);return(J,G)=>{var de;const Q=_sfc_main$V,pe=_sfc_main$a,ye=_sfc_main$T;return unref(T)?(openBlock(),createElementBlock("div",_hoisted_1$5,[createVNode(Q,{tag:"h3"},{default:withCtx(()=>[...G[4]||(G[4]=[createTextVNode(" Manage Account ",-1)])]),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(V),(_e,Re)=>(openBlock(),createElementBlock(Fragment,{key:Re},[_e.subheader?(openBlock(),createBlock(Q,{key:0,tag:"h3",class:"pb-2 mt-6"},{default:withCtx(()=>[createTextVNode(toDisplayString(_e.subheader),1)]),_:2},1024)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(_e.fields,ge=>(openBlock(),createElementBlock("label",{key:ge.id,for:ge.id},[createBaseVNode("span",_hoisted_3$3,toDisplayString(`${ge.name}${ge.required?"*":""}`),1),ge.type==="country"?withDirectives((openBlock(),createElementBlock("select",{key:0,id:"country","onUpdate:modelValue":Ce=>unref(T)[ge.id]=Ce,class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px] shadow-inset",name:"country"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d).public.countries,Ce=>(openBlock(),createElementBlock("option",{key:Ce,value:Ce},toDisplayString(Ce),9,_hoisted_5$2))),128))],8,_hoisted_4$3)),[[vModelSelect,unref(T)[ge.id]]]):createCommentVNode("",!0),ge.type==="phone"?(openBlock(),createElementBlock("div",_hoisted_6$2,[withDirectives(createBaseVNode("select",{id:"code","onUpdate:modelValue":G[0]||(G[0]=Ce=>unref(T).code=Ce),class:"px-3 py-2 bg-gray-100 text-slate-600 w-[125px] h-[40p
186x]",name:"code"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(d).public.codes).filter(Ce=>!unref(d).public.codes[Ce].includes("and")&&unref(d).public.codes[Ce].length>0),Ce=>(openBlock(),createElementBlock("option",{key:Ce,value:`+${unref(d).public.codes[Ce].replace("+","")}`},toDisplayString(Ce)+" +"+toDisplayString(unref(d).public.codes[Ce].replace("+","")),9,_hoisted_7$2))),128))],512),[[vModelSelect,unref(T).code]]),createBaseVNode("label",_hoisted_8$1,[withDirectives(createBaseVNode("input",{id:"phone","onUpdate:modelValue":G[1]||(G[1]=Ce=>unref(T).phone=Ce),class:"w-full px-3 py-2 bg-gray-100 text-slate-600",type:"text",name:"phone",placeholder:"Mobile number"},null,512),[[vModelText,unref(T).phone]])])])):createCommentVNode("",!0),ge.type==="text"||ge.type==="date"?withDirectives((openBlock(),createElementBlock("input",{key:2,id:ge.id,"onUpdate:modelValue":Ce=>unref(T)[ge.id]=Ce,class:normalizeClass(["w-full px-3 py-2 bg-gray-100 shadow-inset text-slate-600",{"flex-grow":ge.type==="date","cursor-not-allowed !text-gray-500":ge.disabled}]),type:ge.type,name:ge.id,disabled:ge.disabled},null,10,_hoisted_9$1)),[[vModelDynamic,unref(T)[ge.id]]]):createCommentVNode("",!0),ge.type==="favouriteDropdown"&&Array.isArray(unref(F))?withDirectives((openBlock(),createElementBlock("select",{key:3,id:"favouriteDropdown","onUpdate:modelValue":Ce=>unref(T)[ge.id]=Ce,class:"text-black px-3 py-2 bg-gray-100 text-slate-600 w-full h-[40px] shadow-inset",name:"favouriteDropdown"},[G[5]||(G[5]=createBaseVNode("option",{value:"",disabled:""},null,-1)),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(F),Ce=>(openBlock(),createElementBlock("option",{key:Ce.id,value:Ce.id},toDisplayString(Ce.name),9,_hoisted_11))),128)),G[6]||(G[6]=createBaseVNode("option",{value:"preferNotToSay"},"Prefer not to say",-1))],8,_hoisted_10$1)),[[vModelSelect,unref(T)[ge.id]]]):createCommentVNode("",!0),ge.disabled?(openBlock(),createElementBlock("span",_hoisted_12," Please contact us to update your "+toDisplayString(ge.name)+". ",1)):createCommentVNode("",!0)],8,_hoisted_2$3))),128))],64))),128)),createVNode(Q,{tag:"h3",class:"pb-2 mt-6"},{default:withCtx(()=>[...G[7]||(G[7]=[createTextVNode(" Preferences ",-1)])]),_:1}),unref(K)!==void 0&&((de=unref(T))==null?void 0:de.marketingPrefs)!==void 0?(openBlock(),createBlock(pe,{key:0,preferences:unref(K),onUpdatePreferences:G[2]||(G[2]=_e=>unref(T).marketingPrefs=_e),onUpdateFormattedPreferences:G[3]||(G[3]=_e=>z.value=_e)},null,8,["preferences"])):createCommentVNode("",!0),createVNode(ye,{content:"Update Account",class:"inline mt-4 font-bold",type:"primary",onClick:ee}),unref(P)?(openBlock(),createElementBlock("p",_hoisted_13,toDisplayString(unref(B)),1)):createCommentVNode("",!0)])):createCommentVNode("",!0)}}}),_hoisted_1$4={class:"flex flex-col h-full"},_hoisted_2$2={class:"p-6 bg-primary-500"},_hoisted_3$2={class:"flex items-center w-full text-white"},_hoisted_4$2=["src"],_hoisted_5$1={class:"flex flex-col items-start flex-grow w-full px-6 py-8"},_hoisted_6$1={key:1,class:"flex flex-col items-start gap-2"},_hoisted_7$1={key:0},_hoisted_8={key:1},_hoisted_9={key:2,class:"inline text-sm font-bold"},_hoisted_10={key:2,class:"flex flex-col items-start w-full"},_sfc_main$5=defineComponent({__name:"User",props:{referrer:{},showAccount:{type:Boolean},inline:{type:Boolean},showPreferences:{type:Boolean}},emits:["show-account","user-updated","show-preferences"],async setup(e,{emit:t}){var X,J,G,Q,pe,ye,de,_e,Re,ge;let r,o;const c=useRuntimeConfig(),{$auth:d}=useNuxtApp(),f=useUserStore(),b=useRoute$1(),m=useRouter(),S=ref(!1),w=(X=c.public.club.features)==null?void 0:X.eflCollective,T=useToastStore(),{addToast:A}=T,C=(G=(J=c.public.video)==null?void 0:J.streamAMG)==null?void 0:G.fusionAPIKey,P=ref(),B=ref();((Q=c.public.club.ssoOptions)==null?void 0:Q.showLogo)!==void 0?P.value=(pe=c.public.club.ssoOptions)==null?void 0:pe.showLogo:P.value=!0,((ye=c.public.club.ssoOptions)==null?void 0:ye.showName)!==void 0?B.value=(de=c.public.club.ssoOptions)==null?void 0:de.showName:B.value=!0;const U=ref();U.value=([r,o]=withAsyncContext(()=>
186d.getSession()),r=await r,o(),r);const D=useStore(),$=t,z=f.getUserDetails,V=ref(!1),F=computed(()=>c.public.club.ssoOptions.noSubscriptionsText||"No subscriptions associated with this account, please note one-off purchases such as match passes, PPV or season passes will not show here."),ee=async()=>{c.public.club.features.streamline?te():await K()},te=async()=>{var ne,Se,he,we,xe,ze,Ee,se,L,j,Z,le,Te,Ae,Le;if((he=(Se=(ne=c.public.club)==null?void 0:ne.ssoOptions)==null?void 0:Se.links)!=null&&he.viewSubscriptions)return void(window.location.href=(ze=(xe=(we=c.public.club)==null?void 0:we.ssoOptions)==null?void 0:xe.links)==null?void 0:ze.viewSubscriptions);if(((se=(Ee=c.public.club)==null?void 0:Ee.features)==null?void 0:se.paymentProvider)==="cleeng")return;const Ce=await d.getSession(),Me=(j=(L=Ce==null?void 0:Ce.idToken)==null?void 0:L.payload)==null?void 0:j.sub,Ue=(Z=Ce==null?void 0:Ce.accessToken)==null?void 0:Z.jwtToken,Ne=await fetch(`https://streamline.web.gc.${c.public.servicesURL}/v2/users/entitlements/${Me}`,{headers:{Authorization:Ue}}),We=await Ne.json(),et=(Te=(le=We.data)==null?void 0:le.attributes)==null?void 0:Te.stripeCustomerID;if(!et)return void(V.value=!0);let rt=await fetch(`https://stripe.gc.${c.public.servicesURL}/v1/create-portal-redirect`,{method:"POST",body:JSON.stringify({customerID:et,returnURL:window.location.href})}).catch(Ke=>{console.log(Ke)});rt===void 0&&(rt=await fetch(`https://stripe.web.gc.${c.public.servicesURL}/v2/portal/${et}?returnURL=${window.location.href.replace("undefined","")}`).catch(Ke=>{}));const re=await rt.json();window.location.href=re.url||((Le=(Ae=re.data)==null?void 0:Ae.attributes)==null?void 0:Le.url)},K=async()=>{var Me,Ue,Ne,We,et;const Ce=(Ue=(Me=U==null?void 0:U.value)==null?void 0:Me.idToken)==null?void 0:Ue.jwtToken;if(w)try{const rt=await fetch("https://fusion.streamamg.com/v1/billing/customer-portal",{method:"POST",headers:{Authorization:`Bearer ${Ce}`,"x-api-key":C}}),re=await rt.json();window.location.href=re.url}catch(rt){A({message:"Error redirecting to customer portal",type:"error",key:"redirect-to-portal"}),console.error("Error fetching StreamAMG packages",rt)}else try{const rt=`${c.public.video.streamAMG.cloudPayDomain}/sso/start?token=${Ce}&redirect=https://${(Ne=useRequestURL())==null?void 0:Ne.hostname}`;if((await fetch(rt)).status===200){console.log("Stream AMG session started");const re=c.public.video.streamAMG.cloudPayDomain,ne=(et=(We=U==null?void 0:U.value)==null?void 0:We.idToken)==null?void 0:et.jwtToken;window.location.href=`${re}/account?apijwttoken=${ne}`}}catch(rt){A({message:"Error redirecting to customer portal",type:"error",key:"redirect-to-portal"}),console.error("Error fetching StreamAMG packages",rt)}},H=async()=>{const{userData:Ce}=await useGAEventData();useAnalyticsEvent("logout",{user:Ce}),await d.signout(),f.setUser(void 0),sessionStorage.removeItem("newUser")};return((_e=b.query)==null?void 0:_e.method)==="logout"&&(H(),(Re=b.query)!=null&&Re.returnUrl?window.location.href=(ge=b.query)==null?void 0:ge.returnUrl:m.replace({query:[]})),(Ce,Me)=>{var rt,re,ne,Se,he,we,xe,ze,Ee,se,L,j,Z,le,Te;const Ue=_sfc_main$V,Ne=_sfc_main$12,We=_sfc_main$T,et=_sfc_main$6;return openBlock(),createElementBlock("div",_hoisted_1$4,[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("div",_hoisted_3$2,[unref(P)?(openBlock(),createElementBlock("img",{key:0,src:("useGCImage"in Ce?Ce.useGCImage:unref(useGCImage))(!0,170,170,((Se=(ne=(re=(rt=unref(c))==null?void 0:rt.public)==null?void 0:re.club)==null?void 0:ne.ssoOptions)==null?void 0:Se.ssoCrest)||((xe=(we=(he=unref(c))==null?void 0:he.public)==null?void 0:we.club)==null?void 0:xe.logo)||""),class:"w-[75px] h-[56px] object-contain mx-2 sso-logo"},null,8,_hoisted_4$2)):createCommentVNode("",!0),createVNode(Ue,{tag:"h2",class:"mx-2 font-bold text-heading-xl"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(B)?unref(c).public.club.name:""),1)]),_:1}),e.inline?createCommentVNode("",!0):(openBlock(),createBlock(Ne,{key:1,pack:"navigation",size:16,icon:"close",class:"ml-auto duration-150 cursor-pointer text-primary-200 hover:text-white ease",onClick:Me[0]||(Me[0]=()=>unref(D).showSSO=!1)}))])]),createBaseVNode("div",_hoisted_5$1,[e.referrer?(openBlock(),createBlock(We,{key:0,class:"w-max",type:"ghost-light",icon:"external-link",pack:"fan",content:"Back",to:e.referrer},null,8,["to"])):createCommentVNode("",!0),Me[5]||(Me[5]=createBaseVNode("span",{class:"text-gray-600"},"Welcome Back",-1)),createVNode(Ue,{tag:"h2",class:"mb-8 font-bold text-heading-3xl"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(z).firstname),1)]),_:1}),e.showAccount||unref(S)||e.showPreferences?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_6$1,[((ze=unref(c).public.club.ssoOptions)==null?void 0:ze.version)!==1?(openBlock(),createElementBlock("div",_hoisted_7$1,[unref(w)?(openBlock(),createBlock(We,{key:0,content:"Manage Account",class:"inline font-bold min-w-[200px]",tabindex:"0",link:"/sso/account"})):(openBlock(),createBlock(We,{key:1,content:"Manage Account",class:"inline font-bold min-w-[200px]",tabindex:"0",onClick:Me[1]||(Me[1]=Ae=>$("show-account",!0)),onKeydown:Me[2]||(Me[2]=withKeys(Ae=>$("show-account",!0),["enter"]))}))])):(openBlock(),createElementBlock("div",_hoisted_8,[createVNode(We,{content:"Manage Account",class:"inline font-bold min-w-[200px]",tabindex:"0",link:(L=(se=(Ee=unref(c).public.club)==null?void 0:Ee.ssoOptions)==null?void 0:se.links)==null?void 0:L.manageAccount},null,8,["link"])])),createBaseVNode("div",null,[((Z=(j=unref(c).public.club)==null?void 0:j.features)==null?void 0:Z.paymentProvider)==="cleeng"?(openBlock(),createBlock(We,{key:0,content:"Manage Billing",class:"inline font-bold min-w-[200px]",tabindex:"0",link:"/sso/manage-billing?cleengSection=paymentInfo"})):unref(V)||((Te=(le=unref(c).public.club)==null?void 0:le.features)==null?void 0:Te.paymentProvider)==="cleeng"?(openBlock(),createElementBlock("p",_hoisted_9,toDisplayString(unref(F)),1)):(openBlock(),createBlock(We,{key:1,content:"View Subscriptions",class:"inline font-bold min-w-[200px]",tabindex:"0",onClick:ee,onKeydown:withKeys(ee,["enter"])}))])])),e.showAccount?(openBlock(),createElementBlock("div",_hoisted_10,[e.showAccount?(openBlock(),createBlock(et,{key:0,onUserUpdated:Me[3]||(Me[3]=Ae=>$("user-updated",Ae))})):createCommentVNode("",!0),createVNode(We,{content:"Back",type:"ghost-light",class:"inline w-full mt-2 font-bold user__back-button",onClick:Me[4]||(Me[4]=Ae=>$("show-account",!1))})])):createCommentVNode("",!0)]),createBaseVNode("div",{class:normalizeClass(["py-6 text-center text-gray-600 transition duration-150 bg-gray-200 cursor-pointer hover:text-white hover:bg-primary-500",{"sm:mx-6":e.inline}]),tabindex:"0",role:"tab",onClick:H,onKeydown:withKeys(H,["enter"])}," Logout ",34)])}}}),_hoisted_1$3=["src","alt"],_sfc_main$4=defineComponent({__name:"index",props:{size:{default:"small"},to:{}},setup(e){var c;const t=e,r=useRuntimeConfig(),o=ref((c=r.public)==null?void 0:c.club.name);return(d,f)=>{const b=__nuxt_component_1$1;return openBlock(),createBlock(b,{to:e.to?e.to:void 0},{default:withCtx(()=>{var m,S,w,T,A;return[createBaseVNode("img",{src:("useGCImage"in d?d.useGCImage:unref(useGCImage))(!0,170,170,((S=(m=unref(r).public.club)==null?void 0:m.ssoOptions)==null?void 0:S.ssoCrest)||((A=(T=(w=unref(r))==null?void 0:w.public)==null?void 0:T.club)==null?void 0:A.logo)||""),alt:`${unref(o)} Logo`,class:normalizeClass(["object-contain",{"max-h-[48px] max-w-[48px]":t.size==="medium","max-h-[32px] max-w-[32px] mx-8":t.size==="small","h-auto max-w-[85px] max-h-[85px]":t.size==="large"}])},null,10,_hoisted_1$3)]}),_:1},8,["to"])}}}),_hoisted_1$2={key:0,class:"flex-shrink-0 p-6 bg-primary-700"},_hoisted_2$1={key:0,class:"text-white text-md"},_hoisted_3$1={key:1,class:"flex flex-col h-full"},_hoisted_4$1={class:"flex items-center justify-end w-full px-6 py-2 text-primary-500"},_hoisted_5={class:"flex flex-col items-center justify-center flex-grow p-6"},_hoisted_6={class:"px-2 py-2 text-xs text-gray-800 bg-gray-200 border border-gray-500 rounded"},_hoisted_7={class:"flex flex-col items-center justify-center flex-shrink px-6 pb-4 md:pb-6 md:pt-4 md:px-6"},_sfc_main$3=defineComponent({__name:"index",props:{widget:{}},async setup(__props){var e,t,r,o,c;let __temp,__restore;const config=useRuntimeConfig(),userStore=useUserStore(),toastStore=useToastStore(
186),store=useStore(),{$auth}=useNuxtApp(),{addToast}=toastStore,props=__props,forgotPassword=ref(((e=props.widget)==null?void 0:e.forgotPassword)||!1),showRegister=ref(((t=props.widget)==null?void 0:t.showRegister)||!1),showAccount=ref(((r=props.widget)==null?void 0:r.showAccount)||!1),showPreferences=ref(((o=props.widget)==null?void 0:o.showPreferences)||!1),inline=ref(((c=props.widget)==null?void 0:c.inline)||!1),user=ref(),isAuthed=ref(([__temp,__restore]=withAsyncContext(()=>$auth==null?void 0:$auth.isAuthed()),__temp=await __temp,__restore(),__temp||!1)),userStoreNavigate=async(d=0)=>{var f;(f=props.widget)!=null&&f.inline&&(d!==0&&addToast({type:"info",message:"Please wait while we redirect you to your account.",key:"sso-redirect"}),setTimeout(async()=>{userStore.setPreventNavigation(!1),await $auth.refreshSession(),setTimeout(()=>{var b;userStore.navigateToReturnUrl(((b=props.widget)==null?void 0:b.returnUrl)||"/")},3e3)},d))};onBeforeUnmount(()=>{userStore.setPreventNavigation(!1)}),userStore.$subscribe(async()=>{isAuthed.value=await($auth==null?void 0:$auth.isAuthed())});const userId=computed(()=>{var d,f,b,m;return user.value?`${eval(`user?.value?.${((f=(d=config.public.club)==null?void 0:d.ssoOptions)==null?void 0:f.idProperty)||"sub"}`)||((m=(b=user==null?void 0:user.value)==null?void 0:b.profile)==null?void 0:m.sub)}`:void 0}),fullName=computed(()=>{var d,f,b,m,S,w;return user.value?`${((d=user==null?void 0:user.value)==null?void 0:d.forename)||((b=(f=user==null?void 0:user.value)==null?void 0:f.profile)==null?void 0:b.given_name)} ${((m=user==null?void 0:user.value)==null?void 0:m.surname)||((w=(S=user==null?void 0:user.value)==null?void 0:S.profile)==null?void 0:w.family_name)}`:""}),goToAccount=()=>{var d,f;window.location.href=(f=(d=config.public.club)==null?void 0:d.ssoOptions)==null?void 0:f.profileUrl},stripeCustomerID=ref(),stripeUrl=ref();onMounted(async()=>{var d,f,b,m,S,w;if(user.value=await $auth.getUser(),config.public.club.features.streamline&&((f=(d=config.public.club)==null?void 0:d.features)==null?void 0:f.paymentProvider)!=="cleeng"){const T=await fetch(`https://streamline.web.gc.${config.public.servicesURL}/v2/users/entitlements/${userId.value}`,{headers:{Authorization:"Bearer "+getCookieValue("_gc_sa_sso_access")}}),A=await T.json();stripeCustomerID.value=(m=(b=A.data)==null?void 0:b.attributes)==null?void 0:m.stripeCustomerID;let C=await fetch(`https://stripe.gc.${config.public.servicesURL}/v1/create-portal-redirect`,{method:"POST",body:JSON.stringify({customerID:stripeCustomerID.value,returnURL:window.location.href})}).catch(B=>{console.log(B)});C===void 0&&(C=await fetch(`https://stripe.web.gc.${config.public.servicesURL}/v2/portal/${stripeCustomerID.value}?returnURL=${window.location.href}`).catch(B=>{}));const P=await(C==null?void 0:C.json());stripeUrl.value=((w=(S=P==null?void 0:P.data)==null?void 0:S.attributes)==null?void 0:w.url)||(P==null?void 0:P.url)}}),watch(store.sso.message,()=>{store.sso.message!=null&&setTimeout(()=>{store.sso.message=void 0},3e3)});const signOut=async()=>{try{const d=useRequestURL();if(useGAEventData!==void 0){const{userData:f}=await useGAEventData();useAnalyticsEvent("logout",{user:f})}await $auth.signout(d),userStore.setUser(void 0),sessionStorage.removeItem("newUser")}catch(d){console.error("Error signing out:",d),addToast({key:"sign-out-error",message:"Error signing out. Please try again.",type:"error"})}userStoreNavigate()},manageSubscriptions=async()=>{window.location.href=stripeUrl.value};return(d,f)=>{var U,D,$,z,V,F,ee,te;const b=_sfc_main$V,m=_sfc_main$i,S=_sfc_main$h,w=_sfc_main$g,T=_sfc_main$7,A=_sfc_main$5,C=_sfc_main$12,P=_sfc_main$4,B=_sfc_main$T;return openBlock(),createElementBlock("div",{class:normalizeClass(["bottom-0 w-full h-full sm:w-[400px] sm:max-w-[90%] sm:h-screen bg-white absolute sm:right-0 md:top-0 flex flex-col overflow-y-auto",{"!relative mx-auto sm:w-[800px] !h-auto":unref(inline)}])},[((D=(U=unref(config).public.club)==null?void 0:U.ssoOptions)==null?void 0:D.provider)!=="Kore"&&((z=($=unref(config).public.club)==null?void 0:$.ssoOptions)==null?void 0:z.provider)!=="OIDC"?(openBlock(),createElementBlock(Fragment,{key:0},[unref(store).sso.message!=null?(openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(b,{tag:"h2",class:"text-white text-heading-lg font-heading"},{default:withCtx(()=>{var K;return[createTextVNode(toDisplayString((K=unref(store).sso.message)==null?void 0:K.heading),
1861)]}),_:1}),((V=unref(store).sso.message)==null?void 0:V.message)!=null?(openBlock(),createElementBlock("p",_hoisted_2$1,toDisplayString((F=unref(store).sso.message)==null?void 0:F.message),1)):createCommentVNode("",!0)])):createCommentVNode("",!0),unref(store).sso.verify?(openBlock(),createBlock(m,{key:1,onUserLoggedIn:userStoreNavigate,onUserRegistered:f[0]||(f[0]=K=>showRegister.value=!1)})):unref(store).sso.reset?(openBlock(),createBlock(S,{key:2})):unref(store).sso.setNewPassword?(openBlock(),createBlock(w,{key:3})):unref(isAuthed)?(openBlock(),createBlock(A,{key:5,referrer:(ee=__props.widget)!=null&&ee.inline?(te=__props.widget)==null?void 0:te.returnUrl:void 0,"show-account":unref(showAccount),"show-preferences":unref(showPreferences),inline:unref(inline),onShowAccount:f[4]||(f[4]=K=>showAccount.value=K),onShowPreferences:f[5]||(f[5]=K=>showPreferences.value=K),onUserUpdated:userStoreNavigate},null,8,["referrer","show-account","show-preferences","inline"])):(openBlock(),createBlock(T,{key:4,"show-register":unref(showRegister),"forgot-password":unref(forgotPassword),inline:unref(inline),onShowRegister:f[1]||(f[1]=K=>showRegister.value=K),onForgotPassword:f[2]||(f[2]=K=>forgotPassword.value=K),onUserLoggedIn:userStoreNavigate,onShowAccount:f[3]||(f[3]=K=>showAccount.value=K)},null,8,["show-register","forgot-password","inline"]))],64)):(openBlock(),createElementBlock("div",_hoisted_3$1,[createBaseVNode("div",_hoisted_4$1,[createVNode(C,{pack:"navigation",size:16,icon:"close",class:"p-4 duration-150 rounded-full cursor-pointer text-primary-200 hover:text-white hover:bg-primary-500 ease",onClick:f[6]||(f[6]=()=>unref(store).showSSO=!1)})]),createBaseVNode("div",_hoisted_5,[createVNode(b,{class:"mb-12 text-center",tag:"h4"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(config).public.club.name)+" Profile ",1)]),_:1}),createVNode(P,{size:"small",to:"/",class:"mb-4 md:mb-12 md:hidden"}),createVNode(P,{size:"large",to:"/",class:"hidden mb-4 md:mb-12 md:block"}),createVNode(b,{class:"mb-4 text-center",tag:"h6"},{default:withCtx(()=>[...f[7]||(f[7]=[createTextVNode(" Welcome back ",-1)])]),_:1}),createVNode(b,{class:"mb-4 text-center text-primary-500",tag:"h5"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(fullName)),1)]),_:1}),createBaseVNode("span",_hoisted_6,toDisplayString(unref(userId)),1),createVNode(B,{content:"Manage Account",class:"w-full mt-4 font-bold",onClick:goToAccount}),unref(stripeUrl)!=null?(openBlock(),createBlock(B,{key:0,content:"Manage Subscriptions",class:"w-full mt-4 font-bold",onClick:manageSubscriptions})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_7,[createVNode(B,{content:"Log Out",class:"w-full mt-4 font-bold",onClick:signOut})])]))],2)}}});function addUniqueItem(e,t){e.indexOf(t)===-1&&e.push(t)}function removeItem(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const clamp=(e,t,r)=>r>t?t:r<e?e:r;let invariant=()=>{};const MotionGlobalConfig={},isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),isObject=e=>typeof e=="object"&&e!==null,isZeroValueString=e=>/^0[^.\s]+$/u.test(e);function memo(e){let t;return()=>(t===void 0&&(t=e()),t)}const noop=e=>e,pipe=(...e)=>e.reduce((t,r)=>o=>r(t(o))),progress=(e,t,r)=>{const o=t-e;return o?(r-e)/o:1};class SubscriptionManager{constructor(){this.subscriptions=[]}add(t){return addUniqueItem(this.subscriptions,t),()=>removeItem(this.subscriptions,t)}notify(t,r,o){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](t,r,o);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(t,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3,velocityPerSecond=(e,t)=>t?e*(1e3/t):0,wrap=(e,t,r)=>{const o=t-e;return((r-e)%o+o)%o+e},calcBezier=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(e,t,r,o,c){let d,f,b=0;do f=t+(r-t)/2,d=calcBezier(f,o,c)-e,d>0?r=f:t=f;while(Math.abs(d)>subdivisionPrecision&&++b<subdivisionMaxIterations);return f}
186function cubicBezier(e,t,r,o){return e===t&&r===o?noop:c=>c===0||c===1?c:calcBezier(binarySubdivide(c,0,1,e,r),t,o)}const mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=e=>e>=1?1:(e*=2)<1?.5*backIn(e):.5*(2-Math.pow(2,-10*(e-1))),circIn=e=>1-Math.sin(Math.acos(e)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&typeof e[0]!="number";function getEasingForSegment(e,t){return isEasingArray(e)?e[wrap(0,e.length,t)]:e}const isBezierDefinition=e=>Array.isArray(e)&&typeof e[0]=="number",easingLookup={linear:noop,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},isValidEasing=e=>typeof e=="string",easingDefinitionToFunction=e=>{if(isBezierDefinition(e)){invariant(e.length===4);const[t,r,o,c]=e;return cubicBezier(t,r,o,c)}return isValidEasing(e)?easingLookup[e]:e},stepsOrder=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function createRenderStep(e,t){let r=new Set,o=new Set,c=!1,d=!1;const f=new WeakSet;let b={delta:0,timestamp:0,isProcessing:!1};function m(w){f.has(w)&&(S.schedule(w),e()),w(b)}const S={schedule:(w,T=!1,A=!1)=>{const C=A&&c?r:o;return T&&f.add(w),C.add(w),w},cancel:w=>{o.delete(w),f.delete(w)},process:w=>{if(b=w,c)return void(d=!0);c=!0;const T=r;r=o,o=T,r.forEach(m),r.clear(),c=!1,d&&(d=!1,S.process(w))}};return S}const maxElapsed=40;function createRenderBatcher(e,t){let r=!1,o=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>r=!0,f=stepsOrder.reduce((U,D)=>(U[D]=createRenderStep(d),U),{}),{setup:b,read:m,resolveKeyframes:S,preUpdate:w,update:T,preRender:A,render:C,postRender:P}=f,B=()=>{const U=MotionGlobalConfig.useManualTiming,D=U?c.timestamp:performance.now();r=!1,U||(c.delta=o?1e3/60:Math.max(Math.min(D-c.timestamp,maxElapsed),1)),c.timestamp=D,c.isProcessing=!0,b.process(c),m.process(c),S.process(c),w.process(c),T.process(c),A.process(c),C.process(c),P.process(c),c.isProcessing=!1,r&&t&&(o=!1,e(B))};return{schedule:stepsOrder.reduce((U,D)=>{const $=f[D];return U[D]=(z,V=!1,F=!1)=>(r||(r=!0,o=!0,c.isProcessing||e(B)),$.schedule(z,V,F)),U},{}),cancel:U=>{for(let D=0;D<stepsOrder.length;D++)f[stepsOrder[D]].cancel(U)},state:c,steps:f}}const{schedule:frame,cancel:cancelFrame,state:frameData}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop,!0);let now;function clearTime(){now=void 0}const time={now:()=>(now===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now),set:e=>{now=e,queueMicrotask(clearTime)}},checkStringStartsWith=e=>t=>typeof t=="string"&&t.startsWith(e),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=e=>!!startsAsVariableToken(e)&&singleCssVariableRegex.test(e.split("/*")[0].trim()),singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(e){return typeof e=="string"&&e.split("/*")[0].includes("var(--")}const number={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},alpha={...number,transform:e=>clamp(0,1,e)},scale={...number,default:1},sanitize=e=>Math.round(1e5*e)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(e){return e==null}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>r=>!!(typeof r=="string"&&singleColorRegex.test(r)&&r.startsWith(e)||t&&!isNullish(r)&&Object.prototype.hasOwnProperty.call(r,t)),splitColor=(e,t,r)=>o=>{if(typeof o!="string")return o;const[c,d,f,b]=o.match(floatRegex);return{[e]:parseFloat(c),[t]:parseFloat(d),[r]:parseFloat(f),alpha:b!==void 0?parseFloat(b):1}},clampRgbUnit=e=>clamp(0,255,e),rgbUnit={...number,transform:e=>Math.round(clampRgbUnit(e))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+rgbUnit.transform(e)+", "+rgbUnit.transform(t)+", "+rgbUnit.transform(r)+", "+sanitize(alpha.transform(o))+")"};function parseHex(e){let t="",r="",o="",c="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),c=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),c=e.substring(4,5),t+=t,r+=r,o+=o,c+=c),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alph
186a:c?parseInt(c,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},createUnitType=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:e=>percent.parse(e)/100,transform:e=>percent.transform(100*e)},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+percent.transform(sanitize(t))+", "+percent.transform(sanitize(r))+", "+sanitize(alpha.transform(o))+")"},color={test:e=>rgba.test(e)||hex.test(e)||hsla.test(e),parse:e=>rgba.test(e)?rgba.parse(e):hsla.test(e)?hsla.parse(e):hex.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?rgba.transform(e):hsla.transform(e),getAnimatableNone:e=>{const t=color.parse(e);return t.alpha=0,color.transform(t)}},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(floatRegex))==null?void 0:t.length)||0)+(((r=e.match(colorRegex))==null?void 0:r.length)||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}",complexRegex=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){const t=e.toString(),r=[],o={color:[],number:[],var:[]},c=[];let d=0;const f=t.replace(complexRegex,b=>(color.test(b)?(o.color.push(d),c.push(COLOR_TOKEN),r.push(color.parse(b))):b.startsWith(VAR_FUNCTION_TOKEN)?(o.var.push(d),c.push(VAR_TOKEN),r.push(b)):(o.number.push(d),c.push(NUMBER_TOKEN),r.push(parseFloat(b))),++d,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:r,split:f,indexes:o,types:c}}function parseComplexValue(e){return analyseComplexValue(e).values}function buildTransformer({split:e,types:t}){const r=e.length;return o=>{let c="";for(let d=0;d<r;d++)if(c+=e[d],o[d]!==void 0){const f=t[d];c+=f===NUMBER_TOKEN?sanitize(o[d]):f===COLOR_TOKEN?color.transform(o[d]):o[d]}return c}}function createTransformer(e){return buildTransformer(analyseComplexValue(e))}const convertNumbersToZero=e=>typeof e=="number"?0:color.test(e)?color.getAnimatableNone(e):e,convertToZero=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:convertNumbersToZero(e);function getAnimatableNone$1(e){const t=analyseComplexValue(e);return buildTransformer(t)(t.values.map((r,o)=>convertToZero(r,t.split[o])))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1};function hueToRgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslaToRgba({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,r/=100;let c=0,d=0,f=0;if(t/=100){const b=r<.5?r*(1+t):r+t-r*t,m=2*r-b;c=hueToRgb(m,b,e+1/3),d=hueToRgb(m,b,e),f=hueToRgb(m,b,e-1/3)}else c=d=f=r;return{red:Math.round(255*c),green:Math.round(255*d),blue:Math.round(255*f),alpha:o}}function mixImmediate(e,t){return r=>r>0?t:e}const mixNumber$1=(e,t,r)=>e+(t-e)*r,mixLinearColor=(e,t,r)=>{const o=e*e,c=r*(t*t-o)+o;return c<0?0:Math.sqrt(c)},colorTypes=[hex,rgba,hsla],getColorType=e=>colorTypes.find(t=>t.test(e));function asRGBA(e){const t=getColorType(e);if(!t)return!1;let r=t.parse(e);return t===hsla&&(r=hslaToRgba(r)),r}const mixColor=(e,t)=>{const r=asRGBA(e),o=asRGBA(t);if(!r||!o)return mixImmediate(e,t);const c={...r};return d=>(c.red=mixLinearColor(r.red,o.red,d),c.green=mixLinearColor(r.green,o.green,d),c.blue=mixLinearColor(r.blue,o.blue,d),c.alpha=mixNumber$1(r.alpha,o.alpha,d),rgba.transform(c))},invisibleValues=new Set(["none","hidden"]);function mixVisibility(e,t){return invisibleValues.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function mixNumber(e,t){return r=>mixNumber$1(e,t,r)}function getMixer(e){return typeof e=="number"?mixNumber:typeof e=="string"?isCSSVariableToken(e)?mixImmediate:color.test(e)?mixColor:mixComplex:Array.isArray(e)?mixArray:typeof e=="object"?color.test(e)?mixColor:mixObject:mixImmediate}function mixArray(e,t){const r=[...e],o=r.length,c=e.map((d,f)=>getMixer(d)(d,t[f]));return d=>{for(let f=0;f<o;f++)r[f]=c[f](d);return r}}function mixObject(e,t){const r={...e,...t},o={};for(const c in r)e[c]!==void 0&&t[c]!==void 0&&(o[c]=getMixer(e[c])(e[c],t[c]));return c=>{for(const d in o)r[d]=o[d](c);return r}}function matchOrder(e,t){const r=[],o={color:0,var:0,number:0};for(let c=0;c<t.values.length;c++){const d=t.types[c],f=e.indexes[d][o[d]],b=e.values[f]??0;r[c]=b,o[d]++}return r}const mixComplex=(e,t)=>{const r=complex.createTransformer(t),o=analyseComplexValue(e),c=analyseComplexValue(t);return o.indexes.var.length===c.indexes.var.length&&o.indexes.color.length===c.indexes.color.length&&o.indexes.number.length>
186=c.indexes.number.length?invisibleValues.has(e)&&!c.values.length||invisibleValues.has(t)&&!o.values.length?mixVisibility(e,t):pipe(mixArray(matchOrder(o,c),c.values),r):mixImmediate(e,t)};function mix(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?mixNumber$1(e,t,r):getMixer(e)(e,t)}const frameloopDriver=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>frame.update(t,r),stop:()=>cancelFrame(t),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generateLinearEasing=(e,t,r=10)=>{let o="";const c=Math.max(Math.round(t/r),2);for(let d=0;d<c;d++)o+=Math.round(1e4*e(d/(c-1)))/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},maxGeneratorDuration=2e4;function calcGeneratorDuration(e){let t=0,r=e.next(t);for(;!r.done&&t<maxGeneratorDuration;)t+=50,r=e.next(t);return t>=maxGeneratorDuration?1/0:t}function createGeneratorEasing(e,t=100,r){const o=r({...e,keyframes:[0,t]}),c=Math.min(calcGeneratorDuration(o),maxGeneratorDuration);return{type:"keyframes",ease:d=>o.next(c*d).value/t,duration:millisecondsToSeconds(c)}}const springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}const rootIterations=12;function approximateRoot(e,t,r){let o=r;for(let c=1;c<rootIterations;c++)o-=e(o)/t(o);return o}const safeMin=.001;function findSpring({duration:e=springDefaults.duration,bounce:t=springDefaults.bounce,velocity:r=springDefaults.velocity,mass:o=springDefaults.mass}){let c,d,f=1-t;f=clamp(springDefaults.minDamping,springDefaults.maxDamping,f),e=clamp(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(e)),f<1?(c=m=>{const S=m*f,w=S*e,T=S-r,A=calcAngularFreq(m,f),C=Math.exp(-w);return safeMin-T/A*C},d=m=>{const S=m*f*e,w=S*r+r,T=Math.pow(f,2)*Math.pow(m,2)*e,A=Math.exp(-S),C=calcAngularFreq(Math.pow(m,2),f);return(-c(m)+safeMin>0?-1:1)*((w-T)*A)/C}):(c=m=>Math.exp(-m*e)*((m-r)*e+1)-safeMin,d=m=>Math.exp(-m*e)*(e*e*(r-m)));const b=approximateRoot(c,d,5/e);if(e=secondsToMilliseconds(e),isNaN(b))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:e};{const m=Math.pow(b,2)*o;return{stiffness:m,damping:2*f*Math.sqrt(o*m),duration:e}}}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(r=>e[r]!==void 0)}function getSpringOptions(e){let t={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...e};if(!isSpringType(e,physicsKeys)&&isSpringType(e,durationKeys))if(t.velocity=0,e.visualDuration){const r=e.visualDuration,o=2*Math.PI/(1.2*r),c=o*o,d=2*clamp(.05,1,1-(e.bounce||0))*Math.sqrt(c);t={...t,mass:springDefaults.mass,stiffness:c,damping:d}}else{const r=findSpring({...e,velocity:0});t={...t,...r,mass:springDefaults.mass},t.isResolvedFromDuration=!0}return t}function spring(e=springDefaults.visualDuration,t=springDefaults.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:c}=r;const d=r.keyframes[0],f=r.keyframes[r.keyframes.length-1],b={done:!1,value:d},{stiffness:m,damping:S,mass:w,duration:T,velocity:A,isResolvedFromDuration:C}=getSpringOptions({...r,velocity:-millisecondsToSeconds(r.velocity||0)}),P=A||0,B=S/(2*Math.sqrt(m*w)),U=f-d,D=millisecondsToSeconds(Math.sqrt(m/w)),$=Math.abs(U)<5;let z,V,F,ee,te,K;if(o||(o=$?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),c||(c=$?springDefaults.restDelta.granular:springDefaults.restDelta.default),B<1)F=calcAngularFreq(D,B),ee=(P+B*D*U)/F,z=X=>{const J=Math.exp(-B*D*X);return f-J*(ee*Math.sin(F*X)+U*Math.cos(F*X))},te=B*D*ee+U*F,K=B*D*U-ee*F,V=X=>Math.exp(-B*D*X)*(te*Math.sin(F*X)+K*Math.cos(F*X));else if(B===1){z=J=>f-Math.exp(-D*J)*(U+(P+D*U)*J);const X=P+D*U;V=J=>Math.exp(-D*J)*(D*X*J-P)}else{const X=D*Math.sqrt(B*B-1);z=pe=>{const ye=Math.exp(-B*D*pe),de=Math.min(X*pe,300);return f-ye*((P+B*D*U)*Math.sinh(de)+X*U*Math.cosh(de))/X};const J=(P+B*D*U)/X,G=B*D*J-U*X,Q=B*D*U-J*X;V=pe=>{const ye=Math.exp(-B*D*pe),de=Math.min(X*pe,300);return ye*(G*Math.sinh(de)+Q*Math.cosh(de))}}const H={calculatedDuration:C&&T||null,velocity:X=>secondsToMilliseconds(V(X)),next:X=>{if(!C&&B<1){const G=Math.exp(-B*D*X),Q=Math.sin(F*X),pe=Math.cos(F*X),ye=f-G*(ee*Q+U*pe),de=secondsToMilliseconds(G*(te*
186Q+K*pe));return b.done=Math.abs(de)<=o&&Math.abs(f-ye)<=c,b.value=b.done?f:ye,b}const J=z(X);if(C)b.done=X>=T;else{const G=secondsToMilliseconds(V(X));b.done=Math.abs(G)<=o&&Math.abs(f-J)<=c}return b.value=b.done?f:J,b},toString:()=>{const X=Math.min(calcGeneratorDuration(H),maxGeneratorDuration),J=generateLinearEasing(G=>H.next(X*G).value,X,30);return X+"ms "+J},toTransition:()=>{}};return H}spring.applyToOptions=e=>{const t=createGeneratorEasing(e,100,spring);return e.ease=t.ease,e.duration=secondsToMilliseconds(t.duration),e.type="keyframes",e};const velocitySampleDuration=5;function getGeneratorVelocity(e,t,r){const o=Math.max(t-velocitySampleDuration,0);return velocityPerSecond(r-e(o),t-o)}function inertia({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:b,max:m,restDelta:S=.5,restSpeed:w}){const T=e[0],A={done:!1,value:T},C=te=>b===void 0?m:m===void 0||Math.abs(b-te)<Math.abs(m-te)?b:m;let P=r*t;const B=T+P,U=f===void 0?B:f(B);U!==B&&(P=U-T);const D=te=>-P*Math.exp(-te/o),$=te=>U+D(te),z=te=>{const K=D(te),H=$(te);A.done=Math.abs(K)<=S,A.value=A.done?U:H};let V,F;const ee=te=>{(K=>b!==void 0&&K<b||m!==void 0&&K>m)(A.value)&&(V=te,F=spring({keyframes:[A.value,C(A.value)],velocity:getGeneratorVelocity($,te,A.value),damping:c,stiffness:d,restDelta:S,restSpeed:w}))};return ee(0),{calculatedDuration:null,next:te=>{let K=!1;return F||V!==void 0||(K=!0,z(te),ee(te)),V!==void 0&&te>=V?F.next(te-V):(!K&&z(te),A)}}}function createMixers(e,t,r){const o=[],c=r||MotionGlobalConfig.mix||mix,d=e.length-1;for(let f=0;f<d;f++){let b=c(e[f],e[f+1]);if(t){const m=Array.isArray(t)?t[f]||noop:t;b=pipe(m,b)}o.push(b)}return o}function interpolate(e,t,{clamp:r=!0,ease:o,mixer:c}={}){const d=e.length;if(invariant(d===t.length),d===1)return()=>t[0];if(d===2&&t[0]===t[1])return()=>t[1];const f=e[0]===e[1];e[0]>e[d-1]&&(e=[...e].reverse(),t=[...t].reverse());const b=createMixers(t,o,c),m=b.length,S=w=>{if(f&&w<e[0])return t[0];let T=0;if(m>1)for(;T<e.length-2&&!(w<e[T+1]);T++);const A=progress(e[T],e[T+1],w);return b[T](A)};return r?w=>S(clamp(e[0],e[d-1],w)):S}function fillOffset(e,t){const r=e[e.length-1];for(let o=1;o<=t;o++){const c=progress(0,t,o);e.push(mixNumber$1(r,1,c))}}function defaultOffset(e){const t=[0];return fillOffset(t,e.length-1),t}function convertOffsetToTimes(e,t){return e.map(r=>r*t)}function defaultEasing(e,t){return e.map(()=>t||easeInOut).splice(0,e.length-1)}function keyframes({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){const c=isEasingArray(o)?o.map(easingDefinitionToFunction):easingDefinitionToFunction(o),d={done:!1,value:t[0]},f=interpolate(convertOffsetToTimes(r&&r.length===t.length?r:defaultOffset(t),e),t,{ease:Array.isArray(c)?c:defaultEasing(t,c)});return{calculatedDuration:e,next:b=>(d.value=f(b),d.done=b>=e,d)}}const isNotNull=e=>e!==null;function getFinalKeyframe(e,{repeat:t,repeatType:r="loop"},o,c=1){const d=e.filter(isNotNull),f=c<0||t&&r!=="loop"&&t%2==1?0:d.length-1;return f&&o!==void 0?o:d[f]}const transitionTypeMap={decay:inertia,inertia,tween:keyframes,keyframes,spring};function replaceTransitionType(e){typeof e.type=="string"&&(e.type=transitionTypeMap[e.type])}class WithPromise{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const percentToProgress=e=>e/100;class JSAnimation extends WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var o,c;const{motionValue:r}=this.options;r&&r.updatedAt!==time.now()&&this.tick(time.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(o=this.options).onStop)==null||c.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;replaceTransitionType(t);const{type:r=keyframes,repeat:o=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=t;let{keyframes:b}=t;const m=r||keyframes;m!==keyframes&&typeof b[0]!="number"&&(this.mixKeyframes=pipe(percentToProgress,mix(b[0],b[1])),b=[0,100]);const S=m({...t,keyframes:b});d==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...b].reverse(),velocity:-f})),S.calculatedDuration===null&&(S.calculatedDuration=calcGeneratorDuration(S));const{calculatedDuration:w}=S;this.calculatedDuration=w,this.resolvedDuration=w+c,this.totalDuration=this.resolvedDuration*(o+1)-c,this.generator=S}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:o,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:b,calculatedDuration:m}=this;if(this.startTime===null)return o.next(0);const{delay:S=0,keyframes:w,repeat:T,repeatType:A,repeatDelay:C,t
186ype:P,onUpdate:B,finalKeyframe:U}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const D=this.currentTime-S*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?D<0:D>c;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let z,V=this.currentTime,F=o;if(T){const K=Math.min(this.currentTime,c)/b;let H=Math.floor(K),X=K%1;!X&&K>=1&&(X=1),X===1&&H--,H=Math.min(H,T+1),H%2&&(A==="reverse"?(X=1-X,C&&(X-=C/b)):A==="mirror"&&(F=f)),V=clamp(0,1,X)*b}$?(this.delayState.value=w[0],z=this.delayState):z=F.next(V),d&&!$&&(z.value=d(z.value));let{done:ee}=z;$||m===null||(ee=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const te=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return te&&P!==inertia&&(z.value=getFinalKeyframe(w,this.options,U,this.speed)),B&&B(z.value),te&&this.finish(),z}then(t,r){return this.finished.then(t,r)}get duration(){return millisecondsToSeconds(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+millisecondsToSeconds(t)}get time(){return millisecondsToSeconds(this.currentTime)}set time(t){t=secondsToMilliseconds(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;return t<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(t):getGeneratorVelocity(r=>this.generator.next(r).value,t,this.generator.next(t).value)}get speed(){return this.playbackSpeed}set speed(t){const r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(time.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=millisecondsToSeconds(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:t=frameloopDriver,startTime:r}=this.options;this.driver||(this.driver=t(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(time.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function fillWildcards(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const radToDeg=e=>180*e/Math.PI,rotate=e=>{const t=radToDeg(Math.atan2(e[1],e[0]));return rebaseAngle(t)},matrix2dParsers={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate,rotateZ:rotate,skewX:e=>radToDeg(Math.atan(e[1])),skewY:e=>radToDeg(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rebaseAngle=e=>((e%=360)<0&&(e+=360),e),rotateZ=rotate,scaleX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),scaleY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),matrix3dParsers={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:e=>(scaleX(e)+scaleY(e))/2,rotateX:e=>rebaseAngle(radToDeg(Math.atan2(e[6],e[5]))),rotateY:e=>rebaseAngle(radToDeg(Math.atan2(-e[2],e[0]))),rotateZ,rotate:rotateZ,skewX:e=>radToDeg(Math.atan(e[4])),skewY:e=>radToDeg(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function defaultTransformValue(e){return e.includes("scale")?1:0}function parseValueFromTransform(e,t){if(!e||e==="none")return defaultTransformValue(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,c;if(r)o=matrix3dParsers,c=r;else{const b=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=matrix2dParsers,c=b}if(!c)return defaultTransformValue(t);const d=o[t],f=c[1].split(",").map(convertTransformToNumber);return typeof d=="function"?d(f):f[d]}const readTransformValue=(e,t)=>
186{const{transform:r="none"}=getComputedStyle(e);return parseValueFromTransform(r,t)};function convertTransformToNumber(e){return parseFloat(e.trim())}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set([...transformPropOrder,"pathRotation"]),isNumOrPxType=e=>e===number||e===px,transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(e=>!transformKeys.has(e));function removeNonTranslationalTransform(e){const t=[];return nonTranslationalTransformKeys.forEach(r=>{const o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}const positionalValues={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:o})=>{const c=e.max-e.min;return o==="border-box"?c:c-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:o})=>{const c=e.max-e.min;return o==="border-box"?c:c-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>parseValueFromTransform(t,"x"),y:(e,{transform:t})=>parseValueFromTransform(t,"y")};positionalValues.translateX=positionalValues.x,positionalValues.translateY=positionalValues.y;const toResolve=new Set;let isScheduled=!1,anyNeedsMeasurement=!1,isForced=!1;function measureAllKeyframes(){if(anyNeedsMeasurement){const e=Array.from(toResolve).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{const c=removeNonTranslationalTransform(o);c.length&&(r.set(o,c),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const c=r.get(o);c&&c.forEach(([d,f])=>{var b;(b=o.getValue(d))==null||b.set(f)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(e=>e.complete(isForced)),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){isForced=!0,readAllKeyframes(),measureAllKeyframes(),isForced=!1}class KeyframeResolver{constructor(t,r,o,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(toResolve.add(this),isScheduled||(isScheduled=!0,frame.read(readAllKeyframes),frame.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:o,motionValue:c}=this;if(t[0]===null){const d=c==null?void 0:c.get(),f=t[t.length-1];if(d!==void 0)t[0]=d;else if(o&&r){const b=o.readValue(r,f);b!=null&&(t[0]=b)}t[0]===void 0&&(t[0]=f),c&&d===void 0&&c.set(t[0])}fillWildcards(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),toResolve.delete(this)}cancel(){this.state==="scheduled"&&(toResolve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const isCSSVar=e=>e.startsWith("--");function setStyle(e,t,r){isCSSVar(t)?e.style.setProperty(t,r):e.style[t]=r}const supportsFlags={};function memoSupports(e,t){const r=memo(e);return()=>supportsFlags[t]??r()}const supportsScrollTimeline=memoSupports(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),supportsViewTimeline=memoSupports(()=>window.ViewTimeline!==void 0,"viewTimeline"),supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0}
186,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cubicBezierAsString=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(e,t){return e?typeof e=="function"?supportsLinearEasing()?generateLinearEasing(e,t):"ease-out":isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(r=>mapEasingToNativeEasing(r,t)||supportedWaapiEasing.easeOut):supportedWaapiEasing[e]:void 0}function startWaapiAnimation(e,t,r,{delay:o=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:b="easeOut",times:m}={},S=void 0){const w={[t]:r};m&&(w.offset=m);const T=mapEasingToNativeEasing(b,c);Array.isArray(T)&&(w.easing=T);const A={delay:o,duration:c,easing:Array.isArray(T)?"linear":T,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return S&&(A.pseudoElement=S),e.animate(w,A)}function isGenerator(e){return typeof e=="function"&&"applyToOptions"in e}function applyGeneratorOptions({type:e,...t}){return isGenerator(e)&&supportsLinearEasing()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class NativeAnimation extends WithPromise{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:o,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:b,onComplete:m}=t;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=t,invariant(typeof t.type!="string");const S=applyGeneratorOptions(t);this.animation=startWaapiAnimation(r,o,c,S,d),S.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const w=getFinalKeyframe(c,this.options,b,this.speed);this.updateMotionValue&&this.updateMotionValue(w),setStyle(r,o,w),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t!=="idle"&&t!=="finished"&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,o,c;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((c=(o=this.animation).commitStyles)==null||c.call(o))}get duration(){var r,o;const t=((o=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:o.call(r).duration)||0;return millisecondsToSeconds(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+millisecondsToSeconds(t)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(t){const r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:o,observe:c}){var d;return this.allowFlatten&&((d=this.animation.effect)==null||d.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&supportsScrollTimeline()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),noop):c(this)}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(e){return e in unsupportedEasingFunctions}function replaceStringEasing(e){typeof e.ease=="string"&&isUnsupportedEase(e.ease)&&(e.ease=unsupportedEasingFunctions[e.ease])}const sampleDelta=10;class NativeAnimationExtended extends NativeAnimation{constructor(t){replaceStringEasing(t),replaceTransitionType(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:o,onComplete:c,element:d,...f}=this.options;if(!r)return;if(t!==void 0)return void r.set(t);const b=new JSAnimation({...f,autoplay:!1}),m=Math.max(sampleDelta,time.now()-this.startTime),S=clamp(0,sampleDelta,m-sampleDelta),w=b.sample(m).value,{name:T}=this.options;d&&T&&setStyle(d,T,w),r.setWithVelocity(b.sample(Math.max(0,m-S)).value,w,S),b.stop()}}const isAnimatable=(e,t)=>
186t!=="zIndex"&&(!(typeof e!="number"&&!Array.isArray(e))||!(typeof e!="string"||!complex.test(e)&&e!=="0"||e.startsWith("url(")));function hasKeyframesChanged(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function canAnimate(e,t,r,o){const c=e[0];if(c===null)return!1;if(t==="display"||t==="visibility")return!0;const d=e[e.length-1],f=isAnimatable(c,t),b=isAnimatable(d,t);return!(!f||!b)&&(hasKeyframesChanged(e)||(r==="spring"||isGenerator(r))&&o)}function makeAnimationInstant(e){e.duration=0,e.type="keyframes"}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]),browserColorFunctions=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hasBrowserOnlyColors(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&browserColorFunctions.test(e[t]))return!0;return!1}const colorProperties=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function supportsBrowserAnimation(e){var T;const{motionValue:t,name:r,repeatDelay:o,repeatType:c,damping:d,type:f,keyframes:b}=e;if(!(((T=t==null?void 0:t.owner)==null?void 0:T.current)instanceof HTMLElement))return!1;const{onUpdate:S,transformTemplate:w}=t.owner.getProps();return supportsWaapi()&&r&&(acceleratedValues.has(r)||colorProperties.has(r)&&hasBrowserOnlyColors(b))&&(r!=="transform"||!w)&&!S&&!o&&c!=="mirror"&&d!==0&&f!=="inertia"}const MAX_RESOLVE_DELAY=40;class AsyncMotionValueAnimation extends WithPromise{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:b,name:m,motionValue:S,element:w,...T}){var P;super(),this.stop=()=>{var B,U;this._animation&&(this._animation.stop(),(B=this.stopTimeline)==null||B.call(this)),(U=this.keyframeResolver)==null||U.cancel()},this.createdAt=time.now();const A={autoplay:t,delay:r,type:o,repeat:c,repeatDelay:d,repeatType:f,name:m,motionValue:S,element:w,...T},C=(w==null?void 0:w.KeyframeResolver)||KeyframeResolver;this.keyframeResolver=new C(b,(B,U,D)=>this.onKeyframesResolved(B,U,A,!D),m,S,w),(P=this.keyframeResolver)==null||P.scheduleResolve()}onKeyframesResolved(t,r,o,c){var U,D;this.keyframeResolver=void 0;const{name:d,type:f,velocity:b,delay:m,isHandoff:S,onUpdate:w}=o;this.resolvedAt=time.now();let T=!0;canAnimate(t,d,f,b)||(T=!1,!MotionGlobalConfig.instantAnimations&&m||(w==null||w(getFinalKeyframe(t,o,r))),t[0]=t[t.length-1],makeAnimationInstant(o),o.repeat=0);const A={startTime:c?this.resolvedAt&&this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:t},C=T&&!S&&supportsBrowserAnimation(A),P=(D=(U=A.motionValue)==null?void 0:U.owner)==null?void 0:D.current;let B;if(C)try{B=new NativeAnimationExtended({...A,element:P})}catch{B=new JSAnimation(A)}else B=new JSAnimation(A);B.finished.then(()=>{this.notifyFinished()}).catch(noop),this.pendingTimeline&&(this.stopTimeline=B.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=B}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),flushKeyframeResolvers()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class GroupAnimation{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,r){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=r}attachTimeline(t){const r=this.animations.map(o=>o.attachTimeline(t));return()=>{r.forEach((o,c)=>{o&&o(),this.animations[c].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return getMax(this.animations,"duration")}get iterationDuration(){return getMax(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function getMax(e,t){let r=0;for(let o=0;o<e.length;o++){const c=e[o][t];c!==null&&c>r&&(r=c)}return r}class GroupAnimationWithThen extends GroupAnimation{then(t,r){return this.finished.finally(t).then(()=>{})}}const MAX_VELOCITY_DELTA=30,isFloat=e=>!isNaN(parseFloat(e));class MotionValue{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var d;const c=time.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=time.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new SubscriptionManager);const o=this.events[t].add(r);return t==="change"?()=>{o(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(e,t){return new MotionValue(e,t)}function resolveTransition(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...o}=e;return{...t,...o}}return e}function getValueTransition$1(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?resolveTransition(r,e):r}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?keyframesTransition:transformProps.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):underDampedSpring:ease,orchestrationKeys=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function isTransitionDefined(e){for(const t in e)if(!orchestrationKeys.has(t))return!0;return!1}const animateMotionValue=(e,t,r,o={},c,d)=>f=>{const b=getValueTransition$1(o,e)||{},m=b.delay||o.delay||0;let{elapsed:S=0}=o;S-=secondsToMilliseconds(m);const w={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...b,delay:-S,onUpdate:A=>{t.set(A),b.onUpdate&&b.onUpdate(A)},onComplete:()=>{f(),b.onComplete&&b.onComplete()},name:e,motionValue:t,element:d?void 0:c};isTransitionDefined(b)||Object.assign(w,getDefaultTransition(e,w)),w.duration&&(w.duration=secondsToMilliseconds(w.duration)),w.repeatDelay&&(w.repeatDelay=secondsToMilliseconds(w.repeatDelay)),w.from!==void 0&&(w.keyframes[0]=w.from);let T=!1;if((w.type===!1||w.duration===0&&!w.repeatDelay)&&(makeAnimationInstant(w),w.delay===0&&(T=!0)),(MotionGlobalConfig.instantAnimations||MotionGlobalConfig.skipAnimations||c!=null&&c.shouldSkipAnimations||b.skipAnimations)&&(T=!0,makeAnimationInstant(w),w.delay=0),w.allowFlatten=!b.type&&!b.ease,T&&!d&&t.get()!==void 0){const A=getFinalKeyframe(w.keyframes,b);if(A!==void 0)return void frame.update(()=>{w.onUpdate(A),w.onComplete()})}return b.isSync?new JSAnimation(w):new AsyncMotionValueAnimation(w)},splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(e){const t=splitCSSVariableRegex.exec(e);if(!t)return[,];const[,r,o,c]=t;return[`--${r??o}`,c]}function getVariableValue(e,t,r=1){const[o,c]=parseCSSVariable(e);if(!o)return;const d=window.getComputedStyle(t).getPropertyValue(o);if(d){const f=d.trim();return isNumericalString(f)?parseFloat(f):f}return isCSSVariableToken(c)?getVariableValue(c,t,r+1):c}function getValueState(e){const t=[{},{}];
186return e==null||e.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function resolveVariantFromProps(e,t,r,o){if(typeof t=="function"){const[c,d]=getValueState(o);t=t(r!==void 0?r:e.custom,c,d)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[c,d]=getValueState(o);t=t(r!==void 0?r:e.custom,c,d)}return t}function resolveVariant(e,t,r){const o=e.getProps();return resolveVariantFromProps(o,t,o.custom,e)}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]),isKeyframesTarget=e=>Array.isArray(e);function setMotionValue(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,motionValue(r))}function resolveFinalValueInKeyframes(e){return isKeyframesTarget(e)?e[e.length-1]||0:e}function setTarget(e,t){const r=resolveVariant(e,t);let{transitionEnd:o={},transition:c={},...d}=r||{};d={...d,...o};for(const f in d)setMotionValue(e,f,resolveFinalValueInKeyframes(d[f]))}const isMotionValue=e=>!!(e&&e.getVelocity);function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}function addValueToWillChange(e,t){const r=e.getValue("willChange");if(isWillChangeMotionValue(r))return r.add(t);if(!r&&MotionGlobalConfig.WillChange){const o=new MotionGlobalConfig.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function camelToDash(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId);function getOptimisedAppearId(e){return e.props[optimizedAppearDataAttribute]}function shouldBlockAnimation({protectedKeys:e,needsAnimating:t},r){const o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function animateTarget(e,t,{delay:r=0,transitionOverride:o,type:c}={}){let{transition:d,transitionEnd:f,...b}=t;const m=e.getDefaultTransition();d=d?resolveTransition(d,m):m;const S=d==null?void 0:d.reduceMotion,w=d==null?void 0:d.skipAnimations;o&&(d=o);const T=[],A=c&&e.animationState&&e.animationState.getState()[c],C=d==null?void 0:d.path;C&&C.animateVisualElement(e,b,d,r,T);for(const P in b){const B=e.getValue(P,e.latestValues[P]??null),U=b[P];if(U===void 0||A&&shouldBlockAnimation(A,P))continue;const D={delay:r,...getValueTransition$1(d||{},P)};w&&(D.skipAnimations=!0);const $=B.get();if($!==void 0&&!B.isAnimating()&&!Array.isArray(U)&&U===$&&!D.velocity){frame.update(()=>B.set(U));continue}let z=!1;if(window.MotionHandoffAnimation){const ee=getOptimisedAppearId(e);if(ee){const te=window.MotionHandoffAnimation(ee,P,frame);te!==null&&(D.startTime=te,z=!0)}}addValueToWillChange(e,P);const V=S??e.shouldReduceMotion;B.start(animateMotionValue(P,B,U,V&&positionalKeys.has(P)?{type:!1}:D,e,z));const F=B.animation;F&&T.push(F)}if(f){const P=()=>frame.update(()=>{f&&setTarget(e,f)});T.length?Promise.all(T).then(P):P()}return T}const auto={test:e=>e==="auto",parse:e=>e},testValueType=e=>t=>t.test(e),dimensionValueTypes=[number,px,percent,degrees,vw,vh,auto],findDimensionValueType=e=>dimensionValueTypes.find(testValueType(e));function isNone(e){return typeof e=="number"?e===0:e===null||e==="none"||e==="0"||isZeroValueString(e)}const maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=r.match(floatRegex)||[];if(!o)return e;const c=r.replace(o,"");let d=maxDefaults.has(t)?1:0;return o!==r&&(d*=100),t+"("+d+c+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter={...complex,getAnimatableNone:e=>{const t=e.match(functionRegex);return t?t.map(applyDefaultFilter).join(" "):e}},mask={...complex,getAnimatableNone:e=>{const t=complex.parse(e);return complex.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},int={...number,transform:Math.round},transformValueTypes={rotate:degrees,pathRotation:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px},numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,top:px,right:px,bottom:px,left
186:px,inset:px,insetBlock:px,insetBlockStart:px,insetBlockEnd:px,insetInline:px,insetInlineStart:px,insetInlineEnd:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,paddingBlock:px,paddingBlockStart:px,paddingBlockEnd:px,paddingInline:px,paddingInlineStart:px,paddingInlineEnd:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,marginBlock:px,marginBlockStart:px,marginBlockEnd:px,marginInline:px,marginInlineStart:px,marginInlineEnd:px,fontSize:px,backgroundPositionX:px,backgroundPositionY:px,...transformValueTypes,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter,mask,WebkitMask:mask},getDefaultValueType=e=>defaultValueTypes[e],customTypes=new Set([filter,mask]);function getAnimatableNone(e,t){let r=getDefaultValueType(e);return customTypes.has(r)||(r=complex),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(e,t,r){let o,c=0;for(;c<e.length&&!o;){const d=e[c];typeof d=="string"&&!invalidTemplates.has(d)&&analyseComplexValue(d).values.length&&(o=e[c]),c++}if(o&&r)for(const d of t)e[d]=getAnimatableNone(r,o)}class DOMKeyframesResolver extends KeyframeResolver{constructor(t,r,o,c,d){super(t,r,o,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let S=t[m];if(typeof S=="string"&&(S=S.trim(),isCSSVariableToken(S))){const w=getVariableValue(S,r.current);w!==void 0&&(t[m]=w),m===t.length-1&&(this.finalKeyframe=S)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(o)||t.length!==2)return;const[c,d]=t,f=findDimensionValueType(c),b=findDimensionValueType(d);if(containsCSSVariable(c)!==containsCSSVariable(d)&&positionalValues[o])this.needsMeasurement=!0;else if(f!==b)if(isNumOrPxType(f)&&isNumOrPxType(b))for(let m=0;m<t.length;m++){const S=t[m];typeof S=="string"&&(t[m]=parseFloat(S))}else positionalValues[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,o=[];for(let c=0;c<t.length;c++)(t[c]===null||isNone(t[c]))&&o.push(c);o.length&&makeNoneKeyframesAnimatable(t,o,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[o](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&t.getValue(o,c).jump(c,!1)}measureEndState(){var b;const{element:t,name:r,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const c=t.getValue(r);c&&c.jump(this.measuredOrigin,!1);const d=o.length-1,f=o[d];o[d]=positionalValues[r](t.measureViewportBox(),window.getComputedStyle(t.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(b=this.removedTransforms)!=null&&b.length&&this.removedTransforms.forEac
186h(([m,S])=>{t.getValue(m).set(S)}),this.resolveNoneKeyframes()}}function resolveElements(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);const c=(r==null?void 0:r[e])??o.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e).filter(o=>o!=null)}const getValueAsType=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:microtask}=createRenderBatcher(queueMicrotask,!1);function isSVGElement(e){return isObject(e)&&"ownerSVGElement"in e}function isSVGSVGElement(e){return isSVGElement(e)&&e.tagName==="svg"}const valueTypes=[...dimensionValueTypes,color,complex],findValueType=e=>valueTypes.find(testValueType(e)),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),visualElementStore=new WeakMap;function isAnimationControls(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function isVariantLabel(e){return typeof e=="string"||Array.isArray(e)}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(e){return isAnimationControls(e.animate)||variantProps.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function updateMotionValuesFromProps(e,t,r){for(const o in t){const c=t[o],d=r[o];if(isMotionValue(c))e.addValue(o,c);else if(isMotionValue(d))e.addValue(o,motionValue(c,{owner:e}));else if(d!==c)if(e.hasValue(o)){const f=e.getValue(o);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=e.getStaticValue(o);e.addValue(o,motionValue(f!==void 0?f:c,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const prefersReducedMotion={current:null},hasReducedMotionListener={current:!1},isBrowser=typeof window<"u";function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,isBrowser)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>prefersReducedMotion.current=e.matches;e.addEventListener("change",t),t()}else prefersReducedMotion.current=!1}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let featureDefinitions={};class VisualElement{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:c,skipAnimations:d,blockInitialAnimation:f,visualState:b},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const C=time.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,frame.render(this.render,!1,!0))};const{latestValues:S,renderState:w}=b;this.latestValues=S,this.baseTarget={...S},this.initialValues=r.initial?{...S}:{},this.renderState=w,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=d,this.options=m,this.blockInitialAnimation=!!f,this.isControllingVariants=isControllingVariants(r),this.isVariantNode=isVariantNode(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:T,...A}=this.scrapeMotionValuesFromProps(r,{},this);for(const C in A){const P=A[C];S[C]!==void 0&&isMotionValue(P)&&P.set(S[C])}}mount(t){var r,o;if(this.hasBeenMounted)for(const c in this.initialValues)(r=this.values.get(c))==null||r.jump(this.initialValues[c]),this.latestValues[c]=this.initialValues[c];this.current=t,visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
186h((c,d)=>this.bindToMotionValue(d,c)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=prefersReducedMotion.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const o=this.features[r];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&acceleratedValues.has(t)&&this.current instanceof HTMLElement){const{factory:f,keyframes:b,times:m,ease:S,duration:w}=r.accelerate,T=new NativeAnimation({element:this.current,name:t,keyframes:b,times:m,ease:S,duration:secondsToMilliseconds(w)}),A=f(T);return void this.valueSubscriptions.set(t,()=>{A(),T.cancel()})}const o=transformProps.has(t);o&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&frame.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;typeof window<"u"&&window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{c(),d&&d()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in featureDefinitions){const r=featureDefinitions[t];if(!r)continue;const{isEnabled:o,Feature:c}=r;if(!this.features[t]&&c&&o(this.props)&&(this.features[t]=new c(this)),this.features[t]){const d=this.features[t];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;o<propEventHandlers.length;o++){const c=propEventHandlers[o];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d=t["on"+c];d&&(this.propEventSubscriptions[c]=this.on(c,d))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const o=this.values.get(t);r!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=motionValue(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){let o=this.latestValues[t]===void 0&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];
186return o!=null&&(typeof o=="string"&&(isNumericalString(o)||isZeroValueString(o))?o=parseFloat(o):!findValueType(o)&&complex.test(r)&&(o=getAnimatableNone(t,r)),this.setBaseTarget(t,isMotionValue(o)?o.get():o)),isMotionValue(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var d;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const f=resolveVariantFromProps(this.props,r,(d=this.presenceContext)==null?void 0:d.custom);f&&(o=f[t])}if(r&&o!==void 0)return o;const c=this.getBaseTargetFromProps(this.props,t);return c===void 0||isMotionValue(c)?this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]:c}on(t,r){return this.events[t]||(this.events[t]=new SubscriptionManager),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){microtask.render(this.render)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(t,r){return 2&t.compareDocumentPosition(r)?1:-1}getBaseTargetFromProps(t,r){const o=t.style;return o?o[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;isMotionValue(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function convertBoundingBoxToBox({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function transformBoxPoints(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function measureViewportBox(e,t){return convertBoundingBoxToBox(transformBoxPoints(e.getBoundingClientRect(),t))}const translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(e,t,r){let o="",c=!0;for(let f=0;f<numTransforms;f++){const b=transformPropOrder[f],m=e[b];if(m===void 0)continue;let S=!0;if(typeof m=="number")S=m===(b.startsWith("scale")?1:0);else{const w=parseFloat(m);S=b.startsWith("scale")?w===1:w===0}if(!S||r){const w=getValueAsType(m,numberValueTypes[b]);S||(c=!1,o+=`${translateAlias[b]||b}(${w}) `),r&&(t[b]=w)}}const d=e.pathRotation;return d&&(c=!1,o+=`rotate(${getValueAsType(d,numberValueTypes.pathRotation)}) `),o=o.trim(),r?o=r(t,c?"":o):c&&(o="none"),o}function buildHTMLStyles(e,t,r){const{style:o,vars:c,transformOrigin:d}=e;let f=!1,b=!1;for(const m in t){const S=t[m];if(transformProps.has(m))f=!0;else if(isCSSVariableName(m))c[m]=S;else{const w=getValueAsType(S,numberValueTypes[m]);m.startsWith("origin")?(b=!0,d[m]=w):o[m]=w}}if(t.transform||(f||r?o.transform=buildTransform(t,e.transform,r):o.transform&&(o.transform="none")),b){const{originX:m="50%",originY:S="50%",originZ:w=0}=d;o.transformOrigin=`${m} ${S} ${w}`}}function renderHTML(e,{style:t,vars:r},o,c){const d=e.style;let f;for(f in t)d[f]=t[f];for(f in c==null||c.applyProjectionStyles(d,o),r)d.setProperty(f,r[f])}function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const correctBorderRadius={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string"){if(!px.test(e))return e;e=parseFloat(e)}return`${pixelsToPercent(e,t.target.x)}% ${pixelsToPercent(e,t.target.y)}%`}},correctBoxShadow={correct:(e,{treeScale:t,projectionDelta:r})=>{const o=e,c=complex.parse(e);if(c.length>5)return o;const d=complex.createTransformer(e),f=typeof c[0]!="number"?1:0,b=r.x.scale*t.x,m=r.y.scale*t.y;c[0+f]/=b,c[1+f]/=m;const S=mixNumber$1(b,m,.5);return typeof c[2+f]=="number"&&(c[2+f]/=S),typeof c[3+f]=="number"&&(c[3+f]/=S),d(c)}},scaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function isForcedMotionValue(e,{layout:t,layoutId:r}){return transformProps.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!scaleCorrectors[e]||e==="opacity")}function scrapeMotionValuesFromProps$1(e,t,r){var f;const o=e.style,c=t==null?void 0:t.style,d={};if(!o)return d;for(const b in o)(isMotionValue(o[b])||c&&isMotionValue(c[b])||isForcedMotionValue(b,e)||((f=r==null?void 0:r.getValue(b))==null?void 0:f.liveStyle)!==void 0)&&(d[b]=o[b]);return d}function getComputedStyle$1(e){return window.getComputedStyle(e)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(t,r){var o;if(transformProps.has(r))return(o=this.projection)!=null&&o.isProjecting?defaultTransformValue(r):readTransformValue(t,r);{const c=getComputedStyle$1(t),d=(isCSSVariableName(r)?c.getPropertyValue(r):c[r])||0;
186return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(t,{transformPagePoint:r}){return measureViewportBox(t,r)}build(t,r,o){buildHTMLStyles(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return scrapeMotionValuesFromProps$1(t,r,o)}}function isObjectKey(e,t){return e in t}class ObjectVisualElement extends VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,r){if(isObjectKey(r,t)){const o=t[r];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(t,r){delete r.output[t]}measureInstanceViewportBox(){return createBox()}build(t,r){Object.assign(t.output,r)}renderInstance(t,{output:r}){Object.assign(t,r)}sortInstanceNodePosition(){return 0}}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(e,t,r=1,o=0,c=!0){e.pathLength=1;const d=c?dashKeys:camelKeys;e[d.offset]=""+-o,e[d.array]=`${t} ${r}`}const cssMotionPathProperties=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function buildSVGAttrs(e,{attrX:t,attrY:r,attrScale:o,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...b},m,S,w){if(buildHTMLStyles(e,b,S),m)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:T,style:A}=e;T.transform&&(A.transform=T.transform,delete T.transform),(A.transform||T.transformOrigin)&&(A.transformOrigin=T.transformOrigin??"50% 50%",delete T.transformOrigin),A.transform&&(A.transformBox=(w==null?void 0:w.transformBox)??"fill-box",delete T.transformBox);for(const C of cssMotionPathProperties)T[C]!==void 0&&(A[C]=T[C],delete T[C]);t!==void 0&&(T.x=t),r!==void 0&&(T.y=r),o!==void 0&&(T.scale=o),c!==void 0&&buildSVGPath(T,c,d,f,!1)}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),isSVGTag=e=>typeof e=="string"&&e.toLowerCase()==="svg";
186function renderSVG(e,t,r,o){renderHTML(e,t,void 0,o);for(const c in t.attrs)e.setAttribute(camelCaseAttributes.has(c)?c:camelToDash(c),t.attrs[c])}function scrapeMotionValuesFromProps(e,t,r){const o=scrapeMotionValuesFromProps$1(e,t,r);for(const c in e)(isMotionValue(e[c])||isMotionValue(t[c]))&&(o[transformPropOrder.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c]=e[c]);return o}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(transformProps.has(r)){const o=getDefaultValueType(r);return o&&o.default||0}return r=camelCaseAttributes.has(r)?r:camelToDash(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return scrapeMotionValuesFromProps(t,r,o)}build(t,r,o){buildSVGAttrs(t,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,r,o,c){renderSVG(t,r,o,c)}mount(t){this.isSVGTag=isSVGTag(t.tagName),super.mount(t)}}function animateSingleValue(e,t,r){const o=isMotionValue(e)?e:motionValue(e);return o.start(animateMotionValue("",o,t,r)),o.animation}function isDOMKeyframes(e){return typeof e=="object"&&!Array.isArray(e)}function resolveSubjects(e,t,r,o){return e==null?[]:typeof e=="string"&&isDOMKeyframes(t)?resolveElements(e,r,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(c=>c!=null):[e]}function calculateRepeatDuration(e,t,r){return e*(t+1)+r*t}function calcNextTime(e,t,r,o){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?r:t.startsWith("<")?Math.max(0,r+parseFloat(t.slice(1))):o.get(t)??e}function eraseKeyframes(e,t,r){for(let o=0;o<e.length;o++){const c=e[o];c.at>t&&c.at<r&&(removeItem(e,c),o--)}}function addKeyframes(e,t,r,o,c,d){eraseKeyframes(e,c,d);for(let f=0;f<t.length;f++)e.push({value:t[f],at:mixNumber$1(c,d,o[f]),easing:getEasingForSegment(r,f)})}function normalizeTimes(e,t,r=0){const o=t+1+t*r;for(let c=0;c<e.length;c++)e[c]=e[c]/o}function compareByTime(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const defaultSegmentEasing="easeInOut",MAX_REPEAT=20;function createAnimationsFromSequence(e,{defaultTransition:t={},...r}={},o,c){const d=t.duration||.3,f=new Map,b=new Map,m={},S=new Map;let w=0,T=0,A=0;for(let C=0;C<e.length;C++){const P=e[C];if(typeof P=="string"){S.set(P,T);continue}if(!Array.isArray(P)){S.set(P.name,calcNextTime(T,P.at,w,S));continue}let[B,U,D={}]=P;D.at!==void 0&&(T=calcNextTime(T,D.at,w,S));let $=0;const z=(V,F,ee,te=0,K=0)=>{const H=keyframesAsList(V),{delay:X=0,times:J=defaultOffset(H),type:G=t.type||"ke
186yframes",repeat:Q,repeatType:pe,repeatDelay:ye=0,...de}=F;let{ease:_e=t.ease||"easeOut",duration:Re}=F;const ge=typeof X=="function"?X(te,K):X,Ce=H.length,Me=isGenerator(G)?G:c==null?void 0:c[G||"keyframes"];if(Ce<=2&&Me){let et=100;if(Ce===2&&isNumberKeyframesArray(H)){const ne=H[1]-H[0];et=Math.abs(ne)}const rt={...t,...de};Re!==void 0&&(rt.duration=secondsToMilliseconds(Re));const re=createGeneratorEasing(rt,et,Me);_e=re.ease,Re=re.duration}Re??(Re=d);const Ue=T+ge;J.length===1&&J[0]===0&&(J[1]=1);const Ne=J.length-H.length;if(Ne>0&&fillOffset(J,Ne),H.length===1&&H.unshift(null),Q&&Q<MAX_REPEAT){const et=Re>0?ye/Re:0;Re=calculateRepeatDuration(Re,Q,ye);const rt=[...H],re=[...J];_e=Array.isArray(_e)?[..._e]:[_e];const ne=[..._e],Se=pe==="reverse"||pe==="mirror";let he=rt,we=ne;Se&&(he=[...rt].reverse(),pe==="reverse"&&(we=[...ne].reverse().map(xe=>typeof xe=="function"?reverseEasing(xe):xe)));for(let xe=0;xe<Q;xe++){const ze=Se&&xe%2==0,Ee=ze?he:rt,se=ze?we:ne,L=(xe+1)*(1+et);et>0&&(H.push(H[H.length-1]),J.push(L),_e.push("linear")),H.push(...Ee);for(let j=0;j<Ee.length;j++)J.push(re[j]+L),_e.push(j===0?"linear":getEasingForSegment(se,j-1))}normalizeTimes(J,Q,et)}const We=Ue+Re;addKeyframes(ee,H,_e,J,Ue,We),$=Math.max(ge+Re,$),A=Math.max(We,A)};if(isMotionValue(B))z(U,D,getValueSequence("default",getSubjectSequence(B,b)));else{const V=resolveSubjects(B,U,o,m),F=V.length;for(let ee=0;ee<F;ee++){const te=getSubjectSequence(V[ee],b);for(const K in U)z(U[K],getValueTransition(D,K),getValueSequence(K,te),ee,F)}}w=T,T+=$}return b.forEach((C,P)=>{for(const B in C){const U=C[B];U.sort(compareByTime);const D=[],$=[],z=[];for(let te=0;te<U.length;te++){const{at:K,value:H,easing:X}=U[te];
186D.push(H),$.push(progress(0,A,K)),z.push(X||"easeOut")}$[0]!==0&&($.unshift(0),D.unshift(D[0]),z.unshift(defaultSegmentEasing)),$[$.length-1]!==1&&($.push(1),D.push(null)),f.has(P)||f.set(P,{keyframes:{},transition:{}});const V=f.get(P);V.keyframes[B]=D;const{type:F,...ee}=t;V.transition[B]={...ee,duration:A,ease:z,times:$,...r}}}),f}function getSubjectSequence(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function getValueSequence(e,t){return t[e]||(t[e]=[]),t[e]}function keyframesAsList(e){return Array.isArray(e)?e:[e]}function getValueTransition(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const isNumber=e=>typeof e=="number",isNumberKeyframesArray=e=>e.every(isNumber);function createDOMVisualElement(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=isSVGElement(e)&&!isSVGSVGElement(e)?new SVGVisualElement(t):new HTMLVisualElement(t);r.mount(e),visualElementStore.set(e,r)}function createObjectVisualElement(e){const t=new ObjectVisualElement({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),visualElementStore.set(e,t)}function isSingleValue(e,t){return isMotionValue(e)||typeof e=="number"||typeof e=="string"&&!isDOMKeyframes(t)}function animateSubject(e,t,r,o){const c=[];if(isSingleValue(e,t))c.push(animateSingleValue(e,isDOMKeyframes(t)&&t.default||t,r&&r.default||r));else{if(e==null)return c;const d=resolveSubjects(e,t,o),f=d.length;for(let b=0;b<f;b++){const m=d[b],S=m instanceof Element?createDOMVisualElement:createObjectVisualElement;visualElementStore.has(m)||S(m);const w=visualElementStore.get(m),T={...r};"delay"in T&&typeof T.delay=="function"&&(T.delay=T.delay(b,f)),c.push(...animateTarget(w,{...t,transition:T},{}))}}return c}function animateSequence(e,t,r){const o=[];return createAnimationsFromSequence(e.map(c=>{if(Array.isArray(c)&&typeof c[0]=="function"){const d=c[0],f=motionValue(0);return f.on("change",d),c.length===1?[f,[0,1]]:c.length===2?[f,[0,1],c[1]]:[f,c[1],c[2]]}return c}),t,r,{spring}).forEach(({keyframes:c,transition:d},f)=>{o.push(...animateSubject(f,c,d))}),o}function isSequence(e){return Array.isArray(e)&&e.some(Array.isArray)}function createScopedAnimate(e={}){const{scope:t,reduceMotion:r,skipAnimations:o}=e;return function(c,d,f){let b,m=[];const S={};if(r!==void 0&&(S.reduceMotion=r),o!==void 0&&(S.skipAnimations=o),isSequence(c)){const{onComplete:T,...A}=d||{};typeof T=="function"&&(b=T),m=animateSequence(c,{...S,...A},t)}else{const{onComplete:T,...A}=f||{};typeof T=="function"&&(b=T),m=animateSubject(c,d,{...S,...A},t)}const w=new GroupAnimationWithThen(m);return b&&w.finished.then(b),t&&(t.animations.push(w),w.finished.then(()=>{removeItem(t.animations,w)})),w}}const animate=createScopedAnimate(),animations={search:{enter:e=>animate(e,{x:[600,0]},{duration:1.2,type:spring}),leave:(e,t)=>animate(e,{x:[0,600]},{duration:.4,ease:"linear"}).then(t)}},_sfc_main$2=defineComponent({__name:"index",setup(e){const t=useStore(),{search:{enter:r,leave:o}}=animations;return(c,d)=>{const f=_sfc_main$3;return openBlock(),createBlock(Transition,{appear:"",mode:"out-in",onEnter:d[2]||(d[2]=b=>unref(r)(c.$el)),onLeave:d[3]||(d[3]=(b,m)=>unref(o)(b,m))},{default:withCtx(()=>[unref(t).showSSO?(openBlock(),createElementBlock("div",{key:0,class:"fixed inset-0 w-screen overlay-active lock-scroll z-[1000]",onClick:d[1]||(d[1]=b=>unref(t).showSSO=!1)},[createVNode(f,{onClick:d[0]||(d[0]=withModifiers(()=>{},["stop"]))})])):createCommentVNode("",!0)]),_:1})}}}),useFooter=async()=>({attributes:useRuntimeConfig().public.menus.footer}),_hoisted_1$1={class:"flex flex-col items-center justify-center px-8 py-4 text-white shadow bg-black/75 basis-full md:basis-1/2 lg:basis-1/4 backdrop-blur-md"},_hoisted_2={tag:"h3",class:"max-w-xs text-2xl text-center"},_hoisted_3={class:"flex flex-col w-full max-w-xs gap-6"},_hoisted_4={class:"flex flex-col gap-2"},_sfc_main$1={__name:"error",async setup(e){let t,r;const o=useError(),c=useRuntimeConfig(),d=useStore(),f=c.public.menus.burgerMenu,b=([t,r]=withAsyncContext(()=>fetch(`https://client-settings.cms.web.gc.${c.public.servicesURL}/v1/get?settingID=web`)),t=await t,r(),t),m=([t,r]=withAsyncContext(()=>b.json()),t=await t,r(),t),S=c.public.core.errorPageTitle,w=(o==null?void 0:o.statusCode)||"404";console.error({error:o});const T=computed(()=>S?`${w} ${S}`:w),A=computed(()=>o.value.statusCode==="500"?"Sorry, something went wrong. Please try again later.":"Sorry, it looks like the page you are looking for isn't available right now.");useHead({script:[{children:"if (global === undefined) {var global = window;}"}]}),onMounted(()=>{B()});const C=ref(),P=ref(),B=async()=>{var D;P.value=await useFooter();const U="Footer"+((D=P.value.attributes)==null?void 0:D.footerType);C.value=resolveComponent(U)};return(U,D)=>{var te,K,H,X,J;const $=_sfc_main$s,z=_sfc_main$k,V=_sfc_main$V,F=__nuxt_component_1$1,ee=_sfc_main$2;return openBlock(),createElementBlock("div",{id:"page",class:normalizeClass(["page",{"show-sso":unref(d).showSSO}])},[createVNode($),createVNode(z),createBaseVNode("main",null,[createBaseVNode("div",{class:"flex flex-row min-h-[90vh] bg-cover",style:normalizeStyle(`background-image: url('${("useGCImage"in U?U.useGCImage:unref(useGCImage))(!0,1600,1600,((te=unref(c).public)==null?void 0:te.errorPageImage)||((X=(H=(K=unref(m))==null?void 0:K.body)==null?void 0:H.settings)==null?void 0:X.errorPageImageKey))}')`)},[createBaseVNode("div",_hoisted_1$1,[createVNode(V,{tag:"h1"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(T)),1)]),_:1}),createBaseVNode("p",_hoisted_2,toDisplayString(unref(A)),1),D[1]||(D[1]=createBaseVNode("div",{class:"w-full h-[1px] bg-gray-300/50 max-w-xs my-8"},null,-1)),createBaseVNode("div",_hoisted_3,[D[0]||(D[0]=createBaseVNode("p",{class:"tracking-wider up
186percase text-2xs"},"Quick Links:",-1)),createBaseVNode("ul",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(f),G=>(openBlock(),createElementBlock("li",{key:G.slug},[createVNode(F,{to:G.slug,title:G.label},{default:withCtx(()=>[createVNode(V,null,{default:withCtx(()=>[createTextVNode(toDisplayString(G.label),1)]),_:2},1024)]),_:2},1032,["to","title"])]))),128))])]),D[2]||(D[2]=createBaseVNode("div",{class:"w-full h-[1px] bg-gray-300/50 max-w-xs my-8"},null,-1))])],4)]),createVNode(ee),unref(C)!==void 0?(openBlock(),createBlock(resolveDynamicComponent(unref(C)),{key:0,data:unref(P),style:normalizeStyle((J=unref(P).attributes)==null?void 0:J.style)},null,8,["data","style"])):createCommentVNode("",!0)],2)}}},_hoisted_1={key:0},_sfc_main={__name:"nuxt-root",setup(e){const t=()=>null,r=useNuxtApp(),o=r.deferHydration();if(r.isHydrating){const m=r.hooks.hookOnce("app:error",o);useRouter().beforeEach(m)}const c=!1;provide(PageRouteSymbol,useRoute$1()),r.hooks.callHookWith(m=>m.map(S=>S()),"vue:setup");const d=useError(),f=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;onErrorCaptured((m,S,w)=>(r.hooks.callHook("vue:error",m,S,w).catch(T=>console.error("[nuxt] Error in `vue:error` hook",T)),f.test(navigator.userAgent)?(r.hooks.callHook("app:error",m),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,m),!1):isNuxtError(m)&&(m.fatal||m.unhandled)?(r.runWithContext(()=>showError(m)),!1):void 0));const b=!1;return(m,S)=>(openBlock(),createBlock(Suspense,{onResolve:unref(o)},{default:withCtx(()=>[unref(!1)?(openBlock(),createElementBlock("div",_hoisted_1)):unref(d)?(openBlock(),createBlock(unref(_sfc_main$1),{key:1,error:unref(d)},null,8,["error"])):unref(b)?(openBlock(),createBlock(unref(t),{key:2,context:unref(b)},null,8,["context"])):unref(c)?(openBlock(),createBlock(resolveDynamicComponent(unref(c)),{key:3})):(openBlock(),createBlock(unref(AppComponent),{key:4}))]),_:1},8,["onResolve"]))}};let entry;{let e;entry=async function(){var c,d;if(e)return e;const t=((c=window.__NUXT__)==null?void 0:c.serverRendered)??((d=document.getElementById("__NUXT_DATA__"))==null?void 0:d.dataset.ssr)==="true"?createSSRApp(_sfc_main):createApp(_sfc_main),r=createNuxtApp({vueApp:t});async function o(f){var b;await r.callHook("app:error",f),(b=r.payload).error||(b.error=createError(f))}t.config.errorHandler=o,r.hook("app:suspense:resolve",()=>{t.config.errorHandler===o&&(t.config.errorHandler=void 0)});try{await applyPlugins(r,plugins)}catch(f){o(f)}try{await r.hooks.callHook("app:created",t),await r.hooks.callHook("app:beforeMount",t),t.mount(vueAppRootContainer),await r.hooks.callHook("app:mounted",t),await nextTick$1()}catch(f){o(f)}return t},e=entry().catch(t=>{throw console.error("Error while mounting app:",t),t})}const index_types$2f=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),types$1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$2e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$2d=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$2c=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$2b=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$2a=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$29=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$28=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$27=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$26=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$25=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$24=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$23=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$22=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$21=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$20=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1$=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1_=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1U=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1T=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1S=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1R=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1P=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1O=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1N=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1L=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1J=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1I=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1G=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1F=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1E=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_model=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1D=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1C=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1B=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),types=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1A=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1x=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1w=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1v=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1s=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1r=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1p=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1o=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1n=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1l=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1k=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1j=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1i=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1h=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1g=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1f=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1d=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1c=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1b=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1a=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$19=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$18=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$17=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$16=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$15=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$14=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$13=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$12=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$11=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$10=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$$=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$_=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$V=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$U=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$T=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$S=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$R=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$P=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$O=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$N=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$L=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$J=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$I=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$G=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$F=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$E=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$D=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$C=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$B=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$A=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$x=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$w=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$v=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$s=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$r=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$p=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$o=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$n=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$l=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$k=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$j=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$i=Object.freeze(Object.definePropert
186y({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$h=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$g=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$f=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$d=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$c=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$b=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$a=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$9=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$8=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$7=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$6=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$5=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$4=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$3=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$2=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types$1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),index_types=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{withModifiers as $,defineStore as A,toRaw as B,reactive as C,DateTime as D,toRefs as E,Fragment as F,useStore as G,useUserStore as H,onMounted as I,_sfc_main$T as J,useStyleObject as K,useSlots as L,setInterval$1 as M,onUnmounted as N,renderSlot as O,normalizeStyle as P,withAsyncContext as Q,_export_sfc$1 as R,SPLIDE_MEDIUM_OPTIONS as S,cloneVNode as T,h as U,shallowRef as V,getCurrentInstance as W,provide as X,__nuxt_component_1$1 as Y,resolveDynamicComponent as Z,_sfc_main$12 as _,createBaseVNode as a,_sfc_main$E as a$,normalizeProps$1 as a0,guardReactiveProps as a1,_sfc_main$_ as a2,usePropertiesStore as a3,_sfc_main$R as a4,_sfc_main$A as a5,_sfc_main$t as a6,_sfc_main$s as a7,_sfc_main$D as a8,_sfc_main$u as a9,_sfc_main$Z as aA,useHead as aB,useRouter as aC,ReCaptchaVuePluginExports as aD,_sfc_main$K as aE,useModel as aF,withDirectives as aG,vModelCheckbox as aH,isRef as aI,vModelRadio as aJ,vModelText as aK,vModelSelect as aL,mergeModels as aM,watchEffect as aN,_sfc_main$F as aO,_sfc_main$11 as aP,_sfc_main$10 as aQ,_sfc_main$I as aR,_sfc_main$q as aS,createStaticVNode as aT,useToastStore as aU,storeToRefs as aV,resolveComponent as aW,_sfc_main$f as aX,useViewport as aY,_sfc_main$H as aZ,useCard as a_,_sfc_main$C as aa,_sfc_main$B as ab,_sfc_main$G as ac,useTheme as ad,useTemplateRef as ae,animate as af,useRoute$1 as ag,watch as ah,_sfc_main$w as ai,SplideSlide as aj,getRelativeTimestamp as ak,Duration as al,resolveElements as am,ce as an,TransitionGroup as ao,onErrorCaptured as ap,mergeProps as aq,onNuxtReady as ar,useHeader as as,_sfc_main$p as at,_sfc_main$m as au,_sfc_main$k as av,_sfc_main$n as aw,_sfc_main$r as ax,_sfc_main$o as ay,_sfc_main$l as az,createVNode as b,asyncDataDefaults as b$,_sfc_main$8 as b0,_sfc_main$4 as b1,_sfc_main$2 as b2,_sfc_main$j as b3,_sfc_main$d as b4,_sfc_main$b as b5,_sfc_main$e as b6,_sfc_main$c as b7,_sfc_main$h as b8,_sfc_main$g as b9,useRequestURL as bA,toValue$1 as bB,_sfc_main$J as bC,createSlots as bD,SPLIDE_DATES_OPTIONS as bE,publicAssetsURL as bF,DARTS_TOURNAMENT_PLACEHOLDER_KEY as bG,getDartsProfileImageKey as bH,getDartsMatchWinner as bI,getMatchStatus as bJ,getMultiplier as bK,useSSOID as bL,getVideoThumbnail as bM,convertFootballMatchTime as bN,_sfc_main$P as bO,_sfc_main$Q as bP,withKeys as bQ,defineAsyncComponent as bR,__vitePreload as bS,nextTick$1 as bT,Splide as bU,onBeforeMount as bV,useCacheStore as bW,v4 as bX,vModelDynamic as bY,useTeamsPageStore as bZ,DARTS_PARTICIPANT_LISTING_CARD_BACKGROUND_KEY as b_,_sf
186c_main$6 as ba,_sfc_main$7 as bb,_sfc_main$a as bc,_sfc_main$5 as bd,_sfc_main$3 as be,_sfc_main$i as bf,Transition as bg,spring as bh,inject as bi,vShow as bj,_sfc_main$L as bk,_sfc_main$y as bl,resolveDirective as bm,__nuxt_component_0 as bn,DARTS_PARTICIPANT_COMPARISON_BACKGROUND_KEY as bo,participantTransformer as bp,Teleport as bq,getHeadToHeadData as br,getVisitsByParticipant as bs,getSegmentTypeFromMultiplier as bt,getStartEndTimestamp as bu,_sfc_main$z as bv,_sfc_main$v as bw,SPLIDE_GALLERY_OPTIONS as bx,useGAEventData as by,useAnalyticsEvent as bz,createElementBlock as c,onScopeDispose as c0,createError as c1,toRef as c2,getCurrentScope as c3,useCssVars as c4,SPLIDE_DEFAULT_OPTIONS as c5,onBeforeUnmount as c6,DARTS_DEFAULT_TAB as c7,DARTS_VIDEO_TAB_ID as c8,DARTS_TABS_FIXED_ORDER as c9,frameData as cA,index$2 as cB,DARTS_DEFAULT_TAB_MOBILE as ca,DARTS_TABS as cb,DARTS_DEFAULT_ACTIVE_TABS as cc,DARTS_PARTICIPANT_CARD_BACKGROUND_KEY as cd,__nuxt_component_2$1 as ce,useStyleObjectCard as cf,DARTS_BACKGROUND_KEY as cg,getFixtureAttributes as ch,DARTS_MATCH_HUB_ADVERT_PLACEHOLDER_KEY as ci,__nuxt_component_0$1 as cj,getDefaultExportFromCjs as ck,twColors as cl,shallowReadonly as cm,setPageLayout as cn,isObject as co,isSVGElement as cp,frame as cq,cancelFrame as cr,supportsViewTimeline as cs,supportsScrollTimeline as ct,progress as cu,velocityPerSecond as cv,interpolate as cw,defaultOffset as cx,clamp as cy,noop as cz,defineComponent as d,_sfc_main$$ as e,createTextVNode as f,_sfc_main$V as g,createCommentVNode as h,renderList as i,createBlock as j,useRuntimeConfig as k,computed as l,useGCImage as m,normalizeClass as n,openBlock as o,_sfc_main$S as p,_sfc_main$O as q,ref as r,_sfc_main$W as s,toDisplayString as t,unref as u,_sfc_main$X as v,withCtx as w,_sfc_main$N as x,_sfc_main$M as y,useNuxtApp as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.