@multiversx/sdk-dapp 2.10.2 → 2.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/UI/ScamPhishingAlert/ScamPhishingAlert.d.ts +2 -2
  2. package/UI/ScamPhishingAlert/ScamPhishingAlert.js +1 -1
  3. package/UI/ScamPhishingAlert/index.js +1 -1
  4. package/UI/ScamPhishingAlert/scamPhishingStyles.js +1 -1
  5. package/UI/index.js +1 -1
  6. package/UI/ledger/LedgerLoginButton/index.js +1 -1
  7. package/UI/ledger/LedgerLoginContainer/index.js +1 -1
  8. package/UI/ledger/index.js +1 -1
  9. package/UI/pages/UnlockPage/index.js +1 -1
  10. package/UI/pages/index.js +1 -1
  11. package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
  12. package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
  13. package/UI/walletConnect/index.js +1 -1
  14. package/__chunks__/{chunk-DDJF3UIO.js → chunk-54DOQT6V.js} +2 -2
  15. package/__chunks__/chunk-5BCRD2HN.js +2 -0
  16. package/__chunks__/{chunk-PMQBQ3AZ.js → chunk-5GBZPISV.js} +2 -2
  17. package/__chunks__/{chunk-Z3SJILIM.js → chunk-DAXSVORM.js} +2 -2
  18. package/__chunks__/chunk-JL6ZMVIN.js +2 -0
  19. package/__chunks__/{chunk-CF5CJT75.js → chunk-MMAMWWDF.js} +2 -2
  20. package/__chunks__/{chunk-LZRO6T4M.js → chunk-WCDJMUO6.js} +2 -2
  21. package/__chunks__/{chunk-EO7PQVL5.js → chunk-XIT47DZS.js} +16 -4
  22. package/__commonjs/UI/ScamPhishingAlert/ScamPhishingAlert.js +15 -3
  23. package/__commonjs/UI/ScamPhishingAlert/index.js +15 -3
  24. package/__commonjs/UI/ScamPhishingAlert/scamPhishingStyles.js +15 -3
  25. package/__commonjs/UI/index.js +68 -56
  26. package/__commonjs/UI/ledger/LedgerLoginButton/index.js +27 -15
  27. package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +26 -14
  28. package/__commonjs/UI/ledger/index.js +26 -14
  29. package/__commonjs/UI/pages/UnlockPage/index.js +30 -18
  30. package/__commonjs/UI/pages/index.js +30 -18
  31. package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +24 -12
  32. package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +21 -9
  33. package/__commonjs/UI/walletConnect/index.js +24 -12
  34. package/package.json +1 -1
  35. package/__chunks__/chunk-2GQKL5L4.js +0 -2
  36. package/__chunks__/chunk-I3WCYQEY.js +0 -2
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-CF5CJT75.js";import{a as g}from"./chunk-MVX3RRDQ.js";import{a as l}from"./chunk-Y5UK2SE5.js";import{a as p}from"./chunk-TYJV3Y5Y.js";import{a as d}from"./chunk-TVTBQQPA.js";import{h as a,i as O}from"./chunk-QR72MI4M.js";import{m as i}from"./chunk-HBP5N4FR.js";i();O();import e,{useState as W}from"react";var Q=({token:t,callbackRoute:u,nativeAuth:L,children:h,onModalOpens:o,onModalCloses:n,loginButtonText:c="Ledger",buttonClassName:C="dapp-ledger-login-button",className:f="dapp-ledger-login",modalClassName:y,wrapContentInsideModal:b=!0,hideButtonWhenModalOpens:B=!1,onLoginRedirect:T,disabled:w,customSpinnerComponent:N,innerLedgerComponentsClasses:S,showProgressBar:I=!0,showScamPhishingAlert:P=!0})=>{let R=d(),[r,s]=W(!1),{handleShowModal:v,handleHideModal:x}=l(),A=p(t);function E(){if(R)throw new Error(a);s(!0),v(),o==null||o()}function M(){s(!1),x(),n==null||n()}return e.createElement(e.Fragment,null,(!B||!r)&&e.createElement(g,{onLogin:E,className:f,btnClassName:C,text:c,disabled:w||A},h),r&&e.createElement(m,{className:y,callbackRoute:u,token:t,nativeAuth:L,wrapContentInsideModal:b,onClose:M,onLoginRedirect:T,customSpinnerComponent:N,innerLedgerComponentsClasses:S,showProgressBar:I,showScamPhishingAlert:P}))};export{Q as a};
2
- //# sourceMappingURL=chunk-PMQBQ3AZ.js.map
1
+ import{a as m}from"./chunk-MMAMWWDF.js";import{a as g}from"./chunk-MVX3RRDQ.js";import{a as l}from"./chunk-Y5UK2SE5.js";import{a as p}from"./chunk-TYJV3Y5Y.js";import{a as d}from"./chunk-TVTBQQPA.js";import{h as a,i as O}from"./chunk-QR72MI4M.js";import{m as i}from"./chunk-HBP5N4FR.js";i();O();import e,{useState as W}from"react";var Q=({token:t,callbackRoute:u,nativeAuth:L,children:h,onModalOpens:o,onModalCloses:n,loginButtonText:c="Ledger",buttonClassName:C="dapp-ledger-login-button",className:f="dapp-ledger-login",modalClassName:y,wrapContentInsideModal:b=!0,hideButtonWhenModalOpens:B=!1,onLoginRedirect:T,disabled:w,customSpinnerComponent:N,innerLedgerComponentsClasses:S,showProgressBar:I=!0,showScamPhishingAlert:P=!0})=>{let R=d(),[r,s]=W(!1),{handleShowModal:v,handleHideModal:x}=l(),A=p(t);function E(){if(R)throw new Error(a);s(!0),v(),o==null||o()}function M(){s(!1),x(),n==null||n()}return e.createElement(e.Fragment,null,(!B||!r)&&e.createElement(g,{onLogin:E,className:f,btnClassName:C,text:c,disabled:w||A},h),r&&e.createElement(m,{className:y,callbackRoute:u,token:t,nativeAuth:L,wrapContentInsideModal:b,onClose:M,onLoginRedirect:T,customSpinnerComponent:N,innerLedgerComponentsClasses:S,showProgressBar:I,showScamPhishingAlert:P}))};export{Q as a};
2
+ //# sourceMappingURL=chunk-5GBZPISV.js.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-PEK7TD3H.js";import{a as c}from"./chunk-DDJF3UIO.js";import{a as g}from"./chunk-QC2VWZ6Y.js";import{b as p}from"./chunk-V54HNRTY.js";import{a as m}from"./chunk-PMQBQ3AZ.js";import{a as s}from"./chunk-G43PL2A5.js";import{b as t}from"./chunk-GCUT2XXY.js";import{a}from"./chunk-DDJKE4IR.js";import{m as l}from"./chunk-HBP5N4FR.js";l();import o,{useEffect as N}from"react";import i from"classnames";var M=({loginRoute:e,title:x="Login",className:u="dapp-unlock-page",LedgerLoginButtonText:B="Ledger",description:L="Pick a login method",WalletConnectLoginButtonText:f="xPortal Mobile Wallet",ExtensionLoginButtonText:b="Extension",OperaWalletLoginButtonText:W="Opera Crypto Wallet",WebWalletLoginButtonText:T="Web wallet"})=>{let n={wrapper:i(p.home,t.dFlex,t.flexFill,t.alignItemsCenter,u),title:t.mb4,description:t.mb4,cardContainer:t.mAuto,card:i(t.card,t.my4,t.textCenter),cardBody:i(t.cardBody,t.py4,t.px2,t.pxSm2,t.mxLg4)},{isLoggedIn:r}=a();return N(()=>{r&&(window.location.href=e)},[r]),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.cardContainer},o.createElement("div",{className:n.card},o.createElement("div",{className:n.cardBody},o.createElement("h4",{className:i(t.h4,t.title)},x),o.createElement("p",{className:n.description},L),o.createElement(s,{callbackRoute:e,loginButtonText:b}),o.createElement(g,{callbackRoute:e,loginButtonText:W}),o.createElement(d,{callbackRoute:e,loginButtonText:T}),o.createElement(m,{loginButtonText:B,callbackRoute:e}),o.createElement(c,{callbackRoute:e,loginButtonText:f})))))};export{M as a};
2
- //# sourceMappingURL=chunk-Z3SJILIM.js.map
1
+ import{a as d}from"./chunk-PEK7TD3H.js";import{a as c}from"./chunk-54DOQT6V.js";import{a as g}from"./chunk-QC2VWZ6Y.js";import{b as p}from"./chunk-V54HNRTY.js";import{a as m}from"./chunk-5GBZPISV.js";import{a as s}from"./chunk-G43PL2A5.js";import{b as t}from"./chunk-GCUT2XXY.js";import{a}from"./chunk-DDJKE4IR.js";import{m as l}from"./chunk-HBP5N4FR.js";l();import o,{useEffect as N}from"react";import i from"classnames";var M=({loginRoute:e,title:x="Login",className:u="dapp-unlock-page",LedgerLoginButtonText:B="Ledger",description:L="Pick a login method",WalletConnectLoginButtonText:f="xPortal Mobile Wallet",ExtensionLoginButtonText:b="Extension",OperaWalletLoginButtonText:W="Opera Crypto Wallet",WebWalletLoginButtonText:T="Web wallet"})=>{let n={wrapper:i(p.home,t.dFlex,t.flexFill,t.alignItemsCenter,u),title:t.mb4,description:t.mb4,cardContainer:t.mAuto,card:i(t.card,t.my4,t.textCenter),cardBody:i(t.cardBody,t.py4,t.px2,t.pxSm2,t.mxLg4)},{isLoggedIn:r}=a();return N(()=>{r&&(window.location.href=e)},[r]),o.createElement("div",{className:n.wrapper},o.createElement("div",{className:n.cardContainer},o.createElement("div",{className:n.card},o.createElement("div",{className:n.cardBody},o.createElement("h4",{className:i(t.h4,t.title)},x),o.createElement("p",{className:n.description},L),o.createElement(s,{callbackRoute:e,loginButtonText:b}),o.createElement(g,{callbackRoute:e,loginButtonText:W}),o.createElement(d,{callbackRoute:e,loginButtonText:T}),o.createElement(m,{loginButtonText:B,callbackRoute:e}),o.createElement(c,{callbackRoute:e,loginButtonText:f})))))};export{M as a};
2
+ //# sourceMappingURL=chunk-DAXSVORM.js.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-DAXSVORM.js";import{g as r,m as o}from"./chunk-HBP5N4FR.js";var a={};r(a,{UnlockPage:()=>e});o();export{a};
2
+ //# sourceMappingURL=chunk-JL6ZMVIN.js.map
@@ -1,2 +1,2 @@
1
- import{a as P}from"./chunk-2GQKL5L4.js";import{a as h}from"./chunk-SPKYJA6E.js";import{b as o}from"./chunk-4JQBPVGT.js";import{a as x}from"./chunk-HPZPHSPD.js";import{a as A}from"./chunk-KIE2Y5LP.js";import{a as T}from"./chunk-S25DY7VJ.js";import{a as y}from"./chunk-BMM6WWSP.js";import{a as S}from"./chunk-HWWZC2PJ.js";import{a as L}from"./chunk-XSLPUWCK.js";import{a as N}from"./chunk-DZLXHRPL.js";import{a as f}from"./chunk-TYJV3Y5Y.js";import{a as u}from"./chunk-K4ZPJ3KF.js";import{m as p}from"./chunk-HBP5N4FR.js";p();import e,{useMemo as k}from"react";import R from"classnames";var Ne=({callbackRoute:B,className:I="dapp-ledger-login-container",wrapContentInsideModal:b=!0,onClose:M,onLoginRedirect:w,token:n,nativeAuth:v,customSpinnerComponent:G,customContentComponent:s,innerLedgerComponentsClasses:H,showProgressBar:z=!0,showScamPhishingAlert:D=!0})=>{let{ledgerAccount:t}=u(),[O,{error:r,isLoading:l},{showAddressList:a,accounts:W,onGoToPrevPage:F,onGoToNextPage:j,onSelectAddress:q,onConfirmSelectedAddress:E,startIndex:J,selectedAddress:d}]=L({callbackRoute:B,token:n,onLoginRedirect:w,nativeAuth:v}),{addressTableClassNames:K,confirmAddressClassNames:Q,ledgerConnectClassNames:U,ledgerLoadingClassNames:V,ledgerProgressBarClassNames:X,ledgerScamPhishingAlertClassName:Y}=H||{},Z=f(n),m=()=>{if(!D)return null;let i=N(n);return e.createElement(P,{url:window.location.origin,authorizationInfo:i,className:Y})},g=()=>{let i=[{percentage:33,conditions:!a&&!t},{conditions:a&&!r&&!t,percentage:66},{conditions:t!=null&&!r,percentage:100}],c=k(()=>i.find($=>$.conditions),[]),_=c?c.percentage:33;return z?e.createElement(x,{percentage:_,ledgerProgressBarClassNames:X}):null},C=()=>l?e.createElement(T,{customSpinnerComponent:G,customContentComponent:s,ledgerLoadingClassNames:V}):t!=null&&!r?e.createElement(y,{token:n,customContentComponent:s,confirmAddressClassNames:Q}):a&&!r?e.createElement(A,{accounts:W,loading:l,onGoToNextPage:j,onGoToPrevPage:F,onSelectAddress:q,startIndex:J,selectedAddress:d==null?void 0:d.address,onConfirmSelectedAddress:E,customContentComponent:s,addressTableClassNames:K}):e.createElement(S,{error:r,disabled:Z,onClick:O,customContentComponent:s,ledgerConnectClassNames:U});return b?e.createElement(h,{onClose:M,modalConfig:{headerText:"Login with ledger",showHeader:!0,modalContentClassName:o.ledgerModalDialogContent,modalHeaderClassName:o.ledgerModalHeader,modalHeaderTextClassName:o.ledgerModalHeaderText,modalCloseButtonClassName:o.ledgerModalCloseButton,modalBodyClassName:o.ledgerModalBody,modalDialogClassName:R(o.ledgerLoginContainer,I)}},m(),g(),C()):e.createElement(e.Fragment,null,m(),g(),C())};export{Ne as a};
2
- //# sourceMappingURL=chunk-CF5CJT75.js.map
1
+ import{a as P}from"./chunk-5BCRD2HN.js";import{a as h}from"./chunk-SPKYJA6E.js";import{b as o}from"./chunk-4JQBPVGT.js";import{a as x}from"./chunk-HPZPHSPD.js";import{a as A}from"./chunk-KIE2Y5LP.js";import{a as T}from"./chunk-S25DY7VJ.js";import{a as y}from"./chunk-BMM6WWSP.js";import{a as S}from"./chunk-HWWZC2PJ.js";import{a as L}from"./chunk-XSLPUWCK.js";import{a as N}from"./chunk-DZLXHRPL.js";import{a as f}from"./chunk-TYJV3Y5Y.js";import{a as u}from"./chunk-K4ZPJ3KF.js";import{m as p}from"./chunk-HBP5N4FR.js";p();import e,{useMemo as k}from"react";import R from"classnames";var Ne=({callbackRoute:B,className:I="dapp-ledger-login-container",wrapContentInsideModal:b=!0,onClose:M,onLoginRedirect:w,token:n,nativeAuth:v,customSpinnerComponent:G,customContentComponent:s,innerLedgerComponentsClasses:H,showProgressBar:z=!0,showScamPhishingAlert:D=!0})=>{let{ledgerAccount:t}=u(),[O,{error:r,isLoading:l},{showAddressList:a,accounts:W,onGoToPrevPage:F,onGoToNextPage:j,onSelectAddress:q,onConfirmSelectedAddress:E,startIndex:J,selectedAddress:d}]=L({callbackRoute:B,token:n,onLoginRedirect:w,nativeAuth:v}),{addressTableClassNames:K,confirmAddressClassNames:Q,ledgerConnectClassNames:U,ledgerLoadingClassNames:V,ledgerProgressBarClassNames:X,ledgerScamPhishingAlertClassName:Y}=H||{},Z=f(n),m=()=>{if(!D)return null;let i=N(n);return e.createElement(P,{url:window.location.origin,authorizationInfo:i,className:Y})},g=()=>{let i=[{percentage:33,conditions:!a&&!t},{conditions:a&&!r&&!t,percentage:66},{conditions:t!=null&&!r,percentage:100}],c=k(()=>i.find($=>$.conditions),[]),_=c?c.percentage:33;return z?e.createElement(x,{percentage:_,ledgerProgressBarClassNames:X}):null},C=()=>l?e.createElement(T,{customSpinnerComponent:G,customContentComponent:s,ledgerLoadingClassNames:V}):t!=null&&!r?e.createElement(y,{token:n,customContentComponent:s,confirmAddressClassNames:Q}):a&&!r?e.createElement(A,{accounts:W,loading:l,onGoToNextPage:j,onGoToPrevPage:F,onSelectAddress:q,startIndex:J,selectedAddress:d==null?void 0:d.address,onConfirmSelectedAddress:E,customContentComponent:s,addressTableClassNames:K}):e.createElement(S,{error:r,disabled:Z,onClick:O,customContentComponent:s,ledgerConnectClassNames:U});return b?e.createElement(h,{onClose:M,modalConfig:{headerText:"Login with ledger",showHeader:!0,modalContentClassName:o.ledgerModalDialogContent,modalHeaderClassName:o.ledgerModalHeader,modalHeaderTextClassName:o.ledgerModalHeaderText,modalCloseButtonClassName:o.ledgerModalCloseButton,modalBodyClassName:o.ledgerModalBody,modalDialogClassName:R(o.ledgerLoginContainer,I)}},m(),g(),C()):e.createElement(e.Fragment,null,m(),g(),C())};export{Ne as a};
2
+ //# sourceMappingURL=chunk-MMAMWWDF.js.map
@@ -1,2 +1,2 @@
1
- import{a as _}from"./chunk-3A2SALF2.js";import{b as e}from"./chunk-FA7ULR4S.js";import{a as F}from"./chunk-2GQKL5L4.js";import{a as z}from"./chunk-SPKYJA6E.js";import{a as Z}from"./chunk-KTY2ZZVU.js";import{b as C}from"./chunk-GCUT2XXY.js";import{a as A}from"./chunk-EMTDUNIK.js";import{b as G}from"./chunk-ET552BQL.js";import{a as k}from"./chunk-DZLXHRPL.js";import{a as U}from"./chunk-TXAITGIS.js";import{a as I,j as V,m as d}from"./chunk-HBP5N4FR.js";d();import o,{useEffect as q,useState as u}from"react";import{faCircleNotch as be}from"@fortawesome/free-solid-svg-icons";import t from"classnames";import Ee from"qrcode";d();import*as l from"react";var Te=m=>l.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 31.114 44.981",width:16,height:16},m),l.createElement("g",{transform:"translate(-47.168 -21.519)"},l.createElement("g",{transform:"translate(-247.872 -130.693)"},l.createElement("path",{d:"M355.676,152.213l-3.832,17.8h-9.661Z",transform:"translate(-40.089 1)",fillRule:"evenodd",fill:"#fff"}),l.createElement("path",{d:"M326.45,271.184l-7.053,9.379H295.04l7.054-9.379Z",transform:"translate(0 -101.17)",fillRule:"evenodd",fill:"#fff"}),l.createElement("path",{d:"M381.139,333.864l-13.493,17.8,3.832-17.8Z",transform:"translate(-61.742 -155.472)",fillRule:"evenodd",fill:"#fff"})))),O=Te;var Je=({callbackRoute:m,loginButtonText:X="xPortal App",title:j="Login using xPortal App",logoutRoute:v="/unlock",className:P="dapp-wallet-connect-login-modal",lead:J="Scan the QR code using the xPortal App",legacyMessage:K="Unable to login? Use the legacy version",wrapContentInsideModal:Y=!0,isWalletConnectV2:f=!1,token:g,nativeAuth:N,onClose:p,onLoginRedirect:L,innerWalletConnectComponentsClasses:$,customSpinnerComponent:y,showScamPhishingAlert:w=!0})=>{var B;let[R,{error:M},{uriDeepLink:ee,walletConnectUri:x,cancelLogin:oe}]=A({logoutRoute:v,callbackRoute:m,token:g,nativeAuth:N,onLoginRedirect:L}),[te,{error:W},{connectExisting:ne,removeExistingPairing:ae,cancelLogin:re,uriDeepLink:le,walletConnectUri:h,wcPairings:c}]=G({logoutRoute:v,callbackRoute:m,token:g,nativeAuth:N,onLoginRedirect:L}),[S,se]=u(""),[n,ie]=u(f),[me,ce]=u(f),{containerContentClassName:de,containerScamPhishingAlertClassName:Ce,containerTitleClassName:fe,containerSubtitleClassName:ge,containerErrorClassName:T,containerQrCodeClassName:pe,containerLoaderClassName:xe,containerLegacyClassName:he,containerButtonClassName:ue,walletConnectPairingListClassNames:ve}=$||{},Pe=U(),b=n?(B=c==null?void 0:c.filter(a=>{let Q=c.some(r=>{var s,i,D,H;return((s=a.peerMetadata)==null?void 0:s.name)===((i=r==null?void 0:r.peerMetadata)==null?void 0:i.name)&&((D=a.peerMetadata)==null?void 0:D.url)===((H=r==null?void 0:r.peerMetadata)==null?void 0:H.url)&&a.expiry<r.expiry});return Boolean(a.active)&&a.peerMetadata&&!Q}))!=null?B:[]:[],Ne=a=>{a.preventDefault(),ie(!1),ce(!1)},Le=()=>V(void 0,null,function*(){if(!(n&&h||!n&&x))return;let s=n?h:x;if(s){let i=yield Ee.toString(s,{type:"svg"});i&&se(i)}}),ye=()=>{n?re():oe(),p==null||p()};q(()=>{Le()},[n,x,h]),q(()=>{n?te():R()},[n]);let we=w?k(g):void 0,E=o.createElement(o.Fragment,null,w&&o.createElement(F,{url:window.location.origin,authorizationInfo:we,className:Ce}),o.createElement("div",{className:t(e.xPortalContent,de)},o.createElement("div",{className:t(e.xPortalContainerHeading,fe)},j),o.createElement("div",{className:t(e.xPortalContainerSubheading,ge)},J),o.createElement("div",null,M&&o.createElement("p",{className:t(e.xPortalContainerError,T)},M),W&&o.createElement("p",{className:t(e.xPortalContainerError,T)},W)),S?o.createElement("div",{className:t(e.xPortalQrCode,pe),dangerouslySetInnerHTML:{__html:S}}):o.createElement("div",{className:t(e.xPortalLoader,xe)},y||o.createElement(Z,{iconSize:"10x",icon:be,iconClass:t("fa-spin",C.textPrimary)})),Pe&&o.createElement("a",{id:"accessWalletBtn","data-testid":"accessWalletBtn",href:ee||le,rel:"noopener noreferrer nofollow",target:"_blank",className:t(C.btn,C.btnPrimary,e.xPortalContainerButton,ue)},o.createElement(O,{className:e.xPortalContainerButtonIcon}),X),b.length>0&&o.createElement(_,{activePairings:b,connectExisting:ne,removeExistingPairing:ae,className:P,pairingListClasses:ve}),f&&me&&o.createElement("a",{href:"/#",onClick:Ne,className:t(e.xPortalLegacyLink,he)},K)));return Y?o.createElement(z,{onClose:ye,modalConfig:{headerText:"Login using xPortal App",showHeader:!0,modalContentClassName:e.xPortalModalDialogContent,modalHeaderClassName:e.xPortalModalHeader,modalHeaderTextClassName:e.xPortalModalHeaderText,modalCloseButtonClassName:e.xPortalModalCloseButton,modalBodyClassName:e.xPortalModalBody,modalDialogClassName:e.xPortalLoginContainer},className:P},E):E};export{Je as a};
2
- //# sourceMappingURL=chunk-LZRO6T4M.js.map
1
+ import{a as _}from"./chunk-3A2SALF2.js";import{b as e}from"./chunk-FA7ULR4S.js";import{a as F}from"./chunk-5BCRD2HN.js";import{a as z}from"./chunk-SPKYJA6E.js";import{a as Z}from"./chunk-KTY2ZZVU.js";import{b as C}from"./chunk-GCUT2XXY.js";import{a as A}from"./chunk-EMTDUNIK.js";import{b as G}from"./chunk-ET552BQL.js";import{a as k}from"./chunk-DZLXHRPL.js";import{a as U}from"./chunk-TXAITGIS.js";import{a as I,j as V,m as d}from"./chunk-HBP5N4FR.js";d();import o,{useEffect as q,useState as u}from"react";import{faCircleNotch as be}from"@fortawesome/free-solid-svg-icons";import t from"classnames";import Ee from"qrcode";d();import*as l from"react";var Te=m=>l.createElement("svg",I({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 31.114 44.981",width:16,height:16},m),l.createElement("g",{transform:"translate(-47.168 -21.519)"},l.createElement("g",{transform:"translate(-247.872 -130.693)"},l.createElement("path",{d:"M355.676,152.213l-3.832,17.8h-9.661Z",transform:"translate(-40.089 1)",fillRule:"evenodd",fill:"#fff"}),l.createElement("path",{d:"M326.45,271.184l-7.053,9.379H295.04l7.054-9.379Z",transform:"translate(0 -101.17)",fillRule:"evenodd",fill:"#fff"}),l.createElement("path",{d:"M381.139,333.864l-13.493,17.8,3.832-17.8Z",transform:"translate(-61.742 -155.472)",fillRule:"evenodd",fill:"#fff"})))),O=Te;var Je=({callbackRoute:m,loginButtonText:X="xPortal App",title:j="Login using xPortal App",logoutRoute:v="/unlock",className:P="dapp-wallet-connect-login-modal",lead:J="Scan the QR code using the xPortal App",legacyMessage:K="Unable to login? Use the legacy version",wrapContentInsideModal:Y=!0,isWalletConnectV2:f=!1,token:g,nativeAuth:N,onClose:p,onLoginRedirect:L,innerWalletConnectComponentsClasses:$,customSpinnerComponent:y,showScamPhishingAlert:w=!0})=>{var B;let[R,{error:M},{uriDeepLink:ee,walletConnectUri:x,cancelLogin:oe}]=A({logoutRoute:v,callbackRoute:m,token:g,nativeAuth:N,onLoginRedirect:L}),[te,{error:W},{connectExisting:ne,removeExistingPairing:ae,cancelLogin:re,uriDeepLink:le,walletConnectUri:h,wcPairings:c}]=G({logoutRoute:v,callbackRoute:m,token:g,nativeAuth:N,onLoginRedirect:L}),[S,se]=u(""),[n,ie]=u(f),[me,ce]=u(f),{containerContentClassName:de,containerScamPhishingAlertClassName:Ce,containerTitleClassName:fe,containerSubtitleClassName:ge,containerErrorClassName:T,containerQrCodeClassName:pe,containerLoaderClassName:xe,containerLegacyClassName:he,containerButtonClassName:ue,walletConnectPairingListClassNames:ve}=$||{},Pe=U(),b=n?(B=c==null?void 0:c.filter(a=>{let Q=c.some(r=>{var s,i,D,H;return((s=a.peerMetadata)==null?void 0:s.name)===((i=r==null?void 0:r.peerMetadata)==null?void 0:i.name)&&((D=a.peerMetadata)==null?void 0:D.url)===((H=r==null?void 0:r.peerMetadata)==null?void 0:H.url)&&a.expiry<r.expiry});return Boolean(a.active)&&a.peerMetadata&&!Q}))!=null?B:[]:[],Ne=a=>{a.preventDefault(),ie(!1),ce(!1)},Le=()=>V(void 0,null,function*(){if(!(n&&h||!n&&x))return;let s=n?h:x;if(s){let i=yield Ee.toString(s,{type:"svg"});i&&se(i)}}),ye=()=>{n?re():oe(),p==null||p()};q(()=>{Le()},[n,x,h]),q(()=>{n?te():R()},[n]);let we=w?k(g):void 0,E=o.createElement(o.Fragment,null,w&&o.createElement(F,{url:window.location.origin,authorizationInfo:we,className:Ce}),o.createElement("div",{className:t(e.xPortalContent,de)},o.createElement("div",{className:t(e.xPortalContainerHeading,fe)},j),o.createElement("div",{className:t(e.xPortalContainerSubheading,ge)},J),o.createElement("div",null,M&&o.createElement("p",{className:t(e.xPortalContainerError,T)},M),W&&o.createElement("p",{className:t(e.xPortalContainerError,T)},W)),S?o.createElement("div",{className:t(e.xPortalQrCode,pe),dangerouslySetInnerHTML:{__html:S}}):o.createElement("div",{className:t(e.xPortalLoader,xe)},y||o.createElement(Z,{iconSize:"10x",icon:be,iconClass:t("fa-spin",C.textPrimary)})),Pe&&o.createElement("a",{id:"accessWalletBtn","data-testid":"accessWalletBtn",href:ee||le,rel:"noopener noreferrer nofollow",target:"_blank",className:t(C.btn,C.btnPrimary,e.xPortalContainerButton,ue)},o.createElement(O,{className:e.xPortalContainerButtonIcon}),X),b.length>0&&o.createElement(_,{activePairings:b,connectExisting:ne,removeExistingPairing:ae,className:P,pairingListClasses:ve}),f&&me&&o.createElement("a",{href:"/#",onClick:Ne,className:t(e.xPortalLegacyLink,he)},K)));return Y?o.createElement(z,{onClose:ye,modalConfig:{headerText:"Login using xPortal App",showHeader:!0,modalContentClassName:e.xPortalModalDialogContent,modalHeaderClassName:e.xPortalModalHeader,modalHeaderTextClassName:e.xPortalModalHeaderText,modalCloseButtonClassName:e.xPortalModalCloseButton,modalBodyClassName:e.xPortalModalBody,modalDialogClassName:e.xPortalLoginContainer},className:P},E):E};export{Je as a};
2
+ //# sourceMappingURL=chunk-WCDJMUO6.js.map
@@ -1,5 +1,4 @@
1
- import{m as e}from"./chunk-HBP5N4FR.js";e();var i=`.dapp-core-component__scamPhishingStyles__scam-phishing-alert {
2
- text-align: center;
1
+ import{m as i}from"./chunk-HBP5N4FR.js";i();var e=`.dapp-core-component__scamPhishingStyles__scam-phishing-alert {
3
2
  margin: 40px auto 0;
4
3
  font-size: 12px;
5
4
  display: flex;
@@ -29,5 +28,18 @@ import{m as e}from"./chunk-HBP5N4FR.js";e();var i=`.dapp-core-component__scamPhi
29
28
  .dapp-core-component__scamPhishingStyles__scam-phishing-alert .dapp-core-component__scamPhishingStyles__scam-phishing-alert-text .dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix {
30
29
  margin-left: 4px;
31
30
  }
32
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(i));var a={"scam-phishing-alert":"dapp-core-component__scamPhishingStyles__scam-phishing-alert",scamPhishingAlert:"dapp-core-component__scamPhishingStyles__scam-phishing-alert","scam-phishing-alert-icon":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon",scamPhishingAlertIcon:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon","scam-phishing-alert-text":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text",scamPhishingAlertText:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text","scam-phishing-alert-prefix":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix",scamPhishingAlertPrefix:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix"};export{i as a,a as b};
33
- //# sourceMappingURL=chunk-EO7PQVL5.js.map
31
+ }
32
+
33
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization {
34
+ display: flex;
35
+ flex-direction: column;
36
+ margin-top: 0;
37
+ }
38
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization .dapp-core-component__scamPhishingStyles__scam-phishing-alert-text {
39
+ text-align: center;
40
+ flex-direction: row;
41
+ }
42
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration {
43
+ margin-left: 4px;
44
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(e));var s={"scam-phishing-alert":"dapp-core-component__scamPhishingStyles__scam-phishing-alert",scamPhishingAlert:"dapp-core-component__scamPhishingStyles__scam-phishing-alert","scam-phishing-alert-icon":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon",scamPhishingAlertIcon:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon","scam-phishing-alert-text":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text",scamPhishingAlertText:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text","scam-phishing-alert-prefix":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix",scamPhishingAlertPrefix:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix","scam-phishing-alert-authorization":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization",scamPhishingAlertAuthorization:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization","scam-phishing-alert-authorization-duration":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration",scamPhishingAlertAuthorizationDuration:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration"};export{e as a,s as b};
45
+ //# sourceMappingURL=chunk-XIT47DZS.js.map
@@ -1,5 +1,4 @@
1
- "use strict";var Cr=Object.create;var W=Object.defineProperty;var Lr=Object.getOwnPropertyDescriptor;var Nr=Object.getOwnPropertyNames;var Pr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var kr=(e,r)=>()=>(e&&(r=e(e=0)),r);var Y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dr=(e,r)=>{for(var t in r)W(e,t,{get:r[t],enumerable:!0})},nr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Nr(r))!Mr.call(e,n)&&n!==t&&W(e,n,{get:()=>r[n],enumerable:!(i=Lr(r,n))||i.enumerable});return e};var q=(e,r,t)=>(t=e!=null?Cr(Pr(e)):{},nr(r||!e||!e.__esModule?W(t,"default",{value:e,enumerable:!0}):t,e)),br=e=>nr(W({},"__esModule",{value:!0}),e);var ur=Y(z=>{"use strict";g();z.byteLength=Wr;z.toByteArray=qr;z.fromByteArray=Xr;var A=[],E=[],Rr=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,or=Q.length;S<or;++S)A[S]=Q[S],E[Q.charCodeAt(S)]=S;var S,or;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function ar(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Wr(e){var r=ar(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Yr(e,r,t){return(r+t)*3/4-t}function qr(e){var r,t=ar(e),i=t[0],n=t[1],o=new Rr(Yr(e,i,n)),a=0,h=n>0?i-4:i,p;for(p=0;p<h;p+=4)r=E[e.charCodeAt(p)]<<18|E[e.charCodeAt(p+1)]<<12|E[e.charCodeAt(p+2)]<<6|E[e.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return n===2&&(r=E[e.charCodeAt(p)]<<2|E[e.charCodeAt(p+1)]>>4,o[a++]=r&255),n===1&&(r=E[e.charCodeAt(p)]<<10|E[e.charCodeAt(p+1)]<<4|E[e.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function zr(e){return A[e>>18&63]+A[e>>12&63]+A[e>>6&63]+A[e&63]}function Hr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(zr(i));return n.join("")}function Xr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,a=0,h=t-i;a<h;a+=o)n.push(Hr(e,a,a+o>h?h:a+o));return i===1?(r=e[t-1],n.push(A[r>>2]+A[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),n.join("")}});var hr=Y(V=>{g();V.read=function(e,r,t,i,n){var o,a,h=n*8-i-1,p=(1<<h)-1,c=p>>1,f=-7,s=t?n-1:0,F=t?-1:1,w=e[r+s];for(s+=F,o=w&(1<<-f)-1,w>>=-f,f+=h;f>0;o=o*256+e[r+s],s+=F,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=i;f>0;a=a*256+e[r+s],s+=F,f-=8);if(o===0)o=1-c;else{if(o===p)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-c}return(w?-1:1)*a*Math.pow(2,o-i)};V.write=function(e,r,t,i,n,o){var a,h,p,c=o*8-n-1,f=(1<<c)-1,s=f>>1,F=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=i?0:o-1,N=i?1:-1,Sr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,a=f):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+s>=1?r+=F/p:r+=F*Math.pow(2,1-s),r*p>=2&&(a++,p/=2),a+s>=f?(h=0,a=f):a+s>=1?(h=(r*p-1)*Math.pow(2,n),a=a+s):(h=r*Math.pow(2,s-1)*Math.pow(2,n),a=0));n>=8;e[t+w]=h&255,w+=N,h/=256,n-=8);for(a=a<<n|h,c+=n;c>0;e[t+w]=a&255,w+=N,a/=256,c-=8);e[t+w-N]|=Sr*128}});var Ar=Y(D=>{"use strict";g();var $=ur(),k=hr(),pr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=u;D.SlowBuffer=Kr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;u.TYPED_ARRAY_SUPPORT=Gr();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function v(e){if(e>H)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,u.prototype),r}function u(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(e)}return fr(e,r,t)}u.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Qr(e,r);if(ArrayBuffer.isView(e))return Vr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return O(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return u.from(i,r,t);var n=$r(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function lr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Jr(e,r,t){return lr(e),e<=0?v(e):r!==void 0?typeof t=="string"?v(e).fill(r,t):v(e).fill(r):v(e)}u.alloc=function(e,r,t){return Jr(e,r,t)};function j(e){return lr(e),v(e<0?0:rr(e)|0)}u.allocUnsafe=function(e){return j(e)};u.allocUnsafeSlow=function(e){return j(e)};function Qr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=mr(e,r)|0,i=v(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function K(e){for(var r=e.length<0?0:rr(e.length)|0,t=v(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Vr(e){if(_(e,Uint8Array)){var r=new Uint8Array(e);return O(r.buffer,r.byteOffset,r.byteLength)}return K(e)}function O(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,u.prototype),i}function $r(e){if(u.isBuffer(e)){var r=rr(e.length)|0,t=v(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||tr(e.length)?v(0):K(e);if(e.type==="Buffer"&&Array.isArray(e.data))return K(e.data)}function rr(e){if(e>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return e|0}function Kr(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype};u.compare=function(r,t){if(_(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),_(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(r)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,a=Math.min(i,n);o<a;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=u.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var a=r[i];if(_(a,Uint8Array))o+a.length>n.length?u.from(a).copy(n,o):Uint8Array.prototype.set.call(n,a,o);else if(u.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function mr(e,r){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Fr(e).length;default:if(n)return i?-1:Z(e).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=mr;function Or(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return ut(this,r,t);case"utf8":case"utf-8":return xr(this,r,t);case"ascii":return ot(this,r,t);case"latin1":case"binary":return at(this,r,t);case"base64":return it(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}u.prototype._isBuffer=!0;function C(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)C(this,t,t+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this};u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Or.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.inspect=function(){var r="",t=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};pr&&(u.prototype[pr]=u.prototype.inspect);u.prototype.compare=function(r,t,i,n,o){if(_(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var a=o-n,h=i-t,p=Math.min(a,h),c=this.slice(n,o),f=r.slice(t,i),s=0;s<p;++s)if(c[s]!==f[s]){a=c[s],h=f[s];break}return a<h?-1:h<a?1:0};function yr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,tr(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=u.from(r,i)),u.isBuffer(r))return r.length===0?-1:sr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):sr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function sr(e,r,t,i,n){var o=1,a=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,a/=2,h/=2,t/=2}function p(w,N){return o===1?w[N]:w.readUInt16BE(N*o)}var c;if(n){var f=-1;for(c=t;c<a;c++)if(p(e,c)===p(r,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===h)return f*o}else f!==-1&&(c-=c-f),f=-1}else for(t+h>a&&(t=a-h),c=t;c>=0;c--){for(var s=!0,F=0;F<h;F++)if(p(e,c+F)!==p(r,F)){s=!1;break}if(s)return c}return-1}u.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};u.prototype.indexOf=function(r,t,i){return yr(this,r,t,i,!0)};u.prototype.lastIndexOf=function(r,t,i){return yr(this,r,t,i,!1)};function Zr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var h=parseInt(r.substr(a*2,2),16);if(tr(h))return a;e[t+a]=h}return a}function jr(e,r,t,i){return X(Z(r,e.length-t),e,t,i)}function rt(e,r,t,i){return X(ct(r),e,t,i)}function tt(e,r,t,i){return X(Fr(r),e,t,i)}function et(e,r,t,i){return X(ft(r,e.length-t),e,t,i)}u.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Zr(this,r,t,i);case"utf8":case"utf-8":return jr(this,r,t,i);case"ascii":case"latin1":case"binary":return rt(this,r,t,i);case"base64":return tt(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,r,t,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function it(e,r,t){return r===0&&t===e.length?$.fromByteArray(e):$.fromByteArray(e.slice(r,t))}function xr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],a=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var p,c,f,s;switch(h){case 1:o<128&&(a=o);break;case 2:p=e[n+1],(p&192)===128&&(s=(o&31)<<6|p&63,s>127&&(a=s));break;case 3:p=e[n+1],c=e[n+2],(p&192)===128&&(c&192)===128&&(s=(o&15)<<12|(p&63)<<6|c&63,s>2047&&(s<55296||s>57343)&&(a=s));break;case 4:p=e[n+1],c=e[n+2],f=e[n+3],(p&192)===128&&(c&192)===128&&(f&192)===128&&(s=(o&15)<<18|(p&63)<<12|(c&63)<<6|f&63,s>65535&&s<1114112&&(a=s))}}a===null?(a=65533,h=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),n+=h}return nt(i)}var cr=4096;function nt(e){var r=e.length;if(r<=cr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=cr));return t}function ot(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function at(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function ut(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=lt[e[o]];return n}function ht(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}u.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,u.prototype),n};function m(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};u.prototype.readUint8=u.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};u.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=t,o=1,a=this[r+--n];n>0&&(o*=256);)a+=this[r+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a};u.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};u.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};u.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),k.read(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),k.read(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!1,52,8)};function x(e,r,t,i,n,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;x(this,r,t,i,o,0)}var a=1,h=0;for(this[t]=r&255;++h<i&&(a*=256);)this[t+h]=r/a&255;return t+i};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;x(this,r,t,i,o,0)}var a=i-1,h=1;for(this[t+a]=r&255;--a>=0&&(h*=256);)this[t+a]=r/h&255;return t+i};u.prototype.writeUint8=u.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,1,255,0),this[t]=r&255,t+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};u.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);x(this,r,t,i,o-1,-o)}var a=0,h=1,p=0;for(this[t]=r&255;++a<i&&(h*=256);)r<0&&p===0&&this[t+a-1]!==0&&(p=1),this[t+a]=(r/h>>0)-p&255;return t+i};u.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);x(this,r,t,i,o-1,-o)}var a=i-1,h=1,p=0;for(this[t+a]=r&255;--a>=0&&(h*=256);)r<0&&p===0&&this[t+a+1]!==0&&(p=1),this[t+a]=(r/h>>0)-p&255;return t+i};u.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};u.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};u.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};u.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};u.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||x(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),k.write(e,r,t,i,23,4),t+4}u.prototype.writeFloatLE=function(r,t,i){return gr(this,r,t,!0,i)};u.prototype.writeFloatBE=function(r,t,i){return gr(this,r,t,!1,i)};function Er(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),k.write(e,r,t,i,52,8),t+8}u.prototype.writeDoubleLE=function(r,t,i){return Er(this,r,t,!0,i)};u.prototype.writeDoubleBE=function(r,t,i){return Er(this,r,t,!1,i)};u.prototype.copy=function(r,t,i,n){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};u.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var a;if(typeof r=="number")for(a=t;a<i;++a)this[a]=r;else{var h=u.isBuffer(r)?r:u.from(r,n),p=h.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=h[a%p]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function st(e){if(e=e.split("=")[0],e=e.trim().replace(pt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Z(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],a=0;a<i;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ct(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,o=[],a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Fr(e){return $.toByteArray(st(e))}function X(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function _(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function tr(e){return e!==e}var lt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Tr=Y((dt,vr)=>{g();var l=vr.exports={},d,B;function er(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=er}catch(e){d=er}try{typeof clearTimeout=="function"?B=clearTimeout:B=ir}catch(e){B=ir}})();function _r(e){if(d===setTimeout)return setTimeout(e,0);if((d===er||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(r){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function mt(e){if(B===clearTimeout)return clearTimeout(e);if((B===ir||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(e);try{return B(e)}catch(r){try{return B.call(null,e)}catch(t){return B.call(this,e)}}}var T=[],b=!1,L,G=-1;function yt(){!b||!L||(b=!1,L.length?T=L.concat(T):G=-1,T.length&&dr())}function dr(){if(!b){var e=_r(yt);b=!0;for(var r=T.length;r;){for(L=T,T=[];++G<r;)L&&L[G].run();G=-1,r=T.length}L=null,b=!1,mt(e)}}l.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Br(e,r)),T.length===1&&!b&&_r(dr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function U(){}l.on=U;l.addListener=U;l.once=U;l.off=U;l.removeListener=U;l.removeAllListeners=U;l.emit=U;l.prependListener=U;l.prependOnceListener=U;l.listeners=function(e){return[]};l.binding=function(e){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(e){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var P,M,Bt,g=kr(()=>{P=q(Ar()),M=q(Tr()),Bt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var gt={};Dr(gt,{ScamPhishingAlert:()=>wt});module.exports=br(gt);g();var y=q(require("react")),Ur=require("@fortawesome/free-solid-svg-icons"),Ir=require("@fortawesome/react-fontawesome"),J=q(require("classnames"));g();var xt=`.dapp-core-component__scamPhishingStyles__scam-phishing-alert {
2
- text-align: center;
1
+ "use strict";var Pr=Object.create;var R=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames;var Nr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var kr=(i,r)=>()=>(i&&(r=i(i=0)),r);var W=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports),Dr=(i,r)=>{for(var t in r)R(i,t,{get:r[t],enumerable:!0})},nr=(i,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Lr(r))!Mr.call(i,n)&&n!==t&&R(i,n,{get:()=>r[n],enumerable:!(e=Cr(r,n))||e.enumerable});return i};var Y=(i,r,t)=>(t=i!=null?Pr(Nr(i)):{},nr(r||!i||!i.__esModule?R(t,"default",{value:i,enumerable:!0}):t,i)),br=i=>nr(R({},"__esModule",{value:!0}),i);var hr=W(q=>{"use strict";g();q.byteLength=Rr;q.toByteArray=Yr;q.fromByteArray=Xr;var A=[],_=[],zr=typeof Uint8Array!="undefined"?Uint8Array:Array,J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,or=J.length;S<or;++S)A[S]=J[S],_[J.charCodeAt(S)]=S;var S,or;_["-".charCodeAt(0)]=62;_["_".charCodeAt(0)]=63;function ar(i){var r=i.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=i.indexOf("=");t===-1&&(t=r);var e=t===r?0:4-t%4;return[t,e]}function Rr(i){var r=ar(i),t=r[0],e=r[1];return(t+e)*3/4-e}function Wr(i,r,t){return(r+t)*3/4-t}function Yr(i){var r,t=ar(i),e=t[0],n=t[1],o=new zr(Wr(i,e,n)),a=0,u=n>0?e-4:e,p;for(p=0;p<u;p+=4)r=_[i.charCodeAt(p)]<<18|_[i.charCodeAt(p+1)]<<12|_[i.charCodeAt(p+2)]<<6|_[i.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return n===2&&(r=_[i.charCodeAt(p)]<<2|_[i.charCodeAt(p+1)]>>4,o[a++]=r&255),n===1&&(r=_[i.charCodeAt(p)]<<10|_[i.charCodeAt(p+1)]<<4|_[i.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function qr(i){return A[i>>18&63]+A[i>>12&63]+A[i>>6&63]+A[i&63]}function Hr(i,r,t){for(var e,n=[],o=r;o<t;o+=3)e=(i[o]<<16&16711680)+(i[o+1]<<8&65280)+(i[o+2]&255),n.push(qr(e));return n.join("")}function Xr(i){for(var r,t=i.length,e=t%3,n=[],o=16383,a=0,u=t-e;a<u;a+=o)n.push(Hr(i,a,a+o>u?u:a+o));return e===1?(r=i[t-1],n.push(A[r>>2]+A[r<<4&63]+"==")):e===2&&(r=(i[t-2]<<8)+i[t-1],n.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),n.join("")}});var ur=W(Q=>{g();Q.read=function(i,r,t,e,n){var o,a,u=n*8-e-1,p=(1<<u)-1,c=p>>1,f=-7,s=t?n-1:0,E=t?-1:1,w=i[r+s];for(s+=E,o=w&(1<<-f)-1,w>>=-f,f+=u;f>0;o=o*256+i[r+s],s+=E,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=e;f>0;a=a*256+i[r+s],s+=E,f-=8);if(o===0)o=1-c;else{if(o===p)return a?NaN:(w?-1:1)*(1/0);a=a+Math.pow(2,e),o=o-c}return(w?-1:1)*a*Math.pow(2,o-e)};Q.write=function(i,r,t,e,n,o){var a,u,p,c=o*8-n-1,f=(1<<c)-1,s=f>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=e?0:o-1,L=e?1:-1,Sr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=f):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+s>=1?r+=E/p:r+=E*Math.pow(2,1-s),r*p>=2&&(a++,p/=2),a+s>=f?(u=0,a=f):a+s>=1?(u=(r*p-1)*Math.pow(2,n),a=a+s):(u=r*Math.pow(2,s-1)*Math.pow(2,n),a=0));n>=8;i[t+w]=u&255,w+=L,u/=256,n-=8);for(a=a<<n|u,c+=n;c>0;i[t+w]=a&255,w+=L,a/=256,c-=8);i[t+w-L]|=Sr*128}});var dr=W(D=>{"use strict";g();var V=hr(),k=ur(),pr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;D.Buffer=h;D.SlowBuffer=Kr;D.INSPECT_MAX_BYTES=50;var H=2147483647;D.kMaxLength=H;h.TYPED_ARRAY_SUPPORT=Gr();!h.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gr(){try{var i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch(t){return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(!!h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(!!h.isBuffer(this))return this.byteOffset}});function T(i){if(i>H)throw new RangeError('The value "'+i+'" is invalid for option "size"');var r=new Uint8Array(i);return Object.setPrototypeOf(r,h.prototype),r}function h(i,r,t){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(i)}return fr(i,r,t)}h.poolSize=8192;function fr(i,r,t){if(typeof i=="string")return Qr(i,r);if(ArrayBuffer.isView(i))return Vr(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(F(i,ArrayBuffer)||i&&F(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(F(i,SharedArrayBuffer)||i&&F(i.buffer,SharedArrayBuffer)))return K(i,r,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var e=i.valueOf&&i.valueOf();if(e!=null&&e!==i)return h.from(e,r,t);var n=$r(i);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return h.from(i[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}h.from=function(i,r,t){return fr(i,r,t)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);function lr(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function Jr(i,r,t){return lr(i),i<=0?T(i):r!==void 0?typeof t=="string"?T(i).fill(r,t):T(i).fill(r):T(i)}h.alloc=function(i,r,t){return Jr(i,r,t)};function Z(i){return lr(i),T(i<0?0:j(i)|0)}h.allocUnsafe=function(i){return Z(i)};h.allocUnsafeSlow=function(i){return Z(i)};function Qr(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=mr(i,r)|0,e=T(t),n=e.write(i,r);return n!==t&&(e=e.slice(0,n)),e}function $(i){for(var r=i.length<0?0:j(i.length)|0,t=T(r),e=0;e<r;e+=1)t[e]=i[e]&255;return t}function Vr(i){if(F(i,Uint8Array)){var r=new Uint8Array(i);return K(r.buffer,r.byteOffset,r.byteLength)}return $(i)}function K(i,r,t){if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var e;return r===void 0&&t===void 0?e=new Uint8Array(i):t===void 0?e=new Uint8Array(i,r):e=new Uint8Array(i,r,t),Object.setPrototypeOf(e,h.prototype),e}function $r(i){if(h.isBuffer(i)){var r=j(i.length)|0,t=T(r);return t.length===0||i.copy(t,0,0,r),t}if(i.length!==void 0)return typeof i.length!="number"||rr(i.length)?T(0):$(i);if(i.type==="Buffer"&&Array.isArray(i.data))return $(i.data)}function j(i){if(i>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return i|0}function Kr(i){return+i!=i&&(i=0),h.alloc(+i)}h.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==h.prototype};h.compare=function(r,t){if(F(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),F(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(r)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var e=r.length,n=t.length,o=0,a=Math.min(e,n);o<a;++o)if(r[o]!==t[o]){e=r[o],n=t[o];break}return e<n?-1:n<e?1:0};h.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};h.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return h.alloc(0);var e;if(t===void 0)for(t=0,e=0;e<r.length;++e)t+=r[e].length;var n=h.allocUnsafe(t),o=0;for(e=0;e<r.length;++e){var a=r[e];if(F(a,Uint8Array))o+a.length>n.length?h.from(a).copy(n,o):Uint8Array.prototype.set.call(n,a,o);else if(h.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function mr(i,r){if(h.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||F(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var t=i.length,e=arguments.length>2&&arguments[2]===!0;if(!e&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(i).length;default:if(n)return e?-1:O(i).length;r=(""+r).toLowerCase(),n=!0}}h.byteLength=mr;function Or(i,r,t){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return ht(this,r,t);case"utf8":case"utf-8":return xr(this,r,t);case"ascii":return ot(this,r,t);case"latin1":case"binary":return at(this,r,t);case"base64":return et(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t);default:if(e)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),e=!0}}h.prototype._isBuffer=!0;function P(i,r,t){var e=i[r];i[r]=i[t],i[t]=e}h.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)P(this,t,t+1);return this};h.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)P(this,t,t+3),P(this,t+1,t+2);return this};h.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)P(this,t,t+7),P(this,t+1,t+6),P(this,t+2,t+5),P(this,t+3,t+4);return this};h.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Or.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(r){if(!h.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:h.compare(this,r)===0};h.prototype.inspect=function(){var r="",t=D.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};pr&&(h.prototype[pr]=h.prototype.inspect);h.prototype.compare=function(r,t,e,n,o){if(F(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),!h.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),e===void 0&&(e=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||e>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=e)return 0;if(n>=o)return-1;if(t>=e)return 1;if(t>>>=0,e>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var a=o-n,u=e-t,p=Math.min(a,u),c=this.slice(n,o),f=r.slice(t,e),s=0;s<p;++s)if(c[s]!==f[s]){a=c[s],u=f[s];break}return a<u?-1:u<a?1:0};function yr(i,r,t,e,n){if(i.length===0)return-1;if(typeof t=="string"?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,rr(t)&&(t=n?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(n)return-1;t=i.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=h.from(r,e)),h.isBuffer(r))return r.length===0?-1:sr(i,r,t,e,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(i,r,t):Uint8Array.prototype.lastIndexOf.call(i,r,t):sr(i,[r],t,e,n);throw new TypeError("val must be string, number or Buffer")}function sr(i,r,t,e,n){var o=1,a=i.length,u=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(i.length<2||r.length<2)return-1;o=2,a/=2,u/=2,t/=2}function p(w,L){return o===1?w[L]:w.readUInt16BE(L*o)}var c;if(n){var f=-1;for(c=t;c<a;c++)if(p(i,c)===p(r,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===u)return f*o}else f!==-1&&(c-=c-f),f=-1}else for(t+u>a&&(t=a-u),c=t;c>=0;c--){for(var s=!0,E=0;E<u;E++)if(p(i,c+E)!==p(r,E)){s=!1;break}if(s)return c}return-1}h.prototype.includes=function(r,t,e){return this.indexOf(r,t,e)!==-1};h.prototype.indexOf=function(r,t,e){return yr(this,r,t,e,!0)};h.prototype.lastIndexOf=function(r,t,e){return yr(this,r,t,e,!1)};function Zr(i,r,t,e){t=Number(t)||0;var n=i.length-t;e?(e=Number(e),e>n&&(e=n)):e=n;var o=r.length;e>o/2&&(e=o/2);for(var a=0;a<e;++a){var u=parseInt(r.substr(a*2,2),16);if(rr(u))return a;i[t+a]=u}return a}function jr(i,r,t,e){return X(O(r,i.length-t),i,t,e)}function rt(i,r,t,e){return X(ct(r),i,t,e)}function tt(i,r,t,e){return X(Er(r),i,t,e)}function it(i,r,t,e){return X(ft(r,i.length-t),i,t,e)}h.prototype.write=function(r,t,e,n){if(t===void 0)n="utf8",e=this.length,t=0;else if(e===void 0&&typeof t=="string")n=t,e=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(e)?(e=e>>>0,n===void 0&&(n="utf8")):(n=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((e===void 0||e>o)&&(e=o),r.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Zr(this,r,t,e);case"utf8":case"utf-8":return jr(this,r,t,e);case"ascii":case"latin1":case"binary":return rt(this,r,t,e);case"base64":return tt(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t,e);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function et(i,r,t){return r===0&&t===i.length?V.fromByteArray(i):V.fromByteArray(i.slice(r,t))}function xr(i,r,t){t=Math.min(i.length,t);for(var e=[],n=r;n<t;){var o=i[n],a=null,u=o>239?4:o>223?3:o>191?2:1;if(n+u<=t){var p,c,f,s;switch(u){case 1:o<128&&(a=o);break;case 2:p=i[n+1],(p&192)===128&&(s=(o&31)<<6|p&63,s>127&&(a=s));break;case 3:p=i[n+1],c=i[n+2],(p&192)===128&&(c&192)===128&&(s=(o&15)<<12|(p&63)<<6|c&63,s>2047&&(s<55296||s>57343)&&(a=s));break;case 4:p=i[n+1],c=i[n+2],f=i[n+3],(p&192)===128&&(c&192)===128&&(f&192)===128&&(s=(o&15)<<18|(p&63)<<12|(c&63)<<6|f&63,s>65535&&s<1114112&&(a=s))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,e.push(a>>>10&1023|55296),a=56320|a&1023),e.push(a),n+=u}return nt(e)}var cr=4096;function nt(i){var r=i.length;if(r<=cr)return String.fromCharCode.apply(String,i);for(var t="",e=0;e<r;)t+=String.fromCharCode.apply(String,i.slice(e,e+=cr));return t}function ot(i,r,t){var e="";t=Math.min(i.length,t);for(var n=r;n<t;++n)e+=String.fromCharCode(i[n]&127);return e}function at(i,r,t){var e="";t=Math.min(i.length,t);for(var n=r;n<t;++n)e+=String.fromCharCode(i[n]);return e}function ht(i,r,t){var e=i.length;(!r||r<0)&&(r=0),(!t||t<0||t>e)&&(t=e);for(var n="",o=r;o<t;++o)n+=lt[i[o]];return n}function ut(i,r,t){for(var e=i.slice(r,t),n="",o=0;o<e.length-1;o+=2)n+=String.fromCharCode(e[o]+e[o+1]*256);return n}h.prototype.slice=function(r,t){var e=this.length;r=~~r,t=t===void 0?e:~~t,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,h.prototype),n};function m(i,r,t){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>t)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return n};h.prototype.readUintBE=h.prototype.readUIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};h.prototype.readUint8=h.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};h.prototype.readIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=t,o=1,a=this[r+--n];n>0&&(o*=256);)a+=this[r+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a};h.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};h.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};h.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};h.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),k.read(this,r,!0,23,4)};h.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),k.read(this,r,!1,23,4)};h.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!0,52,8)};h.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),k.read(this,r,!1,52,8)};function x(i,r,t,e,n,o){if(!h.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+e>i.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(r,t,e,n){if(r=+r,t=t>>>0,e=e>>>0,!n){var o=Math.pow(2,8*e)-1;x(this,r,t,e,o,0)}var a=1,u=0;for(this[t]=r&255;++u<e&&(a*=256);)this[t+u]=r/a&255;return t+e};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(r,t,e,n){if(r=+r,t=t>>>0,e=e>>>0,!n){var o=Math.pow(2,8*e)-1;x(this,r,t,e,o,0)}var a=e-1,u=1;for(this[t+a]=r&255;--a>=0&&(u*=256);)this[t+a]=r/u&255;return t+e};h.prototype.writeUint8=h.prototype.writeUInt8=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,1,255,0),this[t]=r&255,t+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};h.prototype.writeIntLE=function(r,t,e,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*e-1);x(this,r,t,e,o-1,-o)}var a=0,u=1,p=0;for(this[t]=r&255;++a<e&&(u*=256);)r<0&&p===0&&this[t+a-1]!==0&&(p=1),this[t+a]=(r/u>>0)-p&255;return t+e};h.prototype.writeIntBE=function(r,t,e,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*e-1);x(this,r,t,e,o-1,-o)}var a=e-1,u=1,p=0;for(this[t+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[t+a+1]!==0&&(p=1),this[t+a]=(r/u>>0)-p&255;return t+e};h.prototype.writeInt8=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};h.prototype.writeInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};h.prototype.writeInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||x(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(i,r,t,e,n,o){if(t+e>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gr(i,r,t,e,n){return r=+r,t=t>>>0,n||wr(i,r,t,4,34028234663852886e22,-34028234663852886e22),k.write(i,r,t,e,23,4),t+4}h.prototype.writeFloatLE=function(r,t,e){return gr(this,r,t,!0,e)};h.prototype.writeFloatBE=function(r,t,e){return gr(this,r,t,!1,e)};function _r(i,r,t,e,n){return r=+r,t=t>>>0,n||wr(i,r,t,8,17976931348623157e292,-17976931348623157e292),k.write(i,r,t,e,52,8),t+8}h.prototype.writeDoubleLE=function(r,t,e){return _r(this,r,t,!0,e)};h.prototype.writeDoubleBE=function(r,t,e){return _r(this,r,t,!1,e)};h.prototype.copy=function(r,t,e,n){if(!h.isBuffer(r))throw new TypeError("argument should be a Buffer");if(e||(e=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<e&&(n=e),n===e||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-e&&(n=r.length-t+e);var o=n-e;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,e,n):Uint8Array.prototype.set.call(r,this.subarray(e,n),t),o};h.prototype.fill=function(r,t,e,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,e=this.length):typeof e=="string"&&(n=e,e=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<e)throw new RangeError("Out of range index");if(e<=t)return this;t=t>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var a;if(typeof r=="number")for(a=t;a<e;++a)this[a]=r;else{var u=h.isBuffer(r)?r:h.from(r,n),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<e-t;++a)this[a+t]=u[a%p]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function st(i){if(i=i.split("=")[0],i=i.trim().replace(pt,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function O(i,r){r=r||1/0;for(var t,e=i.length,n=null,o=[],a=0;a<e;++a){if(t=i.charCodeAt(a),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===e){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ct(i){for(var r=[],t=0;t<i.length;++t)r.push(i.charCodeAt(t)&255);return r}function ft(i,r){for(var t,e,n,o=[],a=0;a<i.length&&!((r-=2)<0);++a)t=i.charCodeAt(a),e=t>>8,n=t%256,o.push(n),o.push(e);return o}function Er(i){return V.toByteArray(st(i))}function X(i,r,t,e){for(var n=0;n<e&&!(n+t>=r.length||n>=i.length);++n)r[n+t]=i[n];return n}function F(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function rr(i){return i!==i}var lt=function(){for(var i="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var e=t*16,n=0;n<16;++n)r[e+n]=i[t]+i[n];return r}()});var Tr=W((Ft,vr)=>{g();var l=vr.exports={},B,v;function tr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?B=setTimeout:B=tr}catch(i){B=tr}try{typeof clearTimeout=="function"?v=clearTimeout:v=ir}catch(i){v=ir}})();function Ar(i){if(B===setTimeout)return setTimeout(i,0);if((B===tr||!B)&&setTimeout)return B=setTimeout,setTimeout(i,0);try{return B(i,0)}catch(r){try{return B.call(null,i,0)}catch(t){return B.call(this,i,0)}}}function mt(i){if(v===clearTimeout)return clearTimeout(i);if((v===ir||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(i);try{return v(i)}catch(r){try{return v.call(null,i)}catch(t){return v.call(this,i)}}}var U=[],b=!1,C,G=-1;function yt(){!b||!C||(b=!1,C.length?U=C.concat(U):G=-1,U.length&&Fr())}function Fr(){if(!b){var i=Ar(yt);b=!0;for(var r=U.length;r;){for(C=U,U=[];++G<r;)C&&C[G].run();G=-1,r=U.length}C=null,b=!1,mt(i)}}l.nextTick=function(i){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Br(i,r)),U.length===1&&!b&&Ar(Fr)};function Br(i,r){this.fun=i,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function I(){}l.on=I;l.addListener=I;l.once=I;l.off=I;l.removeListener=I;l.removeAllListeners=I;l.emit=I;l.prependListener=I;l.prependOnceListener=I;l.listeners=function(i){return[]};l.binding=function(i){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(i){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var N,M,Bt,g=kr(()=>{N=Y(dr()),M=Y(Tr()),Bt=function(i){function r(){var e=this||self;return delete i.prototype.__magic__,e}if(typeof globalThis=="object")return globalThis;if(this)return r();i.defineProperty(i.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var gt={};Dr(gt,{ScamPhishingAlert:()=>wt});module.exports=br(gt);g();var y=Y(require("react")),Ur=require("@fortawesome/free-solid-svg-icons"),Ir=require("@fortawesome/react-fontawesome"),er=Y(require("classnames"));g();var xt=`.dapp-core-component__scamPhishingStyles__scam-phishing-alert {
3
2
  margin: 40px auto 0;
4
3
  font-size: 12px;
5
4
  display: flex;
@@ -29,7 +28,20 @@
29
28
  .dapp-core-component__scamPhishingStyles__scam-phishing-alert .dapp-core-component__scamPhishingStyles__scam-phishing-alert-text .dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix {
30
29
  margin-left: 4px;
31
30
  }
32
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(xt));var I={"scam-phishing-alert":"dapp-core-component__scamPhishingStyles__scam-phishing-alert",scamPhishingAlert:"dapp-core-component__scamPhishingStyles__scam-phishing-alert","scam-phishing-alert-icon":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon",scamPhishingAlertIcon:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon","scam-phishing-alert-text":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text",scamPhishingAlertText:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text","scam-phishing-alert-prefix":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix",scamPhishingAlertPrefix:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix"};var wt=e=>{let{className:r,url:t,icon:i,authorizationInfo:n}=e,o=t.replace("https://","").replace(/\/$/,""),a=n!=null&&n.url?n.url.replace("https://","").replace(/\/$/,""):"";return y.default.createElement(y.default.Fragment,null,y.default.createElement("p",{className:(0,J.default)(I.scamPhishingAlert,r)},i||y.default.createElement(Ir.FontAwesomeIcon,{className:I.scamPhishingAlertIcon,icon:Ur.faLock}),y.default.createElement("span",{className:I.scamPhishingAlertText},y.default.createElement("span",null,"Scam/Phishing verification:")," ",y.default.createElement("span",{className:I.scamPhishingAlertPrefix},y.default.createElement("strong",null,"https://"),o))),(n==null?void 0:n.url)&&y.default.createElement("p",{className:(0,J.default)(I.scamPhishingAlert,"mt-2 column",r)},y.default.createElement("span",{className:I.scamPhishingAlertText},"Please confirm that you are indeed connecting to"),y.default.createElement("span",{className:(0,J.default)(I.scamPhishingAlertText,"d-flex flex-row")},y.default.createElement("strong",null,"https://"),y.default.createElement("span",{className:"text-nowrap"},a," for"),y.default.createElement("strong",{className:"ms-1"},n.duration)),y.default.createElement("span",{className:I.scamPhishingAlertText},"and that you trust this site. You might be sharing sensitive data."),y.default.createElement("a",{href:"https://multiversx.com/faq"},"Learn more")))};0&&(module.exports={ScamPhishingAlert});
31
+ }
32
+
33
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization {
34
+ display: flex;
35
+ flex-direction: column;
36
+ margin-top: 0;
37
+ }
38
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization .dapp-core-component__scamPhishingStyles__scam-phishing-alert-text {
39
+ text-align: center;
40
+ flex-direction: row;
41
+ }
42
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration {
43
+ margin-left: 4px;
44
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(xt));var d={"scam-phishing-alert":"dapp-core-component__scamPhishingStyles__scam-phishing-alert",scamPhishingAlert:"dapp-core-component__scamPhishingStyles__scam-phishing-alert","scam-phishing-alert-icon":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon",scamPhishingAlertIcon:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon","scam-phishing-alert-text":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text",scamPhishingAlertText:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text","scam-phishing-alert-prefix":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix",scamPhishingAlertPrefix:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix","scam-phishing-alert-authorization":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization",scamPhishingAlertAuthorization:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization","scam-phishing-alert-authorization-duration":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration",scamPhishingAlertAuthorizationDuration:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration"};var wt=i=>{let{className:r,url:t,icon:e,authorizationInfo:n}=i,o=t.replace("https://","").replace(/\/$/,""),a=n!=null&&n.url?n.url.replace("https://","").replace(/\/$/,""):"";return y.default.createElement(y.default.Fragment,null,y.default.createElement("p",{className:(0,er.default)(d.scamPhishingAlert,r)},e||y.default.createElement(Ir.FontAwesomeIcon,{className:d.scamPhishingAlertIcon,icon:Ur.faLock}),y.default.createElement("span",{className:d.scamPhishingAlertText},y.default.createElement("span",null,"Scam/Phishing verification:")," ",y.default.createElement("span",{className:d.scamPhishingAlertPrefix},y.default.createElement("strong",null,"https://"),o))),n&&n.url&&y.default.createElement("p",{className:(0,er.default)(d.scamPhishingAlert,d.scamPhishingAlertAuthorization,n.className)},y.default.createElement("span",{className:d.scamPhishingAlertText},"Please confirm that you are indeed connecting to"),y.default.createElement("span",{className:d.scamPhishingAlertText},y.default.createElement("strong",null,"https://"),y.default.createElement("span",null,a," for"),y.default.createElement("strong",{className:d.scamPhishingAlertAuthorizationDuration},n.duration)),y.default.createElement("span",{className:d.scamPhishingAlertText},"and that you trust this site. You might be sharing sensitive data."),y.default.createElement("a",{href:"https://multiversx.com/faq"},"Learn more")))};0&&(module.exports={ScamPhishingAlert});
33
45
  /*!
34
46
  * The buffer module from node.js, for the browser.
35
47
  *
@@ -1,5 +1,4 @@
1
- "use strict";var Cr=Object.create;var W=Object.defineProperty;var Lr=Object.getOwnPropertyDescriptor;var Nr=Object.getOwnPropertyNames;var Pr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var kr=(e,r)=>()=>(e&&(r=e(e=0)),r);var Y=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Dr=(e,r)=>{for(var t in r)W(e,t,{get:r[t],enumerable:!0})},nr=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Nr(r))!Mr.call(e,n)&&n!==t&&W(e,n,{get:()=>r[n],enumerable:!(i=Lr(r,n))||i.enumerable});return e};var q=(e,r,t)=>(t=e!=null?Cr(Pr(e)):{},nr(r||!e||!e.__esModule?W(t,"default",{value:e,enumerable:!0}):t,e)),br=e=>nr(W({},"__esModule",{value:!0}),e);var ur=Y(z=>{"use strict";x();z.byteLength=Wr;z.toByteArray=qr;z.fromByteArray=Xr;var A=[],E=[],Rr=typeof Uint8Array!="undefined"?Uint8Array:Array,Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,or=Q.length;S<or;++S)A[S]=Q[S],E[Q.charCodeAt(S)]=S;var S,or;E["-".charCodeAt(0)]=62;E["_".charCodeAt(0)]=63;function ar(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var i=t===r?0:4-t%4;return[t,i]}function Wr(e){var r=ar(e),t=r[0],i=r[1];return(t+i)*3/4-i}function Yr(e,r,t){return(r+t)*3/4-t}function qr(e){var r,t=ar(e),i=t[0],n=t[1],o=new Rr(Yr(e,i,n)),a=0,h=n>0?i-4:i,p;for(p=0;p<h;p+=4)r=E[e.charCodeAt(p)]<<18|E[e.charCodeAt(p+1)]<<12|E[e.charCodeAt(p+2)]<<6|E[e.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return n===2&&(r=E[e.charCodeAt(p)]<<2|E[e.charCodeAt(p+1)]>>4,o[a++]=r&255),n===1&&(r=E[e.charCodeAt(p)]<<10|E[e.charCodeAt(p+1)]<<4|E[e.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function zr(e){return A[e>>18&63]+A[e>>12&63]+A[e>>6&63]+A[e&63]}function Hr(e,r,t){for(var i,n=[],o=r;o<t;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),n.push(zr(i));return n.join("")}function Xr(e){for(var r,t=e.length,i=t%3,n=[],o=16383,a=0,h=t-i;a<h;a+=o)n.push(Hr(e,a,a+o>h?h:a+o));return i===1?(r=e[t-1],n.push(A[r>>2]+A[r<<4&63]+"==")):i===2&&(r=(e[t-2]<<8)+e[t-1],n.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),n.join("")}});var hr=Y(V=>{x();V.read=function(e,r,t,i,n){var o,a,h=n*8-i-1,p=(1<<h)-1,c=p>>1,f=-7,s=t?n-1:0,F=t?-1:1,g=e[r+s];for(s+=F,o=g&(1<<-f)-1,g>>=-f,f+=h;f>0;o=o*256+e[r+s],s+=F,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=i;f>0;a=a*256+e[r+s],s+=F,f-=8);if(o===0)o=1-c;else{if(o===p)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,i),o=o-c}return(g?-1:1)*a*Math.pow(2,o-i)};V.write=function(e,r,t,i,n,o){var a,h,p,c=o*8-n-1,f=(1<<c)-1,s=f>>1,F=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:o-1,M=i?1:-1,Sr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,a=f):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+s>=1?r+=F/p:r+=F*Math.pow(2,1-s),r*p>=2&&(a++,p/=2),a+s>=f?(h=0,a=f):a+s>=1?(h=(r*p-1)*Math.pow(2,n),a=a+s):(h=r*Math.pow(2,s-1)*Math.pow(2,n),a=0));n>=8;e[t+g]=h&255,g+=M,h/=256,n-=8);for(a=a<<n|h,c+=n;c>0;e[t+g]=a&255,g+=M,a/=256,c-=8);e[t+g-M]|=Sr*128}});var Ar=Y(b=>{"use strict";x();var $=ur(),D=hr(),pr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=u;b.SlowBuffer=Kr;b.INSPECT_MAX_BYTES=50;var H=2147483647;b.kMaxLength=H;u.TYPED_ARRAY_SUPPORT=Gr();!u.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gr(){try{var e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(t){return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.buffer}});Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(!!u.isBuffer(this))return this.byteOffset}});function v(e){if(e>H)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return Object.setPrototypeOf(r,u.prototype),r}function u(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(e)}return fr(e,r,t)}u.poolSize=8192;function fr(e,r,t){if(typeof e=="string")return Qr(e,r);if(ArrayBuffer.isView(e))return Vr(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(_(e,ArrayBuffer)||e&&_(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_(e,SharedArrayBuffer)||e&&_(e.buffer,SharedArrayBuffer)))return O(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return u.from(i,r,t);var n=$r(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return u.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}u.from=function(e,r,t){return fr(e,r,t)};Object.setPrototypeOf(u.prototype,Uint8Array.prototype);Object.setPrototypeOf(u,Uint8Array);function lr(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function Jr(e,r,t){return lr(e),e<=0?v(e):r!==void 0?typeof t=="string"?v(e).fill(r,t):v(e).fill(r):v(e)}u.alloc=function(e,r,t){return Jr(e,r,t)};function j(e){return lr(e),v(e<0?0:rr(e)|0)}u.allocUnsafe=function(e){return j(e)};u.allocUnsafeSlow=function(e){return j(e)};function Qr(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=mr(e,r)|0,i=v(t),n=i.write(e,r);return n!==t&&(i=i.slice(0,n)),i}function K(e){for(var r=e.length<0?0:rr(e.length)|0,t=v(r),i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Vr(e){if(_(e,Uint8Array)){var r=new Uint8Array(e);return O(r.buffer,r.byteOffset,r.byteLength)}return K(e)}function O(e,r,t){if(r<0||e.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var i;return r===void 0&&t===void 0?i=new Uint8Array(e):t===void 0?i=new Uint8Array(e,r):i=new Uint8Array(e,r,t),Object.setPrototypeOf(i,u.prototype),i}function $r(e){if(u.isBuffer(e)){var r=rr(e.length)|0,t=v(r);return t.length===0||e.copy(t,0,0,r),t}if(e.length!==void 0)return typeof e.length!="number"||tr(e.length)?v(0):K(e);if(e.type==="Buffer"&&Array.isArray(e.data))return K(e.data)}function rr(e){if(e>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return e|0}function Kr(e){return+e!=e&&(e=0),u.alloc(+e)}u.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==u.prototype};u.compare=function(r,t){if(_(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),_(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(r)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var i=r.length,n=t.length,o=0,a=Math.min(i,n);o<a;++o)if(r[o]!==t[o]){i=r[o],n=t[o];break}return i<n?-1:n<i?1:0};u.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};u.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return u.alloc(0);var i;if(t===void 0)for(t=0,i=0;i<r.length;++i)t+=r[i].length;var n=u.allocUnsafe(t),o=0;for(i=0;i<r.length;++i){var a=r[i];if(_(a,Uint8Array))o+a.length>n.length?u.from(a).copy(n,o):Uint8Array.prototype.set.call(n,a,o);else if(u.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function mr(e,r){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||_(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Fr(e).length;default:if(n)return i?-1:Z(e).length;r=(""+r).toLowerCase(),n=!0}}u.byteLength=mr;function Or(e,r,t){var i=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return ut(this,r,t);case"utf8":case"utf-8":return xr(this,r,t);case"ascii":return ot(this,r,t);case"latin1":case"binary":return at(this,r,t);case"base64":return it(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,r,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}u.prototype._isBuffer=!0;function N(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}u.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)N(this,t,t+1);return this};u.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)N(this,t,t+3),N(this,t+1,t+2);return this};u.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)N(this,t,t+7),N(this,t+1,t+6),N(this,t+2,t+5),N(this,t+3,t+4);return this};u.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Or.apply(this,arguments)};u.prototype.toLocaleString=u.prototype.toString;u.prototype.equals=function(r){if(!u.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:u.compare(this,r)===0};u.prototype.inspect=function(){var r="",t=b.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};pr&&(u.prototype[pr]=u.prototype.inspect);u.prototype.compare=function(r,t,i,n,o){if(_(r,Uint8Array)&&(r=u.from(r,r.offset,r.byteLength)),!u.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),i===void 0&&(i=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||i>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=i)return 0;if(n>=o)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var a=o-n,h=i-t,p=Math.min(a,h),c=this.slice(n,o),f=r.slice(t,i),s=0;s<p;++s)if(c[s]!==f[s]){a=c[s],h=f[s];break}return a<h?-1:h<a?1:0};function yr(e,r,t,i,n){if(e.length===0)return-1;if(typeof t=="string"?(i=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,tr(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=u.from(r,i)),u.isBuffer(r))return r.length===0?-1:sr(e,r,t,i,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):sr(e,[r],t,i,n);throw new TypeError("val must be string, number or Buffer")}function sr(e,r,t,i,n){var o=1,a=e.length,h=r.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||r.length<2)return-1;o=2,a/=2,h/=2,t/=2}function p(g,M){return o===1?g[M]:g.readUInt16BE(M*o)}var c;if(n){var f=-1;for(c=t;c<a;c++)if(p(e,c)===p(r,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===h)return f*o}else f!==-1&&(c-=c-f),f=-1}else for(t+h>a&&(t=a-h),c=t;c>=0;c--){for(var s=!0,F=0;F<h;F++)if(p(e,c+F)!==p(r,F)){s=!1;break}if(s)return c}return-1}u.prototype.includes=function(r,t,i){return this.indexOf(r,t,i)!==-1};u.prototype.indexOf=function(r,t,i){return yr(this,r,t,i,!0)};u.prototype.lastIndexOf=function(r,t,i){return yr(this,r,t,i,!1)};function Zr(e,r,t,i){t=Number(t)||0;var n=e.length-t;i?(i=Number(i),i>n&&(i=n)):i=n;var o=r.length;i>o/2&&(i=o/2);for(var a=0;a<i;++a){var h=parseInt(r.substr(a*2,2),16);if(tr(h))return a;e[t+a]=h}return a}function jr(e,r,t,i){return X(Z(r,e.length-t),e,t,i)}function rt(e,r,t,i){return X(ct(r),e,t,i)}function tt(e,r,t,i){return X(Fr(r),e,t,i)}function et(e,r,t,i){return X(ft(r,e.length-t),e,t,i)}u.prototype.write=function(r,t,i,n){if(t===void 0)n="utf8",i=this.length,t=0;else if(i===void 0&&typeof t=="string")n=t,i=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((i===void 0||i>o)&&(i=o),r.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Zr(this,r,t,i);case"utf8":case"utf-8":return jr(this,r,t,i);case"ascii":case"latin1":case"binary":return rt(this,r,t,i);case"base64":return tt(this,r,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,r,t,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function it(e,r,t){return r===0&&t===e.length?$.fromByteArray(e):$.fromByteArray(e.slice(r,t))}function xr(e,r,t){t=Math.min(e.length,t);for(var i=[],n=r;n<t;){var o=e[n],a=null,h=o>239?4:o>223?3:o>191?2:1;if(n+h<=t){var p,c,f,s;switch(h){case 1:o<128&&(a=o);break;case 2:p=e[n+1],(p&192)===128&&(s=(o&31)<<6|p&63,s>127&&(a=s));break;case 3:p=e[n+1],c=e[n+2],(p&192)===128&&(c&192)===128&&(s=(o&15)<<12|(p&63)<<6|c&63,s>2047&&(s<55296||s>57343)&&(a=s));break;case 4:p=e[n+1],c=e[n+2],f=e[n+3],(p&192)===128&&(c&192)===128&&(f&192)===128&&(s=(o&15)<<18|(p&63)<<12|(c&63)<<6|f&63,s>65535&&s<1114112&&(a=s))}}a===null?(a=65533,h=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a),n+=h}return nt(i)}var cr=4096;function nt(e){var r=e.length;if(r<=cr)return String.fromCharCode.apply(String,e);for(var t="",i=0;i<r;)t+=String.fromCharCode.apply(String,e.slice(i,i+=cr));return t}function ot(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]&127);return i}function at(e,r,t){var i="";t=Math.min(e.length,t);for(var n=r;n<t;++n)i+=String.fromCharCode(e[n]);return i}function ut(e,r,t){var i=e.length;(!r||r<0)&&(r=0),(!t||t<0||t>i)&&(t=i);for(var n="",o=r;o<t;++o)n+=lt[e[o]];return n}function ht(e,r,t){for(var i=e.slice(r,t),n="",o=0;o<i.length-1;o+=2)n+=String.fromCharCode(i[o]+i[o+1]*256);return n}u.prototype.slice=function(r,t){var i=this.length;r=~~r,t=t===void 0?i:~~t,r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,u.prototype),n};function m(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return n};u.prototype.readUintBE=u.prototype.readUIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};u.prototype.readUint8=u.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};u.prototype.readUint16LE=u.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};u.prototype.readUint16BE=u.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};u.prototype.readUint32LE=u.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};u.prototype.readUint32BE=u.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};u.prototype.readIntLE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};u.prototype.readIntBE=function(r,t,i){r=r>>>0,t=t>>>0,i||m(r,t,this.length);for(var n=t,o=1,a=this[r+--n];n>0&&(o*=256);)a+=this[r+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a};u.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};u.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var i=this[r]|this[r+1]<<8;return i&32768?i|4294901760:i};u.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var i=this[r+1]|this[r]<<8;return i&32768?i|4294901760:i};u.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};u.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};u.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),D.read(this,r,!0,23,4)};u.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),D.read(this,r,!1,23,4)};u.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),D.read(this,r,!0,52,8)};u.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),D.read(this,r,!1,52,8)};function w(e,r,t,i,n,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+i>e.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;w(this,r,t,i,o,0)}var a=1,h=0;for(this[t]=r&255;++h<i&&(a*=256);)this[t+h]=r/a&255;return t+i};u.prototype.writeUintBE=u.prototype.writeUIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,i=i>>>0,!n){var o=Math.pow(2,8*i)-1;w(this,r,t,i,o,0)}var a=i-1,h=1;for(this[t+a]=r&255;--a>=0&&(h*=256);)this[t+a]=r/h&255;return t+i};u.prototype.writeUint8=u.prototype.writeUInt8=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,1,255,0),this[t]=r&255,t+1};u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};u.prototype.writeIntLE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);w(this,r,t,i,o-1,-o)}var a=0,h=1,p=0;for(this[t]=r&255;++a<i&&(h*=256);)r<0&&p===0&&this[t+a-1]!==0&&(p=1),this[t+a]=(r/h>>0)-p&255;return t+i};u.prototype.writeIntBE=function(r,t,i,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*i-1);w(this,r,t,i,o-1,-o)}var a=i-1,h=1,p=0;for(this[t+a]=r&255;--a>=0&&(h*=256);)r<0&&p===0&&this[t+a+1]!==0&&(p=1),this[t+a]=(r/h>>0)-p&255;return t+i};u.prototype.writeInt8=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};u.prototype.writeInt16LE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};u.prototype.writeInt16BE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};u.prototype.writeInt32LE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};u.prototype.writeInt32BE=function(r,t,i){return r=+r,t=t>>>0,i||w(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(e,r,t,i,n,o){if(t+i>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gr(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,4,34028234663852886e22,-34028234663852886e22),D.write(e,r,t,i,23,4),t+4}u.prototype.writeFloatLE=function(r,t,i){return gr(this,r,t,!0,i)};u.prototype.writeFloatBE=function(r,t,i){return gr(this,r,t,!1,i)};function Er(e,r,t,i,n){return r=+r,t=t>>>0,n||wr(e,r,t,8,17976931348623157e292,-17976931348623157e292),D.write(e,r,t,i,52,8),t+8}u.prototype.writeDoubleLE=function(r,t,i){return Er(this,r,t,!0,i)};u.prototype.writeDoubleBE=function(r,t,i){return Er(this,r,t,!1,i)};u.prototype.copy=function(r,t,i,n){if(!u.isBuffer(r))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<i&&(n=i),n===i||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-i&&(n=r.length-t+i);var o=n-i;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,i,n):Uint8Array.prototype.set.call(r,this.subarray(i,n),t),o};u.prototype.fill=function(r,t,i,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,i=this.length):typeof i=="string"&&(n=i,i=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;t=t>>>0,i=i===void 0?this.length:i>>>0,r||(r=0);var a;if(typeof r=="number")for(a=t;a<i;++a)this[a]=r;else{var h=u.isBuffer(r)?r:u.from(r,n),p=h.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<i-t;++a)this[a+t]=h[a%p]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function st(e){if(e=e.split("=")[0],e=e.trim().replace(pt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function Z(e,r){r=r||1/0;for(var t,i=e.length,n=null,o=[],a=0;a<i;++a){if(t=e.charCodeAt(a),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===i){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ct(e){for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t)&255);return r}function ft(e,r){for(var t,i,n,o=[],a=0;a<e.length&&!((r-=2)<0);++a)t=e.charCodeAt(a),i=t>>8,n=t%256,o.push(n),o.push(i);return o}function Fr(e){return $.toByteArray(st(e))}function X(e,r,t,i){for(var n=0;n<i&&!(n+t>=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function _(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function tr(e){return e!==e}var lt=function(){for(var e="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var i=t*16,n=0;n<16;++n)r[i+n]=e[t]+e[n];return r}()});var Tr=Y((dt,vr)=>{x();var l=vr.exports={},d,B;function er(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?d=setTimeout:d=er}catch(e){d=er}try{typeof clearTimeout=="function"?B=clearTimeout:B=ir}catch(e){B=ir}})();function _r(e){if(d===setTimeout)return setTimeout(e,0);if((d===er||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(r){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function mt(e){if(B===clearTimeout)return clearTimeout(e);if((B===ir||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(e);try{return B(e)}catch(r){try{return B.call(null,e)}catch(t){return B.call(this,e)}}}var T=[],R=!1,P,G=-1;function yt(){!R||!P||(R=!1,P.length?T=P.concat(T):G=-1,T.length&&dr())}function dr(){if(!R){var e=_r(yt);R=!0;for(var r=T.length;r;){for(P=T,T=[];++G<r;)P&&P[G].run();G=-1,r=T.length}P=null,R=!1,mt(e)}}l.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];T.push(new Br(e,r)),T.length===1&&!R&&_r(dr)};function Br(e,r){this.fun=e,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function U(){}l.on=U;l.addListener=U;l.once=U;l.off=U;l.removeListener=U;l.removeAllListeners=U;l.emit=U;l.prependListener=U;l.prependOnceListener=U;l.listeners=function(e){return[]};l.binding=function(e){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(e){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var C,L,Bt,x=kr(()=>{C=q(Ar()),L=q(Tr()),Bt=function(e){function r(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return r();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var gt={};Dr(gt,{ScamPhishingAlert:()=>wt});module.exports=br(gt);x();x();var y=q(require("react")),Ur=require("@fortawesome/free-solid-svg-icons"),Ir=require("@fortawesome/react-fontawesome"),J=q(require("classnames"));x();var xt=`.dapp-core-component__scamPhishingStyles__scam-phishing-alert {
2
- text-align: center;
1
+ "use strict";var Pr=Object.create;var R=Object.defineProperty;var Cr=Object.getOwnPropertyDescriptor;var Lr=Object.getOwnPropertyNames;var Nr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var kr=(i,r)=>()=>(i&&(r=i(i=0)),r);var W=(i,r)=>()=>(r||i((r={exports:{}}).exports,r),r.exports),Dr=(i,r)=>{for(var t in r)R(i,t,{get:r[t],enumerable:!0})},nr=(i,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Lr(r))!Mr.call(i,n)&&n!==t&&R(i,n,{get:()=>r[n],enumerable:!(e=Cr(r,n))||e.enumerable});return i};var Y=(i,r,t)=>(t=i!=null?Pr(Nr(i)):{},nr(r||!i||!i.__esModule?R(t,"default",{value:i,enumerable:!0}):t,i)),br=i=>nr(R({},"__esModule",{value:!0}),i);var hr=W(q=>{"use strict";x();q.byteLength=Rr;q.toByteArray=Yr;q.fromByteArray=Xr;var A=[],_=[],zr=typeof Uint8Array!="undefined"?Uint8Array:Array,J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(S=0,or=J.length;S<or;++S)A[S]=J[S],_[J.charCodeAt(S)]=S;var S,or;_["-".charCodeAt(0)]=62;_["_".charCodeAt(0)]=63;function ar(i){var r=i.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=i.indexOf("=");t===-1&&(t=r);var e=t===r?0:4-t%4;return[t,e]}function Rr(i){var r=ar(i),t=r[0],e=r[1];return(t+e)*3/4-e}function Wr(i,r,t){return(r+t)*3/4-t}function Yr(i){var r,t=ar(i),e=t[0],n=t[1],o=new zr(Wr(i,e,n)),a=0,u=n>0?e-4:e,p;for(p=0;p<u;p+=4)r=_[i.charCodeAt(p)]<<18|_[i.charCodeAt(p+1)]<<12|_[i.charCodeAt(p+2)]<<6|_[i.charCodeAt(p+3)],o[a++]=r>>16&255,o[a++]=r>>8&255,o[a++]=r&255;return n===2&&(r=_[i.charCodeAt(p)]<<2|_[i.charCodeAt(p+1)]>>4,o[a++]=r&255),n===1&&(r=_[i.charCodeAt(p)]<<10|_[i.charCodeAt(p+1)]<<4|_[i.charCodeAt(p+2)]>>2,o[a++]=r>>8&255,o[a++]=r&255),o}function qr(i){return A[i>>18&63]+A[i>>12&63]+A[i>>6&63]+A[i&63]}function Hr(i,r,t){for(var e,n=[],o=r;o<t;o+=3)e=(i[o]<<16&16711680)+(i[o+1]<<8&65280)+(i[o+2]&255),n.push(qr(e));return n.join("")}function Xr(i){for(var r,t=i.length,e=t%3,n=[],o=16383,a=0,u=t-e;a<u;a+=o)n.push(Hr(i,a,a+o>u?u:a+o));return e===1?(r=i[t-1],n.push(A[r>>2]+A[r<<4&63]+"==")):e===2&&(r=(i[t-2]<<8)+i[t-1],n.push(A[r>>10]+A[r>>4&63]+A[r<<2&63]+"=")),n.join("")}});var ur=W(Q=>{x();Q.read=function(i,r,t,e,n){var o,a,u=n*8-e-1,p=(1<<u)-1,c=p>>1,f=-7,s=t?n-1:0,E=t?-1:1,g=i[r+s];for(s+=E,o=g&(1<<-f)-1,g>>=-f,f+=u;f>0;o=o*256+i[r+s],s+=E,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=e;f>0;a=a*256+i[r+s],s+=E,f-=8);if(o===0)o=1-c;else{if(o===p)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,e),o=o-c}return(g?-1:1)*a*Math.pow(2,o-e)};Q.write=function(i,r,t,e,n,o){var a,u,p,c=o*8-n-1,f=(1<<c)-1,s=f>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=e?0:o-1,M=e?1:-1,Sr=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=f):(a=Math.floor(Math.log(r)/Math.LN2),r*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+s>=1?r+=E/p:r+=E*Math.pow(2,1-s),r*p>=2&&(a++,p/=2),a+s>=f?(u=0,a=f):a+s>=1?(u=(r*p-1)*Math.pow(2,n),a=a+s):(u=r*Math.pow(2,s-1)*Math.pow(2,n),a=0));n>=8;i[t+g]=u&255,g+=M,u/=256,n-=8);for(a=a<<n|u,c+=n;c>0;i[t+g]=a&255,g+=M,a/=256,c-=8);i[t+g-M]|=Sr*128}});var dr=W(b=>{"use strict";x();var V=hr(),D=ur(),pr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=h;b.SlowBuffer=Kr;b.INSPECT_MAX_BYTES=50;var H=2147483647;b.kMaxLength=H;h.TYPED_ARRAY_SUPPORT=Gr();!h.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gr(){try{var i=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(i,r),i.foo()===42}catch(t){return!1}}Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(!!h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(!!h.isBuffer(this))return this.byteOffset}});function T(i){if(i>H)throw new RangeError('The value "'+i+'" is invalid for option "size"');var r=new Uint8Array(i);return Object.setPrototypeOf(r,h.prototype),r}function h(i,r,t){if(typeof i=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Z(i)}return fr(i,r,t)}h.poolSize=8192;function fr(i,r,t){if(typeof i=="string")return Qr(i,r);if(ArrayBuffer.isView(i))return Vr(i);if(i==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i);if(F(i,ArrayBuffer)||i&&F(i.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(F(i,SharedArrayBuffer)||i&&F(i.buffer,SharedArrayBuffer)))return K(i,r,t);if(typeof i=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var e=i.valueOf&&i.valueOf();if(e!=null&&e!==i)return h.from(e,r,t);var n=$r(i);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof i[Symbol.toPrimitive]=="function")return h.from(i[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof i)}h.from=function(i,r,t){return fr(i,r,t)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);function lr(i){if(typeof i!="number")throw new TypeError('"size" argument must be of type number');if(i<0)throw new RangeError('The value "'+i+'" is invalid for option "size"')}function Jr(i,r,t){return lr(i),i<=0?T(i):r!==void 0?typeof t=="string"?T(i).fill(r,t):T(i).fill(r):T(i)}h.alloc=function(i,r,t){return Jr(i,r,t)};function Z(i){return lr(i),T(i<0?0:j(i)|0)}h.allocUnsafe=function(i){return Z(i)};h.allocUnsafeSlow=function(i){return Z(i)};function Qr(i,r){if((typeof r!="string"||r==="")&&(r="utf8"),!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var t=mr(i,r)|0,e=T(t),n=e.write(i,r);return n!==t&&(e=e.slice(0,n)),e}function $(i){for(var r=i.length<0?0:j(i.length)|0,t=T(r),e=0;e<r;e+=1)t[e]=i[e]&255;return t}function Vr(i){if(F(i,Uint8Array)){var r=new Uint8Array(i);return K(r.buffer,r.byteOffset,r.byteLength)}return $(i)}function K(i,r,t){if(r<0||i.byteLength<r)throw new RangeError('"offset" is outside of buffer bounds');if(i.byteLength<r+(t||0))throw new RangeError('"length" is outside of buffer bounds');var e;return r===void 0&&t===void 0?e=new Uint8Array(i):t===void 0?e=new Uint8Array(i,r):e=new Uint8Array(i,r,t),Object.setPrototypeOf(e,h.prototype),e}function $r(i){if(h.isBuffer(i)){var r=j(i.length)|0,t=T(r);return t.length===0||i.copy(t,0,0,r),t}if(i.length!==void 0)return typeof i.length!="number"||rr(i.length)?T(0):$(i);if(i.type==="Buffer"&&Array.isArray(i.data))return $(i.data)}function j(i){if(i>=H)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+H.toString(16)+" bytes");return i|0}function Kr(i){return+i!=i&&(i=0),h.alloc(+i)}h.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==h.prototype};h.compare=function(r,t){if(F(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),F(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(r)||!h.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;for(var e=r.length,n=t.length,o=0,a=Math.min(e,n);o<a;++o)if(r[o]!==t[o]){e=r[o],n=t[o];break}return e<n?-1:n<e?1:0};h.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};h.concat=function(r,t){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return h.alloc(0);var e;if(t===void 0)for(t=0,e=0;e<r.length;++e)t+=r[e].length;var n=h.allocUnsafe(t),o=0;for(e=0;e<r.length;++e){var a=r[e];if(F(a,Uint8Array))o+a.length>n.length?h.from(a).copy(n,o):Uint8Array.prototype.set.call(n,a,o);else if(h.isBuffer(a))a.copy(n,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=a.length}return n};function mr(i,r){if(h.isBuffer(i))return i.length;if(ArrayBuffer.isView(i)||F(i,ArrayBuffer))return i.byteLength;if(typeof i!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof i);var t=i.length,e=arguments.length>2&&arguments[2]===!0;if(!e&&t===0)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return O(i).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Er(i).length;default:if(n)return e?-1:O(i).length;r=(""+r).toLowerCase(),n=!0}}h.byteLength=mr;function Or(i,r,t){var e=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(i||(i="utf8");;)switch(i){case"hex":return ht(this,r,t);case"utf8":case"utf-8":return xr(this,r,t);case"ascii":return ot(this,r,t);case"latin1":case"binary":return at(this,r,t);case"base64":return et(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ut(this,r,t);default:if(e)throw new TypeError("Unknown encoding: "+i);i=(i+"").toLowerCase(),e=!0}}h.prototype._isBuffer=!0;function L(i,r,t){var e=i[r];i[r]=i[t],i[t]=e}h.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)L(this,t,t+1);return this};h.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)L(this,t,t+3),L(this,t+1,t+2);return this};h.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)L(this,t,t+7),L(this,t+1,t+6),L(this,t+2,t+5),L(this,t+3,t+4);return this};h.prototype.toString=function(){var r=this.length;return r===0?"":arguments.length===0?xr(this,0,r):Or.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(r){if(!h.isBuffer(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:h.compare(this,r)===0};h.prototype.inspect=function(){var r="",t=b.INSPECT_MAX_BYTES;return r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(r+=" ... "),"<Buffer "+r+">"};pr&&(h.prototype[pr]=h.prototype.inspect);h.prototype.compare=function(r,t,e,n,o){if(F(r,Uint8Array)&&(r=h.from(r,r.offset,r.byteLength)),!h.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),e===void 0&&(e=r?r.length:0),n===void 0&&(n=0),o===void 0&&(o=this.length),t<0||e>r.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=e)return 0;if(n>=o)return-1;if(t>=e)return 1;if(t>>>=0,e>>>=0,n>>>=0,o>>>=0,this===r)return 0;for(var a=o-n,u=e-t,p=Math.min(a,u),c=this.slice(n,o),f=r.slice(t,e),s=0;s<p;++s)if(c[s]!==f[s]){a=c[s],u=f[s];break}return a<u?-1:u<a?1:0};function yr(i,r,t,e,n){if(i.length===0)return-1;if(typeof t=="string"?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,rr(t)&&(t=n?0:i.length-1),t<0&&(t=i.length+t),t>=i.length){if(n)return-1;t=i.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=h.from(r,e)),h.isBuffer(r))return r.length===0?-1:sr(i,r,t,e,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(i,r,t):Uint8Array.prototype.lastIndexOf.call(i,r,t):sr(i,[r],t,e,n);throw new TypeError("val must be string, number or Buffer")}function sr(i,r,t,e,n){var o=1,a=i.length,u=r.length;if(e!==void 0&&(e=String(e).toLowerCase(),e==="ucs2"||e==="ucs-2"||e==="utf16le"||e==="utf-16le")){if(i.length<2||r.length<2)return-1;o=2,a/=2,u/=2,t/=2}function p(g,M){return o===1?g[M]:g.readUInt16BE(M*o)}var c;if(n){var f=-1;for(c=t;c<a;c++)if(p(i,c)===p(r,f===-1?0:c-f)){if(f===-1&&(f=c),c-f+1===u)return f*o}else f!==-1&&(c-=c-f),f=-1}else for(t+u>a&&(t=a-u),c=t;c>=0;c--){for(var s=!0,E=0;E<u;E++)if(p(i,c+E)!==p(r,E)){s=!1;break}if(s)return c}return-1}h.prototype.includes=function(r,t,e){return this.indexOf(r,t,e)!==-1};h.prototype.indexOf=function(r,t,e){return yr(this,r,t,e,!0)};h.prototype.lastIndexOf=function(r,t,e){return yr(this,r,t,e,!1)};function Zr(i,r,t,e){t=Number(t)||0;var n=i.length-t;e?(e=Number(e),e>n&&(e=n)):e=n;var o=r.length;e>o/2&&(e=o/2);for(var a=0;a<e;++a){var u=parseInt(r.substr(a*2,2),16);if(rr(u))return a;i[t+a]=u}return a}function jr(i,r,t,e){return X(O(r,i.length-t),i,t,e)}function rt(i,r,t,e){return X(ct(r),i,t,e)}function tt(i,r,t,e){return X(Er(r),i,t,e)}function it(i,r,t,e){return X(ft(r,i.length-t),i,t,e)}h.prototype.write=function(r,t,e,n){if(t===void 0)n="utf8",e=this.length,t=0;else if(e===void 0&&typeof t=="string")n=t,e=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(e)?(e=e>>>0,n===void 0&&(n="utf8")):(n=e,e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((e===void 0||e>o)&&(e=o),r.length>0&&(e<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return Zr(this,r,t,e);case"utf8":case"utf-8":return jr(this,r,t,e);case"ascii":case"latin1":case"binary":return rt(this,r,t,e);case"base64":return tt(this,r,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,r,t,e);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function et(i,r,t){return r===0&&t===i.length?V.fromByteArray(i):V.fromByteArray(i.slice(r,t))}function xr(i,r,t){t=Math.min(i.length,t);for(var e=[],n=r;n<t;){var o=i[n],a=null,u=o>239?4:o>223?3:o>191?2:1;if(n+u<=t){var p,c,f,s;switch(u){case 1:o<128&&(a=o);break;case 2:p=i[n+1],(p&192)===128&&(s=(o&31)<<6|p&63,s>127&&(a=s));break;case 3:p=i[n+1],c=i[n+2],(p&192)===128&&(c&192)===128&&(s=(o&15)<<12|(p&63)<<6|c&63,s>2047&&(s<55296||s>57343)&&(a=s));break;case 4:p=i[n+1],c=i[n+2],f=i[n+3],(p&192)===128&&(c&192)===128&&(f&192)===128&&(s=(o&15)<<18|(p&63)<<12|(c&63)<<6|f&63,s>65535&&s<1114112&&(a=s))}}a===null?(a=65533,u=1):a>65535&&(a-=65536,e.push(a>>>10&1023|55296),a=56320|a&1023),e.push(a),n+=u}return nt(e)}var cr=4096;function nt(i){var r=i.length;if(r<=cr)return String.fromCharCode.apply(String,i);for(var t="",e=0;e<r;)t+=String.fromCharCode.apply(String,i.slice(e,e+=cr));return t}function ot(i,r,t){var e="";t=Math.min(i.length,t);for(var n=r;n<t;++n)e+=String.fromCharCode(i[n]&127);return e}function at(i,r,t){var e="";t=Math.min(i.length,t);for(var n=r;n<t;++n)e+=String.fromCharCode(i[n]);return e}function ht(i,r,t){var e=i.length;(!r||r<0)&&(r=0),(!t||t<0||t>e)&&(t=e);for(var n="",o=r;o<t;++o)n+=lt[i[o]];return n}function ut(i,r,t){for(var e=i.slice(r,t),n="",o=0;o<e.length-1;o+=2)n+=String.fromCharCode(e[o]+e[o+1]*256);return n}h.prototype.slice=function(r,t){var e=this.length;r=~~r,t=t===void 0?e:~~t,r<0?(r+=e,r<0&&(r=0)):r>e&&(r=e),t<0?(t+=e,t<0&&(t=0)):t>e&&(t=e),t<r&&(t=r);var n=this.subarray(r,t);return Object.setPrototypeOf(n,h.prototype),n};function m(i,r,t){if(i%1!==0||i<0)throw new RangeError("offset is not uint");if(i+r>t)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return n};h.prototype.readUintBE=h.prototype.readUIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=this[r+--t],o=1;t>0&&(o*=256);)n+=this[r+--t]*o;return n};h.prototype.readUint8=h.prototype.readUInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]|this[r+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||m(r,2,this.length),this[r]<<8|this[r+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readIntLE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=this[r],o=1,a=0;++a<t&&(o*=256);)n+=this[r+a]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n};h.prototype.readIntBE=function(r,t,e){r=r>>>0,t=t>>>0,e||m(r,t,this.length);for(var n=t,o=1,a=this[r+--n];n>0&&(o*=256);)a+=this[r+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a};h.prototype.readInt8=function(r,t){return r=r>>>0,t||m(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};h.prototype.readInt16LE=function(r,t){r=r>>>0,t||m(r,2,this.length);var e=this[r]|this[r+1]<<8;return e&32768?e|4294901760:e};h.prototype.readInt16BE=function(r,t){r=r>>>0,t||m(r,2,this.length);var e=this[r+1]|this[r]<<8;return e&32768?e|4294901760:e};h.prototype.readInt32LE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function(r,t){return r=r>>>0,t||m(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readFloatLE=function(r,t){return r=r>>>0,t||m(r,4,this.length),D.read(this,r,!0,23,4)};h.prototype.readFloatBE=function(r,t){return r=r>>>0,t||m(r,4,this.length),D.read(this,r,!1,23,4)};h.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||m(r,8,this.length),D.read(this,r,!0,52,8)};h.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||m(r,8,this.length),D.read(this,r,!1,52,8)};function w(i,r,t,e,n,o){if(!h.isBuffer(i))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||r<o)throw new RangeError('"value" argument is out of bounds');if(t+e>i.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(r,t,e,n){if(r=+r,t=t>>>0,e=e>>>0,!n){var o=Math.pow(2,8*e)-1;w(this,r,t,e,o,0)}var a=1,u=0;for(this[t]=r&255;++u<e&&(a*=256);)this[t+u]=r/a&255;return t+e};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(r,t,e,n){if(r=+r,t=t>>>0,e=e>>>0,!n){var o=Math.pow(2,8*e)-1;w(this,r,t,e,o,0)}var a=e-1,u=1;for(this[t+a]=r&255;--a>=0&&(u*=256);)this[t+a]=r/u&255;return t+e};h.prototype.writeUint8=h.prototype.writeUInt8=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,1,255,0),this[t]=r&255,t+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};h.prototype.writeIntLE=function(r,t,e,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*e-1);w(this,r,t,e,o-1,-o)}var a=0,u=1,p=0;for(this[t]=r&255;++a<e&&(u*=256);)r<0&&p===0&&this[t+a-1]!==0&&(p=1),this[t+a]=(r/u>>0)-p&255;return t+e};h.prototype.writeIntBE=function(r,t,e,n){if(r=+r,t=t>>>0,!n){var o=Math.pow(2,8*e-1);w(this,r,t,e,o-1,-o)}var a=e-1,u=1,p=0;for(this[t+a]=r&255;--a>=0&&(u*=256);)r<0&&p===0&&this[t+a+1]!==0&&(p=1),this[t+a]=(r/u>>0)-p&255;return t+e};h.prototype.writeInt8=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};h.prototype.writeInt16LE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};h.prototype.writeInt16BE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};h.prototype.writeInt32LE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};h.prototype.writeInt32BE=function(r,t,e){return r=+r,t=t>>>0,e||w(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function wr(i,r,t,e,n,o){if(t+e>i.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function gr(i,r,t,e,n){return r=+r,t=t>>>0,n||wr(i,r,t,4,34028234663852886e22,-34028234663852886e22),D.write(i,r,t,e,23,4),t+4}h.prototype.writeFloatLE=function(r,t,e){return gr(this,r,t,!0,e)};h.prototype.writeFloatBE=function(r,t,e){return gr(this,r,t,!1,e)};function _r(i,r,t,e,n){return r=+r,t=t>>>0,n||wr(i,r,t,8,17976931348623157e292,-17976931348623157e292),D.write(i,r,t,e,52,8),t+8}h.prototype.writeDoubleLE=function(r,t,e){return _r(this,r,t,!0,e)};h.prototype.writeDoubleBE=function(r,t,e){return _r(this,r,t,!1,e)};h.prototype.copy=function(r,t,e,n){if(!h.isBuffer(r))throw new TypeError("argument should be a Buffer");if(e||(e=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n<e&&(n=e),n===e||r.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t<n-e&&(n=r.length-t+e);var o=n-e;return this===r&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,e,n):Uint8Array.prototype.set.call(r,this.subarray(e,n),t),o};h.prototype.fill=function(r,t,e,n){if(typeof r=="string"){if(typeof t=="string"?(n=t,t=0,e=this.length):typeof e=="string"&&(n=e,e=this.length),n!==void 0&&typeof n!="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(r.length===1){var o=r.charCodeAt(0);(n==="utf8"&&o<128||n==="latin1")&&(r=o)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(t<0||this.length<t||this.length<e)throw new RangeError("Out of range index");if(e<=t)return this;t=t>>>0,e=e===void 0?this.length:e>>>0,r||(r=0);var a;if(typeof r=="number")for(a=t;a<e;++a)this[a]=r;else{var u=h.isBuffer(r)?r:h.from(r,n),p=u.length;if(p===0)throw new TypeError('The value "'+r+'" is invalid for argument "value"');for(a=0;a<e-t;++a)this[a+t]=u[a%p]}return this};var pt=/[^+/0-9A-Za-z-_]/g;function st(i){if(i=i.split("=")[0],i=i.trim().replace(pt,""),i.length<2)return"";for(;i.length%4!==0;)i=i+"=";return i}function O(i,r){r=r||1/0;for(var t,e=i.length,n=null,o=[],a=0;a<e;++a){if(t=i.charCodeAt(a),t>55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&o.push(239,191,189);continue}else if(a+1===e){(r-=3)>-1&&o.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&o.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return o}function ct(i){for(var r=[],t=0;t<i.length;++t)r.push(i.charCodeAt(t)&255);return r}function ft(i,r){for(var t,e,n,o=[],a=0;a<i.length&&!((r-=2)<0);++a)t=i.charCodeAt(a),e=t>>8,n=t%256,o.push(n),o.push(e);return o}function Er(i){return V.toByteArray(st(i))}function X(i,r,t,e){for(var n=0;n<e&&!(n+t>=r.length||n>=i.length);++n)r[n+t]=i[n];return n}function F(i,r){return i instanceof r||i!=null&&i.constructor!=null&&i.constructor.name!=null&&i.constructor.name===r.name}function rr(i){return i!==i}var lt=function(){for(var i="0123456789abcdef",r=new Array(256),t=0;t<16;++t)for(var e=t*16,n=0;n<16;++n)r[e+n]=i[t]+i[n];return r}()});var Tr=W((Ft,vr)=>{x();var l=vr.exports={},B,v;function tr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?B=setTimeout:B=tr}catch(i){B=tr}try{typeof clearTimeout=="function"?v=clearTimeout:v=ir}catch(i){v=ir}})();function Ar(i){if(B===setTimeout)return setTimeout(i,0);if((B===tr||!B)&&setTimeout)return B=setTimeout,setTimeout(i,0);try{return B(i,0)}catch(r){try{return B.call(null,i,0)}catch(t){return B.call(this,i,0)}}}function mt(i){if(v===clearTimeout)return clearTimeout(i);if((v===ir||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(i);try{return v(i)}catch(r){try{return v.call(null,i)}catch(t){return v.call(this,i)}}}var U=[],z=!1,N,G=-1;function yt(){!z||!N||(z=!1,N.length?U=N.concat(U):G=-1,U.length&&Fr())}function Fr(){if(!z){var i=Ar(yt);z=!0;for(var r=U.length;r;){for(N=U,U=[];++G<r;)N&&N[G].run();G=-1,r=U.length}N=null,z=!1,mt(i)}}l.nextTick=function(i){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];U.push(new Br(i,r)),U.length===1&&!z&&Ar(Fr)};function Br(i,r){this.fun=i,this.array=r}Br.prototype.run=function(){this.fun.apply(null,this.array)};l.title="browser";l.browser=!0;l.env={};l.argv=[];l.version="";l.versions={};function I(){}l.on=I;l.addListener=I;l.once=I;l.off=I;l.removeListener=I;l.removeAllListeners=I;l.emit=I;l.prependListener=I;l.prependOnceListener=I;l.listeners=function(i){return[]};l.binding=function(i){throw new Error("process.binding is not supported")};l.cwd=function(){return"/"};l.chdir=function(i){throw new Error("process.chdir is not supported")};l.umask=function(){return 0}});var P,C,Bt,x=kr(()=>{P=Y(dr()),C=Y(Tr()),Bt=function(i){function r(){var e=this||self;return delete i.prototype.__magic__,e}if(typeof globalThis=="object")return globalThis;if(this)return r();i.defineProperty(i.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object)});var gt={};Dr(gt,{ScamPhishingAlert:()=>wt});module.exports=br(gt);x();x();var y=Y(require("react")),Ur=require("@fortawesome/free-solid-svg-icons"),Ir=require("@fortawesome/react-fontawesome"),er=Y(require("classnames"));x();var xt=`.dapp-core-component__scamPhishingStyles__scam-phishing-alert {
3
2
  margin: 40px auto 0;
4
3
  font-size: 12px;
5
4
  display: flex;
@@ -29,7 +28,20 @@
29
28
  .dapp-core-component__scamPhishingStyles__scam-phishing-alert .dapp-core-component__scamPhishingStyles__scam-phishing-alert-text .dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix {
30
29
  margin-left: 4px;
31
30
  }
32
- }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(xt));var I={"scam-phishing-alert":"dapp-core-component__scamPhishingStyles__scam-phishing-alert",scamPhishingAlert:"dapp-core-component__scamPhishingStyles__scam-phishing-alert","scam-phishing-alert-icon":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon",scamPhishingAlertIcon:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon","scam-phishing-alert-text":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text",scamPhishingAlertText:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text","scam-phishing-alert-prefix":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix",scamPhishingAlertPrefix:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix"};var wt=e=>{let{className:r,url:t,icon:i,authorizationInfo:n}=e,o=t.replace("https://","").replace(/\/$/,""),a=n!=null&&n.url?n.url.replace("https://","").replace(/\/$/,""):"";return y.default.createElement(y.default.Fragment,null,y.default.createElement("p",{className:(0,J.default)(I.scamPhishingAlert,r)},i||y.default.createElement(Ir.FontAwesomeIcon,{className:I.scamPhishingAlertIcon,icon:Ur.faLock}),y.default.createElement("span",{className:I.scamPhishingAlertText},y.default.createElement("span",null,"Scam/Phishing verification:")," ",y.default.createElement("span",{className:I.scamPhishingAlertPrefix},y.default.createElement("strong",null,"https://"),o))),(n==null?void 0:n.url)&&y.default.createElement("p",{className:(0,J.default)(I.scamPhishingAlert,"mt-2 column",r)},y.default.createElement("span",{className:I.scamPhishingAlertText},"Please confirm that you are indeed connecting to"),y.default.createElement("span",{className:(0,J.default)(I.scamPhishingAlertText,"d-flex flex-row")},y.default.createElement("strong",null,"https://"),y.default.createElement("span",{className:"text-nowrap"},a," for"),y.default.createElement("strong",{className:"ms-1"},n.duration)),y.default.createElement("span",{className:I.scamPhishingAlertText},"and that you trust this site. You might be sharing sensitive data."),y.default.createElement("a",{href:"https://multiversx.com/faq"},"Learn more")))};0&&(module.exports={ScamPhishingAlert});
31
+ }
32
+
33
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization {
34
+ display: flex;
35
+ flex-direction: column;
36
+ margin-top: 0;
37
+ }
38
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization .dapp-core-component__scamPhishingStyles__scam-phishing-alert-text {
39
+ text-align: center;
40
+ flex-direction: row;
41
+ }
42
+ .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization .dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration {
43
+ margin-left: 4px;
44
+ }`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(xt));var d={"scam-phishing-alert":"dapp-core-component__scamPhishingStyles__scam-phishing-alert",scamPhishingAlert:"dapp-core-component__scamPhishingStyles__scam-phishing-alert","scam-phishing-alert-icon":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon",scamPhishingAlertIcon:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-icon","scam-phishing-alert-text":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text",scamPhishingAlertText:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-text","scam-phishing-alert-prefix":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix",scamPhishingAlertPrefix:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-prefix","scam-phishing-alert-authorization":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization",scamPhishingAlertAuthorization:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization","scam-phishing-alert-authorization-duration":"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration",scamPhishingAlertAuthorizationDuration:"dapp-core-component__scamPhishingStyles__scam-phishing-alert-authorization-duration"};var wt=i=>{let{className:r,url:t,icon:e,authorizationInfo:n}=i,o=t.replace("https://","").replace(/\/$/,""),a=n!=null&&n.url?n.url.replace("https://","").replace(/\/$/,""):"";return y.default.createElement(y.default.Fragment,null,y.default.createElement("p",{className:(0,er.default)(d.scamPhishingAlert,r)},e||y.default.createElement(Ir.FontAwesomeIcon,{className:d.scamPhishingAlertIcon,icon:Ur.faLock}),y.default.createElement("span",{className:d.scamPhishingAlertText},y.default.createElement("span",null,"Scam/Phishing verification:")," ",y.default.createElement("span",{className:d.scamPhishingAlertPrefix},y.default.createElement("strong",null,"https://"),o))),n&&n.url&&y.default.createElement("p",{className:(0,er.default)(d.scamPhishingAlert,d.scamPhishingAlertAuthorization,n.className)},y.default.createElement("span",{className:d.scamPhishingAlertText},"Please confirm that you are indeed connecting to"),y.default.createElement("span",{className:d.scamPhishingAlertText},y.default.createElement("strong",null,"https://"),y.default.createElement("span",null,a," for"),y.default.createElement("strong",{className:d.scamPhishingAlertAuthorizationDuration},n.duration)),y.default.createElement("span",{className:d.scamPhishingAlertText},"and that you trust this site. You might be sharing sensitive data."),y.default.createElement("a",{href:"https://multiversx.com/faq"},"Learn more")))};0&&(module.exports={ScamPhishingAlert});
33
45
  /*!
34
46
  * The buffer module from node.js, for the browser.
35
47
  *