@multiversx/sdk-dapp 2.10.10 → 2.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/UI/DappModal/hooks/index.js +1 -1
- package/UI/DappModal/hooks/useDappModal.js +1 -1
- package/UI/DappModal/index.js +1 -1
- package/UI/ModalContainer/ModalContainer.js +1 -1
- package/UI/ModalContainer/index.js +1 -1
- package/UI/NotificationModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignTransactionsModals.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +1 -1
- package/UI/SignTransactionsModals/SignWithDeviceModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtensionModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithLedgerModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithOperaModal/index.js +1 -1
- package/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +1 -1
- package/UI/SignTransactionsModals/components/ConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +1 -1
- package/UI/SignTransactionsModals/components/TransactionStatusToast.js +1 -1
- package/UI/SignTransactionsModals/components/index.js +1 -1
- package/UI/SignTransactionsModals/index.js +1 -1
- package/UI/TransactionInfo/TransactionInfo.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +1 -1
- package/UI/TransactionInfo/components/NonceMessage/index.js +1 -1
- package/UI/TransactionInfo/components/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +1 -1
- package/UI/TransactionInfo/components/transactionInfoFields/index.js +1 -1
- package/UI/TransactionInfo/index.js +1 -1
- package/UI/TransactionsTable/TransactionsTable.js +1 -1
- package/UI/TransactionsTable/index.js +1 -1
- package/UI/TransactionsToastList/TransactionsToastList.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/CustomToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/components/index.js +1 -1
- package/UI/TransactionsToastList/components/CustomToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToast/index.js +1 -1
- package/UI/TransactionsToastList/components/TransactionToastGuard.js +1 -1
- package/UI/TransactionsToastList/components/index.js +1 -1
- package/UI/TransactionsToastList/index.js +1 -1
- package/UI/index.js +1 -1
- package/UI/ledger/LedgerLoginButton/index.js +1 -1
- package/UI/ledger/LedgerLoginContainer/AddressTable.js +1 -1
- package/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +1 -1
- package/UI/ledger/LedgerLoginContainer/index.js +1 -1
- package/UI/ledger/index.js +1 -1
- package/UI/operaWallet/OperaWalletLoginButton/index.js +1 -1
- package/UI/pages/UnlockPage/index.js +1 -1
- package/UI/pages/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginButton/index.js +1 -1
- package/UI/walletConnect/WalletConnectLoginContainer/index.js +1 -1
- package/UI/walletConnect/index.js +1 -1
- package/UI/webWallet/WebWalletLoginButton/index.js +1 -1
- package/__chunks__/{chunk-HAEPPCYL.js → chunk-45ARMIIV.js} +2 -2
- package/__chunks__/{chunk-MOP2PGBR.js → chunk-4AY436A3.js} +2 -2
- package/__chunks__/chunk-64WNNRH3.js +2 -0
- package/__chunks__/{chunk-FMROZJCR.js → chunk-AAQSGHFG.js} +2 -2
- package/__chunks__/{chunk-WOVYNC3H.js → chunk-AGGHZD2X.js} +2 -2
- package/__chunks__/{chunk-MDKCK2U5.js → chunk-BUAPQSLE.js} +2 -2
- package/__chunks__/{chunk-SX6GHX6H.js → chunk-D6K2SNBC.js} +2 -2
- package/__chunks__/{chunk-6CAJ2NNC.js → chunk-HO5YNQLL.js} +2 -2
- package/__chunks__/{chunk-VZX4SOAF.js → chunk-HOF5K2JI.js} +2 -2
- package/__chunks__/chunk-I5KWE6U5.js +2 -0
- package/__chunks__/{chunk-6U5ZKZIN.js → chunk-IHUJVHF6.js} +2 -2
- package/__chunks__/{chunk-MLIXWSWL.js → chunk-IVVW25DH.js} +2 -2
- package/__chunks__/{chunk-DN3FBQHS.js → chunk-M2A6EX5R.js} +2 -2
- package/__chunks__/{chunk-E4EQIILV.js → chunk-MGZU5WBA.js} +2 -2
- package/__chunks__/{chunk-WWUS4U72.js → chunk-OM6IXIGK.js} +2 -2
- package/__chunks__/{chunk-WNKZRRCU.js → chunk-RT6D3JZM.js} +2 -2
- package/__chunks__/chunk-WISK7MIJ.js +2 -0
- package/__chunks__/chunk-XXEMCYU3.js +2 -0
- package/__chunks__/{chunk-XZCNMRIW.js → chunk-YSWO56CP.js} +2 -2
- package/__chunks__/{chunk-A3ANJRRQ.js → chunk-YUXJXHBM.js} +2 -2
- package/__chunks__/chunk-ZRLJX7WH.js +2 -0
- package/__commonjs/UI/DappModal/hooks/index.js +5 -5
- package/__commonjs/UI/DappModal/hooks/useDappModal.js +5 -5
- package/__commonjs/UI/DappModal/index.js +9 -9
- package/__commonjs/UI/ModalContainer/ModalContainer.js +7 -7
- package/__commonjs/UI/ModalContainer/index.js +7 -7
- package/__commonjs/UI/NotificationModal/index.js +8 -8
- package/__commonjs/UI/SignTransactionsModals/SignTransactionsModals.js +26 -26
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/SignStep.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithDeviceModal/index.js +11 -11
- package/__commonjs/UI/SignTransactionsModals/SignWithExtensionModal/index.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithExtraModal/index.js +1 -1
- package/__commonjs/UI/SignTransactionsModals/SignWithLedgerModal/index.js +11 -11
- package/__commonjs/UI/SignTransactionsModals/SignWithOperaModal/index.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/SignWithWalletConnectModal/index.js +9 -9
- package/__commonjs/UI/SignTransactionsModals/components/ConfirmationScreen.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/components/DeviceConfirmationScreen.js +19 -19
- package/__commonjs/UI/SignTransactionsModals/components/TransactionStatusToast.js +14 -14
- package/__commonjs/UI/SignTransactionsModals/components/index.js +18 -18
- package/__commonjs/UI/SignTransactionsModals/index.js +26 -26
- package/__commonjs/UI/TransactionInfo/TransactionInfo.js +40 -40
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/NonceMessage.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/NonceMessage/index.js +6 -6
- package/__commonjs/UI/TransactionInfo/components/index.js +41 -41
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/TransactionInfoNonce.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/TransactionInfoNonce/index.js +7 -7
- package/__commonjs/UI/TransactionInfo/components/transactionInfoFields/index.js +37 -37
- package/__commonjs/UI/TransactionInfo/index.js +41 -41
- package/__commonjs/UI/TransactionsTable/TransactionsTable.js +18 -18
- package/__commonjs/UI/TransactionsTable/index.js +18 -18
- package/__commonjs/UI/TransactionsToastList/TransactionsToastList.js +18 -18
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/CustomToast.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/IconToast.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/IconToastFooter.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/TransactionToastFooter.js +11 -11
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/components/index.js +11 -11
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/components/IconToastFooter/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/IconToast/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/components/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/CustomToast/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/TransactionToast.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.js +6 -6
- package/__commonjs/UI/TransactionsToastList/components/TransactionToast/index.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/TransactionToastGuard.js +13 -13
- package/__commonjs/UI/TransactionsToastList/components/index.js +18 -18
- package/__commonjs/UI/TransactionsToastList/index.js +18 -18
- package/__commonjs/UI/index.js +71 -71
- package/__commonjs/UI/ledger/LedgerLoginButton/index.js +24 -24
- package/__commonjs/UI/ledger/LedgerLoginContainer/AddressTable.js +8 -8
- package/__commonjs/UI/ledger/LedgerLoginContainer/ConfirmAddress.js +6 -6
- package/__commonjs/UI/ledger/LedgerLoginContainer/index.js +22 -22
- package/__commonjs/UI/ledger/index.js +24 -24
- package/__commonjs/UI/operaWallet/OperaWalletLoginButton/index.js +7 -7
- package/__commonjs/UI/pages/UnlockPage/index.js +26 -26
- package/__commonjs/UI/pages/index.js +26 -26
- package/__commonjs/UI/walletConnect/WalletConnectLoginButton/index.js +13 -13
- package/__commonjs/UI/walletConnect/WalletConnectLoginContainer/index.js +10 -10
- package/__commonjs/UI/walletConnect/index.js +13 -13
- package/__commonjs/UI/webWallet/WebWalletLoginButton/index.js +7 -7
- package/__commonjs/__mocks__/index.js +5 -5
- package/__commonjs/__mocks__/utils/index.js +11 -11
- package/__commonjs/__mocks__/utils/renderWithProvider.js +11 -11
- package/__commonjs/components/LogoutListener/LogoutListener.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/index.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogout.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +5 -5
- package/__commonjs/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +5 -5
- package/__commonjs/components/LogoutListener/index.js +5 -5
- package/__commonjs/components/ProviderInitializer.js +11 -11
- package/__commonjs/components/TransactionStatusToast/FailedTransactionStatusToast.js +14 -14
- package/__commonjs/components/TransactionsTracker/TransactionTracker.js +5 -5
- package/__commonjs/components/TransactionsTracker/index.js +5 -5
- package/__commonjs/components/TransactionsTracker/useTransactionsTracker.js +5 -5
- package/__commonjs/hooks/index.js +7 -7
- package/__commonjs/hooks/login/index.js +5 -5
- package/__commonjs/hooks/login/useLedgerLogin.js +5 -5
- package/__commonjs/hooks/login/useWebWalletLogin.js +5 -5
- package/__commonjs/hooks/signMessage/index.js +1 -1
- package/__commonjs/hooks/signMessage/useSignMessage.js +1 -1
- package/__commonjs/hooks/transactions/index.js +11 -11
- package/__commonjs/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactions.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/__commonjs/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/__commonjs/utils/index.js +3 -3
- package/__commonjs/utils/parseNavigationParams.js +1 -1
- package/__commonjs/wrappers/DappProvider/CustomComponents.js +5 -5
- package/__commonjs/wrappers/DappProvider/index.js +11 -11
- package/__commonjs/wrappers/index.js +5 -5
- package/__mocks__/index.js +1 -1
- package/__mocks__/utils/index.js +1 -1
- package/__mocks__/utils/renderWithProvider.js +1 -1
- package/components/LogoutListener/LogoutListener.js +1 -1
- package/components/LogoutListener/helpers/index.js +1 -1
- package/components/LogoutListener/helpers/useLogoutFromMultipleTabs.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogout.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/index.js +1 -1
- package/components/LogoutListener/helpers/useNativeAuthLogoutWarning/useNativeAuthLogoutWarning.js +1 -1
- package/components/LogoutListener/index.js +1 -1
- package/components/ProviderInitializer.js +1 -1
- package/components/TransactionStatusToast/FailedTransactionStatusToast.js +1 -1
- package/components/TransactionsTracker/TransactionTracker.js +1 -1
- package/components/TransactionsTracker/index.js +1 -1
- package/components/TransactionsTracker/useTransactionsTracker.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/login/index.js +1 -1
- package/hooks/login/useLedgerLogin.js +1 -1
- package/hooks/login/useWebWalletLogin.js +1 -1
- package/hooks/signMessage/index.js +1 -1
- package/hooks/signMessage/useSignMessage.js +1 -1
- package/hooks/transactions/index.js +1 -1
- package/hooks/transactions/useParseSignedTransactions.js +1 -1
- package/hooks/transactions/useSignTransactions.js +1 -1
- package/hooks/transactions/useSignTransactionsCommonData.js +1 -1
- package/hooks/transactions/useSignTransactionsWithDevice.js +1 -1
- package/hooks/transactions/useSignTransactionsWithLedger.js +1 -1
- package/package.json +1 -1
- package/utils/index.js +1 -1
- package/utils/parseNavigationParams.d.ts +12 -1
- package/utils/parseNavigationParams.js +1 -1
- package/utils/tests/parseNavigationParams.test.d.ts +2 -0
- package/wrappers/DappProvider/CustomComponents.js +1 -1
- package/wrappers/DappProvider/index.js +1 -1
- package/wrappers/index.js +1 -1
- package/__chunks__/chunk-BJELQMZG.js +0 -2
- package/__chunks__/chunk-D35V4POU.js +0 -2
- package/__chunks__/chunk-R2TK2Z7D.js +0 -2
- package/__chunks__/chunk-UKZ3QJNI.js +0 -2
- package/__chunks__/chunk-YC54AOOW.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";var Rv=Object.create;var kr=Object.defineProperty,Dv=Object.defineProperties,Nv=Object.getOwnPropertyDescriptor,Ov=Object.getOwnPropertyDescriptors,Mv=Object.getOwnPropertyNames,Bo=Object.getOwnPropertySymbols,Fv=Object.getPrototypeOf,Qs=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable;var Wl=(n,o,i)=>o in n?kr(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))Qs.call(o,i)&&Wl(n,i,o[i]);if(Bo)for(var i of Bo(o))Gl.call(o,i)&&Wl(n,i,o[i]);return n},Q=(n,o)=>Dv(n,Ov(o));var Cr=(n,o)=>{var i={};for(var u in n)Qs.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Bo)for(var u of Bo(n))o.indexOf(u)<0&&Gl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Pr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),gn=(n,o)=>{for(var i in o)kr(n,i,{get:o[i],enumerable:!0})},$l=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Mv(o))!Qs.call(n,m)&&m!==i&&kr(n,m,{get:()=>o[m],enumerable:!(u=Nv(o,m))||u.enumerable});return n};var V=(n,o,i)=>(i=n!=null?Rv(Fv(n)):{},$l(o||!n||!n.__esModule?kr(i,"default",{value:n,enumerable:!0}):i,n)),Rr=n=>$l(kr({},"__esModule",{value:!0}),n);var K=(n,o,i)=>new Promise((u,m)=>{var S=E=>{try{k(i.next(E))}catch(D){m(D)}},v=E=>{try{k(i.throw(E))}catch(D){m(D)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(S,v);k((i=i.apply(n,o)).next())});var ql=Pr(Wo=>{"use strict";s();Wo.byteLength=Bv;Wo.toByteArray=Gv;Wo.fromByteArray=Vv;var xt=[],it=[],Uv=typeof Uint8Array!="undefined"?Uint8Array:Array,js="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mn=0,Hl=js.length;mn<Hl;++mn)xt[mn]=js[mn],it[js.charCodeAt(mn)]=mn;var mn,Hl;it["-".charCodeAt(0)]=62;it["_".charCodeAt(0)]=63;function Vl(n){var o=n.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function Bv(n){var o=Vl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function Wv(n,o,i){return(o+i)*3/4-i}function Gv(n){var o,i=Vl(n),u=i[0],m=i[1],S=new Uv(Wv(n,u,m)),v=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=it[n.charCodeAt(E)]<<18|it[n.charCodeAt(E+1)]<<12|it[n.charCodeAt(E+2)]<<6|it[n.charCodeAt(E+3)],S[v++]=o>>16&255,S[v++]=o>>8&255,S[v++]=o&255;return m===2&&(o=it[n.charCodeAt(E)]<<2|it[n.charCodeAt(E+1)]>>4,S[v++]=o&255),m===1&&(o=it[n.charCodeAt(E)]<<10|it[n.charCodeAt(E+1)]<<4|it[n.charCodeAt(E+2)]>>2,S[v++]=o>>8&255,S[v++]=o&255),S}function $v(n){return xt[n>>18&63]+xt[n>>12&63]+xt[n>>6&63]+xt[n&63]}function Hv(n,o,i){for(var u,m=[],S=o;S<i;S+=3)u=(n[S]<<16&16711680)+(n[S+1]<<8&65280)+(n[S+2]&255),m.push($v(u));return m.join("")}function Vv(n){for(var o,i=n.length,u=i%3,m=[],S=16383,v=0,k=i-u;v<k;v+=S)m.push(Hv(n,v,v+S>k?k:v+S));return u===1?(o=n[i-1],m.push(xt[o>>2]+xt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(xt[o>>10]+xt[o>>4&63]+xt[o<<2&63]+"=")),m.join("")}});var zl=Pr(ea=>{s();ea.read=function(n,o,i,u,m){var S,v,k=m*8-u-1,E=(1<<k)-1,D=E>>1,$=-7,M=i?m-1:0,ue=i?-1:1,ye=n[o+M];for(M+=ue,S=ye&(1<<-$)-1,ye>>=-$,$+=k;$>0;S=S*256+n[o+M],M+=ue,$-=8);for(v=S&(1<<-$)-1,S>>=-$,$+=u;$>0;v=v*256+n[o+M],M+=ue,$-=8);if(S===0)S=1-D;else{if(S===E)return v?NaN:(ye?-1:1)*(1/0);v=v+Math.pow(2,u),S=S-D}return(ye?-1:1)*v*Math.pow(2,S-u)};ea.write=function(n,o,i,u,m,S){var v,k,E,D=S*8-m-1,$=(1<<D)-1,M=$>>1,ue=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:S-1,ge=u?1:-1,_e=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,v=$):(v=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+M>=1?o+=ue/E:o+=ue*Math.pow(2,1-M),o*E>=2&&(v++,E/=2),v+M>=$?(k=0,v=$):v+M>=1?(k=(o*E-1)*Math.pow(2,m),v=v+M):(k=o*Math.pow(2,M-1)*Math.pow(2,m),v=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(v=v<<m|k,D+=m;D>0;n[i+ye]=v&255,ye+=ge,v/=256,D-=8);n[i+ye-ge]|=_e*128}});var ip=Pr(Vn=>{"use strict";s();var ta=ql(),Hn=zl(),Kl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Vn.Buffer=I;Vn.SlowBuffer=Xv;Vn.INSPECT_MAX_BYTES=50;var Go=2147483647;Vn.kMaxLength=Go;I.TYPED_ARRAY_SUPPORT=qv();!I.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 qv(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Mt(n){if(n>Go)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,I.prototype),o}function I(n,o,i){if(typeof n=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ia(n)}return Xl(n,o,i)}I.poolSize=8192;function Xl(n,o,i){if(typeof n=="string")return Kv(n,o);if(ArrayBuffer.isView(n))return Yv(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(St(n,ArrayBuffer)||n&&St(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(n,SharedArrayBuffer)||n&&St(n.buffer,SharedArrayBuffer)))return ra(n,o,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return I.from(u,o,i);var m=Zv(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return I.from(n[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}I.from=function(n,o,i){return Xl(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function Jl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function zv(n,o,i){return Jl(n),n<=0?Mt(n):o!==void 0?typeof i=="string"?Mt(n).fill(o,i):Mt(n).fill(o):Mt(n)}I.alloc=function(n,o,i){return zv(n,o,i)};function ia(n){return Jl(n),Mt(n<0?0:sa(n)|0)}I.allocUnsafe=function(n){return ia(n)};I.allocUnsafeSlow=function(n){return ia(n)};function Kv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Ql(n,o)|0,u=Mt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function na(n){for(var o=n.length<0?0:sa(n.length)|0,i=Mt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function Yv(n){if(St(n,Uint8Array)){var o=new Uint8Array(n);return ra(o.buffer,o.byteOffset,o.byteLength)}return na(n)}function ra(n,o,i){if(o<0||n.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');var u;return o===void 0&&i===void 0?u=new Uint8Array(n):i===void 0?u=new Uint8Array(n,o):u=new Uint8Array(n,o,i),Object.setPrototypeOf(u,I.prototype),u}function Zv(n){if(I.isBuffer(n)){var o=sa(n.length)|0,i=Mt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||aa(n.length)?Mt(0):na(n);if(n.type==="Buffer"&&Array.isArray(n.data))return na(n.data)}function sa(n){if(n>=Go)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Go.toString(16)+" bytes");return n|0}function Xv(n){return+n!=n&&(n=0),I.alloc(+n)}I.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==I.prototype};I.compare=function(o,i){if(St(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),St(i,Uint8Array)&&(i=I.from(i,i.offset,i.byteLength)),!I.isBuffer(o)||!I.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var u=o.length,m=i.length,S=0,v=Math.min(u,m);S<v;++S)if(o[S]!==i[S]){u=o[S],m=i[S];break}return u<m?-1:m<u?1:0};I.isEncoding=function(o){switch(String(o).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}};I.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return I.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=I.allocUnsafe(i),S=0;for(u=0;u<o.length;++u){var v=o[u];if(St(v,Uint8Array))S+v.length>m.length?I.from(v).copy(m,S):Uint8Array.prototype.set.call(m,v,S);else if(I.isBuffer(v))v.copy(m,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=v.length}return m};function Ql(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||St(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;for(var m=!1;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return oa(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return op(n).length;default:if(m)return u?-1:oa(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=Ql;function Jv(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return a0(this,o,i);case"utf8":case"utf-8":return ep(this,o,i);case"ascii":return i0(this,o,i);case"latin1":case"binary":return s0(this,o,i);case"base64":return r0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Tn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}I.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)Tn(this,i,i+1);return this};I.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)Tn(this,i,i+3),Tn(this,i+1,i+2);return this};I.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)Tn(this,i,i+7),Tn(this,i+1,i+6),Tn(this,i+2,i+5),Tn(this,i+3,i+4);return this};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?ep(this,0,o):Jv.apply(this,arguments)};I.prototype.toLocaleString=I.prototype.toString;I.prototype.equals=function(o){if(!I.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:I.compare(this,o)===0};I.prototype.inspect=function(){var o="",i=Vn.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};Kl&&(I.prototype[Kl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,S){if(St(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),!I.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),m===void 0&&(m=0),S===void 0&&(S=this.length),i<0||u>o.length||m<0||S>this.length)throw new RangeError("out of range index");if(m>=S&&i>=u)return 0;if(m>=S)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,S>>>=0,this===o)return 0;for(var v=S-m,k=u-i,E=Math.min(v,k),D=this.slice(m,S),$=o.slice(i,u),M=0;M<E;++M)if(D[M]!==$[M]){v=D[M],k=$[M];break}return v<k?-1:k<v?1:0};function jl(n,o,i,u,m){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,aa(i)&&(i=m?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(m)return-1;i=n.length-1}else if(i<0)if(m)i=0;else return-1;if(typeof o=="string"&&(o=I.from(o,u)),I.isBuffer(o))return o.length===0?-1:Yl(n,o,i,u,m);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(n,o,i):Uint8Array.prototype.lastIndexOf.call(n,o,i):Yl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Yl(n,o,i,u,m){var S=1,v=n.length,k=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||o.length<2)return-1;S=2,v/=2,k/=2,i/=2}function E(ye,ge){return S===1?ye[ge]:ye.readUInt16BE(ge*S)}var D;if(m){var $=-1;for(D=i;D<v;D++)if(E(n,D)===E(o,$===-1?0:D-$)){if($===-1&&($=D),D-$+1===k)return $*S}else $!==-1&&(D-=D-$),$=-1}else for(i+k>v&&(i=v-k),D=i;D>=0;D--){for(var M=!0,ue=0;ue<k;ue++)if(E(n,D+ue)!==E(o,ue)){M=!1;break}if(M)return D}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return jl(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return jl(this,o,i,u,!1)};function Qv(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var S=o.length;u>S/2&&(u=S/2);for(var v=0;v<u;++v){var k=parseInt(o.substr(v*2,2),16);if(aa(k))return v;n[i+v]=k}return v}function jv(n,o,i,u){return $o(oa(o,n.length-i),n,i,u)}function e0(n,o,i,u){return $o(p0(o),n,i,u)}function t0(n,o,i,u){return $o(op(o),n,i,u)}function n0(n,o,i,u){return $o(f0(o,n.length-i),n,i,u)}I.prototype.write=function(o,i,u,m){if(i===void 0)m="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")m=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,m===void 0&&(m="utf8")):(m=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var S=this.length-i;if((u===void 0||u>S)&&(u=S),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var v=!1;;)switch(m){case"hex":return Qv(this,o,i,u);case"utf8":case"utf-8":return jv(this,o,i,u);case"ascii":case"latin1":case"binary":return e0(this,o,i,u);case"base64":return t0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n0(this,o,i,u);default:if(v)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),v=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r0(n,o,i){return o===0&&i===n.length?ta.fromByteArray(n):ta.fromByteArray(n.slice(o,i))}function ep(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var S=n[m],v=null,k=S>239?4:S>223?3:S>191?2:1;if(m+k<=i){var E,D,$,M;switch(k){case 1:S<128&&(v=S);break;case 2:E=n[m+1],(E&192)===128&&(M=(S&31)<<6|E&63,M>127&&(v=M));break;case 3:E=n[m+1],D=n[m+2],(E&192)===128&&(D&192)===128&&(M=(S&15)<<12|(E&63)<<6|D&63,M>2047&&(M<55296||M>57343)&&(v=M));break;case 4:E=n[m+1],D=n[m+2],$=n[m+3],(E&192)===128&&(D&192)===128&&($&192)===128&&(M=(S&15)<<18|(E&63)<<12|(D&63)<<6|$&63,M>65535&&M<1114112&&(v=M))}}v===null?(v=65533,k=1):v>65535&&(v-=65536,u.push(v>>>10&1023|55296),v=56320|v&1023),u.push(v),m+=k}return o0(u)}var Zl=4096;function o0(n){var o=n.length;if(o<=Zl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Zl));return i}function i0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function s0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function a0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",S=o;S<i;++S)m+=d0[n[S]];return m}function c0(n,o,i){for(var u=n.slice(o,i),m="",S=0;S<u.length-1;S+=2)m+=String.fromCharCode(u[S]+u[S+1]*256);return m}I.prototype.slice=function(o,i){var u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);var m=this.subarray(o,i);return Object.setPrototypeOf(m,I.prototype),m};function Ae(n,o,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+o>i)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return m};I.prototype.readUintBE=I.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o+--i],S=1;i>0&&(S*=256);)m+=this[o+--i]*S;return m};I.prototype.readUint8=I.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]};I.prototype.readUint16LE=I.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]|this[o+1]<<8};I.prototype.readUint16BE=I.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]<<8|this[o+1]};I.prototype.readUint32LE=I.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};I.prototype.readUint32BE=I.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};I.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return S*=128,m>=S&&(m-=Math.pow(2,8*i)),m};I.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=i,S=1,v=this[o+--m];m>0&&(S*=256);)v+=this[o+--m]*S;return S*=128,v>=S&&(v-=Math.pow(2,8*i)),v};I.prototype.readInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};I.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};I.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};I.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};I.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};I.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Hn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Hn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Hn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Hn.read(this,o,!1,52,8)};function Ue(n,o,i,u,m,S){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<S)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Ue(this,o,i,u,S,0)}var v=1,k=0;for(this[i]=o&255;++k<u&&(v*=256);)this[i+k]=o/v&255;return i+u};I.prototype.writeUintBE=I.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Ue(this,o,i,u,S,0)}var v=u-1,k=1;for(this[i+v]=o&255;--v>=0&&(k*=256);)this[i+v]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,255,0),this[i]=o&255,i+1};I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4};I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};I.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Ue(this,o,i,u,S-1,-S)}var v=0,k=1,E=0;for(this[i]=o&255;++v<u&&(k*=256);)o<0&&E===0&&this[i+v-1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Ue(this,o,i,u,S-1,-S)}var v=u-1,k=1,E=0;for(this[i+v]=o&255;--v>=0&&(k*=256);)o<0&&E===0&&this[i+v+1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1};I.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4};I.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function tp(n,o,i,u,m,S){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function np(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,4,34028234663852886e22,-34028234663852886e22),Hn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return np(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return np(this,o,i,!1,u)};function rp(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,8,17976931348623157e292,-17976931348623157e292),Hn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return rp(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return rp(this,o,i,!1,u)};I.prototype.copy=function(o,i,u,m){if(!I.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!m&&m!==0&&(m=this.length),i>=o.length&&(i=o.length),i||(i=0),m>0&&m<u&&(m=u),m===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),o.length-i<m-u&&(m=o.length-i+u);var S=m-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,m):Uint8Array.prototype.set.call(o,this.subarray(u,m),i),S};I.prototype.fill=function(o,i,u,m){if(typeof o=="string"){if(typeof i=="string"?(m=i,i=0,u=this.length):typeof u=="string"&&(m=u,u=this.length),m!==void 0&&typeof m!="string")throw new TypeError("encoding must be a string");if(typeof m=="string"&&!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var S=o.charCodeAt(0);(m==="utf8"&&S<128||m==="latin1")&&(o=S)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);var v;if(typeof o=="number")for(v=i;v<u;++v)this[v]=o;else{var k=I.isBuffer(o)?o:I.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(v=0;v<u-i;++v)this[v+i]=k[v%E]}return this};var u0=/[^+/0-9A-Za-z-_]/g;function l0(n){if(n=n.split("=")[0],n=n.trim().replace(u0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function oa(n,o){o=o||1/0;for(var i,u=n.length,m=null,S=[],v=0;v<u;++v){if(i=n.charCodeAt(v),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&S.push(239,191,189);continue}else if(v+1===u){(o-=3)>-1&&S.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&S.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&S.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;S.push(i)}else if(i<2048){if((o-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function p0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function f0(n,o){for(var i,u,m,S=[],v=0;v<n.length&&!((o-=2)<0);++v)i=n.charCodeAt(v),u=i>>8,m=i%256,S.push(m),S.push(u);return S}function op(n){return ta.toByteArray(l0(n))}function $o(n,o,i,u){for(var m=0;m<u&&!(m+i>=o.length||m>=n.length);++m)o[m+i]=n[m];return m}function St(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function aa(n){return n!==n}var d0=function(){for(var n="0123456789abcdef",o=new Array(256),i=0;i<16;++i)for(var u=i*16,m=0;m<16;++m)o[u+m]=n[i]+n[m];return o}()});var lp=Pr((NI,up)=>{s();var he=up.exports={},vt,wt;function ca(){throw new Error("setTimeout has not been defined")}function ua(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vt=setTimeout:vt=ca}catch(n){vt=ca}try{typeof clearTimeout=="function"?wt=clearTimeout:wt=ua}catch(n){wt=ua}})();function sp(n){if(vt===setTimeout)return setTimeout(n,0);if((vt===ca||!vt)&&setTimeout)return vt=setTimeout,setTimeout(n,0);try{return vt(n,0)}catch(o){try{return vt.call(null,n,0)}catch(i){return vt.call(this,n,0)}}}function g0(n){if(wt===clearTimeout)return clearTimeout(n);if((wt===ua||!wt)&&clearTimeout)return wt=clearTimeout,clearTimeout(n);try{return wt(n)}catch(o){try{return wt.call(null,n)}catch(i){return wt.call(this,n)}}}var Ft=[],qn=!1,hn,Ho=-1;function m0(){!qn||!hn||(qn=!1,hn.length?Ft=hn.concat(Ft):Ho=-1,Ft.length&&ap())}function ap(){if(!qn){var n=sp(m0);qn=!0;for(var o=Ft.length;o;){for(hn=Ft,Ft=[];++Ho<o;)hn&&hn[Ho].run();Ho=-1,o=Ft.length}hn=null,qn=!1,g0(n)}}he.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Ft.push(new cp(n,o)),Ft.length===1&&!qn&&sp(ap)};function cp(n,o){this.fun=n,this.array=o}cp.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Ut(){}he.on=Ut;he.addListener=Ut;he.once=Ut;he.off=Ut;he.removeListener=Ut;he.removeAllListeners=Ut;he.emit=Ut;he.prependListener=Ut;he.prependOnceListener=Ut;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,T0,f,s=W(()=>{d=V(ip()),g=V(lp()),T0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),f=T0});var yn=W(()=>{"use strict";s()});var pp=W(()=>{"use strict";s()});var fp=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var Be=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var hp=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();pp();fp();dp();de();gp();mp();Be();Tp();hp()});var la,yp,jI,xp,e_,Sp,t_,n_,r_,vp=W(()=>{"use strict";s();Ie();la={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:yp,egldLabel:jI}=la["devnet"],{chainId:xp,egldLabel:e_}=la["testnet"],{chainId:Sp,egldLabel:t_}=la["mainnet"],n_={["devnet"]:yp,["testnet"]:xp,["mainnet"]:Sp},r_={[yp]:"devnet",[xp]:"testnet",[Sp]:"mainnet"}});var pa=W(()=>{"use strict";s()});var wp=W(()=>{"use strict";s()});var Vo,fa=W(()=>{"use strict";s();Vo="transaction-status-toast-id"});var At,Ap=W(()=>{"use strict";s();At=require("@multiversx/sdk-web-wallet-provider")});var Ip=W(()=>{"use strict";s()});var Dr,qo,_p,zo,bp,zn,se=W(()=>{"use strict";s();yn();vp();pa();wp();fa();Ap();Ip();Dr=5e4,qo=1e9,_p=1,zo="logout",bp="login",zn="0"});var Kn,Ko=W(()=>{"use strict";s();Kn=()=>Date.now()/1e3});var Lp=W(()=>{"use strict";s()});var Ep=W(()=>{"use strict";s()});var da=W(()=>{"use strict";s();Ko();Lp();Ep()});var ma={};gn(ma,{getItem:()=>y0,localStorageKeys:()=>jt,removeItem:()=>x0,setItem:()=>h0});var jt,ga,h0,y0,x0,Yn=W(()=>{"use strict";s();da();jt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ga=typeof localStorage!="undefined",h0=({key:n,data:o,expires:i})=>{!ga||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},y0=n=>{if(!ga)return;let o=localStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Kn()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},x0=n=>{!ga||localStorage.removeItem(String(n))}});var Ta={};gn(Ta,{clear:()=>Rp,getItem:()=>Cp,removeItem:()=>Pp,setItem:()=>kp,storage:()=>S0});var kp,Cp,Pp,Rp,S0,Dp=W(()=>{"use strict";s();kp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Cp=n=>{let o=sessionStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},Pp=n=>sessionStorage.removeItem(String(n)),Rp=()=>sessionStorage.clear(),S0={setItem:kp,getItem:Cp,removeItem:Pp,clear:Rp}});var xn,Zn=W(()=>{"use strict";s();Yn();Dp();xn={session:Ta,local:ma}});var ha,Le,It,Ce=W(()=>{"use strict";s();ha=require("@reduxjs/toolkit");se();Le=(0,ha.createAction)(zo),It=(0,ha.createAction)(bp,n=>({payload:n}))});var xa,Np,Op,Yo,ya,Mp,Sa,O_,va,M_,v0,w0,F_,U_,B_,A0,Zo,Xo=W(()=>{"use strict";s();xa=require("@multiversx/sdk-core"),Np=require("@reduxjs/toolkit"),Op=require("redux-persist");se();Zn();Yn();Ce();Yo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:zn},ya={address:"",websocketEvent:null,accounts:{"":Yo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Mp=(0,Np.createSlice)({name:"accountInfoSlice",initialState:ya,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new xa.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Yo},n.shard=o.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,o)=>{let{address:i}=n;n.accounts[i].nonce=o.payload},setAccountShard:(n,o)=>{n.shard=o.payload},setLedgerAccount:(n,o)=>{n.ledgerAccount=o.payload},updateLedgerAccount:(n,o)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=o.payload.index,n.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(n,o)=>{n.walletConnectAccount=o.payload},setIsAccountLoading:(n,o)=>{n.isAccountLoading=o.payload,n.accountLoadingError=null},setAccountLoadingError:(n,o)=>{n.accountLoadingError=o.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,o)=>{n.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:n=>{n.addCase(Le,()=>(xn.local.removeItem(jt.loginExpiresAt),ya)),n.addCase(It,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new xa.Address(u).hex()}),n.addCase(Op.REHYDRATE,(o,i)=>{var D;if(!((D=i.payload)!=null&&D.account))return;let{account:u}=i.payload,{address:m,shard:S,accounts:v,publicKey:k}=u;o.address=m,o.shard=S;let E=v&&m in v;o.accounts=E?v:ya.accounts,o.publicKey=k})}}),{setAccount:Sa,setAddress:O_,setAccountNonce:va,setAccountShard:M_,setLedgerAccount:v0,updateLedgerAccount:w0,setWalletConnectAccount:F_,setIsAccountLoading:U_,setAccountLoadingError:B_,setWebsocketEvent:A0}=Mp.actions,Zo=Mp.reducer});function Nr(){return new Date().setHours(new Date().getHours()+24)}function Or(n){xn.local.setItem({key:jt.loginExpiresAt,data:n,expires:n})}var wa=W(()=>{"use strict";s();Zn();Yn()});var Up,Fp,Bp,Z_,Wp,I0,_0,X_,b0,Gp,J_,Jo,Qo=W(()=>{"use strict";s();Up=require("@reduxjs/toolkit");wa();de();Ce();Fp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Bp=(0,Up.createSlice)({name:"loginInfoSlice",initialState:Fp,reducers:{setLoginMethod:(n,o)=>{n.loginMethod=o.payload},setTokenLogin:(n,o)=>{n.tokenLogin=o.payload},setTokenLoginSignature:(n,o)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=o.payload)},setWalletLogin:(n,o)=>{n.walletLogin=o.payload},setWalletConnectLogin:(n,o)=>{n.walletConnectLogin=o.payload},setLedgerLogin:(n,o)=>{n.ledgerLogin=o.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,o)=>{n.logoutRoute=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fp),n.addCase(It,(o,i)=>{o.loginMethod=i.payload.loginMethod,Or(Nr())})}}),{setLoginMethod:Z_,setWalletConnectLogin:Wp,setLedgerLogin:I0,setTokenLogin:_0,setTokenLoginSignature:X_,setWalletLogin:b0,invalidateLoginSession:Gp,setLogoutRoute:J_}=Bp.actions,Jo=Bp.reducer});var Hp,$p,Vp,tb,L0,nb,E0,jo,ei=W(()=>{"use strict";s();Hp=require("@reduxjs/toolkit");Ce();$p={},Vp=(0,Hp.createSlice)({name:"modalsSlice",initialState:$p,reducers:{setTxSubmittedModal:(n,o)=>{n.txSubmittedModal=o.payload},setNotificationModal:(n,o)=>{n.notificationModal=o.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(Le,()=>$p)}}),{setTxSubmittedModal:tb,setNotificationModal:L0,clearTxSubmittedModal:nb,clearNotificationModal:E0}=Vp.actions,jo=Vp.reducer});var Mr=W(()=>{"use strict";s()});var zp=W(()=>{"use strict";s();Mr()});function Aa(n){return n[Math.floor(Math.random()*n.length)]}var Kp=W(()=>{"use strict";s()});var Ia=W(()=>{"use strict";s();pa()});var Sn=W(()=>{"use strict";s();zp();Kp();Ia()});var Yp,Zp,_a,k0,Xp,hb,yb,ti,ni=W(()=>{"use strict";s();Yp=require("@reduxjs/toolkit"),Zp=V(require("lodash.omit"));Sn();_a={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},k0={network:_a,chainID:"-1"},Xp=(0,Yp.createSlice)({name:"appConfig",initialState:k0,reducers:{initializeNetworkConfig:(n,o)=>{let i=Aa(o.payload.walletConnectBridgeAddresses),u=Aa(o.payload.walletConnectV2RelayAddresses),m=(0,Zp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:hb,setChainID:yb}=Xp.actions,ti=Xp.reducer});var Jp,ba,Qp,Ib,_b,bb,ri,oi=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit");Ie();Ce();ba={isSigning:!1,signedSessions:{}},Qp=(0,Jp.createSlice)({name:"signedMessageInfoSliceState",initialState:ba,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>ba},extraReducers:n=>{n.addCase(Le,()=>ba)}}),{setSignSession:Ib,clearSignedMessageInfo:_b,setSignSessionState:bb}=Qp.actions,ri=Qp.reducer});var ef,tf,jp,nf,La,Ea,Nb,Ob,Mb,Fb,ii,si=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit"),tf=require("redux-persist");fa();Ie();Ko();Ce();jp={customToasts:[],transactionToasts:[],failTransactionToast:null},nf=(0,ef.createSlice)({name:"toastsSlice",initialState:jp,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Kn(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=Q(O({},o.payload),{toastId:Vo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>jp),n.addCase(tf.REHYDRATE,(o,i)=>{var m,S;let u=(S=(m=i.customToasts)==null?void 0:m.filter(v=>!("component"in v)))!=null?S:[];o.customToasts=u})}}),{addCustomToast:La,removeCustomToast:Ea,addTransactionToast:Nb,removeTransactionToast:Ob,addFailTransactionToast:Mb,removeFailTransactionToast:Fb}=nf.actions,ii=nf.reducer});var rf,Ca,Pa,Ra,C0,ka,of,Gb,P0,Da,ai,ci=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit");Ce();Ca="Transaction failed",Pa="Transaction successful",Ra="Processing transaction",C0="Transaction submitted",ka={},of=(0,rf.createSlice)({name:"transactionsInfo",initialState:ka,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ca,successMessage:(u==null?void 0:u.successMessage)||Pa,processingMessage:(u==null?void 0:u.processingMessage)||Ra,submittedMessage:(u==null?void 0:u.submittedMessage)||C0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>ka},extraReducers:n=>{n.addCase(Le,()=>ka)}}),{clearTransactionsInfo:Gb,setTransactionsDisplayInfo:P0,clearTransactionsInfoForSessionId:Da}=of.actions,ai=of.reducer});function Jn(n){return n!=null&&(B0(n)||H0(n))}function Qn(n){return n!=null&&(W0(n)||V0(n))}function jn(n){return n!=null&&(G0(n)||q0(n))}function Na(n){return n!=null&&$0(n)}function B0(n){return n!=null&&R0.includes(n)}function W0(n){return n!=null&&D0.includes(n)}function G0(n){return n!=null&&N0.includes(n)}function $0(n){return n!=null&&O0.includes(n)}function H0(n){return n!=null&&M0.includes(n)}function V0(n){return n!=null&&F0.includes(n)}function q0(n){return n!=null&&U0.includes(n)}var R0,D0,N0,O0,M0,F0,U0,er=W(()=>{"use strict";s();de();R0=["sent"],D0=["success"],N0=["fail","cancelled","timedOut"],O0=["timedOut"],M0=["pending"],F0=["success"],U0=["fail","invalid"]});var sf,af,Fr,z0,cf,uf,lf,K0,ui,Y0,Z0,Xb,X0,li,Oa,pi,fi=W(()=>{"use strict";s();sf=require("@reduxjs/toolkit"),af=require("redux-persist");de();er();Ce();Fr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},z0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},cf=(0,sf.createSlice)({name:"transactionsSlice",initialState:Fr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,D;let{sessionId:i,transactions:u,errorMessage:m,status:S,redirectRoute:v}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||z0;n.signedTransactions[i]={transactions:u,status:S,errorMessage:m,redirectRoute:v,customTransactionInformation:k},((D=n==null?void 0:n.transactionsToSign)==null?void 0:D.sessionId)===i&&(n.transactionsToSign=Fr.transactionsToSign)},clearSignedTransaction:(n,o)=>{n.signedTransactions[o.payload]&&delete n.signedTransactions[o.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,o)=>{n.signedTransactions=O(O({},n.signedTransactions),o.payload)},updateSignedTransactions:(n,o)=>{let{sessionId:i,status:u,errorMessage:m,transactions:S}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),S!=null&&(n.signedTransactions[i].transactions=S))},updateSignedTransactionStatus:(n,o)=>{var k,E,D,$,M,ue;let{sessionId:i,status:u,errorMessage:m,transactionHash:S}=o.payload,v=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(v!=null){n.signedTransactions[i].transactions=v.map(_e=>_e.hash===S?Q(O({},_e),{status:u,errorMessage:m}):_e);let ye=($=(D=n.signedTransactions[i])==null?void 0:D.transactions)==null?void 0:$.every(_e=>Qn(_e.status)),ge=(ue=(M=n.signedTransactions[i])==null?void 0:M.transactions)==null?void 0:ue.every(_e=>jn(_e.status));ye&&(n.signedTransactions[i].status="success"),ge&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,o)=>{n.transactionsToSign=o.payload;let{sessionId:i,customTransactionInformation:u}=o.payload;n.customTransactionInformationForSessionId[i]=u,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=Fr.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Fr.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fr),n.addCase(af.REHYDRATE,(o,i)=>{var v;if(o.signTransactionsCancelMessage=null,!((v=i.payload)!=null&&v.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,S=Object.entries(u).reduce((k,[E,D])=>{let $=new Date(E),M=new Date;return M.setHours(M.getHours()+5),M-$>0||(k[E]=D),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=S)})}}),{updateSignedTransactionStatus:uf,updateSignedTransactions:lf,setTransactionsToSign:K0,clearAllTransactionsToSign:ui,clearAllSignedTransactions:Y0,clearSignedTransaction:Z0,clearTransactionToSign:Xb,setSignTransactionsError:X0,setSignTransactionsCancelMessage:li,moveTransactionsToSignedState:Oa}=cf.actions,pi=cf.reducer});var ae=W(()=>{"use strict";s();Xo();Qo();ei();ni();oi();si();ci();fi()});var Ma=W(()=>{"use strict";s()});var mf,gf,Tf,SL,vL,wL,AL,IL,_L,hf,yf=W(()=>{"use strict";s();mf=require("@reduxjs/toolkit");Ce();gf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Tf=(0,mf.createSlice)({name:"dappModalsSlice",initialState:gf,reducers:{setDappModalVisibility:(n,o)=>{n.visible=o.payload},setDappModalHeaderVisibility:(n,o)=>{n.modal.showHeader=o.payload},setDappModalFooterVisibility:(n,o)=>{n.modal.showFooter=o.payload},setDappModalHeaderText:(n,o)=>{n.modal.headerText=o.payload},setDappModalFooterText:(n,o)=>{n.modal.footerText=o.payload},setDappModalConfig:(n,o)=>{n.modal=O({},o.payload)}},extraReducers:n=>{n.addCase(Le,()=>gf)}}),{setDappModalVisibility:SL,setDappModalHeaderVisibility:vL,setDappModalFooterVisibility:wL,setDappModalHeaderText:AL,setDappModalFooterText:IL,setDappModalConfig:_L}=Tf.actions,hf=Tf.reducer});var xf,ew,tw,wn,Ti=W(()=>{"use strict";s();xf=require("@reduxjs/toolkit");Ma();Xo();yf();Qo();ei();ni();oi();si();ci();fi();ew={["account"]:Zo,["dappModal"]:hf,["loginInfo"]:Jo,["modals"]:jo,["networkConfig"]:ti,["signedMessageInfo"]:ri,["toasts"]:ii,["transactionsInfo"]:ai,["transactions"]:pi},tw=(n={})=>(0,xf.combineReducers)(O(O({},ew),n)),wn=tw});var Af={};gn(Af,{default:()=>Tw,sessionStorageReducers:()=>Fa});function en(n,o=[]){return{key:n,version:1,storage:vf.default,blacklist:o}}var Ye,Sf,vf,nw,Br,rw,ow,iw,sw,aw,cw,uw,lw,pw,wf,fw,Fa,dw,gw,mw,Tw,If=W(()=>{"use strict";s();Ye=require("redux-persist"),Sf=V(require("redux-persist/lib/storage")),vf=V(require("redux-persist/lib/storage/session"));Ti();ae();Xo();Qo();ei();ni();oi();si();ci();fi();Ma();nw={persistReducersStorageType:"localStorage"},Br={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},rw=en(Br["account"]),ow=en(Br["loginInfo"]),iw=en(Br["modals"]),sw=en(Br["networkConfig"]),aw={2:n=>Q(O({},n),{networkConfig:_a})};cw=en("sdk-dapp-transactionsInfo"),uw=en("sdk-dapp-transactions",["transactionsToSign"]),lw=en("sdk-dapp-toasts"),pw=en("sdk-dapp-signedMessageInfo"),wf={key:"sdk-dapp-store",version:2,storage:Sf.default,whitelist:Object.keys(Br),migrate:(0,Ye.createMigrate)(aw,{debug:!1})},fw=Q(O({},wf),{whitelist:[]}),Fa={["toasts"]:(0,Ye.persistReducer)(lw,ii),["transactions"]:(0,Ye.persistReducer)(uw,pi),["transactionsInfo"]:(0,Ye.persistReducer)(cw,ai),["signedMessageInfo"]:(0,Ye.persistReducer)(pw,ri)},dw=Q(O({},Fa),{["account"]:(0,Ye.persistReducer)(rw,Zo),["loginInfo"]:(0,Ye.persistReducer)(ow,Jo),["modals"]:(0,Ye.persistReducer)(iw,jo),["networkConfig"]:(0,Ye.persistReducer)(sw,ti)}),gw=nw.persistReducersStorageType==="localStorage",mw=gw?(0,Ye.persistReducer)(wf,wn(Fa)):(0,Ye.persistReducer)(fw,wn(dw)),Tw=mw});var _f={};gn(_f,{default:()=>hw});var hw,bf=W(()=>{"use strict";s();Ti();hw=wn()});var Lf={};gn(Lf,{default:()=>xw});var st,yw,xw,Ef=W(()=>{"use strict";s();st=require("redux-persist"),yw=[st.FLUSH,st.REHYDRATE,st.PAUSE,st.PERSIST,st.PURGE,st.REGISTER],xw=yw});var Pf={};gn(Pf,{default:()=>Cf});function Cf(n){return(0,kf.persistStore)(n)}var kf,Rf=W(()=>{"use strict";s();kf=require("redux-persist")});var Id=Pr((or,Hr)=>{s();(function(){var n,o="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",S="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",D=1,$=2,M=4,ue=1,ye=2,ge=1,_e=2,ac=4,dt=8,bn=16,gt=32,Ln=64,_t=128,sr=256,Ci=512,Fd=30,Ud="...",Bd=800,Wd=16,cc=1,Gd=2,$d=3,rn=1/0,$t=9007199254740991,Hd=17976931348623157e292,qr=0/0,mt=4294967295,Vd=mt-1,qd=mt>>>1,zd=[["ary",_t],["bind",ge],["bindKey",_e],["curry",dt],["curryRight",bn],["flip",Ci],["partial",gt],["partialRight",Ln],["rearg",sr]],En="[object Arguments]",zr="[object Array]",Kd="[object AsyncFunction]",ar="[object Boolean]",cr="[object Date]",Yd="[object DOMException]",Kr="[object Error]",Yr="[object Function]",uc="[object GeneratorFunction]",at="[object Map]",ur="[object Number]",Zd="[object Null]",bt="[object Object]",lc="[object Promise]",Xd="[object Proxy]",lr="[object RegExp]",ct="[object Set]",pr="[object String]",Zr="[object Symbol]",Jd="[object Undefined]",fr="[object WeakMap]",Qd="[object WeakSet]",dr="[object ArrayBuffer]",kn="[object DataView]",Pi="[object Float32Array]",Ri="[object Float64Array]",Di="[object Int8Array]",Ni="[object Int16Array]",Oi="[object Int32Array]",Mi="[object Uint8Array]",Fi="[object Uint8ClampedArray]",Ui="[object Uint16Array]",Bi="[object Uint32Array]",jd=/\b__p \+= '';/g,eg=/\b(__p \+=) '' \+/g,tg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pc=/&(?:amp|lt|gt|quot|#39);/g,fc=/[&<>"']/g,ng=RegExp(pc.source),rg=RegExp(fc.source),og=/<%-([\s\S]+?)%>/g,ig=/<%([\s\S]+?)%>/g,dc=/<%=([\s\S]+?)%>/g,sg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ag=/^\w*$/,cg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wi=/[\\^$.*+?()[\]{}|]/g,ug=RegExp(Wi.source),Gi=/^\s+/,lg=/\s/,pg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fg=/\{\n\/\* \[wrapped with (.+)\] \*/,dg=/,? & /,gg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mg=/[()=,{}\[\]\/\s]/,Tg=/\\(\\)?/g,hg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gc=/\w*$/,yg=/^[-+]0x[0-9a-f]+$/i,xg=/^0b[01]+$/i,Sg=/^\[object .+?Constructor\]$/,vg=/^0o[0-7]+$/i,wg=/^(?:0|[1-9]\d*)$/,Ag=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xr=/($^)/,Ig=/['\n\r\u2028\u2029\\]/g,Jr="\\ud800-\\udfff",_g="\\u0300-\\u036f",bg="\\ufe20-\\ufe2f",Lg="\\u20d0-\\u20ff",mc=_g+bg+Lg,Tc="\\u2700-\\u27bf",hc="a-z\\xdf-\\xf6\\xf8-\\xff",Eg="\\xac\\xb1\\xd7\\xf7",kg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cg="\\u2000-\\u206f",Pg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",xc="\\ufe0e\\ufe0f",Sc=Eg+kg+Cg+Pg,$i="['\u2019]",Rg="["+Jr+"]",vc="["+Sc+"]",Qr="["+mc+"]",wc="\\d+",Dg="["+Tc+"]",Ac="["+hc+"]",Ic="[^"+Jr+Sc+wc+Tc+hc+yc+"]",Hi="\\ud83c[\\udffb-\\udfff]",Ng="(?:"+Qr+"|"+Hi+")",_c="[^"+Jr+"]",Vi="(?:\\ud83c[\\udde6-\\uddff]){2}",qi="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="["+yc+"]",bc="\\u200d",Lc="(?:"+Ac+"|"+Ic+")",Og="(?:"+Cn+"|"+Ic+")",Ec="(?:"+$i+"(?:d|ll|m|re|s|t|ve))?",kc="(?:"+$i+"(?:D|LL|M|RE|S|T|VE))?",Cc=Ng+"?",Pc="["+xc+"]?",Mg="(?:"+bc+"(?:"+[_c,Vi,qi].join("|")+")"+Pc+Cc+")*",Fg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ug="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rc=Pc+Cc+Mg,Bg="(?:"+[Dg,Vi,qi].join("|")+")"+Rc,Wg="(?:"+[_c+Qr+"?",Qr,Vi,qi,Rg].join("|")+")",Gg=RegExp($i,"g"),$g=RegExp(Qr,"g"),zi=RegExp(Hi+"(?="+Hi+")|"+Wg+Rc,"g"),Hg=RegExp([Cn+"?"+Ac+"+"+Ec+"(?="+[vc,Cn,"$"].join("|")+")",Og+"+"+kc+"(?="+[vc,Cn+Lc,"$"].join("|")+")",Cn+"?"+Lc+"+"+Ec,Cn+"+"+kc,Ug,Fg,wc,Bg].join("|"),"g"),Vg=RegExp("["+bc+Jr+mc+xc+"]"),qg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kg=-1,ce={};ce[Pi]=ce[Ri]=ce[Di]=ce[Ni]=ce[Oi]=ce[Mi]=ce[Fi]=ce[Ui]=ce[Bi]=!0,ce[En]=ce[zr]=ce[dr]=ce[ar]=ce[kn]=ce[cr]=ce[Kr]=ce[Yr]=ce[at]=ce[ur]=ce[bt]=ce[lr]=ce[ct]=ce[pr]=ce[fr]=!1;var ie={};ie[En]=ie[zr]=ie[dr]=ie[kn]=ie[ar]=ie[cr]=ie[Pi]=ie[Ri]=ie[Di]=ie[Ni]=ie[Oi]=ie[at]=ie[ur]=ie[bt]=ie[lr]=ie[ct]=ie[pr]=ie[Zr]=ie[Mi]=ie[Fi]=ie[Ui]=ie[Bi]=!0,ie[Kr]=ie[Yr]=ie[fr]=!1;var Yg={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Zg={"&":"&","<":"<",">":">",'"':""","'":"'"},Xg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Jg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qg=parseFloat,jg=parseInt,Dc=typeof f=="object"&&f&&f.Object===Object&&f,em=typeof self=="object"&&self&&self.Object===Object&&self,ve=Dc||em||Function("return this")(),Ki=typeof or=="object"&&or&&!or.nodeType&&or,on=Ki&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,Nc=on&&on.exports===Ki,Yi=Nc&&Dc.process,Je=function(){try{var y=on&&on.require&&on.require("util").types;return y||Yi&&Yi.binding&&Yi.binding("util")}catch(A){}}(),Oc=Je&&Je.isArrayBuffer,Mc=Je&&Je.isDate,Fc=Je&&Je.isMap,Uc=Je&&Je.isRegExp,Bc=Je&&Je.isSet,Wc=Je&&Je.isTypedArray;function Ge(y,A,w){switch(w.length){case 0:return y.call(A);case 1:return y.call(A,w[0]);case 2:return y.call(A,w[0],w[1]);case 3:return y.call(A,w[0],w[1],w[2])}return y.apply(A,w)}function tm(y,A,w,P){for(var G=-1,ee=y==null?0:y.length;++G<ee;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Qe(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function nm(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Gc(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!A(y[w],w,y))return!1;return!0}function Ht(y,A){for(var w=-1,P=y==null?0:y.length,G=0,ee=[];++w<P;){var xe=y[w];A(xe,w,y)&&(ee[G++]=xe)}return ee}function jr(y,A){var w=y==null?0:y.length;return!!w&&Pn(y,A,0)>-1}function Zi(y,A,w){for(var P=-1,G=y==null?0:y.length;++P<G;)if(w(A,y[P]))return!0;return!1}function le(y,A){for(var w=-1,P=y==null?0:y.length,G=Array(P);++w<P;)G[w]=A(y[w],w,y);return G}function Vt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function Xi(y,A,w,P){var G=-1,ee=y==null?0:y.length;for(P&&ee&&(w=y[++G]);++G<ee;)w=A(w,y[G],G,y);return w}function rm(y,A,w,P){var G=y==null?0:y.length;for(P&&G&&(w=y[--G]);G--;)w=A(w,y[G],G,y);return w}function Ji(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(A(y[w],w,y))return!0;return!1}var om=Qi("length");function im(y){return y.split("")}function sm(y){return y.match(gg)||[]}function $c(y,A,w){var P;return w(y,function(G,ee,xe){if(A(G,ee,xe))return P=ee,!1}),P}function eo(y,A,w,P){for(var G=y.length,ee=w+(P?1:-1);P?ee--:++ee<G;)if(A(y[ee],ee,y))return ee;return-1}function Pn(y,A,w){return A===A?ym(y,A,w):eo(y,Hc,w)}function am(y,A,w,P){for(var G=w-1,ee=y.length;++G<ee;)if(P(y[G],A))return G;return-1}function Hc(y){return y!==y}function Vc(y,A){var w=y==null?0:y.length;return w?es(y,A)/w:qr}function Qi(y){return function(A){return A==null?n:A[y]}}function ji(y){return function(A){return y==null?n:y[A]}}function qc(y,A,w,P,G){return G(y,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function cm(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function es(y,A){for(var w,P=-1,G=y.length;++P<G;){var ee=A(y[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function ts(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function um(y,A){return le(A,function(w){return[w,y[w]]})}function zc(y){return y&&y.slice(0,Xc(y)+1).replace(Gi,"")}function $e(y){return function(A){return y(A)}}function ns(y,A){return le(A,function(w){return y[w]})}function gr(y,A){return y.has(A)}function Kc(y,A){for(var w=-1,P=y.length;++w<P&&Pn(A,y[w],0)>-1;);return w}function Yc(y,A){for(var w=y.length;w--&&Pn(A,y[w],0)>-1;);return w}function lm(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var pm=ji(Yg),fm=ji(Zg);function dm(y){return"\\"+Jg[y]}function gm(y,A){return y==null?n:y[A]}function Rn(y){return Vg.test(y)}function mm(y){return qg.test(y)}function Tm(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function rs(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function Zc(y,A){return function(w){return y(A(w))}}function qt(y,A){for(var w=-1,P=y.length,G=0,ee=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,ee[G++]=w)}return ee}function to(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function hm(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function ym(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function xm(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function Dn(y){return Rn(y)?vm(y):om(y)}function ut(y){return Rn(y)?wm(y):im(y)}function Xc(y){for(var A=y.length;A--&&lg.test(y.charAt(A)););return A}var Sm=ji(Xg);function vm(y){for(var A=zi.lastIndex=0;zi.test(y);)++A;return A}function wm(y){return y.match(zi)||[]}function Am(y){return y.match(Hg)||[]}var Im=function y(A){A=A==null?ve:zt.defaults(ve.Object(),A,zt.pick(ve,zg));var w=A.Array,P=A.Date,G=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,os=A.RegExp,_m=A.String,je=A.TypeError,no=w.prototype,bm=ee.prototype,Nn=oe.prototype,ro=A["__core-js_shared__"],oo=bm.toString,re=Nn.hasOwnProperty,Lm=0,Jc=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),io=Nn.toString,Em=oo.call(oe),km=ve._,Cm=os("^"+oo.call(re).replace(Wi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),so=Nc?A.Buffer:n,Kt=A.Symbol,ao=A.Uint8Array,Qc=so?so.allocUnsafe:n,co=Zc(oe.getPrototypeOf,oe),jc=oe.create,eu=Nn.propertyIsEnumerable,uo=no.splice,tu=Kt?Kt.isConcatSpreadable:n,mr=Kt?Kt.iterator:n,sn=Kt?Kt.toStringTag:n,lo=function(){try{var e=pn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Pm=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,Rm=P&&P.now!==ve.Date.now&&P.now,Dm=A.setTimeout!==ve.setTimeout&&A.setTimeout,po=xe.ceil,fo=xe.floor,is=oe.getOwnPropertySymbols,Nm=so?so.isBuffer:n,nu=A.isFinite,Om=no.join,Mm=Zc(oe.keys,oe),Se=xe.max,Ee=xe.min,Fm=P.now,Um=A.parseInt,ru=xe.random,Bm=no.reverse,ss=pn(A,"DataView"),Tr=pn(A,"Map"),as=pn(A,"Promise"),On=pn(A,"Set"),hr=pn(A,"WeakMap"),yr=pn(oe,"create"),go=hr&&new hr,Mn={},Wm=fn(ss),Gm=fn(Tr),$m=fn(as),Hm=fn(On),Vm=fn(hr),mo=Kt?Kt.prototype:n,xr=mo?mo.valueOf:n,ou=mo?mo.toString:n;function l(e){if(fe(e)&&!H(e)&&!(e instanceof X)){if(e instanceof et)return e;if(re.call(e,"__wrapped__"))return il(e)}return new et(e)}var Fn=function(){function e(){}return function(t){if(!pe(t))return{};if(jc)return jc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function To(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:og,evaluate:ig,interpolate:dc,variable:"",imports:{_:l}},l.prototype=To.prototype,l.prototype.constructor=l,et.prototype=Fn(To.prototype),et.prototype.constructor=et;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mt,this.__views__=[]}function qm(){var e=new X(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function zm(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Km(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=ih(0,c,this.__views__),T=p.start,h=p.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,N=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&N==x)return Eu(e,this.__actions__);var U=[];e:for(;x--&&C<N;){_+=t;for(var z=-1,B=e[_];++z<L;){var Z=b[z],J=Z.iteratee,qe=Z.type,De=J(B);if(qe==Gd)B=De;else if(!De){if(qe==cc)continue e;break e}}U[C++]=B}return U}X.prototype=Fn(To.prototype),X.prototype.constructor=X;function an(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function Ym(){this.__data__=yr?yr(null):{},this.size=0}function Zm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Xm(e){var t=this.__data__;if(yr){var r=t[e];return r===v?n:r}return re.call(t,e)?t[e]:n}function Jm(e){var t=this.__data__;return yr?t[e]!==n:re.call(t,e)}function Qm(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=yr&&t===n?v:t,this}an.prototype.clear=Ym,an.prototype.delete=Zm,an.prototype.get=Xm,an.prototype.has=Jm,an.prototype.set=Qm;function Lt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function jm(){this.__data__=[],this.size=0}function eT(e){var t=this.__data__,r=ho(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():uo.call(t,r,1),--this.size,!0}function tT(e){var t=this.__data__,r=ho(t,e);return r<0?n:t[r][1]}function nT(e){return ho(this.__data__,e)>-1}function rT(e,t){var r=this.__data__,a=ho(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Lt.prototype.clear=jm,Lt.prototype.delete=eT,Lt.prototype.get=tT,Lt.prototype.has=nT,Lt.prototype.set=rT;function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function oT(){this.size=0,this.__data__={hash:new an,map:new(Tr||Lt),string:new an}}function iT(e){var t=ko(this,e).delete(e);return this.size-=t?1:0,t}function sT(e){return ko(this,e).get(e)}function aT(e){return ko(this,e).has(e)}function cT(e,t){var r=ko(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Et.prototype.clear=oT,Et.prototype.delete=iT,Et.prototype.get=sT,Et.prototype.has=aT,Et.prototype.set=cT;function cn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}function uT(e){return this.__data__.set(e,v),this}function lT(e){return this.__data__.has(e)}cn.prototype.add=cn.prototype.push=uT,cn.prototype.has=lT;function lt(e){var t=this.__data__=new Lt(e);this.size=t.size}function pT(){this.__data__=new Lt,this.size=0}function fT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function dT(e){return this.__data__.get(e)}function gT(e){return this.__data__.has(e)}function mT(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!Tr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(a)}return r.set(e,t),this.size=r.size,this}lt.prototype.clear=pT,lt.prototype.delete=fT,lt.prototype.get=dT,lt.prototype.has=gT,lt.prototype.set=mT;function iu(e,t){var r=H(e),a=!r&&dn(e),c=!r&&!a&&Qt(e),p=!r&&!a&&!c&&Gn(e),T=r||a||c||p,h=T?ts(e.length,_m):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Rt(_,x)))&&h.push(_);return h}function su(e){var t=e.length;return t?e[ys(0,t-1)]:n}function TT(e,t){return Co(Ne(e),un(t,0,e.length))}function hT(e){return Co(Ne(e))}function cs(e,t,r){(r!==n&&!pt(e[t],r)||r===n&&!(t in e))&&kt(e,t,r)}function Sr(e,t,r){var a=e[t];(!(re.call(e,t)&&pt(a,r))||r===n&&!(t in e))&&kt(e,t,r)}function ho(e,t){for(var r=e.length;r--;)if(pt(e[r][0],t))return r;return-1}function yT(e,t,r,a){return Yt(e,function(c,p,T){t(a,c,r(c),T)}),a}function au(e,t){return e&&ht(t,we(t),e)}function xT(e,t){return e&&ht(t,Me(t),e)}function kt(e,t,r){t=="__proto__"&&lo?lo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function us(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:Hs(e,t[r]);return c}function un(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function tt(e,t,r,a,c,p){var T,h=t&D,x=t&$,_=t&M;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!pe(e))return e;var b=H(e);if(b){if(T=ah(e),!h)return Ne(e,T)}else{var L=ke(e),C=L==Yr||L==uc;if(Qt(e))return Pu(e,h);if(L==bt||L==En||C&&!c){if(T=x||C?{}:Xu(e),!h)return x?XT(e,xT(T,e)):ZT(e,au(T,e))}else{if(!ie[L])return c?e:{};T=ch(e,L,h)}}p||(p=new lt);var N=p.get(e);if(N)return N;p.set(e,T),_l(e)?e.forEach(function(B){T.add(tt(B,t,r,B,e,p))}):Al(e)&&e.forEach(function(B,Z){T.set(Z,tt(B,t,r,Z,e,p))});var U=_?x?ks:Es:x?Me:we,z=b?n:U(e);return Qe(z||e,function(B,Z){z&&(Z=B,B=e[Z]),Sr(T,Z,tt(B,t,r,Z,e,p))}),T}function ST(e){var t=we(e);return function(r){return cu(r,e,t)}}function cu(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],p=t[c],T=e[c];if(T===n&&!(c in e)||!p(T))return!1}return!0}function uu(e,t,r){if(typeof e!="function")throw new je(m);return Lr(function(){e.apply(n,r)},t)}function vr(e,t,r,a){var c=-1,p=jr,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=le(t,$e(r))),a?(p=Zi,T=!1):t.length>=i&&(p=gr,T=!1,t=new cn(t));e:for(;++c<h;){var b=e[c],L=r==null?b:r(b);if(b=a||b!==0?b:0,T&&L===L){for(var C=_;C--;)if(t[C]===L)continue e;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Yt=Mu(Tt),lu=Mu(ps,!0);function vT(e,t){var r=!0;return Yt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function yo(e,t,r){for(var a=-1,c=e.length;++a<c;){var p=e[a],T=t(p);if(T!=null&&(h===n?T===T&&!Ve(T):r(T,h)))var h=T,x=p}return x}function wT(e,t,r,a){var c=e.length;for(r=q(r),r<0&&(r=-r>c?0:c+r),a=a===n||a>c?c:q(a),a<0&&(a+=c),a=r>a?0:Ll(a);r<a;)e[r++]=t;return e}function pu(e,t){var r=[];return Yt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function be(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=lh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Vt(c,h):a||(c[c.length]=h)}return c}var ls=Fu(),fu=Fu(!0);function Tt(e,t){return e&&ls(e,t,we)}function ps(e,t){return e&&fu(e,t,we)}function xo(e,t){return Ht(t,function(r){return Dt(e[r])})}function ln(e,t){t=Xt(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[yt(t[r++])];return r&&r==a?e:n}function du(e,t,r){var a=t(e);return H(e)?a:Vt(a,r(e))}function Pe(e){return e==null?e===n?Jd:Zd:sn&&sn in oe(e)?oh(e):hh(e)}function fs(e,t){return e>t}function AT(e,t){return e!=null&&re.call(e,t)}function IT(e,t){return e!=null&&t in oe(e)}function _T(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function ds(e,t,r){for(var a=r?Zi:jr,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,_=[];T--;){var b=e[T];T&&t&&(b=le(b,$e(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new cn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var N=b[L],U=t?t(N):N;if(N=r||N!==0?N:0,!(C?gr(C,U):a(_,U,r))){for(T=p;--T;){var z=h[T];if(!(z?gr(z,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(N)}}return _}function bT(e,t,r,a){return Tt(e,function(c,p,T){t(a,r(c),p,T)}),a}function wr(e,t,r){t=Xt(t,e),e=el(e,t);var a=e==null?e:e[yt(rt(t))];return a==null?n:Ge(a,e,r)}function gu(e){return fe(e)&&Pe(e)==En}function LT(e){return fe(e)&&Pe(e)==dr}function ET(e){return fe(e)&&Pe(e)==cr}function Ar(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:kT(e,t,r,a,Ar,c)}function kT(e,t,r,a,c,p){var T=H(e),h=H(t),x=T?zr:ke(e),_=h?zr:ke(t);x=x==En?bt:x,_=_==En?bt:_;var b=x==bt,L=_==bt,C=x==_;if(C&&Qt(e)){if(!Qt(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new lt),T||Gn(e)?Ku(e,t,r,a,c,p):nh(e,t,x,r,a,c,p);if(!(r&ue)){var N=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(N||U){var z=N?e.value():e,B=U?t.value():t;return p||(p=new lt),c(z,B,r,a,p)}}return C?(p||(p=new lt),rh(e,t,r,a,c,p)):!1}function CT(e){return fe(e)&&ke(e)==at}function gs(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],_=e[x],b=h[1];if(T&&h[2]){if(_===n&&!(x in e))return!1}else{var L=new lt;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?Ar(b,_,ue|ye,a,L):C))return!1}}return!0}function mu(e){if(!pe(e)||fh(e))return!1;var t=Dt(e)?Cm:Sg;return t.test(fn(e))}function PT(e){return fe(e)&&Pe(e)==lr}function RT(e){return fe(e)&&ke(e)==ct}function DT(e){return fe(e)&&Mo(e.length)&&!!ce[Pe(e)]}function Tu(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?H(e)?xu(e[0],e[1]):yu(e):Ul(e)}function ms(e){if(!br(e))return Mm(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function NT(e){if(!pe(e))return Th(e);var t=br(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function Ts(e,t){return e<t}function hu(e,t){var r=-1,a=Oe(e)?w(e.length):[];return Yt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function yu(e){var t=Ps(e);return t.length==1&&t[0][2]?Qu(t[0][0],t[0][1]):function(r){return r===e||gs(r,e,t)}}function xu(e,t){return Ds(e)&&Ju(t)?Qu(yt(e),t):function(r){var a=Hs(r,e);return a===n&&a===t?Vs(r,e):Ar(t,a,ue|ye)}}function So(e,t,r,a,c){e!==t&&ls(t,function(p,T){if(c||(c=new lt),pe(p))OT(e,t,T,r,So,a,c);else{var h=a?a(Os(e,T),p,T+"",e,t,c):n;h===n&&(h=p),cs(e,T,h)}},Me)}function OT(e,t,r,a,c,p,T){var h=Os(e,r),x=Os(t,r),_=T.get(x);if(_){cs(e,r,_);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=H(x),N=!C&&Qt(x),U=!C&&!N&&Gn(x);b=x,C||N||U?H(h)?b=h:me(h)?b=Ne(h):N?(L=!1,b=Pu(x,!0)):U?(L=!1,b=Ru(x,!0)):b=[]:Er(x)||dn(x)?(b=h,dn(h)?b=El(h):(!pe(h)||Dt(h))&&(b=Xu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),cs(e,r,b)}function Su(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Rt(t,r)?e[t]:n}function vu(e,t,r){t.length?t=le(t,function(p){return H(p)?function(T){return ln(T,p.length===1?p[0]:p)}:p}):t=[Fe];var a=-1;t=le(t,$e(F()));var c=hu(e,function(p,T,h){var x=le(t,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return cm(c,function(p,T){return YT(p,T,r)})}function MT(e,t){return wu(e,t,function(r,a){return Vs(e,a)})}function wu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=ln(e,T);r(h,T)&&Ir(p,Xt(T,e),h)}return p}function FT(e){return function(t){return ln(t,e)}}function hs(e,t,r,a){var c=a?am:Pn,p=-1,T=t.length,h=e;for(e===t&&(t=Ne(t)),r&&(h=le(e,$e(r)));++p<T;)for(var x=0,_=t[p],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&uo.call(h,x,1),uo.call(e,x,1);return e}function Au(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Rt(c)?uo.call(e,c,1):vs(e,c)}}return e}function ys(e,t){return e+fo(ru()*(t-e+1))}function UT(e,t,r,a){for(var c=-1,p=Se(po((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function xs(e,t){var r="";if(!e||t<1||t>$t)return r;do t%2&&(r+=e),t=fo(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Ms(ju(e,t,Fe),e+"")}function BT(e){return su($n(e))}function WT(e,t){var r=$n(e);return Co(r,un(t,0,r.length))}function Ir(e,t,r,a){if(!pe(e))return e;t=Xt(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=yt(t[c]),_=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];_=a?a(b,x,h):n,_===n&&(_=pe(b)?b:Rt(t[c+1])?[]:{})}Sr(h,x,_),h=h[x]}return e}var Iu=go?function(e,t){return go.set(e,t),e}:Fe,GT=lo?function(e,t){return lo(e,"toString",{configurable:!0,enumerable:!1,value:zs(t),writable:!0})}:Fe;function $T(e){return Co($n(e))}function nt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=w(c);++a<c;)p[a]=e[a+t];return p}function HT(e,t){var r;return Yt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function vo(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=qd){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return Ss(e,t,Fe,r)}function Ss(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<p;){var b=fo((c+p)/2),L=r(e[b]),C=L!==n,N=L===null,U=L===L,z=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!N):x?B=U&&C&&!N&&(a||!z):N||z?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,Vd)}function _u(e,t){for(var r=-1,a=e.length,c=0,p=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!pt(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function bu(e){return typeof e=="number"?e:Ve(e)?qr:+e}function He(e){if(typeof e=="string")return e;if(H(e))return le(e,He)+"";if(Ve(e))return ou?ou.call(e):"";var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function Zt(e,t,r){var a=-1,c=jr,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=Zi;else if(p>=i){var _=t?null:eh(e);if(_)return to(_);T=!1,c=gr,x=new cn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function vs(e,t){return t=Xt(t,e),e=el(e,t),e==null||delete e[yt(rt(t))]}function Lu(e,t,r,a){return Ir(e,t,r(ln(e,t)),a)}function wo(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?nt(e,a?0:p,a?p+1:c):nt(e,a?p+1:0,a?c:p)}function Eu(e,t){var r=e;return r instanceof X&&(r=r.value()),Xi(t,function(a,c){return c.func.apply(c.thisArg,Vt([a],c.args))},r)}function ws(e,t,r){var a=e.length;if(a<2)return a?Zt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=vr(p[c]||T,e[h],t,r));return Zt(be(p,1),t,r)}function ku(e,t,r){for(var a=-1,c=e.length,p=t.length,T={};++a<c;){var h=a<p?t[a]:n;r(T,e[a],h)}return T}function As(e){return me(e)?e:[]}function Is(e){return typeof e=="function"?e:Fe}function Xt(e,t){return H(e)?e:Ds(e,t)?[e]:ol(te(e))}var VT=Y;function Jt(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:nt(e,t,r)}var Cu=Pm||function(e){return ve.clearTimeout(e)};function Pu(e,t){if(t)return e.slice();var r=e.length,a=Qc?Qc(r):new e.constructor(r);return e.copy(a),a}function _s(e){var t=new e.constructor(e.byteLength);return new ao(t).set(new ao(e)),t}function qT(e,t){var r=t?_s(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function zT(e){var t=new e.constructor(e.source,gc.exec(e));return t.lastIndex=e.lastIndex,t}function KT(e){return xr?oe(xr.call(e)):{}}function Ru(e,t){var r=t?_s(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Du(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function YT(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Du(c[a],p[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function Nu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,_=Se(p-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Ou(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var N=c;++x<_;)L[N+x]=t[x];for(;++T<h;)(C||c<p)&&(L[N+r[T]]=e[c++]);return L}function Ne(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function ht(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?kt(r,h,x):Sr(r,h,x)}return r}function ZT(e,t){return ht(e,Rs(e),t)}function XT(e,t){return ht(e,Yu(e),t)}function Ao(e,t){return function(r,a){var c=H(r)?tm:yT,p=t?t():{};return c(r,e,F(a,2),p)}}function Un(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Mu(e,t){return function(r,a){if(r==null)return r;if(!Oe(r))return e(r,a);for(var c=r.length,p=t?c:-1,T=oe(r);(t?p--:++p<c)&&a(T[p],p,T)!==!1;);return r}}function Fu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function JT(e,t,r){var a=t&ge,c=_r(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Uu(e){return function(t){t=te(t);var r=Rn(t)?ut(t):n,a=r?r[0]:t.charAt(0),c=r?Jt(r,1).join(""):t.slice(1);return a[e]()+c}}function Bn(e){return function(t){return Xi(Ml(Ol(t).replace(Gg,"")),e,"")}}function _r(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Fn(e.prototype),a=e.apply(r,t);return pe(a)?a:r}}function QT(e,t,r){var a=_r(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=Wn(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==x&&T[p-1]!==x?[]:qt(T,x);if(p-=_.length,p<r)return Hu(e,t,Io,c.placeholder,n,T,_,n,n,r-p);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Bu(e){return function(t,r,a){var c=oe(t);if(!Oe(t)){var p=F(r,3);t=we(t),r=function(h){return p(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[p?t[T]:T]:n}}function Wu(e){return Pt(function(t){var r=t.length,a=r,c=et.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new je(m);if(c&&!T&&Eo(p)=="wrapper")var T=new et([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=Eo(p),x=h=="wrapper"?Cs(p):n;x&&Ns(x[0])&&x[1]==(_t|dt|gt|sr)&&!x[4].length&&x[9]==1?T=T[Eo(x[0])].apply(T,x[3]):T=p.length==1&&Ns(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&H(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,_):b;++L<r;)C=t[L].call(this,C);return C}})}function Io(e,t,r,a,c,p,T,h,x,_){var b=t&_t,L=t&ge,C=t&_e,N=t&(dt|bn),U=t&Ci,z=C?n:_r(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(N)var De=Wn(B),ze=lm(J,De);if(a&&(J=Nu(J,a,c,N)),p&&(J=Ou(J,p,T,N)),Z-=ze,N&&Z<_){var Te=qt(J,De);return Hu(e,t,Io,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ot=C?ft[e]:e;return Z=J.length,h?J=yh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ot=z||_r(Ot)),Ot.apply(ft,J)}return B}function Gu(e,t){return function(r,a){return bT(r,e,t(a),{})}}function _o(e,t){return function(r,a){var c;if(r===n&&a===n)return t;if(r!==n&&(c=r),a!==n){if(c===n)return a;typeof r=="string"||typeof a=="string"?(r=He(r),a=He(a)):(r=bu(r),a=bu(a)),c=e(r,a)}return c}}function bs(e){return Pt(function(t){return t=le(t,$e(F())),Y(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function bo(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?xs(t,e):t;var a=xs(t,po(e/Dn(t)));return Rn(t)?Jt(ut(a),0,e).join(""):a.slice(0,e)}function jT(e,t,r,a){var c=t&ge,p=_r(e);function T(){for(var h=-1,x=arguments.length,_=-1,b=a.length,L=w(b+x),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function $u(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Nt(t),r===n?(r=t,t=0):r=Nt(r),a=a===n?t<r?1:-1:Nt(a),UT(t,r,a,e)}}function Lo(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ot(t),r=ot(r)),e(t,r)}}function Hu(e,t,r,a,c,p,T,h,x,_){var b=t&dt,L=b?T:n,C=b?n:T,N=b?p:n,U=b?n:p;t|=b?gt:Ln,t&=~(b?Ln:gt),t&ac||(t&=~(ge|_e));var z=[e,t,c,N,L,U,C,h,x,_],B=r.apply(n,z);return Ns(e)&&tl(B,z),B.placeholder=a,nl(B,e,t)}function Ls(e){var t=xe[e];return function(r,a){if(r=ot(r),a=a==null?0:Ee(q(a),292),a&&nu(r)){var c=(te(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(te(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var eh=On&&1/to(new On([,-0]))[1]==rn?function(e){return new On(e)}:Zs;function Vu(e){return function(t){var r=ke(t);return r==at?rs(t):r==ct?hm(t):um(t,e(t))}}function Ct(e,t,r,a,c,p,T,h){var x=t&_e;if(!x&&typeof e!="function")throw new je(m);var _=a?a.length:0;if(_||(t&=~(gt|Ln),a=c=n),T=T===n?T:Se(q(T),0),h=h===n?h:q(h),_-=c?c.length:0,t&Ln){var b=a,L=c;a=c=n}var C=x?n:Cs(e),N=[e,t,r,a,c,b,L,p,T,h];if(C&&mh(N,C),e=N[0],t=N[1],r=N[2],a=N[3],c=N[4],h=N[9]=N[9]===n?x?0:e.length:Se(N[9]-_,0),!h&&t&(dt|bn)&&(t&=~(dt|bn)),!t||t==ge)var U=JT(e,t,r);else t==dt||t==bn?U=QT(e,t,h):(t==gt||t==(ge|gt))&&!c.length?U=jT(e,t,r,a):U=Io.apply(n,N);var z=C?Iu:tl;return nl(z(U,N),e,t)}function qu(e,t,r,a){return e===n||pt(e,Nn[r])&&!re.call(a,r)?t:e}function zu(e,t,r,a,c,p){return pe(e)&&pe(t)&&(p.set(t,e),So(e,t,n,zu,p),p.delete(t)),e}function th(e){return Er(e)?n:e}function Ku(e,t,r,a,c,p){var T=r&ue,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,N=r&ye?new cn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],z=t[L];if(a)var B=T?a(z,U,L,t,e,p):a(U,z,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(N){if(!Ji(t,function(Z,J){if(!gr(N,J)&&(U===Z||c(U,Z,r,a,p)))return N.push(J)})){C=!1;break}}else if(!(U===z||c(U,z,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function nh(e,t,r,a,c,p,T){switch(r){case kn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dr:return!(e.byteLength!=t.byteLength||!p(new ao(e),new ao(t)));case ar:case cr:case ur:return pt(+e,+t);case Kr:return e.name==t.name&&e.message==t.message;case lr:case pr:return e==t+"";case at:var h=rs;case ct:var x=a&ue;if(h||(h=to),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=Ku(h(e),h(t),a,c,p,T);return T.delete(e),b;case Zr:if(xr)return xr.call(e)==xr.call(t)}return!1}function rh(e,t,r,a,c,p){var T=r&ue,h=Es(e),x=h.length,_=Es(t),b=_.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var N=p.get(e),U=p.get(t);if(N&&U)return N==t&&U==e;var z=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var qe=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(qe===n?Z===J||c(Z,J,r,a,p):qe)){z=!1;break}B||(B=C=="constructor")}if(z&&!B){var De=e.constructor,ze=t.constructor;De!=ze&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof ze=="function"&&ze instanceof ze)&&(z=!1)}return p.delete(e),p.delete(t),z}function Pt(e){return Ms(ju(e,n,cl),e+"")}function Es(e){return du(e,we,Rs)}function ks(e){return du(e,Me,Yu)}var Cs=go?function(e){return go.get(e)}:Zs;function Eo(e){for(var t=e.name+"",r=Mn[t],a=re.call(Mn,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function Wn(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||Ks;return e=e===Ks?Tu:e,arguments.length?e(arguments[0],arguments[1]):e}function ko(e,t){var r=e.__data__;return ph(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ps(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Ju(c)]}return t}function pn(e,t){var r=gm(e,t);return mu(r)?r:n}function oh(e){var t=re.call(e,sn),r=e[sn];try{e[sn]=n;var a=!0}catch(p){}var c=io.call(e);return a&&(t?e[sn]=r:delete e[sn]),c}var Rs=is?function(e){return e==null?[]:(e=oe(e),Ht(is(e),function(t){return eu.call(e,t)}))}:Xs,Yu=is?function(e){for(var t=[];e;)Vt(t,Rs(e)),e=co(e);return t}:Xs,ke=Pe;(ss&&ke(new ss(new ArrayBuffer(1)))!=kn||Tr&&ke(new Tr)!=at||as&&ke(as.resolve())!=lc||On&&ke(new On)!=ct||hr&&ke(new hr)!=fr)&&(ke=function(e){var t=Pe(e),r=t==bt?e.constructor:n,a=r?fn(r):"";if(a)switch(a){case Wm:return kn;case Gm:return at;case $m:return lc;case Hm:return ct;case Vm:return fr}return t});function ih(e,t,r){for(var a=-1,c=r.length;++a<c;){var p=r[a],T=p.size;switch(p.type){case"drop":e+=T;break;case"dropRight":t-=T;break;case"take":t=Ee(t,e+T);break;case"takeRight":e=Se(e,t-T);break}}return{start:e,end:t}}function sh(e){var t=e.match(fg);return t?t[1].split(dg):[]}function Zu(e,t,r){t=Xt(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=yt(t[a]);if(!(p=e!=null&&r(e,T)))break;e=e[T]}return p||++a!=c?p:(c=e==null?0:e.length,!!c&&Mo(c)&&Rt(T,c)&&(H(e)||dn(e)))}function ah(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Xu(e){return typeof e.constructor=="function"&&!br(e)?Fn(co(e)):{}}function ch(e,t,r){var a=e.constructor;switch(t){case dr:return _s(e);case ar:case cr:return new a(+e);case kn:return qT(e,r);case Pi:case Ri:case Di:case Ni:case Oi:case Mi:case Fi:case Ui:case Bi:return Ru(e,r);case at:return new a;case ur:case pr:return new a(e);case lr:return zT(e);case ct:return new a;case Zr:return KT(e)}}function uh(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(pg,`{
|
|
1
|
+
"use strict";var Nv=Object.create;var kr=Object.defineProperty,Ov=Object.defineProperties,Mv=Object.getOwnPropertyDescriptor,Fv=Object.getOwnPropertyDescriptors,Uv=Object.getOwnPropertyNames,Bo=Object.getOwnPropertySymbols,Bv=Object.getPrototypeOf,Qs=Object.prototype.hasOwnProperty,Gl=Object.prototype.propertyIsEnumerable;var Wl=(n,o,i)=>o in n?kr(n,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[o]=i,O=(n,o)=>{for(var i in o||(o={}))Qs.call(o,i)&&Wl(n,i,o[i]);if(Bo)for(var i of Bo(o))Gl.call(o,i)&&Wl(n,i,o[i]);return n},Q=(n,o)=>Ov(n,Fv(o));var Cr=(n,o)=>{var i={};for(var u in n)Qs.call(n,u)&&o.indexOf(u)<0&&(i[u]=n[u]);if(n!=null&&Bo)for(var u of Bo(n))o.indexOf(u)<0&&Gl.call(n,u)&&(i[u]=n[u]);return i};var W=(n,o)=>()=>(n&&(o=n(n=0)),o);var Pr=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports),gn=(n,o)=>{for(var i in o)kr(n,i,{get:o[i],enumerable:!0})},$l=(n,o,i,u)=>{if(o&&typeof o=="object"||typeof o=="function")for(let m of Uv(o))!Qs.call(n,m)&&m!==i&&kr(n,m,{get:()=>o[m],enumerable:!(u=Mv(o,m))||u.enumerable});return n};var V=(n,o,i)=>(i=n!=null?Nv(Bv(n)):{},$l(o||!n||!n.__esModule?kr(i,"default",{value:n,enumerable:!0}):i,n)),Rr=n=>$l(kr({},"__esModule",{value:!0}),n);var K=(n,o,i)=>new Promise((u,m)=>{var S=E=>{try{k(i.next(E))}catch(D){m(D)}},v=E=>{try{k(i.throw(E))}catch(D){m(D)}},k=E=>E.done?u(E.value):Promise.resolve(E.value).then(S,v);k((i=i.apply(n,o)).next())});var ql=Pr(Wo=>{"use strict";s();Wo.byteLength=Gv;Wo.toByteArray=Hv;Wo.fromByteArray=zv;var xt=[],it=[],Wv=typeof Uint8Array!="undefined"?Uint8Array:Array,js="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(mn=0,Hl=js.length;mn<Hl;++mn)xt[mn]=js[mn],it[js.charCodeAt(mn)]=mn;var mn,Hl;it["-".charCodeAt(0)]=62;it["_".charCodeAt(0)]=63;function Vl(n){var o=n.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=n.indexOf("=");i===-1&&(i=o);var u=i===o?0:4-i%4;return[i,u]}function Gv(n){var o=Vl(n),i=o[0],u=o[1];return(i+u)*3/4-u}function $v(n,o,i){return(o+i)*3/4-i}function Hv(n){var o,i=Vl(n),u=i[0],m=i[1],S=new Wv($v(n,u,m)),v=0,k=m>0?u-4:u,E;for(E=0;E<k;E+=4)o=it[n.charCodeAt(E)]<<18|it[n.charCodeAt(E+1)]<<12|it[n.charCodeAt(E+2)]<<6|it[n.charCodeAt(E+3)],S[v++]=o>>16&255,S[v++]=o>>8&255,S[v++]=o&255;return m===2&&(o=it[n.charCodeAt(E)]<<2|it[n.charCodeAt(E+1)]>>4,S[v++]=o&255),m===1&&(o=it[n.charCodeAt(E)]<<10|it[n.charCodeAt(E+1)]<<4|it[n.charCodeAt(E+2)]>>2,S[v++]=o>>8&255,S[v++]=o&255),S}function Vv(n){return xt[n>>18&63]+xt[n>>12&63]+xt[n>>6&63]+xt[n&63]}function qv(n,o,i){for(var u,m=[],S=o;S<i;S+=3)u=(n[S]<<16&16711680)+(n[S+1]<<8&65280)+(n[S+2]&255),m.push(Vv(u));return m.join("")}function zv(n){for(var o,i=n.length,u=i%3,m=[],S=16383,v=0,k=i-u;v<k;v+=S)m.push(qv(n,v,v+S>k?k:v+S));return u===1?(o=n[i-1],m.push(xt[o>>2]+xt[o<<4&63]+"==")):u===2&&(o=(n[i-2]<<8)+n[i-1],m.push(xt[o>>10]+xt[o>>4&63]+xt[o<<2&63]+"=")),m.join("")}});var zl=Pr(ea=>{s();ea.read=function(n,o,i,u,m){var S,v,k=m*8-u-1,E=(1<<k)-1,D=E>>1,$=-7,M=i?m-1:0,ue=i?-1:1,ye=n[o+M];for(M+=ue,S=ye&(1<<-$)-1,ye>>=-$,$+=k;$>0;S=S*256+n[o+M],M+=ue,$-=8);for(v=S&(1<<-$)-1,S>>=-$,$+=u;$>0;v=v*256+n[o+M],M+=ue,$-=8);if(S===0)S=1-D;else{if(S===E)return v?NaN:(ye?-1:1)*(1/0);v=v+Math.pow(2,u),S=S-D}return(ye?-1:1)*v*Math.pow(2,S-u)};ea.write=function(n,o,i,u,m,S){var v,k,E,D=S*8-m-1,$=(1<<D)-1,M=$>>1,ue=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,ye=u?0:S-1,ge=u?1:-1,_e=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(k=isNaN(o)?1:0,v=$):(v=Math.floor(Math.log(o)/Math.LN2),o*(E=Math.pow(2,-v))<1&&(v--,E*=2),v+M>=1?o+=ue/E:o+=ue*Math.pow(2,1-M),o*E>=2&&(v++,E/=2),v+M>=$?(k=0,v=$):v+M>=1?(k=(o*E-1)*Math.pow(2,m),v=v+M):(k=o*Math.pow(2,M-1)*Math.pow(2,m),v=0));m>=8;n[i+ye]=k&255,ye+=ge,k/=256,m-=8);for(v=v<<m|k,D+=m;D>0;n[i+ye]=v&255,ye+=ge,v/=256,D-=8);n[i+ye-ge]|=_e*128}});var ip=Pr(Vn=>{"use strict";s();var ta=ql(),Hn=zl(),Kl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Vn.Buffer=I;Vn.SlowBuffer=Qv;Vn.INSPECT_MAX_BYTES=50;var Go=2147483647;Vn.kMaxLength=Go;I.TYPED_ARRAY_SUPPORT=Kv();!I.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 Kv(){try{var n=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(n,o),n.foo()===42}catch(i){return!1}}Object.defineProperty(I.prototype,"parent",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.buffer}});Object.defineProperty(I.prototype,"offset",{enumerable:!0,get:function(){if(!!I.isBuffer(this))return this.byteOffset}});function Mt(n){if(n>Go)throw new RangeError('The value "'+n+'" is invalid for option "size"');var o=new Uint8Array(n);return Object.setPrototypeOf(o,I.prototype),o}function I(n,o,i){if(typeof n=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ia(n)}return Xl(n,o,i)}I.poolSize=8192;function Xl(n,o,i){if(typeof n=="string")return Zv(n,o);if(ArrayBuffer.isView(n))return Xv(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(St(n,ArrayBuffer)||n&&St(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(St(n,SharedArrayBuffer)||n&&St(n.buffer,SharedArrayBuffer)))return ra(n,o,i);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var u=n.valueOf&&n.valueOf();if(u!=null&&u!==n)return I.from(u,o,i);var m=Jv(n);if(m)return m;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return I.from(n[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}I.from=function(n,o,i){return Xl(n,o,i)};Object.setPrototypeOf(I.prototype,Uint8Array.prototype);Object.setPrototypeOf(I,Uint8Array);function Jl(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function Yv(n,o,i){return Jl(n),n<=0?Mt(n):o!==void 0?typeof i=="string"?Mt(n).fill(o,i):Mt(n).fill(o):Mt(n)}I.alloc=function(n,o,i){return Yv(n,o,i)};function ia(n){return Jl(n),Mt(n<0?0:sa(n)|0)}I.allocUnsafe=function(n){return ia(n)};I.allocUnsafeSlow=function(n){return ia(n)};function Zv(n,o){if((typeof o!="string"||o==="")&&(o="utf8"),!I.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var i=Ql(n,o)|0,u=Mt(i),m=u.write(n,o);return m!==i&&(u=u.slice(0,m)),u}function na(n){for(var o=n.length<0?0:sa(n.length)|0,i=Mt(o),u=0;u<o;u+=1)i[u]=n[u]&255;return i}function Xv(n){if(St(n,Uint8Array)){var o=new Uint8Array(n);return ra(o.buffer,o.byteOffset,o.byteLength)}return na(n)}function ra(n,o,i){if(o<0||n.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');var u;return o===void 0&&i===void 0?u=new Uint8Array(n):i===void 0?u=new Uint8Array(n,o):u=new Uint8Array(n,o,i),Object.setPrototypeOf(u,I.prototype),u}function Jv(n){if(I.isBuffer(n)){var o=sa(n.length)|0,i=Mt(o);return i.length===0||n.copy(i,0,0,o),i}if(n.length!==void 0)return typeof n.length!="number"||aa(n.length)?Mt(0):na(n);if(n.type==="Buffer"&&Array.isArray(n.data))return na(n.data)}function sa(n){if(n>=Go)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Go.toString(16)+" bytes");return n|0}function Qv(n){return+n!=n&&(n=0),I.alloc(+n)}I.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==I.prototype};I.compare=function(o,i){if(St(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),St(i,Uint8Array)&&(i=I.from(i,i.offset,i.byteLength)),!I.isBuffer(o)||!I.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===i)return 0;for(var u=o.length,m=i.length,S=0,v=Math.min(u,m);S<v;++S)if(o[S]!==i[S]){u=o[S],m=i[S];break}return u<m?-1:m<u?1:0};I.isEncoding=function(o){switch(String(o).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}};I.concat=function(o,i){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return I.alloc(0);var u;if(i===void 0)for(i=0,u=0;u<o.length;++u)i+=o[u].length;var m=I.allocUnsafe(i),S=0;for(u=0;u<o.length;++u){var v=o[u];if(St(v,Uint8Array))S+v.length>m.length?I.from(v).copy(m,S):Uint8Array.prototype.set.call(m,v,S);else if(I.isBuffer(v))v.copy(m,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=v.length}return m};function Ql(n,o){if(I.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||St(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);var i=n.length,u=arguments.length>2&&arguments[2]===!0;if(!u&&i===0)return 0;for(var m=!1;;)switch(o){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return oa(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return op(n).length;default:if(m)return u?-1:oa(n).length;o=(""+o).toLowerCase(),m=!0}}I.byteLength=Ql;function jv(n,o,i){var u=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,o>>>=0,i<=o))return"";for(n||(n="utf8");;)switch(n){case"hex":return u0(this,o,i);case"utf8":case"utf-8":return ep(this,o,i);case"ascii":return a0(this,o,i);case"latin1":case"binary":return c0(this,o,i);case"base64":return i0(this,o,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l0(this,o,i);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),u=!0}}I.prototype._isBuffer=!0;function Tn(n,o,i){var u=n[o];n[o]=n[i],n[i]=u}I.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<o;i+=2)Tn(this,i,i+1);return this};I.prototype.swap32=function(){var o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<o;i+=4)Tn(this,i,i+3),Tn(this,i+1,i+2);return this};I.prototype.swap64=function(){var o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<o;i+=8)Tn(this,i,i+7),Tn(this,i+1,i+6),Tn(this,i+2,i+5),Tn(this,i+3,i+4);return this};I.prototype.toString=function(){var o=this.length;return o===0?"":arguments.length===0?ep(this,0,o):jv.apply(this,arguments)};I.prototype.toLocaleString=I.prototype.toString;I.prototype.equals=function(o){if(!I.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:I.compare(this,o)===0};I.prototype.inspect=function(){var o="",i=Vn.INSPECT_MAX_BYTES;return o=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(o+=" ... "),"<Buffer "+o+">"};Kl&&(I.prototype[Kl]=I.prototype.inspect);I.prototype.compare=function(o,i,u,m,S){if(St(o,Uint8Array)&&(o=I.from(o,o.offset,o.byteLength)),!I.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(i===void 0&&(i=0),u===void 0&&(u=o?o.length:0),m===void 0&&(m=0),S===void 0&&(S=this.length),i<0||u>o.length||m<0||S>this.length)throw new RangeError("out of range index");if(m>=S&&i>=u)return 0;if(m>=S)return-1;if(i>=u)return 1;if(i>>>=0,u>>>=0,m>>>=0,S>>>=0,this===o)return 0;for(var v=S-m,k=u-i,E=Math.min(v,k),D=this.slice(m,S),$=o.slice(i,u),M=0;M<E;++M)if(D[M]!==$[M]){v=D[M],k=$[M];break}return v<k?-1:k<v?1:0};function jl(n,o,i,u,m){if(n.length===0)return-1;if(typeof i=="string"?(u=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,aa(i)&&(i=m?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(m)return-1;i=n.length-1}else if(i<0)if(m)i=0;else return-1;if(typeof o=="string"&&(o=I.from(o,u)),I.isBuffer(o))return o.length===0?-1:Yl(n,o,i,u,m);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?m?Uint8Array.prototype.indexOf.call(n,o,i):Uint8Array.prototype.lastIndexOf.call(n,o,i):Yl(n,[o],i,u,m);throw new TypeError("val must be string, number or Buffer")}function Yl(n,o,i,u,m){var S=1,v=n.length,k=o.length;if(u!==void 0&&(u=String(u).toLowerCase(),u==="ucs2"||u==="ucs-2"||u==="utf16le"||u==="utf-16le")){if(n.length<2||o.length<2)return-1;S=2,v/=2,k/=2,i/=2}function E(ye,ge){return S===1?ye[ge]:ye.readUInt16BE(ge*S)}var D;if(m){var $=-1;for(D=i;D<v;D++)if(E(n,D)===E(o,$===-1?0:D-$)){if($===-1&&($=D),D-$+1===k)return $*S}else $!==-1&&(D-=D-$),$=-1}else for(i+k>v&&(i=v-k),D=i;D>=0;D--){for(var M=!0,ue=0;ue<k;ue++)if(E(n,D+ue)!==E(o,ue)){M=!1;break}if(M)return D}return-1}I.prototype.includes=function(o,i,u){return this.indexOf(o,i,u)!==-1};I.prototype.indexOf=function(o,i,u){return jl(this,o,i,u,!0)};I.prototype.lastIndexOf=function(o,i,u){return jl(this,o,i,u,!1)};function e0(n,o,i,u){i=Number(i)||0;var m=n.length-i;u?(u=Number(u),u>m&&(u=m)):u=m;var S=o.length;u>S/2&&(u=S/2);for(var v=0;v<u;++v){var k=parseInt(o.substr(v*2,2),16);if(aa(k))return v;n[i+v]=k}return v}function t0(n,o,i,u){return $o(oa(o,n.length-i),n,i,u)}function n0(n,o,i,u){return $o(d0(o),n,i,u)}function r0(n,o,i,u){return $o(op(o),n,i,u)}function o0(n,o,i,u){return $o(g0(o,n.length-i),n,i,u)}I.prototype.write=function(o,i,u,m){if(i===void 0)m="utf8",u=this.length,i=0;else if(u===void 0&&typeof i=="string")m=i,u=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(u)?(u=u>>>0,m===void 0&&(m="utf8")):(m=u,u=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var S=this.length-i;if((u===void 0||u>S)&&(u=S),o.length>0&&(u<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");for(var v=!1;;)switch(m){case"hex":return e0(this,o,i,u);case"utf8":case"utf-8":return t0(this,o,i,u);case"ascii":case"latin1":case"binary":return n0(this,o,i,u);case"base64":return r0(this,o,i,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o0(this,o,i,u);default:if(v)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),v=!0}};I.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function i0(n,o,i){return o===0&&i===n.length?ta.fromByteArray(n):ta.fromByteArray(n.slice(o,i))}function ep(n,o,i){i=Math.min(n.length,i);for(var u=[],m=o;m<i;){var S=n[m],v=null,k=S>239?4:S>223?3:S>191?2:1;if(m+k<=i){var E,D,$,M;switch(k){case 1:S<128&&(v=S);break;case 2:E=n[m+1],(E&192)===128&&(M=(S&31)<<6|E&63,M>127&&(v=M));break;case 3:E=n[m+1],D=n[m+2],(E&192)===128&&(D&192)===128&&(M=(S&15)<<12|(E&63)<<6|D&63,M>2047&&(M<55296||M>57343)&&(v=M));break;case 4:E=n[m+1],D=n[m+2],$=n[m+3],(E&192)===128&&(D&192)===128&&($&192)===128&&(M=(S&15)<<18|(E&63)<<12|(D&63)<<6|$&63,M>65535&&M<1114112&&(v=M))}}v===null?(v=65533,k=1):v>65535&&(v-=65536,u.push(v>>>10&1023|55296),v=56320|v&1023),u.push(v),m+=k}return s0(u)}var Zl=4096;function s0(n){var o=n.length;if(o<=Zl)return String.fromCharCode.apply(String,n);for(var i="",u=0;u<o;)i+=String.fromCharCode.apply(String,n.slice(u,u+=Zl));return i}function a0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]&127);return u}function c0(n,o,i){var u="";i=Math.min(n.length,i);for(var m=o;m<i;++m)u+=String.fromCharCode(n[m]);return u}function u0(n,o,i){var u=n.length;(!o||o<0)&&(o=0),(!i||i<0||i>u)&&(i=u);for(var m="",S=o;S<i;++S)m+=m0[n[S]];return m}function l0(n,o,i){for(var u=n.slice(o,i),m="",S=0;S<u.length-1;S+=2)m+=String.fromCharCode(u[S]+u[S+1]*256);return m}I.prototype.slice=function(o,i){var u=this.length;o=~~o,i=i===void 0?u:~~i,o<0?(o+=u,o<0&&(o=0)):o>u&&(o=u),i<0?(i+=u,i<0&&(i=0)):i>u&&(i=u),i<o&&(i=o);var m=this.subarray(o,i);return Object.setPrototypeOf(m,I.prototype),m};function Ae(n,o,i){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+o>i)throw new RangeError("Trying to access beyond buffer length")}I.prototype.readUintLE=I.prototype.readUIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return m};I.prototype.readUintBE=I.prototype.readUIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o+--i],S=1;i>0&&(S*=256);)m+=this[o+--i]*S;return m};I.prototype.readUint8=I.prototype.readUInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]};I.prototype.readUint16LE=I.prototype.readUInt16LE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]|this[o+1]<<8};I.prototype.readUint16BE=I.prototype.readUInt16BE=function(o,i){return o=o>>>0,i||Ae(o,2,this.length),this[o]<<8|this[o+1]};I.prototype.readUint32LE=I.prototype.readUInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};I.prototype.readUint32BE=I.prototype.readUInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};I.prototype.readIntLE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=this[o],S=1,v=0;++v<i&&(S*=256);)m+=this[o+v]*S;return S*=128,m>=S&&(m-=Math.pow(2,8*i)),m};I.prototype.readIntBE=function(o,i,u){o=o>>>0,i=i>>>0,u||Ae(o,i,this.length);for(var m=i,S=1,v=this[o+--m];m>0&&(S*=256);)v+=this[o+--m]*S;return S*=128,v>=S&&(v-=Math.pow(2,8*i)),v};I.prototype.readInt8=function(o,i){return o=o>>>0,i||Ae(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};I.prototype.readInt16LE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o]|this[o+1]<<8;return u&32768?u|4294901760:u};I.prototype.readInt16BE=function(o,i){o=o>>>0,i||Ae(o,2,this.length);var u=this[o+1]|this[o]<<8;return u&32768?u|4294901760:u};I.prototype.readInt32LE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};I.prototype.readInt32BE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};I.prototype.readFloatLE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Hn.read(this,o,!0,23,4)};I.prototype.readFloatBE=function(o,i){return o=o>>>0,i||Ae(o,4,this.length),Hn.read(this,o,!1,23,4)};I.prototype.readDoubleLE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Hn.read(this,o,!0,52,8)};I.prototype.readDoubleBE=function(o,i){return o=o>>>0,i||Ae(o,8,this.length),Hn.read(this,o,!1,52,8)};function Ue(n,o,i,u,m,S){if(!I.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>m||o<S)throw new RangeError('"value" argument is out of bounds');if(i+u>n.length)throw new RangeError("Index out of range")}I.prototype.writeUintLE=I.prototype.writeUIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Ue(this,o,i,u,S,0)}var v=1,k=0;for(this[i]=o&255;++k<u&&(v*=256);)this[i+k]=o/v&255;return i+u};I.prototype.writeUintBE=I.prototype.writeUIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,u=u>>>0,!m){var S=Math.pow(2,8*u)-1;Ue(this,o,i,u,S,0)}var v=u-1,k=1;for(this[i+v]=o&255;--v>=0&&(k*=256);)this[i+v]=o/k&255;return i+u};I.prototype.writeUint8=I.prototype.writeUInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,255,0),this[i]=o&255,i+1};I.prototype.writeUint16LE=I.prototype.writeUInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeUint16BE=I.prototype.writeUInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,65535,0),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeUint32LE=I.prototype.writeUInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i+3]=o>>>24,this[i+2]=o>>>16,this[i+1]=o>>>8,this[i]=o&255,i+4};I.prototype.writeUint32BE=I.prototype.writeUInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,4294967295,0),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};I.prototype.writeIntLE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Ue(this,o,i,u,S-1,-S)}var v=0,k=1,E=0;for(this[i]=o&255;++v<u&&(k*=256);)o<0&&E===0&&this[i+v-1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeIntBE=function(o,i,u,m){if(o=+o,i=i>>>0,!m){var S=Math.pow(2,8*u-1);Ue(this,o,i,u,S-1,-S)}var v=u-1,k=1,E=0;for(this[i+v]=o&255;--v>=0&&(k*=256);)o<0&&E===0&&this[i+v+1]!==0&&(E=1),this[i+v]=(o/k>>0)-E&255;return i+u};I.prototype.writeInt8=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,1,127,-128),o<0&&(o=255+o+1),this[i]=o&255,i+1};I.prototype.writeInt16LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o&255,this[i+1]=o>>>8,i+2};I.prototype.writeInt16BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,2,32767,-32768),this[i]=o>>>8,this[i+1]=o&255,i+2};I.prototype.writeInt32LE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),this[i]=o&255,this[i+1]=o>>>8,this[i+2]=o>>>16,this[i+3]=o>>>24,i+4};I.prototype.writeInt32BE=function(o,i,u){return o=+o,i=i>>>0,u||Ue(this,o,i,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[i]=o>>>24,this[i+1]=o>>>16,this[i+2]=o>>>8,this[i+3]=o&255,i+4};function tp(n,o,i,u,m,S){if(i+u>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function np(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,4,34028234663852886e22,-34028234663852886e22),Hn.write(n,o,i,u,23,4),i+4}I.prototype.writeFloatLE=function(o,i,u){return np(this,o,i,!0,u)};I.prototype.writeFloatBE=function(o,i,u){return np(this,o,i,!1,u)};function rp(n,o,i,u,m){return o=+o,i=i>>>0,m||tp(n,o,i,8,17976931348623157e292,-17976931348623157e292),Hn.write(n,o,i,u,52,8),i+8}I.prototype.writeDoubleLE=function(o,i,u){return rp(this,o,i,!0,u)};I.prototype.writeDoubleBE=function(o,i,u){return rp(this,o,i,!1,u)};I.prototype.copy=function(o,i,u,m){if(!I.isBuffer(o))throw new TypeError("argument should be a Buffer");if(u||(u=0),!m&&m!==0&&(m=this.length),i>=o.length&&(i=o.length),i||(i=0),m>0&&m<u&&(m=u),m===u||o.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(u<0||u>=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),o.length-i<m-u&&(m=o.length-i+u);var S=m-u;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,u,m):Uint8Array.prototype.set.call(o,this.subarray(u,m),i),S};I.prototype.fill=function(o,i,u,m){if(typeof o=="string"){if(typeof i=="string"?(m=i,i=0,u=this.length):typeof u=="string"&&(m=u,u=this.length),m!==void 0&&typeof m!="string")throw new TypeError("encoding must be a string");if(typeof m=="string"&&!I.isEncoding(m))throw new TypeError("Unknown encoding: "+m);if(o.length===1){var S=o.charCodeAt(0);(m==="utf8"&&S<128||m==="latin1")&&(o=S)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(i<0||this.length<i||this.length<u)throw new RangeError("Out of range index");if(u<=i)return this;i=i>>>0,u=u===void 0?this.length:u>>>0,o||(o=0);var v;if(typeof o=="number")for(v=i;v<u;++v)this[v]=o;else{var k=I.isBuffer(o)?o:I.from(o,m),E=k.length;if(E===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(v=0;v<u-i;++v)this[v+i]=k[v%E]}return this};var p0=/[^+/0-9A-Za-z-_]/g;function f0(n){if(n=n.split("=")[0],n=n.trim().replace(p0,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function oa(n,o){o=o||1/0;for(var i,u=n.length,m=null,S=[],v=0;v<u;++v){if(i=n.charCodeAt(v),i>55295&&i<57344){if(!m){if(i>56319){(o-=3)>-1&&S.push(239,191,189);continue}else if(v+1===u){(o-=3)>-1&&S.push(239,191,189);continue}m=i;continue}if(i<56320){(o-=3)>-1&&S.push(239,191,189),m=i;continue}i=(m-55296<<10|i-56320)+65536}else m&&(o-=3)>-1&&S.push(239,191,189);if(m=null,i<128){if((o-=1)<0)break;S.push(i)}else if(i<2048){if((o-=2)<0)break;S.push(i>>6|192,i&63|128)}else if(i<65536){if((o-=3)<0)break;S.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((o-=4)<0)break;S.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return S}function d0(n){for(var o=[],i=0;i<n.length;++i)o.push(n.charCodeAt(i)&255);return o}function g0(n,o){for(var i,u,m,S=[],v=0;v<n.length&&!((o-=2)<0);++v)i=n.charCodeAt(v),u=i>>8,m=i%256,S.push(m),S.push(u);return S}function op(n){return ta.toByteArray(f0(n))}function $o(n,o,i,u){for(var m=0;m<u&&!(m+i>=o.length||m>=n.length);++m)o[m+i]=n[m];return m}function St(n,o){return n instanceof o||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===o.name}function aa(n){return n!==n}var m0=function(){for(var n="0123456789abcdef",o=new Array(256),i=0;i<16;++i)for(var u=i*16,m=0;m<16;++m)o[u+m]=n[i]+n[m];return o}()});var lp=Pr((MI,up)=>{s();var he=up.exports={},vt,wt;function ca(){throw new Error("setTimeout has not been defined")}function ua(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?vt=setTimeout:vt=ca}catch(n){vt=ca}try{typeof clearTimeout=="function"?wt=clearTimeout:wt=ua}catch(n){wt=ua}})();function sp(n){if(vt===setTimeout)return setTimeout(n,0);if((vt===ca||!vt)&&setTimeout)return vt=setTimeout,setTimeout(n,0);try{return vt(n,0)}catch(o){try{return vt.call(null,n,0)}catch(i){return vt.call(this,n,0)}}}function T0(n){if(wt===clearTimeout)return clearTimeout(n);if((wt===ua||!wt)&&clearTimeout)return wt=clearTimeout,clearTimeout(n);try{return wt(n)}catch(o){try{return wt.call(null,n)}catch(i){return wt.call(this,n)}}}var Ft=[],qn=!1,hn,Ho=-1;function h0(){!qn||!hn||(qn=!1,hn.length?Ft=hn.concat(Ft):Ho=-1,Ft.length&&ap())}function ap(){if(!qn){var n=sp(h0);qn=!0;for(var o=Ft.length;o;){for(hn=Ft,Ft=[];++Ho<o;)hn&&hn[Ho].run();Ho=-1,o=Ft.length}hn=null,qn=!1,T0(n)}}he.nextTick=function(n){var o=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)o[i-1]=arguments[i];Ft.push(new cp(n,o)),Ft.length===1&&!qn&&sp(ap)};function cp(n,o){this.fun=n,this.array=o}cp.prototype.run=function(){this.fun.apply(null,this.array)};he.title="browser";he.browser=!0;he.env={};he.argv=[];he.version="";he.versions={};function Ut(){}he.on=Ut;he.addListener=Ut;he.once=Ut;he.off=Ut;he.removeListener=Ut;he.removeAllListeners=Ut;he.emit=Ut;he.prependListener=Ut;he.prependOnceListener=Ut;he.listeners=function(n){return[]};he.binding=function(n){throw new Error("process.binding is not supported")};he.cwd=function(){return"/"};he.chdir=function(n){throw new Error("process.chdir is not supported")};he.umask=function(){return 0}});var d,g,y0,f,s=W(()=>{d=V(ip()),g=V(lp()),y0=function(n){function o(){var u=this||self;return delete n.prototype.__magic__,u}if(typeof globalThis=="object")return globalThis;if(this)return o();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:o});var i=__magic__;return i}(Object),f=y0});var yn=W(()=>{"use strict";s()});var pp=W(()=>{"use strict";s()});var fp=W(()=>{"use strict";s()});var dp=W(()=>{"use strict";s()});var de=W(()=>{"use strict";s()});var gp=W(()=>{"use strict";s()});var mp=W(()=>{"use strict";s()});var Be=W(()=>{"use strict";s()});var Tp=W(()=>{"use strict";s()});var hp=W(()=>{"use strict";s()});var Ie=W(()=>{"use strict";s();pp();fp();dp();de();gp();mp();Be();Tp();hp()});var la,yp,t_,xp,n_,Sp,r_,o_,i_,vp=W(()=>{"use strict";s();Ie();la={devnet:{id:"devnet",chainId:"D",name:"Devnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://devnet-wallet.multiversx.com",apiAddress:"https://devnet-api.multiversx.com",explorerAddress:"http://devnet-explorer.multiversx.com",apiTimeout:"4000"},testnet:{id:"testnet",chainId:"T",name:"Testnet",egldLabel:"xEGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://testnet-wallet.multiversx.com",apiAddress:"https://testnet-api.multiversx.com",explorerAddress:"http://testnet-explorer.multiversx.com",apiTimeout:"4000"},mainnet:{id:"mainnet",chainId:"1",name:"Mainnet",egldLabel:"EGLD",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"https://maiar.page.link/?apn=com.elrond.maiar.wallet&isi=1519405832&ibi=com.elrond.maiar.wallet&link=https://xportal.com/",walletConnectBridgeAddresses:["https://bridge.walletconnect.org"],walletConnectV2RelayAddresses:["wss://relay.walletconnect.com"],walletAddress:"https://wallet.multiversx.com",apiAddress:"https://api.multiversx.com",explorerAddress:"https://explorer.multiversx.com",apiTimeout:"4000"}},{chainId:yp,egldLabel:t_}=la["devnet"],{chainId:xp,egldLabel:n_}=la["testnet"],{chainId:Sp,egldLabel:r_}=la["mainnet"],o_={["devnet"]:yp,["testnet"]:xp,["mainnet"]:Sp},i_={[yp]:"devnet",[xp]:"testnet",[Sp]:"mainnet"}});var pa=W(()=>{"use strict";s()});var wp=W(()=>{"use strict";s()});var Vo,fa=W(()=>{"use strict";s();Vo="transaction-status-toast-id"});var At,Ap=W(()=>{"use strict";s();At=require("@multiversx/sdk-web-wallet-provider")});var Ip=W(()=>{"use strict";s()});var Dr,qo,_p,zo,bp,zn,se=W(()=>{"use strict";s();yn();vp();pa();wp();fa();Ap();Ip();Dr=5e4,qo=1e9,_p=1,zo="logout",bp="login",zn="0"});var Kn,Ko=W(()=>{"use strict";s();Kn=()=>Date.now()/1e3});var Lp=W(()=>{"use strict";s()});var Ep=W(()=>{"use strict";s()});var da=W(()=>{"use strict";s();Ko();Lp();Ep()});var ma={};gn(ma,{getItem:()=>S0,localStorageKeys:()=>jt,removeItem:()=>v0,setItem:()=>x0});var jt,ga,x0,S0,v0,Yn=W(()=>{"use strict";s();da();jt={loginExpiresAt:"sdk-dapp-login-expires-at",logoutEvent:"sdk-dapp-logout-event"},ga=typeof localStorage!="undefined",x0=({key:n,data:o,expires:i})=>{!ga||localStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},S0=n=>{if(!ga)return;let o=localStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Kn()>=i.expires?(localStorage.removeItem(String(n)),null):i.data},v0=n=>{!ga||localStorage.removeItem(String(n))}});var Ta={};gn(Ta,{clear:()=>Rp,getItem:()=>Cp,removeItem:()=>Pp,setItem:()=>kp,storage:()=>w0});var kp,Cp,Pp,Rp,w0,Dp=W(()=>{"use strict";s();kp=({key:n,data:o,expires:i})=>{sessionStorage.setItem(String(n),JSON.stringify({expires:i,data:o}))},Cp=n=>{let o=sessionStorage.getItem(String(n));if(!o)return null;let i=JSON.parse(o);return!i||!i.hasOwnProperty("expires")||!i.hasOwnProperty("data")?null:Date.now()>=i.expires?(sessionStorage.removeItem(String(n)),null):i.data},Pp=n=>sessionStorage.removeItem(String(n)),Rp=()=>sessionStorage.clear(),w0={setItem:kp,getItem:Cp,removeItem:Pp,clear:Rp}});var xn,Zn=W(()=>{"use strict";s();Yn();Dp();xn={session:Ta,local:ma}});var ha,Le,It,Ce=W(()=>{"use strict";s();ha=require("@reduxjs/toolkit");se();Le=(0,ha.createAction)(zo),It=(0,ha.createAction)(bp,n=>({payload:n}))});var xa,Np,Op,Yo,ya,Mp,Sa,F_,va,U_,A0,I0,B_,W_,G_,_0,Zo,Xo=W(()=>{"use strict";s();xa=require("@multiversx/sdk-core"),Np=require("@reduxjs/toolkit"),Op=require("redux-persist");se();Zn();Yn();Ce();Yo={balance:"...",address:"",nonce:0,txCount:0,scrCount:0,claimableRewards:zn},ya={address:"",websocketEvent:null,accounts:{"":Yo},ledgerAccount:null,publicKey:"",walletConnectAccount:null,isAccountLoading:!0,accountLoadingError:null},Mp=(0,Np.createSlice)({name:"accountInfoSlice",initialState:ya,reducers:{setAddress:(n,o)=>{let i=o.payload;n.address=i,n.publicKey=new xa.Address(i).hex()},setAccount:(n,o)=>{let i=n.address===o.payload.address;n.accounts={[n.address]:i?o.payload:Yo},n.shard=o.payload.shard,n.isAccountLoading=!1,n.accountLoadingError=null},setAccountNonce:(n,o)=>{let{address:i}=n;n.accounts[i].nonce=o.payload},setAccountShard:(n,o)=>{n.shard=o.payload},setLedgerAccount:(n,o)=>{n.ledgerAccount=o.payload},updateLedgerAccount:(n,o)=>{n.ledgerAccount!=null&&(n.ledgerAccount.index=o.payload.index,n.ledgerAccount.address=o.payload.address)},setWalletConnectAccount:(n,o)=>{n.walletConnectAccount=o.payload},setIsAccountLoading:(n,o)=>{n.isAccountLoading=o.payload,n.accountLoadingError=null},setAccountLoadingError:(n,o)=>{n.accountLoadingError=o.payload,n.isAccountLoading=!1},setWebsocketEvent:(n,o)=>{n.websocketEvent={timestamp:Date.now(),message:o.payload}}},extraReducers:n=>{n.addCase(Le,()=>(xn.local.removeItem(jt.loginExpiresAt),ya)),n.addCase(It,(o,i)=>{let{address:u}=i.payload;o.address=u,o.publicKey=new xa.Address(u).hex()}),n.addCase(Op.REHYDRATE,(o,i)=>{var D;if(!((D=i.payload)!=null&&D.account))return;let{account:u}=i.payload,{address:m,shard:S,accounts:v,publicKey:k}=u;o.address=m,o.shard=S;let E=v&&m in v;o.accounts=E?v:ya.accounts,o.publicKey=k})}}),{setAccount:Sa,setAddress:F_,setAccountNonce:va,setAccountShard:U_,setLedgerAccount:A0,updateLedgerAccount:I0,setWalletConnectAccount:B_,setIsAccountLoading:W_,setAccountLoadingError:G_,setWebsocketEvent:_0}=Mp.actions,Zo=Mp.reducer});function Nr(){return new Date().setHours(new Date().getHours()+24)}function Or(n){xn.local.setItem({key:jt.loginExpiresAt,data:n,expires:n})}var wa=W(()=>{"use strict";s();Zn();Yn()});var Up,Fp,Bp,J_,Wp,b0,L0,Q_,E0,Gp,j_,Jo,Qo=W(()=>{"use strict";s();Up=require("@reduxjs/toolkit");wa();de();Ce();Fp={loginMethod:"",walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,isLoginSessionInvalid:!1},Bp=(0,Up.createSlice)({name:"loginInfoSlice",initialState:Fp,reducers:{setLoginMethod:(n,o)=>{n.loginMethod=o.payload},setTokenLogin:(n,o)=>{n.tokenLogin=o.payload},setTokenLoginSignature:(n,o)=>{(n==null?void 0:n.tokenLogin)!=null&&(n.tokenLogin.signature=o.payload)},setWalletLogin:(n,o)=>{n.walletLogin=o.payload},setWalletConnectLogin:(n,o)=>{n.walletConnectLogin=o.payload},setLedgerLogin:(n,o)=>{n.ledgerLogin=o.payload},invalidateLoginSession:n=>{n.isLoginSessionInvalid=!0},setLogoutRoute:(n,o)=>{n.logoutRoute=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fp),n.addCase(It,(o,i)=>{o.loginMethod=i.payload.loginMethod,Or(Nr())})}}),{setLoginMethod:J_,setWalletConnectLogin:Wp,setLedgerLogin:b0,setTokenLogin:L0,setTokenLoginSignature:Q_,setWalletLogin:E0,invalidateLoginSession:Gp,setLogoutRoute:j_}=Bp.actions,Jo=Bp.reducer});var Hp,$p,Vp,rb,k0,ob,C0,jo,ei=W(()=>{"use strict";s();Hp=require("@reduxjs/toolkit");Ce();$p={},Vp=(0,Hp.createSlice)({name:"modalsSlice",initialState:$p,reducers:{setTxSubmittedModal:(n,o)=>{n.txSubmittedModal=o.payload},setNotificationModal:(n,o)=>{n.notificationModal=o.payload},clearTxSubmittedModal:n=>{n.txSubmittedModal=void 0},clearNotificationModal:n=>{n.notificationModal=void 0}},extraReducers:n=>{n.addCase(Le,()=>$p)}}),{setTxSubmittedModal:rb,setNotificationModal:k0,clearTxSubmittedModal:ob,clearNotificationModal:C0}=Vp.actions,jo=Vp.reducer});var Mr=W(()=>{"use strict";s()});var zp=W(()=>{"use strict";s();Mr()});function Aa(n){return n[Math.floor(Math.random()*n.length)]}var Kp=W(()=>{"use strict";s()});var Ia=W(()=>{"use strict";s();pa()});var Sn=W(()=>{"use strict";s();zp();Kp();Ia()});var Yp,Zp,_a,P0,Xp,xb,Sb,ti,ni=W(()=>{"use strict";s();Yp=require("@reduxjs/toolkit"),Zp=V(require("lodash.omit"));Sn();_a={id:"not-configured",chainId:"",name:"NOT CONFIGURED",egldLabel:"",decimals:"18",digits:"4",gasPerDataByte:"1500",walletConnectDeepLink:"",walletConnectBridgeAddress:"",walletConnectV2RelayAddress:"",walletConnectV2ProjectId:"",walletConnectV2Options:{},walletAddress:"",apiAddress:"",explorerAddress:"",apiTimeout:"4000"},P0={network:_a,chainID:"-1"},Xp=(0,Yp.createSlice)({name:"appConfig",initialState:P0,reducers:{initializeNetworkConfig:(n,o)=>{let i=Aa(o.payload.walletConnectBridgeAddresses),u=Aa(o.payload.walletConnectV2RelayAddresses),m=(0,Zp.default)(o.payload,"walletConnectBridgeAddresses","walletConnectV2RelayAddresses");n.network=Q(O(O({},n.network),m),{walletConnectBridgeAddress:i,walletConnectV2RelayAddress:u})},setChainID:(n,o)=>{n.chainID=o.payload}}}),{initializeNetworkConfig:xb,setChainID:Sb}=Xp.actions,ti=Xp.reducer});var Jp,ba,Qp,bb,Lb,Eb,ri,oi=W(()=>{"use strict";s();Jp=require("@reduxjs/toolkit");Ie();Ce();ba={isSigning:!1,signedSessions:{}},Qp=(0,Jp.createSlice)({name:"signedMessageInfoSliceState",initialState:ba,reducers:{setSignSession:(n,o)=>{let{sessionId:i,signedSession:u,errorMessage:m}=o.payload;return Q(O({},n),{errorMessage:m!=null?m:n.errorMessage,isSigning:u.status==="pending",signedSessions:Q(O({},n.signedSessions),{[i]:u})})},setSignSessionState:(n,o)=>O(O({},n),o.payload),clearSignedMessageInfo:()=>ba},extraReducers:n=>{n.addCase(Le,()=>ba)}}),{setSignSession:bb,clearSignedMessageInfo:Lb,setSignSessionState:Eb}=Qp.actions,ri=Qp.reducer});var ef,tf,jp,nf,La,Ea,Mb,Fb,Ub,Bb,ii,si=W(()=>{"use strict";s();ef=require("@reduxjs/toolkit"),tf=require("redux-persist");fa();Ie();Ko();Ce();jp={customToasts:[],transactionToasts:[],failTransactionToast:null},nf=(0,ef.createSlice)({name:"toastsSlice",initialState:jp,reducers:{addCustomToast:(n,o)=>{n.customToasts.push(Q(O({},o.payload),{type:"custom",toastId:o.payload.toastId||`custom-toast-${n.customToasts.length+1}`}))},removeCustomToast:(n,o)=>{n.customToasts=n.customToasts.filter(i=>i.toastId!==o.payload)},addTransactionToast:(n,o)=>{n.transactionToasts.push({type:"transaction",startTimestamp:Kn(),toastId:o.payload||`custom-toast-${n.transactionToasts.length+1}`})},removeTransactionToast:(n,o)=>{n.transactionToasts=n.transactionToasts.filter(i=>i.toastId!==o.payload)},addFailTransactionToast:(n,o)=>{n.failTransactionToast=Q(O({},o.payload),{toastId:Vo})},removeFailTransactionToast:n=>{n.failTransactionToast=null}},extraReducers:n=>{n.addCase(Le,()=>jp),n.addCase(tf.REHYDRATE,(o,i)=>{var m,S;let u=(S=(m=i.customToasts)==null?void 0:m.filter(v=>!("component"in v)))!=null?S:[];o.customToasts=u})}}),{addCustomToast:La,removeCustomToast:Ea,addTransactionToast:Mb,removeTransactionToast:Fb,addFailTransactionToast:Ub,removeFailTransactionToast:Bb}=nf.actions,ii=nf.reducer});var rf,Ca,Pa,Ra,R0,ka,of,Hb,D0,Da,ai,ci=W(()=>{"use strict";s();rf=require("@reduxjs/toolkit");Ce();Ca="Transaction failed",Pa="Transaction successful",Ra="Processing transaction",R0="Transaction submitted",ka={},of=(0,rf.createSlice)({name:"transactionsInfo",initialState:ka,reducers:{setTransactionsDisplayInfo(n,o){let{sessionId:i,transactionsDisplayInfo:u}=o.payload;i!=null&&(n[i]={errorMessage:(u==null?void 0:u.errorMessage)||Ca,successMessage:(u==null?void 0:u.successMessage)||Pa,processingMessage:(u==null?void 0:u.processingMessage)||Ra,submittedMessage:(u==null?void 0:u.submittedMessage)||R0,transactionDuration:u==null?void 0:u.transactionDuration})},clearTransactionsInfoForSessionId(n,o){o.payload!=null&&delete n[o.payload]},clearTransactionsInfo:()=>ka},extraReducers:n=>{n.addCase(Le,()=>ka)}}),{clearTransactionsInfo:Hb,setTransactionsDisplayInfo:D0,clearTransactionsInfoForSessionId:Da}=of.actions,ai=of.reducer});function Jn(n){return n!=null&&(G0(n)||q0(n))}function Qn(n){return n!=null&&($0(n)||z0(n))}function jn(n){return n!=null&&(H0(n)||K0(n))}function Na(n){return n!=null&&V0(n)}function G0(n){return n!=null&&N0.includes(n)}function $0(n){return n!=null&&O0.includes(n)}function H0(n){return n!=null&&M0.includes(n)}function V0(n){return n!=null&&F0.includes(n)}function q0(n){return n!=null&&U0.includes(n)}function z0(n){return n!=null&&B0.includes(n)}function K0(n){return n!=null&&W0.includes(n)}var N0,O0,M0,F0,U0,B0,W0,er=W(()=>{"use strict";s();de();N0=["sent"],O0=["success"],M0=["fail","cancelled","timedOut"],F0=["timedOut"],U0=["pending"],B0=["success"],W0=["fail","invalid"]});var sf,af,Fr,Y0,cf,uf,lf,Z0,ui,X0,J0,Qb,Q0,li,Oa,pi,fi=W(()=>{"use strict";s();sf=require("@reduxjs/toolkit"),af=require("redux-persist");de();er();Ce();Fr={signedTransactions:{},transactionsToSign:null,signTransactionsError:null,signTransactionsCancelMessage:null,customTransactionInformationForSessionId:{}},Y0={signWithoutSending:!1,sessionInformation:null,redirectAfterSign:!1},cf=(0,sf.createSlice)({name:"transactionsSlice",initialState:Fr,reducers:{moveTransactionsToSignedState:(n,o)=>{var E,D;let{sessionId:i,transactions:u,errorMessage:m,status:S,redirectRoute:v}=o.payload,k=((E=n.customTransactionInformationForSessionId)==null?void 0:E[i])||Y0;n.signedTransactions[i]={transactions:u,status:S,errorMessage:m,redirectRoute:v,customTransactionInformation:k},((D=n==null?void 0:n.transactionsToSign)==null?void 0:D.sessionId)===i&&(n.transactionsToSign=Fr.transactionsToSign)},clearSignedTransaction:(n,o)=>{n.signedTransactions[o.payload]&&delete n.signedTransactions[o.payload]},clearTransactionToSign:n=>{n!=null&&n.transactionsToSign&&(n.transactionsToSign=null)},updateSignedTransaction:(n,o)=>{n.signedTransactions=O(O({},n.signedTransactions),o.payload)},updateSignedTransactions:(n,o)=>{let{sessionId:i,status:u,errorMessage:m,transactions:S}=o.payload;n.signedTransactions[i]!=null&&(n.signedTransactions[i].status=u,m!=null&&(n.signedTransactions[i].errorMessage=m),S!=null&&(n.signedTransactions[i].transactions=S))},updateSignedTransactionStatus:(n,o)=>{var k,E,D,$,M,ue;let{sessionId:i,status:u,errorMessage:m,transactionHash:S}=o.payload,v=(E=(k=n.signedTransactions)==null?void 0:k[i])==null?void 0:E.transactions;if(v!=null){n.signedTransactions[i].transactions=v.map(_e=>_e.hash===S?Q(O({},_e),{status:u,errorMessage:m}):_e);let ye=($=(D=n.signedTransactions[i])==null?void 0:D.transactions)==null?void 0:$.every(_e=>Qn(_e.status)),ge=(ue=(M=n.signedTransactions[i])==null?void 0:M.transactions)==null?void 0:ue.every(_e=>jn(_e.status));ye&&(n.signedTransactions[i].status="success"),ge&&(n.signedTransactions[i].status="fail")}},setTransactionsToSign:(n,o)=>{n.transactionsToSign=o.payload;let{sessionId:i,customTransactionInformation:u}=o.payload;n.customTransactionInformationForSessionId[i]=u,n.signTransactionsError=null},clearAllTransactionsToSign:n=>{n.transactionsToSign=Fr.transactionsToSign,n.signTransactionsError=null},clearAllSignedTransactions:n=>{n.signedTransactions=Fr.signedTransactions},setSignTransactionsError:(n,o)=>{n.signTransactionsError=o.payload},setSignTransactionsCancelMessage:(n,o)=>{n.signTransactionsCancelMessage=o.payload}},extraReducers:n=>{n.addCase(Le,()=>Fr),n.addCase(af.REHYDRATE,(o,i)=>{var v;if(o.signTransactionsCancelMessage=null,!((v=i.payload)!=null&&v.transactions))return;let{signedTransactions:u,customTransactionInformationForSessionId:m}=i.payload.transactions,S=Object.entries(u).reduce((k,[E,D])=>{let $=new Date(E),M=new Date;return M.setHours(M.getHours()+5),M-$>0||(k[E]=D),k},{});m!=null&&(o.customTransactionInformationForSessionId=m),u!=null&&(o.signedTransactions=S)})}}),{updateSignedTransactionStatus:uf,updateSignedTransactions:lf,setTransactionsToSign:Z0,clearAllTransactionsToSign:ui,clearAllSignedTransactions:X0,clearSignedTransaction:J0,clearTransactionToSign:Qb,setSignTransactionsError:Q0,setSignTransactionsCancelMessage:li,moveTransactionsToSignedState:Oa}=cf.actions,pi=cf.reducer});var ae=W(()=>{"use strict";s();Xo();Qo();ei();ni();oi();si();ci();fi()});var Ma=W(()=>{"use strict";s()});var mf,gf,Tf,wL,AL,IL,_L,bL,LL,hf,yf=W(()=>{"use strict";s();mf=require("@reduxjs/toolkit");Ce();gf={visible:!1,modal:{showHeader:!0,showFooter:!1,headerText:"",footerText:""}},Tf=(0,mf.createSlice)({name:"dappModalsSlice",initialState:gf,reducers:{setDappModalVisibility:(n,o)=>{n.visible=o.payload},setDappModalHeaderVisibility:(n,o)=>{n.modal.showHeader=o.payload},setDappModalFooterVisibility:(n,o)=>{n.modal.showFooter=o.payload},setDappModalHeaderText:(n,o)=>{n.modal.headerText=o.payload},setDappModalFooterText:(n,o)=>{n.modal.footerText=o.payload},setDappModalConfig:(n,o)=>{n.modal=O({},o.payload)}},extraReducers:n=>{n.addCase(Le,()=>gf)}}),{setDappModalVisibility:wL,setDappModalHeaderVisibility:AL,setDappModalFooterVisibility:IL,setDappModalHeaderText:_L,setDappModalFooterText:bL,setDappModalConfig:LL}=Tf.actions,hf=Tf.reducer});var xf,nw,rw,wn,Ti=W(()=>{"use strict";s();xf=require("@reduxjs/toolkit");Ma();Xo();yf();Qo();ei();ni();oi();si();ci();fi();nw={["account"]:Zo,["dappModal"]:hf,["loginInfo"]:Jo,["modals"]:jo,["networkConfig"]:ti,["signedMessageInfo"]:ri,["toasts"]:ii,["transactionsInfo"]:ai,["transactions"]:pi},rw=(n={})=>(0,xf.combineReducers)(O(O({},nw),n)),wn=rw});var Af={};gn(Af,{default:()=>yw,sessionStorageReducers:()=>Fa});function en(n,o=[]){return{key:n,version:1,storage:vf.default,blacklist:o}}var Ye,Sf,vf,ow,Br,iw,sw,aw,cw,uw,lw,pw,fw,dw,wf,gw,Fa,mw,Tw,hw,yw,If=W(()=>{"use strict";s();Ye=require("redux-persist"),Sf=V(require("redux-persist/lib/storage")),vf=V(require("redux-persist/lib/storage/session"));Ti();ae();Xo();Qo();ei();ni();oi();si();ci();fi();Ma();ow={persistReducersStorageType:"localStorage"},Br={["account"]:"sdk-dapp-account",["loginInfo"]:"sdk-dapp-login-info",["modals"]:"sdk-dapp-modals",["networkConfig"]:"sdk-dapp-network-config"},iw=en(Br["account"]),sw=en(Br["loginInfo"]),aw=en(Br["modals"]),cw=en(Br["networkConfig"]),uw={2:n=>Q(O({},n),{networkConfig:_a})};lw=en("sdk-dapp-transactionsInfo"),pw=en("sdk-dapp-transactions",["transactionsToSign"]),fw=en("sdk-dapp-toasts"),dw=en("sdk-dapp-signedMessageInfo"),wf={key:"sdk-dapp-store",version:2,storage:Sf.default,whitelist:Object.keys(Br),migrate:(0,Ye.createMigrate)(uw,{debug:!1})},gw=Q(O({},wf),{whitelist:[]}),Fa={["toasts"]:(0,Ye.persistReducer)(fw,ii),["transactions"]:(0,Ye.persistReducer)(pw,pi),["transactionsInfo"]:(0,Ye.persistReducer)(lw,ai),["signedMessageInfo"]:(0,Ye.persistReducer)(dw,ri)},mw=Q(O({},Fa),{["account"]:(0,Ye.persistReducer)(iw,Zo),["loginInfo"]:(0,Ye.persistReducer)(sw,Jo),["modals"]:(0,Ye.persistReducer)(aw,jo),["networkConfig"]:(0,Ye.persistReducer)(cw,ti)}),Tw=ow.persistReducersStorageType==="localStorage",hw=Tw?(0,Ye.persistReducer)(wf,wn(Fa)):(0,Ye.persistReducer)(gw,wn(mw)),yw=hw});var _f={};gn(_f,{default:()=>xw});var xw,bf=W(()=>{"use strict";s();Ti();xw=wn()});var Lf={};gn(Lf,{default:()=>vw});var st,Sw,vw,Ef=W(()=>{"use strict";s();st=require("redux-persist"),Sw=[st.FLUSH,st.REHYDRATE,st.PAUSE,st.PERSIST,st.PURGE,st.REGISTER],vw=Sw});var Pf={};gn(Pf,{default:()=>Cf});function Cf(n){return(0,kf.persistStore)(n)}var kf,Rf=W(()=>{"use strict";s();kf=require("redux-persist")});var bd=Pr((or,Hr)=>{s();(function(){var n,o="4.17.21",i=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",m="Expected a function",S="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",k=500,E="__lodash_placeholder__",D=1,$=2,M=4,ue=1,ye=2,ge=1,_e=2,ac=4,dt=8,bn=16,gt=32,Ln=64,_t=128,sr=256,Ci=512,Bd=30,Wd="...",Gd=800,$d=16,cc=1,Hd=2,Vd=3,rn=1/0,$t=9007199254740991,qd=17976931348623157e292,qr=0/0,mt=4294967295,zd=mt-1,Kd=mt>>>1,Yd=[["ary",_t],["bind",ge],["bindKey",_e],["curry",dt],["curryRight",bn],["flip",Ci],["partial",gt],["partialRight",Ln],["rearg",sr]],En="[object Arguments]",zr="[object Array]",Zd="[object AsyncFunction]",ar="[object Boolean]",cr="[object Date]",Xd="[object DOMException]",Kr="[object Error]",Yr="[object Function]",uc="[object GeneratorFunction]",at="[object Map]",ur="[object Number]",Jd="[object Null]",bt="[object Object]",lc="[object Promise]",Qd="[object Proxy]",lr="[object RegExp]",ct="[object Set]",pr="[object String]",Zr="[object Symbol]",jd="[object Undefined]",fr="[object WeakMap]",eg="[object WeakSet]",dr="[object ArrayBuffer]",kn="[object DataView]",Pi="[object Float32Array]",Ri="[object Float64Array]",Di="[object Int8Array]",Ni="[object Int16Array]",Oi="[object Int32Array]",Mi="[object Uint8Array]",Fi="[object Uint8ClampedArray]",Ui="[object Uint16Array]",Bi="[object Uint32Array]",tg=/\b__p \+= '';/g,ng=/\b(__p \+=) '' \+/g,rg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pc=/&(?:amp|lt|gt|quot|#39);/g,fc=/[&<>"']/g,og=RegExp(pc.source),ig=RegExp(fc.source),sg=/<%-([\s\S]+?)%>/g,ag=/<%([\s\S]+?)%>/g,dc=/<%=([\s\S]+?)%>/g,cg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ug=/^\w*$/,lg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wi=/[\\^$.*+?()[\]{}|]/g,pg=RegExp(Wi.source),Gi=/^\s+/,fg=/\s/,dg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gg=/\{\n\/\* \[wrapped with (.+)\] \*/,mg=/,? & /,Tg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hg=/[()=,{}\[\]\/\s]/,yg=/\\(\\)?/g,xg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gc=/\w*$/,Sg=/^[-+]0x[0-9a-f]+$/i,vg=/^0b[01]+$/i,wg=/^\[object .+?Constructor\]$/,Ag=/^0o[0-7]+$/i,Ig=/^(?:0|[1-9]\d*)$/,_g=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xr=/($^)/,bg=/['\n\r\u2028\u2029\\]/g,Jr="\\ud800-\\udfff",Lg="\\u0300-\\u036f",Eg="\\ufe20-\\ufe2f",kg="\\u20d0-\\u20ff",mc=Lg+Eg+kg,Tc="\\u2700-\\u27bf",hc="a-z\\xdf-\\xf6\\xf8-\\xff",Cg="\\xac\\xb1\\xd7\\xf7",Pg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Rg="\\u2000-\\u206f",Dg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yc="A-Z\\xc0-\\xd6\\xd8-\\xde",xc="\\ufe0e\\ufe0f",Sc=Cg+Pg+Rg+Dg,$i="['\u2019]",Ng="["+Jr+"]",vc="["+Sc+"]",Qr="["+mc+"]",wc="\\d+",Og="["+Tc+"]",Ac="["+hc+"]",Ic="[^"+Jr+Sc+wc+Tc+hc+yc+"]",Hi="\\ud83c[\\udffb-\\udfff]",Mg="(?:"+Qr+"|"+Hi+")",_c="[^"+Jr+"]",Vi="(?:\\ud83c[\\udde6-\\uddff]){2}",qi="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="["+yc+"]",bc="\\u200d",Lc="(?:"+Ac+"|"+Ic+")",Fg="(?:"+Cn+"|"+Ic+")",Ec="(?:"+$i+"(?:d|ll|m|re|s|t|ve))?",kc="(?:"+$i+"(?:D|LL|M|RE|S|T|VE))?",Cc=Mg+"?",Pc="["+xc+"]?",Ug="(?:"+bc+"(?:"+[_c,Vi,qi].join("|")+")"+Pc+Cc+")*",Bg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rc=Pc+Cc+Ug,Gg="(?:"+[Og,Vi,qi].join("|")+")"+Rc,$g="(?:"+[_c+Qr+"?",Qr,Vi,qi,Ng].join("|")+")",Hg=RegExp($i,"g"),Vg=RegExp(Qr,"g"),zi=RegExp(Hi+"(?="+Hi+")|"+$g+Rc,"g"),qg=RegExp([Cn+"?"+Ac+"+"+Ec+"(?="+[vc,Cn,"$"].join("|")+")",Fg+"+"+kc+"(?="+[vc,Cn+Lc,"$"].join("|")+")",Cn+"?"+Lc+"+"+Ec,Cn+"+"+kc,Wg,Bg,wc,Gg].join("|"),"g"),zg=RegExp("["+bc+Jr+mc+xc+"]"),Kg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zg=-1,ce={};ce[Pi]=ce[Ri]=ce[Di]=ce[Ni]=ce[Oi]=ce[Mi]=ce[Fi]=ce[Ui]=ce[Bi]=!0,ce[En]=ce[zr]=ce[dr]=ce[ar]=ce[kn]=ce[cr]=ce[Kr]=ce[Yr]=ce[at]=ce[ur]=ce[bt]=ce[lr]=ce[ct]=ce[pr]=ce[fr]=!1;var ie={};ie[En]=ie[zr]=ie[dr]=ie[kn]=ie[ar]=ie[cr]=ie[Pi]=ie[Ri]=ie[Di]=ie[Ni]=ie[Oi]=ie[at]=ie[ur]=ie[bt]=ie[lr]=ie[ct]=ie[pr]=ie[Zr]=ie[Mi]=ie[Fi]=ie[Ui]=ie[Bi]=!0,ie[Kr]=ie[Yr]=ie[fr]=!1;var Xg={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Jg={"&":"&","<":"<",">":">",'"':""","'":"'"},Qg={"&":"&","<":"<",">":">",""":'"',"'":"'"},jg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},em=parseFloat,tm=parseInt,Dc=typeof f=="object"&&f&&f.Object===Object&&f,nm=typeof self=="object"&&self&&self.Object===Object&&self,ve=Dc||nm||Function("return this")(),Ki=typeof or=="object"&&or&&!or.nodeType&&or,on=Ki&&typeof Hr=="object"&&Hr&&!Hr.nodeType&&Hr,Nc=on&&on.exports===Ki,Yi=Nc&&Dc.process,Je=function(){try{var y=on&&on.require&&on.require("util").types;return y||Yi&&Yi.binding&&Yi.binding("util")}catch(A){}}(),Oc=Je&&Je.isArrayBuffer,Mc=Je&&Je.isDate,Fc=Je&&Je.isMap,Uc=Je&&Je.isRegExp,Bc=Je&&Je.isSet,Wc=Je&&Je.isTypedArray;function Ge(y,A,w){switch(w.length){case 0:return y.call(A);case 1:return y.call(A,w[0]);case 2:return y.call(A,w[0],w[1]);case 3:return y.call(A,w[0],w[1],w[2])}return y.apply(A,w)}function rm(y,A,w,P){for(var G=-1,ee=y==null?0:y.length;++G<ee;){var xe=y[G];A(P,xe,w(xe),y)}return P}function Qe(y,A){for(var w=-1,P=y==null?0:y.length;++w<P&&A(y[w],w,y)!==!1;);return y}function om(y,A){for(var w=y==null?0:y.length;w--&&A(y[w],w,y)!==!1;);return y}function Gc(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(!A(y[w],w,y))return!1;return!0}function Ht(y,A){for(var w=-1,P=y==null?0:y.length,G=0,ee=[];++w<P;){var xe=y[w];A(xe,w,y)&&(ee[G++]=xe)}return ee}function jr(y,A){var w=y==null?0:y.length;return!!w&&Pn(y,A,0)>-1}function Zi(y,A,w){for(var P=-1,G=y==null?0:y.length;++P<G;)if(w(A,y[P]))return!0;return!1}function le(y,A){for(var w=-1,P=y==null?0:y.length,G=Array(P);++w<P;)G[w]=A(y[w],w,y);return G}function Vt(y,A){for(var w=-1,P=A.length,G=y.length;++w<P;)y[G+w]=A[w];return y}function Xi(y,A,w,P){var G=-1,ee=y==null?0:y.length;for(P&&ee&&(w=y[++G]);++G<ee;)w=A(w,y[G],G,y);return w}function im(y,A,w,P){var G=y==null?0:y.length;for(P&&G&&(w=y[--G]);G--;)w=A(w,y[G],G,y);return w}function Ji(y,A){for(var w=-1,P=y==null?0:y.length;++w<P;)if(A(y[w],w,y))return!0;return!1}var sm=Qi("length");function am(y){return y.split("")}function cm(y){return y.match(Tg)||[]}function $c(y,A,w){var P;return w(y,function(G,ee,xe){if(A(G,ee,xe))return P=ee,!1}),P}function eo(y,A,w,P){for(var G=y.length,ee=w+(P?1:-1);P?ee--:++ee<G;)if(A(y[ee],ee,y))return ee;return-1}function Pn(y,A,w){return A===A?Sm(y,A,w):eo(y,Hc,w)}function um(y,A,w,P){for(var G=w-1,ee=y.length;++G<ee;)if(P(y[G],A))return G;return-1}function Hc(y){return y!==y}function Vc(y,A){var w=y==null?0:y.length;return w?es(y,A)/w:qr}function Qi(y){return function(A){return A==null?n:A[y]}}function ji(y){return function(A){return y==null?n:y[A]}}function qc(y,A,w,P,G){return G(y,function(ee,xe,oe){w=P?(P=!1,ee):A(w,ee,xe,oe)}),w}function lm(y,A){var w=y.length;for(y.sort(A);w--;)y[w]=y[w].value;return y}function es(y,A){for(var w,P=-1,G=y.length;++P<G;){var ee=A(y[P]);ee!==n&&(w=w===n?ee:w+ee)}return w}function ts(y,A){for(var w=-1,P=Array(y);++w<y;)P[w]=A(w);return P}function pm(y,A){return le(A,function(w){return[w,y[w]]})}function zc(y){return y&&y.slice(0,Xc(y)+1).replace(Gi,"")}function $e(y){return function(A){return y(A)}}function ns(y,A){return le(A,function(w){return y[w]})}function gr(y,A){return y.has(A)}function Kc(y,A){for(var w=-1,P=y.length;++w<P&&Pn(A,y[w],0)>-1;);return w}function Yc(y,A){for(var w=y.length;w--&&Pn(A,y[w],0)>-1;);return w}function fm(y,A){for(var w=y.length,P=0;w--;)y[w]===A&&++P;return P}var dm=ji(Xg),gm=ji(Jg);function mm(y){return"\\"+jg[y]}function Tm(y,A){return y==null?n:y[A]}function Rn(y){return zg.test(y)}function hm(y){return Kg.test(y)}function ym(y){for(var A,w=[];!(A=y.next()).done;)w.push(A.value);return w}function rs(y){var A=-1,w=Array(y.size);return y.forEach(function(P,G){w[++A]=[G,P]}),w}function Zc(y,A){return function(w){return y(A(w))}}function qt(y,A){for(var w=-1,P=y.length,G=0,ee=[];++w<P;){var xe=y[w];(xe===A||xe===E)&&(y[w]=E,ee[G++]=w)}return ee}function to(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=P}),w}function xm(y){var A=-1,w=Array(y.size);return y.forEach(function(P){w[++A]=[P,P]}),w}function Sm(y,A,w){for(var P=w-1,G=y.length;++P<G;)if(y[P]===A)return P;return-1}function vm(y,A,w){for(var P=w+1;P--;)if(y[P]===A)return P;return P}function Dn(y){return Rn(y)?Am(y):sm(y)}function ut(y){return Rn(y)?Im(y):am(y)}function Xc(y){for(var A=y.length;A--&&fg.test(y.charAt(A)););return A}var wm=ji(Qg);function Am(y){for(var A=zi.lastIndex=0;zi.test(y);)++A;return A}function Im(y){return y.match(zi)||[]}function _m(y){return y.match(qg)||[]}var bm=function y(A){A=A==null?ve:zt.defaults(ve.Object(),A,zt.pick(ve,Yg));var w=A.Array,P=A.Date,G=A.Error,ee=A.Function,xe=A.Math,oe=A.Object,os=A.RegExp,Lm=A.String,je=A.TypeError,no=w.prototype,Em=ee.prototype,Nn=oe.prototype,ro=A["__core-js_shared__"],oo=Em.toString,re=Nn.hasOwnProperty,km=0,Jc=function(){var e=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),io=Nn.toString,Cm=oo.call(oe),Pm=ve._,Rm=os("^"+oo.call(re).replace(Wi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),so=Nc?A.Buffer:n,Kt=A.Symbol,ao=A.Uint8Array,Qc=so?so.allocUnsafe:n,co=Zc(oe.getPrototypeOf,oe),jc=oe.create,eu=Nn.propertyIsEnumerable,uo=no.splice,tu=Kt?Kt.isConcatSpreadable:n,mr=Kt?Kt.iterator:n,sn=Kt?Kt.toStringTag:n,lo=function(){try{var e=pn(oe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Dm=A.clearTimeout!==ve.clearTimeout&&A.clearTimeout,Nm=P&&P.now!==ve.Date.now&&P.now,Om=A.setTimeout!==ve.setTimeout&&A.setTimeout,po=xe.ceil,fo=xe.floor,is=oe.getOwnPropertySymbols,Mm=so?so.isBuffer:n,nu=A.isFinite,Fm=no.join,Um=Zc(oe.keys,oe),Se=xe.max,Ee=xe.min,Bm=P.now,Wm=A.parseInt,ru=xe.random,Gm=no.reverse,ss=pn(A,"DataView"),Tr=pn(A,"Map"),as=pn(A,"Promise"),On=pn(A,"Set"),hr=pn(A,"WeakMap"),yr=pn(oe,"create"),go=hr&&new hr,Mn={},$m=fn(ss),Hm=fn(Tr),Vm=fn(as),qm=fn(On),zm=fn(hr),mo=Kt?Kt.prototype:n,xr=mo?mo.valueOf:n,ou=mo?mo.toString:n;function l(e){if(fe(e)&&!H(e)&&!(e instanceof X)){if(e instanceof et)return e;if(re.call(e,"__wrapped__"))return il(e)}return new et(e)}var Fn=function(){function e(){}return function(t){if(!pe(t))return{};if(jc)return jc(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function To(){}function et(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}l.templateSettings={escape:sg,evaluate:ag,interpolate:dc,variable:"",imports:{_:l}},l.prototype=To.prototype,l.prototype.constructor=l,et.prototype=Fn(To.prototype),et.prototype.constructor=et;function X(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=mt,this.__views__=[]}function Km(){var e=new X(this.__wrapped__);return e.__actions__=Ne(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ne(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ne(this.__views__),e}function Ym(){if(this.__filtered__){var e=new X(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Zm(){var e=this.__wrapped__.value(),t=this.__dir__,r=H(e),a=t<0,c=r?e.length:0,p=ah(0,c,this.__views__),T=p.start,h=p.end,x=h-T,_=a?h:T-1,b=this.__iteratees__,L=b.length,C=0,N=Ee(x,this.__takeCount__);if(!r||!a&&c==x&&N==x)return Eu(e,this.__actions__);var U=[];e:for(;x--&&C<N;){_+=t;for(var z=-1,B=e[_];++z<L;){var Z=b[z],J=Z.iteratee,qe=Z.type,De=J(B);if(qe==Hd)B=De;else if(!De){if(qe==cc)continue e;break e}}U[C++]=B}return U}X.prototype=Fn(To.prototype),X.prototype.constructor=X;function an(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function Xm(){this.__data__=yr?yr(null):{},this.size=0}function Jm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Qm(e){var t=this.__data__;if(yr){var r=t[e];return r===v?n:r}return re.call(t,e)?t[e]:n}function jm(e){var t=this.__data__;return yr?t[e]!==n:re.call(t,e)}function eT(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=yr&&t===n?v:t,this}an.prototype.clear=Xm,an.prototype.delete=Jm,an.prototype.get=Qm,an.prototype.has=jm,an.prototype.set=eT;function Lt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function tT(){this.__data__=[],this.size=0}function nT(e){var t=this.__data__,r=ho(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():uo.call(t,r,1),--this.size,!0}function rT(e){var t=this.__data__,r=ho(t,e);return r<0?n:t[r][1]}function oT(e){return ho(this.__data__,e)>-1}function iT(e,t){var r=this.__data__,a=ho(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}Lt.prototype.clear=tT,Lt.prototype.delete=nT,Lt.prototype.get=rT,Lt.prototype.has=oT,Lt.prototype.set=iT;function Et(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}function sT(){this.size=0,this.__data__={hash:new an,map:new(Tr||Lt),string:new an}}function aT(e){var t=ko(this,e).delete(e);return this.size-=t?1:0,t}function cT(e){return ko(this,e).get(e)}function uT(e){return ko(this,e).has(e)}function lT(e,t){var r=ko(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}Et.prototype.clear=sT,Et.prototype.delete=aT,Et.prototype.get=cT,Et.prototype.has=uT,Et.prototype.set=lT;function cn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}function pT(e){return this.__data__.set(e,v),this}function fT(e){return this.__data__.has(e)}cn.prototype.add=cn.prototype.push=pT,cn.prototype.has=fT;function lt(e){var t=this.__data__=new Lt(e);this.size=t.size}function dT(){this.__data__=new Lt,this.size=0}function gT(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function mT(e){return this.__data__.get(e)}function TT(e){return this.__data__.has(e)}function hT(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!Tr||a.length<i-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(a)}return r.set(e,t),this.size=r.size,this}lt.prototype.clear=dT,lt.prototype.delete=gT,lt.prototype.get=mT,lt.prototype.has=TT,lt.prototype.set=hT;function iu(e,t){var r=H(e),a=!r&&dn(e),c=!r&&!a&&Qt(e),p=!r&&!a&&!c&&Gn(e),T=r||a||c||p,h=T?ts(e.length,Lm):[],x=h.length;for(var _ in e)(t||re.call(e,_))&&!(T&&(_=="length"||c&&(_=="offset"||_=="parent")||p&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Rt(_,x)))&&h.push(_);return h}function su(e){var t=e.length;return t?e[ys(0,t-1)]:n}function yT(e,t){return Co(Ne(e),un(t,0,e.length))}function xT(e){return Co(Ne(e))}function cs(e,t,r){(r!==n&&!pt(e[t],r)||r===n&&!(t in e))&&kt(e,t,r)}function Sr(e,t,r){var a=e[t];(!(re.call(e,t)&&pt(a,r))||r===n&&!(t in e))&&kt(e,t,r)}function ho(e,t){for(var r=e.length;r--;)if(pt(e[r][0],t))return r;return-1}function ST(e,t,r,a){return Yt(e,function(c,p,T){t(a,c,r(c),T)}),a}function au(e,t){return e&&ht(t,we(t),e)}function vT(e,t){return e&&ht(t,Me(t),e)}function kt(e,t,r){t=="__proto__"&&lo?lo(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function us(e,t){for(var r=-1,a=t.length,c=w(a),p=e==null;++r<a;)c[r]=p?n:Hs(e,t[r]);return c}function un(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function tt(e,t,r,a,c,p){var T,h=t&D,x=t&$,_=t&M;if(r&&(T=c?r(e,a,c,p):r(e)),T!==n)return T;if(!pe(e))return e;var b=H(e);if(b){if(T=uh(e),!h)return Ne(e,T)}else{var L=ke(e),C=L==Yr||L==uc;if(Qt(e))return Pu(e,h);if(L==bt||L==En||C&&!c){if(T=x||C?{}:Xu(e),!h)return x?QT(e,vT(T,e)):JT(e,au(T,e))}else{if(!ie[L])return c?e:{};T=lh(e,L,h)}}p||(p=new lt);var N=p.get(e);if(N)return N;p.set(e,T),_l(e)?e.forEach(function(B){T.add(tt(B,t,r,B,e,p))}):Al(e)&&e.forEach(function(B,Z){T.set(Z,tt(B,t,r,Z,e,p))});var U=_?x?ks:Es:x?Me:we,z=b?n:U(e);return Qe(z||e,function(B,Z){z&&(Z=B,B=e[Z]),Sr(T,Z,tt(B,t,r,Z,e,p))}),T}function wT(e){var t=we(e);return function(r){return cu(r,e,t)}}function cu(e,t,r){var a=r.length;if(e==null)return!a;for(e=oe(e);a--;){var c=r[a],p=t[c],T=e[c];if(T===n&&!(c in e)||!p(T))return!1}return!0}function uu(e,t,r){if(typeof e!="function")throw new je(m);return Lr(function(){e.apply(n,r)},t)}function vr(e,t,r,a){var c=-1,p=jr,T=!0,h=e.length,x=[],_=t.length;if(!h)return x;r&&(t=le(t,$e(r))),a?(p=Zi,T=!1):t.length>=i&&(p=gr,T=!1,t=new cn(t));e:for(;++c<h;){var b=e[c],L=r==null?b:r(b);if(b=a||b!==0?b:0,T&&L===L){for(var C=_;C--;)if(t[C]===L)continue e;x.push(b)}else p(t,L,a)||x.push(b)}return x}var Yt=Mu(Tt),lu=Mu(ps,!0);function AT(e,t){var r=!0;return Yt(e,function(a,c,p){return r=!!t(a,c,p),r}),r}function yo(e,t,r){for(var a=-1,c=e.length;++a<c;){var p=e[a],T=t(p);if(T!=null&&(h===n?T===T&&!Ve(T):r(T,h)))var h=T,x=p}return x}function IT(e,t,r,a){var c=e.length;for(r=q(r),r<0&&(r=-r>c?0:c+r),a=a===n||a>c?c:q(a),a<0&&(a+=c),a=r>a?0:Ll(a);r<a;)e[r++]=t;return e}function pu(e,t){var r=[];return Yt(e,function(a,c,p){t(a,c,p)&&r.push(a)}),r}function be(e,t,r,a,c){var p=-1,T=e.length;for(r||(r=fh),c||(c=[]);++p<T;){var h=e[p];t>0&&r(h)?t>1?be(h,t-1,r,a,c):Vt(c,h):a||(c[c.length]=h)}return c}var ls=Fu(),fu=Fu(!0);function Tt(e,t){return e&&ls(e,t,we)}function ps(e,t){return e&&fu(e,t,we)}function xo(e,t){return Ht(t,function(r){return Dt(e[r])})}function ln(e,t){t=Xt(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[yt(t[r++])];return r&&r==a?e:n}function du(e,t,r){var a=t(e);return H(e)?a:Vt(a,r(e))}function Pe(e){return e==null?e===n?jd:Jd:sn&&sn in oe(e)?sh(e):xh(e)}function fs(e,t){return e>t}function _T(e,t){return e!=null&&re.call(e,t)}function bT(e,t){return e!=null&&t in oe(e)}function LT(e,t,r){return e>=Ee(t,r)&&e<Se(t,r)}function ds(e,t,r){for(var a=r?Zi:jr,c=e[0].length,p=e.length,T=p,h=w(p),x=1/0,_=[];T--;){var b=e[T];T&&t&&(b=le(b,$e(t))),x=Ee(b.length,x),h[T]=!r&&(t||c>=120&&b.length>=120)?new cn(T&&b):n}b=e[0];var L=-1,C=h[0];e:for(;++L<c&&_.length<x;){var N=b[L],U=t?t(N):N;if(N=r||N!==0?N:0,!(C?gr(C,U):a(_,U,r))){for(T=p;--T;){var z=h[T];if(!(z?gr(z,U):a(e[T],U,r)))continue e}C&&C.push(U),_.push(N)}}return _}function ET(e,t,r,a){return Tt(e,function(c,p,T){t(a,r(c),p,T)}),a}function wr(e,t,r){t=Xt(t,e),e=el(e,t);var a=e==null?e:e[yt(rt(t))];return a==null?n:Ge(a,e,r)}function gu(e){return fe(e)&&Pe(e)==En}function kT(e){return fe(e)&&Pe(e)==dr}function CT(e){return fe(e)&&Pe(e)==cr}function Ar(e,t,r,a,c){return e===t?!0:e==null||t==null||!fe(e)&&!fe(t)?e!==e&&t!==t:PT(e,t,r,a,Ar,c)}function PT(e,t,r,a,c,p){var T=H(e),h=H(t),x=T?zr:ke(e),_=h?zr:ke(t);x=x==En?bt:x,_=_==En?bt:_;var b=x==bt,L=_==bt,C=x==_;if(C&&Qt(e)){if(!Qt(t))return!1;T=!0,b=!1}if(C&&!b)return p||(p=new lt),T||Gn(e)?Ku(e,t,r,a,c,p):oh(e,t,x,r,a,c,p);if(!(r&ue)){var N=b&&re.call(e,"__wrapped__"),U=L&&re.call(t,"__wrapped__");if(N||U){var z=N?e.value():e,B=U?t.value():t;return p||(p=new lt),c(z,B,r,a,p)}}return C?(p||(p=new lt),ih(e,t,r,a,c,p)):!1}function RT(e){return fe(e)&&ke(e)==at}function gs(e,t,r,a){var c=r.length,p=c,T=!a;if(e==null)return!p;for(e=oe(e);c--;){var h=r[c];if(T&&h[2]?h[1]!==e[h[0]]:!(h[0]in e))return!1}for(;++c<p;){h=r[c];var x=h[0],_=e[x],b=h[1];if(T&&h[2]){if(_===n&&!(x in e))return!1}else{var L=new lt;if(a)var C=a(_,b,x,e,t,L);if(!(C===n?Ar(b,_,ue|ye,a,L):C))return!1}}return!0}function mu(e){if(!pe(e)||gh(e))return!1;var t=Dt(e)?Rm:wg;return t.test(fn(e))}function DT(e){return fe(e)&&Pe(e)==lr}function NT(e){return fe(e)&&ke(e)==ct}function OT(e){return fe(e)&&Mo(e.length)&&!!ce[Pe(e)]}function Tu(e){return typeof e=="function"?e:e==null?Fe:typeof e=="object"?H(e)?xu(e[0],e[1]):yu(e):Ul(e)}function ms(e){if(!br(e))return Um(e);var t=[];for(var r in oe(e))re.call(e,r)&&r!="constructor"&&t.push(r);return t}function MT(e){if(!pe(e))return yh(e);var t=br(e),r=[];for(var a in e)a=="constructor"&&(t||!re.call(e,a))||r.push(a);return r}function Ts(e,t){return e<t}function hu(e,t){var r=-1,a=Oe(e)?w(e.length):[];return Yt(e,function(c,p,T){a[++r]=t(c,p,T)}),a}function yu(e){var t=Ps(e);return t.length==1&&t[0][2]?Qu(t[0][0],t[0][1]):function(r){return r===e||gs(r,e,t)}}function xu(e,t){return Ds(e)&&Ju(t)?Qu(yt(e),t):function(r){var a=Hs(r,e);return a===n&&a===t?Vs(r,e):Ar(t,a,ue|ye)}}function So(e,t,r,a,c){e!==t&&ls(t,function(p,T){if(c||(c=new lt),pe(p))FT(e,t,T,r,So,a,c);else{var h=a?a(Os(e,T),p,T+"",e,t,c):n;h===n&&(h=p),cs(e,T,h)}},Me)}function FT(e,t,r,a,c,p,T){var h=Os(e,r),x=Os(t,r),_=T.get(x);if(_){cs(e,r,_);return}var b=p?p(h,x,r+"",e,t,T):n,L=b===n;if(L){var C=H(x),N=!C&&Qt(x),U=!C&&!N&&Gn(x);b=x,C||N||U?H(h)?b=h:me(h)?b=Ne(h):N?(L=!1,b=Pu(x,!0)):U?(L=!1,b=Ru(x,!0)):b=[]:Er(x)||dn(x)?(b=h,dn(h)?b=El(h):(!pe(h)||Dt(h))&&(b=Xu(x))):L=!1}L&&(T.set(x,b),c(b,x,a,p,T),T.delete(x)),cs(e,r,b)}function Su(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,Rt(t,r)?e[t]:n}function vu(e,t,r){t.length?t=le(t,function(p){return H(p)?function(T){return ln(T,p.length===1?p[0]:p)}:p}):t=[Fe];var a=-1;t=le(t,$e(F()));var c=hu(e,function(p,T,h){var x=le(t,function(_){return _(p)});return{criteria:x,index:++a,value:p}});return lm(c,function(p,T){return XT(p,T,r)})}function UT(e,t){return wu(e,t,function(r,a){return Vs(e,a)})}function wu(e,t,r){for(var a=-1,c=t.length,p={};++a<c;){var T=t[a],h=ln(e,T);r(h,T)&&Ir(p,Xt(T,e),h)}return p}function BT(e){return function(t){return ln(t,e)}}function hs(e,t,r,a){var c=a?um:Pn,p=-1,T=t.length,h=e;for(e===t&&(t=Ne(t)),r&&(h=le(e,$e(r)));++p<T;)for(var x=0,_=t[p],b=r?r(_):_;(x=c(h,b,x,a))>-1;)h!==e&&uo.call(h,x,1),uo.call(e,x,1);return e}function Au(e,t){for(var r=e?t.length:0,a=r-1;r--;){var c=t[r];if(r==a||c!==p){var p=c;Rt(c)?uo.call(e,c,1):vs(e,c)}}return e}function ys(e,t){return e+fo(ru()*(t-e+1))}function WT(e,t,r,a){for(var c=-1,p=Se(po((t-e)/(r||1)),0),T=w(p);p--;)T[a?p:++c]=e,e+=r;return T}function xs(e,t){var r="";if(!e||t<1||t>$t)return r;do t%2&&(r+=e),t=fo(t/2),t&&(e+=e);while(t);return r}function Y(e,t){return Ms(ju(e,t,Fe),e+"")}function GT(e){return su($n(e))}function $T(e,t){var r=$n(e);return Co(r,un(t,0,r.length))}function Ir(e,t,r,a){if(!pe(e))return e;t=Xt(t,e);for(var c=-1,p=t.length,T=p-1,h=e;h!=null&&++c<p;){var x=yt(t[c]),_=r;if(x==="__proto__"||x==="constructor"||x==="prototype")return e;if(c!=T){var b=h[x];_=a?a(b,x,h):n,_===n&&(_=pe(b)?b:Rt(t[c+1])?[]:{})}Sr(h,x,_),h=h[x]}return e}var Iu=go?function(e,t){return go.set(e,t),e}:Fe,HT=lo?function(e,t){return lo(e,"toString",{configurable:!0,enumerable:!1,value:zs(t),writable:!0})}:Fe;function VT(e){return Co($n(e))}function nt(e,t,r){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var p=w(c);++a<c;)p[a]=e[a+t];return p}function qT(e,t){var r;return Yt(e,function(a,c,p){return r=t(a,c,p),!r}),!!r}function vo(e,t,r){var a=0,c=e==null?a:e.length;if(typeof t=="number"&&t===t&&c<=Kd){for(;a<c;){var p=a+c>>>1,T=e[p];T!==null&&!Ve(T)&&(r?T<=t:T<t)?a=p+1:c=p}return c}return Ss(e,t,Fe,r)}function Ss(e,t,r,a){var c=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var T=t!==t,h=t===null,x=Ve(t),_=t===n;c<p;){var b=fo((c+p)/2),L=r(e[b]),C=L!==n,N=L===null,U=L===L,z=Ve(L);if(T)var B=a||U;else _?B=U&&(a||C):h?B=U&&C&&(a||!N):x?B=U&&C&&!N&&(a||!z):N||z?B=!1:B=a?L<=t:L<t;B?c=b+1:p=b}return Ee(p,zd)}function _u(e,t){for(var r=-1,a=e.length,c=0,p=[];++r<a;){var T=e[r],h=t?t(T):T;if(!r||!pt(h,x)){var x=h;p[c++]=T===0?0:T}}return p}function bu(e){return typeof e=="number"?e:Ve(e)?qr:+e}function He(e){if(typeof e=="string")return e;if(H(e))return le(e,He)+"";if(Ve(e))return ou?ou.call(e):"";var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function Zt(e,t,r){var a=-1,c=jr,p=e.length,T=!0,h=[],x=h;if(r)T=!1,c=Zi;else if(p>=i){var _=t?null:nh(e);if(_)return to(_);T=!1,c=gr,x=new cn}else x=t?[]:h;e:for(;++a<p;){var b=e[a],L=t?t(b):b;if(b=r||b!==0?b:0,T&&L===L){for(var C=x.length;C--;)if(x[C]===L)continue e;t&&x.push(L),h.push(b)}else c(x,L,r)||(x!==h&&x.push(L),h.push(b))}return h}function vs(e,t){return t=Xt(t,e),e=el(e,t),e==null||delete e[yt(rt(t))]}function Lu(e,t,r,a){return Ir(e,t,r(ln(e,t)),a)}function wo(e,t,r,a){for(var c=e.length,p=a?c:-1;(a?p--:++p<c)&&t(e[p],p,e););return r?nt(e,a?0:p,a?p+1:c):nt(e,a?p+1:0,a?c:p)}function Eu(e,t){var r=e;return r instanceof X&&(r=r.value()),Xi(t,function(a,c){return c.func.apply(c.thisArg,Vt([a],c.args))},r)}function ws(e,t,r){var a=e.length;if(a<2)return a?Zt(e[0]):[];for(var c=-1,p=w(a);++c<a;)for(var T=e[c],h=-1;++h<a;)h!=c&&(p[c]=vr(p[c]||T,e[h],t,r));return Zt(be(p,1),t,r)}function ku(e,t,r){for(var a=-1,c=e.length,p=t.length,T={};++a<c;){var h=a<p?t[a]:n;r(T,e[a],h)}return T}function As(e){return me(e)?e:[]}function Is(e){return typeof e=="function"?e:Fe}function Xt(e,t){return H(e)?e:Ds(e,t)?[e]:ol(te(e))}var zT=Y;function Jt(e,t,r){var a=e.length;return r=r===n?a:r,!t&&r>=a?e:nt(e,t,r)}var Cu=Dm||function(e){return ve.clearTimeout(e)};function Pu(e,t){if(t)return e.slice();var r=e.length,a=Qc?Qc(r):new e.constructor(r);return e.copy(a),a}function _s(e){var t=new e.constructor(e.byteLength);return new ao(t).set(new ao(e)),t}function KT(e,t){var r=t?_s(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function YT(e){var t=new e.constructor(e.source,gc.exec(e));return t.lastIndex=e.lastIndex,t}function ZT(e){return xr?oe(xr.call(e)):{}}function Ru(e,t){var r=t?_s(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Du(e,t){if(e!==t){var r=e!==n,a=e===null,c=e===e,p=Ve(e),T=t!==n,h=t===null,x=t===t,_=Ve(t);if(!h&&!_&&!p&&e>t||p&&T&&x&&!h&&!_||a&&T&&x||!r&&x||!c)return 1;if(!a&&!p&&!_&&e<t||_&&r&&c&&!a&&!p||h&&r&&c||!T&&c||!x)return-1}return 0}function XT(e,t,r){for(var a=-1,c=e.criteria,p=t.criteria,T=c.length,h=r.length;++a<T;){var x=Du(c[a],p[a]);if(x){if(a>=h)return x;var _=r[a];return x*(_=="desc"?-1:1)}}return e.index-t.index}function Nu(e,t,r,a){for(var c=-1,p=e.length,T=r.length,h=-1,x=t.length,_=Se(p-T,0),b=w(x+_),L=!a;++h<x;)b[h]=t[h];for(;++c<T;)(L||c<p)&&(b[r[c]]=e[c]);for(;_--;)b[h++]=e[c++];return b}function Ou(e,t,r,a){for(var c=-1,p=e.length,T=-1,h=r.length,x=-1,_=t.length,b=Se(p-h,0),L=w(b+_),C=!a;++c<b;)L[c]=e[c];for(var N=c;++x<_;)L[N+x]=t[x];for(;++T<h;)(C||c<p)&&(L[N+r[T]]=e[c++]);return L}function Ne(e,t){var r=-1,a=e.length;for(t||(t=w(a));++r<a;)t[r]=e[r];return t}function ht(e,t,r,a){var c=!r;r||(r={});for(var p=-1,T=t.length;++p<T;){var h=t[p],x=a?a(r[h],e[h],h,r,e):n;x===n&&(x=e[h]),c?kt(r,h,x):Sr(r,h,x)}return r}function JT(e,t){return ht(e,Rs(e),t)}function QT(e,t){return ht(e,Yu(e),t)}function Ao(e,t){return function(r,a){var c=H(r)?rm:ST,p=t?t():{};return c(r,e,F(a,2),p)}}function Un(e){return Y(function(t,r){var a=-1,c=r.length,p=c>1?r[c-1]:n,T=c>2?r[2]:n;for(p=e.length>3&&typeof p=="function"?(c--,p):n,T&&Re(r[0],r[1],T)&&(p=c<3?n:p,c=1),t=oe(t);++a<c;){var h=r[a];h&&e(t,h,a,p)}return t})}function Mu(e,t){return function(r,a){if(r==null)return r;if(!Oe(r))return e(r,a);for(var c=r.length,p=t?c:-1,T=oe(r);(t?p--:++p<c)&&a(T[p],p,T)!==!1;);return r}}function Fu(e){return function(t,r,a){for(var c=-1,p=oe(t),T=a(t),h=T.length;h--;){var x=T[e?h:++c];if(r(p[x],x,p)===!1)break}return t}}function jT(e,t,r){var a=t&ge,c=_r(e);function p(){var T=this&&this!==ve&&this instanceof p?c:e;return T.apply(a?r:this,arguments)}return p}function Uu(e){return function(t){t=te(t);var r=Rn(t)?ut(t):n,a=r?r[0]:t.charAt(0),c=r?Jt(r,1).join(""):t.slice(1);return a[e]()+c}}function Bn(e){return function(t){return Xi(Ml(Ol(t).replace(Hg,"")),e,"")}}function _r(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Fn(e.prototype),a=e.apply(r,t);return pe(a)?a:r}}function eh(e,t,r){var a=_r(e);function c(){for(var p=arguments.length,T=w(p),h=p,x=Wn(c);h--;)T[h]=arguments[h];var _=p<3&&T[0]!==x&&T[p-1]!==x?[]:qt(T,x);if(p-=_.length,p<r)return Hu(e,t,Io,c.placeholder,n,T,_,n,n,r-p);var b=this&&this!==ve&&this instanceof c?a:e;return Ge(b,this,T)}return c}function Bu(e){return function(t,r,a){var c=oe(t);if(!Oe(t)){var p=F(r,3);t=we(t),r=function(h){return p(c[h],h,c)}}var T=e(t,r,a);return T>-1?c[p?t[T]:T]:n}}function Wu(e){return Pt(function(t){var r=t.length,a=r,c=et.prototype.thru;for(e&&t.reverse();a--;){var p=t[a];if(typeof p!="function")throw new je(m);if(c&&!T&&Eo(p)=="wrapper")var T=new et([],!0)}for(a=T?a:r;++a<r;){p=t[a];var h=Eo(p),x=h=="wrapper"?Cs(p):n;x&&Ns(x[0])&&x[1]==(_t|dt|gt|sr)&&!x[4].length&&x[9]==1?T=T[Eo(x[0])].apply(T,x[3]):T=p.length==1&&Ns(p)?T[h]():T.thru(p)}return function(){var _=arguments,b=_[0];if(T&&_.length==1&&H(b))return T.plant(b).value();for(var L=0,C=r?t[L].apply(this,_):b;++L<r;)C=t[L].call(this,C);return C}})}function Io(e,t,r,a,c,p,T,h,x,_){var b=t&_t,L=t&ge,C=t&_e,N=t&(dt|bn),U=t&Ci,z=C?n:_r(e);function B(){for(var Z=arguments.length,J=w(Z),qe=Z;qe--;)J[qe]=arguments[qe];if(N)var De=Wn(B),ze=fm(J,De);if(a&&(J=Nu(J,a,c,N)),p&&(J=Ou(J,p,T,N)),Z-=ze,N&&Z<_){var Te=qt(J,De);return Hu(e,t,Io,B.placeholder,r,J,Te,h,x,_-Z)}var ft=L?r:this,Ot=C?ft[e]:e;return Z=J.length,h?J=Sh(J,h):U&&Z>1&&J.reverse(),b&&x<Z&&(J.length=x),this&&this!==ve&&this instanceof B&&(Ot=z||_r(Ot)),Ot.apply(ft,J)}return B}function Gu(e,t){return function(r,a){return ET(r,e,t(a),{})}}function _o(e,t){return function(r,a){var c;if(r===n&&a===n)return t;if(r!==n&&(c=r),a!==n){if(c===n)return a;typeof r=="string"||typeof a=="string"?(r=He(r),a=He(a)):(r=bu(r),a=bu(a)),c=e(r,a)}return c}}function bs(e){return Pt(function(t){return t=le(t,$e(F())),Y(function(r){var a=this;return e(t,function(c){return Ge(c,a,r)})})})}function bo(e,t){t=t===n?" ":He(t);var r=t.length;if(r<2)return r?xs(t,e):t;var a=xs(t,po(e/Dn(t)));return Rn(t)?Jt(ut(a),0,e).join(""):a.slice(0,e)}function th(e,t,r,a){var c=t&ge,p=_r(e);function T(){for(var h=-1,x=arguments.length,_=-1,b=a.length,L=w(b+x),C=this&&this!==ve&&this instanceof T?p:e;++_<b;)L[_]=a[_];for(;x--;)L[_++]=arguments[++h];return Ge(C,c?r:this,L)}return T}function $u(e){return function(t,r,a){return a&&typeof a!="number"&&Re(t,r,a)&&(r=a=n),t=Nt(t),r===n?(r=t,t=0):r=Nt(r),a=a===n?t<r?1:-1:Nt(a),WT(t,r,a,e)}}function Lo(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=ot(t),r=ot(r)),e(t,r)}}function Hu(e,t,r,a,c,p,T,h,x,_){var b=t&dt,L=b?T:n,C=b?n:T,N=b?p:n,U=b?n:p;t|=b?gt:Ln,t&=~(b?Ln:gt),t&ac||(t&=~(ge|_e));var z=[e,t,c,N,L,U,C,h,x,_],B=r.apply(n,z);return Ns(e)&&tl(B,z),B.placeholder=a,nl(B,e,t)}function Ls(e){var t=xe[e];return function(r,a){if(r=ot(r),a=a==null?0:Ee(q(a),292),a&&nu(r)){var c=(te(r)+"e").split("e"),p=t(c[0]+"e"+(+c[1]+a));return c=(te(p)+"e").split("e"),+(c[0]+"e"+(+c[1]-a))}return t(r)}}var nh=On&&1/to(new On([,-0]))[1]==rn?function(e){return new On(e)}:Zs;function Vu(e){return function(t){var r=ke(t);return r==at?rs(t):r==ct?xm(t):pm(t,e(t))}}function Ct(e,t,r,a,c,p,T,h){var x=t&_e;if(!x&&typeof e!="function")throw new je(m);var _=a?a.length:0;if(_||(t&=~(gt|Ln),a=c=n),T=T===n?T:Se(q(T),0),h=h===n?h:q(h),_-=c?c.length:0,t&Ln){var b=a,L=c;a=c=n}var C=x?n:Cs(e),N=[e,t,r,a,c,b,L,p,T,h];if(C&&hh(N,C),e=N[0],t=N[1],r=N[2],a=N[3],c=N[4],h=N[9]=N[9]===n?x?0:e.length:Se(N[9]-_,0),!h&&t&(dt|bn)&&(t&=~(dt|bn)),!t||t==ge)var U=jT(e,t,r);else t==dt||t==bn?U=eh(e,t,h):(t==gt||t==(ge|gt))&&!c.length?U=th(e,t,r,a):U=Io.apply(n,N);var z=C?Iu:tl;return nl(z(U,N),e,t)}function qu(e,t,r,a){return e===n||pt(e,Nn[r])&&!re.call(a,r)?t:e}function zu(e,t,r,a,c,p){return pe(e)&&pe(t)&&(p.set(t,e),So(e,t,n,zu,p),p.delete(t)),e}function rh(e){return Er(e)?n:e}function Ku(e,t,r,a,c,p){var T=r&ue,h=e.length,x=t.length;if(h!=x&&!(T&&x>h))return!1;var _=p.get(e),b=p.get(t);if(_&&b)return _==t&&b==e;var L=-1,C=!0,N=r&ye?new cn:n;for(p.set(e,t),p.set(t,e);++L<h;){var U=e[L],z=t[L];if(a)var B=T?a(z,U,L,t,e,p):a(U,z,L,e,t,p);if(B!==n){if(B)continue;C=!1;break}if(N){if(!Ji(t,function(Z,J){if(!gr(N,J)&&(U===Z||c(U,Z,r,a,p)))return N.push(J)})){C=!1;break}}else if(!(U===z||c(U,z,r,a,p))){C=!1;break}}return p.delete(e),p.delete(t),C}function oh(e,t,r,a,c,p,T){switch(r){case kn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case dr:return!(e.byteLength!=t.byteLength||!p(new ao(e),new ao(t)));case ar:case cr:case ur:return pt(+e,+t);case Kr:return e.name==t.name&&e.message==t.message;case lr:case pr:return e==t+"";case at:var h=rs;case ct:var x=a&ue;if(h||(h=to),e.size!=t.size&&!x)return!1;var _=T.get(e);if(_)return _==t;a|=ye,T.set(e,t);var b=Ku(h(e),h(t),a,c,p,T);return T.delete(e),b;case Zr:if(xr)return xr.call(e)==xr.call(t)}return!1}function ih(e,t,r,a,c,p){var T=r&ue,h=Es(e),x=h.length,_=Es(t),b=_.length;if(x!=b&&!T)return!1;for(var L=x;L--;){var C=h[L];if(!(T?C in t:re.call(t,C)))return!1}var N=p.get(e),U=p.get(t);if(N&&U)return N==t&&U==e;var z=!0;p.set(e,t),p.set(t,e);for(var B=T;++L<x;){C=h[L];var Z=e[C],J=t[C];if(a)var qe=T?a(J,Z,C,t,e,p):a(Z,J,C,e,t,p);if(!(qe===n?Z===J||c(Z,J,r,a,p):qe)){z=!1;break}B||(B=C=="constructor")}if(z&&!B){var De=e.constructor,ze=t.constructor;De!=ze&&"constructor"in e&&"constructor"in t&&!(typeof De=="function"&&De instanceof De&&typeof ze=="function"&&ze instanceof ze)&&(z=!1)}return p.delete(e),p.delete(t),z}function Pt(e){return Ms(ju(e,n,cl),e+"")}function Es(e){return du(e,we,Rs)}function ks(e){return du(e,Me,Yu)}var Cs=go?function(e){return go.get(e)}:Zs;function Eo(e){for(var t=e.name+"",r=Mn[t],a=re.call(Mn,t)?r.length:0;a--;){var c=r[a],p=c.func;if(p==null||p==e)return c.name}return t}function Wn(e){var t=re.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||Ks;return e=e===Ks?Tu:e,arguments.length?e(arguments[0],arguments[1]):e}function ko(e,t){var r=e.__data__;return dh(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ps(e){for(var t=we(e),r=t.length;r--;){var a=t[r],c=e[a];t[r]=[a,c,Ju(c)]}return t}function pn(e,t){var r=Tm(e,t);return mu(r)?r:n}function sh(e){var t=re.call(e,sn),r=e[sn];try{e[sn]=n;var a=!0}catch(p){}var c=io.call(e);return a&&(t?e[sn]=r:delete e[sn]),c}var Rs=is?function(e){return e==null?[]:(e=oe(e),Ht(is(e),function(t){return eu.call(e,t)}))}:Xs,Yu=is?function(e){for(var t=[];e;)Vt(t,Rs(e)),e=co(e);return t}:Xs,ke=Pe;(ss&&ke(new ss(new ArrayBuffer(1)))!=kn||Tr&&ke(new Tr)!=at||as&&ke(as.resolve())!=lc||On&&ke(new On)!=ct||hr&&ke(new hr)!=fr)&&(ke=function(e){var t=Pe(e),r=t==bt?e.constructor:n,a=r?fn(r):"";if(a)switch(a){case $m:return kn;case Hm:return at;case Vm:return lc;case qm:return ct;case zm:return fr}return t});function ah(e,t,r){for(var a=-1,c=r.length;++a<c;){var p=r[a],T=p.size;switch(p.type){case"drop":e+=T;break;case"dropRight":t-=T;break;case"take":t=Ee(t,e+T);break;case"takeRight":e=Se(e,t-T);break}}return{start:e,end:t}}function ch(e){var t=e.match(gg);return t?t[1].split(mg):[]}function Zu(e,t,r){t=Xt(t,e);for(var a=-1,c=t.length,p=!1;++a<c;){var T=yt(t[a]);if(!(p=e!=null&&r(e,T)))break;e=e[T]}return p||++a!=c?p:(c=e==null?0:e.length,!!c&&Mo(c)&&Rt(T,c)&&(H(e)||dn(e)))}function uh(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&re.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function Xu(e){return typeof e.constructor=="function"&&!br(e)?Fn(co(e)):{}}function lh(e,t,r){var a=e.constructor;switch(t){case dr:return _s(e);case ar:case cr:return new a(+e);case kn:return KT(e,r);case Pi:case Ri:case Di:case Ni:case Oi:case Mi:case Fi:case Ui:case Bi:return Ru(e,r);case at:return new a;case ur:case pr:return new a(e);case lr:return YT(e);case ct:return new a;case Zr:return ZT(e)}}function ph(e,t){var r=t.length;if(!r)return e;var a=r-1;return t[a]=(r>1?"& ":"")+t[a],t=t.join(r>2?", ":" "),e.replace(dg,`{
|
|
2
2
|
/* [wrapped with `+t+`] */
|
|
3
|
-
`)}function lh(e){return H(e)||dn(e)||!!(tu&&e&&e[tu])}function Rt(e,t){var r=typeof e;return t=t==null?$t:t,!!t&&(r=="number"||r!="symbol"&&wg.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!pe(r))return!1;var a=typeof t;return(a=="number"?Oe(r)&&Rt(t,r.length):a=="string"&&t in r)?pt(r[t],e):!1}function Ds(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:ag.test(e)||!sg.test(e)||t!=null&&e in oe(t)}function ph(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ns(e){var t=Eo(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Cs(r);return!!a&&e===a[0]}function fh(e){return!!Jc&&Jc in e}var dh=ro?Dt:Js;function br(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nn;return e===r}function Ju(e){return e===e&&!pe(e)}function Qu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function gh(e){var t=No(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function mh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|_e|_t),T=a==_t&&r==dt||a==_t&&r==sr&&e[7].length<=t[8]||a==(_t|sr)&&t[7].length<=t[8]&&r==dt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:ac);var h=t[3];if(h){var x=e[3];e[3]=x?Nu(x,h,t[4]):h,e[4]=x?qt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Ou(x,h,t[6]):h,e[6]=x?qt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&_t&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function Th(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function hh(e){return io.call(e)}function ju(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=Se(a.length-t,0),T=w(p);++c<p;)T[c]=a[t+c];c=-1;for(var h=w(t+1);++c<t;)h[c]=a[c];return h[t]=r(T),Ge(e,this,h)}}function el(e,t){return t.length<2?e:ln(e,nt(t,0,-1))}function yh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Ne(e);a--;){var p=t[a];e[a]=Rt(p,r)?c[p]:n}return e}function Os(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=rl(Iu),Lr=Dm||function(e,t){return ve.setTimeout(e,t)},Ms=rl(GT);function nl(e,t,r){var a=t+"";return Ms(e,uh(a,xh(sh(a),r)))}function rl(e){var t=0,r=0;return function(){var a=Fm(),c=Wd-(a-r);if(r=a,c>0){if(++t>=Bd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Co(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=ys(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var ol=gh(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cg,function(r,a,c,p){t.push(c?p.replace(Tg,"$1"):a||r)}),t});function yt(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function fn(e){if(e!=null){try{return oo.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function xh(e,t){return Qe(zd,function(r){var a="_."+r[0];t&r[1]&&!jr(e,a)&&e.push(a)}),e.sort()}function il(e){if(e instanceof X)return e.clone();var t=new et(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Sh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=Se(q(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(po(a/t));c<a;)T[p++]=nt(e,c,c+=t);return T}function vh(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var p=e[t];p&&(c[a++]=p)}return c}function wh(){var e=arguments.length;if(!e)return[];for(var t=w(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Vt(H(r)?Ne(r):[r],be(t,1))}var Ah=Y(function(e,t){return me(e)?vr(e,be(t,1,me,!0)):[]}),Ih=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?vr(e,be(t,1,me,!0),F(r,2)):[]}),_h=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?vr(e,be(t,1,me,!0),n,r):[]});function bh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:q(t),nt(e,t<0?0:t,a)):[]}function Lh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:q(t),t=a-t,nt(e,0,t<0?0:t)):[]}function Eh(e,t){return e&&e.length?wo(e,F(t,3),!0,!0):[]}function kh(e,t){return e&&e.length?wo(e,F(t,3),!0):[]}function Ch(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Re(e,t,r)&&(r=0,a=c),wT(e,t,r,a)):[]}function sl(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:q(r);return c<0&&(c=Se(a+c,0)),eo(e,F(t,3),c)}function al(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==n&&(c=q(r),c=r<0?Se(a+c,0):Ee(c,a-1)),eo(e,F(t,3),c,!0)}function cl(e){var t=e==null?0:e.length;return t?be(e,1):[]}function Ph(e){var t=e==null?0:e.length;return t?be(e,rn):[]}function Rh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:q(t),be(e,t)):[]}function Dh(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function ul(e){return e&&e.length?e[0]:n}function Nh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:q(r);return c<0&&(c=Se(a+c,0)),Pn(e,t,c)}function Oh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var Mh=Y(function(e){var t=le(e,As);return t.length&&t[0]===e[0]?ds(t):[]}),Fh=Y(function(e){var t=rt(e),r=le(e,As);return t===rt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ds(r,F(t,2)):[]}),Uh=Y(function(e){var t=rt(e),r=le(e,As);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ds(r,n,t):[]});function Bh(e,t){return e==null?"":Om.call(e,t)}function rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Wh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==n&&(c=q(r),c=c<0?Se(a+c,0):Ee(c,a-1)),t===t?xm(e,t,c):eo(e,Hc,c,!0)}function Gh(e,t){return e&&e.length?Su(e,q(t)):n}var $h=Y(ll);function ll(e,t){return e&&e.length&&t&&t.length?hs(e,t):e}function Hh(e,t,r){return e&&e.length&&t&&t.length?hs(e,t,F(r,2)):e}function Vh(e,t,r){return e&&e.length&&t&&t.length?hs(e,t,n,r):e}var qh=Pt(function(e,t){var r=e==null?0:e.length,a=us(e,t);return Au(e,le(t,function(c){return Rt(c,r)?+c:c}).sort(Du)),a});function zh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=F(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return Au(e,c),r}function Fs(e){return e==null?e:Bm.call(e)}function Kh(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&Re(e,t,r)?(t=0,r=a):(t=t==null?0:q(t),r=r===n?a:q(r)),nt(e,t,r)):[]}function Yh(e,t){return vo(e,t)}function Zh(e,t,r){return Ss(e,t,F(r,2))}function Xh(e,t){var r=e==null?0:e.length;if(r){var a=vo(e,t);if(a<r&&pt(e[a],t))return a}return-1}function Jh(e,t){return vo(e,t,!0)}function Qh(e,t,r){return Ss(e,t,F(r,2),!0)}function jh(e,t){var r=e==null?0:e.length;if(r){var a=vo(e,t,!0)-1;if(pt(e[a],t))return a}return-1}function ey(e){return e&&e.length?_u(e):[]}function ty(e,t){return e&&e.length?_u(e,F(t,2)):[]}function ny(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function ry(e,t,r){return e&&e.length?(t=r||t===n?1:q(t),nt(e,0,t<0?0:t)):[]}function oy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:q(t),t=a-t,nt(e,t<0?0:t,a)):[]}function iy(e,t){return e&&e.length?wo(e,F(t,3),!1,!0):[]}function sy(e,t){return e&&e.length?wo(e,F(t,3)):[]}var ay=Y(function(e){return Zt(be(e,1,me,!0))}),cy=Y(function(e){var t=rt(e);return me(t)&&(t=n),Zt(be(e,1,me,!0),F(t,2))}),uy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,Zt(be(e,1,me,!0),n,t)});function ly(e){return e&&e.length?Zt(e):[]}function py(e,t){return e&&e.length?Zt(e,F(t,2)):[]}function fy(e,t){return t=typeof t=="function"?t:n,e&&e.length?Zt(e,n,t):[]}function Us(e){if(!(e&&e.length))return[];var t=0;return e=Ht(e,function(r){if(me(r))return t=Se(r.length,t),!0}),ts(t,function(r){return le(e,Qi(r))})}function pl(e,t){if(!(e&&e.length))return[];var r=Us(e);return t==null?r:le(r,function(a){return Ge(t,n,a)})}var dy=Y(function(e,t){return me(e)?vr(e,t):[]}),gy=Y(function(e){return ws(Ht(e,me))}),my=Y(function(e){var t=rt(e);return me(t)&&(t=n),ws(Ht(e,me),F(t,2))}),Ty=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,ws(Ht(e,me),n,t)}),hy=Y(Us);function yy(e,t){return ku(e||[],t||[],Sr)}function xy(e,t){return ku(e||[],t||[],Ir)}var Sy=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,pl(e,r)});function fl(e){var t=l(e);return t.__chain__=!0,t}function vy(e,t){return t(e),e}function Po(e,t){return t(e)}var wy=Pt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return us(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Rt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Po,args:[c],thisArg:n}),new et(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function Ay(){return fl(this)}function Iy(){return new et(this.value(),this.__chain__)}function _y(){this.__values__===n&&(this.__values__=bl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function by(){return this}function Ly(e){for(var t,r=this;r instanceof To;){var a=il(r);a.__index__=0,a.__values__=n,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function Ey(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Po,args:[Fs],thisArg:n}),new et(t,this.__chain__)}return this.thru(Fs)}function ky(){return Eu(this.__wrapped__,this.__actions__)}var Cy=Ao(function(e,t,r){re.call(e,r)?++e[r]:kt(e,r,1)});function Py(e,t,r){var a=H(e)?Gc:vT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}function Ry(e,t){var r=H(e)?Ht:pu;return r(e,F(t,3))}var Dy=Bu(sl),Ny=Bu(al);function Oy(e,t){return be(Ro(e,t),1)}function My(e,t){return be(Ro(e,t),rn)}function Fy(e,t,r){return r=r===n?1:q(r),be(Ro(e,t),r)}function dl(e,t){var r=H(e)?Qe:Yt;return r(e,F(t,3))}function gl(e,t){var r=H(e)?nm:lu;return r(e,F(t,3))}var Uy=Ao(function(e,t,r){re.call(e,r)?e[r].push(t):kt(e,r,[t])});function By(e,t,r,a){e=Oe(e)?e:$n(e),r=r&&!a?q(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Fo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Pn(e,t,r)>-1}var Wy=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Oe(e)?w(e.length):[];return Yt(e,function(T){p[++a]=c?Ge(t,T,r):wr(T,t,r)}),p}),Gy=Ao(function(e,t,r){kt(e,r,t)});function Ro(e,t){var r=H(e)?le:hu;return r(e,F(t,3))}function $y(e,t,r,a){return e==null?[]:(H(t)||(t=t==null?[]:[t]),r=a?n:r,H(r)||(r=r==null?[]:[r]),vu(e,t,r))}var Hy=Ao(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function Vy(e,t,r){var a=H(e)?Xi:qc,c=arguments.length<3;return a(e,F(t,4),r,c,Yt)}function qy(e,t,r){var a=H(e)?rm:qc,c=arguments.length<3;return a(e,F(t,4),r,c,lu)}function zy(e,t){var r=H(e)?Ht:pu;return r(e,Oo(F(t,3)))}function Ky(e){var t=H(e)?su:BT;return t(e)}function Yy(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=q(t);var a=H(e)?TT:WT;return a(e,t)}function Zy(e){var t=H(e)?hT:$T;return t(e)}function Xy(e){if(e==null)return 0;if(Oe(e))return Fo(e)?Dn(e):e.length;var t=ke(e);return t==at||t==ct?e.size:ms(e).length}function Jy(e,t,r){var a=H(e)?Ji:HT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}var Qy=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),vu(e,be(t,1),[])}),Do=Rm||function(){return ve.Date.now()};function jy(e,t){if(typeof t!="function")throw new je(m);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function ml(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Ct(e,_t,n,n,n,n,t)}function Tl(e,t){var r;if(typeof t!="function")throw new je(m);return e=q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Bs=Y(function(e,t,r){var a=ge;if(r.length){var c=qt(r,Wn(Bs));a|=gt}return Ct(e,a,t,r,c)}),hl=Y(function(e,t,r){var a=ge|_e;if(r.length){var c=qt(r,Wn(hl));a|=gt}return Ct(t,a,e,r,c)});function yl(e,t,r){t=r?n:t;var a=Ct(e,dt,n,n,n,n,n,t);return a.placeholder=yl.placeholder,a}function xl(e,t,r){t=r?n:t;var a=Ct(e,bn,n,n,n,n,n,t);return a.placeholder=xl.placeholder,a}function Sl(e,t,r){var a,c,p,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new je(m);t=ot(t)||0,pe(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(ot(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function N(Te){var ft=a,Ot=c;return a=c=n,_=Te,T=e.apply(Ot,ft),T}function U(Te){return _=Te,h=Lr(Z,t),b?N(Te):T}function z(Te){var ft=Te-x,Ot=Te-_,Bl=t-ft;return L?Ee(Bl,p-Ot):Bl}function B(Te){var ft=Te-x,Ot=Te-_;return x===n||ft>=t||ft<0||L&&Ot>=p}function Z(){var Te=Do();if(B(Te))return J(Te);h=Lr(Z,z(Te))}function J(Te){return h=n,C&&a?N(Te):(a=c=n,T)}function qe(){h!==n&&Cu(h),_=0,a=x=c=h=n}function De(){return h===n?T:J(Do())}function ze(){var Te=Do(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return Cu(h),h=Lr(Z,t),N(x)}return h===n&&(h=Lr(Z,t)),T}return ze.cancel=qe,ze.flush=De,ze}var ex=Y(function(e,t){return uu(e,1,t)}),tx=Y(function(e,t,r){return uu(e,ot(t)||0,r)});function nx(e){return Ct(e,Ci)}function No(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new je(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],p=r.cache;if(p.has(c))return p.get(c);var T=e.apply(this,a);return r.cache=p.set(c,T)||p,T};return r.cache=new(No.Cache||Et),r}No.Cache=Et;function Oo(e){if(typeof e!="function")throw new je(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function rx(e){return Tl(2,e)}var ox=VT(function(e,t){t=t.length==1&&H(t[0])?le(t[0],$e(F())):le(be(t,1),$e(F()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),Ws=Y(function(e,t){var r=qt(t,Wn(Ws));return Ct(e,gt,n,t,r)}),vl=Y(function(e,t){var r=qt(t,Wn(vl));return Ct(e,Ln,n,t,r)}),ix=Pt(function(e,t){return Ct(e,sr,n,n,n,t)});function sx(e,t){if(typeof e!="function")throw new je(m);return t=t===n?t:q(t),Y(e,t)}function ax(e,t){if(typeof e!="function")throw new je(m);return t=t==null?0:Se(q(t),0),Y(function(r){var a=r[t],c=Jt(r,0,t);return a&&Vt(c,a),Ge(e,this,c)})}function cx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new je(m);return pe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Sl(e,t,{leading:a,maxWait:t,trailing:c})}function ux(e){return ml(e,1)}function lx(e,t){return Ws(Is(t),e)}function px(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function fx(e){return tt(e,M)}function dx(e,t){return t=typeof t=="function"?t:n,tt(e,M,t)}function gx(e){return tt(e,D|M)}function mx(e,t){return t=typeof t=="function"?t:n,tt(e,D|M,t)}function Tx(e,t){return t==null||cu(e,t,we(t))}function pt(e,t){return e===t||e!==e&&t!==t}var hx=Lo(fs),yx=Lo(function(e,t){return e>=t}),dn=gu(function(){return arguments}())?gu:function(e){return fe(e)&&re.call(e,"callee")&&!eu.call(e,"callee")},H=w.isArray,xx=Oc?$e(Oc):LT;function Oe(e){return e!=null&&Mo(e.length)&&!Dt(e)}function me(e){return fe(e)&&Oe(e)}function Sx(e){return e===!0||e===!1||fe(e)&&Pe(e)==ar}var Qt=Nm||Js,vx=Mc?$e(Mc):ET;function wx(e){return fe(e)&&e.nodeType===1&&!Er(e)}function Ax(e){if(e==null)return!0;if(Oe(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||Qt(e)||Gn(e)||dn(e)))return!e.length;var t=ke(e);if(t==at||t==ct)return!e.size;if(br(e))return!ms(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function Ix(e,t){return Ar(e,t)}function _x(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?Ar(e,t,n,r):!!a}function Gs(e){if(!fe(e))return!1;var t=Pe(e);return t==Kr||t==Yd||typeof e.message=="string"&&typeof e.name=="string"&&!Er(e)}function bx(e){return typeof e=="number"&&nu(e)}function Dt(e){if(!pe(e))return!1;var t=Pe(e);return t==Yr||t==uc||t==Kd||t==Xd}function wl(e){return typeof e=="number"&&e==q(e)}function Mo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$t}function pe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var Al=Fc?$e(Fc):CT;function Lx(e,t){return e===t||gs(e,t,Ps(t))}function Ex(e,t,r){return r=typeof r=="function"?r:n,gs(e,t,Ps(t),r)}function kx(e){return Il(e)&&e!=+e}function Cx(e){if(dh(e))throw new G(u);return mu(e)}function Px(e){return e===null}function Rx(e){return e==null}function Il(e){return typeof e=="number"||fe(e)&&Pe(e)==ur}function Er(e){if(!fe(e)||Pe(e)!=bt)return!1;var t=co(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oo.call(r)==Em}var $s=Uc?$e(Uc):PT;function Dx(e){return wl(e)&&e>=-$t&&e<=$t}var _l=Bc?$e(Bc):RT;function Fo(e){return typeof e=="string"||!H(e)&&fe(e)&&Pe(e)==pr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==Zr}var Gn=Wc?$e(Wc):DT;function Nx(e){return e===n}function Ox(e){return fe(e)&&ke(e)==fr}function Mx(e){return fe(e)&&Pe(e)==Qd}var Fx=Lo(Ts),Ux=Lo(function(e,t){return e<=t});function bl(e){if(!e)return[];if(Oe(e))return Fo(e)?ut(e):Ne(e);if(mr&&e[mr])return Tm(e[mr]());var t=ke(e),r=t==at?rs:t==ct?to:$n;return r(e)}function Nt(e){if(!e)return e===0?e:0;if(e=ot(e),e===rn||e===-rn){var t=e<0?-1:1;return t*Hd}return e===e?e:0}function q(e){var t=Nt(e),r=t%1;return t===t?r?t-r:t:0}function Ll(e){return e?un(q(e),0,mt):0}function ot(e){if(typeof e=="number")return e;if(Ve(e))return qr;if(pe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zc(e);var r=xg.test(e);return r||vg.test(e)?jg(e.slice(2),r?2:8):yg.test(e)?qr:+e}function El(e){return ht(e,Me(e))}function Bx(e){return e?un(q(e),-$t,$t):e===0?e:0}function te(e){return e==null?"":He(e)}var Wx=Un(function(e,t){if(br(t)||Oe(t)){ht(t,we(t),e);return}for(var r in t)re.call(t,r)&&Sr(e,r,t[r])}),kl=Un(function(e,t){ht(t,Me(t),e)}),Uo=Un(function(e,t,r,a){ht(t,Me(t),e,a)}),Gx=Un(function(e,t,r,a){ht(t,we(t),e,a)}),$x=Pt(us);function Hx(e,t){var r=Fn(e);return t==null?r:au(r,t)}var Vx=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Me(p),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||pt(b,Nn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),qx=Y(function(e){return e.push(n,zu),Ge(Cl,n,e)});function zx(e,t){return $c(e,F(t,3),Tt)}function Kx(e,t){return $c(e,F(t,3),ps)}function Yx(e,t){return e==null?e:ls(e,F(t,3),Me)}function Zx(e,t){return e==null?e:fu(e,F(t,3),Me)}function Xx(e,t){return e&&Tt(e,F(t,3))}function Jx(e,t){return e&&ps(e,F(t,3))}function Qx(e){return e==null?[]:xo(e,we(e))}function jx(e){return e==null?[]:xo(e,Me(e))}function Hs(e,t,r){var a=e==null?n:ln(e,t);return a===n?r:a}function eS(e,t){return e!=null&&Zu(e,t,AT)}function Vs(e,t){return e!=null&&Zu(e,t,IT)}var tS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=io.call(t)),e[t]=r},zs(Fe)),nS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=io.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},F),rS=Y(wr);function we(e){return Oe(e)?iu(e):ms(e)}function Me(e){return Oe(e)?iu(e,!0):NT(e)}function oS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,t(a,c,p),a)}),r}function iS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,c,t(a,c,p))}),r}var sS=Un(function(e,t,r){So(e,t,r)}),Cl=Un(function(e,t,r,a){So(e,t,r,a)}),aS=Pt(function(e,t){var r={};if(e==null)return r;var a=!1;t=le(t,function(p){return p=Xt(p,e),a||(a=p.length>1),p}),ht(e,ks(e),r),a&&(r=tt(r,D|$|M,th));for(var c=t.length;c--;)vs(r,t[c]);return r});function cS(e,t){return Pl(e,Oo(F(t)))}var uS=Pt(function(e,t){return e==null?{}:MT(e,t)});function Pl(e,t){if(e==null)return{};var r=le(ks(e),function(a){return[a]});return t=F(t),wu(e,r,function(a,c){return t(a,c[0])})}function lS(e,t,r){t=Xt(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[yt(t[a])];p===n&&(a=c,p=r),e=Dt(p)?p.call(e):p}return e}function pS(e,t,r){return e==null?e:Ir(e,t,r)}function fS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Ir(e,t,r,a)}var Rl=Vu(we),Dl=Vu(Me);function dS(e,t,r){var a=H(e),c=a||Qt(e)||Gn(e);if(t=F(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:pe(e)?r=Dt(p)?Fn(co(e)):{}:r={}}return(c?Qe:Tt)(e,function(T,h,x){return t(r,T,h,x)}),r}function gS(e,t){return e==null?!0:vs(e,t)}function mS(e,t,r){return e==null?e:Lu(e,t,Is(r))}function TS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Lu(e,t,Is(r),a)}function $n(e){return e==null?[]:ns(e,we(e))}function hS(e){return e==null?[]:ns(e,Me(e))}function yS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=ot(r),r=r===r?r:0),t!==n&&(t=ot(t),t=t===t?t:0),un(ot(e),t,r)}function xS(e,t,r){return t=Nt(t),r===n?(r=t,t=0):r=Nt(r),e=ot(e),_T(e,t,r)}function SS(e,t,r){if(r&&typeof r!="boolean"&&Re(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Nt(e),t===n?(t=e,e=0):t=Nt(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=ru();return Ee(e+c*(t-e+Qg("1e-"+((c+"").length-1))),t)}return ys(e,t)}var vS=Bn(function(e,t,r){return t=t.toLowerCase(),e+(r?Nl(t):t)});function Nl(e){return qs(te(e).toLowerCase())}function Ol(e){return e=te(e),e&&e.replace(Ag,pm).replace($g,"")}function wS(e,t,r){e=te(e),t=He(t);var a=e.length;r=r===n?a:un(q(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function AS(e){return e=te(e),e&&rg.test(e)?e.replace(fc,fm):e}function IS(e){return e=te(e),e&&ug.test(e)?e.replace(Wi,"\\$&"):e}var _S=Bn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),bS=Bn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),LS=Uu("toLowerCase");function ES(e,t,r){e=te(e),t=q(t);var a=t?Dn(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return bo(fo(c),r)+e+bo(po(c),r)}function kS(e,t,r){e=te(e),t=q(t);var a=t?Dn(e):0;return t&&a<t?e+bo(t-a,r):e}function CS(e,t,r){e=te(e),t=q(t);var a=t?Dn(e):0;return t&&a<t?bo(t-a,r)+e:e}function PS(e,t,r){return r||t==null?t=0:t&&(t=+t),Um(te(e).replace(Gi,""),t||0)}function RS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=q(t),xs(te(e),t)}function DS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var NS=Bn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function OS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?mt:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!$s(t))&&(t=He(t),!t&&Rn(e))?Jt(ut(e),0,r):e.split(t,r)):[]}var MS=Bn(function(e,t,r){return e+(r?" ":"")+qs(t)});function FS(e,t,r){return e=te(e),r=r==null?0:un(q(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function US(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Uo({},t,a,qu);var c=Uo({},t.imports,a.imports,qu),p=we(c),T=ns(c,p),h,x,_=0,b=t.interpolate||Xr,L="__p += '",C=os((t.escape||Xr).source+"|"+b.source+"|"+(b===dc?hg:Xr).source+"|"+(t.evaluate||Xr).source+"|$","g"),N="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kg+"]")+`
|
|
4
|
-
`;e.replace(C,function(B,Z,J,qe,De,ze){return J||(J=qe),L+=e.slice(_,ze).replace(
|
|
3
|
+
`)}function fh(e){return H(e)||dn(e)||!!(tu&&e&&e[tu])}function Rt(e,t){var r=typeof e;return t=t==null?$t:t,!!t&&(r=="number"||r!="symbol"&&Ig.test(e))&&e>-1&&e%1==0&&e<t}function Re(e,t,r){if(!pe(r))return!1;var a=typeof t;return(a=="number"?Oe(r)&&Rt(t,r.length):a=="string"&&t in r)?pt(r[t],e):!1}function Ds(e,t){if(H(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ve(e)?!0:ug.test(e)||!cg.test(e)||t!=null&&e in oe(t)}function dh(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ns(e){var t=Eo(e),r=l[t];if(typeof r!="function"||!(t in X.prototype))return!1;if(e===r)return!0;var a=Cs(r);return!!a&&e===a[0]}function gh(e){return!!Jc&&Jc in e}var mh=ro?Dt:Js;function br(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nn;return e===r}function Ju(e){return e===e&&!pe(e)}function Qu(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==n||e in oe(r))}}function Th(e){var t=No(e,function(a){return r.size===k&&r.clear(),a}),r=t.cache;return t}function hh(e,t){var r=e[1],a=t[1],c=r|a,p=c<(ge|_e|_t),T=a==_t&&r==dt||a==_t&&r==sr&&e[7].length<=t[8]||a==(_t|sr)&&t[7].length<=t[8]&&r==dt;if(!(p||T))return e;a&ge&&(e[2]=t[2],c|=r&ge?0:ac);var h=t[3];if(h){var x=e[3];e[3]=x?Nu(x,h,t[4]):h,e[4]=x?qt(e[3],E):t[4]}return h=t[5],h&&(x=e[5],e[5]=x?Ou(x,h,t[6]):h,e[6]=x?qt(e[5],E):t[6]),h=t[7],h&&(e[7]=h),a&_t&&(e[8]=e[8]==null?t[8]:Ee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=c,e}function yh(e){var t=[];if(e!=null)for(var r in oe(e))t.push(r);return t}function xh(e){return io.call(e)}function ju(e,t,r){return t=Se(t===n?e.length-1:t,0),function(){for(var a=arguments,c=-1,p=Se(a.length-t,0),T=w(p);++c<p;)T[c]=a[t+c];c=-1;for(var h=w(t+1);++c<t;)h[c]=a[c];return h[t]=r(T),Ge(e,this,h)}}function el(e,t){return t.length<2?e:ln(e,nt(t,0,-1))}function Sh(e,t){for(var r=e.length,a=Ee(t.length,r),c=Ne(e);a--;){var p=t[a];e[a]=Rt(p,r)?c[p]:n}return e}function Os(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var tl=rl(Iu),Lr=Om||function(e,t){return ve.setTimeout(e,t)},Ms=rl(HT);function nl(e,t,r){var a=t+"";return Ms(e,ph(a,vh(ch(a),r)))}function rl(e){var t=0,r=0;return function(){var a=Bm(),c=$d-(a-r);if(r=a,c>0){if(++t>=Gd)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Co(e,t){var r=-1,a=e.length,c=a-1;for(t=t===n?a:t;++r<t;){var p=ys(r,c),T=e[p];e[p]=e[r],e[r]=T}return e.length=t,e}var ol=Th(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(lg,function(r,a,c,p){t.push(c?p.replace(yg,"$1"):a||r)}),t});function yt(e){if(typeof e=="string"||Ve(e))return e;var t=e+"";return t=="0"&&1/e==-rn?"-0":t}function fn(e){if(e!=null){try{return oo.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function vh(e,t){return Qe(Yd,function(r){var a="_."+r[0];t&r[1]&&!jr(e,a)&&e.push(a)}),e.sort()}function il(e){if(e instanceof X)return e.clone();var t=new et(e.__wrapped__,e.__chain__);return t.__actions__=Ne(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function wh(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=Se(q(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var c=0,p=0,T=w(po(a/t));c<a;)T[p++]=nt(e,c,c+=t);return T}function Ah(e){for(var t=-1,r=e==null?0:e.length,a=0,c=[];++t<r;){var p=e[t];p&&(c[a++]=p)}return c}function Ih(){var e=arguments.length;if(!e)return[];for(var t=w(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Vt(H(r)?Ne(r):[r],be(t,1))}var _h=Y(function(e,t){return me(e)?vr(e,be(t,1,me,!0)):[]}),bh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?vr(e,be(t,1,me,!0),F(r,2)):[]}),Lh=Y(function(e,t){var r=rt(t);return me(r)&&(r=n),me(e)?vr(e,be(t,1,me,!0),n,r):[]});function Eh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:q(t),nt(e,t<0?0:t,a)):[]}function kh(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:q(t),t=a-t,nt(e,0,t<0?0:t)):[]}function Ch(e,t){return e&&e.length?wo(e,F(t,3),!0,!0):[]}function Ph(e,t){return e&&e.length?wo(e,F(t,3),!0):[]}function Rh(e,t,r,a){var c=e==null?0:e.length;return c?(r&&typeof r!="number"&&Re(e,t,r)&&(r=0,a=c),IT(e,t,r,a)):[]}function sl(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:q(r);return c<0&&(c=Se(a+c,0)),eo(e,F(t,3),c)}function al(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a-1;return r!==n&&(c=q(r),c=r<0?Se(a+c,0):Ee(c,a-1)),eo(e,F(t,3),c,!0)}function cl(e){var t=e==null?0:e.length;return t?be(e,1):[]}function Dh(e){var t=e==null?0:e.length;return t?be(e,rn):[]}function Nh(e,t){var r=e==null?0:e.length;return r?(t=t===n?1:q(t),be(e,t)):[]}function Oh(e){for(var t=-1,r=e==null?0:e.length,a={};++t<r;){var c=e[t];a[c[0]]=c[1]}return a}function ul(e){return e&&e.length?e[0]:n}function Mh(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=r==null?0:q(r);return c<0&&(c=Se(a+c,0)),Pn(e,t,c)}function Fh(e){var t=e==null?0:e.length;return t?nt(e,0,-1):[]}var Uh=Y(function(e){var t=le(e,As);return t.length&&t[0]===e[0]?ds(t):[]}),Bh=Y(function(e){var t=rt(e),r=le(e,As);return t===rt(r)?t=n:r.pop(),r.length&&r[0]===e[0]?ds(r,F(t,2)):[]}),Wh=Y(function(e){var t=rt(e),r=le(e,As);return t=typeof t=="function"?t:n,t&&r.pop(),r.length&&r[0]===e[0]?ds(r,n,t):[]});function Gh(e,t){return e==null?"":Fm.call(e,t)}function rt(e){var t=e==null?0:e.length;return t?e[t-1]:n}function $h(e,t,r){var a=e==null?0:e.length;if(!a)return-1;var c=a;return r!==n&&(c=q(r),c=c<0?Se(a+c,0):Ee(c,a-1)),t===t?vm(e,t,c):eo(e,Hc,c,!0)}function Hh(e,t){return e&&e.length?Su(e,q(t)):n}var Vh=Y(ll);function ll(e,t){return e&&e.length&&t&&t.length?hs(e,t):e}function qh(e,t,r){return e&&e.length&&t&&t.length?hs(e,t,F(r,2)):e}function zh(e,t,r){return e&&e.length&&t&&t.length?hs(e,t,n,r):e}var Kh=Pt(function(e,t){var r=e==null?0:e.length,a=us(e,t);return Au(e,le(t,function(c){return Rt(c,r)?+c:c}).sort(Du)),a});function Yh(e,t){var r=[];if(!(e&&e.length))return r;var a=-1,c=[],p=e.length;for(t=F(t,3);++a<p;){var T=e[a];t(T,a,e)&&(r.push(T),c.push(a))}return Au(e,c),r}function Fs(e){return e==null?e:Gm.call(e)}function Zh(e,t,r){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&Re(e,t,r)?(t=0,r=a):(t=t==null?0:q(t),r=r===n?a:q(r)),nt(e,t,r)):[]}function Xh(e,t){return vo(e,t)}function Jh(e,t,r){return Ss(e,t,F(r,2))}function Qh(e,t){var r=e==null?0:e.length;if(r){var a=vo(e,t);if(a<r&&pt(e[a],t))return a}return-1}function jh(e,t){return vo(e,t,!0)}function ey(e,t,r){return Ss(e,t,F(r,2),!0)}function ty(e,t){var r=e==null?0:e.length;if(r){var a=vo(e,t,!0)-1;if(pt(e[a],t))return a}return-1}function ny(e){return e&&e.length?_u(e):[]}function ry(e,t){return e&&e.length?_u(e,F(t,2)):[]}function oy(e){var t=e==null?0:e.length;return t?nt(e,1,t):[]}function iy(e,t,r){return e&&e.length?(t=r||t===n?1:q(t),nt(e,0,t<0?0:t)):[]}function sy(e,t,r){var a=e==null?0:e.length;return a?(t=r||t===n?1:q(t),t=a-t,nt(e,t<0?0:t,a)):[]}function ay(e,t){return e&&e.length?wo(e,F(t,3),!1,!0):[]}function cy(e,t){return e&&e.length?wo(e,F(t,3)):[]}var uy=Y(function(e){return Zt(be(e,1,me,!0))}),ly=Y(function(e){var t=rt(e);return me(t)&&(t=n),Zt(be(e,1,me,!0),F(t,2))}),py=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,Zt(be(e,1,me,!0),n,t)});function fy(e){return e&&e.length?Zt(e):[]}function dy(e,t){return e&&e.length?Zt(e,F(t,2)):[]}function gy(e,t){return t=typeof t=="function"?t:n,e&&e.length?Zt(e,n,t):[]}function Us(e){if(!(e&&e.length))return[];var t=0;return e=Ht(e,function(r){if(me(r))return t=Se(r.length,t),!0}),ts(t,function(r){return le(e,Qi(r))})}function pl(e,t){if(!(e&&e.length))return[];var r=Us(e);return t==null?r:le(r,function(a){return Ge(t,n,a)})}var my=Y(function(e,t){return me(e)?vr(e,t):[]}),Ty=Y(function(e){return ws(Ht(e,me))}),hy=Y(function(e){var t=rt(e);return me(t)&&(t=n),ws(Ht(e,me),F(t,2))}),yy=Y(function(e){var t=rt(e);return t=typeof t=="function"?t:n,ws(Ht(e,me),n,t)}),xy=Y(Us);function Sy(e,t){return ku(e||[],t||[],Sr)}function vy(e,t){return ku(e||[],t||[],Ir)}var wy=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r=="function"?(e.pop(),r):n,pl(e,r)});function fl(e){var t=l(e);return t.__chain__=!0,t}function Ay(e,t){return t(e),e}function Po(e,t){return t(e)}var Iy=Pt(function(e){var t=e.length,r=t?e[0]:0,a=this.__wrapped__,c=function(p){return us(p,e)};return t>1||this.__actions__.length||!(a instanceof X)||!Rt(r)?this.thru(c):(a=a.slice(r,+r+(t?1:0)),a.__actions__.push({func:Po,args:[c],thisArg:n}),new et(a,this.__chain__).thru(function(p){return t&&!p.length&&p.push(n),p}))});function _y(){return fl(this)}function by(){return new et(this.value(),this.__chain__)}function Ly(){this.__values__===n&&(this.__values__=bl(this.value()));var e=this.__index__>=this.__values__.length,t=e?n:this.__values__[this.__index__++];return{done:e,value:t}}function Ey(){return this}function ky(e){for(var t,r=this;r instanceof To;){var a=il(r);a.__index__=0,a.__values__=n,t?c.__wrapped__=a:t=a;var c=a;r=r.__wrapped__}return c.__wrapped__=e,t}function Cy(){var e=this.__wrapped__;if(e instanceof X){var t=e;return this.__actions__.length&&(t=new X(this)),t=t.reverse(),t.__actions__.push({func:Po,args:[Fs],thisArg:n}),new et(t,this.__chain__)}return this.thru(Fs)}function Py(){return Eu(this.__wrapped__,this.__actions__)}var Ry=Ao(function(e,t,r){re.call(e,r)?++e[r]:kt(e,r,1)});function Dy(e,t,r){var a=H(e)?Gc:AT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}function Ny(e,t){var r=H(e)?Ht:pu;return r(e,F(t,3))}var Oy=Bu(sl),My=Bu(al);function Fy(e,t){return be(Ro(e,t),1)}function Uy(e,t){return be(Ro(e,t),rn)}function By(e,t,r){return r=r===n?1:q(r),be(Ro(e,t),r)}function dl(e,t){var r=H(e)?Qe:Yt;return r(e,F(t,3))}function gl(e,t){var r=H(e)?om:lu;return r(e,F(t,3))}var Wy=Ao(function(e,t,r){re.call(e,r)?e[r].push(t):kt(e,r,[t])});function Gy(e,t,r,a){e=Oe(e)?e:$n(e),r=r&&!a?q(r):0;var c=e.length;return r<0&&(r=Se(c+r,0)),Fo(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&Pn(e,t,r)>-1}var $y=Y(function(e,t,r){var a=-1,c=typeof t=="function",p=Oe(e)?w(e.length):[];return Yt(e,function(T){p[++a]=c?Ge(t,T,r):wr(T,t,r)}),p}),Hy=Ao(function(e,t,r){kt(e,r,t)});function Ro(e,t){var r=H(e)?le:hu;return r(e,F(t,3))}function Vy(e,t,r,a){return e==null?[]:(H(t)||(t=t==null?[]:[t]),r=a?n:r,H(r)||(r=r==null?[]:[r]),vu(e,t,r))}var qy=Ao(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function zy(e,t,r){var a=H(e)?Xi:qc,c=arguments.length<3;return a(e,F(t,4),r,c,Yt)}function Ky(e,t,r){var a=H(e)?im:qc,c=arguments.length<3;return a(e,F(t,4),r,c,lu)}function Yy(e,t){var r=H(e)?Ht:pu;return r(e,Oo(F(t,3)))}function Zy(e){var t=H(e)?su:GT;return t(e)}function Xy(e,t,r){(r?Re(e,t,r):t===n)?t=1:t=q(t);var a=H(e)?yT:$T;return a(e,t)}function Jy(e){var t=H(e)?xT:VT;return t(e)}function Qy(e){if(e==null)return 0;if(Oe(e))return Fo(e)?Dn(e):e.length;var t=ke(e);return t==at||t==ct?e.size:ms(e).length}function jy(e,t,r){var a=H(e)?Ji:qT;return r&&Re(e,t,r)&&(t=n),a(e,F(t,3))}var ex=Y(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Re(e,t[0],t[1])?t=[]:r>2&&Re(t[0],t[1],t[2])&&(t=[t[0]]),vu(e,be(t,1),[])}),Do=Nm||function(){return ve.Date.now()};function tx(e,t){if(typeof t!="function")throw new je(m);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function ml(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Ct(e,_t,n,n,n,n,t)}function Tl(e,t){var r;if(typeof t!="function")throw new je(m);return e=q(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Bs=Y(function(e,t,r){var a=ge;if(r.length){var c=qt(r,Wn(Bs));a|=gt}return Ct(e,a,t,r,c)}),hl=Y(function(e,t,r){var a=ge|_e;if(r.length){var c=qt(r,Wn(hl));a|=gt}return Ct(t,a,e,r,c)});function yl(e,t,r){t=r?n:t;var a=Ct(e,dt,n,n,n,n,n,t);return a.placeholder=yl.placeholder,a}function xl(e,t,r){t=r?n:t;var a=Ct(e,bn,n,n,n,n,n,t);return a.placeholder=xl.placeholder,a}function Sl(e,t,r){var a,c,p,T,h,x,_=0,b=!1,L=!1,C=!0;if(typeof e!="function")throw new je(m);t=ot(t)||0,pe(r)&&(b=!!r.leading,L="maxWait"in r,p=L?Se(ot(r.maxWait)||0,t):p,C="trailing"in r?!!r.trailing:C);function N(Te){var ft=a,Ot=c;return a=c=n,_=Te,T=e.apply(Ot,ft),T}function U(Te){return _=Te,h=Lr(Z,t),b?N(Te):T}function z(Te){var ft=Te-x,Ot=Te-_,Bl=t-ft;return L?Ee(Bl,p-Ot):Bl}function B(Te){var ft=Te-x,Ot=Te-_;return x===n||ft>=t||ft<0||L&&Ot>=p}function Z(){var Te=Do();if(B(Te))return J(Te);h=Lr(Z,z(Te))}function J(Te){return h=n,C&&a?N(Te):(a=c=n,T)}function qe(){h!==n&&Cu(h),_=0,a=x=c=h=n}function De(){return h===n?T:J(Do())}function ze(){var Te=Do(),ft=B(Te);if(a=arguments,c=this,x=Te,ft){if(h===n)return U(x);if(L)return Cu(h),h=Lr(Z,t),N(x)}return h===n&&(h=Lr(Z,t)),T}return ze.cancel=qe,ze.flush=De,ze}var nx=Y(function(e,t){return uu(e,1,t)}),rx=Y(function(e,t,r){return uu(e,ot(t)||0,r)});function ox(e){return Ct(e,Ci)}function No(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new je(m);var r=function(){var a=arguments,c=t?t.apply(this,a):a[0],p=r.cache;if(p.has(c))return p.get(c);var T=e.apply(this,a);return r.cache=p.set(c,T)||p,T};return r.cache=new(No.Cache||Et),r}No.Cache=Et;function Oo(e){if(typeof e!="function")throw new je(m);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ix(e){return Tl(2,e)}var sx=zT(function(e,t){t=t.length==1&&H(t[0])?le(t[0],$e(F())):le(be(t,1),$e(F()));var r=t.length;return Y(function(a){for(var c=-1,p=Ee(a.length,r);++c<p;)a[c]=t[c].call(this,a[c]);return Ge(e,this,a)})}),Ws=Y(function(e,t){var r=qt(t,Wn(Ws));return Ct(e,gt,n,t,r)}),vl=Y(function(e,t){var r=qt(t,Wn(vl));return Ct(e,Ln,n,t,r)}),ax=Pt(function(e,t){return Ct(e,sr,n,n,n,t)});function cx(e,t){if(typeof e!="function")throw new je(m);return t=t===n?t:q(t),Y(e,t)}function ux(e,t){if(typeof e!="function")throw new je(m);return t=t==null?0:Se(q(t),0),Y(function(r){var a=r[t],c=Jt(r,0,t);return a&&Vt(c,a),Ge(e,this,c)})}function lx(e,t,r){var a=!0,c=!0;if(typeof e!="function")throw new je(m);return pe(r)&&(a="leading"in r?!!r.leading:a,c="trailing"in r?!!r.trailing:c),Sl(e,t,{leading:a,maxWait:t,trailing:c})}function px(e){return ml(e,1)}function fx(e,t){return Ws(Is(t),e)}function dx(){if(!arguments.length)return[];var e=arguments[0];return H(e)?e:[e]}function gx(e){return tt(e,M)}function mx(e,t){return t=typeof t=="function"?t:n,tt(e,M,t)}function Tx(e){return tt(e,D|M)}function hx(e,t){return t=typeof t=="function"?t:n,tt(e,D|M,t)}function yx(e,t){return t==null||cu(e,t,we(t))}function pt(e,t){return e===t||e!==e&&t!==t}var xx=Lo(fs),Sx=Lo(function(e,t){return e>=t}),dn=gu(function(){return arguments}())?gu:function(e){return fe(e)&&re.call(e,"callee")&&!eu.call(e,"callee")},H=w.isArray,vx=Oc?$e(Oc):kT;function Oe(e){return e!=null&&Mo(e.length)&&!Dt(e)}function me(e){return fe(e)&&Oe(e)}function wx(e){return e===!0||e===!1||fe(e)&&Pe(e)==ar}var Qt=Mm||Js,Ax=Mc?$e(Mc):CT;function Ix(e){return fe(e)&&e.nodeType===1&&!Er(e)}function _x(e){if(e==null)return!0;if(Oe(e)&&(H(e)||typeof e=="string"||typeof e.splice=="function"||Qt(e)||Gn(e)||dn(e)))return!e.length;var t=ke(e);if(t==at||t==ct)return!e.size;if(br(e))return!ms(e).length;for(var r in e)if(re.call(e,r))return!1;return!0}function bx(e,t){return Ar(e,t)}function Lx(e,t,r){r=typeof r=="function"?r:n;var a=r?r(e,t):n;return a===n?Ar(e,t,n,r):!!a}function Gs(e){if(!fe(e))return!1;var t=Pe(e);return t==Kr||t==Xd||typeof e.message=="string"&&typeof e.name=="string"&&!Er(e)}function Ex(e){return typeof e=="number"&&nu(e)}function Dt(e){if(!pe(e))return!1;var t=Pe(e);return t==Yr||t==uc||t==Zd||t==Qd}function wl(e){return typeof e=="number"&&e==q(e)}function Mo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$t}function pe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function fe(e){return e!=null&&typeof e=="object"}var Al=Fc?$e(Fc):RT;function kx(e,t){return e===t||gs(e,t,Ps(t))}function Cx(e,t,r){return r=typeof r=="function"?r:n,gs(e,t,Ps(t),r)}function Px(e){return Il(e)&&e!=+e}function Rx(e){if(mh(e))throw new G(u);return mu(e)}function Dx(e){return e===null}function Nx(e){return e==null}function Il(e){return typeof e=="number"||fe(e)&&Pe(e)==ur}function Er(e){if(!fe(e)||Pe(e)!=bt)return!1;var t=co(e);if(t===null)return!0;var r=re.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oo.call(r)==Cm}var $s=Uc?$e(Uc):DT;function Ox(e){return wl(e)&&e>=-$t&&e<=$t}var _l=Bc?$e(Bc):NT;function Fo(e){return typeof e=="string"||!H(e)&&fe(e)&&Pe(e)==pr}function Ve(e){return typeof e=="symbol"||fe(e)&&Pe(e)==Zr}var Gn=Wc?$e(Wc):OT;function Mx(e){return e===n}function Fx(e){return fe(e)&&ke(e)==fr}function Ux(e){return fe(e)&&Pe(e)==eg}var Bx=Lo(Ts),Wx=Lo(function(e,t){return e<=t});function bl(e){if(!e)return[];if(Oe(e))return Fo(e)?ut(e):Ne(e);if(mr&&e[mr])return ym(e[mr]());var t=ke(e),r=t==at?rs:t==ct?to:$n;return r(e)}function Nt(e){if(!e)return e===0?e:0;if(e=ot(e),e===rn||e===-rn){var t=e<0?-1:1;return t*qd}return e===e?e:0}function q(e){var t=Nt(e),r=t%1;return t===t?r?t-r:t:0}function Ll(e){return e?un(q(e),0,mt):0}function ot(e){if(typeof e=="number")return e;if(Ve(e))return qr;if(pe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=pe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zc(e);var r=vg.test(e);return r||Ag.test(e)?tm(e.slice(2),r?2:8):Sg.test(e)?qr:+e}function El(e){return ht(e,Me(e))}function Gx(e){return e?un(q(e),-$t,$t):e===0?e:0}function te(e){return e==null?"":He(e)}var $x=Un(function(e,t){if(br(t)||Oe(t)){ht(t,we(t),e);return}for(var r in t)re.call(t,r)&&Sr(e,r,t[r])}),kl=Un(function(e,t){ht(t,Me(t),e)}),Uo=Un(function(e,t,r,a){ht(t,Me(t),e,a)}),Hx=Un(function(e,t,r,a){ht(t,we(t),e,a)}),Vx=Pt(us);function qx(e,t){var r=Fn(e);return t==null?r:au(r,t)}var zx=Y(function(e,t){e=oe(e);var r=-1,a=t.length,c=a>2?t[2]:n;for(c&&Re(t[0],t[1],c)&&(a=1);++r<a;)for(var p=t[r],T=Me(p),h=-1,x=T.length;++h<x;){var _=T[h],b=e[_];(b===n||pt(b,Nn[_])&&!re.call(e,_))&&(e[_]=p[_])}return e}),Kx=Y(function(e){return e.push(n,zu),Ge(Cl,n,e)});function Yx(e,t){return $c(e,F(t,3),Tt)}function Zx(e,t){return $c(e,F(t,3),ps)}function Xx(e,t){return e==null?e:ls(e,F(t,3),Me)}function Jx(e,t){return e==null?e:fu(e,F(t,3),Me)}function Qx(e,t){return e&&Tt(e,F(t,3))}function jx(e,t){return e&&ps(e,F(t,3))}function eS(e){return e==null?[]:xo(e,we(e))}function tS(e){return e==null?[]:xo(e,Me(e))}function Hs(e,t,r){var a=e==null?n:ln(e,t);return a===n?r:a}function nS(e,t){return e!=null&&Zu(e,t,_T)}function Vs(e,t){return e!=null&&Zu(e,t,bT)}var rS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=io.call(t)),e[t]=r},zs(Fe)),oS=Gu(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=io.call(t)),re.call(e,t)?e[t].push(r):e[t]=[r]},F),iS=Y(wr);function we(e){return Oe(e)?iu(e):ms(e)}function Me(e){return Oe(e)?iu(e,!0):MT(e)}function sS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,t(a,c,p),a)}),r}function aS(e,t){var r={};return t=F(t,3),Tt(e,function(a,c,p){kt(r,c,t(a,c,p))}),r}var cS=Un(function(e,t,r){So(e,t,r)}),Cl=Un(function(e,t,r,a){So(e,t,r,a)}),uS=Pt(function(e,t){var r={};if(e==null)return r;var a=!1;t=le(t,function(p){return p=Xt(p,e),a||(a=p.length>1),p}),ht(e,ks(e),r),a&&(r=tt(r,D|$|M,rh));for(var c=t.length;c--;)vs(r,t[c]);return r});function lS(e,t){return Pl(e,Oo(F(t)))}var pS=Pt(function(e,t){return e==null?{}:UT(e,t)});function Pl(e,t){if(e==null)return{};var r=le(ks(e),function(a){return[a]});return t=F(t),wu(e,r,function(a,c){return t(a,c[0])})}function fS(e,t,r){t=Xt(t,e);var a=-1,c=t.length;for(c||(c=1,e=n);++a<c;){var p=e==null?n:e[yt(t[a])];p===n&&(a=c,p=r),e=Dt(p)?p.call(e):p}return e}function dS(e,t,r){return e==null?e:Ir(e,t,r)}function gS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Ir(e,t,r,a)}var Rl=Vu(we),Dl=Vu(Me);function mS(e,t,r){var a=H(e),c=a||Qt(e)||Gn(e);if(t=F(t,4),r==null){var p=e&&e.constructor;c?r=a?new p:[]:pe(e)?r=Dt(p)?Fn(co(e)):{}:r={}}return(c?Qe:Tt)(e,function(T,h,x){return t(r,T,h,x)}),r}function TS(e,t){return e==null?!0:vs(e,t)}function hS(e,t,r){return e==null?e:Lu(e,t,Is(r))}function yS(e,t,r,a){return a=typeof a=="function"?a:n,e==null?e:Lu(e,t,Is(r),a)}function $n(e){return e==null?[]:ns(e,we(e))}function xS(e){return e==null?[]:ns(e,Me(e))}function SS(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=ot(r),r=r===r?r:0),t!==n&&(t=ot(t),t=t===t?t:0),un(ot(e),t,r)}function vS(e,t,r){return t=Nt(t),r===n?(r=t,t=0):r=Nt(r),e=ot(e),LT(e,t,r)}function wS(e,t,r){if(r&&typeof r!="boolean"&&Re(e,t,r)&&(t=r=n),r===n&&(typeof t=="boolean"?(r=t,t=n):typeof e=="boolean"&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Nt(e),t===n?(t=e,e=0):t=Nt(t)),e>t){var a=e;e=t,t=a}if(r||e%1||t%1){var c=ru();return Ee(e+c*(t-e+em("1e-"+((c+"").length-1))),t)}return ys(e,t)}var AS=Bn(function(e,t,r){return t=t.toLowerCase(),e+(r?Nl(t):t)});function Nl(e){return qs(te(e).toLowerCase())}function Ol(e){return e=te(e),e&&e.replace(_g,dm).replace(Vg,"")}function IS(e,t,r){e=te(e),t=He(t);var a=e.length;r=r===n?a:un(q(r),0,a);var c=r;return r-=t.length,r>=0&&e.slice(r,c)==t}function _S(e){return e=te(e),e&&ig.test(e)?e.replace(fc,gm):e}function bS(e){return e=te(e),e&&pg.test(e)?e.replace(Wi,"\\$&"):e}var LS=Bn(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ES=Bn(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),kS=Uu("toLowerCase");function CS(e,t,r){e=te(e),t=q(t);var a=t?Dn(e):0;if(!t||a>=t)return e;var c=(t-a)/2;return bo(fo(c),r)+e+bo(po(c),r)}function PS(e,t,r){e=te(e),t=q(t);var a=t?Dn(e):0;return t&&a<t?e+bo(t-a,r):e}function RS(e,t,r){e=te(e),t=q(t);var a=t?Dn(e):0;return t&&a<t?bo(t-a,r)+e:e}function DS(e,t,r){return r||t==null?t=0:t&&(t=+t),Wm(te(e).replace(Gi,""),t||0)}function NS(e,t,r){return(r?Re(e,t,r):t===n)?t=1:t=q(t),xs(te(e),t)}function OS(){var e=arguments,t=te(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var MS=Bn(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function FS(e,t,r){return r&&typeof r!="number"&&Re(e,t,r)&&(t=r=n),r=r===n?mt:r>>>0,r?(e=te(e),e&&(typeof t=="string"||t!=null&&!$s(t))&&(t=He(t),!t&&Rn(e))?Jt(ut(e),0,r):e.split(t,r)):[]}var US=Bn(function(e,t,r){return e+(r?" ":"")+qs(t)});function BS(e,t,r){return e=te(e),r=r==null?0:un(q(r),0,e.length),t=He(t),e.slice(r,r+t.length)==t}function WS(e,t,r){var a=l.templateSettings;r&&Re(e,t,r)&&(t=n),e=te(e),t=Uo({},t,a,qu);var c=Uo({},t.imports,a.imports,qu),p=we(c),T=ns(c,p),h,x,_=0,b=t.interpolate||Xr,L="__p += '",C=os((t.escape||Xr).source+"|"+b.source+"|"+(b===dc?xg:Xr).source+"|"+(t.evaluate||Xr).source+"|$","g"),N="//# sourceURL="+(re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zg+"]")+`
|
|
4
|
+
`;e.replace(C,function(B,Z,J,qe,De,ze){return J||(J=qe),L+=e.slice(_,ze).replace(bg,mm),Z&&(h=!0,L+=`' +
|
|
5
5
|
__e(`+Z+`) +
|
|
6
6
|
'`),De&&(x=!0,L+=`';
|
|
7
7
|
`+De+`;
|
|
@@ -11,13 +11,13 @@ __p += '`),J&&(L+=`' +
|
|
|
11
11
|
`;var U=re.call(t,"variable")&&t.variable;if(!U)L=`with (obj) {
|
|
12
12
|
`+L+`
|
|
13
13
|
}
|
|
14
|
-
`;else if(
|
|
14
|
+
`;else if(hg.test(U))throw new G(S);L=(x?L.replace(tg,""):L).replace(ng,"$1").replace(rg,"$1;"),L="function("+(U||"obj")+`) {
|
|
15
15
|
`+(U?"":`obj || (obj = {});
|
|
16
16
|
`)+"var __t, __p = ''"+(h?", __e = _.escape":"")+(x?`, __j = Array.prototype.join;
|
|
17
17
|
function print() { __p += __j.call(arguments, '') }
|
|
18
18
|
`:`;
|
|
19
19
|
`)+L+`return __p
|
|
20
|
-
}`;var z=Fl(function(){return ee(p,N+"return "+L).apply(n,T)});if(z.source=L,Gs(z))throw z;return z}function BS(e){return te(e).toLowerCase()}function WS(e){return te(e).toUpperCase()}function GS(e,t,r){if(e=te(e),e&&(r||t===n))return zc(e);if(!e||!(t=He(t)))return e;var a=ut(e),c=ut(t),p=Kc(a,c),T=Yc(a,c)+1;return Jt(a,p,T).join("")}function $S(e,t,r){if(e=te(e),e&&(r||t===n))return e.slice(0,Xc(e)+1);if(!e||!(t=He(t)))return e;var a=ut(e),c=Yc(a,ut(t))+1;return Jt(a,0,c).join("")}function HS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace(Gi,"");if(!e||!(t=He(t)))return e;var a=ut(e),c=Kc(a,ut(t));return Jt(a,c).join("")}function VS(e,t){var r=Fd,a=Ud;if(pe(t)){var c="separator"in t?t.separator:c;r="length"in t?q(t.length):r,a="omission"in t?He(t.omission):a}e=te(e);var p=e.length;if(Rn(e)){var T=ut(e);p=T.length}if(r>=p)return e;var h=r-Dn(a);if(h<1)return a;var x=T?Jt(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),$s(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=os(c.source,te(gc.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function qS(e){return e=te(e),e&&ng.test(e)?e.replace(pc,Sm):e}var zS=Bn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),qs=Uu("toUpperCase");function Ml(e,t,r){return e=te(e),t=r?n:t,t===n?mm(e)?Am(e):sm(e):e.match(t)||[]}var Fl=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Gs(r)?r:new G(r)}}),KS=Pt(function(e,t){return Qe(t,function(r){r=yt(r),kt(e,r,Bs(e[r],e))}),e});function YS(e){var t=e==null?0:e.length,r=F();return e=t?le(e,function(a){if(typeof a[1]!="function")throw new je(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var p=e[c];if(Ge(p[0],this,a))return Ge(p[1],this,a)}})}function ZS(e){return ST(tt(e,D))}function zs(e){return function(){return e}}function XS(e,t){return e==null||e!==e?t:e}var JS=Wu(),QS=Wu(!0);function Fe(e){return e}function Ks(e){return Tu(typeof e=="function"?e:tt(e,D))}function jS(e){return yu(tt(e,D))}function ev(e,t){return xu(e,tt(t,D))}var tv=Y(function(e,t){return function(r){return wr(r,e,t)}}),nv=Y(function(e,t){return function(r){return wr(e,r,t)}});function Ys(e,t,r){var a=we(t),c=xo(t,a);r==null&&!(pe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=xo(t,we(t)));var p=!(pe(r)&&"chain"in r)||!!r.chain,T=Dt(e);return Qe(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Ne(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Vt([this.value()],arguments))})}),e}function rv(){return ve._===this&&(ve._=km),this}function Zs(){}function ov(e){return e=q(e),Y(function(t){return Su(t,e)})}var iv=bs(le),sv=bs(Gc),av=bs(Ji);function Ul(e){return Ds(e)?Qi(yt(e)):FT(e)}function cv(e){return function(t){return e==null?n:ln(e,t)}}var uv=$u(),lv=$u(!0);function Xs(){return[]}function Js(){return!1}function pv(){return{}}function fv(){return""}function dv(){return!0}function gv(e,t){if(e=q(e),e<1||e>$t)return[];var r=mt,a=Ee(e,mt);t=F(t),e-=mt;for(var c=ts(a,t);++r<e;)t(r);return c}function mv(e){return H(e)?le(e,yt):Ve(e)?[e]:Ne(ol(te(e)))}function Tv(e){var t=++Lm;return te(e)+t}var hv=_o(function(e,t){return e+t},0),yv=Ls("ceil"),xv=_o(function(e,t){return e/t},1),Sv=Ls("floor");function vv(e){return e&&e.length?yo(e,Fe,fs):n}function wv(e,t){return e&&e.length?yo(e,F(t,2),fs):n}function Av(e){return Vc(e,Fe)}function Iv(e,t){return Vc(e,F(t,2))}function _v(e){return e&&e.length?yo(e,Fe,Ts):n}function bv(e,t){return e&&e.length?yo(e,F(t,2),Ts):n}var Lv=_o(function(e,t){return e*t},1),Ev=Ls("round"),kv=_o(function(e,t){return e-t},0);function Cv(e){return e&&e.length?es(e,Fe):0}function Pv(e,t){return e&&e.length?es(e,F(t,2)):0}return l.after=jy,l.ary=ml,l.assign=Wx,l.assignIn=kl,l.assignInWith=Uo,l.assignWith=Gx,l.at=$x,l.before=Tl,l.bind=Bs,l.bindAll=KS,l.bindKey=hl,l.castArray=px,l.chain=fl,l.chunk=Sh,l.compact=vh,l.concat=wh,l.cond=YS,l.conforms=ZS,l.constant=zs,l.countBy=Cy,l.create=Hx,l.curry=yl,l.curryRight=xl,l.debounce=Sl,l.defaults=Vx,l.defaultsDeep=qx,l.defer=ex,l.delay=tx,l.difference=Ah,l.differenceBy=Ih,l.differenceWith=_h,l.drop=bh,l.dropRight=Lh,l.dropRightWhile=Eh,l.dropWhile=kh,l.fill=Ch,l.filter=Ry,l.flatMap=Oy,l.flatMapDeep=My,l.flatMapDepth=Fy,l.flatten=cl,l.flattenDeep=Ph,l.flattenDepth=Rh,l.flip=nx,l.flow=JS,l.flowRight=QS,l.fromPairs=Dh,l.functions=Qx,l.functionsIn=jx,l.groupBy=Uy,l.initial=Oh,l.intersection=Mh,l.intersectionBy=Fh,l.intersectionWith=Uh,l.invert=tS,l.invertBy=nS,l.invokeMap=Wy,l.iteratee=Ks,l.keyBy=Gy,l.keys=we,l.keysIn=Me,l.map=Ro,l.mapKeys=oS,l.mapValues=iS,l.matches=jS,l.matchesProperty=ev,l.memoize=No,l.merge=sS,l.mergeWith=Cl,l.method=tv,l.methodOf=nv,l.mixin=Ys,l.negate=Oo,l.nthArg=ov,l.omit=aS,l.omitBy=cS,l.once=rx,l.orderBy=$y,l.over=iv,l.overArgs=ox,l.overEvery=sv,l.overSome=av,l.partial=Ws,l.partialRight=vl,l.partition=Hy,l.pick=uS,l.pickBy=Pl,l.property=Ul,l.propertyOf=cv,l.pull=$h,l.pullAll=ll,l.pullAllBy=Hh,l.pullAllWith=Vh,l.pullAt=qh,l.range=uv,l.rangeRight=lv,l.rearg=ix,l.reject=zy,l.remove=zh,l.rest=sx,l.reverse=Fs,l.sampleSize=Yy,l.set=pS,l.setWith=fS,l.shuffle=Zy,l.slice=Kh,l.sortBy=Qy,l.sortedUniq=ey,l.sortedUniqBy=ty,l.split=OS,l.spread=ax,l.tail=ny,l.take=ry,l.takeRight=oy,l.takeRightWhile=iy,l.takeWhile=sy,l.tap=vy,l.throttle=cx,l.thru=Po,l.toArray=bl,l.toPairs=Rl,l.toPairsIn=Dl,l.toPath=mv,l.toPlainObject=El,l.transform=dS,l.unary=ux,l.union=ay,l.unionBy=cy,l.unionWith=uy,l.uniq=ly,l.uniqBy=py,l.uniqWith=fy,l.unset=gS,l.unzip=Us,l.unzipWith=pl,l.update=mS,l.updateWith=TS,l.values=$n,l.valuesIn=hS,l.without=dy,l.words=Ml,l.wrap=lx,l.xor=gy,l.xorBy=my,l.xorWith=Ty,l.zip=hy,l.zipObject=yy,l.zipObjectDeep=xy,l.zipWith=Sy,l.entries=Rl,l.entriesIn=Dl,l.extend=kl,l.extendWith=Uo,Ys(l,l),l.add=hv,l.attempt=Fl,l.camelCase=vS,l.capitalize=Nl,l.ceil=yv,l.clamp=yS,l.clone=fx,l.cloneDeep=gx,l.cloneDeepWith=mx,l.cloneWith=dx,l.conformsTo=Tx,l.deburr=Ol,l.defaultTo=XS,l.divide=xv,l.endsWith=wS,l.eq=pt,l.escape=AS,l.escapeRegExp=IS,l.every=Py,l.find=Dy,l.findIndex=sl,l.findKey=zx,l.findLast=Ny,l.findLastIndex=al,l.findLastKey=Kx,l.floor=Sv,l.forEach=dl,l.forEachRight=gl,l.forIn=Yx,l.forInRight=Zx,l.forOwn=Xx,l.forOwnRight=Jx,l.get=Hs,l.gt=hx,l.gte=yx,l.has=eS,l.hasIn=Vs,l.head=ul,l.identity=Fe,l.includes=By,l.indexOf=Nh,l.inRange=xS,l.invoke=rS,l.isArguments=dn,l.isArray=H,l.isArrayBuffer=xx,l.isArrayLike=Oe,l.isArrayLikeObject=me,l.isBoolean=Sx,l.isBuffer=Qt,l.isDate=vx,l.isElement=wx,l.isEmpty=Ax,l.isEqual=Ix,l.isEqualWith=_x,l.isError=Gs,l.isFinite=bx,l.isFunction=Dt,l.isInteger=wl,l.isLength=Mo,l.isMap=Al,l.isMatch=Lx,l.isMatchWith=Ex,l.isNaN=kx,l.isNative=Cx,l.isNil=Rx,l.isNull=Px,l.isNumber=Il,l.isObject=pe,l.isObjectLike=fe,l.isPlainObject=Er,l.isRegExp=$s,l.isSafeInteger=Dx,l.isSet=_l,l.isString=Fo,l.isSymbol=Ve,l.isTypedArray=Gn,l.isUndefined=Nx,l.isWeakMap=Ox,l.isWeakSet=Mx,l.join=Bh,l.kebabCase=_S,l.last=rt,l.lastIndexOf=Wh,l.lowerCase=bS,l.lowerFirst=LS,l.lt=Fx,l.lte=Ux,l.max=vv,l.maxBy=wv,l.mean=Av,l.meanBy=Iv,l.min=_v,l.minBy=bv,l.stubArray=Xs,l.stubFalse=Js,l.stubObject=pv,l.stubString=fv,l.stubTrue=dv,l.multiply=Lv,l.nth=Gh,l.noConflict=rv,l.noop=Zs,l.now=Do,l.pad=ES,l.padEnd=kS,l.padStart=CS,l.parseInt=PS,l.random=SS,l.reduce=Vy,l.reduceRight=qy,l.repeat=RS,l.replace=DS,l.result=lS,l.round=Ev,l.runInContext=y,l.sample=Ky,l.size=Xy,l.snakeCase=NS,l.some=Jy,l.sortedIndex=Yh,l.sortedIndexBy=Zh,l.sortedIndexOf=Xh,l.sortedLastIndex=Jh,l.sortedLastIndexBy=Qh,l.sortedLastIndexOf=jh,l.startCase=MS,l.startsWith=FS,l.subtract=kv,l.sum=Cv,l.sumBy=Pv,l.template=US,l.times=gv,l.toFinite=Nt,l.toInteger=q,l.toLength=Ll,l.toLower=BS,l.toNumber=ot,l.toSafeInteger=Bx,l.toString=te,l.toUpper=WS,l.trim=GS,l.trimEnd=$S,l.trimStart=HS,l.truncate=VS,l.unescape=qS,l.uniqueId=Tv,l.upperCase=zS,l.upperFirst=qs,l.each=dl,l.eachRight=gl,l.first=ul,Ys(l,function(){var e={};return Tt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Qe(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:Se(q(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,mt),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==cc||r==$d;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:F(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Qe(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Fe)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return wr(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Oo(F(e)))},X.prototype.slice=function(e,t){e=q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(mt)},Tt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,_=h[0],b=x||H(T),L=function(Z){var J=c.apply(l,Vt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,N=!!this.__actions__.length,U=p&&!C,z=x&&!N;if(!p&&b){T=z?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Po,args:[L],thisArg:n}),new et(B,C)}return U&&z?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=no[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply(H(p)?p:[],c)}return this[r](function(T){return t.apply(H(T)?T:[],c)})}}),Tt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Mn,a)||(Mn[a]=[]),Mn[a].push({name:t,func:r})}}),Mn[Io(n,_e).name]=[{name:"wrapper",func:n}],X.prototype.clone=qm,X.prototype.reverse=zm,X.prototype.value=Km,l.prototype.at=wy,l.prototype.chain=Ay,l.prototype.commit=Iy,l.prototype.next=_y,l.prototype.plant=Ly,l.prototype.reverse=Ey,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=ky,l.prototype.first=l.prototype.head,mr&&(l.prototype[mr]=by),l},zt=Im();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=zt,define(function(){return zt})):on?((on.exports=zt)._=zt,Ki._=zt):ve._=zt}).call(or)});var kI={};gn(kI,{useNativeAuthLogoutWarning:()=>EI});module.exports=Rr(kI);s();s();var ki=require("react"),Md=require("@fortawesome/free-solid-svg-icons"),sc=V(require("bignumber.js"));s();s();s();var Uf=require("react"),tr=require("react-redux");s();var Ua=require("@reduxjs/toolkit"),Mf=require("react-redux/lib/utils/Subscription");ae();s();var ff=V(require("lodash.throttle"));se();s();var pf=V(require("lodash.isequal")),di=require("reselect");Ie();var R=(0,di.createSelectorCreator)(di.defaultMemoize,pf.default),Ur=(n,o)=>n!=""&&Boolean(o);ae();wa();Zn();Yn();var J0=[zo],gi=!1,Q0=(0,ff.default)(()=>{Or(Nr())},5e3),df=n=>o=>i=>{var E;if(J0.includes(i.type))return o(i);let u=n.getState(),m=xn.local.getItem(jt.loginExpiresAt);if(!Ur((E=u==null?void 0:u.loginInfo)==null?void 0:E.loginMethod,u==null?void 0:u.account.address))return o(i);if(m==null)return Or(Nr());let v=Date.now();return m-v<0&&!gi?setTimeout(()=>{gi=!0,n.dispatch(Gp())},1e3):(gi&&(gi=!1),Q0()),o(i)};s();s();function mi(){return typeof sessionStorage!="undefined"}var Df=mi()?(If(),Rr(Af)).default:(bf(),Rr(_f)).default,Nf=mi()?(Ef(),Rr(Lf)).default:[],Of=mi()?(Rf(),Rr(Pf)).default:n=>n;Ti();var j=(0,Ua.configureStore)({reducer:Df,middleware:n=>n({serializableCheck:{ignoredActions:[...Nf,va.type,Sa.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(df)}),Ff=(0,Mf.createSubscription)(j),nE=Of(j),rE=(0,Ua.configureStore)({reducer:wn});var Sw={store:j,subscription:Ff},Ba=(0,Uf.createContext)(Sw),aE=(0,tr.createStoreHook)(Ba),We=(0,tr.createDispatchHook)(Ba),ne=(0,tr.createSelectorHook)(Ba);s();s();ae();var Bt=n=>n.account,nr=R(Bt,n=>n.address),Wr=R(Bt,nr,(n,o)=>o in n.accounts?n.accounts[o]:Yo),Bf=R(Bt,Wr,(n,o)=>{let m=n,{accounts:i}=m,u=Cr(m,["accounts"]);return Q(O({},u),{account:o})}),vw=R(Wr,n=>n.balance),ww=R(Wr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),pE=R(Bt,n=>n.shard),Aw=R(Bt,n=>n.ledgerAccount),fE=R(Bt,n=>n.walletConnectAccount),dE=R(Bt,n=>n.isAccountLoading),gE=R(Bt,n=>n.accountLoadingError),Wf=R(Bt,n=>n.websocketEvent);s();var Ze=n=>n.loginInfo,yE=R(Ze,n=>n.loginMethod),Wa=R(Ze,nr,(n,o)=>Ur(n.loginMethod,o)),xE=R(Ze,n=>n.walletConnectLogin),SE=R(Ze,n=>n.ledgerLogin),Iw=R(Ze,n=>n.walletLogin),vE=R(Ze,n=>n.isLoginSessionInvalid),_w=R(Ze,n=>n.tokenLogin),wE=R(Ze,n=>n.logoutRoute);s();var Gf=n=>n.modals,_E=R(Gf,n=>n.txSubmittedModal),bw=R(Gf,n=>n.notificationModal);s();var Wt=n=>n.networkConfig,hi=R(Wt,n=>n.chainID),Lw=R(Wt,n=>n.network.walletConnectBridgeAddress),Ew=R(Wt,n=>n.network.walletConnectV2RelayAddress),kw=R(Wt,n=>n.network.walletConnectV2ProjectId),Cw=R(Wt,n=>n.network.walletConnectV2Options),$f=R(Wt,n=>n.network.walletConnectDeepLink),tn=R(Wt,n=>n.network),Hf=R(tn,n=>n.apiAddress),Vf=R(tn,n=>n.explorerAddress),qf=R(tn,n=>n.egldLabel);s();var Ga=n=>n.signedMessageInfo,CE=R(Ga,n=>n.isSigning),PE=R(Ga,n=>n.errorMessage),RE=R(Ga,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var $a=n=>n.toasts,OE=R($a,n=>n.customToasts),ME=R($a,n=>n.transactionToasts),FE=R($a,n=>n.failTransactionToast);s();ae();var zf={errorMessage:Ca,successMessage:Pa,processingMessage:Ra},Pw=n=>n.transactionsInfo,Rw=R(Pw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||zf);s();s();var Xe=require("@multiversx/sdk-core");se();s();function yi(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function An(n){return yi(n)?atob(n):n}function xi(n){var m,S,v;let{data:o}=n,i=yi(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Dr,gasPrice:(S=n.gasPrice.valueOf())!=null?S:qo,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((v=n.version)!=null?v:_p)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var Nw=require("@multiversx/sdk-core/out");s();se();s();var Kf=require("@multiversx/sdk-core");Ie();s();var Ow=require("@multiversx/sdk-core");s();s();s();var Fw=require("@multiversx/sdk-core"),Uw=V(require("bignumber.js"));de();s();s();s();s();s();var Va="blocks";s();s();s();s();Be();s();s();Be();s();s();s();var zw=V(require("bignumber.js"));se();s();var qw=require("@multiversx/sdk-core"),qa=V(require("bignumber.js"));se();s();var Hw=V(require("bignumber.js"));s();qa.default.config({ROUNDING_MODE:qa.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var Kw=require("@multiversx/sdk-core");se();s();var Gr=require("@multiversx/sdk-core"),Xw=require("@multiversx/sdk-network-providers");se();s();s();var Yw=V(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();Be();var Qw=["reDelegateRewards","claimRewards","unBond"],jw=["wrapEgld","unwrapEgld"],eA=["unStake"],tA=["unDelegate"];s();s();s();se();s();var iA=V(require("bignumber.js"));s();s();s();s();Be();s();var sA=V(require("bignumber.js"));s();s();s();var uA=V(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();Be();s();s();s();var lA=V(require("linkifyjs"));s();se();s();var pA=V(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();Be();s();Be();s();var fA=V(require("bignumber.js"));se();Be();s();Be();s();var nd=require("react");Ie();s();s();Be();s();s();var dA=require("@multiversx/sdk-core/out"),gA=V(require("bignumber.js"));Be();s();Ie();s();s();Ie();var hD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var rd=require("react");Ie();s();var TA=require("react");Be();var ID=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];er();var Ai=n=>n.transactions,rr=R(Ai,n=>n.signedTransactions),hA=R(Ai,n=>n.signTransactionsError),od=R(Ai,n=>n.signTransactionsCancelMessage),Ii=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),id=R(rr,Ii(Jn)),sd=R(rr,Ii(Qn)),ad=R(rr,Ii(jn)),yA=R(rr,Ii(Na)),cd=R(Ai,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>xi(i)))||[]})}),xA=R(rr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var ud=require("react");s();ae();s();s();s();s();s();s();s();s();var SA=require("@multiversx/sdk-extension-provider"),vA=require("@multiversx/sdk-hw-provider"),wA=require("@multiversx/sdk-opera-provider"),AA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),IA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),_A=require("@multiversx/sdk-web-wallet-provider");se();de();var Gt=n=>`Unable to perform ${n}, Provider not initialized`,Ka=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Gt(`login with options: ${o}`))}logout(o){throw new Error(Gt(`logout with options: ${o}`))}getAddress(){throw new Error(Gt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Gt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Gt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Gt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Gt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Gt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Gt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},bA=new Ka;ae();s();s();var LA=V(require("axios"));s();s();s();de();s();s();s();er();s();s();s();var EA=V(require("axios"));s();var kA=V(require("axios"));s();var PA=V(require("axios"));s();s();var RA=V(require("axios"));s();var DA=V(require("axios"));s();ae();de();s();s();ae();s();s();var dd=require("@multiversx/sdk-core");s();Ce();Ie();s();er();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var FA=V(require("axios")),UA=V(require("swr"));s();s();var gd=require("react");s();var WA=require("react"),GA=require("@multiversx/sdk-web-wallet-provider"),$A=V(require("qs"));se();ae();de();s();var Td=require("react");Ia();s();var Sd=require("react"),JA=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var xd=require("react"),KA=require("@multiversx/sdk-extension-provider");se();s();s();var Xa=()=>ne(Bf);s();s();s();s();s();s();var $r=V(require("react"));var lU=(0,$r.createContext)({}),pU=j.getState();s();var yd=V(require("react"));s();var Qa=V(require("react")),VA=V(require("axios"));s();s();ae();s();s();var QA=V(require("axios"));ae();Ie();Mr();s();yn();ae();s();s();var cI=require("react");s();s();s();ae();s();s();var tI=V(require("bignumber.js"));se();ae();Ie();s();var eI=V(require("bignumber.js"));se();s();var nI=require("@multiversx/sdk-core"),rI=V(require("bignumber.js"));se();s();s();s();s();var Ad=V(require("axios"));s();s();s();function vd(n){return K(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var wd=(n,o,i,u=0)=>K(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield vd(o.delay)),yield wd(n,o,i,u+1)):null}}),ec=(n,o={retries:5,delay:500})=>(...i)=>K(void 0,null,function*(){return yield wd(n,o,i)});var oI=4;var eW=ec((n,o)=>K(void 0,null,function*(){let{data:i}=yield Ad.default.get(`${n}/${Va}?from=${oI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Ko();s();s();var _d=V(Id());var bd=n=>{if(!n||!(0,_d.isString)(n))return null;let o=n.split(".");if(o.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[i,u,m,S]=o,v=JSON.parse(An(S)),k=An(i);return{ttl:Number(m),extraInfo:v,origin:k,blockHash:u}}catch(i){return console.error(`Error trying to decode ${n}:`,i),null}};function iI(n){return Object.prototype.toString.call(n)==="[object String]"}var Ld=n=>{var i;if(!n||!iI(n))return null;let o=n.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[u,m,S]=o,v=An(u),k=An(m),E=bd(k);if(!E)return{address:v,body:k,signature:S,blockHash:"",origin:"",ttl:0};let D=Q(O({},E),{address:v,body:k,signature:S});return(i=E.extraInfo)!=null&&i.timestamp||delete D.extraInfo,D}catch(u){return null}};var tc=n=>{let o=Ld(n);if(!o)return{isExpired:!1};let i=Kn(),{ttl:u,extraInfo:m}=o,S=m==null?void 0:m.timestamp;if(!S)return{isExpired:!1};let v=S+u,k=i>v,E=v-i;return{isExpired:k,expiresAt:v,secondsUntilExpires:E}};s();var Ed,pW={origin:typeof window!="undefined"?(Ed=window==null?void 0:window.location)==null?void 0:Ed.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();er();s();var kd=require("react");s();s();var lI=require("react"),pI=require("@multiversx/sdk-extension-provider");yn();Ce();de();s();Sn();s();var uI=require("react"),Cd=require("@multiversx/sdk-core");ae();s();var fI=require("react"),dI=require("@multiversx/sdk-opera-provider");yn();Ce();de();Sn();s();var hI=require("react");yn();ae();s();s();s();da();s();s();var gI=V(require("platform"));s();Ce();Ie();Mr();Zn();Yn();s();s();s();s();s();s();s();s();s();s();de();s();Mr();Zn();s();s();s();ae();var mI={};var Pd=n=>{if(n.component!=null){let o=n,{component:i}=o,u=Cr(o,["component"]),{payload:m}=j.dispatch(La(Q(O({},u),{component:null})));return mI[m.toastId]=i,m}return j.dispatch(La(n)).payload};s();s();var TI=V(require("axios"));s();s();var Rd=require("react"),xI=require("@multiversx/sdk-hw-provider");yn();Ce();ae();de();Sn();s();var yI=require("react");s();var rc=require("react"),wI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();Sn();s();var oc=require("react"),AI=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();Sn();s();s();var Dd=require("react");s();var bI=require("react");s();var ic=require("react"),_I=require("socket.io-client");ae();s();s();s();s();var Nd=n=>n.dappModal,LI=R(Nd,n=>n.visible),Ei=R(Nd,n=>n.modal),q6=R(Ei,n=>n.showHeader),z6=R(Ei,n=>n.showFooter),K6=R(Ei,n=>n.headerText),Y6=R(Ei,n=>n.footerText);s();s();var _n=V(require("bignumber.js")),Od=n=>{let o=new _n.default(n).dividedBy(1e3).integerValue(_n.default.ROUND_FLOOR),i=new _n.default(o).dividedBy(60).integerValue(_n.default.ROUND_FLOOR),u=new _n.default(i).dividedBy(60).integerValue(_n.default.ROUND_FLOOR),m=u.modulo(60).isGreaterThan(1),S=i.modulo(60).isGreaterThan(1),v=i.modulo(60).isLessThan(1);return m?`${u} hours`:S?`${i} minutes`:v?"less than 1 minute":`${i} minute`};var EI=()=>{let{address:n}=Xa(),{tokenLogin:o}=ne(Ze),{secondsUntilExpires:i,expiresAt:u}=tc(o==null?void 0:o.nativeAuthToken),m=(0,ki.useRef)();return(0,ki.useEffect)(()=>{var k;let S=new sc.default(String(i)),v=S.times(1e3);if(!(!i||S.isLessThanOrEqualTo(0))){if((k=o==null?void 0:o.nativeAuthConfig)!=null&&k.tokenExpirationToastWarningSeconds){clearTimeout(m.current);let D=new sc.default(o.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),$=S.times(1e3).minus(D),M=Od(v.toNumber()),ue=$.isLessThanOrEqualTo(0)?0:$.toNumber();m.current=setTimeout(()=>{Pd({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:Md.faRefresh,message:`Your token will expire in ${M}!`})},ue)}return()=>{clearTimeout(m.current)}}},[u,n,o==null?void 0:o.nativeAuthConfig]),null};0&&(module.exports={useNativeAuthLogoutWarning});
|
|
20
|
+
}`;var z=Fl(function(){return ee(p,N+"return "+L).apply(n,T)});if(z.source=L,Gs(z))throw z;return z}function GS(e){return te(e).toLowerCase()}function $S(e){return te(e).toUpperCase()}function HS(e,t,r){if(e=te(e),e&&(r||t===n))return zc(e);if(!e||!(t=He(t)))return e;var a=ut(e),c=ut(t),p=Kc(a,c),T=Yc(a,c)+1;return Jt(a,p,T).join("")}function VS(e,t,r){if(e=te(e),e&&(r||t===n))return e.slice(0,Xc(e)+1);if(!e||!(t=He(t)))return e;var a=ut(e),c=Yc(a,ut(t))+1;return Jt(a,0,c).join("")}function qS(e,t,r){if(e=te(e),e&&(r||t===n))return e.replace(Gi,"");if(!e||!(t=He(t)))return e;var a=ut(e),c=Kc(a,ut(t));return Jt(a,c).join("")}function zS(e,t){var r=Bd,a=Wd;if(pe(t)){var c="separator"in t?t.separator:c;r="length"in t?q(t.length):r,a="omission"in t?He(t.omission):a}e=te(e);var p=e.length;if(Rn(e)){var T=ut(e);p=T.length}if(r>=p)return e;var h=r-Dn(a);if(h<1)return a;var x=T?Jt(T,0,h).join(""):e.slice(0,h);if(c===n)return x+a;if(T&&(h+=x.length-h),$s(c)){if(e.slice(h).search(c)){var _,b=x;for(c.global||(c=os(c.source,te(gc.exec(c))+"g")),c.lastIndex=0;_=c.exec(b);)var L=_.index;x=x.slice(0,L===n?h:L)}}else if(e.indexOf(He(c),h)!=h){var C=x.lastIndexOf(c);C>-1&&(x=x.slice(0,C))}return x+a}function KS(e){return e=te(e),e&&og.test(e)?e.replace(pc,wm):e}var YS=Bn(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),qs=Uu("toUpperCase");function Ml(e,t,r){return e=te(e),t=r?n:t,t===n?hm(e)?_m(e):cm(e):e.match(t)||[]}var Fl=Y(function(e,t){try{return Ge(e,n,t)}catch(r){return Gs(r)?r:new G(r)}}),ZS=Pt(function(e,t){return Qe(t,function(r){r=yt(r),kt(e,r,Bs(e[r],e))}),e});function XS(e){var t=e==null?0:e.length,r=F();return e=t?le(e,function(a){if(typeof a[1]!="function")throw new je(m);return[r(a[0]),a[1]]}):[],Y(function(a){for(var c=-1;++c<t;){var p=e[c];if(Ge(p[0],this,a))return Ge(p[1],this,a)}})}function JS(e){return wT(tt(e,D))}function zs(e){return function(){return e}}function QS(e,t){return e==null||e!==e?t:e}var jS=Wu(),ev=Wu(!0);function Fe(e){return e}function Ks(e){return Tu(typeof e=="function"?e:tt(e,D))}function tv(e){return yu(tt(e,D))}function nv(e,t){return xu(e,tt(t,D))}var rv=Y(function(e,t){return function(r){return wr(r,e,t)}}),ov=Y(function(e,t){return function(r){return wr(e,r,t)}});function Ys(e,t,r){var a=we(t),c=xo(t,a);r==null&&!(pe(t)&&(c.length||!a.length))&&(r=t,t=e,e=this,c=xo(t,we(t)));var p=!(pe(r)&&"chain"in r)||!!r.chain,T=Dt(e);return Qe(c,function(h){var x=t[h];e[h]=x,T&&(e.prototype[h]=function(){var _=this.__chain__;if(p||_){var b=e(this.__wrapped__),L=b.__actions__=Ne(this.__actions__);return L.push({func:x,args:arguments,thisArg:e}),b.__chain__=_,b}return x.apply(e,Vt([this.value()],arguments))})}),e}function iv(){return ve._===this&&(ve._=Pm),this}function Zs(){}function sv(e){return e=q(e),Y(function(t){return Su(t,e)})}var av=bs(le),cv=bs(Gc),uv=bs(Ji);function Ul(e){return Ds(e)?Qi(yt(e)):BT(e)}function lv(e){return function(t){return e==null?n:ln(e,t)}}var pv=$u(),fv=$u(!0);function Xs(){return[]}function Js(){return!1}function dv(){return{}}function gv(){return""}function mv(){return!0}function Tv(e,t){if(e=q(e),e<1||e>$t)return[];var r=mt,a=Ee(e,mt);t=F(t),e-=mt;for(var c=ts(a,t);++r<e;)t(r);return c}function hv(e){return H(e)?le(e,yt):Ve(e)?[e]:Ne(ol(te(e)))}function yv(e){var t=++km;return te(e)+t}var xv=_o(function(e,t){return e+t},0),Sv=Ls("ceil"),vv=_o(function(e,t){return e/t},1),wv=Ls("floor");function Av(e){return e&&e.length?yo(e,Fe,fs):n}function Iv(e,t){return e&&e.length?yo(e,F(t,2),fs):n}function _v(e){return Vc(e,Fe)}function bv(e,t){return Vc(e,F(t,2))}function Lv(e){return e&&e.length?yo(e,Fe,Ts):n}function Ev(e,t){return e&&e.length?yo(e,F(t,2),Ts):n}var kv=_o(function(e,t){return e*t},1),Cv=Ls("round"),Pv=_o(function(e,t){return e-t},0);function Rv(e){return e&&e.length?es(e,Fe):0}function Dv(e,t){return e&&e.length?es(e,F(t,2)):0}return l.after=tx,l.ary=ml,l.assign=$x,l.assignIn=kl,l.assignInWith=Uo,l.assignWith=Hx,l.at=Vx,l.before=Tl,l.bind=Bs,l.bindAll=ZS,l.bindKey=hl,l.castArray=dx,l.chain=fl,l.chunk=wh,l.compact=Ah,l.concat=Ih,l.cond=XS,l.conforms=JS,l.constant=zs,l.countBy=Ry,l.create=qx,l.curry=yl,l.curryRight=xl,l.debounce=Sl,l.defaults=zx,l.defaultsDeep=Kx,l.defer=nx,l.delay=rx,l.difference=_h,l.differenceBy=bh,l.differenceWith=Lh,l.drop=Eh,l.dropRight=kh,l.dropRightWhile=Ch,l.dropWhile=Ph,l.fill=Rh,l.filter=Ny,l.flatMap=Fy,l.flatMapDeep=Uy,l.flatMapDepth=By,l.flatten=cl,l.flattenDeep=Dh,l.flattenDepth=Nh,l.flip=ox,l.flow=jS,l.flowRight=ev,l.fromPairs=Oh,l.functions=eS,l.functionsIn=tS,l.groupBy=Wy,l.initial=Fh,l.intersection=Uh,l.intersectionBy=Bh,l.intersectionWith=Wh,l.invert=rS,l.invertBy=oS,l.invokeMap=$y,l.iteratee=Ks,l.keyBy=Hy,l.keys=we,l.keysIn=Me,l.map=Ro,l.mapKeys=sS,l.mapValues=aS,l.matches=tv,l.matchesProperty=nv,l.memoize=No,l.merge=cS,l.mergeWith=Cl,l.method=rv,l.methodOf=ov,l.mixin=Ys,l.negate=Oo,l.nthArg=sv,l.omit=uS,l.omitBy=lS,l.once=ix,l.orderBy=Vy,l.over=av,l.overArgs=sx,l.overEvery=cv,l.overSome=uv,l.partial=Ws,l.partialRight=vl,l.partition=qy,l.pick=pS,l.pickBy=Pl,l.property=Ul,l.propertyOf=lv,l.pull=Vh,l.pullAll=ll,l.pullAllBy=qh,l.pullAllWith=zh,l.pullAt=Kh,l.range=pv,l.rangeRight=fv,l.rearg=ax,l.reject=Yy,l.remove=Yh,l.rest=cx,l.reverse=Fs,l.sampleSize=Xy,l.set=dS,l.setWith=gS,l.shuffle=Jy,l.slice=Zh,l.sortBy=ex,l.sortedUniq=ny,l.sortedUniqBy=ry,l.split=FS,l.spread=ux,l.tail=oy,l.take=iy,l.takeRight=sy,l.takeRightWhile=ay,l.takeWhile=cy,l.tap=Ay,l.throttle=lx,l.thru=Po,l.toArray=bl,l.toPairs=Rl,l.toPairsIn=Dl,l.toPath=hv,l.toPlainObject=El,l.transform=mS,l.unary=px,l.union=uy,l.unionBy=ly,l.unionWith=py,l.uniq=fy,l.uniqBy=dy,l.uniqWith=gy,l.unset=TS,l.unzip=Us,l.unzipWith=pl,l.update=hS,l.updateWith=yS,l.values=$n,l.valuesIn=xS,l.without=my,l.words=Ml,l.wrap=fx,l.xor=Ty,l.xorBy=hy,l.xorWith=yy,l.zip=xy,l.zipObject=Sy,l.zipObjectDeep=vy,l.zipWith=wy,l.entries=Rl,l.entriesIn=Dl,l.extend=kl,l.extendWith=Uo,Ys(l,l),l.add=xv,l.attempt=Fl,l.camelCase=AS,l.capitalize=Nl,l.ceil=Sv,l.clamp=SS,l.clone=gx,l.cloneDeep=Tx,l.cloneDeepWith=hx,l.cloneWith=mx,l.conformsTo=yx,l.deburr=Ol,l.defaultTo=QS,l.divide=vv,l.endsWith=IS,l.eq=pt,l.escape=_S,l.escapeRegExp=bS,l.every=Dy,l.find=Oy,l.findIndex=sl,l.findKey=Yx,l.findLast=My,l.findLastIndex=al,l.findLastKey=Zx,l.floor=wv,l.forEach=dl,l.forEachRight=gl,l.forIn=Xx,l.forInRight=Jx,l.forOwn=Qx,l.forOwnRight=jx,l.get=Hs,l.gt=xx,l.gte=Sx,l.has=nS,l.hasIn=Vs,l.head=ul,l.identity=Fe,l.includes=Gy,l.indexOf=Mh,l.inRange=vS,l.invoke=iS,l.isArguments=dn,l.isArray=H,l.isArrayBuffer=vx,l.isArrayLike=Oe,l.isArrayLikeObject=me,l.isBoolean=wx,l.isBuffer=Qt,l.isDate=Ax,l.isElement=Ix,l.isEmpty=_x,l.isEqual=bx,l.isEqualWith=Lx,l.isError=Gs,l.isFinite=Ex,l.isFunction=Dt,l.isInteger=wl,l.isLength=Mo,l.isMap=Al,l.isMatch=kx,l.isMatchWith=Cx,l.isNaN=Px,l.isNative=Rx,l.isNil=Nx,l.isNull=Dx,l.isNumber=Il,l.isObject=pe,l.isObjectLike=fe,l.isPlainObject=Er,l.isRegExp=$s,l.isSafeInteger=Ox,l.isSet=_l,l.isString=Fo,l.isSymbol=Ve,l.isTypedArray=Gn,l.isUndefined=Mx,l.isWeakMap=Fx,l.isWeakSet=Ux,l.join=Gh,l.kebabCase=LS,l.last=rt,l.lastIndexOf=$h,l.lowerCase=ES,l.lowerFirst=kS,l.lt=Bx,l.lte=Wx,l.max=Av,l.maxBy=Iv,l.mean=_v,l.meanBy=bv,l.min=Lv,l.minBy=Ev,l.stubArray=Xs,l.stubFalse=Js,l.stubObject=dv,l.stubString=gv,l.stubTrue=mv,l.multiply=kv,l.nth=Hh,l.noConflict=iv,l.noop=Zs,l.now=Do,l.pad=CS,l.padEnd=PS,l.padStart=RS,l.parseInt=DS,l.random=wS,l.reduce=zy,l.reduceRight=Ky,l.repeat=NS,l.replace=OS,l.result=fS,l.round=Cv,l.runInContext=y,l.sample=Zy,l.size=Qy,l.snakeCase=MS,l.some=jy,l.sortedIndex=Xh,l.sortedIndexBy=Jh,l.sortedIndexOf=Qh,l.sortedLastIndex=jh,l.sortedLastIndexBy=ey,l.sortedLastIndexOf=ty,l.startCase=US,l.startsWith=BS,l.subtract=Pv,l.sum=Rv,l.sumBy=Dv,l.template=WS,l.times=Tv,l.toFinite=Nt,l.toInteger=q,l.toLength=Ll,l.toLower=GS,l.toNumber=ot,l.toSafeInteger=Gx,l.toString=te,l.toUpper=$S,l.trim=HS,l.trimEnd=VS,l.trimStart=qS,l.truncate=zS,l.unescape=KS,l.uniqueId=yv,l.upperCase=YS,l.upperFirst=qs,l.each=dl,l.eachRight=gl,l.first=ul,Ys(l,function(){var e={};return Tt(l,function(t,r){re.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=o,Qe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Qe(["drop","take"],function(e,t){X.prototype[e]=function(r){r=r===n?1:Se(q(r),0);var a=this.__filtered__&&!t?new X(this):this.clone();return a.__filtered__?a.__takeCount__=Ee(r,a.__takeCount__):a.__views__.push({size:Ee(r,mt),type:e+(a.__dir__<0?"Right":"")}),a},X.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Qe(["filter","map","takeWhile"],function(e,t){var r=t+1,a=r==cc||r==Vd;X.prototype[e]=function(c){var p=this.clone();return p.__iteratees__.push({iteratee:F(c,3),type:r}),p.__filtered__=p.__filtered__||a,p}}),Qe(["head","last"],function(e,t){var r="take"+(t?"Right":"");X.prototype[e]=function(){return this[r](1).value()[0]}}),Qe(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[r](1)}}),X.prototype.compact=function(){return this.filter(Fe)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=Y(function(e,t){return typeof e=="function"?new X(this):this.map(function(r){return wr(r,e,t)})}),X.prototype.reject=function(e){return this.filter(Oo(F(e)))},X.prototype.slice=function(e,t){e=q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new X(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(mt)},Tt(X.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),c=l[a?"take"+(t=="last"?"Right":""):t],p=a||/^find/.test(t);!c||(l.prototype[t]=function(){var T=this.__wrapped__,h=a?[1]:arguments,x=T instanceof X,_=h[0],b=x||H(T),L=function(Z){var J=c.apply(l,Vt([Z],h));return a&&C?J[0]:J};b&&r&&typeof _=="function"&&_.length!=1&&(x=b=!1);var C=this.__chain__,N=!!this.__actions__.length,U=p&&!C,z=x&&!N;if(!p&&b){T=z?T:new X(this);var B=e.apply(T,h);return B.__actions__.push({func:Po,args:[L],thisArg:n}),new et(B,C)}return U&&z?e.apply(this,h):(B=this.thru(L),U?a?B.value()[0]:B.value():B)})}),Qe(["pop","push","shift","sort","splice","unshift"],function(e){var t=no[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var c=arguments;if(a&&!this.__chain__){var p=this.value();return t.apply(H(p)?p:[],c)}return this[r](function(T){return t.apply(H(T)?T:[],c)})}}),Tt(X.prototype,function(e,t){var r=l[t];if(r){var a=r.name+"";re.call(Mn,a)||(Mn[a]=[]),Mn[a].push({name:t,func:r})}}),Mn[Io(n,_e).name]=[{name:"wrapper",func:n}],X.prototype.clone=Km,X.prototype.reverse=Ym,X.prototype.value=Zm,l.prototype.at=Iy,l.prototype.chain=_y,l.prototype.commit=by,l.prototype.next=Ly,l.prototype.plant=ky,l.prototype.reverse=Cy,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Py,l.prototype.first=l.prototype.head,mr&&(l.prototype[mr]=Ey),l},zt=bm();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ve._=zt,define(function(){return zt})):on?((on.exports=zt)._=zt,Ki._=zt):ve._=zt}).call(or)});var PI={};gn(PI,{useNativeAuthLogoutWarning:()=>CI});module.exports=Rr(PI);s();s();var ki=require("react"),Ud=require("@fortawesome/free-solid-svg-icons"),sc=V(require("bignumber.js"));s();s();s();var Uf=require("react"),tr=require("react-redux");s();var Ua=require("@reduxjs/toolkit"),Mf=require("react-redux/lib/utils/Subscription");ae();s();var ff=V(require("lodash.throttle"));se();s();var pf=V(require("lodash.isequal")),di=require("reselect");Ie();var R=(0,di.createSelectorCreator)(di.defaultMemoize,pf.default),Ur=(n,o)=>n!=""&&Boolean(o);ae();wa();Zn();Yn();var j0=[zo],gi=!1,ew=(0,ff.default)(()=>{Or(Nr())},5e3),df=n=>o=>i=>{var E;if(j0.includes(i.type))return o(i);let u=n.getState(),m=xn.local.getItem(jt.loginExpiresAt);if(!Ur((E=u==null?void 0:u.loginInfo)==null?void 0:E.loginMethod,u==null?void 0:u.account.address))return o(i);if(m==null)return Or(Nr());let v=Date.now();return m-v<0&&!gi?setTimeout(()=>{gi=!0,n.dispatch(Gp())},1e3):(gi&&(gi=!1),ew()),o(i)};s();s();function mi(){return typeof sessionStorage!="undefined"}var Df=mi()?(If(),Rr(Af)).default:(bf(),Rr(_f)).default,Nf=mi()?(Ef(),Rr(Lf)).default:[],Of=mi()?(Rf(),Rr(Pf)).default:n=>n;Ti();var j=(0,Ua.configureStore)({reducer:Df,middleware:n=>n({serializableCheck:{ignoredActions:[...Nf,va.type,Sa.type],ignoredPaths:["payload.nonce","account.account.nonce","providers.accountProvider"]}}).concat(df)}),Ff=(0,Mf.createSubscription)(j),oE=Of(j),iE=(0,Ua.configureStore)({reducer:wn});var ww={store:j,subscription:Ff},Ba=(0,Uf.createContext)(ww),uE=(0,tr.createStoreHook)(Ba),We=(0,tr.createDispatchHook)(Ba),ne=(0,tr.createSelectorHook)(Ba);s();s();ae();var Bt=n=>n.account,nr=R(Bt,n=>n.address),Wr=R(Bt,nr,(n,o)=>o in n.accounts?n.accounts[o]:Yo),Bf=R(Bt,Wr,(n,o)=>{let m=n,{accounts:i}=m,u=Cr(m,["accounts"]);return Q(O({},u),{account:o})}),Aw=R(Wr,n=>n.balance),Iw=R(Wr,n=>{var o;return((o=n==null?void 0:n.nonce)==null?void 0:o.valueOf())||0}),dE=R(Bt,n=>n.shard),_w=R(Bt,n=>n.ledgerAccount),gE=R(Bt,n=>n.walletConnectAccount),mE=R(Bt,n=>n.isAccountLoading),TE=R(Bt,n=>n.accountLoadingError),Wf=R(Bt,n=>n.websocketEvent);s();var Ze=n=>n.loginInfo,SE=R(Ze,n=>n.loginMethod),Wa=R(Ze,nr,(n,o)=>Ur(n.loginMethod,o)),vE=R(Ze,n=>n.walletConnectLogin),wE=R(Ze,n=>n.ledgerLogin),bw=R(Ze,n=>n.walletLogin),AE=R(Ze,n=>n.isLoginSessionInvalid),Lw=R(Ze,n=>n.tokenLogin),IE=R(Ze,n=>n.logoutRoute);s();var Gf=n=>n.modals,LE=R(Gf,n=>n.txSubmittedModal),Ew=R(Gf,n=>n.notificationModal);s();var Wt=n=>n.networkConfig,hi=R(Wt,n=>n.chainID),kw=R(Wt,n=>n.network.walletConnectBridgeAddress),Cw=R(Wt,n=>n.network.walletConnectV2RelayAddress),Pw=R(Wt,n=>n.network.walletConnectV2ProjectId),Rw=R(Wt,n=>n.network.walletConnectV2Options),$f=R(Wt,n=>n.network.walletConnectDeepLink),tn=R(Wt,n=>n.network),Hf=R(tn,n=>n.apiAddress),Vf=R(tn,n=>n.explorerAddress),qf=R(tn,n=>n.egldLabel);s();var Ga=n=>n.signedMessageInfo,RE=R(Ga,n=>n.isSigning),DE=R(Ga,n=>n.errorMessage),NE=R(Ga,n=>{let o=Object.keys(n.signedSessions),i=o.length;return n.signedSessions[o[i-1]]});s();var $a=n=>n.toasts,FE=R($a,n=>n.customToasts),UE=R($a,n=>n.transactionToasts),BE=R($a,n=>n.failTransactionToast);s();ae();var zf={errorMessage:Ca,successMessage:Pa,processingMessage:Ra},Dw=n=>n.transactionsInfo,Nw=R(Dw,(n,o)=>o,(n,o)=>o!=null&&(n==null?void 0:n[Number(o)])||zf);s();s();var Xe=require("@multiversx/sdk-core");se();s();function yi(n){try{return d.Buffer.from(n,"base64").toString()===atob(n)}catch(o){return!1}}function An(n){return yi(n)?atob(n):n}function xi(n){var m,S,v;let{data:o}=n,i=yi(o!=null?o:"")?Xe.TransactionPayload.fromEncoded(o):new Xe.TransactionPayload(o),u=new Xe.Transaction(O({value:n.value.valueOf(),data:i,nonce:n.nonce.valueOf(),receiver:new Xe.Address(n.receiver),sender:new Xe.Address(n.sender),gasLimit:(m=n.gasLimit.valueOf())!=null?m:Dr,gasPrice:(S=n.gasPrice.valueOf())!=null?S:qo,chainID:n.chainID.valueOf(),version:new Xe.TransactionVersion((v=n.version)!=null?v:_p)},n.options?{options:new Xe.TransactionOptions(n.options)}:{}));return u.applySignature({hex:()=>n.signature||""},new Xe.Address(n.sender)),u}s();s();s();s();s();var Mw=require("@multiversx/sdk-core/out");s();se();s();var Kf=require("@multiversx/sdk-core");Ie();s();var Fw=require("@multiversx/sdk-core");s();s();s();var Bw=require("@multiversx/sdk-core"),Ww=V(require("bignumber.js"));de();s();s();s();s();s();var Va="blocks";s();s();s();s();Be();s();s();Be();s();s();s();var Yw=V(require("bignumber.js"));se();s();var Kw=require("@multiversx/sdk-core"),qa=V(require("bignumber.js"));se();s();var qw=V(require("bignumber.js"));s();qa.default.config({ROUNDING_MODE:qa.default.ROUND_FLOOR});s();s();s();se();s();s();s();s();se();s();se();s();var Zw=require("@multiversx/sdk-core");se();s();var Gr=require("@multiversx/sdk-core"),Qw=require("@multiversx/sdk-network-providers");se();s();s();var Xw=V(require("bignumber.js"));se();s();se();s();s();s();s();s();se();s();Be();var eA=["reDelegateRewards","claimRewards","unBond"],tA=["wrapEgld","unwrapEgld"],nA=["unStake"],rA=["unDelegate"];s();s();s();se();s();var aA=V(require("bignumber.js"));s();s();s();s();Be();s();var cA=V(require("bignumber.js"));s();s();s();var pA=V(require("bignumber.js"));Ie();s();s();s();s();de();s();s();s();s();Be();s();s();s();var fA=V(require("linkifyjs"));s();se();s();var dA=V(require("bignumber.js"));s();Ie();s();s();de();s();de();s();s();s();Be();s();Be();s();var gA=V(require("bignumber.js"));se();Be();s();Be();s();var nd=require("react");Ie();s();s();Be();s();s();var mA=require("@multiversx/sdk-core/out"),TA=V(require("bignumber.js"));Be();s();Ie();s();s();Ie();var xD=[{label:"Raw",value:"raw"},{label:"Text",value:"text"},{label:"Decimal",value:"decimal"},{label:"Smart",value:"smart"}];s();var rd=require("react");Ie();s();var yA=require("react");Be();var bD=["create","localMint","ESDTLocalMint","addQuantity","burn","localBurn","ESDTLocalBurn","wipe","writeLog","signalError"];er();var Ai=n=>n.transactions,rr=R(Ai,n=>n.signedTransactions),xA=R(Ai,n=>n.signTransactionsError),od=R(Ai,n=>n.signTransactionsCancelMessage),Ii=n=>o=>Object.entries(o).reduce((i,[u,m])=>(n(m.status)&&(i[u]=m),i),{}),id=R(rr,Ii(Jn)),sd=R(rr,Ii(Qn)),ad=R(rr,Ii(jn)),SA=R(rr,Ii(Na)),cd=R(Ai,n=>{var o;return(n==null?void 0:n.transactionsToSign)==null?null:Q(O({},n.transactionsToSign),{transactions:((o=n==null?void 0:n.transactionsToSign)==null?void 0:o.transactions.map(i=>xi(i)))||[]})}),vA=R(rr,(n,o)=>o,(n,o)=>o!=null?(n==null?void 0:n[o])||{}:{});s();var ud=require("react");s();ae();s();s();s();s();s();s();s();s();var wA=require("@multiversx/sdk-extension-provider"),AA=require("@multiversx/sdk-hw-provider"),IA=require("@multiversx/sdk-opera-provider"),_A=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider"),bA=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider"),LA=require("@multiversx/sdk-web-wallet-provider");se();de();var Gt=n=>`Unable to perform ${n}, Provider not initialized`,Ka=class{init(){return Promise.resolve(!1)}login(o){throw new Error(Gt(`login with options: ${o}`))}logout(o){throw new Error(Gt(`logout with options: ${o}`))}getAddress(){throw new Error(Gt("getAddress"))}isInitialized(){return!1}isConnected(){return Promise.resolve(!1)}sendTransaction(o,i){throw new Error(Gt(`sendTransaction with transactions: ${o} options: ${i}`))}signTransaction(o,i){throw new Error(Gt(`signTransaction with transactions: ${o} options: ${i}`))}signTransactions(o,i){throw new Error(Gt(`signTransactions with transactions: ${o} options: ${i}`))}signMessage(o,i){throw new Error(Gt(`signTransactions with ${o} and options ${i}`))}sendCustomMessage({method:o,params:i}){throw new Error(Gt(`sendCustomMessage with method: ${o} params: ${i}`))}sendCustomRequest(o){throw new Error(Gt(`sendSessionEvent with options: ${o}`))}ping(){return Promise.resolve(!1)}},EA=new Ka;ae();s();s();var kA=V(require("axios"));s();s();s();de();s();s();s();er();s();s();s();var CA=V(require("axios"));s();var PA=V(require("axios"));s();var DA=V(require("axios"));s();s();var NA=V(require("axios"));s();var OA=V(require("axios"));s();ae();de();s();s();ae();s();s();var dd=require("@multiversx/sdk-core");s();Ce();Ie();s();er();s();ae();de();s();ae();Ie();s();s();s();Ie();s();s();s();s();var BA=V(require("axios")),WA=V(require("swr"));s();s();var gd=require("react");s();var HA=require("react"),hd=require("@multiversx/sdk-web-wallet-provider"),VA=V(require("qs"));se();ae();de();s();s();var md,EF={search:(md=window==null?void 0:window.location)==null?void 0:md.search,removeParams:[]};s();var yd=require("react");Ia();s();var wd=require("react"),jA=require("@multiversx/sdk-extension-provider");se();s();ae();de();s();s();s();s();var vd=require("react"),ZA=require("@multiversx/sdk-extension-provider");se();s();s();var Xa=()=>ne(Bf);s();s();s();s();s();s();var $r=V(require("react"));var xU=(0,$r.createContext)({}),SU=j.getState();s();var Sd=V(require("react"));s();var Qa=V(require("react")),zA=V(require("axios"));s();s();ae();s();s();var eI=V(require("axios"));ae();Ie();Mr();s();yn();ae();s();s();var lI=require("react");s();s();s();ae();s();s();var rI=V(require("bignumber.js"));se();ae();Ie();s();var nI=V(require("bignumber.js"));se();s();var oI=require("@multiversx/sdk-core"),iI=V(require("bignumber.js"));se();s();s();s();s();var _d=V(require("axios"));s();s();s();function Ad(n){return K(this,null,function*(){return yield new Promise(o=>{setTimeout(()=>o(),n)})})}s();var Id=(n,o,i,u=0)=>K(void 0,null,function*(){try{return yield n(...i)}catch(m){return u<o.retries?((o==null?void 0:o.delay)!=null&&(yield Ad(o.delay)),yield Id(n,o,i,u+1)):null}}),ec=(n,o={retries:5,delay:500})=>(...i)=>K(void 0,null,function*(){return yield Id(n,o,i)});var sI=4;var uW=ec((n,o)=>K(void 0,null,function*(){let{data:i}=yield _d.default.get(`${n}/${Va}?from=${sI}&size=1&fields=hash,timestamp${o?"&shard="+o:""}`),[u]=i;return u}));s();s();Ko();s();s();var Ld=V(bd());var Ed=n=>{if(!n||!(0,Ld.isString)(n))return null;let o=n.split(".");if(o.length!==4)return console.error("Invalid loginToken. You may be trying to decode a nativeAuthToken. Try using decodeNativeAuthToken method instead"),null;try{let[i,u,m,S]=o,v=JSON.parse(An(S)),k=An(i);return{ttl:Number(m),extraInfo:v,origin:k,blockHash:u}}catch(i){return console.error(`Error trying to decode ${n}:`,i),null}};function aI(n){return Object.prototype.toString.call(n)==="[object String]"}var kd=n=>{var i;if(!n||!aI(n))return null;let o=n.split(".");if(o.length!==3)return console.error("Invalid nativeAuthToken. You may be trying to decode a loginToken. Try using decodeLoginToken method instead"),null;try{let[u,m,S]=o,v=An(u),k=An(m),E=Ed(k);if(!E)return{address:v,body:k,signature:S,blockHash:"",origin:"",ttl:0};let D=Q(O({},E),{address:v,body:k,signature:S});return(i=E.extraInfo)!=null&&i.timestamp||delete D.extraInfo,D}catch(u){return null}};var tc=n=>{let o=kd(n);if(!o)return{isExpired:!1};let i=Kn(),{ttl:u,extraInfo:m}=o,S=m==null?void 0:m.timestamp;if(!S)return{isExpired:!1};let v=S+u,k=i>v,E=v-i;return{isExpired:k,expiresAt:v,secondsUntilExpires:E}};s();var Cd,SW={origin:typeof window!="undefined"?(Cd=window==null?void 0:window.location)==null?void 0:Cd.origin:"",apiAddress:"https://api.multiversx.com",expirySeconds:60*60*24,tokenExpirationToastWarningSeconds:5*60};s();de();er();s();var Pd=require("react");s();s();var fI=require("react"),dI=require("@multiversx/sdk-extension-provider");yn();Ce();de();s();Sn();s();var pI=require("react"),Rd=require("@multiversx/sdk-core");ae();s();var gI=require("react"),mI=require("@multiversx/sdk-opera-provider");yn();Ce();de();Sn();s();var xI=require("react");yn();ae();s();s();da();s();s();var TI=V(require("platform"));s();Ce();Ie();Mr();Zn();Yn();s();s();s();s();s();s();s();s();s();de();s();Mr();Zn();s();s();s();ae();var hI={};var Dd=n=>{if(n.component!=null){let o=n,{component:i}=o,u=Cr(o,["component"]),{payload:m}=j.dispatch(La(Q(O({},u),{component:null})));return hI[m.toastId]=i,m}return j.dispatch(La(n)).payload};s();s();var yI=V(require("axios"));s();s();var Nd=require("react"),vI=require("@multiversx/sdk-hw-provider");yn();Ce();ae();de();Sn();s();var SI=require("react");s();var rc=require("react"),II=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectProvider");Ce();ae();de();Sn();s();var oc=require("react"),_I=require("@multiversx/sdk-wallet-connect-provider/out/walletConnectV2Provider");Ce();ae();de();Sn();s();s();var Od=require("react");s();var EI=require("react");s();var ic=require("react"),LI=require("socket.io-client");ae();s();s();s();s();var Md=n=>n.dappModal,kI=R(Md,n=>n.visible),Ei=R(Md,n=>n.modal),X6=R(Ei,n=>n.showHeader),J6=R(Ei,n=>n.showFooter),Q6=R(Ei,n=>n.headerText),j6=R(Ei,n=>n.footerText);s();s();var _n=V(require("bignumber.js")),Fd=n=>{let o=new _n.default(n).dividedBy(1e3).integerValue(_n.default.ROUND_FLOOR),i=new _n.default(o).dividedBy(60).integerValue(_n.default.ROUND_FLOOR),u=new _n.default(i).dividedBy(60).integerValue(_n.default.ROUND_FLOOR),m=u.modulo(60).isGreaterThan(1),S=i.modulo(60).isGreaterThan(1),v=i.modulo(60).isLessThan(1);return m?`${u} hours`:S?`${i} minutes`:v?"less than 1 minute":`${i} minute`};var CI=()=>{let{address:n}=Xa(),{tokenLogin:o}=ne(Ze),{secondsUntilExpires:i,expiresAt:u}=tc(o==null?void 0:o.nativeAuthToken),m=(0,ki.useRef)();return(0,ki.useEffect)(()=>{var k;let S=new sc.default(String(i)),v=S.times(1e3);if(!(!i||S.isLessThanOrEqualTo(0))){if((k=o==null?void 0:o.nativeAuthConfig)!=null&&k.tokenExpirationToastWarningSeconds){clearTimeout(m.current);let D=new sc.default(o.nativeAuthConfig.tokenExpirationToastWarningSeconds).times(1e3),$=S.times(1e3).minus(D),M=Fd(v.toNumber()),ue=$.isLessThanOrEqualTo(0)?0:$.toNumber();m.current=setTimeout(()=>{Dd({toastId:"nativeAuthTokenExpiration",type:"custom",title:"Session Expiration Warning",icon:Ud.faRefresh,message:`Your token will expire in ${M}!`})},ue)}return()=>{clearTimeout(m.current)}}},[u,n,o==null?void 0:o.nativeAuthConfig]),null};0&&(module.exports={useNativeAuthLogoutWarning});
|
|
21
21
|
/*!
|
|
22
22
|
* The buffer module from node.js, for the browser.
|
|
23
23
|
*
|