diff --git a/asset-manifest.json b/asset-manifest.json index 2282282..0694b33 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/fiatconnect-widget/static/css/main.25adf301.css", - "main.js": "/fiatconnect-widget/static/js/main.07b8a1d8.js", + "main.js": "/fiatconnect-widget/static/js/main.6cd3be7a.js", "static/js/140.9a1f9bec.chunk.js": "/fiatconnect-widget/static/js/140.9a1f9bec.chunk.js", "static/js/572.5a429bec.chunk.js": "/fiatconnect-widget/static/js/572.5a429bec.chunk.js", "static/js/403.328726be.chunk.js": "/fiatconnect-widget/static/js/403.328726be.chunk.js", @@ -60,7 +60,7 @@ "static/media/inter-vietnamese-400-normal.woff2": "/fiatconnect-widget/static/media/inter-vietnamese-400-normal.789afb71d327988e2fc8.woff2", "index.html": "/fiatconnect-widget/index.html", "main.25adf301.css.map": "/fiatconnect-widget/static/css/main.25adf301.css.map", - "main.07b8a1d8.js.map": "/fiatconnect-widget/static/js/main.07b8a1d8.js.map", + "main.6cd3be7a.js.map": "/fiatconnect-widget/static/js/main.6cd3be7a.js.map", "140.9a1f9bec.chunk.js.map": "/fiatconnect-widget/static/js/140.9a1f9bec.chunk.js.map", "572.5a429bec.chunk.js.map": "/fiatconnect-widget/static/js/572.5a429bec.chunk.js.map", "403.328726be.chunk.js.map": "/fiatconnect-widget/static/js/403.328726be.chunk.js.map", @@ -104,6 +104,6 @@ }, "entrypoints": [ "static/css/main.25adf301.css", - "static/js/main.07b8a1d8.js" + "static/js/main.6cd3be7a.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index fbb1987..1fc6a0b 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -FiatConnect Widget
\ No newline at end of file +FiatConnect Widget
\ No newline at end of file diff --git a/static/js/main.07b8a1d8.js b/static/js/main.6cd3be7a.js similarity index 99% rename from static/js/main.07b8a1d8.js rename to static/js/main.6cd3be7a.js index 0cbd61b..db597f4 100644 --- a/static/js/main.07b8a1d8.js +++ b/static/js/main.6cd3be7a.js @@ -1,3 +1,3 @@ -/*! For license information please see main.07b8a1d8.js.LICENSE.txt */ -(()=>{var e={43713:(e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var a,i=function(){function e(){}var n=e.prototype;return n.unwrap=function(e,n){var r=this._chain((function(n){return t.Result.ok(e?e(n):n)}),(function(e){return n?t.Result.ok(n(e)):t.Result.err(e)}));if(r.isErr)throw r.error;return r.value},n.map=function(e,n){return this._chain((function(n){return t.Result.ok(e(n))}),(function(e){return t.Result.err(n?n(e):e)}))},n.chain=function(e,n){return this._chain(e,n||function(e){return t.Result.err(e)})},e}(),o=function(e){function t(t){var n;return(n=e.call(this)||this).value=void 0,n.isOk=!0,n.isErr=!1,n.value=t,n}return n(t,e),t.prototype._chain=function(e,t){return e(this.value)},t}(i),s=function(e){function t(t){var n;return(n=e.call(this)||this).error=void 0,n.isOk=!1,n.isErr=!0,n.error=t,n}return n(t,e),t.prototype._chain=function(e,t){return t(this.error)},t}(i);t.Result=void 0,(a=t.Result||(t.Result={})).ok=function(e){return new o(e)},a.err=function(e){return new s(e||new Error)},a.all=function(e){if(Array.isArray(e)){for(var t=[],n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchWithTimeout=void 0,t.fetchWithTimeout=function(e,t){return async function(n,r){const a=new AbortController,i=setTimeout((()=>{a.abort()}),t),o=await e(n,Object.assign(Object.assign({},r),{signal:a.signal}));return clearTimeout(i),o}}},73069:(e,t,n)=>{"use strict";t.zt=void 0;const r=n(16198),a=n(43713),i=n(32062),o=n(75940),s=n(84374),c={[r.Network.Alfajores]:44787,[r.Network.Mainnet]:42220};function l(e){return e instanceof o.ResponseError?a.Result.err(e):e instanceof Error?"AbortError"===e.name?a.Result.err(new o.ResponseError(e.name)):a.Result.err(new o.ResponseError(e.message)):e instanceof Object?a.Result.err(new o.ResponseError("FiatConnect API Error",e)):a.Result.err(new o.ResponseError(String(e)))}function u(e){if(e)return{Authorization:"Bearer ".concat(e)}}t.zt=function(e){return{accountAddress:e.accountAddress,statement:"Sign in with Ethereum",version:"1",chainId:c[e.network],sessionDurationMs:144e5,loginUrl:"".concat(e.baseUrl,"/auth/login"),clockUrl:"".concat(e.baseUrl,"/clock"),headers:u(e.apiKey),timeout:e.timeout}}},75940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseError=void 0;const r=n(52089);class a extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,a.prototype),t instanceof r.ZodError?this.zodError=t:(this.fiatConnectError=null===t||void 0===t?void 0:t.error,this.minimumFiatAmount=null===t||void 0===t?void 0:t.minimumFiatAmount,this.maximumFiatAmount=null===t||void 0===t?void 0:t.maximumFiatAmount,this.minimumCryptoAmount=null===t||void 0===t?void 0:t.minimumCryptoAmount,this.maximumCryptoAmount=null===t||void 0===t?void 0:t.maximumCryptoAmount)}}t.ResponseError=a},84374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=void 0;const r=n(52089),a=n(75940);t.validate=function(e,t){try{t.parse(e)}catch(n){if(n instanceof r.ZodError)throw new a.ResponseError("Error validating object with schema ".concat(t.description,". ").concat(JSON.stringify(n.format())),n);throw n}}},52530:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authRequestBodySchema=void 0;const r=n(52089);t.authRequestBodySchema=r.z.object({message:r.z.string(),signature:r.z.string()},{description:"authRequestBodySchema"})},3442:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clockResponseSchema=void 0;const r=n(52089);t.clockResponseSchema=r.z.object({time:r.z.string()},{description:"clockResponseSchema"})},10545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.urlUserActionSchema=t.pseUserActionSchema=t.ibanUserActionSchema=t.pixUserActionSchema=t.transferInUserActionDetailsSchema=t.TransferInUserActionDetails=t.EMAIL_REGEX=t.cryptoTypeSchema=t.CryptoType=t.fiatTypeSchema=t.FiatType=t.networkSchema=t.Network=t.fiatConnectErrorSchema=t.FiatConnectError=void 0;const r=n(52089);var a,i,o,s,c;!function(e){e.InvalidSignature="InvalidSignature",e.GeoNotSupported="GeoNotSupported",e.CryptoAmountTooLow="CryptoAmountTooLow",e.CryptoAmountTooHigh="CryptoAmountTooHigh",e.FiatAmountTooLow="FiatAmountTooLow",e.FiatAmountTooHigh="FiatAmountTooHigh",e.CryptoNotSupported="CryptoNotSupported",e.FiatNotSupported="FiatNotSupported",e.UnsupportedSchema="UnsupportedSchema",e.InvalidSchema="InvalidSchema",e.ResourceExists="ResourceExists",e.ResourceNotFound="ResourceNotFound",e.TransferNotAllowed="TransferNotAllowed",e.KycExpired="KycExpired",e.Unauthorized="Unauthorized",e.SessionExpired="SessionExpired",e.InvalidParameters="InvalidParameters",e.ContractLoginNotSupported="ContractLoginNotSupported",e.NonceInUse="NonceInUse",e.IssuedTooEarly="IssuedTooEarly",e.ExpirationTooLong="ExpirationTooLong",e.InvalidFiatAccount="InvalidFiatAccount",e.InvalidQuote="InvalidQuote"}(a||(t.FiatConnectError=a={})),t.fiatConnectErrorSchema=r.z.nativeEnum(a,{description:"fiatConnectErrorSchema"}),function(e){e.Alfajores="Alfajores",e.Mainnet="Mainnet"}(i||(t.Network=i={})),t.networkSchema=r.z.nativeEnum(i,{description:"networkSchema"}),function(e){e.USD="USD",e.EUR="EUR",e.BRL="BRL",e.GNF="GNF",e.INR="INR",e.NGN="NGN",e.GHS="GHS",e.KES="KES",e.ZAR="ZAR",e.PHP="PHP",e.UGX="UGX",e.GBP="GBP",e.XOF="XOF",e.RWF="RWF",e.CNY="CNY",e.XAF="XAF",e.ARS="ARS",e.BOB="BOB",e.CLP="CLP",e.COP="COP",e.FKP="FKP",e.GYD="GYD",e.PYG="PYG",e.PEN="PEN",e.SRD="SRD",e.UYU="UYU",e.VES="VES",e.MXN="MXN",e.PAB="PAB"}(o||(t.FiatType=o={})),t.fiatTypeSchema=r.z.nativeEnum(o,{description:"fiatTypeSchema"}),function(e){e.cUSD="cUSD",e.cEUR="cEUR",e.cREAL="cREAL",e.CELO="CELO"}(s||(t.CryptoType=s={})),t.cryptoTypeSchema=r.z.nativeEnum(s,{description:"cryptoTypeSchema"}),t.EMAIL_REGEX=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,function(e){e.PIXUserAction="PIXUserAction",e.IBANUserAction="IBANUserAction",e.PSEUserAction="PSEUserAction",e.URLUserAction="URLUserAction"}(c||(t.TransferInUserActionDetails=c={})),t.transferInUserActionDetailsSchema=r.z.nativeEnum(c,{description:"transferInUserActionDetailsSchema"}),t.pixUserActionSchema=r.z.object({userActionType:r.z.literal(c.PIXUserAction),pixString:r.z.string()},{description:"pixUserActionSchema"}),t.ibanUserActionSchema=r.z.object({userActionType:r.z.literal(c.IBANUserAction),iban:r.z.string(),bic:r.z.string()},{description:"ibanUserActionSchema"}),t.pseUserActionSchema=r.z.object({userActionType:r.z.literal(c.PSEUserAction),url:r.z.string()},{description:"pseUserActionSchema"}),t.urlUserActionSchema=r.z.object({userActionType:r.z.literal(c.URLUserAction),url:r.z.string()},{description:"urlUserActionSchema"})},36954:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postFiatAccountResponseSchema=t.getFiatAccountsResponseSchema=t.deleteFiatAccountRequestParamsSchema=t.postFiatAccountRequestBodySchema=t.obfuscatedFiatAccountDataSchema=t.fiatAccountIdSchema=t.fiatAccountSchemasSchema=t.iFSCAccountSchema=t.iBANNumberSchema=t.mobileMoneySchema=t.duniaWalletSchema=t.accountNumberSchema=t.pixAccountSchema=t.PIX_PHONE_KEY_REGEX=t.PIX_CPF_KEY_REGEX=t.pixKeyTypeEnumSchema=t.PIXKeyTypeEnum=t.fiatAccountTypeSchema=t.FiatAccountType=t.fiatAccountSchemaSchema=t.FiatAccountSchema=void 0;const r=n(52089),a=n(10545);var i,o,s;!function(e){e.AccountNumber="AccountNumber",e.MobileMoney="MobileMoney",e.DuniaWallet="DuniaWallet",e.IBANNumber="IBANNumber",e.IFSCAccount="IFSCAccount",e.PIXAccount="PIXAccount"}(i||(t.FiatAccountSchema=i={})),t.fiatAccountSchemaSchema=r.z.nativeEnum(i,{description:"fiatAccountSchemaSchema"}),function(e){e.BankAccount="BankAccount",e.MobileMoney="MobileMoney",e.DuniaWallet="DuniaWallet"}(o||(t.FiatAccountType=o={})),t.fiatAccountTypeSchema=r.z.nativeEnum(o,{description:"fiatAccountTypeSchema"}),function(e){e.EMAIL="EMAIL",e.PHONE="PHONE",e.CPF="CPF",e.RANDOM="RANDOM"}(s||(t.PIXKeyTypeEnum=s={})),t.pixKeyTypeEnumSchema=r.z.nativeEnum(s,{description:"pixKeyTypeEnumSchema"});const c=r.z.object({accountName:r.z.string(),institutionName:r.z.string(),fiatAccountType:t.fiatAccountTypeSchema});t.PIX_CPF_KEY_REGEX=/^([0-9]{3}\.){2}[0-9]{3}[-]([0-9]{2})$/,t.PIX_PHONE_KEY_REGEX=/^[0-9]{11}$/,t.pixAccountSchema=c.and(r.z.object({fiatAccountType:r.z.literal(o.BankAccount)},{description:"PIXAccountSchema"})).and(r.z.object({keyType:r.z.literal(s.EMAIL),key:r.z.string().regex(a.EMAIL_REGEX)}).or(r.z.object({keyType:r.z.literal(s.CPF),key:r.z.string().regex(t.PIX_CPF_KEY_REGEX)})).or(r.z.object({keyType:r.z.literal(s.PHONE),key:r.z.string().regex(t.PIX_PHONE_KEY_REGEX)})).or(r.z.object({keyType:r.z.literal(s.RANDOM),key:r.z.string().uuid()}))),t.accountNumberSchema=c.and(r.z.object({accountNumber:r.z.string(),country:r.z.string(),fiatAccountType:r.z.literal(o.BankAccount)},{description:"accountNumberSchema"})),t.duniaWalletSchema=c.and(r.z.object({mobile:r.z.string(),fiatAccountType:r.z.literal(o.DuniaWallet)},{description:"duniaWalletSchema"})),t.mobileMoneySchema=c.and(r.z.object({mobile:r.z.string(),country:r.z.string(),operator:r.z.string(),fiatAccountType:r.z.literal(o.MobileMoney)},{description:"mobileMoneySchema"})),t.iBANNumberSchema=c.and(r.z.object({iban:r.z.string(),country:r.z.string(),fiatAccountType:r.z.literal(o.BankAccount)},{description:"iBANNumberSchema"})),t.iFSCAccountSchema=c.and(r.z.object({ifsc:r.z.string(),accountNumber:r.z.string(),country:r.z.string(),fiatAccountType:r.z.literal(o.BankAccount)},{description:"iFSCAccountSchema"})),t.fiatAccountSchemasSchema=r.z.object({[i.AccountNumber]:t.accountNumberSchema,[i.MobileMoney]:t.mobileMoneySchema,[i.DuniaWallet]:t.duniaWalletSchema,[i.IBANNumber]:t.iBANNumberSchema,[i.IFSCAccount]:t.iFSCAccountSchema,[i.PIXAccount]:t.pixAccountSchema},{description:"fiatAccountSchemasSchema"}),t.fiatAccountIdSchema=r.z.string({description:"fiatAccountIdSchema"}),t.obfuscatedFiatAccountDataSchema=r.z.object({fiatAccountId:t.fiatAccountIdSchema,accountName:r.z.string(),institutionName:r.z.string(),fiatAccountType:t.fiatAccountTypeSchema,fiatAccountSchema:t.fiatAccountSchemaSchema},{description:"obfuscatedFiatAccountDataSchema"}),t.postFiatAccountRequestBodySchema=r.z.union([r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.AccountNumber),data:t.accountNumberSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.DuniaWallet),data:t.duniaWalletSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.MobileMoney),data:t.mobileMoneySchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.IBANNumber),data:t.iBANNumberSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.IFSCAccount),data:t.iFSCAccountSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.PIXAccount),data:t.pixAccountSchema})],{description:"postFiatAccountRequestBodySchema"}),t.deleteFiatAccountRequestParamsSchema=r.z.object({fiatAccountId:t.fiatAccountIdSchema},{description:"deleteFiatAccountRequestParamsSchema"}),t.getFiatAccountsResponseSchema=r.z.record(t.fiatAccountTypeSchema,r.z.array(t.obfuscatedFiatAccountDataSchema),{description:"getFiatAccountsResponseSchema"}),t.postFiatAccountResponseSchema=t.obfuscatedFiatAccountDataSchema},16198:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(3442),t),a(n(52530),t),a(n(10545),t),a(n(36954),t),a(n(94278),t),a(n(51075),t),a(n(70849),t),a(n(18063),t)},94278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kycStatusResponseSchema=t.kycRequestParamsSchema=t.kycSchemasSchema=t.personalDataAndDocumentsDetailedKycSchema=t.personalDataAndDocumentsKycSchema=t.identificationDocumentTypeSchema=t.IdentificationDocumentType=t.kycSchemaSchema=t.KycSchema=t.kycStatusSchema=t.KycStatus=void 0;const r=n(52089),a=n(10545);var i,o,s;!function(e){e.KycNotCreated="KycNotCreated",e.KycPending="KycPending",e.KycApproved="KycApproved",e.KycDenied="KycDenied",e.KycExpired="KycExpired"}(i||(t.KycStatus=i={})),t.kycStatusSchema=r.z.nativeEnum(i,{description:"kycStatusSchema"}),function(e){e.PersonalDataAndDocuments="PersonalDataAndDocuments",e.PersonalDataAndDocumentsDetailed="PersonalDataAndDocumentsDetailed"}(o||(t.KycSchema=o={})),t.kycSchemaSchema=r.z.nativeEnum(o,{description:"kycSchemaSchema"}),function(e){e.IDC="IDC",e.PAS="PAS",e.DL="DL"}(s||(t.IdentificationDocumentType=s={}));const c=[s.IDC,s.DL],l=Object.keys(s).filter((e=>!c.includes(e))),u=r.z.enum(c),d=r.z.enum(l);t.identificationDocumentTypeSchema=u.or(d),t.personalDataAndDocumentsKycSchema=r.z.object({firstName:r.z.string(),middleName:r.z.string().optional(),lastName:r.z.string(),dateOfBirth:r.z.object({day:r.z.string(),month:r.z.string(),year:r.z.string()}),address:r.z.object({address1:r.z.string(),address2:r.z.string().optional(),isoCountryCode:r.z.string(),isoRegionCode:r.z.string(),city:r.z.string(),postalCode:r.z.string().optional()}),phoneNumber:r.z.string(),selfieDocument:r.z.string(),identificationDocument:r.z.string()},{description:"personalDataAndDocumentsKycSchema"}),t.personalDataAndDocumentsDetailedKycSchema=t.personalDataAndDocumentsKycSchema.omit({identificationDocument:!0}).and(r.z.object({email:r.z.string().regex(a.EMAIL_REGEX),identificationDocumentFront:r.z.string()})).and(r.z.object({identificationDocumentType:u,identificationDocumentBack:r.z.string()}).or(r.z.object({identificationDocumentType:d}))),t.kycSchemasSchema=r.z.object({[t.kycSchemaSchema.enum.PersonalDataAndDocuments]:t.personalDataAndDocumentsKycSchema,[t.kycSchemaSchema.enum.PersonalDataAndDocumentsDetailed]:t.personalDataAndDocumentsDetailedKycSchema},{description:"kycSchemasSchema"}),t.kycRequestParamsSchema=r.z.object({kycSchema:t.kycSchemaSchema},{description:"kycRequestParamsSchema"}),t.kycStatusResponseSchema=r.z.object({kycStatus:t.kycStatusSchema},{description:"kycStatusResponseSchema"})},51075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quotePreviewResponseSchema=t.quoteResponseSchema=t.fiatAccountTypeQuoteDataSchema=t.quoteResponseFiatAccountSchemaSchema=t.quoteResponseKycSchemaSchema=t.quoteErrorResponseSchema=t.quoteRequestBodySchema=t.feeFrequencySchema=t.FeeFrequency=t.feeTypeSchema=t.FeeType=void 0;const r=n(52089),a=n(10545),i=n(36954),o=n(94278),s=n(70849);var c,l;!function(e){e.KycFee="KycFee",e.PlatformFee="PlatformFee"}(c||(t.FeeType=c={})),t.feeTypeSchema=r.z.nativeEnum(c,{description:"feeTypeSchema"}),function(e){e.OneTime="OneTime",e.Recurring="Recurring"}(l||(t.FeeFrequency=l={})),t.feeFrequencySchema=r.z.nativeEnum(l,{description:"feeFrequencySchema"}),t.quoteRequestBodySchema=r.z.object({fiatType:a.fiatTypeSchema,cryptoType:a.cryptoTypeSchema,address:r.z.string(),fiatAmount:r.z.string().optional(),cryptoAmount:r.z.string().optional(),country:r.z.string(),region:r.z.string().optional(),preview:r.z.boolean().optional()},{description:"quoteRequestBodySchema"}),t.quoteErrorResponseSchema=r.z.object({error:a.fiatConnectErrorSchema,minimumFiatAmount:r.z.string().optional(),maximumFiatAmount:r.z.string().optional(),minimumCryptoAmount:r.z.string().optional(),maximumCryptoAmount:r.z.string().optional()},{description:"quoteErrorResponseSchema"}),t.quoteResponseKycSchemaSchema=r.z.object({kycSchema:o.kycSchemaSchema,allowedValues:r.z.record(r.z.array(r.z.string()).nonempty())},{description:"quoteResponseKycSchemaSchema"}),t.quoteResponseFiatAccountSchemaSchema=r.z.object({fiatAccountSchema:i.fiatAccountSchemaSchema,allowedValues:r.z.record(r.z.array(r.z.string()).nonempty()),userActionType:a.transferInUserActionDetailsSchema.optional()},{description:"quoteResponseFiatAccountSchemaSchema"}),t.fiatAccountTypeQuoteDataSchema=r.z.object({fiatAccountSchemas:r.z.array(t.quoteResponseFiatAccountSchemaSchema),settlementTimeLowerBound:r.z.string().optional(),settlementTimeUpperBound:r.z.string().optional()},{description:"fiatAccountTypeQuoteDataSchema"});const u=r.z.object({fiatType:a.fiatTypeSchema,cryptoType:a.cryptoTypeSchema,fiatAmount:r.z.string(),cryptoAmount:r.z.string(),guaranteedUntil:r.z.string(),transferType:s.transferTypeSchema,fee:r.z.string().optional(),feeType:t.feeTypeSchema.optional(),feeFrequency:t.feeFrequencySchema.optional()}),d=r.z.object({kycRequired:r.z.boolean(),kycSchemas:r.z.array(t.quoteResponseKycSchemaSchema)}),p=r.z.record(i.fiatAccountTypeSchema,t.fiatAccountTypeQuoteDataSchema);t.quoteResponseSchema=r.z.object({quote:u.and(r.z.object({quoteId:r.z.string()})),kyc:d,fiatAccount:p},{description:"quoteResponseSchema"}),t.quotePreviewResponseSchema=r.z.object({quote:u,kyc:d,fiatAccount:p},{description:"quotePreviewResponseSchema"})},70849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transferStatusResponseSchema=t.transferOutStatusResponseSchema=t.transferInStatusResponseSchema=t.transferStatusRequestParamsSchema=t.transferResponseSchema=t.transferInResponseSchema=t.transferOutResponseSchema=t.transferRequestBodySchema=t.transferOutStatusSchema=t.transferInStatusPostTxSchema=t.transferInStatusPreTxSchema=t.transferStatusSchema=t.TransferStatus=t.transferTypeSchema=t.TransferType=void 0;const r=n(52089),a=n(10545),i=n(36954);var o,s;!function(e){e.TransferIn="TransferIn",e.TransferOut="TransferOut"}(o||(t.TransferType=o={})),t.transferTypeSchema=r.z.nativeEnum(o,{description:"transferTypeSchema"}),function(e){e.TransferStarted="TransferStarted",e.TransferWaitingForUserAction="TransferWaitingForUserAction",e.TransferFiatFundsDebited="TransferFiatFundsDebited",e.TransferReceivedFiatFunds="TransferReceivedFiatFunds",e.TransferSendingCryptoFunds="TransferSendingCryptoFunds",e.TransferAmlFailed="TransferAmlFailed",e.TransferReadyForUserToSendCryptoFunds="TransferReadyForUserToSendCryptoFunds",e.TransferReceivedCryptoFunds="TransferReceivedCryptoFunds",e.TransferComplete="TransferComplete",e.TransferFailed="TransferFailed"}(s||(t.TransferStatus=s={})),t.transferStatusSchema=r.z.nativeEnum(s,{description:"transferStatusSchema"}),t.transferInStatusPreTxSchema=r.z.enum([s.TransferStarted,s.TransferWaitingForUserAction,s.TransferFiatFundsDebited,s.TransferReceivedFiatFunds,s.TransferFailed],{description:"transferInStatusPreTxSchema"}),t.transferInStatusPostTxSchema=r.z.enum([s.TransferSendingCryptoFunds,s.TransferComplete],{description:"transferInStatusPostTxSchema"}),t.transferOutStatusSchema=r.z.enum([s.TransferStarted,s.TransferAmlFailed,s.TransferReadyForUserToSendCryptoFunds,s.TransferReceivedCryptoFunds,s.TransferComplete,s.TransferFailed],{description:"transferOutStatusSchema"});const c=r.z.union([a.pixUserActionSchema,a.ibanUserActionSchema,a.pseUserActionSchema,a.urlUserActionSchema]);t.transferRequestBodySchema=r.z.object({fiatAccountId:i.fiatAccountIdSchema,quoteId:r.z.string()},{description:"transferRequestBodySchema"}),t.transferOutResponseSchema=r.z.object({transferId:r.z.string(),transferStatus:t.transferStatusSchema,transferAddress:r.z.string()},{description:"transferOutResponseSchema"}),t.transferInResponseSchema=r.z.object({transferId:r.z.string(),transferStatus:t.transferStatusSchema,transferAddress:r.z.string(),userActionDetails:c.optional()},{description:"transferInResponseSchema"}),t.transferResponseSchema=t.transferInResponseSchema.or(t.transferOutResponseSchema),t.transferStatusRequestParamsSchema=r.z.object({transferId:r.z.string()},{description:"transferStatusRequestParamsSchema"});const l=r.z.object({status:t.transferInStatusPreTxSchema,transferType:r.z.literal(o.TransferIn),fiatType:a.fiatTypeSchema,cryptoType:a.cryptoTypeSchema,amountProvided:r.z.string(),amountReceived:r.z.string(),fee:r.z.string().optional(),fiatAccountId:i.fiatAccountIdSchema,transferId:r.z.string(),transferAddress:r.z.string(),userActionDetails:c.optional()},{description:"transferInStatusPreTxResponseSchema"}),u=r.z.object(l.extend({status:t.transferInStatusPostTxSchema,txHash:r.z.string()}).shape,{description:"transferInStatusPostTxResponseSchema"});t.transferInStatusResponseSchema=l.or(u),t.transferOutStatusResponseSchema=r.z.object(l.extend({transferType:r.z.literal(o.TransferOut),status:t.transferOutStatusSchema}).shape,{description:"transferOutStatusResponseSchema"}),t.transferStatusResponseSchema=t.transferInStatusResponseSchema.or(t.transferOutStatusResponseSchema)},18063:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webhookRequestBodySchema=t.webhookRequestBodyKycSchema=t.webhookRequestBodyTransferOutSchema=t.webhookRequestBodyTransferInSchema=t.webhookEventTypeSchema=t.WebhookEventType=void 0;const r=n(52089),a=n(94278),i=n(70849);var o;!function(e){e.KycStatusEvent="WebhookKycStatusEvent",e.TransferInStatusEvent="WebhookTransferInStatusEvent",e.TransferOutStatusEvent="WebhookTransferOutStatusEvent"}(o||(t.WebhookEventType=o={})),t.webhookEventTypeSchema=r.z.nativeEnum(o,{description:"webhookEventTypeSchema"});const s=r.z.object({provider:r.z.string(),eventId:r.z.string(),timestamp:r.z.string(),address:r.z.string()});t.webhookRequestBodyTransferInSchema=r.z.intersection(s,r.z.object({eventType:r.z.literal(o.TransferInStatusEvent),payload:i.transferInStatusResponseSchema}),{description:"webhookRequestBodyTransferInSchema"}),t.webhookRequestBodyTransferOutSchema=r.z.intersection(s,r.z.object({eventType:r.z.literal(o.TransferOutStatusEvent),payload:i.transferOutStatusResponseSchema}),{description:"webhookRequestBodyTransferOutSchema"}),t.webhookRequestBodyKycSchema=r.z.intersection(s,r.z.object({eventType:r.z.literal(o.KycStatusEvent),payload:r.z.object({kycSchema:a.kycSchemaSchema,kycStatus:a.kycStatusSchema})}),{description:"webhookRequestBodyKycSchema"}),t.webhookRequestBodySchema=r.z.union([t.webhookRequestBodyTransferInSchema,t.webhookRequestBodyTransferOutSchema,t.webhookRequestBodyKycSchema],{description:"webhookRequestBodySchema"})},54874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.authRequestBodySchema=void 0;const r=n(52089);t.authRequestBodySchema=r.z.object({message:r.z.string(),signature:r.z.string()},{description:"authRequestBodySchema"})},5690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clockResponseSchema=void 0;const r=n(52089);t.clockResponseSchema=r.z.object({time:r.z.string()},{description:"clockResponseSchema"})},8424:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userActionDetailsSchema=t.accountNumberUserActionSchema=t.urlUserActionSchema=t.pseUserActionSchema=t.ibanUserActionSchema=t.pixUserActionSchema=t.transferInUserActionDetailsSchema=t.TransferInUserActionDetails=t.EMAIL_REGEX=t.cryptoTypeSchema=t.CryptoType=t.fiatTypeSchema=t.FiatType=t.networkSchema=t.Network=t.fiatConnectErrorSchema=t.FiatConnectError=void 0;const r=n(52089);var a,i,o,s,c;!function(e){e.InvalidSignature="InvalidSignature",e.GeoNotSupported="GeoNotSupported",e.CryptoAmountTooLow="CryptoAmountTooLow",e.CryptoAmountTooHigh="CryptoAmountTooHigh",e.FiatAmountTooLow="FiatAmountTooLow",e.FiatAmountTooHigh="FiatAmountTooHigh",e.CryptoNotSupported="CryptoNotSupported",e.FiatNotSupported="FiatNotSupported",e.UnsupportedSchema="UnsupportedSchema",e.InvalidSchema="InvalidSchema",e.ResourceExists="ResourceExists",e.ResourceNotFound="ResourceNotFound",e.TransferNotAllowed="TransferNotAllowed",e.KycExpired="KycExpired",e.Unauthorized="Unauthorized",e.SessionExpired="SessionExpired",e.InvalidParameters="InvalidParameters",e.ContractLoginNotSupported="ContractLoginNotSupported",e.NonceInUse="NonceInUse",e.IssuedTooEarly="IssuedTooEarly",e.ExpirationTooLong="ExpirationTooLong",e.InvalidFiatAccount="InvalidFiatAccount",e.InvalidQuote="InvalidQuote"}(a||(t.FiatConnectError=a={})),t.fiatConnectErrorSchema=r.z.nativeEnum(a,{description:"fiatConnectErrorSchema"}),function(e){e.Alfajores="Alfajores",e.Mainnet="Mainnet"}(i||(t.Network=i={})),t.networkSchema=r.z.nativeEnum(i,{description:"networkSchema"}),function(e){e.USD="USD",e.EUR="EUR",e.BRL="BRL",e.GNF="GNF",e.INR="INR",e.NGN="NGN",e.GHS="GHS",e.KES="KES",e.ZAR="ZAR",e.PHP="PHP",e.UGX="UGX",e.GBP="GBP",e.XOF="XOF",e.RWF="RWF",e.CNY="CNY",e.XAF="XAF",e.ARS="ARS",e.BOB="BOB",e.CLP="CLP",e.COP="COP",e.FKP="FKP",e.GYD="GYD",e.PYG="PYG",e.PEN="PEN",e.SRD="SRD",e.UYU="UYU",e.VES="VES",e.MXN="MXN",e.PAB="PAB"}(o||(t.FiatType=o={})),t.fiatTypeSchema=r.z.nativeEnum(o,{description:"fiatTypeSchema"}),function(e){e.cUSD="cUSD",e.cEUR="cEUR",e.cREAL="cREAL",e.CELO="CELO"}(s||(t.CryptoType=s={})),t.cryptoTypeSchema=r.z.nativeEnum(s,{description:"cryptoTypeSchema"}),t.EMAIL_REGEX=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,function(e){e.PIXUserAction="PIXUserAction",e.IBANUserAction="IBANUserAction",e.PSEUserAction="PSEUserAction",e.URLUserAction="URLUserAction",e.AccountNumberUserAction="AccountNumberUserAction"}(c||(t.TransferInUserActionDetails=c={})),t.transferInUserActionDetailsSchema=r.z.nativeEnum(c,{description:"transferInUserActionDetailsSchema"}),t.pixUserActionSchema=r.z.object({userActionType:r.z.literal(c.PIXUserAction),pixString:r.z.string()},{description:"pixUserActionSchema"}),t.ibanUserActionSchema=r.z.object({userActionType:r.z.literal(c.IBANUserAction),iban:r.z.string(),bic:r.z.string()},{description:"ibanUserActionSchema"}),t.pseUserActionSchema=r.z.object({userActionType:r.z.literal(c.PSEUserAction),url:r.z.string()},{description:"pseUserActionSchema"}),t.urlUserActionSchema=r.z.object({userActionType:r.z.literal(c.URLUserAction),url:r.z.string()},{description:"urlUserActionSchema"}),t.accountNumberUserActionSchema=r.z.object({userActionType:r.z.literal(c.AccountNumberUserAction),institutionName:r.z.string(),accountName:r.z.string(),accountNumber:r.z.string(),transactionReference:r.z.string().optional(),deadline:r.z.string().optional()},{description:"accountNumberUserActionSchema"}),t.userActionDetailsSchema=r.z.union([t.pixUserActionSchema,t.ibanUserActionSchema,t.pseUserActionSchema,t.urlUserActionSchema,t.accountNumberUserActionSchema])},56427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.postFiatAccountResponseSchema=t.getFiatAccountsResponseSchema=t.deleteFiatAccountRequestParamsSchema=t.postFiatAccountRequestBodySchema=t.obfuscatedFiatAccountDataSchema=t.fiatAccountIdSchema=t.fiatAccountSchemasSchema=t.iFSCAccountSchema=t.iBANNumberSchema=t.mobileMoneySchema=t.duniaWalletSchema=t.accountNumberSchema=t.pixAccountSchema=t.PIX_PHONE_KEY_REGEX=t.PIX_CPF_KEY_REGEX=t.pixKeyTypeEnumSchema=t.PIXKeyTypeEnum=t.fiatAccountTypeSchema=t.FiatAccountType=t.fiatAccountSchemaSchema=t.FiatAccountSchema=void 0;const r=n(52089),a=n(8424);var i,o,s;!function(e){e.AccountNumber="AccountNumber",e.MobileMoney="MobileMoney",e.DuniaWallet="DuniaWallet",e.IBANNumber="IBANNumber",e.IFSCAccount="IFSCAccount",e.PIXAccount="PIXAccount"}(i||(t.FiatAccountSchema=i={})),t.fiatAccountSchemaSchema=r.z.nativeEnum(i,{description:"fiatAccountSchemaSchema"}),function(e){e.BankAccount="BankAccount",e.MobileMoney="MobileMoney",e.DuniaWallet="DuniaWallet"}(o||(t.FiatAccountType=o={})),t.fiatAccountTypeSchema=r.z.nativeEnum(o,{description:"fiatAccountTypeSchema"}),function(e){e.EMAIL="EMAIL",e.PHONE="PHONE",e.CPF="CPF",e.RANDOM="RANDOM"}(s||(t.PIXKeyTypeEnum=s={})),t.pixKeyTypeEnumSchema=r.z.nativeEnum(s,{description:"pixKeyTypeEnumSchema"});const c=r.z.object({accountName:r.z.string(),institutionName:r.z.string(),fiatAccountType:t.fiatAccountTypeSchema});t.PIX_CPF_KEY_REGEX=/^([0-9]{3}\.){2}[0-9]{3}[-]([0-9]{2})$/,t.PIX_PHONE_KEY_REGEX=/^[0-9]{11}$/,t.pixAccountSchema=c.and(r.z.object({fiatAccountType:r.z.literal(o.BankAccount)},{description:"PIXAccountSchema"})).and(r.z.object({keyType:r.z.literal(s.EMAIL),key:r.z.string().regex(a.EMAIL_REGEX)}).or(r.z.object({keyType:r.z.literal(s.CPF),key:r.z.string().regex(t.PIX_CPF_KEY_REGEX)})).or(r.z.object({keyType:r.z.literal(s.PHONE),key:r.z.string().regex(t.PIX_PHONE_KEY_REGEX)})).or(r.z.object({keyType:r.z.literal(s.RANDOM),key:r.z.string().uuid()}))),t.accountNumberSchema=c.and(r.z.object({accountNumber:r.z.string(),country:r.z.string(),fiatAccountType:r.z.literal(o.BankAccount)},{description:"accountNumberSchema"})),t.duniaWalletSchema=c.and(r.z.object({mobile:r.z.string(),fiatAccountType:r.z.literal(o.DuniaWallet)},{description:"duniaWalletSchema"})),t.mobileMoneySchema=c.and(r.z.object({mobile:r.z.string(),country:r.z.string(),operator:r.z.string(),fiatAccountType:r.z.literal(o.MobileMoney)},{description:"mobileMoneySchema"})),t.iBANNumberSchema=c.and(r.z.object({iban:r.z.string(),country:r.z.string(),fiatAccountType:r.z.literal(o.BankAccount)},{description:"iBANNumberSchema"})),t.iFSCAccountSchema=c.and(r.z.object({ifsc:r.z.string(),accountNumber:r.z.string(),country:r.z.string(),fiatAccountType:r.z.literal(o.BankAccount)},{description:"iFSCAccountSchema"})),t.fiatAccountSchemasSchema=r.z.object({[i.AccountNumber]:t.accountNumberSchema,[i.MobileMoney]:t.mobileMoneySchema,[i.DuniaWallet]:t.duniaWalletSchema,[i.IBANNumber]:t.iBANNumberSchema,[i.IFSCAccount]:t.iFSCAccountSchema,[i.PIXAccount]:t.pixAccountSchema},{description:"fiatAccountSchemasSchema"}),t.fiatAccountIdSchema=r.z.string({description:"fiatAccountIdSchema"}),t.obfuscatedFiatAccountDataSchema=r.z.object({fiatAccountId:t.fiatAccountIdSchema,accountName:r.z.string(),institutionName:r.z.string(),fiatAccountType:t.fiatAccountTypeSchema,fiatAccountSchema:t.fiatAccountSchemaSchema},{description:"obfuscatedFiatAccountDataSchema"}),t.postFiatAccountRequestBodySchema=r.z.union([r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.AccountNumber),data:t.accountNumberSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.DuniaWallet),data:t.duniaWalletSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.MobileMoney),data:t.mobileMoneySchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.IBANNumber),data:t.iBANNumberSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.IFSCAccount),data:t.iFSCAccountSchema}),r.z.object({fiatAccountSchema:r.z.literal(t.fiatAccountSchemaSchema.enum.PIXAccount),data:t.pixAccountSchema})],{description:"postFiatAccountRequestBodySchema"}),t.deleteFiatAccountRequestParamsSchema=r.z.object({fiatAccountId:t.fiatAccountIdSchema},{description:"deleteFiatAccountRequestParamsSchema"}),t.getFiatAccountsResponseSchema=r.z.record(t.fiatAccountTypeSchema,r.z.array(t.obfuscatedFiatAccountDataSchema),{description:"getFiatAccountsResponseSchema"}),t.postFiatAccountResponseSchema=t.obfuscatedFiatAccountDataSchema},22659:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(5690),t),a(n(54874),t),a(n(8424),t),a(n(56427),t),a(n(96003),t),a(n(90576),t),a(n(64365),t),a(n(36756),t)},96003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.kycStatusResponseSchema=t.kycRequestParamsSchema=t.kycSchemasSchema=t.personalDataAndDocumentsDetailedKycSchema=t.personalDataAndDocumentsKycSchema=t.identificationDocumentTypeSchema=t.IdentificationDocumentType=t.kycSchemaSchema=t.KycSchema=t.kycStatusSchema=t.KycStatus=void 0;const r=n(52089),a=n(8424);var i,o,s;!function(e){e.KycNotCreated="KycNotCreated",e.KycPending="KycPending",e.KycApproved="KycApproved",e.KycDenied="KycDenied",e.KycExpired="KycExpired"}(i||(t.KycStatus=i={})),t.kycStatusSchema=r.z.nativeEnum(i,{description:"kycStatusSchema"}),function(e){e.PersonalDataAndDocuments="PersonalDataAndDocuments",e.PersonalDataAndDocumentsDetailed="PersonalDataAndDocumentsDetailed"}(o||(t.KycSchema=o={})),t.kycSchemaSchema=r.z.nativeEnum(o,{description:"kycSchemaSchema"}),function(e){e.IDC="IDC",e.PAS="PAS",e.DL="DL"}(s||(t.IdentificationDocumentType=s={}));const c=[s.IDC,s.DL],l=Object.keys(s).filter((e=>!c.includes(e))),u=r.z.enum(c),d=r.z.enum(l);t.identificationDocumentTypeSchema=u.or(d),t.personalDataAndDocumentsKycSchema=r.z.object({firstName:r.z.string(),middleName:r.z.string().optional(),lastName:r.z.string(),dateOfBirth:r.z.object({day:r.z.string(),month:r.z.string(),year:r.z.string()}),address:r.z.object({address1:r.z.string(),address2:r.z.string().optional(),isoCountryCode:r.z.string(),isoRegionCode:r.z.string(),city:r.z.string(),postalCode:r.z.string().optional()}),phoneNumber:r.z.string(),selfieDocument:r.z.string(),identificationDocument:r.z.string()},{description:"personalDataAndDocumentsKycSchema"}),t.personalDataAndDocumentsDetailedKycSchema=t.personalDataAndDocumentsKycSchema.omit({identificationDocument:!0}).and(r.z.object({email:r.z.string().regex(a.EMAIL_REGEX),identificationDocumentFront:r.z.string()})).and(r.z.object({identificationDocumentType:u,identificationDocumentBack:r.z.string()}).or(r.z.object({identificationDocumentType:d}))),t.kycSchemasSchema=r.z.object({[t.kycSchemaSchema.enum.PersonalDataAndDocuments]:t.personalDataAndDocumentsKycSchema,[t.kycSchemaSchema.enum.PersonalDataAndDocumentsDetailed]:t.personalDataAndDocumentsDetailedKycSchema},{description:"kycSchemasSchema"}),t.kycRequestParamsSchema=r.z.object({kycSchema:t.kycSchemaSchema},{description:"kycRequestParamsSchema"}),t.kycStatusResponseSchema=r.z.object({kycStatus:t.kycStatusSchema},{description:"kycStatusResponseSchema"})},90576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.quotePreviewResponseSchema=t.quoteResponseSchema=t.fiatAccountTypeQuoteDataSchema=t.quoteResponseFiatAccountSchemaSchema=t.quoteResponseKycSchemaSchema=t.quoteErrorResponseSchema=t.quoteRequestBodySchema=t.feeFrequencySchema=t.FeeFrequency=t.feeTypeSchema=t.FeeType=void 0;const r=n(52089),a=n(8424),i=n(56427),o=n(96003),s=n(64365);var c,l;!function(e){e.KycFee="KycFee",e.PlatformFee="PlatformFee"}(c||(t.FeeType=c={})),t.feeTypeSchema=r.z.nativeEnum(c,{description:"feeTypeSchema"}),function(e){e.OneTime="OneTime",e.Recurring="Recurring"}(l||(t.FeeFrequency=l={})),t.feeFrequencySchema=r.z.nativeEnum(l,{description:"feeFrequencySchema"}),t.quoteRequestBodySchema=r.z.object({fiatType:a.fiatTypeSchema,cryptoType:a.cryptoTypeSchema,address:r.z.string(),fiatAmount:r.z.string().optional(),cryptoAmount:r.z.string().optional(),country:r.z.string(),region:r.z.string().optional(),preview:r.z.boolean().optional()},{description:"quoteRequestBodySchema"}),t.quoteErrorResponseSchema=r.z.object({error:a.fiatConnectErrorSchema,minimumFiatAmount:r.z.string().optional(),maximumFiatAmount:r.z.string().optional(),minimumCryptoAmount:r.z.string().optional(),maximumCryptoAmount:r.z.string().optional()},{description:"quoteErrorResponseSchema"}),t.quoteResponseKycSchemaSchema=r.z.object({kycSchema:o.kycSchemaSchema,allowedValues:r.z.record(r.z.array(r.z.string()).nonempty())},{description:"quoteResponseKycSchemaSchema"}),t.quoteResponseFiatAccountSchemaSchema=r.z.object({fiatAccountSchema:i.fiatAccountSchemaSchema,allowedValues:r.z.record(r.z.array(r.z.string()).nonempty()),userActionType:a.transferInUserActionDetailsSchema.optional()},{description:"quoteResponseFiatAccountSchemaSchema"}),t.fiatAccountTypeQuoteDataSchema=r.z.object({fiatAccountSchemas:r.z.array(t.quoteResponseFiatAccountSchemaSchema),settlementTimeLowerBound:r.z.string().optional(),settlementTimeUpperBound:r.z.string().optional()},{description:"fiatAccountTypeQuoteDataSchema"});const u=r.z.object({fiatType:a.fiatTypeSchema,cryptoType:a.cryptoTypeSchema,fiatAmount:r.z.string(),cryptoAmount:r.z.string(),guaranteedUntil:r.z.string(),transferType:s.transferTypeSchema,fee:r.z.string().optional(),feeType:t.feeTypeSchema.optional(),feeFrequency:t.feeFrequencySchema.optional()}),d=r.z.object({kycRequired:r.z.boolean(),kycSchemas:r.z.array(t.quoteResponseKycSchemaSchema)}),p=r.z.record(i.fiatAccountTypeSchema,t.fiatAccountTypeQuoteDataSchema);t.quoteResponseSchema=r.z.object({quote:u.and(r.z.object({quoteId:r.z.string()})),kyc:d,fiatAccount:p},{description:"quoteResponseSchema"}),t.quotePreviewResponseSchema=r.z.object({quote:u,kyc:d,fiatAccount:p},{description:"quotePreviewResponseSchema"})},64365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transferStatusResponseSchema=t.transferOutStatusResponseSchema=t.transferInStatusResponseSchema=t.transferStatusRequestParamsSchema=t.transferResponseSchema=t.transferInResponseSchema=t.transferOutResponseSchema=t.transferRequestBodySchema=t.transferOutStatusSchema=t.transferInStatusPostTxSchema=t.transferInStatusPreTxSchema=t.transferStatusSchema=t.TransferStatus=t.transferTypeSchema=t.TransferType=void 0;const r=n(52089),a=n(8424),i=n(56427);var o,s;!function(e){e.TransferIn="TransferIn",e.TransferOut="TransferOut"}(o||(t.TransferType=o={})),t.transferTypeSchema=r.z.nativeEnum(o,{description:"transferTypeSchema"}),function(e){e.TransferStarted="TransferStarted",e.TransferWaitingForUserAction="TransferWaitingForUserAction",e.TransferFiatFundsDebited="TransferFiatFundsDebited",e.TransferReceivedFiatFunds="TransferReceivedFiatFunds",e.TransferSendingCryptoFunds="TransferSendingCryptoFunds",e.TransferAmlFailed="TransferAmlFailed",e.TransferReadyForUserToSendCryptoFunds="TransferReadyForUserToSendCryptoFunds",e.TransferReceivedCryptoFunds="TransferReceivedCryptoFunds",e.TransferComplete="TransferComplete",e.TransferFailed="TransferFailed"}(s||(t.TransferStatus=s={})),t.transferStatusSchema=r.z.nativeEnum(s,{description:"transferStatusSchema"}),t.transferInStatusPreTxSchema=r.z.enum([s.TransferStarted,s.TransferWaitingForUserAction,s.TransferFiatFundsDebited,s.TransferReceivedFiatFunds,s.TransferFailed],{description:"transferInStatusPreTxSchema"}),t.transferInStatusPostTxSchema=r.z.enum([s.TransferSendingCryptoFunds,s.TransferComplete],{description:"transferInStatusPostTxSchema"}),t.transferOutStatusSchema=r.z.enum([s.TransferStarted,s.TransferAmlFailed,s.TransferReadyForUserToSendCryptoFunds,s.TransferReceivedCryptoFunds,s.TransferComplete,s.TransferFailed],{description:"transferOutStatusSchema"}),t.transferRequestBodySchema=r.z.object({fiatAccountId:i.fiatAccountIdSchema,quoteId:r.z.string()},{description:"transferRequestBodySchema"}),t.transferOutResponseSchema=r.z.object({transferId:r.z.string(),transferStatus:t.transferStatusSchema,transferAddress:r.z.string()},{description:"transferOutResponseSchema"}),t.transferInResponseSchema=r.z.object({transferId:r.z.string(),transferStatus:t.transferStatusSchema,transferAddress:r.z.string(),userActionDetails:a.userActionDetailsSchema.optional()},{description:"transferInResponseSchema"}),t.transferResponseSchema=t.transferInResponseSchema.or(t.transferOutResponseSchema),t.transferStatusRequestParamsSchema=r.z.object({transferId:r.z.string()},{description:"transferStatusRequestParamsSchema"});const c=r.z.object({status:t.transferInStatusPreTxSchema,transferType:r.z.literal(o.TransferIn),fiatType:a.fiatTypeSchema,cryptoType:a.cryptoTypeSchema,amountProvided:r.z.string(),amountReceived:r.z.string(),fee:r.z.string().optional(),fiatAccountId:i.fiatAccountIdSchema,transferId:r.z.string(),transferAddress:r.z.string(),userActionDetails:a.userActionDetailsSchema.optional()},{description:"transferInStatusPreTxResponseSchema"}),l=r.z.object(c.extend({status:t.transferInStatusPostTxSchema,txHash:r.z.string()}).shape,{description:"transferInStatusPostTxResponseSchema"});t.transferInStatusResponseSchema=c.or(l),t.transferOutStatusResponseSchema=r.z.object(c.extend({transferType:r.z.literal(o.TransferOut),status:t.transferOutStatusSchema}).shape,{description:"transferOutStatusResponseSchema"}),t.transferStatusResponseSchema=t.transferInStatusResponseSchema.or(t.transferOutStatusResponseSchema)},36756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webhookRequestBodySchema=t.webhookRequestBodyKycSchema=t.webhookRequestBodyTransferOutSchema=t.webhookRequestBodyTransferInSchema=t.webhookEventTypeSchema=t.WebhookEventType=void 0;const r=n(52089),a=n(96003),i=n(64365);var o;!function(e){e.KycStatusEvent="WebhookKycStatusEvent",e.TransferInStatusEvent="WebhookTransferInStatusEvent",e.TransferOutStatusEvent="WebhookTransferOutStatusEvent"}(o||(t.WebhookEventType=o={})),t.webhookEventTypeSchema=r.z.nativeEnum(o,{description:"webhookEventTypeSchema"});const s=r.z.object({provider:r.z.string(),eventId:r.z.string(),timestamp:r.z.string(),address:r.z.string()});t.webhookRequestBodyTransferInSchema=r.z.intersection(s,r.z.object({eventType:r.z.literal(o.TransferInStatusEvent),payload:i.transferInStatusResponseSchema}),{description:"webhookRequestBodyTransferInSchema"}),t.webhookRequestBodyTransferOutSchema=r.z.intersection(s,r.z.object({eventType:r.z.literal(o.TransferOutStatusEvent),payload:i.transferOutStatusResponseSchema}),{description:"webhookRequestBodyTransferOutSchema"}),t.webhookRequestBodyKycSchema=r.z.intersection(s,r.z.object({eventType:r.z.literal(o.KycStatusEvent),payload:r.z.object({kycSchema:a.kycSchemaSchema,kycStatus:a.kycStatusSchema})}),{description:"webhookRequestBodyKycSchema"}),t.webhookRequestBodySchema=r.z.union([t.webhookRequestBodyTransferInSchema,t.webhookRequestBodyTransferOutSchema,t.webhookRequestBodyKycSchema],{description:"webhookRequestBodySchema"})},41192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const r=n(11644),a=n(96367),i=n(30356);function o(e){return{hash:e,hmac:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o(0,i.weierstrass)({...e,...o(t)});return Object.freeze({...n(t),create:n})}},37933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const r=n(74319),a=n(97005),i=BigInt(0),o=BigInt(1);t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,a=t;for(;n>i;)n&o&&(r=r.add(a)),a=a.double(),n>>=o;return r},precomputeWindow(e,t){const{windows:n,windowSize:a}=r(t),i=[];let o=e,s=o;for(let r=0;r>=f,r>c&&(r-=p,i+=o);const s=t,h=t+Math.abs(r)-1,m=e%2!==0,g=r<0;0===r?u=u.add(n(m,a[s])):l=l.add(n(g,a[h]))}return{p:l,f:u}},wNAFCached(e,t,n,r){const a=e._WINDOW_SIZE||1;let i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,r(i))),this.wNAF(a,i,n)}}},t.validateBasic=function(e){return(0,r.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},61559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const r=n(74319),a=n(97005);const i=a.bytesToNumberBE;function o(e,t){if(e<0||e>=1<<8*t)throw new Error("bad I2OSP call: value=".concat(e," length=").concat(t));const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function s(e,t){const n=new Uint8Array(e.length);for(let r=0;r255&&(t=r((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:u}=r,d=Math.ceil(n/i);if(d>255)throw new Error("Invalid xmd length");const p=(0,a.concatBytes)(t,o(t.length,1)),f=o(0,u),h=o(n,2),m=new Array(d),g=r((0,a.concatBytes)(f,e,h,o(0,1),p));m[0]=r((0,a.concatBytes)(g,o(1,1),p));for(let c=1;c<=d;c++){const e=[s(g,m[c-1]),o(c+1,1),p];m[c]=r((0,a.concatBytes)(...e))}return(0,a.concatBytes)(...m).slice(0,n)}function d(e,t,n,r,i){if(c(e),c(t),l(n),t.length>255){const e=Math.ceil(2*r/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(e).update(o(n,2)).update(t).update(o(t.length,1)).digest()}function p(e,t,n){(0,a.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:s,m:p,hash:f,expand:h,DST:m}=n;c(e),l(t);const g=function(e){if(e instanceof Uint8Array)return e;if("string"===typeof e)return(0,a.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(m),y=o.toString(2).length,b=Math.ceil((y+s)/8),v=t*p*b;let w;if("xmd"===h)w=u(e,g,v,f);else if("xof"===h)w=d(e,g,v,s,f);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');w=e}const E=new Array(t);for(let a=0;aArray.from(e).reverse()));return(t,r)=>{const[a,i,o,s]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(a,i),r=e.mul(r,e.div(o,s)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!==typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,a){const i=p(r,2,{...n,DST:n.DST,...a}),o=e.fromAffine(t(i[0])),s=e.fromAffine(t(i[1])),c=o.add(s).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,a){const i=p(r,1,{...n,DST:n.encodeDST,...a}),o=e.fromAffine(t(i[0])).clearCofactor();return o.assertValidity(),o}}}},74319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const r=n(97005),a=BigInt(0),i=BigInt(1),o=BigInt(2),s=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const n=e%t;return n>=a?n:t+n}function p(e,t,n){if(n<=a||t 0");if(n===i)return a;let r=i;for(;t>a;)t&i&&(r=r*e%n),e=e*e%n,t>>=i;return r}function f(e,t){if(e===a||t<=a)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));let n=d(e,t),r=t,o=a,s=i,c=i,l=a;for(;n!==a;){const e=r/n,t=r%n,a=o-c*e,i=s-l*e;r=n,n=t,o=c,s=l,c=a,l=i}if(r!==i)throw new Error("invert: does not exist");return d(o,t)}function h(e){const t=(e-i)/o;let n,r,s;for(n=e-i,r=0;n%o===a;n/=o,r++);for(s=o;sa;)r*=r,r%=n;return r},t.invert=f,t.tonelliShanks=h,t.FpSqrt=m;t.isNegativeLE=(e,t)=>(d(e,t)&i)===i;const g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function y(e,t,n){if(n 0");if(n===a)return e.ONE;if(n===i)return t;let r=e.ONE,o=t;for(;n>a;)n&i&&(r=e.mul(r,o)),o=e.sqr(o),n>>=i;return r}function b(e,t){const n=new Array(t.length),r=t.reduce(((t,r,a)=>e.is0(r)?t:(n[a]=t,e.mul(t,r))),e.ONE),a=e.inv(r);return t.reduceRight(((t,r,a)=>e.is0(r)?t:(n[a]=e.mul(t,n[a]),e.mul(t,r))),a),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function w(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function E(e){const t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=g.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,r.validateObject)(e,t)},t.FpPow=y,t.FpInvertBatch=b,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"===typeof n?f(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-i)/o;return n=>{const r=e.pow(n,t);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},t.nLength=v,t.Field=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=a)throw new Error("Expected Field ORDER > 0, got ".concat(e));const{nBitLength:s,nByteLength:c}=v(e,t);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const l=m(e),u=Object.freeze({ORDER:e,BITS:s,BYTES:c,MASK:(0,r.bitMask)(s),ZERO:a,ONE:i,create:t=>d(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got ".concat(typeof t));return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>y(u,e,t),div:(t,n)=>d(t*f(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>f(t,e),sqrt:o.sqrt||(e=>l(u,e)),invertBatch:e=>b(u,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,r.numberToBytesLE)(e,c):(0,r.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw new Error("Fp.fromBytes: expected ".concat(c,", got ").concat(e.length));return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)}});return Object.freeze(u)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=(e=(0,r.ensureBytes)("privateHash",e)).length,o=v(t).nByteLength+8;if(o<24||a1024)throw new Error("hashToPrivateScalar: expected ".concat(o,"-1024 bytes of input, got ").concat(a));return d(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=w,t.getMinHashLength=E,t.mapHashToField=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=e.length,o=w(t),s=E(t);if(a<16||a1024)throw new Error("expected ".concat(s,"-1024 bytes of input, got ").concat(a));const c=d(n?(0,r.bytesToNumberBE)(e):(0,r.bytesToNumberLE)(e),t-i)+i;return n?(0,r.numberToBytesLE)(c,o):(0,r.numberToBytesBE)(c,o)}},97005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const n=BigInt(0),r=BigInt(1),a=BigInt(2),i=e=>e instanceof Uint8Array,o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let n=0;ne+t.length),0));let a=0;return t.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");r.set(e,a),a+=e.length})),r}t.bytesToHex=s,t.numberToHexUnpadded=c,t.hexToNumber=l,t.hexToBytes=u,t.bytesToNumberBE=function(e){return l(s(e))},t.bytesToNumberLE=function(e){if(!i(e))throw new Error("Uint8Array expected");return l(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=d,t.numberToBytesLE=function(e,t){return d(e,t).reverse()},t.numberToVarBytesBE=function(e){return u(c(e))},t.ensureBytes=function(e,t,n){let r;if("string"===typeof t)try{r=u(t)}catch(o){throw new Error("".concat(e,' must be valid hex string, got "').concat(t,'". Cause: ').concat(o))}else{if(!i(t))throw new Error("".concat(e," must be hex string or Uint8Array"));r=Uint8Array.from(t)}const a=r.length;if("number"===typeof n&&a!==n)throw new Error("".concat(e," expected ").concat(n," bytes, got ").concat(a));return r},t.concatBytes=p,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;nn;e>>=r,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&r};t.bitSet=(e,t,a)=>e|(a?r:n)<(a<new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");let r=f(e),a=f(e),i=0;const o=()=>{r.fill(1),a.fill(0),i=0},s=function(){for(var e=arguments.length,t=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:f();a=s(h([0]),e),r=s(),0!==e.length&&(a=s(h([1]),e),r=s())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e{let n;for(o(),c(e);!(n=t(l()));)c();return o(),n}};const m={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(t,n,r)=>{const a=m[n];if("function"!==typeof a)throw new Error('Invalid validator "'.concat(n,'", expected function'));const i=e[t];if((!r||void 0!==i)&&!a(i,e))throw new Error("Invalid param ".concat(String(t),"=").concat(i," (").concat(typeof i,"), expected ").concat(n))};for(const[a,i]of Object.entries(t))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return e}},30356:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const r=n(74319),a=n(97005),i=n(97005),o=n(37933);const{bytesToNumberBE:s,hexToBytes:c}=a;t.DER={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const r=e[1],a=e.subarray(2,r+2);if(!r||a.length!==r)throw new n("Invalid signature integer: wrong length");if(128&a[0])throw new n("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:s(a),l:e.subarray(r+2)}},toSig(e){const{Err:n}=t.DER,r="string"===typeof e?c(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let a=r.length;if(a<2||48!=r[0])throw new n("Invalid signature tag");if(r[1]!==a-2)throw new n("Invalid signature: incorrect length");const{d:i,l:o}=t.DER._parseInt(r.subarray(2)),{d:s,l:l}=t.DER._parseInt(o);if(l.length)throw new n("Invalid signature: left bytes after parsing");return{r:i,s:s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?"0".concat(t):t},r=t(n(e.s)),a=t(n(e.r)),i=r.length/2,o=a.length/2,s=n(i),c=n(o);return"30".concat(n(o+i+4),"02").concat(c).concat(a,"02").concat(s).concat(r)}};const l=BigInt(0),u=BigInt(1),d=BigInt(2),p=BigInt(3),f=BigInt(4);function h(e){const t=function(e){const t=(0,o.validateBasic)(e);a.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof n||"bigint"!==typeof n.beta||"function"!==typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,s=t.toBytes||((e,t,r)=>{const i=t.toAffine();return a.concatBytes(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),c=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function d(e){const{a:r,b:a}=t,i=n.sqr(e),o=n.mul(i,e);return n.add(n.add(o,n.mul(e,r)),a)}if(!n.eql(n.sqr(t.Gy),d(t.Gx)))throw new Error("bad generator point: equation left != right");function f(e){return"bigint"===typeof e&&ln.eql(e,n.ZERO);return a(t)&&a(r)?b.ZERO:new b(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}static fromHex(e){const t=b.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return b.BASE.multiply(m(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const a=n.sqr(r),i=d(e);if(!n.eql(a,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){y(e);const{px:t,py:r,pz:a}=this,{px:i,py:o,pz:s}=e,c=n.eql(n.mul(t,s),n.mul(i,a)),l=n.eql(n.mul(r,s),n.mul(o,a));return c&&l}negate(){return new b(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,a=n.mul(r,p),{px:i,py:o,pz:s}=this;let c=n.ZERO,l=n.ZERO,u=n.ZERO,d=n.mul(i,i),f=n.mul(o,o),h=n.mul(s,s),m=n.mul(i,o);return m=n.add(m,m),u=n.mul(i,s),u=n.add(u,u),c=n.mul(e,u),l=n.mul(a,h),l=n.add(c,l),c=n.sub(f,l),l=n.add(f,l),l=n.mul(c,l),c=n.mul(m,c),u=n.mul(a,u),h=n.mul(e,h),m=n.sub(d,h),m=n.mul(e,m),m=n.add(m,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,h),d=n.mul(d,m),l=n.add(l,d),h=n.mul(o,s),h=n.add(h,h),d=n.mul(h,m),c=n.sub(c,d),u=n.mul(h,f),u=n.add(u,u),u=n.add(u,u),new b(c,l,u)}add(e){y(e);const{px:r,py:a,pz:i}=this,{px:o,py:s,pz:c}=e;let l=n.ZERO,u=n.ZERO,d=n.ZERO;const f=t.a,h=n.mul(t.b,p);let m=n.mul(r,o),g=n.mul(a,s),v=n.mul(i,c),w=n.add(r,a),E=n.add(o,s);w=n.mul(w,E),E=n.add(m,g),w=n.sub(w,E),E=n.add(r,i);let x=n.add(o,c);return E=n.mul(E,x),x=n.add(m,v),E=n.sub(E,x),x=n.add(a,i),l=n.add(s,c),x=n.mul(x,l),l=n.add(g,v),x=n.sub(x,l),d=n.mul(f,E),l=n.mul(h,v),d=n.add(l,d),l=n.sub(g,d),d=n.add(g,d),u=n.mul(l,d),g=n.add(m,m),g=n.add(g,m),v=n.mul(f,v),E=n.mul(h,E),g=n.add(g,v),v=n.sub(m,v),v=n.mul(f,v),E=n.add(E,v),m=n.mul(g,E),u=n.add(u,m),m=n.mul(x,E),l=n.mul(w,l),l=n.sub(l,m),m=n.mul(w,g),d=n.mul(x,d),d=n.add(d,m),new b(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(b.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(b.fromAffine)}))}multiplyUnsafe(e){const r=b.ZERO;if(e===l)return r;if(h(e),e===u)return this;const{endo:a}=t;if(!a)return w.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:s,k2:c}=a.splitScalar(e),d=r,p=r,f=this;for(;o>l||c>l;)o&u&&(d=d.add(f)),c&u&&(p=p.add(f)),f=f.double(),o>>=u,c>>=u;return i&&(d=d.negate()),s&&(p=p.negate()),p=new b(n.mul(p.px,a.beta),p.py,p.pz),d.add(p)}multiply(e){h(e);let r,a,i=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:s,k2:c}=o.splitScalar(i);let{p:l,f:u}=this.wNAF(t),{p:d,f:p}=this.wNAF(c);l=w.constTimeNegate(e,l),d=w.constTimeNegate(s,d),d=new b(n.mul(d.px,o.beta),d.py,d.pz),r=l.add(d),a=u.add(p)}else{const{p:e,f:t}=this.wNAF(i);r=e,a=t}return b.normalizeZ([r,a])[0]}multiplyAndAddUnsafe(e,t,n){const r=b.BASE,a=(e,t)=>t!==l&&t!==u&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,n));return i.is0()?void 0:i}toAffine(e){const{px:t,py:r,pz:a}=this,i=this.is0();null==e&&(e=i?n.ONE:n.inv(a));const o=n.mul(t,e),s=n.mul(r,e),c=n.mul(a,e);if(i)return{x:n.ZERO,y:n.ZERO};if(!n.eql(c,n.ONE))throw new Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===u)return!0;if(n)return n(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===u?this:n?n(b,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),s(b,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a.bytesToHex(this.toRawBytes(e))}}b.BASE=new b(t.Gx,t.Gy,n.ONE),b.ZERO=new b(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,w=(0,o.wNAF)(b,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:f}}function m(e,t){const n=e.ORDER;let r=l;for(let p=n-u;p%d===l;p/=d)r+=u;const a=r,i=d<{let r=g,i=e.pow(n,h),o=e.sqr(i);o=e.mul(o,n);let s=e.mul(t,o);s=e.pow(s,c),s=e.mul(s,i),i=e.mul(s,n),o=e.mul(s,t);let l=e.mul(o,i);s=e.pow(l,m);let p=e.eql(s,e.ONE);i=e.mul(o,y),s=e.mul(l,r),o=e.cmov(i,o,p),l=e.cmov(s,l,p);for(let c=a;c>u;c--){let t=c-d;t=d<{let i=e.sqr(a);const o=e.mul(t,a);i=e.mul(i,o);let s=e.pow(i,n);s=e.mul(s,o);const c=e.mul(s,r),l=e.mul(e.sqr(s),a),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,s,u)}}}return b}t.weierstrassPoints=h,t.weierstrass=function(e){const n=function(e){const t=(0,o.validateBasic)(e);return a.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:c}=n,d=s.BYTES+1,p=2*s.BYTES+1;function f(e){return r.mod(e,c)}function m(e){return r.invert(e,c)}const{ProjectivePoint:g,normPrivateKeyToScalar:y,weierstrassEquation:b,isWithinCurveOrder:v}=h({...n,toBytes(e,t,n){const r=t.toAffine(),i=s.toBytes(r.x),o=a.concatBytes;return n?o(Uint8Array.from([t.hasEvenY()?2:3]),i):o(Uint8Array.from([4]),i,s.toBytes(r.y))},fromBytes(e){const t=e.length,n=e[0],r=e.subarray(1);if(t!==d||2!==n&&3!==n){if(t===p&&4===n){return{x:s.fromBytes(r.subarray(0,s.BYTES)),y:s.fromBytes(r.subarray(s.BYTES,2*s.BYTES))}}throw new Error("Point of length ".concat(t," was invalid. Expected ").concat(d," compressed bytes or ").concat(p," uncompressed bytes"))}{const e=a.bytesToNumberBE(r);if(!(l<(i=e)&&ia.bytesToHex(a.numberToBytesBE(e,n.nByteLength));function E(e){return e>c>>u}const x=(e,t,n)=>a.bytesToNumberBE(e.slice(t,n));class k{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,i.ensureBytes)("compactSignature",e,2*t),new k(x(e,0,t),x(e,t,2*t))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new k(n,r)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new k(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:r,recovery:a}=this,o=T((0,i.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw new Error("recovery id invalid");const c=2===a||3===a?t+n.n:t;if(c>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=0===(1&a)?"02":"03",u=g.fromHex(l+w(c)),d=m(c),p=f(-o*d),h=f(r*d),y=g.BASE.multiplyAndAddUnsafe(u,p,h);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new k(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return a.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const P={isValidPrivateKey(e){try{return y(e),!0}catch(t){return!1}},normPrivateKeyToScalar:y,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function S(e){const t=e instanceof Uint8Array,n="string"===typeof e,r=(t||n)&&e.length;return t?r===d||r===p:n?r===2*d||r===2*p:e instanceof g}const C=n.bits2int||function(e){const t=a.bytesToNumberBE(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},T=n.bits2int_modN||function(e){return f(C(e))},_=a.bitMask(n.nBitLength);function A(e){if("bigint"!==typeof e)throw new Error("bigint expected");if(!(l<=e&&e<_))throw new Error("bigint expected < 2^".concat(n.nBitLength));return a.numberToBytesBE(e,n.nByteLength)}function O(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;if(["recovered","canonical"].some((e=>e in r)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:c}=n;let{lowS:d,prehash:p,extraEntropy:h}=r;null==d&&(d=!0),e=(0,i.ensureBytes)("msgHash",e),p&&(e=(0,i.ensureBytes)("prehashed msgHash",o(e)));const b=T(e),w=y(t),x=[A(w),A(b)];if(null!=h){const e=!0===h?c(s.BYTES):h;x.push((0,i.ensureBytes)("extraEntropy",e))}const P=a.concatBytes(...x),S=b;return{seed:P,k2sig:function(e){const t=C(e);if(!v(t))return;const n=m(t),r=g.BASE.multiply(t).toAffine(),a=f(r.x);if(a===l)return;const i=f(n*f(S+a*w));if(i===l)return;let o=(r.x===a?0:2)|Number(r.y&u),s=i;return d&&E(i)&&(s=function(e){return E(e)?f(-e):e}(i),o^=1),new k(a,s,o)}}}const I={lowS:n.lowS,prehash:!1},j={lowS:n.lowS,prehash:!1};return g.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return g.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(S(e))throw new Error("first arg must be private key");if(!S(t))throw new Error("second arg must be public key");return g.fromHex(t).multiply(y(e)).toRawBytes(n)},sign:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;const{seed:i,k2sig:o}=O(e,t,r),s=n;return a.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(i,o)},verify:function(e,r,a){var o;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j;const c=e;if(r=(0,i.ensureBytes)("msgHash",r),a=(0,i.ensureBytes)("publicKey",a),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:l,prehash:u}=s;let d,p;try{if("string"===typeof c||c instanceof Uint8Array)try{d=k.fromDER(c)}catch(P){if(!(P instanceof t.DER.Err))throw P;d=k.fromCompact(c)}else{if("object"!==typeof c||"bigint"!==typeof c.r||"bigint"!==typeof c.s)throw new Error("PARSE");{const{r:e,s:t}=c;d=new k(e,t)}}p=g.fromHex(a)}catch(S){if("PARSE"===S.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(l&&d.hasHighS())return!1;u&&(r=n.hash(r));const{r:h,s:y}=d,b=T(r),v=m(y),w=f(b*v),E=f(h*v),x=null===(o=g.BASE.multiplyAndAddUnsafe(p,w,E))||void 0===o?void 0:o.toAffine();return!!x&&f(x.x)===h},ProjectivePoint:g,Signature:k,utils:P}},t.SWUFpSqrtRatio=m,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=m(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let a,i,o,s,c,l,u,d;a=e.sqr(r),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),o=e.add(i,e.ONE),o=e.mul(o,t.B),s=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),s=e.mul(s,t.A),i=e.sqr(o),l=e.sqr(s),c=e.mul(l,t.A),i=e.add(i,c),i=e.mul(i,o),l=e.mul(l,s),c=e.mul(l,t.B),i=e.add(i,c),u=e.mul(a,o);const{isValid:p,value:f}=n(i,l);d=e.mul(a,r),d=e.mul(d,f),u=e.cmov(u,o,p),d=e.cmov(d,f,p);const h=e.isOdd(r)===e.isOdd(d);return d=e.cmov(e.neg(d),d,h),u=e.div(u,s),{x:u,y:d}}}},48156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const r=n(69321),a=n(96367),i=n(74319),o=n(30356),s=n(97005),c=n(61559),l=n(41192),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),p=BigInt(1),f=BigInt(2),h=(e,t)=>(e+t/f)/t;function m(e){const t=u,n=BigInt(3),r=BigInt(6),a=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,p=d*d*e%t,h=(0,i.pow2)(p,n,t)*p%t,m=(0,i.pow2)(h,n,t)*p%t,y=(0,i.pow2)(m,f,t)*d%t,b=(0,i.pow2)(y,a,t)*y%t,v=(0,i.pow2)(b,o,t)*b%t,w=(0,i.pow2)(v,c,t)*v%t,E=(0,i.pow2)(w,l,t)*w%t,x=(0,i.pow2)(E,c,t)*v%t,k=(0,i.pow2)(x,n,t)*p%t,P=(0,i.pow2)(k,s,t)*b%t,S=(0,i.pow2)(P,r,t)*d%t,C=(0,i.pow2)(S,f,t);if(!g.eql(g.sqr(C),e))throw new Error("Cannot find square root");return C}const g=(0,i.Field)(u,void 0,void 0,{sqrt:m});t.secp256k1=(0,l.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-p*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),c=h(o*e,t),l=h(-r*e,t);let u=(0,i.mod)(e-c*n-l*a,t),f=(0,i.mod)(-c*r-l*o,t);const m=u>s,g=f>s;if(m&&(u=t-u),g&&(f=t-f),u>s||f>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:m,k1:u,k2neg:g,k2:f}}}},r.sha256);const y=BigInt(0),b=e=>"bigint"===typeof e&&y"bigint"===typeof e&&ye.charCodeAt(0))));t=(0,s.concatBytes)(n,n),w[e]=t}for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;ie.toRawBytes(!0).slice(1),k=e=>(0,s.numberToBytesBE)(e,32),P=e=>(0,i.mod)(e,u),S=e=>(0,i.mod)(e,d),C=t.secp256k1.ProjectivePoint,T=(e,t,n)=>C.BASE.multiplyAndAddUnsafe(e,t,n);function _(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=C.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:S(-n),bytes:x(r)}}function A(e){if(!b(e))throw new Error("bad x: need 0 < x < p");const t=P(e*e);let n=m(P(t*e+BigInt(7)));n%f!==y&&(n=P(-n));const r=new C(e,n,p);return r.assertValidity(),r}function O(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:(0,a.randomBytes)(32);const r=(0,s.ensureBytes)("message",e),{bytes:i,scalar:o}=_(t),c=(0,s.ensureBytes)("auxRand",n,32),l=k(o^(0,s.bytesToNumberBE)(E("BIP0340/aux",c))),u=E("BIP0340/nonce",l,i,r),d=S((0,s.bytesToNumberBE)(u));if(d===y)throw new Error("sign failed: k is zero");const{bytes:p,scalar:f}=_(d),h=O(p,i,r),m=new Uint8Array(64);if(m.set(p,0),m.set(k(S(f+h*o)),32),!N(m,r,i))throw new Error("sign: Invalid signature produced");return m}function N(e,t,n){const r=(0,s.ensureBytes)("signature",e,64),a=(0,s.ensureBytes)("message",t),i=(0,s.ensureBytes)("publicKey",n,32);try{const e=A((0,s.bytesToNumberBE)(i)),t=(0,s.bytesToNumberBE)(r.subarray(0,32));if(!b(t))return!1;const n=(0,s.bytesToNumberBE)(r.subarray(32,64));if(!v(n))return!1;const o=O(k(t),x(e),a),c=T(e,n,S(-o));return!(!c||!c.hasEvenY()||c.toAffine().x!==t)}catch(o){return!1}}t.schnorr={getPublicKey:I,sign:j,verify:N,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:A,pointToBytes:x,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:E,mod:i.mod}};const R=(()=>(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),B=(()=>(0,o.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))(),M=(()=>(0,c.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=B(g.create(e[0]));return R(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))();t.hashToCurve=M.hashToCurve,t.encodeToCurve=M.encodeToCurve},35799:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function r(e){if("boolean"!==typeof e)throw new Error("Expected boolean, not ".concat(e))}function a(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new Error("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function i(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);const n=t.outputLen;if(e.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const r=n(35799),a=n(96367);class i extends a.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:i}=this,o=(e=(0,a.toBytes)(e)).length;for(let r=0;ri-s&&(this.process(n,0),s=0);for(let r=s;r>a&i),s=Number(n&i),c=r?4:0,l=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+l,s,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);const c=(0,a.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),r=BigInt(32);function a(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);t.toBig=o;const s=(e,t,n)=>e>>>n;t.shrSH=s;const c=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=c;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const p=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=p;const f=(e,t)=>t;t.rotr32H=f;const h=(e,t)=>e;t.rotr32L=h;const m=(e,t,n)=>e<>>32-n;t.rotlSH=m;const g=(e,t,n)=>t<>>32-n;t.rotlSL=g;const y=(e,t,n)=>t<>>64-n;t.rotlBH=y;const b=(e,t,n)=>e<>>64-n;function v(e,t,n,r){const a=(t>>>0)+(r>>>0);return{h:e+n+(a/2**32|0)|0,l:0|a}}t.rotlBL=b,t.add=v;const w=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=w;const E=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=E;const x=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=x;const k=(e,t,n,r,a)=>t+n+r+a+(e/2**32|0)|0;t.add4H=k;const P=(e,t,n,r,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0);t.add5L=P;const S=(e,t,n,r,a,i)=>t+n+r+a+i+(e/2**32|0)|0;t.add5H=S;const C={fromBig:a,split:i,toBig:o,shrSH:s,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:p,rotr32H:f,rotr32L:h,rotlSH:m,rotlSL:g,rotlBH:y,rotlBL:b,add:v,add3L:w,add3H:E,add4L:x,add4H:k,add5H:S,add5L:P};t.default=C},85588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},11644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(35799),a=n(96367);class i extends a.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,a.toBytes)(t);if(this.iHash=e.create(),"function"!==typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?e.create().update(n).digest():n);for(let r=0;rnew i(e,t).update(n).digest(),t.hmac.create=(e,t)=>new i(e,t)},92989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const r=n(35799),a=n(11644),i=n(96367);function o(e,t,n,o){(0,r.hash)(e);const s=(0,i.checkOpts)({dkLen:32,asyncTick:10},o),{c:c,dkLen:l,asyncTick:u}=s;if((0,r.number)(c),(0,r.number)(l),(0,r.number)(u),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const d=(0,i.toBytes)(t),p=(0,i.toBytes)(n),f=new Uint8Array(l),h=a.hmac.create(e,d),m=h._cloneInto().update(p);return{c:c,dkLen:l,asyncTick:u,DK:f,PRF:h,PRFSalt:m}}function s(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}t.pbkdf2=function(e,t,n,r){const{c:a,dkLen:c,DK:l,PRF:u,PRFSalt:d}=o(e,t,n,r);let p;const f=new Uint8Array(4),h=(0,i.createView)(f),m=new Uint8Array(u.outputLen);for(let i=1,o=0;o{d._cloneInto(f).update(g).digestInto(g);for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(65156),a=n(96367),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},((e,t)=>t));let s=[o],c=[o.map((e=>(9*e+5)%16))];for(let b=0;b<4;b++)for(let e of[s,c])e.push(e[b].map((e=>i[e])));const l=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),u=s.map(((e,t)=>e.map((e=>l[t][e])))),d=c.map(((e,t)=>e.map((e=>l[t][e])))),p=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),f=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),h=(e,t)=>e<>>32-t;function m(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const g=new Uint32Array(16);class y extends r.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:a}=this;return[e,t,n,r,a]}set(e,t,n,r,a){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)g[s]=e.getUint32(t,!0);let n=0|this.h0,r=n,a=0|this.h1,i=a,o=0|this.h2,l=o,y=0|this.h3,b=y,v=0|this.h4,w=v;for(let E=0;E<5;E++){const e=4-E,t=p[E],x=f[E],k=s[E],P=c[E],S=u[E],C=d[E];for(let r=0;r<16;r++){const e=h(n+m(E,a,o,y)+g[k[r]]+t,S[r])+v|0;n=v,v=y,y=0|h(o,10),o=a,a=e}for(let n=0;n<16;n++){const t=h(r+m(e,i,l,b)+g[P[n]]+x,C[n])+w|0;r=w,w=b,b=0|h(l,10),l=i,i=t}}this.set(this.h1+o+b|0,this.h2+y+w|0,this.h3+v+r|0,this.h4+n+i|0,this.h0+a+l|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=y,t.ripemd160=(0,a.wrapConstructor)((()=>new y))},26402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const r=n(35799),a=n(69321),i=n(92989),o=n(96367),s=(e,t)=>e<>>32-t;function c(e,t,n,r,a,i){let o=e[t++]^n[r++],c=e[t++]^n[r++],l=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],p=e[t++]^n[r++],f=e[t++]^n[r++],h=e[t++]^n[r++],m=e[t++]^n[r++],g=e[t++]^n[r++],y=e[t++]^n[r++],b=e[t++]^n[r++],v=e[t++]^n[r++],w=e[t++]^n[r++],E=e[t++]^n[r++],x=e[t++]^n[r++],k=o,P=c,S=l,C=u,T=d,_=p,A=f,O=h,I=m,j=g,N=y,R=b,B=v,M=w,F=E,L=x;for(let D=0;D<8;D+=2)T^=s(k+B|0,7),I^=s(T+k|0,9),B^=s(I+T|0,13),k^=s(B+I|0,18),j^=s(_+P|0,7),M^=s(j+_|0,9),P^=s(M+j|0,13),_^=s(P+M|0,18),F^=s(N+A|0,7),S^=s(F+N|0,9),A^=s(S+F|0,13),N^=s(A+S|0,18),C^=s(L+R|0,7),O^=s(C+L|0,9),R^=s(O+C|0,13),L^=s(R+O|0,18),P^=s(k+C|0,7),S^=s(P+k|0,9),C^=s(S+P|0,13),k^=s(C+S|0,18),A^=s(_+T|0,7),O^=s(A+_|0,9),T^=s(O+A|0,13),_^=s(T+O|0,18),R^=s(N+j|0,7),I^=s(R+N|0,9),j^=s(I+R|0,13),N^=s(j+I|0,18),B^=s(L+F|0,7),M^=s(B+L|0,9),F^=s(M+B|0,13),L^=s(F+M|0,18);a[i++]=o+k|0,a[i++]=c+P|0,a[i++]=l+S|0,a[i++]=u+C|0,a[i++]=d+T|0,a[i++]=p+_|0,a[i++]=f+A|0,a[i++]=h+O|0,a[i++]=m+I|0,a[i++]=g+j|0,a[i++]=y+N|0,a[i++]=b+R|0,a[i++]=v+B|0,a[i++]=w+M|0,a[i++]=E+F|0,a[i++]=x+L|0}function l(e,t,n,r,a){let i=r+0,o=r+16*a;for(let s=0;s<16;s++)n[o+s]=e[t+16*(2*a-1)+s];for(let s=0;s0&&(o+=16),c(n,i,e,t+=16,n,o)}function u(e,t,n){const s=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:c,r:l,p:u,dkLen:d,asyncTick:p,maxmem:f,onProgress:h}=s;if((0,r.number)(c),(0,r.number)(l),(0,r.number)(u),(0,r.number)(d),(0,r.number)(p),(0,r.number)(f),void 0!==h&&"function"!==typeof h)throw new Error("progressCb should be function");const m=128*l,g=m/4;if(c<=1||0!==(c&c-1)||c>=2**(m/8)||c>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(u<0||u>137438953440/m)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const y=m*(c+u);if(y>f)throw new Error("Scrypt: parameters too large, ".concat(y," (128 * r * (N + p)) > ").concat(f," (maxmem)"));const b=(0,i.pbkdf2)(a.sha256,e,t,{c:1,dkLen:m*u}),v=(0,o.u32)(b),w=(0,o.u32)(new Uint8Array(m*c)),E=(0,o.u32)(new Uint8Array(m));let x=()=>{};if(h){const e=2*c*u,t=Math.max(Math.floor(e/1e4),1);let n=0;x=()=>{n++,!h||n%t&&n!==e||h(n/e)}}return{N:c,r:l,p:u,dkLen:d,blockSize32:g,V:w,B32:v,B:b,tmp:E,blockMixCb:x,asyncTick:p}}function d(e,t,n,r,o){const s=(0,i.pbkdf2)(a.sha256,e,n,{c:1,dkLen:t});return n.fill(0),r.fill(0),o.fill(0),s}t.scrypt=function(e,t,n){const{N:r,r:a,p:i,dkLen:o,blockSize32:s,V:c,B32:p,B:f,tmp:h,blockMixCb:m}=u(e,t,n);for(let u=0;u{l(p,t,p,t+=c,a),g()})),l(p,(r-1)*c,f,e,a),g(),await(0,o.asyncLoop)(r,y,(()=>{const t=f[e+c-16]%r;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(65156),a=n(96367),i=(e,t,n)=>e&t^~e&n,o=(e,t,n)=>e&t^e&n^t&n,s=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64);class u extends r.SHA2{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){const{A:e,B:t,C:n,D:r,E:a,F:i,G:o,H:s}=this;return[e,t,n,r,a,i,o,s]}set(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}process(e,t){for(let a=0;a<16;a++,t+=4)l[a]=e.getUint32(t,!1);for(let i=16;i<64;i++){const e=l[i-15],t=l[i-2],n=(0,a.rotr)(e,7)^(0,a.rotr)(e,18)^e>>>3,r=(0,a.rotr)(t,17)^(0,a.rotr)(t,19)^t>>>10;l[i]=r+l[i-7]+n+l[i-16]|0}let{A:n,B:r,C:c,D:u,E:d,F:p,G:f,H:h}=this;for(let m=0;m<64;m++){const e=h+((0,a.rotr)(d,6)^(0,a.rotr)(d,11)^(0,a.rotr)(d,25))+i(d,p,f)+s[m]+l[m]|0,t=((0,a.rotr)(n,2)^(0,a.rotr)(n,13)^(0,a.rotr)(n,22))+o(n,r,c)|0;h=f,f=p,p=d,d=u+e|0,u=c,c=r,r=n,n=e+t|0}n=n+this.A|0,r=r+this.B|0,c=c+this.C|0,u=u+this.D|0,d=d+this.E|0,p=p+this.F|0,f=f+this.G|0,h=h+this.H|0,this.set(n,r,c,u,d,p,f,h)}roundClean(){l.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class d extends u{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,a.wrapConstructor)((()=>new u)),t.sha224=(0,a.wrapConstructor)((()=>new d))},64461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const r=n(35799),a=n(91130),i=n(96367),[o,s,c]=[[],[],[]],l=BigInt(0),u=BigInt(1),d=BigInt(2),p=BigInt(7),f=BigInt(256),h=BigInt(113);for(let k=0,P=u,S=1,C=0;k<24;k++){[S,C]=[C,(2*S+3*C)%5],o.push(2*(5*C+S)),s.push((k+1)*(k+2)/2%64);let e=l;for(let t=0;t<7;t++)P=(P<>p)*h)%f,P&d&&(e^=u<<(u<n>32?(0,a.rotlBH)(e,t,n):(0,a.rotlSH)(e,t,n),b=(e,t,n)=>n>32?(0,a.rotlBL)(e,t,n):(0,a.rotlSL)(e,t,n);function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,a=(r+2)%10,i=n[a],o=n[a+1],s=y(i,o,1)^n[t],c=b(i,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=c}let t=e[2],a=e[3];for(let n=0;n<24;n++){const r=s[n],i=y(t,a,r),c=b(t,a,r),l=o[n];t=e[l],a=e[l+1],e[l]=i,e[l+1]=c}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=m[r],e[1]^=g[r]}n.fill(0)}t.keccakP=v;class w extends i.Hash{constructor(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.exists)(this);const{blockLen:t,state:n}=this,a=(e=(0,i.toBytes)(e)).length;for(let r=0;r=n&&this.keccak();const i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:a,enableXOF:i}=this;return e||(e=new w(t,n,r,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=n,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=w;const E=(e,t,n)=>(0,i.wrapConstructor)((()=>new w(t,e,n)));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);const x=(e,t,n)=>(0,i.wrapXOFConstructorWithOpts)((function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new w(t,e,void 0===r.dkLen?n:r.dkLen,!0)}));t.shake128=x(31,168,16),t.shake256=x(31,136,32)},5579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const r=n(65156),a=n(91130),i=n(96367),[o,s]=(()=>a.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((e=>BigInt(e)))))(),c=new Uint32Array(80),l=new Uint32Array(80);class u extends r.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:a,Cl:i,Dh:o,Dl:s,Eh:c,El:l,Fh:u,Fl:d,Gh:p,Gl:f,Hh:h,Hl:m}=this;return[e,t,n,r,a,i,o,s,c,l,u,d,p,f,h,m]}set(e,t,n,r,a,i,o,s,c,l,u,d,p,f,h,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|p,this.Gl=0|f,this.Hh=0|h,this.Hl=0|m}process(e,t){for(let a=0;a<16;a++,t+=4)c[a]=e.getUint32(t),l[a]=e.getUint32(t+=4);for(let o=16;o<80;o++){const e=0|c[o-15],t=0|l[o-15],n=a.default.rotrSH(e,t,1)^a.default.rotrSH(e,t,8)^a.default.shrSH(e,t,7),r=a.default.rotrSL(e,t,1)^a.default.rotrSL(e,t,8)^a.default.shrSL(e,t,7),i=0|c[o-2],s=0|l[o-2],u=a.default.rotrSH(i,s,19)^a.default.rotrBH(i,s,61)^a.default.shrSH(i,s,6),d=a.default.rotrSL(i,s,19)^a.default.rotrBL(i,s,61)^a.default.shrSL(i,s,6),p=a.default.add4L(r,d,l[o-7],l[o-16]),f=a.default.add4H(p,n,u,c[o-7],c[o-16]);c[o]=0|f,l[o]=0|p}let{Ah:n,Al:r,Bh:i,Bl:u,Ch:d,Cl:p,Dh:f,Dl:h,Eh:m,El:g,Fh:y,Fl:b,Gh:v,Gl:w,Hh:E,Hl:x}=this;for(let k=0;k<80;k++){const e=a.default.rotrSH(m,g,14)^a.default.rotrSH(m,g,18)^a.default.rotrBH(m,g,41),t=a.default.rotrSL(m,g,14)^a.default.rotrSL(m,g,18)^a.default.rotrBL(m,g,41),P=m&y^~m&v,S=g&b^~g&w,C=a.default.add5L(x,t,S,s[k],l[k]),T=a.default.add5H(C,E,e,P,o[k],c[k]),_=0|C,A=a.default.rotrSH(n,r,28)^a.default.rotrBH(n,r,34)^a.default.rotrBH(n,r,39),O=a.default.rotrSL(n,r,28)^a.default.rotrBL(n,r,34)^a.default.rotrBL(n,r,39),I=n&i^n&d^i&d,j=r&u^r&p^u&p;E=0|v,x=0|w,v=0|y,w=0|b,y=0|m,b=0|g,({h:m,l:g}=a.default.add(0|f,0|h,0|T,0|_)),f=0|d,h=0|p,d=0|i,p=0|u,i=0|n,u=0|r;const N=a.default.add3L(_,O,j);n=a.default.add3H(N,T,A,I),r=0|N}({h:n,l:r}=a.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:u}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|u)),({h:d,l:p}=a.default.add(0|this.Ch,0|this.Cl,0|d,0|p)),({h:f,l:h}=a.default.add(0|this.Dh,0|this.Dl,0|f,0|h)),({h:m,l:g}=a.default.add(0|this.Eh,0|this.El,0|m,0|g)),({h:y,l:b}=a.default.add(0|this.Fh,0|this.Fl,0|y,0|b)),({h:v,l:w}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:E,l:x}=a.default.add(0|this.Hh,0|this.Hl,0|E,0|x)),this.set(n,r,i,u,d,p,f,h,m,g,y,b,v,w,E,x)}roundClean(){c.fill(0),l.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=u;class d extends u{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class p extends u{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class f extends u{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,i.wrapConstructor)((()=>new u)),t.sha512_224=(0,i.wrapConstructor)((()=>new d)),t.sha512_256=(0,i.wrapConstructor)((()=>new p)),t.sha384=(0,i.wrapConstructor)((()=>new f))},96367:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(85588),a=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n{},t.asyncLoop=async function(e,n,r){let a=Date.now();for(let i=0;i=0&&ee+t.length),0));let i=0;return t.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");r.set(e,i),i+=e.length})),r};t.Hash=class{clone(){return this._cloneInto()}};const c={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==c.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r.crypto&&"function"===typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},84871:(e,t,n)=>{const r=n(59451),a=n(75834),i=n(15109),o=n(88258);function s(e,t,n,i,o){const s=[].slice.call(arguments,1),c=s.length,l="function"===typeof s[c-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,o){try{const o=a.create(n,i);r(e(o,t,i))}catch(s){o(s)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=t,t=i=void 0):3===c&&(t.getContext&&"undefined"===typeof o?(o=i,i=void 0):(o=i,i=n,n=t,t=void 0));try{const r=a.create(n,i);o(null,e(r,t,i))}catch(u){o(u)}}t.create=a.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return o.render(e,n)}))},59451:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},80245:(e,t,n)=>{const r=n(70829).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let r=1;r{const r=n(61928),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*a.indexOf(this.data[t]);n+=a.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(a.indexOf(this.data[t]),6)},e.exports=i},17767:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},30917:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},67615:(e,t,n)=>{const r=n(40967),a=n(61928);function i(e){this.mode=a.BYTE,this.data=new Uint8Array(r(e))}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t{const r=n(4880),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},4880:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},48036:(e,t,n)=>{const r=n(70829).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},47665:(e,t,n)=>{const r=n(70829),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-a>=0;)i^=1335<{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},35646:(e,t,n)=>{const r=n(61928),a=n(70829);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},49564:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,a=40,i=10;function o(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,a=0,i=0,o=null,s=null;for(let c=0;c=5&&(r+=n+(a-5)),o=t,a=1),t=e.get(l,c),t===s?i++:(i>=5&&(r+=n+(i-5)),s=t,i=1)}a>=5&&(r+=n+(a-5)),i>=5&&(r+=n+(i-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(o,a),o>=10&&(1488===i||93===i)&&n++}return n*a},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r{const r=n(973),a=n(22815);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},32210:(e,t,n)=>{const r=n(61928);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},67138:(e,t,n)=>{const r=n(92361);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){const e=n[0];for(let i=0;i{const r=n(70829),a=n(4880),i=n(17767),o=n(30917),s=n(80245),c=n(48036),l=n(49564),u=n(13876),d=n(48600),p=n(12516),f=n(47665),h=n(61928),m=n(22304);function g(e,t,n){const r=e.size,a=f.getEncodedBits(t,n);let i,o;for(i=0;i<15;i++)o=1===(a>>i&1),i<6?e.set(i,8,o,!0):i<8?e.set(i+1,8,o,!0):e.set(r-15+i,8,o,!0),i<8?e.set(8,r-i-1,o,!0):i<9?e.set(8,15-i-1+1,o,!0):e.set(8,15-i-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t,n){const a=new i;n.forEach((function(t){a.put(t.mode.bit,4),a.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(a)}));const o=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!==0;)a.putBit(0);const s=(o-a.getLengthInBits())/8;for(let r=0;r=0&&r<=6&&(0===a||6===a)||a>=0&&a<=6&&(0===r||6===r)||r>=2&&r<=4&&a>=2&&a<=4?e.set(t+r,i+a,!0,!0):e.set(t+r,i+a,!1,!0))}}(h,t),function(e){const t=e.size;for(let n=8;n=7&&function(e,t){const n=e.size,r=p.getEncodedBits(t);let a,i,o;for(let s=0;s<18;s++)a=Math.floor(s/3),i=s%3+n-8-3,o=1===(r>>s&1),e.set(a,i,o,!0),e.set(i,a,o,!0)}(h,t),function(e,t){const n=e.size;let r=-1,a=n-1,i=7,o=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(a,s-n)){let r=!1;o>>i&1)),e.set(a,s-n,r),i--,-1===i&&(o++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}(h,d),isNaN(a)&&(a=l.getBestMask(h,g.bind(null,h,n))),l.applyMask(a,h),g(h,n,a),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:a,segments:i}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,i,o=a.M;return"undefined"!==typeof t&&(o=a.from(t.errorCorrectionLevel,a.M),n=p.from(t.version),i=l.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),b(e,n,o,i)}},48600:(e,t,n)=>{const r=n(67138);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){const e=new Uint8Array(this.degree);return e.set(n,a),e}return n},e.exports=a},22815:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(a,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),o=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},22304:(e,t,n)=>{const r=n(61928),a=n(32210),i=n(44057),o=n(67615),s=n(35646),c=n(22815),l=n(70829),u=n(72094);function d(e){return unescape(encodeURIComponent(e)).length}function p(e,t,n){const r=[];let a;for(;null!==(a=e.exec(n));)r.push({data:a[0],index:a.index,mode:t,length:a[0].length});return r}function f(e){const t=p(c.NUMERIC,r.NUMERIC,e),n=p(c.ALPHANUMERIC,r.ALPHANUMERIC,e);let a,i;l.isKanjiModeEnabled()?(a=p(c.BYTE,r.BYTE,e),i=p(c.KANJI,r.KANJI,e)):(a=p(c.BYTE_KANJI,r.BYTE,e),i=[]);return t.concat(n,a,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function m(e,t){let n;const c=r.getBestModeForData(e);if(n=r.from(t,c),n!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(f(e,l.isKanjiModeEnabled()))}},70829:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},973:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},12516:(e,t,n)=>{const r=n(70829),a=n(13876),i=n(4880),o=n(61928),s=n(973),c=r.getBCHDigit(7973);function l(e,t){return o.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach((function(e){const r=l(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=o.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t));if(n===o.MIXED)return i;const c=i-l(n,e);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let r;const a=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-c>=0;)t^=7973<{const r=n(80075);t.render=function(e,t,n){let a=n,i=t;"undefined"!==typeof a||t&&t.getContext||(a=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),a=r.getOptions(a);const o=r.getImageWidth(e.modules.size,a),s=i.getContext("2d"),c=s.createImageData(o,o);return r.qrToImageData(c.data,e,a),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,i,o),s.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){let a=r;"undefined"!==typeof a||n&&n.getContext||(a=n,n=void 0),a||(a={});const i=t.render(e,n,a),o=a.type||"image/png",s=a.rendererOpts||{};return i.toDataURL(o,s.quality)}},88258:(e,t,n)=>{const r=n(80075);function a(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const o=r.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*o.margin,u=o.color.light.a?"':"",d="0&&l>0&&e[c-1]||(r+=o?i("M",l+n,.5+u+n):i("m",a,0),a=0,o=!1),l+1',p='viewBox="0 0 '+l+" "+l+'"',f=''+u+d+"\n";return"function"===typeof n&&n(null,f),f}},80075:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const a=n.modules.size,i=n.modules.data,o=t.getScale(a,r),s=Math.floor((a+2*r.margin)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let t=0;t=c&&n>=c&&t{"use strict";t.N=void 0;var r=n(59566);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return r.SafeAppProvider}})},59566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppProvider=void 0;const r=n(27949),a=n(750);class i extends r.EventEmitter{constructor(e,t){super(),this.submittedTxs=new Map,this.safe=e,this.sdk=t}async connect(){this.emit("connect",{chainId:this.chainId})}async disconnect(){}get chainId(){return this.safe.chainId}async request(e){const{method:t,params:n=[]}=e;switch(t){case"eth_accounts":return[this.safe.safeAddress];case"net_version":case"eth_chainId":return"0x".concat(this.chainId.toString(16));case"personal_sign":{const[e,t]=n;if(this.safe.safeAddress.toLowerCase()!==t.toLowerCase())throw new Error("The address or message hash is invalid");const r=await this.sdk.txs.signMessage(e);return("signature"in r?r.signature:void 0)||"0x"}case"eth_sign":{const[e,t]=n;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase()||!t.startsWith("0x"))throw new Error("The address or message hash is invalid");const r=await this.sdk.txs.signMessage(t);return("signature"in r?r.signature:void 0)||"0x"}case"eth_signTypedData":case"eth_signTypedData_v4":{const[e,t]=n,r="string"===typeof t?JSON.parse(t):t;if(this.safe.safeAddress.toLowerCase()!==e.toLowerCase())throw new Error("The address is invalid");const a=await this.sdk.txs.signTypedMessage(r);return("signature"in a?a.signature:void 0)||"0x"}case"eth_sendTransaction":const t=Object.assign({value:"0",data:"0x"},n[0]);"string"===typeof t.gas&&t.gas.startsWith("0x")&&(t.gas=parseInt(t.gas,16));const i=await this.sdk.txs.send({txs:[t],params:{safeTxGas:t.gas}});return this.submittedTxs.set(i.safeTxHash,{from:this.safe.safeAddress,hash:i.safeTxHash,gas:0,gasPrice:"0x00",nonce:0,input:t.data,value:t.value,to:t.to,blockHash:null,blockNumber:null,transactionIndex:null}),i.safeTxHash;case"eth_blockNumber":return(await this.sdk.eth.getBlockByNumber(["latest"])).number;case"eth_getBalance":return this.sdk.eth.getBalance([(0,a.getLowerCase)(n[0]),n[1]]);case"eth_getCode":return this.sdk.eth.getCode([(0,a.getLowerCase)(n[0]),n[1]]);case"eth_getTransactionCount":return this.sdk.eth.getTransactionCount([(0,a.getLowerCase)(n[0]),n[1]]);case"eth_getStorageAt":return this.sdk.eth.getStorageAt([(0,a.getLowerCase)(n[0]),n[1],n[2]]);case"eth_getBlockByNumber":return this.sdk.eth.getBlockByNumber([n[0],n[1]]);case"eth_getBlockByHash":return this.sdk.eth.getBlockByHash([n[0],n[1]]);case"eth_getTransactionByHash":let o=n[0];try{o=(await this.sdk.txs.getBySafeTxHash(o)).txHash||o}catch(r){}return this.submittedTxs.has(o)?this.submittedTxs.get(o):this.sdk.eth.getTransactionByHash([o]).then((e=>(e&&(e.hash=n[0]),e)));case"eth_getTransactionReceipt":{let e=n[0];try{e=(await this.sdk.txs.getBySafeTxHash(e)).txHash||e}catch(r){}return this.sdk.eth.getTransactionReceipt([e]).then((e=>(e&&(e.transactionHash=n[0]),e)))}case"eth_estimateGas":return this.sdk.eth.getEstimateGas(n[0]);case"eth_call":return this.sdk.eth.call([n[0],n[1]]);case"eth_getLogs":return this.sdk.eth.getPastLogs([n[0]]);case"eth_gasPrice":return this.sdk.eth.getGasPrice();case"wallet_getPermissions":return this.sdk.wallet.getPermissions();case"wallet_requestPermissions":return this.sdk.wallet.requestPermissions(n[0]);case"safe_setSettings":return this.sdk.eth.setSafeSettings([n[0]]);default:throw Error('"'.concat(e.method,'" not implemented'))}}send(e,t){e||t("Undefined request"),this.request(e).then((n=>t(null,{jsonrpc:"2.0",id:e.id,result:n}))).catch((e=>t(e,null)))}}t.SafeAppProvider=i},750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLowerCase=void 0,t.getLowerCase=function(e){return e?e.toLowerCase():e}},50549:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});const i=n(17835);t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer="undefined"===typeof window,this.isValidMessage=e=>{let{origin:t,data:n,source:r}=e;const a=!n,i=!this.isServer&&r===window.parent,o=("undefined"!==typeof n.version&&parseInt(n.version.split(".")[0]))>=1;let s=!0;return Array.isArray(this.allowedOrigins)&&(s=void 0!==this.allowedOrigins.find((e=>e.test(t)))),!a&&i&&o&&s},this.logIncomingMessage=e=>{console.info("Safe Apps SDK v1: A message was received from origin ".concat(e.origin,". "),e.data)},this.onParentMessage=e=>{this.isValidMessage(e)&&(this.debugMode&&this.logIncomingMessage(e),this.handleIncomingMessage(e.data))},this.handleIncomingMessage=e=>{const{id:t}=e,n=this.callbacks.get(t);n&&(n(e),this.callbacks.delete(t))},this.send=(e,t)=>{const n=i.MessageFormatter.makeRequest(e,t);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(n,"*"),new Promise(((e,t)=>{this.callbacks.set(n.id,(n=>{n.success?e(n):t(new Error(n.error))}))}))},this.allowedOrigins=e,this.debugMode=t,this.isServer||window.addEventListener("message",this.onParentMessage)}},a(n(27891),t)},17835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageFormatter=void 0;const r=n(86777),a=n(82198);class i{}t.MessageFormatter=i,i.makeRequest=(e,t)=>({id:(0,a.generateRequestId)(),method:e,params:t,env:{sdkVersion:(0,r.getSDKVersion)()}}),i.makeResponse=(e,t,n)=>({id:e,success:!0,version:n,data:t}),i.makeErrorResponse=(e,t,n)=>({id:e,success:!1,error:t,version:n})},27891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RestrictedMethods=t.Methods=void 0,function(e){e.sendTransactions="sendTransactions",e.rpcCall="rpcCall",e.getChainInfo="getChainInfo",e.getSafeInfo="getSafeInfo",e.getTxBySafeTxHash="getTxBySafeTxHash",e.getSafeBalances="getSafeBalances",e.signMessage="signMessage",e.signTypedMessage="signTypedMessage",e.getEnvironmentInfo="getEnvironmentInfo",e.getOffChainSignature="getOffChainSignature",e.requestAddressBook="requestAddressBook",e.wallet_getPermissions="wallet_getPermissions",e.wallet_requestPermissions="wallet_requestPermissions"}(t.Methods||(t.Methods={})),function(e){e.requestAddressBook="requestAddressBook"}(t.RestrictedMethods||(t.RestrictedMethods={}))},82198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRequestId=void 0;const n=e=>e.toString(16).padStart(2,"0");t.generateRequestId=()=>"undefined"!==typeof window?(e=>{const t=new Uint8Array((e||40)/2);return window.crypto.getRandomValues(t),Array.from(t,n).join("")})(10):(new Date).getTime().toString(36)},16770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16365),a=n(44851),i=(e,t)=>t.some((t=>t.parentCapability===e));t.default=()=>(e,t,n)=>{const o=n.value;return n.value=async function(){const e=new r.Wallet(this.communicator);let n=await e.getPermissions();if(i(t,n)||(n=await e.requestPermissions([{[t]:{}}])),!i(t,n))throw new a.PermissionsError("Permissions rejected",a.PERMISSIONS_REQUEST_REJECTED);return o.apply(this)},n}},63394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RPC_CALLS=void 0,t.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}},93275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Eth=void 0;const r=n(63394),a=n(27891),i={defaultBlockParam:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"latest"},returnFullTxObjectParam:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]},blockNumberToHex:e=>Number.isInteger(e)?"0x".concat(e.toString(16)):e};t.Eth=class{constructor(e){this.communicator=e,this.call=this.buildRequest({call:r.RPC_CALLS.eth_call,formatters:[null,i.defaultBlockParam]}),this.getBalance=this.buildRequest({call:r.RPC_CALLS.eth_getBalance,formatters:[null,i.defaultBlockParam]}),this.getCode=this.buildRequest({call:r.RPC_CALLS.eth_getCode,formatters:[null,i.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:r.RPC_CALLS.eth_getStorageAt,formatters:[null,i.blockNumberToHex,i.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:r.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:r.RPC_CALLS.eth_getBlockByHash,formatters:[null,i.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:r.RPC_CALLS.eth_getBlockByNumber,formatters:[i.blockNumberToHex,i.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:r.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:r.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:r.RPC_CALLS.eth_getTransactionCount,formatters:[null,i.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:r.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=e=>this.buildRequest({call:r.RPC_CALLS.eth_estimateGas})([e]),this.setSafeSettings=this.buildRequest({call:r.RPC_CALLS.safe_setSettings})}buildRequest(e){const{call:t,formatters:n}=e;return async e=>{n&&Array.isArray(e)&&n.forEach(((t,n)=>{t&&(e[n]=t(e[n]))}));const r={call:t,params:e||[]};return(await this.communicator.send(a.Methods.rpcCall,r)).data}}}},55850:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;const o=i(n(7159));t.default=o.default,a(n(7159),t),a(n(39755),t),a(n(27891),t),a(n(17835),t);var s=n(86777);Object.defineProperty(t,"getSDKVersion",{enumerable:!0,get:function(){return s.getSDKVersion}})},64227:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Safe=void 0;const i=n(6149),o=n(70597),s=n(27891),c=n(63394),l=n(39755),u=a(n(16770));class d{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(s.Methods.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(s.Methods.getSafeInfo,void 0)).data}async experimental_getBalances(){let{currency:e="usd"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(await this.communicator.send(s.Methods.getSafeBalances,{currency:e})).data}async check1271Signature(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0x";const n=await this.getInfo(),r=(0,i.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),a={call:c.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(s.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===o.MAGIC_VALUE}catch(l){return!1}}async check1271SignatureBytes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0x";const n=await this.getInfo(),r=(0,i.encodeFunctionData)({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,t]}),a={call:c.RPC_CALLS.eth_call,params:[{to:n.safeAddress,data:r},"latest"]};try{return(await this.communicator.send(s.Methods.rpcCall,a)).data.slice(0,10).toLowerCase()===o.MAGIC_VALUE_BYTES}catch(l){return!1}}calculateMessageHash(e){return(0,i.hashMessage)(e)}calculateTypedMessageHash(e){const t="object"===typeof e.domain.chainId?e.domain.chainId.toNumber():Number(e.domain.chainId);let n=e.primaryType;if(!n){const t=Object.values(e.types),r=Object.keys(e.types).filter((e=>t.every((t=>t.every((t=>{let{type:n}=t;return n.replace("[","").replace("]","")!==e}))))));if(0===r.length||r.length>1)throw new Error("Please specify primaryType");n=r[0]}return(0,i.hashTypedData)({message:e.message,domain:Object.assign(Object.assign({},e.domain),{chainId:t,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt}),types:e.types,primaryType:n})}async getOffChainSignature(e){return(await this.communicator.send(s.Methods.getOffChainSignature,e)).data}async isMessageSigned(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0x";if("string"===typeof e&&(t=async()=>{const t=this.calculateMessageHash(e);return await this.isMessageHashSigned(t,n)}),(0,l.isObjectEIP712TypedData)(e)&&(t=async()=>{const t=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(t,n)}),t){return await t()}throw new Error("Invalid message type")}async isMessageHashSigned(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0x";const n=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const r of n){if(await r(e,t))return!0}return!1}async getEnvironmentInfo(){return(await this.communicator.send(s.Methods.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(s.Methods.requestAddressBook,void 0)).data}}r([(0,u.default)()],d.prototype,"requestAddressBook",null),t.Safe=d},70597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAGIC_VALUE_BYTES=t.MAGIC_VALUE=void 0;t.MAGIC_VALUE="0x1626ba7e";t.MAGIC_VALUE_BYTES="0x20c13b0b"},7159:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=r(n(50549)),i=n(52839),o=n(93275),s=n(64227),c=n(16365);t.default=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{allowedDomains:t=null,debug:n=!1}=e;this.communicator=new a.default(t,n),this.eth=new o.Eth(this.communicator),this.txs=new i.TXs(this.communicator),this.safe=new s.Safe(this.communicator),this.wallet=new c.Wallet(this.communicator)}}},52839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TXs=void 0;const r=n(27891),a=n(39755);t.TXs=class{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.Methods.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const t={message:e};return(await this.communicator.send(r.Methods.signMessage,t)).data}async signTypedMessage(e){if(!(0,a.isObjectEIP712TypedData)(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.Methods.signTypedMessage,{typedData:e})).data}async send(e){let{txs:t,params:n}=e;if(!t||!t.length)throw new Error("No transactions were passed");const a={txs:t,params:n};return(await this.communicator.send(r.Methods.sendTransactions,a)).data}}},81538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferDirection=t.TransactionStatus=t.TokenType=t.Operation=void 0;var r=n(35375);Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(t,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(t,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(t,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})},39755:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(72314),t),a(n(93618),t),a(n(81538),t),a(n(4731),t)},4731:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(27891)},44851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionsError=t.PERMISSIONS_REQUEST_REJECTED=void 0,t.PERMISSIONS_REQUEST_REJECTED=4001;class n extends Error{constructor(e,t,r){super(e),this.code=t,this.data=r,Object.setPrototypeOf(this,n.prototype)}}t.PermissionsError=n},93618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},72314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectEIP712TypedData=void 0;t.isObjectEIP712TypedData=e=>"object"===typeof e&&null!=e&&"domain"in e&&"types"in e&&"message"in e},86777:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSDKVersion=void 0;const a=r(n(29242));t.getSDKVersion=()=>a.default.version.split("-")[0]},16365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const r=n(27891),a=n(44851);t.Wallet=class{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.Methods.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new a.PermissionsError("Permissions request is invalid",a.PERMISSIONS_REQUEST_REJECTED);try{return(await this.communicator.send(r.Methods.wallet_requestPermissions,e)).data}catch(t){throw new a.PermissionsError("Permissions rejected",a.PERMISSIONS_REQUEST_REJECTED)}}isPermissionRequestValid(e){return e.every((e=>"object"===typeof e&&Object.keys(e).every((e=>!!Object.values(r.RestrictedMethods).includes(e)))))}}},40434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BASE_URL=void 0,t.DEFAULT_BASE_URL="https://safe-client.safe.global"},23874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteEndpoint=t.getEndpoint=t.postEndpoint=void 0;const r=n(62680);function a(e,t,n,a){const i=(0,r.insertParams)(t,n),o=(0,r.stringifyQuery)(a);return"".concat(e).concat(i).concat(o)}t.postEndpoint=function(e,t,n){const i=a(e,t,null===n||void 0===n?void 0:n.path,null===n||void 0===n?void 0:n.query);return(0,r.fetchData)(i,null===n||void 0===n?void 0:n.body)},t.getEndpoint=function(e,t,n,i){if(i)return(0,r.fetchData)(i);const o=a(e,t,null===n||void 0===n?void 0:n.path,null===n||void 0===n?void 0:n.query);return(0,r.fetchData)(o)},t.deleteEndpoint=function(e,t,n){const i=a(e,t,null===n||void 0===n?void 0:n.path);return(0,r.deleteData)(i)}},35375:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.unregisterDevice=t.unregisterSafe=t.registerDevice=t.getDelegates=t.confirmSafeMessage=t.proposeSafeMessage=t.getSafeMessage=t.getSafeMessages=t.getDecodedData=t.getMasterCopies=t.getSafeApps=t.getChainConfig=t.getChainsConfig=t.proposeTransaction=t.postSafeGasEstimation=t.getTransactionDetails=t.getTransactionQueue=t.getTransactionHistory=t.getCollectiblesPage=t.getCollectibles=t.getOwnedSafes=t.getFiatCurrencies=t.getBalances=t.getMultisigTransactions=t.getModuleTransactions=t.getIncomingTransfers=t.getSafeInfo=t.setBaseUrl=void 0;const i=n(23874),o=n(40434);a(n(26846),t),a(n(7606),t),a(n(40991),t),a(n(25078),t),a(n(24693),t),a(n(89841),t),a(n(22557),t),a(n(19226),t),a(n(55638),t);let s=o.DEFAULT_BASE_URL;t.setBaseUrl=e=>{s=e},t.getSafeInfo=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}",{path:{chainId:e,address:t}})},t.getIncomingTransfers=function(e,t,n,r){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/incoming-transfers/",{path:{chainId:e,address:t},query:n},r)},t.getModuleTransactions=function(e,t,n,r){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/module-transactions/",{path:{chainId:e,address:t},query:n},r)},t.getMultisigTransactions=function(e,t,n,r){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/multisig-transactions/",{path:{chainId:e,address:t},query:n},r)},t.getBalances=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"usd",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/balances/{currency}",{path:{chainId:e,address:t,currency:n},query:r})},t.getFiatCurrencies=function(){return(0,i.getEndpoint)(s,"/v1/balances/supported-fiat-codes")},t.getOwnedSafes=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/owners/{address}/safes",{path:{chainId:e,address:t}})},t.getCollectibles=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:n})},t.getCollectiblesPage=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return(0,i.getEndpoint)(s,"/v2/chains/{chainId}/safes/{address}/collectibles",{path:{chainId:e,address:t},query:n},r)},t.getTransactionHistory=function(e,t,n){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/history",{path:{chainId:e,safe_address:t},query:{}},n)},t.getTransactionQueue=function(e,t,n,r){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/transactions/queued",{path:{chainId:e,safe_address:t},query:{trusted:r}},n)},t.getTransactionDetails=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/transactions/{transactionId}",{path:{chainId:e,transactionId:t}})},t.postSafeGasEstimation=function(e,t,n){return(0,i.postEndpoint)(s,"/v2/chains/{chainId}/safes/{safe_address}/multisig-transactions/estimations",{path:{chainId:e,safe_address:t},body:n})},t.proposeTransaction=function(e,t,n){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/transactions/{safe_address}/propose",{path:{chainId:e,safe_address:t},body:n})},t.getChainsConfig=function(e){return(0,i.getEndpoint)(s,"/v1/chains",{query:e})},t.getChainConfig=function(e){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}",{path:{chainId:e}})},t.getSafeApps=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safe-apps",{path:{chainId:e},query:t})},t.getMasterCopies=function(e){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/about/master-copies",{path:{chainId:e}})},t.getDecodedData=function(e,t,n){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/data-decoder",{path:{chainId:e},body:{data:t,to:n}})},t.getSafeMessages=function(e,t,n){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},query:{}},n)},t.getSafeMessage=function(e,t){return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}",{path:{chainId:e,message_hash:t}})},t.proposeSafeMessage=function(e,t,n){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/safes/{safe_address}/messages",{path:{chainId:e,safe_address:t},body:n})},t.confirmSafeMessage=function(e,t,n){return(0,i.postEndpoint)(s,"/v1/chains/{chainId}/messages/{message_hash}/signatures",{path:{chainId:e,message_hash:t},body:n})},t.getDelegates=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.getEndpoint)(s,"/v1/chains/{chainId}/delegates",{path:{chainId:e},query:t})},t.registerDevice=function(e){return(0,i.postEndpoint)(s,"/v1/register/notifications",{body:e})},t.unregisterSafe=function(e,t,n){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}",{path:{chainId:e,safe_address:t,uuid:n}})},t.unregisterDevice=function(e,t){return(0,i.deleteEndpoint)(s,"/v1/chains/{chainId}/notifications/devices/{uuid}",{path:{chainId:e,uuid:t}})}},25078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURES=t.GAS_PRICE_TYPE=t.RPC_AUTHENTICATION=void 0,function(e){e.API_KEY_PATH="API_KEY_PATH",e.NO_AUTHENTICATION="NO_AUTHENTICATION",e.UNKNOWN="UNKNOWN"}(t.RPC_AUTHENTICATION||(t.RPC_AUTHENTICATION={})),function(e){e.ORACLE="ORACLE",e.FIXED="FIXED",e.FIXED_1559="FIXED1559",e.UNKNOWN="UNKNOWN"}(t.GAS_PRICE_TYPE||(t.GAS_PRICE_TYPE={})),function(e){e.ERC721="ERC721",e.SAFE_APPS="SAFE_APPS",e.CONTRACT_INTERACTION="CONTRACT_INTERACTION",e.DOMAIN_LOOKUP="DOMAIN_LOOKUP",e.SPENDING_LIMIT="SPENDING_LIMIT",e.EIP1559="EIP1559",e.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",e.TX_SIMULATION="TX_SIMULATION",e.EIP1271="EIP1271"}(t.FEATURES||(t.FEATURES={}))},24693:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenType=void 0,function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_TOKEN="NATIVE_TOKEN"}(t.TokenType||(t.TokenType={}))},22557:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55638:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceType=void 0,function(e){e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB"}(t.DeviceType||(t.DeviceType={}))},7606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeAppSocialPlatforms=t.SafeAppFeatures=t.SafeAppAccessPolicyTypes=void 0,function(e){e.NoRestrictions="NO_RESTRICTIONS",e.DomainAllowlist="DOMAIN_ALLOWLIST"}(t.SafeAppAccessPolicyTypes||(t.SafeAppAccessPolicyTypes={})),function(e){e.BATCHED_TRANSACTIONS="BATCHED_TRANSACTIONS"}(t.SafeAppFeatures||(t.SafeAppFeatures={})),function(e){e.TWITTER="TWITTER",e.GITHUB="GITHUB",e.DISCORD="DISCORD"}(t.SafeAppSocialPlatforms||(t.SafeAppSocialPlatforms={}))},26846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationVersionState=void 0,function(e){e.UP_TO_DATE="UP_TO_DATE",e.OUTDATED="OUTDATED",e.UNKNOWN="UNKNOWN"}(t.ImplementationVersionState||(t.ImplementationVersionState={}))},19226:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeMessageStatus=t.SafeMessageListItemType=void 0,function(e){e.DATE_LABEL="DATE_LABEL",e.MESSAGE="MESSAGE"}(t.SafeMessageListItemType||(t.SafeMessageListItemType={})),function(e){e.NEEDS_CONFIRMATION="NEEDS_CONFIRMATION",e.CONFIRMED="CONFIRMED"}(t.SafeMessageStatus||(t.SafeMessageStatus={}))},40991:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelValue=t.DetailedExecutionInfoType=t.TransactionListItemType=t.ConflictType=t.TransactionInfoType=t.SettingsInfoType=t.TransactionTokenType=t.TransferDirection=t.TransactionStatus=t.Operation=void 0,function(e){e[e.CALL=0]="CALL",e[e.DELEGATE=1]="DELEGATE"}(t.Operation||(t.Operation={})),function(e){e.AWAITING_CONFIRMATIONS="AWAITING_CONFIRMATIONS",e.AWAITING_EXECUTION="AWAITING_EXECUTION",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e.SUCCESS="SUCCESS"}(t.TransactionStatus||(t.TransactionStatus={})),function(e){e.INCOMING="INCOMING",e.OUTGOING="OUTGOING",e.UNKNOWN="UNKNOWN"}(t.TransferDirection||(t.TransferDirection={})),function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.NATIVE_COIN="NATIVE_COIN"}(t.TransactionTokenType||(t.TransactionTokenType={})),function(e){e.SET_FALLBACK_HANDLER="SET_FALLBACK_HANDLER",e.ADD_OWNER="ADD_OWNER",e.REMOVE_OWNER="REMOVE_OWNER",e.SWAP_OWNER="SWAP_OWNER",e.CHANGE_THRESHOLD="CHANGE_THRESHOLD",e.CHANGE_IMPLEMENTATION="CHANGE_IMPLEMENTATION",e.ENABLE_MODULE="ENABLE_MODULE",e.DISABLE_MODULE="DISABLE_MODULE",e.SET_GUARD="SET_GUARD",e.DELETE_GUARD="DELETE_GUARD"}(t.SettingsInfoType||(t.SettingsInfoType={})),function(e){e.TRANSFER="Transfer",e.SETTINGS_CHANGE="SettingsChange",e.CUSTOM="Custom",e.CREATION="Creation"}(t.TransactionInfoType||(t.TransactionInfoType={})),function(e){e.NONE="None",e.HAS_NEXT="HasNext",e.END="End"}(t.ConflictType||(t.ConflictType={})),function(e){e.TRANSACTION="TRANSACTION",e.LABEL="LABEL",e.CONFLICT_HEADER="CONFLICT_HEADER",e.DATE_LABEL="DATE_LABEL"}(t.TransactionListItemType||(t.TransactionListItemType={})),function(e){e.MULTISIG="MULTISIG",e.MODULE="MODULE"}(t.DetailedExecutionInfoType||(t.DetailedExecutionInfoType={})),function(e){e.Queued="Queued",e.Next="Next"}(t.LabelValue||(t.LabelValue={}))},62680:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteData=t.fetchData=t.stringifyQuery=t.insertParams=void 0;const r=e=>"object"===typeof e&&null!==e&&"code"in e&&"message"in e;function a(e){return n(this,void 0,void 0,(function*(){let t;try{t=yield e.json()}catch(n){if(e.headers&&"0"!==e.headers.get("content-length"))throw new Error("Invalid response content: ".concat(e.statusText))}if(!e.ok){const n=r(t)?"".concat(t.code,": ").concat(t.message):e.statusText;throw new Error(n)}return t}))}t.insertParams=function(e,t){return t?Object.keys(t).reduce(((e,n)=>function(e,t,n){return e.replace(new RegExp("\\{".concat(t,"\\}"),"g"),n)}(e,n,String(t[n]))),e):e},t.stringifyQuery=function(e){if(!e)return"";const t=new URLSearchParams;Object.keys(e).forEach((n=>{null!=e[n]&&t.append(n,String(e[n]))}));const n=t.toString();return n?"?".concat(n):""},t.fetchData=function(e,t){return n(this,void 0,void 0,(function*(){let n;null!=t&&(n={method:"POST",body:"string"===typeof t?t:JSON.stringify(t),headers:{"Content-Type":"application/json"}});return a(yield fetch(e,n))}))},t.deleteData=function(e){return n(this,void 0,void 0,(function*(){return a(yield fetch(e,{method:"DELETE"}))}))}},67493:function(e,t,n){"use strict";var r,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedMessage=void 0;const i=a(n(30457)),o=a(n(91572)),s=n(97281);class c{static generateApi(){const e=new i.default('\nsign-in-with-ethereum =\n domain %s" wants you to sign in with your Ethereum account:" LF\n address LF\n LF\n [ statement LF ]\n LF\n %s"URI: " URI LF\n %s"Version: " version LF\n %s"Chain ID: " chain-id LF\n %s"Nonce: " nonce LF\n %s"Issued At: " issued-at\n [ LF %s"Expiration Time: " expiration-time ]\n [ LF %s"Not Before: " not-before ]\n [ LF %s"Request ID: " request-id ]\n [ LF %s"Resources:"\n resources ]\n\ndomain = authority\n\naddress = "0x" 40*40HEXDIG\n ; Must also conform to captilization\n ; checksum encoding specified in EIP-55\n ; where applicable (EOAs).\n\nstatement = 1*( reserved / unreserved / " " )\n ; The purpose is to exclude LF (line breaks).\n\nversion = "1"\n\nnonce = 8*( ALPHA / DIGIT )\n\nissued-at = date-time\nexpiration-time = date-time\nnot-before = date-time\n\nrequest-id = *pchar\n\nchain-id = 1*DIGIT\n ; See EIP-155 for valid CHAIN_IDs.\n\nresources = *( LF resource )\n\nresource = "- " URI\n\n; ------------------------------------------------------------------------------\n; RFC 3986\n\nURI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]\n\nhier-part = "//" authority path-abempty\n / path-absolute\n / path-rootless\n / path-empty\n\nscheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )\n\nauthority = [ userinfo "@" ] host [ ":" port ]\nuserinfo = *( unreserved / pct-encoded / sub-delims / ":" )\nhost = IP-literal / IPv4address / reg-name\nport = *DIGIT\n\nIP-literal = "[" ( IPv6address / IPvFuture ) "]"\n\nIPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )\n\nIPv6address = 6( h16 ":" ) ls32\n / "::" 5( h16 ":" ) ls32\n / [ h16 ] "::" 4( h16 ":" ) ls32\n / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32\n / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32\n / [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32\n / [ *4( h16 ":" ) h16 ] "::" ls32\n / [ *5( h16 ":" ) h16 ] "::" h16\n / [ *6( h16 ":" ) h16 ] "::"\n\nh16 = 1*4HEXDIG\nls32 = ( h16 ":" h16 ) / IPv4address\nIPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet\ndec-octet = DIGIT ; 0-9\n / %x31-39 DIGIT ; 10-99\n / "1" 2DIGIT ; 100-199\n / "2" %x30-34 DIGIT ; 200-249\n / "25" %x30-35 ; 250-255\n\nreg-name = *( unreserved / pct-encoded / sub-delims )\n\npath-abempty = *( "/" segment )\npath-absolute = "/" [ segment-nz *( "/" segment ) ]\npath-rootless = segment-nz *( "/" segment )\npath-empty = 0pchar\n\nsegment = *pchar\nsegment-nz = 1*pchar\n\npchar = unreserved / pct-encoded / sub-delims / ":" / "@"\n\nquery = *( pchar / "/" / "?" )\n\nfragment = *( pchar / "/" / "?" )\n\npct-encoded = "%" HEXDIG HEXDIG\n\nunreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"\nreserved = gen-delims / sub-delims\ngen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"\nsub-delims = "!" / "$" / "&" / "\'" / "(" / ")"\n / "*" / "+" / "," / ";" / "="\n\n; ------------------------------------------------------------------------------\n; RFC 3339\n\ndate-fullyear = 4DIGIT\ndate-month = 2DIGIT ; 01-12\ndate-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on\n ; month/year\ntime-hour = 2DIGIT ; 00-23\ntime-minute = 2DIGIT ; 00-59\ntime-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second\n ; rules\ntime-secfrac = "." 1*DIGIT\ntime-numoffset = ("+" / "-") time-hour ":" time-minute\ntime-offset = "Z" / time-numoffset\n\npartial-time = time-hour ":" time-minute ":" time-second\n [time-secfrac]\nfull-date = date-fullyear "-" date-month "-" date-mday\nfull-time = partial-time time-offset\n\ndate-time = full-date "T" full-time\n\n; ------------------------------------------------------------------------------\n; RFC 5234\n\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\nLF = %x0A\n ; linefeed\nDIGIT = %x30-39\n ; 0-9\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n');if(e.generate(),e.errors.length)throw console.error(e.errorsToAscii()),console.error(e.linesToAscii()),console.log(e.displayAttributeErrors()),new Error("ABNF grammar has errors");return e.toObject()}}r=c,c.grammarObj=r.generateApi();t.ParsedMessage=class{constructor(e){const t=new o.default.parser;t.ast=new o.default.ast;const n=o.default.ids;t.ast.callbacks.domain=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.domain=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks.address=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.address=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks.statement=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.statement=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks.uri=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.uri||(i.uri=o.default.utils.charsToString(t,r,a))),s};t.ast.callbacks.version=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.version=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks["chain-id"]=function(e,t,r,a,i){const c=n.SEM_OK;return e===n.SEM_PRE&&(i.chainId=(0,s.parseIntegerNumber)(o.default.utils.charsToString(t,r,a))),c};t.ast.callbacks.nonce=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.nonce=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks["issued-at"]=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.issuedAt=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks["expiration-time"]=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.expirationTime=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks["not-before"]=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.notBefore=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks["request-id"]=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.requestId=o.default.utils.charsToString(t,r,a)),s};t.ast.callbacks.resources=function(e,t,r,a,i){const s=n.SEM_OK;return e===n.SEM_PRE&&(i.resources=o.default.utils.charsToString(t,r,a).slice(3).split("\n- ")),s};const r=t.parse(c.grammarObj,"sign-in-with-ethereum",e);if(!r.success)throw new Error("Invalid message: ".concat(JSON.stringify(r)));const a={};t.ast.translate(a);for(const[i,o]of Object.entries(a))this[i]=o;if(0===this.domain.length)throw new Error("Domain cannot be empty.");if(!(0,s.isEIP55Address)(this.address))throw new Error("Address not conformant to EIP-55.")}}},88058:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ParsedMessage=void 0;const i=n(67493);Object.defineProperty(t,"ParsedMessage",{enumerable:!0,get:function(){return i.ParsedMessage}}),a(n(97281),t)},97281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntegerNumber=t.isEIP55Address=void 0;const r=n(64461),a=n(96367);t.isEIP55Address=e=>{if(42!=e.length)return!1;const t="".concat(e).toLowerCase().replace("0x","");for(var n=(0,a.bytesToHex)((0,r.keccak_256)(t)),i="0x",o=0;o=8?i+=t[o].toUpperCase():i+=t[o];return e===i};t.parseIntegerNumber=e=>{const t=parseInt(e);if(NaN===t)throw new Error("Invalid number.");if(t===1/0)throw new Error("Invalid number.");return t}},49669:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65346);function a(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function i(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function o(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function s(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function c(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function l(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function u(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function p(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),u(e/4294967296>>>0,t,n),u(e>>>0,t,n+4),t}function f(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),d(e>>>0,t,n),d(e/4294967296>>>0,t,n+4),t}t.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},t.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},t.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},t.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},t.writeUint16BE=a,t.writeInt16BE=a,t.writeUint16LE=i,t.writeInt16LE=i,t.readInt32BE=o,t.readUint32BE=s,t.readInt32LE=c,t.readUint32LE=l,t.writeUint32BE=u,t.writeInt32BE=u,t.writeUint32LE=d,t.writeInt32LE=d,t.readInt64BE=function(e,t){void 0===t&&(t=0);var n=o(e,t),r=o(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},t.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*s(e,t)+s(e,t+4)},t.readInt64LE=function(e,t){void 0===t&&(t=0);var n=c(e,t);return 4294967296*c(e,t+4)+n-4294967296*(n>>31)},t.readUint64LE=function(e,t){void 0===t&&(t=0);var n=l(e,t);return 4294967296*l(e,t+4)+n},t.writeUint64BE=p,t.writeInt64BE=p,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,a=1,i=e/8+n-1;i>=n;i--)r+=t[i]*a,a*=256;return r},t.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,a=1,i=n;i=a;o--)n[o]=t/i&255,i*=256;return n},t.writeUintLE=function(e,t,n,a){if(void 0===n&&(n=new Uint8Array(e/8)),void 0===a&&(a=0),e%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(t))throw new Error("writeUintLE value must be an integer");for(var i=1,o=a;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49669),a=n(70209),i=20;function o(e,t,n){for(var a=1634760805,o=857760878,s=2036477234,c=1797285236,l=n[3]<<24|n[2]<<16|n[1]<<8|n[0],u=n[7]<<24|n[6]<<16|n[5]<<8|n[4],d=n[11]<<24|n[10]<<16|n[9]<<8|n[8],p=n[15]<<24|n[14]<<16|n[13]<<8|n[12],f=n[19]<<24|n[18]<<16|n[17]<<8|n[16],h=n[23]<<24|n[22]<<16|n[21]<<8|n[20],m=n[27]<<24|n[26]<<16|n[25]<<8|n[24],g=n[31]<<24|n[30]<<16|n[29]<<8|n[28],y=t[3]<<24|t[2]<<16|t[1]<<8|t[0],b=t[7]<<24|t[6]<<16|t[5]<<8|t[4],v=t[11]<<24|t[10]<<16|t[9]<<8|t[8],w=t[15]<<24|t[14]<<16|t[13]<<8|t[12],E=a,x=o,k=s,P=c,S=l,C=u,T=d,_=p,A=f,O=h,I=m,j=g,N=y,R=b,B=v,M=w,F=0;F>>16|N<<16)|0)>>>20|S<<12,C=(C^=O=O+(R=(R^=x=x+C|0)>>>16|R<<16)|0)>>>20|C<<12,T=(T^=I=I+(B=(B^=k=k+T|0)>>>16|B<<16)|0)>>>20|T<<12,_=(_^=j=j+(M=(M^=P=P+_|0)>>>16|M<<16)|0)>>>20|_<<12,T=(T^=I=I+(B=(B^=k=k+T|0)>>>24|B<<8)|0)>>>25|T<<7,_=(_^=j=j+(M=(M^=P=P+_|0)>>>24|M<<8)|0)>>>25|_<<7,C=(C^=O=O+(R=(R^=x=x+C|0)>>>24|R<<8)|0)>>>25|C<<7,S=(S^=A=A+(N=(N^=E=E+S|0)>>>24|N<<8)|0)>>>25|S<<7,C=(C^=I=I+(M=(M^=E=E+C|0)>>>16|M<<16)|0)>>>20|C<<12,T=(T^=j=j+(N=(N^=x=x+T|0)>>>16|N<<16)|0)>>>20|T<<12,_=(_^=A=A+(R=(R^=k=k+_|0)>>>16|R<<16)|0)>>>20|_<<12,S=(S^=O=O+(B=(B^=P=P+S|0)>>>16|B<<16)|0)>>>20|S<<12,_=(_^=A=A+(R=(R^=k=k+_|0)>>>24|R<<8)|0)>>>25|_<<7,S=(S^=O=O+(B=(B^=P=P+S|0)>>>24|B<<8)|0)>>>25|S<<7,T=(T^=j=j+(N=(N^=x=x+T|0)>>>24|N<<8)|0)>>>25|T<<7,C=(C^=I=I+(M=(M^=E=E+C|0)>>>24|M<<8)|0)>>>25|C<<7;r.writeUint32LE(E+a|0,e,0),r.writeUint32LE(x+o|0,e,4),r.writeUint32LE(k+s|0,e,8),r.writeUint32LE(P+c|0,e,12),r.writeUint32LE(S+l|0,e,16),r.writeUint32LE(C+u|0,e,20),r.writeUint32LE(T+d|0,e,24),r.writeUint32LE(_+p|0,e,28),r.writeUint32LE(A+f|0,e,32),r.writeUint32LE(O+h|0,e,36),r.writeUint32LE(I+m|0,e,40),r.writeUint32LE(j+g|0,e,44),r.writeUint32LE(N+y|0,e,48),r.writeUint32LE(R+b|0,e,52),r.writeUint32LE(B+v|0,e,56),r.writeUint32LE(M+w|0,e,60)}function s(e,t,n,r,i){if(void 0===i&&(i=0),32!==e.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,t++;if(r>0)throw new Error("ChaCha: counter overflow")}t.streamXOR=s,t.stream=function(e,t,n,r){return void 0===r&&(r=0),a.wipe(n),s(e,t,n,n,r)}},88751:(e,t,n)=>{"use strict";var r=n(91037),a=n(17263),i=n(70209),o=n(49669),s=n(83261);t.Cv=32,t.WH=12,t.pg=16;var c=new Uint8Array(16),l=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var o=new Uint8Array(16);o.set(e,o.length-e.length);var s=new Uint8Array(32);r.stream(this._key,o,s,4);var c,l=t.length+this.tagLength;if(a){if(a.length!==l)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(l);return r.streamXOR(this._key,o,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),i.wipe(o),c},e.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&s.update(c.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(c.subarray(n.length%16));var l=new Uint8Array(8);r&&o.writeUint64LE(r.length,l),s.update(l),o.writeUint64LE(n.length,l),s.update(l);for(var u=s.digest(),d=0;d{"use strict";function n(e,t){if(e.length!==t.length)return 0;for(var n=0,r=0;r>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},90836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return"undefined"!==typeof e.saveState&&"undefined"!==typeof e.restoreState&&"undefined"!==typeof e.cleanSavedState}},73071:(e,t,n)=>{"use strict";var r=n(66008),a=n(70209),i=function(){function e(e,t,n,a){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=r.hmac(this._hash,n,t);this._hmac=new r.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(90836),a=n(83261),i=n(70209),o=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},t.add=function(e,t){return e+t|0},t.sub=function(e,t){return e-t|0},t.rotl=function(e,t){return e<>>32-t},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},17263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83261),a=n(70209);t.DIGEST_LENGTH=16;var i=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=e[0]|e[1]<<8;this._r[0]=8191&n;var r=e[2]|e[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var a=e[4]|e[5]<<8;this._r[2]=7939&(r>>>10|a<<6);var i=e[6]|e[7]<<8;this._r[3]=8191&(a>>>7|i<<9);var o=e[8]|e[9]<<8;this._r[4]=255&(i>>>4|o<<12),this._r[5]=o>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=8191&(o>>>14|s<<2);var c=e[12]|e[13]<<8;this._r[7]=8065&(s>>>11|c<<5);var l=e[14]|e[15]<<8;this._r[8]=8191&(c>>>8|l<<8),this._r[9]=l>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,n){for(var r=this._fin?0:2048,a=this._h[0],i=this._h[1],o=this._h[2],s=this._h[3],c=this._h[4],l=this._h[5],u=this._h[6],d=this._h[7],p=this._h[8],f=this._h[9],h=this._r[0],m=this._r[1],g=this._r[2],y=this._r[3],b=this._r[4],v=this._r[5],w=this._r[6],E=this._r[7],x=this._r[8],k=this._r[9];n>=16;){var P=e[t+0]|e[t+1]<<8;a+=8191&P;var S=e[t+2]|e[t+3]<<8;i+=8191&(P>>>13|S<<3);var C=e[t+4]|e[t+5]<<8;o+=8191&(S>>>10|C<<6);var T=e[t+6]|e[t+7]<<8;s+=8191&(C>>>7|T<<9);var _=e[t+8]|e[t+9]<<8;c+=8191&(T>>>4|_<<12),l+=_>>>1&8191;var A=e[t+10]|e[t+11]<<8;u+=8191&(_>>>14|A<<2);var O=e[t+12]|e[t+13]<<8;d+=8191&(A>>>11|O<<5);var I=e[t+14]|e[t+15]<<8,j=0,N=j;N+=a*h,N+=i*(5*k),N+=o*(5*x),N+=s*(5*E),j=(N+=c*(5*w))>>>13,N&=8191,N+=l*(5*v),N+=u*(5*b),N+=d*(5*y),N+=(p+=8191&(O>>>8|I<<8))*(5*g);var R=j+=(N+=(f+=I>>>5|r)*(5*m))>>>13;R+=a*m,R+=i*h,R+=o*(5*k),R+=s*(5*x),j=(R+=c*(5*E))>>>13,R&=8191,R+=l*(5*w),R+=u*(5*v),R+=d*(5*b),R+=p*(5*y),j+=(R+=f*(5*g))>>>13,R&=8191;var B=j;B+=a*g,B+=i*m,B+=o*h,B+=s*(5*k),j=(B+=c*(5*x))>>>13,B&=8191,B+=l*(5*E),B+=u*(5*w),B+=d*(5*v),B+=p*(5*b);var M=j+=(B+=f*(5*y))>>>13;M+=a*y,M+=i*g,M+=o*m,M+=s*h,j=(M+=c*(5*k))>>>13,M&=8191,M+=l*(5*x),M+=u*(5*E),M+=d*(5*w),M+=p*(5*v);var F=j+=(M+=f*(5*b))>>>13;F+=a*b,F+=i*y,F+=o*g,F+=s*m,j=(F+=c*h)>>>13,F&=8191,F+=l*(5*k),F+=u*(5*x),F+=d*(5*E),F+=p*(5*w);var L=j+=(F+=f*(5*v))>>>13;L+=a*v,L+=i*b,L+=o*y,L+=s*g,j=(L+=c*m)>>>13,L&=8191,L+=l*h,L+=u*(5*k),L+=d*(5*x),L+=p*(5*E);var D=j+=(L+=f*(5*w))>>>13;D+=a*w,D+=i*v,D+=o*b,D+=s*y,j=(D+=c*g)>>>13,D&=8191,D+=l*m,D+=u*h,D+=d*(5*k),D+=p*(5*x);var U=j+=(D+=f*(5*E))>>>13;U+=a*E,U+=i*w,U+=o*v,U+=s*b,j=(U+=c*y)>>>13,U&=8191,U+=l*g,U+=u*m,U+=d*h,U+=p*(5*k);var z=j+=(U+=f*(5*x))>>>13;z+=a*x,z+=i*E,z+=o*w,z+=s*v,j=(z+=c*b)>>>13,z&=8191,z+=l*y,z+=u*g,z+=d*m,z+=p*h;var q=j+=(z+=f*(5*k))>>>13;q+=a*k,q+=i*x,q+=o*E,q+=s*w,j=(q+=c*v)>>>13,q&=8191,q+=l*b,q+=u*y,q+=d*g,q+=p*m,a=N=8191&(j=(j=((j+=(q+=f*h)>>>13)<<2)+j|0)+(N&=8191)|0),i=R+=j>>>=13,o=B&=8191,s=M&=8191,c=F&=8191,l=L&=8191,u=D&=8191,d=U&=8191,p=z&=8191,f=q&=8191,t+=16,n-=16}this._h[0]=a,this._h[1]=i,this._h[2]=o,this._h[3]=s,this._h[4]=c,this._h[5]=l,this._h[6]=u,this._h[7]=d,this._h[8]=p,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var n,r,a,i,o=new Uint16Array(10);if(this._leftover){for(i=this._leftover,this._buffer[i++]=1;i<16;i++)this._buffer[i]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,i=2;i<10;i++)this._h[i]+=n,n=this._h[i]>>>13,this._h[i]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,o[0]=this._h[0]+5,n=o[0]>>>13,o[0]&=8191,i=1;i<10;i++)o[i]=this._h[i]+n,n=o[i]>>>13,o[i]&=8191;for(o[9]-=8192,r=(1^n)-1,i=0;i<10;i++)o[i]&=r;for(r=~r,i=0;i<10;i++)this._h[i]=this._h[i]&r|o[i];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),a=this._h[0]+this._pad[0],this._h[0]=65535&a,i=1;i<8;i++)a=(this._h[i]+this._pad[i]|0)+(a>>>16)|0,this._h[i]=65535&a;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,n=0,r=e.length;if(this._leftover){(t=16-this._leftover)>r&&(t=r);for(var a=0;a=16&&(t=r-r%16,this._blocks(e,n,t),n+=t,r-=t),r){for(a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;const r=n(14126),a=n(49669),i=n(70209);function o(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaultRandomSource).randomBytes(e)}t.defaultRandomSource=new r.SystemRandomSource,t.randomBytes=o,t.randomUint32=function(){const e=o(4,arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.defaultRandomSource),n=(0,a.readUint32LE)(e);return(0,i.wipe)(e),n};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let a="";const c=n.length,l=256-256%c;for(;e>0;){const t=o(Math.ceil(256*e/l),r);for(let r=0;r0;r++){const i=t[r];i1&&void 0!==arguments[1]?arguments[1]:s,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.defaultRandomSource;return c(Math.ceil(e/(Math.log(n.length)/Math.LN2)),n,r)}},1611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;t.BrowserRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;const e="undefined"!==typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");const t=new Uint8Array(e);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;const r=n(70209);t.NodeRandomSource=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{const e=n(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");const n=new Uint8Array(e);for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;const r=n(1611),a=n(10115);t.SystemRandomSource=class{constructor(){return this.isAvailable=!1,this.name="",this._source=new r.BrowserRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Browser")):(this._source=new a.NodeRandomSource,this._source.isAvailable?(this.isAvailable=!0,void(this.name="Node")):void 0)}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}}},68335:(e,t,n)=>{"use strict";var r=n(49669),a=n(70209);t.k=32,t.cn=64;var i=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){a.wipe(this._buffer),a.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=s(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,o=t%64<56?64:128;this._buffer[n]=128;for(var c=n+1;c0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){a.wipe(e.state),e.buffer&&a.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=i;var o=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(e,t,n,a,i){for(;i>=64;){for(var s=t[0],c=t[1],l=t[2],u=t[3],d=t[4],p=t[5],f=t[6],h=t[7],m=0;m<16;m++){var g=a+4*m;e[m]=r.readUint32BE(n,g)}for(m=16;m<64;m++){var y=e[m-2],b=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,v=((y=e[m-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;e[m]=(b+e[m-7]|0)+(v+e[m-16]|0)}for(m=0;m<64;m++){b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&f)|0)+(h+(o[m]+e[m]|0)|0)|0,v=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&c^s&l^c&l)|0;h=f,f=p,p=d,d=u+b|0,u=l,l=c,c=s,s=b+v|0}t[0]+=s,t[1]+=c,t[2]+=l,t[3]+=u,t[4]+=d,t[5]+=p,t[6]+=f,t[7]+=h,a+=64,i-=64}return a}t.vp=function(e){var t=new i;t.update(e);var n=t.digest();return t.clean(),n}},70209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(var t=0;t{"use strict";t.gi=t.Au=t.KS=t.kz=void 0;const r=n(4953),a=n(70209);function i(e){const t=new Float64Array(16);if(e)for(let n=0;n=0;--i){const e=n[i>>>3]>>>(7&i)&1;l(a,o,e),l(h,m,e),u(g,a,h),d(a,a,h),u(h,o,m),d(o,o,m),f(m,g),f(y,a),p(a,h,a),p(h,o,g),u(g,a,h),d(a,a,h),f(o,a),d(h,m,y),p(a,h,s),u(a,a,m),p(h,h,a),p(a,m,y),p(m,o,r),f(o,g),l(a,o,e),l(h,m,e)}for(let i=0;i<16;i++)r[i+16]=a[i],r[i+32]=h[i],r[i+48]=o[i],r[i+64]=m[i];const b=r.subarray(32),v=r.subarray(16);!function(e,t){const n=i();for(let r=0;r<16;r++)n[r]=t[r];for(let r=253;r>=0;r--)f(n,n),2!==r&&4!==r&&p(n,n,t);for(let r=0;r<16;r++)e[r]=n[r]}(b,b),p(v,v,b);const w=new Uint8Array(32);return function(e,t){const n=i(),r=i();for(let a=0;a<16;a++)r[a]=t[a];c(r),c(r),c(r);for(let a=0;a<2;a++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const e=n[15]>>16&1;n[14]&=65535,l(r,n,1-e)}for(let a=0;a<16;a++)e[2*a]=255&r[a],e[2*a+1]=r[a]>>8}(w,v),w}function m(e){return h(e,o)}function g(e){if(e.length!==t.KS)throw new Error("x25519: seed must be ".concat(t.KS," bytes"));const n=new Uint8Array(e);return{publicKey:m(n),secretKey:n}}t.Au=function(e){const t=(0,r.randomBytes)(32,e),n=g(t);return(0,a.wipe)(t),n},t.gi=function(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.length!==t.kz)throw new Error("X25519: incorrect secret key length");if(n.length!==t.kz)throw new Error("X25519: incorrect public key length");const a=h(e,n);if(r){let e=0;for(let t=0;t{},64622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64983);r.__exportStar(n(12193),t),r.__exportStar(n(63822),t)},12193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},63822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_WEEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},84791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64983);r.__exportStar(n(55866),t),r.__exportStar(n(54943),t),r.__exportStar(n(75278),t),r.__exportStar(n(64622),t)},75278:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(64983).__exportStar(n(21997),t)},21997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;t.IWatch=class{}},96903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;const r=n(64622);t.toMiliseconds=function(e){return e*r.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/r.ONE_THOUSAND)}},35004:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=function(e){return new Promise((t=>{setTimeout((()=>{t(!0)}),e)}))}},55866:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(64983);r.__exportStar(n(35004),t),r.__exportStar(n(96903),t)},54943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class n{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error("Watch already started for label: ".concat(e));this.timestamps.set(e,{started:Date.now()})}stop(e){const t=this.get(e);if("undefined"!==typeof t.elapsed)throw new Error("Watch already stopped for label: ".concat(e));const n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){const t=this.timestamps.get(e);if("undefined"===typeof t)throw new Error("No timestamp found for label: ".concat(e));return t}elapsed(e){const t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=n,t.default=n},64983:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>w,__asyncGenerator:()=>v,__asyncValues:()=>E,__await:()=>b,__awaiter:()=>u,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>C,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>f,__extends:()=>a,__generator:()=>d,__importDefault:()=>P,__importStar:()=>k,__makeTemplateObject:()=>x,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArrays:()=>y,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function P(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},41464:(e,t,n)=>{"use strict";n.d(t,{AW:()=>w,O6:()=>_t,rV:()=>P,gn:()=>pe,H1:()=>oe,hF:()=>se,WG:()=>R,pe:()=>M,m$:()=>I,vB:()=>F,HI:()=>B,E0:()=>he,Gq:()=>ue,$0:()=>ne,Z4:()=>le,Bv:()=>Ae,Au:()=>A,jd:()=>O,gu:()=>y,D:()=>ee,Z7:()=>Ke,cO:()=>ve,_H:()=>be,fc:()=>Ue,D6:()=>Ve,Hh:()=>ge,Ym:()=>j,rj:()=>N,jU:()=>X,gp:()=>ze,rF:()=>xt,Bw:()=>fe,UG:()=>J,Gg:()=>St,xW:()=>nt,b$:()=>$,Ih:()=>Qe,h1:()=>rt,Q8:()=>U,o8:()=>Je,qt:()=>Ze,Dd:()=>at,$t:()=>mt,nf:()=>bt,Q0:()=>ft,in:()=>ut,p8:()=>vt,sI:()=>Et,al:()=>wt,L5:()=>Ye,EJ:()=>ht,Z2:()=>dt,PM:()=>pt,hH:()=>gt,ON:()=>Pt,n:()=>lt,JT:()=>yt,M_:()=>$e,jv:()=>tt,KC:()=>ae,eG:()=>me,fK:()=>We,IP:()=>ie,DQ:()=>g,iP:()=>de,M:()=>qe,he:()=>Te,uw:()=>Ct,Ll:()=>L,EN:()=>D});var r=n(88751),a=n(73071),i=n(4953),o=n(68335),s=n(28257),c=n(69637),l=n(87722),u=n(84791),d=n(26678),p=n(72071),f=n(67562);n(75037);const h={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}},m=":";function g(e){const[t,n]=e.split(m);return{namespace:t,reference:n}}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=[];return Object.keys(e).forEach((r=>{if(t.length&&!t.includes(r))return;const a=e[r];n.push(...a.accounts)})),n}function b(e,t){return e.includes(":")?[e]:t.chains||[]}const v="base10",w="base16",E="base64pad",x="utf8",k=0,P=1,S=0,C=1,T=12,_=32;function A(){const e=s.Au();return{privateKey:(0,c.BB)(e.secretKey,w),publicKey:(0,c.BB)(e.publicKey,w)}}function O(){const e=(0,i.randomBytes)(_);return(0,c.BB)(e,w)}function I(e,t){const n=s.gi((0,c.mL)(e,w),(0,c.mL)(t,w),!0),r=new a.t(o.mE,n).expand(_);return(0,c.BB)(r,w)}function j(e){const t=(0,o.vp)((0,c.mL)(e,w));return(0,c.BB)(t,w)}function N(e){const t=(0,o.vp)((0,c.mL)(e,x));return(0,c.BB)(t,w)}function R(e){return Number((0,c.BB)(e,v))}function B(e){const t=function(e){return(0,c.mL)("".concat(e),v)}(typeof e.type<"u"?e.type:k);if(R(t)===P&&typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");const n=typeof e.senderPublicKey<"u"?(0,c.mL)(e.senderPublicKey,w):void 0,a=typeof e.iv<"u"?(0,c.mL)(e.iv,w):(0,i.randomBytes)(T);return function(e){if(R(e.type)===P){if(typeof e.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return(0,c.BB)((0,c.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),E)}return(0,c.BB)((0,c.zo)([e.type,e.iv,e.sealed]),E)}({type:t,sealed:new r.OK((0,c.mL)(e.symKey,w)).seal(a,(0,c.mL)(e.message,x)),iv:a,senderPublicKey:n})}function M(e){const t=new r.OK((0,c.mL)(e.symKey,w)),{sealed:n,iv:a}=F(e.encoded),i=t.open(a,n);if(null===i)throw new Error("Failed to decrypt");return(0,c.BB)(i,x)}function F(e){const t=(0,c.mL)(e,E),n=t.slice(S,C),r=C;if(R(n)===P){const e=r+_,a=e+T,i=t.slice(r,e),o=t.slice(e,a);return{type:n,sealed:t.slice(a),iv:o,senderPublicKey:i}}const a=r+T,i=t.slice(r,a);return{type:n,sealed:t.slice(a),iv:i}}function L(e,t){const n=F(e);return D({type:R(n.type),senderPublicKey:typeof n.senderPublicKey<"u"?(0,c.BB)(n.senderPublicKey,w):void 0,receiverPublicKey:null===t||void 0===t?void 0:t.receiverPublicKey})}function D(e){const t=(null===e||void 0===e?void 0:e.type)||k;if(t===P){if(typeof(null===e||void 0===e?void 0:e.senderPublicKey)>"u")throw new Error("missing sender public key");if(typeof(null===e||void 0===e?void 0:e.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:t,senderPublicKey:null===e||void 0===e?void 0:e.senderPublicKey,receiverPublicKey:null===e||void 0===e?void 0:e.receiverPublicKey}}function U(e){return e.type===P&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}var z=Object.defineProperty,q=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,G=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&G(e,n,t[n]);if(q)for(var n of q(t))H.call(t,n)&&G(e,n,t[n]);return e};const V="ReactNative",Z={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},Y="js";function J(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}function $(){return!(0,d.getDocument)()&&!!(0,d.getNavigator)()&&navigator.product===V}function X(){return!J()&&!!(0,d.getNavigator)()}function Q(){return $()?Z.reactNative:J()?Z.node:X()?Z.browser:Z.unknown}function ee(){return(0,p.D)()||{name:"",description:"",url:"",icons:[""]}}function te(e,t,r){const a=function(){if(Q()===Z.reactNative&&typeof n.g<"u"&&typeof(null==n.g?void 0:n.g.Platform)<"u"){const{OS:e,Version:t}=n.g.Platform;return[e,t].join("-")}const e=(0,l.qY)();if(null===e)return"unknown";const t=e.os?e.os.replace(" ","").toLowerCase():"unknown";return"browser"===e.type?[t,e.name,e.version].join("-"):[t,e.version].join("-")}(),i=function(){var e;const t=Q();return t===Z.browser?[t,(null==(e=(0,d.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),[Y,r].join("-"),a,i].join("/")}function ne(e){let{protocol:t,version:n,relayUrl:r,sdkVersion:a,auth:i,projectId:o,useOnCloseEvent:s}=e;const c=r.split("?"),l={auth:i,ua:te(t,n,a),projectId:o,useOnCloseEvent:s||void 0},u=function(e,t){let n=f.parse(e);return n=K(K({},n),t),f.stringify(n)}(c[1]||"",l);return c[0]+"?"+u}function re(e,t){return e.filter((e=>t.includes(e))).length===e.length}function ae(e){return Object.fromEntries(e.entries())}function ie(e){return new Map(Object.entries(e))}function oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.FIVE_MINUTES,t=arguments.length>1?arguments[1]:void 0;const n=(0,u.toMiliseconds)(e||u.FIVE_MINUTES);let r,a,i;return{resolve:e=>{i&&r&&(clearTimeout(i),r(e))},reject:e=>{i&&a&&(clearTimeout(i),a(e))},done:()=>new Promise(((e,o)=>{i=setTimeout((()=>{o(new Error(t))}),n),r=e,a=o}))}}function se(e,t,n){return new Promise((async(r,a)=>{const i=setTimeout((()=>a(new Error(n))),t);try{r(await e)}catch(o){a(o)}clearTimeout(i)}))}function ce(e,t){if("string"==typeof t&&t.startsWith("".concat(e,":")))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw new Error('Value must be "string" for expirer target type: topic');return"topic:".concat(t)}if("id"===e.toLowerCase()){if("number"!=typeof t)throw new Error('Value must be "number" for expirer target type: id');return"id:".concat(t)}throw new Error("Unknown expirer target type: ".concat(e))}function le(e){return ce("topic",e)}function ue(e){return ce("id",e)}function de(e){const[t,n]=e.split(":"),r={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof n)r.topic=n;else{if("id"!==t||!Number.isInteger(Number(n)))throw new Error("Invalid target, expected id:number or topic:string, got ".concat(t,":").concat(n));r.id=Number(n)}return r}function pe(e,t){return(0,u.fromMiliseconds)((t||Date.now())+(0,u.toMiliseconds)(e))}function fe(e){return Date.now()>=(0,u.toMiliseconds)(e)}function he(e,t){return"".concat(e).concat(t?":".concat(t):"")}function me(){return[...new Set([...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]])]}async function ge(e){let{id:t,topic:r,wcDeepLink:a}=e;try{if(!a)return;const e="string"==typeof a?JSON.parse(a):a;let i=null===e||void 0===e?void 0:e.href;if("string"!=typeof i)return;i.endsWith("/")&&(i=i.slice(0,-1));const o="".concat(i,"/wc?requestId=").concat(t,"&sessionTopic=").concat(r),s=Q();s===Z.browser?o.startsWith("https://")?window.open(o,"_blank","noreferrer noopener"):window.open(o,"_self","noreferrer noopener"):s===Z.reactNative&&typeof(null==n.g?void 0:n.g.Linking)<"u"&&await n.g.Linking.openURL(o)}catch(i){console.error(i)}}const ye="irn";function be(e){return(null===e||void 0===e?void 0:e.relay)||{protocol:ye}}function ve(e){const t=h[e];if(typeof t>"u")throw new Error("Relay Protocol not supported: ".concat(e));return t}var we=Object.defineProperty,Ee=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Pe=(e,t,n)=>t in e?we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Se=(e,t)=>{for(var n in t||(t={}))xe.call(t,n)&&Pe(e,n,t[n]);if(Ee)for(var n of Ee(t))ke.call(t,n)&&Pe(e,n,t[n]);return e};function Ce(e){const t={},n="relay"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-");return Object.keys(e).forEach((r=>{if(r.startsWith(n)){const a=r.replace(n,""),i=e[r];t[a]=i}})),t}function Te(e){const t=e.indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,r=e.substring(0,t),a=e.substring(t+1,n).split("@"),i=typeof n<"u"?e.substring(n):"",o=f.parse(i);return{protocol:r,topic:_e(a[0]),version:parseInt(a[1],10),symKey:o.symKey,relay:Ce(o)}}function _e(e){return e.startsWith("//")?e.substring(2):e}function Ae(e){return"".concat(e.protocol,":").concat(e.topic,"@").concat(e.version,"?")+f.stringify(Se({symKey:e.symKey},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";const n={};return Object.keys(e).forEach((r=>{const a="relay"+t+r;e[r]&&(n[a]=e[r])})),n}(e.relay)))}var Oe=Object.defineProperty,Ie=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Me=(e,t,n)=>t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fe=(e,t)=>{for(var n in t||(t={}))Re.call(t,n)&&Me(e,n,t[n]);if(Ne)for(var n of Ne(t))Be.call(t,n)&&Me(e,n,t[n]);return e},Le=(e,t)=>Ie(e,je(t));function De(e){const t=[];return e.forEach((e=>{const[n,r]=e.split(":");t.push("".concat(n,":").concat(r))})),t}function Ue(e,t){const n=ut(e,t);if(n)throw new Error(n.message);const r={};for(const[a,i]of Object.entries(e))r[a]={methods:i.methods,events:i.events,chains:i.accounts.map((e=>"".concat(e.split(":")[0],":").concat(e.split(":")[1])))};return r}function ze(e){return e.includes(":")}function qe(e){return ze(e)?e.split(":")[0]:e}function We(e){var t,n,r;const a={};if(!Ye(e))return a;for(const[i,o]of Object.entries(e)){const e=ze(i)?[i]:o.chains,s=o.methods||[],c=o.events||[],l=qe(i);a[l]=Le(Fe({},a[l]),{chains:me(e,null==(t=a[l])?void 0:t.chains),methods:me(s,null==(n=a[l])?void 0:n.methods),events:me(c,null==(r=a[l])?void 0:r.events)})}return a}const He={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Ge={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function Ke(e,t){const{message:n,code:r}=Ge[e];return{message:t?"".concat(n," ").concat(t):n,code:r}}function Ve(e,t){const{message:n,code:r}=He[e];return{message:t?"".concat(n," ").concat(t):n,code:r}}function Ze(e,t){return!!Array.isArray(e)&&(!(typeof t<"u"&&e.length)||e.every(t))}function Ye(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function Je(e){return typeof e>"u"}function $e(e,t){return!(!t||!Je(e))||"string"==typeof e&&!!e.trim().length}function Xe(e,t){return!(!t||!Je(e))||"number"==typeof e&&!isNaN(e)}function Qe(e,t){const{requiredNamespaces:n}=t,r=Object.keys(e.namespaces),a=Object.keys(n);let i=!0;return!!re(a,r)&&(r.forEach((t=>{const{accounts:r,methods:a,events:o}=e.namespaces[t],s=De(r),c=n[t];(!re(b(t,c),s)||!re(c.methods,a)||!re(c.events,o))&&(i=!1)})),i)}function et(e){return!(!$e(e,!1)||!e.includes(":"))&&2===e.split(":").length}function tt(e){if($e(e,!1))try{return typeof new URL(e)<"u"}catch{return!1}return!1}function nt(e){var t;return null==(t=null===e||void 0===e?void 0:e.proposer)?void 0:t.publicKey}function rt(e){return null===e||void 0===e?void 0:e.topic}function at(e,t){let n=null;return $e(null===e||void 0===e?void 0:e.publicKey,!1)||(n=Ke("MISSING_OR_INVALID","".concat(t," controller public key should be a string"))),n}function it(e){let t=!0;return Ze(e)?e.length&&(t=e.every((e=>$e(e,!1)))):t=!1,t}function ot(e,t,n){let r=null;return Object.entries(e).forEach((e=>{let[a,i]=e;if(r)return;const o=function(e,t,n){let r=null;return Ze(t)&&t.length?t.forEach((e=>{r||et(e)||(r=Ve("UNSUPPORTED_CHAINS","".concat(n,", chain ").concat(e,' should be a string and conform to "namespace:chainId" format')))})):et(e)||(r=Ve("UNSUPPORTED_CHAINS","".concat(n,', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }'))),r}(a,b(a,i),"".concat(t," ").concat(n));o&&(r=o)})),r}function st(e,t){let n=null;return Ze(e)?e.forEach((e=>{n||function(e){if($e(e,!1)&&e.includes(":")){const t=e.split(":");if(3===t.length){const e=t[0]+":"+t[1];return!!t[2]&&et(e)}}return!1}(e)||(n=Ve("UNSUPPORTED_ACCOUNTS","".concat(t,", account ").concat(e,' should be a string and conform to "namespace:chainId:address" format')))})):n=Ve("UNSUPPORTED_ACCOUNTS","".concat(t,', accounts should be an array of strings conforming to "namespace:chainId:address" format')),n}function ct(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=function(e,t){let n=null;return it(null===e||void 0===e?void 0:e.methods)?it(null===e||void 0===e?void 0:e.events)||(n=Ve("UNSUPPORTED_EVENTS","".concat(t,", events should be an array of strings or empty array for no events"))):n=Ve("UNSUPPORTED_METHODS","".concat(t,", methods should be an array of strings or empty array for no methods")),n}(e,"".concat(t,", namespace"));r&&(n=r)})),n}function lt(e,t,n){let r=null;if(e&&Ye(e)){const a=ct(e,t);a&&(r=a);const i=ot(e,t,n);i&&(r=i)}else r=Ke("MISSING_OR_INVALID","".concat(t,", ").concat(n," should be an object with data"));return r}function ut(e,t){let n=null;if(e&&Ye(e)){const r=ct(e,t);r&&(n=r);const a=function(e,t){let n=null;return Object.values(e).forEach((e=>{if(n)return;const r=st(null===e||void 0===e?void 0:e.accounts,"".concat(t," namespace"));r&&(n=r)})),n}(e,t);a&&(n=a)}else n=Ke("MISSING_OR_INVALID","".concat(t,", namespaces should be an object with data"));return n}function dt(e){return $e(e.protocol,!0)}function pt(e,t){let n=!1;return t&&!e?n=!0:e&&Ze(e)&&e.length&&e.forEach((e=>{n=dt(e)})),n}function ft(e){return"number"==typeof e}function ht(e){return typeof e<"u"&&null!==typeof e}function mt(e){return!(!e||"object"!=typeof e||!e.code||!Xe(e.code,!1)||!e.message||!$e(e.message,!1))}function gt(e){return!(Je(e)||!$e(e.method,!1))}function yt(e){return!(Je(e)||Je(e.result)&&Je(e.error)||!Xe(e.id,!1)||!$e(e.jsonrpc,!1))}function bt(e){return!(Je(e)||!$e(e.name,!1))}function vt(e,t){return!(!et(t)||!function(e){const t=[];return Object.values(e).forEach((e=>{t.push(...De(e.accounts))})),t}(e).includes(t))}function wt(e,t,n){return!!$e(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{De(e.accounts).includes(t)&&n.push(...e.methods)})),n}(e,t).includes(n)}function Et(e,t,n){return!!$e(n,!1)&&function(e,t){const n=[];return Object.values(e).forEach((e=>{De(e.accounts).includes(t)&&n.push(...e.events)})),n}(e,t).includes(n)}function xt(e,t,n){let r=null;const a=function(e){const t={};return Object.keys(e).forEach((n=>{var r;n.includes(":")?t[n]=e[n]:null==(r=e[n].chains)||r.forEach((r=>{t[r]={methods:e[n].methods,events:e[n].events}}))})),t}(e),i=function(e){const t={};return Object.keys(e).forEach((n=>{if(n.includes(":"))t[n]=e[n];else{const r=De(e[n].accounts);null===r||void 0===r||r.forEach((r=>{t[r]={accounts:e[n].accounts.filter((e=>e.includes("".concat(r,":")))),methods:e[n].methods,events:e[n].events}}))}})),t}(t),o=Object.keys(a),s=Object.keys(i),c=kt(Object.keys(e)),l=kt(Object.keys(t)),u=c.filter((e=>!l.includes(e)));return u.length&&(r=Ke("NON_CONFORMING_NAMESPACES","".concat(n," namespaces keys don't satisfy requiredNamespaces.\n Required: ").concat(u.toString(),"\n Received: ").concat(Object.keys(t).toString()))),re(o,s)||(r=Ke("NON_CONFORMING_NAMESPACES","".concat(n," namespaces chains don't satisfy required namespaces.\n Required: ").concat(o.toString(),"\n Approved: ").concat(s.toString()))),Object.keys(t).forEach((e=>{if(!e.includes(":")||r)return;const a=De(t[e].accounts);a.includes(e)||(r=Ke("NON_CONFORMING_NAMESPACES","".concat(n," namespaces accounts don't satisfy namespace accounts for ").concat(e,"\n Required: ").concat(e,"\n Approved: ").concat(a.toString())))})),o.forEach((e=>{r||(re(a[e].methods,i[e].methods)?re(a[e].events,i[e].events)||(r=Ke("NON_CONFORMING_NAMESPACES","".concat(n," namespaces events don't satisfy namespace events for ").concat(e))):r=Ke("NON_CONFORMING_NAMESPACES","".concat(n," namespaces methods don't satisfy namespace methods for ").concat(e)))})),r}function kt(e){return[...new Set(e.map((e=>e.includes(":")?e.split(":")[0]:e)))]}function Pt(e,t){return Xe(e,!1)&&e<=t.max&&e>=t.min}function St(){const e=Q();return new Promise((t=>{switch(e){case Z.browser:t(function(){var e;return X()&&(null===(e=navigator)||void 0===e?void 0:e.onLine)}());break;case Z.reactNative:t(async function(){if($()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo){const e=await(null==n.g?void 0:n.g.NetInfo.fetch());return null===e||void 0===e?void 0:e.isConnected}return!0}());break;case Z.node:default:t(!0)}}))}function Ct(e){switch(Q()){case Z.browser:!function(e){X()&&(window.addEventListener("online",(()=>e(!0))),window.addEventListener("offline",(()=>e(!1))))}(e);break;case Z.reactNative:!function(e){var t;$()&&typeof n.g<"u"&&null!=n.g&&n.g.NetInfo&&(null===(t=n.g)||void 0===t||t.NetInfo.addEventListener((t=>e(null===t||void 0===t?void 0:t.isConnected))))}(e);case Z.node:}}const Tt={};class _t{static get(e){return Tt[e]}static set(e,t){Tt[e]=t}static delete(e){delete Tt[e]}}},67562:(e,t,n)=>{"use strict";const r=n(25017),a=n(19557),i=n(82486),o=n(90823),s=Symbol("encodeFragmentIdentifier");function c(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?a(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function p(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function f(e){const t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const a="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!a&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const o=a||i?n.split(e.arrayFormatSeparator).map((t=>u(t,e))):null===n?n:u(n,e);r[t]=o};case"bracket-separator":return(t,n,r)=>{const a=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!a)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>u(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const a of e.split("&")){if(""===a)continue;let[e,o]=i(t.decode?a.replace(/\+/g," "):a,"=");o=void 0===o?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?o:u(o,t),n(u(e,t),o,r)}for(const a of Object.keys(r)){const e=r[a];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=h(e[n],t);else r[a]=h(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=f,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const a=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",a,"]"].join("")]:[...n,[l(t,e),"[",l(a,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,a)=>void 0===a||e.skipNull&&null===a||e.skipEmptyString&&""===a?r:(a=null===a?"":a,0===r.length?[[l(n,e),t,l(a,e)].join("")]:[[r,l(a,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),a={};for(const o of Object.keys(e))n(o)||(a[o]=e[o]);const i=Object.keys(a);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const a=e[n];return void 0===a?"":null===a?l(n,t):Array.isArray(a)?0===a.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":a.reduce(r(n),[]).join("&"):l(n,t)+"="+l(a,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(f(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=p(e.url).split("?")[0]||"",a=t.extract(e.url),i=t.parse(a,{sort:!1}),o=Object.assign(i,e.query);let c=t.stringify(o,n);c&&(c="?".concat(c));let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier)),"".concat(r).concat(c).concat(u)},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:a,query:i,fragmentIdentifier:c}=t.parseUrl(e,r);return t.stringifyUrl({url:a,query:o(i,n),fragmentIdentifier:c},r)},t.exclude=(e,n,r)=>{const a=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,a,r)}},26678:(e,t)=>{"use strict";function n(e){let t;return"undefined"!==typeof window&&"undefined"!==typeof window[e]&&(t=window[e]),t}function r(e){const t=n(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},72071:(e,t,n)=>{"use strict";t.D=void 0;const r=n(26678);t.D=function(){let e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(i){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;rt.getAttribute(e))).filter((e=>!!e&&n.includes(e)));if(r.length&&r){const e=t.getAttribute("content");if(e)return e}}return""}const a=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),r=[];for(let e=0;e-1){const e=a.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const r=t.pathname.split("/");r.pop();n+=r.join("/")+"/"+e}r.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;r.push(n)}else r.push(e)}}return r}(),name:a}}},30457:(e,t,n)=>{e.exports=function(e){const{Buffer:t}=n(38173),r="api.js: ",a=this,i=n(91572),o=n(21711),s=n(36974),c=new(n(68547)),{attributes:l,showAttributes:u,showAttributeErrors:d,showRuleDependencies:p}=n(81537),f=n(51661),h=function(e,t,n){const r=''),a="",o=''),s="";let c,l="";for(;Array.isArray(e)&&0!==e.length;){if("number"!==typeof t)throw new Error("abnfToHtml: beg must be type number");if(t>=e.length)break;c="number"!==typeof n||t+n>=e.length?e.length:t+n;let u=0;for(let n=t;n=32&&t<=126)switch(1===u?(l+=a,u=0):2===u&&(l+=s,u=0),t){case 32:l+=" ";break;case 60:l+="<";break;case 62:l+=">";break;case 38:l+="&";break;case 34:l+=""";break;case 39:l+="'";break;case 92:l+="\";break;default:l+=String.fromCharCode(t)}else 9===t||10===t||13===t?(0===u?(l+=r,u=1):2===u&&(l+=s+r,u=1),9===t&&(l+="TAB"),10===t&&(l+="LF"),13===t&&(l+="CR")):(0===u?(l+=o,u=2):1===u&&(l+=a+o,u=2),l+="\\x".concat(i.utils.charToHex(t)))}2===u&&(l+=s),1===u&&(l+=a);break}return l},m=function(e,t,n){let r="";for(let a=t;a=32&&t<=126)r+=String.fromCharCode(t);else switch(t){case 9:r+="\\t";break;case 10:r+="\\n";break;case 13:r+="\\r";break;default:r+="\\unknown"}}return r};let g,y=!1,b=!1,v=!1,w=!1,E=0;if(this.errors=[],t.isBuffer(e))this.chars=o.decode("BINARY",e);else if(Array.isArray(e))this.chars=e.slice();else{if("string"!==typeof e)throw new Error("".concat(r,"input source is not a string, byte Buffer or character array"));this.chars=o.decode("STRING",e)}this.sabnf=o.encode("STRING",this.chars),this.scan=function(e,t){this.lines=s(this.chars,this.errors,e,t),y=!0},this.parse=function(e,t){if(!y)throw new Error("".concat(r,"grammar not scanned"));c.syntax(this.chars,this.lines,this.errors,e,t),b=!0},this.translate=function(){if(!b)throw new Error("".concat(r,"grammar not scanned and parsed"));const e=c.semantic(this.chars,this.lines,this.errors);0===this.errors.length&&(this.rules=e.rules,this.udts=e.udts,g=e.lineMap,v=!0)},this.attributes=function(){if(!v)throw new Error("".concat(r,"grammar not scanned, parsed and translated"));return E=l(this.rules,this.udts,g,this.errors),w=!0,E},this.generate=function(e){if(this.lines=s(this.chars,this.errors,e),this.errors.length)return;if(c.syntax(this.chars,this.lines,this.errors,e),this.errors.length)return;const t=c.semantic(this.chars,this.lines,this.errors);this.errors.length||(this.rules=t.rules,this.udts=t.udts,g=t.lineMap,E=l(this.rules,this.udts,g,this.errors),w=!0)},this.displayRules=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"index";if(!v)throw new Error("".concat(r,"grammar not scanned, parsed and translated"));return f(this.rules,this.udts,e)},this.displayRuleDependencies=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"index";if(!w)throw new Error("".concat(r,"no attributes - must be preceeded by call to attributes()"));return p(e)},this.displayAttributes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"index";if(!w)throw new Error("".concat(r,"no attributes - must be preceeded by call to attributes()"));return E&&d(e),u(e)},this.displayAttributeErrors=function(){if(!w)throw new Error("".concat(r,"no attributes - must be preceeded by call to attributes()"));return d()},this.toSource=function(e){if(!w)throw new Error("".concat(r,"can't generate parser source - must be preceeded by call to attributes()"));if(E)throw new Error("".concat(r,"can't generate parser source - attributes have ").concat(E," errors"));return c.generateSource(this.chars,this.lines,this.rules,this.udts,e)},this.toObject=function(){if(!w)throw new Error("".concat(r,"can't generate parser source - must be preceeded by call to attributes()"));if(E)throw new Error("".concat(r,"can't generate parser source - attributes have ").concat(E," errors"));return c.generateObject(this.sabnf,this.rules,this.udts)},this.errorsToAscii=function(){return function(e,t,n){let r,a,i,o;return r="",e.forEach((e=>{a=t[e.line],r+="".concat(a.lineNo,": "),r+="".concat(a.beginChar,": "),r+="".concat(e.char-a.beginChar,": "),i=a.beginChar,o=e.char-a.beginChar,r+=m(n,i,o),r+=" >> ",i=e.char,o=a.beginChar+a.length-e.char,r+=m(n,i,o),r+="\n",r+="".concat(a.lineNo,": "),r+="".concat(a.beginChar,": "),r+="".concat(e.char-a.beginChar,": "),r+="error: ",r+=e.msg,r+="\n"})),r}(this.errors,this.lines,this.chars)},this.errorsToHtml=function(e){return function(e,t,n,r){const[a]=i;let o="";const s='»');return o+='

\n'),r&&"string"===typeof r&&(o+="\n")),o+="\n",e.forEach((e=>{let r,a,c,l,u,d="",p="";0===t.length?(u=s,a=0):(r=t[e.line],c=r.beginChar,e.char>c&&(d=h(n,c,e.char-c)),c=e.char,l=r.beginChar+r.length,c",o+=""),o+="\n",o+="",o+='"),o+="\n")})),o+="
".concat(r,"
line
no.
line
offset
error
offset

text
".concat(e.line,"").concat(r.beginChar,"").concat(a,"").concat(u,"
↑: '.concat(i.utils.stringToAsciiHtml(e.msg),"

\n",o}(this.errors,this.lines,this.chars,e)},this.linesToAscii=function(){return function(e){let t="Annotated Input Grammar";return e.forEach((e=>{t+="\n",t+="line no: ".concat(e.lineNo),t+=" : char index: ".concat(e.beginChar),t+=" : length: ".concat(e.length),t+=" : abnf: ".concat(m(a.chars,e.beginChar,e.length))})),t+="\n",t}(this.lines)},this.linesToHtml=function(){return function(e){let t="";return t+='\n'),t+="\n"),t+="",t+="",t+="\n",e.forEach((e=>{t+="",t+="",t+="\n"})),t+="
".concat("Annotated Input Grammar","
line
no.
first
char

length

text
".concat(e.lineNo),t+="".concat(e.beginChar),t+="".concat(e.length),t+="".concat(h(a.chars,e.beginChar,e.length)),t+="
\n",t}(this.lines)}}},81537:(e,t,n)=>{e.exports=function(){const e=n(7856),{ruleAttributes:t,showAttributes:r,showAttributeErrors:a}=n(87970),{ruleDependencies:i,showRuleDependencies:o}=n(62820);class s{constructor(e,t){this.rules=e,this.udts=t,this.ruleCount=e.length,this.udtCount=t.length,this.startRule=0,this.dependenciesComplete=!1,this.attributesComplete=!1,this.isMutuallyRecursive=!1,this.ruleIndexes=this.indexArray(this.ruleCount),this.ruleAlphaIndexes=this.indexArray(this.ruleCount),this.ruleTypeIndexes=this.indexArray(this.ruleCount),this.udtIndexes=this.indexArray(this.udtCount),this.udtAlphaIndexes=this.indexArray(this.udtCount),this.attrsErrorCount=0,this.attrs=[],this.attrsErrors=[],this.attrsWorking=[],this.ruleDeps=[];for(let n=0;n0)for(let n=0;n0)for(let n=0;nthis.rules[t].lower?1:0}compUdtsAlpha(e,t){return this.udts[e].lowerthis.udts[t].lower?1:0}compRulesType(e,t){return this.ruleDeps[e].recursiveTypethis.ruleDeps[t].recursiveType?1:0}compRulesGroup(t,n){if(this.ruleDeps[t].recursiveType===e.ATTR_MR&&this.ruleDeps[n].recursiveType===e.ATTR_MR){if(this.ruleDeps[t].groupNumberthis.ruleDeps[n].groupNumber)return 1}return 0}}return{attributes:function(){let e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const n=new s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]);return i(n),t(n),n.attrsErrorCount&&e.push({line:0,char:0,msg:"".concat(n.attrsErrorCount," attribute errors")}),n.attrsErrorCount},showAttributes:r,showAttributeErrors:a,showRuleDependencies:o}}()},68547:(e,t,n)=>{e.exports=function(){const e=n(91572),t=e.ids,r=new(n(14558)),a=new(n(12092)),i=new(n(10568)),o=new e.parser;o.ast=new e.ast,o.callbacks=r.callbacks,o.ast.callbacks=a.callbacks;const s=function(e,t,n){if(t<0||t>=n)return-1;for(let r=0;r=e[r].beginChar&&t{const n=[],r=[];let a=0;e.opcodes.forEach((e=>{e.type===t.ALT&&1===e.children.length||e.type===t.CAT&&1===e.children.length||e.type===t.REP&&1===e.min&&1===e.max?r.push(null):(r.push(a),n.push(e),a+=1)})),r.push(a),n.forEach((e=>{if(e.type===t.ALT||e.type===t.CAT)for(let t=0;t{f.push(e.lower),u+=e.opcodes.length,e.opcodes.forEach((e=>{switch(e.type){case t.ALT:m+=1;break;case t.CAT:g+=1;break;case t.RNM:y+=1;break;case t.UDT:b+=1;break;case t.REP:v+=1;break;case t.AND:w+=1;break;case t.NOT:E+=1;break;case t.BKA:C+=1;break;case t.BKN:T+=1;break;case t.BKR:S+=1;break;case t.ABG:_+=1;break;case t.AEN:A+=1;break;case t.TLS:for(x+=1,o=0;op&&(p=e.string[o]);break;case t.TBS:for(k+=1,o=0;op&&(p=e.string[o]);break;case t.TRG:P+=1,e.minp&&(p=e.max);break;default:throw new Error("generateSource: unrecognized opcode")}}))})),f.sort(),a.length>0&&(a.forEach((e=>{h.push(e.lower)})),h.sort());let O,I="module.exports";return i&&"string"===typeof i&&(I="let ".concat(i)),l+="// copyright: Copyright (c) 2023 Lowell D. Thomas, all rights reserved
\n",l+="// license: BSD-2-Clause (https://opensource.org/licenses/BSD-2-Clause)
\n",l+="//\n",l+="// Generated by apg-js, Version 4.2.1 [apg-js](https://github.com/ldthomas/apg-js)\n",l+="".concat(I," = function grammar(){\n"),l+=" // ```\n",l+=" // SUMMARY\n",l+=" // rules = ".concat(r.length,"\n"),l+=" // udts = ".concat(a.length,"\n"),l+=" // opcodes = ".concat(u,"\n"),l+=" // --- ABNF original opcodes\n",l+=" // ALT = ".concat(m,"\n"),l+=" // CAT = ".concat(g,"\n"),l+=" // REP = ".concat(v,"\n"),l+=" // RNM = ".concat(y,"\n"),l+=" // TLS = ".concat(x,"\n"),l+=" // TBS = ".concat(k,"\n"),l+=" // TRG = ".concat(P,"\n"),l+=" // --- SABNF superset opcodes\n",l+=" // UDT = ".concat(b,"\n"),l+=" // AND = ".concat(w,"\n"),l+=" // NOT = ".concat(E,"\n"),l+=" // BKA = ".concat(C,"\n"),l+=" // BKN = ".concat(T,"\n"),l+=" // BKR = ".concat(S,"\n"),l+=" // ABG = ".concat(_,"\n"),l+=" // AEN = ".concat(A,"\n"),l+=" // characters = [",l+=x+k+P===0?" none defined ]":"".concat(d," - ").concat(p,"]"),b>0&&(l+=" + user defined"),l+="\n",l+=" // ```\n",l+=" /* OBJECT IDENTIFIER (for internal parser use) */\n",l+=" this.grammarObject = 'grammarObject';\n",l+="\n",l+=" /* RULES */\n",l+=" this.rules = [];\n",r.forEach(((e,t)=>{let n=" this.rules[";n+=t,n+="] = {name: '",n+=e.name,n+="', lower: '",n+=e.lower,n+="', index: ",n+=e.index,n+=", isBkr: ",n+=e.isBkr,n+="};\n",l+=n})),l+="\n",l+=" /* UDTS */\n",l+=" this.udts = [];\n",a.length>0&&a.forEach(((e,t)=>{let n=" this.udts[";n+=t,n+="] = {name: '",n+=e.name,n+="', lower: '",n+=e.lower,n+="', index: ",n+=e.index,n+=", empty: ",n+=e.empty,n+=", isBkr: ",n+=e.isBkr,n+="};\n",l+=n})),l+="\n",l+=" /* OPCODES */\n",r.forEach(((e,n)=>{n>0&&(l+="\n"),l+=" /* ".concat(e.name," */\n"),l+=" this.rules[".concat(n,"].opcodes = [];\n"),e.opcodes.forEach(((e,i)=>{let o;switch(e.type){case t.ALT:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", children: [").concat(e.children.toString(),"]};// ALT\n");break;case t.CAT:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", children: [").concat(e.children.toString(),"]};// CAT\n");break;case t.RNM:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", index: ").concat(e.index,"};// RNM(").concat(r[e.index].name,")\n");break;case t.BKR:e.index>=r.length?(s=a[e.index-r.length].name,c=a[e.index-r.length].lower):(s=r[e.index].name,c=r[e.index].lower),o="%i",e.bkrCase===t.BKR_MODE_CS&&(o="%s"),e.bkrMode===t.BKR_MODE_UM?o+="%u":o+="%p",s=o+s,l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", index: ").concat(e.index,", lower: '").concat(c,"'")+", bkrCase: ".concat(e.bkrCase,", bkrMode: ").concat(e.bkrMode,"};// BKR(\\").concat(s,")\n");break;case t.UDT:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", empty: ").concat(e.empty,", index: ").concat(e.index,"};// UDT(").concat(a[e.index].name,")\n");break;case t.REP:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", min: ").concat(e.min,", max: ").concat(e.max,"};// REP\n");break;case t.AND:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,"};// AND\n");break;case t.NOT:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,"};// NOT\n");break;case t.ABG:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,"};// ABG(%^)\n");break;case t.AEN:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,"};// AEN(%$)\n");break;case t.BKA:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,"};// BKA\n");break;case t.BKN:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,"};// BKN\n");break;case t.TLS:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", string: [").concat(e.string.toString(),"]};// TLS\n");break;case t.TBS:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", string: [").concat(e.string.toString(),"]};// TBS\n");break;case t.TRG:l+=" this.rules[".concat(n,"].opcodes[").concat(i,"] = {type: ").concat(e.type,", min: ").concat(e.min,", max: ").concat(e.max,"};// TRG\n");break;default:throw new Error("parser.js: ~143: unrecognized opcode")}}))})),l+="\n",l+=" // The `toString()` function will display the original grammar file(s) that produced these opcodes.\n",l+=" this.toString = function toString(){\n",l+=' let str = "";\n',n.forEach((t=>{const n=t.beginChar+t.length;O="",l+=' str += "';for(let r=t.beginChar;r{a.push(e.lower)})),a.sort(),n.length>0&&(n.forEach((e=>{i.push(e.lower)})),i.sort()),r.callbacks=[],a.forEach((e=>{r.callbacks[e]=!1})),n.length>0&&i.forEach((e=>{r.callbacks[e]=!1})),r.rules=t,r.udts=n,r.toString=function(){return o},r}}},87970:(e,t,n)=>{e.exports=function(){const e=n(7856);let t=null;function r(e){return!(e.left||e.nested||e.right||e.cyclic)&&e.empty}function a(e){return!!(e.left||e.nested||e.right||e.cyclic)}function i(e,t,n,i){let s=0;const c=t[n],l=c.children.length,u=[];for(s=0;s=0;n-=1){if(e[n].right)return!0;if(!e[n].empty)return!1}return!1}(u,l),i.nested=function(e,t){let n=0,i=0,o=0;for(n=0;n=0;n-=1)if(e[n].left&&!e[n].leaf)for(i=n-1;i>=0;i-=1)if(!r(e[i]))return!0;for(n=0;n=e.ruleCount?(r.empty=e.udts[a.index-e.ruleCount].empty,r.finite=!0):(s(e,a.index,r),r.left=!1,r.nested=!1,r.right=!1,r.cyclic=!1)}(t,n,r,a);break;case e.AND:case e.NOT:case e.BKA:case e.BKN:o(t,n,r+1,a),a.empty=!0;break;case e.TLS:a.empty=!n[r].string.length,a.finite=!0,a.cyclic=!1;break;case e.TBS:case e.TRG:a.empty=!1,a.finite=!0,a.cyclic=!1;break;case e.UDT:a.empty=c.empty,a.finite=!0,a.cyclic=!1;break;case e.ABG:case e.AEN:a.empty=!0,a.finite=!0,a.cyclic=!1;break;default:throw new Error("unknown opcode type: ".concat(c))}}function s(e,t,n){const r=e.attrsWorking[t];r.isComplete?e.attrCopy(n,r):r.isOpen?t===e.startRule?t===e.startRule&&(n.left=!0,n.right=!0,n.cyclic=!0,n.leaf=!0):n.finite=!0:(r.isOpen=!0,o(e,r.rule.opcodes,0,n),r.left=n.left,r.right=n.right,r.nested=n.nested,r.empty=n.empty,r.finite=n.finite,r.cyclic=n.cyclic,r.leaf=!1,r.isOpen=!1,r.isComplete=!0)}const c=e=>e?"t":"f",l=e=>e?"e":"f",u=(n,r,a,i)=>{let o="".concat(n,":").concat(r,":");return o+="".concat(l(a.left)," "),o+="".concat(c(a.nested)," "),o+="".concat(c(a.right)," "),o+="".concat(l(a.cyclic)," "),o+="".concat(a.finite?"t":"e"," "),o+="".concat(c(a.empty),":"),o+="".concat(t.typeToString(i.recursiveType),":"),o+=i.recursiveType===e.ATTR_MR?i.groupNumber:"-",o+=":".concat(a.rule.name,"\n"),o},d=()=>{let e="LEGEND - t=true, f=false, e=error\n";return e+="sequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n","LEGEND - t=true, f=false, e=error\nsequence:rule index:left nested right cyclic finite empty:type:group number:rule name\n"},p=e=>{let n=0,r=0,a=null,i=null,o="",{ruleIndexes:s}=t;for(97===e?s=t.ruleAlphaIndexes:116===e&&(s=t.ruleTypeIndexes),n=0;n{t=e;let n=0,r=0;const a=t.attrGen();for(n=0;n0&&void 0!==arguments[0]?arguments[0]:"index";if(!t.attributesComplete)throw new Error("".concat("rule-attributes.js",":showAttributes: attributes not available"));let n="";const r="RULE ATTRIBUTES\n";return 97===e.charCodeAt(0)?(n+="alphabetical by rule name\n",n+=r,n+=d(),n+=p(97)):116===e.charCodeAt(0)?(n+="ordered by rule type\n",n+=r,n+=d(),n+=p(116)):(n+="ordered by rule index\n",n+=r,n+=d(),n+=p()),n},showAttributeErrors:()=>{let e=null,n=null,r="";if(r+="RULE ATTRIBUTES WITH ERRORS\n",r+=d(),t.attrsErrorCount)for(let a=0;a{e.exports=(()=>{const e=n(7856);let t=null;const r=(t,n,a,i)=>{let o=0,s=0;const c=n[a];i[a]=!0;const l=c.rule.opcodes;for(o=0;o0&&void 0!==arguments[0]?arguments[0]:null,n=0,r=0,a=0,i=0;const o=t.ruleCount-1,s=t.udtCount-1;let c="",l="";const u="=> ";let d=!1,p=null,{ruleIndexes:f}=t,{udtIndexes:h}=t;for(97===e?(f=t.ruleAlphaIndexes,h=t.udtAlphaIndexes):116===e&&(f=t.ruleTypeIndexes,h=t.udtAlphaIndexes),n=0;n-1?p.groupNumber:"-",l+=":"),l+=" ",c+="".concat(l+t.rules[f[n]].name,"\n"),d=!0,a=0,i=c.length,c+=l,r=0;r100&&r!==o&&(c+="\n".concat(l).concat(u),i=c.length);if(t.udtCount)for(r=0;r100&&r!==s&&(c+="\n".concat(l).concat(u),i=c.length);for(0===a&&(c+="=> \n"),!1===d&&(c+="\n"),d=!0,a=0,i=c.length,c+=l,r=0;r100&&r!==o&&(c+="\n".concat(l).concat(u),i=c.length);0===a&&(c+="<= \n"),!1===d&&(c+="\n"),c+="\n"}return c};return{ruleDependencies:n=>{t=n;let a=0,i=0,o=0,s=null,c=null,l=!1;t.dependenciesComplete=!1;const u=t.falseArray(t.ruleCount);for(a=0;a-1,t.ruleAlphaIndexes.sort(t.compRulesAlpha),t.ruleTypeIndexes.sort(t.compRulesAlpha),t.ruleTypeIndexes.sort(t.compRulesType),t.isMutuallyRecursive&&t.ruleTypeIndexes.sort(t.compRulesGroup),t.udtCount&&t.udtAlphaIndexes.sort(t.compUdtsAlpha),t.dependenciesComplete=!0},showRuleDependencies:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"index",n="RULE DEPENDENCIES(index:type:[group number:])\n";return n+="=> refers to rule names\n",n+="<= referenced by rule names\n",t.dependenciesComplete?(97===e.charCodeAt(0)?(n+="alphabetical by rule name\n",n+=a(97)):116===e.charCodeAt(0)?(n+="ordered by rule type\n",n+=a(116)):(n+="ordered by rule index\n",n+=a(null)),n):n}}})()},10568:e=>{e.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"File",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"BlankLine",lower:"blankline",index:1,isBkr:!1},this.rules[2]={name:"Rule",lower:"rule",index:2,isBkr:!1},this.rules[3]={name:"RuleLookup",lower:"rulelookup",index:3,isBkr:!1},this.rules[4]={name:"RuleNameTest",lower:"rulenametest",index:4,isBkr:!1},this.rules[5]={name:"RuleName",lower:"rulename",index:5,isBkr:!1},this.rules[6]={name:"RuleNameError",lower:"rulenameerror",index:6,isBkr:!1},this.rules[7]={name:"DefinedAsTest",lower:"definedastest",index:7,isBkr:!1},this.rules[8]={name:"DefinedAsError",lower:"definedaserror",index:8,isBkr:!1},this.rules[9]={name:"DefinedAs",lower:"definedas",index:9,isBkr:!1},this.rules[10]={name:"Defined",lower:"defined",index:10,isBkr:!1},this.rules[11]={name:"IncAlt",lower:"incalt",index:11,isBkr:!1},this.rules[12]={name:"RuleError",lower:"ruleerror",index:12,isBkr:!1},this.rules[13]={name:"LineEndError",lower:"lineenderror",index:13,isBkr:!1},this.rules[14]={name:"Alternation",lower:"alternation",index:14,isBkr:!1},this.rules[15]={name:"Concatenation",lower:"concatenation",index:15,isBkr:!1},this.rules[16]={name:"Repetition",lower:"repetition",index:16,isBkr:!1},this.rules[17]={name:"Modifier",lower:"modifier",index:17,isBkr:!1},this.rules[18]={name:"Predicate",lower:"predicate",index:18,isBkr:!1},this.rules[19]={name:"BasicElement",lower:"basicelement",index:19,isBkr:!1},this.rules[20]={name:"BasicElementErr",lower:"basicelementerr",index:20,isBkr:!1},this.rules[21]={name:"Group",lower:"group",index:21,isBkr:!1},this.rules[22]={name:"GroupError",lower:"grouperror",index:22,isBkr:!1},this.rules[23]={name:"GroupOpen",lower:"groupopen",index:23,isBkr:!1},this.rules[24]={name:"GroupClose",lower:"groupclose",index:24,isBkr:!1},this.rules[25]={name:"Option",lower:"option",index:25,isBkr:!1},this.rules[26]={name:"OptionError",lower:"optionerror",index:26,isBkr:!1},this.rules[27]={name:"OptionOpen",lower:"optionopen",index:27,isBkr:!1},this.rules[28]={name:"OptionClose",lower:"optionclose",index:28,isBkr:!1},this.rules[29]={name:"RnmOp",lower:"rnmop",index:29,isBkr:!1},this.rules[30]={name:"BkrOp",lower:"bkrop",index:30,isBkr:!1},this.rules[31]={name:"bkrModifier",lower:"bkrmodifier",index:31,isBkr:!1},this.rules[32]={name:"cs",lower:"cs",index:32,isBkr:!1},this.rules[33]={name:"ci",lower:"ci",index:33,isBkr:!1},this.rules[34]={name:"um",lower:"um",index:34,isBkr:!1},this.rules[35]={name:"pm",lower:"pm",index:35,isBkr:!1},this.rules[36]={name:"bkr-name",lower:"bkr-name",index:36,isBkr:!1},this.rules[37]={name:"rname",lower:"rname",index:37,isBkr:!1},this.rules[38]={name:"uname",lower:"uname",index:38,isBkr:!1},this.rules[39]={name:"ename",lower:"ename",index:39,isBkr:!1},this.rules[40]={name:"UdtOp",lower:"udtop",index:40,isBkr:!1},this.rules[41]={name:"udt-non-empty",lower:"udt-non-empty",index:41,isBkr:!1},this.rules[42]={name:"udt-empty",lower:"udt-empty",index:42,isBkr:!1},this.rules[43]={name:"RepOp",lower:"repop",index:43,isBkr:!1},this.rules[44]={name:"AltOp",lower:"altop",index:44,isBkr:!1},this.rules[45]={name:"CatOp",lower:"catop",index:45,isBkr:!1},this.rules[46]={name:"StarOp",lower:"starop",index:46,isBkr:!1},this.rules[47]={name:"AndOp",lower:"andop",index:47,isBkr:!1},this.rules[48]={name:"NotOp",lower:"notop",index:48,isBkr:!1},this.rules[49]={name:"BkaOp",lower:"bkaop",index:49,isBkr:!1},this.rules[50]={name:"BknOp",lower:"bknop",index:50,isBkr:!1},this.rules[51]={name:"AbgOp",lower:"abgop",index:51,isBkr:!1},this.rules[52]={name:"AenOp",lower:"aenop",index:52,isBkr:!1},this.rules[53]={name:"TrgOp",lower:"trgop",index:53,isBkr:!1},this.rules[54]={name:"TbsOp",lower:"tbsop",index:54,isBkr:!1},this.rules[55]={name:"TlsOp",lower:"tlsop",index:55,isBkr:!1},this.rules[56]={name:"TlsCase",lower:"tlscase",index:56,isBkr:!1},this.rules[57]={name:"TlsOpen",lower:"tlsopen",index:57,isBkr:!1},this.rules[58]={name:"TlsClose",lower:"tlsclose",index:58,isBkr:!1},this.rules[59]={name:"TlsString",lower:"tlsstring",index:59,isBkr:!1},this.rules[60]={name:"StringTab",lower:"stringtab",index:60,isBkr:!1},this.rules[61]={name:"ClsOp",lower:"clsop",index:61,isBkr:!1},this.rules[62]={name:"ClsOpen",lower:"clsopen",index:62,isBkr:!1},this.rules[63]={name:"ClsClose",lower:"clsclose",index:63,isBkr:!1},this.rules[64]={name:"ClsString",lower:"clsstring",index:64,isBkr:!1},this.rules[65]={name:"ProsVal",lower:"prosval",index:65,isBkr:!1},this.rules[66]={name:"ProsValOpen",lower:"prosvalopen",index:66,isBkr:!1},this.rules[67]={name:"ProsValString",lower:"prosvalstring",index:67,isBkr:!1},this.rules[68]={name:"ProsValClose",lower:"prosvalclose",index:68,isBkr:!1},this.rules[69]={name:"rep-min",lower:"rep-min",index:69,isBkr:!1},this.rules[70]={name:"rep-min-max",lower:"rep-min-max",index:70,isBkr:!1},this.rules[71]={name:"rep-max",lower:"rep-max",index:71,isBkr:!1},this.rules[72]={name:"rep-num",lower:"rep-num",index:72,isBkr:!1},this.rules[73]={name:"dString",lower:"dstring",index:73,isBkr:!1},this.rules[74]={name:"xString",lower:"xstring",index:74,isBkr:!1},this.rules[75]={name:"bString",lower:"bstring",index:75,isBkr:!1},this.rules[76]={name:"Dec",lower:"dec",index:76,isBkr:!1},this.rules[77]={name:"Hex",lower:"hex",index:77,isBkr:!1},this.rules[78]={name:"Bin",lower:"bin",index:78,isBkr:!1},this.rules[79]={name:"dmin",lower:"dmin",index:79,isBkr:!1},this.rules[80]={name:"dmax",lower:"dmax",index:80,isBkr:!1},this.rules[81]={name:"bmin",lower:"bmin",index:81,isBkr:!1},this.rules[82]={name:"bmax",lower:"bmax",index:82,isBkr:!1},this.rules[83]={name:"xmin",lower:"xmin",index:83,isBkr:!1},this.rules[84]={name:"xmax",lower:"xmax",index:84,isBkr:!1},this.rules[85]={name:"dnum",lower:"dnum",index:85,isBkr:!1},this.rules[86]={name:"bnum",lower:"bnum",index:86,isBkr:!1},this.rules[87]={name:"xnum",lower:"xnum",index:87,isBkr:!1},this.rules[88]={name:"alphanum",lower:"alphanum",index:88,isBkr:!1},this.rules[89]={name:"owsp",lower:"owsp",index:89,isBkr:!1},this.rules[90]={name:"wsp",lower:"wsp",index:90,isBkr:!1},this.rules[91]={name:"space",lower:"space",index:91,isBkr:!1},this.rules[92]={name:"comment",lower:"comment",index:92,isBkr:!1},this.rules[93]={name:"LineEnd",lower:"lineend",index:93,isBkr:!1},this.rules[94]={name:"LineContinue",lower:"linecontinue",index:94,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3,4]},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:4,index:2},this.rules[0].opcodes[4]={type:4,index:12},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,5,7]},this.rules[1].opcodes[1]={type:3,min:0,max:1/0},this.rules[1].opcodes[2]={type:1,children:[3,4]},this.rules[1].opcodes[3]={type:6,string:[32]},this.rules[1].opcodes[4]={type:6,string:[9]},this.rules[1].opcodes[5]={type:3,min:0,max:1},this.rules[1].opcodes[6]={type:4,index:92},this.rules[1].opcodes[7]={type:4,index:93},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:4,index:3},this.rules[2].opcodes[2]={type:4,index:89},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:1,children:[5,8]},this.rules[2].opcodes[5]={type:2,children:[6,7]},this.rules[2].opcodes[6]={type:4,index:89},this.rules[2].opcodes[7]={type:4,index:93},this.rules[2].opcodes[8]={type:2,children:[9,10]},this.rules[2].opcodes[9]={type:4,index:13},this.rules[2].opcodes[10]={type:4,index:93},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,3]},this.rules[3].opcodes[1]={type:4,index:4},this.rules[3].opcodes[2]={type:4,index:89},this.rules[3].opcodes[3]={type:4,index:7},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:4,index:88},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:3,min:1,max:1/0},this.rules[6].opcodes[1]={type:1,children:[2,3]},this.rules[6].opcodes[2]={type:5,min:33,max:60},this.rules[6].opcodes[3]={type:5,min:62,max:126},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:4,index:9},this.rules[7].opcodes[2]={type:4,index:8},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:3,min:1,max:2},this.rules[8].opcodes[1]={type:5,min:33,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[61]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:6,string:[61,47]},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:2,children:[1,6]},this.rules[12].opcodes[1]={type:3,min:1,max:1/0},this.rules[12].opcodes[2]={type:1,children:[3,4,5]},this.rules[12].opcodes[3]={type:5,min:32,max:126},this.rules[12].opcodes[4]={type:6,string:[9]},this.rules[12].opcodes[5]={type:4,index:94},this.rules[12].opcodes[6]={type:4,index:93},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:3,min:1,max:1/0},this.rules[13].opcodes[1]={type:1,children:[2,3,4]},this.rules[13].opcodes[2]={type:5,min:32,max:126},this.rules[13].opcodes[3]={type:6,string:[9]},this.rules[13].opcodes[4]={type:4,index:94},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:2,children:[1,2]},this.rules[14].opcodes[1]={type:4,index:15},this.rules[14].opcodes[2]={type:3,min:0,max:1/0},this.rules[14].opcodes[3]={type:2,children:[4,5,6]},this.rules[14].opcodes[4]={type:4,index:89},this.rules[14].opcodes[5]={type:4,index:44},this.rules[14].opcodes[6]={type:4,index:15},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2]},this.rules[15].opcodes[1]={type:4,index:16},this.rules[15].opcodes[2]={type:3,min:0,max:1/0},this.rules[15].opcodes[3]={type:2,children:[4,5]},this.rules[15].opcodes[4]={type:4,index:45},this.rules[15].opcodes[5]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,3]},this.rules[16].opcodes[1]={type:3,min:0,max:1},this.rules[16].opcodes[2]={type:4,index:17},this.rules[16].opcodes[3]={type:1,children:[4,5,6,7]},this.rules[16].opcodes[4]={type:4,index:21},this.rules[16].opcodes[5]={type:4,index:25},this.rules[16].opcodes[6]={type:4,index:19},this.rules[16].opcodes[7]={type:4,index:20},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,5]},this.rules[17].opcodes[1]={type:2,children:[2,3]},this.rules[17].opcodes[2]={type:4,index:18},this.rules[17].opcodes[3]={type:3,min:0,max:1},this.rules[17].opcodes[4]={type:4,index:43},this.rules[17].opcodes[5]={type:4,index:43},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[18].opcodes[1]={type:4,index:49},this.rules[18].opcodes[2]={type:4,index:50},this.rules[18].opcodes[3]={type:4,index:47},this.rules[18].opcodes[4]={type:4,index:48},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10]},this.rules[19].opcodes[1]={type:4,index:40},this.rules[19].opcodes[2]={type:4,index:29},this.rules[19].opcodes[3]={type:4,index:53},this.rules[19].opcodes[4]={type:4,index:54},this.rules[19].opcodes[5]={type:4,index:55},this.rules[19].opcodes[6]={type:4,index:61},this.rules[19].opcodes[7]={type:4,index:30},this.rules[19].opcodes[8]={type:4,index:51},this.rules[19].opcodes[9]={type:4,index:52},this.rules[19].opcodes[10]={type:4,index:65},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:3,min:1,max:1/0},this.rules[20].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[20].opcodes[2]={type:5,min:33,max:40},this.rules[20].opcodes[3]={type:5,min:42,max:46},this.rules[20].opcodes[4]={type:5,min:48,max:92},this.rules[20].opcodes[5]={type:5,min:94,max:126},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:2,children:[1,2,3]},this.rules[21].opcodes[1]={type:4,index:23},this.rules[21].opcodes[2]={type:4,index:14},this.rules[21].opcodes[3]={type:1,children:[4,5]},this.rules[21].opcodes[4]={type:4,index:24},this.rules[21].opcodes[5]={type:4,index:22},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:3,min:1,max:1/0},this.rules[22].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[22].opcodes[2]={type:5,min:33,max:40},this.rules[22].opcodes[3]={type:5,min:42,max:46},this.rules[22].opcodes[4]={type:5,min:48,max:92},this.rules[22].opcodes[5]={type:5,min:94,max:126},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:2,children:[1,2]},this.rules[23].opcodes[1]={type:6,string:[40]},this.rules[23].opcodes[2]={type:4,index:89},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:2,children:[1,2]},this.rules[24].opcodes[1]={type:4,index:89},this.rules[24].opcodes[2]={type:6,string:[41]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:2,children:[1,2,3]},this.rules[25].opcodes[1]={type:4,index:27},this.rules[25].opcodes[2]={type:4,index:14},this.rules[25].opcodes[3]={type:1,children:[4,5]},this.rules[25].opcodes[4]={type:4,index:28},this.rules[25].opcodes[5]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:3,min:1,max:1/0},this.rules[26].opcodes[1]={type:1,children:[2,3,4,5]},this.rules[26].opcodes[2]={type:5,min:33,max:40},this.rules[26].opcodes[3]={type:5,min:42,max:46},this.rules[26].opcodes[4]={type:5,min:48,max:92},this.rules[26].opcodes[5]={type:5,min:94,max:126},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:6,string:[91]},this.rules[27].opcodes[2]={type:4,index:89},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:89},this.rules[28].opcodes[2]={type:6,string:[93]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:4,index:88},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:2,children:[1,2,4]},this.rules[30].opcodes[1]={type:6,string:[92]},this.rules[30].opcodes[2]={type:3,min:0,max:1},this.rules[30].opcodes[3]={type:4,index:31},this.rules[30].opcodes[4]={type:4,index:36},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:1,children:[1,7,13,19]},this.rules[31].opcodes[1]={type:2,children:[2,3]},this.rules[31].opcodes[2]={type:4,index:32},this.rules[31].opcodes[3]={type:3,min:0,max:1},this.rules[31].opcodes[4]={type:1,children:[5,6]},this.rules[31].opcodes[5]={type:4,index:34},this.rules[31].opcodes[6]={type:4,index:35},this.rules[31].opcodes[7]={type:2,children:[8,9]},this.rules[31].opcodes[8]={type:4,index:33},this.rules[31].opcodes[9]={type:3,min:0,max:1},this.rules[31].opcodes[10]={type:1,children:[11,12]},this.rules[31].opcodes[11]={type:4,index:34},this.rules[31].opcodes[12]={type:4,index:35},this.rules[31].opcodes[13]={type:2,children:[14,15]},this.rules[31].opcodes[14]={type:4,index:34},this.rules[31].opcodes[15]={type:3,min:0,max:1},this.rules[31].opcodes[16]={type:1,children:[17,18]},this.rules[31].opcodes[17]={type:4,index:32},this.rules[31].opcodes[18]={type:4,index:33},this.rules[31].opcodes[19]={type:2,children:[20,21]},this.rules[31].opcodes[20]={type:4,index:35},this.rules[31].opcodes[21]={type:3,min:0,max:1},this.rules[31].opcodes[22]={type:1,children:[23,24]},this.rules[31].opcodes[23]={type:4,index:32},this.rules[31].opcodes[24]={type:4,index:33},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:6,string:[37,115]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:6,string:[37,105]},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:6,string:[37,117]},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:6,string:[37,112]},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:1,children:[1,2,3]},this.rules[36].opcodes[1]={type:4,index:38},this.rules[36].opcodes[2]={type:4,index:39},this.rules[36].opcodes[3]={type:4,index:37},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:4,index:88},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:2,children:[1,2]},this.rules[38].opcodes[1]={type:6,string:[117,95]},this.rules[38].opcodes[2]={type:4,index:88},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:2,children:[1,2]},this.rules[39].opcodes[1]={type:6,string:[101,95]},this.rules[39].opcodes[2]={type:4,index:88},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2]},this.rules[40].opcodes[1]={type:4,index:42},this.rules[40].opcodes[2]={type:4,index:41},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:2,children:[1,2]},this.rules[41].opcodes[1]={type:6,string:[117,95]},this.rules[41].opcodes[2]={type:4,index:88},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:6,string:[101,95]},this.rules[42].opcodes[2]={type:4,index:88},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:1,children:[1,5,8,11,12]},this.rules[43].opcodes[1]={type:2,children:[2,3,4]},this.rules[43].opcodes[2]={type:4,index:69},this.rules[43].opcodes[3]={type:4,index:46},this.rules[43].opcodes[4]={type:4,index:71},this.rules[43].opcodes[5]={type:2,children:[6,7]},this.rules[43].opcodes[6]={type:4,index:69},this.rules[43].opcodes[7]={type:4,index:46},this.rules[43].opcodes[8]={type:2,children:[9,10]},this.rules[43].opcodes[9]={type:4,index:46},this.rules[43].opcodes[10]={type:4,index:71},this.rules[43].opcodes[11]={type:4,index:46},this.rules[43].opcodes[12]={type:4,index:70},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:2,children:[1,2]},this.rules[44].opcodes[1]={type:6,string:[47]},this.rules[44].opcodes[2]={type:4,index:89},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:4,index:90},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:6,string:[42]},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:6,string:[38]},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:6,string:[33]},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:6,string:[38,38]},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[33,33]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[37,94]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[37,36]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:6,string:[37]},this.rules[53].opcodes[2]={type:1,children:[3,8,13]},this.rules[53].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[53].opcodes[4]={type:4,index:76},this.rules[53].opcodes[5]={type:4,index:79},this.rules[53].opcodes[6]={type:6,string:[45]},this.rules[53].opcodes[7]={type:4,index:80},this.rules[53].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[53].opcodes[9]={type:4,index:77},this.rules[53].opcodes[10]={type:4,index:83},this.rules[53].opcodes[11]={type:6,string:[45]},this.rules[53].opcodes[12]={type:4,index:84},this.rules[53].opcodes[13]={type:2,children:[14,15,16,17]},this.rules[53].opcodes[14]={type:4,index:78},this.rules[53].opcodes[15]={type:4,index:81},this.rules[53].opcodes[16]={type:6,string:[45]},this.rules[53].opcodes[17]={type:4,index:82},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:2,children:[1,2]},this.rules[54].opcodes[1]={type:6,string:[37]},this.rules[54].opcodes[2]={type:1,children:[3,10,17]},this.rules[54].opcodes[3]={type:2,children:[4,5,6]},this.rules[54].opcodes[4]={type:4,index:76},this.rules[54].opcodes[5]={type:4,index:73},this.rules[54].opcodes[6]={type:3,min:0,max:1/0},this.rules[54].opcodes[7]={type:2,children:[8,9]},this.rules[54].opcodes[8]={type:6,string:[46]},this.rules[54].opcodes[9]={type:4,index:73},this.rules[54].opcodes[10]={type:2,children:[11,12,13]},this.rules[54].opcodes[11]={type:4,index:77},this.rules[54].opcodes[12]={type:4,index:74},this.rules[54].opcodes[13]={type:3,min:0,max:1/0},this.rules[54].opcodes[14]={type:2,children:[15,16]},this.rules[54].opcodes[15]={type:6,string:[46]},this.rules[54].opcodes[16]={type:4,index:74},this.rules[54].opcodes[17]={type:2,children:[18,19,20]},this.rules[54].opcodes[18]={type:4,index:78},this.rules[54].opcodes[19]={type:4,index:75},this.rules[54].opcodes[20]={type:3,min:0,max:1/0},this.rules[54].opcodes[21]={type:2,children:[22,23]},this.rules[54].opcodes[22]={type:6,string:[46]},this.rules[54].opcodes[23]={type:4,index:75},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:2,children:[1,2,3,4]},this.rules[55].opcodes[1]={type:4,index:56},this.rules[55].opcodes[2]={type:4,index:57},this.rules[55].opcodes[3]={type:4,index:59},this.rules[55].opcodes[4]={type:4,index:58},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:3,min:0,max:1},this.rules[56].opcodes[1]={type:1,children:[2,3]},this.rules[56].opcodes[2]={type:7,string:[37,105]},this.rules[56].opcodes[3]={type:7,string:[37,115]},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:6,string:[34]},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:6,string:[34]},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:3,min:0,max:1/0},this.rules[59].opcodes[1]={type:1,children:[2,3,4]},this.rules[59].opcodes[2]={type:5,min:32,max:33},this.rules[59].opcodes[3]={type:5,min:35,max:126},this.rules[59].opcodes[4]={type:4,index:60},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:6,string:[9]},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3]},this.rules[61].opcodes[1]={type:4,index:62},this.rules[61].opcodes[2]={type:4,index:64},this.rules[61].opcodes[3]={type:4,index:63},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:6,string:[39]},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:6,string:[39]},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:3,min:0,max:1/0},this.rules[64].opcodes[1]={type:1,children:[2,3,4]},this.rules[64].opcodes[2]={type:5,min:32,max:38},this.rules[64].opcodes[3]={type:5,min:40,max:126},this.rules[64].opcodes[4]={type:4,index:60},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:2,children:[1,2,3]},this.rules[65].opcodes[1]={type:4,index:66},this.rules[65].opcodes[2]={type:4,index:67},this.rules[65].opcodes[3]={type:4,index:68},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:6,string:[60]},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:3,min:0,max:1/0},this.rules[67].opcodes[1]={type:1,children:[2,3,4]},this.rules[67].opcodes[2]={type:5,min:32,max:61},this.rules[67].opcodes[3]={type:5,min:63,max:126},this.rules[67].opcodes[4]={type:4,index:60},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:6,string:[62]},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:4,index:72},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:4,index:72},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:4,index:72},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:3,min:1,max:1/0},this.rules[72].opcodes[1]={type:5,min:48,max:57},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:4,index:85},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:4,index:87},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:4,index:86},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:6,string:[68]},this.rules[76].opcodes[2]={type:6,string:[100]},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:6,string:[88]},this.rules[77].opcodes[2]={type:6,string:[120]},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:1,children:[1,2]},this.rules[78].opcodes[1]={type:6,string:[66]},this.rules[78].opcodes[2]={type:6,string:[98]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:4,index:85},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:4,index:85},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:4,index:86},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:4,index:86},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:4,index:87},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:4,index:87},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:3,min:1,max:1/0},this.rules[85].opcodes[1]={type:5,min:48,max:57},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:3,min:1,max:1/0},this.rules[86].opcodes[1]={type:5,min:48,max:49},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:3,min:1,max:1/0},this.rules[87].opcodes[1]={type:1,children:[2,3,4]},this.rules[87].opcodes[2]={type:5,min:48,max:57},this.rules[87].opcodes[3]={type:5,min:65,max:70},this.rules[87].opcodes[4]={type:5,min:97,max:102},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:2,children:[1,4]},this.rules[88].opcodes[1]={type:1,children:[2,3]},this.rules[88].opcodes[2]={type:5,min:97,max:122},this.rules[88].opcodes[3]={type:5,min:65,max:90},this.rules[88].opcodes[4]={type:3,min:0,max:1/0},this.rules[88].opcodes[5]={type:1,children:[6,7,8,9]},this.rules[88].opcodes[6]={type:5,min:97,max:122},this.rules[88].opcodes[7]={type:5,min:65,max:90},this.rules[88].opcodes[8]={type:5,min:48,max:57},this.rules[88].opcodes[9]={type:6,string:[45]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:3,min:0,max:1/0},this.rules[89].opcodes[1]={type:4,index:91},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:3,min:1,max:1/0},this.rules[90].opcodes[1]={type:4,index:91},this.rules[91].opcodes=[],this.rules[91].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[91].opcodes[1]={type:6,string:[32]},this.rules[91].opcodes[2]={type:6,string:[9]},this.rules[91].opcodes[3]={type:4,index:92},this.rules[91].opcodes[4]={type:4,index:94},this.rules[92].opcodes=[],this.rules[92].opcodes[0]={type:2,children:[1,2]},this.rules[92].opcodes[1]={type:6,string:[59]},this.rules[92].opcodes[2]={type:3,min:0,max:1/0},this.rules[92].opcodes[3]={type:1,children:[4,5]},this.rules[92].opcodes[4]={type:5,min:32,max:126},this.rules[92].opcodes[5]={type:6,string:[9]},this.rules[93].opcodes=[],this.rules[93].opcodes[0]={type:1,children:[1,2,3]},this.rules[93].opcodes[1]={type:6,string:[13,10]},this.rules[93].opcodes[2]={type:6,string:[10]},this.rules[93].opcodes[3]={type:6,string:[13]},this.rules[94].opcodes=[],this.rules[94].opcodes[0]={type:2,children:[1,5]},this.rules[94].opcodes[1]={type:1,children:[2,3,4]},this.rules[94].opcodes[2]={type:6,string:[13,10]},this.rules[94].opcodes[3]={type:6,string:[10]},this.rules[94].opcodes[4]={type:6,string:[13]},this.rules[94].opcodes[5]={type:1,children:[6,7]},this.rules[94].opcodes[6]={type:6,string:[32]},this.rules[94].opcodes[7]={type:6,string:[9]},this.toString=function(){let e="";return e+=";\n",e+="; ABNF for JavaScript APG 2.0 SABNF\n",e+="; RFC 5234 with some restrictions and additions.\n",e+="; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n",e+='; - accepts %s"string" as a case-sensitive string\n',e+='; - accepts %i"string" as a case-insensitive string\n',e+='; - accepts "string" as a case-insensitive string\n',e+=";\n",e+="; Some restrictions:\n",e+="; 1. Rules must begin at first character of each line.\n",e+="; Indentations on first rule and rules thereafter are not allowed.\n",e+="; 2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n",e+="; 3. Prose values, i.e. , are accepted as valid grammar syntax.\n",e+="; However, a working parser cannot be generated from them.\n",e+=";\n",e+="; Super set (SABNF) additions:\n",e+="; 1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n",e+="; & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n",e+="; ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n",e+="; e.g. &%d13 or &rule or !(A / B)\n",e+="; 2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n",e+="; 'name' is alpha followed by alpha/num/hyphen just like a rule name.\n",e+="; u_name may be used as an element but no rule definition is given.\n",e+="; e.g. rule = A / u_myUdt\n",e+='; A = "a"\n',e+="; would be a valid grammar.\n",e+="; 3. Case-sensitive, single-quoted strings are accepted.\n",e+="; e.g. 'abc' would be equivalent to %d97.98.99\n",e+='; (kept for backward compatibility, but superseded by %s"abc") \n',e+="; New 12/26/2015\n",e+="; 4. Look-behind operators are accepted as element prefixes.\n",e+="; && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n",e+="; !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n",e+="; e.g. &&%d13 or &&rule or !!(A / B)\n",e+="; 5. Back reference operators, i.e. \\rulename, are accepted.\n",e+="; A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n",e+="; to match is a phrase previously matched by the rule 'rulename'.\n",e+="; There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n",e+="; In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n",e+="; In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n",e+="; Back reference modifiers can be used to specify case and mode.\n",e+="; \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n",e+="; Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n",e+="; Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n",e+="; Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n",e+="; 7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n",e+="; Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+="; 8. String end anchor, AEN(%$) matches the end of the input string location.\n",e+="; Returns EMPTY or NOMATCH. Never consumes any characters.\n",e+=";\n",e+="File = *(BlankLine / Rule / RuleError)\n",e+="BlankLine = *(%d32/%d9) [comment] LineEnd\n",e+="Rule = RuleLookup owsp Alternation ((owsp LineEnd)\n",e+=" / (LineEndError LineEnd))\n",e+="RuleLookup = RuleNameTest owsp DefinedAsTest\n",e+="RuleNameTest = RuleName/RuleNameError\n",e+="RuleName = alphanum\n",e+="RuleNameError = 1*(%d33-60/%d62-126)\n",e+="DefinedAsTest = DefinedAs / DefinedAsError\n",e+="DefinedAsError = 1*2%d33-126\n",e+="DefinedAs = IncAlt / Defined\n",e+="Defined = %d61\n",e+="IncAlt = %d61.47\n",e+="RuleError = 1*(%d32-126 / %d9 / LineContinue) LineEnd\n",e+="LineEndError = 1*(%d32-126 / %d9 / LineContinue)\n",e+="Alternation = Concatenation *(owsp AltOp Concatenation)\n",e+="Concatenation = Repetition *(CatOp Repetition)\n",e+="Repetition = [Modifier] (Group / Option / BasicElement / BasicElementErr)\n",e+="Modifier = (Predicate [RepOp])\n",e+=" / RepOp\n",e+="Predicate = BkaOp\n",e+=" / BknOp\n",e+=" / AndOp\n",e+=" / NotOp\n",e+="BasicElement = UdtOp\n",e+=" / RnmOp\n",e+=" / TrgOp\n",e+=" / TbsOp\n",e+=" / TlsOp\n",e+=" / ClsOp\n",e+=" / BkrOp\n",e+=" / AbgOp\n",e+=" / AenOp\n",e+=" / ProsVal\n",e+="BasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\n",e+="Group = GroupOpen Alternation (GroupClose / GroupError)\n",e+="GroupError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="GroupOpen = %d40 owsp\n",e+="GroupClose = owsp %d41\n",e+="Option = OptionOpen Alternation (OptionClose / OptionError)\n",e+="OptionError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\n",e+="OptionOpen = %d91 owsp\n",e+="OptionClose = owsp %d93\n",e+="RnmOp = alphanum\n",e+="BkrOp = %d92 [bkrModifier] bkr-name\n",e+="bkrModifier = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\n",e+="cs = '%s'\n",e+="ci = '%i'\n",e+="um = '%u'\n",e+="pm = '%p'\n",e+="bkr-name = uname / ename / rname\n",e+="rname = alphanum\n",e+="uname = %d117.95 alphanum\n",e+="ename = %d101.95 alphanum\n",e+="UdtOp = udt-empty\n",e+=" / udt-non-empty\n",e+="udt-non-empty = %d117.95 alphanum\n",e+="udt-empty = %d101.95 alphanum\n",e+="RepOp = (rep-min StarOp rep-max)\n",e+=" / (rep-min StarOp)\n",e+=" / (StarOp rep-max)\n",e+=" / StarOp\n",e+=" / rep-min-max\n",e+="AltOp = %d47 owsp\n",e+="CatOp = wsp\n",e+="StarOp = %d42\n",e+="AndOp = %d38\n",e+="NotOp = %d33\n",e+="BkaOp = %d38.38\n",e+="BknOp = %d33.33\n",e+="AbgOp = %d37.94\n",e+="AenOp = %d37.36\n",e+="TrgOp = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\n",e+="TbsOp = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\n",e+="TlsOp = TlsCase TlsOpen TlsString TlsClose\n",e+='TlsCase = ["%i" / "%s"]\n',e+="TlsOpen = %d34\n",e+="TlsClose = %d34\n",e+="TlsString = *(%d32-33/%d35-126/StringTab)\n",e+="StringTab = %d9\n",e+="ClsOp = ClsOpen ClsString ClsClose\n",e+="ClsOpen = %d39\n",e+="ClsClose = %d39\n",e+="ClsString = *(%d32-38/%d40-126/StringTab)\n",e+="ProsVal = ProsValOpen ProsValString ProsValClose\n",e+="ProsValOpen = %d60\n",e+="ProsValString = *(%d32-61/%d63-126/StringTab)\n",e+="ProsValClose = %d62\n",e+="rep-min = rep-num\n",e+="rep-min-max = rep-num\n",e+="rep-max = rep-num\n",e+="rep-num = 1*(%d48-57)\n",e+="dString = dnum\n",e+="xString = xnum\n",e+="bString = bnum\n",e+="Dec = (%d68/%d100)\n",e+="Hex = (%d88/%d120)\n",e+="Bin = (%d66/%d98)\n",e+="dmin = dnum\n",e+="dmax = dnum\n",e+="bmin = bnum\n",e+="bmax = bnum\n",e+="xmin = xnum\n",e+="xmax = xnum\n",e+="dnum = 1*(%d48-57)\n",e+="bnum = 1*%d48-49\n",e+="xnum = 1*(%d48-57 / %d65-70 / %d97-102)\n",e+=";\n",e+="; Basics\n",e+="alphanum = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\n",e+="owsp = *space\n",e+="wsp = 1*space\n",e+="space = %d32\n",e+=" / %d9\n",e+=" / comment\n",e+=" / LineContinue\n",e+="comment = %d59 *(%d32-126 / %d9)\n",e+="LineEnd = %d13.10\n",e+=" / %d10\n",e+=" / %d13\n",e+="LineContinue = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n",";\n; ABNF for JavaScript APG 2.0 SABNF\n; RFC 5234 with some restrictions and additions.\n; Updated 11/24/2015 for RFC 7405 case-sensitive literal string notation\n; - accepts %s\"string\" as a case-sensitive string\n; - accepts %i\"string\" as a case-insensitive string\n; - accepts \"string\" as a case-insensitive string\n;\n; Some restrictions:\n; 1. Rules must begin at first character of each line.\n; Indentations on first rule and rules thereafter are not allowed.\n; 2. Relaxed line endings. CRLF, LF or CR are accepted as valid line ending.\n; 3. Prose values, i.e. , are accepted as valid grammar syntax.\n; However, a working parser cannot be generated from them.\n;\n; Super set (SABNF) additions:\n; 1. Look-ahead (syntactic predicate) operators are accepted as element prefixes.\n; & is the positive look-ahead operator, succeeds and backtracks if the look-ahead phrase is found\n; ! is the negative look-ahead operator, succeeds and backtracks if the look-ahead phrase is NOT found\n; e.g. &%d13 or &rule or !(A / B)\n; 2. User-Defined Terminals (UDT) of the form, u_name and e_name are accepted.\n; 'name' is alpha followed by alpha/num/hyphen just like a rule name.\n; u_name may be used as an element but no rule definition is given.\n; e.g. rule = A / u_myUdt\n; A = \"a\"\n; would be a valid grammar.\n; 3. Case-sensitive, single-quoted strings are accepted.\n; e.g. 'abc' would be equivalent to %d97.98.99\n; (kept for backward compatibility, but superseded by %s\"abc\") \n; New 12/26/2015\n; 4. Look-behind operators are accepted as element prefixes.\n; && is the positive look-behind operator, succeeds and backtracks if the look-behind phrase is found\n; !! is the negative look-behind operator, succeeds and backtracks if the look-behind phrase is NOT found\n; e.g. &&%d13 or &&rule or !!(A / B)\n; 5. Back reference operators, i.e. \\rulename, are accepted.\n; A back reference operator acts like a TLS or TBS terminal except that the phrase it attempts\n; to match is a phrase previously matched by the rule 'rulename'.\n; There are two modes of previous phrase matching - the parent-frame mode and the universal mode.\n; In universal mode, \\rulename matches the last match to 'rulename' regardless of where it was found.\n; In parent-frame mode, \\rulename matches only the last match found on the parent's frame or parse tree level.\n; Back reference modifiers can be used to specify case and mode.\n; \\A defaults to case-insensitive and universal mode, e.g. \\A === \\%i%uA\n; Modifiers %i and %s determine case-insensitive and case-sensitive mode, respectively.\n; Modifiers %u and %p determine universal mode and parent frame mode, respectively.\n; Case and mode modifiers can appear in any order, e.g. \\%s%pA === \\%p%sA. \n; 7. String begin anchor, ABG(%^) matches the beginning of the input string location.\n; Returns EMPTY or NOMATCH. Never consumes any characters.\n; 8. String end anchor, AEN(%$) matches the end of the input string location.\n; Returns EMPTY or NOMATCH. Never consumes any characters.\n;\nFile = *(BlankLine / Rule / RuleError)\nBlankLine = *(%d32/%d9) [comment] LineEnd\nRule = RuleLookup owsp Alternation ((owsp LineEnd)\n / (LineEndError LineEnd))\nRuleLookup = RuleNameTest owsp DefinedAsTest\nRuleNameTest = RuleName/RuleNameError\nRuleName = alphanum\nRuleNameError = 1*(%d33-60/%d62-126)\nDefinedAsTest = DefinedAs / DefinedAsError\nDefinedAsError = 1*2%d33-126\nDefinedAs = IncAlt / Defined\nDefined = %d61\nIncAlt = %d61.47\nRuleError = 1*(%d32-126 / %d9 / LineContinue) LineEnd\nLineEndError = 1*(%d32-126 / %d9 / LineContinue)\nAlternation = Concatenation *(owsp AltOp Concatenation)\nConcatenation = Repetition *(CatOp Repetition)\nRepetition = [Modifier] (Group / Option / BasicElement / BasicElementErr)\nModifier = (Predicate [RepOp])\n / RepOp\nPredicate = BkaOp\n / BknOp\n / AndOp\n / NotOp\nBasicElement = UdtOp\n / RnmOp\n / TrgOp\n / TbsOp\n / TlsOp\n / ClsOp\n / BkrOp\n / AbgOp\n / AenOp\n / ProsVal\nBasicElementErr = 1*(%d33-40/%d42-46/%d48-92/%d94-126)\nGroup = GroupOpen Alternation (GroupClose / GroupError)\nGroupError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nGroupOpen = %d40 owsp\nGroupClose = owsp %d41\nOption = OptionOpen Alternation (OptionClose / OptionError)\nOptionError = 1*(%d33-40/%d42-46/%d48-92/%d94-126) ; same as BasicElementErr\nOptionOpen = %d91 owsp\nOptionClose = owsp %d93\nRnmOp = alphanum\nBkrOp = %d92 [bkrModifier] bkr-name\nbkrModifier = (cs [um / pm]) / (ci [um / pm]) / (um [cs /ci]) / (pm [cs / ci])\ncs = '%s'\nci = '%i'\num = '%u'\npm = '%p'\nbkr-name = uname / ename / rname\nrname = alphanum\nuname = %d117.95 alphanum\nename = %d101.95 alphanum\nUdtOp = udt-empty\n / udt-non-empty\nudt-non-empty = %d117.95 alphanum\nudt-empty = %d101.95 alphanum\nRepOp = (rep-min StarOp rep-max)\n / (rep-min StarOp)\n / (StarOp rep-max)\n / StarOp\n / rep-min-max\nAltOp = %d47 owsp\nCatOp = wsp\nStarOp = %d42\nAndOp = %d38\nNotOp = %d33\nBkaOp = %d38.38\nBknOp = %d33.33\nAbgOp = %d37.94\nAenOp = %d37.36\nTrgOp = %d37 ((Dec dmin %d45 dmax) / (Hex xmin %d45 xmax) / (Bin bmin %d45 bmax))\nTbsOp = %d37 ((Dec dString *(%d46 dString)) / (Hex xString *(%d46 xString)) / (Bin bString *(%d46 bString)))\nTlsOp = TlsCase TlsOpen TlsString TlsClose\nTlsCase = [\"%i\" / \"%s\"]\nTlsOpen = %d34\nTlsClose = %d34\nTlsString = *(%d32-33/%d35-126/StringTab)\nStringTab = %d9\nClsOp = ClsOpen ClsString ClsClose\nClsOpen = %d39\nClsClose = %d39\nClsString = *(%d32-38/%d40-126/StringTab)\nProsVal = ProsValOpen ProsValString ProsValClose\nProsValOpen = %d60\nProsValString = *(%d32-61/%d63-126/StringTab)\nProsValClose = %d62\nrep-min = rep-num\nrep-min-max = rep-num\nrep-max = rep-num\nrep-num = 1*(%d48-57)\ndString = dnum\nxString = xnum\nbString = bnum\nDec = (%d68/%d100)\nHex = (%d88/%d120)\nBin = (%d66/%d98)\ndmin = dnum\ndmax = dnum\nbmin = bnum\nbmax = bnum\nxmin = xnum\nxmax = xnum\ndnum = 1*(%d48-57)\nbnum = 1*%d48-49\nxnum = 1*(%d48-57 / %d65-70 / %d97-102)\n;\n; Basics\nalphanum = (%d97-122/%d65-90) *(%d97-122/%d65-90/%d48-57/%d45)\nowsp = *space\nwsp = 1*space\nspace = %d32\n / %d9\n / comment\n / LineContinue\ncomment = %d59 *(%d32-126 / %d9)\nLineEnd = %d13.10\n / %d10\n / %d13\nLineContinue = (%d13.10 / %d10 / %d13) (%d32 / %d9)\n"}}},64570:(e,t,n)=>{const r=n(7856),a=n(88764);const i=[];i.line=function(e,t,n,a,i){return e===r.SEM_PRE?(i.endLength=0,i.textLength=0,i.invalidCount=0):i.lines.push({lineNo:i.lines.length,beginChar:n,length:a,textLength:i.textLength,endType:i.endType,invalidChars:i.invalidCount}),r.SEM_OK},i["line-text"]=function(e,t,n,a,i){return e===r.SEM_PRE&&(i.textLength=a),r.SEM_OK},i["last-line"]=function(e,t,n,a,i){return e===r.SEM_PRE?(i.endLength=0,i.textLength=0,i.invalidCount=0):i.strict?(i.lines.push({lineNo:i.lines.length,beginChar:n,length:a,textLength:a,endType:"none",invalidChars:i.invalidCount}),i.errors.push({line:i.lineNo,char:n+a,msg:"no line end on last line - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})):(t.push(10),i.lines.push({lineNo:i.lines.length,beginChar:n,length:a+1,textLength:a,endType:"LF",invalidChars:i.invalidCount})),r.SEM_OK},i.invalid=function(e,t,n,i,o){return e===r.SEM_PRE&&o.errors.push({line:o.lineNo,char:n,msg:"invalid character found '\\x".concat(a.charToHex(t[n]),"'")}),r.SEM_OK},i.end=function(e,t,n,a,i){return e===r.SEM_POST&&(i.lineNo+=1),r.SEM_OK},i.lf=function(e,t,n,a,i){return e===r.SEM_PRE&&(i.endType="LF",i.strict&&i.errors.push({line:i.lineNo,char:n,msg:"line end character LF(\\n, \\x0A) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),r.SEM_OK},i.cr=function(e,t,n,a,i){return e===r.SEM_PRE&&(i.endType="CR",i.strict&&i.errors.push({line:i.lineNo,char:n,msg:"line end character CR(\\r, \\x0D) - strict ABNF specifies CRLF(\\r\\n, \\x0D\\x0A)"})),r.SEM_OK},i.crlf=function(e,t,n,a,i){return e===r.SEM_PRE&&(i.endType="CRLF"),r.SEM_OK},t.callbacks=i},99440:e=>{e.exports=function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"file",lower:"file",index:0,isBkr:!1},this.rules[1]={name:"line",lower:"line",index:1,isBkr:!1},this.rules[2]={name:"line-text",lower:"line-text",index:2,isBkr:!1},this.rules[3]={name:"last-line",lower:"last-line",index:3,isBkr:!1},this.rules[4]={name:"valid",lower:"valid",index:4,isBkr:!1},this.rules[5]={name:"invalid",lower:"invalid",index:5,isBkr:!1},this.rules[6]={name:"end",lower:"end",index:6,isBkr:!1},this.rules[7]={name:"CRLF",lower:"crlf",index:7,isBkr:!1},this.rules[8]={name:"LF",lower:"lf",index:8,isBkr:!1},this.rules[9]={name:"CR",lower:"cr",index:9,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,3]},this.rules[0].opcodes[1]={type:3,min:0,max:1/0},this.rules[0].opcodes[2]={type:4,index:1},this.rules[0].opcodes[3]={type:3,min:0,max:1},this.rules[0].opcodes[4]={type:4,index:3},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:6},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:0,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3]},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:5},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3]},this.rules[3].opcodes[2]={type:4,index:4},this.rules[3].opcodes[3]={type:4,index:5},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:5,min:32,max:126},this.rules[4].opcodes[2]={type:6,string:[9]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[5].opcodes[1]={type:5,min:0,max:8},this.rules[5].opcodes[2]={type:5,min:11,max:12},this.rules[5].opcodes[3]={type:5,min:14,max:31},this.rules[5].opcodes[4]={type:5,min:127,max:4294967295},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:6,string:[13,10]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:6,string:[10]},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:6,string:[13]},this.toString=function(){let e="";return e+="file = *line [last-line]\n",e+="line = line-text end\n",e+="line-text = *(valid/invalid)\n",e+="last-line = 1*(valid/invalid)\n",e+="valid = %d32-126 / %d9\n",e+="invalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\n",e+="end = CRLF / LF / CR\n",e+="CRLF = %d13.10\n",e+="LF = %d10\n",e+="CR = %d13\n","file = *line [last-line]\nline = line-text end\nline-text = *(valid/invalid)\nlast-line = 1*(valid/invalid)\nvalid = %d32-126 / %d9\ninvalid = %d0-8 / %d11-12 /%d14-31 / %x7f-ffffffff\nend = CRLF / LF / CR\nCRLF = %d13.10\nLF = %d10\nCR = %d13\n"}}},36974:(e,t,n)=>{e.exports=function(e,t,r,a){const i=n(91572),o=new(n(99440)),{callbacks:s}=n(64570),c=[],l=new i.parser;if(l.ast=new i.ast,l.ast.callbacks=s,a){if("traceObject"!==a.traceObject)throw new TypeError("".concat("scanner.js: ","trace argument is not a trace object"));l.trace=a}if(!0!==l.parse(o,"file",e).success)return void t.push({line:0,char:0,msg:"syntax analysis error analyzing input SABNF grammar"});const u={lines:c,lineNo:0,errors:t,strict:!!r};return l.ast.translate(u),c}},12092:(e,t,n)=>{e.exports=function(){const e=n(91572),t=e.ids,r=function(){this.names=[],this.add=function(e){let t=-1;return-1===this.get(e)&&(t={name:e,lower:e.toLowerCase(),index:this.names.length},this.names.push(t)),t},this.get=function(e){let t=-1;const n=e.toLowerCase();for(let r=0;r=48&&t<=57)t-=48;else if(t>=65&&t<=70)t-=55;else{if(!(t>=97&&t<=102))throw new Error("hexnum out of range");t-=87}r=16*r+t}return r};this.callbacks=[],this.callbacks.abgop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.ABG}),o},this.callbacks.aenop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.AEN}),o},this.callbacks.alternation=function(e,n,r,a,i){let o=t.SEM_OK;if(e===t.SEM_PRE){const e=!0;for(;e;){if(null===i.definedas){o=t.SEM_SKIP;break}if(null===i.topStack){if("="===i.definedas){i.topStack={alt:{type:t.ALT,children:[]},cat:null},i.altStack.push(i.topStack),i.opcodes.push(i.topStack.alt);break}i.topStack={alt:i.opcodes[0],cat:null},i.altStack.push(i.topStack);break}i.topStack={alt:{type:t.ALT,children:[]},cat:null},i.altStack.push(i.topStack),i.opcodes.push(i.topStack.alt);break}}else e===t.SEM_POST&&(i.altStack.pop(),i.altStack.length>0?i.topStack=i.altStack[i.altStack.length-1]:i.topStack=null);return o},this.callbacks.andop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.AND}),o},this.callbacks.bmax=function(e,n,r,a,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.max=i(n,r,a)),s},this.callbacks.bmin=function(e,n,r,a,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.min=i(n,r,a)),s},this.callbacks.bkaop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.BKA}),o},this.callbacks.bknop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.BKN}),o},this.callbacks.bkrop=function(n,r,a,i,o){const s=t.SEM_OK;return n===t.SEM_PRE?(o.ci=!0,o.cs=!1,o.um=!0,o.pm=!1):n===t.SEM_POST&&o.opcodes.push({type:t.BKR,bkrCase:!0===o.cs?t.BKR_MODE_CS:t.BKR_MODE_CI,bkrMode:!0===o.pm?t.BKR_MODE_PM:t.BKR_MODE_UM,index:{phraseIndex:o.bkrname.phraseIndex,name:e.utils.charsToString(r,o.bkrname.phraseIndex,o.bkrname.phraseLength)}}),s},this.callbacks["bkr-name"]=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.bkrname={phraseIndex:r,phraseLength:a}),o},this.callbacks.bstring=function(e,n,r,a,o){const s=t.SEM_OK;return e===t.SEM_POST&&o.tbsstr.push(i(n,r,a)),s},this.callbacks.clsop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(a<=2?i.opcodes.push({type:t.TLS,string:[]}):i.opcodes.push({type:t.TBS,string:n.slice(r+1,r+a-1)})),o},this.callbacks.ci=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.ci=!0),o},this.callbacks.cs=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.cs=!0),o},this.callbacks.um=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.um=!0),o},this.callbacks.pm=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.pm=!0),o},this.callbacks.concatenation=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE?(i.topStack.alt.children.push(i.opcodes.length),i.topStack.cat={type:t.CAT,children:[]},i.opcodes.push(i.topStack.cat)):e===t.SEM_POST&&(i.topStack.cat=null),o},this.callbacks.defined=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.definedas="="),o},this.callbacks.dmax=function(e,n,r,i,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.max=a(n,r,i)),s},this.callbacks.dmin=function(e,n,r,i,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.min=a(n,r,i)),s},this.callbacks.dstring=function(e,n,r,i,o){const s=t.SEM_OK;return e===t.SEM_POST&&o.tbsstr.push(a(n,r,i)),s},this.callbacks.file=function(e,n,a,i,o){const s=t.SEM_OK;if(e===t.SEM_PRE)o.ruleNames=new r,o.udtNames=new r,o.rules=[],o.udts=[],o.rulesLineMap=[],o.opcodes=[],o.altStack=[],o.topStack=null,o.topRule=null;else if(e===t.SEM_POST){let e;o.rules.forEach((n=>{n.isBkr=!1,n.opcodes.forEach((n=>{n.type===t.RNM&&(e=o.ruleNames.get(n.index.name),-1===e?(o.errors.push({line:o.findLine(o.lines,n.index.phraseIndex,o.charsLength),char:n.index.phraseIndex,msg:"Rule name '".concat(n.index.name,"' used but not defined.")}),n.index=-1):n.index=e.index)}))})),o.udts.forEach((e=>{e.isBkr=!1})),o.rules.forEach((n=>{n.opcodes.forEach((r=>{r.type===t.BKR&&(n.hasBkr=!0,e=o.ruleNames.get(r.index.name),-1!==e?(o.rules[e.index].isBkr=!0,r.index=e.index):(e=o.udtNames.get(r.index.name),-1!==e?(o.udts[e.index].isBkr=!0,r.index=o.rules.length+e.index):(o.errors.push({line:o.findLine(o.lines,r.index.phraseIndex,o.charsLength),char:r.index.phraseIndex,msg:"Back reference name '".concat(r.index.name,"' refers to undefined rule or unamed UDT.")}),r.index=-1)))}))}))}return s},this.callbacks.incalt=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&(i.definedas="=/"),o},this.callbacks.notop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.NOT}),o},this.callbacks.optionopen=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&i.opcodes.push({type:t.REP,min:0,max:1,char:r}),o},this.callbacks["rep-max"]=function(e,n,r,i,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.max=a(n,r,i)),s},this.callbacks["rep-min"]=function(e,n,r,i,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.min=a(n,r,i)),s},this.callbacks["rep-min-max"]=function(e,n,r,i,o){const s=t.SEM_OK;return e===t.SEM_POST&&(o.max=a(n,r,i),o.min=o.max),s},this.callbacks.repetition=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE&&i.topStack.cat.children.push(i.opcodes.length),o},this.callbacks.repop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE?(i.min=0,i.max=1/0,i.topRep={type:t.REP,min:0,max:1/0},i.opcodes.push(i.topRep)):e===t.SEM_POST&&(i.min>i.max&&i.errors.push({line:i.findLine(i.lines,r,i.charsLength),char:r,msg:"repetition min cannot be greater than max: min: ".concat(i.min,": max: ").concat(i.max)}),i.topRep.min=i.min,i.topRep.max=i.max),o},this.callbacks.rnmop=function(n,r,a,i,o){const s=t.SEM_OK;return n===t.SEM_POST&&o.opcodes.push({type:t.RNM,index:{phraseIndex:a,name:e.utils.charsToString(r,a,i)}}),s},this.callbacks.rule=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE&&(i.altStack.length=0,i.topStack=null,i.rulesLineMap.push({line:i.findLine(i.lines,r,i.charsLength),char:r})),o},this.callbacks.rulelookup=function(e,n,r,a,i){const o=t.SEM_OK;if(e===t.SEM_PRE)i.ruleName="",i.definedas="";else if(e===t.SEM_POST){let e;"="===i.definedas?(e=i.ruleNames.add(i.ruleName),-1===e?(i.definedas=null,i.errors.push({line:i.findLine(i.lines,r,i.charsLength),char:r,msg:"Rule name '".concat(i.ruleName,"' previously defined.")})):(i.topRule={name:e.name,lower:e.lower,opcodes:[],index:e.index},i.rules.push(i.topRule),i.opcodes=i.topRule.opcodes)):(e=i.ruleNames.get(i.ruleName),-1===e?(i.definedas=null,i.errors.push({line:i.findLine(i.lines,r,i.charsLength),char:r,msg:"Rule name '".concat(i.ruleName,"' for incremental alternate not previously defined.")})):(i.topRule=i.rules[e.index],i.opcodes=i.topRule.opcodes))}return o},this.callbacks.rulename=function(n,r,a,i,o){const s=t.SEM_OK;return n===t.SEM_PRE&&(o.ruleName=e.utils.charsToString(r,a,i)),s},this.callbacks.tbsop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE?i.tbsstr=[]:e===t.SEM_POST&&i.opcodes.push({type:t.TBS,string:i.tbsstr}),o},this.callbacks.tlscase=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_POST&&a>0&&(83===n[r+1]||115===n[r+1])&&(i.tlscase=!1),o},this.callbacks.tlsstring=function(e,n,r,a,i){const o=t.SEM_OK;if(e===t.SEM_POST)if(i.tlscase){const e=n.slice(r,r+a);for(let t=0;t=65&&e[t]<=90&&(e[t]+=32);i.opcodes.push({type:t.TLS,string:e})}else i.opcodes.push({type:t.TBS,string:n.slice(r,r+a)});return o},this.callbacks.tlsop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE&&(i.tlscase=!0),o},this.callbacks.trgop=function(e,n,r,a,i){const o=t.SEM_OK;return e===t.SEM_PRE?(i.min=0,i.max=0):e===t.SEM_POST&&(i.min>i.max&&i.errors.push({line:i.findLine(i.lines,r,i.charsLength),char:r,msg:"TRG, (%dmin-max), min cannot be greater than max: min: ".concat(i.min,": max: ").concat(i.max)}),i.opcodes.push({type:t.TRG,min:i.min,max:i.max})),o},this.callbacks["udt-empty"]=function(n,r,a,i,o){const s=t.SEM_OK;if(n===t.SEM_POST){const n=e.utils.charsToString(r,a,i);let s=o.udtNames.add(n);if(-1===s){if(s=o.udtNames.get(n),-1===s)throw new Error("semUdtEmpty: name look up error")}else o.udts.push({name:s.name,lower:s.lower,index:s.index,empty:!0});o.opcodes.push({type:t.UDT,empty:!0,index:s.index})}return s},this.callbacks["udt-non-empty"]=function(n,r,a,i,o){const s=t.SEM_OK;if(n===t.SEM_POST){const n=e.utils.charsToString(r,a,i);let s=o.udtNames.add(n);if(-1===s){if(s=o.udtNames.get(n),-1===s)throw new Error("semUdtNonEmpty: name look up error")}else o.udts.push({name:s.name,lower:s.lower,index:s.index,empty:!1});o.opcodes.push({type:t.UDT,empty:!1,index:s.index,syntax:null,semantic:null})}return s},this.callbacks.xmax=function(e,n,r,a,i){const s=t.SEM_OK;return e===t.SEM_POST&&(i.max=o(n,r,a)),s},this.callbacks.xmin=function(e,n,r,a,i){const s=t.SEM_OK;return e===t.SEM_POST&&(i.min=o(n,r,a)),s},this.callbacks.xstring=function(e,n,r,a,i){const s=t.SEM_OK;return e===t.SEM_POST&&i.tbsstr.push(o(n,r,a)),s}}},51661:e=>{e.exports=function(){const e="show-rules.js";return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"index";const a="showRules";let i=[],o=[];const s=[],c=[],l=t,u=n,d=t.length,p=n.length;let f,h="RULE/UDT NAMES";if(!Array.isArray(t)||!t.length)throw new Error("".concat(e,":").concat(a,": rules arg must be array with length > 0"));if(!Array.isArray(n))throw new Error("".concat(e,":").concat(a,": udts arg must be array"));for(f=0;fl[t].lower?1:0})),p){for(f=0;fu[t].lower?1:0}))}if(97===r.charCodeAt(0)){for(h+=" - alphabetical by rule/UDT name\n",f=0;f{e.exports=function(){const e="syntax-callbacks.js: ",t=n(91572),r=t.ids;let a;this.callbacks=[],this.callbacks.andop=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"AND operator(&) found - strict ABNF specified."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.basicelementerr=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:!1===a.basicError&&o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Unrecognized SABNF element."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.clsclose=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:break;case r.NOMATCH:o.errors.push({line:o.findLine(o.lines,a.clsOpen),char:a.clsOpen,msg:"Case-sensitive literal string('...') opened but not closed."}),a.clsOpen=null,a.basicError=!0;break;case r.MATCH:o.strict&&o.errors.push({line:o.findLine(o.lines,a.clsOpen),char:a.clsOpen,msg:"Case-sensitive string operator('...') found - strict ABNF specified."}),a.clsOpen=null;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.clsopen=function(t,n,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:a.clsOpen=i;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.clsstring=function(t,n,a,i){switch(t.state){case r.ACTIVE:i.stringTabChar=!1;break;case r.EMPTY:case r.NOMATCH:break;case r.MATCH:!1!==i.stringTabChar&&i.errors.push({line:i.findLine(i.lines,i.stringTabChar),char:i.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.definedaserror=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Expected '=' or '=/'. Not found."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.file=function(t,n,a,i){switch(t.state){case r.ACTIVE:i.altStack=[],i.repCount=0;break;case r.EMPTY:i.errors.push({line:0,char:0,msg:"grammar file is empty"});break;case r.MATCH:0===i.ruleCount&&i.errors.push({line:0,char:0,msg:"no rules defined"});break;case r.NOMATCH:throw new Error("".concat(e,"synFile: grammar file NOMATCH: design error: should never happen."));default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.groupclose=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:break;case r.NOMATCH:o.errors.push({line:o.findLine(o.lines,a.groupOpen),char:a.groupOpen,msg:'Group "(...)" opened but not closed.'}),a=o.altStack.pop(),a.groupError=!0;break;case r.MATCH:a=o.altStack.pop();break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.groupopen=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:a={groupOpen:i,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(a);break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.lineenderror=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Unrecognized grammar element or characters."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.lineend=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:if(1===t.phraseLength&&i.strict){const e=13===n[a]?"CR":"LF";i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Line end '".concat(e,"' found - strict ABNF specified, only CRLF allowed.")})}break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.notop=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"NOT operator(!) found - strict ABNF specified."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.optionclose=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:break;case r.NOMATCH:o.errors.push({line:o.findLine(o.lines,a.optionOpen),char:a.optionOpen,msg:'Option "[...]" opened but not closed.'}),a=o.altStack.pop(),a.optionError=!0;break;case r.MATCH:a=o.altStack.pop();break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.optionopen=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:a={groupOpen:null,groupError:!1,optionOpen:i,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(a);break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.prosvalclose=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:break;case r.NOMATCH:o.errors.push({line:o.findLine(o.lines,a.prosValOpen),char:a.prosValOpen,msg:"Prose value operator(<...>) opened but not closed."}),a.basicError=!0,a.prosValOpen=null;break;case r.MATCH:o.errors.push({line:o.findLine(o.lines,a.prosValOpen),char:a.prosValOpen,msg:"Prose value operator(<...>) found. The ABNF syntax is valid, but a parser cannot be generated from this grammar."}),a.prosValOpen=null;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.prosvalopen=function(t,n,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:a.prosValOpen=i;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.prosvalstring=function(t,n,a,i){switch(t.state){case r.ACTIVE:i.stringTabChar=!1;break;case r.EMPTY:case r.NOMATCH:break;case r.MATCH:!1!==i.stringTabChar&&i.errors.push({line:i.findLine(i.lines,i.stringTabChar),char:i.stringTabChar,msg:"Tab character (\\t, x09) not allowed in prose value string."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.repetition=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:break;case r.NOMATCH:case r.MATCH:i.repCount+=1;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.rule=function(t,n,i,o){switch(t.state){case r.ACTIVE:o.altStack.length=0,a={groupOpen:null,groupError:!1,optionOpen:null,optionError:!1,tlsOpen:null,clsOpen:null,prosValOpen:null,basicError:!1},o.altStack.push(a);break;case r.EMPTY:throw new Error("".concat(e,"synRule: EMPTY: rule cannot be empty"));case r.NOMATCH:break;case r.MATCH:o.ruleCount+=1;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.ruleerror=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Unrecognized SABNF line. Invalid rule, comment or blank line."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.rulenameerror=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Rule names must be alphanum and begin with alphabetic character."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.stringtab=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.stringTabChar=a;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.tlsclose=function(t,n,i,o){switch(t.state){case r.ACTIVE:case r.EMPTY:break;case r.NOMATCH:o.errors.push({line:o.findLine(o.lines,a.tlsOpen),char:a.tlsOpen,msg:'Case-insensitive literal string("...") opened but not closed.'}),a.basicError=!0,a.tlsOpen=null;break;case r.MATCH:a.tlsOpen=null;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.tlsopen=function(t,n,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:a.tlsOpen=i;break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.tlsstring=function(t,n,a,i){switch(t.state){case r.ACTIVE:i.stringTabChar=!1;break;case r.EMPTY:case r.NOMATCH:break;case r.MATCH:!1!==i.stringTabChar&&i.errors.push({line:i.findLine(i.lines,i.stringTabChar),char:i.stringTabChar,msg:"Tab character (\\t, x09) not allowed in literal string (see 'quoted-string' definition, RFC 7405.)"});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.udtop=function(n,a,i,o){switch(n.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:if(o.strict){const e=t.utils.charsToString(a,i,n.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"UDT operator found(".concat(e,") - strict ABNF specified.")})}break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.bkaop=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Positive look-behind operator(&&) found - strict ABNF specified."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.bknop=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Negative look-behind operator(!!) found - strict ABNF specified."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.bkrop=function(n,a,i,o){switch(n.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:if(o.strict){const e=t.utils.charsToString(a,i,n.phraseLength);o.errors.push({line:o.findLine(o.lines,i,o.charsLength),char:i,msg:"Back reference operator(".concat(e,") found - strict ABNF specified.")})}break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.abgop=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"Beginning of string anchor(%^) found - strict ABNF specified."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}},this.callbacks.aenop=function(t,n,a,i){switch(t.state){case r.ACTIVE:case r.EMPTY:case r.NOMATCH:break;case r.MATCH:i.strict&&i.errors.push({line:i.findLine(i.lines,a,i.charsLength),char:a,msg:"End of string anchor(%$) found - strict ABNF specified."});break;default:throw new Error("".concat(e,"synFile: unrecognized case."))}}}},21711:(e,t,n)=>{const{Buffer:r}=n(38173),a=n(88e3),i="UTF8",o="UTF16",s="UTF16BE",c="UTF16LE",l="UTF32",u="UTF32BE",d="UTF32LE",p="UINT7",f="ASCII",h="BINARY",m="UINT8",g="UINT16",y="UINT16LE",b="UINT16BE",v="UINT32",w="UINT32LE",E="UINT32BE",x="ESCAPED",k="STRING",P=function(e,t){const n=function(e){const t={type:"",base64:!1},n=/^(base64:)?([a-zA-Z0-9]+)$/i.exec(e);return n&&(n[2]&&(t.type=n[2].toUpperCase()),n[1]&&(t.base64=!0)),t}(e.toUpperCase());if(n.base64){if(n.type===k)throw new TypeError('type: "'.concat(e,' "BASE64:" prefix not allowed with type ').concat(k));if(r.isBuffer(t))n.data=a.base64.decode(t);else{if("string"!==typeof t)throw new TypeError('type: "'.concat(e," unrecognized data type: typeof(data): ").concat(typeof t));{const e=r.from(t,"ascii");n.data=a.base64.decode(e)}}}else n.data=t;switch(n.type){case i:!function(e){e.type=i;const t=e.data;e.bom=0,t.length>=3&&239===t[0]&&187===t[1]&&191===t[2]&&(e.bom=3)}(n);break;case o:case s:case c:!function(e){const t=e.data;switch(e.bom=0,e.type){case o:e.type=s,t.length>=2&&(254===t[0]&&255===t[1]?e.bom=2:255===t[0]&&254===t[1]&&(e.type=c,e.bom=2));break;case s:if(e.type=s,t.length>=2)if(254===t[0]&&255===t[1])e.bom=2;else if(255===t[0]&&254===t[1])throw new TypeError('src type: "'.concat(s,'" specified but BOM is for "').concat(c,'"'));break;case c:if(e.type=c,t.length>=0){if(254===t[0]&&255===t[1])throw new TypeError('src type: "'.concat(c,'" specified but BOM is for "').concat(s,'"'));255===t[0]&&254===t[1]&&(e.bom=2)}break;default:throw new TypeError('UTF16 BOM: src type "'.concat(e.type,'" unrecognized'))}}(n);break;case l:case u:case d:!function(e){const t=e.data;switch(e.bom=0,e.type){case l:e.type=u,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.type=d,e.bom=4));break;case u:if(e.type=u,t.length>=4&&(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3]&&(e.bom=4),255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]))throw new TypeError("src type: ".concat(u," specified but BOM is for ").concat(d,'"'));break;case d:if(e.type=d,t.length>=4){if(0===t[0]&&0===t[1]&&254===t[2]&&255===t[3])throw new TypeError('src type: "'.concat(d,'" specified but BOM is for "').concat(u,'"'));255===t[0]&&254===t[1]&&0===t[2]&&0===t[3]&&(e.bom=4)}break;default:throw new TypeError('UTF32 BOM: src type "'.concat(e.type,'" unrecognized'))}}(n);break;case g:n.type=b;break;case v:n.type=E;break;case f:n.type=p;break;case h:n.type=m;break;case p:case m:case y:case b:case w:case E:case k:case x:break;default:throw new TypeError('type: "'.concat(e,'" not recognized'))}if(n.type===k){if("string"!==typeof n.data)throw new TypeError('type: "'.concat(e,'" but data is not a string'))}else if(!r.isBuffer(n.data))throw new TypeError('type: "'.concat(e,'" but data is not a Buffer'));return n},S=function(e,t){switch(e){case i:return a.utf8.encode(t);case s:return a.utf16be.encode(t);case c:return a.utf16le.encode(t);case u:return a.utf32be.encode(t);case d:return a.utf32le.encode(t);case p:return a.uint7.encode(t);case m:return a.uint8.encode(t);case b:return a.uint16be.encode(t);case y:return a.uint16le.encode(t);case E:return a.uint32be.encode(t);case w:return a.uint32le.encode(t);case k:return a.string.encode(t);case x:return a.escaped.encode(t);default:throw new TypeError('encode type "'.concat(e,'" not recognized'))}};t.decode=function(e,t){return function(e){switch(e.type){case i:return a.utf8.decode(e.data,e.bom);case c:return a.utf16le.decode(e.data,e.bom);case s:return a.utf16be.decode(e.data,e.bom);case u:return a.utf32be.decode(e.data,e.bom);case d:return a.utf32le.decode(e.data,e.bom);case p:return a.uint7.decode(e.data);case m:return a.uint8.decode(e.data);case b:return a.uint16be.decode(e.data);case y:return a.uint16le.decode(e.data);case E:return a.uint32be.decode(e.data);case w:return a.uint32le.decode(e.data);case k:return a.string.decode(e.data);case x:return a.escaped.decode(e.data);default:throw new TypeError('decode type "'.concat(e.type,'" not recognized'))}}(P(e,t))},t.encode=function(e,t){let n,r;const P=function(e,t){if(!Array.isArray(t))throw new TypeError('dst chars: not array: "'.concat(typeof t));if("string"!==typeof e)throw new TypeError('dst type: not string: "'.concat(typeof e));const n=function(e){let t,n;const r={crlf:!1,lf:!1,base64:!1,type:""};for(;;){if(n=e,t=e.slice(0,5),"CRLF:"===t){r.crlf=!0,n=e.slice(5);break}if(t=e.slice(0,3),"LF:"===t){r.lf=!0,n=e.slice(3);break}break}return t=n.split(":"),1===t.length?r.type=t[0]:2===t.length&&"BASE64"===t[1]&&(r.base64=!0,r.type=t[0]),r}(e.toUpperCase());switch(n.type){case i:case s:case c:case u:case d:case p:case m:case y:case b:case w:case E:case x:break;case k:if(n.base64)throw new TypeError('":BASE64" suffix not allowed with type '.concat(k));break;case f:n.type=p;break;case h:n.type=m;break;case o:n.type=s;break;case l:n.type=u;break;case g:n.type=b;break;case v:n.type=E;break;default:throw new TypeError('dst type unrecognized: "'.concat(e,'" : must have form [crlf:|lf:]type[:base64]'))}return n}(e,t);return P.crlf?(n=a.lineEnds.crlf(t),r=S(P.type,n)):P.lf?(n=a.lineEnds.lf(t),r=S(P.type,n)):r=S(P.type,t),P.base64&&(r=a.base64.encode(r)),r};t.convert=function(e,n,r){return t.encode(r,t.decode(e,n))}},88e3:(e,t,n)=>{const{Buffer:r}=n(38173),a=4294967292,i=4294967293,o=4294967294,s=4294967295,c=[0,1,3,7,15,31,63,127,255,511,1023],l=["00","01","02","03","04","05","06","07","08","09","0A","0B","0C","0D","0E","0F","10","11","12","13","14","15","16","17","18","19","1A","1B","1C","1D","1E","1F","20","21","22","23","24","25","26","27","28","29","2A","2B","2C","2D","2E","2F","30","31","32","33","34","35","36","37","38","39","3A","3B","3C","3D","3E","3F","40","41","42","43","44","45","46","47","48","49","4A","4B","4C","4D","4E","4F","50","51","52","53","54","55","56","57","58","59","5A","5B","5C","5D","5E","5F","60","61","62","63","64","65","66","67","68","69","6A","6B","6C","6D","6E","6F","70","71","72","73","74","75","76","77","78","79","7A","7B","7C","7D","7E","7F","80","81","82","83","84","85","86","87","88","89","8A","8B","8C","8D","8E","8F","90","91","92","93","94","95","96","97","98","99","9A","9B","9C","9D","9E","9F","A0","A1","A2","A3","A4","A5","A6","A7","A8","A9","AA","AB","AC","AD","AE","AF","B0","B1","B2","B3","B4","B5","B6","B7","B8","B9","BA","BB","BC","BD","BE","BF","C0","C1","C2","C3","C4","C5","C6","C7","C8","C9","CA","CB","CC","CD","CE","CF","D0","D1","D2","D3","D4","D5","D6","D7","D8","D9","DA","DB","DC","DD","DE","DF","E0","E1","E2","E3","E4","E5","E6","E7","E8","E9","EA","EB","EC","ED","EE","EF","F0","F1","F2","F3","F4","F5","F6","F7","F8","F9","FA","FB","FC","FD","FE","FF"],u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),d=[];u.forEach((e=>{d.push(e.charCodeAt(0))})),t.utf8={encode(e){const t=[];return e.forEach((e=>{if(e>=0&&e<=127)t.push(e);else if(e<=2047)t.push(192+(e>>6&c[5])),t.push(128+(e&c[6]));else if(e<55296||e>57343&&e<=65535)t.push(224+(e>>12&c[4])),t.push(128+(e>>6&c[6])),t.push(128+(e&c[6]));else{if(!(e>=65536&&e<=1114111))throw new RangeError("utf8.encode: character out of range: char: ".concat(e));{const n=e>>16&c[5];t.push(240+(n>>2)),t.push(128+((n&c[2])<<4)+(e>>12&c[4])),t.push(128+(e>>6&c[6])),t.push(128+(e&c[6]))}}})),r.from(t)},decode(e,t){function n(e,t){if(128!==(192&t))return i;const n=((e&c[5])<<6)+(t&c[6]);return n<128?a:n}function r(e,t,n){if(128!==(192&n)||128!==(192&t))return i;const r=((e&c[4])<<12)+((t&c[6])<<6)+(n&c[6]);return r<2048?a:r>=55296&&r<=57343?o:r}function l(e,t,n,r){if(128!==(192&r)||128!==(192&n)||128!==(192&t))return i;const s=(((e&c[3])<<2)+(t>>4&c[2])<<16)+((t&c[4])<<12)+((n&c[6])<<6)+(r&c[6]);return s<65536?a:s>1114111?o:s}let u,d,p,f,h,m;const g=e.length;let y=t?3:0;const b=[];for(;y=0&&d<=127){u=d,m=1;break}if(p=y+1,p=194&&d<=223){u=n(d,e[p]),m=2;break}if(f=y+2,f=224&&d<=239){u=r(d,e[p],e[f]),m=3;break}if(h=y+3,h=240&&d<=244){u=l(d,e[p],e[f],e[h]),m=4;break}break}if(u>1114111){const e="byte[".concat(y,"]");if(u===s)throw new RangeError("utf8.decode: ill-formed UTF8 byte sequence found at: ".concat(e));if(u===i)throw new RangeError("utf8.decode: illegal trailing byte found at: ".concat(e));if(u===o)throw new RangeError("utf8.decode: code point out of range found at: ".concat(e));if(u===a)throw new RangeError("utf8.decode: non-shortest form found at: ".concat(e));throw new RangeError("utf8.decode: unrecognized error found at: ".concat(e))}b.push(u),y+=m}return b}},t.utf16be={encode(e){const t=[];let n,a,i;for(let r=0;r=0&&n<=55295||n>=57344&&n<=65535)t.push(n>>8&c[8]),t.push(n&c[8]);else{if(!(n>=65536&&n<=1114111))throw new RangeError("utf16be.encode: UTF16BE value out of range: char[".concat(r,"]: ").concat(n));i=n-65536,a=55296+(i>>10),i=56320+(i&c[10]),t.push(a>>8&c[8]),t.push(a&c[8]),t.push(i>>8&c[8]),t.push(i&c[8])}return r.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError("utf16be.decode: data length must be even multiple of 2: length: ".concat(e.length));const n=[],r=e.length;let a,i,o,s,c,l,u=t?2:0,d=0;for(;u57343){a=c,i=2;break}if(s=u+3,s=56320&&l<=57343)){a=65536+(c-55296<<10)+(l-56320),i=4;break}}throw new RangeError("utf16be.decode: ill-formed UTF16BE byte sequence found: byte[".concat(u,"]"))}n[d++]=a,u+=i}return n}},t.utf16le={encode(e){const t=[];let n,a,i;for(let r=0;r=0&&n<=55295||n>=57344&&n<=65535)t.push(n&c[8]),t.push(n>>8&c[8]);else{if(!(n>=65536&&n<=1114111))throw new RangeError("utf16le.encode: UTF16LE value out of range: char[".concat(r,"]: ").concat(n));i=n-65536,a=55296+(i>>10),i=56320+(i&c[10]),t.push(a&c[8]),t.push(a>>8&c[8]),t.push(i&c[8]),t.push(i>>8&c[8])}return r.from(t)},decode(e,t){if(e.length%2>0)throw new RangeError("utf16le.decode: data length must be even multiple of 2: length: ".concat(e.length));const n=[],r=e.length;let a,i,o,s,c,l,u=t?2:0,d=0;for(;u57343){a=c,i=2;break}if(s=u+3,s=56320&&l<=57343)){a=65536+(c-55296<<10)+(l-56320),i=4;break}}throw new RangeError("utf16le.decode: ill-formed UTF16LE byte sequence found: byte[".concat(u,"]"))}n[d++]=a,u+=i}return n}},t.utf32be={encode(e){const t=r.alloc(4*e.length);let n=0;return e.forEach((e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError("utf32be.encode: UTF32BE character code out of range: char[".concat(n/4,"]: ").concat(e));t[n++]=e>>24&c[8],t[n++]=e>>16&c[8],t[n++]=e>>8&c[8],t[n++]=e&c[8]})),t},decode(e,t){if(e.length%4>0)throw new RangeError("utf32be.decode: UTF32BE byte length must be even multiple of 4: length: ".concat(e.length));const n=[];let r=t?4:0;for(;r=55296&&t<=57343||t>1114111)throw new RangeError("utf32be.decode: UTF32BE character code out of range: char[".concat(r/4,"]: ").concat(t));n.push(t)}return n}},t.utf32le={encode(e){const t=r.alloc(4*e.length);let n=0;return e.forEach((e=>{if(e>=55296&&e<=57343||e>1114111)throw new RangeError("utf32le.encode: UTF32LE character code out of range: char[".concat(n/4,"]: ").concat(e));t[n++]=e&c[8],t[n++]=e>>8&c[8],t[n++]=e>>16&c[8],t[n++]=e>>24&c[8]})),t},decode(e,t){if(e.length%4>0)throw new RangeError("utf32be.decode: UTF32LE byte length must be even multiple of 4: length: ".concat(e.length));const n=[];let r=t?4:0;for(;r=55296&&t<=57343||t>1114111)throw new RangeError("utf32le.encode: UTF32LE character code out of range: char[".concat(r/4,"]: ").concat(t));n.push(t)}return n}},t.uint7={encode(e){const t=r.alloc(e.length);for(let n=0;n127)throw new RangeError("uint7.encode: UINT7 character code out of range: char[".concat(n,"]: ").concat(e[n]));t[n]=e[n]}return t},decode(e){const t=[];for(let n=0;n127)throw new RangeError("uint7.decode: UINT7 character code out of range: byte[".concat(n,"]: ").concat(e[n]));t[n]=e[n]}return t}},t.uint8={encode(e){const t=r.alloc(e.length);for(let n=0;n255)throw new RangeError("uint8.encode: UINT8 character code out of range: char[".concat(n,"]: ").concat(e[n]));t[n]=e[n]}return t},decode(e){const t=[];for(let n=0;n{if(e>65535)throw new RangeError("uint16be.encode: UINT16BE character code out of range: char[".concat(n/2,"]: ").concat(e));t[n++]=e>>8&c[8],t[n++]=e&c[8]})),t},decode(e){if(e.length%2>0)throw new RangeError("uint16be.decode: UINT16BE byte length must be even multiple of 2: length: ".concat(e.length));const t=[];for(let n=0;n{if(e>65535)throw new RangeError("uint16le.encode: UINT16LE character code out of range: char[".concat(n/2,"]: ").concat(e));t[n++]=e&c[8],t[n++]=e>>8&c[8]})),t},decode(e){if(e.length%2>0)throw new RangeError("uint16le.decode: UINT16LE byte length must be even multiple of 2: length: ".concat(e.length));const t=[];for(let n=0;n{t[n++]=e>>24&c[8],t[n++]=e>>16&c[8],t[n++]=e>>8&c[8],t[n++]=e&c[8]})),t},decode(e){if(e.length%4>0)throw new RangeError("uint32be.decode: UINT32BE byte length must be even multiple of 4: length: ".concat(e.length));const t=[];for(let n=0;n{t[n++]=e&c[8],t[n++]=e>>8&c[8],t[n++]=e>>16&c[8],t[n++]=e>>24&c[8]})),t},decode(e){if(e.length%4>0)throw new RangeError("uint32le.decode: UINT32LE byte length must be even multiple of 4: length: ".concat(e.length));const t=[];for(let n=0;nt.utf16le.encode(e).toString("utf16le"),decode:e=>t.utf16le.decode(r.from(e,"utf16le"),0)},t.escaped={encode(e){const t=[];for(let n=0;n=32&&a<=126)t.push(a);else{let e="";if(a>=0&&a<=31)e+="`x".concat(l[a]);else if(a>=127&&a<=255)e+="`x".concat(l[a]);else if(a>=256&&a<=65535)e+="`u".concat(l[a>>8&c[8]]).concat(l[a&c[8]]);else{if(!(a>=65536&&a<=4294967295))throw new Error("escape.encode(char): char > 0xffffffff not allowed");{e+="`u{";const t=a>>24&c[8];t>0&&(e+=l[t]),e+="".concat(l[a>>16&c[8]]+l[a>>8&c[8]]+l[a&c[8]],"}")}}r.from(e).forEach((e=>{t.push(e)}))}}return r.from(t)},decode(e){function t(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function n(e,n,r){const a={char:null,nexti:e+2,error:!0};if(e+1=o)break;if(96===e[s]){i.push(96),u+=2,l=!1;break}if(120===e[s]){if(c=n(s+1,o,e),c.error)break;i.push(c.char),u=c.nexti,l=!1;break}if(117===e[s]){if(123===e[s+1]){if(c=a(s+2,o,e),c.error)break;i.push(c.char),u=c.nexti,l=!1;break}if(c=r(s+1,o,e),c.error)break;i.push(c.char),u=c.nexti,l=!1;break}break}if(l)throw new Error("escaped.decode: ill-formed escape sequence at buf[".concat(u,"]"))}return i}};const p=10;t.lineEnds={crlf(e){const t=[];let n=0;for(;n0&&t[t.length-1]!==p&&(t.push(13),t.push(p)),t},lf(e){const t=[];let n=0;for(;n0&&t[t.length-1]!==p&&t.push(p),t}},t.base64={encode(e){if(0===e.length)return r.alloc(0);let t,n,a,i=e.length%3;i=i>0?3-i:0;let o=(e.length+i)/3;const s=r.alloc(4*o);i>0&&(o-=1),t=0,n=0;for(let r=0;r>18&c[6]],s[n++]=d[a>>12&c[6]],s[n++]=d[a>>6&c[6]],s[n++]=d[a&c[6]];return 0===i?s:1===i?(a=e[t++]<<16,a+=e[t]<<8,s[n++]=d[a>>18&c[6]],s[n++]=d[a>>12&c[6]],s[n++]=d[a>>6&c[6]],s[n]=d[64],s):2===i?(a=e[t]<<16,s[n++]=d[a>>18&c[6]],s[n++]=d[a>>12&c[6]],s[n++]=d[64],s[n]=d[64],s):void 0},decode(e){if(0===e.length)return r.alloc(0);const t=function(e){const t=[];let n=0;for(let r=0;r=65&&a<=90){t.push(a-65);break}if(a>=97&&a<=122){t.push(a-71);break}if(a>=48&&a<=57){t.push(a+4);break}if(43===a){t.push(62);break}if(47===a){t.push(63);break}if(61===a){t.push(64),n+=1;break}throw new RangeError("base64.decode: invalid character buf[".concat(r,"]: ").concat(a))}}if(t.length%4>0)throw new RangeError("base64.decode: string length not integral multiple of 4: ".concat(t.length));switch(n){case 0:break;case 1:if(64!==t[t.length-1])throw new RangeError("base64.decode: one tail character found: not last character");break;case 2:if(64!==t[t.length-1]||64!==t[t.length-2])throw new RangeError("base64.decode: two tail characters found: not last characters");break;default:throw new RangeError("base64.decode: more than two tail characters found: ".concat(n))}return{tail:n,buf:r.from(t)}}(e),{tail:n}=t,a=t.buf;let i,o,s,l=a.length/4;const u=r.alloc(3*l-n);n>0&&(l-=1),o=0,i=0;for(let r=0;r>16&c[8],u[o++]=s>>8&c[8],u[o++]=s&c[8];return 1===n&&(s=a[i++]<<18,s+=a[i++]<<12,s+=a[i]<<6,u[o++]=s>>16&c[8],u[o]=s>>8&c[8]),2===n&&(s=a[i++]<<18,s+=a[i++]<<12,u[o]=s>>16&c[8]),u},toString(e){if(e.length%4>0)throw new RangeError("base64.toString: input buffer length not multiple of 4: ".concat(e.length));let t="",n=0;function r(e,r,a,i){switch(n){case 76:t+="\r\n".concat(e).concat(r).concat(a).concat(i),n=4;break;case 75:t+="".concat(e,"\r\n").concat(r).concat(a).concat(i),n=3;break;case 74:t+="".concat(e+r,"\r\n").concat(a).concat(i),n=2;break;case 73:t+="".concat(e+r+a,"\r\n").concat(i),n=1;break;default:t+=e+r+a+i,n+=4}}function a(e){return e>=65&&e<=90||(e>=97&&e<=122||(e>=48&&e<=57||(43===e||(47===e||61===e))))}for(let i=0;i{e.exports=function(){const e=n(7856),t=n(88764),r=this;let a=null,i=null,o=null,s=0;const c=[],l=[],u=[],d=[];function p(e){let t="";for(let n=0;n0?d[e-1].stack:0},this.getLength=function(){return d.length},this.toXml=function(n){let r=t.charsToDec,a="decimal integer character codes";if("string"===typeof n&&n.length>=3){const e=n.slice(0,3).toLowerCase();"asc"===e?(r=t.charsToAscii,a="ASCII for printing characters, hex for non-printing"):"hex"===e?(r=t.charsToHex,a="hexadecimal integer character codes"):"uni"===e&&(r=t.charsToUnicode,a="Unicode UTF-32 integer character codes")}let i="",s=0;return i+='\n',i+='\n'),i+="\x3c!-- input string, ".concat(a," --\x3e\n"),i+=p(s+2),i+=r(o),i+="\n",d.forEach((t=>{t.state===e.SEM_PRE?(s+=1,i+=p(s),i+='\n'),i+=p(s+2),i+=r(o,t.phraseIndex,t.phraseLength),i+="\n"):(i+=p(s),i+='\x3c!-- name="'.concat(t.name,'" --\x3e\n'),s-=1)})),i+="\n",i},this.phrases=function(){const t={};let n,r;for(n=0;n{e.exports=function(){let e=-1,t=0;this.init=function(n){if("number"!==typeof n||n<=0)throw new Error("".concat("circular-buffer.js: ","init: circular buffer size must an integer > 0"));t=Math.ceil(n),e=-1},this.increment=function(){return e+=1,(e+t)%t},this.maxSize=function(){return t},this.items=function(){return e+1},this.getListIndex=function(n){return-1===e||n<0||n>e||e-n>=t?-1:(n+t)%t},this.forEach=function(n){if(-1!==e)if(e{e.exports=function(){return"/* This file automatically generated by jsonToless() and LESS. */\n.apg-mono {\n font-family: monospace;\n}\n.apg-active {\n font-weight: bold;\n color: #000000;\n}\n.apg-match {\n font-weight: bold;\n color: #264BFF;\n}\n.apg-empty {\n font-weight: bold;\n color: #0fbd0f;\n}\n.apg-nomatch {\n font-weight: bold;\n color: #FF4000;\n}\n.apg-lh-match {\n font-weight: bold;\n color: #1A97BA;\n}\n.apg-lb-match {\n font-weight: bold;\n color: #5F1687;\n}\n.apg-remainder {\n font-weight: bold;\n color: #999999;\n}\n.apg-ctrl-char {\n font-weight: bolder;\n font-style: italic;\n font-size: 0.6em;\n}\n.apg-line-end {\n font-weight: bold;\n color: #000000;\n}\n.apg-error {\n font-weight: bold;\n color: #FF4000;\n}\n.apg-phrase {\n color: #000000;\n background-color: #8caae6;\n}\n.apg-empty-phrase {\n color: #0fbd0f;\n}\ntable.apg-state {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: left;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-state th,\ntable.apg-state td {\n text-align: left;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-state th:nth-last-child(2),\ntable.apg-state td:nth-last-child(2) {\n text-align: right;\n}\ntable.apg-state caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-stats {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-stats th,\ntable.apg-stats td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-stats caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-trace {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-trace caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-trace th,\ntable.apg-trace td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-trace th:last-child,\ntable.apg-trace th:nth-last-child(2),\ntable.apg-trace td:last-child,\ntable.apg-trace td:nth-last-child(2) {\n text-align: left;\n}\ntable.apg-grammar {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-grammar caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-grammar th,\ntable.apg-grammar td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-grammar th:last-child,\ntable.apg-grammar td:last-child {\n text-align: left;\n}\ntable.apg-rules {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-rules caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-rules th,\ntable.apg-rules td {\n text-align: right;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-rules a {\n color: #003399 !important;\n}\ntable.apg-rules a:hover {\n color: #8caae6 !important;\n}\ntable.apg-attrs {\n font-family: monospace;\n margin-top: 5px;\n font-size: 11px;\n line-height: 130%;\n text-align: center;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-attrs caption {\n font-size: 125%;\n line-height: 130%;\n font-weight: bold;\n text-align: left;\n}\ntable.apg-attrs th,\ntable.apg-attrs td {\n text-align: center;\n border: 1px solid black;\n border-collapse: collapse;\n}\ntable.apg-attrs th:nth-child(1),\ntable.apg-attrs th:nth-child(2),\ntable.apg-attrs th:nth-child(3) {\n text-align: right;\n}\ntable.apg-attrs td:nth-child(1),\ntable.apg-attrs td:nth-child(2),\ntable.apg-attrs td:nth-child(3) {\n text-align: right;\n}\ntable.apg-attrs a {\n color: #003399 !important;\n}\ntable.apg-attrs a:hover {\n color: #8caae6 !important;\n}\n"}},7856:e=>{e.exports={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,BKR:14,BKA:15,BKN:16,ABG:17,AEN:18,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,SEM_SKIP:301,ATTR_N:400,ATTR_R:401,ATTR_MR:402,LOOKAROUND_NONE:500,LOOKAROUND_AHEAD:501,LOOKAROUND_BEHIND:502,BKR_MODE_UM:601,BKR_MODE_PM:602,BKR_MODE_CS:603,BKR_MODE_CI:604}},91572:(e,t,n)=>{e.exports={ast:n(33692),circular:n(45226),ids:n(7856),parser:n(84148),stats:n(35544),trace:n(23594),utils:n(88764),emitcss:n(43378),style:n(79350)}},84148:(e,t,n)=>{e.exports=function(){const e=n(7856),t=n(88764),r="parser.js: ",a=this;let i;this.ast=null,this.stats=null,this.trace=null,this.callbacks=[];let o,s,c,l,u=null,d=null,p=0,f=0,h=0,m=null,g=null,y=null,b=null,v=null,w=0,E=1/0,x=1/0;const k=function(t,n,a){const o="".concat(r,"evaluateRule(): ");if(t>=y.length)throw new Error("".concat(o,"rule index: ").concat(t," out of range"));if(n>=c)throw new Error("".concat(o,"phrase index: ").concat(n," out of range"));const{length:s}=u;u.push({type:e.RNM,index:t}),i(s,n,a),u.pop()},P=function(t,n,a){const o="".concat(r,"evaluateUdt(): ");if(t>=b.length)throw new Error("".concat(o,"udt index: ").concat(t," out of range"));if(n>=c)throw new Error("".concat(o,"phrase index: ").concat(n," out of range"));const{length:s}=u;u.push({type:e.UDT,empty:b[t].empty,index:t}),i(s,n,a),u.pop()},S=function(){p=0,f=0,h=0,w=0,l=[{lookAround:e.LOOKAROUND_NONE,anchor:0,charsEnd:0,charsLength:0}],y=null,b=null,d=null,o=0,s=0,c=0,m=null,g=null,v=null,u=null},C=function(){const e=[];this.push=function(){e.push(function(){const t=e[e.length-1],n={};for(const e in t)n[e]=t[e];return n}())},this.pop=function(t){let n=t;if(n||(n=e.length-1),n<1||n>e.length)throw new Error("".concat(r,"backRef.pop(): bad length: ").concat(n));return e.length=n,e[e.length-1]},this.length=function(){return e.length},this.savePhrase=function(t,n,r){e[e.length-1][t]={phraseIndex:n,phraseLength:r}},this.getPhrase=function(t){return e[e.length-1][t]},function(){const t={};y.forEach((e=>{e.isBkr&&(t[e.lower]=null)})),b.length>0&&b.forEach((e=>{e.isBkr&&(t[e.lower]=null)})),e.push(t)}()},T=function(){const t=this;this.state=e.ACTIVE,this.phraseLength=0,this.ruleIndex=0,this.udtIndex=0,this.lookAround=l[l.length-1],this.uFrame=new C,this.pFrame=new C,this.evaluateRule=k,this.evaluateUdt=P,this.refresh=function(){t.state=e.ACTIVE,t.phraseLength=0,t.lookAround=l[l.length-1]}},_=function(){return l[l.length-1]},A=function(){return l.length>1},O=function(e,n,a){const i="".concat(r,"initializeInputChars(): ");let l=e,u=n,p=a;if(void 0===l)throw new Error("".concat(i,"input string is undefined"));if(null===l)throw new Error("".concat(i,"input string is null"));if("string"===typeof l)l=t.stringToChars(l);else if(!Array.isArray(l))throw new Error("".concat(i,"input string is not a string or array"));if(l.length>0&&"number"!==typeof l[0])throw new Error("".concat(i,"input string not an array of integers"));if("number"!==typeof u)u=0;else if(u=Math.floor(u),u<0||u>l.length)throw new Error("".concat(i,"input beginning index out of range: ").concat(u));if("number"!==typeof p)p=l.length-u;else if(p=Math.floor(p),p<0||p>l.length-u)throw new Error("".concat(i,"input length out of range: ").concat(p));d=l,o=u,s=p,c=o+s};this.setMaxTreeDepth=function(e){if("number"!==typeof e)throw new Error("parser: max tree depth must be integer > 0: ".concat(e));if(E=Math.floor(e),E<=0)throw new Error("parser: max tree depth must be integer > 0: ".concat(e))},this.setMaxNodeHits=function(e){if("number"!==typeof e)throw new Error("parser: max node hits must be integer > 0: ".concat(e));if(x=Math.floor(e),x<=0)throw new Error("parser: max node hits must be integer > 0: ".concat(e))};const I=function(t,n,l){let p;const E="".concat(r,"parse(): ");!function(e){const t="".concat(r,"initializeGrammar(): ");if(!e)throw new Error("".concat(t,"grammar object undefined"));if("grammarObject"!==e.grammarObject)throw new Error("".concat(t,"bad grammar object"));y=e.rules,b=e.udts}(t);const x=function(e){const t="".concat(r,"initializeStartRule(): ");let n=null;if("number"===typeof e){if(e>=y.length)throw new Error("".concat(t,"start rule index too large: max: ").concat(y.length,": index: ").concat(e));n=e}else{if("string"!==typeof e)throw new Error("".concat(t,"type of start rule '").concat(typeof e,"' not recognized"));{const r=e.toLowerCase();for(let e=0;ea){let e="".concat(r,"opRNM(").concat(t.name,"): callback function error: ");throw e+="sysData.phraseLength: ".concat(n.phraseLength),e+=" must be <= remaining chars: ".concat(a),new Error(e)}switch(n.state){case e.ACTIVE:if(!0!==i)throw new Error("".concat(r,"opRNM(").concat(t.name,"): callback function return error. ACTIVE state not allowed."));break;case e.EMPTY:n.phraseLength=0;break;case e.MATCH:0===n.phraseLength&&(n.state=e.EMPTY);break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error("".concat(r,"opRNM(").concat(t.name,"): callback function return error. Unrecognized return state: ").concat(n.state))}},R=function(t,n,r){let o,s,l,p,f,h;const g=u[t],b=y[g.index],w=m[b.index],E=!A();if(E&&(s=a.ast&&a.ast.ruleDefined(g.index),s&&(o=a.ast.getLength(),a.ast.down(g.index,y[g.index].name)),p=r.uFrame.length(),f=r.pFrame.length(),r.uFrame.push(),r.pFrame.push(),h=r.pFrame,r.pFrame=new C),null===w)l=u,u=b.opcodes,i(0,n,r),u=l;else{const t=c-n;r.ruleIndex=b.index,w(r,d,n,v),N(b,r,t,!0),r.state===e.ACTIVE&&(l=u,u=b.opcodes,i(0,n,r),u=l,r.ruleIndex=b.index,w(r,d,n,v),N(b,r,t,!1))}E&&(s&&(r.state===e.NOMATCH?a.ast.setLength(o):a.ast.up(g.index,b.name,n,r.phraseLength)),r.pFrame=h,r.state===e.NOMATCH?(r.uFrame.pop(p),r.pFrame.pop(f)):b.isBkr&&(r.pFrame.savePhrase(b.lower,n,r.phraseLength),r.uFrame.savePhrase(b.lower,n,r.phraseLength)))},B=function(t,n,i){let o,s,l,p,f,h;const m=u[t],w=b[m.index];i.UdtIndex=w.index;const E=!A();E&&(l=a.ast&&a.ast.udtDefined(m.index),l&&(s=y.length+m.index,o=a.ast.getLength(),a.ast.down(s,w.name)),p=i.uFrame.length(),f=i.pFrame.length(),i.uFrame.push(),i.pFrame.push(),h=i.pFrame,i.pFrame=new C);const x=c-n;g[m.index](i,d,n,v),function(t,n,a){if(n.phraseLength>a){let e="".concat(r,"opUDT(").concat(t.name,"): callback function error: ");throw e+="sysData.phraseLength: ".concat(n.phraseLength),e+=" must be <= remaining chars: ".concat(a),new Error(e)}switch(n.state){case e.ACTIVE:throw new Error("".concat(r,"opUDT(").concat(t.name,"): callback function return error. ACTIVE state not allowed."));case e.EMPTY:if(!1===t.empty)throw new Error("".concat(r,"opUDT(").concat(t.name,"): callback function return error. May not return EMPTY."));n.phraseLength=0;break;case e.MATCH:if(0===n.phraseLength){if(!1===t.empty)throw new Error("".concat(r,"opUDT(").concat(t.name,"): callback function return error. May not return EMPTY."));n.state=e.EMPTY}break;case e.NOMATCH:n.phraseLength=0;break;default:throw new Error("".concat(r,"opUDT(").concat(t.name,"): callback function return error. Unrecognized return state: ").concat(n.state))}}(w,i,x),E&&(l&&(i.state===e.NOMATCH?a.ast.setLength(o):a.ast.up(s,w.name,n,i.phraseLength)),i.pFrame=h,i.state===e.NOMATCH?(i.uFrame.pop(p),i.pFrame.pop(f)):w.isBkr&&(i.pFrame.savePhrase(w.lower,n,i.phraseLength),i.uFrame.savePhrase(w.lower,n,i.phraseLength)))},M=function(t,n,r){l.push({lookAround:e.LOOKAROUND_AHEAD,anchor:n,charsEnd:c,charsLength:s}),c=d.length,s=d.length-o,i(t+1,n,r);const a=l.pop();switch(c=a.charsEnd,s=a.charsLength,r.phraseLength=0,r.state){case e.EMPTY:case e.MATCH:r.state=e.EMPTY;break;case e.NOMATCH:r.state=e.NOMATCH;break;default:throw new Error("opAND: invalid state ".concat(r.state))}},F=function(t,n,r){l.push({lookAround:e.LOOKAROUND_AHEAD,anchor:n,charsEnd:c,charsLength:s}),c=d.length,s=d.length-o,i(t+1,n,r);const a=l.pop();switch(c=a.charsEnd,s=a.charsLength,r.phraseLength=0,r.state){case e.EMPTY:case e.MATCH:r.state=e.NOMATCH;break;case e.NOMATCH:r.state=e.EMPTY;break;default:throw new Error("opNOT: invalid state ".concat(r.state))}},L=function(t,n,r){r.state=e.NOMATCH,r.phraseLength=0,r.state=0===n?e.EMPTY:e.NOMATCH},D=function(t,n,r){r.state=e.NOMATCH,r.phraseLength=0,r.state=n===d.length?e.EMPTY:e.NOMATCH},U=function(t,n,r){switch(l.push({lookAround:e.LOOKAROUND_BEHIND,anchor:n}),i(t+1,n,r),l.pop(),r.phraseLength=0,r.state){case e.EMPTY:case e.MATCH:r.state=e.EMPTY;break;case e.NOMATCH:r.state=e.NOMATCH;break;default:throw new Error("opBKA: invalid state ".concat(r.state))}},z=function(t,n,r){switch(l.push({lookAround:e.LOOKAROUND_BEHIND,anchor:n}),i(t+1,n,r),l.pop(),r.phraseLength=0,r.state){case e.EMPTY:case e.MATCH:r.state=e.NOMATCH;break;case e.NOMATCH:r.state=e.EMPTY;break;default:throw new Error("opBKN: invalid state ".concat(r.state))}};i=function(t,n,r){let o=!0;const s=u[t];if(h+=1,h>x)throw new Error("parser: maximum number of node hits exceeded: ".concat(x));if(p+=1,p>f&&(f=p,f>E))throw new Error("parser: maximum parse tree depth exceeded: ".concat(E));if(r.refresh(),null!==a.trace){const e=_();a.trace.down(s,r.state,n,r.phraseLength,e.anchor,e.lookAround)}if(l[l.length-1].lookAround===e.LOOKAROUND_BEHIND)switch(s.type){case e.ALT:j(t,n,r);break;case e.CAT:!function(t,n,r){let o,s,c,l;const d=u[t],p=r.uFrame.length(),f=r.pFrame.length();a.ast&&(s=a.ast.getLength()),o=!0,c=n,l=0;for(let a=d.children.length-1;a>=0;a-=1)if(i(d.children[a],c,r),c-=r.phraseLength,l+=r.phraseLength,r.state===e.NOMATCH){o=!1;break}o?(r.state=0===l?e.EMPTY:e.MATCH,r.phraseLength=l):(r.state=e.NOMATCH,r.phraseLength=0,r.uFrame.pop(p),r.pFrame.pop(f),a.ast&&a.ast.setLength(s))}(t,n,r);break;case e.REP:!function(t,n,r){let o,s,c,l;const d=u[t];s=n,c=0,l=0;const p=r.uFrame.length(),f=r.pFrame.length();for(a.ast&&(o=a.ast.getLength());!(s<=0)&&(i(t+1,s,r),r.state!==e.NOMATCH)&&r.state!==e.EMPTY&&(l+=1,c+=r.phraseLength,s-=r.phraseLength,l!==d.max););r.state===e.EMPTY||l>=d.min?(r.state=0===c?e.EMPTY:e.MATCH,r.phraseLength=c):(r.state=e.NOMATCH,r.phraseLength=0,r.uFrame.pop(p),r.pFrame.pop(f),a.ast&&a.ast.setLength(o))}(t,n,r);break;case e.RNM:R(t,n,r);break;case e.UDT:B(t,n,r);break;case e.AND:M(t,n,r);break;case e.NOT:F(t,n,r);break;case e.TRG:!function(t,n,r){const a=u[t];if(r.state=e.NOMATCH,r.phraseLength=0,n>0){const t=d[n-1];a.min<=t&&t<=a.max&&(r.state=e.MATCH,r.phraseLength=1)}}(t,n,r);break;case e.TBS:!function(t,n,r){let a;const i=u[t];r.state=e.NOMATCH;const o=i.string.length,s=n-o;if(s>=0){for(a=0;a=0){for(let e=0;e=65&&a<=90&&(a+=32),a!==i.string[e])return;r.state=e.MATCH,r.phraseLength=o}}(t,n,r);break;case e.BKR:!function(t,n,r){let a,i,o,s;const c=u[t];r.state=e.NOMATCH,r.phraseLength=0,s=c.index=0){if(p){for(a=0;a=65&&i<=90&&(i+=32),o>=65&&o<=90&&(o+=32),i!==o)return;r.state=e.MATCH,r.phraseLength=h}else for(a=0;a=c)&&(i(t+1,s,r),r.state!==e.NOMATCH)&&r.state!==e.EMPTY&&(d+=1,l+=r.phraseLength,s+=r.phraseLength,d!==p.max););r.state===e.EMPTY||d>=p.min?(r.state=0===l?e.EMPTY:e.MATCH,r.phraseLength=l):(r.state=e.NOMATCH,r.phraseLength=0,r.uFrame.pop(f),r.pFrame.pop(h),a.ast&&a.ast.setLength(o))}(t,n,r);break;case e.RNM:R(t,n,r);break;case e.UDT:B(t,n,r);break;case e.AND:M(t,n,r);break;case e.NOT:F(t,n,r);break;case e.TRG:!function(t,n,r){const a=u[t];r.state=e.NOMATCH,n=65&&i<=90&&(i+=32),i!==o.string[a])return;r.state=e.MATCH,r.phraseLength=s}}else r.state=e.EMPTY}(t,n,r);break;case e.BKR:!function(t,n,r){let a,i,o,s;const l=u[t];r.state=e.NOMATCH,s=l.index=65&&i<=90&&(i+=32),o>=65&&o<=90&&(o+=32),i!==o)return;r.state=e.MATCH,r.phraseLength=m}else for(a=0;aw&&(w=n+r.phraseLength),null!==a.stats&&a.stats.collect(s,r),null!==a.trace){const e=_();a.trace.up(s,r.state,n,r.phraseLength,e.anchor,e.lookAround)}return p-=1,o}}},35544:(e,t,n)=>{e.exports=function(){const e=n(7856),t=n(88764),r=n(79350);let a=[],i=[];const o=[];let s;const c=[],l=[];this.statsObject="statsObject";const u=function(e,t){return e.lowert.lower?1:0},d=function(e,t){return e.totalt.total?-1:u(e,t)},p=function(e,t){return e.indext.index?1:0},f=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},h=function(t,n){switch(t.total+=1,n){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw new Error("".concat("stats.js: ","collect(): incStat(): unrecognized state: ").concat(n))}},m=function(e,t){let n="";return n+="",n+='').concat(e,""),n+='').concat(t.empty,""),n+='').concat(t.match,""),n+='').concat(t.nomatch,""),n+='').concat(t.total,""),n+="\n",n},g=function(){let t="";return t+=m("ALT",o[e.ALT]),t+=m("CAT",o[e.CAT]),t+=m("REP",o[e.REP]),t+=m("RNM",o[e.RNM]),t+=m("TRG",o[e.TRG]),t+=m("TBS",o[e.TBS]),t+=m("TLS",o[e.TLS]),t+=m("UDT",o[e.UDT]),t+=m("AND",o[e.AND]),t+=m("NOT",o[e.NOT]),t+=m("BKR",o[e.BKR]),t+=m("BKA",o[e.BKA]),t+=m("BKN",o[e.BKN]),t+=m("ABG",o[e.ABG]),t+=m("AEN",o[e.AEN]),t+=m("totals",s),t},y=function(){let e="";e+="\n",e+="rules\n";for(let t=0;t0&&(e+="",e+='').concat(c[t].name,""),e+='').concat(c[t].empty,""),e+='').concat(c[t].match,""),e+='').concat(c[t].nomatch,""),e+='').concat(c[t].total,""),e+="\n");if(i.length>0){e+="\n",e+="udts\n";for(let t=0;t0&&(e+="",e+='').concat(l[t].name,""),e+='').concat(l[t].empty,""),e+='').concat(l[t].match,""),e+='').concat(l[t].nomatch,""),e+='').concat(l[t].total,""),e+="\n")}return e};this.validate=function(e){let t=!1;return"string"===typeof e&&"stats"===e&&(t=!0),t},this.init=function(t,n){a=t,i=n,function(){o.length=0,s=new f,o[e.ALT]=new f,o[e.CAT]=new f,o[e.REP]=new f,o[e.RNM]=new f,o[e.TRG]=new f,o[e.TBS]=new f,o[e.TLS]=new f,o[e.UDT]=new f,o[e.AND]=new f,o[e.NOT]=new f,o[e.BKR]=new f,o[e.BKA]=new f,o[e.BKN]=new f,o[e.ABG]=new f,o[e.AEN]=new f,c.length=0;for(let e=0;e0){l.length=0;for(let e=0;e\n'),"string"===typeof t&&(n+="".concat(t,"\n")),n+='ops\n'),n+='EMPTY\n'),n+='MATCH\n'),n+='NOMATCH\n'),n+='totals\n');for(;;){if(void 0===e){n+=g();break}if(null===e){n+=g();break}if("ops"===e){n+=g();break}if("index"===e){c.sort(p),l.length>0&&l.sort(p),n+=g(),n+=y();break}if("hits"===e){c.sort(d),l.length>0&&l.sort(p),n+=g(),n+=y();break}if("alpha"===e){c.sort(u),l.length>0&&l.sort(u),n+=g(),n+=y();break}break}return n+="\n",n},this.toHtmlPage=function(e,n,r){return t.htmlToPage(this.toHtml(e,n),r)}}},79350:e=>{e.exports={CLASS_MONOSPACE:"apg-mono",CLASS_ACTIVE:"apg-active",CLASS_EMPTY:"apg-empty",CLASS_MATCH:"apg-match",CLASS_NOMATCH:"apg-nomatch",CLASS_LOOKAHEAD:"apg-lh-match",CLASS_LOOKBEHIND:"apg-lb-match",CLASS_REMAINDER:"apg-remainder",CLASS_CTRLCHAR:"apg-ctrl-char",CLASS_LINEEND:"apg-line-end",CLASS_ERROR:"apg-error",CLASS_PHRASE:"apg-phrase",CLASS_EMPTYPHRASE:"apg-empty-phrase",CLASS_STATE:"apg-state",CLASS_STATS:"apg-stats",CLASS_TRACE:"apg-trace",CLASS_GRAMMAR:"apg-grammar",CLASS_RULES:"apg-rules",CLASS_RULESLINK:"apg-rules-link",CLASS_ATTRIBUTES:"apg-attrs"}},23594:(e,t,n)=>{e.exports=function(){const e=n(88764),t=n(79350),r=new(n(45226)),a=n(7856),i="trace.js: ",o=this,s=16,c=80,l=[];let u=5e3,d=-1,p=0,f=0;const h=[];let m=null,g=null,y=null;const b=[],v=[],w=''),E=''),x='𝜺');this.traceObject="traceObject",this.filter={operators:[],rules:[]},this.setMaxRecords=function(e,t){d=-1,"number"===typeof e&&e>0?(u=Math.ceil(e),"number"===typeof t&&(d=Math.floor(t),d<0&&(d=-1))):u=0},this.getMaxRecords=function(){return u},this.getLastRecord=function(){return d},this.init=function(e,t,n){l.length=0,h.length=0,p=0,f=0,m=n,g=e,y=t,function(){const e=function(e){b[a.ALT]=e,b[a.CAT]=e,b[a.REP]=e,b[a.TLS]=e,b[a.TBS]=e,b[a.TRG]=e,b[a.AND]=e,b[a.NOT]=e,b[a.BKR]=e,b[a.BKA]=e,b[a.BKN]=e,b[a.ABG]=e,b[a.AEN]=e};let t=0;for(const n in o.filter.operators)t+=1;if(0!==t){for(const t in o.filter.operators){const n=t.toUpperCase();if(""===n)return void e(!0);if(""===n)return void e(!1)}e(!1);for(const e in o.filter.operators){const t=e.toUpperCase();if("ALT"===t)b[a.ALT]=!0===o.filter.operators[e];else if("CAT"===t)b[a.CAT]=!0===o.filter.operators[e];else if("REP"===t)b[a.REP]=!0===o.filter.operators[e];else if("AND"===t)b[a.AND]=!0===o.filter.operators[e];else if("NOT"===t)b[a.NOT]=!0===o.filter.operators[e];else if("TLS"===t)b[a.TLS]=!0===o.filter.operators[e];else if("TBS"===t)b[a.TBS]=!0===o.filter.operators[e];else if("TRG"===t)b[a.TRG]=!0===o.filter.operators[e];else if("BKR"===t)b[a.BKR]=!0===o.filter.operators[e];else if("BKA"===t)b[a.BKA]=!0===o.filter.operators[e];else if("BKN"===t)b[a.BKN]=!0===o.filter.operators[e];else if("ABG"===t)b[a.ABG]=!0===o.filter.operators[e];else{if("AEN"!==t)throw new Error("".concat(i,"initOpratorFilter: '").concat(e,"' not a valid operator name.")+" Must be , , alt, cat, rep, tls, tbs, trg, and, not, bkr, bka or bkn");b[a.AEN]=!0===o.filter.operators[e]}}}else e(!1)}(),function(){const e=function(e){b[a.RNM]=e,b[a.UDT]=e;const t=g.length+y.length;v.length=0;for(let n=0;n"===n)return void e(!0);if(""===n)return void e(!1)}e(!1),b[a.RNM]=!0,b[a.UDT]=!0;for(const e in o.filter.rules){const t=e.toLowerCase();if(n=r.indexOf(t),n<0)throw new Error("".concat(i,"initRuleFilter: '").concat(e,"' not a valid rule or udt name"));v[n]=!0===o.filter.rules[e]}}else e(!0)}(),r.init(u)};const k=function(e){let t=!1;return t=e.type===a.RNM?!(!b[e.type]||!v[e.index]):e.type===a.UDT?!(!b[e.type]||!v[g.length+e.index]):b[e.type],t},P=function(e){return-1===d||e<=d};this.down=function(e,t,n,a,i,o){P(p)&&k(e)&&(h.push(p),l[r.increment()]={dirUp:!1,depth:f,thisLine:p,thatLine:void 0,opcode:e,state:t,phraseIndex:n,phraseLength:a,lookAnchor:i,lookAround:o},p+=1,f+=1)},this.up=function(e,t,n,a,i,o){if(P(p)&&k(e)){const s=p,c=h.pop(),u=r.getListIndex(c);-1!==u&&(l[u].thatLine=s),f-=1,l[r.increment()]={dirUp:!0,depth:f,thisLine:s,thatLine:c,opcode:e,state:t,phraseIndex:n,phraseLength:a,lookAnchor:i,lookAround:o},p+=1}};this.toTree=function(t){const n=function(){function t(t,n){let r,i,o;if(n)switch(t.op={id:n.type,name:e.opcodeToString(n.type)},t.opData=void 0,n.type){case a.RNM:t.opData=g[n.index].name;break;case a.UDT:t.opData=y[n.index].name;break;case a.BKR:r=n.index{if(w=l[e],E&&(E=!1,w.depth>0)){const e=w.dirUp?w.depth+1:w.depth;for(let t=0;t1;)b=p.pop(),s(b,null);if(0===x.children.length)throw new Error("trace.toTree(): parse tree has no nodes");if(0===p.length)throw new Error("trace.toTree(): integrity check: dummy root node disappeared?");h=x.children[0];let k=h;for(;h&&!h.down&&!h.up;)k=h,h=h.children[0];h=k,h.leftMost=!0,h.rightMost=!0,function e(t){if(u+=1,t.branch=d,u>f&&(f=u),0===t.children.length)c+=1;else for(let n=0;n0&&(d+=1),t.children[n].leftMost=!1,t.children[n].rightMost=!1,t.leftMost&&(t.children[n].leftMost=0===n),t.rightMost&&(t.children[n].rightMost=n===t.children.length-1),e(t.children[n]);u-=1}(h),h.branch=0;const P={string:[]};for(let e=0;e'),g="";let y=!1;switch(r){case a.EMPTY:f+=x;case a.NOMATCH:case a.ACTIVE:l=i,u=0,d=i,p=n.length-d;break;case a.MATCH:l=i,u=o,d=i+u,p=n.length-d;break;default:throw new Error("unrecognized state")}return h=w,u>c?(u=c,h=E,p=0):u+p>c&&(h=E,p=c-u),u>0&&(f+=s,f+=S(e,n,l,u,y),f+=g,y=!0),p>0&&(f+=m,f+=S(e,n,d,p,y),f+=g),f+h},T=function(n){if(null===g)return"";let i,u,d,p,f,h,b="";return b+="(a)(b)(c)(d)(e)(f)",b+="operatorphrase\n",r.forEach((r=>{const v=l[r];switch(i=v.thisLine,u=void 0!==v.thatLine?v.thatLine:"--",d=!1,p=!1,f=!1,v.lookAround===a.LOOKAROUND_AHEAD&&(d=!0,f=!0,h=v.lookAnchor),v.opcode.type!==a.AND&&v.opcode.type!==a.NOT||(d=!0,f=!0,h=v.phraseIndex),v.lookAround===a.LOOKAROUND_BEHIND&&(p=!0,f=!0,h=v.lookAnchor),v.opcode.type!==a.BKA&&v.opcode.type!==a.BKN||(p=!0,f=!0,h=v.phraseIndex),b+="",b+="".concat(i,"").concat(u,""),b+="".concat(v.phraseIndex,""),b+="".concat(v.phraseLength,""),b+="".concat(v.depth,""),b+="",v.state){case a.ACTIVE:b+='↓ ');break;case a.MATCH:b+='↑M');break;case a.NOMATCH:b+='↑N');break;case a.EMPTY:b+='↑E');break;default:b+='--')}if(b+="",b+="",b+=o.indent(v.depth),d?b+=''):p&&(b+='')),b+=e.opcodeToString(v.opcode.type),v.opcode.type===a.RNM&&(b+="(".concat(g[v.opcode.index].name,") ")),v.opcode.type===a.BKR){const e=v.opcode.bkrCase===a.BKR_MODE_CI?"%i":"%s",t=v.opcode.bkrMode===a.BKR_MODE_UM?"%u":"%p";b+="(\\".concat(e).concat(t).concat(g[v.opcode.index].name,") ")}v.opcode.type===a.UDT&&(b+="(".concat(y[v.opcode.index].name,") ")),v.opcode.type===a.TRG&&(b+="(".concat(function(e,t){let n="";if(t.type===a.TRG)if(e===s||32===e){let r=t.min.toString(16).toUpperCase();r.length%2!==0&&(r="0".concat(r)),n+=e===s?"%x":"U+",n+=r,r=t.max.toString(16).toUpperCase(),r.length%2!==0&&(r="0".concat(r)),n+="–".concat(r)}else n="%d".concat(t.min.toString(10),"–").concat(t.max.toString(10));return n}(n,v.opcode),") ")),v.opcode.type===a.TBS&&(b+="(".concat(function(e,t){let n="";if(t.type===a.TBS){const r=Math.min(t.string.length,10);if(e===s||32===e){n+=e===s?"%x":"U+";for(let e=0;e0&&(n+="."),r=t.string[e].toString(16).toUpperCase(),r.length%2!==0&&(r="0".concat(r)),n+=r}}else{n="%d";for(let e=0;e0&&(n+="."),n+=t.string[e].toString(10)}r0&&(r+="."),i=n.string[t],i>=97&&i<=122?(e=i-32,r+="".concat(e.toString(o),"/").concat(i.toString(o)).toUpperCase()):i>=65&&i<=90?(e=i,i+=32,r+="".concat(e.toString(o),"/").concat(i.toString(o)).toUpperCase()):r+=i.toString(o).toUpperCase();a'),g=''),y="";let b=!1;switch(r){case a.EMPTY:f+=x;case a.NOMATCH:case a.MATCH:case a.ACTIVE:l=i-o,u=s-l,d=s,p=n.length-d;break;default:throw new Error("unrecognized state")}return h=w,u>c?(u=c,h=E,p=0):u+p>c&&(h=E,p=c-u),u>0&&(f+=m,f+=S(e,n,l,u,b),f+=y,b=!0),p>0&&(f+=g,f+=S(e,n,d,p,b),f+=y),f+h}(n,m,v.state,v.phraseIndex,v.phraseLength,h):d?function(e,n,r,a,i){const o='');return C(e,n,r,a,i,o)}(n,m,v.state,v.phraseIndex,v.phraseLength):function(e,n,r,a,i){const o='');return C(e,n,r,a,i,o)}(n,m,v.state,v.phraseIndex,v.phraseLength),b+="\n"})),b+="(a)(b)(c)(d)(e)(f)",b+="operatorphrase\n",b+="\n",b};this.toHtml=function(e,n){let r=8;if("string"===typeof e&&e.length>=3){const t=e.toLowerCase().slice(0,3);"hex"===t?r=s:"dec"===t?r=10:"uni"===t&&(r=32)}let a="";return a+=function(e,n){let r;switch(e){case s:r="hexadecimal";break;case 10:r="decimal";break;case 8:r="ASCII";break;case 32:r="UNICODE";break;default:throw new Error("".concat(i,"htmlHeader: unrecognized mode: ").concat(e))}let a="";return a+="

display mode: ".concat(r,"

\n"),a+='\n'),"string"===typeof n&&(a+="")),a}(r,n),a+=T(r),a+=function(){let e="";return e+="
".concat(n,"
\n",e+='

legend:
\n'),e+="(a) - line number
\n",e+="(b) - matching line number
\n",e+="(c) - phrase offset
\n",e+="(d) - phrase length
\n",e+="(e) - tree depth
\n",e+="(f) - operator state
\n",e+='    -   phrase opened
\n'),e+='    - ↑M phrase matched
\n'),e+='    - ↑E empty phrase matched
\n'),e+='    - ↑N phrase not matched
\n'),e+="operator - ALT, CAT, REP, RNM, TRG, TLS, TBS, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN
\n",e+="phrase   - up to ".concat(c," characters of the phrase being matched
\n"),e+='         - matched characters
\n'),e+='         - matched characters in look ahead mode
\n'),e+='         - matched characters in look behind mode
\n'),e+='         - remainder characters(not yet examined by parser)
\n'),e+='         - control characters, TAB, LF, CR, etc. (ASCII mode only)
\n'),e+="         - ".concat(x," empty string
\n"),e+="         - ".concat(w," end of input string
\n"),e+="         - ".concat(E," input string display truncated
\n"),e+="

\n",e+='

\n'),e+="original ABNF operators:
\n",e+="ALT - alternation
\n",e+="CAT - concatenation
\n",e+="REP - repetition
\n",e+="RNM - rule name
\n",e+="TRG - terminal range
\n",e+="TLS - terminal literal string (case insensitive)
\n",e+="TBS - terminal binary string (case sensitive)
\n",e+="
\n",e+="super set SABNF operators:
\n",e+="UDT - user-defined terminal
\n",e+="AND - positive look ahead
\n",e+="NOT - negative look ahead
\n",e+="BKA - positive look behind
\n",e+="BKN - negative look behind
\n",e+="BKR - back reference
\n",e+="ABG - anchor - begin of input string
\n",e+="AEN - anchor - end of input string
\n",e+="

\n",e}(),a}}},88764:(e,t,n)=>{const r=n(79350),a=n(21711),i=n(43378),o=n(7856),s="utilities.js: ",c=function(e,t,n){let r,a=t;for(;;){if(e<=0){a=0,r=0;break}if("number"!==typeof a){a=0,r=e;break}if(a>=e){a=e,r=e;break}if("number"!==typeof n){r=e;break}if(r=a+n,r>e){r=e;break}break}return{beg:a,end:r}};t.htmlToPage=function(e,t){let n;if("string"!==typeof e)throw new Error("".concat(s,"htmlToPage: input HTML is not a string"));n="string"!==typeof t?"htmlToPage":t;let r="";return r+="\n",r+='\n',r+="\n",r+='\n',r+="".concat(n,"\n"),r+="\n",r+="\n\n",r+="

".concat(new Date,"

\n"),r+=e,r+="\n\n",r},t.parserResultToHtml=function(e,t){let n,a,i=null;"string"===typeof t&&""!==t&&(i=t),n=!0===e.success?'true'):'false'),a=e.state===o.EMPTY?'EMPTY'):e.state===o.MATCH?'MATCH'):e.state===o.NOMATCH?'NOMATCH'):'unrecognized');let s="";return s+='\n'),i&&(s+="\n")),s+="\n",s+="\n"),s+='\n",s+="\n"),s+='\n'),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="
".concat(i,"
state itemvaluedescription
parser success".concat(n,"true if the parse succeeded,\n'),s+=' false otherwise'),s+="
NOTE: for success, entire string must be matched
parser state".concat(a,"EMPTY, '),s+='MATCH or \n'),s+='NOMATCH
string length".concat(e.length,"length of the input (sub)string
matched length".concat(e.matched,"number of input string characters matched
max matched".concat(e.maxMatched,"maximum number of input string characters matched
max tree depth".concat(e.maxTreeDepth,"maximum depth of the parse tree reached
node hits".concat(e.nodeHits,"number of parse tree node hits (opcode function calls)
input length".concat(e.inputLength,"length of full input string
sub-string begin".concat(e.subBegin,"sub-string first character index
sub-string end".concat(e.subEnd,"sub-string end-of-string index
sub-string length".concat(e.subLength,"sub-string length
\n",s},t.charsToString=function(e,t,n){let r,i;if("number"===typeof t){if(t>=e.length)return"";r=t<0?0:t}else r=0;if("number"===typeof n){if(n<=0)return"";i=n>e.length-r?e.length:r+n}else i=e.length;return ra.beg){r+=e[a.beg];for(let t=a.beg+1;ti.beg){a+="\\x".concat(t.charToHex(e[i.beg]));for(let n=i.beg+1;na.beg)for(let i=a.beg;ii.beg)for(let s=i.beg;s=55296&&o<=57343||o>1114111?" U+".concat(t.charToHex(e[s])):"&#".concat(e[s],";");var o;return a},t.charsToJsUnicode=function(e,n,r){let a="";if(!Array.isArray(e))throw new Error("".concat(s,"charsToJsUnicode: input must be an array of integers"));const i=c(e.length,n,r);if(i.end>i.beg){a+="\\u".concat(t.charToHex(e[i.beg]));for(let n=i.beg+1;n=32&&n<=126?String.fromCharCode(n):"\\x".concat(t.charToHex(n))}return a},t.charsToAsciiHtml=function(e,n,a){if(!Array.isArray(e))throw new Error("".concat(s,"charsToAsciiHtml: input must be an array of integers"));let i,o="";const l=c(e.length,n,a);for(let s=l.beg;s').concat(t.asciiChars[i],"
"):i>127?'U+').concat(t.charToHex(i),""):t.asciiChars[i];return o},t.stringToAsciiHtml=function(e){const t=a.decode("STRING",e);return this.charsToAsciiHtml(t)}},98811:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),o=i[0],c=i[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,c)),u=0,d=c>0?o-4:o;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,l=r-a;sl?l:s+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var a,i,o=[],s=t;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},96554:function(e,t,n){var r;!function(a){"use strict";var i,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",d=1e14,p=14,f=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,n,r=1,a=e.length,i=e[0]+"";rl^n?1:-1;for(s=(c=a.length)<(l=i.length)?c:l,o=0;oi[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function w(e,t,n,r){if(en||e!==c(e))throw Error(l+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function E(e){var t=e.c.length-1;return y(e.e/p)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tO?y.c=y.e=null:e.e=10;d/=10,l++);return void(l>O?y.c=y.e=null:(y.e=l,y.c=[e]))}g=String(e)}else{if(!o.test(g=String(e)))return a(y,g,h);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(d=g.search(/e/i))>0?(l<0&&(l=d),l+=+g.slice(d+1),g=g.substring(0,d)):l<0&&(l=g.length)}else{if(w(t,2,B.length,"Base"),10==t&&M)return z(y=new F(e),S+y.e+1,C);if(g=String(e),h="number"==typeof e){if(0*e!=0)return a(y,g,h,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,F.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=B.slice(0,t),l=d=0,m=g.length;dl){l=m;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,d=-1,l=0;continue}return a(y,String(e),h,t)}h=!1,(l=(g=r(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(d=0;48===g.charCodeAt(d);d++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(d,++m)){if(m-=d,h&&F.DEBUG&&m>15&&(e>f||e!==c(e)))throw Error(u+y.s*e);if((l=l-d-1)>O)y.c=y.e=null;else if(l=_)?x(c,o):k(c,o,"0");else if(i=(e=z(new F(e),t,n)).e,s=(c=b(e.c)).length,1==r||2==r&&(t<=i||i<=T)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function D(e,t){for(var n,r,a=1,i=new F(e[0]);a=10;a/=10,r++);return(n=r+n*p-1)>O?e.c=e.e=null:n=10;l/=10,a++);if((i=t-a)<0)i+=p,o=t,u=g[f=0],m=c(u/y[a-o-1]%10);else if((f=s((i+1)/p))>=g.length){if(!r)break e;for(;g.length<=f;g.push(0));u=m=0,a=1,o=(i%=p)-p+1}else{for(u=l=g[f],a=1;l>=10;l/=10,a++);m=(o=(i%=p)-p+a)<0?0:c(u/y[a-o-1]%10)}if(r=r||t<0||null!=g[f+1]||(o<0?u:u%y[a-o-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(i>0?o>0?u/y[a-o]:0:g[f-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=y[(p-t%p)%p],e.e=-t||0):g[0]=e.e=0,e;if(0==i?(g.length=f,l=1,f--):(g.length=f+1,l=y[p-i],g[f]=o>0?c(u/y[a-o]%y[o])*l:0),r)for(;;){if(0==f){for(i=1,o=g[0];o>=10;o/=10,i++);for(o=g[0]+=l,l=1;o>=10;o/=10,l++);i!=l&&(e.e++,g[0]==d&&(g[0]=1));break}if(g[f]+=l,g[f]!=d)break;g[f--]=0,l=1}for(i=g.length;0===g[--i];g.pop());}e.e>O?e.c=e.e=null:e.e=_?x(t,n):k(t,n,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(n=e[t],0,g,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(w(n[0],-g,0,t),w(n[1],0,g,t),T=n[0],_=n[1]):(w(n,-g,g,t),T=-(_=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)w(n[0],-g,-1,t),w(n[1],1,g,t),A=n[0],O=n[1];else{if(w(n,-g,g,t),!n)throw Error(l+t+" cannot be zero: "+n);A=-(O=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(l+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw I=!n,Error(l+"crypto unavailable");I=n}else I=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(n=e[t],0,9,t),j=n),e.hasOwnProperty(t="POW_PRECISION")&&(w(n=e[t],0,g,t),N=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(l+t+" not an object: "+n);R=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(l+t+" invalid: "+n);M="0123456789"==n.slice(0,10),B=n}}return{DECIMAL_PLACES:S,ROUNDING_MODE:C,EXPONENTIAL_AT:[T,_],RANGE:[A,O],CRYPTO:I,MODULO_MODE:j,POW_PRECISION:N,FORMAT:R,ALPHABET:B}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-g&&a<=g&&a===c(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%p)<1&&(t+=p),String(r[0]).length==t){for(t=0;t=d||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(l+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return D(arguments,-1)},F.minimum=F.min=function(){return D(arguments,1)},F.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return c(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,a,i,o,u=0,d=[],f=new F(P);if(null==e?e=S:w(e,0,g),i=s(e/p),I)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));u>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[u]=r[0],n[u+1]=r[1]):(d.push(o%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw I=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(i*=7);u=9e15?crypto.randomBytes(7).copy(n,u):(d.push(o%1e14),u+=7);u=i/7}if(!I)for(;u=10;o/=10,u++);un-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,l,u,d,p,f,h,m,g=r.indexOf("."),y=S,v=C;for(g>=0&&(d=N,N=0,r=r.replace(".",""),f=(m=new F(a)).pow(r.length-g),N=d,m.c=t(k(b(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=d=(h=t(r,a,i,s?(c=B,e):(c=e,B))).length;0==h[--d];h.pop());if(!h[0])return c.charAt(0);if(g<0?--u:(f.c=h,f.e=u,f.s=o,h=(f=n(f,m,y,v,i)).c,p=f.r,u=f.e),g=h[l=u+y+1],d=i/2,p=p||l<0||null!=h[l+1],p=v<4?(null!=g||p)&&(0==v||v==(f.s<0?3:2)):g>d||g==d&&(4==v||p||6==v&&1&h[l-1]||v==(f.s<0?8:7)),l<1||!h[0])r=p?k(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(h.length=l,p)for(--i;++h[--l]>i;)h[l]=0,l||(++u,h=[1].concat(h));for(d=h.length;!h[--d];);for(g=0,r="";g<=d;r+=c.charAt(h[g++]));r=k(r,u,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,l=t%m,u=t/m|0;for(e=e.slice();c--;)s=((a=l*(i=e[c]%m)+(r=u*i+(o=e[c]/m|0)*l)%m*m+s)/n|0)+(r/m|0)+u*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var l,u,f,h,m,g,b,v,w,E,x,k,P,S,C,T,_,A=r.s==a.s?1:-1,O=r.c,I=a.c;if(!O||!O[0]||!I||!I[0])return new F(r.s&&a.s&&(O?!I||O[0]!=I[0]:I)?O&&0==O[0]||!I?0*A:A/0:NaN);for(w=(v=new F(A)).c=[],A=i+(u=r.e-a.e)+1,s||(s=d,u=y(r.e/p)-y(a.e/p),A=A/p|0),f=0;I[f]==(O[f]||0);f++);if(I[f]>(O[f]||0)&&u--,A<0)w.push(1),h=!0;else{for(S=O.length,T=I.length,f=0,A+=2,(m=c(s/(I[0]+1)))>1&&(I=e(I,m,s),O=e(O,m,s),T=I.length,S=O.length),P=T,x=(E=O.slice(0,T)).length;x=s/2&&C++;do{if(m=0,(l=t(I,E,T,x))<0){if(k=E[0],T!=x&&(k=k*s+(E[1]||0)),(m=c(k/C))>1)for(m>=s&&(m=s-1),b=(g=e(I,m,s)).length,x=E.length;1==t(g,E,b,x);)m--,n(g,T=10;A/=10,f++);z(v,i+(v.e=f+u*p-1)+1,o,h)}else v.e=u,v.r=+h;return v}}(),a=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,a=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,o,s,c){var u,d=s?o:o.replace(a,"");if(r.test(d))i.s=isNaN(d)?null:d<0?-1:1;else{if(!s&&(d=d.replace(e,(function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=u?e:t})),c&&(u=c,d=d.replace(t,"$1").replace(n,"0.$1")),o!=d))return new F(d,u);if(F.DEBUG)throw Error(l+"Not a"+(c?" base "+c:"")+" number: "+o);i.s=null}i.c=i.e=null}}(),i.absoluteValue=i.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return v(this,new F(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,a,i=this;if(null!=e)return w(e,0,g),null==t?t=C:w(t,0,8),z(new F(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-y(this.e/p))*p,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,t){return n(this,new F(e,t),S,C)},i.dividedToIntegerBy=i.idiv=function(e,t){return n(this,new F(e,t),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,a,i,o,u,d,f,h=this;if((e=new F(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+q(e));if(null!=t&&(t=new F(t)),o=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return f=new F(Math.pow(+q(h),o?e.s*(2-E(e)):+q(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(r=!u&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||o&&h.c[1]>=24e7:h.c[0]<8e13||o&&h.c[0]<=9999975e7)))return i=h.s<0&&E(e)?-0:0,h.e>-1&&(i=1/i),new F(u?1/i:i);N&&(i=s(N/p+2))}for(o?(n=new F(.5),u&&(e.s=1),d=E(e)):d=(a=Math.abs(+q(e)))%2,f=new F(P);;){if(d){if(!(f=f.times(h)).c)break;i?f.c.length>i&&(f.c.length=i):r&&(f=f.mod(t))}if(a){if(0===(a=c(a/2)))break;d=a%2}else if(z(e=e.times(n),e.e+1,1),e.e>14)d=E(e);else{if(0===(a=+q(e)))break;d=a%2}h=h.times(h),i?h.c&&h.c.length>i&&(h.c.length=i):r&&(h=h.mod(t))}return r?f:(u&&(f=P.div(f)),t?f.mod(t):i?z(f,N,C,undefined):f)},i.integerValue=function(e){var t=new F(this);return null==e?e=C:w(e,0,8),z(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===v(this,new F(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return v(this,new F(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=v(this,new F(e,t)))||0===t},i.isInteger=function(){return!!this.c&&y(this.e/p)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return v(this,new F(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return-1===(t=v(this,new F(e,t)))||0===t},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new F(e,t)).s,!s||!t)return new F(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/p,l=e.e/p,u=o.c,f=e.c;if(!c||!l){if(!u||!f)return u?(e.s=-t,e):new F(f?o:NaN);if(!u[0]||!f[0])return f[0]?(e.s=-t,e):new F(u[0]?o:3==C?-0:0)}if(c=y(c),l=y(l),u=u.slice(),s=c-l){for((i=s<0)?(s=-s,a=u):(l=c,a=f),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=u.length)<(t=f.length))?s:t,s=t=0;t0)for(;t--;u[n++]=0);for(t=d-1;r>s;){if(u[--r]=0;){for(n=0,h=k[a]%w,g=k[a]/w|0,i=a+(o=c);i>a;)n=((l=h*(l=x[--o]%w)+(s=g*l+(u=x[o]/w|0)*h)%w*w+b[i]+n)/v|0)+(s/w|0)+g*u,b[i--]=l%v;b[i]=n}return n?++r:b.splice(0,1),U(e,b,r)},i.negated=function(){var e=new F(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/p,o=e.e/p,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new F(a/0);if(!s[0]||!c[0])return c[0]?e:new F(s[0]?r:0*a)}if(i=y(i),o=y(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/d|0,s[t]=d===s[t]?0:s[t]%d;return a&&(s=[a].concat(s),++o),U(e,s,o)},i.precision=i.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return w(e,1,g),null==t?t=C:w(t,0,8),z(new F(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*p+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},i.shiftedBy=function(e){return w(e,-9007199254740991,f),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,l=o.e,u=S+4,d=new F("0.5");if(1!==c||!s||!s[0])return new F(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+q(o)))||c==1/0?(((t=b(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=y((l+1)/2)-(l<0||l%2),r=new F(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new F(c+""),r.c[0])for((c=(l=r.e)+u)<3&&(c=0);;)if(i=r,r=d.times(i.plus(n(o,i,u,1))),b(i.c).slice(0,c)===(t=b(r.c)).slice(0,c)){if(r.e0&&m>0){for(i=m%s||s,d=h.substr(0,i);i0&&(d+=u+h.slice(i)),f&&(d="-"+d)}r=p?d+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?p.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):p):d}return(n.prefix||"")+r+(n.suffix||"")},i.toFraction=function(e){var t,r,a,i,o,s,c,u,d,f,m,g,y=this,v=y.c;if(null!=e&&(!(c=new F(e)).isInteger()&&(c.c||1!==c.s)||c.lt(P)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+q(c));if(!v)return new F(y);for(t=new F(P),d=r=new F(P),a=u=new F(P),g=b(v),o=t.e=g.length-y.e-1,t.c[0]=h[(s=o%p)<0?p+s:s],e=!e||c.comparedTo(t)>0?o>0?t:d:c,s=O,O=1/0,c=new F(g),u.c[0]=0;f=n(c,t,0,1),1!=(i=r.plus(f.times(a))).comparedTo(e);)r=a,a=i,d=u.plus(f.times(i=d)),u=i,t=c.minus(f.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),u=u.plus(i.times(d)),r=r.plus(i.times(a)),u.s=d.s=y.s,m=n(d,a,o*=2,C).minus(y).abs().comparedTo(n(u,r,o,C).minus(y).abs())<1?[d,a]:[u,r],O=s,m},i.toNumber=function(){return+q(this)},i.toPrecision=function(e,t){return null!=e&&w(e,1,g),L(this,e,t,2)},i.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=T||i>=_?x(b(n.c),i):k(b(n.c),i,"0"):10===e&&M?t=k(b((n=z(new F(n),S+i+1,C)).c),n.e,"0"):(w(e,2,B.length,"Base"),t=r(k(b(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return q(this)},i._isBigNumber=!0,null!=t&&F.set(t),F}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},38173:(e,t,n)=>{"use strict";const r=n(98811),a=n(96202),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const a=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||J(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(a)return r?-1:K(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,a){let i,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let r=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;ra&&(r=a):r=a;const i=t.length;let o;for(r>i/2&&(r=i/2),o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(i=t);break;case 2:n=e[a+1],128===(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[a+1],r=e[a+2],128===(192&n)&&128===(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[a+1],r=e[a+2],s=e[a+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=o}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,a)}a+=t.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const s=Math.min(i,o),l=this.slice(r,a),u=e.slice(t,n);for(let c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;ar)&&(n=r);let a="";for(let i=t;in)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r,a){q(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,a){q(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function M(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,8),a.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(a)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],a=1,i=0;for(;++i=a&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,a=1,i=this[e+--r];for(;r>0&&(a*=256);)i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||j(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let a=n-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function q(e,t,n,r,a,i){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(i+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(i+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new D.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,a,i)}function W(e,t){if("number"!==typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=z(String(n)):"bigint"===typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=z(a)),a+="n"),r+=" It must be ".concat(t,". Received ").concat(a),r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let a=null;const i=[];for(let o=0;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Z(e,t,n,r){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!==e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t}();function X(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},19557:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function a(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r{"use strict";n.d(t,{qY:()=>f});var r=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a{"use strict";var t={single_source_shortest_paths:function(e,n,r){var a={},i={};i[n]=0;var o,s,c,l,u,d,p,f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(c in s=(o=f.pop()).value,l=o.cost,u=e[s]||{})u.hasOwnProperty(c)&&(d=l+u[c],p=i[c],("undefined"===typeof i[c]||p>d)&&(i[c]=d,f.push(c,d),a[c]=s));if("undefined"!==typeof r&&"undefined"===typeof i[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},40967:e=>{"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&a<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(a=1024*(a-55296)+i-56320+65536,r+=1)}a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<55296||a>=57344&&a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a>=65536&&a<=1114111?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},79638:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>E,__asyncGenerator:()=>w,__asyncValues:()=>x,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>T,__classPrivateFieldIn:()=>A,__classPrivateFieldSet:()=>_,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>f,__extends:()=>a,__generator:()=>d,__importDefault:()=>C,__importStar:()=>S,__makeTemplateObject:()=>k,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArray:()=>b,__spreadArrays:()=>y,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return P(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function _(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}function A(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},39033:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function a(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,a,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var a,i,o,l;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"===typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=c(e))>0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function p(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"===typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},90823:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),i=0;i'[missing "'.concat(t,'" value]'),nullPlaceholder:(e,t,n,r)=>e.missingPlaceholder(e,t,n,r),transformKey:e=>e};t.I18n=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._locale=f.locale,this._defaultLocale=f.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:a,missingTranslationPrefix:i,missingPlaceholder:o,nullPlaceholder:s,defaultLocale:c,defaultSeparator:h,placeholder:m,transformKey:g}=Object.assign(Object.assign({},f),t);this.locale=n,this.defaultLocale=c,this.defaultSeparator=h,this.enableFallback=r,this.locale=n,this.missingBehavior=a,this.missingTranslationPrefix=i,this.missingPlaceholder=o,this.nullPlaceholder=s,this.placeholder=m,this.pluralization=new u.Pluralization(this),this.locales=new l.Locales(this),this.missingTranslation=new d.MissingTranslation(this),this.transformKey=g,this.interpolate=p.interpolate,this.store(e)}store(e){(0,p.propertyFlatList)(e).forEach((t=>(0,c.default)(this.translations,t,(0,i.default)(e,t),Object))),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!==typeof e)throw new Error("Expected newLocale to be a string; got ".concat((0,p.inferType)(e)));const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!==typeof e)throw new Error("Expected newLocale to be a string; got ".concat((0,p.inferType)(e)));const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);let n;return(0,p.createTranslationOptions)(this,e,t).some((e=>((0,p.isSet)(e.scope)?n=(0,p.lookup)(this,e.scope,t):(0,p.isSet)(e.message)&&(n=e.message),void 0!==n&&null!==n)))?("string"===typeof n?n=this.interpolate(this,n,t):"object"===typeof n&&n&&(0,p.isSet)(t.count)&&(n=(0,p.pluralize)({i18n:this,count:t.count||0,scope:n,options:t,baseScope:(0,p.getFullScope)(this,e,t)})),t&&n instanceof Array&&(n=n.map((e=>"string"===typeof e?(0,p.interpolate)(this,e,t):e))),n):this.missingTranslation.get(e,t)}pluralize(e,t,n){return(0,p.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:(0,p.getFullScope)(this,t,null!==n&&void 0!==n?n:{})})}localize(e,t,n){if(n=Object.assign({},n),void 0===t||null===t)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,p.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,p.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return r=e.match(/^(date|time)/)?this.toTime(e,t):t.toString(),(0,p.interpolate)(this,r,n)}}}toTime(e,t){const n=(0,p.parseDate)(t),r=(0,p.lookup)(this,e);return n.toString().match(/invalid/i)?n.toString():r?this.strftime(n,r):n.toString()}numberToCurrency(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,p.camelCaseKeys)(this.get("number.format"))),(0,p.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,p.camelCaseKeys)(this.get("number.format"))),(0,p.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,p.camelCaseKeys)(this.get("number.human.format"))),(0,p.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,p.camelCaseKeys)(this.get("number.human.format"))),(0,p.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,p.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return r(this,void 0,void 0,(function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}}))}strftime(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,p.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,p.camelCaseKeys)((0,p.lookup)(this,"date"))),{meridian:{am:(0,p.lookup)(this,"time.am")||"AM",pm:(0,p.lookup)(this,"time.pm")||"PM"}}),n))}update(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!1};if(n.strict&&!(0,o.default)(this.translations,e))throw new Error('The path "'.concat(e,'" is not currently defined'));const r=(0,i.default)(this.translations,e),a=(0,p.inferType)(r),c=(0,p.inferType)(t);if(n.strict&&a!==c)throw new Error('The current type for "'.concat(e,'" is "').concat(a,'", but you\'re trying to override it with "').concat(c,'"'));let l;l="object"===c?Object.assign(Object.assign({},r),t):t,(0,s.default)(this.translations,e,l),this.hasChanged()}toSentence(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:a}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,p.camelCaseKeys)((0,p.lookup)(this,"support.array"))),t),i=e.length;switch(i){case 0:return"";case 1:return"".concat(e[0]);case 2:return e.join(r);default:return[e.slice(0,i-1).join(n),a,e[i-1]].join("")}}timeAgoInWords(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,p.timeAgoInWords)(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,p.formatNumber)(e,t)}get(e){return(0,p.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach((e=>e(this)))}hasChanged(){this._version+=1,this.runCallbacks()}}},78247:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Locales=t.defaultLocaleResolver=void 0;const a=r(n(17760));t.defaultLocaleResolver=(e,t)=>{const n=[],r=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map((e=>e.toString())).forEach((function(t){if(r.includes(t)||r.push(t),!e.enableFallback)return;const n=t.split("-");3===n.length&&r.push("".concat(n[0],"-").concat(n[1])),r.push(n[0])})),(0,a.default)(r)};t.Locales=class{constructor(e){this.i18n=e,this.registry={},this.register("default",t.defaultLocaleResolver)}register(e,t){if("function"!==typeof t){const e=t;t=()=>e}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"===typeof t&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}}},48489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingTranslation=t.errorStrategy=t.messageStrategy=t.guessStrategy=void 0;const r=n(82334);t.guessStrategy=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,((e,t,n)=>"".concat(t," ").concat(n.toLowerCase())))};t.messageStrategy=(e,t,n)=>{const a=(0,r.getFullScope)(e,t,n),i="locale"in n?n.locale:e.locale,o=(0,r.inferType)(i),s=["string"==o?i:o,a].join(e.defaultSeparator);return'[missing "'.concat(s,'" translation]')};t.errorStrategy=(e,t,n)=>{const a=(0,r.getFullScope)(e,t,n),i=[e.locale,a].join(e.defaultSeparator);throw new Error("Missing translation: ".concat(i))};t.MissingTranslation=class{constructor(e){this.i18n=e,this.registry={},this.register("guess",t.guessStrategy),this.register("message",t.messageStrategy),this.register("error",t.errorStrategy)}register(e,t){this.registry[e]=t}get(e,t){var n;return this.registry[null!==(n=t.missingBehavior)&&void 0!==n?n:this.i18n.missingBehavior](this.i18n,e,t)}}},98675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pluralization=t.defaultPluralizer=t.useMakePlural=void 0;const r=n(88019);function a(e){let{pluralizer:t,includeZero:n=!0,ordinal:r=!1}=e;return function(e,a){return[n&&0===a?"zero":"",t(a,r)].filter(Boolean)}}t.useMakePlural=a,t.defaultPluralizer=a({pluralizer:r.en,includeZero:!0});t.Pluralization=class{constructor(e){this.i18n=e,this.registry={},this.register("default",t.defaultPluralizer)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}},64197:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.camelCaseKeys=void 0;const a=r(n(92322));t.camelCaseKeys=function(e){return e?Object.keys(e).reduce(((t,n)=>(t[(0,a.default)(n)]=e[n],t)),{}):{}}},13273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTranslationOptions=void 0;const r=n(50741);t.createTranslationOptions=function(e,t,n){let a=[{scope:t}];if((0,r.isSet)(n.defaults)&&(a=a.concat(n.defaults)),(0,r.isSet)(n.defaultValue)){const r="function"===typeof n.defaultValue?n.defaultValue(e,t,n):n.defaultValue;a.push({message:r}),delete n.defaultValue}return a}},31551:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expandRoundMode=void 0;const a=r(n(96554));var i;!function(e){e[e.up=a.default.ROUND_UP]="up",e[e.down=a.default.ROUND_DOWN]="down",e[e.truncate=a.default.ROUND_DOWN]="truncate",e[e.halfUp=a.default.ROUND_HALF_UP]="halfUp",e[e.default=a.default.ROUND_HALF_UP]="default",e[e.halfDown=a.default.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=a.default.ROUND_HALF_EVEN]="halfEven",e[e.banker=a.default.ROUND_HALF_EVEN]="banker",e[e.ceiling=a.default.ROUND_CEIL]="ceiling",e[e.ceil=a.default.ROUND_CEIL]="ceil",e[e.floor=a.default.ROUND_FLOOR]="floor"}(i||(i={})),t.expandRoundMode=function(e){var t;return null!==(t=i[e])&&void 0!==t?t:i.default}},77435:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=void 0;const a=r(n(96554)),i=r(n(19661)),o=n(43024);t.formatNumber=function(e,t){var n,r,s;const c=new a.default(e);if(t.raise&&!c.isFinite())throw new Error('"'.concat(e,'" is not a valid numeric value'));const l=(0,o.roundNumber)(c,t),u=new a.default(l),d=u.lt(0),p=u.isZero();let[f,h]=l.split(".");const m=[];let g;const y=null!==(n=t.format)&&void 0!==n?n:"%n",b=null!==(r=t.negativeFormat)&&void 0!==r?r:"-".concat(y),v=d&&!p?b:y;for(f=f.replace("-","");f.length>0;)m.unshift(f.substr(Math.max(0,f.length-3),3)),f=f.substr(0,f.length-3);return f=m.join(""),g=m.join(t.delimiter),h=t.significant?function(e){let{significand:t,whole:n,precision:r}=e;if("0"===n||null===r)return t;const a=Math.max(0,r-n.length);return(null!==t&&void 0!==t?t:"").substr(0,a)}({whole:f,significand:h,precision:t.precision}):null!==h&&void 0!==h?h:(0,i.default)("0",null!==(s=t.precision)&&void 0!==s?s:0),t.stripInsignificantZeros&&h&&(h=h.replace(/0+$/,"")),c.isNaN()&&(g=e.toString()),h&&c.isFinite()&&(g+=(t.separator||".")+h),function(e,t){let{formattedNumber:n,unit:r}=t;return e.replace("%n",n).replace("%u",r)}(v,{formattedNumber:g,unit:t.unit})}},44455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFullScope=void 0,t.getFullScope=function(e,t,n){let r="";return(t instanceof String||"string"===typeof t)&&(r=t),t instanceof Array&&(r=t.join(e.defaultSeparator)),n.scope&&(r=[n.scope,r].join(e.defaultSeparator)),r}},82334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeAgoInWords=t.strftime=t.roundNumber=t.propertyFlatList=t.pluralize=t.parseDate=t.numberToHumanSize=t.numberToHuman=t.numberToDelimited=t.lookup=t.isSet=t.interpolate=t.inferType=t.getFullScope=t.formatNumber=t.expandRoundMode=t.createTranslationOptions=t.camelCaseKeys=void 0;var r=n(64197);Object.defineProperty(t,"camelCaseKeys",{enumerable:!0,get:function(){return r.camelCaseKeys}});var a=n(13273);Object.defineProperty(t,"createTranslationOptions",{enumerable:!0,get:function(){return a.createTranslationOptions}});var i=n(31551);Object.defineProperty(t,"expandRoundMode",{enumerable:!0,get:function(){return i.expandRoundMode}});var o=n(77435);Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return o.formatNumber}});var s=n(44455);Object.defineProperty(t,"getFullScope",{enumerable:!0,get:function(){return s.getFullScope}});var c=n(87402);Object.defineProperty(t,"inferType",{enumerable:!0,get:function(){return c.inferType}});var l=n(1483);Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return l.interpolate}});var u=n(50741);Object.defineProperty(t,"isSet",{enumerable:!0,get:function(){return u.isSet}});var d=n(64106);Object.defineProperty(t,"lookup",{enumerable:!0,get:function(){return d.lookup}});var p=n(96836);Object.defineProperty(t,"numberToDelimited",{enumerable:!0,get:function(){return p.numberToDelimited}});var f=n(11582);Object.defineProperty(t,"numberToHuman",{enumerable:!0,get:function(){return f.numberToHuman}});var h=n(37382);Object.defineProperty(t,"numberToHumanSize",{enumerable:!0,get:function(){return h.numberToHumanSize}});var m=n(98980);Object.defineProperty(t,"parseDate",{enumerable:!0,get:function(){return m.parseDate}});var g=n(60402);Object.defineProperty(t,"pluralize",{enumerable:!0,get:function(){return g.pluralize}});var y=n(25054);Object.defineProperty(t,"propertyFlatList",{enumerable:!0,get:function(){return y.propertyFlatList}});var b=n(43024);Object.defineProperty(t,"roundNumber",{enumerable:!0,get:function(){return b.roundNumber}});var v=n(1122);Object.defineProperty(t,"strftime",{enumerable:!0,get:function(){return v.strftime}});var w=n(70921);Object.defineProperty(t,"timeAgoInWords",{enumerable:!0,get:function(){return w.timeAgoInWords}})},87402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inferType=void 0,t.inferType=function(e){var t,n;if(null===e)return"null";const r=typeof e;return"object"!==r?r:(null===(n=null===(t=null===e||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.name)||void 0===n?void 0:n.toLowerCase())||"object"}},1483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interpolate=void 0;const r=n(50741);t.interpolate=function(e,t,n){n=Object.keys(n).reduce(((t,r)=>(t[e.transformKey(r)]=n[r],t)),{});const a=t.match(e.placeholder);if(!a)return t;for(;a.length;){let i;const o=a.shift(),s=o.replace(e.placeholder,"$1");i=(0,r.isSet)(n[s])?n[s].toString().replace(/\$/gm,"_#$#_"):s in n?e.nullPlaceholder(e,o,t,n):e.missingPlaceholder(e,o,t,n);const c=new RegExp(o.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));t=t.replace(c,i)}return t.replace(/_#\$#_/g,"$")}},50741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSet=void 0,t.isSet=function(e){return void 0!==e&&null!==e}},64106:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lookup=void 0;const a=r(n(10428)),i=n(50741),o=n(44455),s=n(87402);t.lookup=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({},n);const r="locale"in n?n.locale:e.locale,c=(0,s.inferType)(r),l=e.locales.get("string"===c?r:typeof r).slice();t=(0,o.getFullScope)(e,t,n).split(e.defaultSeparator).map((t=>e.transformKey(t))).join(".");const u=l.map((n=>(0,a.default)(e.translations,[n,t].join("."))));return u.push(n.defaultValue),u.find((e=>(0,i.isSet)(e)))}},96836:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToDelimited=void 0;const a=r(n(96554));t.numberToDelimited=function(e,t){const n=new a.default(e);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error("options.delimiterPattern must be a global regular expression; received ".concat(t.delimiterPattern));let[r,i]=n.toString().split(".");return r=r.replace(t.delimiterPattern,(e=>"".concat(e).concat(t.delimiter))),[r,i].filter(Boolean).join(t.separator)}},11582:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHuman=void 0;const a=r(n(96554)),i=r(n(34509)),o=r(n(25141)),s=n(44455),c=n(64106),l=n(43024),u=n(87402),d={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},p=(0,o.default)(Object.values(d),Object.keys(d).map((e=>parseInt(e,10))));t.numberToHuman=function(e,t,n){const r={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let o;if("string"===(0,u.inferType)(n.units)){const t=n.units;if(o=(0,c.lookup)(e,t),!o)throw new Error('The scope "'.concat(e.locale).concat(e.defaultSeparator).concat((0,s.getFullScope)(e,t,{}),"\" couldn't be found"))}else o=n.units;let f=(0,l.roundNumber)(new a.default(t),r);const h=((e,t)=>{const n=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return(e=>(0,i.default)(Object.keys(e).map((e=>p[e])),(e=>-1*e)))(t).find((e=>n>=e))||0})(new a.default(f),o),m=((e,t)=>e[d[t.toString()]]||"")(o,h);if(f=(0,l.roundNumber)(new a.default(f).div(Math.pow(10,h)),r),n.stripInsignificantZeros){let[e,t]=f.split(".");t=(t||"").replace(/0+$/,""),f=e,t&&(f+="".concat(n.separator).concat(t))}return n.format.replace("%n",f||"0").replace("%u",m).trim()}},37382:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHumanSize=void 0;const a=r(n(96554)),i=n(43024),o=n(31551),s=["byte","kb","mb","gb","tb","pb","eb"];t.numberToHumanSize=function(e,t,n){const r=(0,o.expandRoundMode)(n.roundMode),c=1024,l=new a.default(t).abs(),u=l.lt(c);let d;const p=((e,t)=>{const n=t.length-1,r=new a.default(Math.log(e.toNumber())).div(Math.log(c)).integerValue(a.default.ROUND_DOWN).toNumber();return Math.min(n,r)})(l,s);d=u?l.integerValue():new a.default((0,i.roundNumber)(l.div(Math.pow(c,p)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const f=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),h=e.translate((e=>{const t=u?"byte":e[p];return"number.human.storage_units.units.".concat(t)})(s),{count:l.integerValue().toNumber()});let m=d.toFixed(n.precision,r);return n.stripInsignificantZeros&&(m=m.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),f.replace("%n",m).replace("%u",h)}},98980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDate=void 0,t.parseDate=function(e){if(e instanceof Date)return e;if("number"===typeof e){const t=new Date;return t.setTime(e),t}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const e=t.slice(1,8).map((e=>parseInt(e,10)||0));e[1]-=1;const[n,r,a,i,o,s,c]=e;return t[8]?new Date(Date.UTC(n,r,a,i,o,s,c)):new Date(n,r,a,i,o,s,c)}if(e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)){(new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")))}const n=new Date;return n.setTime(Date.parse(e)),n}},60402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluralize=void 0;const r=n(50741),a=n(64106);t.pluralize=function(e){let t,n,{i18n:i,count:o,scope:s,options:c,baseScope:l}=e;if(c=Object.assign({},c),t="object"===typeof s&&s?s:(0,a.lookup)(i,s,c),!t)return i.missingTranslation.get(s,c);const u=i.pluralization.get(c.locale)(i,o),d=[];for(;u.length;){const e=u.shift();if((0,r.isSet)(t[e])){n=t[e];break}d.push(e)}return(0,r.isSet)(n)?(c.count=o,i.interpolate(i,n,c)):i.missingTranslation.get(l.split(i.defaultSeparator).concat([d[0]]),c)}},25054:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.propertyFlatList=void 0;const a=r(n(33776)),i=r(n(94487));class o{constructor(e){this.target=e}call(){const e=(0,i.default)(Object.keys(this.target).map((e=>this.compute(this.target[e],e))));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,a.default)(e)?Object.keys(e).map((n=>this.compute(e[n],"".concat(t,".").concat(n)))):t}}t.propertyFlatList=function(e){return new o(e).call()}},43024:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.roundNumber=void 0;const a=r(n(96554)),i=n(31551);function o(e,t){let{precision:n,significant:r}=t;return r&&null!==n&&n>0?n-function(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}(e):n}t.roundNumber=function(e,t){const n=o(e,t);if(null===n)return e.toString();const r=(0,i.expandRoundMode)(t.roundMode);if(n>=0)return e.toFixed(n,r);const s=Math.pow(10,Math.abs(n));return(e=new a.default(e.div(s).toFixed(0,r)).times(s)).toString()}},1122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strftime=void 0;const n={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};t.strftime=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{abbrDayNames:a,dayNames:i,abbrMonthNames:o,monthNames:s,meridian:c}=Object.assign(Object.assign({},n),r);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const l=e.getDay(),u=e.getDate(),d=e.getFullYear(),p=e.getMonth()+1,f=e.getHours();let h=f;const m=f>11?"pm":"am",g=e.getSeconds(),y=e.getMinutes(),b=e.getTimezoneOffset(),v=Math.floor(Math.abs(b/60)),w=Math.abs(b)-60*v,E=(b>0?"-":"+")+(v.toString().length<2?"0"+v:v)+(w.toString().length<2?"0"+w:w);return h>12?h-=12:0===h&&(h=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",a[l])).replace("%A",i[l])).replace("%b",o[p])).replace("%B",s[p])).replace("%d",u.toString().padStart(2,"0"))).replace("%e",u.toString())).replace("%-d",u.toString())).replace("%H",f.toString().padStart(2,"0"))).replace("%-H",f.toString())).replace("%k",f.toString())).replace("%I",h.toString().padStart(2,"0"))).replace("%-I",h.toString())).replace("%l",h.toString())).replace("%m",p.toString().padStart(2,"0"))).replace("%-m",p.toString())).replace("%M",y.toString().padStart(2,"0"))).replace("%-M",y.toString())).replace("%p",c[m])).replace("%P",c[m].toLowerCase())).replace("%S",g.toString().padStart(2,"0"))).replace("%-S",g.toString())).replace("%w",l.toString())).replace("%y",d.toString().padStart(2,"0").substr(-2))).replace("%-y",d.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",d.toString())).replace(/%z/i,E)}},70921:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timeAgoInWords=void 0;const a=r(n(16035)),i=n(98980),o=(e,t,n)=>n>=e&&n<=t;t.timeAgoInWords=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=r.scope||"datetime.distance_in_words",c=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.t(t,{count:n,scope:s})};t=(0,i.parseDate)(t),n=(0,i.parseDate)(n);let l=t.getTime()/1e3,u=n.getTime()/1e3;l>u&&([t,n,l,u]=[n,t,u,l]);const d=Math.round(u-l),p=Math.round((u-l)/60),f=p/60/24,h=Math.round(p/60),m=Math.round(f),g=Math.round(m/30);if(o(0,1,p))return r.includeSeconds?o(0,4,d)?c("less_than_x_seconds",5):o(5,9,d)?c("less_than_x_seconds",10):o(10,19,d)?c("less_than_x_seconds",20):o(20,39,d)?c("half_a_minute"):o(40,59,d)?c("less_than_x_minutes",1):c("x_minutes",1):0===p?c("less_than_x_minutes",1):c("x_minutes",p);if(o(2,44,p))return c("x_minutes",p);if(o(45,89,p))return c("about_x_hours",1);if(o(90,1439,p))return c("about_x_hours",h);if(o(1440,2519,p))return c("x_days",1);if(o(2520,43199,p))return c("x_days",m);if(o(43200,86399,p))return c("about_x_months",Math.round(p/43200));if(o(86400,525599,p))return c("x_months",g);let y=t.getFullYear();t.getMonth()+1>=3&&(y+=1);let b=n.getFullYear();n.getMonth()+1<3&&(b-=1);const v=525600,w=p-1440*(y>b?0:(0,a.default)(y,b).filter((e=>1==new Date(e,1,29).getMonth())).length),E=Math.trunc(w/v),x=parseFloat((w/v-E).toPrecision(3));return x<.25?c("about_x_years",E):x<.75?c("over_x_years",E):c("almost_x_years",E+1)}},11223:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.useMakePlural=t.Pluralization=t.MissingTranslation=t.Locales=t.I18n=void 0;var i=n(58907);Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return i.I18n}});var o=n(78247);Object.defineProperty(t,"Locales",{enumerable:!0,get:function(){return o.Locales}});var s=n(48489);Object.defineProperty(t,"MissingTranslation",{enumerable:!0,get:function(){return s.MissingTranslation}});var c=n(98675);Object.defineProperty(t,"Pluralization",{enumerable:!0,get:function(){return c.Pluralization}}),Object.defineProperty(t,"useMakePlural",{enumerable:!0,get:function(){return c.useMakePlural}}),a(n(5324),t)},5324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96202:(e,t)=>{t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,c=(1<>1,u=-7,d=n?a-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-l;else{if(i===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),i-=l}return(f?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,l=8*i-a-1,u=(1<>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+f]=255&s,f+=h,s/=256,a-=8);for(o=o<0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}},69304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=null;"undefined"!==typeof WebSocket?r=WebSocket:"undefined"!==typeof MozWebSocket?r=MozWebSocket:"undefined"!==typeof n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!==typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!==typeof self&&(r=self.WebSocket||self.MozWebSocket);const a=r},36853:(e,t,n)=>{var r=n(42554)(n(61546),"DataView");e.exports=r},984:(e,t,n)=>{var r=n(8881),a=n(11710),i=n(54138),o=n(17057),s=n(3484);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(79483),a=n(20998),i=n(64559),o=n(53914),s=n(42814);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(42554)(n(61546),"Map");e.exports=r},90202:(e,t,n)=>{var r=n(60108),a=n(1206),i=n(37942),o=n(94348),s=n(98537);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(42554)(n(61546),"Promise");e.exports=r},59910:(e,t,n)=>{var r=n(42554)(n(61546),"Set");e.exports=r},53816:(e,t,n)=>{var r=n(90202),a=n(84555),i=n(19875);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(4758),a=n(48640),i=n(85938),o=n(54967),s=n(22510),c=n(60980);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},36649:(e,t,n)=>{var r=n(61546).Symbol;e.exports=r},13889:(e,t,n)=>{var r=n(61546).Uint8Array;e.exports=r},21474:(e,t,n)=>{var r=n(42554)(n(61546),"WeakMap");e.exports=r},78415:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},28194:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n{var r=n(1309);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},23259:e=>{e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r{var r=n(68427),a=n(55632),i=n(44282),o=n(18857),s=n(2394),c=n(49012),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&c(e),f=n||u||d||p,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!l.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},35918:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n{e.exports=function(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e.split("")}},49843:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},91248:(e,t,n)=>{var r=n(65970),a=n(87965),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},1856:(e,t,n)=>{var r=n(87965);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},65970:(e,t,n)=>{var r=n(47681);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},46476:(e,t,n)=>{var r=n(78512),a=n(68002)(r);e.exports=a},88482:e=>{e.exports=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i{var r=n(58986),a=n(39484);e.exports=function e(t,n,i,o,s){var c=-1,l=t.length;for(i||(i=a),s||(s=[]);++c0&&i(u)?n>1?e(u,n-1,i,o,s):r(s,u):o||(s[s.length]=u)}return s}},40545:(e,t,n)=>{var r=n(15374)();e.exports=r},78512:(e,t,n)=>{var r=n(40545),a=n(58930);e.exports=function(e,t){return e&&r(e,t,a)}},41995:(e,t,n)=>{var r=n(36440),a=n(3848);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n{var r=n(58986),a=n(44282);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},43333:(e,t,n)=>{var r=n(36649),a=n(4118),i=n(34230),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},47616:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},6693:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1309:(e,t,n)=>{var r=n(88482),a=n(45217),i=n(20045);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,a,n)}},22962:(e,t,n)=>{var r=n(43333),a=n(76097);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},24926:(e,t,n)=>{var r=n(45037),a=n(76097);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!==t&&n!==n:r(t,n,i,o,e,s))}},45037:(e,t,n)=>{var r=n(10607),a=n(54410),i=n(99471),o=n(56231),s=n(67497),c=n(44282),l=n(18857),u=n(49012),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var b=c(e),v=c(t),w=b?p:s(e),E=v?p:s(t),x=(w=w==d?f:w)==f,k=(E=E==d?f:E)==f,P=w==E;if(P&&l(e)){if(!l(t))return!1;b=!0,x=!1}if(P&&!x)return y||(y=new r),b||u(e)?a(e,t,n,m,g,y):i(e,t,w,n,m,g,y);if(!(1&n)){var S=x&&h.call(e,"__wrapped__"),C=k&&h.call(t,"__wrapped__");if(S||C){var T=S?e.value():e,_=C?t.value():t;return y||(y=new r),g(T,_,n,m,y)}}return!!P&&(y||(y=new r),o(e,t,n,m,g,y))}},27766:(e,t,n)=>{var r=n(10607),a=n(24926);e.exports=function(e,t,n,i){var o=n.length,s=o,c=!i;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o{e.exports=function(e){return e!==e}},60831:(e,t,n)=>{var r=n(53233),a=n(17726),i=n(33776),o=n(90496),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?p:s).test(o(e))}},73365:(e,t,n)=>{var r=n(43333),a=n(86364),i=n(76097),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},56861:(e,t,n)=>{var r=n(26713),a=n(11117),i=n(78264),o=n(44282),s=n(2788);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?a(e[0],e[1]):r(e):s(e)}},14732:(e,t,n)=>{var r=n(30101),a=n(34261),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},63831:(e,t,n)=>{var r=n(46476),a=n(19451);e.exports=function(e,t){var n=-1,i=a(e)?Array(e.length):[];return r(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}},26713:(e,t,n)=>{var r=n(27766),a=n(16366),i=n(78514);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},11117:(e,t,n)=>{var r=n(24926),a=n(10428),i=n(60780),o=n(4935),s=n(9647),c=n(78514),l=n(3848);e.exports=function(e,t){return o(e)&&s(t)?c(l(e),t):function(n){var o=a(n,e);return void 0===o&&o===t?i(n,e):r(t,o,3)}}},31693:(e,t,n)=>{var r=n(35918),a=n(41995),i=n(56861),o=n(63831),s=n(39111),c=n(91520),l=n(24270),u=n(78264),d=n(44282);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return a(t,1===e.length?e[0]:e)}:e})):[u];var p=-1;t=r(t,c(i));var f=o(e,(function(e,n,a){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return s(f,(function(e,t){return l(e,t,n)}))}},71033:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},35810:(e,t,n)=>{var r=n(41995);e.exports=function(e){return function(t){return r(t,e)}}},92434:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},12165:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,a,i){for(var o=-1,s=n(t((r-e)/(a||1)),0),c=Array(s);s--;)c[i?s:++o]=e,e+=a;return c}},72389:e=>{var t=Math.floor;e.exports=function(e,n){var r="";if(!e||n<1||n>9007199254740991)return r;do{n%2&&(r+=e),(n=t(n/2))&&(e+=e)}while(n);return r}},77627:(e,t,n)=>{var r=n(78264),a=n(81370),i=n(42532);e.exports=function(e,t){return i(a(e,t,r),e+"")}},16853:(e,t,n)=>{var r=n(91248),a=n(36440),i=n(2394),o=n(33776),s=n(3848);e.exports=function(e,t,n,c){if(!o(e))return e;for(var l=-1,u=(t=a(t,e)).length,d=u-1,p=e;null!=p&&++l{var r=n(5045),a=n(47681),i=n(78264),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},64017:e=>{e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},68427:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(36649),a=n(35918),i=n(44282),o=n(94135),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},53266:(e,t,n)=>{var r=n(24897),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},91520:e=>{e.exports=function(e){return function(t){return e(t)}}},22466:(e,t,n)=>{var r=n(53816),a=n(45413),i=n(23259),o=n(40965),s=n(61597),c=n(13703);e.exports=function(e,t,n){var l=-1,u=a,d=e.length,p=!0,f=[],h=f;if(n)p=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return c(m);p=!1,u=o,h=new r}else h=t?[]:f;e:for(;++l{e.exports=function(e,t,n){for(var r=-1,a=e.length,i=t.length,o={};++r{e.exports=function(e,t){return e.has(t)}},36440:(e,t,n)=>{var r=n(44282),a=n(4935),i=n(40503),o=n(50618);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:i(o(e))}},66883:(e,t,n)=>{var r=n(64017);e.exports=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:r(e,t,n)}},35877:(e,t,n)=>{var r=n(94135);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,i=e===e,o=r(e),s=void 0!==t,c=null===t,l=t===t,u=r(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||a&&s&&l||!n&&l||!i)return 1;if(!a&&!o&&!u&&e{var r=n(35877);e.exports=function(e,t,n){for(var a=-1,i=e.criteria,o=t.criteria,s=i.length,c=n.length;++a=c?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}},95704:(e,t,n)=>{var r=n(61546)["__core-js_shared__"];e.exports=r},68002:(e,t,n)=>{var r=n(19451);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o{e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(!1===n(i[c],c,i))break}return t}}},87552:(e,t,n)=>{var r=n(66883),a=n(39082),i=n(20467),o=n(50618);e.exports=function(e){return function(t){t=o(t);var n=a(t)?i(t):void 0,s=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return s[e]()+c}}},3335:(e,t,n)=>{var r=n(71686),a=n(19443),i=n(88263),o=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(i(a(t).replace(o,"")),e,"")}}},81824:(e,t,n)=>{var r=n(12165),a=n(7248),i=n(39670);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&a(t,n,o)&&(n=o=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),o=void 0===o?t{var r=n(59910),a=n(60250),i=n(13703),o=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:a;e.exports=o},62489:(e,t,n)=>{var r=n(92434)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"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"});e.exports=r},47681:(e,t,n)=>{var r=n(42554),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},54410:(e,t,n)=>{var r=n(53816),a=n(49619),i=n(40965);e.exports=function(e,t,n,o,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h{var r=n(36649),a=n(13889),i=n(87965),o=n(54410),s=n(21451),c=n(13703),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=c),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=o(f(e),f(t),r,l,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},56231:(e,t,n)=>{var r=n(81096),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var p=l[d];if(!(c?p in t:a.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},81096:(e,t,n)=>{var r=n(14426),a=n(67037),i=n(58930);e.exports=function(e){return r(e,i,a)}},78864:(e,t,n)=>{var r=n(17849);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},16366:(e,t,n)=>{var r=n(9647),a=n(58930);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,r(o)]}return t}},42554:(e,t,n)=>{var r=n(60831),a=n(3515);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},4118:(e,t,n)=>{var r=n(36649),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},67037:(e,t,n)=>{var r=n(28194),a=n(64375),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},67497:(e,t,n)=>{var r=n(36853),a=n(13434),i=n(8506),o=n(59910),s=n(21474),c=n(43333),l=n(90496),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=l(r),g=l(a),y=l(i),b=l(o),v=l(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||a&&w(new a)!=u||i&&w(i.resolve())!=d||o&&w(new o)!=p||s&&w(new s)!=f)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return h;case g:return u;case y:return d;case b:return p;case v:return f}return t}),e.exports=w},3515:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},76592:(e,t,n)=>{var r=n(36440),a=n(55632),i=n(44282),o=n(2394),s=n(86364),c=n(3848);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,d=!1;++l{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},16135:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},8881:(e,t,n)=>{var r=n(13755);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},11710:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},54138:(e,t,n)=>{var r=n(13755),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},17057:(e,t,n)=>{var r=n(13755),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},3484:(e,t,n)=>{var r=n(13755);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},39484:(e,t,n)=>{var r=n(36649),a=n(55632),i=n(44282),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(o&&e&&e[o])}},2394:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(87965),a=n(19451),i=n(2394),o=n(33776);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},4935:(e,t,n)=>{var r=n(44282),a=n(94135),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(o.test(e)||!i.test(e)||null!=t&&e in Object(t))}},17849:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},17726:(e,t,n)=>{var r=n(95704),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},30101:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9647:(e,t,n)=>{var r=n(33776);e.exports=function(e){return e===e&&!r(e)}},79483:e=>{e.exports=function(){this.__data__=[],this.size=0}},20998:(e,t,n)=>{var r=n(1856),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},64559:(e,t,n)=>{var r=n(1856);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},53914:(e,t,n)=>{var r=n(1856);e.exports=function(e){return r(this.__data__,e)>-1}},42814:(e,t,n)=>{var r=n(1856);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},60108:(e,t,n)=>{var r=n(984),a=n(4758),i=n(13434);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},1206:(e,t,n)=>{var r=n(78864);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},37942:(e,t,n)=>{var r=n(78864);e.exports=function(e){return r(this,e).get(e)}},94348:(e,t,n)=>{var r=n(78864);e.exports=function(e){return r(this,e).has(e)}},98537:(e,t,n)=>{var r=n(78864);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},21451:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},78514:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},86564:(e,t,n)=>{var r=n(26782);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},13755:(e,t,n)=>{var r=n(42554)(Object,"create");e.exports=r},34261:(e,t,n)=>{var r=n(69995)(Object.keys,Object);e.exports=r},10180:(e,t,n)=>{e=n.nmd(e);var r=n(58012),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},34230:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},69995:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},81370:(e,t,n)=>{var r=n(78415),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),c=Array(s);++o{var r=n(58012),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},84555:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},19875:e=>{e.exports=function(e){return this.__data__.has(e)}},13703:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},42532:(e,t,n)=>{var r=n(19173),a=n(2528)(r);e.exports=a},2528:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var a=t(),i=16-(a-r);if(r=a,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},48640:(e,t,n)=>{var r=n(4758);e.exports=function(){this.__data__=new r,this.size=0}},85938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},54967:e=>{e.exports=function(e){return this.__data__.get(e)}},22510:e=>{e.exports=function(e){return this.__data__.has(e)}},60980:(e,t,n)=>{var r=n(4758),a=n(13434),i=n(90202);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},20045:e=>{e.exports=function(e,t,n){for(var r=n-1,a=e.length;++r{var r=n(98109),a=n(39082),i=n(73712);e.exports=function(e){return a(e)?i(e):r(e)}},40503:(e,t,n)=>{var r=n(86564),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=o},3848:(e,t,n)=>{var r=n(94135);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},90496:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},24897:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},73712:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+a+")"+"?",l="[\\ufe0e\\ufe0f]?",u=l+c+("(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+c+")*"),d="(?:"+[i+r+"?",r,o,s,n].join("|")+")",p=RegExp(a+"(?="+a+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},79855:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",o="["+i+"]",s="\\d+",c="["+n+"]",l="["+r+"]",u="[^"+t+i+s+n+r+a+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+a+"]",h="(?:"+l+"|"+u+")",m="(?:"+f+"|"+u+")",g="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",y="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+("(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+v+b+")*"),E="(?:"+[c,d,p].join("|")+")"+w,x=RegExp([f+"?"+l+"+"+g+"(?="+[o,f,"$"].join("|")+")",m+"+"+y+"(?="+[o,f+h,"$"].join("|")+")",f+"?"+h+"+"+g,f+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,E].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},92322:(e,t,n)=>{var r=n(61278),a=n(3335)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=a},61278:(e,t,n)=>{var r=n(50618),a=n(41120);e.exports=function(e){return a(r(e).toLowerCase())}},5045:e=>{e.exports=function(e){return function(){return e}}},19443:(e,t,n)=>{var r=n(62489),a=n(50618),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=a(e))&&e.replace(i,r).replace(o,"")}},87965:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},94487:(e,t,n)=>{var r=n(64906);e.exports=function(e){return(null==e?0:e.length)?r(e,Infinity):[]}},10428:(e,t,n)=>{var r=n(41995);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},45714:(e,t,n)=>{var r=n(47616),a=n(76592);e.exports=function(e,t){return null!=e&&a(e,t,r)}},60780:(e,t,n)=>{var r=n(6693),a=n(76592);e.exports=function(e,t){return null!=e&&a(e,t,r)}},78264:e=>{e.exports=function(e){return e}},55632:(e,t,n)=>{var r=n(22962),a=n(76097),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},44282:e=>{var t=Array.isArray;e.exports=t},19451:(e,t,n)=>{var r=n(53233),a=n(86364);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},18857:(e,t,n)=>{e=n.nmd(e);var r=n(61546),a=n(6730),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;e.exports=c},53233:(e,t,n)=>{var r=n(43333),a=n(33776);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},86364:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},33776:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},76097:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},94135:(e,t,n)=>{var r=n(43333),a=n(76097);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},49012:(e,t,n)=>{var r=n(73365),a=n(91520),i=n(10180),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},58930:(e,t,n)=>{var r=n(45170),a=n(14732),i=n(19451);e.exports=function(e){return i(e)?r(e):a(e)}},26782:(e,t,n)=>{var r=n(90202);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},60250:e=>{e.exports=function(){}},2788:(e,t,n)=>{var r=n(71033),a=n(35810),i=n(4935),o=n(3848);e.exports=function(e){return i(e)?r(o(e)):a(e)}},16035:(e,t,n)=>{var r=n(81824)();e.exports=r},19661:(e,t,n)=>{var r=n(72389),a=n(7248),i=n(22944),o=n(50618);e.exports=function(e,t,n){return t=(n?a(e,t,n):void 0===t)?1:i(t),r(o(e),t)}},86394:(e,t,n)=>{var r=n(16853);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},51808:(e,t,n)=>{var r=n(16853);e.exports=function(e,t,n,a){return a="function"==typeof a?a:void 0,null==e?e:r(e,t,n,a)}},34509:(e,t,n)=>{var r=n(64906),a=n(31693),i=n(77627),o=n(7248),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])}));e.exports=s},64375:e=>{e.exports=function(){return[]}},6730:e=>{e.exports=function(){return!1}},39670:(e,t,n)=>{var r=n(63250),a=1/0;e.exports=function(e){return e?(e=r(e))===a||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},22944:(e,t,n)=>{var r=n(39670);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},63250:(e,t,n)=>{var r=n(53266),a=n(33776),i=n(94135),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},50618:(e,t,n)=>{var r=n(50733);e.exports=function(e){return null==e?"":r(e)}},17760:(e,t,n)=>{var r=n(22466);e.exports=function(e){return e&&e.length?r(e):[]}},41120:(e,t,n)=>{var r=n(87552)("toUpperCase");e.exports=r},88263:(e,t,n)=>{var r=n(49843),a=n(16135),i=n(50618),o=n(79855);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?a(e)?o(e):r(e):e.match(t)||[]}},25141:(e,t,n)=>{var r=n(91248),a=n(6174);e.exports=function(e,t){return a(e||[],t||[],r)}},15418:(e,t,n)=>{"use strict";var r=n(29749),a=n(41310);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n
";let y=!1;switch(r){case a.EMPTY:f+=x;case a.NOMATCH:case a.ACTIVE:l=i,u=0,d=i,p=n.length-d;break;case a.MATCH:l=i,u=o,d=i+u,p=n.length-d;break;default:throw new Error("unrecognized state")}return h=w,u>c?(u=c,h=E,p=0):u+p>c&&(h=E,p=c-u),u>0&&(f+=s,f+=S(e,n,l,u,y),f+=g,y=!0),p>0&&(f+=m,f+=S(e,n,d,p,y),f+=g),f+h},T=function(n){if(null===g)return"";let i,u,d,p,f,h,b="";return b+="(a)(b)(c)(d)(e)(f)",b+="operatorphrase\n",r.forEach((r=>{const v=l[r];switch(i=v.thisLine,u=void 0!==v.thatLine?v.thatLine:"--",d=!1,p=!1,f=!1,v.lookAround===a.LOOKAROUND_AHEAD&&(d=!0,f=!0,h=v.lookAnchor),v.opcode.type!==a.AND&&v.opcode.type!==a.NOT||(d=!0,f=!0,h=v.phraseIndex),v.lookAround===a.LOOKAROUND_BEHIND&&(p=!0,f=!0,h=v.lookAnchor),v.opcode.type!==a.BKA&&v.opcode.type!==a.BKN||(p=!0,f=!0,h=v.phraseIndex),b+="",b+="".concat(i,"").concat(u,""),b+="".concat(v.phraseIndex,""),b+="".concat(v.phraseLength,""),b+="".concat(v.depth,""),b+="",v.state){case a.ACTIVE:b+='↓ ');break;case a.MATCH:b+='↑M');break;case a.NOMATCH:b+='↑N');break;case a.EMPTY:b+='↑E');break;default:b+='--')}if(b+="",b+="",b+=o.indent(v.depth),d?b+=''):p&&(b+='')),b+=e.opcodeToString(v.opcode.type),v.opcode.type===a.RNM&&(b+="(".concat(g[v.opcode.index].name,") ")),v.opcode.type===a.BKR){const e=v.opcode.bkrCase===a.BKR_MODE_CI?"%i":"%s",t=v.opcode.bkrMode===a.BKR_MODE_UM?"%u":"%p";b+="(\\".concat(e).concat(t).concat(g[v.opcode.index].name,") ")}v.opcode.type===a.UDT&&(b+="(".concat(y[v.opcode.index].name,") ")),v.opcode.type===a.TRG&&(b+="(".concat(function(e,t){let n="";if(t.type===a.TRG)if(e===s||32===e){let r=t.min.toString(16).toUpperCase();r.length%2!==0&&(r="0".concat(r)),n+=e===s?"%x":"U+",n+=r,r=t.max.toString(16).toUpperCase(),r.length%2!==0&&(r="0".concat(r)),n+="–".concat(r)}else n="%d".concat(t.min.toString(10),"–").concat(t.max.toString(10));return n}(n,v.opcode),") ")),v.opcode.type===a.TBS&&(b+="(".concat(function(e,t){let n="";if(t.type===a.TBS){const r=Math.min(t.string.length,10);if(e===s||32===e){n+=e===s?"%x":"U+";for(let e=0;e0&&(n+="."),r=t.string[e].toString(16).toUpperCase(),r.length%2!==0&&(r="0".concat(r)),n+=r}}else{n="%d";for(let e=0;e0&&(n+="."),n+=t.string[e].toString(10)}r0&&(r+="."),i=n.string[t],i>=97&&i<=122?(e=i-32,r+="".concat(e.toString(o),"/").concat(i.toString(o)).toUpperCase()):i>=65&&i<=90?(e=i,i+=32,r+="".concat(e.toString(o),"/").concat(i.toString(o)).toUpperCase()):r+=i.toString(o).toUpperCase();a'),g=''),y="";let b=!1;switch(r){case a.EMPTY:f+=x;case a.NOMATCH:case a.MATCH:case a.ACTIVE:l=i-o,u=s-l,d=s,p=n.length-d;break;default:throw new Error("unrecognized state")}return h=w,u>c?(u=c,h=E,p=0):u+p>c&&(h=E,p=c-u),u>0&&(f+=m,f+=S(e,n,l,u,b),f+=y,b=!0),p>0&&(f+=g,f+=S(e,n,d,p,b),f+=y),f+h}(n,m,v.state,v.phraseIndex,v.phraseLength,h):d?function(e,n,r,a,i){const o='');return C(e,n,r,a,i,o)}(n,m,v.state,v.phraseIndex,v.phraseLength):function(e,n,r,a,i){const o='');return C(e,n,r,a,i,o)}(n,m,v.state,v.phraseIndex,v.phraseLength),b+="\n"})),b+="(a)(b)(c)(d)(e)(f)",b+="operatorphrase\n",b+="\n",b};this.toHtml=function(e,n){let r=8;if("string"===typeof e&&e.length>=3){const t=e.toLowerCase().slice(0,3);"hex"===t?r=s:"dec"===t?r=10:"uni"===t&&(r=32)}let a="";return a+=function(e,n){let r;switch(e){case s:r="hexadecimal";break;case 10:r="decimal";break;case 8:r="ASCII";break;case 32:r="UNICODE";break;default:throw new Error("".concat(i,"htmlHeader: unrecognized mode: ").concat(e))}let a="";return a+="

display mode: ".concat(r,"

\n"),a+='\n'),"string"===typeof n&&(a+="")),a}(r,n),a+=T(r),a+=function(){let e="";return e+="
".concat(n,"
\n",e+='

legend:
\n'),e+="(a) - line number
\n",e+="(b) - matching line number
\n",e+="(c) - phrase offset
\n",e+="(d) - phrase length
\n",e+="(e) - tree depth
\n",e+="(f) - operator state
\n",e+='    -   phrase opened
\n'),e+='    - ↑M phrase matched
\n'),e+='    - ↑E empty phrase matched
\n'),e+='    - ↑N phrase not matched
\n'),e+="operator - ALT, CAT, REP, RNM, TRG, TLS, TBS, UDT, AND, NOT, BKA, BKN, BKR, ABG, AEN
\n",e+="phrase   - up to ".concat(c," characters of the phrase being matched
\n"),e+='         - matched characters
\n'),e+='         - matched characters in look ahead mode
\n'),e+='         - matched characters in look behind mode
\n'),e+='         - remainder characters(not yet examined by parser)
\n'),e+='         - control characters, TAB, LF, CR, etc. (ASCII mode only)
\n'),e+="         - ".concat(x," empty string
\n"),e+="         - ".concat(w," end of input string
\n"),e+="         - ".concat(E," input string display truncated
\n"),e+="

\n",e+='

\n'),e+="original ABNF operators:
\n",e+="ALT - alternation
\n",e+="CAT - concatenation
\n",e+="REP - repetition
\n",e+="RNM - rule name
\n",e+="TRG - terminal range
\n",e+="TLS - terminal literal string (case insensitive)
\n",e+="TBS - terminal binary string (case sensitive)
\n",e+="
\n",e+="super set SABNF operators:
\n",e+="UDT - user-defined terminal
\n",e+="AND - positive look ahead
\n",e+="NOT - negative look ahead
\n",e+="BKA - positive look behind
\n",e+="BKN - negative look behind
\n",e+="BKR - back reference
\n",e+="ABG - anchor - begin of input string
\n",e+="AEN - anchor - end of input string
\n",e+="

\n",e}(),a}}},88764:(e,t,n)=>{const r=n(79350),a=n(21711),i=n(43378),o=n(7856),s="utilities.js: ",c=function(e,t,n){let r,a=t;for(;;){if(e<=0){a=0,r=0;break}if("number"!==typeof a){a=0,r=e;break}if(a>=e){a=e,r=e;break}if("number"!==typeof n){r=e;break}if(r=a+n,r>e){r=e;break}break}return{beg:a,end:r}};t.htmlToPage=function(e,t){let n;if("string"!==typeof e)throw new Error("".concat(s,"htmlToPage: input HTML is not a string"));n="string"!==typeof t?"htmlToPage":t;let r="";return r+="\n",r+='\n',r+="\n",r+='\n',r+="".concat(n,"\n"),r+="\n",r+="\n\n",r+="

".concat(new Date,"

\n"),r+=e,r+="\n\n",r},t.parserResultToHtml=function(e,t){let n,a,i=null;"string"===typeof t&&""!==t&&(i=t),n=!0===e.success?'true'):'false'),a=e.state===o.EMPTY?'EMPTY'):e.state===o.MATCH?'MATCH'):e.state===o.NOMATCH?'NOMATCH'):'unrecognized');let s="";return s+='\n'),i&&(s+="\n")),s+="\n",s+="\n"),s+='\n",s+="\n"),s+='\n'),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="\n"),s+="
".concat(i,"
state itemvaluedescription
parser success".concat(n,"true if the parse succeeded,\n'),s+=' false otherwise'),s+="
NOTE: for success, entire string must be matched
parser state".concat(a,"EMPTY, '),s+='MATCH or \n'),s+='NOMATCH
string length".concat(e.length,"length of the input (sub)string
matched length".concat(e.matched,"number of input string characters matched
max matched".concat(e.maxMatched,"maximum number of input string characters matched
max tree depth".concat(e.maxTreeDepth,"maximum depth of the parse tree reached
node hits".concat(e.nodeHits,"number of parse tree node hits (opcode function calls)
input length".concat(e.inputLength,"length of full input string
sub-string begin".concat(e.subBegin,"sub-string first character index
sub-string end".concat(e.subEnd,"sub-string end-of-string index
sub-string length".concat(e.subLength,"sub-string length
\n",s},t.charsToString=function(e,t,n){let r,i;if("number"===typeof t){if(t>=e.length)return"";r=t<0?0:t}else r=0;if("number"===typeof n){if(n<=0)return"";i=n>e.length-r?e.length:r+n}else i=e.length;return ra.beg){r+=e[a.beg];for(let t=a.beg+1;ti.beg){a+="\\x".concat(t.charToHex(e[i.beg]));for(let n=i.beg+1;na.beg)for(let i=a.beg;ii.beg)for(let s=i.beg;s=55296&&o<=57343||o>1114111?" U+".concat(t.charToHex(e[s])):"&#".concat(e[s],";");var o;return a},t.charsToJsUnicode=function(e,n,r){let a="";if(!Array.isArray(e))throw new Error("".concat(s,"charsToJsUnicode: input must be an array of integers"));const i=c(e.length,n,r);if(i.end>i.beg){a+="\\u".concat(t.charToHex(e[i.beg]));for(let n=i.beg+1;n=32&&n<=126?String.fromCharCode(n):"\\x".concat(t.charToHex(n))}return a},t.charsToAsciiHtml=function(e,n,a){if(!Array.isArray(e))throw new Error("".concat(s,"charsToAsciiHtml: input must be an array of integers"));let i,o="";const l=c(e.length,n,a);for(let s=l.beg;s').concat(t.asciiChars[i],"
"):i>127?'U+').concat(t.charToHex(i),""):t.asciiChars[i];return o},t.stringToAsciiHtml=function(e){const t=a.decode("STRING",e);return this.charsToAsciiHtml(t)}},98811:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),o=i[0],c=i[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,c)),u=0,d=c>0?o-4:o;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,l=r-a;sl?l:s+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var a,i,o=[],s=t;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},96554:function(e,t,n){var r;!function(a){"use strict";var i,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,l="[BigNumber Error] ",u=l+"Number primitive has more than 15 significant digits: ",d=1e14,p=14,f=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,g=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,n,r=1,a=e.length,i=e[0]+"";rl^n?1:-1;for(s=(c=a.length)<(l=i.length)?c:l,o=0;oi[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function w(e,t,n,r){if(en||e!==c(e))throw Error(l+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function E(e){var t=e.c.length-1;return y(e.e/p)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function k(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tO?y.c=y.e=null:e.e=10;d/=10,l++);return void(l>O?y.c=y.e=null:(y.e=l,y.c=[e]))}g=String(e)}else{if(!o.test(g=String(e)))return a(y,g,h);y.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(l=g.indexOf("."))>-1&&(g=g.replace(".","")),(d=g.search(/e/i))>0?(l<0&&(l=d),l+=+g.slice(d+1),g=g.substring(0,d)):l<0&&(l=g.length)}else{if(w(t,2,B.length,"Base"),10==t&&M)return z(y=new F(e),S+y.e+1,C);if(g=String(e),h="number"==typeof e){if(0*e!=0)return a(y,g,h,t);if(y.s=1/e<0?(g=g.slice(1),-1):1,F.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(u+e)}else y.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=B.slice(0,t),l=d=0,m=g.length;dl){l=m;continue}}else if(!s&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){s=!0,d=-1,l=0;continue}return a(y,String(e),h,t)}h=!1,(l=(g=r(g,t,10,y.s)).indexOf("."))>-1?g=g.replace(".",""):l=g.length}for(d=0;48===g.charCodeAt(d);d++);for(m=g.length;48===g.charCodeAt(--m););if(g=g.slice(d,++m)){if(m-=d,h&&F.DEBUG&&m>15&&(e>f||e!==c(e)))throw Error(u+y.s*e);if((l=l-d-1)>O)y.c=y.e=null;else if(l=_)?x(c,o):k(c,o,"0");else if(i=(e=z(new F(e),t,n)).e,s=(c=b(e.c)).length,1==r||2==r&&(t<=i||i<=T)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function D(e,t){for(var n,r,a=1,i=new F(e[0]);a=10;a/=10,r++);return(n=r+n*p-1)>O?e.c=e.e=null:n=10;l/=10,a++);if((i=t-a)<0)i+=p,o=t,u=g[f=0],m=c(u/y[a-o-1]%10);else if((f=s((i+1)/p))>=g.length){if(!r)break e;for(;g.length<=f;g.push(0));u=m=0,a=1,o=(i%=p)-p+1}else{for(u=l=g[f],a=1;l>=10;l/=10,a++);m=(o=(i%=p)-p+a)<0?0:c(u/y[a-o-1]%10)}if(r=r||t<0||null!=g[f+1]||(o<0?u:u%y[a-o-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(i>0?o>0?u/y[a-o]:0:g[f-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=y[(p-t%p)%p],e.e=-t||0):g[0]=e.e=0,e;if(0==i?(g.length=f,l=1,f--):(g.length=f+1,l=y[p-i],g[f]=o>0?c(u/y[a-o]%y[o])*l:0),r)for(;;){if(0==f){for(i=1,o=g[0];o>=10;o/=10,i++);for(o=g[0]+=l,l=1;o>=10;o/=10,l++);i!=l&&(e.e++,g[0]==d&&(g[0]=1));break}if(g[f]+=l,g[f]!=d)break;g[f--]=0,l=1}for(i=g.length;0===g[--i];g.pop());}e.e>O?e.c=e.e=null:e.e=_?x(t,n):k(t,n,"0"),e.s<0?"-"+t:t)}return F.clone=e,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.EUCLID=9,F.config=F.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(n=e[t],0,g,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(w(n[0],-g,0,t),w(n[1],0,g,t),T=n[0],_=n[1]):(w(n,-g,g,t),T=-(_=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)w(n[0],-g,-1,t),w(n[1],1,g,t),A=n[0],O=n[1];else{if(w(n,-g,g,t),!n)throw Error(l+t+" cannot be zero: "+n);A=-(O=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(l+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw I=!n,Error(l+"crypto unavailable");I=n}else I=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(n=e[t],0,9,t),j=n),e.hasOwnProperty(t="POW_PRECISION")&&(w(n=e[t],0,g,t),N=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(l+t+" not an object: "+n);R=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(l+t+" invalid: "+n);M="0123456789"==n.slice(0,10),B=n}}return{DECIMAL_PLACES:S,ROUNDING_MODE:C,EXPONENTIAL_AT:[T,_],RANGE:[A,O],CRYPTO:I,MODULO_MODE:j,POW_PRECISION:N,FORMAT:R,ALPHABET:B}},F.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!F.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-g&&a<=g&&a===c(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%p)<1&&(t+=p),String(r[0]).length==t){for(t=0;t=d||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(l+"Invalid BigNumber: "+e)},F.maximum=F.max=function(){return D(arguments,-1)},F.minimum=F.min=function(){return D(arguments,1)},F.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return c(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,a,i,o,u=0,d=[],f=new F(P);if(null==e?e=S:w(e,0,g),i=s(e/p),I)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(i*=2));u>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[u]=r[0],n[u+1]=r[1]):(d.push(o%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw I=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(i*=7);u=9e15?crypto.randomBytes(7).copy(n,u):(d.push(o%1e14),u+=7);u=i/7}if(!I)for(;u=10;o/=10,u++);un-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,l,u,d,p,f,h,m,g=r.indexOf("."),y=S,v=C;for(g>=0&&(d=N,N=0,r=r.replace(".",""),f=(m=new F(a)).pow(r.length-g),N=d,m.c=t(k(b(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=d=(h=t(r,a,i,s?(c=B,e):(c=e,B))).length;0==h[--d];h.pop());if(!h[0])return c.charAt(0);if(g<0?--u:(f.c=h,f.e=u,f.s=o,h=(f=n(f,m,y,v,i)).c,p=f.r,u=f.e),g=h[l=u+y+1],d=i/2,p=p||l<0||null!=h[l+1],p=v<4?(null!=g||p)&&(0==v||v==(f.s<0?3:2)):g>d||g==d&&(4==v||p||6==v&&1&h[l-1]||v==(f.s<0?8:7)),l<1||!h[0])r=p?k(c.charAt(1),-y,c.charAt(0)):c.charAt(0);else{if(h.length=l,p)for(--i;++h[--l]>i;)h[l]=0,l||(++u,h=[1].concat(h));for(d=h.length;!h[--d];);for(g=0,r="";g<=d;r+=c.charAt(h[g++]));r=k(r,u,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,l=t%m,u=t/m|0;for(e=e.slice();c--;)s=((a=l*(i=e[c]%m)+(r=u*i+(o=e[c]/m|0)*l)%m*m+s)/n|0)+(r/m|0)+u*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var l,u,f,h,m,g,b,v,w,E,x,k,P,S,C,T,_,A=r.s==a.s?1:-1,O=r.c,I=a.c;if(!O||!O[0]||!I||!I[0])return new F(r.s&&a.s&&(O?!I||O[0]!=I[0]:I)?O&&0==O[0]||!I?0*A:A/0:NaN);for(w=(v=new F(A)).c=[],A=i+(u=r.e-a.e)+1,s||(s=d,u=y(r.e/p)-y(a.e/p),A=A/p|0),f=0;I[f]==(O[f]||0);f++);if(I[f]>(O[f]||0)&&u--,A<0)w.push(1),h=!0;else{for(S=O.length,T=I.length,f=0,A+=2,(m=c(s/(I[0]+1)))>1&&(I=e(I,m,s),O=e(O,m,s),T=I.length,S=O.length),P=T,x=(E=O.slice(0,T)).length;x=s/2&&C++;do{if(m=0,(l=t(I,E,T,x))<0){if(k=E[0],T!=x&&(k=k*s+(E[1]||0)),(m=c(k/C))>1)for(m>=s&&(m=s-1),b=(g=e(I,m,s)).length,x=E.length;1==t(g,E,b,x);)m--,n(g,T=10;A/=10,f++);z(v,i+(v.e=f+u*p-1)+1,o,h)}else v.e=u,v.r=+h;return v}}(),a=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,a=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(i,o,s,c){var u,d=s?o:o.replace(a,"");if(r.test(d))i.s=isNaN(d)?null:d<0?-1:1;else{if(!s&&(d=d.replace(e,(function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=u?e:t})),c&&(u=c,d=d.replace(t,"$1").replace(n,"0.$1")),o!=d))return new F(d,u);if(F.DEBUG)throw Error(l+"Not a"+(c?" base "+c:"")+" number: "+o);i.s=null}i.c=i.e=null}}(),i.absoluteValue=i.abs=function(){var e=new F(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return v(this,new F(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,a,i=this;if(null!=e)return w(e,0,g),null==t?t=C:w(t,0,8),z(new F(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-y(this.e/p))*p,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,t){return n(this,new F(e,t),S,C)},i.dividedToIntegerBy=i.idiv=function(e,t){return n(this,new F(e,t),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,a,i,o,u,d,f,h=this;if((e=new F(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+q(e));if(null!=t&&(t=new F(t)),o=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return f=new F(Math.pow(+q(h),o?e.s*(2-E(e)):+q(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new F(NaN);(r=!u&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||o&&h.c[1]>=24e7:h.c[0]<8e13||o&&h.c[0]<=9999975e7)))return i=h.s<0&&E(e)?-0:0,h.e>-1&&(i=1/i),new F(u?1/i:i);N&&(i=s(N/p+2))}for(o?(n=new F(.5),u&&(e.s=1),d=E(e)):d=(a=Math.abs(+q(e)))%2,f=new F(P);;){if(d){if(!(f=f.times(h)).c)break;i?f.c.length>i&&(f.c.length=i):r&&(f=f.mod(t))}if(a){if(0===(a=c(a/2)))break;d=a%2}else if(z(e=e.times(n),e.e+1,1),e.e>14)d=E(e);else{if(0===(a=+q(e)))break;d=a%2}h=h.times(h),i?h.c&&h.c.length>i&&(h.c.length=i):r&&(h=h.mod(t))}return r?f:(u&&(f=P.div(f)),t?f.mod(t):i?z(f,N,C,undefined):f)},i.integerValue=function(e){var t=new F(this);return null==e?e=C:w(e,0,8),z(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===v(this,new F(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return v(this,new F(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=v(this,new F(e,t)))||0===t},i.isInteger=function(){return!!this.c&&y(this.e/p)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return v(this,new F(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return-1===(t=v(this,new F(e,t)))||0===t},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new F(e,t)).s,!s||!t)return new F(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/p,l=e.e/p,u=o.c,f=e.c;if(!c||!l){if(!u||!f)return u?(e.s=-t,e):new F(f?o:NaN);if(!u[0]||!f[0])return f[0]?(e.s=-t,e):new F(u[0]?o:3==C?-0:0)}if(c=y(c),l=y(l),u=u.slice(),s=c-l){for((i=s<0)?(s=-s,a=u):(l=c,a=f),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=u.length)<(t=f.length))?s:t,s=t=0;t0)for(;t--;u[n++]=0);for(t=d-1;r>s;){if(u[--r]=0;){for(n=0,h=k[a]%w,g=k[a]/w|0,i=a+(o=c);i>a;)n=((l=h*(l=x[--o]%w)+(s=g*l+(u=x[o]/w|0)*h)%w*w+b[i]+n)/v|0)+(s/w|0)+g*u,b[i--]=l%v;b[i]=n}return n?++r:b.splice(0,1),U(e,b,r)},i.negated=function(){var e=new F(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new F(e,t)).s,!a||!t)return new F(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/p,o=e.e/p,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new F(a/0);if(!s[0]||!c[0])return c[0]?e:new F(s[0]?r:0*a)}if(i=y(i),o=y(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/d|0,s[t]=d===s[t]?0:s[t]%d;return a&&(s=[a].concat(s),++o),U(e,s,o)},i.precision=i.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return w(e,1,g),null==t?t=C:w(t,0,8),z(new F(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*p+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},i.shiftedBy=function(e){return w(e,-9007199254740991,f),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,l=o.e,u=S+4,d=new F("0.5");if(1!==c||!s||!s[0])return new F(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+q(o)))||c==1/0?(((t=b(s)).length+l)%2==0&&(t+="0"),c=Math.sqrt(+t),l=y((l+1)/2)-(l<0||l%2),r=new F(t=c==1/0?"5e"+l:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+l)):r=new F(c+""),r.c[0])for((c=(l=r.e)+u)<3&&(c=0);;)if(i=r,r=d.times(i.plus(n(o,i,u,1))),b(i.c).slice(0,c)===(t=b(r.c)).slice(0,c)){if(r.e0&&m>0){for(i=m%s||s,d=h.substr(0,i);i0&&(d+=u+h.slice(i)),f&&(d="-"+d)}r=p?d+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?p.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):p):d}return(n.prefix||"")+r+(n.suffix||"")},i.toFraction=function(e){var t,r,a,i,o,s,c,u,d,f,m,g,y=this,v=y.c;if(null!=e&&(!(c=new F(e)).isInteger()&&(c.c||1!==c.s)||c.lt(P)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+q(c));if(!v)return new F(y);for(t=new F(P),d=r=new F(P),a=u=new F(P),g=b(v),o=t.e=g.length-y.e-1,t.c[0]=h[(s=o%p)<0?p+s:s],e=!e||c.comparedTo(t)>0?o>0?t:d:c,s=O,O=1/0,c=new F(g),u.c[0]=0;f=n(c,t,0,1),1!=(i=r.plus(f.times(a))).comparedTo(e);)r=a,a=i,d=u.plus(f.times(i=d)),u=i,t=c.minus(f.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),u=u.plus(i.times(d)),r=r.plus(i.times(a)),u.s=d.s=y.s,m=n(d,a,o*=2,C).minus(y).abs().comparedTo(n(u,r,o,C).minus(y).abs())<1?[d,a]:[u,r],O=s,m},i.toNumber=function(){return+q(this)},i.toPrecision=function(e,t){return null!=e&&w(e,1,g),L(this,e,t,2)},i.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=T||i>=_?x(b(n.c),i):k(b(n.c),i,"0"):10===e&&M?t=k(b((n=z(new F(n),S+i+1,C)).c),n.e,"0"):(w(e,2,B.length,"Base"),t=r(k(b(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return q(this)},i._isBigNumber=!0,null!=t&&F.set(t),F}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},38173:(e,t,n)=>{"use strict";const r=n(98811),a=n(96202),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const a=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||J(e.length)?s(0):p(e);if("Buffer"===e.type&&Array.isArray(e.data))return p(e.data)}(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(a)return r?-1:K(e).length;t=(""+t).toLowerCase(),a=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return _(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,a){let i,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let r=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;ra&&(r=a):r=a;const i=t.length;let o;for(r>i/2&&(r=i/2),o=0;o>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let a=t;for(;a239?4:t>223?3:t>191?2:1;if(a+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(i=t);break;case 2:n=e[a+1],128===(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[a+1],r=e[a+2],128===(192&n)&&128===(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[a+1],r=e[a+2],s=e[a+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=o}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,a)}a+=t.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,a){if(Y(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const s=Math.min(i,o),l=this.slice(r,a),u=e.slice(t,n);for(let c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function _(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;ar)&&(n=r);let a="";for(let i=t;in)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,a,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r,a){q(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,a){q(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function M(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return t=+t,n>>>=0,i||M(e,0,n,8),a.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(a)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],a=1,i=0;for(;++i=a&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,a=1,i=this[e+--r];for(;r>0&&(a*=256);)i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||j(e,4,this.length),a.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),a.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),a.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let a=0,i=1,o=0;for(this[t]=255&e;++a>0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let a=n-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X((function(e){return R(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function q(e,t,n,r,a,i){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(r," and < 2").concat(r," ** ").concat(8*(i+1)).concat(r):">= -(2".concat(r," ** ").concat(8*(i+1)-1).concat(r,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(r):">= ".concat(t).concat(r," and <= ").concat(n).concat(r),new D.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,a,i)}function W(e,t){if("number"!==typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new D.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,n){let r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=z(String(n)):"bigint"===typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=z(a)),a+="n"),r+=" It must be ".concat(t,". Received ").concat(a),r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function K(e,t){let n;t=t||1/0;const r=e.length;let a=null;const i=[];for(let o=0;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Z(e,t,n,r){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!==e}const $=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t}();function X(e){return"undefined"===typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},19557:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function a(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r{"use strict";n.d(t,{qY:()=>f});var r=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a{"use strict";var t={single_source_shortest_paths:function(e,n,r){var a={},i={};i[n]=0;var o,s,c,l,u,d,p,f=t.PriorityQueue.make();for(f.push(n,0);!f.empty();)for(c in s=(o=f.pop()).value,l=o.cost,u=e[s]||{})u.hasOwnProperty(c)&&(d=l+u[c],p=i[c],("undefined"===typeof i[c]||p>d)&&(i[c]=d,f.push(c,d),a[c]=s));if("undefined"!==typeof r&&"undefined"===typeof i[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},40967:e=>{"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&a<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(a=1024*(a-55296)+i-56320+65536,r+=1)}a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<55296||a>=57344&&a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a>=65536&&a<=1114111?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},79638:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>E,__asyncGenerator:()=>w,__asyncValues:()=>x,__await:()=>v,__awaiter:()=>u,__classPrivateFieldGet:()=>T,__classPrivateFieldIn:()=>A,__classPrivateFieldSet:()=>_,__createBinding:()=>p,__decorate:()=>s,__exportStar:()=>f,__extends:()=>a,__generator:()=>d,__importDefault:()=>C,__importStar:()=>S,__makeTemplateObject:()=>k,__metadata:()=>l,__param:()=>c,__read:()=>m,__rest:()=>o,__spread:()=>g,__spreadArray:()=>b,__spreadArrays:()=>y,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,l):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return P(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function _(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}function A(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},39033:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function a(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",a),n([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&m(e,"error",t,n)}(e,a,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var a,i,o,l;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"===typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=c(e))>0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function p(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"===typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var l=c.length,u=h(c,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},90823:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),i=0;i'[missing "'.concat(t,'" value]'),nullPlaceholder:(e,t,n,r)=>e.missingPlaceholder(e,t,n,r),transformKey:e=>e};t.I18n=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._locale=f.locale,this._defaultLocale=f.defaultLocale,this._version=0,this.onChangeHandlers=[],this.translations={},this.availableLocales=[],this.t=this.translate,this.p=this.pluralize,this.l=this.localize,this.distanceOfTimeInWords=this.timeAgoInWords;const{locale:n,enableFallback:r,missingBehavior:a,missingTranslationPrefix:i,missingPlaceholder:o,nullPlaceholder:s,defaultLocale:c,defaultSeparator:h,placeholder:m,transformKey:g}=Object.assign(Object.assign({},f),t);this.locale=n,this.defaultLocale=c,this.defaultSeparator=h,this.enableFallback=r,this.locale=n,this.missingBehavior=a,this.missingTranslationPrefix=i,this.missingPlaceholder=o,this.nullPlaceholder=s,this.placeholder=m,this.pluralization=new u.Pluralization(this),this.locales=new l.Locales(this),this.missingTranslation=new d.MissingTranslation(this),this.transformKey=g,this.interpolate=p.interpolate,this.store(e)}store(e){(0,p.propertyFlatList)(e).forEach((t=>(0,c.default)(this.translations,t,(0,i.default)(e,t),Object))),this.hasChanged()}get locale(){return this._locale||this.defaultLocale||"en"}set locale(e){if("string"!==typeof e)throw new Error("Expected newLocale to be a string; got ".concat((0,p.inferType)(e)));const t=this._locale!==e;this._locale=e,t&&this.hasChanged()}get defaultLocale(){return this._defaultLocale||"en"}set defaultLocale(e){if("string"!==typeof e)throw new Error("Expected newLocale to be a string; got ".concat((0,p.inferType)(e)));const t=this._defaultLocale!==e;this._defaultLocale=e,t&&this.hasChanged()}translate(e,t){t=Object.assign({},t);let n;return(0,p.createTranslationOptions)(this,e,t).some((e=>((0,p.isSet)(e.scope)?n=(0,p.lookup)(this,e.scope,t):(0,p.isSet)(e.message)&&(n=e.message),void 0!==n&&null!==n)))?("string"===typeof n?n=this.interpolate(this,n,t):"object"===typeof n&&n&&(0,p.isSet)(t.count)&&(n=(0,p.pluralize)({i18n:this,count:t.count||0,scope:n,options:t,baseScope:(0,p.getFullScope)(this,e,t)})),t&&n instanceof Array&&(n=n.map((e=>"string"===typeof e?(0,p.interpolate)(this,e,t):e))),n):this.missingTranslation.get(e,t)}pluralize(e,t,n){return(0,p.pluralize)({i18n:this,count:e,scope:t,options:Object.assign({},n),baseScope:(0,p.getFullScope)(this,t,null!==n&&void 0!==n?n:{})})}localize(e,t,n){if(n=Object.assign({},n),void 0===t||null===t)return"";switch(e){case"currency":return this.numberToCurrency(t);case"number":return(0,p.formatNumber)(t,Object.assign({delimiter:",",precision:3,separator:".",significant:!1,stripInsignificantZeros:!1},(0,p.lookup)(this,"number.format")));case"percentage":return this.numberToPercentage(t);default:{let r;return r=e.match(/^(date|time)/)?this.toTime(e,t):t.toString(),(0,p.interpolate)(this,r,n)}}}toTime(e,t){const n=(0,p.parseDate)(t),r=(0,p.lookup)(this,e);return n.toString().match(/invalid/i)?n.toString():r?this.strftime(n,r):n.toString()}numberToCurrency(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,stripInsignificantZeros:!1,unit:"$"},(0,p.camelCaseKeys)(this.get("number.format"))),(0,p.camelCaseKeys)(this.get("number.currency.format"))),t))}numberToPercentage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.formatNumber)(e,Object.assign(Object.assign(Object.assign({delimiter:"",format:"%n%",precision:3,stripInsignificantZeros:!1,separator:".",significant:!1},(0,p.camelCaseKeys)(this.get("number.format"))),(0,p.camelCaseKeys)(this.get("number.percentage.format"))),t))}numberToHumanSize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.numberToHumanSize)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",precision:3,significant:!0,stripInsignificantZeros:!0,units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,p.camelCaseKeys)(this.get("number.human.format"))),(0,p.camelCaseKeys)(this.get("number.human.storage_units"))),t))}numberToHuman(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.numberToHuman)(this,e,Object.assign(Object.assign(Object.assign({delimiter:"",separator:".",precision:3,significant:!0,stripInsignificantZeros:!0,format:"%n %u",roundMode:"default",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},(0,p.camelCaseKeys)(this.get("number.human.format"))),(0,p.camelCaseKeys)(this.get("number.human.decimal_units"))),t))}numberToRounded(e,t){return(0,p.formatNumber)(e,Object.assign({unit:"",precision:3,significant:!1,separator:".",delimiter:"",stripInsignificantZeros:!1},t))}numberToDelimited(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.numberToDelimited)(e,Object.assign({delimiterPattern:/(\d)(?=(\d\d\d)+(?!\d))/g,delimiter:",",separator:"."},t))}withLocale(e,t){return r(this,void 0,void 0,(function*(){const n=this.locale;try{this.locale=e,yield t()}finally{this.locale=n}}))}strftime(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,p.strftime)(e,t,Object.assign(Object.assign(Object.assign({},(0,p.camelCaseKeys)((0,p.lookup)(this,"date"))),{meridian:{am:(0,p.lookup)(this,"time.am")||"AM",pm:(0,p.lookup)(this,"time.pm")||"PM"}}),n))}update(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!1};if(n.strict&&!(0,o.default)(this.translations,e))throw new Error('The path "'.concat(e,'" is not currently defined'));const r=(0,i.default)(this.translations,e),a=(0,p.inferType)(r),c=(0,p.inferType)(t);if(n.strict&&a!==c)throw new Error('The current type for "'.concat(e,'" is "').concat(a,'", but you\'re trying to override it with "').concat(c,'"'));let l;l="object"===c?Object.assign(Object.assign({},r),t):t,(0,s.default)(this.translations,e,l),this.hasChanged()}toSentence(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{wordsConnector:n,twoWordsConnector:r,lastWordConnector:a}=Object.assign(Object.assign({wordsConnector:", ",twoWordsConnector:" and ",lastWordConnector:", and "},(0,p.camelCaseKeys)((0,p.lookup)(this,"support.array"))),t),i=e.length;switch(i){case 0:return"";case 1:return"".concat(e[0]);case 2:return e.join(r);default:return[e.slice(0,i-1).join(n),a,e[i-1]].join("")}}timeAgoInWords(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,p.timeAgoInWords)(this,e,t,n)}onChange(e){return this.onChangeHandlers.push(e),()=>{this.onChangeHandlers.splice(this.onChangeHandlers.indexOf(e),1)}}get version(){return this._version}formatNumber(e,t){return(0,p.formatNumber)(e,t)}get(e){return(0,p.lookup)(this,e)}runCallbacks(){this.onChangeHandlers.forEach((e=>e(this)))}hasChanged(){this._version+=1,this.runCallbacks()}}},78247:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Locales=t.defaultLocaleResolver=void 0;const a=r(n(17760));t.defaultLocaleResolver=(e,t)=>{const n=[],r=[];return n.push(t),t||n.push(e.locale),e.enableFallback&&n.push(e.defaultLocale),n.filter(Boolean).map((e=>e.toString())).forEach((function(t){if(r.includes(t)||r.push(t),!e.enableFallback)return;const n=t.split("-");3===n.length&&r.push("".concat(n[0],"-").concat(n[1])),r.push(n[0])})),(0,a.default)(r)};t.Locales=class{constructor(e){this.i18n=e,this.registry={},this.register("default",t.defaultLocaleResolver)}register(e,t){if("function"!==typeof t){const e=t;t=()=>e}this.registry[e]=t}get(e){let t=this.registry[e]||this.registry[this.i18n.locale]||this.registry.default;return"function"===typeof t&&(t=t(this.i18n,e)),t instanceof Array||(t=[t]),t}}},48489:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingTranslation=t.errorStrategy=t.messageStrategy=t.guessStrategy=void 0;const r=n(82334);t.guessStrategy=function(e,t){t instanceof Array&&(t=t.join(e.defaultSeparator));const n=t.split(e.defaultSeparator).slice(-1)[0];return e.missingTranslationPrefix+n.replace("_"," ").replace(/([a-z])([A-Z])/g,((e,t,n)=>"".concat(t," ").concat(n.toLowerCase())))};t.messageStrategy=(e,t,n)=>{const a=(0,r.getFullScope)(e,t,n),i="locale"in n?n.locale:e.locale,o=(0,r.inferType)(i),s=["string"==o?i:o,a].join(e.defaultSeparator);return'[missing "'.concat(s,'" translation]')};t.errorStrategy=(e,t,n)=>{const a=(0,r.getFullScope)(e,t,n),i=[e.locale,a].join(e.defaultSeparator);throw new Error("Missing translation: ".concat(i))};t.MissingTranslation=class{constructor(e){this.i18n=e,this.registry={},this.register("guess",t.guessStrategy),this.register("message",t.messageStrategy),this.register("error",t.errorStrategy)}register(e,t){this.registry[e]=t}get(e,t){var n;return this.registry[null!==(n=t.missingBehavior)&&void 0!==n?n:this.i18n.missingBehavior](this.i18n,e,t)}}},98675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pluralization=t.defaultPluralizer=t.useMakePlural=void 0;const r=n(88019);function a(e){let{pluralizer:t,includeZero:n=!0,ordinal:r=!1}=e;return function(e,a){return[n&&0===a?"zero":"",t(a,r)].filter(Boolean)}}t.useMakePlural=a,t.defaultPluralizer=a({pluralizer:r.en,includeZero:!0});t.Pluralization=class{constructor(e){this.i18n=e,this.registry={},this.register("default",t.defaultPluralizer)}register(e,t){this.registry[e]=t}get(e){return this.registry[e]||this.registry[this.i18n.locale]||this.registry.default}}},64197:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.camelCaseKeys=void 0;const a=r(n(92322));t.camelCaseKeys=function(e){return e?Object.keys(e).reduce(((t,n)=>(t[(0,a.default)(n)]=e[n],t)),{}):{}}},13273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTranslationOptions=void 0;const r=n(50741);t.createTranslationOptions=function(e,t,n){let a=[{scope:t}];if((0,r.isSet)(n.defaults)&&(a=a.concat(n.defaults)),(0,r.isSet)(n.defaultValue)){const r="function"===typeof n.defaultValue?n.defaultValue(e,t,n):n.defaultValue;a.push({message:r}),delete n.defaultValue}return a}},31551:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.expandRoundMode=void 0;const a=r(n(96554));var i;!function(e){e[e.up=a.default.ROUND_UP]="up",e[e.down=a.default.ROUND_DOWN]="down",e[e.truncate=a.default.ROUND_DOWN]="truncate",e[e.halfUp=a.default.ROUND_HALF_UP]="halfUp",e[e.default=a.default.ROUND_HALF_UP]="default",e[e.halfDown=a.default.ROUND_HALF_DOWN]="halfDown",e[e.halfEven=a.default.ROUND_HALF_EVEN]="halfEven",e[e.banker=a.default.ROUND_HALF_EVEN]="banker",e[e.ceiling=a.default.ROUND_CEIL]="ceiling",e[e.ceil=a.default.ROUND_CEIL]="ceil",e[e.floor=a.default.ROUND_FLOOR]="floor"}(i||(i={})),t.expandRoundMode=function(e){var t;return null!==(t=i[e])&&void 0!==t?t:i.default}},77435:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatNumber=void 0;const a=r(n(96554)),i=r(n(19661)),o=n(43024);t.formatNumber=function(e,t){var n,r,s;const c=new a.default(e);if(t.raise&&!c.isFinite())throw new Error('"'.concat(e,'" is not a valid numeric value'));const l=(0,o.roundNumber)(c,t),u=new a.default(l),d=u.lt(0),p=u.isZero();let[f,h]=l.split(".");const m=[];let g;const y=null!==(n=t.format)&&void 0!==n?n:"%n",b=null!==(r=t.negativeFormat)&&void 0!==r?r:"-".concat(y),v=d&&!p?b:y;for(f=f.replace("-","");f.length>0;)m.unshift(f.substr(Math.max(0,f.length-3),3)),f=f.substr(0,f.length-3);return f=m.join(""),g=m.join(t.delimiter),h=t.significant?function(e){let{significand:t,whole:n,precision:r}=e;if("0"===n||null===r)return t;const a=Math.max(0,r-n.length);return(null!==t&&void 0!==t?t:"").substr(0,a)}({whole:f,significand:h,precision:t.precision}):null!==h&&void 0!==h?h:(0,i.default)("0",null!==(s=t.precision)&&void 0!==s?s:0),t.stripInsignificantZeros&&h&&(h=h.replace(/0+$/,"")),c.isNaN()&&(g=e.toString()),h&&c.isFinite()&&(g+=(t.separator||".")+h),function(e,t){let{formattedNumber:n,unit:r}=t;return e.replace("%n",n).replace("%u",r)}(v,{formattedNumber:g,unit:t.unit})}},44455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFullScope=void 0,t.getFullScope=function(e,t,n){let r="";return(t instanceof String||"string"===typeof t)&&(r=t),t instanceof Array&&(r=t.join(e.defaultSeparator)),n.scope&&(r=[n.scope,r].join(e.defaultSeparator)),r}},82334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeAgoInWords=t.strftime=t.roundNumber=t.propertyFlatList=t.pluralize=t.parseDate=t.numberToHumanSize=t.numberToHuman=t.numberToDelimited=t.lookup=t.isSet=t.interpolate=t.inferType=t.getFullScope=t.formatNumber=t.expandRoundMode=t.createTranslationOptions=t.camelCaseKeys=void 0;var r=n(64197);Object.defineProperty(t,"camelCaseKeys",{enumerable:!0,get:function(){return r.camelCaseKeys}});var a=n(13273);Object.defineProperty(t,"createTranslationOptions",{enumerable:!0,get:function(){return a.createTranslationOptions}});var i=n(31551);Object.defineProperty(t,"expandRoundMode",{enumerable:!0,get:function(){return i.expandRoundMode}});var o=n(77435);Object.defineProperty(t,"formatNumber",{enumerable:!0,get:function(){return o.formatNumber}});var s=n(44455);Object.defineProperty(t,"getFullScope",{enumerable:!0,get:function(){return s.getFullScope}});var c=n(87402);Object.defineProperty(t,"inferType",{enumerable:!0,get:function(){return c.inferType}});var l=n(1483);Object.defineProperty(t,"interpolate",{enumerable:!0,get:function(){return l.interpolate}});var u=n(50741);Object.defineProperty(t,"isSet",{enumerable:!0,get:function(){return u.isSet}});var d=n(64106);Object.defineProperty(t,"lookup",{enumerable:!0,get:function(){return d.lookup}});var p=n(96836);Object.defineProperty(t,"numberToDelimited",{enumerable:!0,get:function(){return p.numberToDelimited}});var f=n(11582);Object.defineProperty(t,"numberToHuman",{enumerable:!0,get:function(){return f.numberToHuman}});var h=n(37382);Object.defineProperty(t,"numberToHumanSize",{enumerable:!0,get:function(){return h.numberToHumanSize}});var m=n(98980);Object.defineProperty(t,"parseDate",{enumerable:!0,get:function(){return m.parseDate}});var g=n(60402);Object.defineProperty(t,"pluralize",{enumerable:!0,get:function(){return g.pluralize}});var y=n(25054);Object.defineProperty(t,"propertyFlatList",{enumerable:!0,get:function(){return y.propertyFlatList}});var b=n(43024);Object.defineProperty(t,"roundNumber",{enumerable:!0,get:function(){return b.roundNumber}});var v=n(1122);Object.defineProperty(t,"strftime",{enumerable:!0,get:function(){return v.strftime}});var w=n(70921);Object.defineProperty(t,"timeAgoInWords",{enumerable:!0,get:function(){return w.timeAgoInWords}})},87402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inferType=void 0,t.inferType=function(e){var t,n;if(null===e)return"null";const r=typeof e;return"object"!==r?r:(null===(n=null===(t=null===e||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.name)||void 0===n?void 0:n.toLowerCase())||"object"}},1483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interpolate=void 0;const r=n(50741);t.interpolate=function(e,t,n){n=Object.keys(n).reduce(((t,r)=>(t[e.transformKey(r)]=n[r],t)),{});const a=t.match(e.placeholder);if(!a)return t;for(;a.length;){let i;const o=a.shift(),s=o.replace(e.placeholder,"$1");i=(0,r.isSet)(n[s])?n[s].toString().replace(/\$/gm,"_#$#_"):s in n?e.nullPlaceholder(e,o,t,n):e.missingPlaceholder(e,o,t,n);const c=new RegExp(o.replace(/\{/gm,"\\{").replace(/\}/gm,"\\}"));t=t.replace(c,i)}return t.replace(/_#\$#_/g,"$")}},50741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSet=void 0,t.isSet=function(e){return void 0!==e&&null!==e}},64106:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lookup=void 0;const a=r(n(10428)),i=n(50741),o=n(44455),s=n(87402);t.lookup=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({},n);const r="locale"in n?n.locale:e.locale,c=(0,s.inferType)(r),l=e.locales.get("string"===c?r:typeof r).slice();t=(0,o.getFullScope)(e,t,n).split(e.defaultSeparator).map((t=>e.transformKey(t))).join(".");const u=l.map((n=>(0,a.default)(e.translations,[n,t].join("."))));return u.push(n.defaultValue),u.find((e=>(0,i.isSet)(e)))}},96836:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToDelimited=void 0;const a=r(n(96554));t.numberToDelimited=function(e,t){const n=new a.default(e);if(!n.isFinite())return e.toString();if(!t.delimiterPattern.global)throw new Error("options.delimiterPattern must be a global regular expression; received ".concat(t.delimiterPattern));let[r,i]=n.toString().split(".");return r=r.replace(t.delimiterPattern,(e=>"".concat(e).concat(t.delimiter))),[r,i].filter(Boolean).join(t.separator)}},11582:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHuman=void 0;const a=r(n(96554)),i=r(n(34509)),o=r(n(25141)),s=n(44455),c=n(64106),l=n(43024),u=n(87402),d={0:"unit",1:"ten",2:"hundred",3:"thousand",6:"million",9:"billion",12:"trillion",15:"quadrillion","-1":"deci","-2":"centi","-3":"mili","-6":"micro","-9":"nano","-12":"pico","-15":"femto"},p=(0,o.default)(Object.values(d),Object.keys(d).map((e=>parseInt(e,10))));t.numberToHuman=function(e,t,n){const r={roundMode:n.roundMode,precision:n.precision,significant:n.significant};let o;if("string"===(0,u.inferType)(n.units)){const t=n.units;if(o=(0,c.lookup)(e,t),!o)throw new Error('The scope "'.concat(e.locale).concat(e.defaultSeparator).concat((0,s.getFullScope)(e,t,{}),"\" couldn't be found"))}else o=n.units;let f=(0,l.roundNumber)(new a.default(t),r);const h=((e,t)=>{const n=e.isZero()?0:Math.floor(Math.log10(e.abs().toNumber()));return(e=>(0,i.default)(Object.keys(e).map((e=>p[e])),(e=>-1*e)))(t).find((e=>n>=e))||0})(new a.default(f),o),m=((e,t)=>e[d[t.toString()]]||"")(o,h);if(f=(0,l.roundNumber)(new a.default(f).div(Math.pow(10,h)),r),n.stripInsignificantZeros){let[e,t]=f.split(".");t=(t||"").replace(/0+$/,""),f=e,t&&(f+="".concat(n.separator).concat(t))}return n.format.replace("%n",f||"0").replace("%u",m).trim()}},37382:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.numberToHumanSize=void 0;const a=r(n(96554)),i=n(43024),o=n(31551),s=["byte","kb","mb","gb","tb","pb","eb"];t.numberToHumanSize=function(e,t,n){const r=(0,o.expandRoundMode)(n.roundMode),c=1024,l=new a.default(t).abs(),u=l.lt(c);let d;const p=((e,t)=>{const n=t.length-1,r=new a.default(Math.log(e.toNumber())).div(Math.log(c)).integerValue(a.default.ROUND_DOWN).toNumber();return Math.min(n,r)})(l,s);d=u?l.integerValue():new a.default((0,i.roundNumber)(l.div(Math.pow(c,p)),{significant:n.significant,precision:n.precision,roundMode:n.roundMode}));const f=e.translate("number.human.storage_units.format",{defaultValue:"%n %u"}),h=e.translate((e=>{const t=u?"byte":e[p];return"number.human.storage_units.units.".concat(t)})(s),{count:l.integerValue().toNumber()});let m=d.toFixed(n.precision,r);return n.stripInsignificantZeros&&(m=m.replace(/(\..*?)0+$/,"$1").replace(/\.$/,"")),f.replace("%n",m).replace("%u",h)}},98980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDate=void 0,t.parseDate=function(e){if(e instanceof Date)return e;if("number"===typeof e){const t=new Date;return t.setTime(e),t}const t=new String(e).match(/(\d{4})-(\d{2})-(\d{2})(?:[ T](\d{2}):(\d{2}):(\d{2})(?:[.,](\d{1,3}))?)?(Z|\+00:?00)?/);if(t){const e=t.slice(1,8).map((e=>parseInt(e,10)||0));e[1]-=1;const[n,r,a,i,o,s,c]=e;return t[8]?new Date(Date.UTC(n,r,a,i,o,s,c)):new Date(n,r,a,i,o,s,c)}if(e.match(/([A-Z][a-z]{2}) ([A-Z][a-z]{2}) (\d+) (\d+:\d+:\d+) ([+-]\d+) (\d+)/)){(new Date).setTime(Date.parse([RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$6,RegExp.$4,RegExp.$5].join(" ")))}const n=new Date;return n.setTime(Date.parse(e)),n}},60402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluralize=void 0;const r=n(50741),a=n(64106);t.pluralize=function(e){let t,n,{i18n:i,count:o,scope:s,options:c,baseScope:l}=e;if(c=Object.assign({},c),t="object"===typeof s&&s?s:(0,a.lookup)(i,s,c),!t)return i.missingTranslation.get(s,c);const u=i.pluralization.get(c.locale)(i,o),d=[];for(;u.length;){const e=u.shift();if((0,r.isSet)(t[e])){n=t[e];break}d.push(e)}return(0,r.isSet)(n)?(c.count=o,i.interpolate(i,n,c)):i.missingTranslation.get(l.split(i.defaultSeparator).concat([d[0]]),c)}},25054:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.propertyFlatList=void 0;const a=r(n(33776)),i=r(n(94487));class o{constructor(e){this.target=e}call(){const e=(0,i.default)(Object.keys(this.target).map((e=>this.compute(this.target[e],e))));return e.sort(),e}compute(e,t){return!Array.isArray(e)&&(0,a.default)(e)?Object.keys(e).map((n=>this.compute(e[n],"".concat(t,".").concat(n)))):t}}t.propertyFlatList=function(e){return new o(e).call()}},43024:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.roundNumber=void 0;const a=r(n(96554)),i=n(31551);function o(e,t){let{precision:n,significant:r}=t;return r&&null!==n&&n>0?n-function(e){return e.isZero()?1:Math.floor(Math.log10(e.abs().toNumber())+1)}(e):n}t.roundNumber=function(e,t){const n=o(e,t);if(null===n)return e.toString();const r=(0,i.expandRoundMode)(t.roundMode);if(n>=0)return e.toFixed(n,r);const s=Math.pow(10,Math.abs(n));return(e=new a.default(e.div(s).toFixed(0,r)).times(s)).toString()}},1122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strftime=void 0;const n={meridian:{am:"AM",pm:"PM"},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthNames:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonthNames:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};t.strftime=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{abbrDayNames:a,dayNames:i,abbrMonthNames:o,monthNames:s,meridian:c}=Object.assign(Object.assign({},n),r);if(isNaN(e.getTime()))throw new Error("strftime() requires a valid date object, but received an invalid date.");const l=e.getDay(),u=e.getDate(),d=e.getFullYear(),p=e.getMonth()+1,f=e.getHours();let h=f;const m=f>11?"pm":"am",g=e.getSeconds(),y=e.getMinutes(),b=e.getTimezoneOffset(),v=Math.floor(Math.abs(b/60)),w=Math.abs(b)-60*v,E=(b>0?"-":"+")+(v.toString().length<2?"0"+v:v)+(w.toString().length<2?"0"+w:w);return h>12?h-=12:0===h&&(h=12),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%a",a[l])).replace("%A",i[l])).replace("%b",o[p])).replace("%B",s[p])).replace("%d",u.toString().padStart(2,"0"))).replace("%e",u.toString())).replace("%-d",u.toString())).replace("%H",f.toString().padStart(2,"0"))).replace("%-H",f.toString())).replace("%k",f.toString())).replace("%I",h.toString().padStart(2,"0"))).replace("%-I",h.toString())).replace("%l",h.toString())).replace("%m",p.toString().padStart(2,"0"))).replace("%-m",p.toString())).replace("%M",y.toString().padStart(2,"0"))).replace("%-M",y.toString())).replace("%p",c[m])).replace("%P",c[m].toLowerCase())).replace("%S",g.toString().padStart(2,"0"))).replace("%-S",g.toString())).replace("%w",l.toString())).replace("%y",d.toString().padStart(2,"0").substr(-2))).replace("%-y",d.toString().padStart(2,"0").substr(-2).replace(/^0+/,""))).replace("%Y",d.toString())).replace(/%z/i,E)}},70921:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timeAgoInWords=void 0;const a=r(n(16035)),i=n(98980),o=(e,t,n)=>n>=e&&n<=t;t.timeAgoInWords=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=r.scope||"datetime.distance_in_words",c=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.t(t,{count:n,scope:s})};t=(0,i.parseDate)(t),n=(0,i.parseDate)(n);let l=t.getTime()/1e3,u=n.getTime()/1e3;l>u&&([t,n,l,u]=[n,t,u,l]);const d=Math.round(u-l),p=Math.round((u-l)/60),f=p/60/24,h=Math.round(p/60),m=Math.round(f),g=Math.round(m/30);if(o(0,1,p))return r.includeSeconds?o(0,4,d)?c("less_than_x_seconds",5):o(5,9,d)?c("less_than_x_seconds",10):o(10,19,d)?c("less_than_x_seconds",20):o(20,39,d)?c("half_a_minute"):o(40,59,d)?c("less_than_x_minutes",1):c("x_minutes",1):0===p?c("less_than_x_minutes",1):c("x_minutes",p);if(o(2,44,p))return c("x_minutes",p);if(o(45,89,p))return c("about_x_hours",1);if(o(90,1439,p))return c("about_x_hours",h);if(o(1440,2519,p))return c("x_days",1);if(o(2520,43199,p))return c("x_days",m);if(o(43200,86399,p))return c("about_x_months",Math.round(p/43200));if(o(86400,525599,p))return c("x_months",g);let y=t.getFullYear();t.getMonth()+1>=3&&(y+=1);let b=n.getFullYear();n.getMonth()+1<3&&(b-=1);const v=525600,w=p-1440*(y>b?0:(0,a.default)(y,b).filter((e=>1==new Date(e,1,29).getMonth())).length),E=Math.trunc(w/v),x=parseFloat((w/v-E).toPrecision(3));return x<.25?c("about_x_years",E):x<.75?c("over_x_years",E):c("almost_x_years",E+1)}},11223:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.useMakePlural=t.Pluralization=t.MissingTranslation=t.Locales=t.I18n=void 0;var i=n(58907);Object.defineProperty(t,"I18n",{enumerable:!0,get:function(){return i.I18n}});var o=n(78247);Object.defineProperty(t,"Locales",{enumerable:!0,get:function(){return o.Locales}});var s=n(48489);Object.defineProperty(t,"MissingTranslation",{enumerable:!0,get:function(){return s.MissingTranslation}});var c=n(98675);Object.defineProperty(t,"Pluralization",{enumerable:!0,get:function(){return c.Pluralization}}),Object.defineProperty(t,"useMakePlural",{enumerable:!0,get:function(){return c.useMakePlural}}),a(n(5324),t)},5324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96202:(e,t)=>{t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,c=(1<>1,u=-7,d=n?a-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=p,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===i)i=1-l;else{if(i===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),i-=l}return(f?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,l=8*i-a-1,u=(1<>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+f]=255&s,f+=h,s/=256,a-=8);for(o=o<0;e[n+f]=255&o,f+=h,o/=256,l-=8);e[n+f-h]|=128*m}},69304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=null;"undefined"!==typeof WebSocket?r=WebSocket:"undefined"!==typeof MozWebSocket?r=MozWebSocket:"undefined"!==typeof n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!==typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!==typeof self&&(r=self.WebSocket||self.MozWebSocket);const a=r},36853:(e,t,n)=>{var r=n(42554)(n(61546),"DataView");e.exports=r},984:(e,t,n)=>{var r=n(8881),a=n(11710),i=n(54138),o=n(17057),s=n(3484);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(79483),a=n(20998),i=n(64559),o=n(53914),s=n(42814);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(42554)(n(61546),"Map");e.exports=r},90202:(e,t,n)=>{var r=n(60108),a=n(1206),i=n(37942),o=n(94348),s=n(98537);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var r=n(42554)(n(61546),"Promise");e.exports=r},59910:(e,t,n)=>{var r=n(42554)(n(61546),"Set");e.exports=r},53816:(e,t,n)=>{var r=n(90202),a=n(84555),i=n(19875);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t{var r=n(4758),a=n(48640),i=n(85938),o=n(54967),s=n(22510),c=n(60980);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=a,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},36649:(e,t,n)=>{var r=n(61546).Symbol;e.exports=r},13889:(e,t,n)=>{var r=n(61546).Uint8Array;e.exports=r},21474:(e,t,n)=>{var r=n(42554)(n(61546),"WeakMap");e.exports=r},78415:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},28194:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n{var r=n(1309);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},23259:e=>{e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r{var r=n(68427),a=n(55632),i=n(44282),o=n(18857),s=n(2394),c=n(49012),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),d=!n&&!u&&o(e),p=!n&&!u&&!d&&c(e),f=n||u||d||p,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!l.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},35918:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n{e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n{e.exports=function(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{e.exports=function(e){return e.split("")}},49843:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},91248:(e,t,n)=>{var r=n(65970),a=n(87965),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},1856:(e,t,n)=>{var r=n(87965);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},65970:(e,t,n)=>{var r=n(47681);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},46476:(e,t,n)=>{var r=n(78512),a=n(68002)(r);e.exports=a},88482:e=>{e.exports=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i{var r=n(58986),a=n(39484);e.exports=function e(t,n,i,o,s){var c=-1,l=t.length;for(i||(i=a),s||(s=[]);++c0&&i(u)?n>1?e(u,n-1,i,o,s):r(s,u):o||(s[s.length]=u)}return s}},40545:(e,t,n)=>{var r=n(15374)();e.exports=r},78512:(e,t,n)=>{var r=n(40545),a=n(58930);e.exports=function(e,t){return e&&r(e,t,a)}},41995:(e,t,n)=>{var r=n(36440),a=n(3848);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n{var r=n(58986),a=n(44282);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},43333:(e,t,n)=>{var r=n(36649),a=n(4118),i=n(34230),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},47616:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},6693:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1309:(e,t,n)=>{var r=n(88482),a=n(45217),i=n(20045);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,a,n)}},22962:(e,t,n)=>{var r=n(43333),a=n(76097);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},24926:(e,t,n)=>{var r=n(45037),a=n(76097);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!==t&&n!==n:r(t,n,i,o,e,s))}},45037:(e,t,n)=>{var r=n(10607),a=n(54410),i=n(99471),o=n(56231),s=n(67497),c=n(44282),l=n(18857),u=n(49012),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var b=c(e),v=c(t),w=b?p:s(e),E=v?p:s(t),x=(w=w==d?f:w)==f,k=(E=E==d?f:E)==f,P=w==E;if(P&&l(e)){if(!l(t))return!1;b=!0,x=!1}if(P&&!x)return y||(y=new r),b||u(e)?a(e,t,n,m,g,y):i(e,t,w,n,m,g,y);if(!(1&n)){var S=x&&h.call(e,"__wrapped__"),C=k&&h.call(t,"__wrapped__");if(S||C){var T=S?e.value():e,_=C?t.value():t;return y||(y=new r),g(T,_,n,m,y)}}return!!P&&(y||(y=new r),o(e,t,n,m,g,y))}},27766:(e,t,n)=>{var r=n(10607),a=n(24926);e.exports=function(e,t,n,i){var o=n.length,s=o,c=!i;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o{e.exports=function(e){return e!==e}},60831:(e,t,n)=>{var r=n(53233),a=n(17726),i=n(33776),o=n(90496),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?p:s).test(o(e))}},73365:(e,t,n)=>{var r=n(43333),a=n(86364),i=n(76097),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},56861:(e,t,n)=>{var r=n(26713),a=n(11117),i=n(78264),o=n(44282),s=n(2788);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?a(e[0],e[1]):r(e):s(e)}},14732:(e,t,n)=>{var r=n(30101),a=n(34261),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},63831:(e,t,n)=>{var r=n(46476),a=n(19451);e.exports=function(e,t){var n=-1,i=a(e)?Array(e.length):[];return r(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}},26713:(e,t,n)=>{var r=n(27766),a=n(16366),i=n(78514);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},11117:(e,t,n)=>{var r=n(24926),a=n(10428),i=n(60780),o=n(4935),s=n(9647),c=n(78514),l=n(3848);e.exports=function(e,t){return o(e)&&s(t)?c(l(e),t):function(n){var o=a(n,e);return void 0===o&&o===t?i(n,e):r(t,o,3)}}},31693:(e,t,n)=>{var r=n(35918),a=n(41995),i=n(56861),o=n(63831),s=n(39111),c=n(91520),l=n(24270),u=n(78264),d=n(44282);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return a(t,1===e.length?e[0]:e)}:e})):[u];var p=-1;t=r(t,c(i));var f=o(e,(function(e,n,a){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return s(f,(function(e,t){return l(e,t,n)}))}},71033:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},35810:(e,t,n)=>{var r=n(41995);e.exports=function(e){return function(t){return r(t,e)}}},92434:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},12165:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,a,i){for(var o=-1,s=n(t((r-e)/(a||1)),0),c=Array(s);s--;)c[i?s:++o]=e,e+=a;return c}},72389:e=>{var t=Math.floor;e.exports=function(e,n){var r="";if(!e||n<1||n>9007199254740991)return r;do{n%2&&(r+=e),(n=t(n/2))&&(e+=e)}while(n);return r}},77627:(e,t,n)=>{var r=n(78264),a=n(81370),i=n(42532);e.exports=function(e,t){return i(a(e,t,r),e+"")}},16853:(e,t,n)=>{var r=n(91248),a=n(36440),i=n(2394),o=n(33776),s=n(3848);e.exports=function(e,t,n,c){if(!o(e))return e;for(var l=-1,u=(t=a(t,e)).length,d=u-1,p=e;null!=p&&++l{var r=n(5045),a=n(47681),i=n(78264),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},64017:e=>{e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},68427:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n{var r=n(36649),a=n(35918),i=n(44282),o=n(94135),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},53266:(e,t,n)=>{var r=n(24897),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},91520:e=>{e.exports=function(e){return function(t){return e(t)}}},22466:(e,t,n)=>{var r=n(53816),a=n(45413),i=n(23259),o=n(40965),s=n(61597),c=n(13703);e.exports=function(e,t,n){var l=-1,u=a,d=e.length,p=!0,f=[],h=f;if(n)p=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return c(m);p=!1,u=o,h=new r}else h=t?[]:f;e:for(;++l{e.exports=function(e,t,n){for(var r=-1,a=e.length,i=t.length,o={};++r{e.exports=function(e,t){return e.has(t)}},36440:(e,t,n)=>{var r=n(44282),a=n(4935),i=n(40503),o=n(50618);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:i(o(e))}},66883:(e,t,n)=>{var r=n(64017);e.exports=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:r(e,t,n)}},35877:(e,t,n)=>{var r=n(94135);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,i=e===e,o=r(e),s=void 0!==t,c=null===t,l=t===t,u=r(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||a&&s&&l||!n&&l||!i)return 1;if(!a&&!o&&!u&&e{var r=n(35877);e.exports=function(e,t,n){for(var a=-1,i=e.criteria,o=t.criteria,s=i.length,c=n.length;++a=c?l:l*("desc"==n[a]?-1:1)}return e.index-t.index}},95704:(e,t,n)=>{var r=n(61546)["__core-js_shared__"];e.exports=r},68002:(e,t,n)=>{var r=n(19451);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var i=n.length,o=t?i:-1,s=Object(n);(t?o--:++o{e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++a];if(!1===n(i[c],c,i))break}return t}}},87552:(e,t,n)=>{var r=n(66883),a=n(39082),i=n(20467),o=n(50618);e.exports=function(e){return function(t){t=o(t);var n=a(t)?i(t):void 0,s=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return s[e]()+c}}},3335:(e,t,n)=>{var r=n(71686),a=n(19443),i=n(88263),o=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(i(a(t).replace(o,"")),e,"")}}},81824:(e,t,n)=>{var r=n(12165),a=n(7248),i=n(39670);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&a(t,n,o)&&(n=o=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),o=void 0===o?t{var r=n(59910),a=n(60250),i=n(13703),o=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:a;e.exports=o},62489:(e,t,n)=>{var r=n(92434)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"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"});e.exports=r},47681:(e,t,n)=>{var r=n(42554),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},54410:(e,t,n)=>{var r=n(53816),a=n(49619),i=n(40965);e.exports=function(e,t,n,o,s,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h{var r=n(36649),a=n(13889),i=n(87965),o=n(54410),s=n(21451),c=n(13703),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=c),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=o(f(e),f(t),r,l,d,p);return p.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},56231:(e,t,n)=>{var r=n(81096),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var d=u;d--;){var p=l[d];if(!(c?p in t:a.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},81096:(e,t,n)=>{var r=n(14426),a=n(67037),i=n(58930);e.exports=function(e){return r(e,i,a)}},78864:(e,t,n)=>{var r=n(17849);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},16366:(e,t,n)=>{var r=n(9647),a=n(58930);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,r(o)]}return t}},42554:(e,t,n)=>{var r=n(60831),a=n(3515);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},4118:(e,t,n)=>{var r=n(36649),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},67037:(e,t,n)=>{var r=n(28194),a=n(64375),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},67497:(e,t,n)=>{var r=n(36853),a=n(13434),i=n(8506),o=n(59910),s=n(21474),c=n(43333),l=n(90496),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=l(r),g=l(a),y=l(i),b=l(o),v=l(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||a&&w(new a)!=u||i&&w(i.resolve())!=d||o&&w(new o)!=p||s&&w(new s)!=f)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return h;case g:return u;case y:return d;case b:return p;case v:return f}return t}),e.exports=w},3515:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},76592:(e,t,n)=>{var r=n(36440),a=n(55632),i=n(44282),o=n(2394),s=n(86364),c=n(3848);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,d=!1;++l{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},16135:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},8881:(e,t,n)=>{var r=n(13755);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},11710:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},54138:(e,t,n)=>{var r=n(13755),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},17057:(e,t,n)=>{var r=n(13755),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},3484:(e,t,n)=>{var r=n(13755);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},39484:(e,t,n)=>{var r=n(36649),a=n(55632),i=n(44282),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(o&&e&&e[o])}},2394:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e{var r=n(87965),a=n(19451),i=n(2394),o=n(33776);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?a(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},4935:(e,t,n)=>{var r=n(44282),a=n(94135),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(o.test(e)||!i.test(e)||null!=t&&e in Object(t))}},17849:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},17726:(e,t,n)=>{var r=n(95704),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},30101:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9647:(e,t,n)=>{var r=n(33776);e.exports=function(e){return e===e&&!r(e)}},79483:e=>{e.exports=function(){this.__data__=[],this.size=0}},20998:(e,t,n)=>{var r=n(1856),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},64559:(e,t,n)=>{var r=n(1856);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},53914:(e,t,n)=>{var r=n(1856);e.exports=function(e){return r(this.__data__,e)>-1}},42814:(e,t,n)=>{var r=n(1856);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},60108:(e,t,n)=>{var r=n(984),a=n(4758),i=n(13434);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},1206:(e,t,n)=>{var r=n(78864);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},37942:(e,t,n)=>{var r=n(78864);e.exports=function(e){return r(this,e).get(e)}},94348:(e,t,n)=>{var r=n(78864);e.exports=function(e){return r(this,e).has(e)}},98537:(e,t,n)=>{var r=n(78864);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},21451:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},78514:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},86564:(e,t,n)=>{var r=n(26782);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},13755:(e,t,n)=>{var r=n(42554)(Object,"create");e.exports=r},34261:(e,t,n)=>{var r=n(69995)(Object.keys,Object);e.exports=r},10180:(e,t,n)=>{e=n.nmd(e);var r=n(58012),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},34230:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},69995:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},81370:(e,t,n)=>{var r=n(78415),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),c=Array(s);++o{var r=n(58012),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},84555:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},19875:e=>{e.exports=function(e){return this.__data__.has(e)}},13703:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},42532:(e,t,n)=>{var r=n(19173),a=n(2528)(r);e.exports=a},2528:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var a=t(),i=16-(a-r);if(r=a,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},48640:(e,t,n)=>{var r=n(4758);e.exports=function(){this.__data__=new r,this.size=0}},85938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},54967:e=>{e.exports=function(e){return this.__data__.get(e)}},22510:e=>{e.exports=function(e){return this.__data__.has(e)}},60980:(e,t,n)=>{var r=n(4758),a=n(13434),i=n(90202);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},20045:e=>{e.exports=function(e,t,n){for(var r=n-1,a=e.length;++r{var r=n(98109),a=n(39082),i=n(73712);e.exports=function(e){return a(e)?i(e):r(e)}},40503:(e,t,n)=>{var r=n(86564),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=o},3848:(e,t,n)=>{var r=n(94135);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},90496:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},24897:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},73712:e=>{var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+a+")"+"?",l="[\\ufe0e\\ufe0f]?",u=l+c+("(?:\\u200d(?:"+[i,o,s].join("|")+")"+l+c+")*"),d="(?:"+[i+r+"?",r,o,s,n].join("|")+")",p=RegExp(a+"(?="+a+")|"+d+u,"g");e.exports=function(e){return e.match(p)||[]}},79855:e=>{var t="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",o="["+i+"]",s="\\d+",c="["+n+"]",l="["+r+"]",u="[^"+t+i+s+n+r+a+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+a+"]",h="(?:"+l+"|"+u+")",m="(?:"+f+"|"+u+")",g="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",y="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",v="[\\ufe0e\\ufe0f]?",w=v+b+("(?:\\u200d(?:"+["[^"+t+"]",d,p].join("|")+")"+v+b+")*"),E="(?:"+[c,d,p].join("|")+")"+w,x=RegExp([f+"?"+l+"+"+g+"(?="+[o,f,"$"].join("|")+")",m+"+"+y+"(?="+[o,f+h,"$"].join("|")+")",f+"?"+h+"+"+g,f+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,E].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},92322:(e,t,n)=>{var r=n(61278),a=n(3335)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=a},61278:(e,t,n)=>{var r=n(50618),a=n(41120);e.exports=function(e){return a(r(e).toLowerCase())}},5045:e=>{e.exports=function(e){return function(){return e}}},19443:(e,t,n)=>{var r=n(62489),a=n(50618),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=a(e))&&e.replace(i,r).replace(o,"")}},87965:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},94487:(e,t,n)=>{var r=n(64906);e.exports=function(e){return(null==e?0:e.length)?r(e,Infinity):[]}},10428:(e,t,n)=>{var r=n(41995);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},45714:(e,t,n)=>{var r=n(47616),a=n(76592);e.exports=function(e,t){return null!=e&&a(e,t,r)}},60780:(e,t,n)=>{var r=n(6693),a=n(76592);e.exports=function(e,t){return null!=e&&a(e,t,r)}},78264:e=>{e.exports=function(e){return e}},55632:(e,t,n)=>{var r=n(22962),a=n(76097),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},44282:e=>{var t=Array.isArray;e.exports=t},19451:(e,t,n)=>{var r=n(53233),a=n(86364);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},18857:(e,t,n)=>{e=n.nmd(e);var r=n(61546),a=n(6730),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;e.exports=c},53233:(e,t,n)=>{var r=n(43333),a=n(33776);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},86364:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},33776:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},76097:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},94135:(e,t,n)=>{var r=n(43333),a=n(76097);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},49012:(e,t,n)=>{var r=n(73365),a=n(91520),i=n(10180),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},58930:(e,t,n)=>{var r=n(45170),a=n(14732),i=n(19451);e.exports=function(e){return i(e)?r(e):a(e)}},26782:(e,t,n)=>{var r=n(90202);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},60250:e=>{e.exports=function(){}},2788:(e,t,n)=>{var r=n(71033),a=n(35810),i=n(4935),o=n(3848);e.exports=function(e){return i(e)?r(o(e)):a(e)}},16035:(e,t,n)=>{var r=n(81824)();e.exports=r},19661:(e,t,n)=>{var r=n(72389),a=n(7248),i=n(22944),o=n(50618);e.exports=function(e,t,n){return t=(n?a(e,t,n):void 0===t)?1:i(t),r(o(e),t)}},86394:(e,t,n)=>{var r=n(16853);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},51808:(e,t,n)=>{var r=n(16853);e.exports=function(e,t,n,a){return a="function"==typeof a?a:void 0,null==e?e:r(e,t,n,a)}},34509:(e,t,n)=>{var r=n(64906),a=n(31693),i=n(77627),o=n(7248),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])}));e.exports=s},64375:e=>{e.exports=function(){return[]}},6730:e=>{e.exports=function(){return!1}},39670:(e,t,n)=>{var r=n(63250),a=1/0;e.exports=function(e){return e?(e=r(e))===a||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},22944:(e,t,n)=>{var r=n(39670);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},63250:(e,t,n)=>{var r=n(53266),a=n(33776),i=n(94135),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},50618:(e,t,n)=>{var r=n(50733);e.exports=function(e){return null==e?"":r(e)}},17760:(e,t,n)=>{var r=n(22466);e.exports=function(e){return e&&e.length?r(e):[]}},41120:(e,t,n)=>{var r=n(87552)("toUpperCase");e.exports=r},88263:(e,t,n)=>{var r=n(49843),a=n(16135),i=n(50618),o=n(79855);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?a(e)?o(e):r(e):e.match(t)||[]}},25141:(e,t,n)=>{var r=n(91248),a=n(6174);e.exports=function(e,t){return a(e||[],t||[],r)}},15418:(e,t,n)=>{"use strict";var r=n(29749),a=n(41310);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n