@dcl/landing-site 0.0.1-23617412190.commit-e3cca1e → 0.0.1-23618345269.commit-1e2a634
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AnimatedBackground-gNtI-YhV.js → AnimatedBackground-DaItTQFq.js} +2 -2
- package/assets/FooterLanding-DssbnrQv.js +1 -0
- package/assets/{add-CHM98Fes.js → add-DPPiowNV.js} +1 -1
- package/assets/all-wallets-Bz44-vkK.js +6 -0
- package/assets/{app-store-CRgqc_8W.js → app-store-BIDMwYtJ.js} +2 -2
- package/assets/{apple-DA-gL0ew.js → apple-N0qVBHJ_.js} +2 -2
- package/assets/arrow-bottom-DEr0DxNQ.js +8 -0
- package/assets/{arrow-bottom-circle-W7EphmHv.js → arrow-bottom-circle-CyIUslGZ.js} +2 -2
- package/assets/arrow-left-CL8RzR1U.js +8 -0
- package/assets/arrow-right-9ngyyIUg.js +8 -0
- package/assets/arrow-top-Ds4_-RxX.js +8 -0
- package/assets/auto-track-CCVKJMew.js +1 -0
- package/assets/{bank-BJ_zMNdO.js → bank-BXxzgEEm.js} +1 -1
- package/assets/{basic-Cbs3wtVd.js → basic-BeVmC8wl.js} +1 -1
- package/assets/{browser-BZI6LlMK.js → browser-BFjIZRUr.js} +2 -2
- package/assets/{card-a0PEwixX.js → card-QrT_SqqP.js} +2 -2
- package/assets/ccip-Cnf8kps5.js +1 -0
- package/assets/{checkmark-DxhM6kxf.js → checkmark-BMbPxxD7.js} +2 -2
- package/assets/{checkmark-bold-nUmAb0Jv.js → checkmark-bold-CJr27ZWW.js} +2 -2
- package/assets/chevron-bottom-D-0_NZL7.js +8 -0
- package/assets/chevron-left-CkfqwG7X.js +8 -0
- package/assets/chevron-right-VRrVnjRX.js +8 -0
- package/assets/chevron-top-DmsHTjIi.js +8 -0
- package/assets/{chrome-store-C0l7_S46.js → chrome-store-Cxd7qy2P.js} +2 -2
- package/assets/{clock-CGFlkuTk.js → clock-BnERhsls.js} +2 -2
- package/assets/close-CegnAZI6.js +8 -0
- package/assets/{coinPlaceholder-BcTAu_IN.js → coinPlaceholder-ChJPLsLs.js} +2 -2
- package/assets/{compass-AzcmZa1s.js → compass-DhggJQin.js} +2 -2
- package/assets/{copy-DU6nZmjR.js → copy-CPyS9JID.js} +2 -2
- package/assets/{core-kZLq_ADy.js → core-BsX5IiWg.js} +33 -32
- package/assets/cursor-DuDLrsyW.js +3 -0
- package/assets/{cursor-transparent-CBn-iCcY.js → cursor-transparent-nm7_wJtu.js} +1 -1
- package/assets/{desktop-Cgv-18ZV.js → desktop-lh-TFiWV.js} +2 -2
- package/assets/{disconnect-BccJ3jIT.js → disconnect-BVdZSUk4.js} +2 -2
- package/assets/{discord-5RUDhSal.js → discord-DXIOms3e.js} +2 -2
- package/assets/{etherscan-C3fPztHb.js → etherscan-C7MLFrad.js} +2 -2
- package/assets/{exclamation-triangle-D_ozpW4c.js → exclamation-triangle-BQlSv988.js} +2 -2
- package/assets/{extension-BBOn_gDX.js → extension-BpS3-8TK.js} +1 -1
- package/assets/{external-link-BWUOLdmG.js → external-link-Bhl3PYp_.js} +1 -1
- package/assets/{facebook-CPf0OEse.js → facebook-BhDHaw9e.js} +2 -2
- package/assets/{farcaster-CR6V0phI.js → farcaster-4D2R9BLw.js} +2 -2
- package/assets/filters-Cx1L6OOr.js +8 -0
- package/assets/{github-Df-6J-fJ.js → github-ZEREWWLi.js} +2 -2
- package/assets/{google-ZDEMGNHZ.js → google-G5T2o3XW.js} +1 -1
- package/assets/{help-circle-BL4M8ISL.js → help-circle-rjs8mUc4.js} +1 -1
- package/assets/hooks.module-Dz_XB4AG.js +1 -0
- package/assets/{id-B8ywMzga.js → id-CdFeC_id.js} +2 -2
- package/assets/{image-CwqhHOgq.js → image-25IylLgD.js} +2 -2
- package/assets/index-0pT38_PF.js +2 -0
- package/assets/index-1kXtXmtZ.js +1 -0
- package/assets/index-B06iF3RB.js +1 -0
- package/assets/index-B37VckPJ.js +1 -0
- package/assets/index-Ba0skkGV.js +51 -0
- package/assets/index-BgDqerLq.js +2 -0
- package/assets/index-BvDvxY19.js +811 -0
- package/assets/index-Cdwkr0dW.js +1 -0
- package/assets/{index-BfZPjAvn.js → index-CnGR-jpk.js} +3 -3
- package/assets/index-DBXLKIqk.js +1 -0
- package/assets/index-DmYudDJU.js +1 -0
- package/assets/index-UGAdGA2y.js +5 -0
- package/assets/index-WuZ7mIic.js +7 -0
- package/assets/index-i_Rpb8UV.js +1 -0
- package/assets/index-ikT2QzgB.js +1 -0
- package/assets/index-nibyPLVP.js +1 -0
- package/assets/index-rj6I7Dp8.js +44 -0
- package/assets/index-z5AtYTFU.js +1 -0
- package/assets/{index.es-D0tGeUGR.js → index.es-A2H6_-n5.js} +12 -11
- package/assets/index.umd-DLkXoDDP.js +1 -0
- package/assets/{info-COI3OebQ.js → info-BCYaCSNh.js} +2 -2
- package/assets/{info-circle-D_RgtoG_.js → info-circle-gsgfsSpe.js} +2 -2
- package/assets/{lightbulb-D29oA1kW.js → lightbulb-BDHFTG5h.js} +2 -2
- package/assets/{mail-CJ9rvNEO.js → mail-DiTw9Nrl.js} +1 -1
- package/assets/{mobile-BSTR0oWP.js → mobile-CXqu2RHA.js} +2 -2
- package/assets/{more-BcYAHybc.js → more-C2sMArXI.js} +2 -2
- package/assets/{network-placeholder-Cnunuezr.js → network-placeholder-CPz8HGx-.js} +2 -2
- package/assets/{nftPlaceholder-rT8UJE4K.js → nftPlaceholder-DfXkrt19.js} +2 -2
- package/assets/node-Dh3n99U-.js +4 -0
- package/assets/off-DkrCs4Mj.js +8 -0
- package/assets/{play-store-DvfWnN4y.js → play-store-bfQWoaGY.js} +2 -2
- package/assets/{plus-gHBDgGjM.js → plus-QWHXQdAC.js} +2 -2
- package/assets/{qr-code-DDHcNUue.js → qr-code-BkDfZ-Qo.js} +1 -1
- package/assets/{recycle-horizontal-BRiwD6Mt.js → recycle-horizontal-QwbqvQmV.js} +1 -1
- package/assets/{refresh-B9gXvGXV.js → refresh-mrgGy3xW.js} +2 -2
- package/assets/{reown-logo-WhOyJ0P-.js → reown-logo-BPaNSMQx.js} +2 -2
- package/assets/search-BC-KS3un.js +8 -0
- package/assets/secp256k1-Bm0d2i6U.js +1 -0
- package/assets/secp256k1-MIfy00vZ.js +1 -0
- package/assets/{send-Bwl7uhNH.js → send-TXNvdG3J.js} +2 -2
- package/assets/{swapHorizontal-DZpWZtIz.js → swapHorizontal-DB0tAXym.js} +2 -2
- package/assets/{swapHorizontalBold-BsXTfOUB.js → swapHorizontalBold-bt9pkPYB.js} +2 -2
- package/assets/{swapHorizontalMedium-C_6kbXTl.js → swapHorizontalMedium-sWdoPCsB.js} +2 -2
- package/assets/{swapHorizontalRoundedBold-C0Zn63rG.js → swapHorizontalRoundedBold-DHHovHd5.js} +2 -2
- package/assets/{swapVertical-3Bh1HEox.js → swapVertical-DTfIwviz.js} +2 -2
- package/assets/swiper-react-Bl4aS6YN.js +1 -0
- package/assets/{telegram-DNIzTF3I.js → telegram-5bTwLHz7.js} +2 -2
- package/assets/{three-dots-COxARji7.js → three-dots-C33y8Xmm.js} +2 -2
- package/assets/{twitch-CZ-7Kiwd.js → twitch-CHjNW3bL.js} +2 -2
- package/assets/{twitterIcon-Dcm6rS6L.js → twitterIcon-Bsvg5_qQ.js} +2 -2
- package/assets/{verify-CDFvKR62.js → verify-Cadwtk5M.js} +2 -2
- package/assets/{verify-filled-xoYiPqK4.js → verify-filled-tSZv_9lr.js} +2 -2
- package/assets/{w3m-modal-DelFzwRg.js → w3m-modal-9Q6B4hli.js} +1 -1
- package/assets/{wallet-BFpTXEJT.js → wallet-DhjaFVTL.js} +2 -2
- package/assets/{wallet-placeholder-AXXSMd3R.js → wallet-placeholder-B-dNSlaX.js} +2 -2
- package/assets/{walletconnect-Cz3JVcWt.js → walletconnect-BcwzL0ZV.js} +4 -4
- package/assets/{warning-circle-8Kak1pmh.js → warning-circle-D3W3qLdq.js} +1 -1
- package/assets/{x-C-F8mfxV.js → x-BZWPQTuH.js} +2 -2
- package/index.html +2 -5
- package/package.json +3 -3
- package/assets/FooterLanding-iYuz415B.js +0 -1
- package/assets/all-wallets-Qb9stbRm.js +0 -6
- package/assets/arrow-bottom-rhor6qOA.js +0 -8
- package/assets/arrow-left-Bq3H-u24.js +0 -8
- package/assets/arrow-right-CkiCqXKz.js +0 -8
- package/assets/arrow-top-BbayD3ny.js +0 -8
- package/assets/auto-track-CpyrW7jj.js +0 -1
- package/assets/chevron-bottom-C2GrTkGW.js +0 -8
- package/assets/chevron-left-TOHygVkY.js +0 -8
- package/assets/chevron-right-kK9l_fNM.js +0 -8
- package/assets/chevron-top-GkMD6fM_.js +0 -8
- package/assets/close-D_Rm3jAw.js +0 -8
- package/assets/cursor-BkgcU3pB.js +0 -3
- package/assets/filters-DJ44i8Mo.js +0 -8
- package/assets/index-BA7pz-wf.js +0 -1
- package/assets/index-BFntqBXC.js +0 -1
- package/assets/index-B_dMHlXr.js +0 -1
- package/assets/index-BgXJ6Z6L.js +0 -1
- package/assets/index-CJxXHUcP.js +0 -1
- package/assets/index-CXz9iuA3.js +0 -1
- package/assets/index-Cg_5qxO-.js +0 -2
- package/assets/index-CntXRSz5.js +0 -2
- package/assets/index-DIS5DQM_.js +0 -1
- package/assets/index-Dbv53o1b.js +0 -1
- package/assets/index-DoaqdCF9.js +0 -601
- package/assets/index-Dsk1niAz.js +0 -7
- package/assets/index-HuL12PNJ.js +0 -5
- package/assets/index-mgaHX57j.js +0 -1
- package/assets/index-vWYtvmN_.js +0 -1
- package/assets/index.umd-CIiTi8qb.js +0 -1
- package/assets/off-B_Wn42xj.js +0 -8
- package/assets/search-DpE00x6Q.js +0 -8
- package/assets/swiper-react-BALcxKpm.js +0 -1
- package/assets/vendor-mui-40jyI-Tp.js +0 -197
- package/assets/vendor-react-DJXYd7Dm.js +0 -40
- package/assets/vendor-web3-Dw3dBix7.js +0 -74
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{w as o}from"./core-kZLq_ADy.js";import"./vendor-web3-Dw3dBix7.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./index-DoaqdCF9.js";import"./index.es-D0tGeUGR.js";const m=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
3
|
-
fill="currentColor"
|
|
4
|
-
fill-rule="evenodd"
|
|
5
|
-
d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z"
|
|
6
|
-
clip-rule="evenodd"
|
|
7
|
-
/>
|
|
8
|
-
</svg>`;export{m as chevronRightSvg};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{w as o}from"./core-kZLq_ADy.js";import"./vendor-web3-Dw3dBix7.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./index-DoaqdCF9.js";import"./index.es-D0tGeUGR.js";const m=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
3
|
-
fill="currentColor"
|
|
4
|
-
fill-rule="evenodd"
|
|
5
|
-
d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z"
|
|
6
|
-
clip-rule="evenodd"
|
|
7
|
-
/>
|
|
8
|
-
</svg>`;export{m as chevronTopSvg};
|
package/assets/close-D_Rm3jAw.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{w as o}from"./core-kZLq_ADy.js";import"./vendor-web3-Dw3dBix7.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./index-DoaqdCF9.js";import"./index.es-D0tGeUGR.js";const m=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
3
|
-
fill="currentColor"
|
|
4
|
-
fill-rule="evenodd"
|
|
5
|
-
d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z"
|
|
6
|
-
clip-rule="evenodd"
|
|
7
|
-
/>
|
|
8
|
-
</svg>`;export{m as closeSvg};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{w as o}from"./core-kZLq_ADy.js";import"./vendor-web3-Dw3dBix7.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./index-DoaqdCF9.js";import"./index.es-D0tGeUGR.js";const e=o` <svg fill="none" viewBox="0 0 13 4">
|
|
2
|
-
<path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" />
|
|
3
|
-
</svg>`;export{e as cursorSvg};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{w as o}from"./core-kZLq_ADy.js";import"./vendor-web3-Dw3dBix7.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./index-DoaqdCF9.js";import"./index.es-D0tGeUGR.js";const m=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
|
-
<path
|
|
3
|
-
fill="currentColor"
|
|
4
|
-
fill-rule="evenodd"
|
|
5
|
-
d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z"
|
|
6
|
-
clip-rule="evenodd"
|
|
7
|
-
/>
|
|
8
|
-
</svg>`;export{m as filtersSvg};
|
package/assets/index-BA7pz-wf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M,j as n,r as l}from"./vendor-react-DJXYd7Dm.js";import{h as $,A as D,J as O,f as z,u as X,i as _,n as P,j as Y}from"./index-DoaqdCF9.js";import{S as G,G as v,W as a,X as U,Y as H,B as r,Z as F,_ as J,L as V,$ as Q,a0 as m,k as h,a1 as K,a2 as Z}from"./vendor-mui-40jyI-Tp.js";import{A as q}from"./AnimatedBackground-gNtI-YhV.js";import"./vendor-web3-Dw3dBix7.js";const tt=M.memo(t=>n.jsx(G,{...t,children:n.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:n.jsxs("g",{children:[n.jsx("path",{d:"M0 0H16V16H0z",fill:"none"}),n.jsx("path",{d:"M8 3c2.21 0 4 1.82 4 4.063 0 1.497-1.333 3.698-4 6.604C5.333 10.76 4 8.56 4 7.063 4 4.82 5.79 3 8 3zm0 2.54c-.828 0-1.5.682-1.5 1.523 0 .842.672 1.524 1.5 1.524s1.5-.682 1.5-1.524c0-.841-.672-1.523-1.5-1.523z",fill:t.htmlColor})]})})})),T=46,nt=v({"0%":{transform:"perspective(800px) rotateX(0deg) rotateY(0deg)"},"15%":{transform:"perspective(800px) rotateX(5deg) rotateY(1deg)"},"30%":{transform:"perspective(800px) rotateX(4deg) rotateY(3deg)"},"50%":{transform:"perspective(800px) rotateX(0deg) rotateY(5deg)"},"70%":{transform:"perspective(800px) rotateX(-4deg) rotateY(3deg)"},"85%":{transform:"perspective(800px) rotateX(-2deg) rotateY(1deg)"},"100%":{transform:"perspective(800px) rotateX(0deg) rotateY(0deg)"}}),j=a(U)(({theme:t,withShadow:o})=>({borderRadius:t.spacing(2),boxSizing:"border-box",minWidth:400,maxWidth:850,display:"flex",flexDirection:"column",flex:1,height:"100%",backgroundColor:"transparent",position:"relative",overflow:"hidden",transition:[t.transitions.create("transform",{duration:t.transitions.duration.complex}),t.transitions.create("box-shadow",{duration:t.transitions.duration.complex})],[t.breakpoints.up("sm")]:{"&:hover":{boxShadow:o?`0px 0px 20px 6px ${$("#DD56FF",.37)}`:"none",animation:`${nt} 0.8s ease-in-out`,transition:[t.transitions.create("transform",{duration:t.transitions.duration.complex}),t.transitions.create("box-shadow",{duration:t.transitions.duration.complex})].join(", ")}}})),k=a(H)(({theme:t})=>({borderRadius:t.spacing(2),flex:1,display:"flex",flexDirection:"column",position:"relative",backgroundColor:"transparent","&:hover .MuiCardActionArea-focusHighlight":{opacity:0}})),S=a(r)({position:"relative",width:"100%",overflow:"hidden"}),at=a(F)(({theme:t,imageHeight:o=329,hoverHeight:s=271})=>({height:o,width:"100%",borderRadius:`${t.spacing(2)} ${t.spacing(2)} 0 0`,backgroundSize:"cover",[t.breakpoints.up("sm")]:{transition:t.transitions.create("height",{duration:t.transitions.duration.complex}),".MuiCardActionArea-root:hover &":{height:s}}})),W=a(J)(({theme:t})=>({backgroundColor:t.palette.mode==="dark"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)",borderRadius:`0 0 ${t.spacing(2)} ${t.spacing(2)}`,display:"flex",flexDirection:"column",flex:1,width:"100%",position:"relative",overflow:"hidden",padding:t.spacing(2),"&:last-child":{paddingBottom:t.spacing(2)}})),ot=a(r)(({theme:t})=>({position:"absolute",top:t.spacing(2),left:t.spacing(2),right:t.spacing(2),display:"flex",alignItems:"center",justifyContent:"space-between",gap:t.spacing(1),zIndex:10,pointerEvents:"none","& > *":{pointerEvents:"auto"}})),et=a(r)(({theme:t,transparent:o})=>({...!o&&{padding:t.spacing(1,1),minWidth:t.spacing(4),height:t.spacing(4),backgroundColor:t.palette.background.default,borderRadius:t.spacing(1),fontSize:t.typography.subtitle1.fontSize,fontWeight:t.typography.fontWeightBold},maxWidth:"45%",color:t.palette.text.primary,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& > *":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,maxWidth:"100%"}})),it=a(r)({"& .MuiTypography-root":{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word"}}),rt=a(r)(({theme:t})=>({display:"flex",flexDirection:"column",flex:1,gap:t.spacing(1)})),A=a(r)(({theme:t})=>({display:"flex",gap:t.spacing(1),alignItems:"center",flex:"1 1 auto",maxWidth:"50%",overflow:"hidden",[t.breakpoints.down("sm")]:{maxWidth:"100%"}})),st=a(r)({flex:1,minWidth:0,overflow:"hidden","& .MuiTypography-root":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),dt=a(V)(({theme:t})=>({textDecoration:"none",fontWeight:t.typography.fontWeightBold,"&:hover":{textDecoration:"none"}})),B=a(r)(({theme:t})=>({display:"flex",gap:t.spacing(1),alignItems:"center",justifyContent:"space-between",marginTop:"auto",minWidth:0,[t.breakpoints.up("sm")]:{transition:t.transitions.create("margin-bottom",{duration:t.transitions.duration.complex}),".MuiCardActionArea-root:hover &":{marginBottom:`calc(${T}px + ${t.spacing(2)})`}}})),ct=a(r)(({theme:t})=>({flex:"1 1 auto",minWidth:0,maxWidth:"50%",display:"flex",justifyContent:"flex-end",opacity:0,height:0,overflow:"hidden",transform:"translateX(20px)",transition:[t.transitions.create("opacity",{duration:t.transitions.duration.complex}),t.transitions.create("height",{duration:t.transitions.duration.complex}),t.transitions.create("transform",{duration:t.transitions.duration.complex})].join(", "),".MuiCardActionArea-root:hover &":{opacity:1,height:"auto",transform:"translateX(0)"},[t.breakpoints.down("xs")]:{display:"none"}})),lt=a(Q)(({theme:t})=>({backgroundColor:t.palette.mode==="dark"?"rgba(0, 0, 0, 0.4)":"rgba(255, 255, 255, 0.4)",color:t.palette.text.primary,cursor:"pointer",borderRadius:t.spacing(1),maxWidth:"100%","& .MuiChip-label":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& path:last-child":{fill:t.palette.text.primary}})),pt=a(r)(({theme:t})=>({position:"absolute",bottom:t.spacing(2),left:t.spacing(2),right:t.spacing(2),opacity:0,transform:`translateY(calc(100% + ${t.spacing(2)}))`,transition:[t.transitions.create("opacity",{duration:t.transitions.duration.complex}),t.transitions.create("transform",{duration:t.transitions.duration.complex})].join(", "),[t.breakpoints.up("sm")]:{".MuiCardActionArea-root:hover &":{opacity:1,transform:"translateY(0)"}},[t.breakpoints.down("xs")]:{display:"none"}})),gt=a(r)({display:"flex",flexDirection:"column",flex:1,width:"100%"}),ut=a(r)(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"center",gap:t.spacing(1),width:"100%",height:T,border:"none",borderRadius:t.spacing(2),backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,fontSize:16,fontWeight:t.typography.fontWeightBold,textTransform:"uppercase",cursor:"pointer","& svg":{width:24,height:24},"&:hover":{backgroundColor:t.palette.primary.dark},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:2},"&:active":{backgroundColor:t.palette.primary.dark}})),ft=a(m)({height:329,width:"100%",borderRadius:0,transform:"none"}),xt=a(m)(({theme:t})=>({width:"60%",fontSize:"1.25rem",marginBottom:t.spacing(6),borderRadius:t.shape.borderRadius})),ht=a(m)(({theme:t})=>({width:t.spacing(4),height:t.spacing(4),flexShrink:0})),mt=a(m)(({theme:t})=>({height:20,flex:1,borderRadius:t.shape.borderRadius})),E=l.memo(t=>{const{image:o,sceneName:s,avatar:e,coordinates:d,withShadow:p,leftBadge:g,leftBadgeTransparent:i=!1,onClick:c,redirectToAuth:x=!1,hideLocation:C=!1,loading:L=!1}=t,w=d?.includes(".dcl.eth")?`https://decentraland.org/jump?realm=${d}`:`https://decentraland.org/jump?position=${d}`;if(L)return n.jsx(j,{children:n.jsxs(k,{disabled:!0,children:[n.jsx(S,{children:n.jsx(ft,{variant:"rectangular"})}),n.jsx(W,{children:n.jsxs(rt,{children:[n.jsx(xt,{variant:"rectangular"}),n.jsx(B,{children:n.jsxs(A,{children:[n.jsx(ht,{variant:"circular"}),n.jsx(mt,{variant:"rectangular"})]})})]})})]})});const N=l.useCallback(()=>{if(c){c();return}if(x){window.location.href="/auth";return}d&&window.open(w,"_blank")},[c,x,d,w]);return n.jsx(j,{withShadow:p,children:n.jsxs(k,{onClick:N,children:[g!==void 0&&n.jsx(ot,{children:n.jsx(et,{transparent:i,children:n.jsx(r,{component:"span",children:g})})}),n.jsx(S,{children:n.jsx(at,{image:o})}),n.jsxs(W,{children:[n.jsxs(gt,{children:[n.jsx(it,{children:n.jsx(h,{variant:"h6",component:"div",gutterBottom:!0,children:s})}),(e||d&&!C)&&n.jsxs(B,{children:[e&&n.jsxs(A,{children:[n.jsx(D,{size:"small",avatar:e}),n.jsx(st,{children:n.jsxs(h,{variant:"body2",children:["by ",n.jsx(dt,{href:`https://decentraland.org/profile/accounts/${e.ethAddress}`,children:e.name})]})})]}),d&&!C&&n.jsx(ct,{children:n.jsx(lt,{label:d,size:"small",icon:n.jsx(tt,{})})})]})]}),n.jsx(pt,{children:n.jsxs(ut,{children:[n.jsx("span",{children:"JUMP IN"}),n.jsx(O,{})]})})]})]})})});E.displayName="EventCard";const yt=a(r)(({theme:t})=>({width:50,height:50,borderRadius:t.spacing(2),background:z.flare,padding:3,[t.breakpoints.down("sm")]:{width:38,height:38,borderRadius:t.spacing(1.5)}})),bt=a(r)(({theme:t})=>({width:"100%",height:"100%",borderRadius:t.spacing(1.5),backgroundColor:t.palette.background.default,display:"flex",alignItems:"center",justifyContent:"center",fontSize:t.typography.h6.fontSize,fontWeight:t.typography.fontWeightBold,color:t.palette.text.primary,[t.breakpoints.down("sm")]:{borderRadius:t.spacing(1),fontSize:t.typography.body2.fontSize}})),vt=a(r)(({theme:t})=>({background:z.cerise,borderRadius:12,padding:t.spacing(1,1.5),display:"flex",alignItems:"center",justifyContent:"center"})),Ct=a(h)(({theme:t})=>({color:"#fff",fontWeight:t.typography.fontWeightBold,fontSize:20,textTransform:"uppercase",letterSpacing:t.typography.overline.letterSpacing,[t.breakpoints.down("sm")]:{fontSize:14}})),wt=v({"0%, 100%":{opacity:1},"50%":{opacity:.4}}),jt=v({"0%, 100%":{transform:"scale(1)"},"50%":{transform:"scale(1.3)"}}),kt=a(r)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.5),height:26,padding:t.spacing(0,1.5),backgroundColor:t.palette.error.main,color:t.palette.common.white,borderRadius:t.spacing(1),fontSize:t.typography.caption.fontSize,fontWeight:t.typography.fontWeightBold,textTransform:"uppercase",lineHeight:1,"& .MuiSvgIcon-root":{fontSize:14,animation:`${jt} 1.5s ease-in-out infinite`}}));a(r)({width:8,height:8,borderRadius:"50%",backgroundColor:"currentColor",animation:`${wt} 1.5s ease-in-out infinite`});const St=a(r)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(.75),height:26,padding:t.spacing(0,1.5),backgroundColor:t.palette.background.default,color:t.palette.text.primary,borderRadius:t.spacing(1),fontSize:t.typography.caption.fontSize,fontWeight:t.typography.fontWeightBold,lineHeight:1,"& .MuiSvgIcon-root":{fontSize:14}})),Wt=a(r)(({theme:t})=>({width:8,height:8,borderRadius:"50%",backgroundColor:t.palette.success.main})),At=a(r)(({theme:t})=>({display:"flex",alignItems:"center",gap:t.spacing(1)})),Bt=l.memo(({value:t})=>n.jsx(yt,{children:n.jsx(bt,{children:t})}));Bt.displayName="NumberBadge";const It=l.memo(({text:t})=>n.jsx(vt,{children:n.jsx(Ct,{children:t})}));It.displayName="TextBadge";const R=l.memo(()=>n.jsxs(kt,{children:[n.jsx(K,{}),"LIVE"]}));R.displayName="LiveBadge";const y=l.memo(({count:t})=>n.jsxs(St,{children:[n.jsx(Wt,{}),n.jsx(Z,{}),t]}));y.displayName="UserCountBadge";var f=(t=>(t.EVENT="event",t.PLACE="place",t))(f||{});const zt=5,I=3;function u(t,o){return`${t},${o}`}function Tt(t,o){const s=new Set(t.map(e=>u(e.x,e.y)));for(const[e,d]of o){const p=u(e,d);if(s.has(p))return t.find(g=>u(g.x,g.y)===p)}}function Et(t){const o=t.find(e=>e.name.toLowerCase().includes("genesis plaza")),s=o?u(o.baseCoords[0],o.baseCoords[1]):"0,0";return{type:f.PLACE,id:o?.id??"genesis-plaza",title:o?.name??"Genesis Plaza",users:o?.usersTotalCount??0,image:o?.thumbnail??"",coordinates:s,creatorName:"Decentraland Foundation"}}function Rt(t,o){const s=o.filter(i=>i.usersTotalCount>=zt),e=[],d=new Set,p=new Set;for(const i of s){const c=Tt(t,i.parcels);c&&!p.has(c.id)&&(e.push({type:f.EVENT,id:c.id,title:c.name,users:i.usersTotalCount,image:c.image,coordinates:u(c.x,c.y),creatorAddress:c.user}),d.add(i.id),p.add(c.id))}e.sort((i,c)=>c.users-i.users);const g=s.filter(i=>!d.has(i.id)).sort((i,c)=>c.usersTotalCount-i.usersTotalCount);for(const i of g){const c=i.name.toLowerCase().includes("genesis plaza");e.push({type:f.PLACE,id:i.id,title:i.name,users:i.usersTotalCount,image:i.thumbnail,coordinates:u(i.baseCoords[0],i.baseCoords[1]),...c&&{creatorName:"Decentraland Foundation"}})}if(e.length<I){const i=Et(o);e.some(x=>x.id===i.id)||e.push(i)}return e.slice(0,I)}function Lt(){const t=X();return l.useCallback(function(s,e){return!s||!t.messages[s]?s||"":t.formatMessage({id:s},e)},[t])}const b=l.memo(({card:t,loading:o})=>{const{data:s}=_(t?.creatorAddress,{skip:!t?.creatorAddress}),d=s?.avatars?.[0]??(t?.creatorName?{name:t.creatorName,ethAddress:""}:void 0);return n.jsx(E,{loading:o,image:t?.image??"",sceneName:t?.title??"",avatar:d,coordinates:t?.coordinates,leftBadgeTransparent:!0,hideLocation:!0,leftBadge:t?.type===f.EVENT?n.jsxs(At,{children:[n.jsx(R,{}),n.jsx(y,{count:t.users})]}):t?n.jsx(y,{count:t.users}):void 0})});b.displayName="WhatsOnCard";const Nt=a(r)(({theme:t})=>({width:"100%",padding:t.spacing(10,8),display:"flex",flexDirection:"column",alignItems:"center",gap:t.spacing(6),position:"relative",overflow:"hidden",[t.breakpoints.down("sm")]:{padding:t.spacing(6,2)}})),Mt=a(h)({color:P.white,fontWeight:700,textAlign:"center",fontSize:"clamp(1.75rem, 3vw, 2.5rem)"}),$t=a(r)(({theme:t})=>({display:"grid",justifyContent:"center",justifyItems:"center",gap:t.spacing(2),width:"calc(100% - 160px)",gridTemplateColumns:"repeat(auto-fit, minmax(400px, 1fr))","& > *":{minWidth:0,width:"100%"},[t.breakpoints.down("sm")]:{width:`calc(100% - ${t.spacing(4)})`,gridTemplateColumns:"1fr"}})),Dt=[0,1,2],Ot=l.memo(()=>{const t=Lt(),{data:o,isLoading:s}=Y(void 0,{pollingInterval:6e4}),e=l.useMemo(()=>o?Rt(o.liveEvents,o.hotScenes):[],[o]);return!s&&e.length===0?null:n.jsxs(Nt,{children:[n.jsx(q,{variant:"absolute"}),n.jsx(Mt,{variant:"h3",children:t("component.home.whats_on.title")}),n.jsx($t,{children:s?Dt.map(d=>n.jsx(b,{loading:!0},d)):e.map(d=>n.jsx(b,{card:d},d.id))})]})});Ot.displayName="WhatsOn";export{Ot as WhatsOn};
|
package/assets/index-BFntqBXC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,j as t}from"./vendor-react-DJXYd7Dm.js";import{S as m,P as y,A as w,a as C}from"./swiper-react-BALcxKpm.js";import{n as r,k as c}from"./index-DoaqdCF9.js";import{W as i,B as n,k as d}from"./vendor-mui-40jyI-Tp.js";import"./vendor-web3-Dw3dBix7.js";const v=i(n)(({theme:e})=>({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(6),padding:`${e.spacing(10)} ${e.spacing(2.5)}`,width:"100%",backgroundColor:"rgba(0, 0, 0, 0.1)",overflow:"hidden",[e.breakpoints.down("sm")]:{padding:`${e.spacing(6)} 0`,gap:e.spacing(4)}})),j=i(d)(({theme:e})=>({color:r.white,fontWeight:600,textAlign:"center",[e.breakpoints.down("sm")]:{fontSize:32,padding:`0 ${e.spacing(3)}`}})),k=i(n)(({theme:e})=>({display:"flex",gap:e.spacing(3),width:"100%",justifyContent:"center",padding:`0 ${e.spacing(2.5)}`,zIndex:1,[e.breakpoints.down("sm")]:{display:"none"}})),S=i(n)(({theme:e})=>({position:"relative",flex:"1 1 0",minWidth:0,maxWidth:680,height:450,borderRadius:e.spacing(3),overflow:"hidden",backgroundColor:"rgba(0, 0, 0, 0.6)",boxShadow:"0px 2px 4px 0px rgba(0, 0, 0, 0.04)",cursor:"pointer",display:"flex",flexDirection:"column","&:hover .catch-vibe-video":{opacity:1},"&:hover .catch-vibe-image":{opacity:0},[e.breakpoints.down("lg")]:{height:380},[e.breakpoints.down("md")]:{height:320}})),I=i(n)({position:"relative",flex:1,minHeight:0,borderRadius:"24px",overflow:"hidden"}),$=i("img")({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",transition:"opacity 0.4s ease",zIndex:1}),F=i("video")({position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",opacity:0,transition:"opacity 0.4s ease"}),z=i(n)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:`${e.spacing(2)} ${e.spacing(1.5)} ${e.spacing(2)} ${e.spacing(2)}`,flexShrink:0})),P=i(n)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1)})),R=i(n)({position:"relative",width:35,height:35,borderRadius:"50%",border:"2.5px solid rgba(255, 255, 255, 0.5)",backgroundColor:"#00B453",flexShrink:0}),V=i("img")({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:30,height:30,borderRadius:"50%",objectFit:"cover"}),E=i(n)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:30.5,height:30.5,borderRadius:"50%",backgroundColor:"#31C11A",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"}),M=i(d)({color:r.white,fontWeight:600,fontSize:14,lineHeight:1.57}),T=i(d)({color:r.white,fontWeight:600,fontSize:14,lineHeight:1.57}),W=i(n)({position:"absolute",bottom:13,left:13,display:"flex",alignItems:"center",gap:4,height:26,padding:"5.5px 6px",borderRadius:8,backgroundColor:"#161518",zIndex:2,transition:"opacity 0.3s ease"}),N=i(n)({width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #FCFCFC",flexShrink:0}),A=i(d)({color:"#FCFCFC",fontWeight:600,fontSize:14,lineHeight:"normal",whiteSpace:"nowrap"}),B=i("img")(({theme:e})=>({position:"absolute",right:-20,bottom:-40,height:"110%",maxHeight:650,pointerEvents:"none",zIndex:0,[e.breakpoints.down("lg")]:{right:-60,opacity:.5},[e.breakpoints.down("md")]:{display:"none"}})),D=i(n)(({theme:e})=>({display:"none",width:"100%",zIndex:1,[e.breakpoints.down("sm")]:{display:"block"},"& .swiper":{paddingBottom:e.spacing(5)},"& .swiper-slide":{height:300,display:"flex",justifyContent:"center",padding:`0 ${e.spacing(2)}`},"& .swiper-pagination":{bottom:"0 !important"},"& .swiper-pagination-bullet":{backgroundColor:"rgba(255, 255, 255, 0.4)",opacity:1,width:8,height:8},"& .swiper-pagination-bullet-active":{backgroundColor:r.white}}));function L(e){const a=Math.floor(e/60),l=Math.floor(e%60);return`${a}:${l.toString().padStart(2,"0")}`}const h=({item:e})=>{const a=s.useRef(null),[l,p]=s.useState(!1),[u,x]=s.useState(null);s.useEffect(()=>{const o=a.current;if(!o)return;const g=()=>{o.duration&&isFinite(o.duration)&&x(L(o.duration))};return o.addEventListener("loadedmetadata",g),()=>o.removeEventListener("loadedmetadata",g)},[]);const b=s.useCallback(()=>{const o=a.current;o&&(o.muted=!1,o.play()),p(!0)},[]),f=s.useCallback(()=>{const o=a.current;o&&(o.pause(),o.currentTime=0,o.muted=!0),p(!1)},[]);return t.jsxs(S,{onMouseEnter:b,onMouseLeave:f,children:[t.jsxs(I,{children:[t.jsx($,{className:"catch-vibe-image",src:e.imageUrl,alt:e.userName,loading:"lazy"}),t.jsx(F,{className:"catch-vibe-video",ref:a,loop:!0,muted:!0,playsInline:!0,preload:"metadata",src:e.videoUrl}),!l&&t.jsxs(W,{children:[t.jsx(N,{}),t.jsx(A,{children:u??"0:00"})]})]}),t.jsxs(z,{children:[t.jsxs(P,{children:[t.jsx(R,{children:t.jsx(E,{children:t.jsx(V,{src:e.userAvatarUrl,alt:e.userName})})}),t.jsx(M,{children:e.userName})]}),t.jsx(T,{children:"Community Member"})]})]})},U=s.memo(()=>t.jsxs(v,{children:[t.jsx(j,{variant:"h3",children:c.title}),t.jsx(k,{children:c.cards.map((e,a)=>t.jsx(h,{item:e},a))}),t.jsx(D,{children:t.jsx(m,{modules:[y,w],pagination:{clickable:!0},autoplay:{delay:5e3,disableOnInteraction:!1},loop:!0,spaceBetween:0,slidesPerView:1,children:c.cards.map((e,a)=>t.jsx(C,{children:t.jsx(h,{item:e})},a))})}),t.jsx(B,{src:"/persona.png",alt:"","aria-hidden":!0})]}));U.displayName="CatchTheVibe";export{U as CatchTheVibe};
|
package/assets/index-B_dMHlXr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as _,j as m}from"./index-HuL12PNJ.js";import"./vendor-web3-Dw3dBix7.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";var p=(e=>(e.Start="magic_oauth_login_with_redirect_start",e.Verify="magic_oauth_login_with_redirect_verify",e.Popup="magic_oauth_login_with_popup",e.VerifyTelegramData="magic_oauth_verify_telegram_data",e))(p||{}),u=(e=>(e.InvalidRequest="invalid_request",e.InvalidClient="invalid_client",e.InvalidScope="invalid_scope",e.InvalidGrant="invalid_grant",e.UnauthorizedClient="unauthorized_client",e.UnsupportedResponseType="unsupported_response_type",e.UnsupportedGrantType="unsupported_grant_type",e.UnsupportedTokenType="unsupported_token_type",e.AccessDenied="access_denied",e.ServerError="server_error",e.TemporarilyUnavailable="temporarily_unavailable",e))(u||{}),g=(e=>(e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.ConnectionLost="CONNECTION_WAS_LOST",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",e))(g||{}),h=(e=>(e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE",e.ProductAnnouncement="ANNOUNCEMENT",e))(h||{}),E=(e=>(e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser",e[e.RedirectLoginComplete=-10015]="RedirectLoginComplete",e[e.DpopInvalidated=-10019]="DpopInvalidated",e))(E||{}),v=(e=>(e.PROVIDER="magic_3pw_provider",e.ADDRESS="magic_3pw_address",e.CHAIN_ID="magic_3pw_chainId",e))(v||{}),y=(e=>(e.WalletConnected="wallet_connected",e.WalletRejected="wallet_rejected",e.Web3ModalSelected="web3modal_selected",e))(y||{}),I=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e.GetMultichainPublicAddress="magic_get_multichain_public_address",e))(I||{}),f=(e=>(e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",e.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",e.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",e.MAGIC_PONG="MAGIC_PONG",e.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",e.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",e))(f||{}),R=(e=>(e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",e.MAGIC_PING="MAGIC_PING",e))(R||{}),A=(e=>(e.UpdateEmail="update-email",e.MFA="mfa",e.Recovery="recovery",e))(A||{}),M=(e=>(e.Retry="retry",e))(M||{}),w=(e=>(e.EmailSent="email-sent",e.EmailNotDeliverable="email-not-deliverable",e))(w||{}),C=(e=>(e.VerifyEmailOtp="verify-email-otp",e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.VerifyRecoveryCode="verify-recovery-code",e.Cancel="cancel",e))(C||{}),N=(e=>(e.VerifySmsOtp="verify-sms-otp",e.Cancel="cancel",e.Retry="retry",e))(N||{}),S=(e=>(e.SmsOTPSent="sms-otp-sent",e.InvalidSmsOtp="invalid-sms-otp",e.ExpiredSmsOtp="expired-sms-otp",e))(S||{}),O=(e=>(e.EmailOTPSent="email-otp-sent",e.InvalidEmailOtp="invalid-email-otp",e.InvalidMfaOtp="invalid-mfa-otp",e.ExpiredEmailOtp="expired-email-otp",e.MfaSentHandle="mfa-sent-handle",e.RecoveryCodeSentHandle="recovery-code-sent-handle",e.InvalidRecoveryCode="invalid-recovery-code",e.RecoveryCodeSuccess="recovery-code-success",e.LoginThrottled="login-throttled",e.MaxAttemptsReached="max-attempts-reached",e))(O||{}),T=(e=>(e.Retry="device-retry",e))(T||{}),U=(e=>(e.DeviceApproved="device-approved",e.DeviceNeedsApproval="device-needs-approval",e.DeviceVerificationLinkExpired="device-verification-link-expired",e.DeviceVerificationEmailSent="device-verification-email-sent",e))(U||{}),P=(e=>(e.Retry="Recency/auth-factor-retry",e.Cancel="Recency/auth-factor-verification-cancel",e.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",e.VerifyMFACode="Recency/verify-mfa-code",e))(P||{}),L=(e=>(e.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",e.PrimaryAuthFactorVerified="Recency/auth-factor-verified",e.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",e.EmailExpired="Recency/auth-factor-verification-email-expired",e.EmailSent="Recency/auth-factor-verification-email-sent",e.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",e))(L||{}),D=(e=>(e.RetryWithNewEmail="UpdateEmail/retry-with-new-email",e.Cancel="UpdateEmail/new-email-verification-cancel",e.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",e))(D||{}),k=(e=>(e.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",e.EmailUpdated="UpdateEmail/email-updated",e.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",e.EmailExpired="UpdateEmail/new-email-verification-email-expired",e.EmailSent="UpdateEmail/new-email-verification-email-sent",e.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",e.InvalidEmail="UpdateEmail/new-email-invalid",e.EmailAlreadyExists="UpdateEmail/new-email-already-exists",e))(k||{}),G=(e=>(e.IDTokenCreated="Auth/id-token-created",e))(G||{}),b=(e=>(e.Cancel="Farcaster/cancel",e))(b||{}),F=(e=>(e.MFASecretGenerated="mfa-secret-generated",e.InvalidMFAOtp="invalid-mfa-otp",e.MFARecoveryCodes="mfa-recovery-codes",e))(F||{}),V=(e=>(e.VerifyMFACode="verify-mfa-code",e.Cancel="cancel-mfa-setup",e))(V||{}),x=(e=>(e.MFACodeRequested="mfa-code-requested",e.InvalidMFAOtp="invalid-mfa-otp",e.InvalidRecoveryCode="invalid-recovery-code",e))(x||{}),W=(e=>(e.VerifyMFACode="verify-mfa-code",e.LostDevice="lost-device",e.Cancel="cancel-mfa-disable",e))(W||{}),q=(e=>(e.Harmony="HARMONY",e))(q||{}),H=(e=>(e.ClosedByUser="closed-by-user",e))(H||{}),Y=(e=>(e.ClosedByUser="closed-by-user-on-received",e))(Y||{}),B=(e=>(e.EnterNewPhoneNumber="enter-new-phone-number",e.EnterOtpCode="enter-otp-code",e.RecoveryFactorAlreadyExists="recovery-factor-already-exists",e.MalformedPhoneNumber="malformed-phone-number",e.InvalidOtpCode="invalid-otp-code",e.RecoveryFactorUpdated="recovery-factor-updated",e.RecoveryFactorDeleted="recovery-factor-deleted",e))(B||{}),K=(e=>(e.SendNewPhoneNumber="send-new-phone-number",e.SendOtpCode="send-otp-code",e.Cancel="cancel",e.StartEditPhoneNumber="start-edit-phone-number",e))(K||{}),z=(e=>(e.PhoneNumber="phone_number",e))(z||{}),j=(e=>(e.SmsOtpSent="sms-otp-sent",e.LoginThrottled="login-throttled",e.InvalidSmsOtp="invalid-sms-otp",e.SmsVerified="sms-verified",e.AccountRecovered="account-recovered",e.UpdateEmailRequired="update-email-required",e))(j||{}),J=(e=>(e.Cancel="cancel",e.VerifyOtp="verify-otp-code",e.ResendSms="resend-sms-otp",e.UpdateEmail="update-email",e))(J||{}),X=(e=>(e.Success="nft-checkout-success",e.Failure="nft-checkout-failure",e.Initiated="nft-checkout-initiated",e.Disconnect="disconnect",e))(X||{}),Q=(e=>(e.WalletInfoFetched="Wallet/wallet-info-fetched",e))(Q||{}),$=(e=>(e.CloseMagicWindow="close-magic-window",e))($||{}),s=(e=>(e.PopupUrl="popup-url",e))(s||{}),d=(e=>(e.PopupEvent="popup-event",e.Cancel="cancel",e))(d||{}),oe=class extends _.Internal{name="oauth2";config={};compat={"magic-sdk":">=2.4.6","@magic-sdk/react-native":!1,"@magic-sdk/react-native-bare":!1,"@magic-sdk/react-native-expo":!1};constructor(){super(),this.seamlessTelegramLogin()}loginWithRedirect(e){return this.utils.createPromiEvent(async(t,o)=>{let c=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_redirect_start",[{...e,apiKey:this.sdk.apiKey,platform:"web"}]),n=await this.request(c),i=n,r=n;if(r.error&&o(this.createError(r.error,r.error_description??"An error occurred.",{errorURI:r.error_uri,provider:r.provider})),i?.oauthAuthoriationURI){let a=i.useMagicServerCallback?new URL(i.oauthAuthoriationURI,this.sdk.endpoint).href:i.oauthAuthoriationURI;i?.shouldReturnURI?t(a):window.location.href=a}t(null)})}getRedirectResult(e={}){let t=e?.optionalQueryString||window.location.search,o=window.location.origin+window.location.pathname;return window.history.replaceState(null,"",o),Z.call(this,e,t)}loginWithPopup(e){let t=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_popup",[{...e,returnTo:window.location.href,apiKey:this.sdk.apiKey,platform:"web"}]),o=m(async(c,n)=>{try{let i=this.request(t),r=l=>{this.createIntermediaryEvent(d.PopupEvent,t.id)(l.data)};e.shouldReturnURI&&i.on(s.PopupUrl,l=>{window.addEventListener("message",r),o.emit(s.PopupUrl,l)});let a=await i;window.removeEventListener("message",r),a.error?n(a):c(a)}catch(i){n(i)}});return o.on(d.Cancel,()=>{this.createIntermediaryEvent(d.Cancel,t.id)()}),o}seamlessTelegramLogin(){try{if(!window.location.hash.toString().includes("#tgWebAppData"))return;let e=document.createElement("script");e.src="https://telegram.org/js/telegram-web-app.js",document.head.prepend(e),e.onload=async()=>{try{let t=window.Telegram?.WebApp.initData,o=this.utils.createJsonRpcRequestPayload("magic_oauth_verify_telegram_data",[{userData:t,isMiniApp:!0}]);await this.request(o)}catch(t){console.log("Error while verifying telegram data",t)}}}catch(e){console.log("Error while loading telegram-web-app script",e)}}};function Z(e,t){return this.utils.createPromiEvent(async(o,c)=>{let n=this.utils.createJsonRpcRequestPayload("magic_oauth_login_with_redirect_verify",[{authorizationResponseParams:t,magicApiKey:this.sdk.apiKey,platform:"web",...e}]),i=await this.request(n),r=i,a=i;a.error&&c(this.createError(a.error,a.error_description??"An error occurred.",{errorURI:a.error_uri,provider:a.provider})),o(r)})}export{u as OAuthErrorCode,oe as OAuthExtension,p as OAuthPayloadMethods};
|
package/assets/index-BgXJ6Z6L.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./index-DoaqdCF9.js";import{i as c}from"./is-plan-event-enabled-DeNtQvA5.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./vendor-web3-Dw3dBix7.js";function l(r,u){var n,i;if(!r||!Object.keys(r))return{};var o=r.integrations?Object.keys(r.integrations).filter(function(e){return r.integrations[e]===!1}):[],a=[];return((n=u.remotePlugins)!==null&&n!==void 0?n:[]).forEach(function(e){o.forEach(function(t){e.creationName==t&&a.push(e.name)})}),((i=u.remotePlugins)!==null&&i!==void 0?i:[]).reduce(function(e,t){return t.settings.subscriptions&&a.includes(t.name)&&t.settings.subscriptions.forEach(function(f){return e["".concat(t.name," ").concat(f.partnerAction)]=!1}),e},{})}function h(r,u){function n(i){var o=r,a=i.event.event;if(o&&a){var e=o[a];if(c(o,e)){var t=l(e,u);i.updateEvent("integrations",s(s(s({},i.event.integrations),e?.integrations),t))}else return i.updateEvent("integrations",s(s({},i.event.integrations),{All:!1,"Segment.io":!0})),i}return i}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:n,alias:n,track:n,identify:n,group:n}}export{h as schemaFilter};
|
package/assets/index-CJxXHUcP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,e as v,c as _,a as p}from"./index-DoaqdCF9.js";import{l as z,a as k,u as j,r as w,b as P,C as N,c as C,d as y,e as F,m as L,i as S,f as R,h as B,P as Q,j as W,k as G,n as T,o as U}from"./index-Cg_5qxO-.js";import{i as V}from"./is-plan-event-enabled-DeNtQvA5.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./vendor-web3-Dw3dBix7.js";import"./inherits_browser-BlmhoU4v.js";function D(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function E(e,t){return t===void 0&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function H(e){return("Integration"in e?e.Integration:e).prototype.name}function J(e,t,n){var i,a;try{var r=((a=(i=window?.performance)===null||i===void 0?void 0:i.getEntriesByName(e,"resource"))!==null&&a!==void 0?a:[])[0];r&&t.stats.gauge("legacy_destination_time",Math.round(r.duration),_([n],r.duration<100?["cached"]:[],!0))}catch{}}function K(e,t,n){var i;if("Integration"in e){var a={user:function(){return n.user()},addIntegration:function(){}};e(a),i=e.Integration}else i=e;var r=new i(t);return r.analytics=n,r}function X(e,t,n,i){return f(this,void 0,void 0,function(){var a,r,o,u,s,d;return v(this,function(c){switch(c.label){case 0:a=D(t),r=E(a,i),o=k(),u="".concat(o,"/integrations/").concat(r??a,"/").concat(n,"/").concat(r??a,".dynamic.js.gz"),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,z(u)];case 2:return c.sent(),J(u,e,t),[3,4];case 3:throw s=c.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),s;case 4:return d=window["".concat(a,"Deps")],[4,Promise.all(d.map(function(g){return z(o+g+".gz")}))];case 5:return c.sent(),window["".concat(a,"Loader")](),[2,window["".concat(a,"Integration")]]}})})}function Y(e,t,n){return f(this,void 0,void 0,function(){var i,a,r,o;return v(this,function(u){return i=k(),a=D(e),r=E(e,n),o="".concat(i,"/integrations/").concat(r??a,"/").concat(t,"/").concat(r??a,".dynamic.js.gz"),[2,j(o)]})})}function Z(e){var t,n,i,a;return(a=(n=(t=e?.versionSettings)===null||t===void 0?void 0:t.override)!==null&&n!==void 0?n:(i=e?.versionSettings)===null||i===void 0?void 0:i.version)!==null&&a!==void 0?a:"latest"}var $=function(e,t){var n,i=t.type,a=t.bundlingStatus,r=t.versionSettings,o=a!=="unbundled"&&(i==="browser"||((n=r?.componentTypes)===null||n===void 0?void 0:n.includes("browser")));return!e.startsWith("Segment")&&e!=="Iterable"&&o},q=function(e,t){var n=t.All===!1&&t[e]===void 0;return t[e]===!1||n};function x(e,t){return f(this,void 0,void 0,function(){var n,i=this;return v(this,function(a){switch(a.label){case 0:return n=[],P()?[2,t]:[4,R(function(){return t.length>0&&T()},function(){return f(i,void 0,void 0,function(){var r,o,u;return v(this,function(s){switch(s.label){case 0:return r=t.pop(),r?[4,G(r,e)]:[2];case 1:return o=s.sent(),u=o instanceof U,u||n.push(r),[2]}})})})];case 1:return a.sent(),n.map(function(r){return t.pushWithBackoff(r)}),[2,t]}})})}var tt=function(){function e(t,n,i,a,r,o){a===void 0&&(a={});var u=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=B(),this.flushing=!1,this.name=t,this.version=n,this.settings=p({},a),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.initializePromise.promise.then(function(s){return u._initialized=s},function(){}),this.options=r,this.buffer=r.disableClientPersistence?new Q(4,[]):new W(4,"".concat(i,":dest-").concat(t)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var t=this;return this.initializePromise.promise.then(function(){var n;return(n=t.onReady)!==null&&n!==void 0?n:Promise.resolve()})},e.prototype.load=function(t,n){var i;return f(this,void 0,void 0,function(){var a,r,o=this;return v(this,function(u){switch(u.label){case 0:return this._ready||this.onReady!==void 0?[2]:(i=this.integrationSource)!==null&&i!==void 0?(r=i,[3,3]):[3,1];case 1:return[4,X(t,this.name,this.version,this.options.obfuscate)];case 2:r=u.sent(),u.label=3;case 3:a=r,this.integration=K(a,this.settings,n),this.onReady=new Promise(function(s){var d=function(){o._ready=!0,s(!0)};o.integration.once("ready",d)}),this.integration.on("initialize",function(){o.initializePromise.resolve(!0)});try{w(t,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(s){throw w(t,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),s}return[2]}})})},e.prototype.unload=function(t,n){return Y(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},e.prototype.shouldBuffer=function(t){return t.event.type!=="page"&&(P()||this._ready!==!0||this._initialized!==!0)},e.prototype.send=function(t,n,i){var a,r;return f(this,void 0,void 0,function(){var o,u,s,d,c,g;return v(this,function(h){switch(h.label){case 0:return this.shouldBuffer(t)?(this.buffer.push(t),this.scheduleFlush(),[2,t]):(o=(r=(a=this.options)===null||a===void 0?void 0:a.plan)===null||r===void 0?void 0:r.track,u=t.event.event,o&&u&&this.name!=="Segment.io"&&(s=o[u],V(o,s)?t.updateEvent("integrations",p(p({},t.event.integrations),s?.integrations)):(t.updateEvent("integrations",p(p({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new N({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),s?.enabled&&s?.integrations[this.name]===!1&&t.cancel(new N({retry:!1,reason:"Event ".concat(u," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,C(this.name,t.event,this.middleware)]);case 1:if(d=h.sent(),d===null)return[2,t];c=new n(d,{traverse:!this.disableAutoISOConversion}),w(t,{integrationName:this.name,methodName:i,type:"classic"}),h.label=2;case 2:return h.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,i,c)]:[3,4];case 3:h.sent(),h.label=4;case 4:return[3,6];case 5:throw g=h.sent(),w(t,{integrationName:this.name,methodName:i,type:"classic",didError:!0}),g;case 6:return[2,t]}})})},e.prototype.track=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,y.Track,"track")]})})},e.prototype.page=function(t){var n;return f(this,void 0,void 0,function(){return v(this,function(i){switch(i.label){case 0:return!((n=this.integration)===null||n===void 0)&&n._assumesPageview&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return i.sent(),[2,this.send(t,y.Page,"page")]}})})},e.prototype.identify=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,y.Identify,"identify")]})})},e.prototype.alias=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,y.Alias,"alias")]})})},e.prototype.group=function(t){return f(this,void 0,void 0,function(){return v(this,function(n){return[2,this.send(t,y.Group,"group")]})})},e.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout(function(){return f(t,void 0,void 0,function(){var n;return v(this,function(i){switch(i.label){case 0:return P()||this._ready!==!0||this._initialized!==!0?(this.scheduleFlush(),[2]):(this.flushing=!0,n=this,[4,x(this,this.buffer)]);case 1:return n.buffer=i.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},e}();function ut(e,t,n,i,a,r){var o,u;if(n===void 0&&(n={}),i===void 0&&(i={}),F())return[];t.plan&&(i=i??{},i.plan=t.plan);var s=(u=(o=t.middlewareSettings)===null||o===void 0?void 0:o.routingRules)!==null&&u!==void 0?u:[],d=t.integrations,c=i.integrations,g=L(t,i??{}),h=r?.reduce(function(l,b){var m;return p(p({},l),(m={},m[H(b)]=b,m))},{}),O=new Set(_(_([],Object.keys(d).filter(function(l){return $(l,d[l])}),!0),Object.keys(h||{}).filter(function(l){return S(d[l])||S(c?.[l])}),!0));return Array.from(O).filter(function(l){return!q(l,n)}).map(function(l){var b=d[l],m=Z(b),I=new tt(l,m,e,g[l],i,h?.[l]),A=s.filter(function(M){return M.destinationName===l});return A.length>0&&a&&I.addMiddleware(a),I})}export{tt as LegacyDestination,ut as ajsDestinations};
|
package/assets/index-CXz9iuA3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as p,e as v}from"./index-DoaqdCF9.js";import{e as g,a as M,l as N}from"./index-Cg_5qxO-.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./vendor-web3-Dw3dBix7.js";import"./inherits_browser-BlmhoU4v.js";function z(o,w,h){var i;return p(this,void 0,void 0,function(){var s,l,c,d,a,b=this;return v(this,function(u){switch(u.label){case 0:return g()?[2,[]]:(s=M(),l=(i=w.enabledMiddleware)!==null&&i!==void 0?i:{},c=Object.entries(l).filter(function(r){r[0];var e=r[1];return e}).map(function(r){var e=r[0];return e}),d=c.map(function(r){return p(b,void 0,void 0,function(){var e,n,m,f;return v(this,function(t){switch(t.label){case 0:e=r.replace("@segment/",""),n=e,h&&(n=btoa(e).replace(/=/g,"")),m="".concat(s,"/middleware/").concat(n,"/latest/").concat(n,".js.gz"),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,N(m)];case 2:return t.sent(),[2,window["".concat(e,"Middleware")]];case 3:return f=t.sent(),o.log("error",f),o.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}),[4,Promise.all(d)]);case 1:return a=u.sent(),a=a.filter(Boolean),[2,a]}})})}export{z as remoteMiddlewares};
|
package/assets/index-Cg_5qxO-.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/auto-track-CpyrW7jj.js","assets/vendor-web3-Dw3dBix7.js","assets/vendor-react-DJXYd7Dm.js","assets/vendor-mui-40jyI-Tp.js","assets/index-DoaqdCF9.js","assets/inherits_browser-BlmhoU4v.js","assets/index-vWYtvmN_.js","assets/index-CJxXHUcP.js","assets/is-plan-event-enabled-DeNtQvA5.js","assets/index-CntXRSz5.js","assets/index-BgXJ6Z6L.js","assets/index-CXz9iuA3.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as q,g as Rr}from"./vendor-web3-Dw3dBix7.js";import{_ as R,a as f,b as Xt,c as C,d as y,e as g,g as $t}from"./index-DoaqdCF9.js";import{c as M}from"./vendor-mui-40jyI-Tp.js";import{i as se}from"./inherits_browser-BlmhoU4v.js";function Xe(e,t,r){t.split&&(t=t.split("."));for(var n=0,i=t.length,o=e,a,u;n<i&&(u=""+t[n++],!(u==="__proto__"||u==="constructor"||u==="prototype"));)o=o[u]=n===i?r:typeof(a=o[u])==typeof t?a:t[n]*0!==0||~(""+t[n]).indexOf(".")?{}:[]}var Nr=function(e,t){return Object.keys(e).filter(function(r){return t(r,e[r])}).reduce(function(r,n){return r[n]=e[n],r},{})},oe=function(e){R(t,e);function t(r,n){var i=e.call(this,"".concat(r," ").concat(n))||this;return i.field=r,i}return t}(Error);function ee(e){return typeof e=="string"}function Ze(e){return typeof e=="number"}function he(e){return typeof e=="function"}function qr(e){return e!=null}function $(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()==="object"}var st="is not a string",ct="is not an object",$r="is nil";function Ur(e){if(!qr(e))throw new oe("Event",$r);if(typeof e!="object")throw new oe("Event",ct)}function zr(e){if(!ee(e.type))throw new oe(".type",st)}function Br(e){if(!ee(e.event))throw new oe(".event",st)}function Kr(e){if(!$(e.properties))throw new oe(".properties",ct)}function Vr(e){if(!$(e.traits))throw new oe(".traits",ct)}function Gr(e){if(!ee(e.messageId))throw new oe(".messageId",st)}function Jr(e){Ur(e),zr(e),Gr(e),e.type==="track"&&(Br(e),Kr(e)),["group","identify"].includes(e.type)&&Vr(e)}var Wr=function(){function e(t){var r,n;this.settings=t,this.createMessageId=t.createMessageId,this.onEventMethodCall=(r=t.onEventMethodCall)!==null&&r!==void 0?r:function(){},this.onFinishedEvent=(n=t.onFinishedEvent)!==null&&n!==void 0?n:function(){}}return e}(),Qr=function(){function e(t){this.settings=new Wr(t)}return e.prototype.track=function(t,r,n,i){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize(f(f({},this.baseEvent()),{event:t,type:"track",properties:r??{},options:f({},n),integrations:f({},i)}))},e.prototype.page=function(t,r,n,i,o){var a;this.settings.onEventMethodCall({type:"page",options:i});var u={type:"page",properties:f({},n),options:f({},i),integrations:f({},o)};return t!==null&&(u.category=t,u.properties=(a=u.properties)!==null&&a!==void 0?a:{},u.properties.category=t),r!==null&&(u.name=r),this.normalize(f(f({},this.baseEvent()),u))},e.prototype.screen=function(t,r,n,i,o){this.settings.onEventMethodCall({type:"screen",options:i});var a={type:"screen",properties:f({},n),options:f({},i),integrations:f({},o)};return t!==null&&(a.category=t),r!==null&&(a.name=r),this.normalize(f(f({},this.baseEvent()),a))},e.prototype.identify=function(t,r,n,i){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize(f(f({},this.baseEvent()),{type:"identify",userId:t,traits:r??{},options:f({},n),integrations:i}))},e.prototype.group=function(t,r,n,i){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize(f(f({},this.baseEvent()),{type:"group",traits:r??{},options:f({},n),integrations:f({},i),groupId:t}))},e.prototype.alias=function(t,r,n,i){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:t,type:"alias",options:f({},n),integrations:f({},i)};return r!==null&&(o.previousId=r),t===void 0?this.normalize(f(f({},o),this.baseEvent())):this.normalize(f(f({},this.baseEvent()),o))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(t){var r,n=["userId","anonymousId","timestamp","messageId"];delete t.integrations;var i=Object.keys(t),o=(r=t.context)!==null&&r!==void 0?r:{},a={};return i.forEach(function(u){u!=="context"&&(n.includes(u)?Xe(a,u,t[u]):Xe(o,u,t[u]))}),[o,a]},e.prototype.normalize=function(t){var r,n,i=Object.keys((r=t.integrations)!==null&&r!==void 0?r:{}).reduce(function(p,h){var v,m;return f(f({},p),(v={},v[h]=!!(!((m=t.integrations)===null||m===void 0)&&m[h]),v))},{});t.options=Nr(t.options||{},function(p,h){return h!==void 0});var o=f(f({},i),(n=t.options)===null||n===void 0?void 0:n.integrations),a=t.options?this.context(t.options):[],u=a[0],s=a[1],c=t.options,l=Xt(t,["options"]),d=f(f(f(f({timestamp:new Date},l),{context:u,integrations:o}),s),{messageId:c.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(d),Jr(d),d},e}();function Hr(e,t){return new Promise(function(r,n){var i=setTimeout(function(){n(Error("Promise timed out"))},t);e.then(function(o){return clearTimeout(i),r(o)}).catch(n)})}function Xr(e){return new Promise(function(t){return setTimeout(t,e)})}function Zr(e,t,r){var n=function(){try{return Promise.resolve(t(e))}catch(i){return Promise.reject(i)}};return Xr(r).then(function(){return Hr(n(),1e3)}).catch(function(i){e?.log("warn","Callback Error",{error:i}),e?.stats.increment("callback_error")}).then(function(){return e})}var Zt=function(){var e,t,r=!1,n=new Promise(function(i,o){e=function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];r=!0,i.apply(void 0,a)},t=function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];r=!0,o.apply(void 0,a)}});return{resolve:e,reject:t,promise:n,isSettled:function(){return r}}},lt=function(){function e(t){var r;this.callbacks={},this.warned=!1,this.maxListeners=(r=t?.maxListeners)!==null&&r!==void 0?r:10}return e.prototype.warnIfPossibleMemoryLeak=function(t){this.warned||this.maxListeners&&this.callbacks[t].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(t)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(t,r){return this.callbacks[t]?(this.callbacks[t].push(r),this.warnIfPossibleMemoryLeak(t)):this.callbacks[t]=[r],this},e.prototype.once=function(t,r){var n=this,i=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];n.off(t,i),r.apply(n,o)};return this.on(t,i),this},e.prototype.off=function(t,r){var n,i=(n=this.callbacks[t])!==null&&n!==void 0?n:[],o=i.filter(function(a){return a!==r});return this.callbacks[t]=o,this},e.prototype.emit=function(t){for(var r=this,n,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=(n=this.callbacks[t])!==null&&n!==void 0?n:[];return a.forEach(function(u){u.apply(r,i)}),this},e}();function Yr(e){var t=Math.random()+1,r=e.minTimeout,n=r===void 0?500:r,i=e.factor,o=i===void 0?2:i,a=e.attempt,u=e.maxTimeout,s=u===void 0?1/0:u;return Math.min(t*n*Math.pow(o,a),s)}var Yt="onRemoveFromFuture",ft=function(e){R(t,e);function t(r,n,i){var o=e.call(this)||this;return o.future=[],o.maxAttempts=r,o.queue=n,o.seen=i??{},o}return t.prototype.push=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n.map(function(a){var u=r.updateAttempts(a);return u>r.maxAttempts||r.includes(a)?!1:(r.queue.push(a),!0)});return this.queue=this.queue.sort(function(a,u){return r.getAttempts(a)-r.getAttempts(u)}),o},t.prototype.pushWithBackoff=function(r,n){var i=this;if(n===void 0&&(n=0),n==0&&this.getAttempts(r)===0)return this.push(r)[0];var o=this.updateAttempts(r);if(o>this.maxAttempts||this.includes(r))return!1;var a=Yr({attempt:o-1});return n>0&&a<n&&(a=n),setTimeout(function(){i.queue.push(r),i.future=i.future.filter(function(u){return u.id!==r.id}),i.emit(Yt)},a),this.future.push(r),!0},t.prototype.getAttempts=function(r){var n;return(n=this.seen[r.id])!==null&&n!==void 0?n:0},t.prototype.updateAttempts=function(r){return this.seen[r.id]=this.getAttempts(r)+1,this.getAttempts(r)},t.prototype.includes=function(r){return this.queue.includes(r)||this.future.includes(r)||!!this.queue.find(function(n){return n.id===r.id})||!!this.future.find(function(n){return n.id===r.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(lt),ne=256,Ce=[],Ae;for(;ne--;)Ce[ne]=(ne+256).toString(16).substring(1);function dt(){var e=0,t,r="";if(!Ae||ne+16>256){for(Ae=Array(e=256);e--;)Ae[e]=256*Math.random()|0;e=ne=0}for(;e<16;e++)t=Ae[ne+e],e==6?r+=Ce[t&15|64]:e==8?r+=Ce[t&63|128]:r+=Ce[t],e&1&&e>1&&e<11&&(r+="-");return ne++,r}var en=function(){function e(){this._logs=[]}return e.prototype.log=function(t,r,n){var i=new Date;this._logs.push({level:t,message:r,time:i,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var t=this._logs.reduce(function(r,n){var i,o,a,u=f(f({},n),{json:JSON.stringify(n.extras,null," "),extras:n.extras});delete u.time;var s=(a=(o=n.time)===null||o===void 0?void 0:o.toISOString())!==null&&a!==void 0?a:"";return r[s]&&(s="".concat(s,"-").concat(Math.random())),f(f({},r),(i={},i[s]=u,i))},{});console.table?console.table(t):console.log(t)}else this.logs.forEach(function(r){var n=r.level,i=r.message,o=r.extras;n==="info"||n==="debug"?console.log(i,o??""):console[n](i,o??"")});this._logs=[]},e}(),tn=function(e){var t={gauge:"g",counter:"c"};return t[e]},er=function(){function e(){this.metrics=[]}return e.prototype.increment=function(t,r,n){r===void 0&&(r=1),this.metrics.push({metric:t,value:r,tags:n??[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(t,r,n){this.metrics.push({metric:t,value:r,tags:n??[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var t=this.metrics.map(function(r){return f(f({},r),{tags:r.tags.join(",")})});console.table?console.table(t):console.log(t),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(t){return{m:t.metric,v:t.value,t:t.tags,k:tn(t.type),e:t.timestamp}})},e}(),rn=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.gauge=function(){},t.prototype.increment=function(){},t.prototype.flush=function(){},t.prototype.serialize=function(){return[]},t}(er),ae=function(){function e(t){var r,n,i;this.retry=(r=t.retry)!==null&&r!==void 0?r:!0,this.type=(n=t.type)!==null&&n!==void 0?n:"plugin Error",this.reason=(i=t.reason)!==null&&i!==void 0?i:""}return e}(),De=function(){function e(t,r,n,i){r===void 0&&(r=dt()),n===void 0&&(n=new rn),i===void 0&&(i=new en),this.attempts=0,this.event=t,this._id=r,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(t){return t.id===this.id},e.prototype.cancel=function(t){throw t||new ae({reason:"Context Cancel"})},e.prototype.log=function(t,r,n){this.logger.log(t,r,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(t,r){var n;if(t.split(".")[0]==="integrations"){var i=t.split(".")[1];if(((n=this.event.integrations)===null||n===void 0?void 0:n[i])===!1)return this.event}return Xe(this.event,t,r),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(t){this._failedDelivery=t},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}();function nn(e,t){var r={};return e.forEach(function(n){var i,o=void 0;{var a=n[t];o=typeof a!="string"?JSON.stringify(a):a}o!==void 0&&(r[o]=C(C([],(i=r[o])!==null&&i!==void 0?i:[],!0),[n],!1))}),r}var on=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"},an=function(){var e,t,r=0;return{done:function(){return e},run:function(n){var i=n();return on(i)&&(++r===1&&(e=new Promise(function(o){return t=o})),i.finally(function(){return--r===0&&t()})),i}}};function un(e){return y(this,void 0,void 0,function(){var t;return g(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return t=r.sent(),[2,Promise.reject(t)];case 3:return[2]}})})}function we(e,t){e.log("debug","plugin",{plugin:t.name});var r=new Date().getTime(),n=t[e.event.type];if(n===void 0)return Promise.resolve(e);var i=un(function(){return n.apply(t,[e])}).then(function(o){var a=new Date().getTime()-r;return o.stats.gauge("plugin_time",a,["plugin:".concat(t.name)]),o}).catch(function(o){if(o instanceof ae&&o.type==="middleware_cancellation")throw o;return o instanceof ae?(e.log("warn",o.type,{plugin:t.name,error:o}),o):(e.log("error","plugin Error",{plugin:t.name,error:o}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),o)});return i}function sn(e,t){return we(e,t).then(function(r){if(r instanceof De)return r;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(r)})}var cn=function(e){R(t,e);function t(r){var n=e.call(this)||this;return n.criticalTasks=an(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=r,n.queue.on(Yt,function(){n.scheduleFlush(0)}),n}return t.prototype.register=function(r,n,i){return y(this,void 0,void 0,function(){var o,a,u=this;return g(this,function(s){switch(s.label){case 0:return this.plugins.push(n),o=function(c){u.failedInitializations.push(n.name),u.emit("initialization_failure",n),console.warn(n.name,c),r.log("warn","Failed to load destination",{plugin:n.name,error:c}),u.plugins=u.plugins.filter(function(l){return l!==n})},n.type==="destination"&&n.name!=="Segment.io"?(n.load(r,i).catch(o),[3,4]):[3,1];case 1:return s.trys.push([1,3,,4]),[4,n.load(r,i)];case 2:return s.sent(),[3,4];case 3:return a=s.sent(),o(a),[3,4];case 4:return[2]}})})},t.prototype.deregister=function(r,n,i){return y(this,void 0,void 0,function(){var o;return g(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),n.unload?[4,Promise.resolve(n.unload(r,i))]:[3,2];case 1:a.sent(),a.label=2;case 2:return this.plugins=this.plugins.filter(function(u){return u.name!==n.name}),[3,4];case 3:return o=a.sent(),r.log("warn","Failed to unload destination",{plugin:n.name,error:o}),[3,4];case 4:return[2]}})})},t.prototype.dispatch=function(r){return y(this,void 0,void 0,function(){var n;return g(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.push(r),n=this.subscribeToDelivery(r),this.scheduleFlush(0),[2,n]})})},t.prototype.subscribeToDelivery=function(r){return y(this,void 0,void 0,function(){var n=this;return g(this,function(i){return[2,new Promise(function(o){var a=function(u,s){u.isSame(r)&&(n.off("flush",a),o(u))};n.on("flush",a)})]})})},t.prototype.dispatchSingle=function(r){return y(this,void 0,void 0,function(){var n=this;return g(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.updateAttempts(r),r.attempts=1,[2,this.deliver(r).catch(function(o){var a=n.enqueuRetry(o,r);return a?n.subscribeToDelivery(r):(r.setFailedDelivery({reason:o}),r)})]})})},t.prototype.isEmpty=function(){return this.queue.length===0},t.prototype.scheduleFlush=function(r){var n=this;r===void 0&&(r=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){n.flush().then(function(){setTimeout(function(){n.flushing=!1,n.queue.length&&n.scheduleFlush(0)},0)})},r))},t.prototype.deliver=function(r){return y(this,void 0,void 0,function(){var n,i,o,a;return g(this,function(u){switch(u.label){case 0:return[4,this.criticalTasks.done()];case 1:u.sent(),n=Date.now(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.flushOne(r)];case 3:return r=u.sent(),i=Date.now()-n,this.emit("delivery_success",r),r.stats.gauge("delivered",i),r.log("debug","Delivered",r.event),[2,r];case 4:throw o=u.sent(),a=o,r.log("error","Failed to deliver",a),this.emit("delivery_failure",r,a),r.stats.increment("delivery_failed"),o;case 5:return[2]}})})},t.prototype.enqueuRetry=function(r,n){var i=!(r instanceof ae)||r.retry;return i?this.queue.pushWithBackoff(n):!1},t.prototype.flush=function(){return y(this,void 0,void 0,function(){var r,n,i;return g(this,function(o){switch(o.label){case 0:if(this.queue.length===0)return[2,[]];if(r=this.queue.pop(),!r)return[2,[]];r.attempts=this.queue.getAttempts(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(r)];case 2:return r=o.sent(),this.emit("flush",r,!0),[3,4];case 3:return n=o.sent(),i=this.enqueuRetry(n,r),i||(r.setFailedDelivery({reason:n}),this.emit("flush",r,!1)),[2,[]];case 4:return[2,[r]]}})})},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(r){var n=this.plugins.filter(function(h){var v,m,S;if(h.type!=="destination"&&h.name!=="Segment.io")return!0;var _=void 0;return(v=h.alternativeNames)===null||v===void 0||v.forEach(function(b){r[b]!==void 0&&(_=r[b])}),(S=(m=r[h.name])!==null&&m!==void 0?m:_)!==null&&S!==void 0?S:(h.name==="Segment.io"?!0:r.All)!==!1}),i=nn(n,"type"),o=i.before,a=o===void 0?[]:o,u=i.enrichment,s=u===void 0?[]:u,c=i.destination,l=c===void 0?[]:c,d=i.after,p=d===void 0?[]:d;return{before:a,enrichment:s,destinations:l,after:p}},t.prototype.flushOne=function(r){var n,i;return y(this,void 0,void 0,function(){var o,a,u,s,c,l,v,d,p,h,v,m,S,_,b;return g(this,function(E){switch(E.label){case 0:if(!this.isReady())throw new Error("Not ready");r.attempts>1&&this.emit("delivery_retry",r),o=this.availableExtensions((n=r.event.integrations)!==null&&n!==void 0?n:{}),a=o.before,u=o.enrichment,s=0,c=a,E.label=1;case 1:return s<c.length?(l=c[s],[4,sn(r,l)]):[3,4];case 2:v=E.sent(),v instanceof De&&(r=v),this.emit("message_enriched",r,l),E.label=3;case 3:return s++,[3,1];case 4:d=0,p=u,E.label=5;case 5:return d<p.length?(h=p[d],[4,we(r,h)]):[3,8];case 6:v=E.sent(),v instanceof De&&(r=v),this.emit("message_enriched",r,h),E.label=7;case 7:return d++,[3,5];case 8:return m=this.availableExtensions((i=r.event.integrations)!==null&&i!==void 0?i:{}),S=m.destinations,_=m.after,[4,new Promise(function(O,I){setTimeout(function(){var x=S.map(function(k){return we(r,k)});Promise.all(x).then(O).catch(I)},0)})];case 9:return E.sent(),r.stats.increment("message_delivered"),this.emit("message_delivered",r),b=_.map(function(O){return we(r,O)}),[4,Promise.all(b)];case 10:return E.sent(),[2,r]}})})},t}(lt),ln=function(e,t){var r=Date.now()-e;return Math.max((t??300)-r,0)};function fn(e,t,r,n){return y(this,void 0,void 0,function(){var i,o;return g(this,function(a){switch(a.label){case 0:return r.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return n?.callback?[4,Zr(o,n.callback,ln(i,n.timeout))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return n?.debug&&o.flush(),[2,o]}})})}function tr(e,t,r,n){var i,o=[e,t,r,n],a=$(e)?e.event:e;if(!a||!ee(a))throw new Error("Event missing");var u=$(e)?(i=e.properties)!==null&&i!==void 0?i:{}:$(t)?t:{},s={};he(r)||(s=r??{}),$(e)&&!he(t)&&(s=t??{});var c=o.find(he);return[a,u,s,c]}function Ye(e,t,r,n,i){var o,a,u=null,s=null,c=[e,t,r,n,i],l=c.filter(ee);l.length===1?ee(c[1])?(s=c[1],u=null):(s=l[0],u=null):l.length===2&&(typeof c[0]=="string"&&(u=c[0]),typeof c[1]=="string"&&(s=c[1]));var d=c.find(he),p=c.filter($);return p.length===1?$(c[2])?(a={},o=c[2]):$(c[3])?(o={},a=c[3]):(o=p[0],a={}):p.length===2&&(o=p[0],a=p[1]),[u,s,o??(o={}),a??(a={}),d]}var et=function(e){return function(){for(var t,r,n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},u=["callback","options","traits","id"],s=0,c=i;s<c.length;s++){var l=c[s],d=u.pop();if(d==="id"){if(ee(l)||Ze(l)){a.id=l.toString();continue}if(l==null)continue;d=u.pop()}if((d==="traits"||d==="options")&&(l==null||$(l))&&(a[d]=l),he(l)){a.callback=l;break}}return[(t=a.id)!==null&&t!==void 0?t:e.id(),(r=a.traits)!==null&&r!==void 0?r:{},(n=a.options)!==null&&n!==void 0?n:{},a.callback]}};function rr(e,t,r,n){Ze(e)&&(e=e.toString()),Ze(t)&&(t=t.toString());var i=[e,t,r,n],o=i.filter(ee),a=o[0],u=a===void 0?e:a,s=o[1],c=s===void 0?null:s,l=i.filter($)[0],d=l===void 0?{}:l,p=i.find(he);return[u,c,d,p]}function vt(){return typeof window<"u"}function xo(){return!vt()}function dn(){return vt()?window.navigator.onLine:!0}function Se(){return!dn()}function vn(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],a=[],u={},s=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:s,headers:{keys:function(){return o},entries:function(){return a},get:function(l){return u[l.toLowerCase()]},has:function(l){return l.toLowerCase()in u}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(l,d,p){o.push(d=d.toLowerCase()),a.push([d,p]),u[d]=u[d]?u[d]+","+p:p}),r(s())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}var ht=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof $t<"u"?$t:null},Te=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ht();return(r&&r.fetch||vn).apply(void 0,e)},je="1.81.1",nr="api.segment.io/v1",hn=function(e,t,r){var n=t.reduce(function(i,o){var a=o.split(":"),u=a[0],s=a[1];return i[u]=s,i},{});return{type:"Counter",metric:e,value:1,tags:f(f({},n),{library:"analytics.js",library_version:"npm:next-".concat(je)})}};function Ve(e){console.error("Error sending segment performance metrics",e)}var pn=function(){function e(t){var r=this,n,i,o,a,u;if(this.host=(n=t?.host)!==null&&n!==void 0?n:nr,this.sampleRate=(i=t?.sampleRate)!==null&&i!==void 0?i:1,this.flushTimer=(o=t?.flushTimer)!==null&&o!==void 0?o:30*1e3,this.maxQueueSize=(a=t?.maxQueueSize)!==null&&a!==void 0?a:20,this.protocol=(u=t?.protocol)!==null&&u!==void 0?u:"https",this.queue=[],this.sampleRate>0){var s=!1,c=function(){s||(s=!0,r.flush().catch(Ve),s=!1,setTimeout(c,r.flushTimer))};c()}}return e.prototype.increment=function(t,r){if(t.includes("analytics_js.")&&r.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=hn(t,r);this.queue.push(n),t.includes("error")&&this.flush().catch(Ve)}},e.prototype.flush=function(){return y(this,void 0,void 0,function(){var t=this;return g(this,function(r){switch(r.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(n){Ve(n),t.sampleRate=0})];case 1:return r.sent(),[2]}})})},e.prototype.send=function(){return y(this,void 0,void 0,function(){var t,r,n;return g(this,function(i){return t={series:this.queue},this.queue=[],r={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,Te(n,{headers:r,body:JSON.stringify(t),method:"POST"})]})})},e}(),Oe,ir=function(e){R(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.initRemoteMetrics=function(r){Oe=new pn(r)},t.prototype.increment=function(r,n,i){e.prototype.increment.call(this,r,n,i),Oe?.increment(r,i??[])},t}(er),K=function(e){R(t,e);function t(r,n){return e.call(this,r,n,new ir)||this}return t.system=function(){return new this({type:"track",event:"system"})},t}(De);function yn(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()==="object"}var or="bpc",ar=function(e,t,r,n,i,o){return{__t:or,c:t,p:n,u:e,s:r,t:i,r:o}},gn=Object.keys(ar("","","","","",""));function mn(e){if(!yn(e)||e.__t!==or)return!1;for(var t in e)if(!gn.includes(t))return!1;return!0}var bn=function(e,t){return e.indexOf("?")>-1?e:e+t},_n=function(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)},wn=function(e){try{return new URL(e).pathname}catch{return e[0]==="/"?e:"/"+e}},ur=function(e){var t=e.c,r=e.p,n=e.s,i=e.u,o=e.r,a=e.t,u=t?wn(t):r,s=t?bn(t,n):_n(i);return{path:u,referrer:o,search:n,title:a,url:s}},sr=function(){var e=document.querySelector("link[rel='canonical']");return ar(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},Sn=function(){return ur(sr())};function En(e,t){return Object.assign.apply(Object,C([{}],t.map(function(r){var n;if(e&&Object.prototype.hasOwnProperty.call(e,r))return n={},n[r]=e[r],n}),!1))}var le=function(e,t){t===void 0&&(t=Sn());var r=e.context,n;e.type==="page"&&(n=e.properties&&En(e.properties,Object.keys(t)),e.properties=f(f(f({},t),e.properties),e.name?{name:e.name}:{})),r.page=f(f(f({},t),n),r.page)},cr=function(e){R(t,e);function t(r){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat(dt())},onEventMethodCall:function(i){var o=i.options;n.maybeUpdateAnonId(o)},onFinishedEvent:function(i){return n.addIdentity(i),i}})||this;return n.user=r,n}return t.prototype.maybeUpdateAnonId=function(r){r?.anonymousId&&this.user.anonymousId(r.anonymousId)},t.prototype.addIdentity=function(r){this.user.id()&&(r.userId=this.user.id()),this.user.anonymousId()&&(r.anonymousId=this.user.anonymousId())},t.prototype.track=function(r,n,i,o,a){var u=e.prototype.track.call(this,r,n,i,o);return le(u,a),u},t.prototype.page=function(r,n,i,o,a,u){var s=e.prototype.page.call(this,r,n,i,o,a);return le(s,u),s},t.prototype.screen=function(r,n,i,o,a,u){var s=e.prototype.screen.call(this,r,n,i,o,a);return le(s,u),s},t.prototype.identify=function(r,n,i,o,a){var u=e.prototype.identify.call(this,r,n,i,o);return le(u,a),u},t.prototype.group=function(r,n,i,o,a){var u=e.prototype.group.call(this,r,n,i,o);return le(u,a),u},t.prototype.alias=function(r,n,i,o,a){var u=e.prototype.alias.call(this,r,n,i,o);return le(u,a),u},t}(Qr),lr=function(e){return"addMiddleware"in e&&e.type==="destination"},V={getItem:function(){},setItem:function(){},removeItem:function(){}};try{V=vt()&&window.localStorage?window.localStorage:V}catch(e){console.warn("Unable to access localStorage",e)}function fr(e){var t=V.getItem(e);return(t?JSON.parse(t):[]).map(function(r){return new K(r.event,r.id)})}function In(e,t){var r=fr(e),n=C(C([],t,!0),r,!0),i=n.reduce(function(o,a){var u;return f(f({},o),(u={},u[a.id]=a,u))},{});V.setItem(e,JSON.stringify(Object.values(i)))}function dr(e){var t=V.getItem(e);return t?JSON.parse(t):{}}function Pn(e,t){var r=dr(e);V.setItem(e,JSON.stringify(f(f({},r),t)))}function Ut(e){V.removeItem(e)}var An=function(){return new Date().getTime()};function tt(e,t,r){r===void 0&&(r=0);var n=50,i="persisted-queue:v1:".concat(e,":lock"),o=function(c){return new Date().getTime()>c},a=V.getItem(i),u=a?JSON.parse(a):null,s=u===null||o(u);if(s){V.setItem(i,JSON.stringify(An()+n)),t(),V.removeItem(i);return}!s&&r<3?setTimeout(function(){tt(e,t,r+1)},n):console.error("Unable to retrieve lock")}var pt=function(e){R(t,e);function t(r,n){var i=e.call(this,r,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),u=[],s={};return tt(n,function(){try{u=fr(o),s=dr(a),Ut(o),Ut(a),i.queue=C(C([],u,!0),i.queue,!0),i.seen=f(f({},s),i.seen)}catch(c){console.error(c)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var c=C(C([],i.queue,!0),i.future,!0);try{tt(n,function(){In(o,c),Pn(a,i.seen)})}catch(l){console.error(l)}}}),i}return t}(ft),On=function(e){R(t,e);function t(r){return e.call(this,typeof r=="string"?new pt(4,r):r)||this}return t.prototype.flush=function(){return y(this,void 0,void 0,function(){return g(this,function(r){return Se()?[2,[]]:[2,e.prototype.flush.call(this)]})})},t}(cn);function yt(e){for(var t=e.constructor.prototype,r=0,n=Object.getOwnPropertyNames(t);r<n.length;r++){var i=n[r];if(i!=="constructor"){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&typeof o.value=="function"&&(e[i]=e[i].bind(e))}}return e}/*! js-cookie v3.0.1 | MIT */function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var xn={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function rt(e,t){function r(i,o,a){if(!(typeof document>"u")){a=xe({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var s in a)a[s]&&(u+="; "+s,a[s]!==!0&&(u+="="+a[s].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+u}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},u=0;u<o.length;u++){var s=o[u].split("="),c=s.slice(1).join("=");try{var l=decodeURIComponent(s[0]);if(a[l]=e.read(c,l),i===l)break}catch{}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",xe({},o,{expires:-1}))},withAttributes:function(i){return rt(this.converter,xe({},this.attributes,i))},withConverter:function(i){return rt(xe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var W=rt(xn,{path:"/"});function Mn(e){var t=e.hostname,r=t.split("."),n=r[r.length-1],i=[];if(r.length===4&&parseInt(n,10)>0||r.length<=1)return i;for(var o=r.length-2;o>=0;--o)i.push(r.slice(o).join("."));return i}function Cn(e){try{return new URL(e)}catch{return}}function vr(e){var t=Cn(e);if(t)for(var r=Mn(t),n=0;n<r.length;++n){var i="__tld__",o=r[n],a={domain:"."+o};try{if(W.set(i,"1",a),W.get(i))return W.remove(i,a),o}catch{return}}}var kn=365,hr=function(){function e(t){t===void 0&&(t=e.defaults),this.options=f(f({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:kn,domain:vr(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(t){var r;try{var n=W.get(t);if(n==null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch{return n??null}}catch{return null}},e.prototype.set=function(t,r){typeof r=="string"?W.set(t,r,this.opts()):r===null?W.remove(t,this.opts()):W.set(t,JSON.stringify(r),this.opts())},e.prototype.remove=function(t){return W.remove(t,this.opts())},e}(),Dn=function(){function e(){}return e.prototype.localStorageWarning=function(t,r){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(r))},e.prototype.get=function(t){var r;try{var n=localStorage.getItem(t);if(n===null)return null;try{return(r=JSON.parse(n))!==null&&r!==void 0?r:null}catch{return n??null}}catch{return this.localStorageWarning(t,"unavailable"),null}},e.prototype.set=function(t,r){try{localStorage.setItem(t,JSON.stringify(r))}catch{this.localStorageWarning(t,"full")}},e.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch{this.localStorageWarning(t,"unavailable")}},e}(),gt=function(){function e(){this.cache={}}return e.prototype.get=function(t){var r;return(r=this.cache[t])!==null&&r!==void 0?r:null},e.prototype.set=function(t,r){this.cache[t]=r},e.prototype.remove=function(t){delete this.cache[t]},e}(),j={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"};function pr(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every(function(t){return Object.values(j).includes(t)})}function Fn(e){return typeof e=="object"&&e.name!==void 0}var Ge=function(e,t,r,n){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(r,'" | Err: ').concat(n))},Y=function(){function e(t){this.stores=t}return e.prototype.get=function(t){for(var r=null,n=0,i=this.stores;n<i.length;n++){var o=i[n];try{if(r=o.get(t),r!=null)return r}catch(a){Ge(o,"get",t,a)}}return null},e.prototype.set=function(t,r){this.stores.forEach(function(n){try{n.set(t,r)}catch(i){Ge(n,"set",t,i)}})},e.prototype.clear=function(t){this.stores.forEach(function(r){try{r.remove(t)}catch(n){Ge(r,"remove",t,n)}})},e.prototype.getAndSync=function(t){var r=this.get(t),n=typeof r=="number"?r.toString():r;return this.set(t,n),n},e}();function nt(e){var t=e.map(function(r){var n,i;switch(Fn(r)?(n=r.name,i=r.settings):n=r,n){case j.Cookie:return new hr(i);case j.LocalStorage:return new Dn;case j.Memory:return new gt;default:throw new Error("Unknown Store Type: ".concat(r))}});return t}function yr(e,t){return e.map(function(r){return t&&r===j.Cookie?{name:r,settings:t}:r})}var re={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},mt=function(){function e(t,r){t===void 0&&(t=re);var n=this,i,o,a,u;this.options={},this.id=function(c){if(n.options.disable)return null;var l=n.identityStore.getAndSync(n.idKey);if(c!==void 0){n.identityStore.set(n.idKey,c);var d=c!==l&&l!==null&&c!==null;d&&n.anonymousId(null)}var p=n.identityStore.getAndSync(n.idKey);if(p)return p;var h=n.legacyUserStore.get(re.cookie.oldKey);return h?typeof h=="object"?h.id:h:null},this.anonymousId=function(c){var l,d;if(n.options.disable)return null;if(c===void 0){var p=(l=n.identityStore.getAndSync(n.anonKey))!==null&&l!==void 0?l:(d=n.legacySIO())===null||d===void 0?void 0:d[0];if(p)return p}return c===null?(n.identityStore.set(n.anonKey,null),n.identityStore.getAndSync(n.anonKey)):(n.identityStore.set(n.anonKey,c??dt()),n.identityStore.getAndSync(n.anonKey))},this.traits=function(c){var l;if(!n.options.disable)return c===null&&(c={}),c&&n.traitsStore.set(n.traitsKey,c??{}),(l=n.traitsStore.get(n.traitsKey))!==null&&l!==void 0?l:{}},this.options=f(f({},re),t),this.cookieOptions=r,this.idKey=(o=(i=t.cookie)===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:re.cookie.key,this.traitsKey=(u=(a=t.localStorage)===null||a===void 0?void 0:a.key)!==null&&u!==void 0?u:re.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,r),this.legacyUserStore=this.createStorage(this.options,r,function(c){return c===j.Cookie}),this.traitsStore=this.createStorage(this.options,r,function(c){return c!==j.Cookie});var s=this.legacyUserStore.get(re.cookie.oldKey);s&&typeof s=="object"&&(s.id&&this.id(s.id),s.traits&&this.traits(s.traits)),yt(this)}return e.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var r=t.split("----"),n=r[0],i=r[1];return[n,i]},e.prototype.identify=function(t,r){if(!this.options.disable){r=r??{};var n=this.id();(n===null||n===t)&&(r=f(f({},this.traits()),r)),t&&this.id(t),this.traits(r)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(t,r,n){var i=[j.LocalStorage,j.Cookie,j.Memory];return t.disable?new Y([]):t.persist?(t.storage!==void 0&&t.storage!==null&&pr(t.storage)&&(i=t.storage.stores),t.localStorageFallbackDisabled&&(i=i.filter(function(o){return o!==j.LocalStorage})),n&&(i=i.filter(n)),new Y(nt(yr(i,r)))):new Y([new gt])},e.defaults=re,e}(),zt={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},gr=function(e){R(t,e);function t(r,n){r===void 0&&(r=zt);var i=e.call(this,f(f({},zt),r),n)||this;return i.anonymousId=function(o){},yt(i),i}return t}(mt),bt="analytics";function _t(){return window[bt]}function Tn(e){bt=e}function jn(e){window[bt]=e}var Ln=function(e){return typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"},mr=function(e,t,r){r.getAndRemove(e).forEach(function(n){Le(t,n).catch(console.error)})},Rn=function(e,t){return y(void 0,void 0,void 0,function(){var r,n,i;return g(this,function(o){switch(o.label){case 0:r=0,n=t.getAndRemove("addSourceMiddleware"),o.label=1;case 1:return r<n.length?(i=n[r],[4,Le(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},Nn=function(e,t){return y(void 0,void 0,void 0,function(){var r,n,i;return g(this,function(o){switch(o.label){case 0:r=0,n=t.getAndRemove("register"),o.label=1;case 1:return r<n.length?(i=n[r],[4,Le(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}})})},qn=mr.bind(void 0,"on"),$n=mr.bind(void 0,"setAnonymousId"),Un=function(e,t){Object.keys(t.calls).forEach(function(r){t.getAndRemove(r).forEach(function(n){setTimeout(function(){Le(e,n).catch(console.error)},0)})})},fe=function(e){if(br(e)){var t=e.pop();return ur(t)}},br=function(e){var t=e[e.length-1];return mn(t)},it=function(){function e(t,r,n,i){n===void 0&&(n=function(){}),i===void 0&&(i=console.error),this.method=t,this.resolve=n,this.reject=i,this.called=!1,this.args=r}return e}(),zn=function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._callMap={},this.add.apply(this,t)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(t){this._callMap=t},enumerable:!1,configurable:!0}),e.prototype.get=function(t){var r;return(r=this.calls[t])!==null&&r!==void 0?r:[]},e.prototype.getAndRemove=function(t){var r=this.get(t);return this.calls[t]=[],r},e.prototype.add=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];r.forEach(function(i){var o=["track","screen","alias","group","page","identify"];o.includes(i.method)&&!br(i.args)&&(i.args=C(C([],i.args,!0),[sr()],!1)),t.calls[i.method]?t.calls[i.method].push(i):t.calls[i.method]=[i]})},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){},e}();function Le(e,t){return y(this,void 0,void 0,function(){var r,n;return g(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,r=e[t.method].apply(e,t.args),Ln(r)?[4,r]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(r),[3,4];case 3:return n=i.sent(),t.reject(n),[3,4];case 4:return[2]}})})}var Bn=function(){function e(t){var r=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=je,this._preInitBuffer=new zn,this._promise=t(this._preInitBuffer),this._promise.then(function(n){var i=n[0],o=n[1];r.instance=i,r.ctx=o}).catch(function(){})}return e.prototype.then=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).then.apply(t,r)},e.prototype.catch=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).catch.apply(t,r)},e.prototype.finally=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return(t=this._promise).finally.apply(t,r)},e.prototype._createMethod=function(t){var r=this;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(r.instance){var a=(n=r.instance)[t].apply(n,i);return Promise.resolve(a)}return new Promise(function(u,s){r._preInitBuffer.add(new it(t,i,u,s))})}},e.prototype._createChainableMethod=function(t){var r=this;return function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return r.instance?((n=r.instance)[t].apply(n,i),r):(r._preInitBuffer.add(new it(t,i)),r)}},e}(),X={},G={},wt={},_r={exports:{}};(function(e){e.exports=t(r),e.exports.find=e.exports,e.exports.replace=function(u,s,c,l){return t(i).call(this,u,s,c,l),u},e.exports.del=function(u,s,c){return t(n).call(this,u,s,null,c),u};function t(u){return function(s,c,l,d){var p=d&&a(d.normalizer)?d.normalizer:o;c=p(c);for(var h,v=!1;!v;)m();function m(){for(h in s){var S=p(h);if(c.indexOf(S)===0){var _=c.substr(S.length);if(_.charAt(0)==="."||_.length===0){c=_.substr(1);var b=s[h];if(b==null){v=!0;return}if(!c.length){v=!0;return}s=b;return}}}h=void 0,v=!0}if(h)return s==null?s:u(s,h,l)}}function r(u,s){if(u.hasOwnProperty(s))return u[s]}function n(u,s){return u.hasOwnProperty(s)&&delete u[s],u}function i(u,s,c){return u.hasOwnProperty(s)&&(u[s]=c),u}function o(u){return u.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function a(u){return typeof u=="function"}})(_r);var Re=_r.exports,Kn=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wt,"__esModule",{value:!0});var H=Kn(Re);function de(e,t){return function(){var r=this.traits(),n=this.properties?this.properties():{};return H.default(r,"address."+e)||H.default(r,e)||(t?H.default(r,"address."+t):null)||(t?H.default(r,t):null)||H.default(n,"address."+e)||H.default(n,e)||(t?H.default(n,"address."+t):null)||(t?H.default(n,t):null)}}function Vn(e){e.zip=de("postalCode","zip"),e.country=de("country"),e.street=de("street"),e.state=de("state"),e.city=de("city"),e.region=de("region")}wt.default=Vn;var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.clone=void 0;function ot(e){if(typeof e!="object")return e;if(Object.prototype.toString.call(e)==="[object Object]"){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ot(e[r]));return t}else return Array.isArray(e)?e.map(ot):e}Ne.clone=ot;var St={};Object.defineProperty(St,"__esModule",{value:!0});var Gn={Salesforce:!0};function Jn(e){return!Gn[e]}St.default=Jn;var qe={},wr=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;qe.parse=function(e){var t=[1,5,6,7,11,12],r=wr.exec(e),n=0;if(!r)return new Date(e);for(var i=0,o;o=t[i];i++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0,r[4]===" "?n=new Date().getTimezoneOffset():r[9]!=="Z"&&r[10]&&(n=r[11]*60+r[12],r[10]==="+"&&(n=0-n));var a=Date.UTC(r[1],r[2],r[3],r[5],r[6]+n,r[7],r[8]);return new Date(a)};qe.is=function(e,t){return typeof e!="string"||t&&/^\d{4}-\d{2}-\d{2}/.test(e)===!1?!1:wr.test(e)};var Et={},Wn=/\d{13}/;Et.is=function(e){return Wn.test(e)};Et.parse=function(e){return e=parseInt(e,10),new Date(e)};var It={},Qn=/\d{10}/;It.is=function(e){return Qn.test(e)};It.parse=function(e){var t=parseInt(e,10)*1e3;return new Date(t)};var Bt=qe,Kt=Et,Vt=It,Hn=Object.prototype,Sr=Hn.toString;function Xn(e){return Sr.call(e)==="[object Date]"}function Zn(e){return Sr.call(e)==="[object Number]"}var Pt=function(t){return Xn(t)?t:Zn(t)?new Date(Yn(t)):Bt.is(t)?Bt.parse(t):Kt.is(t)?Kt.parse(t):Vt.is(t)?Vt.parse(t):new Date(t)};function Yn(e){return e<315576e5?e*1e3:e}var Gt=qe,ei=At;function At(e,t){return t===void 0&&(t=!0),e&&typeof e=="object"?ti(e,t):Array.isArray(e)?ri(e,t):Gt.is(e,t)?Gt.parse(e):e}function ti(e,t){return Object.keys(e).forEach(function(r){e[r]=At(e[r],t)}),e}function ri(e,t){return e.forEach(function(r,n){e[n]=At(r,t)}),e}var Ee=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(G,"__esModule",{value:!0});G.Facade=void 0;var ni=Ee(wt),ye=Ne,ii=Ee(St),oi=Ee(Pt),at=Ee(Re),ai=Ee(ei);function N(e,t){t=t||{},this.raw=ye.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=ye.clone(e)),"traverse"in t||(t.traverse=!0),"timestamp"in e?e.timestamp=oi.default(e.timestamp):e.timestamp=new Date,t.traverse&&ai.default(e),this.opts=t,this.obj=e}G.Facade=N;var P=N.prototype;P.proxy=function(e){var t=e.split(".");e=t.shift();var r=this[e]||this.obj[e];return r&&(typeof r=="function"&&(r=r.call(this)||{}),t.length===0?this.opts.clone?ut(r):r:(r=at.default(r,t.join(".")),this.opts.clone?ut(r):r))};P.field=function(e){var t=this.obj[e];return this.opts.clone?ut(t):t};N.proxy=function(e){return function(){return this.proxy(e)}};N.field=function(e){return function(){return this.field(e)}};N.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var r=this.proxy(e);return r&&(r=[this.opts.clone?ye.clone(r):r]),r||[]}};N.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var r=this.proxy(e+"s");if(Array.isArray(r))return r[0]}};P.json=function(){var e=this.opts.clone?ye.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e};P.rawEvent=function(){return this.raw};P.options=function(e){var t=this.obj.options||this.obj.context||{},r=this.opts.clone?ye.clone(t):t;if(!e)return r;if(this.enabled(e)){var n=this.integrations(),i=n[e]||at.default(n,e);return typeof i!="object"&&(i=at.default(this.options(),e)),typeof i=="object"?i:{}}};P.context=P.options;P.enabled=function(e){var t=this.proxy("options.providers.all");typeof t!="boolean"&&(t=this.proxy("options.all")),typeof t!="boolean"&&(t=this.proxy("integrations.all")),typeof t!="boolean"&&(t=!0);var r=t&&ii.default(e),n=this.integrations();if(n.providers&&n.providers.hasOwnProperty(e)&&(r=n.providers[e]),n.hasOwnProperty(e)){var i=n[e];typeof i=="boolean"?r=i:r=!0}return!!r};P.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()};P.active=function(){var e=this.proxy("options.active");return e==null&&(e=!0),e};P.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")};P.sessionId=P.anonymousId;P.groupId=N.proxy("options.groupId");P.traits=function(e){var t=this.proxy("options.traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=this[n]==null?this.proxy("options.traits."+n):this[n]();if(i==null)continue;t[e[n]]=i,delete t[n]}return t};P.library=function(){var e=this.proxy("options.library");return e?typeof e=="string"?{name:e,version:null}:e:{name:"unknown",version:null}};P.device=function(){var e=this.proxy("context.device");(typeof e!="object"||e===null)&&(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e};P.userAgent=N.proxy("context.userAgent");P.timezone=N.proxy("context.timezone");P.timestamp=N.field("timestamp");P.channel=N.field("channel");P.ip=N.proxy("context.ip");P.userId=N.field("userId");ni.default(P);function ut(e){return ye.clone(e)}var $e={},ui=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty($e,"__esModule",{value:!0});$e.Alias=void 0;var si=ui(se),Er=G;function U(e,t){Er.Facade.call(this,e,t)}$e.Alias=U;si.default(U,Er.Facade);U.prototype.action=function(){return"alias"};U.prototype.type=U.prototype.action;U.prototype.previousId=function(){return this.field("previousId")||this.field("from")};U.prototype.from=U.prototype.previousId;U.prototype.userId=function(){return this.field("userId")||this.field("to")};U.prototype.to=U.prototype.userId;var Ue={},ge={};Object.defineProperty(ge,"__esModule",{value:!0});var ci=/.+\@.+\..+/;function li(e){return ci.test(e)}ge.default=li;var Ot=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Group=void 0;var fi=Ot(se),di=Ot(ge),vi=Ot(Pt),me=G;function xt(e,t){me.Facade.call(this,e,t)}Ue.Group=xt;fi.default(xt,me.Facade);var z=xt.prototype;z.action=function(){return"group"};z.type=z.action;z.groupId=me.Facade.field("groupId");z.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return vi.default(e)};z.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(di.default(t))return t};z.traits=function(e){var t=this.properties(),r=this.groupId();e=e||{},r&&(t.id=r);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=this[n]==null?this.proxy("traits."+n):this[n]();if(i==null)continue;t[e[n]]=i,delete t[n]}return t};z.name=me.Facade.proxy("traits.name");z.industry=me.Facade.proxy("traits.industry");z.employees=me.Facade.proxy("traits.employees");z.properties=function(){return this.field("traits")||this.field("properties")||{}};var Ie={},ze=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ie,"__esModule",{value:!0});Ie.Identify=void 0;var J=G,pe=ze(Re),hi=ze(se),pi=ze(ge),Ir=ze(Pt),ie=function(e){return e.trim()};function Mt(e,t){J.Facade.call(this,e,t)}Ie.Identify=Mt;hi.default(Mt,J.Facade);var A=Mt.prototype;A.action=function(){return"identify"};A.type=A.action;A.traits=function(e){var t=this.field("traits")||{},r=this.userId();e=e||{},r&&(t.id=r);for(var n in e){var i=this[n]==null?this.proxy("traits."+n):this[n]();i!=null&&(t[e[n]]=i,n!==e[n]&&delete t[n])}return t};A.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(pi.default(t))return t};A.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return Ir.default(e)};A.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return Ir.default(e)};A.companyName=function(){return this.proxy("traits.company.name")};A.name=function(){var e=this.proxy("traits.name");if(typeof e=="string")return ie(e);var t=this.firstName(),r=this.lastName();if(t&&r)return ie(t+" "+r)};A.firstName=function(){var e=this.proxy("traits.firstName");if(typeof e=="string")return ie(e);var t=this.proxy("traits.name");if(typeof t=="string")return ie(t).split(" ")[0]};A.lastName=function(){var e=this.proxy("traits.lastName");if(typeof e=="string")return ie(e);var t=this.proxy("traits.name");if(typeof t=="string"){var r=ie(t).indexOf(" ");if(r!==-1)return ie(t.substr(r+1))}};A.uid=function(){return this.userId()||this.username()||this.email()};A.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};A.age=function(){var e=this.birthday(),t=pe.default(this.traits(),"age");if(t!=null)return t;if(e instanceof Date){var r=new Date;return r.getFullYear()-e.getFullYear()}};A.avatar=function(){var e=this.traits();return pe.default(e,"avatar")||pe.default(e,"photoUrl")||pe.default(e,"avatarUrl")};A.position=function(){var e=this.traits();return pe.default(e,"position")||pe.default(e,"jobTitle")};A.username=J.Facade.proxy("traits.username");A.website=J.Facade.one("traits.website");A.websites=J.Facade.multi("traits.website");A.phone=J.Facade.one("traits.phone");A.phones=J.Facade.multi("traits.phone");A.address=J.Facade.proxy("traits.address");A.gender=J.Facade.proxy("traits.gender");A.birthday=J.Facade.proxy("traits.birthday");var be={},Ct=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(be,"__esModule",{value:!0});be.Track=void 0;var yi=Ct(se),D=G,gi=Ie,mi=Ct(ge),Pr=Ct(Re);function kt(e,t){D.Facade.call(this,e,t)}be.Track=kt;yi.default(kt,D.Facade);var w=kt.prototype;w.action=function(){return"track"};w.type=w.action;w.event=D.Facade.field("event");w.value=D.Facade.proxy("properties.value");w.category=D.Facade.proxy("properties.category");w.id=D.Facade.proxy("properties.id");w.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};w.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};w.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};w.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};w.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};w.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};w.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};w.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};w.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};w.sku=D.Facade.proxy("properties.sku");w.tax=D.Facade.proxy("properties.tax");w.name=D.Facade.proxy("properties.name");w.price=D.Facade.proxy("properties.price");w.total=D.Facade.proxy("properties.total");w.repeat=D.Facade.proxy("properties.repeat");w.coupon=D.Facade.proxy("properties.coupon");w.shipping=D.Facade.proxy("properties.shipping");w.discount=D.Facade.proxy("properties.discount");w.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};w.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};w.description=D.Facade.proxy("properties.description");w.plan=D.Facade.proxy("properties.plan");w.subtotal=function(){var e=Pr.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var r=this.tax();r&&(t-=r),r=this.shipping(),r&&(t-=r),r=this.discount(),r&&(t+=r)}return t};w.products=function(){var e=this.properties(),t=Pr.default(e,"products");return Array.isArray(t)?t.filter(function(r){return r!==null}):[]};w.quantity=function(){var e=this.obj.properties||{};return e.quantity||1};w.currency=function(){var e=this.obj.properties||{};return e.currency||"USD"};w.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};w.query=D.Facade.proxy("options.query");w.properties=function(e){var t=this.field("properties")||{};e=e||{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=this[r]==null?this.proxy("properties."+r):this[r]();if(n==null)continue;t[e[r]]=n,delete t[r]}return t};w.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};w.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();if(mi.default(t))return t};w.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event(),r=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!e&&t&&t.match(r)&&(e=this.proxy("properties.total")),bi(e)};w.cents=function(){var e=this.revenue();return typeof e!="number"?this.value()||0:e*100};w.identify=function(){var e=this.json();return e.traits=this.traits(),new gi.Identify(e,this.opts)};function bi(e){if(e){if(typeof e=="number")return e;if(typeof e=="string"&&(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e)))return e}}var Pe={},Ar=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.Page=void 0;var _i=Ar(se),ce=G,wi=be,Si=Ar(ge);function Dt(e,t){ce.Facade.call(this,e,t)}Pe.Page=Dt;_i.default(Dt,ce.Facade);var L=Dt.prototype;L.action=function(){return"page"};L.type=L.action;L.category=ce.Facade.field("category");L.name=ce.Facade.field("name");L.title=ce.Facade.proxy("properties.title");L.path=ce.Facade.proxy("properties.path");L.url=ce.Facade.proxy("properties.url");L.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};L.properties=function(e){var t=this.field("properties")||{},r=this.category(),n=this.name();e=e||{},r&&(t.category=r),n&&(t.name=n);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=this[i]==null?this.proxy("properties."+i):this[i]();if(o==null)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t};L.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();if(Si.default(t))return t};L.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t};L.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"};L.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new wi.Track(t,this.opts)};var Be={},Ei=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Be,"__esModule",{value:!0});Be.Screen=void 0;var Ii=Ei(se),Or=Pe,Pi=be;function ue(e,t){Or.Page.call(this,e,t)}Be.Screen=ue;Ii.default(ue,Or.Page);ue.prototype.action=function(){return"screen"};ue.prototype.type=ue.prototype.action;ue.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"};ue.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new Pi.Track(t,this.opts)};var Ke={},Ai=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Delete=void 0;var Oi=Ai(se),xr=G;function Ft(e,t){xr.Facade.call(this,e,t)}Ke.Delete=Ft;Oi.default(Ft,xr.Facade);Ft.prototype.type=function(){return"delete"};(function(e){var t=M&&M.__assign||function(){return t=Object.assign||function(l){for(var d,p=1,h=arguments.length;p<h;p++){d=arguments[p];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(l[v]=d[v])}return l},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=e.Screen=e.Page=e.Track=e.Identify=e.Group=e.Alias=e.Facade=void 0;var r=G;Object.defineProperty(e,"Facade",{enumerable:!0,get:function(){return r.Facade}});var n=$e;Object.defineProperty(e,"Alias",{enumerable:!0,get:function(){return n.Alias}});var i=Ue;Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return i.Group}});var o=Ie;Object.defineProperty(e,"Identify",{enumerable:!0,get:function(){return o.Identify}});var a=be;Object.defineProperty(e,"Track",{enumerable:!0,get:function(){return a.Track}});var u=Pe;Object.defineProperty(e,"Page",{enumerable:!0,get:function(){return u.Page}});var s=Be;Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return s.Screen}});var c=Ke;Object.defineProperty(e,"Delete",{enumerable:!0,get:function(){return c.Delete}}),e.default=t(t({},r.Facade),{Alias:n.Alias,Group:i.Group,Identify:o.Identify,Track:a.Track,Page:u.Page,Screen:s.Screen,Delete:c.Delete})})(X);function Fe(e,t){var r=new X.Facade(e,t);return e.type==="track"&&(r=new X.Track(e,t)),e.type==="identify"&&(r=new X.Identify(e,t)),e.type==="page"&&(r=new X.Page(e,t)),e.type==="alias"&&(r=new X.Alias(e,t)),e.type==="group"&&(r=new X.Group(e,t)),e.type==="screen"&&(r=new X.Screen(e,t)),Object.defineProperty(r,"obj",{value:e,writable:!0}),r}var xi=function(e){var t=!1;window.addEventListener("pagehide",function(){t||(t=!0,e(t))}),document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){if(t)return;t=!0}else t=!1;e(t)})},Mr=function(e){R(t,e);function t(r,n){var i=e.call(this,r)||this;return i.retryTimeout=n,i.name="RateLimitError",i}return t}(Error),Cr=function(e){return f({"Content-Type":"text/plain"},typeof e=="function"?e():e)},Mi=500,Ci=64;function Tt(e){var t=encodeURI(JSON.stringify(e)).split(/%..|./).length-1;return t/1024}function ki(e){return Tt(e)>=Mi-50}function Di(e){return Tt(e)>=Ci-10}function Fi(e){var t=[],r=0;return e.forEach(function(n){var i=Tt(t[r]);i>=64&&r++,t[r]?t[r].push(n):t[r]=[n]}),t}function Ti(e,t){var r,n,i=[],o=!1,a=(r=t?.size)!==null&&r!==void 0?r:10,u=(n=t?.timeout)!==null&&n!==void 0?n:5e3,s=0;function c(v){var m;if(v.length!==0){var S=(m=v[0])===null||m===void 0?void 0:m.writeKey,_=v.map(function(b){var E=b;E.sentAt;var O=Xt(E,["sentAt"]);return O});return Te("https://".concat(e,"/b"),{credentials:t?.credentials,keepalive:t?.keepalive||o,headers:Cr(t?.headers),method:"post",body:JSON.stringify({writeKey:S,batch:_,sentAt:new Date().toISOString()}),priority:t?.priority}).then(function(b){var E;if(b.status>=500)throw new Error("Bad response from server: ".concat(b.status));if(b.status===429){var O=(E=b.headers)===null||E===void 0?void 0:E.get("x-ratelimit-reset"),I=typeof O=="string"?parseInt(O)*1e3:u;throw new Mr("Rate limit exceeded: ".concat(b.status),I)}})}}function l(v){var m;return v===void 0&&(v=1),y(this,void 0,void 0,function(){var S;return g(this,function(_){return i.length?(S=i,i=[],[2,(m=c(S))===null||m===void 0?void 0:m.catch(function(b){var E,O=K.system();O.log("error","Error sending batch",b),v<=((E=t?.maxRetries)!==null&&E!==void 0?E:10)&&(b.name==="RateLimitError"&&(s=b.retryTimeout),i.push.apply(i,S),i.map(function(I){if("_metadata"in I){var x=I;x._metadata=f(f({},x._metadata),{retryCount:v})}}),p(v+1))})]):[2]})})}var d;function p(v){v===void 0&&(v=1),!d&&(d=setTimeout(function(){d=void 0,l(v).catch(console.error)},s||u),s=0)}xi(function(v){if(o=v,o&&i.length){var m=Fi(i).map(c);Promise.all(m).catch(console.error)}});function h(v,m){return y(this,void 0,void 0,function(){var S;return g(this,function(_){return i.push(m),S=i.length>=a||ki(i)||t?.keepalive&&Di(i),[2,S||o?l():p()]})})}return{dispatch:h}}function ji(e){function t(r,n){return Te(r,{credentials:e?.credentials,keepalive:e?.keepalive,headers:Cr(e?.headers),method:"post",body:JSON.stringify(n),priority:e?.priority}).then(function(i){var o;if(i.status>=500)throw new Error("Bad response from server: ".concat(i.status));if(i.status===429){var a=(o=i.headers)===null||o===void 0?void 0:o.get("x-ratelimit-reset"),u=a?parseInt(a)*1e3:5e3;throw new Mr("Rate limit exceeded: ".concat(i.status),u)}})}return{dispatch:t}}function Li(e,t,r,n,i){var o,a=e.user();delete t.options,t.writeKey=r?.apiKey,t.userId=t.userId||a.id(),t.anonymousId=t.anonymousId||a.anonymousId(),t.sentAt=new Date;var u=e.queue.failedInitializations||[];u.length>0&&(t._metadata={failedInitializations:u}),i!=null&&(i.attempts>1&&(t._metadata=f(f({},t._metadata),{retryCount:i.attempts})),i.attempts++);var s=[],c=[];for(var l in n){var d=n[l];l==="Segment.io"&&s.push(l),d.bundlingStatus==="bundled"&&s.push(l),d.bundlingStatus==="unbundled"&&c.push(l)}for(var p=0,h=r?.unbundledIntegrations||[];p<h.length;p++){var v=h[p];c.includes(v)||c.push(v)}var m=(o=r?.maybeBundledConfigIds)!==null&&o!==void 0?o:{},S=[];return s.sort().forEach(function(_){var b;((b=m[_])!==null&&b!==void 0?b:[]).forEach(function(E){S.push(E)})}),r?.addBundledMetadata!==!1&&(t._metadata=f(f({},t._metadata),{bundled:s.sort(),unbundled:c.sort(),bundledIds:S})),t}var Ri=function(e,t){return y(void 0,void 0,void 0,function(){var r;return g(this,function(n){return r=function(i){return y(void 0,void 0,void 0,function(){var o;return g(this,function(a){switch(a.label){case 0:return e(i)?(o=r,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[a.sent()])];case 2:return[2]}})})},[2,r(void 0)]})})};function Ni(e,t){return y(this,void 0,void 0,function(){var r,n=this;return g(this,function(i){switch(i.label){case 0:return r=[],Se()?[2,t]:[4,Ri(function(){return t.length>0&&!Se()},function(){return y(n,void 0,void 0,function(){var o,a,u;return g(this,function(s){switch(s.label){case 0:return o=t.pop(),o?[4,we(o,e)]:[2];case 1:return a=s.sent(),u=a instanceof K,u||r.push(o),[2]}})})})];case 1:return i.sent(),r.map(function(o){return t.pushWithBackoff(o)}),[2,t]}})})}function ve(e,t,r,n){var i=this;e||setTimeout(function(){return y(i,void 0,void 0,function(){var o,a;return g(this,function(u){switch(u.label){case 0:return o=!0,[4,Ni(r,t)];case 1:return a=u.sent(),o=!1,t.todo>0&&n(o,a,r,n),[2]}})})},Math.random()*5e3)}function qi(e,t){var r,n,i,o,a=e.user();return t.previousId=(i=(n=(r=t.previousId)!==null&&r!==void 0?r:t.from)!==null&&n!==void 0?n:a.id())!==null&&i!==void 0?i:a.anonymousId(),t.userId=(o=t.userId)!==null&&o!==void 0?o:t.to,delete t.from,delete t.to,t}var $i=function(e){return e.name==="Segment.io"};function kr(e,t,r){var n,i,o;window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(s)),s.clear()});var a=(n=t?.apiKey)!==null&&n!==void 0?n:"",u=e.options.disableClientPersistence?new ft(e.queue.queue.maxAttempts,[]):new pt(e.queue.queue.maxAttempts,"".concat(a,":dest-Segment.io")),s=new Set,c=!1,l=(i=t?.apiHost)!==null&&i!==void 0?i:nr,d=(o=t?.protocol)!==null&&o!==void 0?o:"https",p="".concat(d,"://").concat(l),h=t?.deliveryStrategy,v=h&&"strategy"in h&&h.strategy==="batching"?Ti(l,h.config):ji(h?.config);function m(_){return y(this,void 0,void 0,function(){var b,E;return g(this,function(O){return Se()?(u.push(_),ve(c,u,S,ve),[2,_]):(s.add(_),b=_.event.type.charAt(0),E=Fe(_.event).json(),_.event.type==="track"&&delete E.traits,_.event.type==="alias"&&(E=qi(e,E)),u.getAttempts(_)>=u.maxAttempts?(s.delete(_),[2,_]):[2,v.dispatch("".concat(p,"/").concat(b),Li(e,E,t,r,_)).then(function(){return _}).catch(function(I){if(_.log("error","Error sending event",I),I.name==="RateLimitError"){var x=I.retryTimeout;u.pushWithBackoff(_,x)}else u.pushWithBackoff(_);return ve(c,u,S,ve),_}).finally(function(){s.delete(_)})])})})}var S={metadata:{writeKey:a,apiHost:l,protocol:d},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:m,identify:m,page:m,alias:m,group:m,screen:m};return u.todo&&ve(c,u,S,ve),S}var Z="This is being deprecated and will be not be available in future releases of Analytics JS",Je=ht(),We=Je?.analytics;function Ui(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=t?10:1,i=r?new ft(n,[]):new pt(n,e);return new On(i)}var zi=function(){function e(t,r){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var o;return(o=r.plugins.find($i))===null||o===void 0?void 0:o.metadata},this.writeKey=t.writeKey;var i={integrations:{"Segment.io":{apiKey:""}}};this.cdnSettings=(n=t.cdnSettings)!==null&&n!==void 0?n:i,this.cdnURL=t.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var t,r;return(r=(t=this._getSegmentPluginMetadata)===null||t===void 0?void 0:t.call(this))===null||r===void 0?void 0:r.apiHost},enumerable:!1,configurable:!0}),e}();function B(){console.warn(Z)}var jt=function(e){R(t,e);function t(r,n,i,o,a){var u=this,s,c;u=e.call(this)||this,u._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=B,u.addIntegrationMiddleware=B,u.listeners=B,u.addEventListener=B,u.removeAllListeners=B,u.removeListener=B,u.removeEventListener=B,u.hasListeners=B,u.add=B,u.addIntegration=B;var l=n?.cookie,d=(s=n?.disableClientPersistence)!==null&&s!==void 0?s:!1;u.queue=i??Ui("".concat(r.writeKey,":event-queue"),n?.retryQueue,d),u.settings=new zi(r,u.queue);var p=n?.storage;return u._universalStorage=u.createStore(d,p,l),u._user=o??new mt(f({persist:!d,storage:n?.storage},n?.user),l).load(),u._group=a??new gr(f({persist:!d,storage:n?.storage},n?.group),l).load(),u.eventFactory=new cr(u._user),u.integrations=(c=n?.integrations)!==null&&c!==void 0?c:{},u.options=n??{},yt(u),u}return t.prototype.createStore=function(r,n,i){return r?new Y([new gt]):n&&pr(n)?new Y(nt(yr(n.stores,i))):new Y(nt([j.LocalStorage,{name:j.Cookie,settings:i},j.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a,u,s,c,l,d=this;return g(this,function(p){return i=fe(r),o=tr.apply(void 0,r),a=o[0],u=o[1],s=o[2],c=o[3],l=this.eventFactory.track(a,u,s,this.integrations,i),[2,this._dispatch(l,c).then(function(h){return d.emit("track",a,h.event.properties,h.event.options),h})]})})},t.prototype.page=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a,u,s,c,l,d,p=this;return g(this,function(h){return i=fe(r),o=Ye.apply(void 0,r),a=o[0],u=o[1],s=o[2],c=o[3],l=o[4],d=this.eventFactory.page(a,u,s,c,this.integrations,i),[2,this._dispatch(d,l).then(function(v){return p.emit("page",a,u,v.event.properties,v.event.options),v})]})})},t.prototype.identify=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a,u,s,c,l,d=this;return g(this,function(p){return i=fe(r),o=et(this._user).apply(void 0,r),a=o[0],u=o[1],s=o[2],c=o[3],this._user.identify(a,u),l=this.eventFactory.identify(this._user.id(),this._user.traits(),s,this.integrations,i),[2,this._dispatch(l,c).then(function(h){return d.emit("identify",h.event.userId,h.event.traits,h.event.options),h})]})})},t.prototype.group=function(){for(var r=this,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=fe(n);if(n.length===0)return this._group;var a=et(this._group).apply(void 0,n),u=a[0],s=a[1],c=a[2],l=a[3];this._group.identify(u,s);var d=this._group.id(),p=this._group.traits(),h=this.eventFactory.group(d,p,c,this.integrations,o);return this._dispatch(h,l).then(function(v){return r.emit("group",v.event.groupId,v.event.traits,v.event.options),v})},t.prototype.alias=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a,u,s,c,l,d=this;return g(this,function(p){return i=fe(r),o=rr.apply(void 0,r),a=o[0],u=o[1],s=o[2],c=o[3],l=this.eventFactory.alias(a,u,s,this.integrations,i),[2,this._dispatch(l,c).then(function(h){return d.emit("alias",a,u,h.event.options),h})]})})},t.prototype.screen=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a,u,s,c,l,d,p=this;return g(this,function(h){return i=fe(r),o=Ye.apply(void 0,r),a=o[0],u=o[1],s=o[2],c=o[3],l=o[4],d=this.eventFactory.screen(a,u,s,c,this.integrations,i),[2,this._dispatch(d,l).then(function(v){return p.emit("screen",a,u,v.event.properties,v.event.options),v})]})})},t.prototype.trackClick=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o;return g(this,function(a){switch(a.label){case 0:return[4,q(()=>import("./auto-track-CpyrW7jj.js"),__vite__mapDeps([0,1,2,3,4,5]))];case 1:return i=a.sent(),[2,(o=i.link).call.apply(o,C([this],r,!1))]}})})},t.prototype.trackLink=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o;return g(this,function(a){switch(a.label){case 0:return[4,q(()=>import("./auto-track-CpyrW7jj.js"),__vite__mapDeps([0,1,2,3,4,5]))];case 1:return i=a.sent(),[2,(o=i.link).call.apply(o,C([this],r,!1))]}})})},t.prototype.trackSubmit=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o;return g(this,function(a){switch(a.label){case 0:return[4,q(()=>import("./auto-track-CpyrW7jj.js"),__vite__mapDeps([0,1,2,3,4,5]))];case 1:return i=a.sent(),[2,(o=i.form).call.apply(o,C([this],r,!1))]}})})},t.prototype.trackForm=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o;return g(this,function(a){switch(a.label){case 0:return[4,q(()=>import("./auto-track-CpyrW7jj.js"),__vite__mapDeps([0,1,2,3,4,5]))];case 1:return i=a.sent(),[2,(o=i.form).call.apply(o,C([this],r,!1))]}})})},t.prototype.register=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a=this;return g(this,function(u){switch(u.label){case 0:return i=K.system(),o=r.map(function(s){return a.queue.register(i,s,a)}),[4,Promise.all(o)];case 1:return u.sent(),[2,i]}})})},t.prototype.deregister=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return y(this,void 0,void 0,function(){var i,o,a=this;return g(this,function(u){switch(u.label){case 0:return i=K.system(),o=r.map(function(s){var c=a.queue.plugins.find(function(l){return l.name===s});if(c)return a.queue.deregister(i,c,a);i.log("warn","plugin ".concat(s," not found"))}),[4,Promise.all(o)];case 1:return u.sent(),[2,i]}})})},t.prototype.debug=function(r){return r===!1&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=r,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(r){this.settings.timeout=r},t.prototype._dispatch=function(r,n){return y(this,void 0,void 0,function(){var i;return g(this,function(o){return i=new K(r),i.stats.increment("analytics_js.invoke",1,[r.type]),Se()&&!this.options.retryQueue?[2,i]:[2,fn(i,this.queue,this,{callback:n,debug:this._debug,timeout:this.settings.timeout})]})})},t.prototype.addSourceMiddleware=function(r){return y(this,void 0,void 0,function(){var n=this;return g(this,function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run(function(){return y(n,void 0,void 0,function(){var o,a,u;return g(this,function(s){switch(s.label){case 0:return[4,q(()=>Promise.resolve().then(()=>oo),void 0)];case 1:return o=s.sent().sourceMiddlewarePlugin,a={},this.queue.plugins.forEach(function(c){if(c.type==="destination")return a[c.name]=!0}),u=o(r,a),[4,this.register(u)];case 2:return s.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},t.prototype.addDestinationMiddleware=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return this.queue.plugins.filter(lr).forEach(function(o){(r==="*"||o.name.toLowerCase()===r.toLowerCase())&&o.addMiddleware.apply(o,n)}),Promise.resolve(this)},t.prototype.setAnonymousId=function(r){return this._user.anonymousId(r)},t.prototype.queryString=function(r){return y(this,void 0,void 0,function(){var n;return g(this,function(i){switch(i.label){case 0:return this.options.useQueryString===!1?[2,[]]:[4,q(()=>import("./index-vWYtvmN_.js"),__vite__mapDeps([6,1,2,3,4,5]))];case 1:return n=i.sent().queryString,[2,n(this,r)]}})})},t.prototype.use=function(r){return r(this),this},t.prototype.ready=function(r){return r===void 0&&(r=function(n){return n}),y(this,void 0,void 0,function(){return g(this,function(n){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return r(i),i})]})})},t.prototype.noConflict=function(){return console.warn(Z),jn(We??this),this},t.prototype.normalize=function(r){return console.warn(Z),this.eventFactory.normalize(r)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Z),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return je},enumerable:!1,configurable:!0}),t.prototype.initialize=function(r,n){return y(this,void 0,void 0,function(){return g(this,function(i){return console.warn(Z),[2,Promise.resolve(this)]})})},t.prototype.pageview=function(r){return y(this,void 0,void 0,function(){return g(this,function(n){switch(n.label){case 0:return console.warn(Z),[4,this.page({path:r})];case 1:return n.sent(),[2,this]}})})},Object.defineProperty(t.prototype,"plugins",{get:function(){var r;return console.warn(Z),(r=this._plugins)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){console.warn(Z);var r=this.queue.plugins.filter(function(n){return n.type==="destination"}).reduce(function(n,i){var o="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),a=window[o];if(!a)return n;var u=a.Integration;return u?(n[i.name]=u,n):(n[i.name]=a,n)},{});return r},enumerable:!1,configurable:!0}),t.prototype.push=function(r){var n=this,i=r.shift();i&&!n[i]||n[i].apply(this,r)},t}(lt),Jt=function(e){R(t,e);function t(){var r=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return r.initialized=!0,r}return t}(jt),Wt={};function Dr(){return typeof Rr>"u"||!Wt?{}:Wt}var Bi=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,Ki=function(){var e,t=Array.prototype.slice.call(document.querySelectorAll("script"));return t.forEach(function(r){var n,i=(n=r.getAttribute("src"))!==null&&n!==void 0?n:"",o=Bi.exec(i);o&&o[1]&&(e=o[1])}),e},ke,Vi=function(){var e,t=ke??((e=_t())===null||e===void 0?void 0:e._cdn);return t},Gi=function(e){var t=_t();t&&(t._cdn=e),ke=e},Lt=function(){var e=Vi();if(e)return e;var t=Ki();return t||"https://cdn.segment.com"},Mo=function(){var e=Lt();return"".concat(e,"/next-integrations")};function Ji(e,t){var r,n=Object.entries((r=t.integrations)!==null&&r!==void 0?r:{}).reduce(function(i,o){var a,u,s=o[0],c=o[1];return typeof c=="object"?f(f({},i),(a={},a[s]=c,a)):f(f({},i),(u={},u[s]={},u))},{});return Object.entries(e.integrations).reduce(function(i,o){var a,u=o[0],s=o[1];return f(f({},i),(a={},a[u]=f(f({},s),n[u]),a))},{})}function Wi(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Qi(e){return y(this,void 0,void 0,function(){var t;return g(this,function(r){return t=navigator.userAgentData,t?e?[2,t.getHighEntropyValues(e).catch(function(){return t.toJSON()})]:[2,t.toJSON()]:[2,void 0]})})}var _e;function Hi(){if(_e)return _e;var e=vr(window.location.href);return _e={expires:31536e6,secure:!1,path:"/"},e&&(_e.domain=e),_e}function Xi(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&");for(var r=e.split("&"),n=0,i=r;n<i.length;n++){var o=i[n],a=o.split("="),u=a[0],s=a[1];if(t[u])return{id:s,type:t[u]}}}function Zi(e){return e.startsWith("?")&&(e=e.substring(1)),e=e.replace(/\?/g,"&"),e.split("&").reduce(function(t,r){var n=r.split("="),i=n[0],o=n[1],a=o===void 0?"":o;if(i.includes("utm_")&&i.length>4){var u=i.slice(4);u==="campaign"&&(u="name"),t[u]=Wi(a)}return t},{})}function Yi(){var e=W.get("_ga");if(e&&e.startsWith("amp"))return e}function eo(e,t,r){var n,i=new Y(r?[]:[new hr(Hi())]),o=i.get("s:context.referrer"),a=(n=Xi(e))!==null&&n!==void 0?n:o;a&&(t&&(t.referrer=f(f({},t.referrer),a)),i.set("s:context.referrer",a))}var to=function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach(function(r){var n=r[0],i=r[1];Array.isArray(i)?i.forEach(function(o){return t.append(n,o)}):t.append(n,i)}),t.toString()}catch{return""}},ro=function(){function e(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(r,n){return y(t,void 0,void 0,function(){var i;return g(this,function(o){switch(o.label){case 0:this.instance=n,o.label=1;case 1:return o.trys.push([1,3,,4]),i=this,[4,Qi(this.instance.options.highEntropyValuesClientHints)];case 2:return i.userAgentData=o.sent(),[3,4];case 3:return o.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(r){var n,i,o=r.event.context,a=o.page.search||"",u=typeof a=="object"?to(a):a;o.userAgent=navigator.userAgent,o.userAgentData=t.userAgentData;var s=navigator.userLanguage||navigator.language;typeof o.locale>"u"&&typeof s<"u"&&(o.locale=s),(n=o.library)!==null&&n!==void 0||(o.library={name:"analytics.js",version:"".concat("npm:next","-").concat(je)}),u&&!o.campaign&&(o.campaign=Zi(u));var c=Yi();c&&(o.amp={id:c}),eo(u,o,(i=t.instance.options.disableClientPersistence)!==null&&i!==void 0?i:!1);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return r},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}return e}(),no=new ro;function Fr(e){var t=Array.prototype.slice.call(window.document.querySelectorAll("script"));return t.find(function(r){return r.src===e})}function Qe(e,t){var r=Fr(e);if(r!==void 0){var n=r?.getAttribute("status");if(n==="loaded")return Promise.resolve(r);if(n==="loading")return new Promise(function(i,o){r.addEventListener("load",function(){return i(r)}),r.addEventListener("error",function(a){return o(a)})})}return new Promise(function(i,o){var a,u=window.document.createElement("script");u.type="text/javascript",u.src=e,u.async=!0,u.setAttribute("status","loading");for(var s=0,c=Object.entries({});s<c.length;s++){var l=c[s],d=l[0],p=l[1];u.setAttribute(d,p)}u.onload=function(){u.onerror=u.onload=null,u.setAttribute("status","loaded"),i(u)},u.onerror=function(){u.onerror=u.onload=null,u.setAttribute("status","error"),o(new Error("Failed to load ".concat(e)))};var h=window.document.querySelector("script");h?(a=h.parentElement)===null||a===void 0||a.insertBefore(u,h):window.document.head.appendChild(u)})}function Co(e){var t=Fr(e);return t!==void 0&&t.remove(),Promise.resolve()}function Tr(e,t,r){return y(this,void 0,void 0,function(){function n(c,l){return y(this,void 0,void 0,function(){var d,p,h;return g(this,function(v){switch(v.label){case 0:return d=!1,p=null,[4,l({payload:Fe(c,{clone:!0,traverse:!1}),integration:e,next:function(m){d=!0,m===null&&(p=null),m&&(p=m.obj)}})];case 1:return v.sent(),!d&&p!==null&&(p=p,p.integrations=f(f({},c.integrations),(h={},h[e]=!1,h))),[2,p]}})})}var i,o,a,u,s;return g(this,function(c){switch(c.label){case 0:i=Fe(t,{clone:!0,traverse:!1}).rawEvent(),o=0,a=r,c.label=1;case 1:return o<a.length?(u=a[o],[4,n(i,u)]):[3,4];case 2:if(s=c.sent(),s===null)return[2,null];i=s,c.label=3;case 3:return o++,[3,1];case 4:return[2,i]}})})}function io(e,t){function r(n){return y(this,void 0,void 0,function(){var i;return g(this,function(o){switch(o.label){case 0:return i=!1,[4,e({payload:Fe(n.event,{clone:!0,traverse:!1}),integrations:t??{},next:function(a){i=!0,a&&(n.event=a.obj)}})];case 1:if(o.sent(),!i)throw new ae({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}})})}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(n){return Promise.resolve(n)},track:r,page:r,screen:r,identify:r,alias:r,group:r}}const oo=Object.freeze(Object.defineProperty({__proto__:null,applyDestinationMiddleware:Tr,sourceMiddlewarePlugin:io},Symbol.toStringTag,{value:"Module"}));function Me(e,t){var r=t.methodName,n=t.integrationName,i=t.type,o=t.didError,a=o===void 0?!1:o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(r),"integration_name:".concat(n),"type:".concat(i)])}var ao=function(){function e(t,r){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=Zt(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=r,this.name=t,this.type=r.type,this.alternativeNames.push(r.name)}return e.prototype.addMiddleware=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.type==="destination"&&(t=this.middleware).push.apply(t,r)},e.prototype.transform=function(t){return y(this,void 0,void 0,function(){var r;return g(this,function(n){switch(n.label){case 0:return[4,Tr(this.name,t.event,this.middleware)];case 1:return r=n.sent(),r===null&&t.cancel(new ae({retry:!1,reason:"dropped by destination middleware"})),[2,new K(r)]}})})},e.prototype._createMethod=function(t){var r=this;return function(n){return y(r,void 0,void 0,function(){var i,o;return g(this,function(a){switch(a.label){case 0:return this.action[t]?(i=n,this.type!=="destination"?[3,2]:[4,this.transform(n)]):[2,n];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!a.sent())throw new Error("Something prevented the destination from getting ready");return Me(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](i)];case 4:return a.sent(),[3,6];case 5:throw o=a.sent(),Me(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),o;case 6:return[2,n]}})})}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return y(this,void 0,void 0,function(){return g(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})})},e.prototype.load=function(t,r){return y(this,void 0,void 0,function(){var n,i,o,a;return g(this,function(u){switch(u.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];u.label=1;case 1:return u.trys.push([1,3,,4]),Me(t,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(t,r),o=(i=this.loadPromise).resolve,[4,n];case 2:return o.apply(i,[u.sent()]),[2,n];case 3:throw a=u.sent(),Me(t,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(a),a;case 4:return[2]}})})},e.prototype.unload=function(t,r){var n,i;return(i=(n=this.action).unload)===null||i===void 0?void 0:i.call(n,t,r)},e}();function uo(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];return e.forEach(function(r){t.forEach(function(n){var i;if(r[n]===void 0)throw new Error("Plugin: ".concat((i=r.name)!==null&&i!==void 0?i:"unknown"," missing required function ").concat(n))})}),!0}function so(e,t){var r=e[t.creationName],n=e[t.name];return e.All===!1&&!r&&!n||r===!1||n===!1}function co(e,t){return y(this,void 0,void 0,function(){var r,n,i,o,a,u;return g(this,function(s){switch(s.label){case 0:if(s.trys.push([0,9,,10]),r=new RegExp("https://cdn.segment.(com|build)"),n=Lt(),!t)return[3,6];i=e.url.split("/"),o=i[i.length-2],a=e.url.replace(o,btoa(o).replace(/=/g,"")),s.label=1;case 1:return s.trys.push([1,3,,5]),[4,Qe(a.replace(r,n))];case 2:return s.sent(),[3,5];case 3:return s.sent(),[4,Qe(e.url.replace(r,n))];case 4:return s.sent(),[3,5];case 5:return[3,8];case 6:return[4,Qe(e.url.replace(r,n))];case 7:s.sent(),s.label=8;case 8:return typeof window[e.libraryName]=="function"?[2,window[e.libraryName]]:[3,10];case 9:throw u=s.sent(),console.error("Failed to create PluginFactory",e),u;case 10:return[2]}})})}function lo(e,t,r,n,i,o){var a,u,s;return y(this,void 0,void 0,function(){var c,l,d,p=this;return g(this,function(h){switch(h.label){case 0:return c=[],l=(u=(a=e.middlewareSettings)===null||a===void 0?void 0:a.routingRules)!==null&&u!==void 0?u:[],d=((s=e.remotePlugins)!==null&&s!==void 0?s:[]).map(function(v){return y(p,void 0,void 0,function(){var m,S,_,b,E,O,I;return g(this,function(x){switch(x.label){case 0:if(so(t,v))return[2];x.label=1;case 1:return x.trys.push([1,6,,7]),S=o?.find(function(k){var Q=k.pluginName;return Q===v.name}),S?[3,3]:[4,co(v,n?.obfuscate)];case 2:S=x.sent(),x.label=3;case 3:return m=S,m?(_=r[v.name],[4,m(f(f({},v.settings),_))]):[3,5];case 4:b=x.sent(),E=Array.isArray(b)?b:[b],uo(E),O=l.filter(function(k){return k.destinationName===v.creationName}),E.forEach(function(k){var Q=new ao(v.creationName,k);O.length&&i&&Q.addMiddleware(i),c.push(Q)}),x.label=5;case 5:return[3,7];case 6:return I=x.sent(),console.warn("Failed to load Remote Plugin",I),[3,7];case 7:return[2]}})})}),[4,Promise.all(d)];case 1:return h.sent(),[2,c.filter(Boolean)]}})})}var He,Qt,fo=ht(),Ht=(He=(Qt=fo).__SEGMENT_INSPECTOR__)!==null&&He!==void 0?He:Qt.__SEGMENT_INSPECTOR__={},vo=function(e){var t;return(t=Ht.attach)===null||t===void 0?void 0:t.call(Ht,e)};function ho(e,t){return Te("".concat(t,"/v1/projects/").concat(e,"/settings")).then(function(r){return r.ok?r.json():r.text().then(function(n){throw new Error(n)})}).catch(function(r){throw console.error(r.message),r})}function po(e){return Dr().NODE_ENV!=="test"&&Object.keys(e.integrations).length>1}function yo(e){var t,r,n;return Dr().NODE_ENV!=="test"&&((n=(r=(t=e.middlewareSettings)===null||t===void 0?void 0:t.routingRules)===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0)>0}function go(e,t){$n(e,t),qn(e,t)}function mo(e,t,r){return y(this,void 0,void 0,function(){return g(this,function(n){switch(n.label){case 0:return[4,_o(e,t)];case 1:return n.sent(),Un(e,r),[2]}})})}var bo=function(){var e,t,r=(e=window.location.hash)!==null&&e!==void 0?e:"",n=(t=window.location.search)!==null&&t!==void 0?t:"",i=n.length?n:r.replace(/(?=#).*(?=\?)/,"");return i},_o=function(e,t){return y(void 0,void 0,void 0,function(){return g(this,function(r){switch(r.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})};function wo(e,t,r,n,i,o,a){var u,s,c;return i===void 0&&(i=[]),y(this,void 0,void 0,function(){var l,d,p,h,v,m,S,_,b,E,O,I,x,k,Q,jr=this;return g(this,function(F){switch(F.label){case 0:return go(r,a),l=i?.filter(function(T){return typeof T=="object"}),d=i?.filter(function(T){return typeof T=="function"&&typeof T.pluginName=="string"}),yo(t)?[4,q(()=>import("./index-D6ZMQedT.js"),[]).then(function(T){return T.tsubMiddleware(t.middlewareSettings.routingRules)})]:[3,2];case 1:return h=F.sent(),[3,3];case 2:h=void 0,F.label=3;case 3:return p=h,po(t)||o.length>0?[4,q(()=>import("./index-CJxXHUcP.js"),__vite__mapDeps([7,4,2,3,1,8,5])).then(function(T){return T.ajsDestinations(e,t,r.integrations,n,p,o)})]:[3,5];case 4:return m=F.sent(),[3,6];case 5:m=[],F.label=6;case 6:return v=m,t.legacyVideoPluginsEnabled?[4,q(()=>import("./index-CntXRSz5.js"),__vite__mapDeps([9,1,2,3,4])).then(function(T){return T.loadLegacyVideoPlugins(r)})]:[3,8];case 7:F.sent(),F.label=8;case 8:return!((u=n.plan)===null||u===void 0)&&u.track?[4,q(()=>import("./index-BgXJ6Z6L.js"),__vite__mapDeps([10,4,2,3,1,8])).then(function(T){var te;return T.schemaFilter((te=n.plan)===null||te===void 0?void 0:te.track,t)})]:[3,10];case 9:return _=F.sent(),[3,11];case 10:_=void 0,F.label=11;case 11:return S=_,b=Ji(t,n),[4,lo(t,r.integrations,b,n,p,d).catch(function(){return[]})];case 12:return E=F.sent(),O=C(C([no],v,!0),E,!0),S&&O.push(S),I=((s=n.integrations)===null||s===void 0?void 0:s.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,I?[3,14]:(k=(x=O).push,[4,kr(r,b["Segment.io"],t.integrations)]);case 13:k.apply(x,[F.sent()]),F.label=14;case 14:return[4,r.register.apply(r,C(C([],O,!1),l,!1))];case 15:return Q=F.sent(),[4,Nn(r,a)];case 16:return F.sent(),Object.entries((c=t.enabledMiddleware)!==null&&c!==void 0?c:{}).some(function(T){var te=T[1];return te})?[4,q(()=>import("./index-CXz9iuA3.js"),__vite__mapDeps([11,4,2,3,1,5])).then(function(T){var te=T.remoteMiddlewares;return y(jr,void 0,void 0,function(){var Rt,Nt;return g(this,function(qt){switch(qt.label){case 0:return[4,te(Q,t,n.obfuscate)];case 1:return Rt=qt.sent(),Nt=Rt.map(function(Lr){return r.addSourceMiddleware(Lr)}),[2,Promise.all(Nt)]}})})})]:[3,18];case 17:F.sent(),F.label=18;case 18:return[4,Rn(r,a)];case 19:return F.sent(),[2,Q]}})})}function So(e,t,r){var n,i,o,a,u,s,c,l,d;return t===void 0&&(t={}),y(this,void 0,void 0,function(){var p,h,v,m,S,_,b,E,O,I,x;return g(this,function(k){switch(k.label){case 0:return t.disable===!0?[2,[new Jt,K.system()]]:(t.globalAnalyticsKey&&Tn(t.globalAnalyticsKey),e.cdnURL&&Gi(e.cdnURL),t.initialPageview&&r.add(new it("page",[])),p=bo(),h=(n=e.cdnURL)!==null&&n!==void 0?n:Lt(),(i=e.cdnSettings)!==null&&i!==void 0?(m=i,[3,3]):[3,1]);case 1:return[4,ho(e.writeKey,h)];case 2:m=k.sent(),k.label=3;case 3:return v=m,t.updateCDNSettings&&(v=t.updateCDNSettings(v)),typeof t.disable!="function"?[3,5]:[4,t.disable(v)];case 4:if(S=k.sent(),S)return[2,[new Jt,K.system()]];k.label=5;case 5:return _=(a=(o=v.integrations["Segment.io"])===null||o===void 0?void 0:o.retryQueue)!==null&&a!==void 0?a:!0,t=f({retryQueue:_},t),b=new jt(f(f({},e),{cdnSettings:v,cdnURL:h}),t),vo(b),E=(u=e.plugins)!==null&&u!==void 0?u:[],O=(s=e.classicIntegrations)!==null&&s!==void 0?s:[],I=(c=t.integrations)===null||c===void 0?void 0:c["Segment.io"],ir.initRemoteMetrics(f(f({},v.metrics),{host:(l=I?.apiHost)!==null&&l!==void 0?l:(d=v.metrics)===null||d===void 0?void 0:d.host,protocol:I?.protocol})),[4,wo(e.writeKey,v,b,t,E,O,r)];case 6:return x=k.sent(),b.initialized=!0,b.emit("initialize",e,t),[4,mo(b,p,r)];case 7:return k.sent(),[2,[b,x]]}})})}var Eo=function(e){R(t,e);function t(){var r=this,n=Zt(),i=n.promise,o=n.resolve;return r=e.call(this,function(a){return i.then(function(u){var s=u[0],c=u[1];return So(s,c,a)})})||this,r._resolveLoadStart=function(a,u){return o([a,u])},r}return t.prototype.load=function(r,n){return n===void 0&&(n={}),this._resolveLoadStart(r,n),this},t.load=function(r,n){return n===void 0&&(n={}),new t().load(r,n)},t.standalone=function(r,n){return t.load({writeKey:r},n).then(function(i){return i[0]})},t}(Bn);const ko=Object.freeze(Object.defineProperty({__proto__:null,Analytics:jt,AnalyticsBrowser:Eo,Context:K,ContextCancelation:ae,EventFactory:cr,Group:gr,UniversalStorage:Y,User:mt,getGlobalAnalytics:_t,isDestinationPluginWithAddMiddleware:lr,resolveAliasArguments:rr,resolveArguments:tr,resolvePageArguments:Ye,resolveUserArguments:et,segmentio:kr},Symbol.toStringTag,{value:"Module"}));export{ae as C,ft as P,Mo as a,Se as b,Tr as c,X as d,xo as e,Ri as f,Wi as g,Zt as h,$ as i,pt as j,we as k,Qe as l,Ji as m,dn as n,K as o,Hr as p,ko as q,Me as r,Co as u};
|
package/assets/index-CntXRSz5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.umd-CIiTi8qb.js","assets/vendor-mui-40jyI-Tp.js","assets/vendor-react-DJXYd7Dm.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as o}from"./vendor-web3-Dw3dBix7.js";import{d as n,e as a}from"./index-DoaqdCF9.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";function c(i){return n(this,void 0,void 0,function(){var r;return a(this,function(t){switch(t.label){case 0:return[4,o(()=>import("./index.umd-CIiTi8qb.js").then(e=>e.i),__vite__mapDeps([0,1,2]))];case 1:return r=t.sent(),i._plugins=r,[2]}})})}export{c as loadLegacyVideoPlugins};
|
package/assets/index-DIS5DQM_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as se}from"./index-DoaqdCF9.js";import{K as Wr,$ as qr,B as Kr,m as Vr,q as Xr,J as Ye}from"./index-HuL12PNJ.js";import{g as vt,R as ht,T as yt,k as pt,E as mt,a as bt,V as gt,s as _t,I as wt,b as It,c as Et,N as St,f as Ot,d as jt,v as Nt,_ as At,e as Bt,h as kt,O as xt,y as Dt,A as Rt,i as Ct,W as Lt,p as Mt,U as Tt,L as zt,u as Ft,x as Pt}from"./index-HuL12PNJ.js";import"./vendor-react-DJXYd7Dm.js";import"./vendor-mui-40jyI-Tp.js";import"./vendor-web3-Dw3dBix7.js";var Yr=Object.create,Qe=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyNames,Zr=Object.getPrototypeOf,Hr=Object.prototype.hasOwnProperty,pe=(_=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(_,{get:(O,m)=>(typeof require<"u"?require:O)[m]}):_)(function(_){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+_+'" is not supported')}),Ze=(_,O)=>()=>(O||_((O={exports:{}}).exports,O),O.exports),Gr=(_,O,m,x)=>{if(O&&typeof O=="object"||typeof O=="function")for(let q of Qr(O))!Hr.call(_,q)&&q!==m&&Qe(_,q,{get:()=>O[q],enumerable:!(x=Jr(O,q))||x.enumerable});return _},He=(_,O,m)=>(m=_!=null?Yr(Zr(_)):{},Gr(!_||!_.__esModule?Qe(m,"default",{value:_,enumerable:!0}):m,_)),me=(_,O,m)=>new Promise((x,q)=>{var C=D=>{try{j(m.next(D))}catch(L){q(L)}},P=D=>{try{j(m.throw(D))}catch(L){q(L)}},j=D=>D.done?x(D.value):Promise.resolve(D.value).then(C,P);j((m=m.apply(_,O)).next())}),$r=Ze((_,O)=>{(function(m){if(typeof _=="object"&&typeof O<"u")O.exports=m();else if(typeof define=="function"&&define.amd)define([],m);else{var x;typeof window<"u"?x=window:typeof se<"u"?x=se:typeof self<"u"?x=self:x=this,x.localforage=m()}})(function(){return function m(x,q,C){function P(L,Y){if(!q[L]){if(!x[L]){var y=typeof pe=="function"&&pe;if(!Y&&y)return y(L,!0);if(j)return j(L,!0);var w=new Error("Cannot find module '"+L+"'");throw w.code="MODULE_NOT_FOUND",w}var z=q[L]={exports:{}};x[L][0].call(z.exports,function(F){var Z=x[L][1][F];return P(Z||F)},z,z.exports,m,x,q,C)}return q[L].exports}for(var j=typeof pe=="function"&&pe,D=0;D<C.length;D++)P(C[D]);return P}({1:[function(m,x,q){(function(C){var P=C.MutationObserver||C.WebKitMutationObserver,j;if(P){var D=0,L=new P(F),Y=C.document.createTextNode("");L.observe(Y,{characterData:!0}),j=function(){Y.data=D=++D%2}}else if(!C.setImmediate&&typeof C.MessageChannel<"u"){var y=new C.MessageChannel;y.port1.onmessage=F,j=function(){y.port2.postMessage(0)}}else"document"in C&&"onreadystatechange"in C.document.createElement("script")?j=function(){var A=C.document.createElement("script");A.onreadystatechange=function(){F(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},C.document.documentElement.appendChild(A)}:j=function(){setTimeout(F,0)};var w,z=[];function F(){w=!0;for(var A,G,U=z.length;U;){for(G=z,z=[],A=-1;++A<U;)G[A]();U=z.length}w=!1}x.exports=Z;function Z(A){z.push(A)===1&&!w&&j()}}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(m,x,q){var C=m(1);function P(){}var j={},D=["REJECTED"],L=["FULFILLED"],Y=["PENDING"];x.exports=y;function y(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=Y,this.queue=[],this.outcome=void 0,v!==P&&Z(this,v)}y.prototype.catch=function(v){return this.then(null,v)},y.prototype.then=function(v,N){if(typeof v!="function"&&this.state===L||typeof N!="function"&&this.state===D)return this;var E=new this.constructor(P);if(this.state!==Y){var B=this.state===L?v:N;z(E,B,this.outcome)}else this.queue.push(new w(E,v,N));return E};function w(v,N,E){this.promise=v,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}w.prototype.callFulfilled=function(v){j.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){z(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){j.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){z(this.promise,this.onRejected,v)};function z(v,N,E){C(function(){var B;try{B=N(E)}catch(K){return j.reject(v,K)}B===v?j.reject(v,new TypeError("Cannot resolve promise with itself")):j.resolve(v,B)})}j.resolve=function(v,N){var E=A(F,N);if(E.status==="error")return j.reject(v,E.value);var B=E.value;if(B)Z(v,B);else{v.state=L,v.outcome=N;for(var K=-1,X=v.queue.length;++K<X;)v.queue[K].callFulfilled(N)}return v},j.reject=function(v,N){v.state=D,v.outcome=N;for(var E=-1,B=v.queue.length;++E<B;)v.queue[E].callRejected(N);return v};function F(v){var N=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof N=="function")return function(){N.apply(v,arguments)}}function Z(v,N){var E=!1;function B(Q){E||(E=!0,j.reject(v,Q))}function K(Q){E||(E=!0,j.resolve(v,Q))}function X(){N(K,B)}var J=A(X);J.status==="error"&&B(J.value)}function A(v,N){var E={};try{E.value=v(N),E.status="success"}catch(B){E.status="error",E.value=B}return E}y.resolve=G;function G(v){return v instanceof this?v:j.resolve(new this(P),v)}y.reject=U;function U(v){var N=new this(P);return j.reject(N,v)}y.all=oe;function oe(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=new Array(E),X=0,J=-1,Q=new this(P);++J<E;)$(v[J],J);return Q;function $(ie,ue){N.resolve(ie).then(le,function(re){B||(B=!0,j.reject(Q,re))});function le(re){K[ue]=re,++X===E&&!B&&(B=!0,j.resolve(Q,K))}}}y.race=ee;function ee(v){var N=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=v.length,B=!1;if(!E)return this.resolve([]);for(var K=-1,X=new this(P);++K<E;)J(v[K]);return X;function J(Q){N.resolve(Q).then(function($){B||(B=!0,j.resolve(X,$))},function($){B||(B=!0,j.reject(X,$))})}}},{1:1}],3:[function(m,x,q){(function(C){typeof C.Promise!="function"&&(C.Promise=m(2))}).call(this,typeof se<"u"?se:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(m,x,q){var C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function P(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function j(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var D=j();function L(){try{if(!D||!D.open)return!1;var e=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),r=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!e||r)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function Y(e,r){e=e||[],r=r||{};try{return new Blob(e,r)}catch(i){if(i.name!=="TypeError")throw i;for(var t=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,o=new t,n=0;n<e.length;n+=1)o.append(e[n]);return o.getBlob(r.type)}}typeof Promise>"u"&&m(3);var y=Promise;function w(e,r){r&&e.then(function(t){r(null,t)},function(t){r(t)})}function z(e,r,t){typeof r=="function"&&e.then(r),typeof t=="function"&&e.catch(t)}function F(e){return typeof e!="string"&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function Z(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",G=void 0,U={},oe=Object.prototype.toString,ee="readonly",v="readwrite";function N(e){for(var r=e.length,t=new ArrayBuffer(r),o=new Uint8Array(t),n=0;n<r;n++)o[n]=e.charCodeAt(n);return t}function E(e){return new y(function(r){var t=e.transaction(A,v),o=Y([""]);t.objectStore(A).put(o,"key"),t.onabort=function(n){n.preventDefault(),n.stopPropagation(),r(!1)},t.oncomplete=function(){var n=navigator.userAgent.match(/Chrome\/(\d+)/),i=navigator.userAgent.match(/Edge\//);r(i||!n||parseInt(n[1],10)>=43)}}).catch(function(){return!1})}function B(e){return typeof G=="boolean"?y.resolve(G):E(e).then(function(r){return G=r,G})}function K(e){var r=U[e.name],t={};t.promise=new y(function(o,n){t.resolve=o,t.reject=n}),r.deferredOperations.push(t),r.dbReady?r.dbReady=r.dbReady.then(function(){return t.promise}):r.dbReady=t.promise}function X(e){var r=U[e.name],t=r.deferredOperations.pop();if(t)return t.resolve(),t.promise}function J(e,r){var t=U[e.name],o=t.deferredOperations.pop();if(o)return o.reject(r),o.promise}function Q(e,r){return new y(function(t,o){if(U[e.name]=U[e.name]||g(),e.db)if(r)K(e),e.db.close();else return t(e.db);var n=[e.name];r&&n.push(e.version);var i=D.open.apply(D,n);r&&(i.onupgradeneeded=function(u){var c=i.result;try{c.createObjectStore(e.storeName),u.oldVersion<=1&&c.createObjectStore(A)}catch(d){if(d.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+u.oldVersion+" to version "+u.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw d}}),i.onerror=function(u){u.preventDefault(),o(i.error)},i.onsuccess=function(){var u=i.result;u.onversionchange=function(c){c.target.close()},t(u),X(e)}})}function $(e){return Q(e,!1)}function ie(e){return Q(e,!0)}function ue(e,r){if(!e.db)return!0;var t=!e.db.objectStoreNames.contains(e.storeName),o=e.version<e.db.version,n=e.version>e.db.version;if(o&&(e.version!==r&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||t){if(t){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function le(e){return new y(function(r,t){var o=new FileReader;o.onerror=t,o.onloadend=function(n){var i=btoa(n.target.result||"");r({__local_forage_encoded_blob:!0,data:i,type:e.type})},o.readAsBinaryString(e)})}function re(e){var r=N(atob(e.data));return Y([r],{type:e.type})}function a(e){return e&&e.__local_forage_encoded_blob}function f(e){var r=this,t=r._initReady().then(function(){var o=U[r._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return z(t,e,e),t}function h(e){K(e);for(var r=U[e.name],t=r.forages,o=0;o<t.length;o++){var n=t[o];n._dbInfo.db&&(n._dbInfo.db.close(),n._dbInfo.db=null)}return e.db=null,$(e).then(function(i){return e.db=i,ue(e)?ie(e):i}).then(function(i){e.db=r.db=i;for(var u=0;u<t.length;u++)t[u]._dbInfo.db=i}).catch(function(i){throw J(e,i),i})}function p(e,r,t,o){o===void 0&&(o=1);try{var n=e.db.transaction(e.storeName,r);t(null,n)}catch(i){if(o>0&&(!e.db||i.name==="InvalidStateError"||i.name==="NotFoundError"))return y.resolve().then(function(){if(!e.db||i.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),ie(e)}).then(function(){return h(e).then(function(){p(e,r,t,o-1)})}).catch(t);t(i)}}function g(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function I(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=e[o];var n=U[t.name];n||(n=g(),U[t.name]=n),n.forages.push(r),r._initReady||(r._initReady=r.ready,r.ready=f);var i=[];function u(){return y.resolve()}for(var c=0;c<n.forages.length;c++){var d=n.forages[c];d!==r&&i.push(d._initReady().catch(u))}var l=n.forages.slice(0);return y.all(i).then(function(){return t.db=n.db,$(t)}).then(function(s){return t.db=s,ue(t,r._defaultConfig.version)?ie(t):s}).then(function(s){t.db=n.db=s,r._dbInfo=t;for(var b=0;b<l.length;b++){var S=l[b];S!==r&&(S._dbInfo.db=t.db,S._dbInfo.version=t.version)}})}function M(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.get(e);l.onsuccess=function(){var s=l.result;s===void 0&&(s=null),a(s)&&(s=re(s)),n(s)},l.onerror=function(){i(l.error)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function V(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.openCursor(),s=1;l.onsuccess=function(){var b=l.result;if(b){var S=b.value;a(S)&&(S=re(S));var R=e(S,b.key,s++);R!==void 0?n(R):b.continue()}else n()},l.onerror=function(){i(l.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function ce(e,r,t){var o=this;e=F(e);var n=new y(function(i,u){var c;o.ready().then(function(){return c=o._dbInfo,oe.call(r)==="[object Blob]"?B(c.db).then(function(d){return d?r:le(r)}):r}).then(function(d){p(o._dbInfo,v,function(l,s){if(l)return u(l);try{var b=s.objectStore(o._dbInfo.storeName);d===null&&(d=void 0);var S=b.put(d,e);s.oncomplete=function(){d===void 0&&(d=null),i(d)},s.onabort=s.onerror=function(){var R=S.error?S.error:S.transaction.error;u(R)}}catch(R){u(R)}})}).catch(u)});return w(n,t),n}function ae(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){p(t._dbInfo,v,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=d.delete(e);c.oncomplete=function(){n()},c.onerror=function(){i(l.error)},c.onabort=function(){var s=l.error?l.error:l.transaction.error;i(s)}}catch(s){i(s)}})}).catch(i)});return w(o,r),o}function de(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,v,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.clear();u.oncomplete=function(){o()},u.onabort=u.onerror=function(){var l=d.error?d.error:d.transaction.error;n(l)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function Ge(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.count();d.onsuccess=function(){o(d.result)},d.onerror=function(){n(d.error)}}catch(l){n(l)}})}).catch(n)});return w(t,e),t}function $e(e,r){var t=this,o=new y(function(n,i){if(e<0){n(null);return}t.ready().then(function(){p(t._dbInfo,ee,function(u,c){if(u)return i(u);try{var d=c.objectStore(t._dbInfo.storeName),l=!1,s=d.openKeyCursor();s.onsuccess=function(){var b=s.result;if(!b){n(null);return}e===0||l?n(b.key):(l=!0,b.advance(e))},s.onerror=function(){i(s.error)}}catch(b){i(b)}})}).catch(i)});return w(o,r),o}function er(e){var r=this,t=new y(function(o,n){r.ready().then(function(){p(r._dbInfo,ee,function(i,u){if(i)return n(i);try{var c=u.objectStore(r._dbInfo.storeName),d=c.openKeyCursor(),l=[];d.onsuccess=function(){var s=d.result;if(!s){o(l);return}l.push(s.key),s.continue()},d.onerror=function(){n(d.error)}}catch(s){n(s)}})}).catch(n)});return w(t,e),t}function rr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;if(!e.name)n=y.reject("Invalid arguments");else{var i=e.name===t.name&&o._dbInfo.db,u=i?y.resolve(o._dbInfo.db):$(e).then(function(c){var d=U[e.name],l=d.forages;d.db=c;for(var s=0;s<l.length;s++)l[s]._dbInfo.db=c;return c});e.storeName?n=u.then(function(c){if(c.objectStoreNames.contains(e.storeName)){var d=c.version+1;K(e);var l=U[e.name],s=l.forages;c.close();for(var b=0;b<s.length;b++){var S=s[b];S._dbInfo.db=null,S._dbInfo.version=d}var R=new y(function(k,W){var T=D.open(e.name,d);T.onerror=function(H){var Oe=T.result;Oe.close(),W(H)},T.onupgradeneeded=function(){var H=T.result;H.deleteObjectStore(e.storeName)},T.onsuccess=function(){var H=T.result;H.close(),k(H)}});return R.then(function(k){l.db=k;for(var W=0;W<s.length;W++){var T=s[W];T._dbInfo.db=k,X(T._dbInfo)}}).catch(function(k){throw(J(e,k)||y.resolve()).catch(function(){}),k})}}):n=u.then(function(c){K(e);var d=U[e.name],l=d.forages;c.close();for(var s=0;s<l.length;s++){var b=l[s];b._dbInfo.db=null}var S=new y(function(R,k){var W=D.deleteDatabase(e.name);W.onerror=function(){var T=W.result;T&&T.close(),k(W.error)},W.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},W.onsuccess=function(){var T=W.result;T&&T.close(),R(T)}});return S.then(function(R){d.db=R;for(var k=0;k<l.length;k++){var W=l[k];X(W._dbInfo)}}).catch(function(R){throw(J(e,R)||y.resolve()).catch(function(){}),R})})}return w(n,r),n}var tr={_driver:"asyncStorage",_initStorage:I,_support:L(),iterate:V,getItem:M,setItem:ce,removeItem:ae,clear:de,length:Ge,key:$e,keys:er,dropInstance:rr};function nr(){return typeof openDatabase=="function"}var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",or="~~local_forage_type~",Ae=/^~~local_forage_type~([^~]+)~/,he="__lfsc__:",be=he.length,ge="arbf",_e="blob",Be="si08",ke="ui08",xe="uic8",De="si16",Re="si32",Ce="ur16",Le="ui32",Me="fl32",Te="fl64",ze=be+ge.length,Fe=Object.prototype.toString;function Pe(e){var r=e.length*.75,t=e.length,o,n=0,i,u,c,d;e[e.length-1]==="="&&(r--,e[e.length-2]==="="&&r--);var l=new ArrayBuffer(r),s=new Uint8Array(l);for(o=0;o<t;o+=4)i=te.indexOf(e[o]),u=te.indexOf(e[o+1]),c=te.indexOf(e[o+2]),d=te.indexOf(e[o+3]),s[n++]=i<<2|u>>4,s[n++]=(u&15)<<4|c>>2,s[n++]=(c&3)<<6|d&63;return l}function we(e){var r=new Uint8Array(e),t="",o;for(o=0;o<r.length;o+=3)t+=te[r[o]>>2],t+=te[(r[o]&3)<<4|r[o+1]>>4],t+=te[(r[o+1]&15)<<2|r[o+2]>>6],t+=te[r[o+2]&63];return r.length%3===2?t=t.substring(0,t.length-1)+"=":r.length%3===1&&(t=t.substring(0,t.length-2)+"=="),t}function ir(e,r){var t="";if(e&&(t=Fe.call(e)),e&&(t==="[object ArrayBuffer]"||e.buffer&&Fe.call(e.buffer)==="[object ArrayBuffer]")){var o,n=he;e instanceof ArrayBuffer?(o=e,n+=ge):(o=e.buffer,t==="[object Int8Array]"?n+=Be:t==="[object Uint8Array]"?n+=ke:t==="[object Uint8ClampedArray]"?n+=xe:t==="[object Int16Array]"?n+=De:t==="[object Uint16Array]"?n+=Ce:t==="[object Int32Array]"?n+=Re:t==="[object Uint32Array]"?n+=Le:t==="[object Float32Array]"?n+=Me:t==="[object Float64Array]"?n+=Te:r(new Error("Failed to get type for BinaryArray"))),r(n+we(o))}else if(t==="[object Blob]"){var i=new FileReader;i.onload=function(){var u=or+e.type+"~"+we(this.result);r(he+_e+u)},i.readAsArrayBuffer(e)}else try{r(JSON.stringify(e))}catch(u){console.error("Couldn't convert value into a JSON string: ",e),r(null,u)}}function ar(e){if(e.substring(0,be)!==he)return JSON.parse(e);var r=e.substring(ze),t=e.substring(be,ze),o;if(t===_e&&Ae.test(r)){var n=r.match(Ae);o=n[1],r=r.substring(n[0].length)}var i=Pe(r);switch(t){case ge:return i;case _e:return Y([i],{type:o});case Be:return new Int8Array(i);case ke:return new Uint8Array(i);case xe:return new Uint8ClampedArray(i);case De:return new Int16Array(i);case Ce:return new Uint16Array(i);case Re:return new Int32Array(i);case Le:return new Uint32Array(i);case Me:return new Float32Array(i);case Te:return new Float64Array(i);default:throw new Error("Unkown type: "+t)}}var Ie={serialize:ir,deserialize:ar,stringToBuffer:Pe,bufferToString:we};function Ue(e,r,t,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+r.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],t,o)}function ur(e){var r=this,t={db:null};if(e)for(var o in e)t[o]=typeof e[o]!="string"?e[o].toString():e[o];var n=new y(function(i,u){try{t.db=openDatabase(t.name,String(t.version),t.description,t.size)}catch(c){return u(c)}t.db.transaction(function(c){Ue(c,t,function(){r._dbInfo=t,i()},function(d,l){u(l)})},u)});return t.serializer=Ie,n}function ne(e,r,t,o,n,i){e.executeSql(t,o,n,function(u,c){c.code===c.SYNTAX_ERR?u.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(d,l){l.rows.length?i(d,c):Ue(d,r,function(){d.executeSql(t,o,n,i)},i)},i):i(u,c)},i)}function cr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName+" WHERE key = ? LIMIT 1",[e],function(d,l){var s=l.rows.length?l.rows.item(0).value:null;s&&(s=u.serializer.deserialize(s)),n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function fr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT * FROM "+u.storeName,[],function(d,l){for(var s=l.rows,b=s.length,S=0;S<b;S++){var R=s.item(S),k=R.value;if(k&&(k=u.serializer.deserialize(k)),k=e(k,R.key,S+1),k!==void 0){n(k);return}}n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function We(e,r,t,o){var n=this;e=F(e);var i=new y(function(u,c){n.ready().then(function(){r===void 0&&(r=null);var d=r,l=n._dbInfo;l.serializer.serialize(r,function(s,b){b?c(b):l.db.transaction(function(S){ne(S,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,s],function(){u(d)},function(R,k){c(k)})},function(S){if(S.code===S.QUOTA_ERR){if(o>0){u(We.apply(n,[e,d,t,o-1]));return}c(S)}})})}).catch(c)});return w(i,t),i}function sr(e,r,t){return We.apply(this,[e,r,t,1])}function lr(e,r){var t=this;e=F(e);var o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"DELETE FROM "+u.storeName+" WHERE key = ?",[e],function(){n()},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function dr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"DELETE FROM "+i.storeName,[],function(){o()},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function vr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT COUNT(key) as c FROM "+i.storeName,[],function(c,d){var l=d.rows.item(0).c;o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function hr(e,r){var t=this,o=new y(function(n,i){t.ready().then(function(){var u=t._dbInfo;u.db.transaction(function(c){ne(c,u,"SELECT key FROM "+u.storeName+" WHERE id = ? LIMIT 1",[e+1],function(d,l){var s=l.rows.length?l.rows.item(0).key:null;n(s)},function(d,l){i(l)})})}).catch(i)});return w(o,r),o}function yr(e){var r=this,t=new y(function(o,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(u){ne(u,i,"SELECT key FROM "+i.storeName,[],function(c,d){for(var l=[],s=0;s<d.rows.length;s++)l.push(d.rows.item(s).key);o(l)},function(c,d){n(d)})})}).catch(n)});return w(t,e),t}function pr(e){return new y(function(r,t){e.transaction(function(o){o.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(n,i){for(var u=[],c=0;c<i.rows.length;c++)u.push(i.rows.item(c).name);r({db:e,storeNames:u})},function(n,i){t(i)})},function(o){t(o)})})}function mr(e,r){r=Z.apply(this,arguments);var t=this.config();e=typeof e!="function"&&e||{},e.name||(e.name=e.name||t.name,e.storeName=e.storeName||t.storeName);var o=this,n;return e.name?n=new y(function(i){var u;e.name===t.name?u=o._dbInfo.db:u=openDatabase(e.name,"","",0),e.storeName?i({db:u,storeNames:[e.storeName]}):i(pr(u))}).then(function(i){return new y(function(u,c){i.db.transaction(function(d){function l(R){return new y(function(k,W){d.executeSql("DROP TABLE IF EXISTS "+R,[],function(){k()},function(T,H){W(H)})})}for(var s=[],b=0,S=i.storeNames.length;b<S;b++)s.push(l(i.storeNames[b]));y.all(s).then(function(){u()}).catch(function(R){c(R)})},function(d){c(d)})})}):n=y.reject("Invalid arguments"),w(n,r),n}var br={_driver:"webSQLStorage",_initStorage:ur,_support:nr(),iterate:fr,getItem:cr,setItem:sr,removeItem:lr,clear:dr,length:vr,key:hr,keys:yr,dropInstance:mr};function gr(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qe(e,r){var t=e.name+"/";return e.storeName!==r.storeName&&(t+=e.storeName+"/"),t}function _r(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch{return!0}}function wr(){return!_r()||localStorage.length>0}function Ir(e){var r=this,t={};if(e)for(var o in e)t[o]=e[o];return t.keyPrefix=qe(e,r._defaultConfig),wr()?(r._dbInfo=t,t.serializer=Ie,y.resolve()):y.reject()}function Er(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var i=localStorage.key(n);i.indexOf(o)===0&&localStorage.removeItem(i)}});return w(t,e),t}function Sr(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo,i=localStorage.getItem(n.keyPrefix+e);return i&&(i=n.serializer.deserialize(i)),i});return w(o,r),o}function Or(e,r){var t=this,o=t.ready().then(function(){for(var n=t._dbInfo,i=n.keyPrefix,u=i.length,c=localStorage.length,d=1,l=0;l<c;l++){var s=localStorage.key(l);if(s.indexOf(i)===0){var b=localStorage.getItem(s);if(b&&(b=n.serializer.deserialize(b)),b=e(b,s.substring(u),d++),b!==void 0)return b}}});return w(o,r),o}function jr(e,r){var t=this,o=t.ready().then(function(){var n=t._dbInfo,i;try{i=localStorage.key(e)}catch{i=null}return i&&(i=i.substring(n.keyPrefix.length)),i});return w(o,r),o}function Nr(e){var r=this,t=r.ready().then(function(){for(var o=r._dbInfo,n=localStorage.length,i=[],u=0;u<n;u++){var c=localStorage.key(u);c.indexOf(o.keyPrefix)===0&&i.push(c.substring(o.keyPrefix.length))}return i});return w(t,e),t}function Ar(e){var r=this,t=r.keys().then(function(o){return o.length});return w(t,e),t}function Br(e,r){var t=this;e=F(e);var o=t.ready().then(function(){var n=t._dbInfo;localStorage.removeItem(n.keyPrefix+e)});return w(o,r),o}function kr(e,r,t){var o=this;e=F(e);var n=o.ready().then(function(){r===void 0&&(r=null);var i=r;return new y(function(u,c){var d=o._dbInfo;d.serializer.serialize(r,function(l,s){if(s)c(s);else try{localStorage.setItem(d.keyPrefix+e,l),u(i)}catch(b){(b.name==="QuotaExceededError"||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&c(b),c(b)}})})});return w(n,t),n}function xr(e,r){if(r=Z.apply(this,arguments),e=typeof e!="function"&&e||{},!e.name){var t=this.config();e.name=e.name||t.name,e.storeName=e.storeName||t.storeName}var o=this,n;return e.name?n=new y(function(i){e.storeName?i(qe(e,o._defaultConfig)):i(e.name+"/")}).then(function(i){for(var u=localStorage.length-1;u>=0;u--){var c=localStorage.key(u);c.indexOf(i)===0&&localStorage.removeItem(c)}}):n=y.reject("Invalid arguments"),w(n,r),n}var Dr={_driver:"localStorageWrapper",_initStorage:Ir,_support:gr(),iterate:Or,getItem:Sr,setItem:kr,removeItem:Br,clear:Er,length:Ar,key:jr,keys:Nr,dropInstance:xr},Rr=function(e,r){return e===r||typeof e=="number"&&typeof r=="number"&&isNaN(e)&&isNaN(r)},Cr=function(e,r){for(var t=e.length,o=0;o<t;){if(Rr(e[o],r))return!0;o++}return!1},Ke=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},ve={},Ve={},fe={INDEXEDDB:tr,WEBSQL:br,LOCALSTORAGE:Dr},Lr=[fe.INDEXEDDB._driver,fe.WEBSQL._driver,fe.LOCALSTORAGE._driver],ye=["dropInstance"],Ee=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ye),Mr={description:"",driver:Lr.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Tr(e,r){e[r]=function(){var t=arguments;return e.ready().then(function(){return e[r].apply(e,t)})}}function Se(){for(var e=1;e<arguments.length;e++){var r=arguments[e];if(r)for(var t in r)r.hasOwnProperty(t)&&(Ke(r[t])?arguments[0][t]=r[t].slice():arguments[0][t]=r[t])}return arguments[0]}var zr=function(){function e(r){P(this,e);for(var t in fe)if(fe.hasOwnProperty(t)){var o=fe[t],n=o._driver;this[t]=n,ve[n]||this.defineDriver(o)}this._defaultConfig=Se({},Mr),this._config=Se({},this._defaultConfig,r),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(r){if((typeof r>"u"?"undefined":C(r))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in r){if(t==="storeName"&&(r[t]=r[t].replace(/\W/g,"_")),t==="version"&&typeof r[t]!="number")return new Error("Database version must be a number.");this._config[t]=r[t]}return"driver"in r&&r.driver?this.setDriver(this._config.driver):!0}else return typeof r=="string"?this._config[r]:this._config},e.prototype.defineDriver=function(r,t,o){var n=new y(function(i,u){try{var c=r._driver,d=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!r._driver){u(d);return}for(var l=Ee.concat("_initStorage"),s=0,b=l.length;s<b;s++){var S=l[s],R=!Cr(ye,S);if((R||r[S])&&typeof r[S]!="function"){u(d);return}}var k=function(){for(var T=function(Pr){return function(){var Ur=new Error("Method "+Pr+" is not implemented by the current driver"),Xe=y.reject(Ur);return w(Xe,arguments[arguments.length-1]),Xe}},H=0,Oe=ye.length;H<Oe;H++){var je=ye[H];r[je]||(r[je]=T(je))}};k();var W=function(T){ve[c]&&console.info("Redefining LocalForage driver: "+c),ve[c]=r,Ve[c]=T,i()};"_support"in r?r._support&&typeof r._support=="function"?r._support().then(W,u):W(!!r._support):W(!0)}catch(T){u(T)}});return z(n,t,o),n},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(r,t,o){var n=ve[r]?y.resolve(ve[r]):y.reject(new Error("Driver not found."));return z(n,t,o),n},e.prototype.getSerializer=function(r){var t=y.resolve(Ie);return z(t,r),t},e.prototype.ready=function(r){var t=this,o=t._driverSet.then(function(){return t._ready===null&&(t._ready=t._initDriver()),t._ready});return z(o,r,r),o},e.prototype.setDriver=function(r,t,o){var n=this;Ke(r)||(r=[r]);var i=this._getSupportedDrivers(r);function u(){n._config.driver=n.driver()}function c(s){return n._extend(s),u(),n._ready=n._initStorage(n._config),n._ready}function d(s){return function(){var b=0;function S(){for(;b<s.length;){var R=s[b];return b++,n._dbInfo=null,n._ready=null,n.getDriver(R).then(c).catch(S)}u();var k=new Error("No available storage method found.");return n._driverSet=y.reject(k),n._driverSet}return S()}}var l=this._driverSet!==null?this._driverSet.catch(function(){return y.resolve()}):y.resolve();return this._driverSet=l.then(function(){var s=i[0];return n._dbInfo=null,n._ready=null,n.getDriver(s).then(function(b){n._driver=b._driver,u(),n._wrapLibraryMethodsWithReady(),n._initDriver=d(i)})}).catch(function(){u();var s=new Error("No available storage method found.");return n._driverSet=y.reject(s),n._driverSet}),z(this._driverSet,t,o),this._driverSet},e.prototype.supports=function(r){return!!Ve[r]},e.prototype._extend=function(r){Se(this,r)},e.prototype._getSupportedDrivers=function(r){for(var t=[],o=0,n=r.length;o<n;o++){var i=r[o];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var r=0,t=Ee.length;r<t;r++)Tr(this,Ee[r])},e.prototype.createInstance=function(r){return new e(r)},e}(),Fr=new zr;x.exports=Fr},{3:3}]},{},[4])(4)})}),et=Ze((_,O)=>{(function(m,x){typeof _=="object"&&typeof O<"u"?x(_):typeof define=="function"&&define.amd?define("localforage-driver-memory",["exports"],x):x(m.LocalforageDriverMemory={})})(typeof self<"u"?self:_,function(m){var x="localforage-driver-memory";function q(a){var f=typeof Symbol=="function"&&a[Symbol.iterator],h=0;return f?f.call(a):{next:function(){return a&&h>=a.length&&(a=void 0),{value:a&&a[h++],done:!a}}}}function C(a,f){a=a||[],f=f||{};try{return new Blob(a,f)}catch(I){if(I.name!=="TypeError")throw I;for(var h=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,p=new h,g=0;g<a.length;g+=1)p.append(a[g]);return p.getBlob(f.type)}}var P=/^~~local_forage_type~([^~]+)~/,j=9,D=j+4,L=Object.prototype.toString;function Y(a){var f=a.length*.75,h=a.length;a[a.length-1]==="="&&(f--,a[a.length-2]==="="&&f--);for(var p=new ArrayBuffer(f),g=new Uint8Array(p),I=0,M=0;I<h;I+=4){var V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I]),ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+1]),ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+2]),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[I+3]);g[M++]=V<<2|ce>>4,g[M++]=(ce&15)<<4|ae>>2,g[M++]=(ae&3)<<6|de&63}return p}function y(a){for(var f=new Uint8Array(a),h="",p=0;p<f.length;p+=3)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p]>>2],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p]&3)<<4|f[p+1]>>4],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(f[p+1]&15)<<2|f[p+2]>>6],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f[p+2]&63];return f.length%3===2?h=h.substring(0,h.length-1)+"=":f.length%3===1&&(h=h.substring(0,h.length-2)+"=="),h}function w(a,f){var h="";if(a&&(h=L.call(a)),a&&(h==="[object ArrayBuffer]"||a.buffer&&L.call(a.buffer)==="[object ArrayBuffer]")){var p=void 0,g="__lfsc__:";a instanceof ArrayBuffer?(p=a,g+="arbf"):(p=a.buffer,h==="[object Int8Array]"?g+="si08":h==="[object Uint8Array]"?g+="ui08":h==="[object Uint8ClampedArray]"?g+="uic8":h==="[object Int16Array]"?g+="si16":h==="[object Uint16Array]"?g+="ur16":h==="[object Int32Array]"?g+="si32":h==="[object Uint32Array]"?g+="ui32":h==="[object Float32Array]"?g+="fl32":h==="[object Float64Array]"?g+="fl64":f(new Error("Failed to get type for BinaryArray"))),f(g+y(p))}else if(h==="[object Blob]"){var I=new FileReader;I.onload=function(){var M="~~local_forage_type~"+a.type+"~"+y(this.result);f("__lfsc__:blob"+M)},I.readAsArrayBuffer(a)}else try{f(JSON.stringify(a))}catch(M){console.error("Couldn't convert value into a JSON string: ",a),f(null,M)}}function z(a){if(a.substring(0,j)!=="__lfsc__:")return JSON.parse(a);var f=a.substring(D),h=a.substring(j,D),p;if(h==="blob"&&P.test(f)){var g=f.match(P);p=g[1],f=f.substring(g[0].length)}var I=Y(f);switch(h){case"arbf":return I;case"blob":return C([I],{type:p});case"si08":return new Int8Array(I);case"ui08":return new Uint8Array(I);case"uic8":return new Uint8ClampedArray(I);case"si16":return new Int16Array(I);case"ur16":return new Uint16Array(I);case"si32":return new Int32Array(I);case"ui32":return new Uint32Array(I);case"fl32":return new Float32Array(I);case"fl64":return new Float64Array(I);default:throw new Error("Unkown type: "+h)}}function F(a){var f,h;if(a===null||typeof a!="object"||"isActiveClone"in a)return a;var p=a instanceof Date?new Date(a):a.constructor();try{for(var g=q(Object.keys(a)),I=g.next();!I.done;I=g.next()){var M=I.value;Object.prototype.hasOwnProperty.call(a,M)&&(a.isActiveClone=null,p[M]=F(a[M]),delete a.isActiveClone)}}catch(V){f={error:V}}finally{try{I&&!I.done&&(h=g.return)&&h.call(g)}finally{if(f)throw f.error}}return p}function Z(a,f){return(a.name||f.name)+"/"+(a.storeName||f.storeName)+"/"}function A(a,f){f&&a.then(function(h){f(null,h)},function(h){f(h)})}function G(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}function U(a,f){var h=this;if(f=G.apply(this,arguments),a=typeof a!="function"&&a||{},!a.name){var p=this.config();a.name=a.name||p.name,a.storeName=a.storeName||p.storeName}var g;return a.name?g=new Promise(function(I){a.storeName?I(Z(a,h._defaultConfig)):I(a.name+"/")}):g=Promise.reject("Invalid arguments"),{promise:g,callback:f}}function oe(a){return typeof a!="string"&&(console.warn(a+" used as a key, but it is not a string."),a=String(a)),a}var ee={bufferToString:y,deserialize:z,serialize:w,stringToBuffer:Y},v={},N=function(){function a(f){this.kp=f,this.data={}}return a.resolve=function(f){return v[f]||(v[f]=new a(f)),v[f]},a.prototype.clear=function(){this.data={}},a.prototype.drop=function(){this.clear(),delete v[this.kp]},a.prototype.get=function(f){return this.data[f]},a.prototype.key=function(f){return this.keys()[f]},a.prototype.keys=function(){return Object.keys(this.data)},a.prototype.rm=function(f){delete this.data[f]},a.prototype.set=function(f,h){this.data[f]=h},a}();function E(a){var f=a?F(a):{},h=Z(f,this._defaultConfig),p=N.resolve(h);return this._dbInfo=f,this._dbInfo.serializer=ee,this._dbInfo.keyPrefix=h,this._dbInfo.mStore=p,Promise.resolve()}function B(a){var f=this,h=this.ready().then(function(){f._dbInfo.mStore.clear()});return A(h,a),h}function K(a,f){var h=U.apply(this,arguments),p=h.promise,g=h.callback,I=p.then(function(M){N.resolve(M).drop()});return A(I,g),p}function X(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){var g=h._dbInfo.mStore.get(a);return g==null?null:h._dbInfo.serializer.deserialize(g)});return A(p,f),p}function J(a,f){var h=this,p=this.ready().then(function(){for(var g=h._dbInfo.mStore,I=g.keys(),M=0;M<I.length;M++){var V=g.get(I[M]);if(V&&(V=h._dbInfo.serializer.deserialize(V)),V=a(V,I[M],M+1),V!==void 0)return V}});return A(p,f),p}function Q(a,f){var h=this,p=this.ready().then(function(){var g;try{g=h._dbInfo.mStore.key(a),g===void 0&&(g=null)}catch{g=null}return g});return A(p,f),p}function $(a){var f=this,h=this.ready().then(function(){return f._dbInfo.mStore.keys()});return A(h,a),h}function ie(a){var f=this.keys().then(function(h){return h.length});return A(f,a),f}function ue(a,f){var h=this;a=oe(a);var p=this.ready().then(function(){h._dbInfo.mStore.rm(a)});return A(p,f),p}function le(a,f,h){var p=this;a=oe(a);var g=this.ready().then(function(){f===void 0&&(f=null);var I=f;return new Promise(function(M,V){p._dbInfo.serializer.serialize(f,function(ce,ae){if(ae)V(ae);else try{p._dbInfo.mStore.set(a,ce),M(I)}catch(de){V(de)}})})});return A(g,h),g}var re=!0;m._support=re,m._driver=x,m._initStorage=E,m.clear=B,m.dropInstance=K,m.getItem=X,m.iterate=J,m.key=Q,m.keys=$,m.length=ie,m.removeItem=ue,m.setItem=le,Object.defineProperty(m,"__esModule",{value:!0})})}),Ne=He($r()),Je=He(et()),rt={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"};function tt(_){for(let[O,m]of Object.entries(rt))_.style[O]=m}function nt(_){return!![].slice.call(document.querySelectorAll(".magic-iframe")).find(m=>m.src.includes(_))}var ot=class extends Kr{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(_=>{let O=()=>{if(nt(encodeURIComponent(this.parameters)))Xr().log();else{let m=document.createElement("iframe");m.classList.add("magic-iframe"),m.dataset.magicIframeLabel=Ye(this.endpoint).host,m.title="Secure Modal",m.src=Ye(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,tt(m),document.body.appendChild(m),_(m)}};["loaded","interactive","complete"].includes(document.readyState)?O():window.addEventListener("load",O,!1)}),window.addEventListener("message",_=>{var O;if(_.origin===this.endpoint&&_.data&&_.data.msgType&&this.messageHandlers.size){_.data.response=(O=_.data.response)!=null?O:{};for(let m of this.messageHandlers.values())m(_)}})}showOverlay(){return me(this,null,function*(){let _=yield this.iframe;_.style.display="block",this.activeElement=document.activeElement,_.focus()})}hideOverlay(){return me(this,null,function*(){var _;let O=yield this.iframe;O.style.display="none",(_=this.activeElement)!=null&&_.focus&&this.activeElement.focus(),this.activeElement=null})}_post(_){return me(this,null,function*(){let O=yield this.iframe;if(O&&O.contentWindow)O.contentWindow.postMessage(_,this.endpoint);else throw Vr()})}},st=Wr(qr,{platform:"web",sdkName:"magic-sdk",version:"27.0.0",defaultEndpoint:"https://auth.magic.link/",ViewController:ot,configureStorage:()=>me(void 0,null,function*(){let _=Ne.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield _.defineDriver(Je),yield _.setDriver([Ne.default.INDEXEDDB,Ne.default.LOCALSTORAGE,Je._driver]),_})});export{vt as DeepLinkPage,ht as DeviceVerificationEventEmit,yt as DeviceVerificationEventOnReceived,pt as EthChainType,mt as Events,bt as Extension,gt as ExtensionError,_t as ExtensionWarning,wt as LoginWithEmailOTPEventEmit,It as LoginWithEmailOTPEventOnReceived,Et as LoginWithMagicLinkEventEmit,St as LoginWithMagicLinkEventOnReceived,st as Magic,Ot as MagicIncomingWindowMessage,jt as MagicOutgoingWindowMessage,Nt as MagicPayloadMethod,At as RPCError,Bt as RPCErrorCode,kt as RecencyCheckEventEmit,xt as RecencyCheckEventOnReceived,Dt as RecoveryMethodType,Rt as SDKError,Ct as SDKErrorCode,Lt as SDKWarning,Mt as SDKWarningCode,Tt as UpdateEmailEventEmit,zt as UpdateEmailEventOnReceived,Ft as Wallets,Pt as isPromiEvent};
|
package/assets/index-Dbv53o1b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as L,j as l}from"./vendor-react-DJXYd7Dm.js";import{m as r,c as I,s as R,S as w,P as q,A as D,a as O}from"./swiper-react-BALcxKpm.js";import{n as E,w as j}from"./index-DoaqdCF9.js";import{W as d,B as h,k as z}from"./vendor-mui-40jyI-Tp.js";import"./vendor-web3-Dw3dBix7.js";const N='<svg class="swiper-navigation-icon" 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>';function A({swiper:a,extendParams:c,on:p,emit:f}){c({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null,arrowSvg:N};function k(t){let n;return t&&typeof t=="string"&&a.isElement&&(n=a.el.querySelector(t)||a.hostEl.querySelector(t),n)?n:(t&&(typeof t=="string"&&(n=[...document.querySelectorAll(t)]),a.params.uniqueNavElements&&typeof t=="string"&&n&&n.length>1&&a.el.querySelectorAll(t).length===1?n=a.el.querySelector(t):n&&n.length===1&&(n=n[0])),t&&!n?t:n)}function m(t,n){const i=a.params.navigation;t=r(t),t.forEach(e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](i.lockClass))})}function u(){const{nextEl:t,prevEl:n}=a.navigation;if(a.params.loop){m(n,!1),m(t,!1);return}m(n,a.isBeginning&&!a.params.rewind),m(t,a.isEnd&&!a.params.rewind)}function y(t){t.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),f("navigationPrev"))}function C(t){t.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),f("navigationNext"))}function b(){const t=a.params.navigation;if(a.params.navigation=I(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(t.nextEl||t.prevEl))return;let n=k(t.nextEl),i=k(t.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:i}),n=r(n),i=r(i);const e=(o,v)=>{if(o){if(t.addIcons&&o.matches(".swiper-button-next,.swiper-button-prev")&&!o.querySelector("svg")){const s=document.createElement("div");R(s,N),o.appendChild(s.querySelector("svg")),s.remove()}o.addEventListener("click",v==="next"?C:y)}!a.enabled&&o&&o.classList.add(...t.lockClass.split(" "))};n.forEach(o=>e(o,"next")),i.forEach(o=>e(o,"prev"))}function x(){let{nextEl:t,prevEl:n}=a.navigation;t=r(t),n=r(n);const i=(e,o)=>{e.removeEventListener("click",o==="next"?C:y),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};t.forEach(e=>i(e,"next")),n.forEach(e=>i(e,"prev"))}p("init",()=>{a.params.navigation.enabled===!1?S():(b(),u())}),p("toEdge fromEdge lock unlock",()=>{u()}),p("destroy",()=>{x()}),p("enable disable",()=>{let{nextEl:t,prevEl:n}=a.navigation;if(t=r(t),n=r(n),a.enabled){u();return}[...t,...n].filter(i=>!!i).forEach(i=>i.classList.add(a.params.navigation.lockClass))}),p("click",(t,n)=>{let{nextEl:i,prevEl:e}=a.navigation;i=r(i),e=r(e);const o=n.target;let v=e.includes(o)||i.includes(o);if(a.isElement&&!v){const s=n.path||n.composedPath&&n.composedPath();s&&(v=s.find(g=>i.includes(g)||e.includes(g)))}if(a.params.navigation.hideOnClick&&!v){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===o||a.pagination.el.contains(o)))return;let s;i.length?s=i[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(s=e[0].classList.contains(a.params.navigation.hiddenClass)),f(s===!0?"navigationShow":"navigationHide"),[...i,...e].filter(g=>!!g).forEach(g=>g.classList.toggle(a.params.navigation.hiddenClass))}});const P=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),b(),u()},S=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),x()};Object.assign(a.navigation,{enable:P,disable:S,update:u,init:b,destroy:x})}const T=d(h)(({theme:a})=>({position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:a.spacing(4),padding:`${a.spacing(10)} 0`,width:"100%",overflow:"hidden",background:"radial-gradient(ellipse at 110% 50%, rgba(148,37,205,1) 0%, rgba(104,20,155,1) 100%)",[a.breakpoints.down("sm")]:{padding:`${a.spacing(6)} 0`}})),W=d(z)(({theme:a})=>({color:E.white,fontWeight:600,textAlign:"center",[a.breakpoints.down("sm")]:{fontSize:32}})),F=d(h)(({theme:a})=>({position:"relative",width:"100%",paddingTop:a.spacing(3),"&:hover .weekly-rituals-nav":{opacity:1},"& .swiper":{paddingBottom:a.spacing(5),overflow:"visible"},"& .swiper-slide":{height:370,borderRadius:16,overflow:"hidden",transition:"transform 0.3s ease, box-shadow 0.3s ease",[a.breakpoints.down("sm")]:{height:280}},"& .swiper-slide-active, & .swiper-slide-next":{boxShadow:"0px 2px 8px 8px rgba(255, 255, 255, 0.2)"},"& .swiper-pagination":{bottom:"0 !important"},"& .swiper-pagination-bullet":{backgroundColor:"rgba(255, 255, 255, 0.4)",opacity:1,width:8,height:8},"& .swiper-pagination-bullet-active":{backgroundColor:E.white}})),H=d("img")({width:"100%",height:"100%",objectFit:"cover",display:"block",borderRadius:16}),B=d("button")(({theme:a})=>({position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:10,width:48,height:48,borderRadius:"50%",border:"2px solid rgba(255, 255, 255, 0.5)",backgroundColor:"rgba(0, 0, 0, 0.4)",color:E.white,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,transition:a.transitions.create("opacity",{duration:a.transitions.duration.short}),"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.6)"},fontSize:24})),V=d(B)(({theme:a})=>({left:a.spacing(3),[a.breakpoints.down("sm")]:{left:a.spacing(1)}})),M=d(B)(({theme:a})=>({right:a.spacing(3),[a.breakpoints.down("sm")]:{right:a.spacing(1)}})),U=d(h)({position:"absolute",top:0,left:0,width:170,height:"100%",background:"linear-gradient(90deg, rgba(104, 20, 155, 1) 10%, rgba(98, 18, 151, 0) 100%)",zIndex:5,pointerEvents:"none"}),$=d(h)({position:"absolute",top:0,right:0,width:137,height:"100%",background:"linear-gradient(270deg, rgba(145, 36, 201, 1) 10%, rgba(98, 18, 151, 0) 100%)",zIndex:5,pointerEvents:"none"}),Y=L.memo(()=>{const a=L.useRef(null);return l.jsxs(T,{children:[l.jsx(W,{variant:"h3",children:j.title}),l.jsxs(F,{children:[l.jsx(U,{}),l.jsx($,{}),l.jsx(w,{modules:[q,D,A],pagination:{clickable:!0},autoplay:{delay:4e3,disableOnInteraction:!1},loop:!0,slidesPerView:1.2,centeredSlides:!0,spaceBetween:24,breakpoints:{600:{slidesPerView:2.3,centeredSlides:!1},960:{slidesPerView:2.5,centeredSlides:!1}},onSwiper:c=>{a.current=c},children:j.cards.map(c=>l.jsx(O,{children:l.jsx(H,{src:c.imageUrl,alt:c.title,loading:"lazy"})},c.id))}),l.jsx(V,{className:"weekly-rituals-nav",onClick:()=>a.current?.slidePrev(),children:"‹"}),l.jsx(M,{className:"weekly-rituals-nav",onClick:()=>a.current?.slideNext(),children:"›"})]})]})});Y.displayName="WeeklyRituals";export{Y as WeeklyRituals};
|