From 6c456b11840f97bec1a0028c3d8ef408076d668b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 17 Nov 2023 14:29:24 +0100 Subject: [PATCH] Update release build --- ...s-web-651a47539df240d969d59469e72da490.map | 1 + ...-web-a9dbff1f1ec96f860d4ebebcc808e6a6.css} | 2 +- ...s-web-c6399723d7220b2a99dd4f3a76ffcb10.map | 1 - ...s-web-fbe44210e3e45c3458ed9b506c7d11b9.js} | 278 +- ...endor-4110d3140aebd1b6753a13f2ebc55dff.js} | 20597 +++++++++------- release/index.html | 8 +- 6 files changed, 12411 insertions(+), 8476 deletions(-) create mode 100644 release/assets/kredits-web-651a47539df240d969d59469e72da490.map rename release/assets/{kredits-web-f21602587acec9a1744c244385a83592.css => kredits-web-a9dbff1f1ec96f860d4ebebcc808e6a6.css} (55%) delete mode 100644 release/assets/kredits-web-c6399723d7220b2a99dd4f3a76ffcb10.map rename release/assets/{kredits-web-ae44ce0c1a892c2da424f8002b037b86.js => kredits-web-fbe44210e3e45c3458ed9b506c7d11b9.js} (88%) rename release/assets/{vendor-4d87b3e0995c5bb18e46836a089900a4.js => vendor-4110d3140aebd1b6753a13f2ebc55dff.js} (72%) diff --git a/release/assets/kredits-web-651a47539df240d969d59469e72da490.map b/release/assets/kredits-web-651a47539df240d969d59469e72da490.map new file mode 100644 index 0000000..c7ea106 --- /dev/null +++ b/release/assets/kredits-web-651a47539df240d969d59469e72da490.map @@ -0,0 +1 @@ +{"version":3,"sources":["vendor/ember-cli/app-prefix.js","kredits-web/app.js","kredits-web/components/add-expense-item/component.js","kredits-web/components/add-reimbursement/component.js","kredits-web/components/budget-balances/component.js","kredits-web/components/confirmed-in/component.js","kredits-web/components/expense-list/component.js","kredits-web/components/reimbursement-list/component.js","kredits-web/components/topbar-account-panel/component.js","kredits-web/controllers/application.js","kredits-web/controllers/budget.js","kredits-web/controllers/signup/account.js","kredits-web/controllers/signup/index.js","kredits-web/component-managers/glimmer.js","kredits-web/components/add-contribution/component.js","kredits-web/components/add-contribution/template.js","kredits-web/components/add-contributor/component.js","kredits-web/components/add-contributor/template.js","kredits-web/components/add-expense-item/template.js","kredits-web/components/add-reimbursement/template.js","kredits-web/components/budget-balances/template.js","kredits-web/components/chart-contributions-by-type/component.js","kredits-web/components/chart-contributions-by-type/template.js","kredits-web/components/confirmed-in/template.js","kredits-web/components/contribution-list/component.js","kredits-web/components/contribution-list/template.js","kredits-web/components/contributor-list/component.js","kredits-web/components/contributor-list/template.js","kredits-web/components/ember-chart.js","kredits-web/components/ember-flatpickr.js","kredits-web/components/expense-list/template.js","kredits-web/components/external-account-link/component.js","kredits-web/components/external-account-link/template.js","kredits-web/components/loading-spinner/component.js","kredits-web/components/loading-spinner/template.js","kredits-web/components/main-navigation-menu/template.js","kredits-web/components/reimbursement-list/template.js","kredits-web/components/topbar-account-panel/template.js","kredits-web/components/user-avatar/component.js","kredits-web/components/user-avatar/template.js","kredits-web/controllers/contributions/new.js","kredits-web/controllers/contributions/resubmit.js","kredits-web/controllers/contributors/edit.js","kredits-web/controllers/contributors/new.js","kredits-web/controllers/dashboard.js","kredits-web/controllers/dashboard/contributions/show.js","kredits-web/controllers/dashboard/contributors/show.js","kredits-web/helpers/and.js","kredits-web/helpers/app-version.js","kredits-web/helpers/await.js","kredits-web/helpers/cancel-all.js","kredits-web/helpers/capitalize-string.js","kredits-web/helpers/eq.js","kredits-web/helpers/fmt-crypto-currency.js","kredits-web/helpers/fmt-date-localized.js","kredits-web/helpers/fmt-fiat-currency.js","kredits-web/helpers/gt.js","kredits-web/helpers/gte.js","kredits-web/helpers/is-after.js","kredits-web/helpers/is-array.js","kredits-web/helpers/is-before.js","kredits-web/router.js","kredits-web/routes/about.js","kredits-web/routes/application.js","kredits-web/routes/budget.js","kredits-web/routes/budget/expenses.js","kredits-web/routes/contributions/new.js","kredits-web/routes/dashboard.js","kredits-web/routes/reimbursements/new.js","kredits-web/helpers/is-between.js","kredits-web/helpers/is-confirmed-contribution.js","kredits-web/helpers/is-current-user.js","kredits-web/helpers/is-empty.js","kredits-web/helpers/is-equal.js","kredits-web/helpers/is-fulfilled.js","kredits-web/helpers/is-pending.js","kredits-web/helpers/is-rejected.js","kredits-web/helpers/is-same-or-after.js","kredits-web/helpers/is-same-or-before.js","kredits-web/helpers/is-same.js","kredits-web/helpers/item-status.js","kredits-web/helpers/lt.js","kredits-web/helpers/lte.js","kredits-web/helpers/moment-add.js","kredits-web/helpers/moment-calendar.js","kredits-web/helpers/moment-diff.js","kredits-web/helpers/moment-duration.js","kredits-web/helpers/moment-format.js","kredits-web/helpers/moment-from-now.js","kredits-web/helpers/moment-from.js","kredits-web/helpers/moment-subtract.js","kredits-web/helpers/moment-to-date.js","kredits-web/helpers/moment-to-now.js","kredits-web/helpers/moment-to.js","kredits-web/helpers/moment-unix.js","kredits-web/helpers/moment.js","kredits-web/helpers/not-eq.js","kredits-web/helpers/not.js","kredits-web/helpers/now.js","kredits-web/routes/signup/account.js","kredits-web/services/browser-cache.js","kredits-web/services/community-funds.js","kredits-web/services/exchange-rates.js","kredits-web/helpers/or.js","kredits-web/helpers/perform.js","kredits-web/helpers/promise-all.js","kredits-web/helpers/promise-hash.js","kredits-web/helpers/promise-rejected-reason.js","kredits-web/helpers/sats-to-btc.js","kredits-web/helpers/task.js","kredits-web/helpers/unix.js","kredits-web/helpers/utc.js","kredits-web/helpers/xor.js","kredits-web/initializers/app-version.js","kredits-web/initializers/container-debug-adapter.js","kredits-web/initializers/ember-concurrency.js","kredits-web/initializers/export-application-global.js","kredits-web/models/contribution.js","kredits-web/models/contributor.js","kredits-web/models/reimbursement.js","kredits-web/routes/contributions/resubmit.js","kredits-web/routes/contributors/edit.js","kredits-web/routes/dashboard/contributions/show.js","kredits-web/routes/dashboard/contributors/show.js","kredits-web/routes/index.js","kredits-web/routes/signup.js","kredits-web/routes/signup/complete.js","kredits-web/routes/signup/github.js","kredits-web/services/kredits.js","kredits-web/services/moment.js","kredits-web/templates/about.js","kredits-web/templates/application-loading.js","kredits-web/templates/application.js","kredits-web/templates/budget.js","kredits-web/templates/budget/expenses.js","kredits-web/templates/components/icon-account-gitea-kosmos-org.js","kredits-web/templates/components/icon-account-github-com.js","kredits-web/templates/components/icon-account-wiki-kosmos-org.js","kredits-web/templates/components/icon-account-zoom-us.js","kredits-web/templates/components/icon-tag.js","kredits-web/templates/components/icon-warning.js","kredits-web/templates/components/icon-web-globe.js","kredits-web/templates/contributions/new.js","kredits-web/templates/contributions/resubmit.js","kredits-web/templates/contributors/edit.js","kredits-web/templates/contributors/new.js","kredits-web/templates/dashboard.js","kredits-web/templates/dashboard/contributions/show.js","kredits-web/templates/dashboard/contributors/show.js","kredits-web/templates/reimbursements/new.js","kredits-web/templates/signup.js","kredits-web/templates/signup/account.js","kredits-web/templates/signup/complete.js","kredits-web/templates/signup/index.js","kredits-web/utils/format-kredits.js","kredits-web/utils/get-locale.js","kredits-web/utils/group-by.js","kredits-web/utils/is-valid-amount.js","kredits-web/utils/process-contribution-data.js","kredits-web/utils/process-contributor-data.js","kredits-web/utils/process-reimbursement-data.js","kredits-web/utils/read-file-content.js","kredits-web/utils/switch-network.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","define","_exports","_emberResolver","_emberLoadInitializers","_environment","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_classCallCheck","instance","Constructor","TypeError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","call","e","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","this","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","getPrototypeOf","_defineProperty","value","default","App","_Ember$Application","subClass","superClass","create","_inherits","Ember","Application","protoProps","staticProps","_super","_this","_len","args","Array","_key","concat","modulePrefix","podModulePrefix","_emberComponentManager","get","_moment","_slicedToArray","arr","isArray","_arrayWithHoles","_i","_s","_e","_arr","_n","_d","next","done","push","err","_iterableToArrayLimit","minLen","_arrayLikeToArray","n","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","len","arr2","_default","Component","extend","kredits","inject","service","attributes","contributors","computed","contributorsSorted","map","c","id","isValidContributor","notEmpty","isValidKind","isValidAmount","parseInt","amount","isValidDescription","isValidUrl","isValid","and","init","set","startOf","toDate","contributorId","kind","date","defaultDate","description","url","details","assign","defaultAttr","reset","setProperties","actions","submit","evt","preventDefault","getProperties","keys","_dateInput$toISOStrin2","toISOString","split","_ref","time","save","then","console","warn","window","alert","finally","HTMLBars","template","block","meta","moduleName","_web3Utils","router","isValidAccount","isAddress","account","isValidName","isValidURL","isValidGithubUID","isValidGithubUsername","isValidGiteaUsername","isValidWikiUsername","isValidZoomDisplayName","inProgress","setDefaultAttributes","isPresent","github_username","github_uid","gitea_username","wiki_username","zoom_display_name","currentUserIsCore","contributor","catch","transitionTo","_component","_isValidAmount","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","_descriptor5","_descriptor6","_descriptor7","_initializerDefineProperty","property","context","initializer","_applyDecoratedDescriptor","decorators","desc","forEach","reverse","reduce","decorator","undefined","AddExpenseItemComponent","_tracked","_action","_Component","code","isValidTotal","formEl","document","querySelector","inputFields","querySelectorAll","classList","remove","validity","add","checkValidity","valid","event","currency","dateInput","utcOffset","validateForm","expense","parseFloat","title","tags","t","trim","filter","addExpenseItem","getOwnPropertyDescriptor","_readFileContent","_dec10","_dec11","_dec12","_dec13","_dec14","_dec15","_descriptor8","_descriptor9","_createForOfIteratorHelper","allowArrayLike","it","F","s","f","normalCompletion","didErr","step","_e2","return","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","info","error","Promise","AddReimbursementComponent","alias","fn","_addExpensesFromFile","exchangeRates","fetchRates","total","expenses","filterBy","mapBy","summation","current","submitButtonEnabled","getElementById","scrollIntoView","btcAmount","btceur","totalEUR","btcusd","totalUSD","toFixed","regeneratorRuntime","mark","_callee","content","_iterator","_step","item","wrap","_context","prev","files","sent","JSON","parse","debug","stop","_x","recipientId","expenseFormVisible","run","scheduleOnce","scrollToExpenseItemForm","expenseItem","pushObject","updateTotalAmountFromFiat","removeObject","_this2","currentUser","findBy","token","tokens","stringify","addReimbursement","A","BudgetBalancesComponent","communityFunds","balancesLoaded","categoryColors","contributions","chartOptions","freeze","legend","display","chartData","kinds","datasets","data","borderColor","borderWidth","labels","ConfirmedInComponent","confirmedAtBlock","currentBlock","confirmedInBlocks","duration","confirmedInSeconds","humanize","tagName","classNames","selectedContribution","showQuickFilter","hideSmallContributions","contributionKind","contributorsSorting","sort","contributorsActive","activeIds","Set","has","contributionKinds","uniq","contributionsFiltered","included","veto","contributionId","contractInteractionEnabled","vetoContribution","openContributionDetails","contribution","selectedContributorId","openContributorDetails","_emberChart","_emberFlatpickr","ExpenseListComponent","deletable","iconComponentName","site","match","replace","ReimbursementListComponent","ipfs","gatewayUrl","vetoReimbursement","transaction","hash","TopbarAccountPanelComponent","_connectWallet","ethereum","userHasWallet","hasAccounts","setupInProgress","connectWallet","SIZES","small","medium","large","classNameBindings","attributeBindings","size","src","avatarURL","ApplicationController","_Ember$Controller","Controller","BudgetController","queryParams","minedContributors","sortedContributors","contributorIpfsHash","ipfsHash","addContribution","transitionToRoute","_new","updateContributor","model","addContributor","showDetailsPane","selectedContributionId","contributionsConfirmed","contributionsUnconfirmed","contributionsSorting","contributionsUnconfirmedSorted","contributionsConfirmedSorted","kreditsByContributor","kreditsToplistSorting","showUnconfirmedKredits","kreditsToplist","hideUnconfirmedKredits","not","showQuickFilterUnconfirmed","showQuickFilterConfirmed","showFullContributionSync","gt","toggleQuickFilterUnconfirmed","toggleProperty","toggleQuickFilterConfirmed","ipfsGatewayUrl","roleName","isCore","totalKreditsEarned","AccountController","accountAddress","isValidEthAccount","payload","accessToken","githubAccessToken","fetch","githubSignupUrl","method","headers","Content-Type","body","res","json","message","log","IndexController","location","githubConnectUrl","_and","_regexp","appVersion","_","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","Helper","helper","_await","_cancelAll","compute","string","charAt","toUpperCase","_equal","equal","params","fmtAmount","_getLocale","dateStr","Date","locale","Intl","DateTimeFormat","format","lang","navigator","language","userLanguage","NumberFormat","style","currencyDisplay","_gt","_gte","gte","_isAfter","_isArray","_isBefore","_isBetween","vetoed","confirmedAt","_isEmpty","_isEqual","isEqual","_isFulfilled","_isPending","_isRejected","_isSameOrAfter","_isSameOrBefore","_isSame","setupRecompute","status","hasPendingChanges","join","destroy","teardown","addObserver","triggerRecompute","removeObserver","once","recompute","_lt","lt","_lte","lte","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_unix","_notEqual","notEqualHelper","_not","_now","_or","or","_perform","_promiseAll","_promiseHash","_promiseRejectedReason","_task","_utc","utc","_xor","xor","_initializerFactory","initialize","_containerDebugAdapter","app","register","_emberConcurrency","application","exportApplicationGlobal","theGlobal","global","globalName","String","classify","reopen","willDestroy","pendingTx","isEmpty","iso8601Date","jsDate","serialize","balance","contributionsCount","recipient","pendingStatus","Router","_Ember$Router","locationType","rootURL","route","path","AboutRoute","_Ember$Route","Route","ApplicationRoute","setup","preflightChecks","_this3","loadInitialData","addContractEventHandlers","contributorsNeedSync","schedule","syncContributors","perform","fetchBalances","BudgetRoute","_model","reimbursements","reimbursementsPending","abrupt","browserCache","loadObjectsFromCache","fetchObjects","page","reimbursementsNeedSync","syncReimbursements","fetchMissingReimbursements","BudgetExpensesRoute","ContributionsNewRoute","setupController","controller","DashboardRoute","contributionsNeedSync","syncContributions","controllerFor","deactivate","fetchContributor","redirect","ReimbursementsNewRoute","SignupAccountRoute","_setupController","currentUserAccounts","firstObject","localforage","createStore","networkName","web3NetworkName","toLocaleLowerCase","createInstance","BrowserCacheService","_Ember$Service","Service","stores","_emberConcurrencyDecorators","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","_objectSpread","source","getOwnPropertyDescriptors","defineProperties","CommunityFundsService","_processBalances","btcBalanceAPI","processBalances","balanceUSD","_context2","confirmed_balance","Math","round","toLocaleString","balances","symbol","task","_asyncToGenerator","bitstampBaseUrl","corsProxy","fetchFromBitstamp","_fetchFromBitstamp","currencyPair","r","vwap","t0","ExchangeRatesService","_fetchRates","_callee2","_args2","_ethers","_contracts","_groupBy","_processContributorData","_processContributionData","_processReimbursementData","_formatKredits","_switchNetwork","_contributor","_contribution","_reimbursement","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","models","Contributor","Contribution","Reimbursement","currentUserIsContributor","contributorsMined","missingHistoricContributionsCount","on","handleUserChainChanged","handleAccountsChanged","chainId","reload","accounts","getEthProvider","ethProvider","instantiateWithoutWallet","web3ProviderUrl","providers","JsonRpcProvider","ethSigner","_instantiateWithWallet","web3Provider","network","Web3Provider","getNetwork","listAccounts","web3ChainId","getSigner","_x2","instantiateWithWallet","provider","chainIdHex","Number","request","_callee3","_context3","providerAndSigner","ipfsConfig","getBlockNumber","t1","blockNumber","getCurrentUser","contributorData","functions","getContributorIdByAddress","getById","totalSupply","Token","_this4","contributionsGrouped","contributorsWithUnconfirmed","contributorsWithOnlyConfirmed","includes","amountUnconfirmed","items","a","b","amountConfirmed","amountTotal","_this5","_this6","reimbursementsUnconfirmed","_this7","reimbursementsConfirmed","_this8","_this9","_callee4","_context4","fetchContributors","fetchContributions","updateMissingHistoricContributionsCount","_this10","_callee5","_context5","count","uidInt","gasLimit","updateProfile","_this11","_callee6","_context6","loadContributorFromData","_this12","all","cacheLoadedContributors","loadedContributor","_this13","_callee7","_context7","setItem","finish","loadContributorsFromCache","_this14","_callee8","_context8","iterate","_callee9","_context9","_this15","_this16","options","loadContributionFromData","cacheWrites","loadedContribution","cacheLoadedContributions","_this17","_callee10","_iterator2","_step2","_context10","loadContributionsFromCache","_this18","_callee11","_context11","contributionTasks","taskGroup","enqueue","_callee12","_context12","fetchNewContributions","syncUnconfirmedContributions","group","_callee13","lastKnownContributionId","toFetch","_context13","max","fetchMissingContributions","_callee14","allIds","loadedContributions","countFetched","_context14","shift","_callee15","_iterator3","_step3","_context15","objectClass","_this19","objectClassLowerCase","toLowerCase","objects","removeObjectFromCollectionIfLoaded","collection","objectId","loadedObj","cacheLoadedObjects","_this20","_callee16","_iterator4","_step4","_context16","_this21","_callee17","_context17","syncTaskGroup","fetchNewObjects","_callee18","lastKnownObjectId","_context18","fetchMissingObjects","_callee19","loadedObjects","_context19","syncUnconfirmedObjects","_callee20","_iterator5","_step5","_context20","vetoAgainstObject","loadReimbursementFromData","_this22","reimbursement","wait","d","_callee21","_context21","_callee22","_context22","handleContributorChange","bind","handleContributionAdded","handleContributionVetoed","handleReimbursementAdded","handleReimbursementVetoed","handleTransfer","_arguments","_this23","_callee23","newContributor","oldContributor","_context23","_this24","_callee24","pendingContribution","_context24","find","_this25","_callee25","_context25","addedByAccount","_this26","_callee26","pendingReimbursement","_context26","_this27","_callee27","_context27","to","toNumber","decrementProperty","incrementProperty","defaultFormat","etherValue","utils","formatEther","decimals","languages","groups","inputAmount","isNaN","processed","otherProperties","prop","includeDetails","_data$contributionsCo","balanceInt","file","reader","FileReader","onload","onerror","readAsText","chainName","rpcUrls","nativeCurrency","metaName","prefix","rawConfig","getAttribute","exports","decodeURIComponent","Error","runningTests","require"],"mappings":"AAAA;ACAA,SAAAA,QAAAC,GAAA,OAAAD,QAAA,mBAAAE,QAAA,iBAAAA,OAAAC,SAAA,SAAAF,GAAA,cAAAA,GAAA,SAAAA,GAAA,OAAAA,GAAA,mBAAAC,QAAAD,EAAAG,cAAAF,QAAAD,IAAAC,OAAAG,UAAA,gBAAAJ,IAAAA,GCAA,SAAAD,QAAAC,GAAA,OAAAD,QAAA,mBAAAE,QAAA,iBAAAA,OAAAC,SAAA,SA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AAAqB,EACA2M,UAAAvS,EACAwS,QAAA,CAAAv6B,EAAAgD,QAAA4pB,iBACA4N,eAAA,CACA70B,KAAA,QACAkkB,OAAA,QACAwP,SAAA;AAKA,KAAA,GACArmB,EAAA/N,KAAA;AACA;AAEA,KAAA,GACAoE,QAAAC,KAAA,2BAAA0J,EAAAuX,GAAA3N;AAEA,KAAA,GACA,IAAA,MACA,OAAA5J,EAAAO,UAGAb,EAAA,KAAA,CAAA,CAAA,EAAA,UAEAlQ,MAAAF,KAAAC,WA1EA7B,OAAAC,eAAAd,EAAA,aAAA,CACAkD,OAAA,IAEAlD,EAAAmD,QAMA,WACA,OAAAiG,EAAAzG,MAAAF,KAAAC,eCbA3C,OAAA,iCAAA,IAAA,WAEA,IACA,IAAA66B,EAAAC,iCACAC,EAAA9sB,SAAAC,cAAA,cAAA2sB,EAAA,MAAAG,aAAA,WAGAC,EAAA,CAAA73B,QAFAoQ,KAAAC,MAAAynB,mBAAAH;AAMA,OAFAj6B,OAAAC,eAAAk6B,EAAA,aAAA,CAAA93B,OAAA,IAEA83B,EAEA,MAAAz1B,GACA,MAAA,IAAA21B,MAAA,kDAAAN,EAAA,UCbAO,cACAC,QAAA,mBAAA,QAAA53B,OAAA,CAAAsC,KAAA,cAAA0X,QAAA","file":"kredits-web.js","sourcesContent":["'use strict';\n\n\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/app\", [\"exports\", \"ember-resolver\", \"ember-load-initializers\", \"kredits-web/config/environment\"], function (_exports, _emberResolver, _emberLoadInitializers, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n var App = /*#__PURE__*/function (_Ember$Application) {\n _inherits(App, _Ember$Application);\n\n var _super = _createSuper(App);\n\n function App() {\n var _this;\n\n _classCallCheck(this, App);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"modulePrefix\", _environment.default.modulePrefix);\n\n _defineProperty(_assertThisInitialized(_this), \"podModulePrefix\", _environment.default.podModulePrefix);\n\n _defineProperty(_assertThisInitialized(_this), \"Resolver\", _emberResolver.default);\n\n return _this;\n }\n\n return _createClass(App);\n }(Ember.Application);\n\n _exports.default = App;\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/add-expense-item/component\", [\"exports\", \"@glimmer/component\", \"moment\", \"kredits-web/utils/is-valid-amount\"], function (_exports, _component, _moment, _isValidAmount) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AddExpenseItemComponent = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AddExpenseItemComponent, _Component);\n\n var _super = _createSuper(AddExpenseItemComponent);\n\n function AddExpenseItemComponent() {\n var _this;\n\n _classCallCheck(this, AddExpenseItemComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"amount\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currency\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"date\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"description\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"url\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"tags\", _descriptor7, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"defaultDate\", (0, _moment.default)().startOf('hour').toDate());\n\n _defineProperty(_assertThisInitialized(_this), \"currencies\", [{\n code: 'EUR'\n }, {\n code: 'USD'\n }]);\n\n return _this;\n }\n\n _createClass(AddExpenseItemComponent, [{\n key: \"isValidAmount\",\n get: function get() {\n return (0, _isValidAmount.default)(this.amount);\n }\n }, {\n key: \"amountInputClass\",\n get: function get() {\n return this.isValidTotal ? 'valid' : '';\n }\n }, {\n key: \"validateForm\",\n value: function validateForm() {\n var formEl = document.querySelector('form#add-expense-item');\n var inputFields = formEl.querySelectorAll('input');\n inputFields.forEach(function (i) {\n return i.classList.remove('invalid');\n });\n var validity = true;\n\n if (!this.isValidAmount) {\n document.querySelector('input[name=expense-amount]').classList.add('invalid');\n validity = false;\n }\n\n if (!formEl.checkValidity()) {\n inputFields.forEach(function (i) {\n if (!i.validity.valid) {\n i.classList.add('invalid');\n validity = false;\n }\n });\n }\n\n return validity;\n }\n }, {\n key: \"updateCurrency\",\n value: function updateCurrency(event) {\n this.currency = event.target.value;\n }\n }, {\n key: \"submit\",\n value: function submit(e) {\n e.preventDefault();\n var dateInput = this.date instanceof Array ? this.date[0] : this.date;\n\n var _moment$utcOffset$toI = (0, _moment.default)(dateInput).utcOffset(0, true).toISOString().split('T'),\n _moment$utcOffset$toI2 = _slicedToArray(_moment$utcOffset$toI, 1),\n date = _moment$utcOffset$toI2[0];\n\n var isValid = this.validateForm();\n if (!isValid) return false;\n var expense = {\n amount: parseFloat(this.amount),\n currency: this.currency,\n date: date,\n title: this.title,\n description: Ember.isPresent(this.description) ? this.description : undefined,\n url: Ember.isPresent(this.url) ? this.url : undefined\n };\n\n if (Ember.isPresent(this.tags)) {\n expense.tags = this.tags.split(',').map(function (t) {\n return t.trim();\n }).filter(function (t) {\n return t.length > 0;\n });\n }\n\n this.args.addExpenseItem(expense);\n }\n }]);\n\n return AddExpenseItemComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"amount\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '0';\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currency\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 'EUR';\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return (0, _moment.default)().startOf('hour').toDate();\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"url\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"tags\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"updateCurrency\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"updateCurrency\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype)), _class));\n _exports.default = AddExpenseItemComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/add-reimbursement/component\", [\"exports\", \"@glimmer/component\", \"kredits-web/utils/is-valid-amount\", \"kredits-web/utils/read-file-content\", \"kredits-web/config/environment\"], function (_exports, _component, _isValidAmount, _readFileContent, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\n function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AddReimbursementComponent = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.computed.alias('kredits.contributorsSorted'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AddReimbursementComponent, _Component);\n\n var _super = _createSuper(AddReimbursementComponent);\n\n function AddReimbursementComponent() {\n var _this;\n\n _classCallCheck(this, AddReimbursementComponent);\n\n _this = _super.apply(this, arguments);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"router\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"exchangeRates\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"contributors\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"recipientId\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"total\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"expenses\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"expenseFormVisible\", _descriptor9, _assertThisInitialized(_this));\n\n _this.exchangeRates.fetchRates();\n\n return _this;\n }\n\n _createClass(AddReimbursementComponent, [{\n key: \"isValidTotal\",\n get: function get() {\n return (0, _isValidAmount.default)(this.total);\n }\n }, {\n key: \"totalInputClass\",\n get: function get() {\n return this.isValidTotal ? 'valid' : '';\n }\n }, {\n key: \"totalEUR\",\n get: function get() {\n var expenses = this.expenses.filterBy('currency', 'EUR');\n\n if (expenses.length > 0) {\n return expenses.mapBy('amount').reduce(function (summation, current) {\n return summation + current;\n });\n } else {\n return 0;\n }\n }\n }, {\n key: \"totalUSD\",\n get: function get() {\n var expenses = this.expenses.filterBy('currency', 'USD');\n\n if (expenses.length > 0) {\n return expenses.mapBy('amount').reduce(function (summation, current) {\n return summation + current;\n });\n } else {\n return 0;\n }\n }\n }, {\n key: \"submitButtonEnabled\",\n get: function get() {\n return this.isValidTotal && this.expenses.length > 0;\n }\n }, {\n key: \"submitButtonDisabled\",\n get: function get() {\n return !this.submitButtonEnabled;\n }\n }, {\n key: \"scrollToExpenseItemForm\",\n value: function scrollToExpenseItemForm() {\n var anchor = document.getElementById('new-expense-item');\n anchor.scrollIntoView();\n }\n }, {\n key: \"updateTotalAmountFromFiat\",\n value: function updateTotalAmountFromFiat() {\n var btcAmount = parseFloat(this.total);\n\n if (this.exchangeRates.btceur > 0 && this.totalEUR > 0) {\n btcAmount += this.totalEUR / this.exchangeRates.btceur;\n }\n\n if (this.exchangeRates.btcusd > 0 && this.totalUSD > 0) {\n btcAmount += this.totalUSD / this.exchangeRates.btcusd;\n }\n\n if (this.totalUSD === 0 && this.totalEUR === 0) {\n btcAmount = 0;\n }\n\n this.total = btcAmount.toFixed(8);\n } // TODO use ember-concurrency here\n // https://github.com/67P/kredits-web/pull/209#discussion_r1064234421\n\n }, {\n key: \"addExpensesFromFile\",\n value: function () {\n var _addExpensesFromFile = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(evt) {\n var content, expenses, _iterator, _step, item;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _readFileContent.default)(evt.target.files[0]);\n\n case 2:\n content = _context.sent;\n expenses = JSON.parse(content);\n\n if (expenses instanceof Array) {\n _iterator = _createForOfIteratorHelper(expenses);\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n item = _step.value;\n this.addExpenseItem(item);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n console.warn(\"Expenses in file must be a list of items:\");\n console.debug(content);\n }\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function addExpensesFromFile(_x) {\n return _addExpensesFromFile.apply(this, arguments);\n }\n\n return addExpensesFromFile;\n }()\n }, {\n key: \"updateContributor\",\n value: function updateContributor(event) {\n this.recipientId = event.target.value;\n }\n }, {\n key: \"showExpenseForm\",\n value: function showExpenseForm() {\n this.expenseFormVisible = true;\n Ember.run.scheduleOnce('afterRender', this, this.scrollToExpenseItemForm);\n }\n }, {\n key: \"addExpenseItem\",\n value: function addExpenseItem(expenseItem) {\n this.expenses.pushObject(expenseItem);\n this.updateTotalAmountFromFiat();\n this.expenseFormVisible = false;\n }\n }, {\n key: \"removeExpenseItem\",\n value: function removeExpenseItem(expenseItem) {\n this.expenses.removeObject(expenseItem);\n this.updateTotalAmountFromFiat();\n\n if (this.expenses.length === 0) {\n this.expenseFormVisible = true;\n }\n }\n }, {\n key: \"submit\",\n value: function submit(e) {\n var _this2 = this;\n\n e.preventDefault();\n\n if (!this.kredits.currentUser) {\n window.alert('You need to connect your RSK account first.');\n return false;\n }\n\n if (!this.kredits.currentUserIsCore) {\n window.alert('Only core contributors can submit reimbursements.');\n return false;\n }\n\n var contributor = this.contributors.findBy('id', parseInt(this.recipientId));\n var attributes = {\n amount: parseInt(parseFloat(this.total) * 100000000),\n // convert to sats\n token: _environment.default.tokens['BTC'],\n recipientId: parseInt(this.recipientId),\n title: \"Expenses covered by \".concat(contributor.name),\n description: this.description,\n url: this.url,\n expenses: JSON.parse(JSON.stringify(this.expenses))\n };\n this.inProgress = true;\n this.kredits.addReimbursement(attributes).then(function\n /* reimbursement */\n () {\n _this2.router.transitionTo('budget');\n }).catch(function (e) {\n console.error('Could not add reimbursement:', e);\n window.alert('Something went wrong. Please check the browser console.');\n }).finally(function () {\n _this2.inProgress = false;\n });\n }\n }]);\n\n return AddReimbursementComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"exchangeRates\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"contributors\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"recipientId\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"total\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '0';\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"expenses\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return Ember.A([]);\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"expenseFormVisible\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"addExpensesFromFile\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addExpensesFromFile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateContributor\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"updateContributor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showExpenseForm\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"showExpenseForm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addExpenseItem\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"addExpenseItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeExpenseItem\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"removeExpenseItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype)), _class));\n _exports.default = AddReimbursementComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/budget-balances/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var BudgetBalancesComponent = (_dec = Ember.inject.service, _dec2 = Ember.computed.alias('communityFunds.balances'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(BudgetBalancesComponent, _Component);\n\n var _super = _createSuper(BudgetBalancesComponent);\n\n function BudgetBalancesComponent() {\n var _this;\n\n _classCallCheck(this, BudgetBalancesComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"communityFunds\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"balances\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(BudgetBalancesComponent, [{\n key: \"loading\",\n get: function get() {\n return !this.communityFunds.balancesLoaded;\n }\n }]);\n\n return BudgetBalancesComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"communityFunds\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"balances\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = BudgetBalancesComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/confirmed-in/component\", [\"exports\", \"@glimmer/component\", \"moment\"], function (_exports, _component, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ConfirmedInComponent = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ConfirmedInComponent, _Component);\n\n var _super = _createSuper(ConfirmedInComponent);\n\n function ConfirmedInComponent() {\n var _this;\n\n _classCallCheck(this, ConfirmedInComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ConfirmedInComponent, [{\n key: \"confirmedInBlocks\",\n get: function get() {\n return this.args.confirmedAtBlock - this.kredits.currentBlock;\n }\n }, {\n key: \"confirmedInSeconds\",\n get: function get() {\n // A new block is mined every 30 seconds on average\n return this.confirmedInBlocks * 30;\n }\n }, {\n key: \"confirmedInHumanTime\",\n get: function get() {\n return _moment.default.duration(this.confirmedInSeconds, \"seconds\").humanize();\n }\n }, {\n key: \"isConfirmed\",\n get: function get() {\n return this.confirmedInBlocks <= 0;\n }\n }]);\n\n return ConfirmedInComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = ConfirmedInComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/expense-list/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var ExpenseListComponent = /*#__PURE__*/function (_Component) {\n _inherits(ExpenseListComponent, _Component);\n\n var _super = _createSuper(ExpenseListComponent);\n\n function ExpenseListComponent() {\n _classCallCheck(this, ExpenseListComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ExpenseListComponent, [{\n key: \"showDeleteButton\",\n get: function get() {\n return !!this.args.deletable;\n }\n }]);\n\n return ExpenseListComponent;\n }(_component.default);\n\n _exports.default = ExpenseListComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/reimbursement-list/component\", [\"exports\", \"@glimmer/component\", \"kredits-web/config/environment\"], function (_exports, _component, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ReimbursementListComponent = (_dec = Ember.inject.service, _dec2 = Ember.computed.sort('args.items', 'itemSorting'), _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ReimbursementListComponent, _Component);\n\n var _super = _createSuper(ReimbursementListComponent);\n\n function ReimbursementListComponent() {\n var _this;\n\n _classCallCheck(this, ReimbursementListComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"itemSorting\", Object.freeze(['pendingStatus:asc', 'id:desc']));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"itemsSorted\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ReimbursementListComponent, [{\n key: \"ipfsGatewayUrl\",\n get: function get() {\n return _environment.default.ipfs.gatewayUrl;\n }\n }, {\n key: \"veto\",\n value: function veto(id) {\n this.kredits.vetoReimbursement(id).then(function (transaction) {\n console.debug('[controllers:budget] Veto submitted to chain: ' + transaction.hash);\n });\n }\n }]);\n\n return ReimbursementListComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"itemsSorted\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"veto\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"veto\"), _class.prototype)), _class));\n _exports.default = ReimbursementListComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/topbar-account-panel/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var TopbarAccountPanelComponent = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(TopbarAccountPanelComponent, _Component);\n\n var _super = _createSuper(TopbarAccountPanelComponent);\n\n function TopbarAccountPanelComponent() {\n var _this;\n\n _classCallCheck(this, TopbarAccountPanelComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"router\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"setupInProgress\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(TopbarAccountPanelComponent, [{\n key: \"userHasWallet\",\n get: function get() {\n return Ember.isPresent(window.ethereum);\n }\n }, {\n key: \"walletConnected\",\n get: function get() {\n return this.userHasWallet && this.kredits.hasAccounts;\n }\n }, {\n key: \"walletDisconnected\",\n get: function get() {\n return this.userHasWallet && !this.kredits.hasAccounts;\n }\n }, {\n key: \"signup\",\n value: function signup() {\n this.router.transitionTo('signup');\n }\n }, {\n key: \"connectWallet\",\n value: function () {\n var _connectWallet = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.setupInProgress = true;\n _context.next = 3;\n return this.kredits.connectWallet();\n\n case 3:\n this.setupInProgress = false;\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function connectWallet() {\n return _connectWallet.apply(this, arguments);\n }\n\n return connectWallet;\n }()\n }]);\n\n return TopbarAccountPanelComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"setupInProgress\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"signup\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"signup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"connectWallet\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"connectWallet\"), _class.prototype)), _class));\n _exports.default = TopbarAccountPanelComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ApplicationController = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(ApplicationController, _Ember$Controller);\n\n var _super = _createSuper(ApplicationController);\n\n function ApplicationController() {\n var _this;\n\n _classCallCheck(this, ApplicationController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(ApplicationController);\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = ApplicationController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/budget\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var BudgetController = (_dec = Ember.inject.service, _dec2 = Ember.computed.alias('kredits.reimbursementsUnconfirmed'), _dec3 = Ember.computed.alias('kredits.reimbursementsConfirmed'), (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(BudgetController, _Ember$Controller);\n\n var _super = _createSuper(BudgetController);\n\n function BudgetController() {\n var _this;\n\n _classCallCheck(this, BudgetController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"reimbursementsUnconfirmed\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"reimbursementsConfirmed\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(BudgetController);\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"reimbursementsUnconfirmed\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"reimbursementsConfirmed\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = BudgetController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/signup/account\", [\"exports\", \"kredits-web/config/environment\", \"web3-utils\"], function (_exports, _environment, _web3Utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AccountController = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(AccountController, _Ember$Controller);\n\n var _super = _createSuper(AccountController);\n\n function AccountController() {\n var _this;\n\n _classCallCheck(this, AccountController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"accountAddress\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AccountController, [{\n key: \"isValidEthAccount\",\n get: function get() {\n return (0, _web3Utils.isAddress)(this.accountAddress);\n }\n }, {\n key: \"signupButtonDisabled\",\n get: function get() {\n return !this.isValidEthAccount;\n }\n }, {\n key: \"completeSignup\",\n value: function completeSignup() {\n var _this2 = this;\n\n var payload = {\n accessToken: this.kredits.githubAccessToken,\n account: this.accountAddress\n };\n fetch(_environment.default.githubSignupUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n }).then(function (res) {\n return res.json();\n }).then(function (data) {\n if (data.error) {\n alert('Creating profile failed. We have been notified about this error and will take a look soon. Sorry!');\n console.warn('Creating contributor profile failed:', JSON.parse(data.error.body).error.message);\n return false;\n } else {\n console.log('[signup/account] Created contributor:', data);\n _this2.kredits.githubAccessToken = null;\n _this2.accountAddress = null;\n\n _this2.transitionToRoute('signup.complete');\n }\n });\n }\n }]);\n\n return AccountController;\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"accountAddress\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"completeSignup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"completeSignup\"), _class.prototype)), _class));\n _exports.default = AccountController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/signup/index\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var IndexController = (_dec = Ember._action, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(IndexController, _Ember$Controller);\n\n var _super = _createSuper(IndexController);\n\n function IndexController() {\n _classCallCheck(this, IndexController);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(IndexController, [{\n key: \"connectGithub\",\n value: function connectGithub() {\n window.location = _environment.default.githubConnectUrl;\n }\n }]);\n\n return IndexController;\n }(Ember.Controller), (_applyDecoratedDescriptor(_class.prototype, \"connectGithub\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"connectGithub\"), _class.prototype)), _class));\n _exports.default = IndexController;\n});","define(\"kredits-web/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberComponentManager.default;\n }\n });\n});","define(\"kredits-web/components/add-contribution/component\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Component.extend({\n kredits: Ember.inject.service(),\n attributes: null,\n contributors: Ember.computed('kredits.contributorsSorted.[]', function () {\n return this.kredits.contributorsSorted.map(function (c) {\n return {\n id: c.id.toString(),\n name: c.name\n };\n });\n }),\n isValidContributor: Ember.computed.notEmpty('contributorId'),\n isValidKind: Ember.computed.notEmpty('kind'),\n isValidAmount: Ember.computed('amount', function () {\n return parseInt(this.amount, 10) > 0;\n }),\n isValidDescription: Ember.computed.notEmpty('description'),\n isValidUrl: Ember.computed.notEmpty('url'),\n isValid: Ember.computed.and('isValidContributor', 'isValidKind', 'isValidAmount', 'isValidDescription'),\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('defaultDate', (0, _moment.default)().startOf('hour').toDate());\n this.set('defaultAttr', {\n contributorId: null,\n kind: null,\n date: this.defaultDate,\n amount: null,\n description: null,\n url: null,\n details: null\n });\n this.set('attributes', Ember.assign({}, this.defaultAttr, this.attributes));\n this.reset();\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit(evt) {\n var _this = this;\n\n evt.preventDefault();\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = this.getProperties(Object.keys(this.attributes));\n attributes.contributorId = parseInt(this.contributorId);\n var dateInput = attributes.date instanceof Array ? attributes.date[0] : attributes.date;\n\n var _dateInput$toISOStrin = dateInput.toISOString().split('T'),\n _dateInput$toISOStrin2 = _slicedToArray(_dateInput$toISOStrin, 2),\n date = _dateInput$toISOStrin2[0],\n time = _dateInput$toISOStrin2[1];\n\n var _ref = [date, time];\n attributes.date = _ref[0];\n attributes.time = _ref[1];\n this.set('inProgress', true);\n this.save(attributes).then(function\n /*contribution*/\n () {\n _this.reset();\n }, function (err) {\n console.warn(err);\n window.alert('Something went wrong. Check the browser console for details.');\n }).finally(function () {\n return _this.set('inProgress', false);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contribution/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Ht3NNTLA\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[10,\\\"form\\\"],[15,\\\"onsubmit\\\",[30,[36,1],[[32,0],\\\"submit\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Contributor:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,\\\"required\\\",\\\"\\\"],[15,\\\"onchange\\\",[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,[\\\"contributors\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"contributorId\\\"]],[32,1,[\\\"id\\\"]]],null]],[12],[1,[32,1,[\\\"name\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Kind:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,\\\"required\\\",\\\"\\\"],[15,\\\"onchange\\\",[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"bureaucracy\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"bureaucracy\\\"],null]],[12],[2,\\\"Bureaucracy\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"community\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"community\\\"],null]],[12],[2,\\\"Community\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"design\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"design\\\"],null]],[12],[2,\\\"Design\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"dev\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"dev\\\"],null]],[12],[2,\\\"Development\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"docs\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"docs\\\"],null]],[12],[2,\\\"Documentation\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"ops\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"ops\\\"],null]],[12],[2,\\\"IT Operations\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"outreach\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"outreach\\\"],null]],[12],[2,\\\"Outreach\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"qa\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"qa\\\"],null]],[12],[2,\\\"Quality Assurance\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"special\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"special\\\"],null]],[12],[2,\\\"Special\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Date:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,5],null,[[\\\"date\\\",\\\"defaultDate\\\",\\\"maxDate\\\",\\\"enableTime\\\",\\\"time_24hr\\\",\\\"onChange\\\"],[[32,0,[\\\"date\\\"]],[32,0,[\\\"defaultDate\\\"]],[32,0,[\\\"defaultDate\\\"]],true,true,[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"date\\\"]]],null]],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Amount:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"500\\\",[32,0,[\\\"amount\\\"]],[30,[36,6],[[32,0,[\\\"isValidAmount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Description:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[32,0,[\\\"description\\\"]],[30,[36,6],[[32,0,[\\\"isValidDescription\\\"]],\\\"valid\\\",\\\"\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"URL (optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[32,0,[\\\"url\\\"]],[30,[36,6],[[32,0,[\\\"isValidUrl\\\"]],\\\"valid\\\",\\\"\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,6],[[32,0,[\\\"details\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Details:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"pre\\\"],[12],[2,\\\" \\\"],[1,[32,0,[\\\"details\\\"]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[32,0,[\\\"inProgress\\\"]],[30,[36,6],[[32,0,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"eq\\\",\\\"action\\\",\\\"mut\\\",\\\"-track-array\\\",\\\"each\\\",\\\"ember-flatpickr\\\",\\\"if\\\",\\\"input\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contribution/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/component\", [\"exports\", \"web3-utils\"], function (_exports, _web3Utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n kredits: Ember.inject.service(),\n attributes: null,\n isValidAccount: Ember.computed('account', function () {\n return (0, _web3Utils.isAddress)(this.account);\n }),\n isValidName: Ember.computed.notEmpty('name'),\n isValidURL: Ember.computed.notEmpty('url'),\n isValidGithubUID: Ember.computed.notEmpty('github_uid'),\n isValidGithubUsername: Ember.computed.notEmpty('github_username'),\n isValidGiteaUsername: Ember.computed.notEmpty('gitea_username'),\n isValidWikiUsername: Ember.computed.notEmpty('wiki_username'),\n isValidZoomDisplayName: Ember.computed.notEmpty('zoom_display_name'),\n isValid: Ember.computed.and('isValidAccount', 'isValidName', 'isValidGithubUID'),\n inProgress: false,\n init: function init() {\n this._super.apply(this, arguments);\n\n this.setDefaultAttributes();\n this.reset();\n },\n setDefaultAttributes: function setDefaultAttributes() {\n if (Ember.isPresent(this.attributes)) {\n return;\n }\n\n this.set('attributes', {\n account: null,\n name: null,\n kind: 'person',\n url: null,\n github_username: null,\n github_uid: null,\n gitea_username: null,\n wiki_username: null,\n zoom_display_name: null\n });\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit(evt) {\n var _this = this;\n\n evt.preventDefault();\n\n if (!this.kredits.currentUserIsCore) {\n window.alert('Only core team members can edit profiles. Please ask someone to set you up.');\n return;\n }\n\n if (!this.isValid) {\n window.alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = Object.keys(this.attributes);\n var contributor = this.getProperties(attributes);\n this.set('inProgress', true);\n this.save(contributor).then(function () {\n _this.reset();\n }).catch(function (err) {\n console.warn(err);\n window.alert('Something went wrong. Please check the browser console.');\n }).finally(function () {\n _this.set('inProgress', false);\n\n _this.router.transitionTo('dashboard');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"sjEfCFXi\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"form\\\"],[15,\\\"onsubmit\\\",[30,[36,0],[[32,0],\\\"submit\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-account\\\"],[12],[2,\\\"Rootstock account\\\"],[13],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[[24,3,\\\"account\\\"],[24,1,\\\"c-account\\\"],[24,\\\"placeholder\\\",\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\"],[16,0,[30,[36,1],[[32,0,[\\\"isValidAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[32,0,[\\\"account\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-kind\\\"],[12],[2,\\\"Kind\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,\\\"required\\\",\\\"\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0],[30,[36,2],[[32,0,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,1,\\\"c-kind\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"person\\\"],[15,\\\"selected\\\",[30,[36,3],[[32,0,[\\\"kind\\\"]],\\\"person\\\"],null]],[12],[2,\\\"Person\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"organization\\\"],[15,\\\"selected\\\",[30,[36,3],[[32,0,[\\\"kind\\\"]],\\\"organization\\\"],null]],[12],[2,\\\"Organization\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-name\\\"],[12],[2,\\\"Name\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"name\\\",\\\"text\\\",[32,0,[\\\"name\\\"]],\\\"Zero Cool\\\",[30,[36,1],[[32,0,[\\\"isValidName\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-name\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-url\\\"],[12],[2,\\\"URL\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"url\\\",\\\"text\\\",[32,0,[\\\"url\\\"]],\\\"http://zerocool.bit\\\",[30,[36,1],[[32,0,[\\\"isValidURL\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-url\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-github-uid\\\"],[12],[2,\\\"GitHub UID\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_uid\\\",\\\"text\\\",[32,0,[\\\"github_uid\\\"]],\\\"2342\\\",[30,[36,1],[[32,0,[\\\"isValidGithubUID\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-uid\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-github-username\\\"],[12],[2,\\\"GitHub username\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_username\\\",\\\"text\\\",[32,0,[\\\"github_username\\\"]],\\\"zerocool\\\",[30,[36,1],[[32,0,[\\\"isValidGithubUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-username\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-gitea-username\\\"],[12],[2,\\\"Gitea username\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"gitea_username\\\",\\\"text\\\",[32,0,[\\\"gitea_username\\\"]],\\\"zerocool\\\",[30,[36,1],[[32,0,[\\\"isValidGiteaUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-gitea-username\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-wiki-username\\\"],[12],[2,\\\"Wiki username\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"wiki_username\\\",\\\"text\\\",[32,0,[\\\"wiki_username\\\"]],\\\"ZeroCool\\\",[30,[36,1],[[32,0,[\\\"isValidWikiUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-wiki-username\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-zoom-display-name\\\"],[12],[2,\\\"Zoom display name\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"zoom_display_name\\\",\\\"text\\\",[32,0,[\\\"zoom_display_name\\\"]],\\\"Zero Cool\\\",[30,[36,1],[[32,0,[\\\"isValidZoomDisplayName\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-zoom-display-name\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[32,0,[\\\"inProgress\\\"]],[30,[36,1],[[32,0,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\",\\\"mut\\\",\\\"eq\\\",\\\"input\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contributor/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-expense-item/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"xrdEJbVd\",\n \"block\": \"{\\\"symbols\\\":[\\\"currency\\\"],\\\"statements\\\":[[11,\\\"form\\\"],[24,1,\\\"add-expense-item\\\"],[24,\\\"novalidate\\\",\\\"\\\"],[4,[38,1],[\\\"submit\\\",[32,0,[\\\"submit\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"horizontal\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Amount:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@required\\\",\\\"@pattern\\\",\\\"@class\\\"],[\\\"expense-amount\\\",\\\"text\\\",\\\"10\\\",[32,0,[\\\"amount\\\"]],true,\\\"([0-9]*[.])?[0-9]+\\\",[32,0,[\\\"amountInputClass\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Currency:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,\\\"required\\\",\\\"\\\"],[24,3,\\\"expense-currency\\\"],[4,[38,1],[\\\"change\\\",[32,0,[\\\"updateCurrency\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,[\\\"currencies\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,1,[\\\"code\\\"]]],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"currency\\\"]],[32,1,[\\\"code\\\"]]],null]],[12],[1,[32,1,[\\\"code\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Date:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"ember-flatpickr\\\",[],[[\\\"@date\\\",\\\"@defaultDate\\\",\\\"@maxDate\\\",\\\"@enableTime\\\",\\\"@onChange\\\"],[[32,0,[\\\"date\\\"]],[32,0,[\\\"defaultDate\\\"]],[32,0,[\\\"defaultDate\\\"]],false,[30,[36,5],[[30,[36,4],[[32,0,[\\\"date\\\"]]],null]],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Title:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\",\\\"@required\\\"],[\\\"expense-title\\\",\\\"text\\\",[32,0,[\\\"title\\\"]],true]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Description (optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"expense-description\\\",\\\"text\\\",[32,0,[\\\"description\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"URL (optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"expense-url\\\",\\\"url\\\",[32,0,[\\\"url\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Tags (comma-separated, optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"expense-tags\\\",\\\"text\\\",[32,0,[\\\"tags\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@value\\\",\\\"@class\\\",\\\"@title\\\"],[\\\"submit\\\",\\\"Add\\\",\\\"green\\\",\\\"Add item to reimbursement\\\"]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"eq\\\",\\\"on\\\",\\\"-track-array\\\",\\\"each\\\",\\\"mut\\\",\\\"fn\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-expense-item/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-reimbursement/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"GxxUddPT\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[11,\\\"form\\\"],[24,\\\"novalidate\\\",\\\"\\\"],[4,[38,1],[\\\"submit\\\",[32,0,[\\\"submit\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Contributor:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,\\\"required\\\",\\\"\\\"],[4,[38,1],[\\\"change\\\",[32,0,[\\\"updateContributor\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,[\\\"contributors\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[30,[36,2],[[32,0,[\\\"contributorId\\\"]],[32,1,[\\\"id\\\"]]],null]],[12],[1,[32,1,[\\\"name\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"horizontal thirds total-amounts\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Total amount (BTC):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@required\\\",\\\"@pattern\\\",\\\"@class\\\"],[\\\"text\\\",\\\"0.0015\\\",[32,0,[\\\"total\\\"]],true,\\\"([0-9]*[.])?[0-9]+\\\",[32,0,[\\\"totalInputClass\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"EUR total\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@name\\\",\\\"@value\\\",\\\"@disabled\\\"],[\\\"text\\\",\\\"total-eur\\\",[32,0,[\\\"totalEUR\\\"]],true]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"USD total\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@name\\\",\\\"@value\\\",\\\"@disabled\\\"],[\\\"text\\\",\\\"total-usd\\\",[32,0,[\\\"totalUSD\\\"]],true]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Expense items\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"expenses\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"expense-list\\\",[],[[\\\"@expenses\\\",\\\"@removeExpenseItem\\\",\\\"@deletable\\\"],[[32,0,[\\\"expenses\\\"]],[32,0,[\\\"removeExpenseItem\\\"]],true]],null],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"green small\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[32,0,[\\\"showExpenseForm\\\"]]],null],[12],[2,\\\"+ Add another item\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[12],[2,\\\"No line items yet.\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"inProgress\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@title\\\"],[\\\"submit\\\",\\\"Submitting...\\\",true,\\\"Submit/propose this reimbursement\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@title\\\"],[\\\"submit\\\",\\\"Submit\\\",[32,0,[\\\"submitButtonDisabled\\\"]],\\\"Submit/propose this reimbursement\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,5],[[32,0,[\\\"expenseFormVisible\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"h3\\\"],[14,1,\\\"new-expense-item\\\"],[12],[2,\\\"New expense item\\\"],[13],[2,\\\"\\\\n \\\"],[8,\\\"add-expense-item\\\",[],[[\\\"@addExpenseItem\\\"],[[30,[36,0],[[32,0,[\\\"addExpenseItem\\\"]]],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"],[10,\\\"form\\\"],[14,1,\\\"add-expenses-from-file\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Add expense items from file\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"multiple\\\",\\\"false\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0,[\\\"addExpensesFromFile\\\"]]],null]],[14,\\\"accept\\\",\\\"application/json\\\"],[14,4,\\\"file\\\"],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"eq\\\",\\\"-track-array\\\",\\\"each\\\",\\\"if\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-reimbursement/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/budget-balances/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Ss15QE7U\",\n \"block\": \"{\\\"symbols\\\":[\\\"balance\\\"],\\\"statements\\\":[[10,\\\"table\\\"],[15,0,[31,[\\\"token-balances \\\",[30,[36,0],[[32,0,[\\\"loading\\\"]],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[2,\\\"Token\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[2,\\\"Amount\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[2,\\\"Fiat value\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,0,[\\\"balances\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"tr\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,[32,1,[\\\"token\\\",\\\"symbol\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"amount\\\"],[12],[1,[32,1,[\\\"confirmed_balance\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"fiat-amount\\\"],[12],[2,\\\"~\\\"],[1,[32,1,[\\\"balanceUSD\\\"]]],[2,\\\" USD\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/budget-balances/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var categoryColors = {\n community: \"#fb6868\",\n design: \"#fbe468\",\n dev: \"#e068fb\",\n docs: \"#97fb68\",\n ops: \"#8f68fb\"\n };\n\n var _default = Ember.Component.extend({\n contributions: null,\n chartOptions: Object.freeze({\n legend: {\n display: false\n }\n }),\n chartData: Ember.computed('contributions', function () {\n var kredits = this.contributions.filterBy('vetoed', false).map(function (c) {\n return {\n kind: c.kind,\n amount: c.amount\n };\n }).reduce(function (kinds, c) {\n if (c.kind in kinds) {\n kinds[c.kind] = kinds[c.kind] + c.amount;\n } else {\n kinds[c.kind] = c.amount;\n }\n\n return kinds;\n }, {});\n return {\n datasets: [{\n data: [kredits['community'], kredits['design'], kredits['dev'], kredits['ops'], kredits['docs']],\n borderColor: [categoryColors.community, categoryColors.design, categoryColors.dev, categoryColors.ops, categoryColors.docs],\n borderWidth: 1\n }],\n labels: ['Community', 'Design', 'Development', 'Operations & Infrastructure', 'Documentation']\n };\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"wfd6i6On\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"chart\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"ember-chart\\\",[],[[\\\"@type\\\",\\\"@data\\\",\\\"@options\\\",\\\"@width\\\",\\\"@height\\\"],[\\\"doughnut\\\",[32,0,[\\\"chartData\\\"]],[32,0,[\\\"chartOptions\\\"]],\\\"200\\\",\\\"200\\\"]],null],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/chart-contributions-by-type/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/confirmed-in/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Q4nwoyU+\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Confirming in \\\"],[10,\\\"strong\\\"],[12],[1,[32,0,[\\\"confirmedInBlocks\\\"]]],[13],[2,\\\" blocks (~ \\\"],[1,[32,0,[\\\"confirmedInHumanTime\\\"]]],[2,\\\")\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"unless\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/confirmed-in/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n tagName: 'div',\n classNames: ['contributions'],\n selectedContribution: null,\n showQuickFilter: false,\n hideSmallContributions: false,\n contributorId: null,\n contributionKind: null,\n kredits: Ember.inject.service(),\n contributorsSorting: Object.freeze(['name:asc']),\n contributors: Ember.computed.sort('kredits.contributors', 'contributorsSorting'),\n contributorsActive: Ember.computed('contributors.[]', 'contributions', function () {\n var activeIds = new Set(this.contributions.mapBy('contributorId'));\n return this.contributors.filter(function (c) {\n return activeIds.has(c.id);\n });\n }),\n contributionKinds: Ember.computed('contributions.[]', function () {\n return this.contributions.mapBy('kind').uniq();\n }),\n contributionsFiltered: Ember.computed('contributions.[]', 'hideSmallContributions', 'contributorId', 'contributionKind', function () {\n var _this = this;\n\n return this.contributions.filter(function (c) {\n var included = true;\n\n if (_this.hideSmallContributions && c.amount <= 500) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributorId) && c.contributorId !== parseInt(_this.contributorId)) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributionKind) && c.kind !== _this.contributionKind) {\n included = false;\n }\n\n return included;\n });\n }),\n actions: {\n veto: function veto(contributionId) {\n if (this.contractInteractionEnabled) {\n this.vetoContribution(contributionId);\n } else {\n window.alert('Only members can veto contributions. Please ask someone to set you up.');\n }\n },\n openContributionDetails: function openContributionDetails(contribution) {\n this.router.transitionTo('dashboard.contributions.show', contribution);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"6QjAzyse\",\n \"block\": \"{\\\"symbols\\\":[\\\"contribution\\\",\\\"kind\\\",\\\"contributor\\\",\\\"@selectedContributionId\\\",\\\"@showQuickFilter\\\",\\\"@loading\\\"],\\\"statements\\\":[[6,[37,5],[[32,5]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,0,\\\"quick-filter\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"filter-contributor\\\"],[12],[2,\\\"\\\\n Contributor:\\\\n \\\"],[10,\\\"select\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0],[30,[36,8],[[32,0,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[2,\\\"all\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,[\\\"contributorsActive\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,3,[\\\"id\\\"]]],[15,\\\"selected\\\",[30,[36,4],[[32,0,[\\\"contributorId\\\"]],[32,3,[\\\"id\\\"]]],null]],[12],[1,[32,3,[\\\"name\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"filter-contribution-kind\\\"],[12],[2,\\\"\\\\n Kind:\\\\n \\\"],[10,\\\"select\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0],[30,[36,8],[[32,0,[\\\"contributionKind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[2,\\\"all\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,[\\\"contributionKinds\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,2]],[15,\\\"selected\\\",[30,[36,4],[[32,0,[\\\"contributionKind\\\"]],[32,2]],null]],[12],[1,[30,[36,7],[[32,2]],null]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"filter-contribution-size\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[32,0,[\\\"hideSmallContributions\\\"]]]],null],[2,\\\"\\\\n Hide small contributions\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[10,\\\"ul\\\"],[15,0,[31,[\\\"item-list contribution-list \\\",[30,[36,5],[[32,6],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,[\\\"contributionsFiltered\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-contribution-id\\\",[32,1,[\\\"id\\\"]]],[16,0,[31,[[30,[36,6],[[32,1]],null],[30,[36,5],[[30,[36,4],[[32,1,[\\\"id\\\"]],[32,4]],null],\\\" selected\\\"],null]]]],[4,[38,0],[[32,0],\\\"openContributionDetails\\\",[32,1]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"meta\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"recipient\\\"],[12],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,1,[\\\"contributor\\\"]]]],null],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"category \\\",[32,1,[\\\"kind\\\"]]]]],[12],[2,\\\"(\\\"],[1,[32,1,[\\\"kind\\\"]]],[2,\\\")\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"title\\\"],[12],[1,[32,1,[\\\"description\\\"]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"kredits-amount\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[1,[32,1,[\\\"amount\\\"]]],[13],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"₭S\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,3],[[32,1,[\\\"vetoed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,3],[[30,[36,2],[[32,1]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[14,0,\\\"voting\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,1],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"click\\\",\\\"disabled\\\"],[\\\"button\\\",\\\"button small danger\\\",\\\"veto\\\",[30,[36,0],[[32,0],\\\"veto\\\",[32,1,[\\\"id\\\"]]],null],[32,1,[\\\"hasPendingChanges\\\"]]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"input\\\",\\\"is-confirmed-contribution\\\",\\\"unless\\\",\\\"eq\\\",\\\"if\\\",\\\"item-status\\\",\\\"capitalize-string\\\",\\\"mut\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contribution-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: '',\n router: Ember.inject.service(),\n selectedContributorId: null,\n actions: {\n openContributorDetails: function openContributorDetails(contributor) {\n this.router.transitionTo('dashboard.contributors.show', contributor);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"H19rOGuf\",\n \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"@selectedContributorId\\\",\\\"@showUnconfirmedKredits\\\",\\\"@loading\\\",\\\"@contributorList\\\"],\\\"statements\\\":[[10,\\\"table\\\"],[15,0,[31,[\\\"contributor-list \\\",[30,[36,2],[[32,4],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,5]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"tr\\\"],[14,\\\"role\\\",\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"openContributorDetails\\\",[32,1,[\\\"contributor\\\"]]],null]],[15,0,[31,[[30,[36,2],[[30,[36,3],[[32,1,[\\\"contributor\\\"]]],null],\\\"current-user\\\"],null],\\\" \\\",[30,[36,2],[[30,[36,1],[[32,1,[\\\"contributor\\\",\\\"id\\\"]],[32,2]],null],\\\"selected\\\"],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"person\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,1,[\\\"contributor\\\"]]]],null],[2,\\\" \\\"],[1,[32,1,[\\\"contributor\\\",\\\"name\\\"]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"kredits\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[1,[32,1,[\\\"amountTotal\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[1,[32,1,[\\\"amountConfirmed\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"₭S\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"eq\\\",\\\"if\\\",\\\"is-current-user\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contributor-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-chart\", [\"exports\", \"ember-cli-chart/components/ember-chart\"], function (_exports, _emberChart) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = _emberChart.default;\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-flatpickr\", [\"exports\", \"ember-flatpickr/components/ember-flatpickr\"], function (_exports, _emberFlatpickr) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberFlatpickr.default;\n }\n });\n});","define(\"kredits-web/components/expense-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Vj8N2eKw\",\n \"block\": \"{\\\"symbols\\\":[\\\"expense\\\",\\\"tag\\\",\\\"@removeExpenseItem\\\",\\\"@expenses\\\"],\\\"statements\\\":[[10,\\\"ul\\\"],[14,0,\\\"expense-list\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,4]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"expense-item\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"date\\\"],[12],[1,[30,[36,2],[[32,1,[\\\"date\\\"]]],null]],[2,\\\":\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"title\\\"],[12],[1,[32,1,[\\\"title\\\"]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"amount\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,3],[[32,1,[\\\"amount\\\"]],[32,1,[\\\"currency\\\"]]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"description\\\"],[12],[2,\\\"\\\\n \\\"],[1,[32,1,[\\\"description\\\"]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"tags\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,1,[\\\"tags\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"small yellow\\\"],[14,\\\"role\\\",\\\"none\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"icon-tag\\\",[],[[],[]],null],[1,[32,2]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,6],[[32,0,[\\\"showDeleteButton\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"danger small\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,3],[32,1]],null]],null],[12],[2,\\\"delete\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"fmt-date-localized\\\",\\\"fmt-fiat-currency\\\",\\\"-track-array\\\",\\\"each\\\",\\\"if\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/expense-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/external-account-link/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\",\n account: null,\n iconComponentName: Ember.computed('account.site', function () {\n if (this.account.site.match(/github|gitea|wiki|zoom/)) {\n return 'icon-account-' + this.account.site.replace(/\\./g, '-');\n } else {\n return 'icon-web-globe';\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/external-account-link/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"rwjEP1kx\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"a\\\"],[15,6,[32,0,[\\\"account\\\",\\\"url\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[15,\\\"title\\\",[31,[[32,0,[\\\"account\\\",\\\"username\\\"]],\\\" on \\\",[32,0,[\\\"account\\\",\\\"site\\\"]]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"site\\\"],[12],[1,[32,0,[\\\"account\\\",\\\"site\\\"]]],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,0],[[32,0,[\\\"iconComponentName\\\"]]],null]],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/external-account-link/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n classNames: ['loading-spinner']\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"RDvW8Yf/\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:xlink\\\",\\\"http://www.w3.org/1999/xlink\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"x\\\",\\\"0px\\\"],[14,\\\"y\\\",\\\"0px\\\"],[14,\\\"viewBox\\\",\\\"0 0 132 100\\\"],[14,\\\"enable-background\\\",\\\"new 0 0 100 100\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,1,\\\"path-comet\\\"],[14,\\\"d\\\",\\\"M79.062,24.173L79.062,24.173l-0.021-0.011c-0.068-0.03-0.137-0.062-0.204-0.093L42.392,7.337\\\\n c0,0,3.065,14.104,4.458,18.019l0,0c0,0-41.754-12.481-46.85-13.67c1.67,6.52,30.607,62.492,30.607,62.492\\\\n c5.848,11.873,19.394,18.485,33.522,18.485c19.811,0,35.87-16.059,35.87-35.869C100,42.313,91.418,29.837,79.062,24.173z\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Loading data...\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/loading-spinner/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/main-navigation-menu/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"3Bc8huBy\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"nav\\\"],[14,1,\\\"main-menu\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"ul\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"dashboard\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Dashboard\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"budget\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Budget\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"li\\\"],[12],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"about\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"About\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/main-navigation-menu/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/reimbursement-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"/SHVSc1V\",\n \"block\": \"{\\\"symbols\\\":[\\\"reimbursement\\\",\\\"@loading\\\"],\\\"statements\\\":[[10,\\\"ul\\\"],[15,0,[31,[\\\"item-list spaced reimbursement-list \\\",[30,[36,4],[[32,2],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,6],[[30,[36,5],[[30,[36,5],[[32,0,[\\\"itemsSorted\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[15,\\\"data-reimbursement-id\\\",[32,1,[\\\"id\\\"]]],[15,0,[31,[[30,[36,2],[[32,1]],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"meta\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"recipient\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,1,[\\\"contributor\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"title\\\"],[12],[2,\\\"\\\\n Expenses covered by \\\"],[1,[32,1,[\\\"contributor\\\",\\\"name\\\"]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"token-amount\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,3],[[32,1,[\\\"amount\\\"]]],null]],[13],[2,\\\" \\\"],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"BTC\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[8,\\\"expense-list\\\",[],[[\\\"@expenses\\\"],[[32,1,[\\\"expenses\\\"]]]],null],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"meta\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"confirmation-eta\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"confirmed-in\\\",[],[[\\\"@confirmedAtBlock\\\"],[[32,1,[\\\"confirmedAt\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[31,[[32,0,[\\\"ipfsGatewayUrl\\\"]],\\\"/\\\",[32,1,[\\\"ipfsHash\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"\\\\n Inspect IPFS data\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[32,0,[\\\"kredits\\\",\\\"currentUserIsCore\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[32,1,[\\\"vetoed\\\"]]],[24,0,\\\"button small danger\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,0,[\\\"veto\\\"]],[32,1,[\\\"id\\\"]]],null]],null],[12],[2,\\\"veto\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"item-status\\\",\\\"sats-to-btc\\\",\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/reimbursement-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/topbar-account-panel/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"fiv0QGp6\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"section\\\"],[14,1,\\\"user-account\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"setupInProgress\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" Connecting account...\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[30,[36,2],[[32,0,[\\\"walletConnected\\\"]],[32,0,[\\\"kredits\\\",\\\"currentUser\\\"]]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[1,[32,0,[\\\"kredits\\\",\\\"currentUser\\\",\\\"name\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"span\\\"],[14,0,\\\"anonymous\\\"],[12],[2,\\\"Anonymous\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"signup\\\"],null]],[14,1,\\\"signup\\\"],[14,0,\\\"small\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"Sign up\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"walletDisconnected\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"connectWallet\\\"],null]],[14,1,\\\"connect\\\"],[14,0,\\\"small green\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"Connect wallet\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\",\\\"and\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/topbar-account-panel/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var SIZES = {\n 'small': '128',\n // pixels\n 'medium': '256',\n 'large': '512'\n };\n\n var _default = Ember.Component.extend({\n contributor: null,\n tagName: 'img',\n classNames: ['avatar'],\n classNameBindings: ['size'],\n attributeBindings: ['src', 'title'],\n size: 'small',\n src: Ember.computed.alias('avatarURL'),\n title: Ember.computed.alias('contributor.name'),\n avatarURL: Ember.computed('contributor.github_uid', 'size', function () {\n var github_uid = this.contributor.github_uid;\n\n if (github_uid) {\n return \"https://avatars2.githubusercontent.com/u/\".concat(github_uid, \"?v=3&s=\").concat(SIZES[this.size]);\n } else {\n // TODO use custom avatar\n return '';\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"PL5L75/g\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/user-avatar/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n queryParams: ['contributorId', 'kind', 'amount'],\n contributors: Ember.computed.alias('kredits.contributors'),\n minedContributors: Ember.computed.filterBy('contributors', 'id'),\n contributorsSorting: Object.freeze(['name:asc']),\n sortedContributors: Ember.computed.sort('minedContributors', 'contributorsSorting'),\n actions: {\n save: function save(contribution) {\n var _this = this;\n\n var contributor = this.contributors.findBy('id', contribution.contributorId);\n contribution.contributorIpfsHash = contributor.ipfsHash;\n return this.kredits.addContribution(contribution).then(function (contribution) {\n _this.transitionToRoute('index');\n\n return contribution;\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributions/resubmit\", [\"exports\", \"kredits-web/controllers/contributions/new\"], function (_exports, _new) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _new.default.extend({\n attributes: null\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(attributes) {\n return this.kredits.updateContributor(this.model.id, attributes);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(contributor) {\n return this.kredits.addContributor(contributor);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n showDetailsPane: false,\n selectedContributorId: null,\n selectedContributionId: null,\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n contributions: Ember.computed.alias('kredits.contributions'),\n contributionsConfirmed: Ember.computed.alias('kredits.contributionsConfirmed'),\n contributionsUnconfirmed: Ember.computed.alias('kredits.contributionsUnconfirmed'),\n contributionsSorting: Object.freeze(['date:desc', 'time:desc', 'id:desc']),\n contributionsUnconfirmedSorted: Ember.computed.sort('contributionsUnconfirmed', 'contributionsSorting'),\n contributionsConfirmedSorted: Ember.computed.sort('contributionsConfirmed', 'contributionsSorting'),\n kreditsByContributor: Ember.computed.alias('kredits.kreditsByContributor'),\n kreditsToplistSorting: Ember.computed('showUnconfirmedKredits', function () {\n return this.showUnconfirmedKredits ? ['amountTotal:desc'] : ['amountConfirmed:desc'];\n }),\n kreditsToplist: Ember.computed.sort('kreditsByContributor', 'kreditsToplistSorting'),\n showUnconfirmedKredits: true,\n hideUnconfirmedKredits: Ember.computed.not('showUnconfirmedKredits'),\n showQuickFilterUnconfirmed: false,\n showQuickFilterConfirmed: false,\n showFullContributionSync: Ember.computed.gt('kredits.missingHistoricContributionsCount', 0),\n actions: {\n vetoContribution: function vetoContribution(contributionId) {\n this.kredits.veto(contributionId).then(function (transaction) {\n console.debug('[controllers:index] Veto submitted to chain: ' + transaction.hash);\n });\n },\n toggleQuickFilterUnconfirmed: function toggleQuickFilterUnconfirmed() {\n this.toggleProperty('showQuickFilterUnconfirmed');\n },\n toggleQuickFilterConfirmed: function toggleQuickFilterConfirmed() {\n this.toggleProperty('showQuickFilterConfirmed');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard/contributions/show\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n ipfsGatewayUrl: Ember.computed(function () {\n return _environment.default.ipfs.gatewayUrl;\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard/contributors/show\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n roleName: Ember.computed('model.isCore', 'totalKreditsEarned', function () {\n if (this.model.isCore) return 'Core Contributor';\n if (this.model.totalKreditsEarned <= 5000) return 'Newcomer';\n return 'Contributor';\n }),\n ipfsGatewayUrl: Ember.computed(function () {\n return _environment.default.ipfs.gatewayUrl;\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"and\", {\n enumerable: true,\n get: function get() {\n return _and.and;\n }\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _and.default;\n }\n });\n});","define(\"kredits-web/helpers/app-version\", [\"exports\", \"kredits-web/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _environment, _regexp) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.appVersion = appVersion;\n _exports.default = void 0;\n\n function appVersion(_) {\n var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var version = _environment.default.APP.version; // e.g. 1.0.0-alpha.1+4jds75hf\n // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n\n var versionOnly = hash.versionOnly || hash.hideSha;\n var shaOnly = hash.shaOnly || hash.hideVersion;\n var match = null;\n\n if (versionOnly) {\n if (hash.showExtended) {\n match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n } // Fallback to just version\n\n\n if (!match) {\n match = version.match(_regexp.versionRegExp); // 1.0.0\n }\n }\n\n if (shaOnly) {\n match = version.match(_regexp.shaRegExp); // 4jds75hf\n }\n\n return match ? match[0] : version;\n }\n\n var _default = Ember.Helper.helper(appVersion);\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/await\", [\"exports\", \"ember-promise-helpers/helpers/await\"], function (_exports, _await) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _await.default;\n }\n });\n});","define(\"kredits-web/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _cancelAll.default;\n }\n });\n});","define(\"kredits-web/helpers/capitalize-string\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n string = _ref2[0];\n\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/equal\"], function (_exports, _equal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _equal.default;\n }\n });\n Object.defineProperty(_exports, \"equal\", {\n enumerable: true,\n get: function get() {\n return _equal.equal;\n }\n });\n});","define(\"kredits-web/helpers/fmt-crypto-currency\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function fmtCryptoCurrency(params\n /*, hash*/\n ) {\n var fmtAmount;\n var amount = params[0];\n var code = params[1];\n\n switch (code) {\n case 'RBTC':\n fmtAmount = amount / 1000000000000000000;\n break;\n\n case 'BTC':\n fmtAmount = amount / 100000000;\n break;\n }\n\n return fmtAmount;\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/fmt-date-localized\", [\"exports\", \"kredits-web/utils/get-locale\"], function (_exports, _getLocale) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function (dateStr) {\n var date = new Date(dateStr);\n var locale = (0, _getLocale.default)();\n return new Intl.DateTimeFormat(locale).format(date);\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/fmt-fiat-currency\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function fmtFiatCurrency(params) {\n var lang = navigator.language || navigator.userLanguage;\n var formatter = new Intl.NumberFormat(lang, {\n style: 'currency',\n currency: params[1] || 'EUR',\n currencyDisplay: 'code'\n });\n return formatter.format(params[0]);\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gt.default;\n }\n });\n Object.defineProperty(_exports, \"gt\", {\n enumerable: true,\n get: function get() {\n return _gt.gt;\n }\n });\n});","define(\"kredits-web/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gte.default;\n }\n });\n Object.defineProperty(_exports, \"gte\", {\n enumerable: true,\n get: function get() {\n return _gte.gte;\n }\n });\n});","define(\"kredits-web/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isArray.default;\n }\n });\n Object.defineProperty(_exports, \"isArray\", {\n enumerable: true,\n get: function get() {\n return _isArray.isArray;\n }\n });\n});","define(\"kredits-web/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBefore.default;\n }\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/router\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n var Router = /*#__PURE__*/function (_Ember$Router) {\n _inherits(Router, _Ember$Router);\n\n var _super = _createSuper(Router);\n\n function Router() {\n var _this;\n\n _classCallCheck(this, Router);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"location\", _environment.default.locationType);\n\n _defineProperty(_assertThisInitialized(_this), \"rootURL\", _environment.default.rootURL);\n\n return _this;\n }\n\n return _createClass(Router);\n }(Ember.Router);\n\n _exports.default = Router;\n Router.map(function () {\n this.route('dashboard', function () {\n this.route('contributors', function () {\n this.route('show', {\n path: ':id'\n });\n });\n this.route('contributions', function () {\n this.route('show', {\n path: ':id'\n });\n });\n });\n this.route('contributions', function () {\n this.route('new', {\n queryParams: ['contributorId', 'kind', 'amount']\n });\n this.route('resubmit', {\n path: ':id/resubmit'\n });\n });\n this.route('contributors', function () {\n this.route('new');\n this.route('edit', {\n path: ':id/edit'\n });\n });\n this.route('signup', function () {\n this.route('github');\n this.route('account');\n this.route('complete');\n });\n this.route('budget', function () {\n this.route('expenses');\n this.route('reimbursements', function () {});\n });\n this.route('reimbursements', function () {\n this.route('new');\n });\n this.route('about');\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/about\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var AboutRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(AboutRoute, _Ember$Route);\n\n var _super = _createSuper(AboutRoute);\n\n function AboutRoute() {\n _classCallCheck(this, AboutRoute);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(AboutRoute);\n }(Ember.Route);\n\n _exports.default = AboutRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ApplicationRoute = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(ApplicationRoute, _Ember$Route);\n\n var _super = _createSuper(ApplicationRoute);\n\n function ApplicationRoute() {\n var _this;\n\n _classCallCheck(this, ApplicationRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"communityFunds\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ApplicationRoute, [{\n key: \"beforeModel\",\n value: function\n /* transition */\n beforeModel() {\n var _this2 = this;\n\n return this.kredits.setup().then(function () {\n _this2.kredits.kredits.preflightChecks().catch(function (error) {\n console.error('Kredits preflight check failed!');\n console.error(error);\n });\n }).catch(function (error) {\n console.log('Error initializing Kredits', error);\n });\n }\n }, {\n key: \"model\",\n value: function model() {\n var _this3 = this;\n\n return this.kredits.loadInitialData().then(function () {\n _this3.kredits.addContractEventHandlers();\n });\n }\n }, {\n key: \"afterModel\",\n value: function afterModel() {\n if (this.kredits.contributorsNeedSync) {\n Ember.run.schedule('afterRender', this.kredits.syncContributors, this.kredits.syncContributors.perform);\n }\n\n Ember.run.schedule('afterRender', this.communityFunds.fetchBalances, this.communityFunds.fetchBalances.perform);\n }\n }]);\n\n return ApplicationRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"communityFunds\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = ApplicationRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/budget\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var BudgetRoute = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(BudgetRoute, _Ember$Route);\n\n var _super = _createSuper(BudgetRoute);\n\n function BudgetRoute() {\n var _this;\n\n _classCallCheck(this, BudgetRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"browserCache\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(BudgetRoute, [{\n key: \"model\",\n value: function () {\n var _model = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var numCachedReimbursements;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(Ember.isPresent(this.kredits.reimbursements) && Ember.isEmpty(this.kredits.reimbursementsPending))) {\n _context.next = 5;\n break;\n }\n\n console.debug('[route:budget] Reimbursements loaded before, no need to sync or load');\n return _context.abrupt(\"return\");\n\n case 5:\n _context.next = 7;\n return this.browserCache.reimbursements.length();\n\n case 7:\n numCachedReimbursements = _context.sent;\n\n if (!(numCachedReimbursements > 0)) {\n _context.next = 14;\n break;\n }\n\n _context.next = 11;\n return this.kredits.loadObjectsFromCache('Reimbursement');\n\n case 11:\n this.kredits.set('reimbursementsNeedSync', true);\n _context.next = 16;\n break;\n\n case 14:\n _context.next = 16;\n return this.kredits.fetchObjects('Reimbursement', {\n page: {\n size: 10\n }\n });\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function model() {\n return _model.apply(this, arguments);\n }\n\n return model;\n }()\n }, {\n key: \"afterModel\",\n value: function afterModel() {\n if (this.kredits.reimbursementsNeedSync) {\n Ember.run.schedule('afterRender', this.kredits.syncReimbursements, this.kredits.syncReimbursements.perform);\n }\n\n Ember.run.schedule('afterRender', this.kredits.fetchMissingReimbursements, this.kredits.fetchMissingReimbursements.perform);\n }\n }]);\n\n return BudgetRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"browserCache\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = BudgetRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/budget/expenses\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var BudgetExpensesRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(BudgetExpensesRoute, _Ember$Route);\n\n var _super = _createSuper(BudgetExpensesRoute);\n\n function BudgetExpensesRoute() {\n _classCallCheck(this, BudgetExpensesRoute);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(BudgetExpensesRoute);\n }(Ember.Route);\n\n _exports.default = BudgetExpensesRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var ContributionsNewRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(ContributionsNewRoute, _Ember$Route);\n\n var _super = _createSuper(ContributionsNewRoute);\n\n function ContributionsNewRoute() {\n _classCallCheck(this, ContributionsNewRoute);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ContributionsNewRoute, [{\n key: \"model\",\n value: function model(params) {\n return {\n params: params\n };\n }\n }]);\n\n return ContributionsNewRoute;\n }(Ember.Route);\n\n _exports.default = ContributionsNewRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var DashboardRoute = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(DashboardRoute, _Ember$Route);\n\n var _super = _createSuper(DashboardRoute);\n\n function DashboardRoute() {\n var _this;\n\n _classCallCheck(this, DashboardRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DashboardRoute, [{\n key: \"afterModel\",\n value: function afterModel() {\n if (this.kredits.contributionsNeedSync) {\n Ember.run.schedule('afterRender', this.kredits.syncContributions, this.kredits.syncContributions.perform);\n } // TODO fetch automatically under a certain threshold\n // The browser might delete cached data and we don't need manual re-syncs\n // depending on how little is missing\n // schedule('afterRender', this.kredits.fetchMissingContributions,\n // this.kredits.fetchMissingContributions.perform);\n\n }\n }]);\n\n return DashboardRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = DashboardRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/reimbursements/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var ReimbursementsNewRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(ReimbursementsNewRoute, _Ember$Route);\n\n var _super = _createSuper(ReimbursementsNewRoute);\n\n function ReimbursementsNewRoute() {\n _classCallCheck(this, ReimbursementsNewRoute);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ReimbursementsNewRoute, [{\n key: \"model\",\n value: function model(params) {\n return {\n params: params\n };\n }\n }]);\n\n return ReimbursementsNewRoute;\n }(Ember.Route);\n\n _exports.default = ReimbursementsNewRoute;\n});","define(\"kredits-web/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBetween.default;\n }\n });\n});","define(\"kredits-web/helpers/is-confirmed-contribution\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contribution = _ref2[0];\n\n return !contribution.vetoed && contribution.confirmedAt <= this.currentBlock;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-current-user\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentUser: Ember.computed.alias('kredits.currentUser'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contributor = _ref2[0];\n\n return Ember.isPresent(contributor) && Ember.isPresent(this.currentUser) && contributor.account === this.currentUser.account;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isEmpty.default;\n }\n });\n});","define(\"kredits-web/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isEqual.default;\n }\n });\n Object.defineProperty(_exports, \"isEqual\", {\n enumerable: true,\n get: function get() {\n return _isEqual.isEqual;\n }\n });\n});","define(\"kredits-web/helpers/is-fulfilled\", [\"exports\", \"ember-promise-helpers/helpers/is-fulfilled\"], function (_exports, _isFulfilled) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isFulfilled.default;\n }\n });\n});","define(\"kredits-web/helpers/is-pending\", [\"exports\", \"ember-promise-helpers/helpers/is-pending\"], function (_exports, _isPending) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isPending.default;\n }\n });\n});","define(\"kredits-web/helpers/is-rejected\", [\"exports\", \"ember-promise-helpers/helpers/is-rejected\"], function (_exports, _isRejected) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isRejected.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSame.default;\n }\n });\n});","define(\"kredits-web/helpers/item-status\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n item = _ref2[0];\n\n this.setupRecompute(item);\n var status = [];\n\n if (item.vetoed) {\n status.push('vetoed');\n } else if (item.confirmedAt > this.currentBlock) {\n status.push('unconfirmed');\n } else {\n status.push('confirmed');\n }\n\n if (item.hasPendingChanges) {\n status.push('pending');\n }\n\n return status.join(' ');\n },\n destroy: function destroy() {\n if (this.teardown) this.teardown();\n\n this._super.apply(this, arguments);\n },\n setupRecompute: function setupRecompute(item) {\n var _this = this;\n\n if (this.teardown) this.teardown();\n item.addObserver('vetoed', this, this.triggerRecompute);\n item.addObserver('confirmedAt', this, this.triggerRecompute);\n item.addObserver('currentBlock', this, this.triggerRecompute);\n item.addObserver('hasPendingChanges', this, this.triggerRecompute);\n\n this.teardown = function () {\n item.removeObserver('vetoed', _this, _this.triggerRecompute);\n item.removeObserver('confirmedAt', _this, _this.triggerRecompute);\n item.removeObserver('currentBlock', _this, _this.triggerRecompute);\n item.removeObserver('hasPendingChanges', _this, _this.triggerRecompute);\n };\n },\n triggerRecompute: function triggerRecompute() {\n Ember.run.once(this, this.recompute);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lt.default;\n }\n });\n Object.defineProperty(_exports, \"lt\", {\n enumerable: true,\n get: function get() {\n return _lt.lt;\n }\n });\n});","define(\"kredits-web/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lte.default;\n }\n });\n Object.defineProperty(_exports, \"lte\", {\n enumerable: true,\n get: function get() {\n return _lte.lte;\n }\n });\n});","define(\"kredits-web/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentAdd.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentCalendar.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDiff.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDuration.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFormat.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFromNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFrom.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentSubtract.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToDate.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentTo.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _moment.default;\n }\n });\n});","define(\"kredits-web/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _notEqual.default;\n }\n });\n Object.defineProperty(_exports, \"notEqualHelper\", {\n enumerable: true,\n get: function get() {\n return _notEqual.notEqualHelper;\n }\n });\n});","define(\"kredits-web/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _not.default;\n }\n });\n Object.defineProperty(_exports, \"not\", {\n enumerable: true,\n get: function get() {\n return _not.not;\n }\n });\n});","define(\"kredits-web/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _now.default;\n }\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/signup/account\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var SignupAccountRoute = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(SignupAccountRoute, _Ember$Route);\n\n var _super = _createSuper(SignupAccountRoute);\n\n function SignupAccountRoute() {\n var _this;\n\n _classCallCheck(this, SignupAccountRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(SignupAccountRoute, [{\n key: \"setupController\",\n value: function () {\n var _setupController = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(controller) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (window.ethereum) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 2:\n if (!this.kredits.hasAccounts) {\n _context.next = 6;\n break;\n }\n\n controller.accountAddress = this.kredits.currentUserAccounts.firstObject;\n _context.next = 7;\n break;\n\n case 6:\n return _context.abrupt(\"return\", this.kredits.connectWallet());\n\n case 7:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function setupController(_x) {\n return _setupController.apply(this, arguments);\n }\n\n return setupController;\n }()\n }, {\n key: \"redirect\",\n value: function redirect() {\n if (Ember.isEmpty(this.kredits.githubAccessToken)) {\n this.transitionTo('signup.index');\n }\n }\n }]);\n\n return SignupAccountRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = SignupAccountRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/services/browser-cache\", [\"exports\", \"localforage\", \"kredits-web/config/environment\"], function (_exports, localforage, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function createStore(name) {\n var networkName;\n\n if (_environment.default.web3NetworkName) {\n networkName = _environment.default.web3NetworkName.toLocaleLowerCase().replace(' ', '-');\n } else {\n networkName = 'custom';\n }\n\n return localforage.createInstance({\n name: \"kredits:\".concat(networkName, \":\").concat(name)\n });\n }\n\n var BrowserCacheService = /*#__PURE__*/function (_Ember$Service) {\n _inherits(BrowserCacheService, _Ember$Service);\n\n var _super = _createSuper(BrowserCacheService);\n\n function BrowserCacheService() {\n var _this;\n\n _classCallCheck(this, BrowserCacheService);\n\n _this = _super.apply(this, arguments);\n _this.stores = {\n contributors: createStore('contributors'),\n contributions: createStore('contributions'),\n reimbursements: createStore('reimbursements')\n };\n return _this;\n }\n\n _createClass(BrowserCacheService, [{\n key: \"contributors\",\n get: function get() {\n return this.stores.contributors;\n }\n }, {\n key: \"contributions\",\n get: function get() {\n return this.stores.contributions;\n }\n }, {\n key: \"reimbursements\",\n get: function get() {\n return this.stores.reimbursements;\n }\n }]);\n\n return BrowserCacheService;\n }(Ember.Service);\n\n _exports.default = BrowserCacheService;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/services/community-funds\", [\"exports\", \"ember-concurrency-decorators\", \"kredits-web/config/environment\"], function (_exports, _emberConcurrencyDecorators, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n\n function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\n function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var CommunityFundsService = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, (_class = /*#__PURE__*/function (_Ember$Service) {\n _inherits(CommunityFundsService, _Ember$Service);\n\n var _super = _createSuper(CommunityFundsService);\n\n function CommunityFundsService() {\n var _this;\n\n _classCallCheck(this, CommunityFundsService);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"exchangeRates\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"balancesLoaded\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"balances\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CommunityFundsService, [{\n key: \"fetchBalances\",\n value: /*#__PURE__*/regeneratorRuntime.mark(function fetchBalances() {\n var _this2 = this;\n\n return regeneratorRuntime.wrap(function fetchBalances$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return fetch(_environment.default.btcBalanceAPI).then(function (res) {\n return res.json();\n }).then(function (res) {\n return _this2.processBalances(res);\n }).catch(function (err) {\n console.log(\"[community-funds] Fetching balances failed:\");\n console.error(err);\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, fetchBalances);\n })\n }, {\n key: \"processBalances\",\n value: function () {\n var _processBalances = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {\n var lang, balanceUSD;\n return regeneratorRuntime.wrap(function _callee$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return this.exchangeRates.fetchRates();\n\n case 2:\n // Format and round the approximate USD value\n lang = navigator.language || navigator.userLanguage;\n balanceUSD = res.confirmed_balance * this.exchangeRates.btcusd;\n res.balanceUSD = Math.round(balanceUSD).toLocaleString(lang);\n this.balances.pushObject(_objectSpread(_objectSpread({}, res), {\n token: {\n name: 'BTC',\n symbol: 'BTC'\n }\n }));\n this.balancesLoaded = true;\n\n case 7:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee, this);\n }));\n\n function processBalances(_x) {\n return _processBalances.apply(this, arguments);\n }\n\n return processBalances;\n }()\n }]);\n\n return CommunityFundsService;\n }(Ember.Service), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"exchangeRates\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"balancesLoaded\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"balances\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return Ember.A([]);\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"fetchBalances\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBalances\"), _class.prototype)), _class));\n _exports.default = CommunityFundsService;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/services/exchange-rates\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n // Need to go through proxy for CORS headers\n var bitstampBaseUrl = \"\".concat(_environment.default.corsProxy, \"https://www.bitstamp.net/api/v2\");\n\n function fetchFromBitstamp(_x) {\n return _fetchFromBitstamp.apply(this, arguments);\n }\n\n function _fetchFromBitstamp() {\n _fetchFromBitstamp = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(currencyPair) {\n var res;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return fetch(\"\".concat(bitstampBaseUrl, \"/ticker/\").concat(currencyPair, \"/\")).then(function (r) {\n return r.json();\n });\n\n case 3:\n res = _context.sent;\n return _context.abrupt(\"return\", parseFloat(res.vwap));\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n console.error('Could not fetch exchange rate from Bitstamp:', _context.t0);\n return _context.abrupt(\"return\", 0);\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 7]]);\n }));\n return _fetchFromBitstamp.apply(this, arguments);\n }\n\n var ExchangeRatesService = (_dec = Ember._tracked, _dec2 = Ember._tracked, (_class = /*#__PURE__*/function (_Ember$Service) {\n _inherits(ExchangeRatesService, _Ember$Service);\n\n var _super = _createSuper(ExchangeRatesService);\n\n function ExchangeRatesService() {\n var _this;\n\n _classCallCheck(this, ExchangeRatesService);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"btceur\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"btcusd\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ExchangeRatesService, [{\n key: \"fetchRates\",\n value: function () {\n var _fetchRates = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var source,\n _args2 = arguments;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n source = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : 'bitstamp';\n _context2.t0 = source;\n _context2.next = _context2.t0 === 'bitstamp' ? 4 : 10;\n break;\n\n case 4:\n _context2.next = 6;\n return fetchFromBitstamp('btceur');\n\n case 6:\n this.btceur = _context2.sent;\n _context2.next = 9;\n return fetchFromBitstamp('btcusd');\n\n case 9:\n this.btcusd = _context2.sent;\n\n case 10:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function fetchRates() {\n return _fetchRates.apply(this, arguments);\n }\n\n return fetchRates;\n }()\n }]);\n\n return ExchangeRatesService;\n }(Ember.Service), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"btceur\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"btcusd\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n })), _class));\n _exports.default = ExchangeRatesService;\n});","define(\"kredits-web/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _or.default;\n }\n });\n Object.defineProperty(_exports, \"or\", {\n enumerable: true,\n get: function get() {\n return _or.or;\n }\n });\n});","define(\"kredits-web/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _perform.default;\n }\n });\n});","define(\"kredits-web/helpers/promise-all\", [\"exports\", \"ember-promise-helpers/helpers/promise-all\"], function (_exports, _promiseAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseAll.default;\n }\n });\n});","define(\"kredits-web/helpers/promise-hash\", [\"exports\", \"ember-promise-helpers/helpers/promise-hash\"], function (_exports, _promiseHash) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseHash.default;\n }\n });\n});","define(\"kredits-web/helpers/promise-rejected-reason\", [\"exports\", \"ember-promise-helpers/helpers/promise-rejected-reason\"], function (_exports, _promiseRejectedReason) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseRejectedReason.default;\n }\n });\n});","define(\"kredits-web/helpers/sats-to-btc\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function satsToBtc(amount\n /*, hash*/\n ) {\n return amount / 100000000;\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _task.default;\n }\n });\n});","define(\"kredits-web/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _utc.default;\n }\n });\n Object.defineProperty(_exports, \"utc\", {\n enumerable: true,\n get: function get() {\n return _utc.utc;\n }\n });\n});","define(\"kredits-web/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _xor.default;\n }\n });\n Object.defineProperty(_exports, \"xor\", {\n enumerable: true,\n get: function get() {\n return _xor.xor;\n }\n });\n});","define(\"kredits-web/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"kredits-web/config/environment\"], function (_exports, _initializerFactory, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var name, version;\n\n if (_environment.default.APP) {\n name = _environment.default.APP.name;\n version = _environment.default.APP.version;\n }\n\n var _default = {\n name: 'App Version',\n initialize: (0, _initializerFactory.default)(name, version)\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = {\n name: 'container-debug-adapter',\n initialize: function initialize() {\n var app = arguments[1] || arguments[0];\n app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n }\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/ember-concurrency\", [\"exports\", \"ember-concurrency/initializers/ember-concurrency\"], function (_exports, _emberConcurrency) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberConcurrency.default;\n }\n });\n});","define(\"kredits-web/initializers/export-application-global\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.initialize = initialize;\n\n function initialize() {\n var application = arguments[1] || arguments[0];\n\n if (_environment.default.exportApplicationGlobal !== false) {\n var theGlobal;\n\n if (typeof window !== 'undefined') {\n theGlobal = window;\n } else if (typeof global !== 'undefined') {\n theGlobal = global;\n } else if (typeof self !== 'undefined') {\n theGlobal = self;\n } else {\n // no reasonable global, just bail\n return;\n }\n\n var value = _environment.default.exportApplicationGlobal;\n var globalName;\n\n if (typeof value === 'string') {\n globalName = value;\n } else {\n globalName = Ember.String.classify(_environment.default.modulePrefix);\n }\n\n if (!theGlobal[globalName]) {\n theGlobal[globalName] = application;\n application.reopen({\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n\n delete theGlobal[globalName];\n }\n });\n }\n }\n }\n\n var _default = {\n name: 'export-application-global',\n initialize: initialize\n };\n _exports.default = _default;\n});","define(\"kredits-web/models/contribution\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n contributorId: null,\n amount: null,\n confirmedAt: null,\n vetoed: null,\n ipfsHash: null,\n // contributor model instance\n contributor: null,\n // TODO contributor who submitted the contribution\n // submittedBy: null,\n // IPFS\n kind: null,\n description: null,\n details: null,\n url: null,\n date: null,\n time: null,\n pendingTx: null,\n init: function init() {\n this._super.apply(this, arguments);\n\n if (Ember.isEmpty(this.details)) this.set('details', {});\n },\n iso8601Date: Ember.computed('date', 'time', function () {\n return this.time ? \"\".concat(this.date, \"T\").concat(this.time) : this.date;\n }),\n jsDate: Ember.computed('iso8601Date', function () {\n return (0, _moment.default)(this.iso8601Date).toDate();\n }),\n hasPendingChanges: Ember.computed('pendingTx', function () {\n return Ember.isPresent(this.pendingTx);\n }),\n serialize: function serialize() {\n return JSON.stringify(this);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/contributor\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n account: null,\n balance: 0,\n totalKreditsEarned: 0,\n contributionsCount: 0,\n isCore: false,\n ipfsHash: null,\n // IPFS\n kind: null,\n name: null,\n url: null,\n github_username: null,\n github_uid: null,\n wiki_username: null,\n zoom_display_name: null,\n serialize: function serialize() {\n return JSON.stringify(this);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/reimbursement\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n recipientId: null,\n token: null,\n amount: null,\n confirmedAt: null,\n vetoed: null,\n ipfsHash: null,\n // contributor model instance\n recipient: null,\n // TODO contributor who submitted the reimbursement\n // recordedBy: null,\n // IPFS\n expenses: null,\n // Array of expense objects\n pendingTx: null,\n iso8601Date: Ember.computed('date', 'time', function () {\n return this.time ? \"\".concat(this.date, \"T\").concat(this.time) : this.date;\n }),\n jsDate: Ember.computed('iso8601Date', function () {\n return (0, _moment.default)(this.iso8601Date).toDate();\n }),\n hasPendingChanges: Ember.computed('pendingTx', function () {\n return Ember.isPresent(this.pendingTx);\n }),\n pendingStatus: Ember.computed('pendingTx', function () {\n return Ember.isPresent(this.pendingTx) ? 'isPending' : 'notPending';\n }),\n serialize: function serialize() {\n return JSON.stringify(this);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/contributions/resubmit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n model: function model(params) {\n return this.kredits.contributions.findBy('id', parseInt(params.id));\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n controller.set('attributes', model.getProperties(['contributorId', 'kind', 'amount', 'description', 'url', 'details']));\n controller.set('attributes.date', model.jsDate);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n return this.kredits.contributors.findBy('id', params.id);\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n controller.set('attributes', {\n account: model.account,\n name: model.name,\n kind: model.kind,\n url: model.url,\n github_username: model.github_username,\n github_uid: model.github_uid,\n gitea_username: model.gitea_username,\n wiki_username: model.wiki_username,\n zoom_display_name: model.zoom_display_name\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributions: Ember.computed.alias('kredits.contributions'),\n model: function model(params) {\n return this.contributions.findBy('id', parseInt(params.id));\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributionId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributionId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n var contributor = this.contributors.findBy('id', params.id);\n\n if (contributor) {\n return contributor;\n } else {\n return this.kredits.fetchContributor(params.id);\n }\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributorId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributorId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n redirect: function redirect() {\n this.transitionTo('dashboard');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/complete\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/github\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n redirect: function redirect() {\n this._super.apply(this, arguments);\n\n var accessToken;\n\n try {\n accessToken = window.location.hash.match(/access_token=(.+)/)[1];\n } catch (error) {\n /* ignore */\n }\n\n if (Ember.isEmpty(accessToken) || accessToken === 'undefined') {\n console.error('No GitHub access token found.');\n this.transitionTo('signup');\n return;\n }\n\n this.kredits.set('githubAccessToken', accessToken);\n this.transitionTo('signup.account');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/kredits\", [\"exports\", \"ethers\", \"@kredits/contracts\", \"ember-concurrency\", \"kredits-web/utils/group-by\", \"kredits-web/utils/process-contributor-data\", \"kredits-web/utils/process-contribution-data\", \"kredits-web/utils/process-reimbursement-data\", \"kredits-web/utils/format-kredits\", \"kredits-web/utils/switch-network\", \"kredits-web/config/environment\", \"kredits-web/models/contributor\", \"kredits-web/models/contribution\", \"kredits-web/models/reimbursement\"], function (_exports, _ethers, _contracts, _emberConcurrency, _groupBy, _processContributorData, _processContributionData, _processReimbursementData, _formatKredits, _switchNetwork, _environment, _contributor, _contribution, _reimbursement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\n function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\n function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n // Lets us access the model classes dynamically\n var models = {\n Contributor: _contributor.default,\n Contribution: _contribution.default,\n Reimbursement: _reimbursement.default\n };\n\n var _default = Ember.Service.extend({\n browserCache: Ember.inject.service(),\n currentBlock: null,\n currentUserAccounts: null,\n // default to not having an account. this is the wen web3 is loaded.\n currentUser: null,\n contributors: null,\n contributions: null,\n reimbursements: null,\n githubAccessToken: null,\n currentUserIsContributor: Ember.computed.notEmpty('currentUser'),\n currentUserIsCore: Ember.computed.alias('currentUser.isCore'),\n hasAccounts: Ember.computed.notEmpty('currentUserAccounts'),\n contributorsMined: Ember.computed.filterBy('contributors', 'id'),\n contributorsSorting: Object.freeze(['name:asc']),\n contributorsSorted: Ember.computed.sort('contributorsMined', 'contributorsSorting'),\n // When data was loaded from cache, we need to fetch updates from the network\n contributorsNeedSync: false,\n contributionsNeedSync: false,\n reimbursementsNeedSync: false,\n missingHistoricContributionsCount: 0,\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('contributors', []);\n this.set('contributions', []);\n this.set('reimbursements', []);\n\n if (window.ethereum) {\n window.ethereum.on('chainChanged', this.handleUserChainChanged);\n window.ethereum.on('accountsChanged', this.handleAccountsChanged);\n }\n },\n handleUserChainChanged: function handleUserChainChanged(chainId) {\n console.log('User-provided chain ID changed to', chainId);\n window.location.reload();\n },\n handleAccountsChanged: function handleAccountsChanged(accounts) {\n console.log('User-provided accounts changed to', accounts);\n window.location.reload();\n },\n // This is called in the application route's beforeModel(). So it is\n // initialized before everything else, and we can rely on the ethProvider and\n // the potential currentUserAccounts to be available\n getEthProvider: function getEthProvider() {\n var _this = this;\n\n var ethProvider;\n return new Promise(function (resolve) {\n function instantiateWithoutWallet() {\n console.debug('[kredits] Creating new instance from npm module class');\n console.debug(\"[kredits] providerURL: \".concat(_environment.default.web3ProviderUrl));\n ethProvider = new _ethers.default.providers.JsonRpcProvider(_environment.default.web3ProviderUrl);\n resolve({\n ethProvider: ethProvider,\n ethSigner: null\n });\n }\n\n function instantiateWithWallet(_x, _x2) {\n return _instantiateWithWallet.apply(this, arguments);\n }\n\n function _instantiateWithWallet() {\n _instantiateWithWallet = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(web3Provider, context) {\n var network, accounts, chainId, ethSigner;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.debug('[kredits] Using user-provided Web3 instance, e.g. from Metamask');\n ethProvider = new _ethers.default.providers.Web3Provider(web3Provider);\n _context.next = 4;\n return ethProvider.getNetwork();\n\n case 4:\n network = _context.sent;\n _context.next = 7;\n return ethProvider.listAccounts();\n\n case 7:\n accounts = _context.sent;\n chainId = _environment.default.web3ChainId;\n\n if (!Ember.isEmpty(accounts)) {\n _context.next = 11;\n break;\n }\n\n return _context.abrupt(\"return\", instantiateWithoutWallet());\n\n case 11:\n if (!(network.chainId !== chainId)) {\n _context.next = 15;\n break;\n }\n\n return _context.abrupt(\"return\", (0, _switchNetwork.default)());\n\n case 15:\n context.set('currentUserAccounts', accounts);\n ethSigner = accounts.length === 0 ? null : ethProvider.getSigner();\n resolve({\n ethProvider: ethProvider,\n ethSigner: ethSigner\n });\n\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _instantiateWithWallet.apply(this, arguments);\n }\n\n if (window.ethereum) {\n instantiateWithWallet(window.ethereum, _this);\n } else {\n instantiateWithoutWallet();\n }\n });\n },\n connectWallet: function connectWallet() {\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var provider, network, chainId, chainIdHex;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n provider = new _ethers.default.providers.Web3Provider(window.ethereum);\n _context2.next = 3;\n return provider.getNetwork();\n\n case 3:\n network = _context2.sent;\n chainId = _environment.default.web3ChainId;\n chainIdHex = \"0x\".concat(Number(chainId).toString(16));\n _context2.prev = 6;\n _context2.next = 9;\n return window.ethereum.request({\n method: 'eth_requestAccounts'\n });\n\n case 9:\n if (!(network.chainId !== chainId)) {\n _context2.next = 12;\n break;\n }\n\n _context2.next = 12;\n return (0, _switchNetwork.default)(chainIdHex);\n\n case 12:\n _context2.next = 18;\n break;\n\n case 14:\n _context2.prev = 14;\n _context2.t0 = _context2[\"catch\"](6);\n console.log('Connecting wallet failed:', _context2.t0);\n return _context2.abrupt(\"return\", false);\n\n case 18:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[6, 14]]);\n }))();\n },\n setup: function setup() {\n var _this2 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var kredits;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return _this2.getEthProvider().then(function (providerAndSigner) {\n return new _contracts.default(providerAndSigner.ethProvider, providerAndSigner.ethSigner, {\n ipfsConfig: _environment.default.ipfs\n });\n });\n\n case 2:\n kredits = _context3.sent;\n _context3.next = 5;\n return kredits.init();\n\n case 5:\n _this2.set('kredits', kredits);\n\n _context3.t0 = _this2;\n _context3.next = 9;\n return _this2.kredits.provider.getBlockNumber();\n\n case 9:\n _context3.t1 = _context3.sent;\n\n _context3.t0.set.call(_context3.t0, 'currentBlock', _context3.t1);\n\n _this2.kredits.provider.on('block', function (blockNumber) {\n console.debug('[kredits] New block mined:', blockNumber);\n\n _this2.set('currentBlock', blockNumber);\n });\n\n if (_this2.currentUserAccounts && _this2.currentUserAccounts.length > 0) {\n _this2.getCurrentUser.then(function (contributorData) {\n _this2.set('currentUser', contributorData);\n });\n }\n\n return _context3.abrupt(\"return\", kredits);\n\n case 14:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n getCurrentUser: Ember.computed('kredits.provider', 'currentUserAccounts.[]', function () {\n var _this3 = this;\n\n if (Ember.isEmpty(this.currentUserAccounts)) {\n return Promise.resolve();\n }\n\n return this.kredits.Contributor.functions.getContributorIdByAddress(this.currentUserAccounts.firstObject).then(function (id) {\n // check if the user is a contributor or not\n if (id === 0) {\n return Promise.resolve();\n } else {\n return _this3.kredits.Contributor.getById(id);\n }\n });\n }),\n totalSupply: Ember.computed(function () {\n return this.kredits.Token.functions.totalSupply().then(function (total) {\n return (0, _formatKredits.default)(total);\n });\n }),\n totalKreditsEarned: Ember.computed(function () {\n return this.kredits.Contribution.functions.totalKreditsEarned(true);\n }),\n kreditsByContributor: Ember.computed('contributionsUnconfirmed.@each.vetoed', 'contributors.[]', function () {\n var _this4 = this;\n\n var contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false);\n var contributionsGrouped = (0, _groupBy.default)(contributionsUnconfirmed, 'contributorId');\n var contributorsWithUnconfirmed = contributionsGrouped.map(function (c) {\n return c.value;\n });\n var contributorsWithOnlyConfirmed = this.contributors.reject(function (c) {\n return contributorsWithUnconfirmed.includes(c.id);\n });\n var kreditsByContributor = contributionsGrouped.map(function (c) {\n var amountUnconfirmed = c.items.mapBy('amount').reduce(function (a, b) {\n return a + b;\n });\n\n var contributor = _this4.contributors.findBy('id', c.value);\n\n return Ember.Object.create({\n contributor: contributor,\n amountUnconfirmed: amountUnconfirmed,\n amountConfirmed: contributor.totalKreditsEarned,\n amountTotal: contributor.totalKreditsEarned + amountUnconfirmed\n });\n });\n contributorsWithOnlyConfirmed.forEach(function (c) {\n kreditsByContributor.push(Ember.Object.create({\n contributor: c,\n amountUnconfirmed: 0,\n amountConfirmed: c.totalKreditsEarned,\n amountTotal: c.totalKreditsEarned\n }));\n });\n return kreditsByContributor;\n }),\n contributionsUnconfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this5 = this;\n\n return this.contributions.filter(function (c) {\n return c.confirmedAt > _this5.currentBlock;\n });\n }),\n contributionsConfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this6 = this;\n\n return this.contributions.filterBy('vetoed', false).filter(function (c) {\n return c.confirmedAt <= _this6.currentBlock;\n });\n }),\n reimbursementsUnconfirmed: Ember.computed('reimbursements.[]', 'currentBlock', function () {\n var _this7 = this;\n\n return this.reimbursements.filter(function (r) {\n return r.confirmedAt > _this7.currentBlock;\n });\n }),\n reimbursementsConfirmed: Ember.computed('reimbursements.[]', 'currentBlock', function () {\n var _this8 = this;\n\n return this.reimbursements.filterBy('vetoed', false).filter(function (r) {\n return r.confirmedAt <= _this8.currentBlock;\n });\n }),\n reimbursementsPending: Ember.computed('reimbursements.[]', 'pendingTx', function () {\n return this.reimbursements.filter(function (r) {\n return !r.id;\n });\n }),\n loadInitialData: function loadInitialData() {\n var _this9 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n var numCachedContributors, numCachedContributions;\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return _this9.browserCache.contributors.length();\n\n case 2:\n numCachedContributors = _context4.sent;\n\n if (!(numCachedContributors > 0)) {\n _context4.next = 9;\n break;\n }\n\n _context4.next = 6;\n return _this9.loadObjectsFromCache('Contributor');\n\n case 6:\n _this9.set('contributorsNeedSync', true);\n\n _context4.next = 11;\n break;\n\n case 9:\n _context4.next = 11;\n return _this9.fetchContributors();\n\n case 11:\n _context4.next = 13;\n return _this9.browserCache.contributions.length();\n\n case 13:\n numCachedContributions = _context4.sent;\n\n if (!(numCachedContributions > 0)) {\n _context4.next = 20;\n break;\n }\n\n _context4.next = 17;\n return _this9.loadObjectsFromCache('Contribution');\n\n case 17:\n _this9.set('contributionsNeedSync', true);\n\n _context4.next = 22;\n break;\n\n case 20:\n _context4.next = 22;\n return _this9.fetchContributions({\n page: {\n size: 40\n }\n });\n\n case 22:\n _context4.next = 24;\n return _this9.updateMissingHistoricContributionsCount();\n\n case 24:\n return _context4.abrupt(\"return\", Promise.resolve());\n\n case 25:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n updateMissingHistoricContributionsCount: function updateMissingHistoricContributionsCount() {\n var _this10 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {\n var contributionsCount;\n return regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return _this10.kredits.Contribution.count;\n\n case 2:\n contributionsCount = _context5.sent;\n\n _this10.set('missingHistoricContributionsCount', contributionsCount - _this10.contributions.length);\n\n console.debug(\"Missing \".concat(_this10.missingHistoricContributionsCount, \" historic contributions (out of \").concat(contributionsCount, \" overall)\"));\n\n case 5:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n addContributor: function addContributor(attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] add contributor', attributes);\n return this.kredits.Contributor.add(attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] add contributor response', data);\n });\n },\n updateContributor: function updateContributor(id, attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] update contributor', attributes);\n return this.kredits.Contributor.updateProfile(id, attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] updateProfile response', data);\n });\n },\n fetchContributor: function fetchContributor(id) {\n var _this11 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {\n return regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n console.debug(\"[kredits] Fetching contributor from the network\");\n return _context6.abrupt(\"return\", _this11.kredits.Contributor.getById(id).then(function (data) {\n return _this11.loadContributorFromData(data);\n }));\n\n case 2:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n fetchContributors: function fetchContributors() {\n var _this12 = this;\n\n console.debug(\"[kredits] Fetching all contributors from the network\");\n return this.kredits.Contributor.all().then(function (contributors) {\n return contributors.forEach(function (data) {\n _this12.loadContributorFromData(data);\n\n return;\n });\n }).then(function () {\n return _this12.cacheLoadedContributors();\n });\n },\n loadContributorFromData: function loadContributorFromData(data) {\n var contributor = _contributor.default.create((0, _processContributorData.default)(data));\n\n var loadedContributor = this.contributors.findBy('id', contributor.id);\n\n if (loadedContributor) {\n this.contributors.removeObject(loadedContributor);\n }\n\n this.contributors.pushObject(contributor);\n return contributor;\n },\n cacheLoadedContributors: function cacheLoadedContributors() {\n var _this13 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {\n var _iterator, _step, c;\n\n return regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n _iterator = _createForOfIteratorHelper(_this13.contributors);\n _context7.prev = 1;\n\n _iterator.s();\n\n case 3:\n if ((_step = _iterator.n()).done) {\n _context7.next = 9;\n break;\n }\n\n c = _step.value;\n _context7.next = 7;\n return _this13.browserCache.contributors.setItem(c.id.toString(), c.serialize());\n\n case 7:\n _context7.next = 3;\n break;\n\n case 9:\n _context7.next = 14;\n break;\n\n case 11:\n _context7.prev = 11;\n _context7.t0 = _context7[\"catch\"](1);\n\n _iterator.e(_context7.t0);\n\n case 14:\n _context7.prev = 14;\n\n _iterator.f();\n\n return _context7.finish(14);\n\n case 17:\n console.debug(\"[kredits] Cached \".concat(_this13.contributors.length, \" contributors in browser storage\"));\n return _context7.abrupt(\"return\", Promise.resolve());\n\n case 19:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7, null, [[1, 11, 14, 17]]);\n }))();\n },\n loadContributorsFromCache: function loadContributorsFromCache() {\n var _this14 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {\n return regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n return _context8.abrupt(\"return\", _this14.browserCache.contributors.iterate(function (value\n /*, key , iterationNumber */\n ) {\n _this14.contributors.pushObject(_contributor.default.create(JSON.parse(value)));\n }).then(function\n /* result */\n () {\n console.debug(\"[kredits] Loaded \".concat(_this14.contributors.length, \" contributors from cache\"));\n }));\n\n case 1:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8);\n }))();\n },\n syncContributors: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {\n return regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n _context9.next = 2;\n return this.fetchContributors();\n\n case 2:\n this.set('contributorsNeedSync', false);\n\n case 3:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9, this);\n })),\n addContribution: function addContribution(attributes) {\n var _this15 = this;\n\n console.debug('[kredits] Adding contribution', attributes);\n return this.kredits.Contribution.add(attributes, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] Contribution.add response', data);\n attributes.contributor = _this15.contributors.findBy('id', attributes.contributorId);\n\n var contribution = _contribution.default.create(attributes);\n\n contribution.set('pendingTx', data);\n contribution.set('confirmedAtBlock', _this15.currentBlock + 40320);\n\n _this15.contributions.pushObject(contribution);\n\n return contribution;\n });\n },\n fetchContributions: function fetchContributions() {\n var _this16 = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n page: {\n size: 200\n }\n };\n console.debug(\"[kredits] Fetching contributions from the network\");\n return this.kredits.Contribution.all(options).then(function (contributions) {\n return contributions.map(function (data) {\n var contribution = _this16.loadContributionFromData(data);\n\n return contribution;\n });\n }).then(function (contributions) {\n var cacheWrites = contributions.map(function (c) {\n return _this16.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n });\n return Promise.all(cacheWrites).then(function () {\n console.debug(\"[kredits] Cached \".concat(contributions.length, \" contributions in browser storage\"));\n });\n });\n },\n loadContributionFromData: function loadContributionFromData(data) {\n var contribution = _contribution.default.create((0, _processContributionData.default)(data));\n\n contribution.set('contributor', this.contributors.findBy('id', data.contributorId));\n var loadedContribution = this.contributions.findBy('id', contribution.id);\n\n if (loadedContribution) {\n this.contributions.removeObject(loadedContribution);\n }\n\n this.contributions.pushObject(contribution);\n return contribution;\n },\n cacheLoadedContributions: function cacheLoadedContributions() {\n var _this17 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {\n var _iterator2, _step2, c;\n\n return regeneratorRuntime.wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n _iterator2 = _createForOfIteratorHelper(_this17.contributions);\n _context10.prev = 1;\n\n _iterator2.s();\n\n case 3:\n if ((_step2 = _iterator2.n()).done) {\n _context10.next = 9;\n break;\n }\n\n c = _step2.value;\n _context10.next = 7;\n return _this17.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 7:\n _context10.next = 3;\n break;\n\n case 9:\n _context10.next = 14;\n break;\n\n case 11:\n _context10.prev = 11;\n _context10.t0 = _context10[\"catch\"](1);\n\n _iterator2.e(_context10.t0);\n\n case 14:\n _context10.prev = 14;\n\n _iterator2.f();\n\n return _context10.finish(14);\n\n case 17:\n console.debug(\"[kredits] Cached \".concat(_this17.contributions.length, \" contributions in browser storage\"));\n return _context10.abrupt(\"return\", Promise.resolve());\n\n case 19:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10, null, [[1, 11, 14, 17]]);\n }))();\n },\n loadContributionsFromCache: function loadContributionsFromCache() {\n var _this18 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {\n return regeneratorRuntime.wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n return _context11.abrupt(\"return\", _this18.browserCache.contributions.iterate(function (value\n /*, key , iterationNumber */\n ) {\n _this18.contributions.pushObject(_contribution.default.create(JSON.parse(value)));\n }).then(function\n /* result */\n () {\n console.debug(\"[kredits] Loaded \".concat(_this18.contributions.length, \" contributions from cache\"));\n }));\n\n case 1:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11);\n }))();\n },\n contributionTasks: (0, _emberConcurrency.taskGroup)().enqueue(),\n syncContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {\n return regeneratorRuntime.wrap(function _callee12$(_context12) {\n while (1) {\n switch (_context12.prev = _context12.next) {\n case 0:\n _context12.next = 2;\n return this.fetchNewContributions.perform();\n\n case 2:\n _context12.next = 4;\n return this.syncUnconfirmedContributions.perform();\n\n case 4:\n _context12.next = 6;\n return this.updateMissingHistoricContributionsCount();\n\n case 6:\n this.set('contributionsNeedSync', false);\n\n case 7:\n case \"end\":\n return _context12.stop();\n }\n }\n }, _callee12, this);\n })).group('contributionTasks'),\n fetchNewContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {\n var count, lastKnownContributionId, toFetch, id, data, c;\n return regeneratorRuntime.wrap(function _callee13$(_context13) {\n while (1) {\n switch (_context13.prev = _context13.next) {\n case 0:\n _context13.next = 2;\n return this.kredits.Contribution.count;\n\n case 2:\n count = _context13.sent;\n lastKnownContributionId = Math.max.apply(null, this.contributions.mapBy('id'));\n toFetch = count - lastKnownContributionId;\n\n if (!(toFetch > 0)) {\n _context13.next = 20;\n break;\n }\n\n console.debug(\"[kredits] Fetching \".concat(toFetch, \" new contributions\"));\n id = lastKnownContributionId;\n\n case 8:\n if (!(id <= count)) {\n _context13.next = 18;\n break;\n }\n\n _context13.next = 11;\n return this.kredits.Contribution.getById(id);\n\n case 11:\n data = _context13.sent;\n c = this.loadContributionFromData(data);\n _context13.next = 15;\n return this.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 15:\n id++;\n _context13.next = 8;\n break;\n\n case 18:\n _context13.next = 21;\n break;\n\n case 20:\n console.debug(\"[kredits] No new contributions to fetch\");\n\n case 21:\n case \"end\":\n return _context13.stop();\n }\n }\n }, _callee13, this);\n })),\n fetchMissingContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {\n var count, allIds, loadedContributions, toFetch, countFetched, id, data, c;\n return regeneratorRuntime.wrap(function _callee14$(_context14) {\n while (1) {\n switch (_context14.prev = _context14.next) {\n case 0:\n _context14.next = 2;\n return this.kredits.Contribution.count;\n\n case 2:\n count = _context14.sent;\n allIds = _toConsumableArray(Array(count + 1).keys());\n allIds.shift(); // remove first item, which is 0\n\n loadedContributions = new Set(this.contributions.mapBy('id'));\n toFetch = allIds.filter(function (id) {\n return !loadedContributions.has(id);\n });\n\n if (!(toFetch.length === 0)) {\n _context14.next = 10;\n break;\n }\n\n console.debug(\"[kredits] No contributions left to fetch\");\n return _context14.abrupt(\"return\");\n\n case 10:\n console.debug(\"[kredits] Fetching \".concat(toFetch.length, \" past contributions\"));\n countFetched = 0;\n id = count;\n\n case 13:\n if (!(id > 0)) {\n _context14.next = 29;\n break;\n }\n\n if (!loadedContributions.has(id)) {\n _context14.next = 18;\n break;\n }\n\n return _context14.abrupt(\"continue\", 26);\n\n case 18:\n _context14.next = 20;\n return this.kredits.Contribution.getById(id);\n\n case 20:\n data = _context14.sent;\n c = this.loadContributionFromData(data);\n _context14.next = 24;\n return this.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 24:\n countFetched++;\n\n if (countFetched % 20 === 0) {\n console.debug(\"[kredits] Fetched \".concat(countFetched, \" more contributions\"));\n }\n\n case 26:\n id--;\n _context14.next = 13;\n break;\n\n case 29:\n console.debug(\"[kredits] Cached \".concat(countFetched, \" past contributions\"));\n\n case 30:\n case \"end\":\n return _context14.stop();\n }\n }\n }, _callee14, this);\n })).group('contributionTasks'),\n syncUnconfirmedContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {\n var _iterator3, _step3, c, data, contribution;\n\n return regeneratorRuntime.wrap(function _callee15$(_context15) {\n while (1) {\n switch (_context15.prev = _context15.next) {\n case 0:\n if (!(this.contributionsUnconfirmed.length > 0)) {\n _context15.next = 25;\n break;\n }\n\n console.debug(\"[kredits] Syncing unconfirmed contributions\");\n _iterator3 = _createForOfIteratorHelper(this.contributionsUnconfirmed);\n _context15.prev = 3;\n\n _iterator3.s();\n\n case 5:\n if ((_step3 = _iterator3.n()).done) {\n _context15.next = 15;\n break;\n }\n\n c = _step3.value;\n _context15.next = 9;\n return this.kredits.Contribution.getById(c.id);\n\n case 9:\n data = _context15.sent;\n contribution = this.loadContributionFromData(data);\n _context15.next = 13;\n return this.browserCache.contributions.setItem(c.id.toString(), contribution.serialize());\n\n case 13:\n _context15.next = 5;\n break;\n\n case 15:\n _context15.next = 20;\n break;\n\n case 17:\n _context15.prev = 17;\n _context15.t0 = _context15[\"catch\"](3);\n\n _iterator3.e(_context15.t0);\n\n case 20:\n _context15.prev = 20;\n\n _iterator3.f();\n\n return _context15.finish(20);\n\n case 23:\n _context15.next = 26;\n break;\n\n case 25:\n console.debug(\"[kredits] No unconfirmed contributions to sync\");\n\n case 26:\n case \"end\":\n return _context15.stop();\n }\n }\n }, _callee15, this, [[3, 17, 20, 23]]);\n })),\n veto: function veto(contributionId) {\n console.debug('[kredits] veto against', contributionId);\n var contribution = this.contributions.findBy('id', contributionId);\n return this.kredits.Contribution.functions.veto(contributionId, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n contribution.set('pendingTx', data);\n return data;\n });\n },\n //\n // Generic data handling (for objects that can be vetoed)\n //\n fetchObjects: function fetchObjects(objectClass) {\n var _this19 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n page: {\n size: 200\n }\n };\n var objectClassLowerCase = objectClass.toLowerCase();\n console.debug(\"[kredits] Fetching \".concat(objectClassLowerCase, \"s from the network\"));\n return this.kredits[objectClass].all(options).then(function (objects) {\n return objects.map(function (data) {\n var classInstance = _this19[\"load\".concat(objectClass, \"FromData\")](data);\n\n return classInstance;\n });\n }).then(function (objects) {\n var cacheWrites = objects.map(function (o) {\n return _this19.browserCache[objectClassLowerCase + 's'].setItem(o.id.toString(), o.serialize());\n });\n return Promise.all(cacheWrites).then(function () {\n console.debug(\"[kredits] Cached \".concat(objects.length, \" \").concat(objectClassLowerCase + 's', \" in browser storage\"));\n });\n });\n },\n removeObjectFromCollectionIfLoaded: function removeObjectFromCollectionIfLoaded(collection, objectId) {\n var loadedObj = this[collection].findBy('id', objectId);\n\n if (loadedObj) {\n this[collection].removeObject(loadedObj);\n }\n },\n cacheLoadedObjects: function cacheLoadedObjects(collection) {\n var _this20 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {\n var _iterator4, _step4, o;\n\n return regeneratorRuntime.wrap(function _callee16$(_context16) {\n while (1) {\n switch (_context16.prev = _context16.next) {\n case 0:\n _iterator4 = _createForOfIteratorHelper(_this20[collection]);\n _context16.prev = 1;\n\n _iterator4.s();\n\n case 3:\n if ((_step4 = _iterator4.n()).done) {\n _context16.next = 9;\n break;\n }\n\n o = _step4.value;\n _context16.next = 7;\n return _this20.browserCache[collection].setItem(o.id, o.serialize());\n\n case 7:\n _context16.next = 3;\n break;\n\n case 9:\n _context16.next = 14;\n break;\n\n case 11:\n _context16.prev = 11;\n _context16.t0 = _context16[\"catch\"](1);\n\n _iterator4.e(_context16.t0);\n\n case 14:\n _context16.prev = 14;\n\n _iterator4.f();\n\n return _context16.finish(14);\n\n case 17:\n console.debug(\"[kredits] Cached \".concat(_this20[collection].length, \" \").concat(collection, \" in browser storage\"));\n\n case 18:\n case \"end\":\n return _context16.stop();\n }\n }\n }, _callee16, null, [[1, 11, 14, 17]]);\n }))();\n },\n loadObjectsFromCache: function loadObjectsFromCache(objectClass) {\n var _this21 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {\n var collection;\n return regeneratorRuntime.wrap(function _callee17$(_context17) {\n while (1) {\n switch (_context17.prev = _context17.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n return _context17.abrupt(\"return\", _this21.browserCache[collection].iterate(function (value\n /*, key , iterationNumber */\n ) {\n var obj = models[objectClass].create(JSON.parse(value));\n\n _this21.removeObjectFromCollectionIfLoaded(collection, obj.id);\n\n _this21[collection].pushObject(obj);\n }).then(function\n /* result */\n () {\n console.debug(\"[kredits] Loaded \".concat(_this21[collection].length, \" \").concat(collection, \" from cache\"));\n }));\n\n case 2:\n case \"end\":\n return _context17.stop();\n }\n }\n }, _callee17);\n }))();\n },\n syncTaskGroup: (0, _emberConcurrency.taskGroup)().enqueue(),\n fetchNewObjects: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee18(objectClass) {\n var collection, count, lastKnownObjectId, toFetch, id, data, o;\n return regeneratorRuntime.wrap(function _callee18$(_context18) {\n while (1) {\n switch (_context18.prev = _context18.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n _context18.next = 3;\n return this.kredits[objectClass].functions[\"\".concat(collection, \"Count\")]();\n\n case 3:\n count = _context18.sent;\n lastKnownObjectId = Math.max.apply(null, this[collection].mapBy('id'));\n toFetch = count - lastKnownObjectId;\n\n if (!(toFetch > 0)) {\n _context18.next = 21;\n break;\n }\n\n console.debug(\"[kredits] Fetching \".concat(toFetch, \" new \").concat(collection));\n id = lastKnownObjectId;\n\n case 9:\n if (!(id <= count)) {\n _context18.next = 19;\n break;\n }\n\n _context18.next = 12;\n return this.kredits[objectClass].getById(id);\n\n case 12:\n data = _context18.sent;\n o = this[\"load\".concat(objectClass, \"FromData\")](data);\n _context18.next = 16;\n return this.browserCache[collection].setItem(o.id.toString(), o.serialize());\n\n case 16:\n id++;\n _context18.next = 9;\n break;\n\n case 19:\n _context18.next = 22;\n break;\n\n case 21:\n console.debug(\"[kredits] No new \".concat(collection, \" to fetch\"));\n\n case 22:\n case \"end\":\n return _context18.stop();\n }\n }\n }, _callee18, this);\n })),\n fetchMissingObjects: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(objectClass) {\n var collection, count, allIds, loadedObjects, toFetch, countFetched, id, data, o;\n return regeneratorRuntime.wrap(function _callee19$(_context19) {\n while (1) {\n switch (_context19.prev = _context19.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n _context19.next = 3;\n return this.kredits[objectClass].functions[\"\".concat(collection, \"Count\")]();\n\n case 3:\n count = _context19.sent;\n allIds = _toConsumableArray(Array(count + 1).keys());\n allIds.shift(); // remove first item, which is 0\n\n loadedObjects = new Set(this[collection].mapBy('id'));\n toFetch = allIds.filter(function (id) {\n return !loadedObjects.has(id);\n });\n\n if (!(toFetch.length === 0)) {\n _context19.next = 11;\n break;\n }\n\n console.debug(\"[kredits] No \".concat(collection, \" left to fetch\"));\n return _context19.abrupt(\"return\");\n\n case 11:\n console.debug(\"[kredits] Fetching \".concat(toFetch.length, \" past \").concat(collection));\n countFetched = 0;\n id = count;\n\n case 14:\n if (!(id > 0)) {\n _context19.next = 30;\n break;\n }\n\n if (!loadedObjects.has(id)) {\n _context19.next = 19;\n break;\n }\n\n return _context19.abrupt(\"continue\", 27);\n\n case 19:\n _context19.next = 21;\n return this.kredits[objectClass].getById(id);\n\n case 21:\n data = _context19.sent;\n o = this[\"load\".concat(objectClass, \"FromData\")](data);\n _context19.next = 25;\n return this.browserCache[collection].setItem(o.id.toString(), o.serialize());\n\n case 25:\n countFetched++;\n\n if (countFetched % 20 === 0) {\n console.debug(\"[kredits] Fetched \".concat(countFetched, \" more \").concat(collection));\n }\n\n case 27:\n id--;\n _context19.next = 14;\n break;\n\n case 30:\n console.debug(\"[kredits] Cached \".concat(countFetched, \" past \").concat(collection));\n\n case 31:\n case \"end\":\n return _context19.stop();\n }\n }\n }, _callee19, this);\n })),\n syncUnconfirmedObjects: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(objectClass) {\n var collection, _iterator5, _step5, o, data, object;\n\n return regeneratorRuntime.wrap(function _callee20$(_context20) {\n while (1) {\n switch (_context20.prev = _context20.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n\n if (!(this.get(\"\".concat(collection, \"Unconfirmed\")).length > 0)) {\n _context20.next = 28;\n break;\n }\n\n console.debug(\"[kredits] Syncing unconfirmed \".concat(collection));\n _iterator5 = _createForOfIteratorHelper(this[\"\".concat(collection, \"Unconfirmed\")]);\n _context20.prev = 4;\n\n _iterator5.s();\n\n case 6:\n if ((_step5 = _iterator5.n()).done) {\n _context20.next = 18;\n break;\n }\n\n o = _step5.value;\n\n if (!Ember.isEmpty(o.id)) {\n _context20.next = 10;\n break;\n }\n\n return _context20.abrupt(\"return\");\n\n case 10:\n _context20.next = 12;\n return this.kredits[objectClass].getById(o.id);\n\n case 12:\n data = _context20.sent;\n object = this[\"load\".concat(objectClass, \"FromData\")](data);\n _context20.next = 16;\n return this.browserCache[collection].setItem(o.id.toString(), object.serialize());\n\n case 16:\n _context20.next = 6;\n break;\n\n case 18:\n _context20.next = 23;\n break;\n\n case 20:\n _context20.prev = 20;\n _context20.t0 = _context20[\"catch\"](4);\n\n _iterator5.e(_context20.t0);\n\n case 23:\n _context20.prev = 23;\n\n _iterator5.f();\n\n return _context20.finish(23);\n\n case 26:\n _context20.next = 29;\n break;\n\n case 28:\n console.debug(\"[kredits] No unconfirmed \".concat(collection, \" to sync\"));\n\n case 29:\n case \"end\":\n return _context20.stop();\n }\n }\n }, _callee20, this, [[4, 20, 23, 26]]);\n })),\n vetoAgainstObject: function vetoAgainstObject(objectClass, objectId) {\n console.debug(\"[kredits] veto against \".concat(objectClass.toLowerCase()), objectId);\n var collection = objectClass.toLowerCase() + 's';\n var object = this[collection].findBy('id', objectId);\n return this.kredits[objectClass].functions.veto(objectId, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n object.set('pendingTx', data);\n return data;\n });\n },\n //\n // Reimbursements\n //\n loadReimbursementFromData: function loadReimbursementFromData(data) {\n var obj = _reimbursement.default.create((0, _processReimbursementData.default)(data));\n\n obj.set('contributor', this.contributors.findBy('id', data.recipientId));\n this.removeObjectFromCollectionIfLoaded('reimbursements', obj.id);\n this.reimbursements.pushObject(obj);\n return obj;\n },\n addReimbursement: function addReimbursement(attributes) {\n var _this22 = this;\n\n console.debug('[kredits] add reimbursement', attributes);\n return this.kredits.Reimbursement.add(attributes, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] add reimbursement response', data);\n\n var reimbursement = _reimbursement.default.create(attributes);\n\n reimbursement.setProperties({\n contributor: _this22.contributors.findBy('id', attributes.recipientId),\n pendingTx: data,\n confirmedAt: _this22.currentBlock + 40320\n });\n\n _this22.reimbursements.pushObject(reimbursement); // Listen to tx mining/execution status\n\n\n data.wait().then(function (d) {\n return console.debug('[kredits] tx successful', d);\n }).catch(function (e) {\n window.alert('The transaction failed to execute. Please check the browser console.');\n console.log('[kredits] tx error', e);\n });\n return reimbursement;\n });\n },\n syncReimbursements: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {\n return regeneratorRuntime.wrap(function _callee21$(_context21) {\n while (1) {\n switch (_context21.prev = _context21.next) {\n case 0:\n _context21.next = 2;\n return this.fetchNewObjects.perform('Reimbursement');\n\n case 2:\n _context21.next = 4;\n return this.syncUnconfirmedObjects.perform('Reimbursement');\n\n case 4:\n this.set('reimbursementsNeedSync', false);\n\n case 5:\n case \"end\":\n return _context21.stop();\n }\n }\n }, _callee21, this);\n })).group('syncTaskGroup'),\n fetchMissingReimbursements: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {\n return regeneratorRuntime.wrap(function _callee22$(_context22) {\n while (1) {\n switch (_context22.prev = _context22.next) {\n case 0:\n _context22.next = 2;\n return this.fetchMissingObjects.perform('Reimbursement');\n\n case 2:\n case \"end\":\n return _context22.stop();\n }\n }\n }, _callee22, this);\n })).group('syncTaskGroup'),\n vetoReimbursement: function vetoReimbursement(id) {\n console.debug('[kredits] veto against reimbursement', id);\n var reimbursement = this.reimbursements.findBy('id', id);\n return this.kredits.Reimbursement.functions.veto(id, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n reimbursement.set('pendingTx', data);\n return data;\n });\n },\n //\n // Contract events\n //\n addContractEventHandlers: function addContractEventHandlers() {\n this.kredits.Contributor.on('ContributorProfileUpdated', this.handleContributorChange.bind(this)).on('ContributorAccountUpdated', this.handleContributorChange.bind(this)).on('ContributorAdded', this.handleContributorChange.bind(this));\n this.kredits.Contribution.on('ContributionAdded', this.handleContributionAdded.bind(this)).on('ContributionVetoed', this.handleContributionVetoed.bind(this));\n this.kredits.Reimbursement.on('ReimbursementAdded', this.handleReimbursementAdded.bind(this)).on('ReimbursementVetoed', this.handleReimbursementVetoed.bind(this));\n this.kredits.Token.on('Transfer', this.handleTransfer.bind(this));\n },\n handleContributorChange: function handleContributorChange(contributorId) {\n var _arguments = arguments,\n _this23 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23() {\n var _len, args, _key, contributorData, newContributor, oldContributor;\n\n return regeneratorRuntime.wrap(function _callee23$(_context23) {\n while (1) {\n switch (_context23.prev = _context23.next) {\n case 0:\n console.debug('[kredits] Contributor add/update event received for ID', contributorId);\n\n for (_len = _arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = _arguments[_key];\n }\n\n console.debug('[kredits] Event data:', args);\n _context23.next = 5;\n return _this23.kredits.Contributor.getById(contributorId);\n\n case 5:\n contributorData = _context23.sent;\n newContributor = _contributor.default.create(contributorData); // TODO check for actual differences in the contributor data first\n\n oldContributor = _this23.contributors.findBy('id', contributorId);\n\n if (oldContributor) {\n // console.debug('[kredits] cached contributor', oldContributor);\n _this23.contributors.removeObject(oldContributor);\n } // console.debug('[kredits] incoming contributor data', newContributor);\n\n\n _this23.contributors.pushObject(newContributor);\n\n case 10:\n case \"end\":\n return _context23.stop();\n }\n }\n }, _callee23);\n }))();\n },\n handleContributionAdded: function handleContributionAdded(id, contributorId, amount) {\n var _this24 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24() {\n var pendingContribution, data, c;\n return regeneratorRuntime.wrap(function _callee24$(_context24) {\n while (1) {\n switch (_context24.prev = _context24.next) {\n case 0:\n console.debug('[kredits] ContributionAdded event received', {\n id: id,\n contributorId: contributorId,\n amount: amount\n });\n pendingContribution = _this24.contributions.find(function (c) {\n return c.id === null && c.contributorId === contributorId && c.amount.toString() === amount.toString();\n });\n\n if (pendingContribution) {\n _this24.contributions.removeObject(pendingContribution);\n }\n\n _context24.next = 5;\n return _this24.kredits.Contribution.getById(id);\n\n case 5:\n data = _context24.sent;\n c = _this24.loadContributionFromData(data);\n _context24.next = 9;\n return _this24.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 9:\n case \"end\":\n return _context24.stop();\n }\n }\n }, _callee24);\n }))();\n },\n handleContributionVetoed: function handleContributionVetoed(contributionId) {\n var _this25 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25() {\n var c;\n return regeneratorRuntime.wrap(function _callee25$(_context25) {\n while (1) {\n switch (_context25.prev = _context25.next) {\n case 0:\n console.debug('[kredits] ContributionVetoed event received for #', contributionId);\n c = _this25.contributions.findBy('id', contributionId);\n\n if (!c) {\n _context25.next = 8;\n break;\n }\n\n console.debug('[kredits] Updating contribution', c);\n c.set('vetoed', true);\n c.set('pendingTx', null);\n _context25.next = 8;\n return _this25.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 8:\n case \"end\":\n return _context25.stop();\n }\n }\n }, _callee25);\n }))();\n },\n handleReimbursementAdded: function handleReimbursementAdded(id, addedByAccount, amount) {\n var _this26 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26() {\n var pendingReimbursement, data, r;\n return regeneratorRuntime.wrap(function _callee26$(_context26) {\n while (1) {\n switch (_context26.prev = _context26.next) {\n case 0:\n console.debug('[kredits] ReimbursementAdded event received', {\n id: id,\n addedByAccount: addedByAccount,\n amount: amount\n });\n pendingReimbursement = _this26.reimbursementsPending.find(function (r) {\n return r.amount.toString() === amount.toString();\n });\n\n if (pendingReimbursement) {\n console.debug('[kredits] Found a pending reimbursement matching the event. Replacing it with the final record...');\n\n _this26.reimbursements.removeObject(pendingReimbursement);\n }\n\n _context26.next = 5;\n return _this26.kredits.Reimbursement.getById(id);\n\n case 5:\n data = _context26.sent;\n r = _this26.loadReimbursementFromData(data);\n\n _this26.browserCache.reimbursements.setItem(r.id.toString(), r.serialize());\n\n case 8:\n case \"end\":\n return _context26.stop();\n }\n }\n }, _callee26);\n }))();\n },\n handleReimbursementVetoed: function handleReimbursementVetoed(id) {\n var _this27 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27() {\n var r;\n return regeneratorRuntime.wrap(function _callee27$(_context27) {\n while (1) {\n switch (_context27.prev = _context27.next) {\n case 0:\n console.debug(\"[kredits] ReimbursementVetoed received for #\".concat(id));\n r = _this27.reimbursements.findBy('id', id);\n console.debug('[kredits] reimbursement', r);\n\n if (r) {\n r.set('vetoed', true);\n r.set('pendingTx', null);\n\n _this27.browserCache.reimbursements.setItem(r.id.toString(), r.serialize());\n }\n\n case 4:\n case \"end\":\n return _context27.stop();\n }\n }\n }, _callee27);\n }))();\n },\n handleTransfer: function handleTransfer(from, to, value) {\n value = value.toNumber();\n this.contributors.findBy('address', from).decrementProperty('balance', value);\n this.contributors.findBy('address', to).incrementProperty('balance', value);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/moment\", [\"exports\", \"ember-moment/services/moment\", \"kredits-web/config/environment\"], function (_exports, _moment, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var get = Ember.get;\n\n var _default = _moment.default.extend({\n defaultFormat: get(_environment.default, 'moment.outputFormat')\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/about\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"qDPvmLqW\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,1,\\\"about\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"aside\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,0,\\\"text\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"What is this?\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n You have found the contribution dashboard and budget management app of the\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://kosmos.org\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noreferrer noopener\\\"],[12],[2,\\\"Kosmos\\\"],[13],[2,\\\"\\\\n open-source co-operative.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n We use this app to track what people contribute to all parts of our\\\\n projects (not just code), as well as for managing our community's budget.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Why?\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n We are trying out a new form of co-operative, native to the Internet,\\\\n creating and sharing digital resources the same way traditional\\\\n co-operatives share physical ones.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n By knowing roughly how much people contribute, we are able to reward\\\\n co-operative members who contribute their time with money contributed\\\\n by the ones who don't.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n In addition to open-source grant payouts, all contributors can also propose\\\\n reimbursements for specific expenses they covered on behalf of the\\\\n community.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"How?\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Instead of notaries, lawyers, courts, or banks, we record data and manage\\\\n certain decisions on a decentralized ledger called\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://rootstock.io/\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noreferrer noopener\\\"],[12],[2,\\\"Rootstock\\\"],[13],[2,\\\",\\\\n which is cryptographically tied to the bitcoin timechain.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n By doing this, we can ensure community control over the budget, as well as\\\\n full transparency and verifiability of everything that happens. It also\\\\n allows us to quickly, cheaply, and reliably send our open-source grants to\\\\n anyone who's contributing, no matter where they are on this beautiful\\\\n planet.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Kredits\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n All contributions are rewarded with so-called kredits. They are both\\\\n credits in the traditional sense of public attribution, as well as a\\\\n measure of how much and how regularly someone has added value to the\\\\n community and its products and services.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Kredits are considered for example for grant payouts, as well as\\\\n permissions for certain actions like vetos or votes. They may also be used\\\\n to access \\\"],[10,\\\"a\\\"],[14,6,\\\"https://kosmos.org/services/\\\"],[12],[2,\\\"hosted services\\\"],[13],[2,\\\" for free,\\\\n or to unlock additional features on otherwise free services.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Getting started\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n We'd be delighted to welcome you as a new contributor!\\\\n If you'd like to start collecting kredits for your contributions, you can\\\\n \\\"],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"signup\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"create a contributor profile\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" now.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Next, you could learn more about\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://community.kosmos.org/t/how-kredits-for-contributions-are-proposed-and-confirmed/176\\\"],[12],[2,\\\"how kredits are proposed and issued\\\"],[13],[2,\\\".\\\\n If you want to dive deeper into how this all works, head over to the\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://wiki.kosmos.org/Kredits\\\"],[12],[2,\\\"Kredits documentation\\\"],[13],[2,\\\"\\\\n page on our (soon to be phased out) wiki.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"empty\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/about.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application-loading\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"rH2U9nfi\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[8,\\\"loading-spinner\\\",[],[[],[]],null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application-loading.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"7nDDmrRX\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[14,1,\\\"topbar\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"dashboard\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Kredits\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n \\\"],[8,\\\"topbar-account-panel\\\",[],[[],[]],null],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[8,\\\"main-navigation-menu\\\",[],[[],[]],null],[2,\\\"\\\\n\\\\n\\\"],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/budget\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"NF9wJ3hK\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,1,\\\"budget\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"aside\\\"],[12],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"

Budget

\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
    \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\" Expenses \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\" Rewards \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"funds\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Community funds\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"budget-balances\\\",[],[[],[]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"content\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"reimbursementsUnconfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"expenses-unconfirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Proposed Reimbursements\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"reimbursements.new\\\",\\\"Submit a reimbursement\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"reimbursement-list\\\",[],[[\\\"@items\\\"],[[32,0,[\\\"reimbursementsUnconfirmed\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"reimbursementsConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"expenses-confirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Confirmed Reimbursements\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"reimbursements.new\\\",\\\"Submit a reimbursement\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"reimbursement-list\\\",[],[[\\\"@items\\\"],[[32,0,[\\\"reimbursementsConfirmed\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"empty\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/budget.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/budget/expenses\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"GPyv0u4G\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[30,[36,1],[[30,[36,0],null,null]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/budget/expenses.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-gitea-kosmos-org\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"i2/ZI1CX\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-gitea\\\"],[14,\\\"width\\\",\\\"400\\\"],[14,\\\"height\\\",\\\"400\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 400 400\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"fill-rule\\\",\\\"evenodd\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"m235.61 136.7 7e-3 32.7 4.493 2.189c2.471 1.204 4.628 2.25 4.793 2.324s0.3-15.626 0.3-34.889v-35.024h-9.6l7e-3 32.7m-22.336 30.528c-2.787 0.548-5.894 2.175-8.11 4.244-2.296 2.145-1.694 0.967-24.197 47.328l-11.164 23v4.6c0 4.305 0.076 4.75 1.185 6.942 2.815 5.56 1.055 4.606 69.415 37.629l4.2 2.029h4.221c10.104 0 11.144-1.319 26.676-33.8 0.999-2.09 4.15-8.57 7.001-14.4s6.916-14.2 9.033-18.6l3.849-8 0.01-4.219c0.02-8.49-2.644-11.721-14.326-17.371-4.215-2.038-11.264-5.461-15.664-7.606-15.241-7.429-22.802-11.07-23.125-11.137-0.418-0.086-1.177 1.299-5.112 9.333l-3.234 6.6 1.19 2.2c0.654 1.21 1.308 3.038 1.454 4.063l0.265 1.862 5.747 2.8c22.047 10.742 22.975 15.314 9.007 44.377l-3.317 6.902 1.162 2.098c3.865 6.974-0.923 15.098-8.898 15.098-12.557 0-13.717-18.335-1.278-20.2l1.842-0.276 3.101-6.462c12.037-25.079 11.953-25.952-3.232-33.53l-7.333-3.659-2.319 1.032c-1.276 0.567-3.151 1.153-4.167 1.301l-1.848 0.269-6.785 13.855-6.786 13.854 1.109 1.747c6.109 9.633-5.532 20.771-14.552 13.924-6.729-5.108-4.39-16.742 3.633-18.073 0.812-0.134 1.71-0.318 1.996-0.408 0.429-0.136 6.592-12.372 13.118-26.044l1.37-2.87-0.782-1.33c-3.586-6.099 0.331-14.253 7.353-15.306l1.683-0.252 3.969-8.045c2.183-4.425 4.019-8.168 4.08-8.319s-2.979-1.758-6.755-3.571c-8.092-3.885-10.4-4.452-14.685-3.609\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m73.4 97.876c-2.903 0.376-8.068 1.377-8.8 1.705-0.44 0.197-2.915 1.007-5.5 1.8s-4.7 1.617-4.7 1.831c0 0.213-0.225 0.388-0.5 0.388-0.63 1e-3 -5.615 2.344-5.893 2.771-0.114 0.175-0.837 0.638-1.607 1.029-5.482 2.788-14.835 11.523-18.63 17.4-0.639 0.99-1.274 1.89-1.409 2-0.659 0.534-4.752 8.933-5.555 11.4-0.502 1.54-1.048 2.98-1.213 3.2-0.587 0.782-2.031 7.531-2.489 11.633-0.256 2.292-0.61 4.167-0.785 4.167-0.443 0-0.403 17.45 0.042 18.305 0.199 0.382 0.566 2.748 0.816 5.258 0.493 4.939 1.847 12.516 2.428 13.578 0.198 0.363 0.83 2.369 1.405 4.459 1.927 7.009 10.26 22.927 12.44 23.764 0.303 0.116 0.55 0.481 0.55 0.812 0 0.813 10.667 11.552 12.3 12.383 0.715 0.364 1.3 0.821 1.3 1.017 0 0.195 0.945 0.934 2.1 1.642s2.19 1.41 2.3 1.561 1.28 0.875 2.6 1.609c1.32 0.735 2.67 1.552 3 1.816s1.95 1.086 3.6 1.827c1.65 0.74 3.101 1.486 3.224 1.658 0.123 0.171 1.741 0.865 3.596 1.542s3.557 1.384 3.783 1.572c0.226 0.187 2.388 0.907 4.804 1.599s4.753 1.423 5.193 1.624c1.299 0.593 7.258 1.856 12.2 2.586 2.53 0.374 4.96 0.83 5.4 1.013 1.151 0.48 8.262 1.165 15.067 1.45l5.866 0.247 0.877 2.594c0.903 2.673 4.652 10.529 5.195 10.884 0.168 0.11 0.585 0.83 0.928 1.6 0.685 1.538 1.927 3.686 2.313 4 0.135 0.11 0.826 1.19 1.536 2.4 1.544 2.634 4.561 7.175 5.293 7.968 0.289 0.313 0.975 1.236 1.525 2.051 1.729 2.563 7.039 9.405 8.557 11.025 0.244 0.26 1.523 1.692 2.843 3.183 3.476 3.925 7.354 7.774 10.261 10.183 1.397 1.157 2.629 2.223 2.739 2.368s1.096 0.884 2.191 1.643c1.094 0.758 2.33 1.681 2.745 2.051s1.229 0.911 1.809 1.203 1.884 1.026 2.897 1.632c1.952 1.167 7.201 3.093 8.428 3.093 0.402 0 0.73 0.18 0.73 0.4 0 0.511 115.46 0.557 115.77 0.046 0.121-0.194 1.074-0.482 2.119-0.639 2.437-0.365 7.765-2.307 9.27-3.378 0.64-0.456 1.334-0.829 1.542-0.829 0.451 0 5.639-3.687 8.597-6.111 2.854-2.337 5.633-5.107 8.718-8.689 1.42-1.65 2.681-3.09 2.8-3.2 0.581-0.536 5.161-6.76 5.812-7.9 0.409-0.715 0.869-1.3 1.023-1.3 0.153 0 0.938-1.125 1.742-2.5 2.068-3.533 4.108-6.822 4.561-7.352 0.213-0.248 1.043-1.755 1.845-3.348s1.62-3.1 1.818-3.348c0.687-0.864 5.069-9.661 5.555-11.152 0.269-0.825 0.642-1.5 0.829-1.5s0.878-1.396 1.536-3.101c0.658-1.706 1.671-4.047 2.251-5.203 0.581-1.156 1.405-3.116 1.832-4.356 0.426-1.239 0.934-2.453 1.129-2.696 0.194-0.244 0.946-2.154 1.671-4.244s1.446-3.89 1.602-4c0.155-0.11 0.964-2.36 1.797-5 0.832-2.64 1.627-4.89 1.766-5s0.861-2.27 1.604-4.8c0.742-2.53 1.484-4.782 1.649-5.003 0.164-0.222 0.872-2.562 1.573-5.2 0.701-2.639 1.412-4.977 1.58-5.197s0.965-3.19 1.77-6.6 1.623-6.488 1.817-6.84c0.195-0.353 0.919-3.503 1.611-7 0.692-3.498 1.431-6.678 1.642-7.068 0.211-0.389 0.938-4.169 1.616-8.4 0.677-4.23 1.388-8.052 1.579-8.492 0.192-0.44 0.708-3.77 1.147-7.4 4.258-35.198 1.497-55.451-8.208-60.199l-2.219-1.086-7.473 0.266c-4.111 0.146-7.834 0.417-8.274 0.602-0.801 0.336-13.842 0.941-52 2.412-11.22 0.433-22.2 0.881-24.4 0.997-2.2 0.115-11.334 0.415-20.298 0.665l-16.298 0.455-0.204 69.922-9.392-4.634-8e-3 -65.272-19.3-0.277c-10.615-0.153-19.84-0.441-20.5-0.642-0.66-0.2-6.69-0.551-13.4-0.779-21.82-0.743-58.18-2.495-59-2.843-0.44-0.187-4.04-0.453-8-0.591s-11.34-0.508-16.4-0.822c-8.365-0.519-22.619-0.685-25.6-0.298m13.657 31.23c0.269 0.173 0.809 3.742 1.313 8.694 0.471 4.62 1.021 8.76 1.221 9.2 0.201 0.44 0.561 2.42 0.801 4.4 0.709 5.856 2.382 15.937 2.787 16.8 0.207 0.44 0.943 3.68 1.636 7.2s1.4 6.58 1.571 6.8 0.803 2.56 1.405 5.2c0.601 2.64 1.333 5.34 1.627 6 0.293 0.66 1.193 3.63 2 6.6 0.808 2.97 1.597 5.49 1.754 5.6s0.884 2.27 1.614 4.8c0.731 2.53 1.455 4.69 1.608 4.8 0.154 0.11 0.868 2.09 1.587 4.4 0.72 2.31 1.494 4.429 1.721 4.71 0.226 0.28 0.341 0.567 0.255 0.637-0.263 0.215-9.713-1.339-10.37-1.704-0.337-0.188-1.237-0.468-2-0.623-4-0.814-10.947-2.703-11.712-3.185-0.481-0.304-1.325-0.675-1.875-0.825-1.377-0.377-5.355-1.954-5.6-2.22-0.11-0.12-1.447-0.841-2.971-1.604-1.524-0.762-3.216-1.791-3.759-2.286s-1.16-0.9-1.372-0.9c-1.422 0-11.329-9.68-12.558-12.27-0.347-0.731-0.775-1.33-0.951-1.33-0.593 0-4.638-8.175-5.591-11.3-0.519-1.705-1.071-3.1-1.226-3.1s-0.372-0.495-0.482-1.1c-0.111-0.605-0.599-3.08-1.084-5.5-1.119-5.58-1.528-15.681-0.814-20.111 0.516-3.208 1.895-8.141 2.372-8.489 0.15-0.11 0.752-1.19 1.338-2.4 2.053-4.245 6.611-8.836 11.098-11.177 1.43-0.746 2.69-1.485 2.8-1.643 0.28-0.402 6.231-2.23 8.4-2.58 0.99-0.16 2.003-0.454 2.251-0.654 0.248-0.199 2.678-0.513 5.4-0.697s5.039-0.357 5.149-0.385c0.11-0.029 0.406 0.08 0.657 0.242m131.79 38.066c2.262 0.371 16.092 6.678 15.866 7.236-0.061 0.151-1.897 3.894-4.08 8.319l-3.969 8.045-1.683 0.252c-7.022 1.053-10.939 9.207-7.353 15.306l0.782 1.33-1.37 2.87c-6.526 13.672-12.689 25.908-13.118 26.044-0.286 0.09-1.184 0.274-1.996 0.408-8.023 1.331-10.362 12.965-3.633 18.073 9.02 6.847 20.661-4.291 14.552-13.924l-1.109-1.747 6.786-13.854 6.785-13.855 1.848-0.269c1.016-0.148 2.891-0.734 4.167-1.301l2.319-1.032 7.333 3.659c15.185 7.578 15.269 8.451 3.232 33.53l-3.101 6.462-1.842 0.276c-12.439 1.865-11.279 20.2 1.278 20.2 7.975 0 12.763-8.124 8.898-15.098l-1.162-2.098 3.317-6.902c13.968-29.063 13.04-33.635-9.007-44.377l-5.747-2.8-0.265-1.862c-0.146-1.025-0.8-2.853-1.454-4.063l-1.19-2.2 3.234-6.6c3.935-8.034 4.694-9.419 5.112-9.333 0.323 0.067 7.884 3.708 23.125 11.137 4.4 2.145 11.449 5.568 15.664 7.606 11.682 5.65 14.346 8.881 14.326 17.371l-0.01 4.219-3.849 8c-2.117 4.4-6.182 12.77-9.033 18.6s-6.002 12.31-7.001 14.4c-15.532 32.481-16.572 33.8-26.676 33.8h-4.221l-4.2-2.029c-68.36-33.023-66.6-32.069-69.415-37.629-1.109-2.192-1.185-2.637-1.185-6.942v-4.6l11.164-23c22.503-46.361 21.901-45.183 24.197-47.328 3.874-3.618 8.661-5.122 13.684-4.3\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-gitea-kosmos-org.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-github-com\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"6f7RSD0A\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-github\\\"],[14,\\\"width\\\",\\\"260\\\"],[14,\\\"height\\\",\\\"260\\\"],[14,\\\"enable-background\\\",\\\"new 0 0 212.4575 186.23\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 260 260\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(23.766 36.885)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"m151.79 86.234c-7.078 0.1229-14.154 0.5605-21.232 0.7069-12.318 0.248-24.64 0.5664-36.961 0.512-11.176-0.0472-22.358-0.9728-33.518-0.7052-7.3164 0.1776-14.373 2.2948-20.131 7.584-9.9472 9.1368-12.522 21-11.314 33.807 1.92 20.357 9.2716 31.449 29.115 37.064 15.793 4.4704 31.963 5.2088 48.199 4.9744 5.254 0 10.51 0.1367 15.758-0.0292 12.723-0.4064 25.264-2.2072 37.358-6.3596 10.846-3.7225 18.799-10.691 22.572-22.166 2.6736-8.1288 3.7148-16.388 2.5544-24.853-1.7772-12.959-13.275-30.86-32.4-30.535zm-81.576 59.996c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20zm76 0c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20z\\\"],[14,\\\"fill\\\",\\\"none\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m200.25 59.188c-2.5076-3.4493-4.3632-6.3888-3.8748-11.44 0.6796-7.0664-0.3536-14.396-1.3204-21.518-1.2188-8.9843-3.5236-17.74-7.1776-26.23-9.0332 1.9356-17.981 3.49-25.963 8.0976-8.4648 4.8908-16.695 10.215-25.08 15.25-0.9532 0.5704-2.3124 0.8848-3.3848 0.7032-17.967-3.1368-35.92-3.0196-53.898-0.086-1.3632 0.2244-3.0724-0.2345-4.2948-0.9608-4.4436-2.6604-8.6564-5.7344-13.123-8.3516-11.656-6.844-23.66-12.822-37.494-14.59-0.3928 0.8597-0.7188 1.4785-0.9612 2.1253-4.164 11.22-6.6424 22.844-7.4276 34.82-0.2872 4.3516-0.6092 8.8048 0 13.072 0.3456 2.4296-4e-3 3.8788-1.3924 5.6132-4.8516 6.0488-8.6368 12.717-11.102 20.219-4.6972 14.295-4.4004 28.861-2.2756 43.475 1.7268 11.974 4.7344 23.537 11.324 33.873 13.186 20.682 32.892 29.774 55.572 31.705 19.308 1.6464 38.8 1.1992 58.213 1.2364 13.855 0.0251 27.57-1.4924 40.715-6.6389 20.375-7.9727 33.859-22.604 40.275-44.166 3.7344-12.545 5.2324-25.396 4.8144-38.498-0.4412-13.81-4.0504-26.566-12.144-37.711zm-18.609 82.435c-3.7736 11.475-11.727 18.444-22.572 22.166-12.094 4.1524-24.635 5.9532-37.358 6.3596-5.248 0.1659-10.504 0.0292-15.758 0.0292-16.236 0.2344-32.406-0.504-48.199-4.9744-19.844-5.6152-27.195-16.707-29.115-37.064-1.2072-12.807 1.3672-24.67 11.314-33.807 5.7576-5.2892 12.814-7.4064 20.131-7.584 11.16-0.2676 22.342 0.658 33.518 0.7052 12.32 0.0544 24.642-0.264 36.961-0.512 7.0784-0.1464 14.154-0.584 21.232-0.7069 19.125-0.3243 30.623 17.576 32.4 30.535 1.1604 8.4647 0.1192 16.724-2.5544 24.853z\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"ellipse\\\"],[14,0,\\\"fg\\\"],[14,\\\"cx\\\",\\\"70.214\\\"],[14,\\\"cy\\\",\\\"126.23\\\"],[14,\\\"rx\\\",\\\"16\\\"],[14,\\\"ry\\\",\\\"20\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"ellipse\\\"],[14,0,\\\"fg\\\"],[14,\\\"cx\\\",\\\"146.21\\\"],[14,\\\"cy\\\",\\\"126.23\\\"],[14,\\\"rx\\\",\\\"16\\\"],[14,\\\"ry\\\",\\\"20\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-github-com.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-wiki-kosmos-org\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Jd1PFucm\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-wiki\\\"],[14,\\\"width\\\",\\\"120\\\"],[14,\\\"height\\\",\\\"120\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 120 120\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(18.1,3)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"6.2 5 45.7 20.5 45.7 91 6.2 75.5\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"90 5 50.5 20.5 50.5 91 90 75.5\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"87 88 87 81.8 60.4 91\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"9.2 88 9.2 81.8 34.9 91\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-wiki-kosmos-org.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-zoom-us\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"t+FK8DQJ\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"256\\\"],[14,\\\"height\\\",\\\"256\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 67.733 67.733\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(0 -229.27)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"matrix(.90278 0 0 .90278 6.5684 141.05)\\\"],[14,\\\"fill-rule\\\",\\\"evenodd\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m32.67 117.1c2.2056 0.1405 3.0528 0.27041 4.1992 0.64479 3.9359 1.2854 6.7418 4.6736 7.3059 8.8223 0.06615 0.48578 0.13996 1.0253 0.16431 1.1986 0.29104 2.0743 0.07488 21.552-0.25003 22.55-0.59082 1.814-1.901 2.7993-4.0537 3.0488-1.3671 0.15849-30.564 0.0701-31.846-0.0963-5.2843-0.68659-8.8934-4.001-9.7398-8.9445-0.38418-2.2439-0.62362-20.748-0.29871-23.084 0.34422-2.4746 1.7264-3.797 4.3212-4.1338 0.98769-0.12832 28.191-0.13361 30.197-6e-3\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m61.114 118.11c0.56621 0.4072 0.97816 1.0565 1.1885 1.874 0.19553 0.75909 0.24474 28.04 0.05371 29.747-0.37333 3.3361-2.6305 4.0137-5.5264 1.6584-7.9722-6.4841-9.021-7.5734-9.6795-10.052-0.26008-0.97895-0.33152-10.629-0.08811-11.876 0.38021-1.9457 1.2594-3.1946 3.7383-5.3099 7.4491-6.3564 7.5914-6.4569 9.0522-6.4008 0.70723 0.0272 0.8599 0.0709 1.2613 0.3593\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-zoom-us.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-tag\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JuVyAs3U\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"width\\\",\\\"24\\\"],[14,\\\"height\\\",\\\"24\\\"],[14,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke\\\",\\\"currentColor\\\"],[14,\\\"stroke-width\\\",\\\"2\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[14,\\\"stroke-linejoin\\\",\\\"round\\\"],[14,0,\\\"feather feather-tag\\\"],[12],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z\\\"],[12],[13],[10,\\\"line\\\"],[14,\\\"x1\\\",\\\"7\\\"],[14,\\\"y1\\\",\\\"7\\\"],[14,\\\"x2\\\",\\\"7.01\\\"],[14,\\\"y2\\\",\\\"7\\\"],[12],[13],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-tag.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-warning\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"s2ZzsQPB\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"60px\\\"],[14,\\\"height\\\",\\\"60px\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 60 60\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"fill-rule\\\",\\\"evenodd\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(-479,-238)\\\"],[14,\\\"stroke\\\",\\\"#fbe468\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[14,\\\"stroke-linejoin\\\",\\\"round\\\"],[14,\\\"stroke-width\\\",\\\"1\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(482,244)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[14,\\\"transform\\\",\\\"translate(0,2)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,1,\\\"Triangle-58\\\"],[14,\\\"points\\\",\\\"0.15321 44 27 0 53.847 44\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,\\\"x\\\",\\\"25\\\"],[14,\\\"y\\\",\\\"13\\\"],[14,\\\"width\\\",\\\"4\\\"],[14,\\\"height\\\",\\\"21\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[14,\\\"transform\\\",\\\"translate(0,2)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"27\\\"],[14,\\\"cy\\\",\\\"38\\\"],[14,\\\"r\\\",\\\"2\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-warning.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-web-globe\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"CCF3RzQa\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-web-globe\\\"],[14,\\\"width\\\",\\\"60\\\"],[14,\\\"height\\\",\\\"60\\\"],[14,\\\"enable-background\\\",\\\"new 0 0 64 64\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 60 60\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m48.1 14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.5h8.1c0.1 4 1 7.2 2.4 10.5-1.8 0.8-3.5 1.8-5.1 3-3.2-3.7-5.1-8.5-5.4-13.5zm11.4 12.2c1.7 3.2 4.1 6.1 7 8.4-4.5-0.7-8.5-2.8-11.6-5.8 1.5-1 3-1.8 4.6-2.6zm14.2 8.5c2.9-2.4 5.3-5.2 7-8.4 1.6 0.7 3.2 1.6 4.6 2.6-3.1 3-7.2 5-11.6 5.8zm13-7.3c-1.6-1.2-3.3-2.2-5.1-3 1.4-3.2 2.3-6.5 2.4-10.5h8.1c-0.3 5.1-2.2 9.9-5.4 13.5z\\\"],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-web-globe.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"FD6gV6zT\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contribution\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Submit a contribution\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contribution\\\",[],[[\\\"@attributes\\\",\\\"@save\\\"],[[32,0,[\\\"model\\\",\\\"params\\\"]],[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributions/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributions/resubmit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"CwFo+wqw\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contribution\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Re-submit contribution #\\\"],[1,[32,0,[\\\"model\\\",\\\"id\\\"]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contribution\\\",[],[[\\\"@attributes\\\",\\\"@contributors\\\",\\\"@save\\\"],[[32,0,[\\\"attributes\\\"]],[32,0,[\\\"sortedContributors\\\"]],[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributions/resubmit.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"clbPf+4y\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contributor\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Update contributor profile\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contributor\\\",[],[[\\\"@attributes\\\",\\\"@save\\\"],[[32,0,[\\\"attributes\\\"]],[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/edit.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"zY+qbRPK\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contributor\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Add contributor profile\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contributor\\\",[],[[\\\"@save\\\"],[[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"MmUvWH35\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,1,\\\"dashboard\\\"],[15,0,[30,[36,2],[[32,0,[\\\"showDetailsPane\\\"]],\\\"with-details\\\"],null]],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"stats\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"people\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Contributors\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"contributors.new\\\",\\\"Add contributor profile\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"contributor-list\\\",[],[[\\\"@contributorList\\\",\\\"@showUnconfirmedKredits\\\",\\\"@selectedContributorId\\\",\\\"@loading\\\"],[[32,0,[\\\"kreditsToplist\\\"]],[32,0,[\\\"showUnconfirmedKredits\\\"]],[32,0,[\\\"selectedContributorId\\\"]],[32,0,[\\\"kredits\\\",\\\"syncContributors\\\",\\\"isRunning\\\"]]]],null],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"stats\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"number\\\"],[12],[1,[30,[36,4],[[32,0,[\\\"kredits\\\",\\\"totalKreditsEarned\\\"]]],null]],[13],[2,\\\" kredits confirmed and issued to\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"number\\\"],[12],[1,[32,0,[\\\"contributorsWithKredits\\\",\\\"length\\\"]]],[13],[2,\\\" contributors\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"stats\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[[24,1,\\\"hide-unnconfirmed-kredits\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[32,0,[\\\"showUnconfirmedKredits\\\"]]]],null],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"hide-unnconfirmed-kredits\\\"],[12],[2,\\\"Show unconfirmed kredits in toplist\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[32,0,[\\\"contributionsConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"contributions-by-type\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Contributions by type\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"chart-contributions-by-type\\\",[],[[\\\"@contributions\\\"],[[32,0,[\\\"contributions\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"contributions\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"contributionsUnconfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"contributions-unconfirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"\\\\n Latest Contributions\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,3],[[32,0],\\\"toggleQuickFilterUnconfirmed\\\"],null]],[15,0,[31,[\\\"small \\\",[30,[36,2],[[32,0,[\\\"showQuickFilterUnconfirmed\\\"]],\\\"active\\\"],null]]]],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n filter\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"contributions.new\\\",\\\"Submit a contribution\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n\\\"],[2,\\\" \\\"],[8,\\\"contribution-list\\\",[],[[\\\"@contributions\\\",\\\"@vetoContribution\\\",\\\"@contractInteractionEnabled\\\",\\\"@selectedContributionId\\\",\\\"@showQuickFilter\\\",\\\"@loading\\\"],[[32,0,[\\\"contributionsUnconfirmedSorted\\\"]],[30,[36,3],[[32,0],\\\"vetoContribution\\\"],null],[32,0,[\\\"kredits\\\",\\\"hasAccounts\\\"]],[32,0,[\\\"selectedContributionId\\\"]],[32,0,[\\\"showQuickFilterUnconfirmed\\\"]],[32,0,[\\\"kredits\\\",\\\"syncContributions\\\",\\\"isRunning\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"contributionsConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"contributions-confirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Confirmed Contributions\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,3],[[32,0],\\\"toggleQuickFilterConfirmed\\\"],null]],[15,0,[31,[\\\"small \\\",[30,[36,2],[[32,0,[\\\"showQuickFilterConfirmed\\\"]],\\\"active\\\"],null]]]],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n filter\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"contribution-list\\\",[],[[\\\"@contributions\\\",\\\"@vetoContribution\\\",\\\"@selectedContributionId\\\",\\\"@showQuickFilter\\\"],[[32,0,[\\\"contributionsConfirmedSorted\\\"]],[30,[36,3],[[32,0],\\\"vetoContribution\\\"],null],[32,0,[\\\"selectedContributionId\\\"]],[32,0,[\\\"showQuickFilterConfirmed\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"showFullContributionSync\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"sync-all-contributions\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"kredits\\\",\\\"fetchMissingContributions\\\",\\\"isIdle\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[14,0,\\\"mb-4\\\"],[12],[2,\\\"\\\\n There are\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,[32,0,[\\\"kredits\\\",\\\"missingHistoricContributionsCount\\\"]]],[13],[2,\\\"\\\\n earlier contributions, which are not currently loaded/displayed.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n You can fetch all historic data in one go, and have it stored locally in\\\\n your browser:\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"small\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,0,[\\\"kredits\\\",\\\"fetchMissingContributions\\\"]]],null]],null],[12],[2,\\\"\\\\n fetch all data\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[14,0,\\\"mb-4\\\"],[12],[2,\\\"\\\\n Syncing data. Please be patient...\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n (You can leave this website anytime and sync missing data when you come back.)\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"details\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,6],[[30,[36,5],null,null]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"perform\\\",\\\"on\\\",\\\"if\\\",\\\"action\\\",\\\"await\\\",\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"DufwIN5Z\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"section\\\"],[14,1,\\\"contribution-details\\\"],[15,0,[30,[36,0],[[32,0,[\\\"model\\\",\\\"vetoed\\\"]],\\\"vetoed\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Contribution #\\\"],[1,[32,0,[\\\"model\\\",\\\"id\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[1,[32,0,[\\\"model\\\",\\\"amount\\\"]]],[13],[2,\\\" \\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"₭S\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"who-what-when\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"contributor\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,0,[\\\"model\\\",\\\"contributor\\\"]]]],null],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@model\\\"],[\\\"dashboard.contributors.show\\\",[32,0,[\\\"model\\\",\\\"contributor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[1,[32,0,[\\\"model\\\",\\\"contributor\\\",\\\"name\\\"]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n contributed\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"date\\\"],[15,\\\"title\\\",[32,0,[\\\"model\\\",\\\"iso8601Date\\\"]]],[12],[1,[30,[36,1],[[32,0,[\\\"model\\\",\\\"iso8601Date\\\"]]],null]],[13],[2,\\\":\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,[32,0,[\\\"model\\\",\\\"description\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Kind: \\\"],[1,[32,0,[\\\"model\\\",\\\"kind\\\"]]],[2,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[2,\\\"Status: \\\"],[1,[30,[36,2],[[32,0,[\\\"model\\\"]]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"model\\\",\\\"url\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[32,0,[\\\"model\\\",\\\"url\\\"]]],[15,\\\"title\\\",[32,0,[\\\"model\\\",\\\"description\\\"]]],[14,0,\\\"button\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"\\\\n Open URL\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,0],[[32,0,[\\\"model\\\",\\\"vetoed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,0,\\\"hint vetoed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"icon\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"icon-warning\\\",[],[[],[]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n This contribution has been vetoed, meaning no\\\\n kredits will be issued.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"contributions.resubmit\\\",[32,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Re-submit contribution …\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"contributions.resubmit\\\",[32,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Copy & edit as new\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"a\\\"],[15,6,[31,[[32,0,[\\\"ipfsGatewayUrl\\\"]],\\\"/\\\",[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"\\\\n Inspect IPFS data\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"moment-from\\\",\\\"item-status\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributions/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"uzAAqojK\",\n \"block\": \"{\\\"symbols\\\":[\\\"account\\\"],\\\"statements\\\":[[10,\\\"section\\\"],[14,1,\\\"contributor-profile\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\",\\\"@size\\\"],[[32,0,[\\\"model\\\"]],\\\"medium\\\"]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,[32,0,[\\\"model\\\",\\\"name\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"role\\\"],[12],[1,[32,0,[\\\"roleName\\\"]]],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"external-accounts\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[30,[36,0],[[30,[36,0],[[32,0,[\\\"model\\\",\\\"accounts\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"external-account-link\\\",[],[[\\\"@account\\\"],[[32,1]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[6,[37,2],[[32,0,[\\\"model\\\",\\\"url\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[32,0,[\\\"model\\\",\\\"url\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"title\\\",\\\"Website\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"site\\\"],[12],[2,\\\"Web\\\"],[13],[2,\\\"\\\\n \\\"],[8,\\\"icon-web-globe\\\",[],[[],[]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button green\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"contributions.new\\\",[30,[36,3],null,[[\\\"contributorId\\\"],[[32,0,[\\\"model\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"♥ Give kredits\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[31,[\\\"https://explorer.testnet.rsk.co/address/\\\",[32,0,[\\\"model\\\",\\\"account\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"Inspect Rootstock transactions\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"a\\\"],[15,6,[31,[[32,0,[\\\"ipfsGatewayUrl\\\"]],\\\"/\\\",[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"Inspect IPFS profile\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"contributors.edit\\\",[32,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Edit profile\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-track-array\\\",\\\"each\\\",\\\"if\\\",\\\"hash\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributors/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/reimbursements/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"4ZGew5Lo\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-item\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Submit a Reimbursement\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-reimbursement\\\",[],[[\\\"@attributes\\\"],[[32,0,[\\\"model\\\",\\\"params\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/reimbursements/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"vyvqw+Xa\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"signup\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/account\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"juAngjy3\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Complete your contributor profile\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"content text-lg\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"mb-8\\\"],[12],[2,\\\"\\\\n Kredits allow you to to earn rewards for your contributions, in the form of\\\\n dynamic open-source grants. As a regular contributor, you can also take\\\\n part in the community's project governance and finances.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n In order to interact with the system you will need a\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://rootstock.io\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"Rootstock\\\"],[13],[2,\\\"\\\\n wallet/account.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"form\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n Rootstock address:\\\"],[10,\\\"br\\\"],[12],[13],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[[24,\\\"placeholder\\\",\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\"],[16,0,[30,[36,0],[[32,0,[\\\"isValidEthAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[32,0,[\\\"accountAddress\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[32,0,[\\\"signupButtonDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,[36,1],[[32,0,[\\\"completeSignup\\\"]]],null]],null],[12],[2,\\\"\\\\n Complete my profile\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"fn\\\",\\\"on\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/account.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/complete\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"hc80mylW\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Welcome aboard!\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"content text-lg text-center\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Congratulations. Your initial profile is now complete.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Why not say hi to your fellow contributors\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://wiki.kosmos.org/Main_Page#Community_.2F_Getting_in_touch_.2F_Getting_involved\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"in one of our chat rooms\\\"],[13],[2,\\\"?.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small\\\"]],[[\\\"@route\\\"],[\\\"dashboard\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Return to dashboard\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/complete.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"NAvcexMu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Create your contributor profile\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"content text-lg\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n You have already contributed to a Kosmos project, or you are interested\\\\n in contributing in the near future? Fantastic!\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n In order to earn kredits for your contributions, you will need a\\\\n registered contributor profile. The quickest way to register is by\\\\n connecting one of the following accounts:\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"connectGithub\\\"],null]],[14,0,\\\"icon\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"icon-account-github-com\\\",[],[[],[]],null],[2,\\\"\\\\n Connect GitHub\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/index.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/utils/format-kredits\", [\"exports\", \"ethers\"], function (_exports, _ethers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(value) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var etherValue = _ethers.default.utils.formatEther(value);\n\n if (!options.decimals) {\n etherValue = parseInt(etherValue).toString();\n }\n\n return etherValue;\n }\n});","define(\"kredits-web/utils/get-locale\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default() {\n return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language;\n }\n});","define(\"kredits-web/utils/group-by\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = groupBy;\n\n function groupBy(collection, property) {\n var groups = Ember.A();\n var items = collection;\n\n if (items) {\n items.forEach(function (item) {\n var value = item[property];\n var group = groups.findBy('value', value);\n\n if (Ember.isPresent(group)) {\n group.items.push(item);\n } else {\n group = {\n property: property,\n value: value,\n items: [item]\n };\n groups.push(group);\n }\n });\n }\n\n return groups;\n }\n});","define(\"kredits-web/utils/is-valid-amount\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = isValidAmount;\n\n function isValidAmount(inputAmount) {\n var amount = parseFloat(inputAmount);\n\n if (Number.isNaN(amount)) {\n return false;\n } else {\n return amount > 0;\n }\n }\n});","define(\"kredits-web/utils/process-contribution-data\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = processContributionData;\n\n function processContributionData(data) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var processed = {};\n\n if (data.confirmedAtBlock && typeof data.confirmedAtBlock.toNumber === 'function') {\n processed.confirmedAt = data.confirmedAtBlock.toNumber();\n } else if (data.confirmedAt !== 'undefined') {\n processed.confirmedAt = data.confirmedAt;\n }\n\n var otherProperties = ['id', 'contributorId', 'amount', 'vetoed', 'ipfsHash', 'kind', 'description', 'url', 'date', 'time', 'pendingTx'];\n otherProperties.forEach(function (prop) {\n processed[prop] = data[prop];\n });\n\n if (options.includeDetails) {\n processed.details = data.details;\n }\n\n return processed;\n }\n});","define(\"kredits-web/utils/process-contributor-data\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = processContributorData;\n\n function processContributorData(data) {\n var _data$contributionsCo;\n\n var processed = {\n balance: data.balanceInt,\n totalKreditsEarned: data.totalKreditsEarned,\n contributionsCount: (_data$contributionsCo = data.contributionsCount) === null || _data$contributionsCo === void 0 ? void 0 : _data$contributionsCo.toNumber()\n };\n var otherProperties = ['id', 'account', 'accounts', 'ipfsHash', 'isCore', 'kind', 'name', 'url', 'github_username', 'github_uid', 'wiki_username', 'zoom_display_name'];\n otherProperties.forEach(function (prop) {\n processed[prop] = data[prop];\n });\n return processed;\n }\n});","define(\"kredits-web/utils/process-reimbursement-data\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = processReimbursementData;\n\n function processReimbursementData(data) {\n var processed = {\n amount: data.amount.toNumber()\n };\n\n if (data.confirmedAtBlock && typeof data.confirmedAtBlock.toNumber === 'function') {\n processed.confirmedAt = data.confirmedAtBlock.toNumber();\n } else if (data.confirmedAt !== 'undefined') {\n processed.confirmedAt = data.confirmedAt;\n }\n\n var otherProperties = ['id', 'recipientId', 'token', 'vetoed', 'ipfsHash', 'expenses', 'pendingTx'];\n otherProperties.forEach(function (prop) {\n processed[prop] = data[prop];\n });\n return processed;\n }\n});","define(\"kredits-web/utils/read-file-content\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(file) {\n var reader = new FileReader();\n return new Promise(function (resolve, reject) {\n reader.onload = function (event) {\n return resolve(event.target.result);\n };\n\n reader.onerror = function (error) {\n return reject(error);\n };\n\n reader.readAsText(file);\n });\n }\n});","define(\"kredits-web/utils/switch-network\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _default() {\n return _ref.apply(this, arguments);\n }\n\n function _ref() {\n _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var networkName, chainId, chainIdHex;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n networkName = _environment.default.web3NetworkName;\n chainId = _environment.default.web3ChainId;\n chainIdHex = \"0x\".concat(Number(chainId).toString(16));\n _context.prev = 3;\n _context.next = 6;\n return window.ethereum.request({\n method: 'wallet_switchEthereumChain',\n params: [{\n chainId: chainIdHex\n }]\n });\n\n case 6:\n _context.next = 16;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](3);\n\n if (!(_context.t0.code === 4902)) {\n _context.next = 15;\n break;\n }\n\n _context.next = 13;\n return window.ethereum.request({\n method: 'wallet_addEthereumChain',\n params: [{\n chainId: chainIdHex,\n chainName: networkName,\n rpcUrls: [_environment.default.web3ProviderUrl],\n nativeCurrency: {\n name: 'tRBTC',\n symbol: 'tRBTC',\n decimals: 18\n }\n }]\n });\n\n case 13:\n _context.next = 16;\n break;\n\n case 15:\n console.warn('Failed to switch chains:', _context.t0.message);\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 8]]);\n }));\n return _ref.apply(this, arguments);\n }\n});","define('kredits-web/config/environment', [], function() {\n var prefix = 'kredits-web';\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n var config = JSON.parse(decodeURIComponent(rawConfig));\n\n var exports = { 'default': config };\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n if (!runningTests) {\n require(\"kredits-web/app\")[\"default\"].create({\"name\":\"kredits-web\",\"version\":\"2.0.0+03e7f14d\"});\n }\n \n"]} \ No newline at end of file diff --git a/release/assets/kredits-web-f21602587acec9a1744c244385a83592.css b/release/assets/kredits-web-a9dbff1f1ec96f860d4ebebcc808e6a6.css similarity index 55% rename from release/assets/kredits-web-f21602587acec9a1744c244385a83592.css rename to release/assets/kredits-web-a9dbff1f1ec96f860d4ebebcc808e6a6.css index 440aede..9b195a5 100644 --- a/release/assets/kredits-web-f21602587acec9a1744c244385a83592.css +++ b/release/assets/kredits-web-a9dbff1f1ec96f860d4ebebcc808e6a6.css @@ -1 +1 @@ -@charset "UTF-8";main#budget,main#dashboard{width:100%;display:grid;grid-row-gap:2rem}body,button,h1,h2,h3,h4,h5,html,input{font-family:"Open Sans",sans-serif;font-weight:300}a,section h2{color:#68d7fb}*{margin:0;padding:0;box-sizing:border-box}:active,:focus,:hover{outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0);-webkit-tap-highlight-color:transparent}main{padding:1rem 2rem}main#dashboard{grid-template-areas:"stats" "contributions"}main#budget{grid-template-areas:"aside" "content"}main.center-column{display:flex;flex-direction:column;align-items:center}main.center-column section{width:600px;max-width:100%}main.center-column section header{text-align:center}@media (max-width:600px){main{padding:1rem}main div#content section:first-of-type{margin-top:0}}main section .content a{font-size:inherit}main section .content.text-lg p{font-size:1.2rem;margin-bottom:1em;line-height:1.5em}main section .content.text-center{text-align:center}main section .content p.actions{text-align:center;padding-top:2rem}#intro{padding:2rem;background-color:rgba(0,0,0,.2);font-size:1.6rem}@media (max-width:600px){#intro{padding:2rem 1rem;font-size:1.5rem}main section{margin-bottom:5rem}}#intro h2{font-size:inherit;margin-bottom:1em}#intro p{margin-bottom:1em;line-height:1.5em;font-size:1.2rem}#intro p:last-child{margin-bottom:0}#intro a{text-decoration:none}#intro a:active,#intro a:hover{text-decoration:underline}@media (min-width:550px){main#budget,main#dashboard.with-details{grid-column-gap:3rem;grid-template-columns:2fr 4fr 2fr}main#dashboard{grid-column-gap:4rem;grid-row-gap:2rem;grid-template-columns:2fr 4fr;grid-template-areas:"stats contributions"}main#dashboard.with-details{grid-template-areas:"stats contributions details"}main#budget{grid-template-areas:"aside content empty"}}main section{margin-bottom:5rem}main section:first-of-type{margin-top:2rem}main section header{margin-bottom:3rem}main section header.with-nav{display:grid;grid-template-columns:auto 5rem;grid-template-areas:"title" "actions"}main section header h2{display:inline-block}main section header nav{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}@media (max-width:600px){main section header{margin-bottom:2rem}}main section .mb-4{margin-bottom:1rem}main section .mb-8,ul.item-list.spaced>li{margin-bottom:2rem}body,html{font-size:12px;color:#fff}body{background-image:linear-gradient(to bottom,rgba(22,21,40,.4),rgba(0,0,0,.75)),url(/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);background-repeat:none;background-attachment:fixed}@media screen and (min-width:900px){body{background-size:cover}}button,h1,h2,h3,h4,h5,input{font-size:1rem}section h2{font-size:1.5rem}section#people .content p.stats{margin-bottom:1rem;font-size:1rem;color:#fff;text-align:center}section#people .content p.stats span.number{font-weight:600}section#contributions-by-type .chart{width:50%;margin-left:auto;margin-right:auto}@media (max-width:600px){section#contributions-by-type .chart{width:75%}}@media (min-width:550px){section h2{font-size:2rem}}.button,button,input[type=submit]{display:inline-block;padding:.6rem 2rem;background-color:rgba(22,21,40,.6);border:1px solid #161528;border-radius:3px;color:#68d7fb;font-weight:500;text-decoration:none;text-transform:uppercase;cursor:pointer;letter-spacing:.1em;-webkit-appearance:none}.button+.button,.button+button,.button+input[type=submit],button+.button,button+button,button+input[type=submit],input[type=submit]+.button,input[type=submit]+button,input[type=submit]+input[type=submit]{margin-left:.5rem}.button:hover,button:hover,input[type=submit]:hover{background-color:rgba(22,21,40,.8)}.button.active,.button:active,.button:focus,button.active,button:active,button:focus,input[type=submit].active,input[type=submit]:active,input[type=submit]:focus{border-color:#68d7fb}.button[disabled],button[disabled],input[type=submit][disabled]{color:rgba(255,255,255,.5)}.button.small,button.small,input[type=submit].small{font-size:.86rem;padding:.2rem .8rem}.button.small svg,button.small svg,input[type=submit].small svg{width:1em;height:1em;vertical-align:middle;margin-right:.4rem}.button.danger:not(:disabled),button.danger:not(:disabled),input[type=submit].danger:not(:disabled){color:#fb6868;background-color:rgba(40,21,21,.6);border-color:#281515}.button.danger:not(:disabled):hover,button.danger:not(:disabled):hover,input[type=submit].danger:not(:disabled):hover{background-color:rgba(40,21,21,.8)}.button.danger:not(:disabled).active,.button.danger:not(:disabled):active,.button.danger:not(:disabled):focus,button.danger:not(:disabled).active,button.danger:not(:disabled):active,button.danger:not(:disabled):focus,input[type=submit].danger:not(:disabled).active,input[type=submit].danger:not(:disabled):active,input[type=submit].danger:not(:disabled):focus{border-color:#fb6868}.button.green:not(:disabled),button.green:not(:disabled),input[type=submit].green:not(:disabled){color:#97fb68;background-color:rgba(21,40,21,.6);border-color:#152815}.button.green:not(:disabled):hover,button.green:not(:disabled):hover,input[type=submit].green:not(:disabled):hover{background-color:rgba(21,40,21,.8)}.button.green:not(:disabled).active,.button.green:not(:disabled):active,.button.green:not(:disabled):focus,button.green:not(:disabled).active,button.green:not(:disabled):active,button.green:not(:disabled):focus,input[type=submit].green:not(:disabled).active,input[type=submit].green:not(:disabled):active,input[type=submit].green:not(:disabled):focus{border-color:#97fb68}.button.pink:not(:disabled),button.pink:not(:disabled),input[type=submit].pink:not(:disabled){color:#e068fb;background-color:rgba(40,21,40,.6);border-color:#281528}.button.pink:not(:disabled):hover,button.pink:not(:disabled):hover,input[type=submit].pink:not(:disabled):hover{background-color:rgba(40,21,40,.8)}.button.pink:not(:disabled).active,.button.pink:not(:disabled):active,.button.pink:not(:disabled):focus,button.pink:not(:disabled).active,button.pink:not(:disabled):active,button.pink:not(:disabled):focus,input[type=submit].pink:not(:disabled).active,input[type=submit].pink:not(:disabled):active,input[type=submit].pink:not(:disabled):focus{border-color:#e068fb}.button.purple:not(:disabled),button.purple:not(:disabled),input[type=submit].purple:not(:disabled){color:#8f68fb;background-color:rgba(24,21,40,.6);border-color:#181528}.button.purple:not(:disabled):hover,button.purple:not(:disabled):hover,input[type=submit].purple:not(:disabled):hover{background-color:rgba(24,21,40,.8)}.button.purple:not(:disabled).active,.button.purple:not(:disabled):active,.button.purple:not(:disabled):focus,button.purple:not(:disabled).active,button.purple:not(:disabled):active,button.purple:not(:disabled):focus,input[type=submit].purple:not(:disabled).active,input[type=submit].purple:not(:disabled):active,input[type=submit].purple:not(:disabled):focus{border-color:#8f68fb}.button.yellow:not(:disabled),button.yellow:not(:disabled),input[type=submit].yellow:not(:disabled){color:#fbe468;background-color:rgba(40,40,21,.6);border-color:#282815}.button.yellow:not(:disabled):hover,button.yellow:not(:disabled):hover,input[type=submit].yellow:not(:disabled):hover{background-color:rgba(40,40,21,.8)}.button.yellow:not(:disabled).active,.button.yellow:not(:disabled):active,.button.yellow:not(:disabled):focus,button.yellow:not(:disabled).active,button.yellow:not(:disabled):active,button.yellow:not(:disabled):focus,input[type=submit].yellow:not(:disabled).active,input[type=submit].yellow:not(:disabled):active,input[type=submit].yellow:not(:disabled):focus{border-color:#fbe468}.button.icon svg,button.icon svg,input[type=submit].icon svg{width:2rem;height:2rem;vertical-align:middle;margin-right:1rem}.button.icon svg .fg,button.icon svg .fg,input[type=submit].icon svg .fg{fill:#68d7fb}section#add-contribution form h3,section#add-contributor form h3,section#add-item form h3,section#signup form h3{font-size:1.5rem;font-weight:400;margin-top:2em;margin-bottom:1em}section#add-contribution form p,section#add-contributor form p,section#add-item form p,section#signup form p{font-size:1.2rem}section#add-contribution form p.label,section#add-contributor form p.label,section#add-item form p.label,section#signup form p.label{font-size:1rem;margin-bottom:.5rem}section#add-contribution form p.actions,section#add-contributor form p.actions,section#add-item form p.actions,section#signup form p.actions{margin-bottom:1.5rem;padding-top:1.5rem;text-align:center}section#add-contribution form p.actions a,section#add-contributor form p.actions a,section#add-item form p.actions a,section#signup form p.actions a{color:#68d7fb;margin-left:1rem}section#add-contribution form label,section#add-contributor form label,section#add-item form label,section#signup form label{display:block;margin-bottom:.5rem;opacity:.7}section#add-contribution form label>p,section#add-contributor form label>p,section#add-item form label>p,section#signup form label>p{margin-bottom:1.5rem}section#add-contribution form fieldset,section#add-contributor form fieldset,section#add-item form fieldset,section#signup form fieldset{border:none}section#add-contribution form fieldset.horizontal,section#add-contributor form fieldset.horizontal,section#add-item form fieldset.horizontal,section#signup form fieldset.horizontal{display:grid;grid-template-columns:1fr 1fr;grid-gap:2rem}section#add-contribution form fieldset.horizontal.thirds,section#add-contributor form fieldset.horizontal.thirds,section#add-item form fieldset.horizontal.thirds,section#signup form fieldset.horizontal.thirds{grid-template-columns:1fr 1fr 1fr}section#add-contribution form fieldset.horizontal.total-amounts,section#add-contributor form fieldset.horizontal.total-amounts,section#add-item form fieldset.horizontal.total-amounts,section#signup form fieldset.horizontal.total-amounts{grid-template-columns:2fr 1fr 1fr}section#add-contribution form input[type=text],section#add-contribution form input[type=url],section#add-contribution form select,section#add-contributor form input[type=text],section#add-contributor form input[type=url],section#add-contributor form select,section#add-item form input[type=text],section#add-item form input[type=url],section#add-item form select,section#signup form input[type=text],section#signup form input[type=url],section#signup form select{width:100%;padding:1rem;border:none;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(22,21,40,.3);color:#fff;font-size:1.2rem;font-weight:400;transition:border-color .1s linear}table.contributor-list tr td.kredits .amount,table.contributor-list tr.current-user,ul.contribution-list li .amount,ul.contribution-list li .recipient{font-weight:500}section#add-contribution form input[type=text].valid,section#add-contribution form input[type=text]:focus,section#add-contribution form input[type=url].valid,section#add-contribution form input[type=url]:focus,section#add-contribution form select.valid,section#add-contribution form select:focus,section#add-contributor form input[type=text].valid,section#add-contributor form input[type=text]:focus,section#add-contributor form input[type=url].valid,section#add-contributor form input[type=url]:focus,section#add-contributor form select.valid,section#add-contributor form select:focus,section#add-item form input[type=text].valid,section#add-item form input[type=text]:focus,section#add-item form input[type=url].valid,section#add-item form input[type=url]:focus,section#add-item form select.valid,section#add-item form select:focus,section#signup form input[type=text].valid,section#signup form input[type=text]:focus,section#signup form input[type=url].valid,section#signup form input[type=url]:focus,section#signup form select.valid,section#signup form select:focus{background-color:rgba(22,21,40,.6)}section#add-contribution form input[type=text]:focus :not(:invalid),section#add-contribution form input[type=url]:focus :not(:invalid),section#add-contribution form select:focus :not(:invalid),section#add-contributor form input[type=text]:focus :not(:invalid),section#add-contributor form input[type=url]:focus :not(:invalid),section#add-contributor form select:focus :not(:invalid),section#add-item form input[type=text]:focus :not(:invalid),section#add-item form input[type=url]:focus :not(:invalid),section#add-item form select:focus :not(:invalid),section#signup form input[type=text]:focus :not(:invalid),section#signup form input[type=url]:focus :not(:invalid),section#signup form select:focus :not(:invalid){border-color:#68d7fb}section#add-contribution form input[type=text]::placeholder,section#add-contribution form input[type=url]::placeholder,section#add-contribution form select::placeholder,section#add-contributor form input[type=text]::placeholder,section#add-contributor form input[type=url]::placeholder,section#add-contributor form select::placeholder,section#add-item form input[type=text]::placeholder,section#add-item form input[type=url]::placeholder,section#add-item form select::placeholder,section#signup form input[type=text]::placeholder,section#signup form input[type=url]::placeholder,section#signup form select::placeholder{color:rgba(238,238,238,.5)}section#add-contribution form input[type=text].invalid,section#add-contribution form input[type=url].invalid,section#add-contribution form select.invalid,section#add-contributor form input[type=text].invalid,section#add-contributor form input[type=url].invalid,section#add-contributor form select.invalid,section#add-item form input[type=text].invalid,section#add-item form input[type=url].invalid,section#add-item form select.invalid,section#signup form input[type=text].invalid,section#signup form input[type=url].invalid,section#signup form select.invalid{border-color:#fb6868}section#add-contribution form input[type=text]:disabled,section#add-contribution form input[type=url]:disabled,section#add-contribution form select:disabled,section#add-contributor form input[type=text]:disabled,section#add-contributor form input[type=url]:disabled,section#add-contributor form select:disabled,section#add-item form input[type=text]:disabled,section#add-item form input[type=url]:disabled,section#add-item form select:disabled,section#signup form input[type=text]:disabled,section#signup form input[type=url]:disabled,section#signup form select:disabled{color:rgba(255,255,255,.6)}section#add-contribution form select,section#add-contributor form select,section#add-item form select,section#signup form select{-moz-appearance:none;-webkit-appearance:none;appearance:none;border-radius:0;background-color:rgba(22,21,40,.6);background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%);background-position:calc(100% - 1.5rem) 1.5rem,calc(100% - 1rem) 1.5rem;background-size:.5rem .5rem,.5rem .5rem;background-repeat:no-repeat}section#add-contribution form select:invalid,section#add-contributor form select:invalid,section#add-item form select:invalid,section#signup form select:invalid{color:rgba(238,238,238,.5)}section#add-contribution form input[type=submit],section#add-contributor form input[type=submit],section#add-item form input[type=submit],section#signup form input[type=submit]{padding:.6rem 2rem}section#add-contribution form input[type=submit]:disabled,section#add-contributor form input[type=submit]:disabled,section#add-item form input[type=submit]:disabled,section#signup form input[type=submit]:disabled{background-color:transparent}section#add-contribution form input[type=checkbox],section#add-contributor form input[type=checkbox],section#add-item form input[type=checkbox],section#signup form input[type=checkbox]{display:none}section#add-contribution form label.checkbox,section#add-contributor form label.checkbox,section#add-item form label.checkbox,section#signup form label.checkbox{line-height:3.2rem;font-size:1.2rem}section#add-contribution form label.checkbox::before,section#add-contributor form label.checkbox::before,section#add-item form label.checkbox::before,section#signup form label.checkbox::before{display:inline-block;margin-right:.8rem;height:3.2rem;width:3.2rem;font-size:2rem;background-color:rgba(22,21,40,.3);border-bottom:1px solid rgba(255,255,255,.2);text-align:center;vertical-align:middle;content:"✓";color:rgba(255,255,255,.2)}table.contributor-list.loading::before,ul.item-list.loading::before{height:1px;content:"";background-image:linear-gradient(45deg,rgba(255,255,255,.2) 40%,#68d7fb 60%,rgba(255,255,255,.2));background-size:200% 200%;animation:kitt 2.5s linear infinite}section#add-contribution form input[type=checkbox]:checked+label.checkbox::before,section#add-contributor form input[type=checkbox]:checked+label.checkbox::before,section#add-item form input[type=checkbox]:checked+label.checkbox::before,section#signup form input[type=checkbox]:checked+label.checkbox::before{background-color:rgba(22,21,40,.6);color:#fff}@keyframes kitt{0%,100%{background-position:0 0}50%{background-position:100% 0}}ul.item-list{list-style:none}ul.item-list>li{padding:.8rem 1.2rem;font-size:1.2rem;background-color:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.2)}ul.item-list>li:first-of-type{border-top:1px solid rgba(255,255,255,.2)}ul.item-list>li.selected{background-color:rgba(255,255,255,.2)}section#contribution-details .content,table.contributor-list tr{background-color:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.2)}ul.item-list.loading::before{display:block;width:100%}ul.item-list.loading>li:first-of-type{border-top:none}section#contribution-details .content,section#contribution-details .hint.vetoed,section#contributor-profile .content,table.contributor-list tr:first-of-type,ul.expense-list li,ul.item-list.spaced>li,ul.reimbursement-list div.meta{border-top:1px solid rgba(255,255,255,.2)}@media (max-width:600px){section#funds{margin-bottom:2rem}}section#funds table.token-balances{opacity:1;transition:opacity .3s linear}section#funds table.token-balances.loading{opacity:0}section#funds table.token-balances thead{display:none}section#funds table.token-balances td,section#funds table.token-balances th{font-size:1.2rem;vertical-align:text-bottom}section#funds table.token-balances th{font-size:1.5rem;text-align:left;padding-right:1rem}section#funds table.token-balances td{text-align:right}section#funds table.token-balances td.amount{font-size:2rem;padding-right:1.2rem}section#funds table.token-balances td.fiat-amount{color:rgba(255,255,255,.8)}section#contribution-details header nav .amount{font-size:1.5rem}section#contribution-details header nav .symbol{padding-left:.2rem}section#contribution-details .content{width:100%;margin:0 0 1.5rem;padding:2rem}section#contribution-details .content h3{font-size:1.5rem;margin-bottom:2rem}section#contribution-details .content p{margin-bottom:2rem}section#contribution-details .content p.who-what-when{font-size:1.2rem;margin-bottom:1.2rem}section#contribution-details .content p:last-of-type{margin-bottom:0}section#contribution-details .content a:not(.button){color:#68d7fb;text-decoration:none}section#contribution-details .content a:not(.button):not(.button):hover{text-decoration:underline}section#contribution-details .actions{text-align:center}section#contribution-details.vetoed .content h3{text-decoration:line-through}section#contribution-details .hint.vetoed{overflow:auto;margin-top:2rem;padding-top:2rem;font-size:1.2rem}section#contribution-details .hint.vetoed .icon{display:inline-block;width:40px;height:40px;float:left;margin-right:1rem;margin-bottom:1rem}section#contribution-details .hint.vetoed .icon svg{width:100%;height:auto}@media (max-width:600px){#dashboard.with-details #contributions,#dashboard.with-details #stats,#intro.with-details{display:none}main section#contributions-confirmed,main section#contributions-unconfirmed{margin-top:0}}.quick-filter{font-size:1.2rem;margin-bottom:2rem}.quick-filter p{padding:.2rem 0 0}.quick-filter label+label{margin-left:3.6rem}ul.contribution-list{clear:both;width:100%}ul.contribution-list li{display:grid;grid-template-columns:auto 5rem 5rem;grid-row-gap:.5rem;cursor:pointer}ul.contribution-list li.confirmed,ul.contribution-list li.vetoed{grid-template-columns:auto 5rem}ul.contribution-list li.vetoed{text-decoration:line-through;opacity:.6}ul.contribution-list li p{align-self:center;margin:0;line-height:2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.contribution-list li p.kredits-amount,ul.contribution-list li p.voting{text-align:right}ul.contribution-list li span.title a{text-decoration:none;color:#fff}ul.contribution-list li span.title a:active,ul.contribution-list li span.title a:hover{color:#68d7fb}ul.contribution-list li .description{line-height:1.4em;font-size:1rem}ul.contribution-list li .category{color:#68d7fb;padding-right:.2rem}ul.contribution-list li .category.community{color:#fb6868}ul.contribution-list li .category.dev{color:#e068fb}ul.contribution-list li .category.design{color:#fbe468}ul.contribution-list li .category.docs{color:#97fb68}ul.contribution-list li .category.ops{color:#8f68fb}ul.contribution-list li .symbol{font-size:.8rem;padding-left:.2rem}ul.contribution-list li .votes{font-size:1rem;color:#68d7fb;margin-right:.5rem}table.contributor-list{position:relative;width:100%;border-collapse:collapse;margin-bottom:1.5rem}table.contributor-list tr{cursor:pointer}table.contributor-list tr.selected{background-color:rgba(255,255,255,.2)}table.contributor-list tr td{padding:0 1.2rem;line-height:3.6rem}table.contributor-list tr td.person{text-align:left;font-size:1.2rem}table.contributor-list tr td.person img.avatar{margin-right:.2rem}table.contributor-list tr td.kredits{text-align:right}table.contributor-list tr td.kredits .amount{font-size:1.2rem}table.contributor-list tr td.kredits .symbol{font-size:.8rem;padding-left:.2rem}table.contributor-list.loading::before{display:block;width:100%;position:absolute}section#contributor-profile{text-align:center}section#contributor-profile header{z-index:2;width:100%;text-align:center}section#contributor-profile header img{margin:0 auto;border:3px solid rgba(255,255,255,.2)}section#contributor-profile .content{z-index:1;width:100%;margin:-7.2rem 0 1.5rem;padding:6rem 1.2rem 2rem;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(255,255,255,.1)}section#contributor-profile .content h2{text-align:center;margin-bottom:.6rem}section#contributor-profile .content p.role{margin-bottom:2rem}section#contributor-profile .content ul.external-accounts{list-style:none}section#contributor-profile .content ul.external-accounts li{display:inline-block}section#contributor-profile .content ul.external-accounts li+li{margin-left:.6rem}section#contributor-profile .content .actions{margin-top:2rem}section#contributor-profile .actions .button{margin-bottom:.6rem}ul.expense-list{grid-column-start:span 2;width:100%;margin-top:.8rem;border-collapse:collapse}ul.expense-list li{display:grid;grid-template-columns:auto 10rem;grid-row-gap:.5rem;padding-top:1.2rem;font-size:1.2rem}ul.expense-list li:not(:last-child){padding-bottom:1.2rem}ul.expense-list h4{font-size:1.2rem;font-weight:400;line-height:2rem}ul.expense-list .amount{justify-self:end}ul.expense-list .description{font-size:1rem;opacity:.7;grid-column-start:span 2}ul.expense-list .tags button{margin-left:0}ul.expense-list .actions{justify-self:end}.external-accounts a{display:inline-block;width:4rem;height:4rem;padding:.8rem;background-color:rgba(0,0,0,.3);color:#fff;border-radius:2rem}.external-accounts a span.site{display:none}.external-accounts a svg{display:block;position:relative;width:100%;height:100%}.external-accounts a svg .fg{fill:#fff}.external-accounts a:active,.external-accounts a:hover{background-color:rgba(0,0,0,.5)}.external-accounts a:active svg .fg,.external-accounts a:hover svg .fg{fill:#68d7fb}@keyframes pulse{from{opacity:.1}to{opacity:.6}}.loading-spinner{margin-top:12rem;text-align:center;font-size:1.5rem;color:#68d7fb}ul.reimbursement-list div.meta p.actions,ul.reimbursement-list>li .token-amount{text-align:right}@media (max-width:600px){.loading-spinner{margin-top:6rem}}.loading-spinner svg{width:200px;height:200px;margin-bottom:2rem}.loading-spinner svg #path-comet{fill:#68d7fb;opacity:.1;animation-name:pulse;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-direction:alternate;animation-duration:1s}ul.reimbursement-list{width:100%}ul.reimbursement-list>li{display:grid;grid-template-columns:auto 12rem;grid-row-gap:.5rem;padding-top:1.6rem}ul.reimbursement-list>li.vetoed{text-decoration:line-through;opacity:.6}ul.reimbursement-list>li .token-amount img{height:1em;vertical-align:middle;margin-top:-2px}ul.reimbursement-list>li .token-amount .amount{font-size:1.5rem}ul.reimbursement-list>li .token-amount .symbol{font-size:1rem;padding-left:.2rem}ul.reimbursement-list div.meta{grid-column-start:1;grid-column-end:3;margin-top:.6rem;display:flex}ul.reimbursement-list div.meta p{flex:1;padding:1.6rem 0 1rem}#topbar{padding:0 1rem;height:3rem;line-height:3rem;background-color:rgba(0,0,0,.3)}@media (min-width:961px){#topbar{padding:0 2rem;height:4rem;line-height:4rem}}#topbar h1{display:inline-block;text-transform:uppercase}#topbar h1 a{color:inherit;text-decoration:none}#topbar section#user-account{display:inline-block;float:right}header#topbar section#user-account button{margin-left:1.5rem}header#topbar section#user-account button+button{margin-left:.6rem}@media (max-width:600px){header#topbar section#user-account .anonymous{display:none}}img.avatar{width:2rem;height:2rem;vertical-align:middle;margin-right:.2rem;border-radius:1rem}img.avatar.medium{margin:0;width:10rem;height:10rem;border-radius:5rem}img.avatar.large{margin:0;width:256px;height:256px;border-radius:128px} \ No newline at end of file +@charset "UTF-8";main#about,main#budget,main#dashboard{width:100%;display:grid;grid-row-gap:2rem}a,section h2{color:#68d7fb}*{margin:0;padding:0;box-sizing:border-box}:active,:focus,:hover{outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0);-webkit-tap-highlight-color:transparent}body{margin-bottom:10rem;background-image:linear-gradient(to bottom,rgba(22,21,40,.4),rgba(0,0,0,.75)),url(/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);background-repeat:none;background-attachment:fixed}main{padding:1rem 2rem}main#dashboard{grid-template-areas:"stats" "contributions"}main#about,main#budget{grid-template-areas:"aside" "content"}main.center-column{display:flex;flex-direction:column;align-items:center}main.center-column section{width:600px;max-width:100%}main.center-column section header{text-align:center}@media (max-width:600px){main{padding:1rem}main div#content section:first-of-type{margin-top:0}}main section .content a{font-size:inherit}main section .content.text-lg p{font-size:1.35rem;margin-bottom:2rem;line-height:150%}main section .content.text-center{text-align:center}main section .content p.actions{text-align:center;padding-top:2rem}main section.text h2{margin:4rem 0 2rem}main section.text h2:first-of-type{margin-top:0}main section.text p{font-size:1.35rem;margin-bottom:2rem;line-height:150%}@media (min-width:550px){main#about,main#budget,main#dashboard.with-details{grid-column-gap:3rem;grid-template-columns:2fr 4fr 2fr}main#dashboard{grid-column-gap:4rem;grid-row-gap:2rem;grid-template-columns:2fr 4fr;grid-template-areas:"stats contributions"}main#dashboard.with-details{grid-template-areas:"stats contributions details"}main#about,main#budget{grid-template-areas:"aside content empty"}}main section{margin-bottom:5rem}main section:first-of-type{margin-top:2rem}main section header{margin-bottom:3rem}main section header.with-nav{display:grid;grid-template-columns:auto 5rem;grid-template-areas:"title" "actions"}main section header h2{display:inline-block}main section header nav{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}@media (max-width:600px){main section{margin-bottom:5rem}main section header{margin-bottom:2rem}}main section .mb-4{margin-bottom:1rem}main section .mb-8,ul.item-list.spaced>li{margin-bottom:2rem}body,html{font-family:"Open Sans",sans-serif;font-weight:300;font-size:12px;color:#fff}@media screen and (min-width:900px){body{background-size:cover}}button,h1,h2,h3,h4,h5,input{font-family:"Open Sans",sans-serif;font-size:1rem;font-weight:300}section h2{font-size:1.5rem}section#people .content p.stats{margin-bottom:1rem;font-size:1rem;color:#fff;text-align:center}section#people .content p.stats span.number{font-weight:600}section#contributions-by-type .chart{width:50%;margin-left:auto;margin-right:auto}@media (max-width:600px){section#contributions-by-type .chart{width:75%}}@media (min-width:550px){section h2{font-size:2rem}}.button,button,input[type=submit]{display:inline-block;padding:.6rem 2rem;background-color:rgba(22,21,40,.6);border:1px solid #161528;border-radius:3px;color:#68d7fb;font-weight:500;text-decoration:none;text-transform:uppercase;cursor:pointer;letter-spacing:.1em;-webkit-appearance:none}.button+.button,.button+button,.button+input[type=submit],button+.button,button+button,button+input[type=submit],input[type=submit]+.button,input[type=submit]+button,input[type=submit]+input[type=submit]{margin-left:.5rem}.button:hover,button:hover,input[type=submit]:hover{background-color:rgba(22,21,40,.8)}.button.active,.button:active,.button:focus,button.active,button:active,button:focus,input[type=submit].active,input[type=submit]:active,input[type=submit]:focus{border-color:#68d7fb}.button[disabled],button[disabled],input[type=submit][disabled]{color:rgba(255,255,255,.5)}.button.small,button.small,input[type=submit].small{font-size:.86rem;padding:.2rem .8rem}.button.small svg,button.small svg,input[type=submit].small svg{width:1em;height:1em;vertical-align:middle;margin-right:.4rem}.button.danger:not(:disabled),button.danger:not(:disabled),input[type=submit].danger:not(:disabled){color:#fb6868;background-color:rgba(40,21,21,.6);border-color:#281515}.button.danger:not(:disabled):hover,button.danger:not(:disabled):hover,input[type=submit].danger:not(:disabled):hover{background-color:rgba(40,21,21,.8)}.button.danger:not(:disabled).active,.button.danger:not(:disabled):active,.button.danger:not(:disabled):focus,button.danger:not(:disabled).active,button.danger:not(:disabled):active,button.danger:not(:disabled):focus,input[type=submit].danger:not(:disabled).active,input[type=submit].danger:not(:disabled):active,input[type=submit].danger:not(:disabled):focus{border-color:#fb6868}.button.green:not(:disabled),button.green:not(:disabled),input[type=submit].green:not(:disabled){color:#97fb68;background-color:rgba(21,40,21,.6);border-color:#152815}.button.green:not(:disabled):hover,button.green:not(:disabled):hover,input[type=submit].green:not(:disabled):hover{background-color:rgba(21,40,21,.8)}.button.green:not(:disabled).active,.button.green:not(:disabled):active,.button.green:not(:disabled):focus,button.green:not(:disabled).active,button.green:not(:disabled):active,button.green:not(:disabled):focus,input[type=submit].green:not(:disabled).active,input[type=submit].green:not(:disabled):active,input[type=submit].green:not(:disabled):focus{border-color:#97fb68}.button.pink:not(:disabled),button.pink:not(:disabled),input[type=submit].pink:not(:disabled){color:#e068fb;background-color:rgba(40,21,40,.6);border-color:#281528}.button.pink:not(:disabled):hover,button.pink:not(:disabled):hover,input[type=submit].pink:not(:disabled):hover{background-color:rgba(40,21,40,.8)}.button.pink:not(:disabled).active,.button.pink:not(:disabled):active,.button.pink:not(:disabled):focus,button.pink:not(:disabled).active,button.pink:not(:disabled):active,button.pink:not(:disabled):focus,input[type=submit].pink:not(:disabled).active,input[type=submit].pink:not(:disabled):active,input[type=submit].pink:not(:disabled):focus{border-color:#e068fb}.button.purple:not(:disabled),button.purple:not(:disabled),input[type=submit].purple:not(:disabled){color:#8f68fb;background-color:rgba(24,21,40,.6);border-color:#181528}.button.purple:not(:disabled):hover,button.purple:not(:disabled):hover,input[type=submit].purple:not(:disabled):hover{background-color:rgba(24,21,40,.8)}.button.purple:not(:disabled).active,.button.purple:not(:disabled):active,.button.purple:not(:disabled):focus,button.purple:not(:disabled).active,button.purple:not(:disabled):active,button.purple:not(:disabled):focus,input[type=submit].purple:not(:disabled).active,input[type=submit].purple:not(:disabled):active,input[type=submit].purple:not(:disabled):focus{border-color:#8f68fb}.button.yellow:not(:disabled),button.yellow:not(:disabled),input[type=submit].yellow:not(:disabled){color:#fbe468;background-color:rgba(40,40,21,.6);border-color:#282815}.button.yellow:not(:disabled):hover,button.yellow:not(:disabled):hover,input[type=submit].yellow:not(:disabled):hover{background-color:rgba(40,40,21,.8)}.button.yellow:not(:disabled).active,.button.yellow:not(:disabled):active,.button.yellow:not(:disabled):focus,button.yellow:not(:disabled).active,button.yellow:not(:disabled):active,button.yellow:not(:disabled):focus,input[type=submit].yellow:not(:disabled).active,input[type=submit].yellow:not(:disabled):active,input[type=submit].yellow:not(:disabled):focus{border-color:#fbe468}.button.icon svg,button.icon svg,input[type=submit].icon svg{width:2rem;height:2rem;vertical-align:middle;margin-right:1rem}.button.icon svg .fg,button.icon svg .fg,input[type=submit].icon svg .fg{fill:#68d7fb}section#add-contribution form h3,section#add-contributor form h3,section#add-item form h3,section#signup form h3{font-size:1.5rem;font-weight:400;margin-top:2em;margin-bottom:1em}section#add-contribution form p,section#add-contributor form p,section#add-item form p,section#signup form p{font-size:1.2rem}section#add-contribution form p.label,section#add-contributor form p.label,section#add-item form p.label,section#signup form p.label{font-size:1rem;margin-bottom:.5rem}section#add-contribution form p.actions,section#add-contributor form p.actions,section#add-item form p.actions,section#signup form p.actions{margin-bottom:1.5rem;padding-top:1.5rem;text-align:center}section#add-contribution form p.actions a,section#add-contributor form p.actions a,section#add-item form p.actions a,section#signup form p.actions a{color:#68d7fb;margin-left:1rem}section#add-contribution form label,section#add-contributor form label,section#add-item form label,section#signup form label{display:block;margin-bottom:.5rem;opacity:.7}section#add-contribution form label>p,section#add-contributor form label>p,section#add-item form label>p,section#signup form label>p{margin-bottom:1.5rem}section#add-contribution form fieldset,section#add-contributor form fieldset,section#add-item form fieldset,section#signup form fieldset{border:none}section#add-contribution form fieldset.horizontal,section#add-contributor form fieldset.horizontal,section#add-item form fieldset.horizontal,section#signup form fieldset.horizontal{display:grid;grid-template-columns:1fr 1fr;grid-gap:2rem}section#add-contribution form fieldset.horizontal.thirds,section#add-contributor form fieldset.horizontal.thirds,section#add-item form fieldset.horizontal.thirds,section#signup form fieldset.horizontal.thirds{grid-template-columns:1fr 1fr 1fr}section#add-contribution form fieldset.horizontal.total-amounts,section#add-contributor form fieldset.horizontal.total-amounts,section#add-item form fieldset.horizontal.total-amounts,section#signup form fieldset.horizontal.total-amounts{grid-template-columns:2fr 1fr 1fr}section#add-contribution form input[type=text],section#add-contribution form input[type=url],section#add-contribution form select,section#add-contributor form input[type=text],section#add-contributor form input[type=url],section#add-contributor form select,section#add-item form input[type=text],section#add-item form input[type=url],section#add-item form select,section#signup form input[type=text],section#signup form input[type=url],section#signup form select{width:100%;padding:1rem;border:none;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(22,21,40,.3);color:#fff;font-size:1.2rem;font-weight:400;transition:border-color .1s linear}table.contributor-list tr td.kredits .amount,table.contributor-list tr.current-user,ul.contribution-list li .amount,ul.contribution-list li .recipient{font-weight:500}section#add-contribution form input[type=text].valid,section#add-contribution form input[type=text]:focus,section#add-contribution form input[type=url].valid,section#add-contribution form input[type=url]:focus,section#add-contribution form select.valid,section#add-contribution form select:focus,section#add-contributor form input[type=text].valid,section#add-contributor form input[type=text]:focus,section#add-contributor form input[type=url].valid,section#add-contributor form input[type=url]:focus,section#add-contributor form select.valid,section#add-contributor form select:focus,section#add-item form input[type=text].valid,section#add-item form input[type=text]:focus,section#add-item form input[type=url].valid,section#add-item form input[type=url]:focus,section#add-item form select.valid,section#add-item form select:focus,section#signup form input[type=text].valid,section#signup form input[type=text]:focus,section#signup form input[type=url].valid,section#signup form input[type=url]:focus,section#signup form select.valid,section#signup form select:focus{background-color:rgba(22,21,40,.6)}section#add-contribution form input[type=text]:focus :not(:invalid),section#add-contribution form input[type=url]:focus :not(:invalid),section#add-contribution form select:focus :not(:invalid),section#add-contributor form input[type=text]:focus :not(:invalid),section#add-contributor form input[type=url]:focus :not(:invalid),section#add-contributor form select:focus :not(:invalid),section#add-item form input[type=text]:focus :not(:invalid),section#add-item form input[type=url]:focus :not(:invalid),section#add-item form select:focus :not(:invalid),section#signup form input[type=text]:focus :not(:invalid),section#signup form input[type=url]:focus :not(:invalid),section#signup form select:focus :not(:invalid){border-color:#68d7fb}section#add-contribution form input[type=text]::placeholder,section#add-contribution form input[type=url]::placeholder,section#add-contribution form select::placeholder,section#add-contributor form input[type=text]::placeholder,section#add-contributor form input[type=url]::placeholder,section#add-contributor form select::placeholder,section#add-item form input[type=text]::placeholder,section#add-item form input[type=url]::placeholder,section#add-item form select::placeholder,section#signup form input[type=text]::placeholder,section#signup form input[type=url]::placeholder,section#signup form select::placeholder{color:rgba(238,238,238,.5)}section#add-contribution form input[type=text].invalid,section#add-contribution form input[type=url].invalid,section#add-contribution form select.invalid,section#add-contributor form input[type=text].invalid,section#add-contributor form input[type=url].invalid,section#add-contributor form select.invalid,section#add-item form input[type=text].invalid,section#add-item form input[type=url].invalid,section#add-item form select.invalid,section#signup form input[type=text].invalid,section#signup form input[type=url].invalid,section#signup form select.invalid{border-color:#fb6868}section#add-contribution form input[type=text]:disabled,section#add-contribution form input[type=url]:disabled,section#add-contribution form select:disabled,section#add-contributor form input[type=text]:disabled,section#add-contributor form input[type=url]:disabled,section#add-contributor form select:disabled,section#add-item form input[type=text]:disabled,section#add-item form input[type=url]:disabled,section#add-item form select:disabled,section#signup form input[type=text]:disabled,section#signup form input[type=url]:disabled,section#signup form select:disabled{color:rgba(255,255,255,.6)}section#add-contribution form select,section#add-contributor form select,section#add-item form select,section#signup form select{-moz-appearance:none;-webkit-appearance:none;appearance:none;border-radius:0;background-color:rgba(22,21,40,.6);background-image:linear-gradient(45deg,transparent 50%,gray 50%),linear-gradient(135deg,gray 50%,transparent 50%);background-position:calc(100% - 1.5rem) 1.5rem,calc(100% - 1rem) 1.5rem;background-size:.5rem .5rem,.5rem .5rem;background-repeat:no-repeat}section#add-contribution form select:invalid,section#add-contributor form select:invalid,section#add-item form select:invalid,section#signup form select:invalid{color:rgba(238,238,238,.5)}section#add-contribution form input[type=submit],section#add-contributor form input[type=submit],section#add-item form input[type=submit],section#signup form input[type=submit]{padding:.6rem 2rem}section#add-contribution form input[type=submit]:disabled,section#add-contributor form input[type=submit]:disabled,section#add-item form input[type=submit]:disabled,section#signup form input[type=submit]:disabled{background-color:transparent}section#add-contribution form input[type=checkbox],section#add-contributor form input[type=checkbox],section#add-item form input[type=checkbox],section#signup form input[type=checkbox]{display:none}section#add-contribution form label.checkbox,section#add-contributor form label.checkbox,section#add-item form label.checkbox,section#signup form label.checkbox{line-height:3.2rem;font-size:1.2rem}section#add-contribution form label.checkbox::before,section#add-contributor form label.checkbox::before,section#add-item form label.checkbox::before,section#signup form label.checkbox::before{display:inline-block;margin-right:.8rem;height:3.2rem;width:3.2rem;font-size:2rem;background-color:rgba(22,21,40,.3);border-bottom:1px solid rgba(255,255,255,.2);text-align:center;vertical-align:middle;content:"✓";color:rgba(255,255,255,.2)}table.contributor-list.loading::before,ul.item-list.loading::before{height:1px;content:"";background-image:linear-gradient(45deg,rgba(255,255,255,.2) 40%,#68d7fb 60%,rgba(255,255,255,.2));background-size:200% 200%;animation:kitt 2.5s linear infinite}section#add-contribution form input[type=checkbox]:checked+label.checkbox::before,section#add-contributor form input[type=checkbox]:checked+label.checkbox::before,section#add-item form input[type=checkbox]:checked+label.checkbox::before,section#signup form input[type=checkbox]:checked+label.checkbox::before{background-color:rgba(22,21,40,.6);color:#fff}@keyframes kitt{0%,100%{background-position:0 0}50%{background-position:100% 0}}ul.item-list{list-style:none}ul.item-list>li{padding:.8rem 1.2rem;font-size:1.2rem;background-color:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.2)}ul.item-list>li:first-of-type{border-top:1px solid rgba(255,255,255,.2)}ul.item-list>li.selected{background-color:rgba(255,255,255,.2)}ul.item-list.loading::before{display:block;width:100%}ul.item-list.loading>li:first-of-type{border-top:none}section#contribution-details .content,section#contribution-details .hint.vetoed,table.contributor-list tr:first-of-type,ul.item-list.spaced>li{border-top:1px solid rgba(255,255,255,.2)}@media (max-width:600px){section#funds{margin-bottom:2rem}}section#funds table.token-balances{opacity:1;transition:opacity .3s linear}section#funds table.token-balances.loading{opacity:0}section#funds table.token-balances thead{display:none}section#funds table.token-balances td,section#funds table.token-balances th{font-size:1.2rem;vertical-align:text-bottom}section#funds table.token-balances th{font-size:1.5rem;text-align:left;padding-right:1rem}section#funds table.token-balances td{text-align:right}section#funds table.token-balances td.amount{font-size:2rem;padding-right:1.2rem}section#funds table.token-balances td.fiat-amount{color:rgba(255,255,255,.8)}section#contribution-details header nav .amount{font-size:1.5rem}section#contribution-details header nav .symbol{padding-left:.2rem}section#contribution-details .content{width:100%;margin:0 0 1.5rem;padding:2rem;border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(255,255,255,.1)}section#contribution-details .content h3{font-size:1.5rem;margin-bottom:2rem}section#contribution-details .content p{margin-bottom:2rem}section#contribution-details .content p.who-what-when{font-size:1.2rem;margin-bottom:1.2rem}section#contribution-details .content p:last-of-type{margin-bottom:0}section#contribution-details .content a:not(.button){color:#68d7fb;text-decoration:none}section#contribution-details .content a:not(.button):not(.button):hover{text-decoration:underline}section#contribution-details .actions{text-align:center}section#contribution-details.vetoed .content h3{text-decoration:line-through}section#contribution-details .hint.vetoed{overflow:auto;margin-top:2rem;padding-top:2rem;font-size:1.2rem}section#contribution-details .hint.vetoed .icon{display:inline-block;width:40px;height:40px;float:left;margin-right:1rem;margin-bottom:1rem}section#contribution-details .hint.vetoed .icon svg{width:100%;height:auto}@media (max-width:600px){#dashboard.with-details #contributions,#dashboard.with-details #stats,#intro.with-details{display:none}main section#contributions-confirmed,main section#contributions-unconfirmed{margin-top:0}}.quick-filter{font-size:1.2rem;margin-bottom:2rem}.quick-filter p{padding:.2rem 0 0}.quick-filter label+label{margin-left:3.6rem}ul.contribution-list{clear:both;width:100%}ul.contribution-list li{display:grid;grid-template-columns:auto 5rem 5rem;grid-row-gap:.5rem;cursor:pointer}ul.contribution-list li.confirmed,ul.contribution-list li.vetoed{grid-template-columns:auto 5rem}ul.contribution-list li.vetoed{text-decoration:line-through;opacity:.6}ul.contribution-list li p{align-self:center;margin:0;line-height:2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ul.contribution-list li p.kredits-amount,ul.contribution-list li p.voting{text-align:right}ul.contribution-list li span.title a{text-decoration:none;color:#fff}ul.contribution-list li span.title a:active,ul.contribution-list li span.title a:hover{color:#68d7fb}ul.contribution-list li .description{line-height:1.4em;font-size:1rem}ul.contribution-list li .category{color:#68d7fb;padding-right:.2rem}ul.contribution-list li .category.community{color:#fb6868}ul.contribution-list li .category.dev{color:#e068fb}ul.contribution-list li .category.design{color:#fbe468}ul.contribution-list li .category.docs{color:#97fb68}ul.contribution-list li .category.ops{color:#8f68fb}ul.contribution-list li .symbol{font-size:.8rem;padding-left:.2rem}ul.contribution-list li .votes{font-size:1rem;color:#68d7fb;margin-right:.5rem}table.contributor-list{position:relative;width:100%;border-collapse:collapse;margin-bottom:1.5rem}table.contributor-list tr{background-color:rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.2);cursor:pointer}table.contributor-list tr.selected{background-color:rgba(255,255,255,.2)}table.contributor-list tr td{padding:0 1.2rem;line-height:3.6rem}table.contributor-list tr td.person{text-align:left;font-size:1.2rem}table.contributor-list tr td.person img.avatar{margin-right:.2rem}table.contributor-list tr td.kredits{text-align:right}table.contributor-list tr td.kredits .amount{font-size:1.2rem}table.contributor-list tr td.kredits .symbol{font-size:.8rem;padding-left:.2rem}table.contributor-list.loading::before{display:block;width:100%;position:absolute}section#contributor-profile{text-align:center}section#contributor-profile header{z-index:2;width:100%;text-align:center}section#contributor-profile header img{margin:0 auto;border:3px solid rgba(255,255,255,.2)}section#contributor-profile .content{z-index:1;width:100%;margin:-7.2rem 0 1.5rem;padding:6rem 1.2rem 2rem;border-top:1px solid rgba(255,255,255,.2);border-bottom:1px solid rgba(255,255,255,.2);background-color:rgba(255,255,255,.1)}section#contributor-profile .content h2{text-align:center;margin-bottom:.6rem}section#contributor-profile .content p.role{margin-bottom:2rem}section#contributor-profile .content ul.external-accounts{list-style:none}section#contributor-profile .content ul.external-accounts li{display:inline-block}section#contributor-profile .content ul.external-accounts li+li{margin-left:.6rem}section#contributor-profile .content .actions{margin-top:2rem}section#contributor-profile .actions .button{margin-bottom:.6rem}ul.expense-list{grid-column-start:span 2;width:100%;margin-top:.8rem;border-collapse:collapse}ul.expense-list li{display:grid;grid-template-columns:auto 10rem;grid-row-gap:.5rem;padding-top:1.2rem;border-top:1px solid rgba(255,255,255,.2);font-size:1.2rem}ul.expense-list li:not(:last-child){padding-bottom:1.2rem}ul.expense-list h4{font-size:1.2rem;font-weight:400;line-height:2rem}ul.expense-list .amount{justify-self:end}ul.expense-list .description{font-size:1rem;opacity:.7;grid-column-start:span 2}ul.expense-list .tags button{margin-left:0}ul.expense-list .actions{justify-self:end}.external-accounts a{display:inline-block;width:4rem;height:4rem;padding:.8rem;background-color:rgba(0,0,0,.3);color:#fff;border-radius:2rem}.external-accounts a span.site{display:none}.external-accounts a svg{display:block;position:relative;width:100%;height:100%}.external-accounts a svg .fg{fill:#fff}.external-accounts a:active,.external-accounts a:hover{background-color:rgba(0,0,0,.5)}.external-accounts a:active svg .fg,.external-accounts a:hover svg .fg{fill:#68d7fb}nav#main-menu{padding:2rem;background-color:rgba(0,0,0,.2)}nav#main-menu ul{list-style:none;width:100%;display:flex;flex-direction:row;align-items:center;gap:3rem;font-size:1.5rem}@media (max-width:600px){nav#main-menu ul{justify-content:center;font-size:1.2rem}}nav#main-menu li a{text-decoration:none;color:#fff}nav#main-menu li a.active,nav#main-menu li a:hover{color:#fbe468}@keyframes pulse{from{opacity:.1}to{opacity:.6}}.loading-spinner{margin-top:12rem;text-align:center;font-size:1.5rem;color:#68d7fb}ul.reimbursement-list div.meta p.actions,ul.reimbursement-list>li .token-amount{text-align:right}@media (max-width:600px){.loading-spinner{margin-top:6rem}}.loading-spinner svg{width:200px;height:200px;margin-bottom:2rem}.loading-spinner svg #path-comet{fill:#68d7fb;opacity:.1;animation-name:pulse;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-direction:alternate;animation-duration:1s}ul.reimbursement-list{width:100%}ul.reimbursement-list>li{display:grid;grid-template-columns:auto 12rem;grid-row-gap:.5rem;padding-top:1.6rem}ul.reimbursement-list>li.vetoed{text-decoration:line-through;opacity:.6}ul.reimbursement-list>li .token-amount img{height:1em;vertical-align:middle;margin-top:-2px}ul.reimbursement-list>li .token-amount .amount{font-size:1.5rem}ul.reimbursement-list>li .token-amount .symbol{font-size:1rem;padding-left:.2rem}ul.reimbursement-list div.meta{grid-column-start:1;grid-column-end:3;margin-top:.6rem;border-top:1px solid rgba(255,255,255,.2);display:flex}ul.reimbursement-list div.meta p{flex:1;padding:1.6rem 0 1rem}#topbar{padding:0 1rem;height:3rem;line-height:3rem;background-color:rgba(0,0,0,.3)}@media (min-width:961px){#topbar{padding:0 2rem;height:4rem;line-height:4rem}}#topbar h1{display:inline-block;text-transform:uppercase;font-weight:700}#topbar h1 a{color:inherit;text-decoration:none}#topbar section#user-account{display:inline-block;float:right}header#topbar section#user-account button{margin-left:1.5rem}header#topbar section#user-account button+button{margin-left:.6rem}@media (max-width:600px){header#topbar section#user-account .anonymous{display:none}}img.avatar{width:2rem;height:2rem;vertical-align:middle;margin-right:.2rem;border-radius:1rem}img.avatar.medium{margin:0;width:10rem;height:10rem;border-radius:5rem}img.avatar.large{margin:0;width:256px;height:256px;border-radius:128px} \ No newline at end of file diff --git a/release/assets/kredits-web-c6399723d7220b2a99dd4f3a76ffcb10.map b/release/assets/kredits-web-c6399723d7220b2a99dd4f3a76ffcb10.map deleted file mode 100644 index 4fe6898..0000000 --- a/release/assets/kredits-web-c6399723d7220b2a99dd4f3a76ffcb10.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["vendor/ember-cli/app-prefix.js","kredits-web/app.js","kredits-web/components/add-expense-item/component.js","kredits-web/components/add-reimbursement/component.js","kredits-web/components/budget-balances/component.js","kredits-web/components/confirmed-in/component.js","kredits-web/components/expense-list/component.js","kredits-web/components/reimbursement-list/component.js","kredits-web/components/topbar-account-panel/component.js","kredits-web/controllers/budget.js","kredits-web/controllers/signup/account.js","kredits-web/controllers/signup/index.js","kredits-web/component-managers/glimmer.js","kredits-web/components/add-contribution/component.js","kredits-web/components/add-contribution/template.js","kredits-web/components/add-contributor/component.js","kredits-web/components/add-contributor/template.js","kredits-web/components/add-expense-item/template.js","kredits-web/components/add-reimbursement/template.js","kredits-web/components/budget-balances/template.js","kredits-web/components/chart-contributions-by-type/component.js","kredits-web/components/chart-contributions-by-type/template.js","kredits-web/components/confirmed-in/template.js","kredits-web/components/contribution-list/component.js","kredits-web/components/contribution-list/template.js","kredits-web/components/contributor-list/component.js","kredits-web/components/contributor-list/template.js","kredits-web/components/ember-chart.js","kredits-web/components/ember-flatpickr.js","kredits-web/components/expense-list/template.js","kredits-web/components/external-account-link/component.js","kredits-web/components/external-account-link/template.js","kredits-web/components/loading-spinner/component.js","kredits-web/components/loading-spinner/template.js","kredits-web/components/reimbursement-list/template.js","kredits-web/components/topbar-account-panel/template.js","kredits-web/components/user-avatar/component.js","kredits-web/components/user-avatar/template.js","kredits-web/controllers/application.js","kredits-web/controllers/contributions/new.js","kredits-web/controllers/contributions/resubmit.js","kredits-web/controllers/contributors/edit.js","kredits-web/controllers/contributors/new.js","kredits-web/controllers/dashboard.js","kredits-web/controllers/dashboard/contributions/show.js","kredits-web/controllers/dashboard/contributors/show.js","kredits-web/helpers/and.js","kredits-web/helpers/app-version.js","kredits-web/helpers/await.js","kredits-web/helpers/cancel-all.js","kredits-web/helpers/capitalize-string.js","kredits-web/helpers/eq.js","kredits-web/helpers/fmt-crypto-currency.js","kredits-web/helpers/fmt-date-localized.js","kredits-web/helpers/fmt-fiat-currency.js","kredits-web/helpers/gt.js","kredits-web/helpers/gte.js","kredits-web/helpers/is-after.js","kredits-web/helpers/is-array.js","kredits-web/helpers/is-before.js","kredits-web/helpers/is-between.js","kredits-web/router.js","kredits-web/routes/application.js","kredits-web/routes/budget.js","kredits-web/routes/budget/expenses.js","kredits-web/routes/contributions/new.js","kredits-web/routes/dashboard.js","kredits-web/routes/reimbursements/new.js","kredits-web/routes/signup/account.js","kredits-web/helpers/is-confirmed-contribution.js","kredits-web/helpers/is-current-user.js","kredits-web/helpers/is-empty.js","kredits-web/helpers/is-equal.js","kredits-web/helpers/is-fulfilled.js","kredits-web/helpers/is-pending.js","kredits-web/helpers/is-rejected.js","kredits-web/helpers/is-same-or-after.js","kredits-web/helpers/is-same-or-before.js","kredits-web/helpers/is-same.js","kredits-web/helpers/item-status.js","kredits-web/helpers/lt.js","kredits-web/helpers/lte.js","kredits-web/helpers/moment-add.js","kredits-web/helpers/moment-calendar.js","kredits-web/helpers/moment-diff.js","kredits-web/helpers/moment-duration.js","kredits-web/helpers/moment-format.js","kredits-web/helpers/moment-from-now.js","kredits-web/helpers/moment-from.js","kredits-web/helpers/moment-subtract.js","kredits-web/helpers/moment-to-date.js","kredits-web/helpers/moment-to-now.js","kredits-web/helpers/moment-to.js","kredits-web/helpers/moment-unix.js","kredits-web/helpers/moment.js","kredits-web/helpers/not-eq.js","kredits-web/helpers/not.js","kredits-web/helpers/now.js","kredits-web/helpers/or.js","kredits-web/services/browser-cache.js","kredits-web/services/community-funds.js","kredits-web/services/exchange-rates.js","kredits-web/helpers/perform.js","kredits-web/helpers/promise-all.js","kredits-web/helpers/promise-hash.js","kredits-web/helpers/promise-rejected-reason.js","kredits-web/helpers/sats-to-btc.js","kredits-web/helpers/task.js","kredits-web/helpers/unix.js","kredits-web/helpers/utc.js","kredits-web/helpers/xor.js","kredits-web/initializers/app-version.js","kredits-web/initializers/container-debug-adapter.js","kredits-web/initializers/ember-concurrency.js","kredits-web/initializers/export-application-global.js","kredits-web/models/contribution.js","kredits-web/models/contributor.js","kredits-web/models/reimbursement.js","kredits-web/routes/contributions/resubmit.js","kredits-web/routes/contributors/edit.js","kredits-web/routes/dashboard/contributions/show.js","kredits-web/routes/dashboard/contributors/show.js","kredits-web/routes/index.js","kredits-web/routes/signup.js","kredits-web/routes/signup/complete.js","kredits-web/routes/signup/github.js","kredits-web/services/kredits.js","kredits-web/services/moment.js","kredits-web/templates/application-loading.js","kredits-web/templates/application.js","kredits-web/templates/budget.js","kredits-web/templates/budget/expenses.js","kredits-web/templates/components/icon-account-gitea-kosmos-org.js","kredits-web/templates/components/icon-account-github-com.js","kredits-web/templates/components/icon-account-wiki-kosmos-org.js","kredits-web/templates/components/icon-account-zoom-us.js","kredits-web/templates/components/icon-tag.js","kredits-web/templates/components/icon-warning.js","kredits-web/templates/components/icon-web-globe.js","kredits-web/templates/contributions/new.js","kredits-web/templates/contributions/resubmit.js","kredits-web/templates/contributors/edit.js","kredits-web/templates/contributors/new.js","kredits-web/templates/dashboard.js","kredits-web/templates/dashboard/contributions/show.js","kredits-web/templates/dashboard/contributors/show.js","kredits-web/templates/reimbursements/new.js","kredits-web/templates/signup.js","kredits-web/templates/signup/account.js","kredits-web/templates/signup/complete.js","kredits-web/templates/signup/index.js","kredits-web/utils/format-kredits.js","kredits-web/utils/get-locale.js","kredits-web/utils/group-by.js","kredits-web/utils/is-valid-amount.js","kredits-web/utils/process-contribution-data.js","kredits-web/utils/process-contributor-data.js","kredits-web/utils/process-reimbursement-data.js","kredits-web/utils/read-file-content.js","kredits-web/utils/switch-network.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"names":["_typeof","obj","Symbol","iterator","constructor","prototype","define","_exports","_emberResolver","_emberLoadInitializers","_environment","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_classCallCheck","instance","Constructor","TypeError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","valueOf","call","e","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","this","arguments","apply","_possibleConstructorReturn","self","_assertThisInitialized","ReferenceError","getPrototypeOf","_defineProperty","value","default","App","_Ember$Application","subClass","superClass","create","_inherits","Ember","Application","protoProps","staticProps","_super","_this","_len","args","Array","_key","concat","modulePrefix","podModulePrefix","_emberComponentManager","get","_moment","_slicedToArray","arr","isArray","_arrayWithHoles","_i","_s","_e","_arr","_n","_d","next","done","push","err","_iterableToArrayLimit","minLen","_arrayLikeToArray","n","toString","slice","name","from","test","_unsupportedIterableToArray","_nonIterableRest","len","arr2","_default","Component","extend","kredits","inject","service","attributes","contributors","computed","contributorsSorted","map","c","id","isValidContributor","notEmpty","isValidKind","isValidAmount","parseInt","amount","isValidDescription","isValidUrl","isValid","and","init","set","startOf","toDate","contributorId","kind","date","defaultDate","description","url","details","assign","defaultAttr","reset","setProperties","actions","submit","evt","preventDefault","getProperties","keys","_dateInput$toISOStrin2","toISOString","split","_ref","time","save","then","console","warn","window","alert","finally","HTMLBars","template","block","meta","moduleName","_web3Utils","router","isValidAccount","isAddress","account","isValidName","isValidURL","isValidGithubUID","isValidGithubUsername","isValidGiteaUsername","isValidWikiUsername","isValidZoomDisplayName","inProgress","setDefaultAttributes","isPresent","github_username","github_uid","gitea_username","wiki_username","zoom_display_name","currentUserIsCore","contributor","catch","transitionTo","_component","_isValidAmount","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_class","_descriptor","_descriptor2","_descriptor3","_descriptor4","_descriptor5","_descriptor6","_descriptor7","_initializerDefineProperty","property","context","initializer","_applyDecoratedDescriptor","decorators","desc","forEach","reverse","reduce","decorator","undefined","AddExpenseItemComponent","_tracked","_action","_Component","code","isValidTotal","formEl","document","querySelector","inputFields","querySelectorAll","classList","remove","validity","add","checkValidity","valid","event","currency","dateInput","utcOffset","validateForm","expense","parseFloat","title","tags","t","trim","filter","addExpenseItem","getOwnPropertyDescriptor","_readFileContent","_dec10","_dec11","_dec12","_dec13","_dec14","_dec15","_descriptor8","_descriptor9","_createForOfIteratorHelper","allowArrayLike","it","F","s","f","normalCompletion","didErr","step","_e2","return","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","info","error","Promise","AddReimbursementComponent","alias","fn","_addExpensesFromFile","exchangeRates","fetchRates","total","expenses","filterBy","mapBy","summation","current","submitButtonEnabled","getElementById","scrollIntoView","btcAmount","btceur","totalEUR","btcusd","totalUSD","toFixed","regeneratorRuntime","mark","_callee","content","_iterator","_step","item","wrap","_context","prev","files","sent","JSON","parse","debug","stop","_x","recipientId","expenseFormVisible","run","scheduleOnce","scrollToExpenseItemForm","expenseItem","pushObject","updateTotalAmountFromFiat","removeObject","_this2","currentUser","findBy","token","tokens","stringify","addReimbursement","A","BudgetBalancesComponent","communityFunds","balancesLoaded","categoryColors","contributions","chartOptions","freeze","legend","display","chartData","kinds","datasets","data","borderColor","borderWidth","labels","ConfirmedInComponent","confirmedAtBlock","currentBlock","confirmedInBlocks","duration","confirmedInSeconds","humanize","tagName","classNames","selectedContribution","showQuickFilter","hideSmallContributions","contributionKind","contributorsSorting","sort","contributorsActive","activeIds","Set","has","contributionKinds","uniq","contributionsFiltered","included","veto","contributionId","contractInteractionEnabled","vetoContribution","openContributionDetails","contribution","selectedContributorId","openContributorDetails","_emberChart","_emberFlatpickr","ExpenseListComponent","deletable","iconComponentName","site","match","replace","ReimbursementListComponent","ipfs","gatewayUrl","vetoReimbursement","transaction","hash","TopbarAccountPanelComponent","_connectWallet","ethereum","userHasWallet","hasAccounts","setupInProgress","connectWallet","SIZES","small","medium","large","classNameBindings","attributeBindings","size","src","avatarURL","Controller","BudgetController","_Ember$Controller","queryParams","minedContributors","sortedContributors","contributorIpfsHash","ipfsHash","addContribution","transitionToRoute","_new","updateContributor","model","addContributor","showDetailsPane","selectedContributionId","contributionsConfirmed","contributionsUnconfirmed","contributionsSorting","contributionsUnconfirmedSorted","contributionsConfirmedSorted","kreditsByContributor","kreditsToplistSorting","showUnconfirmedKredits","kreditsToplist","hideUnconfirmedKredits","not","showQuickFilterUnconfirmed","showQuickFilterConfirmed","showFullContributionSync","gt","showIntroText","toggleQuickFilterUnconfirmed","toggleProperty","toggleQuickFilterConfirmed","ipfsGatewayUrl","roleName","isCore","totalKreditsEarned","AccountController","accountAddress","isValidEthAccount","payload","accessToken","githubAccessToken","fetch","githubSignupUrl","method","headers","Content-Type","body","res","json","message","log","IndexController","location","githubConnectUrl","_and","_regexp","appVersion","_","version","APP","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","Helper","helper","_await","_cancelAll","compute","string","charAt","toUpperCase","_equal","equal","params","fmtAmount","_getLocale","dateStr","Date","locale","Intl","DateTimeFormat","format","lang","navigator","language","userLanguage","NumberFormat","style","currencyDisplay","_gt","_gte","gte","_isAfter","_isArray","_isBefore","_isBetween","vetoed","confirmedAt","_isEmpty","_isEqual","isEqual","_isFulfilled","_isPending","_isRejected","_isSameOrAfter","_isSameOrBefore","_isSame","setupRecompute","status","hasPendingChanges","join","destroy","teardown","addObserver","triggerRecompute","removeObserver","once","recompute","_lt","lt","_lte","lte","_momentAdd","_momentCalendar","_momentDiff","_momentDuration","_momentFormat","_momentFromNow","_momentFrom","_momentSubtract","_momentToDate","_momentToNow","_momentTo","_unix","_notEqual","notEqualHelper","_not","_now","_or","or","_perform","_promiseAll","_promiseHash","_promiseRejectedReason","_task","_utc","utc","_xor","xor","_initializerFactory","initialize","_containerDebugAdapter","app","register","_emberConcurrency","application","exportApplicationGlobal","theGlobal","global","globalName","String","classify","reopen","willDestroy","pendingTx","isEmpty","iso8601Date","jsDate","serialize","balance","contributionsCount","recipient","pendingStatus","Router","_Ember$Router","locationType","rootURL","route","path","ApplicationRoute","_Ember$Route","Route","setup","preflightChecks","_this3","loadInitialData","addContractEventHandlers","contributorsNeedSync","schedule","syncContributors","perform","fetchBalances","BudgetRoute","_model","reimbursements","reimbursementsPending","abrupt","browserCache","loadObjectsFromCache","fetchObjects","page","reimbursementsNeedSync","syncReimbursements","fetchMissingReimbursements","BudgetExpensesRoute","ContributionsNewRoute","setupController","controller","DashboardRoute","contributionsNeedSync","syncContributions","controllerFor","deactivate","fetchContributor","redirect","ReimbursementsNewRoute","SignupAccountRoute","_setupController","currentUserAccounts","firstObject","localforage","createStore","networkName","web3NetworkName","toLocaleLowerCase","createInstance","BrowserCacheService","_Ember$Service","Service","stores","_emberConcurrencyDecorators","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","_objectSpread","source","getOwnPropertyDescriptors","defineProperties","CommunityFundsService","_processBalances","btcBalanceAPI","processBalances","balanceUSD","_context2","confirmed_balance","Math","round","toLocaleString","balances","symbol","task","_asyncToGenerator","bitstampBaseUrl","corsProxy","fetchFromBitstamp","_fetchFromBitstamp","currencyPair","r","vwap","t0","ExchangeRatesService","_fetchRates","_callee2","_args2","_ethers","_contracts","_groupBy","_processContributorData","_processContributionData","_processReimbursementData","_formatKredits","_switchNetwork","_contributor","_contribution","_reimbursement","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","models","Contributor","Contribution","Reimbursement","currentUserIsContributor","contributorsMined","missingHistoricContributionsCount","on","handleUserChainChanged","handleAccountsChanged","chainId","reload","accounts","getEthProvider","ethProvider","instantiateWithoutWallet","web3ProviderUrl","providers","JsonRpcProvider","ethSigner","_instantiateWithWallet","web3Provider","network","Web3Provider","getNetwork","listAccounts","web3ChainId","getSigner","_x2","instantiateWithWallet","provider","chainIdHex","Number","request","_callee3","_context3","providerAndSigner","ipfsConfig","getBlockNumber","t1","blockNumber","getCurrentUser","contributorData","functions","getContributorIdByAddress","getById","totalSupply","Token","_this4","contributionsGrouped","contributorsWithUnconfirmed","contributorsWithOnlyConfirmed","includes","amountUnconfirmed","items","a","b","amountConfirmed","amountTotal","_this5","_this6","reimbursementsUnconfirmed","_this7","reimbursementsConfirmed","_this8","_this9","_callee4","_context4","fetchContributors","fetchContributions","updateMissingHistoricContributionsCount","_this10","_callee5","_context5","count","uidInt","gasLimit","updateProfile","_this11","_callee6","_context6","loadContributorFromData","_this12","all","cacheLoadedContributors","loadedContributor","_this13","_callee7","_context7","setItem","finish","loadContributorsFromCache","_this14","_callee8","_context8","iterate","_callee9","_context9","_this15","_this16","options","loadContributionFromData","cacheWrites","loadedContribution","cacheLoadedContributions","_this17","_callee10","_iterator2","_step2","_context10","loadContributionsFromCache","_this18","_callee11","_context11","contributionTasks","taskGroup","enqueue","_callee12","_context12","fetchNewContributions","syncUnconfirmedContributions","group","_callee13","lastKnownContributionId","toFetch","_context13","max","fetchMissingContributions","_callee14","allIds","loadedContributions","countFetched","_context14","shift","_callee15","_iterator3","_step3","_context15","objectClass","_this19","objectClassLowerCase","toLowerCase","objects","removeObjectFromCollectionIfLoaded","collection","objectId","loadedObj","cacheLoadedObjects","_this20","_callee16","_iterator4","_step4","_context16","_this21","_callee17","_context17","syncTaskGroup","fetchNewObjects","_callee18","lastKnownObjectId","_context18","fetchMissingObjects","_callee19","loadedObjects","_context19","syncUnconfirmedObjects","_callee20","_iterator5","_step5","_context20","vetoAgainstObject","loadReimbursementFromData","_this22","reimbursement","wait","d","_callee21","_context21","_callee22","_context22","handleContributorChange","bind","handleContributionAdded","handleContributionVetoed","handleReimbursementAdded","handleReimbursementVetoed","handleTransfer","_arguments","_this23","_callee23","newContributor","oldContributor","_context23","_this24","_callee24","pendingContribution","_context24","find","_this25","_callee25","_context25","addedByAccount","_this26","_callee26","pendingReimbursement","_context26","_this27","_callee27","_context27","to","toNumber","decrementProperty","incrementProperty","defaultFormat","etherValue","utils","formatEther","decimals","languages","groups","inputAmount","isNaN","processed","otherProperties","prop","includeDetails","_data$contributionsCo","balanceInt","file","reader","FileReader","onload","onerror","readAsText","chainName","rpcUrls","nativeCurrency","metaName","prefix","rawConfig","getAttribute","exports","decodeURIComponent","Error","runningTests","require"],"mappings":"AAAA;ACAA,SAAAA,QAAAC,GAAA,OAAAD,QAAA,mBAAAE,QAAA,iBAAAA,OAAAC,SAAA,SAAAF,GAAA,cAAAA,GAAA,SAAAA,GAAA,OAAAA,GAAA,mBAAAC,QAAAD,EAAAG,cAAAF,QAAAD,IAAAC,OAAAG,UAAA,gBAAAJ,IAAAA,GCAA,SAAAD,QAAAC,GAAA,OAAAD,QAAA,mBAAAE,QAAA,iBAAAA,OAAAC,SAAA,SAAAF,GAAA,cAAAA,GAAA,SAAAA,GAAA,OAAAA,GAAA,mBAAAC,QAAAD,EAAAG,cAAAF,QAA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,OAAA,CAAA,CACA4N,QAAAqB,EACA2M,UAAAvS,EACAwS,QAAA,CAAAt6B,EAAAgD,QAAA2pB,iBACA4N,eAAA,CACA50B,KAAA,QACAikB,OAAA,QACAwP,SAAA;AAKA,KAAA,GACApmB,EAAA/N,KAAA;AACA;AAEA,KAAA,GACAoE,QAAAC,KAAA,2BAAA0J,EAAAsX,GAAA1N;AAEA,KAAA,GACA,IAAA,MACA,OAAA5J,EAAAO,UAGAb,EAAA,KAAA,CAAA,CAAA,EAAA,UAEAlQ,MAAAF,KAAAC,WA1EA7B,OAAAC,eAAAd,EAAA,aAAA,CACAkD,OAAA,IAEAlD,EAAAmD,QAMA,WACA,OAAAiG,EAAAzG,MAAAF,KAAAC,eCbA3C,OAAA,iCAAA,IAAA,WAEA,IACA,IAAA46B,EAAAC,iCACAC,EAAA7sB,SAAAC,cAAA,cAAA0sB,EAAA,MAAAG,aAAA,WAGAC,EAAA,CAAA53B,QAFAoQ,KAAAC,MAAAwnB,mBAAAH;AAMA,OAFAh6B,OAAAC,eAAAi6B,EAAA,aAAA,CAAA73B,OAAA,IAEA63B,EAEA,MAAAx1B,GACA,MAAA,IAAA01B,MAAA,kDAAAN,EAAA,UCbAO,cACAC,QAAA,mBAAA,QAAA33B,OAAA,CAAAsC,KAAA,cAAA0X,QAAA","file":"kredits-web.js","sourcesContent":["'use strict';\n\n\n","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/app\", [\"exports\", \"ember-resolver\", \"ember-load-initializers\", \"kredits-web/config/environment\"], function (_exports, _emberResolver, _emberLoadInitializers, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n var App = /*#__PURE__*/function (_Ember$Application) {\n _inherits(App, _Ember$Application);\n\n var _super = _createSuper(App);\n\n function App() {\n var _this;\n\n _classCallCheck(this, App);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"modulePrefix\", _environment.default.modulePrefix);\n\n _defineProperty(_assertThisInitialized(_this), \"podModulePrefix\", _environment.default.podModulePrefix);\n\n _defineProperty(_assertThisInitialized(_this), \"Resolver\", _emberResolver.default);\n\n return _this;\n }\n\n return _createClass(App);\n }(Ember.Application);\n\n _exports.default = App;\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/add-expense-item/component\", [\"exports\", \"@glimmer/component\", \"moment\", \"kredits-web/utils/is-valid-amount\"], function (_exports, _component, _moment, _isValidAmount) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AddExpenseItemComponent = (_dec = Ember._tracked, _dec2 = Ember._tracked, _dec3 = Ember._tracked, _dec4 = Ember._tracked, _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._action, _dec9 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AddExpenseItemComponent, _Component);\n\n var _super = _createSuper(AddExpenseItemComponent);\n\n function AddExpenseItemComponent() {\n var _this;\n\n _classCallCheck(this, AddExpenseItemComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"amount\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"currency\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"date\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"description\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"url\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"tags\", _descriptor7, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"defaultDate\", (0, _moment.default)().startOf('hour').toDate());\n\n _defineProperty(_assertThisInitialized(_this), \"currencies\", [{\n code: 'EUR'\n }, {\n code: 'USD'\n }]);\n\n return _this;\n }\n\n _createClass(AddExpenseItemComponent, [{\n key: \"isValidAmount\",\n get: function get() {\n return (0, _isValidAmount.default)(this.amount);\n }\n }, {\n key: \"amountInputClass\",\n get: function get() {\n return this.isValidTotal ? 'valid' : '';\n }\n }, {\n key: \"validateForm\",\n value: function validateForm() {\n var formEl = document.querySelector('form#add-expense-item');\n var inputFields = formEl.querySelectorAll('input');\n inputFields.forEach(function (i) {\n return i.classList.remove('invalid');\n });\n var validity = true;\n\n if (!this.isValidAmount) {\n document.querySelector('input[name=expense-amount]').classList.add('invalid');\n validity = false;\n }\n\n if (!formEl.checkValidity()) {\n inputFields.forEach(function (i) {\n if (!i.validity.valid) {\n i.classList.add('invalid');\n validity = false;\n }\n });\n }\n\n return validity;\n }\n }, {\n key: \"updateCurrency\",\n value: function updateCurrency(event) {\n this.currency = event.target.value;\n }\n }, {\n key: \"submit\",\n value: function submit(e) {\n e.preventDefault();\n var dateInput = this.date instanceof Array ? this.date[0] : this.date;\n\n var _moment$utcOffset$toI = (0, _moment.default)(dateInput).utcOffset(0, true).toISOString().split('T'),\n _moment$utcOffset$toI2 = _slicedToArray(_moment$utcOffset$toI, 1),\n date = _moment$utcOffset$toI2[0];\n\n var isValid = this.validateForm();\n if (!isValid) return false;\n var expense = {\n amount: parseFloat(this.amount),\n currency: this.currency,\n date: date,\n title: this.title,\n description: Ember.isPresent(this.description) ? this.description : undefined,\n url: Ember.isPresent(this.url) ? this.url : undefined\n };\n\n if (Ember.isPresent(this.tags)) {\n expense.tags = this.tags.split(',').map(function (t) {\n return t.trim();\n }).filter(function (t) {\n return t.length > 0;\n });\n }\n\n this.args.addExpenseItem(expense);\n }\n }]);\n\n return AddExpenseItemComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"amount\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '0';\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"currency\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 'EUR';\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"date\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return (0, _moment.default)().startOf('hour').toDate();\n }\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"description\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"url\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"tags\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"updateCurrency\", [_dec8], Object.getOwnPropertyDescriptor(_class.prototype, \"updateCurrency\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype)), _class));\n _exports.default = AddExpenseItemComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/add-reimbursement/component\", [\"exports\", \"@glimmer/component\", \"kredits-web/utils/is-valid-amount\", \"kredits-web/utils/read-file-content\", \"kredits-web/config/environment\"], function (_exports, _component, _isValidAmount, _readFileContent, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9;\n\n function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AddReimbursementComponent = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember.inject.service, _dec4 = Ember.computed.alias('kredits.contributorsSorted'), _dec5 = Ember._tracked, _dec6 = Ember._tracked, _dec7 = Ember._tracked, _dec8 = Ember._tracked, _dec9 = Ember._tracked, _dec10 = Ember._action, _dec11 = Ember._action, _dec12 = Ember._action, _dec13 = Ember._action, _dec14 = Ember._action, _dec15 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(AddReimbursementComponent, _Component);\n\n var _super = _createSuper(AddReimbursementComponent);\n\n function AddReimbursementComponent() {\n var _this;\n\n _classCallCheck(this, AddReimbursementComponent);\n\n _this = _super.apply(this, arguments);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"router\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"exchangeRates\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"contributors\", _descriptor4, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"recipientId\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"title\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"total\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"expenses\", _descriptor8, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"expenseFormVisible\", _descriptor9, _assertThisInitialized(_this));\n\n _this.exchangeRates.fetchRates();\n\n return _this;\n }\n\n _createClass(AddReimbursementComponent, [{\n key: \"isValidTotal\",\n get: function get() {\n return (0, _isValidAmount.default)(this.total);\n }\n }, {\n key: \"totalInputClass\",\n get: function get() {\n return this.isValidTotal ? 'valid' : '';\n }\n }, {\n key: \"totalEUR\",\n get: function get() {\n var expenses = this.expenses.filterBy('currency', 'EUR');\n\n if (expenses.length > 0) {\n return expenses.mapBy('amount').reduce(function (summation, current) {\n return summation + current;\n });\n } else {\n return 0;\n }\n }\n }, {\n key: \"totalUSD\",\n get: function get() {\n var expenses = this.expenses.filterBy('currency', 'USD');\n\n if (expenses.length > 0) {\n return expenses.mapBy('amount').reduce(function (summation, current) {\n return summation + current;\n });\n } else {\n return 0;\n }\n }\n }, {\n key: \"submitButtonEnabled\",\n get: function get() {\n return this.isValidTotal && this.expenses.length > 0;\n }\n }, {\n key: \"submitButtonDisabled\",\n get: function get() {\n return !this.submitButtonEnabled;\n }\n }, {\n key: \"scrollToExpenseItemForm\",\n value: function scrollToExpenseItemForm() {\n var anchor = document.getElementById('new-expense-item');\n anchor.scrollIntoView();\n }\n }, {\n key: \"updateTotalAmountFromFiat\",\n value: function updateTotalAmountFromFiat() {\n var btcAmount = parseFloat(this.total);\n\n if (this.exchangeRates.btceur > 0 && this.totalEUR > 0) {\n btcAmount += this.totalEUR / this.exchangeRates.btceur;\n }\n\n if (this.exchangeRates.btcusd > 0 && this.totalUSD > 0) {\n btcAmount += this.totalUSD / this.exchangeRates.btcusd;\n }\n\n if (this.totalUSD === 0 && this.totalEUR === 0) {\n btcAmount = 0;\n }\n\n this.total = btcAmount.toFixed(8);\n } // TODO use ember-concurrency here\n // https://github.com/67P/kredits-web/pull/209#discussion_r1064234421\n\n }, {\n key: \"addExpensesFromFile\",\n value: function () {\n var _addExpensesFromFile = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(evt) {\n var content, expenses, _iterator, _step, item;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _readFileContent.default)(evt.target.files[0]);\n\n case 2:\n content = _context.sent;\n expenses = JSON.parse(content);\n\n if (expenses instanceof Array) {\n _iterator = _createForOfIteratorHelper(expenses);\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n item = _step.value;\n this.addExpenseItem(item);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n console.warn(\"Expenses in file must be a list of items:\");\n console.debug(content);\n }\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function addExpensesFromFile(_x) {\n return _addExpensesFromFile.apply(this, arguments);\n }\n\n return addExpensesFromFile;\n }()\n }, {\n key: \"updateContributor\",\n value: function updateContributor(event) {\n this.recipientId = event.target.value;\n }\n }, {\n key: \"showExpenseForm\",\n value: function showExpenseForm() {\n this.expenseFormVisible = true;\n Ember.run.scheduleOnce('afterRender', this, this.scrollToExpenseItemForm);\n }\n }, {\n key: \"addExpenseItem\",\n value: function addExpenseItem(expenseItem) {\n this.expenses.pushObject(expenseItem);\n this.updateTotalAmountFromFiat();\n this.expenseFormVisible = false;\n }\n }, {\n key: \"removeExpenseItem\",\n value: function removeExpenseItem(expenseItem) {\n this.expenses.removeObject(expenseItem);\n this.updateTotalAmountFromFiat();\n\n if (this.expenses.length === 0) {\n this.expenseFormVisible = true;\n }\n }\n }, {\n key: \"submit\",\n value: function submit(e) {\n var _this2 = this;\n\n e.preventDefault();\n\n if (!this.kredits.currentUser) {\n window.alert('You need to connect your RSK account first.');\n return false;\n }\n\n if (!this.kredits.currentUserIsCore) {\n window.alert('Only core contributors can submit reimbursements.');\n return false;\n }\n\n var contributor = this.contributors.findBy('id', parseInt(this.recipientId));\n var attributes = {\n amount: parseInt(parseFloat(this.total) * 100000000),\n // convert to sats\n token: _environment.default.tokens['BTC'],\n recipientId: parseInt(this.recipientId),\n title: \"Expenses covered by \".concat(contributor.name),\n description: this.description,\n url: this.url,\n expenses: JSON.parse(JSON.stringify(this.expenses))\n };\n this.inProgress = true;\n this.kredits.addReimbursement(attributes).then(function\n /* reimbursement */\n () {\n _this2.router.transitionTo('budget');\n }).catch(function (e) {\n console.error('Could not add reimbursement:', e);\n window.alert('Something went wrong. Please check the browser console.');\n }).finally(function () {\n _this2.inProgress = false;\n });\n }\n }]);\n\n return AddReimbursementComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"exchangeRates\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"contributors\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"recipientId\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"title\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '';\n }\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"total\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return '0';\n }\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"expenses\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return Ember.A([]);\n }\n }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, \"expenseFormVisible\", [_dec9], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return true;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"addExpensesFromFile\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"addExpensesFromFile\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"updateContributor\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"updateContributor\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"showExpenseForm\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"showExpenseForm\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"addExpenseItem\", [_dec13], Object.getOwnPropertyDescriptor(_class.prototype, \"addExpenseItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"removeExpenseItem\", [_dec14], Object.getOwnPropertyDescriptor(_class.prototype, \"removeExpenseItem\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"submit\", [_dec15], Object.getOwnPropertyDescriptor(_class.prototype, \"submit\"), _class.prototype)), _class));\n _exports.default = AddReimbursementComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/budget-balances/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var BudgetBalancesComponent = (_dec = Ember.inject.service, _dec2 = Ember.computed.alias('communityFunds.balances'), (_class = /*#__PURE__*/function (_Component) {\n _inherits(BudgetBalancesComponent, _Component);\n\n var _super = _createSuper(BudgetBalancesComponent);\n\n function BudgetBalancesComponent() {\n var _this;\n\n _classCallCheck(this, BudgetBalancesComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"communityFunds\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"balances\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(BudgetBalancesComponent, [{\n key: \"loading\",\n get: function get() {\n return !this.communityFunds.balancesLoaded;\n }\n }]);\n\n return BudgetBalancesComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"communityFunds\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"balances\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = BudgetBalancesComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/confirmed-in/component\", [\"exports\", \"@glimmer/component\", \"moment\"], function (_exports, _component, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ConfirmedInComponent = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ConfirmedInComponent, _Component);\n\n var _super = _createSuper(ConfirmedInComponent);\n\n function ConfirmedInComponent() {\n var _this;\n\n _classCallCheck(this, ConfirmedInComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ConfirmedInComponent, [{\n key: \"confirmedInBlocks\",\n get: function get() {\n return this.args.confirmedAtBlock - this.kredits.currentBlock;\n }\n }, {\n key: \"confirmedInSeconds\",\n get: function get() {\n // A new block is mined every 30 seconds on average\n return this.confirmedInBlocks * 30;\n }\n }, {\n key: \"confirmedInHumanTime\",\n get: function get() {\n return _moment.default.duration(this.confirmedInSeconds, \"seconds\").humanize();\n }\n }, {\n key: \"isConfirmed\",\n get: function get() {\n return this.confirmedInBlocks <= 0;\n }\n }]);\n\n return ConfirmedInComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = ConfirmedInComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/expense-list/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var ExpenseListComponent = /*#__PURE__*/function (_Component) {\n _inherits(ExpenseListComponent, _Component);\n\n var _super = _createSuper(ExpenseListComponent);\n\n function ExpenseListComponent() {\n _classCallCheck(this, ExpenseListComponent);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ExpenseListComponent, [{\n key: \"showDeleteButton\",\n get: function get() {\n return !!this.args.deletable;\n }\n }]);\n\n return ExpenseListComponent;\n }(_component.default);\n\n _exports.default = ExpenseListComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/reimbursement-list/component\", [\"exports\", \"@glimmer/component\", \"kredits-web/config/environment\"], function (_exports, _component, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ReimbursementListComponent = (_dec = Ember.inject.service, _dec2 = Ember.computed.sort('args.items', 'itemSorting'), _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(ReimbursementListComponent, _Component);\n\n var _super = _createSuper(ReimbursementListComponent);\n\n function ReimbursementListComponent() {\n var _this;\n\n _classCallCheck(this, ReimbursementListComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"itemSorting\", Object.freeze(['pendingStatus:asc', 'id:desc']));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"itemsSorted\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ReimbursementListComponent, [{\n key: \"ipfsGatewayUrl\",\n get: function get() {\n return _environment.default.ipfs.gatewayUrl;\n }\n }, {\n key: \"veto\",\n value: function veto(id) {\n this.kredits.vetoReimbursement(id).then(function (transaction) {\n console.debug('[controllers:budget] Veto submitted to chain: ' + transaction.hash);\n });\n }\n }]);\n\n return ReimbursementListComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"itemsSorted\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"veto\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"veto\"), _class.prototype)), _class));\n _exports.default = ReimbursementListComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/components/topbar-account-panel/component\", [\"exports\", \"@glimmer/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _class, _descriptor, _descriptor2, _descriptor3;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var TopbarAccountPanelComponent = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, _dec3 = Ember._tracked, _dec4 = Ember._action, _dec5 = Ember._action, (_class = /*#__PURE__*/function (_Component) {\n _inherits(TopbarAccountPanelComponent, _Component);\n\n var _super = _createSuper(TopbarAccountPanelComponent);\n\n function TopbarAccountPanelComponent() {\n var _this;\n\n _classCallCheck(this, TopbarAccountPanelComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"router\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"setupInProgress\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(TopbarAccountPanelComponent, [{\n key: \"userHasWallet\",\n get: function get() {\n return Ember.isPresent(window.ethereum);\n }\n }, {\n key: \"walletConnected\",\n get: function get() {\n return this.userHasWallet && this.kredits.hasAccounts;\n }\n }, {\n key: \"walletDisconnected\",\n get: function get() {\n return this.userHasWallet && !this.kredits.hasAccounts;\n }\n }, {\n key: \"signup\",\n value: function signup() {\n this.router.transitionTo('signup');\n }\n }, {\n key: \"connectWallet\",\n value: function () {\n var _connectWallet = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.setupInProgress = true;\n _context.next = 3;\n return this.kredits.connectWallet();\n\n case 3:\n this.setupInProgress = false;\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function connectWallet() {\n return _connectWallet.apply(this, arguments);\n }\n\n return connectWallet;\n }()\n }]);\n\n return TopbarAccountPanelComponent;\n }(_component.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"router\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"setupInProgress\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"signup\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"signup\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"connectWallet\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"connectWallet\"), _class.prototype)), _class));\n _exports.default = TopbarAccountPanelComponent;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/budget\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var BudgetController = (_dec = Ember.inject.service, _dec2 = Ember.computed.alias('kredits.reimbursementsUnconfirmed'), _dec3 = Ember.computed.alias('kredits.reimbursementsConfirmed'), (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(BudgetController, _Ember$Controller);\n\n var _super = _createSuper(BudgetController);\n\n function BudgetController() {\n var _this;\n\n _classCallCheck(this, BudgetController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"reimbursementsUnconfirmed\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"reimbursementsConfirmed\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(BudgetController);\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"reimbursementsUnconfirmed\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"reimbursementsConfirmed\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = BudgetController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/signup/account\", [\"exports\", \"kredits-web/config/environment\", \"web3-utils\"], function (_exports, _environment, _web3Utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var AccountController = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._action, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(AccountController, _Ember$Controller);\n\n var _super = _createSuper(AccountController);\n\n function AccountController() {\n var _this;\n\n _classCallCheck(this, AccountController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"accountAddress\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(AccountController, [{\n key: \"isValidEthAccount\",\n get: function get() {\n return (0, _web3Utils.isAddress)(this.accountAddress);\n }\n }, {\n key: \"signupButtonDisabled\",\n get: function get() {\n return !this.isValidEthAccount;\n }\n }, {\n key: \"completeSignup\",\n value: function completeSignup() {\n var _this2 = this;\n\n var payload = {\n accessToken: this.kredits.githubAccessToken,\n account: this.accountAddress\n };\n fetch(_environment.default.githubSignupUrl, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(payload)\n }).then(function (res) {\n return res.json();\n }).then(function (data) {\n if (data.error) {\n alert('Creating profile failed. We have been notified about this error and will take a look soon. Sorry!');\n console.warn('Creating contributor profile failed:', JSON.parse(data.error.body).error.message);\n return false;\n } else {\n console.log('[signup/account] Created contributor:', data);\n _this2.kredits.githubAccessToken = null;\n _this2.accountAddress = null;\n\n _this2.transitionToRoute('signup.complete');\n }\n });\n }\n }]);\n\n return AccountController;\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"accountAddress\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return null;\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"completeSignup\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"completeSignup\"), _class.prototype)), _class));\n _exports.default = AccountController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/controllers/signup/index\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var IndexController = (_dec = Ember._action, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(IndexController, _Ember$Controller);\n\n var _super = _createSuper(IndexController);\n\n function IndexController() {\n _classCallCheck(this, IndexController);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(IndexController, [{\n key: \"connectGithub\",\n value: function connectGithub() {\n window.location = _environment.default.githubConnectUrl;\n }\n }]);\n\n return IndexController;\n }(Ember.Controller), (_applyDecoratedDescriptor(_class.prototype, \"connectGithub\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"connectGithub\"), _class.prototype)), _class));\n _exports.default = IndexController;\n});","define(\"kredits-web/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberComponentManager.default;\n }\n });\n});","define(\"kredits-web/components/add-contribution/component\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Component.extend({\n kredits: Ember.inject.service(),\n attributes: null,\n contributors: Ember.computed('kredits.contributorsSorted.[]', function () {\n return this.kredits.contributorsSorted.map(function (c) {\n return {\n id: c.id.toString(),\n name: c.name\n };\n });\n }),\n isValidContributor: Ember.computed.notEmpty('contributorId'),\n isValidKind: Ember.computed.notEmpty('kind'),\n isValidAmount: Ember.computed('amount', function () {\n return parseInt(this.amount, 10) > 0;\n }),\n isValidDescription: Ember.computed.notEmpty('description'),\n isValidUrl: Ember.computed.notEmpty('url'),\n isValid: Ember.computed.and('isValidContributor', 'isValidKind', 'isValidAmount', 'isValidDescription'),\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('defaultDate', (0, _moment.default)().startOf('hour').toDate());\n this.set('defaultAttr', {\n contributorId: null,\n kind: null,\n date: this.defaultDate,\n amount: null,\n description: null,\n url: null,\n details: null\n });\n this.set('attributes', Ember.assign({}, this.defaultAttr, this.attributes));\n this.reset();\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit(evt) {\n var _this = this;\n\n evt.preventDefault();\n\n if (!this.isValid) {\n alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = this.getProperties(Object.keys(this.attributes));\n attributes.contributorId = parseInt(this.contributorId);\n var dateInput = attributes.date instanceof Array ? attributes.date[0] : attributes.date;\n\n var _dateInput$toISOStrin = dateInput.toISOString().split('T'),\n _dateInput$toISOStrin2 = _slicedToArray(_dateInput$toISOStrin, 2),\n date = _dateInput$toISOStrin2[0],\n time = _dateInput$toISOStrin2[1];\n\n var _ref = [date, time];\n attributes.date = _ref[0];\n attributes.time = _ref[1];\n this.set('inProgress', true);\n this.save(attributes).then(function\n /*contribution*/\n () {\n _this.reset();\n }, function (err) {\n console.warn(err);\n window.alert('Something went wrong. Check the browser console for details.');\n }).finally(function () {\n return _this.set('inProgress', false);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contribution/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Ht3NNTLA\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[10,\\\"form\\\"],[15,\\\"onsubmit\\\",[30,[36,1],[[32,0],\\\"submit\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Contributor:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,\\\"required\\\",\\\"\\\"],[15,\\\"onchange\\\",[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,[\\\"contributors\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"contributorId\\\"]],[32,1,[\\\"id\\\"]]],null]],[12],[1,[32,1,[\\\"name\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Kind:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,\\\"required\\\",\\\"\\\"],[15,\\\"onchange\\\",[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"bureaucracy\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"bureaucracy\\\"],null]],[12],[2,\\\"Bureaucracy\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"community\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"community\\\"],null]],[12],[2,\\\"Community\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"design\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"design\\\"],null]],[12],[2,\\\"Design\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"dev\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"dev\\\"],null]],[12],[2,\\\"Development\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"docs\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"docs\\\"],null]],[12],[2,\\\"Documentation\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"ops\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"ops\\\"],null]],[12],[2,\\\"IT Operations\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"outreach\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"outreach\\\"],null]],[12],[2,\\\"Outreach\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"qa\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"qa\\\"],null]],[12],[2,\\\"Quality Assurance\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"special\\\"],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"kind\\\"]],\\\"special\\\"],null]],[12],[2,\\\"Special\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Date:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,5],null,[[\\\"date\\\",\\\"defaultDate\\\",\\\"maxDate\\\",\\\"enableTime\\\",\\\"time_24hr\\\",\\\"onChange\\\"],[[32,0,[\\\"date\\\"]],[32,0,[\\\"defaultDate\\\"]],[32,0,[\\\"defaultDate\\\"]],true,true,[30,[36,1],[[32,0],[30,[36,2],[[32,0,[\\\"date\\\"]]],null]],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Amount:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"placeholder\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",\\\"500\\\",[32,0,[\\\"amount\\\"]],[30,[36,6],[[32,0,[\\\"isValidAmount\\\"]],\\\"valid\\\",\\\"\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Description:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[32,0,[\\\"description\\\"]],[30,[36,6],[[32,0,[\\\"isValidDescription\\\"]],\\\"valid\\\",\\\"\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"URL (optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"value\\\",\\\"class\\\"],[\\\"text\\\",[32,0,[\\\"url\\\"]],[30,[36,6],[[32,0,[\\\"isValidUrl\\\"]],\\\"valid\\\",\\\"\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,6],[[32,0,[\\\"details\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Details:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"pre\\\"],[12],[2,\\\" \\\"],[1,[32,0,[\\\"details\\\"]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,7],null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[32,0,[\\\"inProgress\\\"]],[30,[36,6],[[32,0,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"eq\\\",\\\"action\\\",\\\"mut\\\",\\\"-track-array\\\",\\\"each\\\",\\\"ember-flatpickr\\\",\\\"if\\\",\\\"input\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contribution/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/component\", [\"exports\", \"web3-utils\"], function (_exports, _web3Utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n kredits: Ember.inject.service(),\n attributes: null,\n isValidAccount: Ember.computed('account', function () {\n return (0, _web3Utils.isAddress)(this.account);\n }),\n isValidName: Ember.computed.notEmpty('name'),\n isValidURL: Ember.computed.notEmpty('url'),\n isValidGithubUID: Ember.computed.notEmpty('github_uid'),\n isValidGithubUsername: Ember.computed.notEmpty('github_username'),\n isValidGiteaUsername: Ember.computed.notEmpty('gitea_username'),\n isValidWikiUsername: Ember.computed.notEmpty('wiki_username'),\n isValidZoomDisplayName: Ember.computed.notEmpty('zoom_display_name'),\n isValid: Ember.computed.and('isValidAccount', 'isValidName', 'isValidGithubUID'),\n inProgress: false,\n init: function init() {\n this._super.apply(this, arguments);\n\n this.setDefaultAttributes();\n this.reset();\n },\n setDefaultAttributes: function setDefaultAttributes() {\n if (Ember.isPresent(this.attributes)) {\n return;\n }\n\n this.set('attributes', {\n account: null,\n name: null,\n kind: 'person',\n url: null,\n github_username: null,\n github_uid: null,\n gitea_username: null,\n wiki_username: null,\n zoom_display_name: null\n });\n },\n reset: function reset() {\n this.setProperties(this.attributes);\n },\n actions: {\n submit: function submit(evt) {\n var _this = this;\n\n evt.preventDefault();\n\n if (!this.kredits.currentUserIsCore) {\n window.alert('Only core team members can edit profiles. Please ask someone to set you up.');\n return;\n }\n\n if (!this.isValid) {\n window.alert('Invalid data. Please review and try again.');\n return;\n }\n\n var attributes = Object.keys(this.attributes);\n var contributor = this.getProperties(attributes);\n this.set('inProgress', true);\n this.save(contributor).then(function () {\n _this.reset();\n }).catch(function (err) {\n console.warn(err);\n window.alert('Something went wrong. Please check the browser console.');\n }).finally(function () {\n _this.set('inProgress', false);\n\n _this.router.transitionTo('dashboard');\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-contributor/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"sjEfCFXi\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"form\\\"],[15,\\\"onsubmit\\\",[30,[36,0],[[32,0],\\\"submit\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-account\\\"],[12],[2,\\\"Rootstock account\\\"],[13],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[[24,3,\\\"account\\\"],[24,1,\\\"c-account\\\"],[24,\\\"placeholder\\\",\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\"],[16,0,[30,[36,1],[[32,0,[\\\"isValidAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[32,0,[\\\"account\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-kind\\\"],[12],[2,\\\"Kind\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"select\\\"],[14,\\\"required\\\",\\\"\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0],[30,[36,2],[[32,0,[\\\"kind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[14,1,\\\"c-kind\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"person\\\"],[15,\\\"selected\\\",[30,[36,3],[[32,0,[\\\"kind\\\"]],\\\"person\\\"],null]],[12],[2,\\\"Person\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"organization\\\"],[15,\\\"selected\\\",[30,[36,3],[[32,0,[\\\"kind\\\"]],\\\"organization\\\"],null]],[12],[2,\\\"Organization\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-name\\\"],[12],[2,\\\"Name\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"name\\\",\\\"text\\\",[32,0,[\\\"name\\\"]],\\\"Zero Cool\\\",[30,[36,1],[[32,0,[\\\"isValidName\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-name\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-url\\\"],[12],[2,\\\"URL\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"url\\\",\\\"text\\\",[32,0,[\\\"url\\\"]],\\\"http://zerocool.bit\\\",[30,[36,1],[[32,0,[\\\"isValidURL\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-url\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-github-uid\\\"],[12],[2,\\\"GitHub UID\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_uid\\\",\\\"text\\\",[32,0,[\\\"github_uid\\\"]],\\\"2342\\\",[30,[36,1],[[32,0,[\\\"isValidGithubUID\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-uid\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-github-username\\\"],[12],[2,\\\"GitHub username\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"github_username\\\",\\\"text\\\",[32,0,[\\\"github_username\\\"]],\\\"zerocool\\\",[30,[36,1],[[32,0,[\\\"isValidGithubUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-github-username\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-gitea-username\\\"],[12],[2,\\\"Gitea username\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"gitea_username\\\",\\\"text\\\",[32,0,[\\\"gitea_username\\\"]],\\\"zerocool\\\",[30,[36,1],[[32,0,[\\\"isValidGiteaUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-gitea-username\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-wiki-username\\\"],[12],[2,\\\"Wiki username\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"wiki_username\\\",\\\"text\\\",[32,0,[\\\"wiki_username\\\"]],\\\"ZeroCool\\\",[30,[36,1],[[32,0,[\\\"isValidWikiUsername\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-wiki-username\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"c-zoom-display-name\\\"],[12],[2,\\\"Zoom display name\\\"],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"name\\\",\\\"type\\\",\\\"value\\\",\\\"placeholder\\\",\\\"class\\\",\\\"id\\\"],[\\\"zoom_display_name\\\",\\\"text\\\",[32,0,[\\\"zoom_display_name\\\"]],\\\"Zero Cool\\\",[30,[36,1],[[32,0,[\\\"isValidZoomDisplayName\\\"]],\\\"valid\\\",\\\"\\\"],null],\\\"c-zoom-display-name\\\"]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,4],null,[[\\\"type\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"submit\\\",[32,0,[\\\"inProgress\\\"]],[30,[36,1],[[32,0,[\\\"inProgress\\\"]],\\\"Processing\\\",\\\"Save\\\"],null]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\",\\\"mut\\\",\\\"eq\\\",\\\"input\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-contributor/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-expense-item/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"xrdEJbVd\",\n \"block\": \"{\\\"symbols\\\":[\\\"currency\\\"],\\\"statements\\\":[[11,\\\"form\\\"],[24,1,\\\"add-expense-item\\\"],[24,\\\"novalidate\\\",\\\"\\\"],[4,[38,1],[\\\"submit\\\",[32,0,[\\\"submit\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"horizontal\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Amount:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@required\\\",\\\"@pattern\\\",\\\"@class\\\"],[\\\"expense-amount\\\",\\\"text\\\",\\\"10\\\",[32,0,[\\\"amount\\\"]],true,\\\"([0-9]*[.])?[0-9]+\\\",[32,0,[\\\"amountInputClass\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Currency:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,\\\"required\\\",\\\"\\\"],[24,3,\\\"expense-currency\\\"],[4,[38,1],[\\\"change\\\",[32,0,[\\\"updateCurrency\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,[\\\"currencies\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,1,[\\\"code\\\"]]],[15,\\\"selected\\\",[30,[36,0],[[32,0,[\\\"currency\\\"]],[32,1,[\\\"code\\\"]]],null]],[12],[1,[32,1,[\\\"code\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Date:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"ember-flatpickr\\\",[],[[\\\"@date\\\",\\\"@defaultDate\\\",\\\"@maxDate\\\",\\\"@enableTime\\\",\\\"@onChange\\\"],[[32,0,[\\\"date\\\"]],[32,0,[\\\"defaultDate\\\"]],[32,0,[\\\"defaultDate\\\"]],false,[30,[36,5],[[30,[36,4],[[32,0,[\\\"date\\\"]]],null]],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Title:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\",\\\"@required\\\"],[\\\"expense-title\\\",\\\"text\\\",[32,0,[\\\"title\\\"]],true]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Description (optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"expense-description\\\",\\\"text\\\",[32,0,[\\\"description\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"URL (optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"expense-url\\\",\\\"url\\\",[32,0,[\\\"url\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Tags (comma-separated, optional):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@name\\\",\\\"@type\\\",\\\"@value\\\"],[\\\"expense-tags\\\",\\\"text\\\",[32,0,[\\\"tags\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@value\\\",\\\"@class\\\",\\\"@title\\\"],[\\\"submit\\\",\\\"Add\\\",\\\"green\\\",\\\"Add item to reimbursement\\\"]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"eq\\\",\\\"on\\\",\\\"-track-array\\\",\\\"each\\\",\\\"mut\\\",\\\"fn\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-expense-item/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/add-reimbursement/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"GxxUddPT\",\n \"block\": \"{\\\"symbols\\\":[\\\"contributor\\\"],\\\"statements\\\":[[11,\\\"form\\\"],[24,\\\"novalidate\\\",\\\"\\\"],[4,[38,1],[\\\"submit\\\",[32,0,[\\\"submit\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Contributor:\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"select\\\"],[24,\\\"required\\\",\\\"\\\"],[4,[38,1],[\\\"change\\\",[32,0,[\\\"updateContributor\\\"]]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[14,\\\"disabled\\\",\\\"\\\"],[14,\\\"hidden\\\",\\\"\\\"],[12],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,[\\\"contributors\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,1,[\\\"id\\\"]]],[15,\\\"selected\\\",[30,[36,2],[[32,0,[\\\"contributorId\\\"]],[32,1,[\\\"id\\\"]]],null]],[12],[1,[32,1,[\\\"name\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"fieldset\\\"],[14,0,\\\"horizontal thirds total-amounts\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"Total amount (BTC):\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@placeholder\\\",\\\"@value\\\",\\\"@required\\\",\\\"@pattern\\\",\\\"@class\\\"],[\\\"text\\\",\\\"0.0015\\\",[32,0,[\\\"total\\\"]],true,\\\"([0-9]*[.])?[0-9]+\\\",[32,0,[\\\"totalInputClass\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"EUR total\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@name\\\",\\\"@value\\\",\\\"@disabled\\\"],[\\\"text\\\",\\\"total-eur\\\",[32,0,[\\\"totalEUR\\\"]],true]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"label\\\"],[12],[2,\\\"USD total\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@name\\\",\\\"@value\\\",\\\"@disabled\\\"],[\\\"text\\\",\\\"total-usd\\\",[32,0,[\\\"totalUSD\\\"]],true]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Expense items\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"expenses\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"expense-list\\\",[],[[\\\"@expenses\\\",\\\"@removeExpenseItem\\\",\\\"@deletable\\\"],[[32,0,[\\\"expenses\\\"]],[32,0,[\\\"removeExpenseItem\\\"]],true]],null],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"green small\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[32,0,[\\\"showExpenseForm\\\"]]],null],[12],[2,\\\"+ Add another item\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[12],[2,\\\"No line items yet.\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[32,0,[\\\"inProgress\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@title\\\"],[\\\"submit\\\",\\\"Submitting...\\\",true,\\\"Submit/propose this reimbursement\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@value\\\",\\\"@disabled\\\",\\\"@title\\\"],[\\\"submit\\\",\\\"Submit\\\",[32,0,[\\\"submitButtonDisabled\\\"]],\\\"Submit/propose this reimbursement\\\"]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,5],[[32,0,[\\\"expenseFormVisible\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"h3\\\"],[14,1,\\\"new-expense-item\\\"],[12],[2,\\\"New expense item\\\"],[13],[2,\\\"\\\\n \\\"],[8,\\\"add-expense-item\\\",[],[[\\\"@addExpenseItem\\\"],[[30,[36,0],[[32,0,[\\\"addExpenseItem\\\"]]],null]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"],[10,\\\"form\\\"],[14,1,\\\"add-expenses-from-file\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[2,\\\"Add expense items from file\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"input\\\"],[14,\\\"multiple\\\",\\\"false\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0,[\\\"addExpensesFromFile\\\"]]],null]],[14,\\\"accept\\\",\\\"application/json\\\"],[14,4,\\\"file\\\"],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"eq\\\",\\\"-track-array\\\",\\\"each\\\",\\\"if\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/add-reimbursement/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/budget-balances/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Ss15QE7U\",\n \"block\": \"{\\\"symbols\\\":[\\\"balance\\\"],\\\"statements\\\":[[10,\\\"table\\\"],[15,0,[31,[\\\"token-balances \\\",[30,[36,0],[[32,0,[\\\"loading\\\"]],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"tr\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[2,\\\"Token\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[2,\\\"Amount\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[2,\\\"Fiat value\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[30,[36,1],[[30,[36,1],[[32,0,[\\\"balances\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"tr\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"th\\\"],[12],[1,[32,1,[\\\"token\\\",\\\"symbol\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"amount\\\"],[12],[1,[32,1,[\\\"confirmed_balance\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"fiat-amount\\\"],[12],[2,\\\"~\\\"],[1,[32,1,[\\\"balanceUSD\\\"]]],[2,\\\" USD\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/budget-balances/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var categoryColors = {\n community: \"#fb6868\",\n design: \"#fbe468\",\n dev: \"#e068fb\",\n docs: \"#97fb68\",\n ops: \"#8f68fb\"\n };\n\n var _default = Ember.Component.extend({\n contributions: null,\n chartOptions: Object.freeze({\n legend: {\n display: false\n }\n }),\n chartData: Ember.computed('contributions', function () {\n var kredits = this.contributions.filterBy('vetoed', false).map(function (c) {\n return {\n kind: c.kind,\n amount: c.amount\n };\n }).reduce(function (kinds, c) {\n if (c.kind in kinds) {\n kinds[c.kind] = kinds[c.kind] + c.amount;\n } else {\n kinds[c.kind] = c.amount;\n }\n\n return kinds;\n }, {});\n return {\n datasets: [{\n data: [kredits['community'], kredits['design'], kredits['dev'], kredits['ops'], kredits['docs']],\n borderColor: [categoryColors.community, categoryColors.design, categoryColors.dev, categoryColors.ops, categoryColors.docs],\n borderWidth: 1\n }],\n labels: ['Community', 'Design', 'Development', 'Operations & Infrastructure', 'Documentation']\n };\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/chart-contributions-by-type/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"wfd6i6On\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"chart\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"ember-chart\\\",[],[[\\\"@type\\\",\\\"@data\\\",\\\"@options\\\",\\\"@width\\\",\\\"@height\\\"],[\\\"doughnut\\\",[32,0,[\\\"chartData\\\"]],[32,0,[\\\"chartOptions\\\"]],\\\"200\\\",\\\"200\\\"]],null],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/chart-contributions-by-type/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/confirmed-in/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Q4nwoyU+\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Confirming in \\\"],[10,\\\"strong\\\"],[12],[1,[32,0,[\\\"confirmedInBlocks\\\"]]],[13],[2,\\\" blocks (~ \\\"],[1,[32,0,[\\\"confirmedInHumanTime\\\"]]],[2,\\\")\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"unless\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/confirmed-in/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n router: Ember.inject.service(),\n tagName: 'div',\n classNames: ['contributions'],\n selectedContribution: null,\n showQuickFilter: false,\n hideSmallContributions: false,\n contributorId: null,\n contributionKind: null,\n kredits: Ember.inject.service(),\n contributorsSorting: Object.freeze(['name:asc']),\n contributors: Ember.computed.sort('kredits.contributors', 'contributorsSorting'),\n contributorsActive: Ember.computed('contributors.[]', 'contributions', function () {\n var activeIds = new Set(this.contributions.mapBy('contributorId'));\n return this.contributors.filter(function (c) {\n return activeIds.has(c.id);\n });\n }),\n contributionKinds: Ember.computed('contributions.[]', function () {\n return this.contributions.mapBy('kind').uniq();\n }),\n contributionsFiltered: Ember.computed('contributions.[]', 'hideSmallContributions', 'contributorId', 'contributionKind', function () {\n var _this = this;\n\n return this.contributions.filter(function (c) {\n var included = true;\n\n if (_this.hideSmallContributions && c.amount <= 500) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributorId) && c.contributorId !== parseInt(_this.contributorId)) {\n included = false;\n }\n\n if (Ember.isPresent(_this.contributionKind) && c.kind !== _this.contributionKind) {\n included = false;\n }\n\n return included;\n });\n }),\n actions: {\n veto: function veto(contributionId) {\n if (this.contractInteractionEnabled) {\n this.vetoContribution(contributionId);\n } else {\n window.alert('Only members can veto contributions. Please ask someone to set you up.');\n }\n },\n openContributionDetails: function openContributionDetails(contribution) {\n this.router.transitionTo('dashboard.contributions.show', contribution);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contribution-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"6QjAzyse\",\n \"block\": \"{\\\"symbols\\\":[\\\"contribution\\\",\\\"kind\\\",\\\"contributor\\\",\\\"@selectedContributionId\\\",\\\"@showQuickFilter\\\",\\\"@loading\\\"],\\\"statements\\\":[[6,[37,5],[[32,5]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,0,\\\"quick-filter\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"filter-contributor\\\"],[12],[2,\\\"\\\\n Contributor:\\\\n \\\"],[10,\\\"select\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0],[30,[36,8],[[32,0,[\\\"contributorId\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[2,\\\"all\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,[\\\"contributorsActive\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,3,[\\\"id\\\"]]],[15,\\\"selected\\\",[30,[36,4],[[32,0,[\\\"contributorId\\\"]],[32,3,[\\\"id\\\"]]],null]],[12],[1,[32,3,[\\\"name\\\"]]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"filter-contribution-kind\\\"],[12],[2,\\\"\\\\n Kind:\\\\n \\\"],[10,\\\"select\\\"],[15,\\\"onchange\\\",[30,[36,0],[[32,0],[30,[36,8],[[32,0,[\\\"contributionKind\\\"]]],null]],[[\\\"value\\\"],[\\\"target.value\\\"]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"option\\\"],[14,2,\\\"\\\"],[14,\\\"selected\\\",\\\"\\\"],[12],[2,\\\"all\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,[\\\"contributionKinds\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"option\\\"],[15,2,[32,2]],[15,\\\"selected\\\",[30,[36,4],[[32,0,[\\\"contributionKind\\\"]],[32,2]],null]],[12],[1,[30,[36,7],[[32,2]],null]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"label\\\"],[14,0,\\\"filter-contribution-size\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[32,0,[\\\"hideSmallContributions\\\"]]]],null],[2,\\\"\\\\n Hide small contributions\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[10,\\\"ul\\\"],[15,0,[31,[\\\"item-list contribution-list \\\",[30,[36,5],[[32,6],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,10],[[30,[36,9],[[30,[36,9],[[32,0,[\\\"contributionsFiltered\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[11,\\\"li\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-contribution-id\\\",[32,1,[\\\"id\\\"]]],[16,0,[31,[[30,[36,6],[[32,1]],null],[30,[36,5],[[30,[36,4],[[32,1,[\\\"id\\\"]],[32,4]],null],\\\" selected\\\"],null]]]],[4,[38,0],[[32,0],\\\"openContributionDetails\\\",[32,1]],null],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"meta\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"recipient\\\"],[12],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,1,[\\\"contributor\\\"]]]],null],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"category \\\",[32,1,[\\\"kind\\\"]]]]],[12],[2,\\\"(\\\"],[1,[32,1,[\\\"kind\\\"]]],[2,\\\")\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"title\\\"],[12],[1,[32,1,[\\\"description\\\"]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"kredits-amount\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[1,[32,1,[\\\"amount\\\"]]],[13],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"₭S\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,3],[[32,1,[\\\"vetoed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,3],[[30,[36,2],[[32,1]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[14,0,\\\"voting\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,1],null,[[\\\"type\\\",\\\"class\\\",\\\"value\\\",\\\"click\\\",\\\"disabled\\\"],[\\\"button\\\",\\\"button small danger\\\",\\\"veto\\\",[30,[36,0],[[32,0],\\\"veto\\\",[32,1,[\\\"id\\\"]]],null],[32,1,[\\\"hasPendingChanges\\\"]]]]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"input\\\",\\\"is-confirmed-contribution\\\",\\\"unless\\\",\\\"eq\\\",\\\"if\\\",\\\"item-status\\\",\\\"capitalize-string\\\",\\\"mut\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contribution-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: '',\n router: Ember.inject.service(),\n selectedContributorId: null,\n actions: {\n openContributorDetails: function openContributorDetails(contributor) {\n this.router.transitionTo('dashboard.contributors.show', contributor);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/contributor-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"H19rOGuf\",\n \"block\": \"{\\\"symbols\\\":[\\\"c\\\",\\\"@selectedContributorId\\\",\\\"@showUnconfirmedKredits\\\",\\\"@loading\\\",\\\"@contributorList\\\"],\\\"statements\\\":[[10,\\\"table\\\"],[15,0,[31,[\\\"contributor-list \\\",[30,[36,2],[[32,4],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"thead\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"tbody\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,5]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"tr\\\"],[14,\\\"role\\\",\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"openContributorDetails\\\",[32,1,[\\\"contributor\\\"]]],null]],[15,0,[31,[[30,[36,2],[[30,[36,3],[[32,1,[\\\"contributor\\\"]]],null],\\\"current-user\\\"],null],\\\" \\\",[30,[36,2],[[30,[36,1],[[32,1,[\\\"contributor\\\",\\\"id\\\"]],[32,2]],null],\\\"selected\\\"],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"person\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,1,[\\\"contributor\\\"]]]],null],[2,\\\" \\\"],[1,[32,1,[\\\"contributor\\\",\\\"name\\\"]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"td\\\"],[14,0,\\\"kredits\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[1,[32,1,[\\\"amountTotal\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[1,[32,1,[\\\"amountConfirmed\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"₭S\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"eq\\\",\\\"if\\\",\\\"is-current-user\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/contributor-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-chart\", [\"exports\", \"ember-cli-chart/components/ember-chart\"], function (_exports, _emberChart) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = _emberChart.default;\n _exports.default = _default;\n});","define(\"kredits-web/components/ember-flatpickr\", [\"exports\", \"ember-flatpickr/components/ember-flatpickr\"], function (_exports, _emberFlatpickr) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberFlatpickr.default;\n }\n });\n});","define(\"kredits-web/components/expense-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Vj8N2eKw\",\n \"block\": \"{\\\"symbols\\\":[\\\"expense\\\",\\\"tag\\\",\\\"@removeExpenseItem\\\",\\\"@expenses\\\"],\\\"statements\\\":[[10,\\\"ul\\\"],[14,0,\\\"expense-list\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,4]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[14,0,\\\"expense-item\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h4\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"date\\\"],[12],[1,[30,[36,2],[[32,1,[\\\"date\\\"]]],null]],[2,\\\":\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"title\\\"],[12],[1,[32,1,[\\\"title\\\"]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"amount\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,3],[[32,1,[\\\"amount\\\"]],[32,1,[\\\"currency\\\"]]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"description\\\"],[12],[2,\\\"\\\\n \\\"],[1,[32,1,[\\\"description\\\"]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"tags\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,1,[\\\"tags\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"button\\\"],[14,0,\\\"small yellow\\\"],[14,\\\"role\\\",\\\"none\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"icon-tag\\\",[],[[],[]],null],[1,[32,2]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,6],[[32,0,[\\\"showDeleteButton\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"danger small\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,3],[32,1]],null]],null],[12],[2,\\\"delete\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"fmt-date-localized\\\",\\\"fmt-fiat-currency\\\",\\\"-track-array\\\",\\\"each\\\",\\\"if\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/expense-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/external-account-link/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: \"\",\n account: null,\n iconComponentName: Ember.computed('account.site', function () {\n if (this.account.site.match(/github|gitea|wiki|zoom/)) {\n return 'icon-account-' + this.account.site.replace(/\\./g, '-');\n } else {\n return 'icon-web-globe';\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/external-account-link/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"rwjEP1kx\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"a\\\"],[15,6,[32,0,[\\\"account\\\",\\\"url\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[15,\\\"title\\\",[31,[[32,0,[\\\"account\\\",\\\"username\\\"]],\\\" on \\\",[32,0,[\\\"account\\\",\\\"site\\\"]]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"site\\\"],[12],[1,[32,0,[\\\"account\\\",\\\"site\\\"]]],[13],[2,\\\"\\\\n \\\"],[1,[30,[36,0],[[32,0,[\\\"iconComponentName\\\"]]],null]],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/external-account-link/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n classNames: ['loading-spinner']\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/loading-spinner/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"RDvW8Yf/\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:xlink\\\",\\\"http://www.w3.org/1999/xlink\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"x\\\",\\\"0px\\\"],[14,\\\"y\\\",\\\"0px\\\"],[14,\\\"viewBox\\\",\\\"0 0 132 100\\\"],[14,\\\"enable-background\\\",\\\"new 0 0 100 100\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,1,\\\"path-comet\\\"],[14,\\\"d\\\",\\\"M79.062,24.173L79.062,24.173l-0.021-0.011c-0.068-0.03-0.137-0.062-0.204-0.093L42.392,7.337\\\\n c0,0,3.065,14.104,4.458,18.019l0,0c0,0-41.754-12.481-46.85-13.67c1.67,6.52,30.607,62.492,30.607,62.492\\\\n c5.848,11.873,19.394,18.485,33.522,18.485c19.811,0,35.87-16.059,35.87-35.869C100,42.313,91.418,29.837,79.062,24.173z\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Loading data...\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/loading-spinner/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/reimbursement-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"/SHVSc1V\",\n \"block\": \"{\\\"symbols\\\":[\\\"reimbursement\\\",\\\"@loading\\\"],\\\"statements\\\":[[10,\\\"ul\\\"],[15,0,[31,[\\\"item-list spaced reimbursement-list \\\",[30,[36,4],[[32,2],\\\"loading\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,6],[[30,[36,5],[[30,[36,5],[[32,0,[\\\"itemsSorted\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[15,\\\"data-reimbursement-id\\\",[32,1,[\\\"id\\\"]]],[15,0,[31,[[30,[36,2],[[32,1]],null]]]],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"meta\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"recipient\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,1,[\\\"contributor\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"title\\\"],[12],[2,\\\"\\\\n Expenses covered by \\\"],[1,[32,1,[\\\"contributor\\\",\\\"name\\\"]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"token-amount\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,3],[[32,1,[\\\"amount\\\"]]],null]],[13],[2,\\\" \\\"],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"BTC\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[8,\\\"expense-list\\\",[],[[\\\"@expenses\\\"],[[32,1,[\\\"expenses\\\"]]]],null],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"meta\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"confirmation-eta\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"confirmed-in\\\",[],[[\\\"@confirmedAtBlock\\\"],[[32,1,[\\\"confirmedAt\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[31,[[32,0,[\\\"ipfsGatewayUrl\\\"]],\\\"/\\\",[32,1,[\\\"ipfsHash\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"\\\\n Inspect IPFS data\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,4],[[32,0,[\\\"kredits\\\",\\\"currentUserIsCore\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[32,1,[\\\"vetoed\\\"]]],[24,0,\\\"button small danger\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,0,[\\\"veto\\\"]],[32,1,[\\\"id\\\"]]],null]],null],[12],[2,\\\"veto\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"fn\\\",\\\"on\\\",\\\"item-status\\\",\\\"sats-to-btc\\\",\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/reimbursement-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/topbar-account-panel/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"fiv0QGp6\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"section\\\"],[14,1,\\\"user-account\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"setupInProgress\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" Connecting account...\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[30,[36,2],[[32,0,[\\\"walletConnected\\\"]],[32,0,[\\\"kredits\\\",\\\"currentUser\\\"]]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[1,[32,0,[\\\"kredits\\\",\\\"currentUser\\\",\\\"name\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"span\\\"],[14,0,\\\"anonymous\\\"],[12],[2,\\\"Anonymous\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"signup\\\"],null]],[14,1,\\\"signup\\\"],[14,0,\\\"small\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"Sign up\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,1],[[32,0,[\\\"walletDisconnected\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"connectWallet\\\"],null]],[14,1,\\\"connect\\\"],[14,0,\\\"small green\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"Connect wallet\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"if\\\",\\\"and\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/topbar-account-panel/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var SIZES = {\n 'small': '128',\n // pixels\n 'medium': '256',\n 'large': '512'\n };\n\n var _default = Ember.Component.extend({\n contributor: null,\n tagName: 'img',\n classNames: ['avatar'],\n classNameBindings: ['size'],\n attributeBindings: ['src', 'title'],\n size: 'small',\n src: Ember.computed.alias('avatarURL'),\n title: Ember.computed.alias('contributor.name'),\n avatarURL: Ember.computed('contributor.github_uid', 'size', function () {\n var github_uid = this.contributor.github_uid;\n\n if (github_uid) {\n return \"https://avatars2.githubusercontent.com/u/\".concat(github_uid, \"?v=3&s=\").concat(SIZES[this.size]);\n } else {\n // TODO use custom avatar\n return '';\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/components/user-avatar/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"PL5L75/g\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/components/user-avatar/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n queryParams: ['contributorId', 'kind', 'amount'],\n contributors: Ember.computed.alias('kredits.contributors'),\n minedContributors: Ember.computed.filterBy('contributors', 'id'),\n contributorsSorting: Object.freeze(['name:asc']),\n sortedContributors: Ember.computed.sort('minedContributors', 'contributorsSorting'),\n actions: {\n save: function save(contribution) {\n var _this = this;\n\n var contributor = this.contributors.findBy('id', contribution.contributorId);\n contribution.contributorIpfsHash = contributor.ipfsHash;\n return this.kredits.addContribution(contribution).then(function (contribution) {\n _this.transitionToRoute('index');\n\n return contribution;\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributions/resubmit\", [\"exports\", \"kredits-web/controllers/contributions/new\"], function (_exports, _new) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _new.default.extend({\n attributes: null\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(attributes) {\n return this.kredits.updateContributor(this.model.id, attributes);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n actions: {\n save: function save(contributor) {\n return this.kredits.addContributor(contributor);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n kredits: Ember.inject.service(),\n showDetailsPane: false,\n selectedContributorId: null,\n selectedContributionId: null,\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n contributions: Ember.computed.alias('kredits.contributions'),\n contributionsConfirmed: Ember.computed.alias('kredits.contributionsConfirmed'),\n contributionsUnconfirmed: Ember.computed.alias('kredits.contributionsUnconfirmed'),\n contributionsSorting: Object.freeze(['date:desc', 'time:desc', 'id:desc']),\n contributionsUnconfirmedSorted: Ember.computed.sort('contributionsUnconfirmed', 'contributionsSorting'),\n contributionsConfirmedSorted: Ember.computed.sort('contributionsConfirmed', 'contributionsSorting'),\n kreditsByContributor: Ember.computed.alias('kredits.kreditsByContributor'),\n kreditsToplistSorting: Ember.computed('showUnconfirmedKredits', function () {\n return this.showUnconfirmedKredits ? ['amountTotal:desc'] : ['amountConfirmed:desc'];\n }),\n kreditsToplist: Ember.computed.sort('kreditsByContributor', 'kreditsToplistSorting'),\n showUnconfirmedKredits: true,\n hideUnconfirmedKredits: Ember.computed.not('showUnconfirmedKredits'),\n showQuickFilterUnconfirmed: false,\n showQuickFilterConfirmed: false,\n showFullContributionSync: Ember.computed.gt('kredits.missingHistoricContributionsCount', 0),\n showIntroText: Ember.computed('kredits.{hasAccounts,currentUser}', function () {\n return !this.kredits.hasAccounts || !this.kredits.currentUser;\n }),\n actions: {\n vetoContribution: function vetoContribution(contributionId) {\n this.kredits.veto(contributionId).then(function (transaction) {\n console.debug('[controllers:index] Veto submitted to chain: ' + transaction.hash);\n });\n },\n toggleQuickFilterUnconfirmed: function toggleQuickFilterUnconfirmed() {\n this.toggleProperty('showQuickFilterUnconfirmed');\n },\n toggleQuickFilterConfirmed: function toggleQuickFilterConfirmed() {\n this.toggleProperty('showQuickFilterConfirmed');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard/contributions/show\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n ipfsGatewayUrl: Ember.computed(function () {\n return _environment.default.ipfs.gatewayUrl;\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/controllers/dashboard/contributors/show\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n roleName: Ember.computed('model.isCore', 'totalKreditsEarned', function () {\n if (this.model.isCore) return 'Core Contributor';\n if (this.model.totalKreditsEarned <= 5000) return 'Newcomer';\n return 'Contributor';\n }),\n ipfsGatewayUrl: Ember.computed(function () {\n return _environment.default.ipfs.gatewayUrl;\n })\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/and\", [\"exports\", \"ember-truth-helpers/helpers/and\"], function (_exports, _and) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"and\", {\n enumerable: true,\n get: function get() {\n return _and.and;\n }\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _and.default;\n }\n });\n});","define(\"kredits-web/helpers/app-version\", [\"exports\", \"kredits-web/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _environment, _regexp) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.appVersion = appVersion;\n _exports.default = void 0;\n\n function appVersion(_) {\n var hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var version = _environment.default.APP.version; // e.g. 1.0.0-alpha.1+4jds75hf\n // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n\n var versionOnly = hash.versionOnly || hash.hideSha;\n var shaOnly = hash.shaOnly || hash.hideVersion;\n var match = null;\n\n if (versionOnly) {\n if (hash.showExtended) {\n match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n } // Fallback to just version\n\n\n if (!match) {\n match = version.match(_regexp.versionRegExp); // 1.0.0\n }\n }\n\n if (shaOnly) {\n match = version.match(_regexp.shaRegExp); // 4jds75hf\n }\n\n return match ? match[0] : version;\n }\n\n var _default = Ember.Helper.helper(appVersion);\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/await\", [\"exports\", \"ember-promise-helpers/helpers/await\"], function (_exports, _await) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _await.default;\n }\n });\n});","define(\"kredits-web/helpers/cancel-all\", [\"exports\", \"ember-concurrency/helpers/cancel-all\"], function (_exports, _cancelAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _cancelAll.default;\n }\n });\n});","define(\"kredits-web/helpers/capitalize-string\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n string = _ref2[0];\n\n return string.charAt(0).toUpperCase() + string.slice(1);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/equal\"], function (_exports, _equal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _equal.default;\n }\n });\n Object.defineProperty(_exports, \"equal\", {\n enumerable: true,\n get: function get() {\n return _equal.equal;\n }\n });\n});","define(\"kredits-web/helpers/fmt-crypto-currency\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function fmtCryptoCurrency(params\n /*, hash*/\n ) {\n var fmtAmount;\n var amount = params[0];\n var code = params[1];\n\n switch (code) {\n case 'RBTC':\n fmtAmount = amount / 1000000000000000000;\n break;\n\n case 'BTC':\n fmtAmount = amount / 100000000;\n break;\n }\n\n return fmtAmount;\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/fmt-date-localized\", [\"exports\", \"kredits-web/utils/get-locale\"], function (_exports, _getLocale) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function (dateStr) {\n var date = new Date(dateStr);\n var locale = (0, _getLocale.default)();\n return new Intl.DateTimeFormat(locale).format(date);\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/fmt-fiat-currency\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function fmtFiatCurrency(params) {\n var lang = navigator.language || navigator.userLanguage;\n var formatter = new Intl.NumberFormat(lang, {\n style: 'currency',\n currency: params[1] || 'EUR',\n currencyDisplay: 'code'\n });\n return formatter.format(params[0]);\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/gt\", [\"exports\", \"ember-truth-helpers/helpers/gt\"], function (_exports, _gt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gt.default;\n }\n });\n Object.defineProperty(_exports, \"gt\", {\n enumerable: true,\n get: function get() {\n return _gt.gt;\n }\n });\n});","define(\"kredits-web/helpers/gte\", [\"exports\", \"ember-truth-helpers/helpers/gte\"], function (_exports, _gte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _gte.default;\n }\n });\n Object.defineProperty(_exports, \"gte\", {\n enumerable: true,\n get: function get() {\n return _gte.gte;\n }\n });\n});","define(\"kredits-web/helpers/is-after\", [\"exports\", \"ember-moment/helpers/is-after\"], function (_exports, _isAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-array\", [\"exports\", \"ember-truth-helpers/helpers/is-array\"], function (_exports, _isArray) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isArray.default;\n }\n });\n Object.defineProperty(_exports, \"isArray\", {\n enumerable: true,\n get: function get() {\n return _isArray.isArray;\n }\n });\n});","define(\"kredits-web/helpers/is-before\", [\"exports\", \"ember-moment/helpers/is-before\"], function (_exports, _isBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-between\", [\"exports\", \"ember-moment/helpers/is-between\"], function (_exports, _isBetween) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isBetween.default;\n }\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/router\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n var Router = /*#__PURE__*/function (_Ember$Router) {\n _inherits(Router, _Ember$Router);\n\n var _super = _createSuper(Router);\n\n function Router() {\n var _this;\n\n _classCallCheck(this, Router);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"location\", _environment.default.locationType);\n\n _defineProperty(_assertThisInitialized(_this), \"rootURL\", _environment.default.rootURL);\n\n return _this;\n }\n\n return _createClass(Router);\n }(Ember.Router);\n\n _exports.default = Router;\n Router.map(function () {\n this.route('dashboard', function () {\n this.route('contributors', function () {\n this.route('show', {\n path: ':id'\n });\n });\n this.route('contributions', function () {\n this.route('show', {\n path: ':id'\n });\n });\n });\n this.route('contributions', function () {\n this.route('new', {\n queryParams: ['contributorId', 'kind', 'amount']\n });\n this.route('resubmit', {\n path: ':id/resubmit'\n });\n });\n this.route('contributors', function () {\n this.route('new');\n this.route('edit', {\n path: ':id/edit'\n });\n });\n this.route('signup', function () {\n this.route('github');\n this.route('account');\n this.route('complete');\n });\n this.route('budget', function () {\n this.route('expenses');\n this.route('reimbursements', function () {});\n });\n this.route('reimbursements', function () {\n this.route('new');\n });\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var ApplicationRoute = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(ApplicationRoute, _Ember$Route);\n\n var _super = _createSuper(ApplicationRoute);\n\n function ApplicationRoute() {\n var _this;\n\n _classCallCheck(this, ApplicationRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"communityFunds\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ApplicationRoute, [{\n key: \"beforeModel\",\n value: function\n /* transition */\n beforeModel() {\n var _this2 = this;\n\n return this.kredits.setup().then(function () {\n _this2.kredits.kredits.preflightChecks().catch(function (error) {\n console.error('Kredits preflight check failed!');\n console.error(error);\n });\n }).catch(function (error) {\n console.log('Error initializing Kredits', error);\n });\n }\n }, {\n key: \"model\",\n value: function model() {\n var _this3 = this;\n\n return this.kredits.loadInitialData().then(function () {\n _this3.kredits.addContractEventHandlers();\n });\n }\n }, {\n key: \"afterModel\",\n value: function afterModel() {\n if (this.kredits.contributorsNeedSync) {\n Ember.run.schedule('afterRender', this.kredits.syncContributors, this.kredits.syncContributors.perform);\n }\n\n Ember.run.schedule('afterRender', this.communityFunds.fetchBalances, this.communityFunds.fetchBalances.perform);\n }\n }]);\n\n return ApplicationRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"communityFunds\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = ApplicationRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/budget\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var BudgetRoute = (_dec = Ember.inject.service, _dec2 = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(BudgetRoute, _Ember$Route);\n\n var _super = _createSuper(BudgetRoute);\n\n function BudgetRoute() {\n var _this;\n\n _classCallCheck(this, BudgetRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"browserCache\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(BudgetRoute, [{\n key: \"model\",\n value: function () {\n var _model = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var numCachedReimbursements;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(Ember.isPresent(this.kredits.reimbursements) && Ember.isEmpty(this.kredits.reimbursementsPending))) {\n _context.next = 5;\n break;\n }\n\n console.debug('[route:budget] Reimbursements loaded before, no need to sync or load');\n return _context.abrupt(\"return\");\n\n case 5:\n _context.next = 7;\n return this.browserCache.reimbursements.length();\n\n case 7:\n numCachedReimbursements = _context.sent;\n\n if (!(numCachedReimbursements > 0)) {\n _context.next = 14;\n break;\n }\n\n _context.next = 11;\n return this.kredits.loadObjectsFromCache('Reimbursement');\n\n case 11:\n this.kredits.set('reimbursementsNeedSync', true);\n _context.next = 16;\n break;\n\n case 14:\n _context.next = 16;\n return this.kredits.fetchObjects('Reimbursement', {\n page: {\n size: 10\n }\n });\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function model() {\n return _model.apply(this, arguments);\n }\n\n return model;\n }()\n }, {\n key: \"afterModel\",\n value: function afterModel() {\n if (this.kredits.reimbursementsNeedSync) {\n Ember.run.schedule('afterRender', this.kredits.syncReimbursements, this.kredits.syncReimbursements.perform);\n }\n\n Ember.run.schedule('afterRender', this.kredits.fetchMissingReimbursements, this.kredits.fetchMissingReimbursements.perform);\n }\n }]);\n\n return BudgetRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"browserCache\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = BudgetRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/budget/expenses\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var BudgetExpensesRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(BudgetExpensesRoute, _Ember$Route);\n\n var _super = _createSuper(BudgetExpensesRoute);\n\n function BudgetExpensesRoute() {\n _classCallCheck(this, BudgetExpensesRoute);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(BudgetExpensesRoute);\n }(Ember.Route);\n\n _exports.default = BudgetExpensesRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var ContributionsNewRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(ContributionsNewRoute, _Ember$Route);\n\n var _super = _createSuper(ContributionsNewRoute);\n\n function ContributionsNewRoute() {\n _classCallCheck(this, ContributionsNewRoute);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ContributionsNewRoute, [{\n key: \"model\",\n value: function model(params) {\n return {\n params: params\n };\n }\n }]);\n\n return ContributionsNewRoute;\n }(Ember.Route);\n\n _exports.default = ContributionsNewRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var DashboardRoute = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(DashboardRoute, _Ember$Route);\n\n var _super = _createSuper(DashboardRoute);\n\n function DashboardRoute() {\n var _this;\n\n _classCallCheck(this, DashboardRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(DashboardRoute, [{\n key: \"afterModel\",\n value: function afterModel() {\n if (this.kredits.contributionsNeedSync) {\n Ember.run.schedule('afterRender', this.kredits.syncContributions, this.kredits.syncContributions.perform);\n } // TODO fetch automatically under a certain threshold\n // The browser might delete cached data and we don't need manual re-syncs\n // depending on how little is missing\n // schedule('afterRender', this.kredits.fetchMissingContributions,\n // this.kredits.fetchMissingContributions.perform);\n\n }\n }]);\n\n return DashboardRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = DashboardRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/reimbursements/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var ReimbursementsNewRoute = /*#__PURE__*/function (_Ember$Route) {\n _inherits(ReimbursementsNewRoute, _Ember$Route);\n\n var _super = _createSuper(ReimbursementsNewRoute);\n\n function ReimbursementsNewRoute() {\n _classCallCheck(this, ReimbursementsNewRoute);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(ReimbursementsNewRoute, [{\n key: \"model\",\n value: function model(params) {\n return {\n params: params\n };\n }\n }]);\n\n return ReimbursementsNewRoute;\n }(Ember.Route);\n\n _exports.default = ReimbursementsNewRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/routes/signup/account\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var SignupAccountRoute = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(SignupAccountRoute, _Ember$Route);\n\n var _super = _createSuper(SignupAccountRoute);\n\n function SignupAccountRoute() {\n var _this;\n\n _classCallCheck(this, SignupAccountRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"kredits\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(SignupAccountRoute, [{\n key: \"setupController\",\n value: function () {\n var _setupController = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(controller) {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (window.ethereum) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 2:\n if (!this.kredits.hasAccounts) {\n _context.next = 6;\n break;\n }\n\n controller.accountAddress = this.kredits.currentUserAccounts.firstObject;\n _context.next = 7;\n break;\n\n case 6:\n return _context.abrupt(\"return\", this.kredits.connectWallet());\n\n case 7:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function setupController(_x) {\n return _setupController.apply(this, arguments);\n }\n\n return setupController;\n }()\n }, {\n key: \"redirect\",\n value: function redirect() {\n if (Ember.isEmpty(this.kredits.githubAccessToken)) {\n this.transitionTo('signup.index');\n }\n }\n }]);\n\n return SignupAccountRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"kredits\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = SignupAccountRoute;\n});","define(\"kredits-web/helpers/is-confirmed-contribution\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contribution = _ref2[0];\n\n return !contribution.vetoed && contribution.confirmedAt <= this.currentBlock;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-current-user\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentUser: Ember.computed.alias('kredits.currentUser'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n contributor = _ref2[0];\n\n return Ember.isPresent(contributor) && Ember.isPresent(this.currentUser) && contributor.account === this.currentUser.account;\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/is-empty\", [\"exports\", \"ember-truth-helpers/helpers/is-empty\"], function (_exports, _isEmpty) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isEmpty.default;\n }\n });\n});","define(\"kredits-web/helpers/is-equal\", [\"exports\", \"ember-truth-helpers/helpers/is-equal\"], function (_exports, _isEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isEqual.default;\n }\n });\n Object.defineProperty(_exports, \"isEqual\", {\n enumerable: true,\n get: function get() {\n return _isEqual.isEqual;\n }\n });\n});","define(\"kredits-web/helpers/is-fulfilled\", [\"exports\", \"ember-promise-helpers/helpers/is-fulfilled\"], function (_exports, _isFulfilled) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isFulfilled.default;\n }\n });\n});","define(\"kredits-web/helpers/is-pending\", [\"exports\", \"ember-promise-helpers/helpers/is-pending\"], function (_exports, _isPending) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isPending.default;\n }\n });\n});","define(\"kredits-web/helpers/is-rejected\", [\"exports\", \"ember-promise-helpers/helpers/is-rejected\"], function (_exports, _isRejected) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isRejected.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-after\", [\"exports\", \"ember-moment/helpers/is-same-or-after\"], function (_exports, _isSameOrAfter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrAfter.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same-or-before\", [\"exports\", \"ember-moment/helpers/is-same-or-before\"], function (_exports, _isSameOrBefore) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSameOrBefore.default;\n }\n });\n});","define(\"kredits-web/helpers/is-same\", [\"exports\", \"ember-moment/helpers/is-same\"], function (_exports, _isSame) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _isSame.default;\n }\n });\n});","define(\"kredits-web/helpers/item-status\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\n function _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\n function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n var _default = Ember.Helper.extend({\n kredits: Ember.inject.service(),\n currentBlock: Ember.computed.alias('kredits.currentBlock'),\n compute: function compute(_ref) {\n var _ref2 = _slicedToArray(_ref, 1),\n item = _ref2[0];\n\n this.setupRecompute(item);\n var status = [];\n\n if (item.vetoed) {\n status.push('vetoed');\n } else if (item.confirmedAt > this.currentBlock) {\n status.push('unconfirmed');\n } else {\n status.push('confirmed');\n }\n\n if (item.hasPendingChanges) {\n status.push('pending');\n }\n\n return status.join(' ');\n },\n destroy: function destroy() {\n if (this.teardown) this.teardown();\n\n this._super.apply(this, arguments);\n },\n setupRecompute: function setupRecompute(item) {\n var _this = this;\n\n if (this.teardown) this.teardown();\n item.addObserver('vetoed', this, this.triggerRecompute);\n item.addObserver('confirmedAt', this, this.triggerRecompute);\n item.addObserver('currentBlock', this, this.triggerRecompute);\n item.addObserver('hasPendingChanges', this, this.triggerRecompute);\n\n this.teardown = function () {\n item.removeObserver('vetoed', _this, _this.triggerRecompute);\n item.removeObserver('confirmedAt', _this, _this.triggerRecompute);\n item.removeObserver('currentBlock', _this, _this.triggerRecompute);\n item.removeObserver('hasPendingChanges', _this, _this.triggerRecompute);\n };\n },\n triggerRecompute: function triggerRecompute() {\n Ember.run.once(this, this.recompute);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/lt\", [\"exports\", \"ember-truth-helpers/helpers/lt\"], function (_exports, _lt) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lt.default;\n }\n });\n Object.defineProperty(_exports, \"lt\", {\n enumerable: true,\n get: function get() {\n return _lt.lt;\n }\n });\n});","define(\"kredits-web/helpers/lte\", [\"exports\", \"ember-truth-helpers/helpers/lte\"], function (_exports, _lte) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _lte.default;\n }\n });\n Object.defineProperty(_exports, \"lte\", {\n enumerable: true,\n get: function get() {\n return _lte.lte;\n }\n });\n});","define(\"kredits-web/helpers/moment-add\", [\"exports\", \"ember-moment/helpers/moment-add\"], function (_exports, _momentAdd) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentAdd.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-calendar\", [\"exports\", \"ember-moment/helpers/moment-calendar\"], function (_exports, _momentCalendar) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentCalendar.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-diff\", [\"exports\", \"ember-moment/helpers/moment-diff\"], function (_exports, _momentDiff) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDiff.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-duration\", [\"exports\", \"ember-moment/helpers/moment-duration\"], function (_exports, _momentDuration) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentDuration.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-format\", [\"exports\", \"ember-moment/helpers/moment-format\"], function (_exports, _momentFormat) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFormat.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from-now\", [\"exports\", \"ember-moment/helpers/moment-from-now\"], function (_exports, _momentFromNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFromNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-from\", [\"exports\", \"ember-moment/helpers/moment-from\"], function (_exports, _momentFrom) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentFrom.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-subtract\", [\"exports\", \"ember-moment/helpers/moment-subtract\"], function (_exports, _momentSubtract) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentSubtract.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-date\", [\"exports\", \"ember-moment/helpers/moment-to-date\"], function (_exports, _momentToDate) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToDate.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to-now\", [\"exports\", \"ember-moment/helpers/moment-to-now\"], function (_exports, _momentToNow) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentToNow.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-to\", [\"exports\", \"ember-moment/helpers/moment-to\"], function (_exports, _momentTo) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _momentTo.default;\n }\n });\n});","define(\"kredits-web/helpers/moment-unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/moment\", [\"exports\", \"ember-moment/helpers/moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _moment.default;\n }\n });\n});","define(\"kredits-web/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _notEqual.default;\n }\n });\n Object.defineProperty(_exports, \"notEqualHelper\", {\n enumerable: true,\n get: function get() {\n return _notEqual.notEqualHelper;\n }\n });\n});","define(\"kredits-web/helpers/not\", [\"exports\", \"ember-truth-helpers/helpers/not\"], function (_exports, _not) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _not.default;\n }\n });\n Object.defineProperty(_exports, \"not\", {\n enumerable: true,\n get: function get() {\n return _not.not;\n }\n });\n});","define(\"kredits-web/helpers/now\", [\"exports\", \"ember-moment/helpers/now\"], function (_exports, _now) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _now.default;\n }\n });\n});","define(\"kredits-web/helpers/or\", [\"exports\", \"ember-truth-helpers/helpers/or\"], function (_exports, _or) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _or.default;\n }\n });\n Object.defineProperty(_exports, \"or\", {\n enumerable: true,\n get: function get() {\n return _or.or;\n }\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/services/browser-cache\", [\"exports\", \"localforage\", \"kredits-web/config/environment\"], function (_exports, localforage, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function createStore(name) {\n var networkName;\n\n if (_environment.default.web3NetworkName) {\n networkName = _environment.default.web3NetworkName.toLocaleLowerCase().replace(' ', '-');\n } else {\n networkName = 'custom';\n }\n\n return localforage.createInstance({\n name: \"kredits:\".concat(networkName, \":\").concat(name)\n });\n }\n\n var BrowserCacheService = /*#__PURE__*/function (_Ember$Service) {\n _inherits(BrowserCacheService, _Ember$Service);\n\n var _super = _createSuper(BrowserCacheService);\n\n function BrowserCacheService() {\n var _this;\n\n _classCallCheck(this, BrowserCacheService);\n\n _this = _super.apply(this, arguments);\n _this.stores = {\n contributors: createStore('contributors'),\n contributions: createStore('contributions'),\n reimbursements: createStore('reimbursements')\n };\n return _this;\n }\n\n _createClass(BrowserCacheService, [{\n key: \"contributors\",\n get: function get() {\n return this.stores.contributors;\n }\n }, {\n key: \"contributions\",\n get: function get() {\n return this.stores.contributions;\n }\n }, {\n key: \"reimbursements\",\n get: function get() {\n return this.stores.reimbursements;\n }\n }]);\n\n return BrowserCacheService;\n }(Ember.Service);\n\n _exports.default = BrowserCacheService;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/services/community-funds\", [\"exports\", \"ember-concurrency-decorators\", \"kredits-web/config/environment\"], function (_exports, _emberConcurrencyDecorators, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _class, _descriptor, _descriptor2, _descriptor3;\n\n function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\n function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var CommunityFundsService = (_dec = Ember.inject.service, _dec2 = Ember._tracked, _dec3 = Ember._tracked, (_class = /*#__PURE__*/function (_Ember$Service) {\n _inherits(CommunityFundsService, _Ember$Service);\n\n var _super = _createSuper(CommunityFundsService);\n\n function CommunityFundsService() {\n var _this;\n\n _classCallCheck(this, CommunityFundsService);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"exchangeRates\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"balancesLoaded\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"balances\", _descriptor3, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(CommunityFundsService, [{\n key: \"fetchBalances\",\n value: /*#__PURE__*/regeneratorRuntime.mark(function fetchBalances() {\n var _this2 = this;\n\n return regeneratorRuntime.wrap(function fetchBalances$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return fetch(_environment.default.btcBalanceAPI).then(function (res) {\n return res.json();\n }).then(function (res) {\n return _this2.processBalances(res);\n }).catch(function (err) {\n console.log(\"[community-funds] Fetching balances failed:\");\n console.error(err);\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, fetchBalances);\n })\n }, {\n key: \"processBalances\",\n value: function () {\n var _processBalances = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(res) {\n var lang, balanceUSD;\n return regeneratorRuntime.wrap(function _callee$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return this.exchangeRates.fetchRates();\n\n case 2:\n // Format and round the approximate USD value\n lang = navigator.language || navigator.userLanguage;\n balanceUSD = res.confirmed_balance * this.exchangeRates.btcusd;\n res.balanceUSD = Math.round(balanceUSD).toLocaleString(lang);\n this.balances.pushObject(_objectSpread(_objectSpread({}, res), {\n token: {\n name: 'BTC',\n symbol: 'BTC'\n }\n }));\n this.balancesLoaded = true;\n\n case 7:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee, this);\n }));\n\n function processBalances(_x) {\n return _processBalances.apply(this, arguments);\n }\n\n return processBalances;\n }()\n }]);\n\n return CommunityFundsService;\n }(Ember.Service), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"exchangeRates\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"balancesLoaded\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return false;\n }\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"balances\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return Ember.A([]);\n }\n }), _applyDecoratedDescriptor(_class.prototype, \"fetchBalances\", [_emberConcurrencyDecorators.task], Object.getOwnPropertyDescriptor(_class.prototype, \"fetchBalances\"), _class.prototype)), _class));\n _exports.default = CommunityFundsService;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\n\ndefine(\"kredits-web/services/exchange-rates\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n // Need to go through proxy for CORS headers\n var bitstampBaseUrl = \"\".concat(_environment.default.corsProxy, \"https://www.bitstamp.net/api/v2\");\n\n function fetchFromBitstamp(_x) {\n return _fetchFromBitstamp.apply(this, arguments);\n }\n\n function _fetchFromBitstamp() {\n _fetchFromBitstamp = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(currencyPair) {\n var res;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return fetch(\"\".concat(bitstampBaseUrl, \"/ticker/\").concat(currencyPair, \"/\")).then(function (r) {\n return r.json();\n });\n\n case 3:\n res = _context.sent;\n return _context.abrupt(\"return\", parseFloat(res.vwap));\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n console.error('Could not fetch exchange rate from Bitstamp:', _context.t0);\n return _context.abrupt(\"return\", 0);\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 7]]);\n }));\n return _fetchFromBitstamp.apply(this, arguments);\n }\n\n var ExchangeRatesService = (_dec = Ember._tracked, _dec2 = Ember._tracked, (_class = /*#__PURE__*/function (_Ember$Service) {\n _inherits(ExchangeRatesService, _Ember$Service);\n\n var _super = _createSuper(ExchangeRatesService);\n\n function ExchangeRatesService() {\n var _this;\n\n _classCallCheck(this, ExchangeRatesService);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"btceur\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"btcusd\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(ExchangeRatesService, [{\n key: \"fetchRates\",\n value: function () {\n var _fetchRates = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var source,\n _args2 = arguments;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n source = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : 'bitstamp';\n _context2.t0 = source;\n _context2.next = _context2.t0 === 'bitstamp' ? 4 : 10;\n break;\n\n case 4:\n _context2.next = 6;\n return fetchFromBitstamp('btceur');\n\n case 6:\n this.btceur = _context2.sent;\n _context2.next = 9;\n return fetchFromBitstamp('btcusd');\n\n case 9:\n this.btcusd = _context2.sent;\n\n case 10:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function fetchRates() {\n return _fetchRates.apply(this, arguments);\n }\n\n return fetchRates;\n }()\n }]);\n\n return ExchangeRatesService;\n }(Ember.Service), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"btceur\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"btcusd\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: function initializer() {\n return 0;\n }\n })), _class));\n _exports.default = ExchangeRatesService;\n});","define(\"kredits-web/helpers/perform\", [\"exports\", \"ember-concurrency/helpers/perform\"], function (_exports, _perform) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _perform.default;\n }\n });\n});","define(\"kredits-web/helpers/promise-all\", [\"exports\", \"ember-promise-helpers/helpers/promise-all\"], function (_exports, _promiseAll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseAll.default;\n }\n });\n});","define(\"kredits-web/helpers/promise-hash\", [\"exports\", \"ember-promise-helpers/helpers/promise-hash\"], function (_exports, _promiseHash) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseHash.default;\n }\n });\n});","define(\"kredits-web/helpers/promise-rejected-reason\", [\"exports\", \"ember-promise-helpers/helpers/promise-rejected-reason\"], function (_exports, _promiseRejectedReason) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _promiseRejectedReason.default;\n }\n });\n});","define(\"kredits-web/helpers/sats-to-btc\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Helper.helper(function satsToBtc(amount\n /*, hash*/\n ) {\n return amount / 100000000;\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/helpers/task\", [\"exports\", \"ember-concurrency/helpers/task\"], function (_exports, _task) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _task.default;\n }\n });\n});","define(\"kredits-web/helpers/unix\", [\"exports\", \"ember-moment/helpers/unix\"], function (_exports, _unix) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _unix.default;\n }\n });\n});","define(\"kredits-web/helpers/utc\", [\"exports\", \"ember-moment/helpers/utc\"], function (_exports, _utc) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _utc.default;\n }\n });\n Object.defineProperty(_exports, \"utc\", {\n enumerable: true,\n get: function get() {\n return _utc.utc;\n }\n });\n});","define(\"kredits-web/helpers/xor\", [\"exports\", \"ember-truth-helpers/helpers/xor\"], function (_exports, _xor) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _xor.default;\n }\n });\n Object.defineProperty(_exports, \"xor\", {\n enumerable: true,\n get: function get() {\n return _xor.xor;\n }\n });\n});","define(\"kredits-web/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"kredits-web/config/environment\"], function (_exports, _initializerFactory, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var name, version;\n\n if (_environment.default.APP) {\n name = _environment.default.APP.name;\n version = _environment.default.APP.version;\n }\n\n var _default = {\n name: 'App Version',\n initialize: (0, _initializerFactory.default)(name, version)\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _default = {\n name: 'container-debug-adapter',\n initialize: function initialize() {\n var app = arguments[1] || arguments[0];\n app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n }\n };\n _exports.default = _default;\n});","define(\"kredits-web/initializers/ember-concurrency\", [\"exports\", \"ember-concurrency/initializers/ember-concurrency\"], function (_exports, _emberConcurrency) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _emberConcurrency.default;\n }\n });\n});","define(\"kredits-web/initializers/export-application-global\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.initialize = initialize;\n\n function initialize() {\n var application = arguments[1] || arguments[0];\n\n if (_environment.default.exportApplicationGlobal !== false) {\n var theGlobal;\n\n if (typeof window !== 'undefined') {\n theGlobal = window;\n } else if (typeof global !== 'undefined') {\n theGlobal = global;\n } else if (typeof self !== 'undefined') {\n theGlobal = self;\n } else {\n // no reasonable global, just bail\n return;\n }\n\n var value = _environment.default.exportApplicationGlobal;\n var globalName;\n\n if (typeof value === 'string') {\n globalName = value;\n } else {\n globalName = Ember.String.classify(_environment.default.modulePrefix);\n }\n\n if (!theGlobal[globalName]) {\n theGlobal[globalName] = application;\n application.reopen({\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n\n delete theGlobal[globalName];\n }\n });\n }\n }\n }\n\n var _default = {\n name: 'export-application-global',\n initialize: initialize\n };\n _exports.default = _default;\n});","define(\"kredits-web/models/contribution\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n contributorId: null,\n amount: null,\n confirmedAt: null,\n vetoed: null,\n ipfsHash: null,\n // contributor model instance\n contributor: null,\n // TODO contributor who submitted the contribution\n // submittedBy: null,\n // IPFS\n kind: null,\n description: null,\n details: null,\n url: null,\n date: null,\n time: null,\n pendingTx: null,\n init: function init() {\n this._super.apply(this, arguments);\n\n if (Ember.isEmpty(this.details)) this.set('details', {});\n },\n iso8601Date: Ember.computed('date', 'time', function () {\n return this.time ? \"\".concat(this.date, \"T\").concat(this.time) : this.date;\n }),\n jsDate: Ember.computed('iso8601Date', function () {\n return (0, _moment.default)(this.iso8601Date).toDate();\n }),\n hasPendingChanges: Ember.computed('pendingTx', function () {\n return Ember.isPresent(this.pendingTx);\n }),\n serialize: function serialize() {\n return JSON.stringify(this);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/contributor\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n account: null,\n balance: 0,\n totalKreditsEarned: 0,\n contributionsCount: 0,\n isCore: false,\n ipfsHash: null,\n // IPFS\n kind: null,\n name: null,\n url: null,\n github_username: null,\n github_uid: null,\n wiki_username: null,\n zoom_display_name: null,\n serialize: function serialize() {\n return JSON.stringify(this);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/models/reimbursement\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Object.extend({\n // Contract\n id: null,\n recipientId: null,\n token: null,\n amount: null,\n confirmedAt: null,\n vetoed: null,\n ipfsHash: null,\n // contributor model instance\n recipient: null,\n // TODO contributor who submitted the reimbursement\n // recordedBy: null,\n // IPFS\n expenses: null,\n // Array of expense objects\n pendingTx: null,\n iso8601Date: Ember.computed('date', 'time', function () {\n return this.time ? \"\".concat(this.date, \"T\").concat(this.time) : this.date;\n }),\n jsDate: Ember.computed('iso8601Date', function () {\n return (0, _moment.default)(this.iso8601Date).toDate();\n }),\n hasPendingChanges: Ember.computed('pendingTx', function () {\n return Ember.isPresent(this.pendingTx);\n }),\n pendingStatus: Ember.computed('pendingTx', function () {\n return Ember.isPresent(this.pendingTx) ? 'isPending' : 'notPending';\n }),\n serialize: function serialize() {\n return JSON.stringify(this);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/contributions/resubmit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n model: function model(params) {\n return this.kredits.contributions.findBy('id', parseInt(params.id));\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n controller.set('attributes', model.getProperties(['contributorId', 'kind', 'amount', 'description', 'url', 'details']));\n controller.set('attributes.date', model.jsDate);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n return this.kredits.contributors.findBy('id', params.id);\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n controller.set('attributes', {\n account: model.account,\n name: model.name,\n kind: model.kind,\n url: model.url,\n github_username: model.github_username,\n github_uid: model.github_uid,\n gitea_username: model.gitea_username,\n wiki_username: model.wiki_username,\n zoom_display_name: model.zoom_display_name\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributions: Ember.computed.alias('kredits.contributions'),\n model: function model(params) {\n return this.contributions.findBy('id', parseInt(params.id));\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributionId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributionId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n contributors: Ember.computed.alias('kredits.contributors'),\n model: function model(params) {\n var contributor = this.contributors.findBy('id', params.id);\n\n if (contributor) {\n return contributor;\n } else {\n return this.kredits.fetchContributor(params.id);\n }\n },\n setupController: function setupController(controller, model) {\n this._super(controller, model);\n\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: true,\n selectedContributorId: model.id\n });\n },\n deactivate: function deactivate() {\n this.controllerFor('dashboard').setProperties({\n showDetailsPane: false,\n selectedContributorId: null\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n redirect: function redirect() {\n this.transitionTo('dashboard');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/complete\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"kredits-web/routes/signup/github\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n kredits: Ember.inject.service(),\n redirect: function redirect() {\n this._super.apply(this, arguments);\n\n var accessToken;\n\n try {\n accessToken = window.location.hash.match(/access_token=(.+)/)[1];\n } catch (error) {\n /* ignore */\n }\n\n if (Ember.isEmpty(accessToken) || accessToken === 'undefined') {\n console.error('No GitHub access token found.');\n this.transitionTo('signup');\n return;\n }\n\n this.kredits.set('githubAccessToken', accessToken);\n this.transitionTo('signup.account');\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/kredits\", [\"exports\", \"ethers\", \"@kredits/contracts\", \"ember-concurrency\", \"kredits-web/utils/group-by\", \"kredits-web/utils/process-contributor-data\", \"kredits-web/utils/process-contribution-data\", \"kredits-web/utils/process-reimbursement-data\", \"kredits-web/utils/format-kredits\", \"kredits-web/utils/switch-network\", \"kredits-web/config/environment\", \"kredits-web/models/contributor\", \"kredits-web/models/contribution\", \"kredits-web/models/reimbursement\"], function (_exports, _ethers, _contracts, _emberConcurrency, _groupBy, _processContributorData, _processContributionData, _processReimbursementData, _formatKredits, _switchNetwork, _environment, _contributor, _contribution, _reimbursement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\n function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\n function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n // Lets us access the model classes dynamically\n var models = {\n Contributor: _contributor.default,\n Contribution: _contribution.default,\n Reimbursement: _reimbursement.default\n };\n\n var _default = Ember.Service.extend({\n browserCache: Ember.inject.service(),\n currentBlock: null,\n currentUserAccounts: null,\n // default to not having an account. this is the wen web3 is loaded.\n currentUser: null,\n contributors: null,\n contributions: null,\n reimbursements: null,\n githubAccessToken: null,\n currentUserIsContributor: Ember.computed.notEmpty('currentUser'),\n currentUserIsCore: Ember.computed.alias('currentUser.isCore'),\n hasAccounts: Ember.computed.notEmpty('currentUserAccounts'),\n contributorsMined: Ember.computed.filterBy('contributors', 'id'),\n contributorsSorting: Object.freeze(['name:asc']),\n contributorsSorted: Ember.computed.sort('contributorsMined', 'contributorsSorting'),\n // When data was loaded from cache, we need to fetch updates from the network\n contributorsNeedSync: false,\n contributionsNeedSync: false,\n reimbursementsNeedSync: false,\n missingHistoricContributionsCount: 0,\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('contributors', []);\n this.set('contributions', []);\n this.set('reimbursements', []);\n\n if (window.ethereum) {\n window.ethereum.on('chainChanged', this.handleUserChainChanged);\n window.ethereum.on('accountsChanged', this.handleAccountsChanged);\n }\n },\n handleUserChainChanged: function handleUserChainChanged(chainId) {\n console.log('User-provided chain ID changed to', chainId);\n window.location.reload();\n },\n handleAccountsChanged: function handleAccountsChanged(accounts) {\n console.log('User-provided accounts changed to', accounts);\n window.location.reload();\n },\n // This is called in the application route's beforeModel(). So it is\n // initialized before everything else, and we can rely on the ethProvider and\n // the potential currentUserAccounts to be available\n getEthProvider: function getEthProvider() {\n var _this = this;\n\n var ethProvider;\n return new Promise(function (resolve) {\n function instantiateWithoutWallet() {\n console.debug('[kredits] Creating new instance from npm module class');\n console.debug(\"[kredits] providerURL: \".concat(_environment.default.web3ProviderUrl));\n ethProvider = new _ethers.default.providers.JsonRpcProvider(_environment.default.web3ProviderUrl);\n resolve({\n ethProvider: ethProvider,\n ethSigner: null\n });\n }\n\n function instantiateWithWallet(_x, _x2) {\n return _instantiateWithWallet.apply(this, arguments);\n }\n\n function _instantiateWithWallet() {\n _instantiateWithWallet = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(web3Provider, context) {\n var network, accounts, chainId, ethSigner;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n console.debug('[kredits] Using user-provided Web3 instance, e.g. from Metamask');\n ethProvider = new _ethers.default.providers.Web3Provider(web3Provider);\n _context.next = 4;\n return ethProvider.getNetwork();\n\n case 4:\n network = _context.sent;\n _context.next = 7;\n return ethProvider.listAccounts();\n\n case 7:\n accounts = _context.sent;\n chainId = _environment.default.web3ChainId;\n\n if (!Ember.isEmpty(accounts)) {\n _context.next = 11;\n break;\n }\n\n return _context.abrupt(\"return\", instantiateWithoutWallet());\n\n case 11:\n if (!(network.chainId !== chainId)) {\n _context.next = 15;\n break;\n }\n\n return _context.abrupt(\"return\", (0, _switchNetwork.default)());\n\n case 15:\n context.set('currentUserAccounts', accounts);\n ethSigner = accounts.length === 0 ? null : ethProvider.getSigner();\n resolve({\n ethProvider: ethProvider,\n ethSigner: ethSigner\n });\n\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n return _instantiateWithWallet.apply(this, arguments);\n }\n\n if (window.ethereum) {\n instantiateWithWallet(window.ethereum, _this);\n } else {\n instantiateWithoutWallet();\n }\n });\n },\n connectWallet: function connectWallet() {\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var provider, network, chainId, chainIdHex;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n provider = new _ethers.default.providers.Web3Provider(window.ethereum);\n _context2.next = 3;\n return provider.getNetwork();\n\n case 3:\n network = _context2.sent;\n chainId = _environment.default.web3ChainId;\n chainIdHex = \"0x\".concat(Number(chainId).toString(16));\n _context2.prev = 6;\n _context2.next = 9;\n return window.ethereum.request({\n method: 'eth_requestAccounts'\n });\n\n case 9:\n if (!(network.chainId !== chainId)) {\n _context2.next = 12;\n break;\n }\n\n _context2.next = 12;\n return (0, _switchNetwork.default)(chainIdHex);\n\n case 12:\n _context2.next = 18;\n break;\n\n case 14:\n _context2.prev = 14;\n _context2.t0 = _context2[\"catch\"](6);\n console.log('Connecting wallet failed:', _context2.t0);\n return _context2.abrupt(\"return\", false);\n\n case 18:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[6, 14]]);\n }))();\n },\n setup: function setup() {\n var _this2 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var kredits;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return _this2.getEthProvider().then(function (providerAndSigner) {\n return new _contracts.default(providerAndSigner.ethProvider, providerAndSigner.ethSigner, {\n ipfsConfig: _environment.default.ipfs\n });\n });\n\n case 2:\n kredits = _context3.sent;\n _context3.next = 5;\n return kredits.init();\n\n case 5:\n _this2.set('kredits', kredits);\n\n _context3.t0 = _this2;\n _context3.next = 9;\n return _this2.kredits.provider.getBlockNumber();\n\n case 9:\n _context3.t1 = _context3.sent;\n\n _context3.t0.set.call(_context3.t0, 'currentBlock', _context3.t1);\n\n _this2.kredits.provider.on('block', function (blockNumber) {\n console.debug('[kredits] New block mined:', blockNumber);\n\n _this2.set('currentBlock', blockNumber);\n });\n\n if (_this2.currentUserAccounts && _this2.currentUserAccounts.length > 0) {\n _this2.getCurrentUser.then(function (contributorData) {\n _this2.set('currentUser', contributorData);\n });\n }\n\n return _context3.abrupt(\"return\", kredits);\n\n case 14:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n },\n getCurrentUser: Ember.computed('kredits.provider', 'currentUserAccounts.[]', function () {\n var _this3 = this;\n\n if (Ember.isEmpty(this.currentUserAccounts)) {\n return Promise.resolve();\n }\n\n return this.kredits.Contributor.functions.getContributorIdByAddress(this.currentUserAccounts.firstObject).then(function (id) {\n // check if the user is a contributor or not\n if (id === 0) {\n return Promise.resolve();\n } else {\n return _this3.kredits.Contributor.getById(id);\n }\n });\n }),\n totalSupply: Ember.computed(function () {\n return this.kredits.Token.functions.totalSupply().then(function (total) {\n return (0, _formatKredits.default)(total);\n });\n }),\n totalKreditsEarned: Ember.computed(function () {\n return this.kredits.Contribution.functions.totalKreditsEarned(true);\n }),\n kreditsByContributor: Ember.computed('contributionsUnconfirmed.@each.vetoed', 'contributors.[]', function () {\n var _this4 = this;\n\n var contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false);\n var contributionsGrouped = (0, _groupBy.default)(contributionsUnconfirmed, 'contributorId');\n var contributorsWithUnconfirmed = contributionsGrouped.map(function (c) {\n return c.value;\n });\n var contributorsWithOnlyConfirmed = this.contributors.reject(function (c) {\n return contributorsWithUnconfirmed.includes(c.id);\n });\n var kreditsByContributor = contributionsGrouped.map(function (c) {\n var amountUnconfirmed = c.items.mapBy('amount').reduce(function (a, b) {\n return a + b;\n });\n\n var contributor = _this4.contributors.findBy('id', c.value);\n\n return Ember.Object.create({\n contributor: contributor,\n amountUnconfirmed: amountUnconfirmed,\n amountConfirmed: contributor.totalKreditsEarned,\n amountTotal: contributor.totalKreditsEarned + amountUnconfirmed\n });\n });\n contributorsWithOnlyConfirmed.forEach(function (c) {\n kreditsByContributor.push(Ember.Object.create({\n contributor: c,\n amountUnconfirmed: 0,\n amountConfirmed: c.totalKreditsEarned,\n amountTotal: c.totalKreditsEarned\n }));\n });\n return kreditsByContributor;\n }),\n contributionsUnconfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this5 = this;\n\n return this.contributions.filter(function (c) {\n return c.confirmedAt > _this5.currentBlock;\n });\n }),\n contributionsConfirmed: Ember.computed('contributions.[]', 'currentBlock', function () {\n var _this6 = this;\n\n return this.contributions.filterBy('vetoed', false).filter(function (c) {\n return c.confirmedAt <= _this6.currentBlock;\n });\n }),\n reimbursementsUnconfirmed: Ember.computed('reimbursements.[]', 'currentBlock', function () {\n var _this7 = this;\n\n return this.reimbursements.filter(function (r) {\n return r.confirmedAt > _this7.currentBlock;\n });\n }),\n reimbursementsConfirmed: Ember.computed('reimbursements.[]', 'currentBlock', function () {\n var _this8 = this;\n\n return this.reimbursements.filterBy('vetoed', false).filter(function (r) {\n return r.confirmedAt <= _this8.currentBlock;\n });\n }),\n reimbursementsPending: Ember.computed('reimbursements.[]', 'pendingTx', function () {\n return this.reimbursements.filter(function (r) {\n return !r.id;\n });\n }),\n loadInitialData: function loadInitialData() {\n var _this9 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n var numCachedContributors, numCachedContributions;\n return regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _context4.next = 2;\n return _this9.browserCache.contributors.length();\n\n case 2:\n numCachedContributors = _context4.sent;\n\n if (!(numCachedContributors > 0)) {\n _context4.next = 9;\n break;\n }\n\n _context4.next = 6;\n return _this9.loadObjectsFromCache('Contributor');\n\n case 6:\n _this9.set('contributorsNeedSync', true);\n\n _context4.next = 11;\n break;\n\n case 9:\n _context4.next = 11;\n return _this9.fetchContributors();\n\n case 11:\n _context4.next = 13;\n return _this9.browserCache.contributions.length();\n\n case 13:\n numCachedContributions = _context4.sent;\n\n if (!(numCachedContributions > 0)) {\n _context4.next = 20;\n break;\n }\n\n _context4.next = 17;\n return _this9.loadObjectsFromCache('Contribution');\n\n case 17:\n _this9.set('contributionsNeedSync', true);\n\n _context4.next = 22;\n break;\n\n case 20:\n _context4.next = 22;\n return _this9.fetchContributions({\n page: {\n size: 40\n }\n });\n\n case 22:\n _context4.next = 24;\n return _this9.updateMissingHistoricContributionsCount();\n\n case 24:\n return _context4.abrupt(\"return\", Promise.resolve());\n\n case 25:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4);\n }))();\n },\n updateMissingHistoricContributionsCount: function updateMissingHistoricContributionsCount() {\n var _this10 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {\n var contributionsCount;\n return regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n _context5.next = 2;\n return _this10.kredits.Contribution.count;\n\n case 2:\n contributionsCount = _context5.sent;\n\n _this10.set('missingHistoricContributionsCount', contributionsCount - _this10.contributions.length);\n\n console.debug(\"Missing \".concat(_this10.missingHistoricContributionsCount, \" historic contributions (out of \").concat(contributionsCount, \" overall)\"));\n\n case 5:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5);\n }))();\n },\n addContributor: function addContributor(attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] add contributor', attributes);\n return this.kredits.Contributor.add(attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] add contributor response', data);\n });\n },\n updateContributor: function updateContributor(id, attributes) {\n if (attributes.github_uid) {\n var uidInt = parseInt(attributes.github_uid);\n attributes.github_uid = uidInt;\n }\n\n console.debug('[kredits] update contributor', attributes);\n return this.kredits.Contributor.updateProfile(id, attributes, {\n gasLimit: 350000\n }).then(function (data) {\n console.debug('[kredits] updateProfile response', data);\n });\n },\n fetchContributor: function fetchContributor(id) {\n var _this11 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {\n return regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n console.debug(\"[kredits] Fetching contributor from the network\");\n return _context6.abrupt(\"return\", _this11.kredits.Contributor.getById(id).then(function (data) {\n return _this11.loadContributorFromData(data);\n }));\n\n case 2:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }))();\n },\n fetchContributors: function fetchContributors() {\n var _this12 = this;\n\n console.debug(\"[kredits] Fetching all contributors from the network\");\n return this.kredits.Contributor.all().then(function (contributors) {\n return contributors.forEach(function (data) {\n _this12.loadContributorFromData(data);\n\n return;\n });\n }).then(function () {\n return _this12.cacheLoadedContributors();\n });\n },\n loadContributorFromData: function loadContributorFromData(data) {\n var contributor = _contributor.default.create((0, _processContributorData.default)(data));\n\n var loadedContributor = this.contributors.findBy('id', contributor.id);\n\n if (loadedContributor) {\n this.contributors.removeObject(loadedContributor);\n }\n\n this.contributors.pushObject(contributor);\n return contributor;\n },\n cacheLoadedContributors: function cacheLoadedContributors() {\n var _this13 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {\n var _iterator, _step, c;\n\n return regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n _iterator = _createForOfIteratorHelper(_this13.contributors);\n _context7.prev = 1;\n\n _iterator.s();\n\n case 3:\n if ((_step = _iterator.n()).done) {\n _context7.next = 9;\n break;\n }\n\n c = _step.value;\n _context7.next = 7;\n return _this13.browserCache.contributors.setItem(c.id.toString(), c.serialize());\n\n case 7:\n _context7.next = 3;\n break;\n\n case 9:\n _context7.next = 14;\n break;\n\n case 11:\n _context7.prev = 11;\n _context7.t0 = _context7[\"catch\"](1);\n\n _iterator.e(_context7.t0);\n\n case 14:\n _context7.prev = 14;\n\n _iterator.f();\n\n return _context7.finish(14);\n\n case 17:\n console.debug(\"[kredits] Cached \".concat(_this13.contributors.length, \" contributors in browser storage\"));\n return _context7.abrupt(\"return\", Promise.resolve());\n\n case 19:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7, null, [[1, 11, 14, 17]]);\n }))();\n },\n loadContributorsFromCache: function loadContributorsFromCache() {\n var _this14 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {\n return regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n return _context8.abrupt(\"return\", _this14.browserCache.contributors.iterate(function (value\n /*, key , iterationNumber */\n ) {\n _this14.contributors.pushObject(_contributor.default.create(JSON.parse(value)));\n }).then(function\n /* result */\n () {\n console.debug(\"[kredits] Loaded \".concat(_this14.contributors.length, \" contributors from cache\"));\n }));\n\n case 1:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8);\n }))();\n },\n syncContributors: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {\n return regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n _context9.next = 2;\n return this.fetchContributors();\n\n case 2:\n this.set('contributorsNeedSync', false);\n\n case 3:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9, this);\n })),\n addContribution: function addContribution(attributes) {\n var _this15 = this;\n\n console.debug('[kredits] Adding contribution', attributes);\n return this.kredits.Contribution.add(attributes, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] Contribution.add response', data);\n attributes.contributor = _this15.contributors.findBy('id', attributes.contributorId);\n\n var contribution = _contribution.default.create(attributes);\n\n contribution.set('pendingTx', data);\n contribution.set('confirmedAtBlock', _this15.currentBlock + 40320);\n\n _this15.contributions.pushObject(contribution);\n\n return contribution;\n });\n },\n fetchContributions: function fetchContributions() {\n var _this16 = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n page: {\n size: 200\n }\n };\n console.debug(\"[kredits] Fetching contributions from the network\");\n return this.kredits.Contribution.all(options).then(function (contributions) {\n return contributions.map(function (data) {\n var contribution = _this16.loadContributionFromData(data);\n\n return contribution;\n });\n }).then(function (contributions) {\n var cacheWrites = contributions.map(function (c) {\n return _this16.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n });\n return Promise.all(cacheWrites).then(function () {\n console.debug(\"[kredits] Cached \".concat(contributions.length, \" contributions in browser storage\"));\n });\n });\n },\n loadContributionFromData: function loadContributionFromData(data) {\n var contribution = _contribution.default.create((0, _processContributionData.default)(data));\n\n contribution.set('contributor', this.contributors.findBy('id', data.contributorId));\n var loadedContribution = this.contributions.findBy('id', contribution.id);\n\n if (loadedContribution) {\n this.contributions.removeObject(loadedContribution);\n }\n\n this.contributions.pushObject(contribution);\n return contribution;\n },\n cacheLoadedContributions: function cacheLoadedContributions() {\n var _this17 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10() {\n var _iterator2, _step2, c;\n\n return regeneratorRuntime.wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n _iterator2 = _createForOfIteratorHelper(_this17.contributions);\n _context10.prev = 1;\n\n _iterator2.s();\n\n case 3:\n if ((_step2 = _iterator2.n()).done) {\n _context10.next = 9;\n break;\n }\n\n c = _step2.value;\n _context10.next = 7;\n return _this17.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 7:\n _context10.next = 3;\n break;\n\n case 9:\n _context10.next = 14;\n break;\n\n case 11:\n _context10.prev = 11;\n _context10.t0 = _context10[\"catch\"](1);\n\n _iterator2.e(_context10.t0);\n\n case 14:\n _context10.prev = 14;\n\n _iterator2.f();\n\n return _context10.finish(14);\n\n case 17:\n console.debug(\"[kredits] Cached \".concat(_this17.contributions.length, \" contributions in browser storage\"));\n return _context10.abrupt(\"return\", Promise.resolve());\n\n case 19:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10, null, [[1, 11, 14, 17]]);\n }))();\n },\n loadContributionsFromCache: function loadContributionsFromCache() {\n var _this18 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {\n return regeneratorRuntime.wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n return _context11.abrupt(\"return\", _this18.browserCache.contributions.iterate(function (value\n /*, key , iterationNumber */\n ) {\n _this18.contributions.pushObject(_contribution.default.create(JSON.parse(value)));\n }).then(function\n /* result */\n () {\n console.debug(\"[kredits] Loaded \".concat(_this18.contributions.length, \" contributions from cache\"));\n }));\n\n case 1:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11);\n }))();\n },\n contributionTasks: (0, _emberConcurrency.taskGroup)().enqueue(),\n syncContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {\n return regeneratorRuntime.wrap(function _callee12$(_context12) {\n while (1) {\n switch (_context12.prev = _context12.next) {\n case 0:\n _context12.next = 2;\n return this.fetchNewContributions.perform();\n\n case 2:\n _context12.next = 4;\n return this.syncUnconfirmedContributions.perform();\n\n case 4:\n _context12.next = 6;\n return this.updateMissingHistoricContributionsCount();\n\n case 6:\n this.set('contributionsNeedSync', false);\n\n case 7:\n case \"end\":\n return _context12.stop();\n }\n }\n }, _callee12, this);\n })).group('contributionTasks'),\n fetchNewContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {\n var count, lastKnownContributionId, toFetch, id, data, c;\n return regeneratorRuntime.wrap(function _callee13$(_context13) {\n while (1) {\n switch (_context13.prev = _context13.next) {\n case 0:\n _context13.next = 2;\n return this.kredits.Contribution.count;\n\n case 2:\n count = _context13.sent;\n lastKnownContributionId = Math.max.apply(null, this.contributions.mapBy('id'));\n toFetch = count - lastKnownContributionId;\n\n if (!(toFetch > 0)) {\n _context13.next = 20;\n break;\n }\n\n console.debug(\"[kredits] Fetching \".concat(toFetch, \" new contributions\"));\n id = lastKnownContributionId;\n\n case 8:\n if (!(id <= count)) {\n _context13.next = 18;\n break;\n }\n\n _context13.next = 11;\n return this.kredits.Contribution.getById(id);\n\n case 11:\n data = _context13.sent;\n c = this.loadContributionFromData(data);\n _context13.next = 15;\n return this.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 15:\n id++;\n _context13.next = 8;\n break;\n\n case 18:\n _context13.next = 21;\n break;\n\n case 20:\n console.debug(\"[kredits] No new contributions to fetch\");\n\n case 21:\n case \"end\":\n return _context13.stop();\n }\n }\n }, _callee13, this);\n })),\n fetchMissingContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee14() {\n var count, allIds, loadedContributions, toFetch, countFetched, id, data, c;\n return regeneratorRuntime.wrap(function _callee14$(_context14) {\n while (1) {\n switch (_context14.prev = _context14.next) {\n case 0:\n _context14.next = 2;\n return this.kredits.Contribution.count;\n\n case 2:\n count = _context14.sent;\n allIds = _toConsumableArray(Array(count + 1).keys());\n allIds.shift(); // remove first item, which is 0\n\n loadedContributions = new Set(this.contributions.mapBy('id'));\n toFetch = allIds.filter(function (id) {\n return !loadedContributions.has(id);\n });\n\n if (!(toFetch.length === 0)) {\n _context14.next = 10;\n break;\n }\n\n console.debug(\"[kredits] No contributions left to fetch\");\n return _context14.abrupt(\"return\");\n\n case 10:\n console.debug(\"[kredits] Fetching \".concat(toFetch.length, \" past contributions\"));\n countFetched = 0;\n id = count;\n\n case 13:\n if (!(id > 0)) {\n _context14.next = 29;\n break;\n }\n\n if (!loadedContributions.has(id)) {\n _context14.next = 18;\n break;\n }\n\n return _context14.abrupt(\"continue\", 26);\n\n case 18:\n _context14.next = 20;\n return this.kredits.Contribution.getById(id);\n\n case 20:\n data = _context14.sent;\n c = this.loadContributionFromData(data);\n _context14.next = 24;\n return this.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 24:\n countFetched++;\n\n if (countFetched % 20 === 0) {\n console.debug(\"[kredits] Fetched \".concat(countFetched, \" more contributions\"));\n }\n\n case 26:\n id--;\n _context14.next = 13;\n break;\n\n case 29:\n console.debug(\"[kredits] Cached \".concat(countFetched, \" past contributions\"));\n\n case 30:\n case \"end\":\n return _context14.stop();\n }\n }\n }, _callee14, this);\n })).group('contributionTasks'),\n syncUnconfirmedContributions: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee15() {\n var _iterator3, _step3, c, data, contribution;\n\n return regeneratorRuntime.wrap(function _callee15$(_context15) {\n while (1) {\n switch (_context15.prev = _context15.next) {\n case 0:\n if (!(this.contributionsUnconfirmed.length > 0)) {\n _context15.next = 25;\n break;\n }\n\n console.debug(\"[kredits] Syncing unconfirmed contributions\");\n _iterator3 = _createForOfIteratorHelper(this.contributionsUnconfirmed);\n _context15.prev = 3;\n\n _iterator3.s();\n\n case 5:\n if ((_step3 = _iterator3.n()).done) {\n _context15.next = 15;\n break;\n }\n\n c = _step3.value;\n _context15.next = 9;\n return this.kredits.Contribution.getById(c.id);\n\n case 9:\n data = _context15.sent;\n contribution = this.loadContributionFromData(data);\n _context15.next = 13;\n return this.browserCache.contributions.setItem(c.id.toString(), contribution.serialize());\n\n case 13:\n _context15.next = 5;\n break;\n\n case 15:\n _context15.next = 20;\n break;\n\n case 17:\n _context15.prev = 17;\n _context15.t0 = _context15[\"catch\"](3);\n\n _iterator3.e(_context15.t0);\n\n case 20:\n _context15.prev = 20;\n\n _iterator3.f();\n\n return _context15.finish(20);\n\n case 23:\n _context15.next = 26;\n break;\n\n case 25:\n console.debug(\"[kredits] No unconfirmed contributions to sync\");\n\n case 26:\n case \"end\":\n return _context15.stop();\n }\n }\n }, _callee15, this, [[3, 17, 20, 23]]);\n })),\n veto: function veto(contributionId) {\n console.debug('[kredits] veto against', contributionId);\n var contribution = this.contributions.findBy('id', contributionId);\n return this.kredits.Contribution.functions.veto(contributionId, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n contribution.set('pendingTx', data);\n return data;\n });\n },\n //\n // Generic data handling (for objects that can be vetoed)\n //\n fetchObjects: function fetchObjects(objectClass) {\n var _this19 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n page: {\n size: 200\n }\n };\n var objectClassLowerCase = objectClass.toLowerCase();\n console.debug(\"[kredits] Fetching \".concat(objectClassLowerCase, \"s from the network\"));\n return this.kredits[objectClass].all(options).then(function (objects) {\n return objects.map(function (data) {\n var classInstance = _this19[\"load\".concat(objectClass, \"FromData\")](data);\n\n return classInstance;\n });\n }).then(function (objects) {\n var cacheWrites = objects.map(function (o) {\n return _this19.browserCache[objectClassLowerCase + 's'].setItem(o.id.toString(), o.serialize());\n });\n return Promise.all(cacheWrites).then(function () {\n console.debug(\"[kredits] Cached \".concat(objects.length, \" \").concat(objectClassLowerCase + 's', \" in browser storage\"));\n });\n });\n },\n removeObjectFromCollectionIfLoaded: function removeObjectFromCollectionIfLoaded(collection, objectId) {\n var loadedObj = this[collection].findBy('id', objectId);\n\n if (loadedObj) {\n this[collection].removeObject(loadedObj);\n }\n },\n cacheLoadedObjects: function cacheLoadedObjects(collection) {\n var _this20 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16() {\n var _iterator4, _step4, o;\n\n return regeneratorRuntime.wrap(function _callee16$(_context16) {\n while (1) {\n switch (_context16.prev = _context16.next) {\n case 0:\n _iterator4 = _createForOfIteratorHelper(_this20[collection]);\n _context16.prev = 1;\n\n _iterator4.s();\n\n case 3:\n if ((_step4 = _iterator4.n()).done) {\n _context16.next = 9;\n break;\n }\n\n o = _step4.value;\n _context16.next = 7;\n return _this20.browserCache[collection].setItem(o.id, o.serialize());\n\n case 7:\n _context16.next = 3;\n break;\n\n case 9:\n _context16.next = 14;\n break;\n\n case 11:\n _context16.prev = 11;\n _context16.t0 = _context16[\"catch\"](1);\n\n _iterator4.e(_context16.t0);\n\n case 14:\n _context16.prev = 14;\n\n _iterator4.f();\n\n return _context16.finish(14);\n\n case 17:\n console.debug(\"[kredits] Cached \".concat(_this20[collection].length, \" \").concat(collection, \" in browser storage\"));\n\n case 18:\n case \"end\":\n return _context16.stop();\n }\n }\n }, _callee16, null, [[1, 11, 14, 17]]);\n }))();\n },\n loadObjectsFromCache: function loadObjectsFromCache(objectClass) {\n var _this21 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee17() {\n var collection;\n return regeneratorRuntime.wrap(function _callee17$(_context17) {\n while (1) {\n switch (_context17.prev = _context17.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n return _context17.abrupt(\"return\", _this21.browserCache[collection].iterate(function (value\n /*, key , iterationNumber */\n ) {\n var obj = models[objectClass].create(JSON.parse(value));\n\n _this21.removeObjectFromCollectionIfLoaded(collection, obj.id);\n\n _this21[collection].pushObject(obj);\n }).then(function\n /* result */\n () {\n console.debug(\"[kredits] Loaded \".concat(_this21[collection].length, \" \").concat(collection, \" from cache\"));\n }));\n\n case 2:\n case \"end\":\n return _context17.stop();\n }\n }\n }, _callee17);\n }))();\n },\n syncTaskGroup: (0, _emberConcurrency.taskGroup)().enqueue(),\n fetchNewObjects: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee18(objectClass) {\n var collection, count, lastKnownObjectId, toFetch, id, data, o;\n return regeneratorRuntime.wrap(function _callee18$(_context18) {\n while (1) {\n switch (_context18.prev = _context18.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n _context18.next = 3;\n return this.kredits[objectClass].functions[\"\".concat(collection, \"Count\")]();\n\n case 3:\n count = _context18.sent;\n lastKnownObjectId = Math.max.apply(null, this[collection].mapBy('id'));\n toFetch = count - lastKnownObjectId;\n\n if (!(toFetch > 0)) {\n _context18.next = 21;\n break;\n }\n\n console.debug(\"[kredits] Fetching \".concat(toFetch, \" new \").concat(collection));\n id = lastKnownObjectId;\n\n case 9:\n if (!(id <= count)) {\n _context18.next = 19;\n break;\n }\n\n _context18.next = 12;\n return this.kredits[objectClass].getById(id);\n\n case 12:\n data = _context18.sent;\n o = this[\"load\".concat(objectClass, \"FromData\")](data);\n _context18.next = 16;\n return this.browserCache[collection].setItem(o.id.toString(), o.serialize());\n\n case 16:\n id++;\n _context18.next = 9;\n break;\n\n case 19:\n _context18.next = 22;\n break;\n\n case 21:\n console.debug(\"[kredits] No new \".concat(collection, \" to fetch\"));\n\n case 22:\n case \"end\":\n return _context18.stop();\n }\n }\n }, _callee18, this);\n })),\n fetchMissingObjects: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee19(objectClass) {\n var collection, count, allIds, loadedObjects, toFetch, countFetched, id, data, o;\n return regeneratorRuntime.wrap(function _callee19$(_context19) {\n while (1) {\n switch (_context19.prev = _context19.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n _context19.next = 3;\n return this.kredits[objectClass].functions[\"\".concat(collection, \"Count\")]();\n\n case 3:\n count = _context19.sent;\n allIds = _toConsumableArray(Array(count + 1).keys());\n allIds.shift(); // remove first item, which is 0\n\n loadedObjects = new Set(this[collection].mapBy('id'));\n toFetch = allIds.filter(function (id) {\n return !loadedObjects.has(id);\n });\n\n if (!(toFetch.length === 0)) {\n _context19.next = 11;\n break;\n }\n\n console.debug(\"[kredits] No \".concat(collection, \" left to fetch\"));\n return _context19.abrupt(\"return\");\n\n case 11:\n console.debug(\"[kredits] Fetching \".concat(toFetch.length, \" past \").concat(collection));\n countFetched = 0;\n id = count;\n\n case 14:\n if (!(id > 0)) {\n _context19.next = 30;\n break;\n }\n\n if (!loadedObjects.has(id)) {\n _context19.next = 19;\n break;\n }\n\n return _context19.abrupt(\"continue\", 27);\n\n case 19:\n _context19.next = 21;\n return this.kredits[objectClass].getById(id);\n\n case 21:\n data = _context19.sent;\n o = this[\"load\".concat(objectClass, \"FromData\")](data);\n _context19.next = 25;\n return this.browserCache[collection].setItem(o.id.toString(), o.serialize());\n\n case 25:\n countFetched++;\n\n if (countFetched % 20 === 0) {\n console.debug(\"[kredits] Fetched \".concat(countFetched, \" more \").concat(collection));\n }\n\n case 27:\n id--;\n _context19.next = 14;\n break;\n\n case 30:\n console.debug(\"[kredits] Cached \".concat(countFetched, \" past \").concat(collection));\n\n case 31:\n case \"end\":\n return _context19.stop();\n }\n }\n }, _callee19, this);\n })),\n syncUnconfirmedObjects: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee20(objectClass) {\n var collection, _iterator5, _step5, o, data, object;\n\n return regeneratorRuntime.wrap(function _callee20$(_context20) {\n while (1) {\n switch (_context20.prev = _context20.next) {\n case 0:\n collection = objectClass.toLowerCase() + 's';\n\n if (!(this.get(\"\".concat(collection, \"Unconfirmed\")).length > 0)) {\n _context20.next = 28;\n break;\n }\n\n console.debug(\"[kredits] Syncing unconfirmed \".concat(collection));\n _iterator5 = _createForOfIteratorHelper(this[\"\".concat(collection, \"Unconfirmed\")]);\n _context20.prev = 4;\n\n _iterator5.s();\n\n case 6:\n if ((_step5 = _iterator5.n()).done) {\n _context20.next = 18;\n break;\n }\n\n o = _step5.value;\n\n if (!Ember.isEmpty(o.id)) {\n _context20.next = 10;\n break;\n }\n\n return _context20.abrupt(\"return\");\n\n case 10:\n _context20.next = 12;\n return this.kredits[objectClass].getById(o.id);\n\n case 12:\n data = _context20.sent;\n object = this[\"load\".concat(objectClass, \"FromData\")](data);\n _context20.next = 16;\n return this.browserCache[collection].setItem(o.id.toString(), object.serialize());\n\n case 16:\n _context20.next = 6;\n break;\n\n case 18:\n _context20.next = 23;\n break;\n\n case 20:\n _context20.prev = 20;\n _context20.t0 = _context20[\"catch\"](4);\n\n _iterator5.e(_context20.t0);\n\n case 23:\n _context20.prev = 23;\n\n _iterator5.f();\n\n return _context20.finish(23);\n\n case 26:\n _context20.next = 29;\n break;\n\n case 28:\n console.debug(\"[kredits] No unconfirmed \".concat(collection, \" to sync\"));\n\n case 29:\n case \"end\":\n return _context20.stop();\n }\n }\n }, _callee20, this, [[4, 20, 23, 26]]);\n })),\n vetoAgainstObject: function vetoAgainstObject(objectClass, objectId) {\n console.debug(\"[kredits] veto against \".concat(objectClass.toLowerCase()), objectId);\n var collection = objectClass.toLowerCase() + 's';\n var object = this[collection].findBy('id', objectId);\n return this.kredits[objectClass].functions.veto(objectId, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n object.set('pendingTx', data);\n return data;\n });\n },\n //\n // Reimbursements\n //\n loadReimbursementFromData: function loadReimbursementFromData(data) {\n var obj = _reimbursement.default.create((0, _processReimbursementData.default)(data));\n\n obj.set('contributor', this.contributors.findBy('id', data.recipientId));\n this.removeObjectFromCollectionIfLoaded('reimbursements', obj.id);\n this.reimbursements.pushObject(obj);\n return obj;\n },\n addReimbursement: function addReimbursement(attributes) {\n var _this22 = this;\n\n console.debug('[kredits] add reimbursement', attributes);\n return this.kredits.Reimbursement.add(attributes, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] add reimbursement response', data);\n\n var reimbursement = _reimbursement.default.create(attributes);\n\n reimbursement.setProperties({\n contributor: _this22.contributors.findBy('id', attributes.recipientId),\n pendingTx: data,\n confirmedAt: _this22.currentBlock + 40320\n });\n\n _this22.reimbursements.pushObject(reimbursement); // Listen to tx mining/execution status\n\n\n data.wait().then(function (d) {\n return console.debug('[kredits] tx successful', d);\n }).catch(function (e) {\n window.alert('The transaction failed to execute. Please check the browser console.');\n console.log('[kredits] tx error', e);\n });\n return reimbursement;\n });\n },\n syncReimbursements: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee21() {\n return regeneratorRuntime.wrap(function _callee21$(_context21) {\n while (1) {\n switch (_context21.prev = _context21.next) {\n case 0:\n _context21.next = 2;\n return this.fetchNewObjects.perform('Reimbursement');\n\n case 2:\n _context21.next = 4;\n return this.syncUnconfirmedObjects.perform('Reimbursement');\n\n case 4:\n this.set('reimbursementsNeedSync', false);\n\n case 5:\n case \"end\":\n return _context21.stop();\n }\n }\n }, _callee21, this);\n })).group('syncTaskGroup'),\n fetchMissingReimbursements: (0, _emberConcurrency.task)( /*#__PURE__*/regeneratorRuntime.mark(function _callee22() {\n return regeneratorRuntime.wrap(function _callee22$(_context22) {\n while (1) {\n switch (_context22.prev = _context22.next) {\n case 0:\n _context22.next = 2;\n return this.fetchMissingObjects.perform('Reimbursement');\n\n case 2:\n case \"end\":\n return _context22.stop();\n }\n }\n }, _callee22, this);\n })).group('syncTaskGroup'),\n vetoReimbursement: function vetoReimbursement(id) {\n console.debug('[kredits] veto against reimbursement', id);\n var reimbursement = this.reimbursements.findBy('id', id);\n return this.kredits.Reimbursement.functions.veto(id, {\n gasLimit: 300000\n }).then(function (data) {\n console.debug('[kredits] veto response', data);\n reimbursement.set('pendingTx', data);\n return data;\n });\n },\n //\n // Contract events\n //\n addContractEventHandlers: function addContractEventHandlers() {\n this.kredits.Contributor.on('ContributorProfileUpdated', this.handleContributorChange.bind(this)).on('ContributorAccountUpdated', this.handleContributorChange.bind(this)).on('ContributorAdded', this.handleContributorChange.bind(this));\n this.kredits.Contribution.on('ContributionAdded', this.handleContributionAdded.bind(this)).on('ContributionVetoed', this.handleContributionVetoed.bind(this));\n this.kredits.Reimbursement.on('ReimbursementAdded', this.handleReimbursementAdded.bind(this)).on('ReimbursementVetoed', this.handleReimbursementVetoed.bind(this));\n this.kredits.Token.on('Transfer', this.handleTransfer.bind(this));\n },\n handleContributorChange: function handleContributorChange(contributorId) {\n var _arguments = arguments,\n _this23 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee23() {\n var _len, args, _key, contributorData, newContributor, oldContributor;\n\n return regeneratorRuntime.wrap(function _callee23$(_context23) {\n while (1) {\n switch (_context23.prev = _context23.next) {\n case 0:\n console.debug('[kredits] Contributor add/update event received for ID', contributorId);\n\n for (_len = _arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = _arguments[_key];\n }\n\n console.debug('[kredits] Event data:', args);\n _context23.next = 5;\n return _this23.kredits.Contributor.getById(contributorId);\n\n case 5:\n contributorData = _context23.sent;\n newContributor = _contributor.default.create(contributorData); // TODO check for actual differences in the contributor data first\n\n oldContributor = _this23.contributors.findBy('id', contributorId);\n\n if (oldContributor) {\n // console.debug('[kredits] cached contributor', oldContributor);\n _this23.contributors.removeObject(oldContributor);\n } // console.debug('[kredits] incoming contributor data', newContributor);\n\n\n _this23.contributors.pushObject(newContributor);\n\n case 10:\n case \"end\":\n return _context23.stop();\n }\n }\n }, _callee23);\n }))();\n },\n handleContributionAdded: function handleContributionAdded(id, contributorId, amount) {\n var _this24 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee24() {\n var pendingContribution, data, c;\n return regeneratorRuntime.wrap(function _callee24$(_context24) {\n while (1) {\n switch (_context24.prev = _context24.next) {\n case 0:\n console.debug('[kredits] ContributionAdded event received', {\n id: id,\n contributorId: contributorId,\n amount: amount\n });\n pendingContribution = _this24.contributions.find(function (c) {\n return c.id === null && c.contributorId === contributorId && c.amount.toString() === amount.toString();\n });\n\n if (pendingContribution) {\n _this24.contributions.removeObject(pendingContribution);\n }\n\n _context24.next = 5;\n return _this24.kredits.Contribution.getById(id);\n\n case 5:\n data = _context24.sent;\n c = _this24.loadContributionFromData(data);\n _context24.next = 9;\n return _this24.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 9:\n case \"end\":\n return _context24.stop();\n }\n }\n }, _callee24);\n }))();\n },\n handleContributionVetoed: function handleContributionVetoed(contributionId) {\n var _this25 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee25() {\n var c;\n return regeneratorRuntime.wrap(function _callee25$(_context25) {\n while (1) {\n switch (_context25.prev = _context25.next) {\n case 0:\n console.debug('[kredits] ContributionVetoed event received for #', contributionId);\n c = _this25.contributions.findBy('id', contributionId);\n\n if (!c) {\n _context25.next = 8;\n break;\n }\n\n console.debug('[kredits] Updating contribution', c);\n c.set('vetoed', true);\n c.set('pendingTx', null);\n _context25.next = 8;\n return _this25.browserCache.contributions.setItem(c.id.toString(), c.serialize());\n\n case 8:\n case \"end\":\n return _context25.stop();\n }\n }\n }, _callee25);\n }))();\n },\n handleReimbursementAdded: function handleReimbursementAdded(id, addedByAccount, amount) {\n var _this26 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee26() {\n var pendingReimbursement, data, r;\n return regeneratorRuntime.wrap(function _callee26$(_context26) {\n while (1) {\n switch (_context26.prev = _context26.next) {\n case 0:\n console.debug('[kredits] ReimbursementAdded event received', {\n id: id,\n addedByAccount: addedByAccount,\n amount: amount\n });\n pendingReimbursement = _this26.reimbursementsPending.find(function (r) {\n return r.amount.toString() === amount.toString();\n });\n\n if (pendingReimbursement) {\n console.debug('[kredits] Found a pending reimbursement matching the event. Replacing it with the final record...');\n\n _this26.reimbursements.removeObject(pendingReimbursement);\n }\n\n _context26.next = 5;\n return _this26.kredits.Reimbursement.getById(id);\n\n case 5:\n data = _context26.sent;\n r = _this26.loadReimbursementFromData(data);\n\n _this26.browserCache.reimbursements.setItem(r.id.toString(), r.serialize());\n\n case 8:\n case \"end\":\n return _context26.stop();\n }\n }\n }, _callee26);\n }))();\n },\n handleReimbursementVetoed: function handleReimbursementVetoed(id) {\n var _this27 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee27() {\n var r;\n return regeneratorRuntime.wrap(function _callee27$(_context27) {\n while (1) {\n switch (_context27.prev = _context27.next) {\n case 0:\n console.debug(\"[kredits] ReimbursementVetoed received for #\".concat(id));\n r = _this27.reimbursements.findBy('id', id);\n console.debug('[kredits] reimbursement', r);\n\n if (r) {\n r.set('vetoed', true);\n r.set('pendingTx', null);\n\n _this27.browserCache.reimbursements.setItem(r.id.toString(), r.serialize());\n }\n\n case 4:\n case \"end\":\n return _context27.stop();\n }\n }\n }, _callee27);\n }))();\n },\n handleTransfer: function handleTransfer(from, to, value) {\n value = value.toNumber();\n this.contributors.findBy('address', from).decrementProperty('balance', value);\n this.contributors.findBy('address', to).incrementProperty('balance', value);\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/services/moment\", [\"exports\", \"ember-moment/services/moment\", \"kredits-web/config/environment\"], function (_exports, _moment, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var get = Ember.get;\n\n var _default = _moment.default.extend({\n defaultFormat: get(_environment.default, 'moment.outputFormat')\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application-loading\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"rH2U9nfi\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[8,\\\"loading-spinner\\\",[],[[],[]],null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application-loading.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"v+/8V/ng\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[14,1,\\\"topbar\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h1\\\"],[12],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"dashboard\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Kosmos Kredits\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n \\\"],[8,\\\"topbar-account-panel\\\",[],[[],[]],null],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/application.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/budget\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"7cWkGD9u\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,1,\\\"budget\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"aside\\\"],[12],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"

Budget

\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
    \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\" Expenses \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\" Rewards \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
  • \\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n \\\"],[3,\\\"
\\\"],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"funds\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Community funds\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"budget-balances\\\",[],[[],[]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"content\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"reimbursementsUnconfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"expenses-unconfirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Proposed Reimbursements\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"reimbursements.new\\\",\\\"Submit a reimbursement\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"reimbursement-list\\\",[],[[\\\"@items\\\"],[[32,0,[\\\"reimbursementsUnconfirmed\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"reimbursementsConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"expenses-confirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Confirmed Expenses\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"reimbursements.new\\\",\\\"Submit a reimbursement\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"reimbursement-list\\\",[],[[\\\"@items\\\"],[[32,0,[\\\"reimbursementsConfirmed\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"empty\\\"],[12],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/budget.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/budget/expenses\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"GPyv0u4G\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[30,[36,1],[[30,[36,0],null,null]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/budget/expenses.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-gitea-kosmos-org\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"i2/ZI1CX\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-gitea\\\"],[14,\\\"width\\\",\\\"400\\\"],[14,\\\"height\\\",\\\"400\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 400 400\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"fill-rule\\\",\\\"evenodd\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"m235.61 136.7 7e-3 32.7 4.493 2.189c2.471 1.204 4.628 2.25 4.793 2.324s0.3-15.626 0.3-34.889v-35.024h-9.6l7e-3 32.7m-22.336 30.528c-2.787 0.548-5.894 2.175-8.11 4.244-2.296 2.145-1.694 0.967-24.197 47.328l-11.164 23v4.6c0 4.305 0.076 4.75 1.185 6.942 2.815 5.56 1.055 4.606 69.415 37.629l4.2 2.029h4.221c10.104 0 11.144-1.319 26.676-33.8 0.999-2.09 4.15-8.57 7.001-14.4s6.916-14.2 9.033-18.6l3.849-8 0.01-4.219c0.02-8.49-2.644-11.721-14.326-17.371-4.215-2.038-11.264-5.461-15.664-7.606-15.241-7.429-22.802-11.07-23.125-11.137-0.418-0.086-1.177 1.299-5.112 9.333l-3.234 6.6 1.19 2.2c0.654 1.21 1.308 3.038 1.454 4.063l0.265 1.862 5.747 2.8c22.047 10.742 22.975 15.314 9.007 44.377l-3.317 6.902 1.162 2.098c3.865 6.974-0.923 15.098-8.898 15.098-12.557 0-13.717-18.335-1.278-20.2l1.842-0.276 3.101-6.462c12.037-25.079 11.953-25.952-3.232-33.53l-7.333-3.659-2.319 1.032c-1.276 0.567-3.151 1.153-4.167 1.301l-1.848 0.269-6.785 13.855-6.786 13.854 1.109 1.747c6.109 9.633-5.532 20.771-14.552 13.924-6.729-5.108-4.39-16.742 3.633-18.073 0.812-0.134 1.71-0.318 1.996-0.408 0.429-0.136 6.592-12.372 13.118-26.044l1.37-2.87-0.782-1.33c-3.586-6.099 0.331-14.253 7.353-15.306l1.683-0.252 3.969-8.045c2.183-4.425 4.019-8.168 4.08-8.319s-2.979-1.758-6.755-3.571c-8.092-3.885-10.4-4.452-14.685-3.609\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m73.4 97.876c-2.903 0.376-8.068 1.377-8.8 1.705-0.44 0.197-2.915 1.007-5.5 1.8s-4.7 1.617-4.7 1.831c0 0.213-0.225 0.388-0.5 0.388-0.63 1e-3 -5.615 2.344-5.893 2.771-0.114 0.175-0.837 0.638-1.607 1.029-5.482 2.788-14.835 11.523-18.63 17.4-0.639 0.99-1.274 1.89-1.409 2-0.659 0.534-4.752 8.933-5.555 11.4-0.502 1.54-1.048 2.98-1.213 3.2-0.587 0.782-2.031 7.531-2.489 11.633-0.256 2.292-0.61 4.167-0.785 4.167-0.443 0-0.403 17.45 0.042 18.305 0.199 0.382 0.566 2.748 0.816 5.258 0.493 4.939 1.847 12.516 2.428 13.578 0.198 0.363 0.83 2.369 1.405 4.459 1.927 7.009 10.26 22.927 12.44 23.764 0.303 0.116 0.55 0.481 0.55 0.812 0 0.813 10.667 11.552 12.3 12.383 0.715 0.364 1.3 0.821 1.3 1.017 0 0.195 0.945 0.934 2.1 1.642s2.19 1.41 2.3 1.561 1.28 0.875 2.6 1.609c1.32 0.735 2.67 1.552 3 1.816s1.95 1.086 3.6 1.827c1.65 0.74 3.101 1.486 3.224 1.658 0.123 0.171 1.741 0.865 3.596 1.542s3.557 1.384 3.783 1.572c0.226 0.187 2.388 0.907 4.804 1.599s4.753 1.423 5.193 1.624c1.299 0.593 7.258 1.856 12.2 2.586 2.53 0.374 4.96 0.83 5.4 1.013 1.151 0.48 8.262 1.165 15.067 1.45l5.866 0.247 0.877 2.594c0.903 2.673 4.652 10.529 5.195 10.884 0.168 0.11 0.585 0.83 0.928 1.6 0.685 1.538 1.927 3.686 2.313 4 0.135 0.11 0.826 1.19 1.536 2.4 1.544 2.634 4.561 7.175 5.293 7.968 0.289 0.313 0.975 1.236 1.525 2.051 1.729 2.563 7.039 9.405 8.557 11.025 0.244 0.26 1.523 1.692 2.843 3.183 3.476 3.925 7.354 7.774 10.261 10.183 1.397 1.157 2.629 2.223 2.739 2.368s1.096 0.884 2.191 1.643c1.094 0.758 2.33 1.681 2.745 2.051s1.229 0.911 1.809 1.203 1.884 1.026 2.897 1.632c1.952 1.167 7.201 3.093 8.428 3.093 0.402 0 0.73 0.18 0.73 0.4 0 0.511 115.46 0.557 115.77 0.046 0.121-0.194 1.074-0.482 2.119-0.639 2.437-0.365 7.765-2.307 9.27-3.378 0.64-0.456 1.334-0.829 1.542-0.829 0.451 0 5.639-3.687 8.597-6.111 2.854-2.337 5.633-5.107 8.718-8.689 1.42-1.65 2.681-3.09 2.8-3.2 0.581-0.536 5.161-6.76 5.812-7.9 0.409-0.715 0.869-1.3 1.023-1.3 0.153 0 0.938-1.125 1.742-2.5 2.068-3.533 4.108-6.822 4.561-7.352 0.213-0.248 1.043-1.755 1.845-3.348s1.62-3.1 1.818-3.348c0.687-0.864 5.069-9.661 5.555-11.152 0.269-0.825 0.642-1.5 0.829-1.5s0.878-1.396 1.536-3.101c0.658-1.706 1.671-4.047 2.251-5.203 0.581-1.156 1.405-3.116 1.832-4.356 0.426-1.239 0.934-2.453 1.129-2.696 0.194-0.244 0.946-2.154 1.671-4.244s1.446-3.89 1.602-4c0.155-0.11 0.964-2.36 1.797-5 0.832-2.64 1.627-4.89 1.766-5s0.861-2.27 1.604-4.8c0.742-2.53 1.484-4.782 1.649-5.003 0.164-0.222 0.872-2.562 1.573-5.2 0.701-2.639 1.412-4.977 1.58-5.197s0.965-3.19 1.77-6.6 1.623-6.488 1.817-6.84c0.195-0.353 0.919-3.503 1.611-7 0.692-3.498 1.431-6.678 1.642-7.068 0.211-0.389 0.938-4.169 1.616-8.4 0.677-4.23 1.388-8.052 1.579-8.492 0.192-0.44 0.708-3.77 1.147-7.4 4.258-35.198 1.497-55.451-8.208-60.199l-2.219-1.086-7.473 0.266c-4.111 0.146-7.834 0.417-8.274 0.602-0.801 0.336-13.842 0.941-52 2.412-11.22 0.433-22.2 0.881-24.4 0.997-2.2 0.115-11.334 0.415-20.298 0.665l-16.298 0.455-0.204 69.922-9.392-4.634-8e-3 -65.272-19.3-0.277c-10.615-0.153-19.84-0.441-20.5-0.642-0.66-0.2-6.69-0.551-13.4-0.779-21.82-0.743-58.18-2.495-59-2.843-0.44-0.187-4.04-0.453-8-0.591s-11.34-0.508-16.4-0.822c-8.365-0.519-22.619-0.685-25.6-0.298m13.657 31.23c0.269 0.173 0.809 3.742 1.313 8.694 0.471 4.62 1.021 8.76 1.221 9.2 0.201 0.44 0.561 2.42 0.801 4.4 0.709 5.856 2.382 15.937 2.787 16.8 0.207 0.44 0.943 3.68 1.636 7.2s1.4 6.58 1.571 6.8 0.803 2.56 1.405 5.2c0.601 2.64 1.333 5.34 1.627 6 0.293 0.66 1.193 3.63 2 6.6 0.808 2.97 1.597 5.49 1.754 5.6s0.884 2.27 1.614 4.8c0.731 2.53 1.455 4.69 1.608 4.8 0.154 0.11 0.868 2.09 1.587 4.4 0.72 2.31 1.494 4.429 1.721 4.71 0.226 0.28 0.341 0.567 0.255 0.637-0.263 0.215-9.713-1.339-10.37-1.704-0.337-0.188-1.237-0.468-2-0.623-4-0.814-10.947-2.703-11.712-3.185-0.481-0.304-1.325-0.675-1.875-0.825-1.377-0.377-5.355-1.954-5.6-2.22-0.11-0.12-1.447-0.841-2.971-1.604-1.524-0.762-3.216-1.791-3.759-2.286s-1.16-0.9-1.372-0.9c-1.422 0-11.329-9.68-12.558-12.27-0.347-0.731-0.775-1.33-0.951-1.33-0.593 0-4.638-8.175-5.591-11.3-0.519-1.705-1.071-3.1-1.226-3.1s-0.372-0.495-0.482-1.1c-0.111-0.605-0.599-3.08-1.084-5.5-1.119-5.58-1.528-15.681-0.814-20.111 0.516-3.208 1.895-8.141 2.372-8.489 0.15-0.11 0.752-1.19 1.338-2.4 2.053-4.245 6.611-8.836 11.098-11.177 1.43-0.746 2.69-1.485 2.8-1.643 0.28-0.402 6.231-2.23 8.4-2.58 0.99-0.16 2.003-0.454 2.251-0.654 0.248-0.199 2.678-0.513 5.4-0.697s5.039-0.357 5.149-0.385c0.11-0.029 0.406 0.08 0.657 0.242m131.79 38.066c2.262 0.371 16.092 6.678 15.866 7.236-0.061 0.151-1.897 3.894-4.08 8.319l-3.969 8.045-1.683 0.252c-7.022 1.053-10.939 9.207-7.353 15.306l0.782 1.33-1.37 2.87c-6.526 13.672-12.689 25.908-13.118 26.044-0.286 0.09-1.184 0.274-1.996 0.408-8.023 1.331-10.362 12.965-3.633 18.073 9.02 6.847 20.661-4.291 14.552-13.924l-1.109-1.747 6.786-13.854 6.785-13.855 1.848-0.269c1.016-0.148 2.891-0.734 4.167-1.301l2.319-1.032 7.333 3.659c15.185 7.578 15.269 8.451 3.232 33.53l-3.101 6.462-1.842 0.276c-12.439 1.865-11.279 20.2 1.278 20.2 7.975 0 12.763-8.124 8.898-15.098l-1.162-2.098 3.317-6.902c13.968-29.063 13.04-33.635-9.007-44.377l-5.747-2.8-0.265-1.862c-0.146-1.025-0.8-2.853-1.454-4.063l-1.19-2.2 3.234-6.6c3.935-8.034 4.694-9.419 5.112-9.333 0.323 0.067 7.884 3.708 23.125 11.137 4.4 2.145 11.449 5.568 15.664 7.606 11.682 5.65 14.346 8.881 14.326 17.371l-0.01 4.219-3.849 8c-2.117 4.4-6.182 12.77-9.033 18.6s-6.002 12.31-7.001 14.4c-15.532 32.481-16.572 33.8-26.676 33.8h-4.221l-4.2-2.029c-68.36-33.023-66.6-32.069-69.415-37.629-1.109-2.192-1.185-2.637-1.185-6.942v-4.6l11.164-23c22.503-46.361 21.901-45.183 24.197-47.328 3.874-3.618 8.661-5.122 13.684-4.3\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-gitea-kosmos-org.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-github-com\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"6f7RSD0A\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-github\\\"],[14,\\\"width\\\",\\\"260\\\"],[14,\\\"height\\\",\\\"260\\\"],[14,\\\"enable-background\\\",\\\"new 0 0 212.4575 186.23\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 260 260\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(23.766 36.885)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"m151.79 86.234c-7.078 0.1229-14.154 0.5605-21.232 0.7069-12.318 0.248-24.64 0.5664-36.961 0.512-11.176-0.0472-22.358-0.9728-33.518-0.7052-7.3164 0.1776-14.373 2.2948-20.131 7.584-9.9472 9.1368-12.522 21-11.314 33.807 1.92 20.357 9.2716 31.449 29.115 37.064 15.793 4.4704 31.963 5.2088 48.199 4.9744 5.254 0 10.51 0.1367 15.758-0.0292 12.723-0.4064 25.264-2.2072 37.358-6.3596 10.846-3.7225 18.799-10.691 22.572-22.166 2.6736-8.1288 3.7148-16.388 2.5544-24.853-1.7772-12.959-13.275-30.86-32.4-30.535zm-81.576 59.996c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20zm76 0c-8.836 0-16-8.9551-16-20 0-11.045 7.164-20 16-20s16 8.9553 16 20c0 11.045-7.164 20-16 20z\\\"],[14,\\\"fill\\\",\\\"none\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m200.25 59.188c-2.5076-3.4493-4.3632-6.3888-3.8748-11.44 0.6796-7.0664-0.3536-14.396-1.3204-21.518-1.2188-8.9843-3.5236-17.74-7.1776-26.23-9.0332 1.9356-17.981 3.49-25.963 8.0976-8.4648 4.8908-16.695 10.215-25.08 15.25-0.9532 0.5704-2.3124 0.8848-3.3848 0.7032-17.967-3.1368-35.92-3.0196-53.898-0.086-1.3632 0.2244-3.0724-0.2345-4.2948-0.9608-4.4436-2.6604-8.6564-5.7344-13.123-8.3516-11.656-6.844-23.66-12.822-37.494-14.59-0.3928 0.8597-0.7188 1.4785-0.9612 2.1253-4.164 11.22-6.6424 22.844-7.4276 34.82-0.2872 4.3516-0.6092 8.8048 0 13.072 0.3456 2.4296-4e-3 3.8788-1.3924 5.6132-4.8516 6.0488-8.6368 12.717-11.102 20.219-4.6972 14.295-4.4004 28.861-2.2756 43.475 1.7268 11.974 4.7344 23.537 11.324 33.873 13.186 20.682 32.892 29.774 55.572 31.705 19.308 1.6464 38.8 1.1992 58.213 1.2364 13.855 0.0251 27.57-1.4924 40.715-6.6389 20.375-7.9727 33.859-22.604 40.275-44.166 3.7344-12.545 5.2324-25.396 4.8144-38.498-0.4412-13.81-4.0504-26.566-12.144-37.711zm-18.609 82.435c-3.7736 11.475-11.727 18.444-22.572 22.166-12.094 4.1524-24.635 5.9532-37.358 6.3596-5.248 0.1659-10.504 0.0292-15.758 0.0292-16.236 0.2344-32.406-0.504-48.199-4.9744-19.844-5.6152-27.195-16.707-29.115-37.064-1.2072-12.807 1.3672-24.67 11.314-33.807 5.7576-5.2892 12.814-7.4064 20.131-7.584 11.16-0.2676 22.342 0.658 33.518 0.7052 12.32 0.0544 24.642-0.264 36.961-0.512 7.0784-0.1464 14.154-0.584 21.232-0.7069 19.125-0.3243 30.623 17.576 32.4 30.535 1.1604 8.4647 0.1192 16.724-2.5544 24.853z\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"ellipse\\\"],[14,0,\\\"fg\\\"],[14,\\\"cx\\\",\\\"70.214\\\"],[14,\\\"cy\\\",\\\"126.23\\\"],[14,\\\"rx\\\",\\\"16\\\"],[14,\\\"ry\\\",\\\"20\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"ellipse\\\"],[14,0,\\\"fg\\\"],[14,\\\"cx\\\",\\\"146.21\\\"],[14,\\\"cy\\\",\\\"126.23\\\"],[14,\\\"rx\\\",\\\"16\\\"],[14,\\\"ry\\\",\\\"20\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-github-com.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-wiki-kosmos-org\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Jd1PFucm\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-wiki\\\"],[14,\\\"width\\\",\\\"120\\\"],[14,\\\"height\\\",\\\"120\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 120 120\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(18.1,3)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"6.2 5 45.7 20.5 45.7 91 6.2 75.5\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"90 5 50.5 20.5 50.5 91 90 75.5\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"87 88 87 81.8 60.4 91\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,0,\\\"fg\\\"],[14,\\\"transform\\\",\\\"translate(-6.2,9)\\\"],[14,\\\"points\\\",\\\"9.2 88 9.2 81.8 34.9 91\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-wiki-kosmos-org.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-account-zoom-us\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"t+FK8DQJ\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"256\\\"],[14,\\\"height\\\",\\\"256\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 67.733 67.733\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(0 -229.27)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"matrix(.90278 0 0 .90278 6.5684 141.05)\\\"],[14,\\\"fill-rule\\\",\\\"evenodd\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m32.67 117.1c2.2056 0.1405 3.0528 0.27041 4.1992 0.64479 3.9359 1.2854 6.7418 4.6736 7.3059 8.8223 0.06615 0.48578 0.13996 1.0253 0.16431 1.1986 0.29104 2.0743 0.07488 21.552-0.25003 22.55-0.59082 1.814-1.901 2.7993-4.0537 3.0488-1.3671 0.15849-30.564 0.0701-31.846-0.0963-5.2843-0.68659-8.8934-4.001-9.7398-8.9445-0.38418-2.2439-0.62362-20.748-0.29871-23.084 0.34422-2.4746 1.7264-3.797 4.3212-4.1338 0.98769-0.12832 28.191-0.13361 30.197-6e-3\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m61.114 118.11c0.56621 0.4072 0.97816 1.0565 1.1885 1.874 0.19553 0.75909 0.24474 28.04 0.05371 29.747-0.37333 3.3361-2.6305 4.0137-5.5264 1.6584-7.9722-6.4841-9.021-7.5734-9.6795-10.052-0.26008-0.97895-0.33152-10.629-0.08811-11.876 0.38021-1.9457 1.2594-3.1946 3.7383-5.3099 7.4491-6.3564 7.5914-6.4569 9.0522-6.4008 0.70723 0.0272 0.8599 0.0709 1.2613 0.3593\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-account-zoom-us.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-tag\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JuVyAs3U\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"width\\\",\\\"24\\\"],[14,\\\"height\\\",\\\"24\\\"],[14,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"stroke\\\",\\\"currentColor\\\"],[14,\\\"stroke-width\\\",\\\"2\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[14,\\\"stroke-linejoin\\\",\\\"round\\\"],[14,0,\\\"feather feather-tag\\\"],[12],[10,\\\"path\\\"],[14,\\\"d\\\",\\\"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z\\\"],[12],[13],[10,\\\"line\\\"],[14,\\\"x1\\\",\\\"7\\\"],[14,\\\"y1\\\",\\\"7\\\"],[14,\\\"x2\\\",\\\"7.01\\\"],[14,\\\"y2\\\",\\\"7\\\"],[12],[13],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-tag.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-warning\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"s2ZzsQPB\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,\\\"width\\\",\\\"60px\\\"],[14,\\\"height\\\",\\\"60px\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 60 60\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"fill\\\",\\\"none\\\"],[14,\\\"fill-rule\\\",\\\"evenodd\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(-479,-238)\\\"],[14,\\\"stroke\\\",\\\"#fbe468\\\"],[14,\\\"stroke-linecap\\\",\\\"round\\\"],[14,\\\"stroke-linejoin\\\",\\\"round\\\"],[14,\\\"stroke-width\\\",\\\"1\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"g\\\"],[14,\\\"transform\\\",\\\"translate(482,244)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[14,\\\"transform\\\",\\\"translate(0,2)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"polygon\\\"],[14,1,\\\"Triangle-58\\\"],[14,\\\"points\\\",\\\"0.15321 44 27 0 53.847 44\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"rect\\\"],[14,\\\"x\\\",\\\"25\\\"],[14,\\\"y\\\",\\\"13\\\"],[14,\\\"width\\\",\\\"4\\\"],[14,\\\"height\\\",\\\"21\\\"],[12],[13],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[14,\\\"transform\\\",\\\"translate(0,2)\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"circle\\\"],[14,\\\"cx\\\",\\\"27\\\"],[14,\\\"cy\\\",\\\"38\\\"],[14,\\\"r\\\",\\\"2\\\"],[12],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-warning.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/components/icon-web-globe\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"CCF3RzQa\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"svg\\\"],[14,0,\\\"icon-web-globe\\\"],[14,\\\"width\\\",\\\"60\\\"],[14,\\\"height\\\",\\\"60\\\"],[14,\\\"enable-background\\\",\\\"new 0 0 64 64\\\"],[14,\\\"version\\\",\\\"1.1\\\"],[14,\\\"viewBox\\\",\\\"0 0 60 60\\\"],[14,\\\"xml:space\\\",\\\"preserve\\\",\\\"http://www.w3.org/XML/1998/namespace\\\"],[14,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[14,\\\"xmlns:cc\\\",\\\"http://creativecommons.org/ns#\\\"],[14,\\\"xmlns:dc\\\",\\\"http://purl.org/dc/elements/1.1/\\\"],[14,\\\"xmlns:rdf\\\",\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"path\\\"],[14,0,\\\"fg\\\"],[14,\\\"d\\\",\\\"m48.1 14.3c-0.4-0.5-0.9-1-1.4-1.5-4.3-4.2-10.2-6.8-16.7-6.8s-12.4 2.6-16.7 6.8c-0.5 0.5-1 1-1.4 1.5-3.7 4.2-5.9 9.7-5.9 15.7s2.2 11.5 5.8 15.7c0.4 0.5 0.9 1 1.4 1.5 4.3 4.2 10.3 6.8 16.8 6.8s12.5-2.6 16.8-6.9c0.5-0.5 0.9-0.9 1.4-1.5 3.6-4.1 5.8-9.6 5.8-15.6s-2.2-11.5-5.9-15.7zm3.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.2 2.3-6.5 2.4-10.5h8.1c-0.3 5.1-2.2 9.9-5.4 13.5z\\\"],[12],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/components/icon-web-globe.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributions/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"FD6gV6zT\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contribution\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Submit a contribution\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contribution\\\",[],[[\\\"@attributes\\\",\\\"@save\\\"],[[32,0,[\\\"model\\\",\\\"params\\\"]],[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributions/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributions/resubmit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"CwFo+wqw\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contribution\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Re-submit contribution #\\\"],[1,[32,0,[\\\"model\\\",\\\"id\\\"]]],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contribution\\\",[],[[\\\"@attributes\\\",\\\"@contributors\\\",\\\"@save\\\"],[[32,0,[\\\"attributes\\\"]],[32,0,[\\\"sortedContributors\\\"]],[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributions/resubmit.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/edit\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"clbPf+4y\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contributor\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Update contributor profile\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contributor\\\",[],[[\\\"@attributes\\\",\\\"@save\\\"],[[32,0,[\\\"attributes\\\"]],[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/edit.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/contributors/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"zY+qbRPK\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-contributor\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Add contributor profile\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-contributor\\\",[],[[\\\"@save\\\"],[[30,[36,0],[[32,0],\\\"save\\\"],null]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/contributors/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"x0i2G66s\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[6,[37,2],[[32,0,[\\\"showIntroText\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,1,\\\"intro\\\"],[15,0,[30,[36,2],[[32,0,[\\\"showDetailsPane\\\"]],\\\"with-details\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"\\\\n Welcome to the contribution dashboard of the\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://kosmos.org\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noreferrer noopener\\\"],[12],[2,\\\"Kosmos\\\"],[13],[2,\\\" project!\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n If you want to learn more about what the numbers mean and how this works,\\\\n check out the\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://wiki.kosmos.org/Kredits\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noreferrer noopener\\\"],[12],[2,\\\"Kredits documentation\\\"],[13],[2,\\\".\\\\n If you want to start earning kredits for your contributions,\\\\n \\\"],[8,\\\"link-to\\\",[],[[\\\"@route\\\"],[\\\"signup\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"create a contributor profile\\\"]],\\\"parameters\\\":[]}]]],[2,\\\".\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[10,\\\"main\\\"],[14,1,\\\"dashboard\\\"],[15,0,[30,[36,2],[[32,0,[\\\"showDetailsPane\\\"]],\\\"with-details\\\"],null]],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"stats\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"people\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Contributors\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"contributors.new\\\",\\\"Add contributor profile\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"contributor-list\\\",[],[[\\\"@contributorList\\\",\\\"@showUnconfirmedKredits\\\",\\\"@selectedContributorId\\\",\\\"@loading\\\"],[[32,0,[\\\"kreditsToplist\\\"]],[32,0,[\\\"showUnconfirmedKredits\\\"]],[32,0,[\\\"selectedContributorId\\\"]],[32,0,[\\\"kredits\\\",\\\"syncContributors\\\",\\\"isRunning\\\"]]]],null],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"stats\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"number\\\"],[12],[1,[30,[36,4],[[32,0,[\\\"kredits\\\",\\\"totalKreditsEarned\\\"]]],null]],[13],[2,\\\" kredits confirmed and issued to\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"number\\\"],[12],[1,[32,0,[\\\"contributorsWithKredits\\\",\\\"length\\\"]]],[13],[2,\\\" contributors\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"stats\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[[24,1,\\\"hide-unnconfirmed-kredits\\\"]],[[\\\"@type\\\",\\\"@checked\\\"],[\\\"checkbox\\\",[32,0,[\\\"showUnconfirmedKredits\\\"]]]],null],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[14,\\\"for\\\",\\\"hide-unnconfirmed-kredits\\\"],[12],[2,\\\"Show unconfirmed kredits in toplist\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,2],[[32,0,[\\\"contributionsConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"contributions-by-type\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Contributions by type\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"chart-contributions-by-type\\\",[],[[\\\"@contributions\\\"],[[32,0,[\\\"contributions\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"contributions\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"contributionsUnconfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"contributions-unconfirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"\\\\n Latest Contributions\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,3],[[32,0],\\\"toggleQuickFilterUnconfirmed\\\"],null]],[15,0,[31,[\\\"small \\\",[30,[36,2],[[32,0,[\\\"showQuickFilterUnconfirmed\\\"]],\\\"active\\\"],null]]]],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n filter\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"kredits\\\",\\\"hasAccounts\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@title\\\"],[\\\"contributions.new\\\",\\\"Submit a contribution\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"add\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n\\\"],[2,\\\" \\\"],[8,\\\"contribution-list\\\",[],[[\\\"@contributions\\\",\\\"@vetoContribution\\\",\\\"@contractInteractionEnabled\\\",\\\"@selectedContributionId\\\",\\\"@showQuickFilter\\\",\\\"@loading\\\"],[[32,0,[\\\"contributionsUnconfirmedSorted\\\"]],[30,[36,3],[[32,0],\\\"vetoContribution\\\"],null],[32,0,[\\\"kredits\\\",\\\"hasAccounts\\\"]],[32,0,[\\\"selectedContributionId\\\"]],[32,0,[\\\"showQuickFilterUnconfirmed\\\"]],[32,0,[\\\"kredits\\\",\\\"syncContributions\\\",\\\"isRunning\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"contributionsConfirmed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"contributions-confirmed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Confirmed Contributions\\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,3],[[32,0],\\\"toggleQuickFilterConfirmed\\\"],null]],[15,0,[31,[\\\"small \\\",[30,[36,2],[[32,0,[\\\"showQuickFilterConfirmed\\\"]],\\\"active\\\"],null]]]],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n filter\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"contribution-list\\\",[],[[\\\"@contributions\\\",\\\"@vetoContribution\\\",\\\"@selectedContributionId\\\",\\\"@showQuickFilter\\\"],[[32,0,[\\\"contributionsConfirmedSorted\\\"]],[30,[36,3],[[32,0],\\\"vetoContribution\\\"],null],[32,0,[\\\"selectedContributionId\\\"]],[32,0,[\\\"showQuickFilterConfirmed\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"showFullContributionSync\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"section\\\"],[14,1,\\\"sync-all-contributions\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"kredits\\\",\\\"fetchMissingContributions\\\",\\\"isIdle\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[14,0,\\\"mb-4\\\"],[12],[2,\\\"\\\\n There are\\\\n \\\"],[10,\\\"strong\\\"],[12],[1,[32,0,[\\\"kredits\\\",\\\"missingHistoricContributionsCount\\\"]]],[13],[2,\\\"\\\\n earlier contributions, which are not currently loaded/displayed.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n You can fetch all historic data in one go, and have it stored locally in\\\\n your browser:\\\\n \\\"],[11,\\\"button\\\"],[24,0,\\\"small\\\"],[24,4,\\\"button\\\"],[4,[38,1],[\\\"click\\\",[30,[36,0],[[32,0,[\\\"kredits\\\",\\\"fetchMissingContributions\\\"]]],null]],null],[12],[2,\\\"\\\\n fetch all data\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[14,0,\\\"mb-4\\\"],[12],[2,\\\"\\\\n Syncing data. Please be patient...\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n (You can leave this website anytime and sync missing data when you come back.)\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,1,\\\"details\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,6],[[30,[36,5],null,null]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"perform\\\",\\\"on\\\",\\\"if\\\",\\\"action\\\",\\\"await\\\",\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributions/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"DufwIN5Z\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"section\\\"],[14,1,\\\"contribution-details\\\"],[15,0,[30,[36,0],[[32,0,[\\\"model\\\",\\\"vetoed\\\"]],\\\"vetoed\\\"],null]],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[14,0,\\\"with-nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Contribution #\\\"],[1,[32,0,[\\\"model\\\",\\\"id\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"nav\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"amount\\\"],[12],[1,[32,0,[\\\"model\\\",\\\"amount\\\"]]],[13],[2,\\\" \\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"symbol\\\"],[12],[2,\\\"₭S\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"who-what-when\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"contributor\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\"],[[32,0,[\\\"model\\\",\\\"contributor\\\"]]]],null],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[],[[\\\"@route\\\",\\\"@model\\\"],[\\\"dashboard.contributors.show\\\",[32,0,[\\\"model\\\",\\\"contributor\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[1,[32,0,[\\\"model\\\",\\\"contributor\\\",\\\"name\\\"]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n contributed\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"date\\\"],[15,\\\"title\\\",[32,0,[\\\"model\\\",\\\"iso8601Date\\\"]]],[12],[1,[30,[36,1],[[32,0,[\\\"model\\\",\\\"iso8601Date\\\"]]],null]],[13],[2,\\\":\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"h3\\\"],[12],[1,[32,0,[\\\"model\\\",\\\"description\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Kind: \\\"],[1,[32,0,[\\\"model\\\",\\\"kind\\\"]]],[2,\\\"\\\\n \\\"],[10,\\\"br\\\"],[12],[13],[2,\\\"Status: \\\"],[1,[30,[36,2],[[32,0,[\\\"model\\\"]]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"model\\\",\\\"url\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[32,0,[\\\"model\\\",\\\"url\\\"]]],[15,\\\"title\\\",[32,0,[\\\"model\\\",\\\"description\\\"]]],[14,0,\\\"button\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"\\\\n Open URL\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,0],[[32,0,[\\\"model\\\",\\\"vetoed\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"div\\\"],[14,0,\\\"hint vetoed\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"icon\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"icon-warning\\\",[],[[],[]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n This contribution has been vetoed, meaning no\\\\n kredits will be issued.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small green\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"contributions.resubmit\\\",[32,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Re-submit contribution …\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"contributions.resubmit\\\",[32,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Copy & edit as new\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,0],[[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"a\\\"],[15,6,[31,[[32,0,[\\\"ipfsGatewayUrl\\\"]],\\\"/\\\",[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"\\\\n Inspect IPFS data\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"moment-from\\\",\\\"item-status\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributions/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/dashboard/contributors/show\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"uzAAqojK\",\n \"block\": \"{\\\"symbols\\\":[\\\"account\\\"],\\\"statements\\\":[[10,\\\"section\\\"],[14,1,\\\"contributor-profile\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"user-avatar\\\",[],[[\\\"@contributor\\\",\\\"@size\\\"],[[32,0,[\\\"model\\\"]],\\\"medium\\\"]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[1,[32,0,[\\\"model\\\",\\\"name\\\"]]],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"role\\\"],[12],[1,[32,0,[\\\"roleName\\\"]]],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"ul\\\"],[14,0,\\\"external-accounts\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[30,[36,0],[[30,[36,0],[[32,0,[\\\"model\\\",\\\"accounts\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"external-account-link\\\",[],[[\\\"@account\\\"],[[32,1]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[6,[37,2],[[32,0,[\\\"model\\\",\\\"url\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"li\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[32,0,[\\\"model\\\",\\\"url\\\"]]],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[14,\\\"title\\\",\\\"Website\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"span\\\"],[14,0,\\\"site\\\"],[12],[2,\\\"Web\\\"],[13],[2,\\\"\\\\n \\\"],[8,\\\"icon-web-globe\\\",[],[[],[]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button green\\\"]],[[\\\"@route\\\",\\\"@query\\\"],[\\\"contributions.new\\\",[30,[36,3],null,[[\\\"contributorId\\\"],[[32,0,[\\\"model\\\",\\\"id\\\"]]]]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"♥ Give kredits\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"a\\\"],[15,6,[31,[\\\"https://explorer.testnet.rsk.co/address/\\\",[32,0,[\\\"model\\\",\\\"account\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"Inspect Rootstock transactions\\\"],[13],[2,\\\"\\\\n\\\"],[6,[37,2],[[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\" \\\"],[10,\\\"a\\\"],[15,6,[31,[[32,0,[\\\"ipfsGatewayUrl\\\"]],\\\"/\\\",[32,0,[\\\"model\\\",\\\"ipfsHash\\\"]]]]],[14,0,\\\"button small\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"Inspect IPFS profile\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\" \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small\\\"]],[[\\\"@route\\\",\\\"@model\\\"],[\\\"contributors.edit\\\",[32,0,[\\\"model\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Edit profile\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-track-array\\\",\\\"each\\\",\\\"if\\\",\\\"hash\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/dashboard/contributors/show.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/reimbursements/new\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"4ZGew5Lo\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"add-item\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Submit a Reimbursement\\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n \\\"],[10,\\\"div\\\"],[14,0,\\\"content\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"add-reimbursement\\\",[],[[\\\"@attributes\\\"],[[32,0,[\\\"model\\\",\\\"params\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/reimbursements/new.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"vyvqw+Xa\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"main\\\"],[14,0,\\\"center-column\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"section\\\"],[14,1,\\\"signup\\\"],[12],[2,\\\"\\\\n \\\"],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/account\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"juAngjy3\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Complete your contributor profile\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"content text-lg\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"mb-8\\\"],[12],[2,\\\"\\\\n Kredits allow you to to earn rewards for your contributions, in the form of\\\\n dynamic open-source grants. As a regular contributor, you can also take\\\\n part in the community's project governance and finances.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n In order to interact with the system you will need a\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://rootstock.io\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"Rootstock\\\"],[13],[2,\\\"\\\\n wallet/account.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"form\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"label\\\"],[12],[2,\\\"\\\\n Rootstock address:\\\"],[10,\\\"br\\\"],[12],[13],[2,\\\"\\\\n \\\"],[8,\\\"input\\\",[[24,\\\"placeholder\\\",\\\"0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4\\\"],[16,0,[30,[36,0],[[32,0,[\\\"isValidEthAccount\\\"]],\\\"valid\\\",\\\"\\\"],null]]],[[\\\"@type\\\",\\\"@value\\\"],[\\\"text\\\",[32,0,[\\\"accountAddress\\\"]]]],null],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[11,\\\"button\\\"],[16,\\\"disabled\\\",[32,0,[\\\"signupButtonDisabled\\\"]]],[24,4,\\\"button\\\"],[4,[38,2],[\\\"click\\\",[30,[36,1],[[32,0,[\\\"completeSignup\\\"]]],null]],null],[12],[2,\\\"\\\\n Complete my profile\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"fn\\\",\\\"on\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/account.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/complete\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"hc80mylW\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Welcome aboard!\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"content text-lg text-center\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Congratulations. Your initial profile is now complete.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n Why not say hi to your fellow contributors\\\\n \\\"],[10,\\\"a\\\"],[14,6,\\\"https://wiki.kosmos.org/Main_Page#Community_.2F_Getting_in_touch_.2F_Getting_involved\\\"],[14,\\\"target\\\",\\\"_blank\\\"],[14,\\\"rel\\\",\\\"noopener noreferrer\\\"],[12],[2,\\\"in one of our chat rooms\\\"],[13],[2,\\\"?.\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"link-to\\\",[[24,0,\\\"button small\\\"]],[[\\\"@route\\\"],[\\\"dashboard\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"Return to dashboard\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/complete.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/templates/signup/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"NAvcexMu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"header\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"h2\\\"],[12],[2,\\\"Create your contributor profile\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"content text-lg\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n You have already contributed to a Kosmos project, or you are interested\\\\n in contributing in the near future? Fantastic!\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[12],[2,\\\"\\\\n In order to earn kredits for your contributions, you will need a\\\\n registered contributor profile. The quickest way to register is by\\\\n connecting one of the following accounts:\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[10,\\\"p\\\"],[14,0,\\\"actions\\\"],[12],[2,\\\"\\\\n \\\"],[10,\\\"button\\\"],[15,\\\"onclick\\\",[30,[36,0],[[32,0],\\\"connectGithub\\\"],null]],[14,0,\\\"icon\\\"],[14,4,\\\"button\\\"],[12],[2,\\\"\\\\n \\\"],[8,\\\"icon-account-github-com\\\",[],[[],[]],null],[2,\\\"\\\\n Connect GitHub\\\\n \\\"],[13],[2,\\\"\\\\n \\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n \"meta\": {\n \"moduleName\": \"kredits-web/templates/signup/index.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"kredits-web/utils/format-kredits\", [\"exports\", \"ethers\"], function (_exports, _ethers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(value) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var etherValue = _ethers.default.utils.formatEther(value);\n\n if (!options.decimals) {\n etherValue = parseInt(etherValue).toString();\n }\n\n return etherValue;\n }\n});","define(\"kredits-web/utils/get-locale\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default() {\n return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language;\n }\n});","define(\"kredits-web/utils/group-by\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = groupBy;\n\n function groupBy(collection, property) {\n var groups = Ember.A();\n var items = collection;\n\n if (items) {\n items.forEach(function (item) {\n var value = item[property];\n var group = groups.findBy('value', value);\n\n if (Ember.isPresent(group)) {\n group.items.push(item);\n } else {\n group = {\n property: property,\n value: value,\n items: [item]\n };\n groups.push(group);\n }\n });\n }\n\n return groups;\n }\n});","define(\"kredits-web/utils/is-valid-amount\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = isValidAmount;\n\n function isValidAmount(inputAmount) {\n var amount = parseFloat(inputAmount);\n\n if (Number.isNaN(amount)) {\n return false;\n } else {\n return amount > 0;\n }\n }\n});","define(\"kredits-web/utils/process-contribution-data\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = processContributionData;\n\n function processContributionData(data) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var processed = {};\n\n if (data.confirmedAtBlock && typeof data.confirmedAtBlock.toNumber === 'function') {\n processed.confirmedAt = data.confirmedAtBlock.toNumber();\n } else if (data.confirmedAt !== 'undefined') {\n processed.confirmedAt = data.confirmedAt;\n }\n\n var otherProperties = ['id', 'contributorId', 'amount', 'vetoed', 'ipfsHash', 'kind', 'description', 'url', 'date', 'time', 'pendingTx'];\n otherProperties.forEach(function (prop) {\n processed[prop] = data[prop];\n });\n\n if (options.includeDetails) {\n processed.details = data.details;\n }\n\n return processed;\n }\n});","define(\"kredits-web/utils/process-contributor-data\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = processContributorData;\n\n function processContributorData(data) {\n var _data$contributionsCo;\n\n var processed = {\n balance: data.balanceInt,\n totalKreditsEarned: data.totalKreditsEarned,\n contributionsCount: (_data$contributionsCo = data.contributionsCount) === null || _data$contributionsCo === void 0 ? void 0 : _data$contributionsCo.toNumber()\n };\n var otherProperties = ['id', 'account', 'accounts', 'ipfsHash', 'isCore', 'kind', 'name', 'url', 'github_username', 'github_uid', 'wiki_username', 'zoom_display_name'];\n otherProperties.forEach(function (prop) {\n processed[prop] = data[prop];\n });\n return processed;\n }\n});","define(\"kredits-web/utils/process-reimbursement-data\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = processReimbursementData;\n\n function processReimbursementData(data) {\n var processed = {\n amount: data.amount.toNumber()\n };\n\n if (data.confirmedAtBlock && typeof data.confirmedAtBlock.toNumber === 'function') {\n processed.confirmedAt = data.confirmedAtBlock.toNumber();\n } else if (data.confirmedAt !== 'undefined') {\n processed.confirmedAt = data.confirmedAt;\n }\n\n var otherProperties = ['id', 'recipientId', 'token', 'vetoed', 'ipfsHash', 'expenses', 'pendingTx'];\n otherProperties.forEach(function (prop) {\n processed[prop] = data[prop];\n });\n return processed;\n }\n});","define(\"kredits-web/utils/read-file-content\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function _default(file) {\n var reader = new FileReader();\n return new Promise(function (resolve, reject) {\n reader.onload = function (event) {\n return resolve(event.target.result);\n };\n\n reader.onerror = function (error) {\n return reject(error);\n };\n\n reader.readAsText(file);\n });\n }\n});","define(\"kredits-web/utils/switch-network\", [\"exports\", \"kredits-web/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n function _default() {\n return _ref.apply(this, arguments);\n }\n\n function _ref() {\n _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var networkName, chainId, chainIdHex;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n networkName = _environment.default.web3NetworkName;\n chainId = _environment.default.web3ChainId;\n chainIdHex = \"0x\".concat(Number(chainId).toString(16));\n _context.prev = 3;\n _context.next = 6;\n return window.ethereum.request({\n method: 'wallet_switchEthereumChain',\n params: [{\n chainId: chainIdHex\n }]\n });\n\n case 6:\n _context.next = 16;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](3);\n\n if (!(_context.t0.code === 4902)) {\n _context.next = 15;\n break;\n }\n\n _context.next = 13;\n return window.ethereum.request({\n method: 'wallet_addEthereumChain',\n params: [{\n chainId: chainIdHex,\n chainName: networkName,\n rpcUrls: [_environment.default.web3ProviderUrl],\n nativeCurrency: {\n name: 'tRBTC',\n symbol: 'tRBTC',\n decimals: 18\n }\n }]\n });\n\n case 13:\n _context.next = 16;\n break;\n\n case 15:\n console.warn('Failed to switch chains:', _context.t0.message);\n\n case 16:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[3, 8]]);\n }));\n return _ref.apply(this, arguments);\n }\n});","define('kredits-web/config/environment', [], function() {\n var prefix = 'kredits-web';\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n var config = JSON.parse(decodeURIComponent(rawConfig));\n\n var exports = { 'default': config };\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n if (!runningTests) {\n require(\"kredits-web/app\")[\"default\"].create({\"name\":\"kredits-web\",\"version\":\"2.0.0+bdeab512\"});\n }\n \n"]} \ No newline at end of file diff --git a/release/assets/kredits-web-ae44ce0c1a892c2da424f8002b037b86.js b/release/assets/kredits-web-fbe44210e3e45c3458ed9b506c7d11b9.js similarity index 88% rename from release/assets/kredits-web-ae44ce0c1a892c2da424f8002b037b86.js rename to release/assets/kredits-web-fbe44210e3e45c3458ed9b506c7d11b9.js index 3dcb80d..9765677 100644 --- a/release/assets/kredits-web-ae44ce0c1a892c2da424f8002b037b86.js +++ b/release/assets/kredits-web-fbe44210e3e45c3458ed9b506c7d11b9.js @@ -1,5 +1,5 @@ "use strict" -function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}define("kredits-web/app",["exports","ember-resolver","ember-load-initializers","kredits-web/config/environment"],(function(e,t,n,r){function o(e,t){for(var n=0;ne.length)&&(t=e.length) for(var n=0,r=new Array(t);n0}))),this.args.addExpenseItem(o)}}])&&j(t.prototype,o),i&&j(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(t.default),b=M(p.prototype,"amount",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"0"}}),m=M(p.prototype,"currency",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"EUR"}}),y=M(p.prototype,"date",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,n.default)().startOf("hour").toDate()}}),h=M(p.prototype,"title",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v=M(p.prototype,"description",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g=M(p.prototype,"url",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),w=M(p.prototype,"tags",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M(p.prototype,"updateCurrency",[d],Object.getOwnPropertyDescriptor(p.prototype,"updateCurrency"),p.prototype),M(p.prototype,"submit",[f],Object.getOwnPropertyDescriptor(p.prototype,"submit"),p.prototype),p) +Ember.isPresent(this.tags)&&(o.tags=this.tags.split(",").map((function(e){return e.trim()})).filter((function(e){return e.length>0}))),this.args.addExpenseItem(o)}}])&&x(t.prototype,o),i&&x(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(t.default),b=M(p.prototype,"amount",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"0"}}),m=M(p.prototype,"currency",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"EUR"}}),y=M(p.prototype,"date",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,n.default)().startOf("hour").toDate()}}),h=M(p.prototype,"title",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),v=M(p.prototype,"description",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),g=M(p.prototype,"url",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),w=M(p.prototype,"tags",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),M(p.prototype,"updateCurrency",[f],Object.getOwnPropertyDescriptor(p.prototype,"updateCurrency"),p.prototype),M(p.prototype,"submit",[d],Object.getOwnPropertyDescriptor(p.prototype,"submit"),p.prototype),p) e.default=B})),define("kredits-web/components/add-expense-item/template",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"xrdEJbVd",block:'{"symbols":["currency"],"statements":[[11,"form"],[24,1,"add-expense-item"],[24,"novalidate",""],[4,[38,1],["submit",[32,0,["submit"]]],null],[12],[2,"\\n "],[10,"fieldset"],[14,0,"horizontal"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Amount:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@placeholder","@value","@required","@pattern","@class"],["expense-amount","text","10",[32,0,["amount"]],true,"([0-9]*[.])?[0-9]+",[32,0,["amountInputClass"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Currency:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[11,"select"],[24,"required",""],[24,3,"expense-currency"],[4,[38,1],["change",[32,0,["updateCurrency"]]],null],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[14,"disabled",""],[14,"hidden",""],[12],[13],[2,"\\n"],[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["currencies"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"option"],[15,2,[32,1,["code"]]],[15,"selected",[30,[36,0],[[32,0,["currency"]],[32,1,["code"]]],null]],[12],[1,[32,1,["code"]]],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Date:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"ember-flatpickr",[],[["@date","@defaultDate","@maxDate","@enableTime","@onChange"],[[32,0,["date"]],[32,0,["defaultDate"]],[32,0,["defaultDate"]],false,[30,[36,5],[[30,[36,4],[[32,0,["date"]]],null]],null]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Title:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value","@required"],["expense-title","text",[32,0,["title"]],true]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Description (optional):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value"],["expense-description","text",[32,0,["description"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"URL (optional):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value"],["expense-url","url",[32,0,["url"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Tags (comma-separated, optional):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@name","@type","@value"],["expense-tags","text",[32,0,["tags"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[8,"input",[],[["@type","@value","@class","@title"],["submit","Add","green","Add item to reimbursement"]],null],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["eq","on","-track-array","each","mut","fn"]}',meta:{moduleName:"kredits-web/components/add-expense-item/template.hbs"}}) -e.default=t})),define("kredits-web/components/add-reimbursement/component",["exports","@glimmer/component","kredits-web/utils/is-valid-amount","kredits-web/utils/read-file-content","kredits-web/config/environment"],(function(e,t,n,r,o){var i,u,a,s,c,l,d,f,p,b,m,y,h,v,g,w,k,O,_,x,j,P,E,C,R +e.default=t})),define("kredits-web/components/add-reimbursement/component",["exports","@glimmer/component","kredits-web/utils/is-valid-amount","kredits-web/utils/read-file-content","kredits-web/config/environment"],(function(e,t,n,r,o){var i,u,a,s,c,l,f,d,p,b,m,y,h,v,g,w,k,O,_,j,x,P,E,C,R function S(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return if("string"==typeof e)return z(e,t) @@ -101,19 +101,19 @@ r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Obj if(Reflect.construct.sham)return!1 if("function"==typeof Proxy)return!0 try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() -return function(){var n,r=N(e) -if(t){var o=N(this).constructor +return function(){var n,r=F(e) +if(t){var o=F(this).constructor n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments) return U(this,n)}}function U(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined") -return F(e)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") -return e}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function L(e,t,n,r,o){var i={} +return N(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") +return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function L(e,t,n,r,o){var i={} return Object.keys(r).forEach((function(e){i[e]=r[e]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var H=(i=Ember.inject.service,u=Ember.inject.service,a=Ember.inject.service,s=Ember.computed.alias("kredits.contributorsSorted"),c=Ember._tracked,l=Ember._tracked,d=Ember._tracked,f=Ember._tracked,p=Ember._tracked,b=Ember._action,m=Ember._action,y=Ember._action,h=Ember._action,v=Ember._action,g=Ember._action,w=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +var H=(i=Ember.inject.service,u=Ember.inject.service,a=Ember.inject.service,s=Ember.computed.alias("kredits.contributorsSorted"),c=Ember._tracked,l=Ember._tracked,f=Ember._tracked,d=Ember._tracked,p=Ember._tracked,b=Ember._action,m=Ember._action,y=Ember._action,h=Ember._action,v=Ember._action,g=Ember._action,w=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)})(l,e) var t,i,u,a,s,c=D(l) function l(){var e -return T(this,l),B(F(e=c.apply(this,arguments)),"router",k,F(e)),B(F(e),"kredits",O,F(e)),B(F(e),"exchangeRates",_,F(e)),B(F(e),"contributors",x,F(e)),B(F(e),"recipientId",j,F(e)),B(F(e),"title",P,F(e)),B(F(e),"total",E,F(e)),B(F(e),"expenses",C,F(e)),B(F(e),"expenseFormVisible",R,F(e)),e.exchangeRates.fetchRates(),e}return t=l,(i=[{key:"isValidTotal",get:function(){return(0,n.default)(this.total)}},{key:"totalInputClass",get:function(){return this.isValidTotal?"valid":""}},{key:"totalEUR",get:function(){var e=this.expenses.filterBy("currency","EUR") +return T(this,l),B(N(e=c.apply(this,arguments)),"router",k,N(e)),B(N(e),"kredits",O,N(e)),B(N(e),"exchangeRates",_,N(e)),B(N(e),"contributors",j,N(e)),B(N(e),"recipientId",x,N(e)),B(N(e),"title",P,N(e)),B(N(e),"total",E,N(e)),B(N(e),"expenses",C,N(e)),B(N(e),"expenseFormVisible",R,N(e)),e.exchangeRates.fetchRates(),e}return t=l,(i=[{key:"isValidTotal",get:function(){return(0,n.default)(this.total)}},{key:"totalInputClass",get:function(){return this.isValidTotal?"valid":""}},{key:"totalEUR",get:function(){var e=this.expenses.filterBy("currency","EUR") return e.length>0?e.mapBy("amount").reduce((function(e,t){return e+t})):0}},{key:"totalUSD",get:function(){var e=this.expenses.filterBy("currency","USD") return e.length>0?e.mapBy("amount").reduce((function(e,t){return e+t})):0}},{key:"submitButtonEnabled",get:function(){return this.isValidTotal&&this.expenses.length>0}},{key:"submitButtonDisabled",get:function(){return!this.submitButtonEnabled}},{key:"scrollToExpenseItemForm",value:function(){document.getElementById("new-expense-item").scrollIntoView()}},{key:"updateTotalAmountFromFiat",value:function(){var e=parseFloat(this.total) this.exchangeRates.btceur>0&&this.totalEUR>0&&(e+=this.totalEUR/this.exchangeRates.btceur),this.exchangeRates.btcusd>0&&this.totalUSD>0&&(e+=this.totalUSD/this.exchangeRates.btcusd),0===this.totalUSD&&0===this.totalEUR&&(e=0),this.total=e.toFixed(8)}},{key:"addExpensesFromFile",value:(a=regeneratorRuntime.mark((function e(t){var n,o,i,u,a @@ -126,30 +126,30 @@ function i(e){M(o,n,r,i,u,"next",e)}function u(e){M(o,n,r,i,u,"throw",e)}i(void if(e.preventDefault(),!this.kredits.currentUser)return window.alert("You need to connect your RSK account first."),!1 if(!this.kredits.currentUserIsCore)return window.alert("Only core contributors can submit reimbursements."),!1 var n=this.contributors.findBy("id",parseInt(this.recipientId)),r={amount:parseInt(1e8*parseFloat(this.total)),token:o.default.tokens.BTC,recipientId:parseInt(this.recipientId),title:"Expenses covered by ".concat(n.name),description:this.description,url:this.url,expenses:JSON.parse(JSON.stringify(this.expenses))} -this.inProgress=!0,this.kredits.addReimbursement(r).then((function(){t.router.transitionTo("budget")})).catch((function(e){console.error("Could not add reimbursement:",e),window.alert("Something went wrong. Please check the browser console.")})).finally((function(){t.inProgress=!1}))}}])&&A(t.prototype,i),u&&A(t,u),Object.defineProperty(t,"prototype",{writable:!1}),l}(t.default),k=L(w.prototype,"router",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=L(w.prototype,"kredits",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=L(w.prototype,"exchangeRates",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=L(w.prototype,"contributors",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=L(w.prototype,"recipientId",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=L(w.prototype,"title",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),E=L(w.prototype,"total",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"0"}}),C=L(w.prototype,"expenses",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),R=L(w.prototype,"expenseFormVisible",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),L(w.prototype,"addExpensesFromFile",[b],Object.getOwnPropertyDescriptor(w.prototype,"addExpensesFromFile"),w.prototype),L(w.prototype,"updateContributor",[m],Object.getOwnPropertyDescriptor(w.prototype,"updateContributor"),w.prototype),L(w.prototype,"showExpenseForm",[y],Object.getOwnPropertyDescriptor(w.prototype,"showExpenseForm"),w.prototype),L(w.prototype,"addExpenseItem",[h],Object.getOwnPropertyDescriptor(w.prototype,"addExpenseItem"),w.prototype),L(w.prototype,"removeExpenseItem",[v],Object.getOwnPropertyDescriptor(w.prototype,"removeExpenseItem"),w.prototype),L(w.prototype,"submit",[g],Object.getOwnPropertyDescriptor(w.prototype,"submit"),w.prototype),w) +this.inProgress=!0,this.kredits.addReimbursement(r).then((function(){t.router.transitionTo("budget")})).catch((function(e){console.error("Could not add reimbursement:",e),window.alert("Something went wrong. Please check the browser console.")})).finally((function(){t.inProgress=!1}))}}])&&A(t.prototype,i),u&&A(t,u),Object.defineProperty(t,"prototype",{writable:!1}),l}(t.default),k=L(w.prototype,"router",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=L(w.prototype,"kredits",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=L(w.prototype,"exchangeRates",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=L(w.prototype,"contributors",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=L(w.prototype,"recipientId",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),P=L(w.prototype,"title",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),E=L(w.prototype,"total",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"0"}}),C=L(w.prototype,"expenses",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Ember.A([])}}),R=L(w.prototype,"expenseFormVisible",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),L(w.prototype,"addExpensesFromFile",[b],Object.getOwnPropertyDescriptor(w.prototype,"addExpensesFromFile"),w.prototype),L(w.prototype,"updateContributor",[m],Object.getOwnPropertyDescriptor(w.prototype,"updateContributor"),w.prototype),L(w.prototype,"showExpenseForm",[y],Object.getOwnPropertyDescriptor(w.prototype,"showExpenseForm"),w.prototype),L(w.prototype,"addExpenseItem",[h],Object.getOwnPropertyDescriptor(w.prototype,"addExpenseItem"),w.prototype),L(w.prototype,"removeExpenseItem",[v],Object.getOwnPropertyDescriptor(w.prototype,"removeExpenseItem"),w.prototype),L(w.prototype,"submit",[g],Object.getOwnPropertyDescriptor(w.prototype,"submit"),w.prototype),w) e.default=H})),define("kredits-web/components/add-reimbursement/template",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"GxxUddPT",block:'{"symbols":["contributor"],"statements":[[11,"form"],[24,"novalidate",""],[4,[38,1],["submit",[32,0,["submit"]]],null],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Contributor:"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[11,"select"],[24,"required",""],[4,[38,1],["change",[32,0,["updateContributor"]]],null],[12],[2,"\\n "],[10,"option"],[14,2,""],[14,"selected",""],[14,"disabled",""],[14,"hidden",""],[12],[13],[2,"\\n"],[6,[37,4],[[30,[36,3],[[30,[36,3],[[32,0,["contributors"]]],null]],null]],null,[["default"],[{"statements":[[2," "],[10,"option"],[15,2,[32,1,["id"]]],[15,"selected",[30,[36,2],[[32,0,["contributorId"]],[32,1,["id"]]],null]],[12],[1,[32,1,["name"]]],[13],[2,"\\n"]],"parameters":[1]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"fieldset"],[14,0,"horizontal thirds total-amounts"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"Total amount (BTC):"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@type","@placeholder","@value","@required","@pattern","@class"],["text","0.0015",[32,0,["total"]],true,"([0-9]*[.])?[0-9]+",[32,0,["totalInputClass"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"EUR total"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@type","@name","@value","@disabled"],["text","total-eur",[32,0,["totalEUR"]],true]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"label"],[12],[2,"\\n "],[10,"p"],[14,0,"label"],[12],[2,"USD total"],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"input",[],[["@type","@name","@value","@disabled"],["text","total-usd",[32,0,["totalUSD"]],true]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"h3"],[12],[2,"Expense items"],[13],[2,"\\n"],[6,[37,5],[[32,0,["expenses"]]],null,[["default","else"],[{"statements":[[2," "],[8,"expense-list",[],[["@expenses","@removeExpenseItem","@deletable"],[[32,0,["expenses"]],[32,0,["removeExpenseItem"]],true]],null],[2,"\\n\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[11,"button"],[24,0,"green small"],[24,4,"button"],[4,[38,1],["click",[32,0,["showExpenseForm"]]],null],[12],[2,"+ Add another item"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"p"],[12],[2,"No line items yet."],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n"],[6,[37,5],[[32,0,["inProgress"]]],null,[["default","else"],[{"statements":[[2," "],[8,"input",[],[["@type","@value","@disabled","@title"],["submit","Submitting...",true,"Submit/propose this reimbursement"]],null],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"input",[],[["@type","@value","@disabled","@title"],["submit","Submit",[32,0,["submitButtonDisabled"]],"Submit/propose this reimbursement"]],null],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n"],[6,[37,5],[[32,0,["expenseFormVisible"]]],null,[["default"],[{"statements":[[2," "],[10,"h3"],[14,1,"new-expense-item"],[12],[2,"New expense item"],[13],[2,"\\n "],[8,"add-expense-item",[],[["@addExpenseItem"],[[30,[36,0],[[32,0,["addExpenseItem"]]],null]]],null],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"],[10,"form"],[14,1,"add-expenses-from-file"],[12],[2,"\\n "],[10,"h3"],[12],[2,"Add expense items from file"],[13],[2,"\\n "],[10,"input"],[14,"multiple","false"],[15,"onchange",[30,[36,0],[[32,0,["addExpensesFromFile"]]],null]],[14,"accept","application/json"],[14,4,"file"],[12],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["fn","on","eq","-track-array","each","if"]}',meta:{moduleName:"kredits-web/components/add-reimbursement/template.hbs"}}) e.default=t})),define("kredits-web/components/budget-balances/component",["exports","@glimmer/component"],(function(e,t){var n,r,o,i,u function a(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=t.default.APP.version,i=r.versionOnly||r.hideSha,u=r.shaOnly||r.hideVersion,a=null return i&&(r.showExtended&&(a=o.match(n.versionExtendedRegExp)),a||(a=o.match(n.versionRegExp))),u&&(a=o.match(n.shaRegExp)),a?a[0]:o}Object.defineProperty(e,"__esModule",{value:!0}),e.appVersion=r,e.default=void 0 var o=Ember.Helper.helper(r) @@ -379,8 +399,8 @@ return new Intl.DateTimeFormat(r).format(n)})) e.default=n})),define("kredits-web/helpers/fmt-fiat-currency",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Helper.helper((function(e){var t=navigator.language||navigator.userLanguage return new Intl.NumberFormat(t,{style:"currency",currency:e[1]||"EUR",currencyDisplay:"code"}).format(e[0])})) -e.default=t})),define("kredits-web/helpers/gt",["exports","ember-truth-helpers/helpers/gt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t.gt}})})),define("kredits-web/helpers/gte",["exports","ember-truth-helpers/helpers/gte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t.gte}})})),define("kredits-web/helpers/is-after",["exports","ember-moment/helpers/is-after"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})})),define("kredits-web/helpers/is-before",["exports","ember-moment/helpers/is-before"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/is-between",["exports","ember-moment/helpers/is-between"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})) -function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}define("kredits-web/helpers/is-confirmed-contribution",["exports"],(function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +e.default=t})),define("kredits-web/helpers/gt",["exports","ember-truth-helpers/helpers/gt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gt",{enumerable:!0,get:function(){return t.gt}})})),define("kredits-web/helpers/gte",["exports","ember-truth-helpers/helpers/gte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"gte",{enumerable:!0,get:function(){return t.gte}})})),define("kredits-web/helpers/is-after",["exports","ember-moment/helpers/is-after"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/is-array",["exports","ember-truth-helpers/helpers/is-array"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return t.isArray}})})),define("kredits-web/helpers/is-before",["exports","ember-moment/helpers/is-before"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})) +function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}define("kredits-web/helpers/is-between",["exports","ember-moment/helpers/is-between"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/is-confirmed-contribution",["exports"],(function(e){function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(null==n)return var r,o,i=[],u=!0,a=!1 try{for(n=n.call(e);!(u=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);u=!0);}catch(s){a=!0,o=s}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return @@ -422,8 +442,8 @@ this.setupRecompute(n) var r=[] return n.vetoed?r.push("vetoed"):n.confirmedAt>this.currentBlock?r.push("unconfirmed"):r.push("confirmed"),n.hasPendingChanges&&r.push("pending"),r.join(" ")},destroy:function(){this.teardown&&this.teardown(),this._super.apply(this,arguments)},setupRecompute:function(e){var t=this this.teardown&&this.teardown(),e.addObserver("vetoed",this,this.triggerRecompute),e.addObserver("confirmedAt",this,this.triggerRecompute),e.addObserver("currentBlock",this,this.triggerRecompute),e.addObserver("hasPendingChanges",this,this.triggerRecompute),this.teardown=function(){e.removeObserver("vetoed",t,t.triggerRecompute),e.removeObserver("confirmedAt",t,t.triggerRecompute),e.removeObserver("currentBlock",t,t.triggerRecompute),e.removeObserver("hasPendingChanges",t,t.triggerRecompute)}},triggerRecompute:function(){Ember.run.once(this,this.recompute)}}) -e.default=r})),define("kredits-web/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})})),define("kredits-web/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})})),define("kredits-web/helpers/moment-add",["exports","ember-moment/helpers/moment-add"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-calendar",["exports","ember-moment/helpers/moment-calendar"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-diff",["exports","ember-moment/helpers/moment-diff"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-duration",["exports","ember-moment/helpers/moment-duration"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-format",["exports","ember-moment/helpers/moment-format"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-from-now",["exports","ember-moment/helpers/moment-from-now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-from",["exports","ember-moment/helpers/moment-from"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-subtract",["exports","ember-moment/helpers/moment-subtract"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-to-date",["exports","ember-moment/helpers/moment-to-date"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-to-now",["exports","ember-moment/helpers/moment-to-now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-to",["exports","ember-moment/helpers/moment-to"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-unix",["exports","ember-moment/helpers/unix"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment",["exports","ember-moment/helpers/moment"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEqualHelper",{enumerable:!0,get:function(){return t.notEqualHelper}})})),define("kredits-web/helpers/not",["exports","ember-truth-helpers/helpers/not"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})})),define("kredits-web/helpers/now",["exports","ember-moment/helpers/now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/or",["exports","ember-truth-helpers/helpers/or"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})})) -function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}define("kredits-web/helpers/perform",["exports","ember-concurrency/helpers/perform"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/promise-all",["exports","ember-promise-helpers/helpers/promise-all"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/promise-hash",["exports","ember-promise-helpers/helpers/promise-hash"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/promise-rejected-reason",["exports","ember-promise-helpers/helpers/promise-rejected-reason"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/sats-to-btc",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=r})),define("kredits-web/helpers/lt",["exports","ember-truth-helpers/helpers/lt"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lt",{enumerable:!0,get:function(){return t.lt}})})),define("kredits-web/helpers/lte",["exports","ember-truth-helpers/helpers/lte"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"lte",{enumerable:!0,get:function(){return t.lte}})})),define("kredits-web/helpers/moment-add",["exports","ember-moment/helpers/moment-add"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-calendar",["exports","ember-moment/helpers/moment-calendar"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-diff",["exports","ember-moment/helpers/moment-diff"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-duration",["exports","ember-moment/helpers/moment-duration"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-format",["exports","ember-moment/helpers/moment-format"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-from-now",["exports","ember-moment/helpers/moment-from-now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-from",["exports","ember-moment/helpers/moment-from"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-subtract",["exports","ember-moment/helpers/moment-subtract"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-to-date",["exports","ember-moment/helpers/moment-to-date"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-to-now",["exports","ember-moment/helpers/moment-to-now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-to",["exports","ember-moment/helpers/moment-to"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment-unix",["exports","ember-moment/helpers/unix"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/moment",["exports","ember-moment/helpers/moment"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/not-eq",["exports","ember-truth-helpers/helpers/not-equal"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"notEqualHelper",{enumerable:!0,get:function(){return t.notEqualHelper}})})),define("kredits-web/helpers/not",["exports","ember-truth-helpers/helpers/not"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"not",{enumerable:!0,get:function(){return t.not}})})),define("kredits-web/helpers/now",["exports","ember-moment/helpers/now"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})) +function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}define("kredits-web/helpers/or",["exports","ember-truth-helpers/helpers/or"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"or",{enumerable:!0,get:function(){return t.or}})})),define("kredits-web/helpers/perform",["exports","ember-concurrency/helpers/perform"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/promise-all",["exports","ember-promise-helpers/helpers/promise-all"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/promise-hash",["exports","ember-promise-helpers/helpers/promise-hash"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/promise-rejected-reason",["exports","ember-promise-helpers/helpers/promise-rejected-reason"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/sats-to-btc",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.Helper.helper((function(e){return e/1e8})) e.default=t})),define("kredits-web/helpers/task",["exports","ember-concurrency/helpers/task"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/unix",["exports","ember-moment/helpers/unix"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}})})),define("kredits-web/helpers/utc",["exports","ember-moment/helpers/utc"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"utc",{enumerable:!0,get:function(){return t.utc}})})),define("kredits-web/helpers/xor",["exports","ember-truth-helpers/helpers/xor"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"xor",{enumerable:!0,get:function(){return t.xor}})})),define("kredits-web/initializers/app-version",["exports","ember-cli-app-version/initializer-factory","kredits-web/config/environment"],(function(e,t,n){var r,o Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n.default.APP&&(r=n.default.APP.name,o=n.default.APP.version) @@ -458,13 +478,29 @@ if(void 0!==t)throw new TypeError("Derived constructors may only return object o return a(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var l=function(e){(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") -e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)})(f,Ember.Router) -var u,s,l,d=i(f) -function f(){var e -r(this,f) +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)})(d,Ember.Router) +var u,s,l,f=i(d) +function d(){var e +r(this,d) for(var n=arguments.length,o=new Array(n),i=0;i0)){e.next=14 @@ -516,7 +552,7 @@ case 11:this.kredits.set("reimbursementsNeedSync",!0),e.next=16 break case 14:return e.next=16,this.kredits.fetchObjects("Reimbursement",{page:{size:10}}) case 16:case"end":return e.stop()}}),e,this)})),b=function(){var e=this,t=arguments -return new Promise((function(n,r){var o=f.apply(e,t) +return new Promise((function(n,r){var o=d.apply(e,t) function i(e){u(o,n,r,i,a,"next",e)}function a(e){u(o,n,r,i,a,"throw",e)}i(void 0)}))},function(){return b.apply(this,arguments)})},{key:"afterModel",value:function(){this.kredits.reimbursementsNeedSync&&Ember.run.schedule("afterRender",this.kredits.syncReimbursements,this.kredits.syncReimbursements.perform),Ember.run.schedule("afterRender",this.kredits.fetchMissingReimbursements,this.kredits.fetchMissingReimbursements.perform)}}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),y}()).prototype,"browserCache",[t],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=m(r.prototype,"kredits",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r) e.default=y})),define("kredits-web/routes/budget/expenses",["exports"],(function(e){function t(e,t){for(var n=0;n0&&void 0!==n[0]?n[0]:"bitstamp",e.t0=t,e.next="bitstamp"===e.t0?4:10 break case 4:return e.next=6,g("btceur") case 6:return this.btceur=e.sent,e.next=9,g("btcusd") case 9:this.btcusd=e.sent case 10:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})}])&&c(t.prototype,n),r&&c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),b}()).prototype,"btceur",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),u=m(o.prototype,"btcusd",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),o) -e.default=k})),define("kredits-web/services/kredits",["exports","ethers","@kredits/contracts","ember-concurrency","kredits-web/utils/group-by","kredits-web/utils/process-contributor-data","kredits-web/utils/process-contribution-data","kredits-web/utils/process-reimbursement-data","kredits-web/utils/format-kredits","kredits-web/utils/switch-network","kredits-web/config/environment","kredits-web/models/contributor","kredits-web/models/contribution","kredits-web/models/reimbursement"],(function(e,t,n,r,o,i,u,a,s,c,l,d,f,p){function b(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +e.default=k})),define("kredits-web/services/kredits",["exports","ethers","@kredits/contracts","ember-concurrency","kredits-web/utils/group-by","kredits-web/utils/process-contributor-data","kredits-web/utils/process-contribution-data","kredits-web/utils/process-reimbursement-data","kredits-web/utils/format-kredits","kredits-web/utils/switch-network","kredits-web/config/environment","kredits-web/models/contributor","kredits-web/models/contribution","kredits-web/models/reimbursement"],(function(e,t,n,r,o,i,u,a,s,c,l,f,d,p){function b(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(!n){if(Array.isArray(e)||(n=y(e))||t&&e&&"number"==typeof e.length){n&&(e=n) var r=0,o=function(){} return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1 @@ -730,15 +766,15 @@ for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{page:{size:200}} return console.debug("[kredits] Fetching contributions from the network"),this.kredits.Contribution.all(t).then((function(t){return t.map((function(t){return e.loadContributionFromData(t)}))})).then((function(t){var n=t.map((function(t){return e.browserCache.contributions.setItem(t.id.toString(),t.serialize())})) -return Promise.all(n).then((function(){console.debug("[kredits] Cached ".concat(t.length," contributions in browser storage"))}))}))},loadContributionFromData:function(e){var t=f.default.create((0,u.default)(e)) +return Promise.all(n).then((function(){console.debug("[kredits] Cached ".concat(t.length," contributions in browser storage"))}))}))},loadContributionFromData:function(e){var t=d.default.create((0,u.default)(e)) t.set("contributor",this.contributors.findBy("id",e.contributorId)) var n=this.contributions.findBy("id",t.id) return n&&this.contributions.removeObject(n),this.contributions.pushObject(t),t},cacheLoadedContributions:function(){var e=this @@ -822,7 +858,7 @@ case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0) case 14:return t.prev=14,n.f(),t.finish(14) case 17:return console.debug("[kredits] Cached ".concat(e.contributions.length," contributions in browser storage")),t.abrupt("return",Promise.resolve()) case 19:case"end":return t.stop()}}),t,null,[[1,11,14,17]])})))()},loadContributionsFromCache:function(){var e=this -return g(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.browserCache.contributions.iterate((function(t){e.contributions.pushObject(f.default.create(JSON.parse(t)))})).then((function(){console.debug("[kredits] Loaded ".concat(e.contributions.length," contributions from cache"))}))) +return g(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.browserCache.contributions.iterate((function(t){e.contributions.pushObject(d.default.create(JSON.parse(t)))})).then((function(){console.debug("[kredits] Loaded ".concat(e.contributions.length," contributions from cache"))}))) case 1:case"end":return t.stop()}}),t)})))()},contributionTasks:(0,r.taskGroup)().enqueue(),syncContributions:(0,r.task)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchNewContributions.perform() case 2:return e.next=4,this.syncUnconfirmedContributions.perform() case 4:return e.next=6,this.updateMissingHistoricContributionsCount() @@ -948,7 +984,7 @@ return this.kredits.Reimbursement.functions.veto(e,{gasLimit:3e5}).then((functio return g(regeneratorRuntime.mark((function r(){var o,i,u,a,s,c return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(console.debug("[kredits] Contributor add/update event received for ID",e),o=t.length,i=new Array(o>1?o-1:0),u=1;u "],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"

Budget

"],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
    "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3," Expenses "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3," Rewards "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
"],[2,"\\n "],[3," "],[2,"\\n\\n "],[10,"section"],[14,1,"funds"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Community funds"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"budget-balances",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"content"],[12],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsUnconfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-unconfirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Proposed Reimbursements"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsUnconfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-confirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Confirmed Expenses"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsConfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"empty"],[12],[2,"\\n "],[13],[2,"\\n\\n"],[13]],"hasEval":false,"upvars":["if"]}',meta:{moduleName:"kredits-web/templates/budget.hbs"}}) +var t=Ember.HTMLBars.template({id:"NF9wJ3hK",block:'{"symbols":[],"statements":[[10,"main"],[14,1,"budget"],[12],[2,"\\n\\n "],[10,"div"],[14,1,"aside"],[12],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"

Budget

"],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
    "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3," Expenses "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3," Rewards "],[2,"\\n "],[3,"
  • "],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
"],[2,"\\n "],[3,"
"],[2,"\\n\\n "],[10,"section"],[14,1,"funds"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Community funds"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"budget-balances",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"content"],[12],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsUnconfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-unconfirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Proposed Reimbursements"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsUnconfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,0],[[32,0,["reimbursementsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"expenses-confirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Confirmed Reimbursements"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["reimbursements.new","Submit a reimbursement"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"reimbursement-list",[],[["@items"],[[32,0,["reimbursementsConfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"empty"],[12],[2,"\\n "],[13],[2,"\\n\\n"],[13]],"hasEval":false,"upvars":["if"]}',meta:{moduleName:"kredits-web/templates/budget.hbs"}}) e.default=t})),define("kredits-web/templates/budget/expenses",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"GPyv0u4G",block:'{"symbols":[],"statements":[[1,[30,[36,1],[[30,[36,0],null,null]],null]]],"hasEval":false,"upvars":["-outlet","component"]}',meta:{moduleName:"kredits-web/templates/budget/expenses.hbs"}}) e.default=t})),define("kredits-web/templates/components/icon-account-gitea-kosmos-org",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 @@ -998,7 +1036,7 @@ var t=Ember.HTMLBars.template({id:"clbPf+4y",block:'{"symbols":[],"statements":[ e.default=t})),define("kredits-web/templates/contributors/new",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"zY+qbRPK",block:'{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n\\n "],[10,"section"],[14,1,"add-contributor"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Add contributor profile"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-contributor",[],[["@save"],[[30,[36,0],[[32,0],"save"],null]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action"]}',meta:{moduleName:"kredits-web/templates/contributors/new.hbs"}}) e.default=t})),define("kredits-web/templates/dashboard",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 -var t=Ember.HTMLBars.template({id:"x0i2G66s",block:'{"symbols":[],"statements":[[6,[37,2],[[32,0,["showIntroText"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,1,"intro"],[15,0,[30,[36,2],[[32,0,["showDetailsPane"]],"with-details"],null]],[12],[2,"\\n "],[10,"h2"],[12],[2,"\\n Welcome to the contribution dashboard of the\\n "],[10,"a"],[14,6,"https://kosmos.org"],[14,"target","_blank"],[14,"rel","noreferrer noopener"],[12],[2,"Kosmos"],[13],[2," project!\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n If you want to learn more about what the numbers mean and how this works,\\n check out the\\n "],[10,"a"],[14,6,"https://wiki.kosmos.org/Kredits"],[14,"target","_blank"],[14,"rel","noreferrer noopener"],[12],[2,"Kredits documentation"],[13],[2,".\\n If you want to start earning kredits for your contributions,\\n "],[8,"link-to",[],[["@route"],["signup"]],[["default"],[{"statements":[[2,"create a contributor profile"]],"parameters":[]}]]],[2,".\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[10,"main"],[14,1,"dashboard"],[15,0,[30,[36,2],[[32,0,["showDetailsPane"]],"with-details"],null]],[12],[2,"\\n\\n "],[10,"div"],[14,1,"stats"],[12],[2,"\\n "],[10,"section"],[14,1,"people"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Contributors"],[13],[2,"\\n"],[6,[37,2],[[32,0,["kredits","hasAccounts"]]],null,[["default"],[{"statements":[[2," "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["contributors.new","Add contributor profile"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"contributor-list",[],[["@contributorList","@showUnconfirmedKredits","@selectedContributorId","@loading"],[[32,0,["kreditsToplist"]],[32,0,["showUnconfirmedKredits"]],[32,0,["selectedContributorId"]],[32,0,["kredits","syncContributors","isRunning"]]]],null],[2,"\\n\\n "],[10,"p"],[14,0,"stats"],[12],[2,"\\n "],[10,"span"],[14,0,"number"],[12],[1,[30,[36,4],[[32,0,["kredits","totalKreditsEarned"]]],null]],[13],[2," kredits confirmed and issued to\\n "],[10,"span"],[14,0,"number"],[12],[1,[32,0,["contributorsWithKredits","length"]]],[13],[2," contributors\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"stats"],[12],[2,"\\n "],[8,"input",[[24,1,"hide-unnconfirmed-kredits"]],[["@type","@checked"],["checkbox",[32,0,["showUnconfirmedKredits"]]]],null],[2,"\\n "],[10,"label"],[14,"for","hide-unnconfirmed-kredits"],[12],[2,"Show unconfirmed kredits in toplist"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,2],[[32,0,["contributionsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"contributions-by-type"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Contributions by type"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"chart-contributions-by-type",[],[["@contributions"],[[32,0,["contributions"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"contributions"],[12],[2,"\\n"],[6,[37,2],[[32,0,["contributionsUnconfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"contributions-unconfirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"\\n Latest Contributions\\n "],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,3],[[32,0],"toggleQuickFilterUnconfirmed"],null]],[15,0,[31,["small ",[30,[36,2],[[32,0,["showQuickFilterUnconfirmed"]],"active"],null]]]],[14,4,"button"],[12],[2,"\\n filter\\n "],[13],[2,"\\n"],[6,[37,2],[[32,0,["kredits","hasAccounts"]]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["contributions.new","Submit a contribution"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n"],[2," "],[8,"contribution-list",[],[["@contributions","@vetoContribution","@contractInteractionEnabled","@selectedContributionId","@showQuickFilter","@loading"],[[32,0,["contributionsUnconfirmedSorted"]],[30,[36,3],[[32,0],"vetoContribution"],null],[32,0,["kredits","hasAccounts"]],[32,0,["selectedContributionId"]],[32,0,["showQuickFilterUnconfirmed"]],[32,0,["kredits","syncContributions","isRunning"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[32,0,["contributionsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"contributions-confirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Confirmed Contributions"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,3],[[32,0],"toggleQuickFilterConfirmed"],null]],[15,0,[31,["small ",[30,[36,2],[[32,0,["showQuickFilterConfirmed"]],"active"],null]]]],[14,4,"button"],[12],[2,"\\n filter\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"contribution-list",[],[["@contributions","@vetoContribution","@selectedContributionId","@showQuickFilter"],[[32,0,["contributionsConfirmedSorted"]],[30,[36,3],[[32,0],"vetoContribution"],null],[32,0,["selectedContributionId"]],[32,0,["showQuickFilterConfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[32,0,["showFullContributionSync"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"sync-all-contributions"],[12],[2,"\\n"],[6,[37,2],[[32,0,["kredits","fetchMissingContributions","isIdle"]]],null,[["default","else"],[{"statements":[[2," "],[10,"p"],[14,0,"mb-4"],[12],[2,"\\n There are\\n "],[10,"strong"],[12],[1,[32,0,["kredits","missingHistoricContributionsCount"]]],[13],[2,"\\n earlier contributions, which are not currently loaded/displayed.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n You can fetch all historic data in one go, and have it stored locally in\\n your browser:\\n "],[11,"button"],[24,0,"small"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],[[32,0,["kredits","fetchMissingContributions"]]],null]],null],[12],[2,"\\n fetch all data\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"p"],[14,0,"mb-4"],[12],[2,"\\n Syncing data. Please be patient...\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n (You can leave this website anytime and sync missing data when you come back.)\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"details"],[12],[2,"\\n "],[1,[30,[36,6],[[30,[36,5],null,null]],null]],[2,"\\n "],[13],[2,"\\n\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["perform","on","if","action","await","-outlet","component"]}',meta:{moduleName:"kredits-web/templates/dashboard.hbs"}}) +var t=Ember.HTMLBars.template({id:"MmUvWH35",block:'{"symbols":[],"statements":[[10,"main"],[14,1,"dashboard"],[15,0,[30,[36,2],[[32,0,["showDetailsPane"]],"with-details"],null]],[12],[2,"\\n\\n "],[10,"div"],[14,1,"stats"],[12],[2,"\\n "],[10,"section"],[14,1,"people"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Contributors"],[13],[2,"\\n"],[6,[37,2],[[32,0,["kredits","hasAccounts"]]],null,[["default"],[{"statements":[[2," "],[10,"nav"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["contributors.new","Add contributor profile"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"contributor-list",[],[["@contributorList","@showUnconfirmedKredits","@selectedContributorId","@loading"],[[32,0,["kreditsToplist"]],[32,0,["showUnconfirmedKredits"]],[32,0,["selectedContributorId"]],[32,0,["kredits","syncContributors","isRunning"]]]],null],[2,"\\n\\n "],[10,"p"],[14,0,"stats"],[12],[2,"\\n "],[10,"span"],[14,0,"number"],[12],[1,[30,[36,4],[[32,0,["kredits","totalKreditsEarned"]]],null]],[13],[2," kredits confirmed and issued to\\n "],[10,"span"],[14,0,"number"],[12],[1,[32,0,["contributorsWithKredits","length"]]],[13],[2," contributors\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"stats"],[12],[2,"\\n "],[8,"input",[[24,1,"hide-unnconfirmed-kredits"]],[["@type","@checked"],["checkbox",[32,0,["showUnconfirmedKredits"]]]],null],[2,"\\n "],[10,"label"],[14,"for","hide-unnconfirmed-kredits"],[12],[2,"Show unconfirmed kredits in toplist"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,2],[[32,0,["contributionsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"contributions-by-type"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Contributions by type"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"chart-contributions-by-type",[],[["@contributions"],[[32,0,["contributions"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"contributions"],[12],[2,"\\n"],[6,[37,2],[[32,0,["contributionsUnconfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"contributions-unconfirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"\\n Latest Contributions\\n "],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,3],[[32,0],"toggleQuickFilterUnconfirmed"],null]],[15,0,[31,["small ",[30,[36,2],[[32,0,["showQuickFilterUnconfirmed"]],"active"],null]]]],[14,4,"button"],[12],[2,"\\n filter\\n "],[13],[2,"\\n"],[6,[37,2],[[32,0,["kredits","hasAccounts"]]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"button small green"]],[["@route","@title"],["contributions.new","Submit a contribution"]],[["default"],[{"statements":[[2,"add"]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n"],[2," "],[8,"contribution-list",[],[["@contributions","@vetoContribution","@contractInteractionEnabled","@selectedContributionId","@showQuickFilter","@loading"],[[32,0,["contributionsUnconfirmedSorted"]],[30,[36,3],[[32,0],"vetoContribution"],null],[32,0,["kredits","hasAccounts"]],[32,0,["selectedContributionId"]],[32,0,["showQuickFilterUnconfirmed"]],[32,0,["kredits","syncContributions","isRunning"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[32,0,["contributionsConfirmed"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"contributions-confirmed"],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Confirmed Contributions"],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,3],[[32,0],"toggleQuickFilterConfirmed"],null]],[15,0,[31,["small ",[30,[36,2],[[32,0,["showQuickFilterConfirmed"]],"active"],null]]]],[14,4,"button"],[12],[2,"\\n filter\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"contribution-list",[],[["@contributions","@vetoContribution","@selectedContributionId","@showQuickFilter"],[[32,0,["contributionsConfirmedSorted"]],[30,[36,3],[[32,0],"vetoContribution"],null],[32,0,["selectedContributionId"]],[32,0,["showQuickFilterConfirmed"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,2],[[32,0,["showFullContributionSync"]]],null,[["default"],[{"statements":[[2," "],[10,"section"],[14,1,"sync-all-contributions"],[12],[2,"\\n"],[6,[37,2],[[32,0,["kredits","fetchMissingContributions","isIdle"]]],null,[["default","else"],[{"statements":[[2," "],[10,"p"],[14,0,"mb-4"],[12],[2,"\\n There are\\n "],[10,"strong"],[12],[1,[32,0,["kredits","missingHistoricContributionsCount"]]],[13],[2,"\\n earlier contributions, which are not currently loaded/displayed.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n You can fetch all historic data in one go, and have it stored locally in\\n your browser:\\n "],[11,"button"],[24,0,"small"],[24,4,"button"],[4,[38,1],["click",[30,[36,0],[[32,0,["kredits","fetchMissingContributions"]]],null]],null],[12],[2,"\\n fetch all data\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"p"],[14,0,"mb-4"],[12],[2,"\\n Syncing data. Please be patient...\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n (You can leave this website anytime and sync missing data when you come back.)\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,1,"details"],[12],[2,"\\n "],[1,[30,[36,6],[[30,[36,5],null,null]],null]],[2,"\\n "],[13],[2,"\\n\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["perform","on","if","action","await","-outlet","component"]}',meta:{moduleName:"kredits-web/templates/dashboard.hbs"}}) e.default=t})),define("kredits-web/templates/dashboard/contributions/show",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"DufwIN5Z",block:'{"symbols":[],"statements":[[10,"section"],[14,1,"contribution-details"],[15,0,[30,[36,0],[[32,0,["model","vetoed"]],"vetoed"],null]],[12],[2,"\\n "],[10,"header"],[14,0,"with-nav"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Contribution #"],[1,[32,0,["model","id"]]],[13],[2,"\\n "],[10,"nav"],[12],[2,"\\n "],[10,"span"],[14,0,"amount"],[12],[1,[32,0,["model","amount"]]],[13],[2," \\n "],[10,"span"],[14,0,"symbol"],[12],[2,"₭S"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[10,"p"],[14,0,"who-what-when"],[12],[2,"\\n "],[10,"span"],[14,0,"contributor"],[12],[2,"\\n "],[8,"user-avatar",[],[["@contributor"],[[32,0,["model","contributor"]]]],null],[2,"\\n "],[8,"link-to",[],[["@route","@model"],["dashboard.contributors.show",[32,0,["model","contributor"]]]],[["default"],[{"statements":[[1,[32,0,["model","contributor","name"]]]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n contributed\\n "],[10,"span"],[14,0,"date"],[15,"title",[32,0,["model","iso8601Date"]]],[12],[1,[30,[36,1],[[32,0,["model","iso8601Date"]]],null]],[13],[2,":\\n "],[13],[2,"\\n "],[10,"h3"],[12],[1,[32,0,["model","description"]]],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Kind: "],[1,[32,0,["model","kind"]]],[2,"\\n "],[10,"br"],[12],[13],[2,"Status: "],[1,[30,[36,2],[[32,0,["model"]]],null]],[2,"\\n "],[13],[2,"\\n"],[6,[37,0],[[32,0,["model","url"]]],null,[["default"],[{"statements":[[2," "],[10,"p"],[12],[2,"\\n "],[10,"a"],[15,6,[32,0,["model","url"]]],[15,"title",[32,0,["model","description"]]],[14,0,"button"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Open URL\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,0],[[32,0,["model","vetoed"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"hint vetoed"],[12],[2,"\\n "],[10,"div"],[14,0,"icon"],[12],[2,"\\n "],[8,"icon-warning",[],[[],[]],null],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n This contribution has been vetoed, meaning no\\n kredits will be issued.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small green"]],[["@route","@model"],["contributions.resubmit",[32,0,["model"]]]],[["default"],[{"statements":[[2,"Re-submit contribution …"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"actions"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small"]],[["@route","@model"],["contributions.resubmit",[32,0,["model"]]]],[["default"],[{"statements":[[2,"Copy & edit as new"]],"parameters":[]}]]],[2,"\\n"],[6,[37,0],[[32,0,["model","ipfsHash"]]],null,[["default"],[{"statements":[[2," "],[10,"a"],[15,6,[31,[[32,0,["ipfsGatewayUrl"]],"/",[32,0,["model","ipfsHash"]]]]],[14,0,"button small"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Inspect IPFS data\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["if","moment-from","item-status"]}',meta:{moduleName:"kredits-web/templates/dashboard/contributions/show.hbs"}}) e.default=t})),define("kredits-web/templates/dashboard/contributors/show",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 @@ -1007,14 +1045,14 @@ e.default=t})),define("kredits-web/templates/reimbursements/new",["exports"],(fu var t=Ember.HTMLBars.template({id:"4ZGew5Lo",block:'{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n\\n "],[10,"section"],[14,1,"add-item"],[12],[2,"\\n "],[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Submit a Reimbursement"],[13],[2,"\\n "],[13],[2,"\\n\\n "],[10,"div"],[14,0,"content"],[12],[2,"\\n "],[8,"add-reimbursement",[],[["@attributes"],[[32,0,["model","params"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[13]],"hasEval":false,"upvars":[]}',meta:{moduleName:"kredits-web/templates/reimbursements/new.hbs"}}) e.default=t})),define("kredits-web/templates/signup",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"vyvqw+Xa",block:'{"symbols":[],"statements":[[10,"main"],[14,0,"center-column"],[12],[2,"\\n "],[10,"section"],[14,1,"signup"],[12],[2,"\\n "],[1,[30,[36,1],[[30,[36,0],null,null]],null]],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["-outlet","component"]}',meta:{moduleName:"kredits-web/templates/signup.hbs"}}) -e.default=t})),define("kredits-web/templates/signup/account",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 +e.default=t})) +define("kredits-web/templates/signup/account",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"juAngjy3",block:'{"symbols":[],"statements":[[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Complete your contributor profile"],[13],[2,"\\n"],[13],[2,"\\n"],[10,"div"],[14,0,"content text-lg"],[12],[2,"\\n "],[10,"p"],[14,0,"mb-8"],[12],[2,"\\n Kredits allow you to to earn rewards for your contributions, in the form of\\n dynamic open-source grants. As a regular contributor, you can also take\\n part in the community\'s project governance and finances.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n In order to interact with the system you will need a\\n "],[10,"a"],[14,6,"https://rootstock.io"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"Rootstock"],[13],[2,"\\n wallet/account.\\n "],[13],[2,"\\n "],[10,"form"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n "],[10,"label"],[12],[2,"\\n Rootstock address:"],[10,"br"],[12],[13],[2,"\\n "],[8,"input",[[24,"placeholder","0xF18E631Ea191aE4ebE70046Fcb01a436554421BA4"],[16,0,[30,[36,0],[[32,0,["isValidEthAccount"]],"valid",""],null]]],[["@type","@value"],["text",[32,0,["accountAddress"]]]],null],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[11,"button"],[16,"disabled",[32,0,["signupButtonDisabled"]]],[24,4,"button"],[4,[38,2],["click",[30,[36,1],[[32,0,["completeSignup"]]],null]],null],[12],[2,"\\n Complete my profile\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":["if","fn","on"]}',meta:{moduleName:"kredits-web/templates/signup/account.hbs"}}) e.default=t})),define("kredits-web/templates/signup/complete",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"hc80mylW",block:'{"symbols":[],"statements":[[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Welcome aboard!"],[13],[2,"\\n"],[13],[2,"\\n"],[10,"div"],[14,0,"content text-lg text-center"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n Congratulations. Your initial profile is now complete.\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n Why not say hi to your fellow contributors\\n "],[10,"a"],[14,6,"https://wiki.kosmos.org/Main_Page#Community_.2F_Getting_in_touch_.2F_Getting_involved"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"in one of our chat rooms"],[13],[2,"?.\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[8,"link-to",[[24,0,"button small"]],[["@route"],["dashboard"]],[["default"],[{"statements":[[2,"Return to dashboard"]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"],[13]],"hasEval":false,"upvars":[]}',meta:{moduleName:"kredits-web/templates/signup/complete.hbs"}}) e.default=t})),define("kredits-web/templates/signup/index",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=Ember.HTMLBars.template({id:"NAvcexMu",block:'{"symbols":[],"statements":[[10,"header"],[12],[2,"\\n "],[10,"h2"],[12],[2,"Create your contributor profile"],[13],[2,"\\n"],[13],[2,"\\n"],[10,"div"],[14,0,"content text-lg"],[12],[2,"\\n "],[10,"p"],[12],[2,"\\n You have already contributed to a Kosmos project, or you are interested\\n in contributing in the near future? Fantastic!\\n "],[13],[2,"\\n "],[10,"p"],[12],[2,"\\n In order to earn kredits for your contributions, you will need a\\n registered contributor profile. The quickest way to register is by\\n connecting one of the following accounts:\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"actions"],[12],[2,"\\n "],[10,"button"],[15,"onclick",[30,[36,0],[[32,0],"connectGithub"],null]],[14,0,"icon"],[14,4,"button"],[12],[2,"\\n "],[8,"icon-account-github-com",[],[[],[]],null],[2,"\\n Connect GitHub\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["action"]}',meta:{moduleName:"kredits-web/templates/signup/index.hbs"}}) -e.default=t})) -define("kredits-web/utils/format-kredits",["exports","ethers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.default.utils.formatEther(e) +e.default=t})),define("kredits-web/utils/format-kredits",["exports","ethers"],(function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.default.utils.formatEther(e) n.decimals||(r=parseInt(r).toString()) return r}})),define("kredits-web/utils/get-locale",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}})),define("kredits-web/utils/group-by",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){var n=Ember.A(),r=e r&&r.forEach((function(e){var r=e[t],o=n.findBy("value",r) @@ -1040,6 +1078,6 @@ case 13:e.next=16 break case 15:console.warn("Failed to switch chains:",e.t0.message) case 16:case"end":return e.stop()}}),e,null,[[3,8]])})))).apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return o.apply(this,arguments)}})),define("kredits-web/config/environment",[],(function(){try{var e="kredits-web/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))} -return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("kredits-web/app").default.create({name:"kredits-web",version:"2.0.0+bdeab512"}) +return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("kredits-web/app").default.create({name:"kredits-web",version:"2.0.0+03e7f14d"}) -//# sourceMappingURL=kredits-web-c6399723d7220b2a99dd4f3a76ffcb10.map \ No newline at end of file +//# sourceMappingURL=kredits-web-651a47539df240d969d59469e72da490.map \ No newline at end of file diff --git a/release/assets/vendor-4d87b3e0995c5bb18e46836a089900a4.js b/release/assets/vendor-4110d3140aebd1b6753a13f2ebc55dff.js similarity index 72% rename from release/assets/vendor-4d87b3e0995c5bb18e46836a089900a4.js rename to release/assets/vendor-4110d3140aebd1b6753a13f2ebc55dff.js index 9994de4..300428e 100644 --- a/release/assets/vendor-4d87b3e0995c5bb18e46836a089900a4.js +++ b/release/assets/vendor-4110d3140aebd1b6753a13f2ebc55dff.js @@ -31,7 +31,7 @@ if(a)o&&(module.exports=a) else{(a=e.regeneratorRuntime=o?module.exports:{}).wrap=c var s={},u=d.prototype=f.prototype h.prototype=u.constructor=d,d.constructor=h,d[i]=h.displayName="GeneratorFunction",a.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor -return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(u),e},a.awrap=function(e){return new m(e)},p(y.prototype),a.async=function(e,t,r,n){var i=new y(c(e,t,r,n)) +return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(u),e},a.awrap=function(e){return new m(e)},p(v.prototype),a.async=function(e,t,r,n){var i=new v(c(e,t,r,n)) return a.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},p(u),u[n]=function(){return this},u[i]="Generator",u.toString=function(){return"[object Generator]"},a.keys=function(e){var t=[] for(var r in e)t.push(r) return t.reverse(),function r(){for(;t.length;){var n=t.pop() @@ -71,12 +71,12 @@ r.dispatchException(o)&&(i="next",o=void 0)}else"return"===i&&r.abrupt("return", if(n="executing","normal"===(c=l(e,t,r)).type){n=r.done?"completed":"suspendedYield" var f={value:c.arg,done:r.done} if(c.arg!==s)return f -r.delegate&&"next"===i&&(o=void 0)}else"throw"===c.type&&(n="completed",i="throw",o=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}function f(){}function h(){}function d(){}function p(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function m(e){this.arg=e}function y(e){function t(r,n,i,o){var a=l(e[r],e,n) +r.delegate&&"next"===i&&(o=void 0)}else"throw"===c.type&&(n="completed",i="throw",o=c.arg)}}}(e,r,a),o}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}function f(){}function h(){}function d(){}function p(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function m(e){this.arg=e}function v(e){function t(r,n,i,o){var a=l(e[r],e,n) if("throw"!==a.type){var s=a.arg,u=s.value return u instanceof m?Promise.resolve(u.arg).then((function(e){t("next",e,i,o)}),(function(e){t("throw",e,i,o)})):Promise.resolve(u).then((function(e){s.value=e,i(s)}),o)}o(a.arg)}var r -"object"==typeof process&&process.domain&&(t=process.domain.bind(t)),this._invoke=function(e,n){function i(){return new Promise((function(r,i){t(e,n,r,i)}))}return r=r?r.then(i,i):i()}}function v(e){var t={tryLoc:e[0]} +"object"==typeof process&&process.domain&&(t=process.domain.bind(t)),this._invoke=function(e,n){function i(){return new Promise((function(r,i){t(e,n,r,i)}))}return r=r?r.then(i,i):i()}}function y(e){var t={tryLoc:e[0]} 1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{} -t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function w(e){if(e){var r=e[n] +t.type="normal",delete t.arg,e.completion=t}function g(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(y,this),this.reset(!0)}function w(e){if(e){var r=e[n] if(r)return r.call(e) if("function"==typeof e.next)return e if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i>>0 for(t=0;t0)for(r=0;r0)for(r=0;r=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,T=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},C={} +function A(e,t,r){var n=""+Math.abs(e),i=t-n.length +return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,T={},C={} function I(e,t,r,n){var i=n -"string"==typeof n&&(i=function(){return this[n]()}),e&&(C[e]=i),t&&(C[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),r&&(C[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=D(t,e.localeData()),R[t]=R[t]||function(e){var t,r,n,i=e.match(A) +"string"==typeof n&&(i=function(){return this[n]()}),e&&(C[e]=i),t&&(C[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),r&&(C[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=D(t,e.localeData()),T[t]=T[t]||function(e){var t,r,n,i=e.match(j) for(t=0,r=i.length;t=0&&T.test(e);)e=e.replace(T,n),T.lastIndex=0,r-=1 -return e}var L={} -function B(e,t){var r=e.toLowerCase() -L[r]=L[r+"s"]=L[t]=e}function F(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function U(e){var t,r,n={} +return o}}(t),T[t](e)):e.localeData().invalidDate()}function D(e,t){var r=5 +function n(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;r>=0&&R.test(e);)e=e.replace(R,n),R.lastIndex=0,r-=1 +return e}var B={} +function L(e,t){var r=e.toLowerCase() +B[r]=B[r+"s"]=B[t]=e}function F(e){return"string"==typeof e?B[e]||B[e.toLowerCase()]:void 0}function U(e){var t,r,n={} for(r in e)o(e,r)&&(t=F(r))&&(n[t]=e[r]) return n}var z={} -function H(e,t){z[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,r=0 -return 0!==t&&isFinite(t)&&(r=V(t)),r}function Y(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(r=W(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),we(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var $,J=/\d/,Z=/\d\d/,Q=/\d{3}/,X=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,re=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,ae=/[+-]?\d{1,6}/,se=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i -function he(e,t,r){$[e]=S(t)?t:function(e,n){return e&&r?r:t}}function de(e,t){return o($,e)?$[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}$={} +function q(e,t){z[e]=t}function H(e){return e%4==0&&e%100!=0||e%400==0}function V(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,r=0 +return 0!==t&&isFinite(t)&&(r=V(t)),r}function G(e,t){return function(n){return null!=n?(K(this,e,n),r.updateOffset(this,t),this):Y(this,e)}}function Y(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&H(e.year())&&1===e.month()&&29===e.date()?(r=W(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),we(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var J,$=/\d/,Z=/\d\d/,Q=/\d{3}/,X=/\d{4}/,ee=/[+-]?\d{6}/,te=/\d\d?/,re=/\d\d\d\d?/,ne=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,oe=/\d{1,4}/,ae=/[+-]?\d{1,6}/,se=/\d+/,ue=/[+-]?\d+/,ce=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,fe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i +function he(e,t,r){J[e]=S(t)?t:function(e,n){return e&&r?r:t}}function de(e,t){return o(J,e)?J[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i}))))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={} var me={} -function ye(e,t){var r,n,i=t -for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,r){r[t]=W(e)}),n=e.length,r=0;r68?1900:2e3)} -var Te=Y("FullYear",!0) -function Re(e,t,r,n,i,o,a){var s +this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function je(e){return H(e)?366:365}I("Y",0,0,(function(){var e=this.year() +return e<=9999?A(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),L("year","y"),q("year",1),he("Y",ue),he("YY",te,Z),he("YYYY",oe,X),he("YYYYY",ae,ee),he("YYYYYY",ae,ee),ve(["YYYYY","YYYYYY"],0),ve("YYYY",(function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):W(e)})),ve("YY",(function(e,t){t[0]=r.parseTwoDigitYear(e)})),ve("Y",(function(e,t){t[0]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)} +var Re=G("FullYear",!0) +function Te(e,t,r,n,i,o,a){var s return e<100&&e>=0?(s=new Date(e+400,t,r,n,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,o,a),s}function Ce(e){var t,r return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,r){var n=7+t-r return-((7+Ce(e,0,n).getUTCDay()-t)%7)+n-1}function Ne(e,t,r,n,i){var o,a,s=1+7*(t-1)+(7+r-n)%7+Ie(e,n,i) -return s<=0?a=Ae(o=e-1)+s:s>Ae(e)?(o=e+1,a=s-Ae(e)):(o=e,a=s),{year:o,dayOfYear:a}}function De(e,t,r){var n,i,o=Ie(e.year(),t,r),a=Math.floor((e.dayOfYear()-o-1)/7)+1 -return a<1?n=a+Le(i=e.year()-1,t,r):a>Le(e.year(),t,r)?(n=a-Le(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Le(e,t,r){var n=Ie(e,t,r),i=Ie(e+1,t,r) -return(Ae(e)-n+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),B("week","w"),B("isoWeek","W"),H("week",5),H("isoWeek",5),he("w",te),he("ww",te,Z),he("W",te),he("WW",te,Z),ve(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=W(e)})) -function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),B("day","d"),B("weekday","e"),B("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),he("d",te),he("e",te),he("E",te),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict) -null!=i?t.d=i:d(r).invalidWeekday=e})),ve(["d","e","E"],(function(e,t,r,n){t[n]=W(e)})) -var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=fe,qe=fe,Ve=fe +return s<=0?a=je(o=e-1)+s:s>je(e)?(o=e+1,a=s-je(e)):(o=e,a=s),{year:o,dayOfYear:a}}function De(e,t,r){var n,i,o=Ie(e.year(),t,r),a=Math.floor((e.dayOfYear()-o-1)/7)+1 +return a<1?n=a+Be(i=e.year()-1,t,r):a>Be(e.year(),t,r)?(n=a-Be(e.year(),t,r),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Be(e,t,r){var n=Ie(e,t,r),i=Ie(e+1,t,r) +return(je(e)-n+i)/7}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),q("week",5),q("isoWeek",5),he("w",te),he("ww",te,Z),he("W",te),he("WW",te,Z),ye(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=W(e)})) +function Le(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),he("d",te),he("e",te),he("E",te),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),ye(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict) +null!=i?t.d=i:d(r).invalidWeekday=e})),ye(["d","e","E"],(function(e,t,r,n){t[n]=W(e)})) +var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ue="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=fe,He=fe,Ve=fe function We(e,t,r){var n,i,o,a=e.toLocaleLowerCase() if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=h([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase() -return r?"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null}function Ye(){function e(e,t){return t.length-e.length}var t,r,n,i,o,a=[],s=[],u=[],c=[] +return r?"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ge.call(this._shortWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ge.call(this._minWeekdaysParse,a))||-1!==(i=ge.call(this._weekdaysParse,a))||-1!==(i=ge.call(this._shortWeekdaysParse,a))?i:null}function Ge(){function e(e,t){return t.length-e.length}var t,r,n,i,o,a=[],s=[],u=[],c=[] for(t=0;t<7;t++)r=h([2e3,1]).day(t),n=pe(this.weekdaysMin(r,"")),i=pe(this.weekdaysShort(r,"")),o=pe(this.weekdays(r,"")),a.push(n),s.push(i),u.push(o),c.push(n),c.push(i),c.push(o) -a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ge(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function $e(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ge),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ge.apply(this)+j(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ge.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),B("hour","h"),H("hour",13),he("a",$e),he("A",$e),he("H",te),he("h",te),he("k",te),he("HH",te,Z),he("hh",te,Z),he("kk",te,Z),he("hmm",re),he("hmmss",ne),he("Hmm",re),he("Hmmss",ne),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,r){var n=W(e) -t[3]=24===n?0:n})),ye(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),ye(["h","hh"],(function(e,t,r){t[3]=W(e),d(r).bigHour=!0})),ye("hmm",(function(e,t,r){var n=e.length-2 -t[3]=W(e.substr(0,n)),t[4]=W(e.substr(n)),d(r).bigHour=!0})),ye("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2 -t[3]=W(e.substr(0,n)),t[4]=W(e.substr(n,2)),t[5]=W(e.substr(i)),d(r).bigHour=!0})),ye("Hmm",(function(e,t,r){var n=e.length-2 +a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ye(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Je(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Ye),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Ye.apply(this)+A(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Ye.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),L("hour","h"),q("hour",13),he("a",Je),he("A",Je),he("H",te),he("h",te),he("k",te),he("HH",te,Z),he("hh",te,Z),he("kk",te,Z),he("hmm",re),he("hmmss",ne),he("Hmm",re),he("Hmmss",ne),ve(["H","HH"],3),ve(["k","kk"],(function(e,t,r){var n=W(e) +t[3]=24===n?0:n})),ve(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),ve(["h","hh"],(function(e,t,r){t[3]=W(e),d(r).bigHour=!0})),ve("hmm",(function(e,t,r){var n=e.length-2 +t[3]=W(e.substr(0,n)),t[4]=W(e.substr(n)),d(r).bigHour=!0})),ve("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2 +t[3]=W(e.substr(0,n)),t[4]=W(e.substr(n,2)),t[5]=W(e.substr(i)),d(r).bigHour=!0})),ve("Hmm",(function(e,t,r){var n=e.length-2 t[3]=W(e.substr(0,n)),t[4]=W(e.substr(n))})) -ye("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2 +ve("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2 t[3]=W(e.substr(0,n)),t[4]=W(e.substr(n,2)),t[5]=W(e.substr(i))})) -var Je=Y("Hours",!0) -var Ze,Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_e,monthsShort:xe,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:ze,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},Xe={},et={} +var $e=G("Hours",!0) +var Ze,Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_e,monthsShort:ke,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:ze,weekdaysShort:Ue,meridiemParse:/[ap]\.?m?\.?/i},Xe={},et={} function tt(e,t){var r,n=Math.min(e.length,t.length) for(r=0;r=t&&tt(i,r)>=t-1)break t--}o++}return Ze}(e)}function st(e){var t,r=e._a return r&&-2===d(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>we(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,d(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),d(e)._overflowWeeks&&-1===t&&(t=7),d(e)._overflowWeekday&&-1===t&&(t=8),d(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ct=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,lt=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dt=/^\/?Date\((-?\d+)/i,pt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480} -function yt(e){var t,r,n,i,o,a,s=e._i,u=ut.exec(s)||ct.exec(s),c=ft.length,l=ht.length +function vt(e){var t,r,n,i,o,a,s=e._i,u=ut.exec(s)||ct.exec(s),c=ft.length,l=ht.length if(u){for(d(e).iso=!0,t=0,r=c;t7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=De(Ot(),o,a),r=gt(t.gg,e._a[0],c.year),n=gt(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o) -n<1||n>Le(r,o,a)?d(e)._overflowWeeks=!0:null!=u?d(e)._overflowWeekday=!0:(s=Ne(r,n,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=gt(e._a[0],i[0]),(e._dayOfYear>Ae(a)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),n=Ce(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t] +n<1||n>Be(r,o,a)?d(e)._overflowWeeks=!0:null!=u?d(e)._overflowWeekday=!0:(s=Ne(r,n,i,o,a),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=gt(e._a[0],i[0]),(e._dayOfYear>je(a)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),n=Ce(a,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t] for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t] -24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ce:Re).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(d(e).weekdayMismatch=!0)}}function _t(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],d(e).empty=!0 +24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ce:Te).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(d(e).weekdayMismatch=!0)}}function _t(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],d(e).empty=!0 var t,n,i,o,a,s,u,c=""+e._i,l=c.length,f=0 -for(u=(i=D(e._f,e._locale).match(A)||[]).length,t=0;t0&&d(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),f+=n.length),C[o]?(n?d(e).empty=!1:d(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&d(e).unusedTokens.push(o) +for(u=(i=D(e._f,e._locale).match(j)||[]).length,t=0;t0&&d(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),f+=n.length),C[o]?(n?d(e).empty=!1:d(e).unusedTokens.push(o),be(o,n,e)):e._strict&&!n&&d(e).unusedTokens.push(o) d(e).charsLeftOver=l-f,c.length>0&&d(e).unusedInput.push(c),e._a[3]<=12&&!0===d(e).bigHour&&e._a[3]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[3]=function(e,t,r){var n if(null==r)return t return null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=d(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),st(e)}else bt(e) -else yt(e)}function xt(e){var t=e._i,o=e._f +else vt(e)}function kt(e){var t=e._i,o=e._f return e._locale=e._locale||at(e._l),null===t||void 0===o&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new g(st(t)):(c(t)?e._d=t:n(o)?function(e){var t,r,n,i,o,a,s=!1,u=e._f.length if(0===u)return d(e).invalidFormat=!0,void(e._d=new Date(NaN)) for(i=0;ithis?this:e:m()})) function Pt(e,t){var r,i if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return Ot() for(r=t[0],i=1;i=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function rr(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function nr(e,t){return t.erasAbbrRegex(e)}function ir(){var e,t,r=[],n=[],i=[],o=[],a=this.eras() for(e=0,t=a.length;e(o=Le(e,n,i))&&(t=o),sr.call(this,e,t,r,n,i))}function sr(e,t,r,n,i){var o=Ne(e,t,r,n,i),a=Ce(o.year,0,o.dayOfYear) -return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",nr),he("NN",nr),he("NNN",nr),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict) -i?d(r).era=i:d(r).invalidEra=e})),he("y",se),he("yy",se),he("yyy",se),he("yyyy",se),he("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,r,n){var i -r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),or("gggg","weekYear"),or("ggggg","weekYear"),or("GGGG","isoWeekYear"),or("GGGGG","isoWeekYear"),B("weekYear","gg"),B("isoWeekYear","GG") -H("weekYear",1),H("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",te,Z),he("gg",te,Z),he("GGGG",oe,X),he("gggg",oe,X),he("GGGGG",ae,ee),he("ggggg",ae,ee),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=W(e)})),ve(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),B("quarter","Q"),H("quarter",7),he("Q",J),ye("Q",(function(e,t){t[1]=3*(W(e)-1)})),I("D",["DD",2],"Do","date"),B("date","D"),H("date",9),he("D",te),he("DD",te,Z),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=W(e.match(te)[0])})) -var ur=Y("Date",!0) -I("DDD",["DDDD",3],"DDDo","dayOfYear"),B("dayOfYear","DDD"),H("dayOfYear",4),he("DDD",ie),he("DDDD",Q),ye(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=W(e)})),I("m",["mm",2],0,"minute"),B("minute","m"),H("minute",14),he("m",te),he("mm",te,Z),ye(["m","mm"],4) -var cr=Y("Minutes",!1) -I("s",["ss",2],0,"second"),B("second","s"),H("second",15),he("s",te),he("ss",te,Z),ye(["s","ss"],5) -var lr,fr,hr=Y("Seconds",!1) -for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),B("millisecond","ms"),H("millisecond",16),he("S",ie,J),he("SS",ie,Z),he("SSS",ie,Q),lr="SSSS";lr.length<=9;lr+="S")he(lr,se) -function dr(e,t){t[6]=W(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")ye(lr,dr) -fr=Y("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName") +return null==e?De(this,n,i).year:(t>(o=Be(e,n,i))&&(t=o),sr.call(this,e,t,r,n,i))}function sr(e,t,r,n,i){var o=Ne(e,t,r,n,i),a=Ce(o.year,0,o.dayOfYear) +return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),he("N",nr),he("NN",nr),he("NNN",nr),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ve(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict) +i?d(r).era=i:d(r).invalidEra=e})),he("y",se),he("yy",se),he("yyy",se),he("yyyy",se),he("yo",(function(e,t){return t._eraYearOrdinalRegex||se})),ve(["y","yy","yyy","yyyy"],0),ve(["yo"],(function(e,t,r,n){var i +r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),or("gggg","weekYear"),or("ggggg","weekYear"),or("GGGG","isoWeekYear"),or("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG") +q("weekYear",1),q("isoWeekYear",1),he("G",ue),he("g",ue),he("GG",te,Z),he("gg",te,Z),he("GGGG",oe,X),he("gggg",oe,X),he("GGGGG",ae,ee),he("ggggg",ae,ee),ye(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=W(e)})),ye(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),L("quarter","Q"),q("quarter",7),he("Q",$),ve("Q",(function(e,t){t[1]=3*(W(e)-1)})),I("D",["DD",2],"Do","date"),L("date","D"),q("date",9),he("D",te),he("DD",te,Z),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ve(["D","DD"],2),ve("Do",(function(e,t){t[2]=W(e.match(te)[0])})) +var ur=G("Date",!0) +I("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),q("dayOfYear",4),he("DDD",ie),he("DDDD",Q),ve(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=W(e)})),I("m",["mm",2],0,"minute"),L("minute","m"),q("minute",14),he("m",te),he("mm",te,Z),ve(["m","mm"],4) +var cr=G("Minutes",!1) +I("s",["ss",2],0,"second"),L("second","s"),q("second",15),he("s",te),he("ss",te,Z),ve(["s","ss"],5) +var lr,fr,hr=G("Seconds",!1) +for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),L("millisecond","ms"),q("millisecond",16),he("S",ie,$),he("SS",ie,Z),he("SSS",ie,Q),lr="SSSS";lr.length<=9;lr+="S")he(lr,se) +function dr(e,t){t[6]=W(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")ve(lr,dr) +fr=G("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName") var pr=g.prototype -function mr(e){return e}pr.add=Wt,pr.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):$t(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0)) +function mr(e){return e}pr.add=Wt,pr.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Jt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0)) var n=e||Ot(),i=Nt(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(S(t[o])?t[o].call(this,n):t[o]) return this.format(a||this.localeData().calendar(o,this,Ot(n)))},pr.clone=function(){return new g(this)},pr.diff=function(e,t,r){var n,i,o if(!this.isValid())return NaN if(!(n=Nt(e,this)).isValid())return NaN -switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=Jt(this,n)/12 +switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=F(t)){case"year":o=$t(this,n)/12 break -case"month":o=Jt(this,n) +case"month":o=$t(this,n) break -case"quarter":o=Jt(this,n)/3 +case"quarter":o=$t(this,n)/3 break case"second":o=(this-n)/1e3 break @@ -343,7 +343,7 @@ case"hour":t=this._d.valueOf(),t-=er(t+(this._isUTC?0:6e4*this.utcOffset()),36e5 break case"minute":t=this._d.valueOf(),t-=er(t,6e4) break -case"second":t=this._d.valueOf(),t-=er(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},pr.subtract=Yt,pr.toArray=function(){var e=this +case"second":t=this._d.valueOf(),t-=er(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},pr.subtract=Gt,pr.toArray=function(){var e=this return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},pr.toObject=function(){var e=this return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}} pr.toDate=function(){return new Date(this.valueOf())},pr.toISOString=function(e){if(!this.isValid())return null @@ -358,11 +358,11 @@ if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""},pr.eraAbbr=function for(e=0,t=n.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pr.isLocal=function(){return!!this.isValid()&&!this._isUTC},pr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pr.isUtc=Lt,pr.isUTC=Lt,pr.zoneAbbr=function(){return this._isUTC?"UTC":""},pr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pr.dates=x("dates accessor is deprecated. Use date instead.",ur),pr.months=x("months accessor is deprecated. Use month instead",Me),pr.years=x("years accessor is deprecated. Use year instead",Te),pr.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),pr.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted +null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},pr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pr.isLocal=function(){return!!this.isValid()&&!this._isUTC},pr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pr.isUtc=Bt,pr.isUTC=Bt,pr.zoneAbbr=function(){return this._isUTC?"UTC":""},pr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pr.dates=k("dates accessor is deprecated. Use date instead.",ur),pr.months=k("months accessor is deprecated. Use month instead",Me),pr.years=k("years accessor is deprecated. Use year instead",Re),pr.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),pr.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted var e,t={} -return b(t,this),(t=xt(t))._a?(e=t._isUTC?h(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0 +return b(t,this),(t=kt(t))._a?(e=t._isUTC?h(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0 for(n=0;n0):this._isDSTShifted=!1,this._isDSTShifted})) -var yr=M.prototype -function vr(e,t,r,n){var i=at(),o=h().set(n,t) -return i[r](o,e)}function br(e,t,r){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return vr(e,t,r,"month") +var vr=M.prototype +function yr(e,t,r,n){var i=at(),o=h().set(n,t) +return i[r](o,e)}function br(e,t,r){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return yr(e,t,r,"month") var n,i=[] -for(n=0;n<12;n++)i[n]=vr(e,n,r,"month") +for(n=0;n<12;n++)i[n]=yr(e,n,r,"month") return i}function gr(e,t,r,n){"boolean"==typeof e?(u(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,u(t)&&(r=t,t=void 0),t=t||"") var i,o=at(),a=e?o._week.dow:0,s=[] -if(null!=r)return vr(t,(r+a)%7,n,"day") -for(i=0;i<7;i++)s[i]=vr(t,(i+a)%7,n,"day") -return s}yr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse -return S(n)?n.call(t,r):n},yr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()] -return t||!r?t:(this._longDateFormat[e]=r.match(A).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yr.invalidDate=function(){return this._invalidDate},yr.ordinal=function(e){return this._ordinal.replace("%d",e)},yr.preparse=mr,yr.postformat=mr,yr.relativeTime=function(e,t,r,n){var i=this._relativeTime[r] -return S(i)?i(e,t,r,n):i.replace(/%d/i,e)},yr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"] -return S(r)?r(t):r.replace(/%s/i,t)},yr.set=function(e){var t,r +if(null!=r)return yr(t,(r+a)%7,n,"day") +for(i=0;i<7;i++)s[i]=yr(t,(i+a)%7,n,"day") +return s}vr.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse +return S(n)?n.call(t,r):n},vr.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()] +return t||!r?t:(this._longDateFormat[e]=r.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},vr.invalidDate=function(){return this._invalidDate},vr.ordinal=function(e){return this._ordinal.replace("%d",e)},vr.preparse=mr,vr.postformat=mr,vr.relativeTime=function(e,t,r,n){var i=this._relativeTime[r] +return S(i)?i(e,t,r,n):i.replace(/%d/i,e)},vr.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"] +return S(r)?r(t):r.replace(/%s/i,t)},vr.set=function(e){var t,r for(r in e)o(e,r)&&(S(t=e[r])?this[r]=t:this["_"+r]=t) -this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yr.eras=function(e,t){var n,i,o,a=this._eras||at("en")._eras +this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vr.eras=function(e,t){var n,i,o,a=this._eras||at("en")._eras for(n=0,i=a.length;n=0)return u[n]},yr.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1 -return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},yr.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||ir.call(this),e?this._erasAbbrRegex:this._erasRegex},yr.erasNameRegex=function(e){return o(this,"_erasNameRegex")||ir.call(this),e?this._erasNameRegex:this._erasRegex},yr.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||ir.call(this),e?this._erasNarrowRegex:this._erasRegex},yr.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},yr.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yr.monthsParse=function(e,t,r){var n,i,o +case"NNNNN":if(s===e)return u[n]}else if([o,a,s].indexOf(e)>=0)return u[n]},vr.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1 +return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},vr.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||ir.call(this),e?this._erasAbbrRegex:this._erasRegex},vr.erasNameRegex=function(e){return o(this,"_erasNameRegex")||ir.call(this),e?this._erasNameRegex:this._erasRegex},vr.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||ir.call(this),e?this._erasNarrowRegex:this._erasRegex},vr.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||xe).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},vr.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[xe.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vr.monthsParse=function(e,t,r){var n,i,o if(this._monthsParseExact)return Se.call(this,e,t,r) for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=h([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n -if(!r&&this._monthsParse[n].test(e))return n}},yr.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yr.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yr.week=function(e){return De(e,this._week.dow,this._week.doy).week},yr.firstDayOfYear=function(){return this._week.doy},yr.firstDayOfWeek=function(){return this._week.dow},yr.weekdays=function(e,t){var r=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"] -return!0===e?Be(r,this._week.dow):e?r[e.day()]:r},yr.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yr.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yr.weekdaysParse=function(e,t,r){var n,i,o +if(!r&&this._monthsParse[n].test(e))return n}},vr.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},vr.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},vr.week=function(e){return De(e,this._week.dow,this._week.doy).week},vr.firstDayOfYear=function(){return this._week.doy},vr.firstDayOfWeek=function(){return this._week.dow},vr.weekdays=function(e,t){var r=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"] +return!0===e?Le(r,this._week.dow):e?r[e.day()]:r},vr.weekdaysMin=function(e){return!0===e?Le(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},vr.weekdaysShort=function(e){return!0===e?Le(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},vr.weekdaysParse=function(e,t,r){var n,i,o if(this._weekdaysParseExact)return We.call(this,e,t,r) for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=h([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n -if(!r&&this._weekdaysParse[n].test(e))return n}},yr.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ye.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)} -yr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10 -return e+(1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",at) +if(!r&&this._weekdaysParse[n].test(e))return n}},vr.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},vr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=He),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)} +vr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},vr.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10 +return e+(1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",it),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",at) var wr=Math.abs function _r(e,t,r,n){var i=Ut(t,r) -return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function xr(e){return e<0?Math.floor(e):Math.ceil(e)}function kr(e){return 4800*e/146097}function Or(e){return 146097*e/4800}function Er(e){return function(){return this.as(e)}}var Sr=Er("ms"),Pr=Er("s"),Mr=Er("m"),jr=Er("h"),Ar=Er("d"),Tr=Er("w"),Rr=Er("M"),Cr=Er("Q"),Ir=Er("y") -function Nr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dr=Nr("milliseconds"),Lr=Nr("seconds"),Br=Nr("minutes"),Fr=Nr("hours"),Ur=Nr("days"),zr=Nr("months"),Hr=Nr("years") -var qr=Math.round,Vr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11} -function Wr(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}var Yr=Math.abs -function Gr(e){return(e>0)-(e<0)||+e}function Kr(){if(!this.isValid())return this.localeData().invalidDate() -var e,t,r,n,i,o,a,s,u=Yr(this._milliseconds)/1e3,c=Yr(this._days),l=Yr(this._months),f=this.asSeconds() -return f?(e=V(u/60),t=V(e/60),u%=60,e%=60,r=V(l/12),l%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=Gr(this._months)!==Gr(f)?"-":"",a=Gr(this._days)!==Gr(f)?"-":"",s=Gr(this._milliseconds)!==Gr(f)?"-":"",i+"P"+(r?o+r+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+n+"S":"")):"P0D"}var $r=jt.prototype -return $r.isValid=function(){return this._isValid},$r.abs=function(){var e=this._data -return this._milliseconds=wr(this._milliseconds),this._days=wr(this._days),this._months=wr(this._months),e.milliseconds=wr(e.milliseconds),e.seconds=wr(e.seconds),e.minutes=wr(e.minutes),e.hours=wr(e.hours),e.months=wr(e.months),e.years=wr(e.years),this},$r.add=function(e,t){return _r(this,e,t,1)},$r.subtract=function(e,t){return _r(this,e,t,-1)},$r.as=function(e){if(!this.isValid())return NaN +return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function kr(e){return e<0?Math.floor(e):Math.ceil(e)}function xr(e){return 4800*e/146097}function Or(e){return 146097*e/4800}function Er(e){return function(){return this.as(e)}}var Sr=Er("ms"),Pr=Er("s"),Mr=Er("m"),Ar=Er("h"),jr=Er("d"),Rr=Er("w"),Tr=Er("M"),Cr=Er("Q"),Ir=Er("y") +function Nr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dr=Nr("milliseconds"),Br=Nr("seconds"),Lr=Nr("minutes"),Fr=Nr("hours"),Ur=Nr("days"),zr=Nr("months"),qr=Nr("years") +var Hr=Math.round,Vr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11} +function Wr(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}var Gr=Math.abs +function Yr(e){return(e>0)-(e<0)||+e}function Kr(){if(!this.isValid())return this.localeData().invalidDate() +var e,t,r,n,i,o,a,s,u=Gr(this._milliseconds)/1e3,c=Gr(this._days),l=Gr(this._months),f=this.asSeconds() +return f?(e=V(u/60),t=V(e/60),u%=60,e%=60,r=V(l/12),l%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",o=Yr(this._months)!==Yr(f)?"-":"",a=Yr(this._days)!==Yr(f)?"-":"",s=Yr(this._milliseconds)!==Yr(f)?"-":"",i+"P"+(r?o+r+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+n+"S":"")):"P0D"}var Jr=At.prototype +return Jr.isValid=function(){return this._isValid},Jr.abs=function(){var e=this._data +return this._milliseconds=wr(this._milliseconds),this._days=wr(this._days),this._months=wr(this._months),e.milliseconds=wr(e.milliseconds),e.seconds=wr(e.seconds),e.minutes=wr(e.minutes),e.hours=wr(e.hours),e.months=wr(e.months),e.years=wr(e.years),this},Jr.add=function(e,t){return _r(this,e,t,1)},Jr.subtract=function(e,t){return _r(this,e,t,-1)},Jr.as=function(e){if(!this.isValid())return NaN var t,r,n=this._milliseconds -if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+kr(t),e){case"month":return r +if("month"===(e=F(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+xr(t),e){case"month":return r case"quarter":return r/3 case"year":return r/12}else switch(t=this._days+Math.round(Or(this._months)),e){case"week":return t/7+n/6048e5 case"day":return t+n/864e5 @@ -437,17 +437,17 @@ case"hour":return 24*t+n/36e5 case"minute":return 1440*t+n/6e4 case"second":return 86400*t+n/1e3 case"millisecond":return Math.floor(864e5*t)+n -default:throw new Error("Unknown unit "+e)}},$r.asMilliseconds=Sr,$r.asSeconds=Pr,$r.asMinutes=Mr,$r.asHours=jr,$r.asDays=Ar,$r.asWeeks=Tr,$r.asMonths=Rr,$r.asQuarters=Cr,$r.asYears=Ir,$r.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},$r._bubble=function(){var e,t,r,n,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data -return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*xr(Or(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=V(o/1e3),u.seconds=e%60,t=V(e/60),u.minutes=t%60,r=V(t/60),u.hours=r%24,a+=V(r/24),s+=i=V(kr(a)),a-=xr(Or(i)),n=V(s/12),s%=12,u.days=a,u.months=s,u.years=n,this},$r.clone=function(){return Ut(this)},$r.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},$r.milliseconds=Dr,$r.seconds=Lr,$r.minutes=Br,$r.hours=Fr,$r.days=Ur,$r.weeks=function(){return V(this.days()/7)},$r.months=zr,$r.years=Hr,$r.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate() +default:throw new Error("Unknown unit "+e)}},Jr.asMilliseconds=Sr,Jr.asSeconds=Pr,Jr.asMinutes=Mr,Jr.asHours=Ar,Jr.asDays=jr,Jr.asWeeks=Rr,Jr.asMonths=Tr,Jr.asQuarters=Cr,Jr.asYears=Ir,Jr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},Jr._bubble=function(){var e,t,r,n,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data +return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*kr(Or(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=V(o/1e3),u.seconds=e%60,t=V(e/60),u.minutes=t%60,r=V(t/60),u.hours=r%24,a+=V(r/24),s+=i=V(xr(a)),a-=kr(Or(i)),n=V(s/12),s%=12,u.days=a,u.months=s,u.years=n,this},Jr.clone=function(){return Ut(this)},Jr.get=function(e){return e=F(e),this.isValid()?this[e+"s"]():NaN},Jr.milliseconds=Dr,Jr.seconds=Br,Jr.minutes=Lr,Jr.hours=Fr,Jr.days=Ur,Jr.weeks=function(){return V(this.days()/7)},Jr.months=zr,Jr.years=qr,Jr.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate() var r,n,i=!1,o=Vr -return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},Vr,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=function(e,t,r,n){var i=Ut(e).abs(),o=qr(i.as("s")),a=qr(i.as("m")),s=qr(i.as("h")),u=qr(i.as("d")),c=qr(i.as("M")),l=qr(i.as("w")),f=qr(i.as("y")),h=o<=r.ss&&["s",o]||o0,h[4]=n,Wr.apply(null,h)}(this,!i,o,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)},$r.toISOString=Kr,$r.toString=Kr,$r.toJSON=Kr,$r.locale=Zt,$r.localeData=Xt,$r.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kr),$r.lang=Qt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",ue),he("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,r){r._d=new Date(W(e))})), +return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},Vr,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),n=function(e,t,r,n){var i=Ut(e).abs(),o=Hr(i.as("s")),a=Hr(i.as("m")),s=Hr(i.as("h")),u=Hr(i.as("d")),c=Hr(i.as("M")),l=Hr(i.as("w")),f=Hr(i.as("y")),h=o<=r.ss&&["s",o]||o0,h[4]=n,Wr.apply(null,h)}(this,!i,o,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)},Jr.toISOString=Kr,Jr.toString=Kr,Jr.toJSON=Kr,Jr.locale=Zt,Jr.localeData=Xt,Jr.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kr),Jr.lang=Qt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),he("x",ue),he("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),ve("x",(function(e,t,r){r._d=new Date(W(e))})), //! moment.js r.version="2.29.3",e=Ot,r.fn=pr,r.min=function(){var e=[].slice.call(arguments,0) return Pt("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0) -return Pt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Ot(1e3*e)},r.months=function(e,t){return br(e,t,"months")},r.isDate=c,r.locale=it,r.invalid=m,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,r){return gr(e,t,r,"weekdays")},r.parseZone=function(){return Ot.apply(null,arguments).parseZone()},r.localeData=at,r.isDuration=At,r.monthsShort=function(e,t){return br(e,t,"monthsShort")},r.weekdaysMin=function(e,t,r){return gr(e,t,r,"weekdaysMin")},r.defineLocale=ot,r.updateLocale=function(e,t){if(null!=t){var r,n,i=Qe +return Pt("isAfter",e)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(e){return Ot(1e3*e)},r.months=function(e,t){return br(e,t,"months")},r.isDate=c,r.locale=it,r.invalid=m,r.duration=Ut,r.isMoment=w,r.weekdays=function(e,t,r){return gr(e,t,r,"weekdays")},r.parseZone=function(){return Ot.apply(null,arguments).parseZone()},r.localeData=at,r.isDuration=jt,r.monthsShort=function(e,t){return br(e,t,"monthsShort")},r.weekdaysMin=function(e,t,r){return gr(e,t,r,"weekdaysMin")},r.defineLocale=ot,r.updateLocale=function(e,t){if(null!=t){var r,n,i=Qe null!=Xe[e]&&null!=Xe[e].parentLocale?Xe[e].set(P(Xe[e]._config,t)):(null!=(n=nt(e))&&(i=n._config),t=P(i,t),null==n&&(t.abbr=e),(r=new M(t)).parentLocale=Xe[e],Xe[e]=r),it(e)}else null!=Xe[e]&&(null!=Xe[e].parentLocale?(Xe[e]=Xe[e].parentLocale,e===it()&&it(e)):null!=Xe[e]&&delete Xe[e]) -return Xe[e]},r.locales=function(){return k(Xe)},r.weekdaysShort=function(e,t,r){return gr(e,t,r,"weekdaysShort")},r.normalizeUnits=F,r.relativeTimeRounding=function(e){return void 0===e?qr:"function"==typeof e&&(qr=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vr[e]&&(void 0===t?Vr[e]:(Vr[e]=t,"s"===e&&(Vr.ss=t-1),!0))},r.calendarFormat=function(e,t){var r=e.diff(t,"days",!0) +return Xe[e]},r.locales=function(){return x(Xe)},r.weekdaysShort=function(e,t,r){return gr(e,t,r,"weekdaysShort")},r.normalizeUnits=F,r.relativeTimeRounding=function(e){return void 0===e?Hr:"function"==typeof e&&(Hr=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==Vr[e]&&(void 0===t?Vr[e]:(Vr[e]=t,"s"===e&&(Vr.ss=t-1),!0))},r.calendarFormat=function(e,t){var r=e.diff(t,"days",!0) return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},r.prototype=pr,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r})),function(){ /*! * @overview Ember - JavaScript Application Framework @@ -539,7 +539,7 @@ r=o,n.isDynamic||(this.injections=o)}var a=r if(void 0!==e&&(a=(0,i.assign)({},r,e)),!this.class.create)throw new Error("Failed to create an instance of '"+this.normalizedName+"'. Most likely an improperly defined class or an invalid module export.") "function"==typeof this.class._initFactory?this.class._initFactory(this):(void 0!==e&&void 0!==a||(a=(0,i.assign)({},a)),(0,t.setOwner)(a,this.owner)) var s=this.class.create(a) -return p.set(s,this),s},e}(),y=/^[^:]+:[^:]+$/,v=function(){function e(e){void 0===e&&(e={}),this.fallback=e.fallback||null,this.resolver=e.resolver||null,this.registrations=(0,r.dictionary)(e.registrations||null),this._typeInjections=(0,r.dictionary)(null),this._injections=(0,r.dictionary)(null),this._localLookupCache=Object.create(null),this._normalizeCache=(0,r.dictionary)(null),this._resolveCache=(0,r.dictionary)(null),this._failSet=new Set,this._options=(0,r.dictionary)(null),this._typeOptions=(0,r.dictionary)(null)}var t=e.prototype +return p.set(s,this),s},e}(),v=/^[^:]+:[^:]+$/,y=function(){function e(e){void 0===e&&(e={}),this.fallback=e.fallback||null,this.resolver=e.resolver||null,this.registrations=(0,r.dictionary)(e.registrations||null),this._typeInjections=(0,r.dictionary)(null),this._injections=(0,r.dictionary)(null),this._localLookupCache=Object.create(null),this._normalizeCache=(0,r.dictionary)(null),this._resolveCache=(0,r.dictionary)(null),this._failSet=new Set,this._options=(0,r.dictionary)(null),this._typeOptions=(0,r.dictionary)(null)}var t=e.prototype return t.container=function(e){return new o(this,e)},t.register=function(e,t,r){void 0===r&&(r={}) var n=this.normalize(e) this._failSet.delete(n),this.registrations[n]=t,this._options[n]=r},t.unregister=function(e){var t=this.normalize(e) @@ -556,7 +556,7 @@ var n=e.split(":")[0] return(r=this._typeOptions[n])&&void 0!==r[t]?r[t]:null!==this.fallback?this.fallback.getOption(e,t):void 0},t.typeInjection=function(e,t,r){r.split(":")[0];(this._typeInjections[e]||(this._typeInjections[e]=[])).push({property:t,specifier:r})},t.injection=function(e,t,r){var n=this.normalize(r) if(-1===e.indexOf(":"))return this.typeInjection(e,t,n) var i=this.normalize(e);(this._injections[i]||(this._injections[i]=[])).push({property:t,specifier:n})},t.knownForType=function(e){for(var t,n,o=(0,r.dictionary)(null),a=Object.keys(this.registrations),s=0;s0){var i=n[n.length-1] "object"==typeof i&&null!==i&&i.isQueryParams&&(this.query=i.values,n.pop())}}}}) e.LinkComponent=X,X.toString=function(){return"@ember/routing/link-component"},X.reopenClass({positionalParams:"params"}) var ee=(0,s.symbol)("RECOMPUTE_TAG") -function te(e){return void 0!==e.destroy}var re=a.FrameworkObject.extend({init:function(){this._super.apply(this,arguments),this[ee]=(0,h.createTag)()},recompute:function(){var e=this;(0,y.join)((function(){return(0,h.dirtyTag)(e[ee])}))}}) +function te(e){return void 0!==e.destroy}var re=a.FrameworkObject.extend({init:function(){this._super.apply(this,arguments),this[ee]=(0,h.createTag)()},recompute:function(){var e=this;(0,v.join)((function(){return(0,h.dirtyTag)(e[ee])}))}}) e.Helper=re,re.isHelperFactory=!0,(0,a.setFrameworkClass)(re) var ne=function(){function e(e){this.compute=e,this.isHelperFactory=!0}return e.prototype.create=function(){return{compute:this.compute}},e}() function ie(e){return new ne(e)}var oe=function(){function e(e){this.string=e}var t=e.prototype @@ -700,42 +700,42 @@ var n=this.resolver.resolve(r),i=n.manager,o=n.state,a=i.getCapabilities(o) return function(e,t){return!t.dynamicLayout}(0,a)?{handle:r,capabilities:a,compilable:i.getJitStaticLayout(o,this.resolver)}:{handle:r,capabilities:a,compilable:null}},t.lookupPartial=function(e,t){return this.resolver.lookupPartial(e,t)},t.resolve=function(e){return this.resolver.resolve(e)},e}(),de=function(){function e(){}var t=e.prototype return t.prepareArgs=function(e,t){return null},t.didCreateElement=function(e,t,r){},t.didRenderLayout=function(e,t){},t.didCreate=function(e){},t.update=function(e,t){},t.didUpdateLayout=function(e,t){},t.didUpdate=function(e){},e}() function pe(e){return{object:e.name+":"+e.outlet}}e.AbstractComponentManager=de -var me={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:v.ENV._DEBUG_RENDER_TREE,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:v.ENV._DEBUG_RENDER_TREE,createInstance:!0,wrapped:!1,willDestroy:!1},ye=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) +var me={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:y.ENV._DEBUG_RENDER_TREE,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:y.ENV._DEBUG_RENDER_TREE,createInstance:!0,wrapped:!1,willDestroy:!1},ve=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.create=function(e,t,r,n){var i=n.outletState,o=t.ref n.outletState=o var a={self:new l.ComponentRootReference(t.controller,e),environment:e,finalize:(0,p._instrumentStart)("render.outlet",pe,t)} -if(v.ENV._DEBUG_RENDER_TREE){a.outlet={name:t.outlet},e.extra.debugRenderTree.create(a.outlet,{type:"outlet",name:a.outlet.name,args:f.EMPTY_ARGS,instance:void 0,template:void 0}) +if(y.ENV._DEBUG_RENDER_TREE){a.outlet={name:t.outlet},e.extra.debugRenderTree.create(a.outlet,{type:"outlet",name:a.outlet.name,args:f.EMPTY_ARGS,instance:void 0,template:void 0}) var s=i.value(),u=s&&s.render&&s.render.owner,c=o.value().render.owner if(u&&u!==c){var h=c,d=h.mountPoint a.engine={mountPoint:d},e.extra.debugRenderTree.create(a.engine,{type:"engine",name:d,args:f.EMPTY_ARGS,instance:h,template:void 0})}e.extra.debugRenderTree.create(a,{type:"route-template",name:t.name,args:r.capture(),instance:t.controller,template:t.template})}return a},n.getJitStaticLayout=function(e,t){var r=e.template -return(0,b.unwrapTemplate)(r).asLayout()},n.getCapabilities=function(){return me},n.getSelf=function(e){return e.self},n.getTag=function(){return v.ENV._DEBUG_RENDER_TREE?(0,h.createTag)():h.CONSTANT_TAG},n.didRenderLayout=function(e,t){e.finalize(),v.ENV._DEBUG_RENDER_TREE&&(e.environment.extra.debugRenderTree.didRender(e,t),e.engine&&e.environment.extra.debugRenderTree.didRender(e.engine,t),e.environment.extra.debugRenderTree.didRender(e.outlet,t))},n.update=function(e){v.ENV._DEBUG_RENDER_TREE&&(e.environment.extra.debugRenderTree.update(e.outlet),e.engine&&e.environment.extra.debugRenderTree.update(e.engine),e.environment.extra.debugRenderTree.update(e))},n.didUpdateLayout=function(e,t){v.ENV._DEBUG_RENDER_TREE&&(e.environment.extra.debugRenderTree.didRender(e,t),e.engine&&e.environment.extra.debugRenderTree.didRender(e.engine,t),e.environment.extra.debugRenderTree.didRender(e.outlet,t))},n.getDestructor=function(e){return v.ENV._DEBUG_RENDER_TREE?{destroy:function(){e.environment.extra.debugRenderTree.willDestroy(e),e.engine&&e.environment.extra.debugRenderTree.willDestroy(e.engine),e.environment.extra.debugRenderTree.willDestroy(e.outlet)}}:null},r}(de),ve=new ye,be=function(e,t){void 0===t&&(t=ve),this.state=e,this.manager=t} +return(0,b.unwrapTemplate)(r).asLayout()},n.getCapabilities=function(){return me},n.getSelf=function(e){return e.self},n.getTag=function(){return y.ENV._DEBUG_RENDER_TREE?(0,h.createTag)():h.CONSTANT_TAG},n.didRenderLayout=function(e,t){e.finalize(),y.ENV._DEBUG_RENDER_TREE&&(e.environment.extra.debugRenderTree.didRender(e,t),e.engine&&e.environment.extra.debugRenderTree.didRender(e.engine,t),e.environment.extra.debugRenderTree.didRender(e.outlet,t))},n.update=function(e){y.ENV._DEBUG_RENDER_TREE&&(e.environment.extra.debugRenderTree.update(e.outlet),e.engine&&e.environment.extra.debugRenderTree.update(e.engine),e.environment.extra.debugRenderTree.update(e))},n.didUpdateLayout=function(e,t){y.ENV._DEBUG_RENDER_TREE&&(e.environment.extra.debugRenderTree.didRender(e,t),e.engine&&e.environment.extra.debugRenderTree.didRender(e.engine,t),e.environment.extra.debugRenderTree.didRender(e.outlet,t))},n.getDestructor=function(e){return y.ENV._DEBUG_RENDER_TREE?{destroy:function(){e.environment.extra.debugRenderTree.willDestroy(e),e.engine&&e.environment.extra.debugRenderTree.willDestroy(e.engine),e.environment.extra.debugRenderTree.willDestroy(e.outlet)}}:null},r}(de),ye=new ve,be=function(e,t){void 0===t&&(t=ye),this.state=e,this.manager=t} function ge(){}var we=function(){function e(e,t,r,n,i){this.environment=e,this.component=t,this.args=r,this.finalizer=n,this.hasWrappedElement=i,this.classRef=null,this.classRef=null,this.argsRevision=null===r?0:(0,h.valueForTag)(r.tag),this.rootRef=new l.ComponentRootReference(t,e)}var t=e.prototype return t.willDestroy=function(){var e=this.component if(this.environment.isInteractive){e.trigger("willDestroyElement"),e.trigger("willClearRender") var t=(0,u.getViewElement)(e) t&&((0,u.clearElementView)(t),(0,u.clearViewElement)(e))}e.renderer.unregister(e)},t.destroy=function(){this.component.destroy()},t.finalize=function(){(0,this.finalizer)(),this.finalizer=ge},e}(),_e=function(e){function r(r,n,i){var o,a=function(e){var t,n=e.positional,i=e.named,o=n.value(),a=i.value() return t=r.compute(o,a),r[ee]&&(0,h.consumeTag)(r[ee]),t} -return o=e.call(this,a,n,i)||this,(0,t.assertThisInitialized)(o)}return(0,t.inheritsLoose)(r,e),r}(l.HelperRootReference),xe=function(e){function r(t,r,n,i){var o +return o=e.call(this,a,n,i)||this,(0,t.assertThisInitialized)(o)}return(0,t.inheritsLoose)(r,e),r}(l.HelperRootReference),ke=function(e){function r(t,r,n,i){var o return(o=e.call(this,r)||this).inner=t,o.env=r,o}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.value=function(){return this.inner},n.get=function(e){var t=this.value() -return(0,s.isObject)(t)?new ke(t[e],this.env,this,e):f.PrimitiveReference.create(t)},r}(l.RootReference),ke=function(e){function r(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(r,e),r}(xe) +return(0,s.isObject)(t)?new xe(t[e],this.env,this,e):f.PrimitiveReference.create(t)},r}(l.RootReference),xe=function(e){function r(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(r,e),r}(ke) function Oe(e,t){for(var r=e,n=0;n-1,l=c?Se(t,a.split(".")):Ee(t,a) -g.EMBER_COMPONENT_IS_VISIBLE&&"style"===s&&void 0!==Pe&&(l=new Pe(t,l,Ee(t,"isVisible"),o)),n.setAttribute(s,l,!1,null)},Te=le("display: none;") +g.EMBER_COMPONENT_IS_VISIBLE&&"style"===s&&void 0!==Pe&&(l=new Pe(t,l,Ee(t,"isVisible"),o)),n.setAttribute(s,l,!1,null)},Re=le("display: none;") g.EMBER_COMPONENT_IS_VISIBLE&&(Pe=function(){function e(e,t,r,n){this.inner=t,this.isVisible=r,this.env=n,this.tag=(0,h.combine)([t.tag,r.tag])}var t=e.prototype return t.value=function(){var e=this.inner.value(),t=this.isVisible.value() if(!1!==t)return e if(e){var r=e+" display: none;" -return fe(e)?le(r):r}return Te},t.get=function(){return f.UNDEFINED_REFERENCE},e}(),Me=function(e,t,r){t.setAttribute("style",new Pe(e,f.UNDEFINED_REFERENCE,e.get("isVisible"),r),!1,null)}) -var Re=function(e,t,r,n){var i=r.split(":"),o=i[0],a=i[1],s=i[2] +return fe(e)?le(r):r}return Re},t.get=function(){return f.UNDEFINED_REFERENCE},e}(),Me=function(e,t,r){t.setAttribute("style",new Pe(e,f.UNDEFINED_REFERENCE,e.get("isVisible"),r),!1,null)}) +var Te=function(e,t,r,n){var i=r.split(":"),o=i[0],a=i[1],s=i[2] if(""===o)n.setAttribute("class",f.PrimitiveReference.create(a),!0,null) else{var u,c=o.indexOf(".")>-1,l=c?o.split("."):[],h=c?Se(t,l):Ee(t,o) u=void 0===a?new Ce(h,c?l[l.length-1]:o):new Ie(h,a,s),n.setAttribute("class",u,!1,null)}},Ce=function(){function e(e,t){this.inner=e,this.path=t,this.tag=e.tag,this.dasherizedPath=null}return e.prototype.value=function(){var e=this.inner.value() @@ -743,58 +743,58 @@ if(!0===e){var t=this.path return this.dasherizedPath||(this.dasherizedPath=(0,w.dasherize)(t))}return e||0===e?String(e):null},e}(),Ie=function(){function e(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null),this.inner=e,this.truthy=t,this.falsy=r,this.tag=e.tag}return e.prototype.value=function(){var e=this.inner,t=this.truthy,r=this.falsy return e.value()?t:r},e}(),Ne=(0,s.symbol)("INVOKE") e.INVOKE=Ne -var De=(0,s.symbol)("SOURCE"),Le=function(e){function r(t,r){var n +var De=(0,s.symbol)("SOURCE"),Be=function(e){function r(t,r){var n return(n=e.call(this,r)||this).inner=t,n.tag=t.tag,n[De]=t,n}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.value=function(){return this.inner.value()},n.get=function(e){return this.inner.get(e)},n[l.UPDATE_REFERENCED_VALUE]=function(e){return this.inner[l.UPDATE_REFERENCED_VALUE](e)},n[Ne]=function(e){return this.inner[l.UPDATE_REFERENCED_VALUE](e)},r}(l.RootReference) -var Be=(0,s.symbol)("ACTION") +var Le=(0,s.symbol)("ACTION") function Fe(e){return e}function Ue(e,t,r,n,i){var o,a if("function"==typeof r[Ne])o=r,a=r[Ne] else{var s=typeof r "string"===s?(o=t,a=t.actions&&t.actions[r]):"function"===s&&(o=e,a=r)}return function(){for(var e=arguments.length,t=new Array(e),r=0;r0))return null var c=Math.min(s.length,t.positional.length) a={},(0,r.assign)(a,t.named.capture().map) for(var l=0;l=e)return null var r=this.valueFor(t),n=this.memoFor(t) return this.position++,{value:r,memo:n}},e}(),mt=function(e){function r(t){var r return(r=e.call(this,t.length)||this).array=t,r}return(0,t.inheritsLoose)(r,e),r.from=function(e){return e.length>0?new this(e):null},r.fromForEachable=function(e){var t=[] -return e.forEach((function(e){return t.push(e)})),this.from(t)},r.prototype.valueFor=function(e){return this.array[e]},r}(pt),yt=function(e){function r(t){var r -return(r=e.call(this,t.length)||this).array=t,r}return(0,t.inheritsLoose)(r,e),r.from=function(e){return e.length>0?new this(e):null},r.prototype.valueFor=function(e){return(0,i.objectAt)(this.array,e)},r}(pt),vt=function(e){function r(t,r){var n +return e.forEach((function(e){return t.push(e)})),this.from(t)},r.prototype.valueFor=function(e){return this.array[e]},r}(pt),vt=function(e){function r(t){var r +return(r=e.call(this,t.length)||this).array=t,r}return(0,t.inheritsLoose)(r,e),r.from=function(e){return e.length>0?new this(e):null},r.prototype.valueFor=function(e){return(0,i.objectAt)(this.array,e)},r}(pt),yt=function(e){function r(t,r){var n return(n=e.call(this,r.length)||this).keys=t,n.values=r,n}(0,t.inheritsLoose)(r,e),r.fromIndexable=function(e){var t=Object.keys(e),r=t.length if(0===r)return null for(var n=[],o=0;o=0)return!0 for(var r=0;r1)if(o=f.at(0),(u=f.at(1))[Ne])a=u else{u.propertyKey a=u.value()}for(var d=[],p=2;p0&&(r=function(e){return t.map((function(e){return e.value()})).concat(e)}) e&&(n=function(t){var r=e.value() return r&&t.length>0&&(t[0]=(0,i.get)(t[0],r)),t}) return r&&n?function(e){return n(r(e))}:r||n||Fe}(n.has("value")&&n.get("value"),u) return(r="function"==typeof s[Ne]?Ue(s,s,s[Ne],f,c):(0,h.isConst)(l)&&(0,h.isConst)(s)?Ue(a.value(),l.value(),s.value(),f,c):function(e,t,r,n,i){0 -return function(){return Ue(e,t.value(),r.value(),n,i).apply(void 0,arguments)}}(a.value(),l,s,f,c))[Be]=!0,new xe(r,t.env)},array:function(e){return e.positional.capture()},concat:function(e,t){return new l.HelperRootReference(qt,e.capture(),t.env)},fn:function(e,t){return new l.HelperRootReference(Yt,e.capture(),t.env)},get:function(e,t){var r=e.positional.at(0),n=e.positional.at(1) +return function(){return Ue(e,t.value(),r.value(),n,i).apply(void 0,arguments)}}(a.value(),l,s,f,c))[Le]=!0,new ke(r,t.env)},array:function(e){return e.positional.capture()},concat:function(e,t){return new l.HelperRootReference(Ht,e.capture(),t.env)},fn:function(e,t){return new l.HelperRootReference(Gt,e.capture(),t.env)},get:function(e,t){var r=e.positional.at(0),n=e.positional.at(1) if((0,h.isConst)(n)){var i=n.value() -return null==i||""===i?f.NULL_REFERENCE:"string"==typeof i&&i.indexOf(".")>-1?Oe(r,i.split(".")):r.get(String(i))}return new Kt(e.capture(),t.env)},hash:$t,log:function(e,t){return new l.HelperRootReference(Qt,e.capture(),t.env)},mut:function(e,t){var r=e.positional.at(0) -return"function"==typeof r[Ne]?r:new Le(r,t.env)},"query-params":function(e,t){return new l.HelperRootReference(Xt,e.capture(),t.env)},readonly:function(e,t){var r=function(e){return e[De]||e}(e.positional.at(0)) -return new er(r,t.env)},unbound:function(e,t){return new xe(e.positional.at(0).value(),t.env)},unless:function(e,t){return new l.HelperRootReference(Zt,e.capture(),t.env)},"-hash":$t,"-each-in":function(e){return new ft(e.positional.at(0))},"-input-type":function(e,t){return new l.HelperRootReference(Ft,e.capture(),t.env)},"-normalize-class":function(e,t){return new l.HelperRootReference(Ut,e.capture(),t.env)},"-track-array":function(e){return new zt(e.positional.at(0))},"-get-dynamic-var":f.getDynamicVar,"-mount":function(e,t){var r=t.env,n=e.positional.at(0),i=null +return null==i||""===i?f.NULL_REFERENCE:"string"==typeof i&&i.indexOf(".")>-1?Oe(r,i.split(".")):r.get(String(i))}return new Kt(e.capture(),t.env)},hash:Jt,log:function(e,t){return new l.HelperRootReference(Qt,e.capture(),t.env)},mut:function(e,t){var r=e.positional.at(0) +return"function"==typeof r[Ne]?r:new Be(r,t.env)},"query-params":function(e,t){return new l.HelperRootReference(Xt,e.capture(),t.env)},readonly:function(e,t){var r=function(e){return e[De]||e}(e.positional.at(0)) +return new er(r,t.env)},unbound:function(e,t){return new ke(e.positional.at(0).value(),t.env)},unless:function(e,t){return new l.HelperRootReference(Zt,e.capture(),t.env)},"-hash":Jt,"-each-in":function(e){return new ft(e.positional.at(0))},"-input-type":function(e,t){return new l.HelperRootReference(Ft,e.capture(),t.env)},"-normalize-class":function(e,t){return new l.HelperRootReference(Ut,e.capture(),t.env)},"-track-array":function(e){return new zt(e.positional.at(0))},"-get-dynamic-var":f.getDynamicVar,"-mount":function(e,t){var r=t.env,n=e.positional.at(0),i=null if(e.named.has("model")){var o=e.named.capture() 0,i={tag:o.tag,positional:f.EMPTY_ARGS.positional,named:o,length:1,value:function(){return{named:this.named.value(),positional:this.positional.value()}}}}return new Er(n,r,i)},"-outlet":function(e,t){var r,n=t.dynamicScope() -return r=0===e.positional.length?new l.ConstReference("main"):e.positional.at(0),new Ar(new Pr(n.outletState,r),t.env)},"-assert-implicit-component-helper-argument":Bt},Yr=function(){function e(e){this.handles=[void 0],this.objToHandle=new WeakMap,this.builtInHelpers=Wr,this.componentDefinitionCache=new Map,this.componentDefinitionCount=0,this.helperDefinitionCount=0,this.isInteractive=e,this.builtInModifiers={action:{manager:new ar,state:null},on:{manager:new _r(e),state:null}}}var r=e.prototype +return r=0===e.positional.length?new l.ConstReference("main"):e.positional.at(0),new jr(new Pr(n.outletState,r),t.env)},"-assert-implicit-component-helper-argument":Lt},Gr=function(){function e(e){this.handles=[void 0],this.objToHandle=new WeakMap,this.builtInHelpers=Wr,this.componentDefinitionCache=new Map,this.componentDefinitionCount=0,this.helperDefinitionCount=0,this.isInteractive=e,this.builtInModifiers={action:{manager:new ar,state:null},on:{manager:new _r(e),state:null}}}var r=e.prototype return r.lookupComponent=function(e,t){var r=this.lookupComponentHandle(e,t) return null===r?null:this.resolve(r)},r.lookupComponentHandle=function(e,t){var r=this.handles.length,n=this.handle(this._lookupComponentDefinition(e,t)) return r===n&&this.componentDefinitionCount++,n},r.resolve=function(e){return this.handles[e]},r.lookupHelper=function(e,t){var r=this.handles.length,n=this._lookupHelper(e,t) @@ -1045,7 +1045,7 @@ return this.handle(r)}return null},r.compilable=function(){},r.handle=function(e var t=this.objToHandle.get(e) return void 0===t&&(t=this.handles.push(e)-1,this.objToHandle.set(e,t)),t},r._lookupHelper=function(e,t){var r=this.builtInHelpers[e] if(void 0!==r)return r -var n=t.moduleName,i=t.owner,o=e,a=qr(n,void 0),s=i.factoryFor("helper:"+o,a)||i.factoryFor("helper:"+o) +var n=t.moduleName,i=t.owner,o=e,a=Hr(n,void 0),s=i.factoryFor("helper:"+o,a)||i.factoryFor("helper:"+o) return function(e){return"object"==typeof e&&null!==e&&e.class&&e.class.isHelperFactory}(s)?function(e,t){var r=s.create() return te(r)&&t.associateDestroyable({destroy:function(){r.destroy()}}),new _e(r,e.capture(),t.env)}:null},r._lookupPartial=function(e,t){var r=t.owner,i=Ir(e,r)(r) return new n.PartialDefinitionImpl(e,i)},r._lookupModifier=function(e,t){var r=this.builtInModifiers[e] @@ -1053,20 +1053,20 @@ if(void 0===r){var n=t.owner,i=n.factoryFor("modifier:"+e) if(void 0!==i){var o=zr(i.class)(n) return new ur(e,i,o,this.isInteractive)}}return r},r._parseNameForNamespace=function(e){var t=e,r=void 0,n=e.indexOf("::") return-1!==n&&(t=e.slice(n+2),r=e.slice(0,n)),{name:t,namespace:r}},r._lookupComponentDefinition=function(e,r){var n,i,o=e,a=r.owner,s=function(e,t,r){if(r.source||r.namespace){var n=Vr(e,t,r) -if(null!==n)return n}return Vr(e,t)}(a,o,qr(r.moduleName,void 0)) +if(null!==n)return n}return Vr(e,t)}(a,o,Hr(r.moduleName,void 0)) if(null===s)return null i=null===s.component?n=s.layout(a):s.component var u=this.componentDefinitionCache.get(i) if(void 0!==u)return u void 0===n&&null!==s.layout&&(n=s.layout(a)) -var c=(0,p._instrumentStart)("render.getComponentDefinition",Hr,o),l=null -if(null===s.component?v.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS&&(l=new Lt(o,n)):(0,O.isTemplateOnlyComponent)(s.component.class)&&(l=new Lt(o,n)),null!==s.component){var f=s.component.class,h=Ur(f) +var c=(0,p._instrumentStart)("render.getComponentDefinition",qr,o),l=null +if(null===s.component?y.ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS&&(l=new Bt(o,n)):(0,O.isTemplateOnlyComponent)(s.component.class)&&(l=new Bt(o,n)),null!==s.component){var f=s.component.class,h=Ur(f) if(null!==h&&"component"===h.type){var d=h.factory -l=h.internal?new Ct(d(a),f,n):new Rt(o,s.component,d(a),void 0!==n?n:a.lookup((0,_.privatize)(j||(j=(0,t.taggedTemplateLiteralLoose)(["template:components/-default"]))))(a))}}return null===l&&(l=new et(o,s.component||a.factoryFor((0,_.privatize)(A||(A=(0,t.taggedTemplateLiteralLoose)(["component:-default"])))),n)),c(),this.componentDefinitionCache.set(i,l),l},e}() -function Gr(e){return null===e?null:[e[0].map((function(e){return"@"+e})),e[1]]}var Kr=[] -function $r(e,t,r,i){var o=i.resolver.lookupComponent(e,i.meta.referrer) -return null!==o?(0,n.staticComponent)(o,[null===t?[]:t,Gr(r),n.EMPTY_BLOCKS]):n.UNHANDLED}function Jr(e,t,r,i,o){var a=o.resolver.lookupComponent(e,o.meta.referrer) -return null!==a?(0,n.staticComponent)(a,[t,Gr(r),i]):n.NONE}e._experimentalMacros=Kr +l=h.internal?new Ct(d(a),f,n):new Tt(o,s.component,d(a),void 0!==n?n:a.lookup((0,_.privatize)(A||(A=(0,t.taggedTemplateLiteralLoose)(["template:components/-default"]))))(a))}}return null===l&&(l=new et(o,s.component||a.factoryFor((0,_.privatize)(j||(j=(0,t.taggedTemplateLiteralLoose)(["component:-default"])))),n)),c(),this.componentDefinitionCache.set(i,l),l},e}() +function Yr(e){return null===e?null:[e[0].map((function(e){return"@"+e})),e[1]]}var Kr=[] +function Jr(e,t,r,i){var o=i.resolver.lookupComponent(e,i.meta.referrer) +return null!==o?(0,n.staticComponent)(o,[null===t?[]:t,Yr(r),n.EMPTY_BLOCKS]):n.UNHANDLED}function $r(e,t,r,i,o){var a=o.resolver.lookupComponent(e,o.meta.referrer) +return null!==a?(0,n.staticComponent)(a,[t,Yr(r),i]):n.NONE}e._experimentalMacros=Kr var Zr=function(){function e(e,t){this.view=e,this.outletState=t}var t=e.prototype return t.child=function(){return new e(this.view,this.outletState)},t.get=function(e){return this.outletState},t.set=function(e,t){return this.outletState=t,t},e}(),Qr=function(){function e(e,t,r,n,i,o,a,s){var c=this this.root=e,this.runtime=t,this.id=(0,u.getViewId)(e),this.result=void 0,this.destroyed=!1,this.render=function(){var e,u=(0,b.unwrapTemplate)(n).asLayout().compile(r),l=(0,f.renderJitMain)(t,r,i,s(t.env,{element:o,nextSibling:null}),(0,b.unwrapHandle)(u),a) @@ -1078,25 +1078,25 @@ this.destroyed=!0,this.runtime=void 0,this.root=null,this.result=void 0,this.ren function en(e){var t=Xr.indexOf(e) Xr.splice(t,1)}function tn(){}var rn=null var nn=0 -y.backburner.on("begin",(function(){for(var e=0;ev.ENV._RERENDER_LOOP_LIMIT)throw nn=0,Xr[e].destroy(),new Error("infinite rendering invalidation detected") -return nn++,y.backburner.join(null,tn)}nn=0,function(){if(null!==rn){var e=rn.resolve -rn=null,y.backburner.join(null,e)}}()})) +v.backburner.on("begin",(function(){for(var e=0;ey.ENV._RERENDER_LOOP_LIMIT)throw nn=0,Xr[e].destroy(),new Error("infinite rendering invalidation detected") +return nn++,v.backburner.join(null,tn)}nn=0,function(){if(null!==rn){var e=rn.resolve +rn=null,v.backburner.join(null,e)}}()})) var on=function(){function e(e,t,r,i,o,a,s){void 0===a&&(a=!1),void 0===s&&(s=f.clientBuilder),this._inRenderTransaction=!1,this._lastRevision=-1,this._destroyed=!1,this._rootTemplate=i(e),this._viewRegistry=o,this._destinedForDOM=a,this._roots=[],this._removedRoots=[],this._builder=s -var u=this._runtimeResolver=new Yr(r.isInteractive),c=new he(u),l=this._context=(0,n.JitContext)(c);(function(e){var t=e.inlines,r=e.blocks -t.addMissing($r),r.addMissing(Jr) +var u=this._runtimeResolver=new Gr(r.isInteractive),c=new he(u),l=this._context=(0,n.JitContext)(c);(function(e){var t=e.inlines,r=e.blocks +t.addMissing(Jr),r.addMissing($r) for(var n=0;n=e||o.render()}t._lastRevision=(0,h.valueForTag)(h.CURRE for(;i.length;){var o=i.pop(),a=r.indexOf(o) r.splice(a,1)}0===this._roots.length&&en(this)},i._renderRootsTransaction=function(){if(!this._inRenderTransaction){this._inRenderTransaction=!0 var e=!1 -try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=(0,h.valueForTag)(h.CURRENT_TAG)),this._inRenderTransaction=!1}}},i._clearAllRoots=function(){for(var e=this._roots,t=0;t=0;i--){var o=e[i] if(o.event===t&&o.target===r&&o.method===n)return i}return-1}e.meta=d})),e("@ember/-internals/metal/index",["exports","ember-babel","@ember/-internals/meta","@ember/-internals/utils","@ember/debug","@ember/-internals/environment","@ember/runloop","@glimmer/validator","@ember/polyfills","@ember/error","ember/version","@ember/-internals/meta/lib/meta","@ember/deprecated-features","@ember/-internals/owner"],(function(e,t,r,n,i,o,a,s,u,c,l,f,h,d){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.SYNC_OBSERVERS=e.PROXY_CONTENT=e.PROPERTY_DID_CHANGE=e.NAMESPACES_BY_ID=e.NAMESPACES=e.Mixin=e.Libraries=e.DEBUG_INJECTION_FUNCTIONS=e.ComputedProperty=e.CUSTOM_TAG_FOR=e.ASYNC_OBSERVERS=void 0,e._getPath=_e,e._globalsComputed=void 0,e.activateObserver=A,e.addArrayObserver=function(e,t,r){return Q(e,t,r,_,!1)},e.addListener=_,e.addNamespace=function(e){ze.unprocessedNamespaces=!0,qe.push(e)},e.addObserver=M,e.alias=function(e){return de(new Ae(e),je)},e.aliasMethod=void 0,e.applyMixin=ut,e.arrayContentDidChange=K,e.arrayContentWillChange=G,e.beginPropertyChanges=V,e.changeProperties=Y,e.classToString=Ke,e.computed=Pe,e.defineProperty=ye,e.deprecateProperty=function(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set:function(e){xe(this,r,e)},get:function(){return we(this,r)}})},e.descriptorForDecorator=te,e.descriptorForProperty=ee,e.destroy=function(e){var t=(0,f.peekMeta)(e) +Object.defineProperty(e,"__esModule",{value:!0}),e.SYNC_OBSERVERS=e.PROXY_CONTENT=e.PROPERTY_DID_CHANGE=e.NAMESPACES_BY_ID=e.NAMESPACES=e.Mixin=e.Libraries=e.DEBUG_INJECTION_FUNCTIONS=e.ComputedProperty=e.CUSTOM_TAG_FOR=e.ASYNC_OBSERVERS=void 0,e._getPath=_e,e._globalsComputed=void 0,e.activateObserver=j,e.addArrayObserver=function(e,t,r){return Q(e,t,r,_,!1)},e.addListener=_,e.addNamespace=function(e){ze.unprocessedNamespaces=!0,He.push(e)},e.addObserver=M,e.alias=function(e){return de(new je(e),Ae)},e.aliasMethod=void 0,e.applyMixin=ut,e.arrayContentDidChange=K,e.arrayContentWillChange=Y,e.beginPropertyChanges=V,e.changeProperties=G,e.classToString=Ke,e.computed=Pe,e.defineProperty=ve,e.deprecateProperty=function(e,t,r,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set:function(e){ke(this,r,e)},get:function(){return we(this,r)}})},e.descriptorForDecorator=te,e.descriptorForProperty=ee,e.destroy=function(e){var t=(0,f.peekMeta)(e) if(null===t||t.isSourceDestroying())return!1 return t.setSourceDestroying(),function(e){S.size>0&&S.delete(e) -P.size>0&&P.delete(e)}(e),(0,a.schedule)("destroy",t,Be),!0},e.eachProxyArrayDidChange=function(e,t,r,n){var i=Ce.get(e) +P.size>0&&P.delete(e)}(e),(0,a.schedule)("destroy",t,Le),!0},e.eachProxyArrayDidChange=function(e,t,r,n){var i=Ce.get(e) void 0!==i&&i.arrayDidChange(e,t,r,n)},e.eachProxyArrayWillChange=function(e,t,r,n){var i=Ce.get(e) -void 0!==i&&i.arrayWillChange(e,t,r,n)},e.endPropertyChanges=W,e.expandProperties=me,e.findNamespace=function(e){Ue||Ge() +void 0!==i&&i.arrayWillChange(e,t,r,n)},e.endPropertyChanges=W,e.expandProperties=me,e.findNamespace=function(e){Ue||Ye() return Ve[e]},e.findNamespaces=We,e.flushAsyncObservers=function(e){void 0===e&&(e=!0) var t=(0,s.valueForTag)(s.CURRENT_TAG) if(I===t)return I=t,P.forEach((function(t,n){var i=(0,r.peekMeta)(n) -i&&(i.isSourceDestroying()||i.isMetaDestroyed())?P.delete(n):t.forEach((function(t,r){if(!(0,s.validateTag)(t.tag,t.lastRevision)){var o=function(){try{k(n,r,[n,t.path],void 0,i)}finally{t.tag=(0,s.combine)(ae(n,t.path)),t.lastRevision=(0,s.valueForTag)(t.tag)}} +i&&(i.isSourceDestroying()||i.isMetaDestroyed())?P.delete(n):t.forEach((function(t,r){if(!(0,s.validateTag)(t.tag,t.lastRevision)){var o=function(){try{x(n,r,[n,t.path],void 0,i)}finally{t.tag=(0,s.combine)(ae(n,t.path)),t.lastRevision=(0,s.valueForTag)(t.tag)}} e?(0,a.schedule)("actions",o):o()}}))}))} -e.get=we,e.getCacheFor=y,e.getCachedValueFor=v,e.getChainTagsForKey=ae,e.getProperties=function(e,t){var r={},n=arguments,i=1 +e.get=we,e.getCacheFor=v,e.getCachedValueFor=y,e.getChainTagsForKey=ae,e.getProperties=function(e,t){var r={},n=arguments,i=1 2===arguments.length&&Array.isArray(t)&&(i=0,n=arguments[1]) for(;i0},e.inject=function(e){for(var t=arguments.length,r var i,o,a=se(r),s=a?void 0:r[0],u=(a||r[1],function(t){var r=(0,d.getOwner)(this)||this.container return r.lookup(e+":"+(s||t),{source:i,namespace:o})}) 0 -var c=Pe({get:u,set:function(e,t){ye(this,e,null,t)}}) +var c=Pe({get:u,set:function(e,t){ve(this,e,null,t)}}) return a?c(r[0],r[1],r[2]):c},e.isBlank=Ne,e.isClassicDecorator=re,e.isComputed=function(e,t){return Boolean(ee(e,t))},e.isElementDescriptor=se,e.isEmpty=Ie,e.isNamespaceSearchDisabled=function(){return Ue},e.isNone=function(e){return null==e},e.isPresent=function(e){return!Ne(e)},e.libraries=void 0,e.markObjectAsDirty=U,e.mixin=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0;s-=3){var u=i[s],c=i[s+1],l=i[s+2] -c&&(l&&x(e,t,u,c),u||(u=e),"string"==typeof c&&(c=u[c]),c.apply(u,n))}return!0}function O(e){return e+":change"}var E=!o.ENV._DEFAULT_ASYNC_OBSERVERS,S=new Map +c&&(l&&k(e,t,u,c),u||(u=e),"string"==typeof c&&(c=u[c]),c.apply(u,n))}return!0}function O(e){return e+":change"}var E=!o.ENV._DEFAULT_ASYNC_OBSERVERS,S=new Map e.SYNC_OBSERVERS=S var P=new Map function M(e,t,n,i,o){void 0===o&&(o=E) var a=O(t) _(e,a,n,i,!1,o) var s=(0,r.peekMeta)(e) -null!==s&&(s.isPrototypeMeta(e)||s.isInitializing())||A(e,a,o)}function j(e,t,n,i,o){void 0===o&&(o=E) +null!==s&&(s.isPrototypeMeta(e)||s.isInitializing())||j(e,a,o)}function A(e,t,n,i,o){void 0===o&&(o=E) var a=O(t),s=(0,r.peekMeta)(e) -null!==s&&(s.isPrototypeMeta(e)||s.isInitializing())||C(e,a,o),x(e,a,n,i)}function A(e,t,r){void 0===r&&(r=!1) +null!==s&&(s.isPrototypeMeta(e)||s.isInitializing())||C(e,a,o),k(e,a,n,i)}function j(e,t,r){void 0===r&&(r=!1) var n=function(e,t){var r=!0===t?S:P return r.has(e)||r.set(e,new Map),r.get(e)}(e,r) if(n.has(t))n.get(t).count++ else{var i=t.split(":")[0],o=(0,s.combine)(ae(e,i)) n.set(t,{count:1,path:i,tag:o,lastRevision:(0,s.valueForTag)(o),suspended:!1})}}e.ASYNC_OBSERVERS=P -var T=!1,R=[] -function C(e,t,r){if(void 0===r&&(r=!1),!0!==T){var n=!0===r?S:P,i=n.get(e) +var R=!1,T=[] +function C(e,t,r){if(void 0===r&&(r=!1),!0!==R){var n=!0===r?S:P,i=n.get(e) if(void 0!==i){var o=i.get(t) -o.count--,0===o.count&&(i.delete(t),0===i.size&&n.delete(e))}}else R.push([e,t,r])}var I=0 +o.count--,0===o.count&&(i.delete(t),0===i.size&&n.delete(e))}}else T.push([e,t,r])}var I=0 function N(){S.forEach((function(e,t){var n=(0,r.peekMeta)(t) -n&&(n.isSourceDestroying()||n.isMetaDestroyed())?S.delete(t):e.forEach((function(e,r){if(!e.suspended&&!(0,s.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,k(t,r,[t,e.path],void 0,n)}finally{e.tag=(0,s.combine)(ae(t,e.path)),e.lastRevision=(0,s.valueForTag)(e.tag),e.suspended=!1}}))}))}function D(e,t,r){var n=S.get(e) +n&&(n.isSourceDestroying()||n.isMetaDestroyed())?S.delete(t):e.forEach((function(e,r){if(!e.suspended&&!(0,s.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,x(t,r,[t,e.path],void 0,n)}finally{e.tag=(0,s.combine)(ae(t,e.path)),e.lastRevision=(0,s.valueForTag)(e.tag),e.suspended=!1}}))}))}function D(e,t,r){var n=S.get(e) if(n){var i=n.get(O(t)) i&&(i.suspended=r)}}(0,s.setPropertyDidChange)((function(){return a.backburner.ensureInstance()})) -var L=(0,n.symbol)("CUSTOM_TAG_FOR") -e.CUSTOM_TAG_FOR=L -var B=(0,n.symbol)("SELF_TAG") +var B=(0,n.symbol)("CUSTOM_TAG_FOR") +e.CUSTOM_TAG_FOR=B +var L=(0,n.symbol)("SELF_TAG") function F(e,t){if(!(0,n.isObject)(e))return s.CONSTANT_TAG -if("function"==typeof e[L])return e[L](t) +if("function"==typeof e[B])return e[B](t) var r=(0,s.tagFor)(e,t) -return r}function U(e,t){(0,s.dirtyTagFor)(e,t),(0,s.dirtyTagFor)(e,B)}var z=(0,n.symbol)("PROPERTY_DID_CHANGE") +return r}function U(e,t){(0,s.dirtyTagFor)(e,t),(0,s.dirtyTagFor)(e,L)}var z=(0,n.symbol)("PROPERTY_DID_CHANGE") e.PROPERTY_DID_CHANGE=z -var H=0 -function q(e,t,n,i){var o=void 0===n?(0,r.peekMeta)(e):n -null!==o&&(o.isInitializing()||o.isPrototypeMeta(e))||(U(e,t),H<=0&&N(),z in e&&(4===arguments.length?e[z](t,i):e[z](t)))}function V(){H++,T=!0}function W(){--H<=0&&(N(),function(){T=!1 -for(var e,r=(0,t.createForOfIteratorHelperLoose)(R);!(e=r()).done;){var n=e.value -C(n[0],n[1],n[2])}R=[]}())}function Y(e){V() -try{e()}finally{W()}}function G(e,t,r,n){return void 0===t?(t=0,r=n=-1):(void 0===r&&(r=-1),void 0===n&&(n=-1)),k(e,"@array:before",[e,t,r,n]),e}function K(e,t,n,i,o){void 0===o&&(o=!0),void 0===t?(t=0,n=i=-1):(void 0===n&&(n=-1),void 0===i&&(i=-1)) +var q=0 +function H(e,t,n,i){var o=void 0===n?(0,r.peekMeta)(e):n +null!==o&&(o.isInitializing()||o.isPrototypeMeta(e))||(U(e,t),q<=0&&N(),z in e&&(4===arguments.length?e[z](t,i):e[z](t)))}function V(){q++,R=!0}function W(){--q<=0&&(N(),function(){R=!1 +for(var e,r=(0,t.createForOfIteratorHelperLoose)(T);!(e=r()).done;){var n=e.value +C(n[0],n[1],n[2])}T=[]}())}function G(e){V() +try{e()}finally{W()}}function Y(e,t,r,n){return void 0===t?(t=0,r=n=-1):(void 0===r&&(r=-1),void 0===n&&(n=-1)),x(e,"@array:before",[e,t,r,n]),e}function K(e,t,n,i,o){void 0===o&&(o=!0),void 0===t?(t=0,n=i=-1):(void 0===n&&(n=-1),void 0===i&&(i=-1)) var a=(0,r.peekMeta)(e) -o&&((i<0||n<0||i-n!=0)&&q(e,"length",a),q(e,"[]",a)),k(e,"@array:change",[e,t,n,i]) +o&&((i<0||n<0||i-n!=0)&&H(e,"length",a),H(e,"[]",a)),x(e,"@array:change",[e,t,n,i]) var s=w(e) if(void 0!==s){var u=-1===n?0:n,c=e.length-((-1===i?0:i)-u),l=t<0?c+t:t -if(s.has("firstObject")&&0===l&&q(e,"firstObject",a),s.has("lastObject"))c-1=65&&e<=90){var s=Je(t,a) -s&&(0,n.setName)(s,a)}}}function Ye(e){(function e(t,r,i){var o=t.length,a=t.join(".") +if((e=a.charCodeAt(0))>=65&&e<=90){var s=$e(t,a) +s&&(0,n.setName)(s,a)}}}function Ge(e){(function e(t,r,i){var o=t.length,a=t.join(".") for(var s in Ve[a]=r,(0,n.setName)(r,a),r)if(Fe.call(r,s)){var u=r[s] if(t[o]=s,u&&u.toString===Ke&&void 0===(0,n.getName)(u))(0,n.setName)(u,t.join(".")) else if(u&&u.isNamespace){if(i.has(u))continue -i.add(u),e(t,u,i)}}t.length=o})([e.toString()],e,new Set)}function Ge(){var e=ze.unprocessedNamespaces -if(e&&(We(),ze.unprocessedNamespaces=!1),e||He){for(var t=qe,r=0;r0 if(u){var f=(0,n.get)(u,"queryParams")||{} e=function(e,r){var n={},i={defaultValue:!0,type:!0,scope:!0,as:!0} for(var o in e)if(e.hasOwnProperty(o)){var a={};(0,t.assign)(a,e[o],r[o]),n[o]=a,i[o]=!0}for(var s in r)if(r.hasOwnProperty(s)&&!i[s]){var u={};(0,t.assign)(u,r[s],e[s]),n[s]=u}return n}((0,d.normalizeControllerQueryParams)(f),c)}else l&&(u=(0,p.default)(s,a),e=c) -var h=[],m={},y=[] -for(var v in e)if(e.hasOwnProperty(v)&&"unknownProperty"!==v&&"_super"!==v){var b=e[v],g=b.scope||"model",w=void 0 +var h=[],m={},v=[] +for(var y in e)if(e.hasOwnProperty(y)&&"unknownProperty"!==y&&"_super"!==y){var b=e[y],g=b.scope||"model",w=void 0 "controller"===g&&(w=[]) -var _=b.as||this.serializeQueryParamKey(v),k=(0,n.get)(u,v) -k=x(k) -var O=b.type||(0,o.typeOf)(k),E=this.serializeQueryParam(k,_,O),S=a+":"+v,P={undecoratedDefaultValue:(0,n.get)(u,v),defaultValue:k,serializedDefaultValue:E,serializedValue:E,type:O,urlKey:_,prop:v,scopedPropertyName:S,controllerName:a,route:this,parts:w,values:null,scope:g} -m[v]=m[_]=m[S]=P,h.push(P),y.push(v)}return{qps:h,map:m,propertyNames:y,states:{inactive:function(e,t){var n=m[e] +var _=b.as||this.serializeQueryParamKey(y),x=(0,n.get)(u,y) +x=k(x) +var O=b.type||(0,o.typeOf)(x),E=this.serializeQueryParam(x,_,O),S=a+":"+y,P={undecoratedDefaultValue:(0,n.get)(u,y),defaultValue:x,serializedDefaultValue:E,serializedValue:E,type:O,urlKey:_,prop:y,scopedPropertyName:S,controllerName:a,route:this,parts:w,values:null,scope:g} +m[y]=m[_]=m[S]=P,h.push(P),v.push(y)}return{qps:h,map:m,propertyNames:v,states:{inactive:function(e,t){var n=m[e] r._qpChanged(e,t,n)},active:function(e,t){var n=m[e] return r._qpChanged(e,t,n),r._activeQPChanged(n,t)},allowOverrides:function(e,t){var n=m[e] return r._qpChanged(e,t,n),r._updatingQPChanged(n)}}}})),send:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;--r){var n=e[r],i=n.route -if(void 0!==i&&!0!==t(i,n))return}}var x={willResolveModel:function(e,t,r){this._scheduleLoadingEvent(t,r)},error:function(e,t,r){var n=this,i=e[e.length-1] +if(void 0!==i&&!0!==t(i,n))return}}var k={willResolveModel:function(e,t,r){this._scheduleLoadingEvent(t,r)},error:function(e,t,r){var n=this,i=e[e.length-1] _(e,(function(e,r){if(r!==i){var o=O(e,"error") -if(o)return n._markErrorAsHandled(t),n.intermediateTransitionTo(o,t),!1}var a=k(e,"error") +if(o)return n._markErrorAsHandled(t),n.intermediateTransitionTo(o,t),!1}var a=x(e,"error") return!a||(n._markErrorAsHandled(t),n.intermediateTransitionTo(a,t),!1)})),function(e,t){var r,n,i=[] n=e&&"object"==typeof e&&"object"==typeof e.errorThrown?e.errorThrown:e t&&i.push(t) n&&(n.message&&i.push(n.message),n.stack&&i.push(n.stack),"string"==typeof n&&i.push(n));(r=console).error.apply(r,i)}(t,"Error while processing route: "+r.targetName)},loading:function(e,t){var r=this,n=e[e.length-1] _(e,(function(e,i){if(i!==n){var o=O(e,"loading") -if(o)return r.intermediateTransitionTo(o),!1}var a=k(e,"loading") +if(o)return r.intermediateTransitionTo(o),!1}var a=x(e,"loading") return a?(r.intermediateTransitionTo(a),!1):t.pivotHandler!==e}))}} -function k(e,t){var r=(0,n.getOwner)(e),i=e.routeName,o=e.fullRouteName+"_"+t +function x(e,t){var r=(0,n.getOwner)(e),i=e.routeName,o=e.fullRouteName+"_"+t return E(r,e._router,i+"_"+t,o)?o:""}function O(e,t){var r=(0,n.getOwner)(e),i=e.routeName,o=e.fullRouteName,a="application"===o?t:o+"."+t return E(r,e._router,"application"===i?t:i+"."+t,a)?a:""}function E(e,t,r,n){var i=t.hasRoute(n),o=e.hasRegistration("template:"+r)||e.hasRegistration("route:"+r) return i&&o}function S(e,t,r,n){if(!e){if(t)return throw new s.default("Can't trigger action '"+r+"' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.")}for(var i,o,a=!1,u=e.length-1;u>=0;u--)if(o=(i=e[u].route)&&i.actions&&i.actions[r]){if(!0!==o.apply(i,n))return void("error"===r&&i._router._markErrorAsHandled(n[0])) -a=!0}var c=x[r] +a=!0}var c=k[r] if(c)c.apply(this,[e].concat(n)) else if(!a&&!t)throw new s.default("Nothing handled the action '"+r+"'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.")}function P(e,t,r){for(var n=e._routerMicrolib.applyIntent(t,r),i=n.routeInfos,o=n.params,a=0;a0;){var n=r.shift() +t._clearHandledError(e)}),"Transition Error")}function j(e,t,r,n){var i=e._queryParamsFor(t) +for(var o in r){if(r.hasOwnProperty(o))n(o,r[o],i.map[o])}}function R(e,t){if(e)for(var r=[e];r.length>0;){var n=r.shift() if(n.render.name===t)return n var i=n.outlets -for(var o in i)r.push(i[o])}}function R(e,t,n){var i,o={render:n,outlets:Object.create(null),wasUsed:!1} -return(i=n.into?T(e,n.into):t)?(0,r.set)(i.outlets,n.outlet,o):e=o,{liveRoutes:e,ownState:o}}function C(e,t,r){var n=T(e,r.routeName) +for(var o in i)r.push(i[o])}}function T(e,t,n){var i,o={render:n,outlets:Object.create(null),wasUsed:!1} +return(i=n.into?R(e,n.into):t)?(0,r.set)(i.outlets,n.outlet,o):e=o,{liveRoutes:e,ownState:o}}function C(e,t,r){var n=R(e,r.routeName) return n||(t.outlets.main={render:{name:r.routeName,outlet:"main"},outlets:{}},t)}w.reopenClass({map:function(e){return this.dslCallbacks||(this.dslCallbacks=[],this.reopenClass({dslCallbacks:this.dslCallbacks})),this.dslCallbacks.push(e),this},_routePath:function(e){var t,r,n=[] function i(e,t){for(var r=0;ri?r=i:r<0&&(r=i+r);e=n)&&(r=n-1),r<0&&(r+=n) for(var i=r;i>=0;i--)if((0,t.objectAt)(this,i)===e)return i return-1},l.addArrayObserver=function(e,r){return(0,t.addArrayObserver)(this,e,r)},l.removeArrayObserver=function(e,r){return(0,t.removeArrayObserver)(this,e,r)},l.hasArrayObservers=(0,t.nativeDescDecorator)({configurable:!0,enumerable:!1,get:function(){return(0,t.hasListeners)(this,"@array:change")||(0,t.hasListeners)(this,"@array:before")}}),l.arrayContentWillChange=function(e,r,n){return(0,t.arrayContentWillChange)(this,e,r,n)},l.arrayContentDidChange=function(e,r,n){return(0,t.arrayContentDidChange)(this,e,r,n)},l.forEach=function(e,t){void 0===t&&(t=null) for(var r=this.length,n=0;n1?t-1:0),i=1;i0,l=void 0!==a&&a.length>0,f=Object.keys(t),h=0;h-1&&(p=v?(0,o.makeArray)(v).concat(p):(0,o.makeArray)(p)),l&&a.indexOf(d)>-1&&(p=(0,i.assign)({},v,p))}y?m.set(e,d,p):"function"!=typeof e.setUnknownProperty||d in e?e[d]=p:e.setUnknownProperty(d,p)}e.init(t),r.unsetInitializing() +function v(e,t){var r=(0,s.meta)(e) +if(void 0!==t)for(var n=e.concatenatedProperties,a=e.mergedProperties,c=void 0!==n&&n.length>0,l=void 0!==a&&a.length>0,f=Object.keys(t),h=0;h-1&&(p=y?(0,o.makeArray)(y).concat(p):(0,o.makeArray)(p)),l&&a.indexOf(d)>-1&&(p=(0,i.assign)({},y,p))}v?m.set(e,d,p):"function"!=typeof e.setUnknownProperty||d in e?e[d]=p:e.setUnknownProperty(d,p)}e.init(t),r.unsetInitializing() var b=r.observerEvents() -if(void 0!==b)for(var g=0;g0,n=void 0!==t&&t.length>0,a={},s=0;s-1){var p=a[h] d=p?(0,o.makeArray)(p).concat(d):(0,o.makeArray)(d)}if(n&&t.indexOf(h)>-1){var m=a[h] -d=(0,i.assign)({},m,d)}a[h]=d}return a}v.toString=u.classToString,(0,o.setName)(v,"Ember.CoreObject"),v.isClass=!0,v.isMethod=!1 -var g=v +d=(0,i.assign)({},m,d)}a[h]=d}return a}y.toString=u.classToString,(0,o.setName)(y,"Ember.CoreObject"),y.isClass=!0,y.isMethod=!1 +var g=y e.default=g})),e("@ember/-internals/runtime/lib/system/namespace",["exports","ember-babel","@ember/-internals/metal","@ember/-internals/utils","@ember/-internals/runtime/lib/system/object"],(function(e,t,r,n,i){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var o=function(e){function i(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(i,e) @@ -2061,22 +2061,22 @@ return i} var r={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object AsyncFunction]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},n=Object.prototype.toString})),e("@ember/-internals/utils/index",["exports","@ember/polyfills","@ember/debug"],(function(e,t,r){"use strict" function n(e){var t={} for(var r in t[e]=1,t)if(r===e)return r -return e}function i(e){return null!==e&&("object"==typeof e||"function"==typeof e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT=e.HAS_NATIVE_SYMBOL=e.HAS_NATIVE_PROXY=e.GUID_KEY=e.EMBER_ARRAY=e.Cache=void 0,e.canInvoke=B,e.checkHasSuper=void 0,e.dictionary=function(e){var t=Object.create(e) +return e}function i(e){return null!==e&&("object"==typeof e||"function"==typeof e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT=e.HAS_NATIVE_SYMBOL=e.HAS_NATIVE_PROXY=e.GUID_KEY=e.EMBER_ARRAY=e.Cache=void 0,e.canInvoke=L,e.checkHasSuper=void 0,e.dictionary=function(e){var t=Object.create(e) return t._dict=null,delete t._dict,t},e.generateGuid=function(e,t){void 0===t&&(t="ember") var r=t+a() i(e)&&s.set(e,r) -return r},e.getDebugName=void 0,e.getListeners=S,e.getName=function(e){return U.get(e)},e.getObservers=k,e.getOwnPropertyDescriptors=void 0,e.guidFor=function(e){var t +return r},e.getDebugName=void 0,e.getListeners=S,e.getName=function(e){return U.get(e)},e.getObservers=x,e.getOwnPropertyDescriptors=void 0,e.guidFor=function(e){var t if(i(e))void 0===(t=s.get(e))&&(t="ember"+a(),s.set(e,t)) else if(void 0===(t=u.get(e))){var r=typeof e t="string"===r?"st"+a():"number"===r?"nu"+a():"symbol"===r?"sy"+a():"("+e+")",u.set(e,t)}return t},e.inspect=function(e){if("number"==typeof e&&2===arguments.length)return this -return N(e,0)},e.intern=n,e.isEmberArray=function(e){return e&&e[J]},e.isInternalSymbol=function(e){return-1!==f.indexOf(e)},e.isObject=i,e.isProxy=function(e){if(i(e))return W.has(e) -return!1},e.lookupDescriptor=L,e.makeArray=function(e){if(null==e)return[] -return F(e)?e:[e]},e.setListeners=E,e.setName=function(e,t){i(e)&&U.set(e,t)},e.setObservers=x,e.setProxy=function(e){i(e)&&W.add(e)},e.setupMandatorySetter=e.setWithMandatorySetter=void 0,e.symbol=h,e.teardownMandatorySetter=void 0,e.toString=function e(t){if("string"==typeof t)return t +return N(e,0)},e.intern=n,e.isEmberArray=function(e){return e&&e[$]},e.isInternalSymbol=function(e){return-1!==f.indexOf(e)},e.isObject=i,e.isProxy=function(e){if(i(e))return W.has(e) +return!1},e.lookupDescriptor=B,e.makeArray=function(e){if(null==e)return[] +return F(e)?e:[e]},e.setListeners=E,e.setName=function(e,t){i(e)&&U.set(e,t)},e.setObservers=k,e.setProxy=function(e){i(e)&&W.add(e)},e.setupMandatorySetter=e.setWithMandatorySetter=void 0,e.symbol=h,e.teardownMandatorySetter=void 0,e.toString=function e(t){if("string"==typeof t)return t if(null===t)return"null" if(void 0===t)return"undefined" -if(Array.isArray(t)){for(var r="",n=0;n0&&(r+=","),H(t[n])||(r+=e(t[n])) +if(Array.isArray(t)){for(var r="",n=0;n0&&(r+=","),q(t[n])||(r+=e(t[n])) return r}if("function"==typeof t.toString)return t.toString() -return z.call(t)},e.tryInvoke=function(e,t,r){if(B(e,t)){return e[t].apply(e,r)}},e.uuid=a +return z.call(t)},e.tryInvoke=function(e,t,r){if(L(e,t)){return e[t].apply(e,r)}},e.uuid=a e.wrap=function(e,t){if(!w(e))return e if(!P.has(t)&&w(t))return M(e,M(t,g)) return M(e,t)} @@ -2090,50 +2090,50 @@ e.getDebugName=d var p=void 0!==Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:function(e){var t={} return Object.keys(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t} e.getOwnPropertyDescriptors=p -var m=/\.(_super|call\(this|apply\(this)/,y=Function.prototype.toString,v=y.call((function(){return this})).indexOf("return this")>-1?function(e){return m.test(y.call(e))}:function(){return!0} -e.checkHasSuper=v +var m=/\.(_super|call\(this|apply\(this)/,v=Function.prototype.toString,y=v.call((function(){return this})).indexOf("return this")>-1?function(e){return m.test(v.call(e))}:function(){return!0} +e.checkHasSuper=y var b=new WeakMap,g=Object.freeze((function(){})) function w(e){var t=b.get(e) -return void 0===t&&(t=v(e),b.set(e,t)),t}e.ROOT=g,b.set(g,!1) +return void 0===t&&(t=y(e),b.set(e,t)),t}e.ROOT=g,b.set(g,!1) var _=new WeakMap -function x(e,t){_.set(e,t)}function k(e){return _.get(e)}var O=new WeakMap +function k(e,t){_.set(e,t)}function x(e){return _.get(e)}var O=new WeakMap function E(e,t){t&&O.set(e,t)}function S(e){return O.get(e)}var P=new t._WeakSet function M(e,t){function r(){var r=this._super this._super=t var n=e.apply(this,arguments) -return this._super=r,n}return P.add(r),x(r,k(e)),E(r,S(e)),r}var j=Object.prototype.toString,A=Function.prototype.toString,T=Array.isArray,R=Object.keys,C=JSON.stringify,I=/^[\w$]+$/ +return this._super=r,n}return P.add(r),k(r,x(e)),E(r,S(e)),r}var A=Object.prototype.toString,j=Function.prototype.toString,R=Array.isArray,T=Object.keys,C=JSON.stringify,I=/^[\w$]+$/ function N(e,r,n){var i=!1 switch(typeof e){case"undefined":return"undefined" case"object":if(null===e)return"null" -if(T(e)){i=!0 -break}if(e.toString===j||void 0===e.toString)break +if(R(e)){i=!0 +break}if(e.toString===A||void 0===e.toString)break return e.toString() -case"function":return e.toString===A?e.name?"[Function:"+e.name+"]":"[Function]":e.toString() +case"function":return e.toString===j?e.name?"[Function:"+e.name+"]":"[Function]":e.toString() case"string":return C(e) case"symbol":case"boolean":case"number":default:return e.toString()}if(void 0===n)n=new t._WeakSet else if(n.has(e))return"[Circular]" return n.add(e),i?function(e,t,r){if(t>4)return"[Array]" for(var n="[",i=0;i=100){n+="... "+(e.length-100)+" more items" break}n+=N(e[i],t,r)}return n+=" ]"}(e,r+1,n):function(e,t,r){if(t>4)return"[Object]" -for(var n="{",i=R(e),o=0;o=100){n+="... "+(i.length-100)+" more keys" +for(var n="{",i=T(e),o=0;o=100){n+="... "+(i.length-100)+" more keys" break}var a=i[o] -n+=D(a)+": "+N(e[a],t,r)}return n+=" }"}(e,r+1,n)}function D(e){return I.test(e)?e:C(e)}function L(e,t){var r=e +n+=D(a)+": "+N(e[a],t,r)}return n+=" }"}(e,r+1,n)}function D(e){return I.test(e)?e:C(e)}function B(e,t){var r=e do{var n=Object.getOwnPropertyDescriptor(r,t) if(void 0!==n)return n r=Object.getPrototypeOf(r)}while(null!==r) -return null}function B(e,t){return null!=e&&"function"==typeof e[t]}var F=Array.isArray +return null}function L(e,t){return null!=e&&"function"==typeof e[t]}var F=Array.isArray var U=new WeakMap var z=Object.prototype.toString -function H(e){return null==e}var q="function"==typeof Symbol&&"symbol"==typeof Symbol() -e.HAS_NATIVE_SYMBOL=q +function q(e){return null==e}var H="function"==typeof Symbol&&"symbol"==typeof Symbol() +e.HAS_NATIVE_SYMBOL=H var V="function"==typeof Proxy e.HAS_NATIVE_PROXY=V var W=new t._WeakSet -var Y=function(){function e(e,t,r){this.limit=e,this.func=t,this.store=r,this.size=0,this.misses=0,this.hits=0,this.store=r||new Map}var t=e.prototype +var G=function(){function e(e,t,r){this.limit=e,this.func=t,this.store=r,this.size=0,this.misses=0,this.hits=0,this.store=r||new Map}var t=e.prototype return t.get=function(e){return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,this.set(e,this.func(e)))},t.set=function(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t},t.purge=function(){this.store.clear(),this.size=0,this.hits=0,this.misses=0},e}() -e.Cache=Y -var G,K,$,J=h("EMBER_ARRAY") -e.EMBER_ARRAY=J,e.setupMandatorySetter=G,e.teardownMandatorySetter=K,e.setWithMandatorySetter=$})),e("@ember/-internals/views/index",["exports","@ember/-internals/views/lib/system/jquery","@ember/-internals/views/lib/system/utils","@ember/-internals/views/lib/system/event_dispatcher","@ember/-internals/views/lib/component_lookup","@ember/-internals/views/lib/mixins/text_support","@ember/-internals/views/lib/views/core_view","@ember/-internals/views/lib/mixins/class_names_support","@ember/-internals/views/lib/mixins/child_views_support","@ember/-internals/views/lib/mixins/view_state_support","@ember/-internals/views/lib/mixins/view_support","@ember/-internals/views/lib/mixins/action_support","@ember/-internals/views/lib/compat/attrs","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,n,i,o,a,s,u,c,l,f,h,d){"use strict" +e.Cache=G +var Y,K,J,$=h("EMBER_ARRAY") +e.EMBER_ARRAY=$,e.setupMandatorySetter=Y,e.teardownMandatorySetter=K,e.setWithMandatorySetter=J})),e("@ember/-internals/views/index",["exports","@ember/-internals/views/lib/system/jquery","@ember/-internals/views/lib/system/utils","@ember/-internals/views/lib/system/event_dispatcher","@ember/-internals/views/lib/component_lookup","@ember/-internals/views/lib/mixins/text_support","@ember/-internals/views/lib/views/core_view","@ember/-internals/views/lib/mixins/class_names_support","@ember/-internals/views/lib/mixins/child_views_support","@ember/-internals/views/lib/mixins/view_state_support","@ember/-internals/views/lib/mixins/view_support","@ember/-internals/views/lib/mixins/action_support","@ember/-internals/views/lib/compat/attrs","@ember/-internals/views/lib/system/action_manager"],(function(e,t,r,n,i,o,a,s,u,c,l,f,h,d){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ActionManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"ActionSupport",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"ChildViewsSupport",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"ClassNamesSupport",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"ComponentLookup",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"CoreView",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"EventDispatcher",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MUTABLE_CELL",{enumerable:!0,get:function(){return h.MUTABLE_CELL}}),Object.defineProperty(e,"TextSupport",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ViewMixin",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ViewStateSupport",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"addChildView",{enumerable:!0,get:function(){return r.addChildView}}),Object.defineProperty(e,"clearElementView",{enumerable:!0,get:function(){return r.clearElementView}}),Object.defineProperty(e,"clearViewElement",{enumerable:!0,get:function(){return r.clearViewElement}}),Object.defineProperty(e,"constructStyleDeprecationMessage",{enumerable:!0,get:function(){return r.constructStyleDeprecationMessage}}),Object.defineProperty(e,"getChildViews",{enumerable:!0,get:function(){return r.getChildViews}}),Object.defineProperty(e,"getElementView",{enumerable:!0,get:function(){return r.getElementView}}),Object.defineProperty(e,"getRootViews",{enumerable:!0,get:function(){return r.getRootViews}}),Object.defineProperty(e,"getViewBoundingClientRect",{enumerable:!0,get:function(){return r.getViewBoundingClientRect}}),Object.defineProperty(e,"getViewBounds",{enumerable:!0,get:function(){return r.getViewBounds}}),Object.defineProperty(e,"getViewClientRects",{enumerable:!0,get:function(){return r.getViewClientRects}}),Object.defineProperty(e,"getViewElement",{enumerable:!0,get:function(){return r.getViewElement}}),Object.defineProperty(e,"getViewId",{enumerable:!0,get:function(){return r.getViewId}}),Object.defineProperty(e,"isSimpleClick",{enumerable:!0,get:function(){return r.isSimpleClick}}),Object.defineProperty(e,"jQuery",{enumerable:!0,get:function(){return t.jQuery}}),Object.defineProperty(e,"jQueryDisabled",{enumerable:!0,get:function(){return t.jQueryDisabled}}),Object.defineProperty(e,"setElementView",{enumerable:!0,get:function(){return r.setElementView}}),Object.defineProperty(e,"setViewElement",{enumerable:!0,get:function(){return r.setViewElement}})})),e("@ember/-internals/views/lib/compat/attrs",["exports","@ember/-internals/utils"],(function(e,t){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.MUTABLE_CELL=void 0 var r=(0,t.symbol)("MUTABLE_CELL") @@ -2197,11 +2197,11 @@ for(var s=0;s2)&&(r=Array.prototype.slice.call(arguments,1)),w(e=(0,t.getString)(e)||e,r)}function x(e){return e.split(/\s+/)}function k(e){return g.get(e)}function O(e){return o.get(e)}function E(e){return u.get(e)}function S(e){return h.get(e)}function P(e){return m.get(e)}function M(e){return v.get(e)}r.ENV.EXTEND_PROTOTYPES.String&&Object.defineProperties(String.prototype,{w:{configurable:!0,enumerable:!1,writeable:!0,value:function(){return x(this)}},loc:{configurable:!0,enumerable:!1,writeable:!0,value:function(){for(var e=arguments.length,t=new Array(e),r=0;r2)&&(r=Array.prototype.slice.call(arguments,1)),w(e=(0,t.getString)(e)||e,r)}function k(e){return e.split(/\s+/)}function x(e){return g.get(e)}function O(e){return o.get(e)}function E(e){return u.get(e)}function S(e){return h.get(e)}function P(e){return m.get(e)}function M(e){return y.get(e)}r.ENV.EXTEND_PROTOTYPES.String&&Object.defineProperties(String.prototype,{w:{configurable:!0,enumerable:!1,writeable:!0,value:function(){return k(this)}},loc:{configurable:!0,enumerable:!1,writeable:!0,value:function(){for(var e=arguments.length,t=new Array(e),r=0;r=0;u--){var c=r[u] @@ -2662,22 +2662,22 @@ o.push(ce("Label",c.label),ce(34,2),c.callback()),0!==u&&o.push(ce(4,l("END")))} return[ce("StartLabels"),ce(0),ce(6,l("ENDINITIAL")),o,ce(69,i),r(),ce("Label","FINALLY"),ce(70),ce(5),ce("Label","ENDINITIAL"),ce(1),ce("StopLabels")]}function S(e){var t=e.args,r=e.ifTrue,n=e.ifFalse return E({args:t,body:function(){var e=[ce(66,l("ELSE")),r(),ce(4,l("FINALLY")),ce("Label","ELSE")] return n&&e.push(n()),e}})}function P(e,t){var r=e.encoder,i=e.syntax.program,o=i.mode,a=i.constants -switch(t.op){case"Option":return B(e,function(e){var t=e.op1 +switch(t.op){case"Option":return L(e,function(e){var t=e.op1 return null===t?I:t}(t)) case"Label":return r.label(t.op1) case"StartLabels":return r.startLabels() case"StopLabels":return r.stopLabels() -case"JitCompileBlock":return B(e,function(e){return"jit"===e?ce(61):I}(o)) +case"JitCompileBlock":return L(e,function(e){return"jit"===e?ce(61):I}(o)) case"GetComponentLayout":return r.push(a,function(e){return"aot"===e?94:95}(o),t.op1) case"SetBlock":return r.push(a,function(e){return"aot"===e?20:21}(o),t.op1) default:return(0,n.exhausted)(t)}}function M(e,t){U(e,function(e,t){switch(t.op){case"CompileBlock":return function(e,t){return function(e,t){var r=e[1],n=e[2],i=e[3],o=ne(e[4],t.meta),a=ie(r,t.meta,"Expected block head to be a string") if("string"!=typeof a)return a return t.syntax.macros.blocks.compile(a,n||[],i,o,t)}(t.op1,e)}(e,t) case"CompileInline":return function(e,t){var r=t.op1,n=r.inline,i=r.ifUnhandled,o=function(e,t){return t.syntax.macros.inlines.compile(e,t)}(n,e) -return L(o)?o:i(n)}(e,t) +return B(o)?o:i(n)}(e,t) case"InvokeStatic":return function(e,t){var r=t.op1 if("aot"===e.program.mode){var n=r.compile(e) -return"number"!=typeof n?ce("Error",{problem:"Invalid block",start:0,end:0}):ce(3,n===J?function(){return r.compile(e)}:n)}return[ce(29,c(t.op1)),ce(61),ce(2)]}(e.syntax,t) +return"number"!=typeof n?ce("Error",{problem:"Invalid block",start:0,end:0}):ce(3,n===$?function(){return r.compile(e)}:n)}return[ce(29,c(t.op1)),ce(61),ce(2)]}(e.syntax,t) case"Args":return function(e){for(var t=e.params,r=e.hash,i=e.blocks,o=e.atNames,a=[],u=i.names,c=0;c0?ee(i,e.meta):null,l=Array.isArray(s)||null===s?ne(s,e.meta):s -return ye(e.meta,{definition:n,attrs:c,params:o,hash:a,atNames:u,blocks:l})}(e,t) +return ve(e.meta,{definition:n,attrs:c,params:o,hash:a,atNames:u,blocks:l})}(e,t) case"IfResolvedComponent":return function(e,t){var r=t.op1,n=r.name,i=r.attrs,o=r.blocks,a=r.staticTemplate,s=r.dynamicTemplate,u=r.orElse,c=p(n,{resolver:e.syntax.program.resolverDelegate,meta:e.meta}),l=e.meta -if(null!==c){var f=c.handle,h=c.capabilities,d=c.compilable,m=ee(i,l),y=ne(o,l) -return null!==d?a(f,h,d,{attrs:m,blocks:y}):s(f,h,{attrs:m,blocks:y})}if(u)return u() +if(null!==c){var f=c.handle,h=c.capabilities,d=c.compilable,m=ee(i,l),v=ne(o,l) +return null!==d?a(f,h,d,{attrs:m,blocks:v}):s(f,h,{attrs:m,blocks:v})}if(u)return u() throw new Error("Compile Error: Cannot find component "+n)}(e,t) -default:return(0,n.exhausted)(t)}}(e,t))}function j(e,t,r){void 0!==r.op3?e.push(t,r.op,r.op1,r.op2,r.op3):void 0!==r.op2?e.push(t,r.op,r.op1,r.op2):void 0!==r.op1?e.push(t,r.op,r.op1):e.push(t,r.op)}e.DefaultCompileTimeResolverDelegate=d -var A=function(){function e(){this.names={},this.funcs=[]}var t=e.prototype +default:return(0,n.exhausted)(t)}}(e,t))}function A(e,t,r){void 0!==r.op3?e.push(t,r.op,r.op1,r.op2,r.op3):void 0!==r.op2?e.push(t,r.op,r.op1,r.op2):void 0!==r.op1?e.push(t,r.op,r.op1):e.push(t,r.op)}e.DefaultCompileTimeResolverDelegate=d +var j=function(){function e(){this.names={},this.funcs=[]}var t=e.prototype return t.add=function(e,t){this.names[e]=this.funcs.push(t)-1},t.compile=function(e,t){var r=e[0],n=this.names[r] -return(0,this.funcs[n])(e,t)},e}(),T=new A -function R(e,t){if(void 0===t||0===t.length)return e +return(0,this.funcs[n])(e,t)},e}(),R=new j +function T(e,t){if(void 0===t||0===t.length)return e Array.isArray(e)||(e=[e]) for(var r=0;r=34){var r=e[1] return!(!t.upvars||"component"!==t.upvars[r])}var n return!1}(n,t))return i&&0!==i.length?function(e,t){var n=e.definition,i=e.params,o=e.hash,a=e.atNames return[ce(0),ce("SimpleArgs",{params:i,hash:o,atNames:a}),ce(88),ce("Expr",n),ce(79,u(t)),ce(1),ce(36,r.$v0)]}({definition:i[0],params:i.slice(1),hash:o,atNames:!1},t.referrer):ce("Error",{problem:"component helper requires at least one argument",start:0,end:0}) var a=ie(n,t,"Expected call head to be a string") -return"string"!=typeof a?a:ce("IfResolved",{kind:"Helper",name:a,andThen:function(e){return v({handle:e,params:i,hash:o})},span:{start:0,end:0}})})),T.add(32,(function(e){var t=e[1],r=e[2] -return R(ce(22,t),r)})),T.add(33,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveFree",t),r)})),T.add(34,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveContextualFree",{freeVar:t,context:0}),r)})),T.add(35,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveContextualFree",{freeVar:t,context:1}),r)})),T.add(36,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveContextualFree",{freeVar:t,context:2}),r)})),T.add(37,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveContextualFree",{freeVar:t,context:3}),r)})),T.add(38,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveContextualFree",{freeVar:t,context:4}),r)})),T.add(39,(function(e){var t=e[1],r=e[2] -return R(ce("ResolveContextualFree",{freeVar:t,context:5}),r)})),T.add(29,(function(){return m(void 0)})),T.add(27,(function(e){return[ce("Expr",e[1]),ce(26)]})),T.add(28,(function(e){return[ce("Expr",e[1]),ce(25),ce("JitCompileBlock"),ce(27)]})) +return"string"!=typeof a?a:ce("IfResolved",{kind:"Helper",name:a,andThen:function(e){return y({handle:e,params:i,hash:o})},span:{start:0,end:0}})})),R.add(32,(function(e){var t=e[1],r=e[2] +return T(ce(22,t),r)})),R.add(33,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveFree",t),r)})),R.add(34,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveContextualFree",{freeVar:t,context:0}),r)})),R.add(35,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveContextualFree",{freeVar:t,context:1}),r)})),R.add(36,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveContextualFree",{freeVar:t,context:2}),r)})),R.add(37,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveContextualFree",{freeVar:t,context:3}),r)})),R.add(38,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveContextualFree",{freeVar:t,context:4}),r)})),R.add(39,(function(e){var t=e[1],r=e[2] +return T(ce("ResolveContextualFree",{freeVar:t,context:5}),r)})),R.add(29,(function(){return m(void 0)})),R.add(27,(function(e){return[ce("Expr",e[1]),ce(26)]})),R.add(28,(function(e){return[ce("Expr",e[1]),ce(25),ce("JitCompileBlock"),ce(27)]})) var I={"no-action":!0} e.NONE=I var N={"not-handled":!0} -function D(e){return e&&!!e["no-action"]}function L(e){return!e||!e["not-handled"]}function B(e,r){if(!D(r))if(Array.isArray(r))for(var n,i=(0,t.createForOfIteratorHelperLoose)(r);!(n=i()).done;){B(e,n.value)}else"Simple"===r.type?P(e,r):j(e.encoder,e.syntax.program.constants,r)}function F(e,r,i,o){if(!D(i))if(Array.isArray(i))for(var a,s=(0,t.createForOfIteratorHelperLoose)(i);!(a=s()).done;){F(e,r,a.value,o)}else if("Number"===i.type)j(e,o,i) +function D(e){return e&&!!e["no-action"]}function B(e){return!e||!e["not-handled"]}function L(e,r){if(!D(r))if(Array.isArray(r))for(var n,i=(0,t.createForOfIteratorHelperLoose)(r);!(n=i()).done;){L(e,n.value)}else"Simple"===r.type?P(e,r):A(e.encoder,e.syntax.program.constants,r)}function F(e,r,i,o){if(!D(i))if(Array.isArray(i))for(var a,s=(0,t.createForOfIteratorHelperLoose)(i);!(a=s()).done;){F(e,r,a.value,o)}else if("Number"===i.type)A(e,o,i) else if("Resolution"===i.type)C(e,r,i,o) else if("Simple"===i.type)P(r,i) else{if("Error"!==i.type)throw(0,n.assertNever)(i,"unexpected action kind") -e.error({problem:i.op1.problem,span:{start:i.op1.start,end:i.op1.end}})}}function U(e,r){if(!D(r))if(Array.isArray(r))for(var i,o=(0,t.createForOfIteratorHelperLoose)(r);!(i=o()).done;){U(e,i.value)}else if("Number"===r.type)j(e.encoder,e.syntax.program.constants,r) +e.error({problem:i.op1.problem,span:{start:i.op1.start,end:i.op1.end}})}}function U(e,r){if(!D(r))if(Array.isArray(r))for(var i,o=(0,t.createForOfIteratorHelperLoose)(r);!(i=o()).done;){U(e,i.value)}else if("Number"===r.type)A(e.encoder,e.syntax.program.constants,r) else if("Compile"===r.type)M(e,r) else if("Resolution"===r.type)C(e.encoder,e,r,e.syntax.program.constants) else if("Simple"===r.type)P(e,r) @@ -2761,24 +2761,24 @@ else if("Error"!==r.type)throw(0,n.assertNever)(r,"unexpected action type")}e.UN var z=function(){var e=function(e,t){return e.add("if",(function(e,t,r){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #if requires a single argument") return S({args:function(){return{count:1,actions:[ce("Expr",e[0]),ce(71)]}},ifTrue:function(){return _(r.get("default"))},ifFalse:function(){return r.has("else")?_(r.get("else")):I}})})),e.add("unless",(function(e,t,r){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #unless requires a single argument") return S({args:function(){return{count:1,actions:[ce("Expr",e[0]),ce(71)]}},ifTrue:function(){return r.has("else")?_(r.get("else")):I},ifFalse:function(){return _(r.get("default"))}})})),e.add("with",(function(e,t,n){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #with requires a single argument") -return S({args:function(){return{count:2,actions:[ce("Expr",e[0]),ce(33,r.$sp,0),ce(71)]}},ifTrue:function(){return x(n.get("default"),1)},ifFalse:function(){return n.has("else")?_(n.get("else")):I}})})),e.add("let",(function(e,t,r){if(!e)return ue("let requires arguments",0,0) +return S({args:function(){return{count:2,actions:[ce("Expr",e[0]),ce(33,r.$sp,0),ce(71)]}},ifTrue:function(){return k(n.get("default"),1)},ifFalse:function(){return n.has("else")?_(n.get("else")):I}})})),e.add("let",(function(e,t,r){if(!e)return ue("let requires arguments",0,0) var n=fe(e),i=n.count -return[n.actions,x(r.get("default"),i)]})),e.add("each",(function(e,t,n){return E({args:function(){var r -return(r=t&&"key"===t[0][0]?[ce("Expr",t[1][0])]:[m(null)]).push(ce("Expr",e[0])),{count:2,actions:r}},body:function(){var e=[ce(74),ce(66,l("ELSE")),ce(0),ce(33,r.$fp,1),ce(6,l("ITER")),ce(72,l("BODY")),ce("Label","ITER"),ce(75,l("BREAK")),ce("Label","BODY"),x(n.get("default"),2),ce(34,2),ce(4,l("FINALLY")),ce("Label","BREAK"),ce(73),ce(1),ce(4,l("FINALLY")),ce("Label","ELSE")] +return[n.actions,k(r.get("default"),i)]})),e.add("each",(function(e,t,n){return E({args:function(){var r +return(r=t&&"key"===t[0][0]?[ce("Expr",t[1][0])]:[m(null)]).push(ce("Expr",e[0])),{count:2,actions:r}},body:function(){var e=[ce(74),ce(66,l("ELSE")),ce(0),ce(33,r.$fp,1),ce(6,l("ITER")),ce(72,l("BODY")),ce("Label","ITER"),ce(75,l("BREAK")),ce("Label","BODY"),k(n.get("default"),2),ce(34,2),ce(4,l("FINALLY")),ce("Label","BREAK"),ce(73),ce(1),ce(4,l("FINALLY")),ce("Label","ELSE")] return n.has("else")&&e.push(_(n.get("else"))),e}})})),e.add("in-element",(function(e,t,n){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #in-element requires a single argument") return S({args:function(){for(var n=t[0],i=t[1],o=[],a=0;a0?1:0)) -for(var g=f.length-1;g>=0;g--){var _=f[g],x=_.symbol -_.isBlock?c.push(ce("SetBlock",x)):c.push(ce(19,x))}return c.push(ce("InvokeStatic",n)),t.createInstance&&c.push(ce(103,r.$s0)),c.push(ce(1),ce(40)),t.dynamicScope&&c.push(ce(60)),c.push(ce(101),ce(35,r.$s0)),c}function ye(e,t){var n=t.definition,i=t.attrs,o=t.params,a=t.hash,s=t.atNames,c=t.blocks -return E({args:function(){return{count:2,actions:[ce("Expr",n),ce(33,r.$sp,0)]}},body:function(){return[ce(66,l("ELSE")),ce(83,u(e.referrer)),ce(81),ve({capabilities:!0,attrs:i,params:o,hash:a,atNames:s,blocks:c}),ce("Label","ELSE")]}})}function ve(e){var t=e.capabilities,n=e.attrs,i=e.params,o=e.hash,a=e.atNames,s=e.blocks,u=e.layout,c=!!s,l=!0===t||t.prepareArgs||!(!o||0===o[0].length),f=s.with("attrs",n) +var m=a[0],v=a[1],y=d,b=m.indexOf(y);-1!==b&&(c.push(ce("Expr",v[b])),f.push({symbol:h+1,isBlock:!1}))}}c.push(ce(37,l.length+1,Object.keys(s).length>0?1:0)) +for(var g=f.length-1;g>=0;g--){var _=f[g],k=_.symbol +_.isBlock?c.push(ce("SetBlock",k)):c.push(ce(19,k))}return c.push(ce("InvokeStatic",n)),t.createInstance&&c.push(ce(103,r.$s0)),c.push(ce(1),ce(40)),t.dynamicScope&&c.push(ce(60)),c.push(ce(101),ce(35,r.$s0)),c}function ve(e,t){var n=t.definition,i=t.attrs,o=t.params,a=t.hash,s=t.atNames,c=t.blocks +return E({args:function(){return{count:2,actions:[ce("Expr",n),ce(33,r.$sp,0)]}},body:function(){return[ce(66,l("ELSE")),ce(83,u(e.referrer)),ce(81),ye({capabilities:!0,attrs:i,params:o,hash:a,atNames:s,blocks:c}),ce("Label","ELSE")]}})}function ye(e){var t=e.capabilities,n=e.attrs,i=e.params,o=e.hash,a=e.atNames,s=e.blocks,u=e.layout,c=!!s,l=!0===t||t.prepareArgs||!(!o||0===o[0].length),f=s.with("attrs",n) return[ce(36,r.$s0),ce(33,r.$sp,1),ce(35,r.$s0),ce(0),ce("Args",{params:i,hash:o,blocks:f,atNames:a}),ce(87,r.$s0),be(f.has("default"),c,l,(function(){var e -return(e=u?[k(u.symbolTable),ce("PushCompilable",u),ce("JitCompileBlock")]:[ce("GetComponentLayout",r.$s0)]).push(ce(98,r.$s0)),e})),ce(35,r.$s0)]}function be(e,t,n,i){void 0===i&&(i=null) +return(e=u?[x(u.symbolTable),ce("PushCompilable",u),ce("JitCompileBlock")]:[ce("GetComponentLayout",r.$s0)]).push(ce(98,r.$s0)),e})),ce(35,r.$s0)]}function be(e,t,n,i){void 0===i&&(i=null) var o=[ce(100),ce(59),ce(89,0|e,r.$s0)] return i&&o.push(i()),o.push(ce(90,r.$s0),ce(92,r.$s0),ce(38,r.$s0),ce(19,0),ce(97,r.$s0),n?ce(17,r.$s0):I,t?ce(18,r.$s0):I,ce(34,1),ce(99,r.$s0),ce(103,r.$s0),ce(1),ce(40),ce(60),ce(101)),o}function ge(e){return ee(e.block.statements,he(e))}var we=function(){function e(e,t,r){this.main=e,this.trustingGuardedAppend=t,this.cautiousGuardedAppend=r}return e.prototype.getAppend=function(e){return e?this.trustingGuardedAppend:this.cautiousGuardedAppend},(0,t.createClass)(e,[{key:"trusting-append",get:function(){return this.trustingGuardedAppend}},{key:"cautious-append",get:function(){return this.cautiousGuardedAppend}}]),e}() -function _e(){return[ce(76,r.$s0),be(!1,!1,!0)]}function xe(e){return[ce(78),O((function(t){t(1,(function(){return e?[ce(68),ce(43)]:ce(47)})),t(0,(function(){return[ce(82),ce(81),[ce(36,r.$s0),ce(33,r.$sp,1),ce(35,r.$s0),ce(0),ce(85),ce(87,r.$s0),be(!1,!1,!0,(function(){return[ce("GetComponentLayout",r.$s0),ce(98,r.$s0)]})),ce(35,r.$s0)]]})),t(3,(function(){return[ce(68),ce(44)]})),t(4,(function(){return[ce(68),ce(45)]})),t(5,(function(){return[ce(68),ce(46)]}))}))]}function ke(e){var t=Ee(e,_e),r=Ee(e,(function(){return xe(!0)})),n=Ee(e,(function(){return xe(!1)})) +function _e(){return[ce(76,r.$s0),be(!1,!1,!0)]}function ke(e){return[ce(78),O((function(t){t(1,(function(){return e?[ce(68),ce(43)]:ce(47)})),t(0,(function(){return[ce(82),ce(81),[ce(36,r.$s0),ce(33,r.$sp,1),ce(35,r.$s0),ce(0),ce(85),ce(87,r.$s0),be(!1,!1,!0,(function(){return[ce("GetComponentLayout",r.$s0),ce(98,r.$s0)]})),ce(35,r.$s0)]]})),t(3,(function(){return[ce(68),ce(44)]})),t(4,(function(){return[ce(68),ce(45)]})),t(5,(function(){return[ce(68),ce(46)]}))}))]}function xe(e){var t=Ee(e,_e),r=Ee(e,(function(){return ke(!0)})),n=Ee(e,(function(){return ke(!1)})) return new we(t,r,n)}e.StdLib=we var Oe={asPartial:!1,evalSymbols:null,upvars:null,referrer:{},size:0} function Ee(e,t){var r=new le,n=new z -B({encoder:r,meta:Oe,syntax:{macros:n,program:e}},t()) +L({encoder:r,meta:Oe,syntax:{macros:n,program:e}},t()) var i=r.commit(e.heap,0) if("number"!=typeof i)throw new Error("Unexpected errors compiling std") -return i}var Se=function(e,t){this.mode=t,this.constants=new i.WriteOnlyConstants,this.heap=new i.HeapImpl,this.resolverDelegate=e,this.stdlib=ke(this)} +return i}var Se=function(e,t){this.mode=t,this.constants=new i.WriteOnlyConstants,this.heap=new i.HeapImpl,this.resolverDelegate=e,this.stdlib=xe(this)} e.ProgramCompilationContext=Se -var Pe=function(e){this.constants=new i.JitConstants,this.heap=new i.HeapImpl,this.mode="jit",this.resolverDelegate=e,this.stdlib=ke(this)} +var Pe=function(e){this.constants=new i.JitConstants,this.heap=new i.HeapImpl,this.mode="jit",this.resolverDelegate=e,this.stdlib=xe(this)} e.JitProgramCompilationContext=Pe var Me=function(){function e(e,t){this.name=e,this.template=t}return e.prototype.getPartial=function(e){var t=(0,n.unwrapTemplate)(this.template).asPartial(),r=t.compile(e) return{symbolTable:t.symbolTable,handle:r}},e}() e.PartialDefinitionImpl=Me -var je=function(){function e(e){this.layout=e,this.compiled=null +var Ae=function(){function e(e){this.layout=e,this.compiled=null var t=e.block,r=t.symbols.slice(),n=r.indexOf("&attrs") this.attrsBlockNumber=-1===n?r.push("&attrs"):n+1,this.symbolTable={hasEval:t.hasEval,symbols:r}}return e.prototype.compile=function(e){if(null!==this.compiled)return this.compiled var t,o,a,s,u=he(this.layout),c=V(e,u) U(c,(t=this.layout,o=this.attrsBlockNumber,[ce("StartLabels"),(a=r.$s1,s=function(){return[ce(93,r.$s0),ce(31),ce(33,r.$sp,0)]},[ce(36,a),s(),ce(35,a)]),ce(66,l("BODY")),ce(36,r.$s1),ce(91),ce(49),ce(102,r.$s0),g(o,n.EMPTY_ARRAY),ce(54),ce("Label","BODY"),_(ge(t)),ce(36,r.$s1),ce(66,l("END")),ce(55),ce("Label","END"),ce(35,r.$s1),ce("StopLabels")])) var f=c.encoder.commit(c.syntax.program.heap,u.size) return"number"!=typeof f||(this.compiled=f,(0,i.patchStdlibs)(c.syntax.program)),f},e}() -e.WrappedBuilder=je -var Ae=0 -function Te(e){var t,r=e.id,i=e.meta,o=e.block,a=r||"client-"+Ae++ +e.WrappedBuilder=Ae +var je=0 +function Re(e){var t,r=e.id,i=e.meta,o=e.block,a=r||"client-"+je++ return{id:a,meta:i,create:function(e){var r=e?(0,n.assign)({},e,i):i -return t||(t=JSON.parse(o)),new Re({id:a,block:t,referrer:r})}}}var Re=function(){function e(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.partial=null,this.wrappedLayout=null +return t||(t=JSON.parse(o)),new Te({id:a,block:t,referrer:r})}}}var Te=function(){function e(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.partial=null,this.wrappedLayout=null var t=e.block -this.symbols=t.symbols,this.hasEval=t.hasEval,this.referrer=e.referrer,this.id=e.id||"client-"+Ae++}var t=e.prototype -return t.asLayout=function(){return this.layout?this.layout:this.layout=Q((0,n.assign)({},this.parsedLayout,{asPartial:!1}))},t.asPartial=function(){return this.partial?this.partial:this.layout=Q((0,n.assign)({},this.parsedLayout,{asPartial:!0}))},t.asWrappedLayout=function(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new je((0,n.assign)({},this.parsedLayout,{asPartial:!1}))},e}()})),e("@glimmer/program",["exports","ember-babel","@glimmer/util"],(function(e,t,r){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.WriteOnlyConstants=e.WELL_KNOWN_EMPTY_ARRAY_POSITION=e.RuntimeProgramImpl=e.RuntimeOpImpl=e.RuntimeHeapImpl=e.RuntimeConstantsImpl=e.JitConstants=e.HeapImpl=void 0,e.artifacts=function(e){return v(e.program)},e.hydrateHeap=function(e){return new f(e)},e.hydrateProgram=function(e){var t=new f(e.heap),r=new a(e.constants) -return new d(r,t)},e.patchStdlibs=function(e){e.heap.patchStdlibs(e.stdlib)},e.programArtifacts=v +this.symbols=t.symbols,this.hasEval=t.hasEval,this.referrer=e.referrer,this.id=e.id||"client-"+je++}var t=e.prototype +return t.asLayout=function(){return this.layout?this.layout:this.layout=Q((0,n.assign)({},this.parsedLayout,{asPartial:!1}))},t.asPartial=function(){return this.partial?this.partial:this.layout=Q((0,n.assign)({},this.parsedLayout,{asPartial:!0}))},t.asWrappedLayout=function(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new Ae((0,n.assign)({},this.parsedLayout,{asPartial:!1}))},e}()})),e("@glimmer/program",["exports","ember-babel","@glimmer/util"],(function(e,t,r){"use strict" +Object.defineProperty(e,"__esModule",{value:!0}),e.WriteOnlyConstants=e.WELL_KNOWN_EMPTY_ARRAY_POSITION=e.RuntimeProgramImpl=e.RuntimeOpImpl=e.RuntimeHeapImpl=e.RuntimeConstantsImpl=e.JitConstants=e.HeapImpl=void 0,e.artifacts=function(e){return y(e.program)},e.hydrateHeap=function(e){return new f(e)},e.hydrateProgram=function(e){var t=new f(e.heap),r=new a(e.constants) +return new d(r,t)},e.patchStdlibs=function(e){e.heap.patchStdlibs(e.stdlib)},e.programArtifacts=y var n={} e.WELL_KNOWN_EMPTY_ARRAY_POSITION=0 var i=Object.freeze([]),o=function(){function e(){this.strings=[],this.arrays=[i],this.tables=[],this.handles=[],this.resolved=[],this.numbers=[],this.others=[]}var t=e.prototype @@ -2935,7 +2935,7 @@ var u=function(){function e(e){this.heap=e,this.offset=0}return(0,t.createClass) function c(e,t){return t|e<<2}function l(e,t){return e|t<<30}e.RuntimeOpImpl=u var f=function(){function e(e){var t=e.buffer,r=e.table this.heap=new Int32Array(t),this.table=r}var t=e.prototype -return t.getaddr=function(e){return this.table[e]},t.getbyaddr=function(e){return this.heap[e]},t.sizeof=function(e){return m(this.table,e)},t.scopesizeof=function(e){return y(this.table,e)},e}() +return t.getaddr=function(e){return this.table[e]},t.getbyaddr=function(e){return this.heap[e]},t.sizeof=function(e){return m(this.table,e)},t.scopesizeof=function(e){return v(this.table,e)},e}() e.RuntimeHeapImpl=f var h=function(){function e(){this.placeholders=[],this.stdlibs=[],this.offset=0,this.handle=0,this.capacity=1048576,this.heap=new Int32Array(1048576),this.table=[]}var t=e.prototype return t.push=function(e){this.sizeCheck(),this.heap[this.offset++]=e},t.sizeCheck=function(){if(0===this.capacity){var e=p(this.heap,0,this.offset) @@ -2943,7 +2943,7 @@ this.heap=new Int32Array(e.length+1048576),this.heap.set(e,0),this.capacity=1048 var e=this.handle return this.handle+=3,e},t.finishMalloc=function(e,t){this.table[e+1]=c(t,0)},t.size=function(){return this.offset},t.getaddr=function(e){return this.table[e]},t.gethandle=function(e){this.table.push(e,c(0,3),0) var t=this.handle -return this.handle+=3,t},t.sizeof=function(e){return m(this.table,e)},t.scopesizeof=function(e){return y(this.table,e)},t.free=function(e){var t=this.table[e+1] +return this.handle+=3,t},t.sizeof=function(e){return m(this.table,e)},t.scopesizeof=function(e){return v(this.table,e)},t.free=function(e){var t=this.table[e+1] this.table[e+1]=l(t,1)},t.compact=function(){for(var e=0,t=this.table,r=this.table.length,n=this.heap,i=0;i>2}function v(e){return{heap:e.heap.capture(e.stdlib),constants:e.constants.toPool()}}e.RuntimeProgramImpl=d})),e("@glimmer/reference",["exports","ember-babel","@glimmer/util","@glimmer/validator"],(function(e,t,r,n){"use strict" +return n}function m(e,t){return-1}function v(e,t){return e[t+1]>>2}function y(e){return{heap:e.heap.capture(e.stdlib),constants:e.constants.toPool()}}e.RuntimeProgramImpl=d})),e("@glimmer/reference",["exports","ember-babel","@glimmer/util","@glimmer/validator"],(function(e,t,r,n){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.UPDATE_REFERENCED_VALUE=e.RootReference=e.ReferenceIterator=e.ReferenceCache=e.PropertyReference=e.ListItem=e.IteratorSynchronizer=e.IterationItemReference=e.IterationArtifacts=e.IterableImpl=e.HelperRootReference=e.END=e.ConstReference=e.ComponentRootReference=e.CachedReference=void 0,e.isModified=function(e){return e!==a} var i=function(){function e(){this.lastRevision=null,this.lastValue=null}var t=e.prototype return t.value=function(){var e=this.tag,t=this.lastRevision,r=this.lastValue @@ -3024,12 +3024,12 @@ return this.current=e.nextNode(n),n.shouldRemove()?(e.remove(n),t.delete(this.en e.IteratorSynchronizer=p var m=(0,r.symbol)("UPDATE_REFERENCED_VALUE") e.UPDATE_REFERENCED_VALUE=m -var y=function(){function e(e){this.env=e,this.children=(0,r.dict)(),this.tag=n.CONSTANT_TAG}return e.prototype.get=function(e){var t=this.children[e] +var v=function(){function e(e){this.env=e,this.children=(0,r.dict)(),this.tag=n.CONSTANT_TAG}return e.prototype.get=function(e){var t=this.children[e] return void 0===t&&(t=this.children[e]=new g(this,e,this.env)),t},e}() -e.RootReference=y -var v=function(e){function r(t,r){var n -return(n=e.call(this,r)||this).inner=t,n}return(0,t.inheritsLoose)(r,e),r.prototype.value=function(){return this.inner},r}(y) -e.ComponentRootReference=v +e.RootReference=v +var y=function(e){function r(t,r){var n +return(n=e.call(this,r)||this).inner=t,n}return(0,t.inheritsLoose)(r,e),r.prototype.value=function(){return this.inner},r}(v) +e.ComponentRootReference=y var b=function(e){function r(r,i,o,a){var s;(s=e.call(this,o)||this).fn=r,s.args=i,s.computeRevision=null,s.computeTag=null,(0,n.isConst)(i)&&s.compute() var u=(0,t.assertThisInitialized)(s),c=u.tag,l=u.computeTag if(null!==l&&(0,n.isConstTag)(l))c=s.tag=n.CONSTANT_TAG,s.computeRevision=(0,n.valueForTag)(c) @@ -3038,7 +3038,7 @@ c=s.tag=(0,n.combine)([i.tag,f]),null!==l&&((0,n.updateTag)(f,l),s.computeRevisi var i=r.prototype return i.compute=function(){var e=this this.computeTag=(0,n.track)((function(){e.computeValue=e.fn(e.args)}),!1)},i.value=function(){var e=this.tag,t=this.computeRevision -return null!==t&&(0,n.validateTag)(e,t)||(this.compute(),(0,n.updateTag)(this.valueTag,this.computeTag),this.computeRevision=(0,n.valueForTag)(e)),this.computeValue},r}(y) +return null!==t&&(0,n.validateTag)(e,t)||(this.compute(),(0,n.updateTag)(this.valueTag,this.computeTag),this.computeRevision=(0,n.valueForTag)(e)),this.computeValue},r}(v) e.HelperRootReference=b var g=function(){function e(e,t,i){this.parentReference=e,this.propertyKey=t,this.env=i,this.children=(0,r.dict)(),this.lastRevision=null var o=this.valueTag=(0,n.createUpdatableTag)(),a=e.tag @@ -3054,9 +3054,9 @@ var w=function(){function e(e,t,i,o){this.parentReference=e,this.itemValue=t,thi return t.value=function(){return this.itemValue},t.update=function(e){(0,n.dirtyTag)(this.tag),this.itemValue=e},t.get=function(e){var t=this.children[e] return void 0===t&&(t=this.children[e]=new g(this,e,this.env)),t},e}() e.IterationItemReference=w -var _={},x=function(e,t){return t},k=function(e,t){return String(t)},O=function(e){return null===e?_:e} -function E(e,t){switch(e){case"@key":return M(x) -case"@index":return M(k) +var _={},k=function(e,t){return t},x=function(e,t){return String(t)},O=function(e){return null===e?_:e} +function E(e,t){switch(e){case"@key":return M(k) +case"@index":return M(x) case"@identity":return M(O) default:return function(e,t){return M((function(r){return t(r,e)}))}(e,t)}}var S=function(){function e(){}var n=e.prototype return n.set=function(e,t){(0,r.isObject)(e)||"function"==typeof e?this.weakMap.set(e,t):this.primitiveMap.set(e,t)},n.get=function(e){return(0,r.isObject)(e)||"function"==typeof e?this.weakMap.get(e):this.primitiveMap.get(e)},(0,t.createClass)(e,[{key:"weakMap",get:function(){return void 0===this._weakMap&&(this._weakMap=new WeakMap),this._weakMap}},{key:"primitiveMap",get:function(){return void 0===this._primitiveMap&&(this._primitiveMap=new Map),this._primitiveMap}}]),e}(),P=new S @@ -3065,71 +3065,71 @@ return function(r,n){var i=e(r,n),o=t.get(i)||0 return t.set(i,o+1),0===o?i:function(e,t){var r=P.get(e) void 0===r&&(r=[],P.set(e,r)) var n=r[t] -return void 0===n&&(n={value:e,count:t},r[t]=n),n}(i,o)}}var j=function(){function e(e,t,r){this.parentRef=e,this.key=t,this.env=r,this.tag=e.tag}var t=e.prototype +return void 0===n&&(n={value:e,count:t},r[t]=n),n}(i,o)}}var A=function(){function e(e,t,r){this.parentRef=e,this.key=t,this.env=r,this.tag=e.tag}var t=e.prototype return t.iterate=function(){var e=this.parentRef,t=this.key,n=this.env,i=e.value(),o=E(t,n.getPath) -if(Array.isArray(i))return new T(i,o) +if(Array.isArray(i))return new R(i,o) var a=n.toIterator(i) -return null===a?new T(r.EMPTY_ARRAY,(function(){return null})):new A(a,o)},t.valueReferenceFor=function(e){var t=this.parentRef,r=this.env +return null===a?new R(r.EMPTY_ARRAY,(function(){return null})):new j(a,o)},t.valueReferenceFor=function(e){var t=this.parentRef,r=this.env return new w(t,e.value,e.memo,r)},t.updateValueReference=function(e,t){e.update(t.value)},t.memoReferenceFor=function(e){var t=this.parentRef,r=this.env return new w(t,e.memo,"",r)},t.updateMemoReference=function(e,t){e.update(t.memo)},e}() -e.IterableImpl=j -var A=function(){function e(e,t){this.inner=e,this.keyFor=t}var t=e.prototype +e.IterableImpl=A +var j=function(){function e(e,t){this.inner=e,this.keyFor=t}var t=e.prototype return t.isEmpty=function(){return this.inner.isEmpty()},t.next=function(){var e=this.inner.next() -return null!==e&&(e.key=this.keyFor(e.value,e.memo)),e},e}(),T=function(){function e(e,t){this.iterator=e,this.keyFor=t,this.pos=0,0===e.length?this.current={kind:"empty"}:this.current={kind:"first",value:e[this.pos]}}var t=e.prototype +return null!==e&&(e.key=this.keyFor(e.value,e.memo)),e},e}(),R=function(){function e(e,t){this.iterator=e,this.keyFor=t,this.pos=0,0===e.length?this.current={kind:"empty"}:this.current={kind:"first",value:e[this.pos]}}var t=e.prototype return t.isEmpty=function(){return"empty"===this.current.kind},t.next=function(){var e,t=this.current if("first"===t.kind)this.current={kind:"progress"},e=t.value else{if(this.pos>=this.iterator.length-1)return null e=this.iterator[++this.pos]}return{key:(0,this.keyFor)(e,this.pos),value:e,memo:this.pos}},e}()})),e("@glimmer/runtime",["exports","ember-babel","@glimmer/util","@glimmer/reference","@glimmer/program","@glimmer/vm","@glimmer/validator","@glimmer/low-level"],(function(e,t,r,n,i,o,a,s){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.AotRuntime=function(e,t,r,n){void 0===r&&(r={}) void 0===n&&(n={}) -return{env:new Re(e,n),resolver:new Fe(r),program:i.RuntimeProgramImpl.hydrate(t)}},e.IDOMChanges=e.EnvironmentImpl=e.EMPTY_ARGS=e.DynamicAttribute=e.DefaultDynamicScope=e.DOMTreeConstruction=e.DOMChanges=e.DEFAULT_CAPABILITIES=e.CursorImpl=e.CurriedComponentDefinition=e.ConditionalReference=e.ConcreteBounds=e.CapturedPositionalArgumentsImpl=e.CapturedNamedArgumentsImpl=e.CapturedArgumentsImpl=void 0,e.JitRuntime=function(e,t,r,n){void 0===t&&(t={}) +return{env:new Te(e,n),resolver:new Fe(r),program:i.RuntimeProgramImpl.hydrate(t)}},e.IDOMChanges=e.EnvironmentImpl=e.EMPTY_ARGS=e.DynamicAttribute=e.DefaultDynamicScope=e.DOMTreeConstruction=e.DOMChanges=e.DEFAULT_CAPABILITIES=e.CursorImpl=e.CurriedComponentDefinition=e.ConditionalReference=e.ConcreteBounds=e.CapturedPositionalArgumentsImpl=e.CapturedNamedArgumentsImpl=e.CapturedArgumentsImpl=void 0,e.JitRuntime=function(e,t,r,n){void 0===t&&(t={}) void 0===n&&(n={}) -return{env:new Re(e,t),program:new i.RuntimeProgramImpl(r.program.constants,r.program.heap),resolver:new Fe(n)}},e.UpdatingVM=e.UpdatableBlockImpl=e.UNDEFINED_REFERENCE=e.TEMPLATE_ONLY_COMPONENT=e.SimpleDynamicAttribute=e.SimpleComponentManager=e.ScopeImpl=e.SERIALIZATION_FIRST_NODE_STRING=e.RemoteLiveBlock=e.RehydrateBuilder=e.PrimitiveReference=e.NewElementBuilder=e.NULL_REFERENCE=e.MINIMAL_CAPABILITIES=e.LowLevelVM=void 0,e.capabilityFlagsFrom=$e,e.clear=w,e.clientBuilder=function(e,t){return M.forInitialRender(e,t)},e.curry=function(e,t){void 0===t&&(t=null) -return new et(e,t)},e.dynamicAttribute=ve,e.getDynamicVar=function(e,t){var r=t.dynamicScope(),n=e.positional.at(0) -return new jt(r,n)},e.hasCapability=Ze,e.inTransaction=Ue,e.isCurriedComponentDefinition=Xe,e.isSerializationFirstNode=fr,e.isWhitespace=function(e){return F.test(e)},e.normalizeProperty=oe,e.rehydrationBuilder=function(e,t){return dr.forInitialRender(e,t)},e.renderAot=function(e,t,r,n){void 0===n&&(n=K) +return{env:new Te(e,t),program:new i.RuntimeProgramImpl(r.program.constants,r.program.heap),resolver:new Fe(n)}},e.UpdatingVM=e.UpdatableBlockImpl=e.UNDEFINED_REFERENCE=e.TEMPLATE_ONLY_COMPONENT=e.SimpleDynamicAttribute=e.SimpleComponentManager=e.ScopeImpl=e.SERIALIZATION_FIRST_NODE_STRING=e.RemoteLiveBlock=e.RehydrateBuilder=e.PrimitiveReference=e.NewElementBuilder=e.NULL_REFERENCE=e.MINIMAL_CAPABILITIES=e.LowLevelVM=void 0,e.capabilityFlagsFrom=Je,e.clear=w,e.clientBuilder=function(e,t){return M.forInitialRender(e,t)},e.curry=function(e,t){void 0===t&&(t=null) +return new et(e,t)},e.dynamicAttribute=ye,e.getDynamicVar=function(e,t){var r=t.dynamicScope(),n=e.positional.at(0) +return new At(r,n)},e.hasCapability=Ze,e.inTransaction=Ue,e.isCurriedComponentDefinition=Xe,e.isSerializationFirstNode=fr,e.isWhitespace=function(e){return F.test(e)},e.normalizeProperty=oe,e.rehydrationBuilder=function(e,t){return dr.forInitialRender(e,t)},e.renderAot=function(e,t,r,n){void 0===n&&(n=K) var i=M.forInitialRender(e.env,r),o=new Mt,a=ir.initial(e,{self:n,dynamicScope:o,treeBuilder:i,handle:t}) return new ur(a)},e.renderAotComponent=function(e,t,r,n,i,o){void 0===i&&(i={}) void 0===o&&(o=new Mt) var a,s=ir.empty(e,{treeBuilder:t,handle:r,dynamicScope:o}),u=tt(s.runtime.resolver,n),c=u.manager,l=u.state -if(!yt($e(c.getCapabilities(l)),c))throw new Error("Cannot invoke components with dynamic layouts as a root component.") +if(!vt(Je(c.getCapabilities(l)),c))throw new Error("Cannot invoke components with dynamic layouts as a root component.") a=c.getAotStaticLayout(l,s.runtime.resolver) return lr(s,a,u,i)},e.renderAotMain=function(e,t,r,n,i){void 0===i&&(i=new Mt) var o=ir.initial(e,{self:t,dynamicScope:i,treeBuilder:r,handle:n}) return new ur(o)},e.renderJitComponent=function(e,t,n,i,o,a,s){void 0===a&&(a={}) void 0===s&&(s=new Mt) var u,c=sr.empty(e,{treeBuilder:t,handle:i,dynamicScope:s},n),l=tt(c.runtime.resolver,o),f=l.manager,h=l.state -if(!yt($e(f.getCapabilities(h)),f))throw new Error("Cannot invoke components with dynamic layouts as a root component.") +if(!vt(Je(f.getCapabilities(h)),f))throw new Error("Cannot invoke components with dynamic layouts as a root component.") var d=f.getJitStaticLayout(h,c.runtime.resolver),p=(0,r.unwrapHandle)(d.compile(n)) if(Array.isArray(p)){var m=p[0] throw new Error("Compile Error: "+m.problem+" "+m.span.start+".."+m.span.end+" :: TODO (thread better)")}u={handle:p,symbolTable:d.symbolTable} return lr(c,u,l,a)},e.renderJitMain=function(e,t,r,n,i,o){void 0===o&&(o=new Mt) var a=sr.initial(e,t,{self:r,dynamicScope:o,treeBuilder:n,handle:i}) -return new ur(a)},e.renderSync=cr,e.resetDebuggerCallback=function(){xt=_t},e.setDebuggerCallback=function(e){xt=e} +return new ur(a)},e.renderSync=cr,e.resetDebuggerCallback=function(){kt=_t},e.setDebuggerCallback=function(e){kt=e} var u=(0,r.symbol)("INNER_VM"),c=(0,r.symbol)("DESTRUCTOR_STACK"),l=(0,r.symbol)("STACKS"),f=(0,r.symbol)("REGISTERS"),h=(0,r.symbol)("HEAP"),d=(0,r.symbol)("CONSTANTS"),p=(0,r.symbol)("ARGS"),m=((0,r.symbol)("PC"),function(e,t){this.element=e,this.nextSibling=t}) e.CursorImpl=m -var y=function(){function e(e,t,r){this.parentNode=e,this.first=t,this.last=r}var t=e.prototype +var v=function(){function e(e,t,r){this.parentNode=e,this.first=t,this.last=r}var t=e.prototype return t.parentElement=function(){return this.parentNode},t.firstNode=function(){return this.first},t.lastNode=function(){return this.last},e}() -e.ConcreteBounds=y -var v,b=function(){function e(e,t){this.parentNode=e,this.node=t}var t=e.prototype +e.ConcreteBounds=v +var y,b=function(){function e(e,t){this.parentNode=e,this.node=t}var t=e.prototype return t.parentElement=function(){return this.parentNode},t.firstNode=function(){return this.node},t.lastNode=function(){return this.node},e}() function g(e,t){for(var r=e.parentElement(),n=e.firstNode(),i=e.lastNode(),o=n;;){var a=o.nextSibling if(r.insertBefore(o,t),o===i)return a o=a}}function w(e){for(var t=e.parentElement(),r=e.firstNode(),n=e.lastNode(),i=r;;){var o=i.nextSibling if(t.removeChild(i),i===n)return o i=o}}function _(e,t){var n=(0,r.peekAssociated)(e) -null!==n&&t.willDestroy((0,r.snapshot)(n))}function x(e,t){var n=(0,r.takeAssociated)(e) -null!==n&&t.didDestroy((0,r.snapshot)(n))}function k(e,t){t.willDestroy((0,r.destructor)(e))}function O(e,t){t.didDestroy((0,r.destructor)(e))}var E=function(){function e(e){this.node=e}return e.prototype.firstNode=function(){return this.node},e}(),S=function(){function e(e){this.node=e}return e.prototype.lastNode=function(){return this.node},e}(),P=(0,r.symbol)("CURSOR_STACK"),M=function(){function e(e,t,n){this.constructing=null,this.operations=null,this[v]=new r.Stack,this.modifierStack=new r.Stack,this.blockStack=new r.Stack,this.pushElement(t,n),this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM()}e.forInitialRender=function(e,t){return new this(e,t.element,t.nextSibling).initialize()},e.resume=function(e,t){var r=new this(e,t.parentElement(),t.reset(e)).initialize() +null!==n&&t.willDestroy((0,r.snapshot)(n))}function k(e,t){var n=(0,r.takeAssociated)(e) +null!==n&&t.didDestroy((0,r.snapshot)(n))}function x(e,t){t.willDestroy((0,r.destructor)(e))}function O(e,t){t.didDestroy((0,r.destructor)(e))}var E=function(){function e(e){this.node=e}return e.prototype.firstNode=function(){return this.node},e}(),S=function(){function e(e){this.node=e}return e.prototype.lastNode=function(){return this.node},e}(),P=(0,r.symbol)("CURSOR_STACK"),M=function(){function e(e,t,n){this.constructing=null,this.operations=null,this[y]=new r.Stack,this.modifierStack=new r.Stack,this.blockStack=new r.Stack,this.pushElement(t,n),this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM()}e.forInitialRender=function(e,t){return new this(e,t.element,t.nextSibling).initialize()},e.resume=function(e,t){var r=new this(e,t.parentElement(),t.reset(e)).initialize() return r.pushLiveBlock(t),r} var n=e.prototype -return n.initialize=function(){return this.pushSimpleBlock(),this},n.debugBlocks=function(){return this.blockStack.toArray()},n.block=function(){return this.blockStack.current},n.popElement=function(){this[P].pop(),this[P].current},n.pushSimpleBlock=function(){return this.pushLiveBlock(new j(this.element))},n.pushUpdatableBlock=function(){return this.pushLiveBlock(new T(this.element))},n.pushBlockList=function(e){return this.pushLiveBlock(new R(this.element,e))},n.pushLiveBlock=function(e,t){void 0===t&&(t=!1) +return n.initialize=function(){return this.pushSimpleBlock(),this},n.debugBlocks=function(){return this.blockStack.toArray()},n.block=function(){return this.blockStack.current},n.popElement=function(){this[P].pop(),this[P].current},n.pushSimpleBlock=function(){return this.pushLiveBlock(new A(this.element))},n.pushUpdatableBlock=function(){return this.pushLiveBlock(new R(this.element))},n.pushBlockList=function(e){return this.pushLiveBlock(new T(this.element,e))},n.pushLiveBlock=function(e,t){void 0===t&&(t=!1) var r=this.blockStack.current return null!==r&&(t||r.didAppendBounds(e)),this.__openBlock(),this.blockStack.push(e),e},n.popBlock=function(){return this.block().finalize(this),this.__closeBlock(),this.blockStack.pop()},n.__openBlock=function(){},n.__closeBlock=function(){},n.openElement=function(e){var t=this.__openElement(e) return this.constructing=t,t},n.__openElement=function(e){return this.dom.createElement(e,this.element)},n.flushElement=function(e){var t=this.element,r=this.constructing this.__flushElement(t,r),this.constructing=null,this.operations=null,this.pushModifiers(e),this.pushElement(r,null),this.didOpenElement(r)},n.__flushElement=function(e,t){this.dom.insertBefore(e,t,this.nextSibling)},n.closeElement=function(){return this.willCloseElement(),this.popElement(),this.popModifiers()},n.pushRemoteElement=function(e,t,r){return this.__pushRemoteElement(e,t,r)},n.__pushRemoteElement=function(e,t,r){if(this.pushElement(e,r),void 0===r)for(;e.lastChild;)e.removeChild(e.lastChild) -var n=new A(e) +var n=new j(e) return this.pushLiveBlock(n,!0)},n.popRemoteElement=function(){this.popBlock(),this.popElement()},n.pushElement=function(e,t){void 0===t&&(t=null),this[P].push(new m(e,t))},n.pushModifiers=function(e){this.modifierStack.push(e)},n.popModifiers=function(){return this.modifierStack.pop()},n.didAppendBounds=function(e){return this.block().didAppendBounds(e),e},n.didAppendNode=function(e){return this.block().didAppendNode(e),e},n.didOpenElement=function(e){return this.block().openElement(e),e},n.willCloseElement=function(){this.block().closeElement()},n.appendText=function(e){return this.didAppendNode(this.__appendText(e))},n.__appendText=function(e){var t=this.dom,r=this.element,n=this.nextSibling,i=t.createTextNode(e) return t.insertBefore(r,i,n),i},n.__appendNode=function(e){return this.dom.insertBefore(this.element,e,this.nextSibling),e},n.__appendFragment=function(e){var t=e.firstChild -if(t){var r=new y(this.element,t,e.lastChild) +if(t){var r=new v(this.element,t,e.lastChild) return this.dom.insertBefore(this.element,e,this.nextSibling),r}return new b(this.element,this.__appendComment(""))},n.__appendHTML=function(e){return this.dom.insertHTMLBefore(this.element,this.nextSibling,e)},n.appendDynamicHTML=function(e){var t=this.trustedContent(e) this.didAppendBounds(t)},n.appendDynamicText=function(e){var t=this.untrustedContent(e) return this.didAppendNode(t),t},n.appendDynamicFragment=function(e){var t=this.__appendFragment(e) @@ -3137,32 +3137,32 @@ this.didAppendBounds(t)},n.appendDynamicNode=function(e){var t=this.__appendNode this.didAppendBounds(r)},n.trustedContent=function(e){return this.__appendHTML(e)},n.untrustedContent=function(e){return this.__appendText(e)},n.appendComment=function(e){return this.didAppendNode(this.__appendComment(e))},n.__appendComment=function(e){var t=this.dom,r=this.element,n=this.nextSibling,i=t.createComment(e) return t.insertBefore(r,i,n),i},n.__setAttribute=function(e,t,r){this.dom.setAttribute(this.constructing,e,t,r)},n.__setProperty=function(e,t){this.constructing[e]=t},n.setStaticAttribute=function(e,t,r){this.__setAttribute(e,t,r)},n.setDynamicAttribute=function(e,t,r,n){var i=this.constructing,o=this.env.attributeFor(i,e,r,n) return o.set(this,t,this.env),o},(0,t.createClass)(e,[{key:"element",get:function(){return this[P].current.element}},{key:"nextSibling",get:function(){return this[P].current.nextSibling}},{key:"hasBlocks",get:function(){return this.blockStack.size>0}}]),e}() -e.NewElementBuilder=M,v=P -var j=function(){function e(e){this.parent=e,this.first=null,this.last=null,this.destroyables=null,this.nesting=0}var t=e.prototype -return t.parentElement=function(){return this.parent},t.firstNode=function(){return this.first.firstNode()},t.lastNode=function(){return this.last.lastNode()},t.openElement=function(e){this.didAppendNode(e),this.nesting++},t.closeElement=function(){this.nesting--},t.didAppendNode=function(e){0===this.nesting&&(this.first||(this.first=new E(e)),this.last=new S(e))},t.didAppendBounds=function(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)},t.finalize=function(e){null===this.first&&e.appendComment("")},e}(),A=function(e){function n(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(n,e),n.prototype[r.DESTROY]=function(){this.parentElement()===this.firstNode().parentNode&&w(this)},n}(j) -e.RemoteLiveBlock=A -var T=function(e){function r(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(r,e),r.prototype.reset=function(e){var t=function(e,t){return _(e,t),x(e,t),w(e)}(this,e) -return this.first=null,this.last=null,this.destroyables=null,this.nesting=0,t},r}(j) -e.UpdatableBlockImpl=T -var R=function(){function e(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}var t=e.prototype +e.NewElementBuilder=M,y=P +var A=function(){function e(e){this.parent=e,this.first=null,this.last=null,this.destroyables=null,this.nesting=0}var t=e.prototype +return t.parentElement=function(){return this.parent},t.firstNode=function(){return this.first.firstNode()},t.lastNode=function(){return this.last.lastNode()},t.openElement=function(e){this.didAppendNode(e),this.nesting++},t.closeElement=function(){this.nesting--},t.didAppendNode=function(e){0===this.nesting&&(this.first||(this.first=new E(e)),this.last=new S(e))},t.didAppendBounds=function(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)},t.finalize=function(e){null===this.first&&e.appendComment("")},e}(),j=function(e){function n(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(n,e),n.prototype[r.DESTROY]=function(){this.parentElement()===this.firstNode().parentNode&&w(this)},n}(A) +e.RemoteLiveBlock=j +var R=function(e){function r(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(r,e),r.prototype.reset=function(e){var t=function(e,t){return _(e,t),k(e,t),w(e)}(this,e) +return this.first=null,this.last=null,this.destroyables=null,this.nesting=0,t},r}(A) +e.UpdatableBlockImpl=R +var T=function(){function e(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}var t=e.prototype return t.parentElement=function(){return this.parent},t.firstNode=function(){return this.boundList.head().firstNode()},t.lastNode=function(){return this.boundList.tail().lastNode()},t.openElement=function(e){},t.closeElement=function(){},t.didAppendNode=function(e){},t.didAppendBounds=function(e){},t.finalize=function(e){},e}() var C={foreignObject:1,desc:1,title:1},I=Object.create(null),N=function(){function e(e){this.document=e,this.setupUselessElement()}var t=e.prototype return t.setupUselessElement=function(){this.uselessElement=this.document.createElement("div")},t.createElement=function(e,t){var r,n if(t?(r="http://www.w3.org/2000/svg"===t.namespaceURI||"svg"===e,n=!!C[t.tagName]):(r="svg"===e,n=!1),r&&!n){if(I[e])throw new Error("Cannot create a "+e+" inside an SVG context") return this.document.createElementNS("http://www.w3.org/2000/svg",e)}return this.document.createElement(e)},t.insertBefore=function(e,t,r){e.insertBefore(t,r)},t.insertHTMLBefore=function(e,t,r){if(""===r){var n=this.createComment("") -return e.insertBefore(n,t),new y(e,n,n)}var i,o=t?t.previousSibling:e.lastChild +return e.insertBefore(n,t),new v(e,n,n)}var i,o=t?t.previousSibling:e.lastChild if(null===t)e.insertAdjacentHTML("beforeend",r),i=e.lastChild else if(t instanceof HTMLElement)t.insertAdjacentHTML("beforebegin",r),i=t.previousSibling else{var a=this.uselessElement e.insertBefore(a,t),a.insertAdjacentHTML("beforebegin",r),i=a.previousSibling,e.removeChild(a)}var s=o?o.nextSibling:e.firstChild -return new y(e,s,i)},t.createTextNode=function(e){return this.document.createTextNode(e)},t.createComment=function(e){return this.document.createComment(e)},e}() +return new v(e,s,i)},t.createTextNode=function(e){return this.document.createTextNode(e)},t.createComment=function(e){return this.document.createComment(e)},e}() function D(e,n,i){if(!e)return n if(!function(e,t){var r=e.createElementNS(t,"svg") try{r.insertAdjacentHTML("beforeend","")}catch(n){}finally{return 1!==r.childNodes.length||"http://www.w3.org/2000/svg"!==r.firstChild.namespaceURI}}(e,i))return n var o=e.createElement("div") return function(e){function n(){return e.apply(this,arguments)||this}return(0,t.inheritsLoose)(n,e),n.prototype.insertHTMLBefore=function(t,n,a){return""===a||t.namespaceURI!==i?e.prototype.insertHTMLBefore.call(this,t,n,a):function(e,t,n,i){var o if("FOREIGNOBJECT"===e.tagName.toUpperCase()){var a=""+n+"";(0,r.clearElement)(t),t.insertAdjacentHTML("afterbegin",a),o=t.firstChild.firstChild}else{var s=""+n+"";(0,r.clearElement)(t),t.insertAdjacentHTML("afterbegin",s),o=t.firstChild}return function(e,t,r){for(var n=e.firstChild,i=n,o=n;o;){var a=o.nextSibling -t.insertBefore(o,r),i=o,o=a}return new y(t,n,i)}(o,e,i)}(t,o,a,n)},n}(n)}function L(e,r){return e&&function(e){var t=e.createElement("div") +t.insertBefore(o,r),i=o,o=a}return new v(t,n,i)}(o,e,i)}(t,o,a,n)},n}(n)}function B(e,r){return e&&function(e){var t=e.createElement("div") if(t.appendChild(e.createTextNode("first")),t.insertAdjacentHTML("beforeend","second"),2===t.childNodes.length)return!1 return!0}(e)?function(e){function r(t){var r return(r=e.call(this,t)||this).uselessComment=t.createComment(""),r}return(0,t.inheritsLoose)(r,e),r.prototype.insertHTMLBefore=function(t,r,n){if(""===n)return e.prototype.insertHTMLBefore.call(this,t,r,n) @@ -3170,51 +3170,51 @@ var i=!1,o=r?r.previousSibling:t.lastChild o&&o instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,r)) var a=e.prototype.insertHTMLBefore.call(this,t,r,n) return i&&t.removeChild(this.uselessComment),a},r}(r):r}["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach((function(e){return I[e]=1})) -var B,F=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,U="undefined"==typeof document?null:document;(function(e){var r=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) +var L,F=/[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/,U="undefined"==typeof document?null:document;(function(e){var r=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.createElementNS=function(e,t){return this.document.createElementNS(e,t)},n.setAttribute=function(e,t,r,n){void 0===n&&(n=null),n?e.setAttributeNS(n,t,r):e.setAttribute(t,r)},r}(N) e.TreeConstruction=r var n=r -n=L(U,n),n=D(U,n,"http://www.w3.org/2000/svg"),e.DOMTreeConstruction=n})(B||(B={})) +n=B(U,n),n=D(U,n,"http://www.w3.org/2000/svg"),e.DOMTreeConstruction=n})(L||(L={})) var z=function(e){function r(t){var r return(r=e.call(this,t)||this).document=t,r.namespace=null,r}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.setAttribute=function(e,t,r){e.setAttribute(t,r)},n.removeAttribute=function(e,t){e.removeAttribute(t)},n.insertAfter=function(e,t,r){this.insertBefore(e,t,r.nextSibling)},r}(N) e.IDOMChanges=z -var H=z -H=L(U,H) -var q=H=D(U,H,"http://www.w3.org/2000/svg") -e.DOMChanges=q -var V=B.DOMTreeConstruction +var q=z +q=B(U,q) +var H=q=D(U,q,"http://www.w3.org/2000/svg") +e.DOMChanges=H +var V=L.DOMTreeConstruction e.DOMTreeConstruction=V -var W=function(e){function r(t){return e.call(this,t)||this}return(0,t.inheritsLoose)(r,e),r.create=function(e){return void 0===e?K:null===e?$:!0===e?J:!1===e?Z:"number"==typeof e?new G(e):new Y(e)},r.prototype.get=function(e){return K},r}(n.ConstReference) +var W=function(e){function r(t){return e.call(this,t)||this}return(0,t.inheritsLoose)(r,e),r.create=function(e){return void 0===e?K:null===e?J:!0===e?$:!1===e?Z:"number"==typeof e?new Y(e):new G(e)},r.prototype.get=function(e){return K},r}(n.ConstReference) e.PrimitiveReference=W -var Y=function(e){function r(){var t +var G=function(e){function r(){var t return(t=e.apply(this,arguments)||this).lengthReference=null,t}return(0,t.inheritsLoose)(r,e),r.prototype.get=function(t){if("length"===t){var r=this.lengthReference -return null===r&&(r=this.lengthReference=new G(this.inner.length)),r}return e.prototype.get.call(this,t)},r}(W),G=function(e){function r(t){return e.call(this,t)||this}return(0,t.inheritsLoose)(r,e),r}(W),K=new G(void 0) +return null===r&&(r=this.lengthReference=new Y(this.inner.length)),r}return e.prototype.get.call(this,t)},r}(W),Y=function(e){function r(t){return e.call(this,t)||this}return(0,t.inheritsLoose)(r,e),r}(W),K=new Y(void 0) e.UNDEFINED_REFERENCE=K -var $=new G(null) -e.NULL_REFERENCE=$ -var J=new G(!0),Z=new G(!1),Q=function(){function e(e,t){void 0===t&&(t=X),this.inner=e,this.toBool=t,this.tag=e.tag}return e.prototype.value=function(){return this.toBool(this.inner.value())},e}() +var J=new Y(null) +e.NULL_REFERENCE=J +var $=new Y(!0),Z=new Y(!1),Q=function(){function e(e,t){void 0===t&&(t=X),this.inner=e,this.toBool=t,this.tag=e.tag}return e.prototype.value=function(){return this.toBool(this.inner.value())},e}() function X(e){return!!e}function ee(e){return te(e)?"":String(e)}function te(e){return null==e||"function"!=typeof e.toString}function re(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function ne(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function ie(e){return"string"==typeof e}function oe(e,t){var r,n,i,o,a if(t in e)n=t,r="prop" else{var s=t.toLowerCase() s in e?(r="prop",n=s):(r="attr",n=t)}return"prop"===r&&("style"===n.toLowerCase()||(i=e.tagName,o=n,(a=ae[i.toUpperCase()])&&a[o.toLowerCase()]))&&(r="attr"),{normalized:n,type:r}}e.ConditionalReference=Q var ae={INPUT:{form:!0,autocorrect:!0,list:!0},SELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0},BUTTON:{form:!0}} var se=["javascript:","vbscript:"],ue=["A","BODY","LINK","IMG","IFRAME","BASE","FORM"],ce=["EMBED"],le=["href","src","background","action"],fe=["src"] -function he(e,t){return-1!==e.indexOf(t)}function de(e,t){return(null===e||he(ue,e))&&he(le,t)}function pe(e,t){return null!==e&&(he(ce,e)&&he(fe,t))}function me(e,t){return de(e,t)||pe(e,t)}function ye(e,t,r,n){var i=null +function he(e,t){return-1!==e.indexOf(t)}function de(e,t){return(null===e||he(ue,e))&&he(le,t)}function pe(e,t){return null!==e&&(he(ce,e)&&he(fe,t))}function me(e,t){return de(e,t)||pe(e,t)}function ve(e,t,r,n){var i=null if(null==n)return n if(re(n))return n.toHTML() i=t?t.tagName.toUpperCase():null var o=ee(n) if(de(i,r)){var a=e.protocolForURL(o) -if(he(se,a))return"unsafe:"+o}return pe(i,r)?"unsafe:"+o:o}function ve(e,t,r){var n=e.tagName,i={element:e,name:t,namespace:r} +if(he(se,a))return"unsafe:"+o}return pe(i,r)?"unsafe:"+o:o}function ye(e,t,r){var n=e.tagName,i={element:e,name:t,namespace:r} if("http://www.w3.org/2000/svg"===e.namespaceURI)return be(n,t,i) var o=oe(e,t),a=o.type,s=o.normalized -return"attr"===a?be(n,s,i):function(e,t,r){if(me(e,t))return new ke(t,r) +return"attr"===a?be(n,s,i):function(e,t,r){if(me(e,t))return new xe(t,r) if(function(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}(e,t))return new Ee(t,r) if(function(e,t){return"OPTION"===e&&"selected"===t}(e,t))return new Se(t,r) -return new xe(t,r)}(n,s,i)}function be(e,t,r){return me(e,t)?new Oe(r):new we(r)}var ge=function(e){this.attribute=e} +return new ke(t,r)}(n,s,i)}function be(e,t,r){return me(e,t)?new Oe(r):new we(r)}var ge=function(e){this.attribute=e} e.DynamicAttribute=ge var we=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype @@ -3223,26 +3223,26 @@ if(null!==n){var i=this.attribute,o=i.name,a=i.namespace e.__setAttribute(o,n,a)}},n.update=function(e,t){var r=Pe(e),n=this.attribute,i=n.element,o=n.name null===r?i.removeAttribute(o):i.setAttribute(o,r)},r}(ge) e.SimpleDynamicAttribute=we -var _e,xe=function(e){function r(t,r){var n +var _e,ke=function(e){function r(t,r){var n return(n=e.call(this,r)||this).normalizedName=t,n}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.set=function(e,t,r){null!=t&&(this.value=t,e.__setProperty(this.normalizedName,t))},n.update=function(e,t){var r=this.attribute.element this.value!==e&&(r[this.normalizedName]=this.value=e,null==e&&this.removeAttribute())},n.removeAttribute=function(){var e=this.attribute,t=e.element,r=e.namespace -r?t.removeAttributeNS(r,this.normalizedName):t.removeAttribute(this.normalizedName)},r}(ge),ke=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) +r?t.removeAttributeNS(r,this.normalizedName):t.removeAttribute(this.normalizedName)},r}(ge),xe=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype -return n.set=function(t,r,n){var i=this.attribute,o=ye(n,i.element,i.name,r) -e.prototype.set.call(this,t,o,n)},n.update=function(t,r){var n=this.attribute,i=ye(r,n.element,n.name,t) -e.prototype.update.call(this,i,r)},r}(xe),Oe=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) +return n.set=function(t,r,n){var i=this.attribute,o=ve(n,i.element,i.name,r) +e.prototype.set.call(this,t,o,n)},n.update=function(t,r){var n=this.attribute,i=ve(r,n.element,n.name,t) +e.prototype.update.call(this,i,r)},r}(ke),Oe=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype -return n.set=function(t,r,n){var i=this.attribute,o=ye(n,i.element,i.name,r) -e.prototype.set.call(this,t,o,n)},n.update=function(t,r){var n=this.attribute,i=ye(r,n.element,n.name,t) +return n.set=function(t,r,n){var i=this.attribute,o=ve(n,i.element,i.name,r) +e.prototype.set.call(this,t,o,n)},n.update=function(t,r){var n=this.attribute,i=ve(r,n.element,n.name,t) e.prototype.update.call(this,i,r)},r}(we),Ee=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.set=function(e,t){e.__setProperty("value",ee(t))},n.update=function(e){var t=this.attribute.element,r=t.value,n=ee(e) -r!==n&&(t.value=n)},r}(xe),Se=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) +r!==n&&(t.value=n)},r}(ke),Se=function(e){function r(){return e.apply(this,arguments)||this}(0,t.inheritsLoose)(r,e) var n=r.prototype return n.set=function(e,t){null!=t&&!1!==t&&e.__setProperty("selected",!0)},n.update=function(e){var t=this.attribute.element -t.selected=!!e},r}(xe) +t.selected=!!e},r}(ke) function Pe(e){return!1===e||null==e||void 0===e.toString?null:!0===e?"":"function"==typeof e?null:String(e)}var Me=function(){function e(e,t,r,n){this.slots=e,this.callerScope=t,this.evalScope=r,this.partialMap=n}e.root=function(t,r){void 0===r&&(r=0) for(var n=new Array(r+1),i=0;i<=r;i++)n[i]=K return new e(n,null,null,null).init({self:t})},e.sized=function(t){void 0===t&&(t=0) @@ -3255,21 +3255,21 @@ return t===K?null:t},t.getEvalScope=function(){return this.evalScope},t.getParti return this.slots[e]},t.set=function(e,t){if(e>=this.slots.length)throw new RangeError("BUG: cannot get $"+e+" from scope; length="+this.slots.length) this.slots[e]=t},e}() e.ScopeImpl=Me -var je=(0,r.symbol)("TRANSACTION"),Ae=function(){function e(){this.scheduledInstallManagers=[],this.scheduledInstallModifiers=[],this.scheduledUpdateModifierManagers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.createdManagers=[],this.updatedComponents=[],this.updatedManagers=[],this.destructors=[]}var t=e.prototype +var Ae=(0,r.symbol)("TRANSACTION"),je=function(){function e(){this.scheduledInstallManagers=[],this.scheduledInstallModifiers=[],this.scheduledUpdateModifierManagers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.createdManagers=[],this.updatedComponents=[],this.updatedManagers=[],this.destructors=[]}var t=e.prototype return t.didCreate=function(e,t){this.createdComponents.push(e),this.createdManagers.push(t)},t.didUpdate=function(e,t){this.updatedComponents.push(e),this.updatedManagers.push(t)},t.scheduleInstallModifier=function(e,t){this.scheduledInstallModifiers.push(e),this.scheduledInstallManagers.push(t)},t.scheduleUpdateModifier=function(e,t){this.scheduledUpdateModifiers.push(e),this.scheduledUpdateModifierManagers.push(t)},t.willDestroy=function(e){e[r.WILL_DROP]()},t.didDestroy=function(e){this.destructors.push(e)},t.commit=function(){for(var e=this.createdComponents,t=this.createdManagers,n=0;n0?e.join(""):null},r}(n.CachedReference) -function Ge(e){return"function"!=typeof e.toString?"":String(e)}function Ke(e){return e===K}function $e(e){return 0|(e.dynamicLayout?1:0)|(e.dynamicTag?2:0)|(e.prepareArgs?4:0)|(e.createArgs?8:0)|(e.attributeHook?16:0)|(e.elementHook?32:0)|(e.dynamicScope?64:0)|(e.createCaller?128:0)|(e.updateHook?256:0)|(e.createInstance?512:0)|(e.wrapped?1024:0)|(e.willDestroy?2048:0)}function Je(e,t,r){return!!(t&r)}function Ze(e,t){return!!(e&t)}ze.add(16,(function(e,t){var r=t.op1,n=e.stack,i=e.runtime.resolver.resolve(r)(n.pop(),e) +n!==a.CONSTANT_TAG&&t.push(n),r=e.nextNode(r)}return(0,a.createCombinatorTag)(t)}var We,Ge=function(e){function r(t){var r +return(r=e.call(this)||this).parts=t,r.tag=He(t),r}return(0,t.inheritsLoose)(r,e),r.prototype.compute=function(){for(var e=new Array,t=0;t0?e.join(""):null},r}(n.CachedReference) +function Ye(e){return"function"!=typeof e.toString?"":String(e)}function Ke(e){return e===K}function Je(e){return 0|(e.dynamicLayout?1:0)|(e.dynamicTag?2:0)|(e.prepareArgs?4:0)|(e.createArgs?8:0)|(e.attributeHook?16:0)|(e.elementHook?32:0)|(e.dynamicScope?64:0)|(e.createCaller?128:0)|(e.updateHook?256:0)|(e.createInstance?512:0)|(e.wrapped?1024:0)|(e.willDestroy?2048:0)}function $e(e,t,r){return!!(t&r)}function Ze(e,t){return!!(e&t)}ze.add(16,(function(e,t){var r=t.op1,n=e.stack,i=e.runtime.resolver.resolve(r)(n.pop(),e) e.loadValue(o.$v0,i)})),ze.add(22,(function(e,t){var r=t.op1,n=e.referenceForSymbol(r) e.stack.push(n)})),ze.add(19,(function(e,t){var r=t.op1,n=e.stack.pop() e.scope().bindSymbol(r,n)})),ze.add(21,(function(e,t){var r=t.op1,n=e.stack.pop(),i=e.stack.pop(),o=e.stack.pop(),a=o?[n,i,o]:null @@ -3304,9 +3304,9 @@ e.pushRootScope(r)})),ze.add(23,(function(e,t){var r=t.op1,n=e[d].getString(r),i e.stack.push(i.get(n))})),ze.add(24,(function(e,t){var r=t.op1,n=e.stack,i=e.scope().getBlock(r) n.push(i)})),ze.add(25,(function(e){var t=e.stack,r=t.pop() r&&!Ke(r)?(t.push(r[2]),t.push(r[1]),t.push(r[0])):(t.push(null),t.push(null),t.push(null))})),ze.add(26,(function(e){var t=e.stack,r=t.pop() -r&&!Ke(r)?t.push(J):t.push(Z)})),ze.add(27,(function(e){e.stack.pop(),e.stack.pop() +r&&!Ke(r)?t.push($):t.push(Z)})),ze.add(27,(function(e){e.stack.pop(),e.stack.pop() var t=e.stack.pop(),r=t&&t.parameters.length -e.stack.push(r?J:Z)})),ze.add(28,(function(e,t){for(var r=t.op1,n=new Array(r),i=r;i>0;i--){n[i-1]=e.stack.pop()}e.stack.push(new Ye(n))})) +e.stack.push(r?$:Z)})),ze.add(28,(function(e,t){for(var r=t.op1,n=new Array(r),i=r;i>0;i--){n[i-1]=e.stack.pop()}e.stack.push(new Ge(n))})) var Qe=(0,r.symbol)("CURRIED COMPONENT DEFINITION") function Xe(e){return!(!e||!e[Qe])}var et=function(){function e(e,t){this.inner=e,this.args=t,this[We]=!0}return e.prototype.unwrap=function(e){e.realloc(this.offset) for(var t=this;;){var r=t,n=r.args,i=r.inner @@ -3314,7 +3314,7 @@ if(n&&(e.positional.prepend(n.positional),e.named.merge(n.named)),!Xe(i))return t=i}},(0,t.createClass)(e,[{key:"offset",get:function(){var e=this.inner,t=this.args,r=t?t.positional.length:0 return Xe(e)?r+e.offset:r}}]),e}() function tt(e,t,r){return e.lookupComponent(t,r)}e.CurriedComponentDefinition=et,We=Qe -var rt=function(){function e(e){this.list=e,this.tag=qe(e),this.list=e}return e.prototype.value=function(){for(var e=[],t=this.list,r=0;r>4,c=8&o,l=7&o?e[d].getStringArray(i):r.EMPTY_ARRAY e[p].setup(a,s,l,u,!!c),a.push(e[p])})),ze.add(85,(function(e){var t=e.stack t.push(e[p].empty(t))})),ze.add(88,(function(e){var t=e.stack,r=t.pop().capture() t.push(r)})),ze.add(87,(function(e,t){var r=t.op1,n=e.stack,i=e.fetchValue(r),o=n.pop(),a=i.definition Xe(a)&&(a=function(e,t,r){var n=e.definition=t.unwrap(r),i=n.manager,o=n.state -return e.manager=i,e.capabilities=$e(i.getCapabilities(o)),n}(i,a,o)) +return e.manager=i,e.capabilities=Je(i.getCapabilities(o)),n}(i,a,o)) var s=a,u=s.manager,c=s.state -if(Je(0,i.capabilities,4)){var l=o.blocks.values,f=o.blocks.names,h=u.prepareArgs(c,o) +if($e(0,i.capabilities,4)){var l=o.blocks.values,f=o.blocks.names,h=u.prepareArgs(c,o) if(h){o.clear() for(var d=0;d=0;s--){var u=a[s],c=n.table.symbols.indexOf(a[s]),l=o.named.get(u,!0);-1!==c&&i.bindSymbol(c+1,l),n.lookup&&(n.lookup[u]=l)}})),ze.add(18,(function(e,t){for(var r=t.op1,n=e.fetchValue(r),i=e.stack.peek().blocks,o=0;o)` to debug this template."),t("this")}var xt=_t -var kt=function(){function e(e,t,n){this.scope=e,this.locals=(0,r.dict)() +t.didUpdateLayout(r,n),e.env.didUpdate(r,t)},r}(qe) +function _t(e,t){console.info("Use `context`, and `get()` to debug this template."),t("this")}var kt=_t +var xt=function(){function e(e,t,n){this.scope=e,this.locals=(0,r.dict)() for(var i=0;i0&&null!==t){for(var r=this.positional,n=this.named,i=r.base+e,a=r.length+n.length-1;a>=0;a--)t.copy(a+r.base,a+i) r.base+=e,n.base+=e,t[f][o.$sp]+=e}},r.capture=function(){var e=0===this.positional.length?Ut:this.positional.capture(),t=0===this.named.length?Ft:this.named.capture() -return new Bt(this.tag,e,t,this.length)},r.clear=function(){var e=this.stack,t=this.length -t>0&&null!==e&&e.pop(t)},(0,t.createClass)(e,[{key:"tag",get:function(){return qe([this.positional,this.named])}},{key:"base",get:function(){return this.blocks.base}},{key:"length",get:function(){return this.positional.length+this.named.length+3*this.blocks.length}}]),e}(),Tt=function(){function e(){this.base=0,this.length=0,this.stack=null,this._tag=null,this._references=null}var n=e.prototype +return new Lt(this.tag,e,t,this.length)},r.clear=function(){var e=this.stack,t=this.length +t>0&&null!==e&&e.pop(t)},(0,t.createClass)(e,[{key:"tag",get:function(){return He([this.positional,this.named])}},{key:"base",get:function(){return this.blocks.base}},{key:"length",get:function(){return this.positional.length+this.named.length+3*this.blocks.length}}]),e}(),Rt=function(){function e(){this.base=0,this.length=0,this.stack=null,this._tag=null,this._references=null}var n=e.prototype return n.empty=function(e,t){this.stack=e,this.base=t,this.length=0,this._tag=a.CONSTANT_TAG,this._references=r.EMPTY_ARRAY},n.setup=function(e,t,n){this.stack=e,this.base=t,this.length=n,0===n?(this._tag=a.CONSTANT_TAG,this._references=r.EMPTY_ARRAY):(this._tag=null,this._references=null)},n.at=function(e){var t=this.base,r=this.length,n=this.stack -return e<0||e>=r?K:n.get(e,t)},n.capture=function(){return new Rt(this.tag,this.references)},n.prepend=function(e){var t=e.length +return e<0||e>=r?K:n.get(e,t)},n.capture=function(){return new Tt(this.tag,this.references)},n.prepend=function(e){var t=e.length if(t>0){var r=this.base,n=this.length,i=this.stack this.base=r-=t,this.length=n+t for(var o=0;o=r?K:t[n]},t.valueOf=function(e){return e.value()},e}() -e.CapturedPositionalArgumentsImpl=Rt +e.CapturedPositionalArgumentsImpl=Tt var Ct=function(){function e(){this.base=0,this.length=0,this._references=null,this._names=r.EMPTY_ARRAY,this._atNames=r.EMPTY_ARRAY}var n=e.prototype return n.empty=function(e,t){this.stack=e,this.base=t,this.length=0,this._references=r.EMPTY_ARRAY,this._names=r.EMPTY_ARRAY,this._atNames=r.EMPTY_ARRAY},n.setup=function(e,t,n,i,o){this.stack=e,this.base=t,this.length=n,0===n?(this._references=r.EMPTY_ARRAY,this._names=r.EMPTY_ARRAY,this._atNames=r.EMPTY_ARRAY):(this._references=null,o?(this._names=null,this._atNames=i):(this._names=i,this._atNames=null))},n.has=function(e){return-1!==this.names.indexOf(e)},n.get=function(e,t){void 0===t&&(t=!1) var r=this.base,n=this.stack,i=(t?this.atNames:this.names).indexOf(e) return-1===i?K:n.get(i,r)},n.capture=function(){return new It(this.tag,this.names,this.references)},n.merge=function(e){var t=e.length if(t>0){var r=this.names,n=this.length,i=this.stack,o=e.names Object.isFrozen(r)&&0===r.length&&(r=[]) -for(var a=0;a=r.startingBlockDepth)for(;t;){if(mr(t))if(n>=yr(t))break +if(n>=r.startingBlockDepth)for(;t;){if(mr(t))if(n>=vr(t))break t=this.remove(t)}else for(;null!==t;)t=this.remove(t) this.disableRehydration(t)}},n.__openBlock=function(){var e=this.currentCursor if(null!==e){var t=this.blockDepth this.blockDepth++ var r=e.candidate if(null!==r){var n,i=e.element.tagName -8===(n=r).nodeType&&0===n.nodeValue.lastIndexOf("%+b:",0)&&yr(r)===t?(this.candidate=this.remove(r),e.openBlockDepth=t):"TITLE"!==i&&"SCRIPT"!==i&&"STYLE"!==i&&this.clearMismatch(r)}}},n.__closeBlock=function(){var e=this.currentCursor +8===(n=r).nodeType&&0===n.nodeValue.lastIndexOf("%+b:",0)&&vr(r)===t?(this.candidate=this.remove(r),e.openBlockDepth=t):"TITLE"!==i&&"SCRIPT"!==i&&"STYLE"!==i&&this.clearMismatch(r)}}},n.__closeBlock=function(){var e=this.currentCursor if(null!==e){var t=e.openBlockDepth this.blockDepth-- var r=e.candidate,n=!1 -if(null!==r)if(n=!0,mr(r)&&yr(r)===t){var i=this.remove(r) +if(null!==r)if(n=!0,mr(r)&&vr(r)===t){var i=this.remove(r) this.candidate=i,e.openBlockDepth--}else this.clearMismatch(r),n=!1 if(!1===n){var o=e.nextSibling -if(null!==o&&mr(o)&&yr(o)===this.blockDepth){var a=this.remove(o) +if(null!==o&&mr(o)&&vr(o)===this.blockDepth){var a=this.remove(o) this.enableRehydration(a),e.openBlockDepth--}}}},n.__appendNode=function(t){var r=this.candidate return r||e.prototype.__appendNode.call(this,t)},n.__appendHTML=function(t){var r=this.markerBounds() -if(r){var n=r.firstNode(),i=r.lastNode(),o=new y(this.element,n.nextSibling,i.previousSibling),a=this.remove(n) +if(r){var n=r.firstNode(),i=r.lastNode(),o=new v(this.element,n.nextSibling,i.previousSibling),a=this.remove(n) return this.remove(i),null!==a&&gr(a)&&(this.candidate=this.remove(a),null!==this.candidate&&this.clearMismatch(this.candidate)),o}return e.prototype.__appendHTML.call(this,t)},n.remove=function(e){var t=e.parentNode,r=e.nextSibling return t.removeChild(e),r},n.markerBounds=function(){var e=this.candidate if(e&&br(e)){for(var t=e,r=t.nextSibling;r&&!br(r);)r=r.nextSibling -return new y(this.element,t,r)}return null},n.__appendText=function(t){var r=this.candidate +return new v(this.element,t,r)}return null},n.__appendText=function(t){var r=this.candidate return r?3===r.nodeType?(r.nodeValue!==t&&(r.nodeValue=t),this.candidate=r.nextSibling,r):function(e){return 8===e.nodeType&&"%|%"===e.nodeValue}(r)||gr(r)&&""===t?(this.candidate=this.remove(r),this.__appendText(t)):(this.clearMismatch(r),e.prototype.__appendText.call(this,t)):e.prototype.__appendText.call(this,t)},n.__appendComment=function(t){var r=this.candidate return r&&pr(r)?(r.nodeValue!==t&&(r.nodeValue=t),this.candidate=r.nextSibling,r):(r&&this.clearMismatch(r),e.prototype.__appendComment.call(this,t))},n.__openElement=function(t){var r=this.candidate -if(r&&vr(r)&&function(e,t){if("http://www.w3.org/2000/svg"===e.namespaceURI)return e.tagName===t +if(r&&yr(r)&&function(e,t){if("http://www.w3.org/2000/svg"===e.namespaceURI)return e.tagName===t return e.tagName===t.toUpperCase()}(r,t))return this.unmatchedAttributes=[].slice.call(r.attributes),r -if(r){if(vr(r)&&"TBODY"===r.tagName)return this.pushElement(r,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(t) +if(r){if(yr(r)&&"TBODY"===r.tagName)return this.pushElement(r,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(t) this.clearMismatch(r)}return e.prototype.__openElement.call(this,t)},n.__setAttribute=function(t,r,n){var i=this.unmatchedAttributes if(i){var o=wr(i,t) if(o)return o.value!==r&&(o.value=r),void i.splice(i.indexOf(o),1)}return e.prototype.__setAttribute.call(this,t,r,n)},n.__setProperty=function(t,r){var n=this.unmatchedAttributes @@ -3714,15 +3714,15 @@ return r||null},n.__pushRemoteElement=function(e,t,r){var n=this.getMarker(e,t) if(void 0===r){for(;null!==e.firstChild&&e.firstChild!==n;)this.remove(e.firstChild) r=null}var i=new hr(e,null,this.blockDepth) this[P].push(i),null===n?this.disableRehydration(r):this.candidate=this.remove(n) -var o=new A(e) +var o=new j(e) return this.pushLiveBlock(o,!0)},n.didAppendBounds=function(t){if(e.prototype.didAppendBounds.call(this,t),this.candidate){var r=t.lastNode() this.candidate=r&&r.nextSibling}return t},(0,t.createClass)(r,[{key:"currentCursor",get:function(){return this[P].current}},{key:"candidate",get:function(){return this.currentCursor?this.currentCursor.candidate:null},set:function(e){this.currentCursor.candidate=e}}]),r}(M) -function pr(e){return 8===e.nodeType}function mr(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%-b:",0)}function yr(e){return parseInt(e.nodeValue.slice(4),10)}function vr(e){return 1===e.nodeType}function br(e){return 8===e.nodeType&&"%glmr%"===e.nodeValue}function gr(e){return 8===e.nodeType&&"% %"===e.nodeValue}function wr(e,t){for(var r=0;r1073741823)switch(e){case 1073741 case 1073741825:return!0 case 1073741826:return null case 1073741827:return -default:return 1073741827-e}return e},e.deprecate=function(e){console.warn("DEPRECATION: "+e)},e.destructor=k,e.dict=a,e.didDestroyAssociated=x,e.encodeHandle=function(e,t,r){void 0===t&&(t=2147483647) +default:return 1073741827-e}return e},e.deprecate=function(e){console.warn("DEPRECATION: "+e)},e.destructor=x,e.dict=a,e.didDestroyAssociated=k,e.encodeHandle=function(e,t,r){void 0===t&&(t=2147483647) void 0===r&&(r=-1) if(e>t)throw new Error("index "+e+" overflowed range 0 to "+t) return r-e},e.encodeImmediate=function(e){if("number"==typeof e)return e<0?1073741827-e:e @@ -3745,14 +3745,14 @@ if(void 0===e)return 1073741827 return c(e)},e.ensureGuid=o,e.exhausted=c,e.expect=function(e,t){if(null==e)throw new Error(t) return e},e.extractHandle=function(e){return"number"==typeof e?e:e.handle},e.fillNulls=function(e){for(var t=new Array(e),r=0;r=t&&e<=r}(e,-1073741820,1073741823)},e.isStringDestroyable=d,e.keys=function(e){return Object.keys(e)},e.peekAssociated=function(e){return p.get(e)||null},e.printDrop=j,e.printDropTree=function(e){j(k(e))},e.snapshot=function(e){return new O(e)},e.strip=function(e){for(var r="",n=arguments.length,i=new Array(n>1?n-1:0),o=1;o=t&&e<=r}(e,-1073741820,1073741823)},e.isStringDestroyable=d,e.keys=function(e){return Object.keys(e)},e.peekAssociated=function(e){return p.get(e)||null},e.printDrop=A,e.printDropTree=function(e){A(x(e))},e.snapshot=function(e){return new O(e)},e.strip=function(e){for(var r="",n=arguments.length,i=new Array(n>1?n-1:0),o=1;o0?(p.delete(e),t):null},e.tuple=void 0,e.unreachable=function(e){void 0===e&&(e="unreachable") return new Error(e)},e.unwrap=function(e){if(null==e)throw new Error("Expected value to be present") return e},e.unwrapHandle=function(e){if("number"==typeof e)return e @@ -3783,54 +3783,54 @@ var p=new WeakMap e.LINKED=p var m=l("WILL_DROP") e.WILL_DROP=m -var y=l("DID_DROP") -e.DID_DROP=y -var v=l("CHILDREN") -e.CHILDREN=v +var v=l("DID_DROP") +e.DID_DROP=v +var y=l("CHILDREN") +e.CHILDREN=y var b=new WeakMap -function g(e){return null!==e&&"object"==typeof e&&void 0!==e[y]}function w(e,t){var r=p.get(e) +function g(e){return null!==e&&"object"==typeof e&&void 0!==e[v]}function w(e,t){var r=p.get(e) r||(r=new Set,p.set(e,r)),r.add(t)}function _(e){var t=p.get(e) -t&&t.forEach((function(e){e[m]()}))}function x(e){var t=p.get(e) -t&&t.forEach((function(e){e[y](),t.delete(e)}))}function k(e){var t=b.get(e) +t&&t.forEach((function(e){e[m]()}))}function k(e){var t=p.get(e) +t&&t.forEach((function(e){e[v](),t.delete(e)}))}function x(e){var t=b.get(e) return t||(t=h(e)?new E(e):d(e)?new S(e):new P(e),b.set(e,t)),t}e.DESTRUCTORS=b var O=function(){function e(e){this.destructors=e}var r=e.prototype -return r[m]=function(){this.destructors.forEach((function(e){return e[m]()}))},r[y]=function(){this.destructors.forEach((function(e){return e[y]()}))},r.toString=function(){return"SnapshotDestructor"},(0,t.createClass)(e,[{key:v,get:function(){return this.destructors}}]),e}(),E=function(){function e(e){this.inner=e}var r=e.prototype -return r[m]=function(){_(this.inner)},r[y]=function(){this.inner[f](),x(this.inner)},r.toString=function(){return"DestroyableDestructor"},(0,t.createClass)(e,[{key:v,get:function(){return p.get(this.inner)||[]}}]),e}(),S=function(){function e(e){this.inner=e}var r=e.prototype -return r[m]=function(){"function"==typeof this.inner.willDestroy&&this.inner.willDestroy(),_(this.inner)},r[y]=function(){this.inner.destroy(),x(this.inner)},r.toString=function(){return"StringDestroyableDestructor"},(0,t.createClass)(e,[{key:v,get:function(){return p.get(this.inner)||[]}}]),e}(),P=function(){function e(e){this.inner=e}var r=e.prototype -return r[m]=function(){_(this.inner)},r[y]=function(){x(this.inner)},r.toString=function(){return"SimpleDestructor"},(0,t.createClass)(e,[{key:v,get:function(){return p.get(this.inner)||[]}}]),e}(),M=function(){function e(e){this.inner=e}var r=e.prototype -return r[m]=function(){this.inner.forEachNode((function(e){return k(e)[m]()}))},r[y]=function(){this.inner.forEachNode((function(e){return k(e)[y]()}))},r.toString=function(){return"ListContentsDestructor"},(0,t.createClass)(e,[{key:v,get:function(){var e=[] -return this.inner.forEachNode((function(t){return e.push.apply(e,k(t)[v])})),e}}]),e}() -function j(e){console.group(String(e)),console.log(e) -var r=e[v]||null -if(r)for(var n,i=(0,t.createForOfIteratorHelperLoose)(r);!(n=i()).done;){j(n.value)}console.groupEnd()}e.ListContentsDestructor=M +return r[m]=function(){this.destructors.forEach((function(e){return e[m]()}))},r[v]=function(){this.destructors.forEach((function(e){return e[v]()}))},r.toString=function(){return"SnapshotDestructor"},(0,t.createClass)(e,[{key:y,get:function(){return this.destructors}}]),e}(),E=function(){function e(e){this.inner=e}var r=e.prototype +return r[m]=function(){_(this.inner)},r[v]=function(){this.inner[f](),k(this.inner)},r.toString=function(){return"DestroyableDestructor"},(0,t.createClass)(e,[{key:y,get:function(){return p.get(this.inner)||[]}}]),e}(),S=function(){function e(e){this.inner=e}var r=e.prototype +return r[m]=function(){"function"==typeof this.inner.willDestroy&&this.inner.willDestroy(),_(this.inner)},r[v]=function(){this.inner.destroy(),k(this.inner)},r.toString=function(){return"StringDestroyableDestructor"},(0,t.createClass)(e,[{key:y,get:function(){return p.get(this.inner)||[]}}]),e}(),P=function(){function e(e){this.inner=e}var r=e.prototype +return r[m]=function(){_(this.inner)},r[v]=function(){k(this.inner)},r.toString=function(){return"SimpleDestructor"},(0,t.createClass)(e,[{key:y,get:function(){return p.get(this.inner)||[]}}]),e}(),M=function(){function e(e){this.inner=e}var r=e.prototype +return r[m]=function(){this.inner.forEachNode((function(e){return x(e)[m]()}))},r[v]=function(){this.inner.forEachNode((function(e){return x(e)[v]()}))},r.toString=function(){return"ListContentsDestructor"},(0,t.createClass)(e,[{key:y,get:function(){var e=[] +return this.inner.forEachNode((function(t){return e.push.apply(e,x(t)[y])})),e}}]),e}() +function A(e){console.group(String(e)),console.log(e) +var r=e[y]||null +if(r)for(var n,i=(0,t.createForOfIteratorHelperLoose)(r);!(n=i()).done;){A(n.value)}console.groupEnd()}e.ListContentsDestructor=M e.ListNode=function(e){this.next=null,this.prev=null,this.value=e} -var A=function(){function e(){this.clear()}var r=e.prototype +var j=function(){function e(){this.clear()}var r=e.prototype return r.head=function(){return this._head},r.tail=function(){return this._tail},r.clear=function(){this._head=this._tail=null},r.toArray=function(){var e=[] return this.forEachNode((function(t){return e.push(t)})),e},r.nextNode=function(e){return e.next},r.forEachNode=function(e){for(var t=this._head;null!==t;)e(t),t=t.next},r.insertBefore=function(e,t){return void 0===t&&(t=null),null===t?this.append(e):(t.prev?t.prev.next=e:this._head=e,e.prev=t.prev,e.next=t,t.prev=e,e)},r.append=function(e){var t=this._tail -return t?(t.next=e,e.prev=t,e.next=null):this._head=e,this._tail=e},r.remove=function(e){return e.prev?e.prev.next=e.next:this._head=e.next,e.next?e.next.prev=e.prev:this._tail=e.prev,e},r[m]=function(){this.forEachNode((function(e){return k(e)[m]()}))},r[y]=function(){this.forEachNode((function(e){return k(e)[y]()}))},(0,t.createClass)(e,[{key:v,get:function(){var e=[] -return this.forEachNode((function(t){return e.push.apply(e,k(t)[v])})),e}}]),e}() -e.LinkedList=A -var T=function(){function e(e,t){this._head=e,this._tail=t}var t=e.prototype +return t?(t.next=e,e.prev=t,e.next=null):this._head=e,this._tail=e},r.remove=function(e){return e.prev?e.prev.next=e.next:this._head=e.next,e.next?e.next.prev=e.prev:this._tail=e.prev,e},r[m]=function(){this.forEachNode((function(e){return x(e)[m]()}))},r[v]=function(){this.forEachNode((function(e){return x(e)[v]()}))},(0,t.createClass)(e,[{key:y,get:function(){var e=[] +return this.forEachNode((function(t){return e.push.apply(e,x(t)[y])})),e}}]),e}() +e.LinkedList=j +var R=function(){function e(e,t){this._head=e,this._tail=t}var t=e.prototype return t.forEachNode=function(e){for(var t=this._head;null!==t;)e(t),t=this.nextNode(t)},t.head=function(){return this._head},t.tail=function(){return this._tail},t.toArray=function(){var e=[] return this.forEachNode((function(t){return e.push(t)})),e},t.nextNode=function(e){return e===this._tail?null:e.next},e}() -e.ListSlice=T -var R=new T(null,null) -e.EMPTY_SLICE=R +e.ListSlice=R +var T=new R(null,null) +e.EMPTY_SLICE=T var C,I=Object.keys var N=C e.debugToString=N})),e("@glimmer/validator",["exports","@ember/polyfills"],(function(e,t){"use strict" -Object.defineProperty(e,"__esModule",{value:!0}),e.VolatileTag=e.VOLATILE_TAG=e.VOLATILE=e.INITIAL=e.EPOCH=e.CurrentTag=e.CURRENT_TAG=e.CONSTANT_TAG=e.CONSTANT=e.COMPUTE=e.ALLOW_CYCLES=void 0,e.beginTrackFrame=R,e.bump=function(){a++},e.combine=x,e.consumeTag=N,e.createCombinatorTag=k,e.createTag=m,e.createUpdatableTag=y,e.dirtyTag=e.deprecateMutationsInAutotrackingTransaction=void 0,e.dirtyTagFor=P,e.endTrackFrame=C,e.isConst=function(e){return e.tag===v},e.isConstMemo=function(e){0 -return!0===I.get(e)},e.isConstTag=function(e){return e===v},e.isTracking=function(){return null!==A},e.memoizeTracked=function(e,t){var r,n,i,o=function t(){for(var o=arguments.length,a=new Array(o),s=0;s=0&&e<=15},e.isOp=function(e){return e>=16} e.$pc=0 @@ -3987,7 +3987,7 @@ return this.queueNameIndex=0,i?a.pushUnique(t,r,n,o):a.push(t,r,n,o)},t.flush=fu void 0===e&&(e=!1) for(var n=this.queueNames.length;this.queueNameIndex0){var a=n[o-1] s(a)&&(i=parseInt(n.pop(),10))}return[t,r,n,i]}function w(){var e,t,r,n,i if(2===arguments.length)t=arguments[0],i=arguments[1],e=null else{var o=b.apply(void 0,arguments) -e=o[0],t=o[1],void 0===(n=o[2])?i=0:s(i=n.pop())||(r=!0===i,i=n.pop())}return[e,t,n,i=parseInt(i,10),r]}var _=0,x=0,k=0,O=0,E=0,S=0,P=0,M=0,j=0,A=0,T=0,R=0,C=0,I=0,N=0,D=0,L=0,B=0,F=0,U=0,z=0,H=function(){function e(e,t){var r=this -this.DEBUG=!1,this.currentInstance=null,this.instanceStack=[],this._eventCallbacks={end:[],begin:[]},this._timerTimeoutId=null,this._timers=[],this._autorun=!1,this._autorunStack=null,this.queueNames=e,this.options=t||{},"string"==typeof this.options.defaultQueue?this._defaultQueue=this.options.defaultQueue:this._defaultQueue=this.queueNames[0],this._onBegin=this.options.onBegin||y,this._onEnd=this.options.onEnd||y,this._boundRunExpiredTimers=this._runExpiredTimers.bind(this),this._boundAutorunEnd=function(){F++,!1!==r._autorun&&(r._autorun=!1,r._autorunStack=null,r._end(!0))} +e=o[0],t=o[1],void 0===(n=o[2])?i=0:s(i=n.pop())||(r=!0===i,i=n.pop())}return[e,t,n,i=parseInt(i,10),r]}var _=0,k=0,x=0,O=0,E=0,S=0,P=0,M=0,A=0,j=0,R=0,T=0,C=0,I=0,N=0,D=0,B=0,L=0,F=0,U=0,z=0,q=function(){function e(e,t){var r=this +this.DEBUG=!1,this.currentInstance=null,this.instanceStack=[],this._eventCallbacks={end:[],begin:[]},this._timerTimeoutId=null,this._timers=[],this._autorun=!1,this._autorunStack=null,this.queueNames=e,this.options=t||{},"string"==typeof this.options.defaultQueue?this._defaultQueue=this.options.defaultQueue:this._defaultQueue=this.queueNames[0],this._onBegin=this.options.onBegin||v,this._onEnd=this.options.onEnd||v,this._boundRunExpiredTimers=this._runExpiredTimers.bind(this),this._boundAutorunEnd=function(){F++,!1!==r._autorun&&(r._autorun=!1,r._autorunStack=null,r._end(!0))} var n=this.options._buildPlatform||o this._platform=n(this._boundAutorunEnd)}var r=e.prototype -return r.begin=function(){x++ +return r.begin=function(){k++ var e,t=this.options,r=this.currentInstance -return!1!==this._autorun?(e=r,this._cancelAutorun()):(null!==r&&(z++,this.instanceStack.push(r)),U++,e=this.currentInstance=new p(this.queueNames,t),O++,this._trigger("begin",e,r)),this._onBegin(e,r),e},r.end=function(){k++,this._end(!1)},r.on=function(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function") +return!1!==this._autorun?(e=r,this._cancelAutorun()):(null!==r&&(z++,this.instanceStack.push(r)),U++,e=this.currentInstance=new p(this.queueNames,t),O++,this._trigger("begin",e,r)),this._onBegin(e,r),e},r.end=function(){x++,this._end(!1)},r.on=function(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function") var r=this._eventCallbacks[e] if(void 0===r)throw new TypeError("Cannot on() event "+e+" because it does not exist") r.push(t)},r.off=function(e,t){var r=this._eventCallbacks[e] @@ -4020,29 +4020,29 @@ for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o1?t-1:0),n=1;n3?n-3:0),o=3;o1?t-1:0),n=1;n0||this._autorun},r.cancel=function(e){if(L++,null==e)return!1 +this._timers.splice(p,0,f,e,r,n,i,m),this._timers.splice(c,6)}0===c&&this._reinstallTimerTimeout()}return e},r.cancelTimers=function(){D++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()},r.hasTimers=function(){return this._timers.length>0||this._autorun},r.cancel=function(e){if(B++,null==e)return!1 var t=typeof e return"number"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)},r.ensureInstance=function(){this._ensureInstance()},r.getDebugInfo=function(){var e=this if(this.DEBUG)return{autorun:this._autorunStack,counters:this.counters,timers:f(this._timers,6,2),instanceStack:[this.currentInstance].concat(this.instanceStack).map((function(t){return t&&t._getDebugInfo(e.DEBUG)}))}},r._end=function(e){var t=this.currentInstance,r=null @@ -4057,15 +4057,15 @@ this._timers.splice(s,0,o,a,e,t,r,i),this._reinstallTimerTimeout()}return a},r._ return!1},r._trigger=function(e,t,r){var n=this._eventCallbacks[e] if(void 0!==n)for(var i=0;i0&&(this.begin(),this._scheduleExpiredTimers(),this.end())},r._scheduleExpiredTimers=function(){for(var e=this._timers,t=0,r=e.length,n=this._defaultQueue,i=this._platform.now();ti)break var o=e[t+4] -if(o!==v){var a=e[t+2],s=e[t+3],u=e[t+5] +if(o!==y){var a=e[t+2],s=e[t+3],u=e[t+5] this.currentInstance.schedule(n,a,s,o,!1,u)}}e.splice(0,t),this._installTimerTimeout()},r._reinstallTimerTimeout=function(){this._clearTimerTimeout(),this._installTimerTimeout()},r._clearTimerTimeout=function(){null!==this._timerTimeoutId&&(this._platform.clearTimeout(this._timerTimeoutId),this._timerTimeoutId=null)},r._installTimerTimeout=function(){if(0!==this._timers.length){var e=this._timers[0],t=this._platform.now(),r=Math.max(0,e-t) this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,r)}},r._ensureInstance=function(){var e=this.currentInstance -return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e},r._scheduleAutorun=function(e){B++ +return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e},r._scheduleAutorun=function(e){L++ var t=this._platform.next,r=this.options.flush -r?r(e,t):t(),this._autorun=!0},(0,t.createClass)(e,[{key:"counters",get:function(){return{begin:x,end:k,events:{begin:O,end:0},autoruns:{created:B,completed:F},run:E,join:S,defer:P,schedule:M,scheduleIterable:j,deferOnce:A,scheduleOnce:T,setTimeout:R,later:C,throttle:I,debounce:N,cancelTimers:D,cancel:L,loops:{total:U,nested:z}}}},{key:"defaultQueue",get:function(){return this._defaultQueue}}]),e}() -H.Queue=d,H.buildPlatform=o,H.buildNext=i -var q=H -e.default=q})),e("dag-map",["exports"],(function(e){"use strict" +r?r(e,t):t(),this._autorun=!0},(0,t.createClass)(e,[{key:"counters",get:function(){return{begin:k,end:x,events:{begin:O,end:0},autoruns:{created:L,completed:F},run:E,join:S,defer:P,schedule:M,scheduleIterable:A,deferOnce:j,scheduleOnce:R,setTimeout:T,later:C,throttle:I,debounce:N,cancelTimers:D,cancel:B,loops:{total:U,nested:z}}}},{key:"defaultQueue",get:function(){return this._defaultQueue}}]),e}() +q.Queue=d,q.buildPlatform=o,q.buildNext=i +var H=q +e.default=H})),e("dag-map",["exports"],(function(e){"use strict" Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0 var t=function(){function e(){this._vertices=new r}return e.prototype.add=function(e,t,r,n){if(!e)throw new Error("argument `key` is required") var i=this._vertices,o=i.add(e) @@ -4111,16 +4111,16 @@ var t=Object.setPrototypeOf,r=Object.getPrototypeOf,n="object"==typeof Reflect&& function o(e,t){for(var r=0;re.length)&&(t=e.length) for(var r=new Array(t),n=0;n0&&47===t.charCodeAt(0)&&(t=t.substr(1)) for(var n=t.split("/"),i=void 0,o=void 0,a=0;a2?r-2:0),i=2;io;o++)if(n=k.get(e[o]),t.call(r,n,o,i))return n},get name(){return a},get paramNames(){return u},get metadata(){return S(i.route)},get parent(){var t=e[o-1] -return void 0===t?null:k.get(t)},get child(){var t=e[o+1] -return void 0===t?null:k.get(t)},get localName(){var e=this.name.split(".") +return x.set(i,h),h}var d={find:function(t,r){var n,i=[] +3===t.length&&(i=e.map((function(e){return x.get(e)}))) +for(var o=0;e.length>o;o++)if(n=x.get(e[o]),t.call(r,n,o,i))return n},get name(){return a},get paramNames(){return u},get metadata(){return S(i.route)},get parent(){var t=e[o-1] +return void 0===t?null:x.get(t)},get child(){var t=e[o+1] +return void 0===t?null:x.get(t)},get localName(){var e=this.name.split(".") return e[e.length-1]},get params(){return s},get queryParams(){return r}} -return n&&(d=E(d,c)),k.set(i,d),d}))}function E(e,r){var n={get attributes(){return r}} +return n&&(d=E(d,c)),x.set(i,d),d}))}function E(e,r){var n={get attributes(){return r}} return Object.isFrozen(e)||e.hasOwnProperty("attributes")?Object.freeze((0,t.assign)({},e,n)):(0,t.assign)(e,n)}function S(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}var P=function(){function e(e,t,r,n){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=r,this.router=e,n&&this._processRoute(n)}var t=e.prototype return t.getModel=function(e){return n.Promise.resolve(this.context)},t.serialize=function(e){return this.params||{}},t.resolve=function(e,t){var r=this return n.Promise.resolve(this.routePromise).then((function(t){return r.checkForAbort(e,t)})).then((function(){return r.runBeforeModelHook(t)})).then((function(){return r.checkForAbort(e,null)})).then((function(){return r.getModel(t)})).then((function(t){return r.checkForAbort(e,t)})).then((function(e){return r.runAfterModelHook(t,e)})).then((function(e){return r.becomeResolved(t,e)}))},t.becomeResolved=function(e,t){var r,n=this.serialize(t) e&&(this.stashResolvedModel(e,t),e[b]=e[b]||{},e[b][this.name]=n) var i=t===this.context !("context"in this)&&i||(r=t) -var o=k.get(this),a=new M(this.router,this.name,this.paramNames,n,this.route,r) -return void 0!==o&&k.set(a,o),a},t.shouldSupercede=function(e){if(!e)return!0 +var o=x.get(this),a=new M(this.router,this.name,this.paramNames,n,this.route,r) +return void 0!==o&&x.set(a,o),a},t.shouldSupercede=function(e){if(!e)return!0 var t=e.context===this.context return e.name!==this.name||"context"in this&&!t||this.hasOwnProperty("params")&&!function(e,t){if(!e!=!t)return!1 if(!e)return!0 for(var r in e)if(e.hasOwnProperty(r)&&e[r]!==t[r])return!1 return!0}(this.params,e.params)},t.log=function(e,t){e.log&&e.log(this.name+": "+t)},t.updateRoute=function(e){return e._internalName=this.name,this.route=e},t.runBeforeModelHook=function(e){var t -return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void 0!==this.route.beforeModel&&(t=this.route.beforeModel(e)),x(t)&&(t=null),n.Promise.resolve(t)},t.runAfterModelHook=function(e,t){var r,i,o=this.name -return this.stashResolvedModel(e,t),void 0!==this.route&&void 0!==this.route.afterModel&&(r=this.route.afterModel(t,e)),r=x(i=r)?null:i,n.Promise.resolve(r).then((function(){return e.resolvedModels[o]}))},t.checkForAbort=function(e,t){return n.Promise.resolve(e()).then((function(){return t}),null)},t.stashResolvedModel=function(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t},t.fetchRoute=function(){var e=this.router.getRoute(this.name) +return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void 0!==this.route.beforeModel&&(t=this.route.beforeModel(e)),k(t)&&(t=null),n.Promise.resolve(t)},t.runAfterModelHook=function(e,t){var r,i,o=this.name +return this.stashResolvedModel(e,t),void 0!==this.route&&void 0!==this.route.afterModel&&(r=this.route.afterModel(t,e)),r=k(i=r)?null:i,n.Promise.resolve(r).then((function(){return e.resolvedModels[o]}))},t.checkForAbort=function(e,t){return n.Promise.resolve(e()).then((function(){return t}),null)},t.stashResolvedModel=function(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t},t.fetchRoute=function(){var e=this.router.getRoute(this.name) return this._processRoute(e)},t._processRoute=function(e){var t,r=this return this.routePromise=n.Promise.resolve(e),null!==(t=e)&&"object"==typeof t&&"function"==typeof t.then?(this.routePromise=this.routePromise.then((function(e){return r.updateRoute(e)})),this.route=void 0):e?this.updateRoute(e):void 0},(0,r.createClass)(e,[{key:"route",get:function(){return null!==this._route?this._route:this.fetchRoute()},set:function(e){this._route=e}},{key:"routePromise",get:function(){return this._routePromise||this.fetchRoute(),this._routePromise},set:function(e){this._routePromise=e}}]),e}() e.InternalRouteInfo=P var M=function(e){function t(t,r,n,i,o,a){var s -return(s=e.call(this,t,r,n,o)||this).params=i,s.isResolved=!0,s.context=a,s}return(0,r.inheritsLoose)(t,e),t.prototype.resolve=function(e,t){return t&&t.resolvedModels&&(t.resolvedModels[this.name]=this.context),n.Promise.resolve(this)},t}(P),j=function(e){function t(t,r,n,i,o){var a +return(s=e.call(this,t,r,n,o)||this).params=i,s.isResolved=!0,s.context=a,s}return(0,r.inheritsLoose)(t,e),t.prototype.resolve=function(e,t){return t&&t.resolvedModels&&(t.resolvedModels[this.name]=this.context),n.Promise.resolve(this)},t}(P),A=function(e){function t(t,r,n,i,o){var a return(a=e.call(this,t,r,n,o)||this).params={},a.params=i,a}return(0,r.inheritsLoose)(t,e),t.prototype.getModel=function(e){var t=this.params e&&e[g]&&(u(t={},this.params),t.queryParams=e[g]) var r=this.route,i=void 0 -return r.deserialize?i=r.deserialize(t,e):r.model&&(i=r.model(t,e)),i&&x(i)&&(i=void 0),n.Promise.resolve(i)},t}(P),A=function(e){function t(t,r,n,i){var o +return r.deserialize?i=r.deserialize(t,e):r.model&&(i=r.model(t,e)),i&&k(i)&&(i=void 0),n.Promise.resolve(i)},t}(P),j=function(e){function t(t,r,n,i){var o return(o=e.call(this,t,r,n)||this).context=i,o.serializer=o.router.getSerializer(r),o}(0,r.inheritsLoose)(t,e) var n=t.prototype return n.getModel=function(t){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),e.prototype.getModel.call(this,t)},n.serialize=function(e){var t=this.paramNames,r=this.context @@ -4308,9 +4308,9 @@ if(this.serializer)return this.serializer.call(null,e,t) if(void 0!==this.route&&this.route.serialize)return this.route.serialize(e,t) if(1===t.length){var i=t[0] return/_id$/.test(i)?n[i]=e.id:n[i]=e,n}},t}(P) -var T=function(e,t){void 0===t&&(t={}),this.router=e,this.data=t},R=function(){function e(){this.routeInfos=[],this.queryParams={},this.params={}}var t=e.prototype +var R=function(e,t){void 0===t&&(t={}),this.router=e,this.data=t},T=function(){function e(){this.routeInfos=[],this.queryParams={},this.params={}}var t=e.prototype return t.promiseLabel=function(e){var t="" -return d(this.routeInfos,(function(e){return""!==t&&(t+="."),t+=e.name,!0})),y("'"+t+"': "+e)},t.resolve=function(e,t){var r=this.params +return d(this.routeInfos,(function(e){return""!==t&&(t+="."),t+=e.name,!0})),v("'"+t+"': "+e)},t.resolve=function(e,t){var r=this.params d(this.routeInfos,(function(e){return r[e.name]=e.params||{},!0})),t.resolveIndex=0 var i=this,o=!1 return n.Promise.resolve(null,this.promiseLabel("Start transition")).then(u,null,this.promiseLabel("Resolve route")).catch((function(e){var r=i.routeInfos,a=t.resolveIndex>=r.length?r.length-1:t.resolveIndex @@ -4318,42 +4318,42 @@ return n.Promise.reject(new C(e,i.routeInfos[a].route,o,i))}),this.promiseLabel( function a(){return n.Promise.resolve(e(),i.promiseLabel("Check if should continue")).catch((function(e){return o=!0,n.Promise.reject(e)}),i.promiseLabel("Handle abort"))}function s(e){var r=i.routeInfos[t.resolveIndex].isResolved if(i.routeInfos[t.resolveIndex++]=e,!r){var n=e.route void 0!==n&&n.redirect&&n.redirect(e.context,t)}return a().then(u,null,i.promiseLabel("Resolve route"))}function u(){return t.resolveIndex===i.routeInfos.length?i:i.routeInfos[t.resolveIndex].resolve(a,t).then(s,null,i.promiseLabel("Proceed"))}},e}() -e.TransitionState=R +e.TransitionState=T var C=function(e,t,r,n){this.error=e,this.route=t,this.wasAborted=r,this.state=n} e.TransitionError=C var I=function(e){function t(t,r,n,i,o,a){var s return void 0===i&&(i=[]),void 0===o&&(o={}),(s=e.call(this,t,a)||this).preTransitionState=void 0,s.name=r,s.pivotHandler=n,s.contexts=i,s.queryParams=o,s}(0,r.inheritsLoose)(t,e) var n=t.prototype return n.applyToState=function(e,t){var r=c([this.name].concat(this.contexts))[0],n=this.router.recognizer.handlersFor(r[0]),i=n[n.length-1].handler -return this.applyToHandlers(e,n,i,t,!1)},n.applyToHandlers=function(e,t,r,n,i){var o,a,s=new R,c=this.contexts.slice(0),l=t.length +return this.applyToHandlers(e,n,i,t,!1)},n.applyToHandlers=function(e,t,r,n,i){var o,a,s=new T,c=this.contexts.slice(0),l=t.length if(this.pivotHandler)for(o=0,a=t.length;o=0;--o){var f=t[o],h=f.handler,d=e.routeInfos[o],p=null if(p=f.names.length>0?o>=l?this.createParamHandlerInfo(h,f.names,c,d):this.getHandlerInfoForDynamicSegment(h,f.names,c,d,r,o):this.createParamHandlerInfo(h,f.names,c,d),i){p=p.becomeResolved(null,p.context) var m=d&&d.context -f.names.length>0&&void 0!==d.context&&p.context===m&&(p.params=d&&d.params),p.context=m}var y=d;(o>=l||p.shouldSupercede(d))&&(l=Math.min(o,l),y=p),n&&!i&&(y=y.becomeResolved(null,y.context)),s.routeInfos.unshift(y)}if(c.length>0)throw new Error("More context objects were passed than there are dynamic segments for the route: "+r) +f.names.length>0&&void 0!==d.context&&p.context===m&&(p.params=d&&d.params),p.context=m}var v=d;(o>=l||p.shouldSupercede(d))&&(l=Math.min(o,l),v=p),n&&!i&&(v=v.becomeResolved(null,v.context)),s.routeInfos.unshift(v)}if(c.length>0)throw new Error("More context objects were passed than there are dynamic segments for the route: "+r) return n||this.invalidateChildren(s.routeInfos,l),u(s.queryParams,this.queryParams||{}),s},n.invalidateChildren=function(e,t){for(var r=t,n=e.length;r0){if(h(a=r[r.length-1]))return this.createParamHandlerInfo(e,t,r,n) r.pop()}else{if(n&&n.name===e)return n if(!this.preTransitionState)return n var s=this.preTransitionState.routeInfos[o] -a=s&&s.context}return new A(this.router,e,t,a)},n.createParamHandlerInfo=function(e,t,r,n){for(var i={},o=t.length,a=[];o--;){var s=n&&e===n.name&&n.params||{},u=r[r.length-1],c=t[o] +a=s&&s.context}return new j(this.router,e,t,a)},n.createParamHandlerInfo=function(e,t,r,n){for(var i={},o=t.length,a=[];o--;){var s=n&&e===n.name&&n.params||{},u=r[r.length-1],c=t[o] h(u)?i[c]=""+r.pop():s.hasOwnProperty(c)?i[c]=s[c]:a.push(c)}if(a.length>0)throw new Error("You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route "+e+". Missing params: "+a) -return new j(this.router,e,t,i)},t}(T),N=function(){function e(t){var r=Error.call(this,t) +return new A(this.router,e,t,i)},t}(R),N=function(){function e(t){var r=Error.call(this,t) this.name="UnrecognizedURLError",this.message=t||"UnrecognizedURL",Error.captureStackTrace?Error.captureStackTrace(this,e):this.stack=r.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}(),D=function(e){function t(t,r,n){var i -return(i=e.call(this,t,n)||this).url=r,i.preTransitionState=void 0,i}return(0,r.inheritsLoose)(t,e),t.prototype.applyToState=function(e){var t,r,n=new R,i=this.router.recognizer.recognize(this.url) +return(i=e.call(this,t,n)||this).url=r,i.preTransitionState=void 0,i}return(0,r.inheritsLoose)(t,e),t.prototype.applyToState=function(e){var t,r,n=new T,i=this.router.recognizer.recognize(this.url) if(!i)throw new N(this.url) var o=!1,a=this.url function s(e){if(e&&e.inaccessibleByURL)throw new N(a) return e}for(t=0,r=i.length;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n=0&&t<1?v(Math.round(255*t)):"")},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return d(e,t) +return"#"+y(e[0])+y(e[1])+y(e[2])+(t>=0&&t<1?y(Math.round(255*t)):"")},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return d(e,t) return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:d,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return p(e,t) var r=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100) return"rgb("+r+"%, "+n+"%, "+i+"%)"},percentaString:p,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return m(e,t) @@ -4662,12 +4662,12 @@ for(o=0;o=0;i--)t.call(r,e[i],i) @@ -4718,8 +4718,8 @@ if(!e||!t||e.length!==t.length)return!1 for(r=0,n=e.length;r0&&this.requestAnimationFrame()},advance:function(){for(var e,t,r,n,i=this.animations,o=0;o=r?(H.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(o,1)):++o}},X=H.options.resolve,ee=["push","pop","shift","splice","unshift"] +a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=q.findIndex(this.animations,(function(t){return t.chart===e}));-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this +null===e.request&&(e.request=q.requestAnimFrame.call(window,(function(){e.request=null,e.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,r,n,i=this.animations,o=0;o=r?(q.callback(e.onAnimationComplete,[e],t),t.animating=!1,i.splice(o,1)):++o}},X=q.options.resolve,ee=["push","pop","shift","splice","unshift"] function te(e,t){var r=e._chartjs if(r){var n=r.listeners,i=n.indexOf(t);-1!==i&&n.splice(i,1),n.length>0||(ee.forEach((function(t){delete e[t]})),delete e._chartjs)}}var re=function(e,t){this.initialize(e,t)} -H.extend(re.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this +q.extend(re.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var r=this r.chart=e,r.index=t,r.linkScales(),r.addElements(),r._type=r.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,r=t.scales,n=this.getDataset(),i=t.options.scales null!==e.xAxisID&&e.xAxisID in r&&!n.xAxisID||(e.xAxisID=n.xAxisID||i.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in r&&!n.yAxisID||(e.yAxisID=n.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&te(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType @@ -4802,7 +4802,7 @@ r.dataset=r.dataset||this.createMetaDataset()},addElementAndReset:function(e){va this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,r=this,n=r.getDataset(),i=n.data||(n.data=[]) r._data!==i&&(r._data&&te(r._data,r),i&&Object.isExtensible(i)&&(t=r,(e=i)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ee.forEach((function(t){var r="onData"+t.charAt(0).toUpperCase()+t.slice(1),n=e[t] Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),i=n.apply(this,t) -return H.each(e._chartjs.listeners,(function(e){"function"==typeof e[r]&&e[r].apply(e,t)})),i}})})))),r._data=i),r.resyncElements()},_configure:function(){this._config=H.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,r){"_meta"!==e&&"data"!==e&&H._merger(e,t,r)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:H.noop,transition:function(e){for(var t=this.getMeta(),r=t.data||[],n=r.length,i=0;ir&&this.insertElements(r,n-r)},insertElements:function(e,t){for(var r=0;ri?(o=i/t.innerRadius,e.arc(a,s,t.innerRadius-i,n+o,r-o,!0)):e.arc(a,s,i,n+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip()}function ae(e,t,r){var n="inner"===t.borderAlign n?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),r.fullCircles&&function(e,t,r,n){var i,o=r.endAngle for(n&&(r.endAngle=r.startAngle+ie,oe(e,r),r.endAngle=o,r.endAngle===r.startAngle&&r.fullCircles&&(r.endAngle+=ie,r.fullCircles--)),e.beginPath(),e.arc(r.x,r.y,r.innerRadius,r.startAngle+ie,r.startAngle,!0),i=0;is;)i-=ie for(;i=a&&i<=s,c=o>=r.innerRadius&&o<=r.outerRadius @@ -4836,135 +4836,135 @@ return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},getArea:function(){var e=this._ return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,r=(e.outerRadius-e.innerRadius)/2+e.innerRadius return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}},draw:function(){var e,t=this._chart.ctx,r=this._view,n="inner"===r.borderAlign?.33:0,i={x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:Math.max(r.outerRadius-n,0),pixelMargin:n,startAngle:r.startAngle,endAngle:r.endAngle,fullCircles:Math.floor(r.circumference/ie)} if(t.save(),t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+ie,t.beginPath(),t.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),t.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),t.closePath(),e=0;ee.x&&(t=be(t,"left","right")):e.baser?r:n,r:u.right||i<0?0:i>t?t:i,b:u.bottom||o<0?0:o>r?r:o,l:u.left||a<0?0:a>t?t:a}}function we(e,t,r){var n=null===t,i=null===r,o=!(!e||n&&i)&&ve(e) -return o&&(n||t>=o.left&&t<=o.right)&&(i||r>=o.top&&r<=o.bottom)}L._set("global",{elements:{rectangle:{backgroundColor:me,borderColor:me,borderSkipped:"bottom",borderWidth:0}}}) -var _e=$.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=ve(e),r=t.right-t.left,n=t.bottom-t.top,i=ge(e,r/2,n/2) +return q.isObject(s)?(n=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):n=i=o=a=+s||0,{t:u.top||n<0?0:n>r?r:n,r:u.right||i<0?0:i>t?t:i,b:u.bottom||o<0?0:o>r?r:o,l:u.left||a<0?0:a>t?t:a}}function we(e,t,r){var n=null===t,i=null===r,o=!(!e||n&&i)&&ye(e) +return o&&(n||t>=o.left&&t<=o.right)&&(i||r>=o.top&&r<=o.bottom)}B._set("global",{elements:{rectangle:{backgroundColor:me,borderColor:me,borderSkipped:"bottom",borderWidth:0}}}) +var _e=J.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,r=function(e){var t=ye(e),r=t.right-t.left,n=t.bottom-t.top,i=ge(e,r/2,n/2) return{outer:{x:t.left,y:t.top,w:r,h:n},inner:{x:t.left+i.l,y:t.top+i.t,w:r-i.l-i.r,h:n-i.t-i.b}}}(t),n=r.outer,i=r.inner e.fillStyle=t.backgroundColor,e.fillRect(n.x,n.y,n.w,n.h),n.w===i.w&&n.h===i.h||(e.save(),e.beginPath(),e.rect(n.x,n.y,n.w,n.h),e.clip(),e.fillStyle=t.borderColor,e.rect(i.x,i.y,i.w,i.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view return e.base-e.y},inRange:function(e,t){return we(this._view,e,t)},inLabelRange:function(e,t){var r=this._view -return ye(r)?we(r,e,null):we(r,null,t)},inXRange:function(e){return we(this._view,e,null)},inYRange:function(e){return we(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view -return ye(r)?(e=r.x,t=(r.y+r.base)/2):(e=(r.x+r.base)/2,t=r.y),{x:e,y:t}},getArea:function(){var e=this._view -return ye(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view -return{x:e.x,y:e.y}}}),xe={},ke=se,Oe=le,Ee=pe,Se=_e -xe.Arc=ke,xe.Line=Oe,xe.Point=Ee,xe.Rectangle=Se -var Pe=H._deprecated,Me=H.valueOrDefault -function je(e,t,r){var n,i,o=r.barThickness,a=t.stackCount,s=t.pixels[e],u=H.isNullOrUndef(o)?function(e,t){var r,n,i,o,a=e._length +return ve(r)?we(r,e,null):we(r,null,t)},inXRange:function(e){return we(this._view,e,null)},inYRange:function(e){return we(this._view,null,e)},getCenterPoint:function(){var e,t,r=this._view +return ve(r)?(e=r.x,t=(r.y+r.base)/2):(e=(r.x+r.base)/2,t=r.y),{x:e,y:t}},getArea:function(){var e=this._view +return ve(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view +return{x:e.x,y:e.y}}}),ke={},xe=se,Oe=le,Ee=pe,Se=_e +ke.Arc=xe,ke.Line=Oe,ke.Point=Ee,ke.Rectangle=Se +var Pe=q._deprecated,Me=q.valueOrDefault +function Ae(e,t,r){var n,i,o=r.barThickness,a=t.stackCount,s=t.pixels[e],u=q.isNullOrUndef(o)?function(e,t){var r,n,i,o,a=e._length for(i=1,o=t.length;i0?Math.min(a,Math.abs(n-r)):a,r=n return a}(t.scale,t.pixels):-1 -return H.isNullOrUndef(o)?(n=u*r.categoryPercentage,i=r.barPercentage):(n=o*a,i=1),{chunk:n/a,ratio:i,start:s-n/2}}L._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),L._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}}) -var Ae=ne.extend({dataElementType:xe.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,r=this +return q.isNullOrUndef(o)?(n=u*r.categoryPercentage,i=r.barPercentage):(n=o*a,i=1),{chunk:n/a,ratio:i,start:s-n/2}}B._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),B._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}}) +var je=ne.extend({dataElementType:ke.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,r=this ne.prototype.initialize.apply(r,arguments),(e=r.getMeta()).stack=r.getDataset().stack,e.bar=!0,t=r._getIndexScale().options,Pe("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Pe("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Pe("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Pe("bar chart",r._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Pe("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,r,n=this.getMeta().data for(this._ruler=this.getRuler(),t=0,r=n.length;t=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,_=p.length -if(v||void 0===v&&void 0!==b)for(n=0;n<_&&(i=p[n]).index!==e;++n)i.stack===b&&(o=void 0===(c=f._parseValue(d[i.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(g+=o)) -return a=f.getPixelForValue(g),u=(s=f.getPixelForValue(g+w))-a,void 0!==y&&Math.abs(u)=0&&!h||w<0&&h?a-y:a+y),{size:u,base:a,head:s,center:s+u/2}},calculateBarIndexPixels:function(e,t,r,n){var i="flex"===n.barThickness?function(e,t,r){var n,i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e=0&&m.min>=0?m.min:m.max,w=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,_=p.length +if(y||void 0===y&&void 0!==b)for(n=0;n<_&&(i=p[n]).index!==e;++n)i.stack===b&&(o=void 0===(c=f._parseValue(d[i.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&o<0||m.max>=0&&o>0)&&(g+=o)) +return a=f.getPixelForValue(g),u=(s=f.getPixelForValue(g+w))-a,void 0!==v&&Math.abs(u)=0&&!h||w<0&&h?a-v:a+v),{size:u,base:a,head:s,center:s+u/2}},calculateBarIndexPixels:function(e,t,r,n){var i="flex"===n.barThickness?function(e,t,r){var n,i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e=Ne?-De:b<-Ne?De:0)+y,w=Math.cos(b),_=Math.sin(b),x=Math.cos(g),k=Math.sin(g),O=b<=0&&g>=0||g>=De,E=b<=Le&&g>=Le||g>=De+Le,S=b<=-Le&&g>=-Le||g>=Ne+Le,P=b===-Ne||g>=Ne?-1:Math.min(w,w*m,x,x*m),M=S?-1:Math.min(_,_*m,k,k*m),j=O?1:Math.max(w,w*m,x,x*m),A=E?1:Math.max(_,_*m,k,k*m) -c=(j-P)/2,l=(A-M)/2,f=-(j+P)/2,h=-(A+M)/2}for(n=0,i=p.length;n=Ne?-De:b<-Ne?De:0)+v,w=Math.cos(b),_=Math.sin(b),k=Math.cos(g),x=Math.sin(g),O=b<=0&&g>=0||g>=De,E=b<=Be&&g>=Be||g>=De+Be,S=b<=-Be&&g>=-Be||g>=Ne+Be,P=b===-Ne||g>=Ne?-1:Math.min(w,w*m,k,k*m),M=S?-1:Math.min(_,_*m,x,x*m),A=O?1:Math.max(w,w*m,k,k*m),j=E?1:Math.max(_,_*m,x,x*m) +c=(A-P)/2,l=(j-M)/2,f=-(A+P)/2,h=-(j+M)/2}for(n=0,i=p.length;n0&&!isNaN(e)?De*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,r,n,i,o,a,s,u,c=0,l=this.chart if(!e)for(t=0,r=l.data.datasets.length;t(c=s>c?s:c)?u:c) -return c},setHoverStyle:function(e){var t=e._model,r=e._options,n=H.getHoverColor +return c},setHoverStyle:function(e){var t=e._model,r=e._options,n=q.getHoverColor e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Ie(r.hoverBackgroundColor,n(r.backgroundColor)),t.borderColor=Ie(r.hoverBorderColor,n(r.borderColor)),t.borderWidth=Ie(r.hoverBorderWidth,r.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,r=0;r0&&He(u[e-1]._model,s)&&(r.controlPointPreviousX=c(r.controlPointPreviousX,s.left,s.right),r.controlPointPreviousY=c(r.controlPointPreviousY,s.top,s.bottom)),e0&&qe(u[e-1]._model,s)&&(r.controlPointPreviousX=c(r.controlPointPreviousX,s.left,s.right),r.controlPointPreviousY=c(r.controlPointPreviousY,s.top,s.bottom)),e div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&pt.default||pt,vt=["animationstart","webkitAnimationStart"],bt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"} -function gt(e,t){var r=H.getStyle(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/) +return e[r]+=n,n}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(f),dt(s.leftAndTop,f,l),f.x+=f.w,f.y+=f.h,dt(s.rightAndBottom,f,l),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h},q.each(s.chartArea,(function(t){var r=t.box +at(r,e.chartArea),r.update(f.w,f.h)}))}}},vt=(pt=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&pt.default||pt,yt=["animationstart","webkitAnimationStart"],bt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"} +function gt(e,t){var r=q.getStyle(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/) return n?Number(n[1]):void 0}var wt=!!function(){var e=!1 try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}) window.addEventListener("e",null,t)}catch(r){}return e}()&&{passive:!0} -function _t(e,t,r){e.addEventListener(t,r,wt)}function xt(e,t,r){e.removeEventListener(t,r,wt)}function kt(e,t,r,n,i){return{type:e,chart:t,native:i||null,x:void 0!==r?r:null,y:void 0!==n?n:null}}function Ot(e){var t=document.createElement("div") +function _t(e,t,r){e.addEventListener(t,r,wt)}function kt(e,t,r){e.removeEventListener(t,r,wt)}function xt(e,t,r,n,i){return{type:e,chart:t,native:i||null,x:void 0!==r?r:null,y:void 0!==n?n:null}}function Ot(e){var t=document.createElement("div") return t.className=e||"",t}function Et(e,t,r){var n,i,o,a,s=e.$chartjs||(e.$chartjs={}),u=s.resizer=function(e){var t=Ot("chartjs-size-monitor"),r=Ot("chartjs-size-monitor-expand"),n=Ot("chartjs-size-monitor-shrink") r.appendChild(Ot()),n.appendChild(Ot()),t.appendChild(r),t.appendChild(n),t._reset=function(){r.scrollLeft=1e6,r.scrollTop=1e6,n.scrollLeft=1e6,n.scrollTop=1e6} var i=function(){t._reset(),e()} return _t(r,"scroll",i.bind(r,"expand")),_t(n,"scroll",i.bind(n,"shrink")),t}((n=function(){if(s.resizer){var n=r.options.maintainAspectRatio&&e.parentNode,i=n?n.clientWidth:0 -t(kt("resize",r)),n&&n.clientWidth0){var o=e[0] -o.label?r=o.label:o.xLabel?r=o.xLabel:i>0&&o.index0&&o.index-1?e.split("\n"):e}function Lt(e){var t=L.global -return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Rt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Rt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Rt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Rt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Rt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Rt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Rt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Rt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Rt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Bt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ft(e){return Nt([],Dt(e))}var Ut=$.extend({initialize:function(){this._model=Lt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,r=t.callbacks,n=r.beforeTitle.apply(e,arguments),i=r.title.apply(e,arguments),o=r.afterTitle.apply(e,arguments),a=[] +function Nt(e,t){return t&&(q.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Dt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Bt(e){var t=B.global +return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Tt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Tt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Tt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Tt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Tt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Tt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Tt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Tt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Tt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Lt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ft(e){return Nt([],Dt(e))}var Ut=J.extend({initialize:function(){this._model=Bt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,r=t.callbacks,n=r.beforeTitle.apply(e,arguments),i=r.title.apply(e,arguments),o=r.afterTitle.apply(e,arguments),a=[] return a=Nt(a,Dt(n)),a=Nt(a,Dt(i)),a=Nt(a,Dt(o))},getBeforeBody:function(){return Ft(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var r=this,n=r._options.callbacks,i=[] -return H.each(e,(function(e){var o={before:[],lines:[],after:[]} +return q.each(e,(function(e){var o={before:[],lines:[],after:[]} Nt(o.before,Dt(n.beforeLabel.call(r,e,t))),Nt(o.lines,n.label.call(r,e,t)),Nt(o.after,Dt(n.afterLabel.call(r,e,t))),i.push(o)})),i},getAfterBody:function(){return Ft(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,r=t.beforeFooter.apply(e,arguments),n=t.footer.apply(e,arguments),i=t.afterFooter.apply(e,arguments),o=[] -return o=Nt(o,Dt(r)),o=Nt(o,Dt(n)),o=Nt(o,Dt(i))},update:function(e){var t,r,n,i,o,a,s,u,c,l,f=this,h=f._options,d=f._model,p=f._model=Lt(h),m=f._active,y=f._data,v={xAlign:d.xAlign,yAlign:d.yAlign},b={x:d.x,y:d.y},g={width:d.width,height:d.height},w={x:d.caretX,y:d.caretY} +return o=Nt(o,Dt(r)),o=Nt(o,Dt(n)),o=Nt(o,Dt(i))},update:function(e){var t,r,n,i,o,a,s,u,c,l,f=this,h=f._options,d=f._model,p=f._model=Bt(h),m=f._active,v=f._data,y={xAlign:d.xAlign,yAlign:d.yAlign},b={x:d.x,y:d.y},g={width:d.width,height:d.height},w={x:d.caretX,y:d.caretY} if(m.length){p.opacity=1 -var _=[],x=[] +var _=[],k=[] w=It[h.position].call(f,m,f._eventPosition) -var k=[] -for(t=0,r=m.length;tn.width&&(i=n.width-t.width),i<0&&(i=0)),"top"===l?o+=f:o-="bottom"===l?t.height+f:t.height/2,"center"===l?"left"===c?i+=f:"right"===c&&(i-=f):"left"===c?i-=h:"right"===c&&(i+=h),{x:i,y:o}}(p,g,v=function(e,t){var r,n,i,o,a,s=e._model,u=e._chart,c=e._chart.chartArea,l="center",f="center" +return r.font=q.fontString(c,t._titleFontStyle,t._titleFontFamily),q.each(t.title,d),r.font=q.fontString(l,t._bodyFontStyle,t._bodyFontFamily),q.each(t.beforeBody.concat(t.afterBody),d),h=t.displayColors?l+2:0,q.each(o,(function(e){q.each(e.before,d),q.each(e.lines,d),q.each(e.after,d)})),h=0,r.font=q.fontString(f,t._footerFontStyle,t._footerFontFamily),q.each(t.footer,d),{width:i+=2*t.xPadding,height:n}}(this,p),b=function(e,t,r,n){var i=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,u=e.cornerRadius,c=r.xAlign,l=r.yAlign,f=a+s,h=u+s +return"right"===c?i-=t.width:"center"===c&&((i-=t.width/2)+t.width>n.width&&(i=n.width-t.width),i<0&&(i=0)),"top"===l?o+=f:o-="bottom"===l?t.height+f:t.height/2,"center"===l?"left"===c?i+=f:"right"===c&&(i-=f):"left"===c?i-=h:"right"===c&&(i+=h),{x:i,y:o}}(p,g,y=function(e,t){var r,n,i,o,a,s=e._model,u=e._chart,c=e._chart.chartArea,l="center",f="center" s.yu.height-t.height&&(f="bottom") var h=(c.left+c.right)/2,d=(c.top+c.bottom)/2 "center"===f?(r=function(e){return e<=h},n=function(e){return e>h}):(r=function(e){return e<=t.width/2},n=function(e){return e>=u.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>u.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=d?"top":"bottom"},r(s.x)?(l="left",i(s.x)&&(l="center",f=a(s.y))):n(s.x)&&(l="right",o(s.x)&&(l="center",f=a(s.y))) var p=e._options return{xAlign:p.xAlign?p.xAlign:l,yAlign:p.yAlign?p.yAlign:f}}(this,g),f._chart)}else p.opacity=0 -return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=b.x,p.y=b.y,p.width=g.width,p.height=g.height,p.caretX=w.x,p.caretY=w.y,f._model=p,e&&h.custom&&h.custom.call(f,p),f},drawCaret:function(e,t){var r=this._chart.ctx,n=this._view,i=this.getCaretPosition(e,t,n) -r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,r){var n,i,o,a,s,u,c=r.caretSize,l=r.cornerRadius,f=r.xAlign,h=r.yAlign,d=e.x,p=e.y,m=t.width,y=t.height -if("center"===h)s=p+y/2,"left"===f?(i=(n=d)-c,o=n,a=s+c,u=s-c):(i=(n=d+m)+c,o=n,a=s-c,u=s+c) +return p.xAlign=y.xAlign,p.yAlign=y.yAlign,p.x=b.x,p.y=b.y,p.width=g.width,p.height=g.height,p.caretX=w.x,p.caretY=w.y,f._model=p,e&&h.custom&&h.custom.call(f,p),f},drawCaret:function(e,t){var r=this._chart.ctx,n=this._view,i=this.getCaretPosition(e,t,n) +r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,r){var n,i,o,a,s,u,c=r.caretSize,l=r.cornerRadius,f=r.xAlign,h=r.yAlign,d=e.x,p=e.y,m=t.width,v=t.height +if("center"===h)s=p+v/2,"left"===f?(i=(n=d)-c,o=n,a=s+c,u=s-c):(i=(n=d+m)+c,o=n,a=s-c,u=s+c) else if("left"===f?(n=(i=d+l+c)-c,o=i+c):"right"===f?(n=(i=d+m-l-c)-c,o=i+c):(n=(i=r.caretX)-c,o=i+c),"top"===h)s=(a=p)-c,u=a -else{s=(a=p+y)+c,u=a -var v=o -o=n,n=v}return{x1:n,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(e,t,r){var n,i,o,a=t.title,s=a.length +else{s=(a=p+v)+c,u=a +var y=o +o=n,n=y}return{x1:n,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(e,t,r){var n,i,o,a=t.title,s=a.length if(s){var u=Ct(t.rtl,t.x,t.width) -for(e.x=Bt(t,t._titleAlign),r.textAlign=u.textAlign(t._titleAlign),r.textBaseline="middle",n=t.titleFontSize,i=t.titleSpacing,r.fillStyle=t.titleFontColor,r.font=H.fontString(n,t._titleFontStyle,t._titleFontFamily),o=0;o0&&r.stroke()},draw:function(){var e=this._chart.ctx,t=this._view if(0!==t.opacity){var r={width:t.width,height:t.height},n={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length -this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(n,t,e,r),n.y+=t.yPadding,H.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),H.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,r=this,n=r._options -return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:(r._active=r._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&r._active.reverse()),(t=!H.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(n.enabled||n.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),zt=It,Ht=Ut -Ht.positioners=zt -var qt=H.valueOrDefault -function Vt(){return H.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){if("xAxes"===e||"yAxes"===e){var i,o,a,s=r[e].length -for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?H.merge(t[e][i],[Tt.getScaleDefaults(o),a]):H.merge(t[e][i],a)}else H._merger(e,t,r,n)}})}function Wt(){return H.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){var i=t[e]||Object.create(null),o=r[e] -"scales"===e?t[e]=Vt(i,o):"scale"===e?t[e]=H.merge(i,[Tt.getScaleDefaults(o.type),o]):H._merger(e,t,r,n)}})}function Yt(e){var t=e.options -H.each(e.scales,(function(t){mt.removeBox(e,t)})),t=Wt(L.global,L[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Gt(e,t,r){var n,i=function(e){return e.id===n} -do{n=t+r++}while(H.findIndex(e,i)>=0) -return n}function Kt(e){return"top"===e||"bottom"===e}function $t(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}L._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0}) -var Jt=function(e,t){return this.construct(e,t),this} -H.extend(Jt.prototype,{construct:function(e,t){var r=this +this._options.enabled&&o&&(e.save(),e.globalAlpha=i,this.drawBackground(n,t,e,r),n.y+=t.yPadding,q.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),q.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,r=this,n=r._options +return r._lastActive=r._lastActive||[],"mouseout"===e.type?r._active=[]:(r._active=r._chart.getElementsAtEventForMode(e,n.mode,n),n.reverse&&r._active.reverse()),(t=!q.arrayEquals(r._active,r._lastActive))&&(r._lastActive=r._active,(n.enabled||n.custom)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0),r.pivot())),t}}),zt=It,qt=Ut +qt.positioners=zt +var Ht=q.valueOrDefault +function Vt(){return q.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){if("xAxes"===e||"yAxes"===e){var i,o,a,s=r[e].length +for(t[e]||(t[e]=[]),i=0;i=t[e].length&&t[e].push({}),!t[e][i].type||a.type&&a.type!==t[e][i].type?q.merge(t[e][i],[Rt.getScaleDefaults(o),a]):q.merge(t[e][i],a)}else q._merger(e,t,r,n)}})}function Wt(){return q.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,r,n){var i=t[e]||Object.create(null),o=r[e] +"scales"===e?t[e]=Vt(i,o):"scale"===e?t[e]=q.merge(i,[Rt.getScaleDefaults(o.type),o]):q._merger(e,t,r,n)}})}function Gt(e){var t=e.options +q.each(e.scales,(function(t){mt.removeBox(e,t)})),t=Wt(B.global,B[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Yt(e,t,r){var n,i=function(e){return e.id===n} +do{n=t+r++}while(q.findIndex(e,i)>=0) +return n}function Kt(e){return"top"===e||"bottom"===e}function Jt(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}B._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0}) +var $t=function(e,t){return this.construct(e,t),this} +q.extend($t.prototype,{construct:function(e,t){var r=this t=function(e){var t=(e=e||Object.create(null)).data=e.data||{} -return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Wt(L.global,L[e.type],e.options||{}),e}(t) -var n=jt.acquireContext(e,t),i=n&&n.canvas,o=i&&i.height,a=i&&i.width -r.id=H.uid(),r.ctx=n,r.canvas=i,r.config=t,r.width=a,r.height=o,r.aspectRatio=o?a/o:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,Jt.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),n&&i?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this -return At.notify(e,"beforeInit"),H.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),At.notify(e,"afterInit"),e},clear:function(){return H.canvas.clear(this),this},stop:function(){return Q.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,n=t.canvas,i=r.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(H.getMaximumWidth(n))),a=Math.max(0,Math.floor(i?o/i:H.getMaximumHeight(n))) -if((t.width!==o||t.height!==a)&&(n.width=t.width=o,n.height=t.height=a,n.style.width=o+"px",n.style.height=a+"px",H.retinaScale(t,r.devicePixelRatio),!e)){var s={width:o,height:a} -At.notify(t,"resize",[s]),r.onResize&&r.onResize(t,s),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale -H.each(t.xAxes,(function(e,r){e.id||(e.id=Gt(t.xAxes,"x-axis-",r))})),H.each(t.yAxes,(function(e,r){e.id||(e.id=Gt(t.yAxes,"y-axis-",r))})),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},n=[],i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}) -t.scales&&(n=n.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&n.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),H.each(n,(function(t){var n=t.options,o=n.id,a=qt(n.type,t.dtype) +return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Wt(B.global,B[e.type],e.options||{}),e}(t) +var n=At.acquireContext(e,t),i=n&&n.canvas,o=i&&i.height,a=i&&i.width +r.id=q.uid(),r.ctx=n,r.canvas=i,r.config=t,r.width=a,r.height=o,r.aspectRatio=o?a/o:null,r.options=t.options,r._bufferedRender=!1,r._layers=[],r.chart=r,r.controller=r,$t.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),n&&i?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this +return jt.notify(e,"beforeInit"),q.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),jt.notify(e,"afterInit"),e},clear:function(){return q.canvas.clear(this),this},stop:function(){return Q.cancelAnimation(this),this},resize:function(e){var t=this,r=t.options,n=t.canvas,i=r.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(q.getMaximumWidth(n))),a=Math.max(0,Math.floor(i?o/i:q.getMaximumHeight(n))) +if((t.width!==o||t.height!==a)&&(n.width=t.width=o,n.height=t.height=a,n.style.width=o+"px",n.style.height=a+"px",q.retinaScale(t,r.devicePixelRatio),!e)){var s={width:o,height:a} +jt.notify(t,"resize",[s]),r.onResize&&r.onResize(t,s),t.stop(),t.update({duration:r.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},r=e.scale +q.each(t.xAxes,(function(e,r){e.id||(e.id=Yt(t.xAxes,"x-axis-",r))})),q.each(t.yAxes,(function(e,r){e.id||(e.id=Yt(t.yAxes,"y-axis-",r))})),r&&(r.id=r.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,r=e.scales||{},n=[],i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}) +t.scales&&(n=n.concat((t.scales.xAxes||[]).map((function(e){return{options:e,dtype:"category",dposition:"bottom"}})),(t.scales.yAxes||[]).map((function(e){return{options:e,dtype:"linear",dposition:"left"}})))),t.scale&&n.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),q.each(n,(function(t){var n=t.options,o=n.id,a=Ht(n.type,t.dtype) Kt(n.position)!==Kt(t.dposition)&&(n.position=t.dposition),i[o]=!0 var s=null if(o in r&&r[o].type===a)(s=r[o]).options=n,s.ctx=e.ctx,s.chart=e -else{var u=Tt.getScaleConstructor(a) +else{var u=Rt.getScaleConstructor(a) if(!u)return -s=new u({id:o,type:a,options:n,ctx:e.ctx,chart:e}),r[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),H.each(i,(function(e,t){e||delete r[t]})),e.scales=r,Tt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,r=this,n=[],i=r.data.datasets +s=new u({id:o,type:a,options:n,ctx:e.ctx,chart:e}),r[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),q.each(i,(function(e,t){e||delete r[t]})),e.scales=r,Rt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,r=this,n=[],i=r.data.datasets for(e=0,t=i.length;e=0;--r)this.drawDataset(t[r],e) -At.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r={meta:e,index:e.index,easingValue:t} -!1!==At.notify(this,"beforeDatasetDraw",[r])&&(e.controller.draw(t),At.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,r={tooltip:t,easingValue:e} -!1!==At.notify(this,"beforeTooltipDraw",[r])&&(t.draw(),At.notify(this,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return ot.modes.single(this,e)},getElementsAtEvent:function(e){return ot.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return ot.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var n=ot.modes[t] +return n.sort(Jt("order","index")),n},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,r +if(!1!==jt.notify(this,"beforeDatasetsDraw",[e])){for(r=(t=this._getSortedVisibleDatasetMetas()).length-1;r>=0;--r)this.drawDataset(t[r],e) +jt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var r={meta:e,index:e.index,easingValue:t} +!1!==jt.notify(this,"beforeDatasetDraw",[r])&&(e.controller.draw(t),jt.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,r={tooltip:t,easingValue:e} +!1!==jt.notify(this,"beforeTooltipDraw",[r])&&(t.draw(),jt.notify(this,"afterTooltipDraw",[r]))},getElementAtEvent:function(e){return ot.modes.single(this,e)},getElementsAtEvent:function(e){return ot.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return ot.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,r){var n=ot.modes[t] return"function"==typeof n?n(this,e,r):[]},getDatasetAtEvent:function(e){return ot.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e] t._meta||(t._meta={}) var r=t._meta[this.id] @@ -5162,58 +5162,58 @@ return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e) return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,r=this.data.datasets[e],n=r._meta&&r._meta[t] n&&(n.controller.destroy(),delete r._meta[t])},destroy:function(){var e,t,r=this,n=r.canvas for(r.stop(),e=0,t=r.data.datasets.length;e3?r[2]-r[1]:r[1]-r[0] +return r.lastActive=r.lastActive||[],"mouseout"===e.type?r.active=[]:r.active=r.getElementsAtEventForMode(e,i.mode,i),q.callback(n.onHover||n.hover.onHover,[e.native,r.active],r),"mouseup"!==e.type&&"click"!==e.type||n.onClick&&n.onClick.call(r,e.native,r.active),r.lastActive.length&&r.updateHoverStyle(r.lastActive,i.mode,!1),r.active.length&&i.mode&&r.updateHoverStyle(r.active,i.mode,!0),t=!q.arrayEquals(r.active,r.lastActive),r.lastActive=r.active,t}}),$t.instances={} +var Zt=$t +$t.Controller=$t,$t.types={},q.configMerge=Wt,q.scaleMerge=Vt +function Qt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Xt(e){this.options=e||{}}q.extend(Xt.prototype,{formats:Qt,parse:Qt,format:Qt,add:Qt,diff:Qt,startOf:Qt,endOf:Qt,_create:function(e){return e}}),Xt.override=function(e){q.extend(Xt.prototype,e)} +var er={_date:Xt},tr={formatters:{values:function(e){return q.isArray(e)?e:""+e},linear:function(e,t,r){var n=r.length>3?r[2]-r[1]:r[1]-r[0] Math.abs(n)>1&&e!==Math.floor(e)&&(n=e-Math.floor(e)) -var i=H.log10(Math.abs(n)),o="" -if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var a=H.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(i) +var i=q.log10(Math.abs(n)),o="" +if(0!==e)if(Math.max(Math.abs(r[0]),Math.abs(r[r.length-1]))<1e-4){var a=q.log10(Math.abs(e)),s=Math.floor(a)-Math.floor(i) s=Math.max(Math.min(s,20),0),o=e.toExponential(s)}else{var u=-1*Math.floor(i) u=Math.max(Math.min(u,20),0),o=e.toFixed(u)}else o="0" -return o},logarithmic:function(e,t,r){var n=e/Math.pow(10,Math.floor(H.log10(e))) -return 0===e?"0":1===n||2===n||5===n||0===t||t===r.length-1?e.toExponential():""}}},rr=H.isArray,nr=H.isNullOrUndef,ir=H.valueOrDefault,or=H.valueAtIndexOrDefault +return o},logarithmic:function(e,t,r){var n=e/Math.pow(10,Math.floor(q.log10(e))) +return 0===e?"0":1===n||2===n||5===n||0===t||t===r.length-1?e.toExponential():""}}},rr=q.isArray,nr=q.isNullOrUndef,ir=q.valueOrDefault,or=q.valueAtIndexOrDefault function ar(e,t,r){var n,i=e.getTicks().length,o=Math.min(t,i-1),a=e.getPixelForTick(o),s=e._startPixel,u=e._endPixel -if(!(r&&(n=1===i?Math.max(a-s,u-a):0===t?(e.getPixelForTick(1)-a)/2:(a-e.getPixelForTick(o-1))/2,(a+=ou+1e-6)))return a}function sr(e,t,r,n){var i,o,a,s,u,c,l,f,h,d,p,m,y,v=r.length,b=[],g=[],w=[],_=0,x=0 -for(i=0;iu+1e-6)))return a}function sr(e,t,r,n){var i,o,a,s,u,c,l,f,h,d,p,m,v,y=r.length,b=[],g=[],w=[],_=0,k=0 +for(i=0;it){for(r=0;r=h||l<=1||!s.isHorizontal()?s.labelRotation=f:(t=(e=s._getLabelSizes()).widest.width,r=e.highest.height-e.highest.offset,n=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=u.offset?s.maxWidth/l:n/(l-1))&&(i=n/(l-(u.offset?.5:1)),o=s.maxHeight-ur(u.gridLines)-c.padding-cr(u.scaleLabel),a=Math.sqrt(t*t+r*r),d=H.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(r/a))),d=Math.max(f,Math.min(h,d))),s.labelRotation=d)},afterCalculateTickRotation:function(){H.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){H.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,n=e.options,i=n.ticks,o=n.scaleLabel,a=n.gridLines,s=e._isVisible(),u="bottom"===n.position,c=e.isHorizontal() -if(c?t.width=e.maxWidth:s&&(t.width=ur(a)+cr(o)),c?s&&(t.height=ur(a)+cr(o)):t.height=e.maxHeight,i.display&&s){var l=fr(i),f=e._getLabelSizes(),h=f.first,d=f.last,p=f.widest,m=f.highest,y=.4*l.minor.lineHeight,v=i.padding -if(c){var b=0!==e.labelRotation,g=H.toRadians(e.labelRotation),w=Math.cos(g),_=Math.sin(g),x=_*p.width+w*(m.height-(b?m.offset:0))+(b?0:y) -t.height=Math.min(e.maxHeight,t.height+x+v) -var k,O,E=e.getPixelForTick(0)-e.left,S=e.right-e.getPixelForTick(e.getTicks().length-1) -b?(k=u?w*h.width+_*h.offset:_*(h.height-h.offset),O=u?_*(d.height-d.offset):w*d.width+_*d.offset):(k=h.width/2,O=d.width/2),e.paddingLeft=Math.max((k-E)*e.width/(e.width-E),0)+3,e.paddingRight=Math.max((O-S)*e.width/(e.width-S),0)+3}else{var P=i.mirror?0:p.width+v+y +r.isHorizontal()?(e=r.left,t=r.right):(e=r.top,t=r.bottom,n=!n),r._startPixel=e,r._endPixel=t,r._reversePixels=n,r._length=t-e},afterUpdate:function(){q.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){q.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this +e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){q.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){q.callback(this.options.beforeDataLimits,[this])},determineDataLimits:q.noop,afterDataLimits:function(){q.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){q.callback(this.options.beforeBuildTicks,[this])},buildTicks:q.noop,afterBuildTicks:function(e){var t=this +return rr(e)&&e.length?q.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=q.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){q.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks +this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){q.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){q.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,r,n,i,o,a,s=this,u=s.options,c=u.ticks,l=s.getTicks().length,f=c.minRotation||0,h=c.maxRotation,d=f +!s._isVisible()||!c.display||f>=h||l<=1||!s.isHorizontal()?s.labelRotation=f:(t=(e=s._getLabelSizes()).widest.width,r=e.highest.height-e.highest.offset,n=Math.min(s.maxWidth,s.chart.width-t),t+6>(i=u.offset?s.maxWidth/l:n/(l-1))&&(i=n/(l-(u.offset?.5:1)),o=s.maxHeight-ur(u.gridLines)-c.padding-cr(u.scaleLabel),a=Math.sqrt(t*t+r*r),d=q.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(r/a))),d=Math.max(f,Math.min(h,d))),s.labelRotation=d)},afterCalculateTickRotation:function(){q.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){q.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},r=e.chart,n=e.options,i=n.ticks,o=n.scaleLabel,a=n.gridLines,s=e._isVisible(),u="bottom"===n.position,c=e.isHorizontal() +if(c?t.width=e.maxWidth:s&&(t.width=ur(a)+cr(o)),c?s&&(t.height=ur(a)+cr(o)):t.height=e.maxHeight,i.display&&s){var l=fr(i),f=e._getLabelSizes(),h=f.first,d=f.last,p=f.widest,m=f.highest,v=.4*l.minor.lineHeight,y=i.padding +if(c){var b=0!==e.labelRotation,g=q.toRadians(e.labelRotation),w=Math.cos(g),_=Math.sin(g),k=_*p.width+w*(m.height-(b?m.offset:0))+(b?0:v) +t.height=Math.min(e.maxHeight,t.height+k+y) +var x,O,E=e.getPixelForTick(0)-e.left,S=e.right-e.getPixelForTick(e.getTicks().length-1) +b?(x=u?w*h.width+_*h.offset:_*(h.height-h.offset),O=u?_*(d.height-d.offset):w*d.width+_*d.offset):(x=h.width/2,O=d.width/2),e.paddingLeft=Math.max((x-E)*e.width/(e.width-E),0)+3,e.paddingRight=Math.max((O-S)*e.width/(e.width-S),0)+3}else{var P=i.mirror?0:p.width+y+v t.width=Math.min(e.maxWidth,t.width+P),e.paddingTop=h.height/2,e.paddingBottom=d.height/2}}e.handleMargins(),c?(e.width=e._length=r.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=r.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this -e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){H.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position +e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){q.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(nr(e))return NaN if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y) @@ -5222,7 +5222,7 @@ for(i.ticks=e.map((function(e){return e.value})),i.beforeTickToLabelConversion() return t},_getLabelSizes:function(){var e=this,t=e._labelSizes return t||(e._labelSizes=t=sr(e.ctx,fr(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,r,n,i return rr(e)?(t=+this.getRightValue(e[0]),r=+this.getRightValue(e[1]),n=Math.min(t,r),i=Math.max(t,r)):(t=void 0,r=e=+this.getRightValue(e),n=e,i=e),{min:n,max:i,start:t,end:r}},_getScaleLabel:function(e){var t=this._parseValue(e) -return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:H.noop,getPixelForValue:H.noop,getValueForPixel:H.noop,getPixelForTick:function(e){var t=this.options.offset,r=this._ticks.length,n=1/Math.max(r-(t?0:1),1) +return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:q.noop,getPixelForValue:q.noop,getValueForPixel:q.noop,getPixelForTick:function(e){var t=this.options.offset,r=this._ticks.length,n=1/Math.max(r-(t?0:1),1) return e<0||e>r-1?null:this.getPixelForDecimal(e*n+(t?n/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,r,n,i,o=this.options.ticks,a=this._length,s=o.maxTicksLimit||a/this._tickSize()+1,u=o.major.enabled?function(e){var t,r,n=[] @@ -5235,177 +5235,177 @@ if(n<2)return!1 for(r=e[0],t=1;tc)return o +for(a=0,s=(i=q.math._factorize(u)).length-1;ac)return o return Math.max(c,1)}(u,e,0,s),c>0){for(t=0,r=c-1;t1?(f-l)/(c-1):null,dr(e,n,H.isNullOrUndef(i)?0:l-i,l),dr(e,n,f,H.isNullOrUndef(i)?e.length:f+i),hr(e)}return dr(e,n),hr(e)},_tickSize:function(){var e=this.options.ticks,t=H.toRadians(this.labelRotation),r=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0 +return i=c>1?(f-l)/(c-1):null,dr(e,n,q.isNullOrUndef(i)?0:l-i,l),dr(e,n,f,q.isNullOrUndef(i)?e.length:f+i),hr(e)}return dr(e,n),hr(e)},_tickSize:function(){var e=this.options.ticks,t=q.toRadians(this.labelRotation),r=Math.abs(Math.cos(t)),n=Math.abs(Math.sin(t)),i=this._getLabelSizes(),o=e.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0 return this.isHorizontal()?s*r>a*n?a/r:s/n:s*n=0&&(a=e),void 0!==o&&(e=r.indexOf(o))>=0&&(s=e),t.minIndex=a,t.maxIndex=s,t.min=r[a],t.max=r[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,r=this.maxIndex this.ticks=0===t&&r===e.length-1?e:e.slice(t,r+1)},getLabelForIndex:function(e,t){var r=this.chart return r.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(r.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,r=e.ticks mr.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),r&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(r.length-(t?0:1),1))},getPixelForValue:function(e,t,r){var n,i,o,a=this -return yr(t)||yr(r)||(e=a.chart.data.datasets[r].data[t]),yr(e)||(n=a.isHorizontal()?e.x:e.y),(void 0!==n||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=H.valueOrDefault(n,e),t=-1!==(o=i.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks +return vr(t)||vr(r)||(e=a.chart.data.datasets[r].data[t]),vr(e)||(n=a.isHorizontal()?e.x:e.y),(void 0!==n||void 0!==e&&isNaN(t))&&(i=a._getLabels(),e=q.valueOrDefault(n,e),t=-1!==(o=i.indexOf(e))?o:t,isNaN(t)&&(t=e)),a.getPixelForDecimal((t-a._startValue)/a._valueRange)},getPixelForTick:function(e){var t=this.ticks return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange) return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),br={position:"bottom"} -vr._defaults=br -var gr=H.noop,wr=H.isNullOrUndef +yr._defaults=br +var gr=q.noop,wr=q.isNullOrUndef var _r=mr.extend({getRightValue:function(e){return"string"==typeof e?+e:mr.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks -if(t.beginAtZero){var r=H.sign(e.min),n=H.sign(e.max) +if(t.beginAtZero){var r=q.sign(e.min),n=q.sign(e.max) r<0&&n<0?e.max=0:r>0&&n>0&&(e.min=0)}var i=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),i!==o&&e.min>=e.max&&(i?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,r=t.stepSize,n=t.maxTicksLimit -return r?e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1:(e=this._computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:gr,buildTicks:function(){var e=this,t=e.options.ticks,r=e.getTickLimit(),n={maxTicks:r=Math.max(2,r),min:t.min,max:t.max,precision:t.precision,stepSize:H.valueOrDefault(t.fixedStepSize,t.stepSize)},i=e.ticks=function(e,t){var r,n,i,o,a=[],s=e.stepSize,u=s||1,c=e.maxTicks-1,l=e.min,f=e.max,h=e.precision,d=t.min,p=t.max,m=H.niceNum((p-d)/c/u)*u -if(m<1e-14&&wr(l)&&wr(f))return[d,p];(o=Math.ceil(p/m)-Math.floor(d/m))>c&&(m=H.niceNum(o*m/c/u)*u),s||wr(h)?r=Math.pow(10,H._decimalPlaces(m)):(r=Math.pow(10,h),m=Math.ceil(m*r)/r),n=Math.floor(d/m)*m,i=Math.ceil(p/m)*m,s&&(!wr(l)&&H.almostWhole(l/m,m/1e3)&&(n=l),!wr(f)&&H.almostWhole(f/m,m/1e3)&&(i=f)),o=(i-n)/m,o=H.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),n=Math.round(n*r)/r,i=Math.round(i*r)/r,a.push(wr(l)?n:l) -for(var y=1;yc&&(m=q.niceNum(o*m/c/u)*u),s||wr(h)?r=Math.pow(10,q._decimalPlaces(m)):(r=Math.pow(10,h),m=Math.ceil(m*r)/r),n=Math.floor(d/m)*m,i=Math.ceil(p/m)*m,s&&(!wr(l)&&q.almostWhole(l/m,m/1e3)&&(n=l),!wr(f)&&q.almostWhole(f/m,m/1e3)&&(i=f)),o=(i-n)/m,o=q.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),n=Math.round(n*r)/r,i=Math.round(i*r)/r,a.push(wr(l)?n:l) +for(var v=1;vt.length-1?null:this.getPixelForValue(t[e])}}),Sr=xr +for(e=0;et.length-1?null:this.getPixelForValue(t[e])}}),Sr=kr Er._defaults=Sr -var Pr=H.valueOrDefault,Mr=H.math.log10 -var jr={position:"left",ticks:{callback:tr.formatters.logarithmic}} -function Ar(e,t){return H.isFinite(e)&&e>=0?e:t}var Tr=mr.extend({determineDataLimits:function(){var e,t,r,n,i,o,a=this,s=a.options,u=a.chart,c=u.data.datasets,l=a.isHorizontal() +var Pr=q.valueOrDefault,Mr=q.math.log10 +var Ar={position:"left",ticks:{callback:tr.formatters.logarithmic}} +function jr(e,t){return q.isFinite(e)&&e>=0?e:t}var Rr=mr.extend({determineDataLimits:function(){var e,t,r,n,i,o,a=this,s=a.options,u=a.chart,c=u.data.datasets,l=a.isHorizontal() function f(e){return l?e.xAxisID===a.id:e.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY var h=s.stacked if(void 0===h)for(e=0;e0){var t=H.min(e),r=H.max(e) +r=a._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||r.min<0||r.max<0||(m[i]=m[i]||0,m[i]+=r.max)}}q.each(d,(function(e){if(e.length>0){var t=q.min(e),r=q.max(e) a.min=Math.min(a.min,t),a.max=Math.max(a.max,r)}}))}else for(e=0;e0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Mr(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),n={min:Ar(t.min),max:Ar(t.max)},i=e.ticks=function(e,t){var r,n,i=[],o=Pr(e.min,Math.pow(10,Math.floor(Mr(t.min)))),a=Math.floor(Mr(t.max)),s=Math.ceil(t.max/Math.pow(10,a)) +a.min=q.isFinite(a.min)?a.min:null,a.max=q.isFinite(a.max)?a.max:null,a.minNotZero=q.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks +e.min=jr(t.min,e.min),e.max=jr(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(Mr(e.min))-1),e.max=Math.pow(10,Math.floor(Mr(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(Mr(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(Mr(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(Mr(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,r=!e.isHorizontal(),n={min:jr(t.min),max:jr(t.max)},i=e.ticks=function(e,t){var r,n,i=[],o=Pr(e.min,Math.pow(10,Math.floor(Mr(t.min)))),a=Math.floor(Mr(t.max)),s=Math.ceil(t.max/Math.pow(10,a)) 0===o?(r=Math.floor(Mr(t.minNotZero)),n=Math.floor(t.minNotZero/Math.pow(10,r)),i.push(o),o=n*Math.pow(10,r)):(r=Math.floor(Mr(o)),n=Math.floor(o/Math.pow(10,r))) var u=r<0?Math.pow(10,Math.abs(r)):1 do{i.push(o),10===++n&&(n=1,u=++r>=0?1:u),o=Math.round(n*Math.pow(10,r)*u)/u}while(rt.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(Mr(e)) return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,r=0 -mr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=Pr(e.options.ticks.fontSize,L.global.defaultFontSize)/e._length),e._startValue=Mr(t),e._valueOffset=r,e._valueRange=(Mr(e.max)-Mr(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0 +mr.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),r=Pr(e.options.ticks.fontSize,B.global.defaultFontSize)/e._length),e._startValue=Mr(t),e._valueOffset=r,e._valueRange=(Mr(e.max)-Mr(t))/(1-r)},getPixelForValue:function(e){var t=this,r=0 return(e=+t.getRightValue(e))>t.min&&e>0&&(r=(Mr(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(r)},getValueForPixel:function(e){var t=this,r=t.getDecimalForPixel(e) -return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}}),Rr=jr -Tr._defaults=Rr -var Cr=H.valueOrDefault,Ir=H.valueAtIndexOrDefault,Nr=H.options.resolve,Dr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:tr.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}} -function Lr(e){var t=e.ticks -return t.display&&e.display?Cr(t.fontSize,L.global.defaultFontSize)+2*t.backdropPaddingY:0}function Br(e,t,r,n,i){return e===n||e===i?{start:t-r/2,end:t+r/2}:ei?{start:t-r,end:t}:{start:t,end:t+r}}function Fr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Ur(e,t,r,n){var i,o,a=r.y+n/2 -if(H.isArray(t))for(i=0,o=t.length;i270||e<90)&&(r.y-=t.h)}function Hr(e){return H.isNumber(e)?e:0}var qr=_r.extend({setDimensions:function(){var e=this -e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Lr(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY -H.each(t.data.datasets,(function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o) -H.each(i.data,(function(t,i){var o=+e.getRightValue(t) -isNaN(o)||a.data[i].hidden||(r=Math.min(o,r),n=Math.max(o,n))}))}})),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=n===Number.NEGATIVE_INFINITY?0:n,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Lr(this.options))},convertTicksToLabels:function(){var e=this -_r.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=H.callback(e.options.pointLabels.callback,arguments,e) +return 0===r&&0===t.min?0:Math.pow(10,t._startValue+(r-t._valueOffset)*t._valueRange)}}),Tr=Ar +Rr._defaults=Tr +var Cr=q.valueOrDefault,Ir=q.valueAtIndexOrDefault,Nr=q.options.resolve,Dr={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:tr.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}} +function Br(e){var t=e.ticks +return t.display&&e.display?Cr(t.fontSize,B.global.defaultFontSize)+2*t.backdropPaddingY:0}function Lr(e,t,r,n,i){return e===n||e===i?{start:t-r/2,end:t+r/2}:ei?{start:t-r,end:t}:{start:t,end:t+r}}function Fr(e){return 0===e||180===e?"center":e<180?"left":"right"}function Ur(e,t,r,n){var i,o,a=r.y+n/2 +if(q.isArray(t))for(i=0,o=t.length;i270||e<90)&&(r.y-=t.h)}function qr(e){return q.isNumber(e)?e:0}var Hr=_r.extend({setDimensions:function(){var e=this +e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Br(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY +q.each(t.data.datasets,(function(i,o){if(t.isDatasetVisible(o)){var a=t.getDatasetMeta(o) +q.each(i.data,(function(t,i){var o=+e.getRightValue(t) +isNaN(o)||a.data[i].hidden||(r=Math.min(o,r),n=Math.max(o,n))}))}})),e.min=r===Number.POSITIVE_INFINITY?0:r,e.max=n===Number.NEGATIVE_INFINITY?0:n,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Br(this.options))},convertTicksToLabels:function(){var e=this +_r.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=q.callback(e.options.pointLabels.callback,arguments,e) return t||0===t?t:""}))},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options -e.display&&e.pointLabels.display?function(e){var t,r,n,i=H.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={} +e.display&&e.pointLabels.display?function(e){var t,r,n,i=q.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={} e.ctx.font=i.string,e._pointLabelSizes=[] var s,u,c,l=e.chart.data.labels.length -for(t=0;to.r&&(o.r=d.end,a.r=f),p.starto.b&&(o.b=p.end,a.b=f)}e.setReductions(e.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,r){var n=this,i=t.l/Math.sin(r.l),o=Math.max(t.r-n.width,0)/Math.sin(r.r),a=-t.t/Math.cos(r.t),s=-Math.max(t.b-(n.height-n.paddingTop),0)/Math.cos(r.b) -i=Hr(i),o=Hr(o),a=Hr(a),s=Hr(s),n.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),n.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,r,n){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=r+i.drawingArea,u=i.height-i.paddingTop-n-i.drawingArea +i=qr(i),o=qr(o),a=qr(a),s=qr(s),n.drawingArea=Math.min(Math.floor(e-(i+o)/2),Math.floor(e-(a+s)/2)),n.setCenterPoint(i,o,a,s)},setCenterPoint:function(e,t,r,n){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=r+i.drawingArea,u=i.height-i.paddingTop-n-i.drawingArea i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(e){var t=this.chart,r=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360 return(r<0?r+360:r)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this -if(H.isNullOrUndef(e))return NaN +if(q.isNullOrUndef(e))return NaN var r=t.drawingArea/(t.max-t.min) return t.options.ticks.reverse?(t.max-e)*r:(e-t.min)*r},getPointPosition:function(e,t){var r=this.getIndexAngle(e)-Math.PI/2 return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,r=this.max return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&r<0?r:t>0&&r>0?t:0)},_drawGrid:function(){var e,t,r,n=this,i=n.ctx,o=n.options,a=o.gridLines,s=o.angleLines,u=Cr(s.lineWidth,a.lineWidth),c=Cr(s.color,a.color) -if(o.pointLabels.display&&function(e){var t=e.ctx,r=e.options,n=r.pointLabels,i=Lr(r),o=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),a=H.options._parseFont(n) +if(o.pointLabels.display&&function(e){var t=e.ctx,r=e.options,n=r.pointLabels,i=Br(r),o=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),a=q.options._parseFont(n) t.save(),t.font=a.string,t.textBaseline="middle" -for(var s=e.chart.data.labels.length-1;s>=0;s--){var u=0===s?i/2:0,c=e.getPointPosition(s,o+u+5),l=Ir(n.fontColor,s,L.global.defaultFontColor) +for(var s=e.chart.data.labels.length-1;s>=0;s--){var u=0===s?i/2:0,c=e.getPointPosition(s,o+u+5),l=Ir(n.fontColor,s,B.global.defaultFontColor) t.fillStyle=l -var f=e.getIndexAngle(s),h=H.toDegrees(f) -t.textAlign=Fr(h),zr(h,e._pointLabelSizes[s],c),Ur(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(n),a.display&&H.each(n.ticks,(function(e,r){0!==r&&(t=n.getDistanceFromCenterForValue(n.ticksAsNumbers[r]),function(e,t,r,n){var i,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,u=Ir(t.color,n-1),c=Ir(t.lineWidth,n-1) +var f=e.getIndexAngle(s),h=q.toDegrees(f) +t.textAlign=Fr(h),zr(h,e._pointLabelSizes[s],c),Ur(t,e.pointLabels[s],c,a.lineHeight)}t.restore()}(n),a.display&&q.each(n.ticks,(function(e,r){0!==r&&(t=n.getDistanceFromCenterForValue(n.ticksAsNumbers[r]),function(e,t,r,n){var i,o=e.ctx,a=t.circular,s=e.chart.data.labels.length,u=Ir(t.color,n-1),c=Ir(t.lineWidth,n-1) if((a||s)&&u&&c){if(o.save(),o.strokeStyle=u,o.lineWidth=c,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),a)o.arc(e.xCenter,e.yCenter,r,0,2*Math.PI) else{i=e.getPointPosition(0,r),o.moveTo(i.x,i.y) for(var l=1;l=0;e--)t=n.getDistanceFromCenterForValue(o.ticks.reverse?n.min:n.max),r=n.getPointPosition(e,t),i.beginPath(),i.moveTo(n.xCenter,n.yCenter),i.lineTo(r.x,r.y),i.stroke() i.restore()}},_drawLabels:function(){var e=this,t=e.ctx,r=e.options.ticks -if(r.display){var n,i,o=e.getIndexAngle(0),a=H.options._parseFont(r),s=Cr(r.fontColor,L.global.defaultFontColor) -t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",H.each(e.ticks,(function(o,u){(0!==u||r.reverse)&&(n=e.getDistanceFromCenterForValue(e.ticksAsNumbers[u]),r.showLabelBackdrop&&(i=t.measureText(o).width,t.fillStyle=r.backdropColor,t.fillRect(-i/2-r.backdropPaddingX,-n-a.size/2-r.backdropPaddingY,i+2*r.backdropPaddingX,a.size+2*r.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-n))})),t.restore()}},_drawTitle:H.noop}),Vr=Dr -qr._defaults=Vr -var Wr=H._deprecated,Yr=H.options.resolve,Gr=H.valueOrDefault,Kr=Number.MIN_SAFE_INTEGER||-9007199254740991,$r=Number.MAX_SAFE_INTEGER||9007199254740991,Jr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Zr=Object.keys(Jr) -function Qr(e,t){return e-t}function Xr(e){return H.valueOrDefault(e.time.min,e.ticks.min)}function en(e){return H.valueOrDefault(e.time.max,e.ticks.max)}function tn(e,t,r,n){var i=function(e,t,r){for(var n,i,o,a=0,s=e.length-1;a>=0&&a<=s;){if(i=e[(n=a+s>>1)-1]||null,o=e[n],!i)return{lo:null,hi:o} +if(r.display){var n,i,o=e.getIndexAngle(0),a=q.options._parseFont(r),s=Cr(r.fontColor,B.global.defaultFontColor) +t.save(),t.font=a.string,t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",q.each(e.ticks,(function(o,u){(0!==u||r.reverse)&&(n=e.getDistanceFromCenterForValue(e.ticksAsNumbers[u]),r.showLabelBackdrop&&(i=t.measureText(o).width,t.fillStyle=r.backdropColor,t.fillRect(-i/2-r.backdropPaddingX,-n-a.size/2-r.backdropPaddingY,i+2*r.backdropPaddingX,a.size+2*r.backdropPaddingY)),t.fillStyle=s,t.fillText(o,0,-n))})),t.restore()}},_drawTitle:q.noop}),Vr=Dr +Hr._defaults=Vr +var Wr=q._deprecated,Gr=q.options.resolve,Yr=q.valueOrDefault,Kr=Number.MIN_SAFE_INTEGER||-9007199254740991,Jr=Number.MAX_SAFE_INTEGER||9007199254740991,$r={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Zr=Object.keys($r) +function Qr(e,t){return e-t}function Xr(e){return q.valueOrDefault(e.time.min,e.ticks.min)}function en(e){return q.valueOrDefault(e.time.max,e.ticks.max)}function tn(e,t,r,n){var i=function(e,t,r){for(var n,i,o,a=0,s=e.length-1;a>=0&&a<=s;){if(i=e[(n=a+s>>1)-1]||null,o=e[n],!i)return{lo:null,hi:o} if(o[t]r))return{lo:i,hi:o} s=n-1}}return{lo:o,hi:null}}(e,t,r),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],u=s?(r-o[t])/s:0,c=(a[n]-o[n])*u return o[n]+c}function rn(e,t){var r=e._adapter,n=e.options.time,i=n.parser,o=i||n.format,a=t -return"function"==typeof i&&(a=i(a)),H.isFinite(a)||(a="string"==typeof o?r.parse(a,o):r.parse(a)),null!==a?+a:(i||"function"!=typeof o||(a=o(t),H.isFinite(a)||(a=r.parse(a))),a)}function nn(e,t){if(H.isNullOrUndef(t))return null +return"function"==typeof i&&(a=i(a)),q.isFinite(a)||(a="string"==typeof o?r.parse(a,o):r.parse(a)),null!==a?+a:(i||"function"!=typeof o||(a=o(t),q.isFinite(a)||(a=r.parse(a))),a)}function nn(e,t){if(q.isNullOrUndef(t))return null var r=e.options.time,n=rn(e,e.getRightValue(t)) return null===n||r.round&&(n=+e._adapter.startOf(n,r.round)),n}function on(e,t,r,n){var i,o,a,s=Zr.length -for(i=Zr.indexOf(e);i=0&&(t[o].major=!0) return t}(e,o,a,r):o}var sn=mr.extend({initialize:function(){this.mergeTicksOptions(),mr.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,r=t.time||(t.time={}),n=e._adapter=new er._date(t.adapters.date) -return Wr("time scale",r.format,"time.format","time.parser"),Wr("time scale",r.min,"time.min","ticks.min"),Wr("time scale",r.max,"time.max","ticks.max"),H.mergeIf(r.displayFormats,n.formats()),mr.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),mr.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,r,n,i,o,a,s=this,u=s.chart,c=s._adapter,l=s.options,f=l.time.unit||"day",h=$r,d=Kr,p=[],m=[],y=[],v=s._getLabels() -for(e=0,r=v.length;e1?function(e){var t,r,n,i={},o=[] +v.length&&(h=Math.min(h,v[0]),d=Math.max(d,v[v.length-1])),p.length&&(p=r>1?function(e){var t,r,n,i={},o=[] for(t=0,r=e.length;t1e5*c)throw t+" and "+r+" are too far apart with stepSize of "+c+" "+u for(i=f;i=i&&r<=o&&l.push(r) return n.min=i,n.max=o,n._unit=u.unit||(s.autoSkip?on(u.minUnit,n.min,n.max,f):function(e,t,r,n,i){var o,a -for(o=Zr.length-1;o>=Zr.indexOf(r);o--)if(a=Zr[o],Jr[a].common&&e._adapter.diff(i,n,a)>=t-1)return a -return Zr[r?Zr.indexOf(r):0]}(n,l.length,u.minUnit,n.min,n.max)),n._majorUnit=s.major.enabled&&"year"!==n._unit?function(e){for(var t=Zr.indexOf(e)+1,r=Zr.length;t=Zr.indexOf(r);o--)if(a=Zr[o],$r[a].common&&e._adapter.diff(i,n,a)>=t-1)return a +return Zr[r?Zr.indexOf(r):0]}(n,l.length,u.minUnit,n.min,n.max)),n._majorUnit=s.major.enabled&&"year"!==n._unit?function(e){for(var t=Zr.indexOf(e)+1,r=Zr.length;tt&&s=0&&e0?s:1}}),un={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}} sn._defaults=un -var cn={category:vr,linear:Er,logarithmic:Tr,radialLinear:qr,time:sn},ln={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"} -er._date.override("function"==typeof e?{_id:"moment",formats:function(){return ln},parse:function(t,r){return"string"==typeof t&&"string"==typeof r?t=e(t,r):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,r){return e(t).format(r)},add:function(t,r,n){return e(t).add(r,n).valueOf()},diff:function(t,r,n){return e(t).diff(e(r),n)},startOf:function(t,r,n){return t=e(t),"isoWeek"===r?t.isoWeekday(n).valueOf():t.startOf(r).valueOf()},endOf:function(t,r){return e(t).endOf(r).valueOf()},_create:function(t){return e(t)}}:{}),L._set("global",{plugins:{filler:{propagate:!0}}}) +var cn={category:yr,linear:Er,logarithmic:Rr,radialLinear:Hr,time:sn},ln={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"} +er._date.override("function"==typeof e?{_id:"moment",formats:function(){return ln},parse:function(t,r){return"string"==typeof t&&"string"==typeof r?t=e(t,r):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,r){return e(t).format(r)},add:function(t,r,n){return e(t).add(r,n).valueOf()},diff:function(t,r,n){return e(t).diff(e(r),n)},startOf:function(t,r,n){return t=e(t),"isoWeek"===r?t.isoWeekday(n).valueOf():t.startOf(r).valueOf()},endOf:function(t,r){return e(t).endOf(r).valueOf()},_create:function(t){return e(t)}}:{}),B._set("global",{plugins:{filler:{propagate:!0}}}) var fn={dataset:function(e){var t=e.fill,r=e.chart,n=r.getDatasetMeta(t),i=n&&r.isDatasetVisible(t)&&n.dataset._children||[],o=i.length||0 return o?function(e,t){return t0;--o)H.canvas.lineTo(e,r[o],r[o-1],!0) -else for(a=r[0].cx,s=r[0].cy,u=Math.sqrt(Math.pow(r[0].x-a,2)+Math.pow(r[0].y-s,2)),o=i-1;o>0;--o)e.arc(a,s,u,r[o].angle,r[o-1].angle,!0)}}function bn(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,p=t.length,m=n.spanGaps,y=[],v=[],b=0,g=0 -for(e.beginPath(),a=0,s=p;a0;--o)q.canvas.lineTo(e,r[o],r[o-1],!0) +else for(a=r[0].cx,s=r[0].cy,u=Math.sqrt(Math.pow(r[0].x-a,2)+Math.pow(r[0].y-s,2)),o=i-1;o>0;--o)e.arc(a,s,u,r[o].angle,r[o-1].angle,!0)}}function bn(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,p=t.length,m=n.spanGaps,v=[],y=[],b=0,g=0 +for(e.beginPath(),a=0,s=p;a=0;--r)(t=u[r].$filler)&&t.visible&&(i=(n=t.el)._view,o=n._children||[],a=t.mapper,s=i.backgroundColor||L.global.defaultColor,a&&s&&o.length&&(H.canvas.clipArea(c,e.chartArea),bn(c,o,a,i,s,n._loop),H.canvas.unclipArea(c)))}},wn=H.rtl.getRtlAdapter,_n=H.noop,xn=H.valueOrDefault -function kn(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}L._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,n=this.chart,i=n.getDatasetMeta(r) +for(r=u.length-1;r>=0;--r)(t=u[r].$filler)&&t.visible&&(i=(n=t.el)._view,o=n._children||[],a=t.mapper,s=i.backgroundColor||B.global.defaultColor,a&&s&&o.length&&(q.canvas.clipArea(c,e.chartArea),bn(c,o,a,i,s,n._loop),q.canvas.unclipArea(c)))}},wn=q.rtl.getRtlAdapter,_n=q.noop,kn=q.valueOrDefault +function xn(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}B._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var r=t.datasetIndex,n=this.chart,i=n.getDatasetMeta(r) i.hidden=null===i.hidden?!n.data.datasets[r].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,r=e.options.legend||{},n=r.labels&&r.labels.usePointStyle return e._getSortedDatasetMetas().map((function(r){var i=r.controller.getStyle(n?0:void 0) return{text:t[r.index].label,fillStyle:i.backgroundColor,hidden:!e.isDatasetVisible(r.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:r.index}}),this)}}},legendCallback:function(e){var t,r,n,i=document.createElement("ul"),o=e.data.datasets for(i.setAttribute("class",e.id+"-legend"),t=0,r=o.length;tu.width)&&(f+=a+r.padding,l[l.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:n,height:a},l[l.length-1]+=n+r.padding})),u.height+=f}else{var h=r.padding,d=e.columnWidths=[],p=e.columnHeights=[],m=r.padding,y=0,v=0 -H.each(e.legendItems,(function(e,t){var n=kn(r,a)+a/2+i.measureText(e.text).width -t>0&&v+a+2*h>u.height&&(m+=y+r.padding,d.push(y),p.push(v),y=0,v=0),y=Math.max(y,n),v+=a+h,s[t]={left:0,top:0,width:n,height:a}})),m+=y,d.push(y),p.push(v),u.width+=m}e.width=u.width,e.height=u.height}else e.width=u.width=e.height=u.height=0},afterFit:_n,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,n=L.global,i=n.defaultColor,o=n.elements.line,a=e.height,s=e.columnHeights,u=e.width,c=e.lineWidths -if(t.display){var l,f=wn(t.rtl,e.left,e.minSize.width),h=e.ctx,d=xn(r.fontColor,n.defaultFontColor),p=H.options._parseFont(r),m=p.size +i.textAlign="left",i.textBaseline="middle",q.each(e.legendItems,(function(e,t){var n=xn(r,a)+a/2+i.measureText(e.text).width;(0===t||l[l.length-1]+n+2*r.padding>u.width)&&(f+=a+r.padding,l[l.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:n,height:a},l[l.length-1]+=n+r.padding})),u.height+=f}else{var h=r.padding,d=e.columnWidths=[],p=e.columnHeights=[],m=r.padding,v=0,y=0 +q.each(e.legendItems,(function(e,t){var n=xn(r,a)+a/2+i.measureText(e.text).width +t>0&&y+a+2*h>u.height&&(m+=v+r.padding,d.push(v),p.push(y),v=0,y=0),v=Math.max(v,n),y+=a+h,s[t]={left:0,top:0,width:n,height:a}})),m+=v,d.push(v),p.push(y),u.width+=m}e.width=u.width,e.height=u.height}else e.width=u.width=e.height=u.height=0},afterFit:_n,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,r=t.labels,n=B.global,i=n.defaultColor,o=n.elements.line,a=e.height,s=e.columnHeights,u=e.width,c=e.lineWidths +if(t.display){var l,f=wn(t.rtl,e.left,e.minSize.width),h=e.ctx,d=kn(r.fontColor,n.defaultFontColor),p=q.options._parseFont(r),m=p.size h.textAlign=f.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=d,h.fillStyle=d,h.font=p.string -var y=kn(r,m),v=e.legendHitBoxes,b=function(e,n){switch(t.align){case"start":return r.padding +var v=xn(r,m),y=e.legendHitBoxes,b=function(e,n){switch(t.align){case"start":return r.padding case"end":return e-n default:return(e-n+r.padding)/2}},g=e.isHorizontal() -l=g?{x:e.left+b(u,c[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+b(a,s[0]),line:0},H.rtl.overrideTextDirection(e.ctx,t.textDirection) +l=g?{x:e.left+b(u,c[0]),y:e.top+r.padding,line:0}:{x:e.left+r.padding,y:e.top+b(a,s[0]),line:0},q.rtl.overrideTextDirection(e.ctx,t.textDirection) var w=m+r.padding -H.each(e.legendItems,(function(t,n){var d=h.measureText(t.text).width,p=y+m/2+d,_=l.x,x=l.y -f.setWidth(e.minSize.width),g?n>0&&_+p+r.padding>e.left+e.minSize.width&&(x=l.y+=w,l.line++,_=l.x=e.left+b(u,c[l.line])):n>0&&x+w>e.top+e.minSize.height&&(_=l.x=_+e.columnWidths[l.line]+r.padding,l.line++,x=l.y=e.top+b(a,s[l.line])) -var k=f.x(_);(function(e,t,n){if(!(isNaN(y)||y<=0)){h.save() -var a=xn(n.lineWidth,o.borderWidth) -if(h.fillStyle=xn(n.fillStyle,i),h.lineCap=xn(n.lineCap,o.borderCapStyle),h.lineDashOffset=xn(n.lineDashOffset,o.borderDashOffset),h.lineJoin=xn(n.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=xn(n.strokeStyle,i),h.setLineDash&&h.setLineDash(xn(n.lineDash,o.borderDash)),r&&r.usePointStyle){var s=y*Math.SQRT2/2,u=f.xPlus(e,y/2),c=t+m/2 -H.canvas.drawPoint(h,n.pointStyle,s,u,c,n.rotation)}else h.fillRect(f.leftForLtr(e,y),t,y,m),0!==a&&h.strokeRect(f.leftForLtr(e,y),t,y,m) -h.restore()}})(k,x,t),v[n].left=f.leftForLtr(k,v[n].width),v[n].top=x,function(e,t,r,n){var i=m/2,o=f.xPlus(e,y+i),a=t+i -h.fillText(r.text,o,a),r.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(f.xPlus(o,n),a),h.stroke())}(k,x,t,d),g?l.x+=p+r.padding:l.y+=w})),H.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var r,n,i,o=this +q.each(e.legendItems,(function(t,n){var d=h.measureText(t.text).width,p=v+m/2+d,_=l.x,k=l.y +f.setWidth(e.minSize.width),g?n>0&&_+p+r.padding>e.left+e.minSize.width&&(k=l.y+=w,l.line++,_=l.x=e.left+b(u,c[l.line])):n>0&&k+w>e.top+e.minSize.height&&(_=l.x=_+e.columnWidths[l.line]+r.padding,l.line++,k=l.y=e.top+b(a,s[l.line])) +var x=f.x(_);(function(e,t,n){if(!(isNaN(v)||v<=0)){h.save() +var a=kn(n.lineWidth,o.borderWidth) +if(h.fillStyle=kn(n.fillStyle,i),h.lineCap=kn(n.lineCap,o.borderCapStyle),h.lineDashOffset=kn(n.lineDashOffset,o.borderDashOffset),h.lineJoin=kn(n.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=kn(n.strokeStyle,i),h.setLineDash&&h.setLineDash(kn(n.lineDash,o.borderDash)),r&&r.usePointStyle){var s=v*Math.SQRT2/2,u=f.xPlus(e,v/2),c=t+m/2 +q.canvas.drawPoint(h,n.pointStyle,s,u,c,n.rotation)}else h.fillRect(f.leftForLtr(e,v),t,v,m),0!==a&&h.strokeRect(f.leftForLtr(e,v),t,v,m) +h.restore()}})(x,k,t),y[n].left=f.leftForLtr(x,y[n].width),y[n].top=k,function(e,t,r,n){var i=m/2,o=f.xPlus(e,v+i),a=t+i +h.fillText(r.text,o,a),r.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(f.xPlus(o,n),a),h.stroke())}(x,k,t,d),g?l.x+=p+r.padding:l.y+=w})),q.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var r,n,i,o=this if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(i=o.legendHitBoxes,r=0;r=(n=i[r]).left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height)return o.legendItems[r] return null},handleEvent:function(e){var t,r=this,n=r.options,i="mouseup"===e.type?"click":e.type if("mousemove"===i){if(!n.onHover&&!n.onLeave)return}else{if("click"!==i)return @@ -5471,69 +5471,69 @@ if(!n.onClick)return}t=r._getLegendItemAt(e.x,e.y),"click"===i?t&&n.onClick&&n.o function En(e,t){var r=new On({ctx:e.ctx,options:t,chart:e}) mt.configure(e,r,t),mt.addBox(e,r),e.legend=r}var Sn={id:"legend",_element:On,beforeInit:function(e){var t=e.options.legend t&&En(e,t)},beforeUpdate:function(e){var t=e.options.legend,r=e.legend -t?(H.mergeIf(t,L.global.legend),r?(mt.configure(e,r,t),r.options=t):En(e,t)):r&&(mt.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend -r&&r.handleEvent(t)}},Pn=H.noop -L._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}}) -var Mn=$.extend({initialize:function(e){H.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Pn,update:function(e,t,r){var n=this +t?(q.mergeIf(t,B.global.legend),r?(mt.configure(e,r,t),r.options=t):En(e,t)):r&&(mt.removeBox(e,r),delete e.legend)},afterEvent:function(e,t){var r=e.legend +r&&r.handleEvent(t)}},Pn=q.noop +B._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}}) +var Mn=J.extend({initialize:function(e){q.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:Pn,update:function(e,t,r){var n=this return n.beforeUpdate(),n.maxWidth=e,n.maxHeight=t,n.margins=r,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Pn,beforeSetDimensions:Pn,setDimensions:function(){var e=this e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Pn,beforeBuildLabels:Pn,buildLabels:Pn,afterBuildLabels:Pn,beforeFit:Pn,fit:function(){var e,t=this,r=t.options,n=t.minSize={},i=t.isHorizontal() -r.display?(e=(H.isArray(r.text)?r.text.length:1)*H.options._parseFont(r).lineHeight+2*r.padding,t.width=n.width=i?t.maxWidth:e,t.height=n.height=i?e:t.maxHeight):t.width=n.width=t.height=n.height=0},afterFit:Pn,isHorizontal:function(){var e=this.options.position +r.display?(e=(q.isArray(r.text)?r.text.length:1)*q.options._parseFont(r).lineHeight+2*r.padding,t.width=n.width=i?t.maxWidth:e,t.height=n.height=i?e:t.maxHeight):t.width=n.width=t.height=n.height=0},afterFit:Pn,isHorizontal:function(){var e=this.options.position return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,r=e.options -if(r.display){var n,i,o,a=H.options._parseFont(r),s=a.lineHeight,u=s/2+r.padding,c=0,l=e.top,f=e.left,h=e.bottom,d=e.right -t.fillStyle=H.valueOrDefault(r.fontColor,L.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(i=f+(d-f)/2,o=l+u,n=d-f):(i="left"===r.position?f+u:d-u,o=l+(h-l)/2,n=h-l,c=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(i,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle" +if(r.display){var n,i,o,a=q.options._parseFont(r),s=a.lineHeight,u=s/2+r.padding,c=0,l=e.top,f=e.left,h=e.bottom,d=e.right +t.fillStyle=q.valueOrDefault(r.fontColor,B.global.defaultFontColor),t.font=a.string,e.isHorizontal()?(i=f+(d-f)/2,o=l+u,n=d-f):(i="left"===r.position?f+u:d-u,o=l+(h-l)/2,n=h-l,c=Math.PI*("left"===r.position?-.5:.5)),t.save(),t.translate(i,o),t.rotate(c),t.textAlign="center",t.textBaseline="middle" var p=r.text -if(H.isArray(p))for(var m=0,y=0;y=0;n--){var i=e[n] -if(t(i))return i}},H.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},H.almostEquals=function(e,t,r){return Math.abs(e-t)=e},H.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},H.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},H.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},H.toRadians=function(e){return e*(Math.PI/180)},H.toDegrees=function(e){return e*(180/Math.PI)},H._decimalPlaces=function(e){if(H.isFinite(e)){for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++ -return r}},H.getAngleFromPoint=function(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r) -return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},H.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},H.aliasPixel=function(e){return e%2==0?0:.5},H._alignPixel=function(e,t,r){var n=e.currentDevicePixelRatio,i=r/2 -return Math.round((t-i)*n)/n+i},H.splineCurve=function(e,t,r,n){var i=e.skip?t:e,o=t,a=r.skip?t:r,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+u),l=u/(s+u),f=n*(c=isNaN(c)?0:c),h=n*(l=isNaN(l)?0:l) -return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}},H.EPSILON=Number.EPSILON||1e-14,H.splineCurveMonotone=function(e){var t,r,n,i,o,a,s,u,c,l=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),f=l.length +if(t(i))return i}},q.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},q.almostEquals=function(e,t,r){return Math.abs(e-t)=e},q.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},q.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},q.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},q.toRadians=function(e){return e*(Math.PI/180)},q.toDegrees=function(e){return e*(180/Math.PI)},q._decimalPlaces=function(e){if(q.isFinite(e)){for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++ +return r}},q.getAngleFromPoint=function(e,t){var r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n),o=Math.atan2(n,r) +return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},q.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},q.aliasPixel=function(e){return e%2==0?0:.5},q._alignPixel=function(e,t,r){var n=e.currentDevicePixelRatio,i=r/2 +return Math.round((t-i)*n)/n+i},q.splineCurve=function(e,t,r,n){var i=e.skip?t:e,o=t,a=r.skip?t:r,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+u),l=u/(s+u),f=n*(c=isNaN(c)?0:c),h=n*(l=isNaN(l)?0:l) +return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}},q.EPSILON=Number.EPSILON||1e-14,q.splineCurveMonotone=function(e){var t,r,n,i,o,a,s,u,c,l=(e||[]).map((function(e){return{model:e._model,deltaK:0,mK:0}})),f=l.length for(t=0;t0?l[t-1]:null,(i=t0?l[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},H.previousItem=function(e,t,r){return r?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},H.niceNum=function(e,t){var r=Math.floor(H.log10(e)),n=e/Math.pow(10,r) -return(t?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,r)},H.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},H.getRelativePosition=function(e,t){var r,n,i=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=i.touches +n.deltaK=0!==h?(i.model.y-n.model.y)/h:0}!r||r.model.skip?n.mK=n.deltaK:!i||i.model.skip?n.mK=r.deltaK:this.sign(r.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(r.deltaK+n.deltaK)/2}for(t=0;t0?l[t-1]:null,i=t=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},q.previousItem=function(e,t,r){return r?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},q.niceNum=function(e,t){var r=Math.floor(q.log10(e)),n=e/Math.pow(10,r) +return(t?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,r)},q.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},q.getRelativePosition=function(e,t){var r,n,i=e.originalEvent||e,o=e.target||e.srcElement,a=o.getBoundingClientRect(),s=i.touches s&&s.length>0?(r=s[0].clientX,n=s[0].clientY):(r=i.clientX,n=i.clientY) -var u=parseFloat(H.getStyle(o,"padding-left")),c=parseFloat(H.getStyle(o,"padding-top")),l=parseFloat(H.getStyle(o,"padding-right")),f=parseFloat(H.getStyle(o,"padding-bottom")),h=a.right-a.left-u-l,d=a.bottom-a.top-c-f -return{x:r=Math.round((r-a.left-u)/h*o.width/t.currentDevicePixelRatio),y:n=Math.round((n-a.top-c)/d*o.height/t.currentDevicePixelRatio)}},H.getConstraintWidth=function(e){return r(e,"max-width","clientWidth")},H.getConstraintHeight=function(e){return r(e,"max-height","clientHeight")},H._calculatePadding=function(e,t,r){return(t=H.getStyle(e,t)).indexOf("%")>-1?r*parseInt(t,10)/100:parseInt(t,10)},H._getParentNode=function(e){var t=e.parentNode -return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},H.getMaximumWidth=function(e){var t=H._getParentNode(e) +var u=parseFloat(q.getStyle(o,"padding-left")),c=parseFloat(q.getStyle(o,"padding-top")),l=parseFloat(q.getStyle(o,"padding-right")),f=parseFloat(q.getStyle(o,"padding-bottom")),h=a.right-a.left-u-l,d=a.bottom-a.top-c-f +return{x:r=Math.round((r-a.left-u)/h*o.width/t.currentDevicePixelRatio),y:n=Math.round((n-a.top-c)/d*o.height/t.currentDevicePixelRatio)}},q.getConstraintWidth=function(e){return r(e,"max-width","clientWidth")},q.getConstraintHeight=function(e){return r(e,"max-height","clientHeight")},q._calculatePadding=function(e,t,r){return(t=q.getStyle(e,t)).indexOf("%")>-1?r*parseInt(t,10)/100:parseInt(t,10)},q._getParentNode=function(e){var t=e.parentNode +return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},q.getMaximumWidth=function(e){var t=q._getParentNode(e) if(!t)return e.clientWidth -var r=t.clientWidth,n=r-H._calculatePadding(t,"padding-left",r)-H._calculatePadding(t,"padding-right",r),i=H.getConstraintWidth(e) +var r=t.clientWidth,n=r-q._calculatePadding(t,"padding-left",r)-q._calculatePadding(t,"padding-right",r),i=q.getConstraintWidth(e) return isNaN(i)?n:Math.min(n,i)} -H.getMaximumHeight=function(e){var t=H._getParentNode(e) +q.getMaximumHeight=function(e){var t=q._getParentNode(e) if(!t)return e.clientHeight -var r=t.clientHeight,n=r-H._calculatePadding(t,"padding-top",r)-H._calculatePadding(t,"padding-bottom",r),i=H.getConstraintHeight(e) -return isNaN(i)?n:Math.min(n,i)},H.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},H.retinaScale=function(e,t){var r=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1 +var r=t.clientHeight,n=r-q._calculatePadding(t,"padding-top",r)-q._calculatePadding(t,"padding-bottom",r),i=q.getConstraintHeight(e) +return isNaN(i)?n:Math.min(n,i)},q.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},q.retinaScale=function(e,t){var r=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1 if(1!==r){var n=e.canvas,i=e.height,o=e.width -n.height=i*r,n.width=o*r,e.ctx.scale(r,r),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=o+"px")}},H.fontString=function(e,t,r){return t+" "+e+"px "+r},H.longestText=function(e,t,r,n){var i=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[] +n.height=i*r,n.width=o*r,e.ctx.scale(r,r),n.style.height||n.style.width||(n.style.height=i+"px",n.style.width=o+"px")}},q.fontString=function(e,t,r){return t+" "+e+"px "+r},q.longestText=function(e,t,r,n){var i=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[] n.font!==t&&(i=n.data={},o=n.garbageCollect=[],n.font=t),e.font=t var a,s,u,c,l,f=0,h=r.length -for(a=0;ar.length){for(a=0;an&&(n=o),n},H.numberOfLabelLines=function(e){var t=1 -return H.each(e,(function(e){H.isArray(e)&&e.length>t&&(t=e.length)})),t},H.color=_?function(e){return e instanceof CanvasGradient&&(e=L.global.defaultColor),_(e)}:function(e){return console.error("Color.js not found!"),e},H.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:H.color(e).saturate(.5).darken(.1).rgbString()}}(),Zt._adapters=er,Zt.Animation=Z,Zt.animationService=Q,Zt.controllers=Qe,Zt.DatasetController=ne,Zt.defaults=L,Zt.Element=$,Zt.elements=xe,Zt.Interaction=ot,Zt.layouts=mt,Zt.platform=jt,Zt.plugins=At,Zt.Scale=mr,Zt.scaleService=Tt,Zt.Ticks=tr,Zt.Tooltip=Ht,Zt.helpers.each(cn,(function(e,t){Zt.scaleService.registerScaleType(t,e,e._defaults)})),An)An.hasOwnProperty(In)&&Zt.plugins.register(An[In]) +o.splice(0,d)}return f},q.measureText=function(e,t,r,n,i){var o=t[i] +return o||(o=t[i]=e.measureText(i).width,r.push(i)),o>n&&(n=o),n},q.numberOfLabelLines=function(e){var t=1 +return q.each(e,(function(e){q.isArray(e)&&e.length>t&&(t=e.length)})),t},q.color=_?function(e){return e instanceof CanvasGradient&&(e=B.global.defaultColor),_(e)}:function(e){return console.error("Color.js not found!"),e},q.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:q.color(e).saturate(.5).darken(.1).rgbString()}}(),Zt._adapters=er,Zt.Animation=Z,Zt.animationService=Q,Zt.controllers=Qe,Zt.DatasetController=ne,Zt.defaults=B,Zt.Element=J,Zt.elements=ke,Zt.Interaction=ot,Zt.layouts=mt,Zt.platform=At,Zt.plugins=jt,Zt.Scale=mr,Zt.scaleService=Rt,Zt.Ticks=tr,Zt.Tooltip=qt,Zt.helpers.each(cn,(function(e,t){Zt.scaleService.registerScaleType(t,e,e._defaults)})),jn)jn.hasOwnProperty(In)&&Zt.plugins.register(jn[In]) Zt.platform.initialize() var Nn=Zt -return"undefined"!=typeof window&&(window.Chart=Zt),Zt.Chart=Zt,Zt.Legend=An.legend._element,Zt.Title=An.title._element,Zt.pluginService=Zt.plugins,Zt.PluginBase=Zt.Element.extend({}),Zt.canvasHelpers=Zt.helpers.canvas,Zt.layoutService=Zt.layouts,Zt.LinearScaleBase=_r,Zt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Zt[e]=function(t,r){return new Zt(t,Zt.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Nn})),function(){var e=new WeakMap +return"undefined"!=typeof window&&(window.Chart=Zt),Zt.Chart=Zt,Zt.Legend=jn.legend._element,Zt.Title=jn.title._element,Zt.pluginService=Zt.plugins,Zt.PluginBase=Zt.Element.extend({}),Zt.canvasHelpers=Zt.helpers.canvas,Zt.layoutService=Zt.layouts,Zt.LinearScaleBase=_r,Zt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(e){Zt[e]=function(t,r){return new Zt(t,Zt.helpers.merge(r||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}})),Nn})),function(){var e=new WeakMap define("ember-macro-helpers/-computed-store",(function(){return{default:e,__esModule:!0}})) var t=Ember.computed Ember.computed=function(){var r=Array.prototype.slice.call(arguments),n=t.apply(this,r),i=r.slice(0,r.length-1),o=r[r.length-1] @@ -5567,48 +5567,48 @@ if(c)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArra function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"') return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift() return{done:void 0===t,value:t}}} -return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function y(e){if(e.bodyUsed)return n.reject(new TypeError("Already read")) -e.bodyUsed=!0}function v(e){return new n((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function b(e){var t=new FileReader,r=v(t) +return i&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return n.reject(new TypeError("Already read")) +e.bodyUsed=!0}function y(e){return new n((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function b(e){var t=new FileReader,r=y(t) return t.readAsArrayBuffer(e),r}function g(e){if(e.slice)return e.slice(0) var t=new Uint8Array(e.byteLength) return t.set(new Uint8Array(e)),t.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(e){var t -this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=y(this) +this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:u&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||f(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=v(this) if(e)return e if(this._bodyBlob)return n.resolve(this._bodyBlob) if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer])) if(this._bodyFormData)throw new Error("could not read FormData body as blob") -return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=y(this) -return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer))}return this.blob().then(b)}),this.text=function(){var e,t,r,i=y(this) +return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=v(this) +return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer))}return this.blob().then(b)}),this.text=function(){var e,t,r,i=v(this) if(i)return i -if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=v(t),t.readAsText(e),r +if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=y(t),t.readAsText(e),r if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests") if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/ if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime()) -else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData +else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ") t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function O(e,t){if(!(this instanceof O))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') -t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},w.call(x.prototype),w.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""}) +t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},w.call(k.prototype),w.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""}) return e.type="error",e} var E=[301,302,303,307,308] O.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code") return new O(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException try{new e.DOMException}catch(P){e.DOMException=function(e,t){this.message=e,this.name=t var r=Error(e) -this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(r,i){return new n((function(n,a){var s=new x(r,i) +this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(r,i){return new n((function(n,a){var s=new k(r,i) if(s.signal&&s.signal.aborted)return a(new e.DOMException("Aborted","AbortError")) var u=new XMLHttpRequest function l(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim() @@ -5616,7 +5616,7 @@ if(n){var i=r.join(":").trim() t.append(n,i)}})),t)} r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL") var i="response"in u?u.response:u.responseText -setTimeout((function(){n(new O(i,r))}),0)},u.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},u.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(r){return e}}(s.url),!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!i||"object"!==_typeof(i.headers)||i.headers instanceof m?s.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){u.setRequestHeader(e,d(i.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",l)}),u.send(void 0===s._bodyInit?null:s._bodyInit)}))}S.polyfill=!0,t.fetch||(t.fetch=S,t.Headers=m,t.Request=x,t.Response=O),e.Headers=m,e.Request=x,e.Response=O,e.fetch=S})({}) +setTimeout((function(){n(new O(i,r))}),0)},u.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},u.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(r){return e}}(s.url),!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(o?u.responseType="blob":c&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!i||"object"!==_typeof(i.headers)||i.headers instanceof m?s.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(i.headers).forEach((function(e){u.setRequestHeader(e,d(i.headers[e]))})),s.signal&&(s.signal.addEventListener("abort",l),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",l)}),u.send(void 0===s._bodyInit?null:s._bodyInit)}))}S.polyfill=!0,t.fetch||(t.fetch=S,t.Headers=m,t.Request=k,t.Response=O),e.Headers=m,e.Request=k,e.Response=O,e.fetch=S})({}) if(!a.fetch)throw new Error("fetch is not defined - maybe your browser targets are not covering everything you need?") var u=0 function c(e){return u--,e}r.Test?(r.Test.registerWaiter((function(){return 0===u})),t.default=function(){return u++,t.fetch.apply(e,arguments).then((function(e){return e.clone().blob().then(c,c),e}),(function(e){throw c(e),e}))}):t.default=t.fetch,i.forEach((function(e){delete t[e]}))}))})("undefined"!=typeof window&&window||"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"==typeof FastBoot&& @@ -5654,9 +5654,9 @@ e.classList.remove(t)}function c(e,t,r){var n=window.document.createElement(e) return t=t||"",r=r||"",n.className=t,void 0!==r&&(n.textContent=r),n}function l(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,t){var r=c("div","numInputWrapper"),n=c("input","numInput "+e),i=c("span","arrowUp"),o=c("span","arrowDown") if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==t)for(var a in t)n.setAttribute(a,t[a]) return r.appendChild(n),r.appendChild(i),r.appendChild(o),r}var h=function(){},d=function(e,t,r){return r.months[t?"shorthand":"longhand"][e]},p={D:h,F:function(e,t,r){e.setMonth(r.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,r){e.setHours(e.getHours()%12+12*o(new RegExp(r.amPM[1],"i").test(t)))},M:function(e,t,r){e.setMonth(r.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,r){var n=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0) -return i.setDate(i.getDate()-i.getDay()+r.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:h,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:h,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},m={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},y={Z:function(e){return e.toISOString()},D:function(e,t,r){return t.weekdays.shorthand[y.w(e,t,r)]},F:function(e,t,r){return d(y.n(e,t,r)-1,!1,t)},G:function(e,t,r){return i(y.h(e,t,r))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return d(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,r){return r.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},v=function(e){var t=e.config,i=void 0===t?r:t,o=e.l10n,a=void 0===o?n:o +return i.setDate(i.getDate()-i.getDay()+r.firstDayOfWeek),i},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:h,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:h,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},m={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},v={Z:function(e){return e.toISOString()},D:function(e,t,r){return t.weekdays.shorthand[v.w(e,t,r)]},F:function(e,t,r){return d(v.n(e,t,r)-1,!1,t)},G:function(e,t,r){return i(v.h(e,t,r))},H:function(e){return i(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[o(e.getHours()>11)]},M:function(e,t){return d(e.getMonth(),!0,t)},S:function(e){return i(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,r){return r.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return i(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return i(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return i(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},y=function(e){var t=e.config,i=void 0===t?r:t,o=e.l10n,a=void 0===o?n:o return function(e,t,r){var n=r||a -return void 0!==i.formatDate?i.formatDate(e,t,n):t.split("").map((function(t,r,o){return y[t]&&"\\"!==o[r-1]?y[t](e,n,i):"\\"!==t?t:""})).join("")}},b=function(e){var t=e.config,i=void 0===t?r:t,o=e.l10n,a=void 0===o?n:o +return void 0!==i.formatDate?i.formatDate(e,t,n):t.split("").map((function(t,r,o){return v[t]&&"\\"!==o[r-1]?v[t](e,n,i):"\\"!==t?t:""})).join("")}},b=function(e){var t=e.config,i=void 0===t?r:t,o=e.l10n,a=void 0===o?n:o return function(e,t,n,o){if(0===e||e){var s,u=o||a,c=e if(e instanceof Date)s=new Date(e.getTime()) else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e) @@ -5665,10 +5665,10 @@ if("today"===f)s=new Date,n=!0 else if(/Z$/.test(f)||/GMT$/.test(f))s=new Date(e) else if(i&&i.parseDate)s=i.parseDate(e,l) else{s=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0) -for(var h=void 0,d=[],y=0,v=0,b="";ya&&(l=r===y.hourElement?l-a-o(!y.amPM):n,h&&N(void 0,1,y.hourElement)),y.amPM&&f&&(1===s?l+u===23:Math.abs(l-u)>s)&&(y.amPM.textContent=y.l10n.amPM[o(y.amPM.textContent===y.l10n.amPM[0])]),r.value=i(l)}}(e) -var t=y._input.value -E(),ve(),y._input.value!==t&&y._debouncedChange()}function E(){if(void 0!==y.hourElement&&void 0!==y.minuteElement){var e,t,r=(parseInt(y.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(y.minuteElement.value,10)||0)%60,i=void 0!==y.secondElement?(parseInt(y.secondElement.value,10)||0)%60:0 -void 0!==y.amPM&&(e=r,t=y.amPM.textContent,r=e%12+12*o(t===y.l10n.amPM[1])) -var a=void 0!==y.config.minTime||y.config.minDate&&y.minDateHasTime&&y.latestSelectedDateObj&&0===g(y.latestSelectedDateObj,y.config.minDate,!0) -if(void 0!==y.config.maxTime||y.config.maxDate&&y.maxDateHasTime&&y.latestSelectedDateObj&&0===g(y.latestSelectedDateObj,y.config.maxDate,!0)){var s=void 0!==y.config.maxTime?y.config.maxTime:y.config.maxDate;(r=Math.min(r,s.getHours()))===s.getHours()&&(n=Math.min(n,s.getMinutes())),n===s.getMinutes()&&(i=Math.min(i,s.getSeconds()))}if(a){var u=void 0!==y.config.minTime?y.config.minTime:y.config.minDate;(r=Math.max(r,u.getHours()))===u.getHours()&&(n=Math.max(n,u.getMinutes())),n===u.getMinutes()&&(i=Math.max(i,u.getSeconds()))}M(r,n,i)}}function S(e){var t=e||y.latestSelectedDateObj -t&&M(t.getHours(),t.getMinutes(),t.getSeconds())}function P(){var e=y.config.defaultHour,t=y.config.defaultMinute,r=y.config.defaultSeconds -if(void 0!==y.config.minDate){var n=y.config.minDate.getHours(),i=y.config.minDate.getMinutes();(e=Math.max(e,n))===n&&(t=Math.max(i,t)),e===n&&t===i&&(r=y.config.minDate.getSeconds())}if(void 0!==y.config.maxDate){var o=y.config.maxDate.getHours(),a=y.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(a,t)),e===o&&t===a&&(r=y.config.maxDate.getSeconds())}M(e,t,r)}function M(e,t,r){void 0!==y.latestSelectedDateObj&&y.latestSelectedDateObj.setHours(e%24,t,r||0,0),y.hourElement&&y.minuteElement&&!y.isMobile&&(y.hourElement.value=i(y.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),y.minuteElement.value=i(t),void 0!==y.amPM&&(y.amPM.textContent=y.l10n.amPM[o(e>=12)]),void 0!==y.secondElement&&(y.secondElement.value=i(r)))}function j(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&J(t)}function A(e,t,r,n){return t instanceof Array?t.forEach((function(t){return A(e,t,r,n)})):e instanceof Array?e.forEach((function(e){return A(e,t,r,n)})):(e.addEventListener(t,r,n),void y._handlers.push({element:e,event:t,handler:r,options:n}))}function T(e){return function(t){1===t.which&&e(t)}}function R(){he("onChange")}function C(e,t){var r=void 0!==e?y.parseDate(e):y.latestSelectedDateObj||(y.config.minDate&&y.config.minDate>y.now?y.config.minDate:y.config.maxDate&&y.config.maxDatea&&(l=r===v.hourElement?l-a-o(!v.amPM):n,h&&N(void 0,1,v.hourElement)),v.amPM&&f&&(1===s?l+u===23:Math.abs(l-u)>s)&&(v.amPM.textContent=v.l10n.amPM[o(v.amPM.textContent===v.l10n.amPM[0])]),r.value=i(l)}}(e) +var t=v._input.value +E(),ye(),v._input.value!==t&&v._debouncedChange()}function E(){if(void 0!==v.hourElement&&void 0!==v.minuteElement){var e,t,r=(parseInt(v.hourElement.value.slice(-2),10)||0)%24,n=(parseInt(v.minuteElement.value,10)||0)%60,i=void 0!==v.secondElement?(parseInt(v.secondElement.value,10)||0)%60:0 +void 0!==v.amPM&&(e=r,t=v.amPM.textContent,r=e%12+12*o(t===v.l10n.amPM[1])) +var a=void 0!==v.config.minTime||v.config.minDate&&v.minDateHasTime&&v.latestSelectedDateObj&&0===g(v.latestSelectedDateObj,v.config.minDate,!0) +if(void 0!==v.config.maxTime||v.config.maxDate&&v.maxDateHasTime&&v.latestSelectedDateObj&&0===g(v.latestSelectedDateObj,v.config.maxDate,!0)){var s=void 0!==v.config.maxTime?v.config.maxTime:v.config.maxDate;(r=Math.min(r,s.getHours()))===s.getHours()&&(n=Math.min(n,s.getMinutes())),n===s.getMinutes()&&(i=Math.min(i,s.getSeconds()))}if(a){var u=void 0!==v.config.minTime?v.config.minTime:v.config.minDate;(r=Math.max(r,u.getHours()))===u.getHours()&&(n=Math.max(n,u.getMinutes())),n===u.getMinutes()&&(i=Math.max(i,u.getSeconds()))}M(r,n,i)}}function S(e){var t=e||v.latestSelectedDateObj +t&&M(t.getHours(),t.getMinutes(),t.getSeconds())}function P(){var e=v.config.defaultHour,t=v.config.defaultMinute,r=v.config.defaultSeconds +if(void 0!==v.config.minDate){var n=v.config.minDate.getHours(),i=v.config.minDate.getMinutes();(e=Math.max(e,n))===n&&(t=Math.max(i,t)),e===n&&t===i&&(r=v.config.minDate.getSeconds())}if(void 0!==v.config.maxDate){var o=v.config.maxDate.getHours(),a=v.config.maxDate.getMinutes();(e=Math.min(e,o))===o&&(t=Math.min(a,t)),e===o&&t===a&&(r=v.config.maxDate.getSeconds())}M(e,t,r)}function M(e,t,r){void 0!==v.latestSelectedDateObj&&v.latestSelectedDateObj.setHours(e%24,t,r||0,0),v.hourElement&&v.minuteElement&&!v.isMobile&&(v.hourElement.value=i(v.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),v.minuteElement.value=i(t),void 0!==v.amPM&&(v.amPM.textContent=v.l10n.amPM[o(e>=12)]),void 0!==v.secondElement&&(v.secondElement.value=i(r)))}function A(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&$(t)}function j(e,t,r,n){return t instanceof Array?t.forEach((function(t){return j(e,t,r,n)})):e instanceof Array?e.forEach((function(e){return j(e,t,r,n)})):(e.addEventListener(t,r,n),void v._handlers.push({element:e,event:t,handler:r,options:n}))}function R(e){return function(t){1===t.which&&e(t)}}function T(){he("onChange")}function C(e,t){var r=void 0!==e?v.parseDate(e):v.latestSelectedDateObj||(v.config.minDate&&v.config.minDate>v.now?v.config.minDate:v.config.maxDate&&v.config.maxDate=0&&g(e,y.selectedDates[1])<=0)}(t)&&!pe(t)&&o.classList.add("inRange"),y.weekNumbers&&1===y.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&y.weekNumbers.insertAdjacentHTML("beforeend",""+y.config.getWeek(t)+""),he("onDayCreate",o),o}function L(e){e.focus(),"range"===y.config.mode&&ee(e)}function B(e){for(var t=e>0?0:y.config.showMonths-1,r=e>0?y.config.showMonths:-1,n=t;n!=r;n+=e)for(var i=y.daysContainer.children[n],o=e>0?0:i.children.length-1,a=e>0?i.children.length:-1,s=o;s!=a;s+=e){var u=i.children[s] -if(-1===u.className.indexOf("hidden")&&Z(u.dateObj))return u}}function F(e,t){var r=Q(document.activeElement||document.body),n=void 0!==e?e:r?document.activeElement:void 0!==y.selectedDateElem&&Q(y.selectedDateElem)?y.selectedDateElem:void 0!==y.todayDateElem&&Q(y.todayDateElem)?y.todayDateElem:B(t>0?1:-1) -return void 0===n?y._input.focus():r?void function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():y.currentMonth,n=t>0?y.config.showMonths:-1,i=t>0?1:-1,o=r-y.currentMonth;o!=n;o+=i)for(var a=y.daysContainer.children[o],s=r-y.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,u=a.children.length,c=s;c>=0&&c0?u:-1);c+=i){var l=a.children[c] -if(-1===l.className.indexOf("hidden")&&Z(l.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return L(l)}y.changeMonth(i),F(B(i),0)}(n,t):L(n)}function U(e,t){for(var r=(new Date(e,t,1).getDay()-y.l10n.firstDayOfWeek+7)%7,n=y.utils.getDaysInMonth((t-1+12)%12),i=y.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),a=y.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",u=a?"nextMonthDay hidden":"nextMonthDay",l=n+1-r,f=0;l<=n;l++,f++)o.appendChild(D(s,new Date(e,t-1,l),l,f)) +return o.dateObj=t,o.$i=n,o.setAttribute("aria-label",v.formatDate(t,v.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===g(t,v.now)&&(v.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,pe(t)&&(o.classList.add("selected"),v.selectedDateElem=o,"range"===v.config.mode&&(u(o,"startRange",v.selectedDates[0]&&0===g(t,v.selectedDates[0],!0)),u(o,"endRange",v.selectedDates[1]&&0===g(t,v.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===v.config.mode&&function(e){return!("range"!==v.config.mode||v.selectedDates.length<2)&&(g(e,v.selectedDates[0])>=0&&g(e,v.selectedDates[1])<=0)}(t)&&!pe(t)&&o.classList.add("inRange"),v.weekNumbers&&1===v.config.showMonths&&"prevMonthDay"!==e&&r%7==1&&v.weekNumbers.insertAdjacentHTML("beforeend",""+v.config.getWeek(t)+""),he("onDayCreate",o),o}function B(e){e.focus(),"range"===v.config.mode&&ee(e)}function L(e){for(var t=e>0?0:v.config.showMonths-1,r=e>0?v.config.showMonths:-1,n=t;n!=r;n+=e)for(var i=v.daysContainer.children[n],o=e>0?0:i.children.length-1,a=e>0?i.children.length:-1,s=o;s!=a;s+=e){var u=i.children[s] +if(-1===u.className.indexOf("hidden")&&Z(u.dateObj))return u}}function F(e,t){var r=Q(document.activeElement||document.body),n=void 0!==e?e:r?document.activeElement:void 0!==v.selectedDateElem&&Q(v.selectedDateElem)?v.selectedDateElem:void 0!==v.todayDateElem&&Q(v.todayDateElem)?v.todayDateElem:L(t>0?1:-1) +return void 0===n?v._input.focus():r?void function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():v.currentMonth,n=t>0?v.config.showMonths:-1,i=t>0?1:-1,o=r-v.currentMonth;o!=n;o+=i)for(var a=v.daysContainer.children[o],s=r-v.currentMonth===o?e.$i+t:t<0?a.children.length-1:0,u=a.children.length,c=s;c>=0&&c0?u:-1);c+=i){var l=a.children[c] +if(-1===l.className.indexOf("hidden")&&Z(l.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return B(l)}v.changeMonth(i),F(L(i),0)}(n,t):B(n)}function U(e,t){for(var r=(new Date(e,t,1).getDay()-v.l10n.firstDayOfWeek+7)%7,n=v.utils.getDaysInMonth((t-1+12)%12),i=v.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),a=v.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",u=a?"nextMonthDay hidden":"nextMonthDay",l=n+1-r,f=0;l<=n;l++,f++)o.appendChild(D(s,new Date(e,t-1,l),l,f)) for(l=1;l<=i;l++,f++)o.appendChild(D("",new Date(e,t,l),l,f)) -for(var h=i+1;h<=42-r&&(1===y.config.showMonths||f%7!=0);h++,f++)o.appendChild(D(u,new Date(e,t+1,h%i),h,f)) +for(var h=i+1;h<=42-r&&(1===v.config.showMonths||f%7!=0);h++,f++)o.appendChild(D(u,new Date(e,t+1,h%i),h,f)) var d=c("div","dayContainer") -return d.appendChild(o),d}function z(){if(void 0!==y.daysContainer){l(y.daysContainer),y.weekNumbers&&l(y.weekNumbers) -for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==y.config.monthSelectorType)){var e=function(e){return!(void 0!==y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&ey.config.maxDate.getMonth())} -y.monthsDropdownContainer.tabIndex=-1,y.monthsDropdownContainer.innerHTML="" +return d.appendChild(o),d}function z(){if(void 0!==v.daysContainer){l(v.daysContainer),v.weekNumbers&&l(v.weekNumbers) +for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==v.config.monthSelectorType)){var e=function(e){return!(void 0!==v.config.minDate&&v.currentYear===v.config.minDate.getFullYear()&&ev.config.maxDate.getMonth())} +v.monthsDropdownContainer.tabIndex=-1,v.monthsDropdownContainer.innerHTML="" for(var t=0;t<12;t++)if(e(t)){var r=c("option","flatpickr-monthDropdown-month") -r.value=new Date(y.currentYear,t).getMonth().toString(),r.textContent=d(t,y.config.shorthandCurrentMonth,y.l10n),r.tabIndex=-1,y.currentMonth===t&&(r.selected=!0),y.monthsDropdownContainer.appendChild(r)}}}function q(){var e,t=c("div","flatpickr-month"),r=window.document.createDocumentFragment() -y.config.showMonths>1||"static"===y.config.monthSelectorType?e=c("span","cur-month"):(y.monthsDropdownContainer=c("select","flatpickr-monthDropdown-months"),A(y.monthsDropdownContainer,"change",(function(e){var t=e.target,r=parseInt(t.value,10) -y.changeMonth(r-y.currentMonth),he("onMonthChange")})),H(),e=y.monthsDropdownContainer) +r.value=new Date(v.currentYear,t).getMonth().toString(),r.textContent=d(t,v.config.shorthandCurrentMonth,v.l10n),r.tabIndex=-1,v.currentMonth===t&&(r.selected=!0),v.monthsDropdownContainer.appendChild(r)}}}function H(){var e,t=c("div","flatpickr-month"),r=window.document.createDocumentFragment() +v.config.showMonths>1||"static"===v.config.monthSelectorType?e=c("span","cur-month"):(v.monthsDropdownContainer=c("select","flatpickr-monthDropdown-months"),j(v.monthsDropdownContainer,"change",(function(e){var t=e.target,r=parseInt(t.value,10) +v.changeMonth(r-v.currentMonth),he("onMonthChange")})),q(),e=v.monthsDropdownContainer) var n=f("cur-year",{tabindex:"-1"}),i=n.getElementsByTagName("input")[0] -i.setAttribute("aria-label",y.l10n.yearAriaLabel),y.config.minDate&&i.setAttribute("min",y.config.minDate.getFullYear().toString()),y.config.maxDate&&(i.setAttribute("max",y.config.maxDate.getFullYear().toString()),i.disabled=!!y.config.minDate&&y.config.minDate.getFullYear()===y.config.maxDate.getFullYear()) +i.setAttribute("aria-label",v.l10n.yearAriaLabel),v.config.minDate&&i.setAttribute("min",v.config.minDate.getFullYear().toString()),v.config.maxDate&&(i.setAttribute("max",v.config.maxDate.getFullYear().toString()),i.disabled=!!v.config.minDate&&v.config.minDate.getFullYear()===v.config.maxDate.getFullYear()) var o=c("div","flatpickr-current-month") -return o.appendChild(e),o.appendChild(n),r.appendChild(o),t.appendChild(r),{container:t,yearElement:i,monthElement:e}}function V(){l(y.monthNav),y.monthNav.appendChild(y.prevMonthNav),y.config.showMonths&&(y.yearElements=[],y.monthElements=[]) -for(var e=y.config.showMonths;e--;){var t=q() -y.yearElements.push(t.yearElement),y.monthElements.push(t.monthElement),y.monthNav.appendChild(t.container)}y.monthNav.appendChild(y.nextMonthNav)}function W(){y.weekdayContainer?l(y.weekdayContainer):y.weekdayContainer=c("div","flatpickr-weekdays") -for(var e=y.config.showMonths;e--;){var t=c("div","flatpickr-weekdaycontainer") -y.weekdayContainer.appendChild(t)}return Y(),y.weekdayContainer}function Y(){if(y.weekdayContainer){var e=y.l10n.firstDayOfWeek,t=y.l10n.weekdays.shorthand.slice() +return o.appendChild(e),o.appendChild(n),r.appendChild(o),t.appendChild(r),{container:t,yearElement:i,monthElement:e}}function V(){l(v.monthNav),v.monthNav.appendChild(v.prevMonthNav),v.config.showMonths&&(v.yearElements=[],v.monthElements=[]) +for(var e=v.config.showMonths;e--;){var t=H() +v.yearElements.push(t.yearElement),v.monthElements.push(t.monthElement),v.monthNav.appendChild(t.container)}v.monthNav.appendChild(v.nextMonthNav)}function W(){v.weekdayContainer?l(v.weekdayContainer):v.weekdayContainer=c("div","flatpickr-weekdays") +for(var e=v.config.showMonths;e--;){var t=c("div","flatpickr-weekdaycontainer") +v.weekdayContainer.appendChild(t)}return G(),v.weekdayContainer}function G(){if(v.weekdayContainer){var e=v.l10n.firstDayOfWeek,t=v.l10n.weekdays.shorthand.slice() e>0&&e\n "+t.join("")+"\n \n "}}function G(e,t){void 0===t&&(t=!0) -var r=t?e:e-y.currentMonth -r<0&&!0===y._hidePrevMonthArrow||r>0&&!0===y._hideNextMonthArrow||(y.currentMonth+=r,(y.currentMonth<0||y.currentMonth>11)&&(y.currentYear+=y.currentMonth>11?1:-1,y.currentMonth=(y.currentMonth+12)%12,he("onYearChange"),H()),z(),he("onMonthChange"),me())}function K(e){return!(!y.config.appendTo||!y.config.appendTo.contains(e))||y.calendarContainer.contains(e)}function $(e){if(y.isOpen&&!y.config.inline){var t="function"==typeof(a=e).composedPath?a.composedPath()[0]:a.target,r=K(t),n=t===y.input||t===y.altInput||y.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(y.input)||~e.path.indexOf(y.altInput)),i="blur"===e.type?n&&e.relatedTarget&&!K(e.relatedTarget):!n&&!r&&!K(e.relatedTarget),o=!y.config.ignoredFocusElements.some((function(e){return e.contains(t)})) -i&&o&&(void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement&&O(),y.close(),"range"===y.config.mode&&1===y.selectedDates.length&&(y.clear(!1),y.redraw()))}var a}function J(e){if(!(!e||y.config.minDate&&ey.config.maxDate.getFullYear())){var t=e,r=y.currentYear!==t -y.currentYear=t||y.currentYear,y.config.maxDate&&y.currentYear===y.config.maxDate.getFullYear()?y.currentMonth=Math.min(y.config.maxDate.getMonth(),y.currentMonth):y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&(y.currentMonth=Math.max(y.config.minDate.getMonth(),y.currentMonth)),r&&(y.redraw(),he("onYearChange"),H())}}function Z(e,t){void 0===t&&(t=!0) -var r=y.parseDate(e,void 0,t) -if(y.config.minDate&&r&&g(r,y.config.minDate,void 0!==t?t:!y.minDateHasTime)<0||y.config.maxDate&&r&&g(r,y.config.maxDate,void 0!==t?t:!y.maxDateHasTime)>0)return!1 -if(0===y.config.enable.length&&0===y.config.disable.length)return!0 +for(var r=v.config.showMonths;r--;)v.weekdayContainer.children[r].innerHTML="\n \n "+t.join("")+"\n \n "}}function Y(e,t){void 0===t&&(t=!0) +var r=t?e:e-v.currentMonth +r<0&&!0===v._hidePrevMonthArrow||r>0&&!0===v._hideNextMonthArrow||(v.currentMonth+=r,(v.currentMonth<0||v.currentMonth>11)&&(v.currentYear+=v.currentMonth>11?1:-1,v.currentMonth=(v.currentMonth+12)%12,he("onYearChange"),q()),z(),he("onMonthChange"),me())}function K(e){return!(!v.config.appendTo||!v.config.appendTo.contains(e))||v.calendarContainer.contains(e)}function J(e){if(v.isOpen&&!v.config.inline){var t="function"==typeof(a=e).composedPath?a.composedPath()[0]:a.target,r=K(t),n=t===v.input||t===v.altInput||v.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(v.input)||~e.path.indexOf(v.altInput)),i="blur"===e.type?n&&e.relatedTarget&&!K(e.relatedTarget):!n&&!r&&!K(e.relatedTarget),o=!v.config.ignoredFocusElements.some((function(e){return e.contains(t)})) +i&&o&&(void 0!==v.timeContainer&&void 0!==v.minuteElement&&void 0!==v.hourElement&&O(),v.close(),"range"===v.config.mode&&1===v.selectedDates.length&&(v.clear(!1),v.redraw()))}var a}function $(e){if(!(!e||v.config.minDate&&ev.config.maxDate.getFullYear())){var t=e,r=v.currentYear!==t +v.currentYear=t||v.currentYear,v.config.maxDate&&v.currentYear===v.config.maxDate.getFullYear()?v.currentMonth=Math.min(v.config.maxDate.getMonth(),v.currentMonth):v.config.minDate&&v.currentYear===v.config.minDate.getFullYear()&&(v.currentMonth=Math.max(v.config.minDate.getMonth(),v.currentMonth)),r&&(v.redraw(),he("onYearChange"),q())}}function Z(e,t){void 0===t&&(t=!0) +var r=v.parseDate(e,void 0,t) +if(v.config.minDate&&r&&g(r,v.config.minDate,void 0!==t?t:!v.minDateHasTime)<0||v.config.maxDate&&r&&g(r,v.config.maxDate,void 0!==t?t:!v.maxDateHasTime)>0)return!1 +if(0===v.config.enable.length&&0===v.config.disable.length)return!0 if(void 0===r)return!1 -for(var n=y.config.enable.length>0,i=n?y.config.enable:y.config.disable,o=0,a=void 0;o0,i=n?v.config.enable:v.config.disable,o=0,a=void 0;o=a.from.getTime()&&r.getTime()<=a.to.getTime())return n}return!n}function Q(e){return void 0!==y.daysContainer&&(-1===e.className.indexOf("hidden")&&y.daysContainer.contains(e))}function X(e){var t=e.target===y._input,r=y.config.allowInput,n=y.isOpen&&(!r||!t),i=y.config.inline&&t&&!r -if(13===e.keyCode&&t){if(r)return y.setDate(y._input.value,!0,e.target===y.altInput?y.config.altFormat:y.config.dateFormat),e.target.blur() -y.open()}else if(K(e.target)||n||i){var o=!!y.timeContainer&&y.timeContainer.contains(e.target) +if("string"==typeof a&&void 0!==r){var s=v.parseDate(a,void 0,!0) +return s&&s.getTime()===r.getTime()?n:!n}if("object"==typeof a&&void 0!==r&&a.from&&a.to&&r.getTime()>=a.from.getTime()&&r.getTime()<=a.to.getTime())return n}return!n}function Q(e){return void 0!==v.daysContainer&&(-1===e.className.indexOf("hidden")&&v.daysContainer.contains(e))}function X(e){var t=e.target===v._input,r=v.config.allowInput,n=v.isOpen&&(!r||!t),i=v.config.inline&&t&&!r +if(13===e.keyCode&&t){if(r)return v.setDate(v._input.value,!0,e.target===v.altInput?v.config.altFormat:v.config.dateFormat),e.target.blur() +v.open()}else if(K(e.target)||n||i){var o=!!v.timeContainer&&v.timeContainer.contains(e.target) switch(e.keyCode){case 13:o?(e.preventDefault(),O(),se()):ue(e) break case 27:e.preventDefault(),se() break -case 8:case 46:t&&!y.config.allowInput&&(e.preventDefault(),y.clear()) +case 8:case 46:t&&!v.config.allowInput&&(e.preventDefault(),v.clear()) break -case 37:case 39:if(o||t)y.hourElement&&y.hourElement.focus() -else if(e.preventDefault(),void 0!==y.daysContainer&&(!1===r||document.activeElement&&Q(document.activeElement))){var a=39===e.keyCode?1:-1 -e.ctrlKey?(e.stopPropagation(),G(a),F(B(1),0)):F(void 0,a)}break +case 37:case 39:if(o||t)v.hourElement&&v.hourElement.focus() +else if(e.preventDefault(),void 0!==v.daysContainer&&(!1===r||document.activeElement&&Q(document.activeElement))){var a=39===e.keyCode?1:-1 +e.ctrlKey?(e.stopPropagation(),Y(a),F(L(1),0)):F(void 0,a)}break case 38:case 40:e.preventDefault() var s=40===e.keyCode?1:-1 -y.daysContainer&&void 0!==e.target.$i||e.target===y.input||e.target===y.altInput?e.ctrlKey?(e.stopPropagation(),J(y.currentYear-s),F(B(1),0)):o||F(void 0,7*s):e.target===y.currentYearElement?J(y.currentYear-s):y.config.enableTime&&(!o&&y.hourElement&&y.hourElement.focus(),O(e),y._debouncedChange()) +v.daysContainer&&void 0!==e.target.$i||e.target===v.input||e.target===v.altInput?e.ctrlKey?(e.stopPropagation(),$(v.currentYear-s),F(L(1),0)):o||F(void 0,7*s):e.target===v.currentYearElement?$(v.currentYear-s):v.config.enableTime&&(!o&&v.hourElement&&v.hourElement.focus(),O(e),v._debouncedChange()) break -case 9:if(o){var u=[y.hourElement,y.minuteElement,y.secondElement,y.amPM].concat(y.pluginElements).filter((function(e){return e})),c=u.indexOf(e.target) +case 9:if(o){var u=[v.hourElement,v.minuteElement,v.secondElement,v.amPM].concat(v.pluginElements).filter((function(e){return e})),c=u.indexOf(e.target) if(-1!==c){var l=u[c+(e.shiftKey?-1:1)] -e.preventDefault(),(l||y._input).focus()}}else!y.config.noCalendar&&y.daysContainer&&y.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),y._input.focus())}}if(void 0!==y.amPM&&e.target===y.amPM)switch(e.key){case y.l10n.amPM[0].charAt(0):case y.l10n.amPM[0].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[0],E(),ve() -break -case y.l10n.amPM[1].charAt(0):case y.l10n.amPM[1].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[1],E(),ve()}(t||K(e.target))&&he("onKeyDown",e)}function ee(e){if(1===y.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():y.days.firstElementChild.dateObj.getTime(),r=y.parseDate(y.selectedDates[0],void 0,!0).getTime(),n=Math.min(t,y.selectedDates[0].getTime()),i=Math.max(t,y.selectedDates[0].getTime()),o=!1,a=0,s=0,u=n;un&&ua)?a=u:u>r&&(!s||u0&&d0&&d>s -return p?(h.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){h.classList.remove(e)})),"continue"):o&&!p?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){h.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=y.selectedDates[0].getTime()?"startRange":"endRange"),rt&&d===r&&h.classList.add("endRange"),d>=a&&(0===s||d<=s)&&(c=r,f=t,(u=d)>Math.min(c,f)&&u0||r.getMinutes()>0||r.getSeconds()>0),y.selectedDates&&(y.selectedDates=y.selectedDates.filter((function(e){return Z(e)})),y.selectedDates.length||"min"!==e||S(r),ve()),y.daysContainer&&(ae(),void 0!==r?y.currentYearElement[e]=r.getFullYear().toString():y.currentYearElement.removeAttribute(e),y.currentYearElement.disabled=!!n&&void 0!==r&&n.getFullYear()===r.getFullYear())}}function ie(){"object"!=typeof y.config.locale&&void 0===k.l10ns[y.config.locale]&&y.config.errorHandler(new Error("flatpickr: invalid locale "+y.config.locale)),y.l10n=e({},k.l10ns.default,"object"==typeof y.config.locale?y.config.locale:"default"!==y.config.locale?k.l10ns[y.config.locale]:void 0),m.K="("+y.l10n.amPM[0]+"|"+y.l10n.amPM[1]+"|"+y.l10n.amPM[0].toLowerCase()+"|"+y.l10n.amPM[1].toLowerCase()+")",void 0===e({},p,JSON.parse(JSON.stringify(h.dataset||{}))).time_24hr&&void 0===k.defaultConfig.time_24hr&&(y.config.time_24hr=y.l10n.time_24hr),y.formatDate=v(y),y.parseDate=b({config:y.config,l10n:y.l10n})}function oe(e){if(void 0!==y.calendarContainer){he("onPreCalendarPosition") -var t=e||y._positionElement,r=Array.prototype.reduce.call(y.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),n=y.calendarContainer.offsetWidth,i=y.config.position.split(" "),o=i[0],a=i.length>1?i[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,l="above"===o||"below"!==o&&cr,f=window.pageYOffset+s.top+(l?-r-2:t.offsetHeight+2) -if(u(y.calendarContainer,"arrowTop",!l),u(y.calendarContainer,"arrowBottom",l),!y.config.inline){var h=window.pageXOffset+s.left-(null!=a&&"center"===a?(n-s.width)/2:0),d=window.document.body.offsetWidth-(window.pageXOffset+s.right),p=h+n>window.document.body.offsetWidth,m=d+n>window.document.body.offsetWidth -if(u(y.calendarContainer,"rightMost",p),!y.config.static)if(y.calendarContainer.style.top=f+"px",p)if(m){var v=document.styleSheets[0] -if(void 0===v)return -var b=window.document.body.offsetWidth,g=Math.max(0,b/2-n/2),w=v.cssRules.length,_="{left:"+s.left+"px;right:auto;}" -u(y.calendarContainer,"rightMost",!1),u(y.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+_,w),y.calendarContainer.style.left=g+"px",y.calendarContainer.style.right="auto"}else y.calendarContainer.style.left="auto",y.calendarContainer.style.right=d+"px" -else y.calendarContainer.style.left=h+"px",y.calendarContainer.style.right="auto"}}}function ae(){y.config.noCalendar||y.isMobile||(me(),z())}function se(){y._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(y.close,0):y.close()}function ue(e){e.preventDefault(),e.stopPropagation() +e.preventDefault(),(l||v._input).focus()}}else!v.config.noCalendar&&v.daysContainer&&v.daysContainer.contains(e.target)&&e.shiftKey&&(e.preventDefault(),v._input.focus())}}if(void 0!==v.amPM&&e.target===v.amPM)switch(e.key){case v.l10n.amPM[0].charAt(0):case v.l10n.amPM[0].charAt(0).toLowerCase():v.amPM.textContent=v.l10n.amPM[0],E(),ye() +break +case v.l10n.amPM[1].charAt(0):case v.l10n.amPM[1].charAt(0).toLowerCase():v.amPM.textContent=v.l10n.amPM[1],E(),ye()}(t||K(e.target))&&he("onKeyDown",e)}function ee(e){if(1===v.selectedDates.length&&(!e||e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():v.days.firstElementChild.dateObj.getTime(),r=v.parseDate(v.selectedDates[0],void 0,!0).getTime(),n=Math.min(t,v.selectedDates[0].getTime()),i=Math.max(t,v.selectedDates[0].getTime()),o=!1,a=0,s=0,u=n;un&&ua)?a=u:u>r&&(!s||u0&&d0&&d>s +return p?(h.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){h.classList.remove(e)})),"continue"):o&&!p?"continue":(["startRange","inRange","endRange","notAllowed"].forEach((function(e){h.classList.remove(e)})),void(void 0!==e&&(e.classList.add(t<=v.selectedDates[0].getTime()?"startRange":"endRange"),rt&&d===r&&h.classList.add("endRange"),d>=a&&(0===s||d<=s)&&(c=r,f=t,(u=d)>Math.min(c,f)&&u0||r.getMinutes()>0||r.getSeconds()>0),v.selectedDates&&(v.selectedDates=v.selectedDates.filter((function(e){return Z(e)})),v.selectedDates.length||"min"!==e||S(r),ye()),v.daysContainer&&(ae(),void 0!==r?v.currentYearElement[e]=r.getFullYear().toString():v.currentYearElement.removeAttribute(e),v.currentYearElement.disabled=!!n&&void 0!==r&&n.getFullYear()===r.getFullYear())}}function ie(){"object"!=typeof v.config.locale&&void 0===x.l10ns[v.config.locale]&&v.config.errorHandler(new Error("flatpickr: invalid locale "+v.config.locale)),v.l10n=e({},x.l10ns.default,"object"==typeof v.config.locale?v.config.locale:"default"!==v.config.locale?x.l10ns[v.config.locale]:void 0),m.K="("+v.l10n.amPM[0]+"|"+v.l10n.amPM[1]+"|"+v.l10n.amPM[0].toLowerCase()+"|"+v.l10n.amPM[1].toLowerCase()+")",void 0===e({},p,JSON.parse(JSON.stringify(h.dataset||{}))).time_24hr&&void 0===x.defaultConfig.time_24hr&&(v.config.time_24hr=v.l10n.time_24hr),v.formatDate=y(v),v.parseDate=b({config:v.config,l10n:v.l10n})}function oe(e){if(void 0!==v.calendarContainer){he("onPreCalendarPosition") +var t=e||v._positionElement,r=Array.prototype.reduce.call(v.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),n=v.calendarContainer.offsetWidth,i=v.config.position.split(" "),o=i[0],a=i.length>1?i[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,l="above"===o||"below"!==o&&cr,f=window.pageYOffset+s.top+(l?-r-2:t.offsetHeight+2) +if(u(v.calendarContainer,"arrowTop",!l),u(v.calendarContainer,"arrowBottom",l),!v.config.inline){var h=window.pageXOffset+s.left-(null!=a&&"center"===a?(n-s.width)/2:0),d=window.document.body.offsetWidth-(window.pageXOffset+s.right),p=h+n>window.document.body.offsetWidth,m=d+n>window.document.body.offsetWidth +if(u(v.calendarContainer,"rightMost",p),!v.config.static)if(v.calendarContainer.style.top=f+"px",p)if(m){var y=document.styleSheets[0] +if(void 0===y)return +var b=window.document.body.offsetWidth,g=Math.max(0,b/2-n/2),w=y.cssRules.length,_="{left:"+s.left+"px;right:auto;}" +u(v.calendarContainer,"rightMost",!1),u(v.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+_,w),v.calendarContainer.style.left=g+"px",v.calendarContainer.style.right="auto"}else v.calendarContainer.style.left="auto",v.calendarContainer.style.right=d+"px" +else v.calendarContainer.style.left=h+"px",v.calendarContainer.style.right="auto"}}}function ae(){v.config.noCalendar||v.isMobile||(me(),z())}function se(){v._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(v.close,0):v.close()}function ue(e){e.preventDefault(),e.stopPropagation() var t=function e(t,r){return r(t)?t:t.parentNode?e(t.parentNode,r):void 0}(e.target,(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")})) -if(void 0!==t){var r=t,n=y.latestSelectedDateObj=new Date(r.dateObj.getTime()),i=(n.getMonth()y.currentMonth+y.config.showMonths-1)&&"range"!==y.config.mode -if(y.selectedDateElem=r,"single"===y.config.mode)y.selectedDates=[n] -else if("multiple"===y.config.mode){var o=pe(n) -o?y.selectedDates.splice(parseInt(o),1):y.selectedDates.push(n)}else"range"===y.config.mode&&(2===y.selectedDates.length&&y.clear(!1,!1),y.latestSelectedDateObj=n,y.selectedDates.push(n),0!==g(n,y.selectedDates[0],!0)&&y.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))) -if(E(),i){var a=y.currentYear!==n.getFullYear() -y.currentYear=n.getFullYear(),y.currentMonth=n.getMonth(),a&&(he("onYearChange"),H()),he("onMonthChange")}if(me(),z(),ve(),y.config.enableTime&&setTimeout((function(){return y.showTimeInput=!0}),50),i||"range"===y.config.mode||1!==y.config.showMonths?void 0!==y.selectedDateElem&&void 0===y.hourElement&&y.selectedDateElem&&y.selectedDateElem.focus():L(r),void 0!==y.hourElement&&void 0!==y.hourElement&&y.hourElement.focus(),y.config.closeOnSelect){var s="single"===y.config.mode&&!y.config.enableTime,u="range"===y.config.mode&&2===y.selectedDates.length&&!y.config.enableTime;(s||u)&&se()}R()}}y.parseDate=b({config:y.config,l10n:y.l10n}),y._handlers=[],y.pluginElements=[],y.loadedPlugins=[],y._bind=A,y._setHoursFromDate=S,y._positionCalendar=oe,y.changeMonth=G,y.changeYear=J,y.clear=function(e,t){void 0===e&&(e=!0) +if(void 0!==t){var r=t,n=v.latestSelectedDateObj=new Date(r.dateObj.getTime()),i=(n.getMonth()v.currentMonth+v.config.showMonths-1)&&"range"!==v.config.mode +if(v.selectedDateElem=r,"single"===v.config.mode)v.selectedDates=[n] +else if("multiple"===v.config.mode){var o=pe(n) +o?v.selectedDates.splice(parseInt(o),1):v.selectedDates.push(n)}else"range"===v.config.mode&&(2===v.selectedDates.length&&v.clear(!1,!1),v.latestSelectedDateObj=n,v.selectedDates.push(n),0!==g(n,v.selectedDates[0],!0)&&v.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))) +if(E(),i){var a=v.currentYear!==n.getFullYear() +v.currentYear=n.getFullYear(),v.currentMonth=n.getMonth(),a&&(he("onYearChange"),q()),he("onMonthChange")}if(me(),z(),ye(),v.config.enableTime&&setTimeout((function(){return v.showTimeInput=!0}),50),i||"range"===v.config.mode||1!==v.config.showMonths?void 0!==v.selectedDateElem&&void 0===v.hourElement&&v.selectedDateElem&&v.selectedDateElem.focus():B(r),void 0!==v.hourElement&&void 0!==v.hourElement&&v.hourElement.focus(),v.config.closeOnSelect){var s="single"===v.config.mode&&!v.config.enableTime,u="range"===v.config.mode&&2===v.selectedDates.length&&!v.config.enableTime;(s||u)&&se()}T()}}v.parseDate=b({config:v.config,l10n:v.l10n}),v._handlers=[],v.pluginElements=[],v.loadedPlugins=[],v._bind=j,v._setHoursFromDate=S,v._positionCalendar=oe,v.changeMonth=Y,v.changeYear=$,v.clear=function(e,t){void 0===e&&(e=!0) void 0===t&&(t=!0) -y.input.value="",void 0!==y.altInput&&(y.altInput.value="") -void 0!==y.mobileInput&&(y.mobileInput.value="") -y.selectedDates=[],y.latestSelectedDateObj=void 0,!0===t&&(y.currentYear=y._initialDate.getFullYear(),y.currentMonth=y._initialDate.getMonth()) -y.showTimeInput=!1,!0===y.config.enableTime&&P() -y.redraw(),e&&he("onChange")},y.close=function(){y.isOpen=!1,y.isMobile||(void 0!==y.calendarContainer&&y.calendarContainer.classList.remove("open"),void 0!==y._input&&y._input.classList.remove("active")) -he("onClose")},y._createElement=c,y.destroy=function(){void 0!==y.config&&he("onDestroy") -for(var e=y._handlers.length;e--;){var t=y._handlers[e] -t.element.removeEventListener(t.event,t.handler,t.options)}if(y._handlers=[],y.mobileInput)y.mobileInput.parentNode&&y.mobileInput.parentNode.removeChild(y.mobileInput),y.mobileInput=void 0 -else if(y.calendarContainer&&y.calendarContainer.parentNode)if(y.config.static&&y.calendarContainer.parentNode){var r=y.calendarContainer.parentNode +v.input.value="",void 0!==v.altInput&&(v.altInput.value="") +void 0!==v.mobileInput&&(v.mobileInput.value="") +v.selectedDates=[],v.latestSelectedDateObj=void 0,!0===t&&(v.currentYear=v._initialDate.getFullYear(),v.currentMonth=v._initialDate.getMonth()) +v.showTimeInput=!1,!0===v.config.enableTime&&P() +v.redraw(),e&&he("onChange")},v.close=function(){v.isOpen=!1,v.isMobile||(void 0!==v.calendarContainer&&v.calendarContainer.classList.remove("open"),void 0!==v._input&&v._input.classList.remove("active")) +he("onClose")},v._createElement=c,v.destroy=function(){void 0!==v.config&&he("onDestroy") +for(var e=v._handlers.length;e--;){var t=v._handlers[e] +t.element.removeEventListener(t.event,t.handler,t.options)}if(v._handlers=[],v.mobileInput)v.mobileInput.parentNode&&v.mobileInput.parentNode.removeChild(v.mobileInput),v.mobileInput=void 0 +else if(v.calendarContainer&&v.calendarContainer.parentNode)if(v.config.static&&v.calendarContainer.parentNode){var r=v.calendarContainer.parentNode if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r) -r.parentNode.removeChild(r)}}else y.calendarContainer.parentNode.removeChild(y.calendarContainer) -y.altInput&&(y.input.type="text",y.altInput.parentNode&&y.altInput.parentNode.removeChild(y.altInput),delete y.altInput) -y.input&&(y.input.type=y.input._type,y.input.classList.remove("flatpickr-input"),y.input.removeAttribute("readonly"),y.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete y[e]}catch(t){}}))},y.isEnabled=Z,y.jumpToDate=C,y.open=function(e,t){void 0===t&&(t=y._positionElement) -if(!0===y.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==y.mobileInput&&(y.mobileInput.focus(),y.mobileInput.click()),void he("onOpen") -if(y._input.disabled||y.config.inline)return -var r=y.isOpen -y.isOpen=!0,r||(y.calendarContainer.classList.add("open"),y._input.classList.add("active"),he("onOpen"),oe(t)) -!0===y.config.enableTime&&!0===y.config.noCalendar&&(0===y.selectedDates.length&&re(),!1!==y.config.allowInput||void 0!==e&&y.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return y.hourElement.select()}),50))},y.redraw=ae,y.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(y.config,e),e)void 0!==ce[n]&&ce[n].forEach((function(e){return e()})) -else y.config[e]=r,void 0!==ce[e]?ce[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(y.config[e]=s(r)) -y.redraw(),ve(!1)},y.setDate=function(e,t,r){void 0===t&&(t=!1) -void 0===r&&(r=y.config.dateFormat) -if(0!==e&&!e||e instanceof Array&&0===e.length)return y.clear(t) -le(e,r),y.showTimeInput=y.selectedDates.length>0,y.latestSelectedDateObj=y.selectedDates[y.selectedDates.length-1],y.redraw(),C(),S(),0===y.selectedDates.length&&y.clear(!1) -ve(t),t&&he("onChange")},y.toggle=function(e){if(!0===y.isOpen)return y.close() -y.open(e)} -var ce={locale:[ie,Y],showMonths:[V,x,W],minDate:[C],maxDate:[C]} +r.parentNode.removeChild(r)}}else v.calendarContainer.parentNode.removeChild(v.calendarContainer) +v.altInput&&(v.input.type="text",v.altInput.parentNode&&v.altInput.parentNode.removeChild(v.altInput),delete v.altInput) +v.input&&(v.input.type=v.input._type,v.input.classList.remove("flatpickr-input"),v.input.removeAttribute("readonly"),v.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete v[e]}catch(t){}}))},v.isEnabled=Z,v.jumpToDate=C,v.open=function(e,t){void 0===t&&(t=v._positionElement) +if(!0===v.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),void 0!==v.mobileInput&&(v.mobileInput.focus(),v.mobileInput.click()),void he("onOpen") +if(v._input.disabled||v.config.inline)return +var r=v.isOpen +v.isOpen=!0,r||(v.calendarContainer.classList.add("open"),v._input.classList.add("active"),he("onOpen"),oe(t)) +!0===v.config.enableTime&&!0===v.config.noCalendar&&(0===v.selectedDates.length&&re(),!1!==v.config.allowInput||void 0!==e&&v.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return v.hourElement.select()}),50))},v.redraw=ae,v.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(v.config,e),e)void 0!==ce[n]&&ce[n].forEach((function(e){return e()})) +else v.config[e]=r,void 0!==ce[e]?ce[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(v.config[e]=s(r)) +v.redraw(),ye(!1)},v.setDate=function(e,t,r){void 0===t&&(t=!1) +void 0===r&&(r=v.config.dateFormat) +if(0!==e&&!e||e instanceof Array&&0===e.length)return v.clear(t) +le(e,r),v.showTimeInput=v.selectedDates.length>0,v.latestSelectedDateObj=v.selectedDates[v.selectedDates.length-1],v.redraw(),C(),S(),0===v.selectedDates.length&&v.clear(!1) +ye(t),t&&he("onChange")},v.toggle=function(e){if(!0===v.isOpen)return v.close() +v.open(e)} +var ce={locale:[ie,G],showMonths:[V,k,W],minDate:[C],maxDate:[C]} function le(e,t){var r=[] -if(e instanceof Array)r=e.map((function(e){return y.parseDate(e,t)})) -else if(e instanceof Date||"number"==typeof e)r=[y.parseDate(e,t)] -else if("string"==typeof e)switch(y.config.mode){case"single":case"time":r=[y.parseDate(e,t)] -break -case"multiple":r=e.split(y.config.conjunction).map((function(e){return y.parseDate(e,t)})) -break -case"range":r=e.split(y.l10n.rangeSeparator).map((function(e){return y.parseDate(e,t)}))}else y.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e))) -y.selectedDates=r.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===y.config.mode&&y.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function fe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?y.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:y.parseDate(e.from,void 0),to:y.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(e,t){if(void 0!==y.config){var r=y.config[e] -if(void 0!==r&&r.length>0)for(var n=0;r[n]&&n1||"static"===y.config.monthSelectorType?y.monthElements[t].textContent=d(r.getMonth(),y.config.shorthandCurrentMonth,y.l10n)+" ":y.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),y._hidePrevMonthArrow=void 0!==y.config.minDate&&(y.currentYear===y.config.minDate.getFullYear()?y.currentMonth<=y.config.minDate.getMonth():y.currentYeary.config.maxDate.getMonth():y.currentYear>y.config.maxDate.getFullYear()))}function ye(e){return y.selectedDates.map((function(t){return y.formatDate(t,e)})).filter((function(e,t,r){return"range"!==y.config.mode||y.config.enableTime||r.indexOf(e)===t})).join("range"!==y.config.mode?y.config.conjunction:y.l10n.rangeSeparator)}function ve(e){void 0===e&&(e=!0),void 0!==y.mobileInput&&y.mobileFormatStr&&(y.mobileInput.value=void 0!==y.latestSelectedDateObj?y.formatDate(y.latestSelectedDateObj,y.mobileFormatStr):""),y.input.value=ye(y.config.dateFormat),void 0!==y.altInput&&(y.altInput.value=ye(y.config.altFormat)),!1!==e&&he("onValueUpdate")}function be(e){var t=y.prevMonthNav.contains(e.target),r=y.nextMonthNav.contains(e.target) -t||r?G(t?-1:1):y.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?y.changeYear(y.currentYear+1):e.target.classList.contains("arrowDown")&&y.changeYear(y.currentYear-1)}return function(){y.element=y.input=h,y.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},p,JSON.parse(JSON.stringify(h.dataset||{}))),o={} -y.config.parseDate=i.parseDate,y.config.formatDate=i.formatDate,Object.defineProperty(y.config,"enable",{get:function(){return y.config._enable},set:function(e){y.config._enable=fe(e)}}),Object.defineProperty(y.config,"disable",{get:function(){return y.config._disable},set:function(e){y.config._disable=fe(e)}}) +if(e instanceof Array)r=e.map((function(e){return v.parseDate(e,t)})) +else if(e instanceof Date||"number"==typeof e)r=[v.parseDate(e,t)] +else if("string"==typeof e)switch(v.config.mode){case"single":case"time":r=[v.parseDate(e,t)] +break +case"multiple":r=e.split(v.config.conjunction).map((function(e){return v.parseDate(e,t)})) +break +case"range":r=e.split(v.l10n.rangeSeparator).map((function(e){return v.parseDate(e,t)}))}else v.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e))) +v.selectedDates=r.filter((function(e){return e instanceof Date&&Z(e,!1)})),"range"===v.config.mode&&v.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function fe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?v.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:v.parseDate(e.from,void 0),to:v.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(e,t){if(void 0!==v.config){var r=v.config[e] +if(void 0!==r&&r.length>0)for(var n=0;r[n]&&n1||"static"===v.config.monthSelectorType?v.monthElements[t].textContent=d(r.getMonth(),v.config.shorthandCurrentMonth,v.l10n)+" ":v.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),v._hidePrevMonthArrow=void 0!==v.config.minDate&&(v.currentYear===v.config.minDate.getFullYear()?v.currentMonth<=v.config.minDate.getMonth():v.currentYearv.config.maxDate.getMonth():v.currentYear>v.config.maxDate.getFullYear()))}function ve(e){return v.selectedDates.map((function(t){return v.formatDate(t,e)})).filter((function(e,t,r){return"range"!==v.config.mode||v.config.enableTime||r.indexOf(e)===t})).join("range"!==v.config.mode?v.config.conjunction:v.l10n.rangeSeparator)}function ye(e){void 0===e&&(e=!0),void 0!==v.mobileInput&&v.mobileFormatStr&&(v.mobileInput.value=void 0!==v.latestSelectedDateObj?v.formatDate(v.latestSelectedDateObj,v.mobileFormatStr):""),v.input.value=ve(v.config.dateFormat),void 0!==v.altInput&&(v.altInput.value=ve(v.config.altFormat)),!1!==e&&he("onValueUpdate")}function be(e){var t=v.prevMonthNav.contains(e.target),r=v.nextMonthNav.contains(e.target) +t||r?Y(t?-1:1):v.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?v.changeYear(v.currentYear+1):e.target.classList.contains("arrowDown")&&v.changeYear(v.currentYear-1)}return function(){v.element=v.input=h,v.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e({},p,JSON.parse(JSON.stringify(h.dataset||{}))),o={} +v.config.parseDate=i.parseDate,v.config.formatDate=i.formatDate,Object.defineProperty(v.config,"enable",{get:function(){return v.config._enable},set:function(e){v.config._enable=fe(e)}}),Object.defineProperty(v.config,"disable",{get:function(){return v.config._disable},set:function(e){v.config._disable=fe(e)}}) var a="time"===i.mode -if(!i.dateFormat&&(i.enableTime||a)){var u=k.defaultConfig.dateFormat||r.dateFormat -o.dateFormat=i.noCalendar||a?"H:i"+(i.enableSeconds?":S":""):u+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||a)&&!i.altFormat){var c=k.defaultConfig.altFormat||r.altFormat -o.altFormat=i.noCalendar||a?"h:i"+(i.enableSeconds?":S K":" K"):c+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(y.config.altInputClass=y.input.className+" "+y.config.altInputClass) -Object.defineProperty(y.config,"minDate",{get:function(){return y.config._minDate},set:ne("min")}),Object.defineProperty(y.config,"maxDate",{get:function(){return y.config._maxDate},set:ne("max")}) -var l=function(e){return function(t){y.config["min"===e?"_minTime":"_maxTime"]=y.parseDate(t,"H:i:S")}} -Object.defineProperty(y.config,"minTime",{get:function(){return y.config._minTime},set:l("min")}),Object.defineProperty(y.config,"maxTime",{get:function(){return y.config._maxTime},set:l("max")}),"time"===i.mode&&(y.config.noCalendar=!0,y.config.enableTime=!0) -Object.assign(y.config,o,i) -for(var f=0;f-1?y.config[m]=s(d[m]).map(_).concat(y.config[m]):void 0===i[m]&&(y.config[m]=d[m])}he("onParseConfig")}(),ie(),function(){if(y.input=y.config.wrap?h.querySelector("[data-input]"):h,!y.input)return void y.config.errorHandler(new Error("Invalid input element specified")) -y.input._type=y.input.type,y.input.type="text",y.input.classList.add("flatpickr-input"),y._input=y.input,y.config.altInput&&(y.altInput=c(y.input.nodeName,y.config.altInputClass),y._input=y.altInput,y.altInput.placeholder=y.input.placeholder,y.altInput.disabled=y.input.disabled,y.altInput.required=y.input.required,y.altInput.tabIndex=y.input.tabIndex,y.altInput.type="text",y.input.setAttribute("type","hidden"),!y.config.static&&y.input.parentNode&&y.input.parentNode.insertBefore(y.altInput,y.input.nextSibling)) -y.config.allowInput||y._input.setAttribute("readonly","readonly") -y._positionElement=y.config.positionElement||y._input}(),function(){y.selectedDates=[],y.now=y.parseDate(y.config.now)||new Date -var e=y.config.defaultDate||("INPUT"!==y.input.nodeName&&"TEXTAREA"!==y.input.nodeName||!y.input.placeholder||y.input.value!==y.input.placeholder?y.input.value:null) -e&&le(e,y.config.dateFormat) -y._initialDate=y.selectedDates.length>0?y.selectedDates[0]:y.config.minDate&&y.config.minDate.getTime()>y.now.getTime()?y.config.minDate:y.config.maxDate&&y.config.maxDate.getTime()0&&(y.latestSelectedDateObj=y.selectedDates[0]) -void 0!==y.config.minTime&&(y.config.minTime=y.parseDate(y.config.minTime,"H:i")) -void 0!==y.config.maxTime&&(y.config.maxTime=y.parseDate(y.config.maxTime,"H:i")) -y.minDateHasTime=!!y.config.minDate&&(y.config.minDate.getHours()>0||y.config.minDate.getMinutes()>0||y.config.minDate.getSeconds()>0),y.maxDateHasTime=!!y.config.maxDate&&(y.config.maxDate.getHours()>0||y.config.maxDate.getMinutes()>0||y.config.maxDate.getSeconds()>0),Object.defineProperty(y,"showTimeInput",{get:function(){return y._showTimeInput},set:function(e){y._showTimeInput=e,y.calendarContainer&&u(y.calendarContainer,"showTimeInput",e),y.isOpen&&oe()}})}(),y.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=y.currentMonth),void 0===t&&(t=y.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:y.l10n.daysInMonth[e]}},y.isMobile||function(){var e=window.document.createDocumentFragment() -if(y.calendarContainer=c("div","flatpickr-calendar"),y.calendarContainer.tabIndex=-1,!y.config.noCalendar){if(e.appendChild((y.monthNav=c("div","flatpickr-months"),y.yearElements=[],y.monthElements=[],y.prevMonthNav=c("span","flatpickr-prev-month"),y.prevMonthNav.innerHTML=y.config.prevArrow,y.nextMonthNav=c("span","flatpickr-next-month"),y.nextMonthNav.innerHTML=y.config.nextArrow,V(),Object.defineProperty(y,"_hidePrevMonthArrow",{get:function(){return y.__hidePrevMonthArrow},set:function(e){y.__hidePrevMonthArrow!==e&&(u(y.prevMonthNav,"flatpickr-disabled",e),y.__hidePrevMonthArrow=e)}}),Object.defineProperty(y,"_hideNextMonthArrow",{get:function(){return y.__hideNextMonthArrow},set:function(e){y.__hideNextMonthArrow!==e&&(u(y.nextMonthNav,"flatpickr-disabled",e),y.__hideNextMonthArrow=e)}}),y.currentYearElement=y.yearElements[0],me(),y.monthNav)),y.innerContainer=c("div","flatpickr-innerContainer"),y.config.weekNumbers){var t=function(){y.calendarContainer.classList.add("hasWeeks") +if(!i.dateFormat&&(i.enableTime||a)){var u=x.defaultConfig.dateFormat||r.dateFormat +o.dateFormat=i.noCalendar||a?"H:i"+(i.enableSeconds?":S":""):u+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||a)&&!i.altFormat){var c=x.defaultConfig.altFormat||r.altFormat +o.altFormat=i.noCalendar||a?"h:i"+(i.enableSeconds?":S K":" K"):c+" h:i"+(i.enableSeconds?":S":"")+" K"}i.altInputClass||(v.config.altInputClass=v.input.className+" "+v.config.altInputClass) +Object.defineProperty(v.config,"minDate",{get:function(){return v.config._minDate},set:ne("min")}),Object.defineProperty(v.config,"maxDate",{get:function(){return v.config._maxDate},set:ne("max")}) +var l=function(e){return function(t){v.config["min"===e?"_minTime":"_maxTime"]=v.parseDate(t,"H:i:S")}} +Object.defineProperty(v.config,"minTime",{get:function(){return v.config._minTime},set:l("min")}),Object.defineProperty(v.config,"maxTime",{get:function(){return v.config._maxTime},set:l("max")}),"time"===i.mode&&(v.config.noCalendar=!0,v.config.enableTime=!0) +Object.assign(v.config,o,i) +for(var f=0;f-1?v.config[m]=s(d[m]).map(_).concat(v.config[m]):void 0===i[m]&&(v.config[m]=d[m])}he("onParseConfig")}(),ie(),function(){if(v.input=v.config.wrap?h.querySelector("[data-input]"):h,!v.input)return void v.config.errorHandler(new Error("Invalid input element specified")) +v.input._type=v.input.type,v.input.type="text",v.input.classList.add("flatpickr-input"),v._input=v.input,v.config.altInput&&(v.altInput=c(v.input.nodeName,v.config.altInputClass),v._input=v.altInput,v.altInput.placeholder=v.input.placeholder,v.altInput.disabled=v.input.disabled,v.altInput.required=v.input.required,v.altInput.tabIndex=v.input.tabIndex,v.altInput.type="text",v.input.setAttribute("type","hidden"),!v.config.static&&v.input.parentNode&&v.input.parentNode.insertBefore(v.altInput,v.input.nextSibling)) +v.config.allowInput||v._input.setAttribute("readonly","readonly") +v._positionElement=v.config.positionElement||v._input}(),function(){v.selectedDates=[],v.now=v.parseDate(v.config.now)||new Date +var e=v.config.defaultDate||("INPUT"!==v.input.nodeName&&"TEXTAREA"!==v.input.nodeName||!v.input.placeholder||v.input.value!==v.input.placeholder?v.input.value:null) +e&&le(e,v.config.dateFormat) +v._initialDate=v.selectedDates.length>0?v.selectedDates[0]:v.config.minDate&&v.config.minDate.getTime()>v.now.getTime()?v.config.minDate:v.config.maxDate&&v.config.maxDate.getTime()0&&(v.latestSelectedDateObj=v.selectedDates[0]) +void 0!==v.config.minTime&&(v.config.minTime=v.parseDate(v.config.minTime,"H:i")) +void 0!==v.config.maxTime&&(v.config.maxTime=v.parseDate(v.config.maxTime,"H:i")) +v.minDateHasTime=!!v.config.minDate&&(v.config.minDate.getHours()>0||v.config.minDate.getMinutes()>0||v.config.minDate.getSeconds()>0),v.maxDateHasTime=!!v.config.maxDate&&(v.config.maxDate.getHours()>0||v.config.maxDate.getMinutes()>0||v.config.maxDate.getSeconds()>0),Object.defineProperty(v,"showTimeInput",{get:function(){return v._showTimeInput},set:function(e){v._showTimeInput=e,v.calendarContainer&&u(v.calendarContainer,"showTimeInput",e),v.isOpen&&oe()}})}(),v.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=v.currentMonth),void 0===t&&(t=v.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:v.l10n.daysInMonth[e]}},v.isMobile||function(){var e=window.document.createDocumentFragment() +if(v.calendarContainer=c("div","flatpickr-calendar"),v.calendarContainer.tabIndex=-1,!v.config.noCalendar){if(e.appendChild((v.monthNav=c("div","flatpickr-months"),v.yearElements=[],v.monthElements=[],v.prevMonthNav=c("span","flatpickr-prev-month"),v.prevMonthNav.innerHTML=v.config.prevArrow,v.nextMonthNav=c("span","flatpickr-next-month"),v.nextMonthNav.innerHTML=v.config.nextArrow,V(),Object.defineProperty(v,"_hidePrevMonthArrow",{get:function(){return v.__hidePrevMonthArrow},set:function(e){v.__hidePrevMonthArrow!==e&&(u(v.prevMonthNav,"flatpickr-disabled",e),v.__hidePrevMonthArrow=e)}}),Object.defineProperty(v,"_hideNextMonthArrow",{get:function(){return v.__hideNextMonthArrow},set:function(e){v.__hideNextMonthArrow!==e&&(u(v.nextMonthNav,"flatpickr-disabled",e),v.__hideNextMonthArrow=e)}}),v.currentYearElement=v.yearElements[0],me(),v.monthNav)),v.innerContainer=c("div","flatpickr-innerContainer"),v.config.weekNumbers){var t=function(){v.calendarContainer.classList.add("hasWeeks") var e=c("div","flatpickr-weekwrapper") -e.appendChild(c("span","flatpickr-weekday",y.l10n.weekAbbreviation)) +e.appendChild(c("span","flatpickr-weekday",v.l10n.weekAbbreviation)) var t=c("div","flatpickr-weeks") return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,n=t.weekNumbers -y.innerContainer.appendChild(r),y.weekNumbers=n,y.weekWrapper=r}y.rContainer=c("div","flatpickr-rContainer"),y.rContainer.appendChild(W()),y.daysContainer||(y.daysContainer=c("div","flatpickr-days"),y.daysContainer.tabIndex=-1),z(),y.rContainer.appendChild(y.daysContainer),y.innerContainer.appendChild(y.rContainer),e.appendChild(y.innerContainer)}y.config.enableTime&&e.appendChild(function(){y.calendarContainer.classList.add("hasTime"),y.config.noCalendar&&y.calendarContainer.classList.add("noCalendar") -y.timeContainer=c("div","flatpickr-time"),y.timeContainer.tabIndex=-1 -var e=c("span","flatpickr-time-separator",":"),t=f("flatpickr-hour",{"aria-label":y.l10n.hourAriaLabel}) -y.hourElement=t.getElementsByTagName("input")[0] -var r=f("flatpickr-minute",{"aria-label":y.l10n.minuteAriaLabel}) -y.minuteElement=r.getElementsByTagName("input")[0],y.hourElement.tabIndex=y.minuteElement.tabIndex=-1,y.hourElement.value=i(y.latestSelectedDateObj?y.latestSelectedDateObj.getHours():y.config.time_24hr?y.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12 -default:return e%12}}(y.config.defaultHour)),y.minuteElement.value=i(y.latestSelectedDateObj?y.latestSelectedDateObj.getMinutes():y.config.defaultMinute),y.hourElement.setAttribute("step",y.config.hourIncrement.toString()),y.minuteElement.setAttribute("step",y.config.minuteIncrement.toString()),y.hourElement.setAttribute("min",y.config.time_24hr?"0":"1"),y.hourElement.setAttribute("max",y.config.time_24hr?"23":"12"),y.minuteElement.setAttribute("min","0"),y.minuteElement.setAttribute("max","59"),y.timeContainer.appendChild(t),y.timeContainer.appendChild(e),y.timeContainer.appendChild(r),y.config.time_24hr&&y.timeContainer.classList.add("time24hr") -if(y.config.enableSeconds){y.timeContainer.classList.add("hasSeconds") +v.innerContainer.appendChild(r),v.weekNumbers=n,v.weekWrapper=r}v.rContainer=c("div","flatpickr-rContainer"),v.rContainer.appendChild(W()),v.daysContainer||(v.daysContainer=c("div","flatpickr-days"),v.daysContainer.tabIndex=-1),z(),v.rContainer.appendChild(v.daysContainer),v.innerContainer.appendChild(v.rContainer),e.appendChild(v.innerContainer)}v.config.enableTime&&e.appendChild(function(){v.calendarContainer.classList.add("hasTime"),v.config.noCalendar&&v.calendarContainer.classList.add("noCalendar") +v.timeContainer=c("div","flatpickr-time"),v.timeContainer.tabIndex=-1 +var e=c("span","flatpickr-time-separator",":"),t=f("flatpickr-hour",{"aria-label":v.l10n.hourAriaLabel}) +v.hourElement=t.getElementsByTagName("input")[0] +var r=f("flatpickr-minute",{"aria-label":v.l10n.minuteAriaLabel}) +v.minuteElement=r.getElementsByTagName("input")[0],v.hourElement.tabIndex=v.minuteElement.tabIndex=-1,v.hourElement.value=i(v.latestSelectedDateObj?v.latestSelectedDateObj.getHours():v.config.time_24hr?v.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12 +default:return e%12}}(v.config.defaultHour)),v.minuteElement.value=i(v.latestSelectedDateObj?v.latestSelectedDateObj.getMinutes():v.config.defaultMinute),v.hourElement.setAttribute("step",v.config.hourIncrement.toString()),v.minuteElement.setAttribute("step",v.config.minuteIncrement.toString()),v.hourElement.setAttribute("min",v.config.time_24hr?"0":"1"),v.hourElement.setAttribute("max",v.config.time_24hr?"23":"12"),v.minuteElement.setAttribute("min","0"),v.minuteElement.setAttribute("max","59"),v.timeContainer.appendChild(t),v.timeContainer.appendChild(e),v.timeContainer.appendChild(r),v.config.time_24hr&&v.timeContainer.classList.add("time24hr") +if(v.config.enableSeconds){v.timeContainer.classList.add("hasSeconds") var n=f("flatpickr-second") -y.secondElement=n.getElementsByTagName("input")[0],y.secondElement.value=i(y.latestSelectedDateObj?y.latestSelectedDateObj.getSeconds():y.config.defaultSeconds),y.secondElement.setAttribute("step",y.minuteElement.getAttribute("step")),y.secondElement.setAttribute("min","0"),y.secondElement.setAttribute("max","59"),y.timeContainer.appendChild(c("span","flatpickr-time-separator",":")),y.timeContainer.appendChild(n)}y.config.time_24hr||(y.amPM=c("span","flatpickr-am-pm",y.l10n.amPM[o((y.latestSelectedDateObj?y.hourElement.value:y.config.defaultHour)>11)]),y.amPM.title=y.l10n.toggleTitle,y.amPM.tabIndex=-1,y.timeContainer.appendChild(y.amPM)) -return y.timeContainer}()) -u(y.calendarContainer,"rangeMode","range"===y.config.mode),u(y.calendarContainer,"animate",!0===y.config.animate),u(y.calendarContainer,"multiMonth",y.config.showMonths>1),y.calendarContainer.appendChild(e) -var a=void 0!==y.config.appendTo&&void 0!==y.config.appendTo.nodeType -if((y.config.inline||y.config.static)&&(y.calendarContainer.classList.add(y.config.inline?"inline":"static"),y.config.inline&&(!a&&y.element.parentNode?y.element.parentNode.insertBefore(y.calendarContainer,y._input.nextSibling):void 0!==y.config.appendTo&&y.config.appendTo.appendChild(y.calendarContainer)),y.config.static)){var s=c("div","flatpickr-wrapper") -y.element.parentNode&&y.element.parentNode.insertBefore(s,y.element),s.appendChild(y.element),y.altInput&&s.appendChild(y.altInput),s.appendChild(y.calendarContainer)}y.config.static||y.config.inline||(void 0!==y.config.appendTo?y.config.appendTo:window.document.body).appendChild(y.calendarContainer)}(),function(){y.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(y.element.querySelectorAll("[data-"+e+"]"),(function(t){return A(t,"click",y[e])}))})) -if(y.isMobile)return void function(){var e=y.config.enableTime?y.config.noCalendar?"time":"datetime-local":"date" -y.mobileInput=c("input",y.input.className+" flatpickr-mobile"),y.mobileInput.step=y.input.getAttribute("step")||"any",y.mobileInput.tabIndex=1,y.mobileInput.type=e,y.mobileInput.disabled=y.input.disabled,y.mobileInput.required=y.input.required,y.mobileInput.placeholder=y.input.placeholder,y.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",y.selectedDates.length>0&&(y.mobileInput.defaultValue=y.mobileInput.value=y.formatDate(y.selectedDates[0],y.mobileFormatStr)) -y.config.minDate&&(y.mobileInput.min=y.formatDate(y.config.minDate,"Y-m-d")) -y.config.maxDate&&(y.mobileInput.max=y.formatDate(y.config.maxDate,"Y-m-d")) -y.input.type="hidden",void 0!==y.altInput&&(y.altInput.type="hidden") -try{y.input.parentNode&&y.input.parentNode.insertBefore(y.mobileInput,y.input.nextSibling)}catch(t){}A(y.mobileInput,"change",(function(e){y.setDate(e.target.value,!1,y.mobileFormatStr),he("onChange"),he("onClose")}))}() +v.secondElement=n.getElementsByTagName("input")[0],v.secondElement.value=i(v.latestSelectedDateObj?v.latestSelectedDateObj.getSeconds():v.config.defaultSeconds),v.secondElement.setAttribute("step",v.minuteElement.getAttribute("step")),v.secondElement.setAttribute("min","0"),v.secondElement.setAttribute("max","59"),v.timeContainer.appendChild(c("span","flatpickr-time-separator",":")),v.timeContainer.appendChild(n)}v.config.time_24hr||(v.amPM=c("span","flatpickr-am-pm",v.l10n.amPM[o((v.latestSelectedDateObj?v.hourElement.value:v.config.defaultHour)>11)]),v.amPM.title=v.l10n.toggleTitle,v.amPM.tabIndex=-1,v.timeContainer.appendChild(v.amPM)) +return v.timeContainer}()) +u(v.calendarContainer,"rangeMode","range"===v.config.mode),u(v.calendarContainer,"animate",!0===v.config.animate),u(v.calendarContainer,"multiMonth",v.config.showMonths>1),v.calendarContainer.appendChild(e) +var a=void 0!==v.config.appendTo&&void 0!==v.config.appendTo.nodeType +if((v.config.inline||v.config.static)&&(v.calendarContainer.classList.add(v.config.inline?"inline":"static"),v.config.inline&&(!a&&v.element.parentNode?v.element.parentNode.insertBefore(v.calendarContainer,v._input.nextSibling):void 0!==v.config.appendTo&&v.config.appendTo.appendChild(v.calendarContainer)),v.config.static)){var s=c("div","flatpickr-wrapper") +v.element.parentNode&&v.element.parentNode.insertBefore(s,v.element),s.appendChild(v.element),v.altInput&&s.appendChild(v.altInput),s.appendChild(v.calendarContainer)}v.config.static||v.config.inline||(void 0!==v.config.appendTo?v.config.appendTo:window.document.body).appendChild(v.calendarContainer)}(),function(){v.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(v.element.querySelectorAll("[data-"+e+"]"),(function(t){return j(t,"click",v[e])}))})) +if(v.isMobile)return void function(){var e=v.config.enableTime?v.config.noCalendar?"time":"datetime-local":"date" +v.mobileInput=c("input",v.input.className+" flatpickr-mobile"),v.mobileInput.step=v.input.getAttribute("step")||"any",v.mobileInput.tabIndex=1,v.mobileInput.type=e,v.mobileInput.disabled=v.input.disabled,v.mobileInput.required=v.input.required,v.mobileInput.placeholder=v.input.placeholder,v.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",v.selectedDates.length>0&&(v.mobileInput.defaultValue=v.mobileInput.value=v.formatDate(v.selectedDates[0],v.mobileFormatStr)) +v.config.minDate&&(v.mobileInput.min=v.formatDate(v.config.minDate,"Y-m-d")) +v.config.maxDate&&(v.mobileInput.max=v.formatDate(v.config.maxDate,"Y-m-d")) +v.input.type="hidden",void 0!==v.altInput&&(v.altInput.type="hidden") +try{v.input.parentNode&&v.input.parentNode.insertBefore(v.mobileInput,v.input.nextSibling)}catch(t){}j(v.mobileInput,"change",(function(e){v.setDate(e.target.value,!1,v.mobileFormatStr),he("onChange"),he("onClose")}))}() var e=a(te,50) -y._debouncedChange=a(R,300),y.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&A(y.daysContainer,"mouseover",(function(e){"range"===y.config.mode&&ee(e.target)})) -A(window.document.body,"keydown",X),y.config.inline||y.config.static||A(window,"resize",e) -void 0!==window.ontouchstart?A(window.document,"touchstart",$):A(window.document,"mousedown",T($)) -A(window.document,"focus",$,{capture:!0}),!0===y.config.clickOpens&&(A(y._input,"focus",y.open),A(y._input,"mousedown",T(y.open))) -void 0!==y.daysContainer&&(A(y.monthNav,"mousedown",T(be)),A(y.monthNav,["keyup","increment"],j),A(y.daysContainer,"mousedown",T(ue))) -if(void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement){A(y.timeContainer,["increment"],O),A(y.timeContainer,"blur",O,{capture:!0}),A(y.timeContainer,"mousedown",T(I)),A([y.hourElement,y.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==y.secondElement&&A(y.secondElement,"focus",(function(){return y.secondElement&&y.secondElement.select()})),void 0!==y.amPM&&A(y.amPM,"mousedown",T((function(e){O(e),R()})))}}(),(y.selectedDates.length||y.config.noCalendar)&&(y.config.enableTime&&S(y.config.noCalendar?y.latestSelectedDateObj||y.config.minDate:void 0),ve(!1)),x(),y.showTimeInput=y.selectedDates.length>0||y.config.noCalendar +v._debouncedChange=a(T,300),v.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&j(v.daysContainer,"mouseover",(function(e){"range"===v.config.mode&&ee(e.target)})) +j(window.document.body,"keydown",X),v.config.inline||v.config.static||j(window,"resize",e) +void 0!==window.ontouchstart?j(window.document,"touchstart",J):j(window.document,"mousedown",R(J)) +j(window.document,"focus",J,{capture:!0}),!0===v.config.clickOpens&&(j(v._input,"focus",v.open),j(v._input,"mousedown",R(v.open))) +void 0!==v.daysContainer&&(j(v.monthNav,"mousedown",R(be)),j(v.monthNav,["keyup","increment"],A),j(v.daysContainer,"mousedown",R(ue))) +if(void 0!==v.timeContainer&&void 0!==v.minuteElement&&void 0!==v.hourElement){j(v.timeContainer,["increment"],O),j(v.timeContainer,"blur",O,{capture:!0}),j(v.timeContainer,"mousedown",R(I)),j([v.hourElement,v.minuteElement],["focus","click"],(function(e){return e.target.select()})),void 0!==v.secondElement&&j(v.secondElement,"focus",(function(){return v.secondElement&&v.secondElement.select()})),void 0!==v.amPM&&j(v.amPM,"mousedown",R((function(e){O(e),T()})))}}(),(v.selectedDates.length||v.config.noCalendar)&&(v.config.enableTime&&S(v.config.noCalendar?v.latestSelectedDateObj||v.config.minDate:void 0),ye(!1)),k(),v.showTimeInput=v.selectedDates.length>0||v.config.noCalendar var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent) -!y.isMobile&&n&&oe(),he("onReady")}(),y}function x(e,t){for(var r=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],i=0;i3&&void return delete i.initializer,delete i.value,d(o(o({},r),c),e(o(o({},i),{},{initializer:l,value:f})))(t,n,i)}))}Object.defineProperty(e,"__esModule",{value:!0}),e.keepLatestTaskGroup=e.keepLatestTask=e.enqueueTaskGroup=e.enqueueTask=e.dropTaskGroup=e.dropTask=void 0,Object.defineProperty(e,"lastValue",{enumerable:!0,get:function(){return n.default}}),e.taskGroup=e.task=e.restartableTaskGroup=e.restartableTask=void 0 var m=p(f) e.task=m -var y=p(f,{restartable:!0}) -e.restartableTask=y -var v=p(f,{drop:!0}) -e.dropTask=v +var v=p(f,{restartable:!0}) +e.restartableTask=v +var y=p(f,{drop:!0}) +e.dropTask=y var b=p(f,{keepLatest:!0}) e.keepLatestTask=b var g=p(f,{enqueue:!0}) @@ -6215,10 +6215,10 @@ var w=p(h) e.taskGroup=w var _=p(h,{restartable:!0}) e.restartableTaskGroup=_ -var x=p(h,{drop:!0}) -e.dropTaskGroup=x -var k=p(h,{keepLatest:!0}) -e.keepLatestTaskGroup=k +var k=p(h,{drop:!0}) +e.dropTaskGroup=k +var x=p(h,{keepLatest:!0}) +e.keepLatestTaskGroup=x var O=p(h,{enqueue:!0}) e.enqueueTaskGroup=O})),define("ember-concurrency-decorators/last-value",["exports","@ember-decorators/utils/decorator"],(function(e,t){"use strict" function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] @@ -6373,17 +6373,17 @@ if("Map"===r||"Set"===r)return Array.from(e) if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r")},_taskInstanceFactory:t.default,perform:function(){for(var e=arguments.length,r=new Array(e),n=0;n")},_taskInstanceFactory:t.default,perform:function(){for(var e=arguments.length,r=new Array(e),n=0;ne.length)&&(t=e.length) +for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{} +n(this,e) +var o=i.addresses,a=i.abis,s=i.ipfsConfig +this.provider=t,this.signer=r,this.options=i,this.addresses=o||{},this.abis=a||l,this.ipfs=new d(s),this.contracts={}}var t,r,a +return t=e,a=[{key:"setup",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null +return c("Kredits.setup() is deprecated use new Kredits().init() instead"),new e(t,r,{ipfsConfig:n}).init()}},{key:"for",value:function(t,r){var n,i,o=t.network,a=t.rpcUrl,u=t.wallet +return a||"local"!==o||(a="http://localhost:8545"),n=a?new s.providers.JsonRpcProvider(a):new s.getDefaultProvider(o),u?i=u.connect(n):n.getSigner&&(i=n.getSigner("0xfa77675540E550b911a6AABF3805ac17C6641ec1")),new e(n,i,r)}},{key:"availableNetworks",value:function(){return Object.keys(f)}}],(r=[{key:"init",value:function(){var e=this +return this.provider.getNetwork().then((function(t){return 0===Object.keys(e.addresses).length&&(e.addresses=f[t.chainId.toString()]),e}))}},{key:"Contributor",get:function(){return this.contractFor("Contributor")}},{key:"Contributors",get:function(){return c("Contributors is deprecated use Contributor instead"),this.contractFor("Contributor")}},{key:"Operator",get:function(){return this.Proposal}},{key:"Token",get:function(){return this.contractFor("Token")}},{key:"Contribution",get:function(){return this.contractFor("Contribution")}},{key:"Reimbursement",get:function(){return this.contractFor("Reimbursement")}},{key:"contractFor",value:function(e){if(this.contracts[e])return this.contracts[e] +var t,r,n,i=(r=(t=o(e))[0],n=t.slice(1),"".concat(r.toUpperCase()).concat(n.join(""))),a=this.addresses[i],u=this.abis[i] +if(!a||!u)throw new Error("Address or ABI not found for ".concat(i)) +var c=this.signer||this.provider,l=new s.Contract(a,u,c) +return this.contracts[e]=new h[i](l),this.contracts[e].ipfs=this.ipfs,this.contracts[e]}},{key:"preflightChecks",value:function(){return new u(this).check()}}])&&i(t.prototype,r),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}() +e.exports=p},214:function(e,t){},222:function(e,t){},224:function(e,t){function r(e,t){for(var r=0;re.length)&&(t=e.length) +for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:"filter" +return this.all().then((function(r){var n=Object.entries(e) +return r[t]((function(e){return!!e.accounts&&e.accounts.find((function(e){return n.every((function(t){var r=a(t,2),n=r[0],i=r[1] +return e[n]===i}))}))}))}))}},{key:"add",value:(n=o(regeneratorRuntime.mark((function e(t){var r,n,i,o=this,a=arguments +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},n=new y(t),e.prev=2,e.next=5,n.validate() +case 5:e.next=10 +break +case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0)) +case 10:return i=n.serialize(),e.abrupt("return",this.ipfs.add(i).then((function(e){var n,i=[t.account,e.hashDigest,e.hashFunction,e.hashSize] +return(n=o.contract).addContributor.apply(n,i.concat([r]))}))) +case 12:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(e){return n.apply(this,arguments)})},{key:"updateProfile",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{} +return this.getById(e).then(function(){var i=o(regeneratorRuntime.mark((function i(o){var a,s,u +return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=Object.assign(o,t),s=new y(a),i.prev=2,i.next=5,s.validate() +case 5:i.next=10 +break +case 7:return i.prev=7,i.t0=i.catch(2),i.abrupt("return",Promise.reject(i.t0)) +case 10:return u=s.serialize(),i.abrupt("return",r.ipfs.add(u).then((function(t){return r.contract.updateContributorProfileHash(e,t.hashDigest,t.hashFunction,t.hashSize,n)}))) +case 12:case"end":return i.stop()}}),i,null,[[2,7]])}))) +return function(e){return i.apply(this,arguments)}}())}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(v) +e.exports=g},232:function(e,t){function r(e,t,r){var n=Math.ceil(r/t) +return(e=(e=parseInt(e)||1)>n?n:e)<1?1:e}function n(e,t,r,n){var i,o,a=r*(t-1) +"asc"===e?(i=1+a,o=function(e,t){return i+t}):(i=n-a,o=function(e,t){return i-t}) +var s=a+r +return s>n&&(r-=s-n),Array.from({length:r},o)}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.order,o=t.page +i=i||"desc",o=o||{} +var a=parseInt(o.size)||25,s=r(o.number,a,e) +return n(i,s,a,e)}},233:function(e,t,r){function n(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=n.formatEther(e) +return t.asFloat?parseFloat(r):parseInt(r)}},239:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e){return function(){var t=this,r=arguments +return new Promise((function(n,o){var a=e.apply(t,r) +function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r1&&void 0!==u[1]?u[1]:{},n=new d(t),i=t.confirmedAtBlock||0,o=t.vetoed||!1,e.prev=4,e.next=7,n.validate() +case 7:e.next=12 +break +case 9:return e.prev=9,e.t0=e.catch(4),e.abrupt("return",Promise.reject(e.t0)) +case 12:return a=n.serialize(),e.abrupt("return",this.ipfs.add(a).then((function(e){var n,a=[t.amount,t.contributorId,e.hashDigest,e.hashFunction,e.hashSize,i,o] +return(n=s.contract).add.apply(n,a.concat([r]))}))) +case 14:case"end":return e.stop()}}),e,this,[[4,9]])}))),function(e){return n.apply(this,arguments)})},{key:"addContribution",value:function(){return p("The function `addContribution()` is deprecated and will be removed in the next major version. Use `add()` instead"),this.add.apply(this,arguments)}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(h) +e.exports=m},240:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r1&&void 0!==a[1]?a[1]:{},n=new h(t),e.prev=2,e.next=5,n.validate() +case 5:e.next=10 +break +case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0)) +case 10:return i=n.serialize(),e.abrupt("return",this.ipfs.add(i).then((function(e){var n,i=[t.contributorId,t.amount,e.hashDigest,e.hashFunction,e.hashSize] +return(n=o.contract).addProposal.apply(n,i.concat([r]))}))) +case 12:case"end":return e.stop()}}),e,this,[[2,7]])})),c=function(){var e=this,t=arguments +return new Promise((function(r,o){var a=n.apply(e,t) +function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)}))},function(e){return c.apply(this,arguments)})},{key:"addProposal",value:function(){return d("The function `addProposal()` is deprecated and will be removed in the next major version. Use `add()` instead"),this.add.apply(this,arguments)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(f) +e.exports=p},241:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +if(Reflect.construct.sham)return!1 +if("function"==typeof Proxy)return!0 +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=u(e) +if(t){var i=u(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t +if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined") +return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") +return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,e) +var t,r=a(n) +function n(){return i(this,n),r.apply(this,arguments)}return t=n,Object.defineProperty(t,"prototype",{writable:!1}),t}(r(118)) +e.exports=c},242:function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r1&&void 0!==f[1]?f[1]:{},n=parseInt(t.amount),i=t.token,o=t.recipientId,a=t.confirmedAtBlock||0,s=t.vetoed||!1,u=t.expenses.map((function(e){return new h(e)})),("number"!=typeof n||n<=0)&&(c="Invalid data: amount must be a positive number."),i&&""!==i||(c="Invalid data: token must be a token address."),o&&""!==o||(c="Invalid data: recipientId is required."),0===u.length&&(c="Invalid data: at least one expense item is required."),!c){e.next=13 +break}return e.abrupt("return",Promise.reject(new Error(c))) +case 13:return e.abrupt("return",Promise.all(u.map((function(e){return e.validate()}))).then((function(){var e=JSON.stringify(u.map((function(e){return e.data})),null,2) +return l.ipfs.add(e).then((function(e){var t,u=[n,i,parseInt(o),e.hashDigest,e.hashFunction,e.hashSize,a,s] +return(t=l.contract).add.apply(t,u.concat([r]))}))}))) +case 14:case"end":return e.stop()}}),e)})),c=function(){var e=this,t=arguments +return new Promise((function(r,o){var a=n.apply(e,t) +function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)}))},function(e){return c.apply(this,arguments)})}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(f) +e.exports=d},243:function(e,t,r){function n(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{} +return this.count.then((function(r){var n=f(r,t).map((function(t){return e.getById(t)})) +return Promise.all(n)}))}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(l) +e.exports=h},86:function(e,t){window._eai_r=require,window._eai_d=define},90:function(e,t,r){var n=r(237).freshApi() +n.addFormat({date:function(e){return/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(e)?null:"A valid ISO 8601 full-date string is expected"},time:function(e){return/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/.test(e)?null:"A valid ISO 8601 full-time string is expected"}}),e.exports=n}});(window.webpackJsonp_ember_auto_import_=window.webpackJsonp_ember_auto_import_||[]).push([[2],[function(e,t,r){"use strict" +r.d(t,"k",(function(){return a})),r.d(t,"j",(function(){return u})),r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return l})),r.d(t,"o",(function(){return f})),r.d(t,"p",(function(){return h})),r.d(t,"l",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"d",(function(){return m})),r.d(t,"e",(function(){return v})),r.d(t,"c",(function(){return y})),r.d(t,"g",(function(){return b})),r.d(t,"f",(function(){return g})),r.d(t,"h",(function(){return w})),r.d(t,"n",(function(){return _})),r.d(t,"m",(function(){return k})) +var n=new(r(2).b)("bytes/5.6.1") function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments) return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return d(e)&&!(e.length%2)||u(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function u(e){if(null==e)return!1 if(e.constructor===Uint8Array)return!0 @@ -7110,7 +7374,7 @@ if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t if(u(e)){for(var o="0x",a=0;a>4]+"0123456789abcdef"[15&s]}return o}return n.throwArgumentError("invalid hexlify value","value",e)}function m(e){if("string"!=typeof e)e=p(e) else if(!d(e)||e.length%2)return null -return(e.length-2)/2}function y(e,t,r){return"string"!=typeof e?e=p(e):(!d(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function v(e){var t="0x" +return(e.length-2)/2}function v(e,t,r){return"string"!=typeof e?e=p(e):(!d(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function y(e){var t="0x" return e.forEach((function(e){t+=p(e).substring(2)})),t}function b(e){var t=g(p(e,{hexPad:"left"})) return"0x"===t?"0x0":t}function g(e){"string"!=typeof e&&(e=p(e)),d(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2) for(var t=0;t=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(l[0]|=128) var f=p(l) -t._vs&&(d(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=f:t._vs!==f&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function x(e){return p(l([(e=_(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict" -function n(e,t){for(var r=0;ru[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n>4],r+=h[15&t[o]] -i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version)) -var a=t,u="" -switch(r){case o.NUMERIC_FAULT:u="NUMERIC_FAULT" -var c=t -switch(c){case"overflow":case"underflow":case"division-by-zero":u+="-"+c -break -case"negative-power":case"negative-width":u+="-unsupported" -break -case"unbound-bitwise-result":u+="-unbound-result"}break -case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:u=r}u&&(t+=" [ See: https://links.ethers.org/v5-errors-"+u+" ]"),i.length&&(t+=" ("+i.join(", ")+")") -var l=new Error(t) -return l.reason=a,l.code=r,Object.keys(n).forEach((function(e){l[e]=n[e]})),l}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}},{key:"checkSafeUint53",value:function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",tr&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}() -d.errors=o,d.levels=i},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(79) -t.configure=function(e){return function(t){return e(new n.Client(t),t)}}},function(e,t,r){"use strict" -var n=["arg","searchParams","hashAlg","mtime","mode"] -function i(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=256)return!1}return!0}function c(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid arrayify value") +for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256)) +return 0===r.length&&r.push(0),o(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),d(e)){var a=e.substring(2) +a.length%2&&("left"===t.hexPad?a="0"+a:"right"===t.hexPad?a+="0":n.throwArgumentError("hex data is odd-length","value",e)) +for(var s=[],c=0;ct&&n.throwArgumentError("value out of range","value",arguments[0]) +var r=new Uint8Array(t) +return r.set(e,t-e.length),o(r)}function d(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function p(e,t){if(t||(t={}),"number"==typeof e){n.checkSafeUint53(e,"invalid hexlify value") +for(var r="";e;)r="0123456789abcdef"[15&e]+r,e=Math.floor(e/16) +return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e +if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString() +if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":n.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase() +if(u(e)){for(var o="0x",a=0;a>4]+"0123456789abcdef"[15&s]}return o}return n.throwArgumentError("invalid hexlify value","value",e)}function m(e){if("string"!=typeof e)e=p(e) +else if(!d(e)||e.length%2)return null +return(e.length-2)/2}function v(e,t,r){return"string"!=typeof e?e=p(e):(!d(e)||e.length%2)&&n.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function y(e){var t="0x" +return e.forEach((function(e){t+=p(e).substring(2)})),t}function b(e){var t=g(p(e,{hexPad:"left"})) +return"0x"===t?"0x0":t}function g(e){"string"!=typeof e&&(e=p(e)),d(e)||n.throwArgumentError("invalid hex string","value",e),e=e.substring(2) +for(var t=0;t2*t+2&&n.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2) +return e}function _(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"} +if(a(e)){var r=c(e) +64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64))):65===r.length?(t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64)),t.v=r[64]):n.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:n.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=p(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var i=h(c(t._vs),32) +t._vs=p(i) +var o=i[0]>=128?1:0 +null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),i[0]&=127 +var s=p(i) +null==t.s?t.s=s:t.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?n.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2 +else if(null==t.v)t.v=27+t.recoveryParam +else{var u=0===t.v||1===t.v?t.v:1-t.v%2 +t.recoveryParam!==u&&n.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&d(t.r)?t.r=w(t.r,32):n.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&d(t.s)?t.s=w(t.s,32):n.throwArgumentError("signature missing or invalid s","signature",e) +var l=c(t.s) +l[0]>=128&&n.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(l[0]|=128) +var f=p(l) +t._vs&&(d(t._vs)||n.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=f:t._vs!==f&&n.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function k(e){return p(l([(e=_(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict" +function n(e,t){for(var r=0;ru[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n>4],r+=h[15&t[o]] +i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version)) +var a=t,u="" +switch(r){case o.NUMERIC_FAULT:u="NUMERIC_FAULT" +var c=t +switch(c){case"overflow":case"underflow":case"division-by-zero":u+="-"+c +break +case"negative-power":case"negative-width":u+="-unsupported" +break +case"unbound-bitwise-result":u+="-unbound-result"}break +case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:u=r}u&&(t+=" [ See: https://links.ethers.org/v5-errors-"+u+" ]"),i.length&&(t+=" ("+i.join(", ")+")") +var l=new Error(t) +return l.reason=a,l.code=r,Object.keys(n).forEach((function(e){l[e]=n[e]})),l}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}},{key:"checkSafeUint53",value:function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",tr&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}() +d.errors=o,d.levels=i},function(e,t,r){"use strict" +function n(e,t){for(var r=0;ru[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n>4],r+=h[15&t[o]] +i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version)) +var a=t,u="" +switch(r){case o.NUMERIC_FAULT:u="NUMERIC_FAULT" +var c=t +switch(c){case"overflow":case"underflow":case"division-by-zero":u+="-"+c +break +case"negative-power":case"negative-width":u+="-unsupported" +break +case"unbound-bitwise-result":u+="-unbound-result"}break +case o.CALL_EXCEPTION:case o.INSUFFICIENT_FUNDS:case o.MISSING_NEW:case o.NONCE_EXPIRED:case o.REPLACEMENT_UNDERPRICED:case o.TRANSACTION_REPLACED:case o.UNPREDICTABLE_GAS_LIMIT:u=r}u&&(t+=" [ See: https://links.ethers.org/v5-errors-"+u+" ]"),i.length&&(t+=" ("+i.join(", ")+")") +var l=new Error(t) +return l.reason=a,l.code=r,Object.keys(n).forEach((function(e){l[e]=n[e]})),l}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),f&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:f})}},{key:"checkSafeUint53",value:function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",tr&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}])&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}() +d.errors=o,d.levels=i},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(95) +t.configure=function(e){return function(t){return e(new n.Client(t),t)}}},function(e,t,r){"use strict" +var n=["arg","searchParams","hashAlg","mtime","mode"] +function i(e,t){var r=Object.keys(e) +if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) +t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(i[r]=e[r]) return i}(e,t) if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e) for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(128),c=r(129) +var u=r(141),c=r(142) t.toUrlSearchParams=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.arg,r=e.searchParams,i=e.hashAlg,a=e.mtime,l=e.mode,f=s(e,n) r&&(f=o(o({},f),r)),i&&(f.hash=i),null!=a&&(a=c.parseMtime(a),f.mtime=a.secs,f.mtimeNsecs=a.nsecs),null!=l&&(f.mode=u.modeToString(l)),f.timeout&&!isNaN(f.timeout)&&(f.timeout="".concat(f.timeout,"ms")),null==t?t=[]:Array.isArray(t)||(t=[t]) var h=new URLSearchParams(f) @@ -7185,7 +7527,7 @@ var r=function(){} r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s "object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 -try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(188).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t) +try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(468).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t) return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=u(e,r) return r-1>=t&&(n|=u(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) @@ -7277,69 +7619,69 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,b=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,x=0|a[4],k=8191&x,O=x>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],j=8191&M,A=M>>>13,T=0|a[7],R=8191&T,C=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,F=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,q=0|s[1],V=8191&q,W=q>>>13,Y=0|s[2],G=8191&Y,K=Y>>>13,$=0|s[3],J=8191&$,Z=$>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var m=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 -var ye=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 -c=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) -var ve=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 -c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 -var be=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,G)|0))<<13)|0 -c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0 -var ge=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0 -c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 -c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 -var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 -var ke=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 -c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(F,G)|0,o=Math.imul(F,K),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Pe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0 -c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 -var je=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(O,pe)|0))<<13)|0 -c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 -var Ae=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 -c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 -var Te=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(A,pe)|0))<<13)|0 -c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 -var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(C,pe)|0))<<13)|0 -c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,fe),i=(i=Math.imul(B,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 -var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(F,pe)|0))<<13)|0 -return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=xe,u[7]=ke,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=je,u[14]=Ae,u[15]=Te,u[16]=Re,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} -function y(e,t,r){return(new v).mulp(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(m=p),a.prototype.mulTo=function(e,t){var r=this.length+e.length +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +function v(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=p),a.prototype.mulTo=function(e,t){var r=this.length+e.length return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):y(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 -return n},v.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ -return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e) @@ -7435,7 +7777,7 @@ for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r] if(n!==i){ni&&(t=1) break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new O(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} var b={k256:null,p224:null,p192:null,p25519:null} -function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=a._prime(e) +function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=a._prime(e) this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null) return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) @@ -7446,14 +7788,14 @@ var i=e.words[9] for(t.words[t.length++]=4194303&i,n=10;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e] var t if("k256"===e)t=new w else if("p224"===e)t=new _ -else if("p192"===e)t=new x +else if("p192"===e)t=new k else{if("p25519"!==e)throw new Error("Unknown prime "+e) -t=new k}return b[e]=t,t},O.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t) +t=new x}return b[e]=t,t},O.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t) var r=e.add(t) return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t) var r=e.iadd(t) @@ -7468,10 +7810,10 @@ return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o i(!n.isZero()) var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) -for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() -i(y=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(32)(e))},function(e,t,r){"use strict" +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},function(e,t,r){"use strict" function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(null!=r){var n,i,o=[],a=!0,s=!1 try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t) @@ -7495,14 +7837,14 @@ return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?A for(var r=0,n=new Array(t);r - * @license MIT - */ -var n=r(223),i=r(224),o=r(108) -function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes") -return 0|e}function p(e,t){if(u.isBuffer(e))return e.length -if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength -"string"!=typeof e&&(e=""+e) -var r=e.length -if(0===r)return 0 -for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r -case"utf8":case"utf-8":case void 0:return U(e).length -case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r -case"hex":return r>>>1 -case"base64":return z(e).length -default:if(n)return U(e).length -t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1 -if((void 0===t||t<0)&&(t=0),t>this.length)return"" -if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"" -if((r>>>=0)<=(t>>>=0))return"" -for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r) -case"utf8":case"utf-8":return S(this,t,r) -case"ascii":return P(this,t,r) -case"latin1":case"binary":return M(this,t,r) -case"base64":return E(this,t,r) -case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r) -default:if(n)throw new TypeError("Unknown encoding: "+e) -e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t] -e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1 -if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1 -r=e.length-1}else if(r<0){if(!i)return-1 -r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i) -if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i) -throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,a=1,s=e.length,u=t.length -if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1 -a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1 -for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;hi&&(n=i):n=i -var o=t.length -if(o%2!=0)throw new TypeError("Invalid hex string") -n>o/2&&(n=o/2) -for(var a=0;a>8,i=r%256,o.push(i),o.push(n) -return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r) -for(var n=[],i=t;i239?4:c>223?3:c>191?2:1 -if(i+f<=r)switch(f){case 1:c<128&&(l=c) -break -case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u) -break -case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u) -break -case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length -if(t<=4096)return String.fromCharCode.apply(String,e) -for(var r="",n=0;nn)&&(r=n) -for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance') -if(t>i||te.length)throw new RangeError("Index out of range")}function C(e,t,r,n){t<0&&(t=65535+t+1) -for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1) -for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range") -if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,o){return o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1) -return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers") -if(e===t)return 0 -for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer") -if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index") -if(n>=i&&t>=r)return 0 -if(n>=i)return-1 -if(t>=r)return 1 -if(this===e)return 0 -for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds") -n||(n="utf8") -for(var o=!1;;)switch(n){case"hex":return g(this,e,t,r) -case"utf8":case"utf-8":return w(this,e,t,r) -case"ascii":return _(this,e,t,r) -case"latin1":case"binary":return x(this,e,t,r) -case"base64":return k(this,e,t,r) -case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r) -default:if(o)throw new TypeError("Unknown encoding: "+n) -n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}} -u.prototype.slice=function(e,t){var r,n=this.length -if((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),t0&&(i*=256);)n+=this[e+--t]*i -return n},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length) -for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length) -for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i -return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length) -var r=this[e]|this[e+1]<<8 -return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length) -var r=this[e+1]|this[e]<<8 -return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||R(this,e,t,r,Math.pow(2,8*r)-1,0) -var i=1,o=0 -for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255 -return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1) -R(this,e,t,r,i-1,-i)}var o=0,a=1,s=0 -for(this[t]=255&e;++o>0)-s&255 -return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1) -R(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0 -for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255 -return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds") -if(n<0)throw new RangeError("sourceEnd out of bounds") -n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r] -else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189) -continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189) -continue}i=r -continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r -continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189) -if(i=null,r<128){if((t-=1)<0)break -o.push(r)}else if(r<2048){if((t-=2)<0)break -o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break -o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point") -if((t-=4)<0)break -o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"" -for(;e.length%4!=0;)e+="=" -return e}(e))}function H(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i] -return i}}).call(this,r(10))},function(e,t){var r,n,i=e.exports={} -function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0) -if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0) -try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}() -var u,c=[],l=!1,f=-1 -function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(h) -l=!0 -for(var t=c.length;t;){for(u=c,c=[];++f1)for(var r=1;re.major?1:0}}]),e}() -a.uint=new a(0,"uint",!0),a.negint=new a(1,"negint",!0),a.bytes=new a(2,"bytes",!0),a.string=new a(3,"string",!0),a.array=new a(4,"array",!1),a.map=new a(5,"map",!1),a.tag=new a(6,"tag",!1),a.float=new a(7,"float",!0),a.false=new a(7,"false",!0),a.true=new a(7,"true",!0),a.null=new a(7,"null",!0),a.undefined=new a(7,"undefined",!0),a.break=new a(7,"break",!0) -var s=function(){function e(t,r,i){n(this,e),this.type=t,this.value=r,this.encodedLength=i,this.encodedBytes=void 0,this.byteValue=void 0}return o(e,[{key:"toString",value:function(){return"Token[".concat(this.type,"].").concat(this.value)}}]),e}() -t.Token=s,t.Type=a},function(e,t,r){"use strict" -function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e,t){for(var r=0;r0&&"/"!==t.charAt(0))throw new Error('multiaddr "'.concat(t,'" must start with a "/"')) -this.bytes=o.fromString(t)}else{if(!e.isMultiaddr(t))throw new Error("addr must be a string, Buffer, or another Multiaddr") -this.bytes=o.fromBytes(t.bytes)}}var t,r,y,v,b -return t=e,y=[{key:"fromNodeAddress",value:function(t,r){if(!t)throw new Error("requires node address object") -if(!r)throw new Error("requires transport protocol") -var n -switch(t.family){case 4:n="ip4" -break -case 6:n="ip6" -break -default:throw Error("Invalid addr family. Got '".concat(t.family,"' instead of 4 or 6"))}return new e("/"+[n,t.address,r,t.port].join("/"))}},{key:"isName",value:function(t){return!!e.isMultiaddr(t)&&t.protos().some((function(e){return e.resolvable}))}},{key:"isMultiaddr",value:function(t){return t instanceof e||Boolean(t&&t[m])}}],(r=[{key:"toString",value:function(){return o.bytesToString(this.bytes)}},{key:"toJSON",value:function(){return this.toString()}},{key:"toOptions",value:function(){var e={},t=this.toString().split("/") -return e.family="ip4"===t[1]?4:6,e.host=t[2],e.transport=t[3],e.port=parseInt(t[4]),e}},{key:"protos",value:function(){return this.protoCodes().map((function(e){return Object.assign({},a(e))}))}},{key:"protoCodes",value:function(){for(var e=[],t=this.bytes,r=0;r=0;n--)if(r[n][0]===t)return new e(o.tuplesToBytes(r.slice(0,n))) -return this}},{key:"getPeerId",value:function(){try{var e=this.stringTuples().filter((function(e){return e[0]===a.names.ipfs.code})).pop() -if(e&&e[1]){var t=e[1] -return"Q"===t[0]||"1"===t[0]?h(c.decode("z".concat(t)),"base58btc"):h(u.parse(t).multihash.bytes,"base58btc")}return null}catch(e){return null}}},{key:"getPath",value:function(){var e=null -try{(e=this.stringTuples().filter((function(e){return!!a(e[0]).path}))[0][1])||(e=null)}catch(t){e=null}return e}},{key:"equals",value:function(e){return d(this.bytes,e.bytes)}},{key:"resolve",value:(v=regeneratorRuntime.mark((function t(){var r,n,i -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.protos().find((function(e){return e.resolvable}))){t.next=3 -break}return t.abrupt("return",[this]) -case 3:if(n=p.get(r.name)){t.next=6 -break}throw l(new Error("no available resolver for ".concat(r.name)),"ERR_NO_AVAILABLE_RESOLVER") -case 6:return t.next=8,n(this) -case 8:return i=t.sent,t.abrupt("return",i.map((function(t){return new e(t)}))) -case 10:case"end":return t.stop()}}),t,this)})),b=function(){var e=this,t=arguments -return new Promise((function(r,i){var o=v.apply(e,t) -function a(e){n(o,r,i,a,s,"next",e)}function s(e){n(o,r,i,a,s,"throw",e)}a(void 0)}))},function(){return b.apply(this,arguments)})},{key:"nodeAddress",value:function(){var e=this.protoCodes(),t=this.protoNames(),r=this.toString().split("/").slice(1) -if(r.length<4)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6}/{address}/{tcp, udp}/{port}".') -if(4!==e[0]&&41!==e[0]&&54!==e[0]&&55!==e[0])throw new Error("no protocol with name: \"'".concat(t[0],'\'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".')) -if("tcp"!==r[2]&&"udp"!==r[2])throw new Error("no protocol with name: \"'".concat(t[1],'\'". Must have a valid transport protocol: "{tcp, udp}".')) -return{family:41===e[0]||55===e[0]?6:4,address:r[1],port:parseInt(r[3])}}},{key:"isThinWaistAddress",value:function(e){var t=(e||this).protos() -return!(2!==t.length||4!==t[0].code&&41!==t[0].code||6!==t[1].code&&273!==t[1].code)}},{key:f,value:function(){return""}},{key:"inspect",value:function(){return""}}])&&i(t.prototype,r),y&&i(t,y),Object.defineProperty(t,"prototype",{writable:!1}),e}() -y.protocols=a,y.resolvers=p,e.exports={Multiaddr:y,multiaddr:function(e){return new y(e)},protocols:a,resolvers:p}},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0}) -return e}e.exports=function(e,t,r){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code") -r||(r={}),"object"===n(t)&&(r=t,t=""),t&&(r.code=t) -try{return i(e,r)}catch(t){r.message=e.message,r.stack=e.stack -var o=function(){} -return o.prototype=Object.create(Object.getPrototypeOf(e)),i(new o,r)}}},function(e,t,r){var n=r(7),i=n.Buffer -function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number") -return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number") -var n=i(e) -return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") -return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") -return n.SlowBuffer(e)}},,function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=[] -n[23]=1,n[24]=2,n[25]=3,n[26]=5,n[27]=9,t.assertEnoughData=function(e,t,r){if(e.length-t(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]] -e=e.clone(),t=t.clone() -for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3 -3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t -e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict" -!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1 -for(var t=0;t255)return!1 -return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e -if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e) -return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e) -throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var s,u={toBytes:function(e){var t=[],r=0 -for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},c=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+s[15&n])}return t.join("")}}),l={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],v=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],k=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] -function S(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t] -for(var a,s=0,u=i;u>16&255]<<24^h[a>>8&255]<<16^h[255&a]<<8^h[a>>24&255]^f[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^h[a>>16&255]<<16^h[a>>24&255]<<24,t=i/2+1;t>2,d=u%4,this._Ke[c][d]=o[t],this._Kd[e-c][d]=o[t++],u++}for(var c=1;c>24&255]^k[a>>16&255]^O[a>>8&255]^E[255&a]},P.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") -for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] -for(var a=1;a>24&255]^m[n[(i+1)%4]>>16&255]^y[n[(i+2)%4]>>8&255]^v[255&n[(i+3)%4]]^this._Ke[a][i] -n=r.slice()}var s,u=o(16) -for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(h[n[i]>>24&255]^s>>24),u[4*i+1]=255&(h[n[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(h[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(h[255&n[(i+3)%4]]^s) -return u},P.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)") -for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] -for(var a=1;a>24&255]^g[n[(i+3)%4]>>16&255]^w[n[(i+2)%4]>>8&255]^_[255&n[(i+1)%4]]^this._Kd[a][i] -n=r.slice()}var s,u=o(16) -for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(d[n[i]>>24&255]^s>>24),u[4*i+1]=255&(d[n[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&n[(i+1)%4]]^s) -return u} -var M=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`") -this.description="Electronic Code Block",this.name="ecb",this._aes=new P(t)} -M.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)") -for(var t=o(e.length),r=o(16),n=0;n=0;--t)this._counter[t]=e%256,e>>=8},R.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)") -this._counter=e},R.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++ -break}this._counter[e]=0}} -var C=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`") -this.description="Counter",this.name="ctr",r instanceof R||(r=new R(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new P(t)} -C.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range") -for(var r=e.length-t,n=0;n=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() -if(!e)return[] -var r=[] -if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t -return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t -return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict" -var n=r(12),i=r(6) -function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() -if(!e)return[] -var r=[] -if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t -return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t -return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict" -function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments -return new Promise((function(i,o){var a=e.apply(t,r) -function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e){var t,r,n,i=2 -for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e) -if(n&&null!=(t=e[n]))return new a(t.call(e)) -r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function a(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object.")) -var t=e.done -return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(a=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return -return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return -return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new a(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var s=r(284),u=r(303) -function c(){return(c=i(regeneratorRuntime.mark((function e(t,r){var n,i,a,c,l,f,h,d,p,m,y,v,b,g,w,_,x,k,O,E,S,P,M=arguments -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=M.length>2&&void 0!==M[2]?M[2]:{},i=[],a=new FormData,c=0,l=0,f=!1,h=!1,e.prev=7,p=o(s.normaliseInput(t)) -case 9:return e.next=11,p.next() -case 11:if(!(f=!(m=e.sent).done)){e.next=37 -break}if(y=m.value,v=y.content,b=y.path,g=y.mode,w=y.mtime,_="",x=v?"file":"dir",c>0&&(_="-".concat(c)),k=x+_,O=[],null!=g&&O.push("mode=".concat(u.modeToString(g))),null!=w&&(E=w.secs,S=w.nsecs,O.push("mtime=".concat(E)),null!=S&&O.push("mtime-nsecs=".concat(S))),O.length&&(k="".concat(k,"?").concat(O.join("&"))),!v){e.next=28 -break}a.set(k,v,null!=b?encodeURIComponent(b):void 0),P=l+v.size,i.push({name:b,start:l,end:P}),l=P,e.next=33 -break -case 28:if(null==b){e.next=32 -break}a.set(k,new File([""],encodeURIComponent(b),{type:"application/x-directory"})),e.next=33 -break -case 32:throw new Error("path or content or both must be set") -case 33:c++ -case 34:f=!1,e.next=9 -break -case 37:e.next=43 -break -case 39:e.prev=39,e.t0=e.catch(7),h=!0,d=e.t0 -case 43:if(e.prev=43,e.prev=44,!f||null==p.return){e.next=48 -break}return e.next=48,p.return() -case 48:if(e.prev=48,!h){e.next=51 -break}throw d -case 51:return e.finish(48) -case 52:return e.finish(43) -case 53:return e.abrupt("return",{total:l,parts:i,headers:n,body:a}) -case 54:case"end":return e.stop()}}),e,null,[[7,39,43,53],[44,,48,52]])})))).apply(this,arguments)}t.multipartRequest=function(e,t){return c.apply(this,arguments)}},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(127) -function i(e){return e.filter(Boolean)}t.abortSignal=function(){for(var e=arguments.length,t=new Array(e),r=0;r>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() -if(!e)return[] -var r=[] -if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>8,a=255&i -o?r.push(o,a):r.push(a)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t -return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t -return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){var n=t -n.utils=r(21),n.common=r(51),n.sha=r(189),n.ripemd=r(193),n.hmac=r(194),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict" -function n(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;tr;)o+=t[i&s>>(a-=r)] -if(a&&(o+=t[i&s<=8&&(u-=8,s[l++]=255&c>>u)}if(u>=r||255&c<<8-u)throw new SyntaxError("Unexpected end of data") -return s}(e,i,n,t)}})}},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(18),o=[24,256,65536,4294967296,BigInt("18446744073709551616")] -function a(e,t,r){i.assertEnoughData(e,t,1) -var n=e[t] -if(!0===r.strict&&n>>8,255&s])}else if(r>>24&255,u>>>16&255,u>>>8&255,255&u])}else{var c=BigInt(r) -if(!(c>BigInt(32)&BigInt(4294967295)) -l[8]=255&f,f>>=8,l[7]=255&f,f>>=8,l[6]=255&f,f>>=8,l[5]=255&f,l[4]=255&h,h>>=8,l[3]=255&h,h>>=8,l[2]=255&h,h>>=8,l[1]=255&h,e.push(l)}}l.encodedSize=function(e){return f.encodedSize(e.value)},f.encodedSize=function(e){return et.value?1:0},t.decodeUint16=function(e,t,r,i){return new n.Token(n.Type.uint,s(e,t+1,i),3)},t.decodeUint32=function(e,t,r,i){return new n.Token(n.Type.uint,u(e,t+1,i),5)},t.decodeUint64=function(e,t,r,i){return new n.Token(n.Type.uint,c(e,t+1,i),9)},t.decodeUint8=function(e,t,r,i){return new n.Token(n.Type.uint,a(e,t+1,i),2)},t.encodeUint=l,t.encodeUintValue=f,t.readUint16=s,t.readUint32=u,t.readUint64=c,t.readUint8=a,t.uintBoundaries=o},function(e,t,r){"use strict" -var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e -var t={} -if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r) -return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} -Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0 -var s=a(r(455)) -t.BN=s.default -var u=o(r(457)) -t.rlp=u},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=new Uint8Array(0) -t.coerce=function(e){if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e -if(e instanceof ArrayBuffer)return new Uint8Array(e) -if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength) -throw new Error("Unknown type, must be binary type")},t.empty=n,t.equals=function(e,t){if(e===t)return!0 -if(e.byteLength!==t.byteLength)return!1 -for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"utf8",r=n[t] -if(!r)throw new Error('Unsupported encoding "'.concat(t,'"')) -return r.encoder.encode(e).substring(1)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict" -function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var n=0,o=function(){} -return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r64?globalThis.Buffer.from(e.subarray(t,r)).toString("utf8"):g(e,t,r)}:function(e,t,r){return r-t>64?a.decode(e.subarray(t,r)):g(e,t,r)},f=o?function(e){return e.length>64?globalThis.Buffer.from(e):b(e)}:function(e){return e.length>64?s.encode(e):b(e)},h=o?function(e,t,r){return u(e)?new Uint8Array(e.subarray(t,r)):e.slice(t,r)}:function(e,t,r){return e.slice(t,r)},d=o?function(e,t){return e=e.map((function(e){return e instanceof Uint8Array?e:globalThis.Buffer.from(e)})),c(globalThis.Buffer.concat(e,t))}:function(e,t){var r,i=new Uint8Array(t),o=0,a=n(e) -try{for(a.s();!(r=a.n()).done;){var s=r.value -o+s.length>i.length&&(s=s.subarray(0,i.length-o)),i.set(s,o),o+=s.length}}catch(e){a.e(e)}finally{a.f()}return i},p=o?function(e){return globalThis.Buffer.allocUnsafe(e)}:function(e){return new Uint8Array(e)},m=o?function(e){return"string"==typeof e?e:globalThis.Buffer.from(v(e)).toString("hex")}:function(e){return"string"==typeof e?e:Array.prototype.reduce.call(v(e),(function(e,t){return"".concat(e).concat(t.toString(16).padStart(2,"0"))}),"")},y=o?function(e){return e instanceof Uint8Array?e:globalThis.Buffer.from(e,"hex")}:function(e){return e instanceof Uint8Array?e:e.length?new Uint8Array(e.split("").map((function(e,t,r){return t%2==0?"0x".concat(e).concat(r[t+1]):""})).filter(Boolean).map((function(e){return parseInt(e,16)}))):new Uint8Array(0)} -function v(e){if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e -if(e instanceof ArrayBuffer)return new Uint8Array(e) -if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength) -throw new Error("Unknown type, must be binary type")}function b(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=e.length,i=null,o=[],a=0;a55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189) -continue}if(a+1===n){(r-=3)>-1&&o.push(239,191,189) -continue}i=t -continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t -continue}t=65536+(i-55296<<10|t-56320)}else i&&(r-=3)>-1&&o.push(239,191,189) -if(i=null,t<128){if((r-=1)<0)break -o.push(t)}else if(t<2048){if((r-=2)<0)break -o.push(t>>6|192,63&t|128)}else if(t<65536){if((r-=3)<0)break -o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point") -if((r-=4)<0)break -o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function g(e,t,r){for(var n=[];t239?4:i>223?3:i>191?2:1 -if(t+a<=r){var s=void 0,u=void 0,c=void 0,l=void 0 -switch(a){case 1:i<128&&(o=i) -break -case 2:128==(192&(s=e[t+1]))&&(l=(31&i)<<6|63&s)>127&&(o=l) -break -case 3:s=e[t+1],u=e[t+2],128==(192&s)&&128==(192&u)&&(l=(15&i)<<12|(63&s)<<6|63&u)>2047&&(l<55296||l>57343)&&(o=l) -break -case 4:s=e[t+1],u=e[t+2],c=e[t+3],128==(192&s)&&128==(192&u)&&128==(192&c)&&(l=(15&i)<<18|(63&s)<<12|(63&u)<<6|63&c)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),t+=a}return w(n)}function w(e){var t=e.length -if(t<=4096)return String.fromCharCode.apply(String,e) -for(var r="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8",r=n[t] -if(!r)throw new Error('Unsupported encoding "'.concat(t,'"')) -return r.decoder.decode("".concat(r.prefix).concat(e))}},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=t -function o(e,t,r){for(var n=Object.keys(t),i=0;i0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer -return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e) -return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},i.merge=o,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=a,i.ProtocolError=a("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}} -throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator] -if(!r)return e -var n,i,o=r.call(e),a=[] -try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a} -Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0 -var o=r(29),a=r(42),s=r(68) -t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e)) -return"0x".concat(e.toString(16))},t.intToBuffer=function(r){var n=(0,t.intToHex)(r) -return e.from((0,a.padToEven)(n.slice(2)),"hex")},t.zeros=function(t){return e.allocUnsafe(t).fill(0)} -var u=function(e,r,n){var i=(0,t.zeros)(r) -return n?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0] -return e} -t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),c(e)},t.unpadArray=function(e){return(0,s.assertIsArray)(e),c(e)},t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,a.stripHexPrefix)(e),c(e)},t.toBuffer=function(r){if(null==r)return e.allocUnsafe(0) -if(e.isBuffer(r))return e.from(r) -if(Array.isArray(r)||r instanceof Uint8Array)return e.from(r) -if("string"==typeof r){if(!(0,a.isHexString)(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(r)) -return e.from((0,a.padToEven)((0,a.stripHexPrefix)(r)),"hex")}if("number"==typeof r)return(0,t.intToBuffer)(r) -if(o.BN.isBN(r)){if(r.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(r)) -return r.toArrayLike(e)}if(r.toArray)return e.from(r.toArray()) -if(r.toBuffer)return e.from(r.toBuffer()) -throw new Error("invalid type")},t.bufferToInt=function(e){return new o.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new o.BN(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,a.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(t){if((t=(0,a.stripHexPrefix)(t)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided") -return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(r){if(e.isBuffer(r))return"0x".concat(r.toString("hex")) -if(r instanceof Array){for(var n=[],i=0;i0&&0===c[0])throw new Error("".concat(u," cannot have leading zeroes, received: ").concat(c.toString("hex")))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(r){return Array.isArray(r)?r.map((function(e){return t(e)})):e.from(r)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}}).call(this,r(7).Buffer)},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o="object"===("undefined"==typeof Reflect?"undefined":n(Reflect))?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)} -i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)} -var s=Number.isNaN||function(e){return e!=e} -function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&b(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0 -var c=10 -function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(e))}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,o,a,s -if(l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount -else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0 -var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit") -u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n) -return i.listener=r,n.wrapFn=i,i}function m(e,t,r){var n=e._events -if(void 0===n)return[] -var i=n[t] -return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o -var s=new Error("Unhandled error."+(o?" ("+o.message+")":"")) -throw s.context=o,s}var u=i[e] -if(void 0===u)return!1 -if("function"==typeof u)a(u,this,t) -else{var c=u.length,l=v(u,c) -for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o -break}if(i<0)return this -0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]) -return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){"use strict" -var n=r(495).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0 -default:return!1}} -function o(e){var t -switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8" -for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8" -case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le" -case"latin1":case"binary":return"latin1" -case"base64":case"ascii":case"hex":return e -default:if(t)return -e=(""+e).toLowerCase(),t=!0}}(e) -if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e) -return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4 -break -case"utf8":this.fillLast=s,t=4 -break -case"base64":this.text=l,this.end=f,t=3 -break -default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�" -if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�" -if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e) -return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t) -if(r){var n=r.charCodeAt(r.length-1) -if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"" -if(this.lastNeed){var r=this.lastTotal-this.lastNeed -return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3 -return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"" -return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"" -var t,r -if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"" -r=this.lastNeed,this.lastNeed=0}else r=0 -return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t) -if(!this.lastNeed)return e.toString("utf8",t) -this.lastTotal=r -var n=e.length-(r-this.lastNeed) -return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal) -e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict" -var n=r(69),i=Object.keys||function(e){var t=[] -for(var r in e)t.push(r) -return t} -e.exports=f -var o=Object.create(r(56)) -o.inherits=r(6) -var a=r(176),s=r(93) -o.inherits(f,a) -for(var u=i(s.prototype),c=0;ce.length)&&(t=e.length) -for(var r=0,n=new Array(t);r=0}))},t.toAscii=function(e){var t="",r=0,n=e.length -for("0x"===e.substring(0,2)&&(r=2);r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s -if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type")) -else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument" -s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat(n(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[] -for(var r in e)t.push(r) -return t} -e.exports=c -var i=r(161),o=r(165) -r(6)(c,i) -for(var a=n(o.prototype),s=0;s2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s -if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type")) -else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument" -s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat(n(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[] -for(var r in e)t.push(r) -return t} -e.exports=c -var i=r(168),o=r(172) -r(6)(c,i) -for(var a=n(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0)) -var r=8*this._len -if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4) -else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296 -this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block) -var o=this._hash() -return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n=t -n.utils=r(22),n.common=r(52),n.sha=r(195),n.ripemd=r(199),n.hmac=r(200),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},,,function(e,t,r){"use strict" -var n=r(21),i=r(12) -function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8 -this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) -for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8 -this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) -for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o1&&void 0!==a[1]?a[1]:{},i=t.getReader(),e.prev=2 -case 3:return e.next=6,n(i.read()) -case 6:if(!(o=e.sent).done){e.next=9 -break}return e.abrupt("return") -case 9:return e.next=11,o.value -case 11:e.next=3 -break -case 13:return e.prev=13,!0!==r.preventCancel&&i.cancel(),i.releaseLock(),e.finish(13) -case 17:case"end":return e.stop()}}),e,null,[[2,,13,17]])})))).apply(this,arguments)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return s.apply(this,arguments)}},function(e,t,r){"use strict" -var n=r(25),i=r(12) -function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8 -this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) -for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o0&&void 0!==arguments[0]?arguments[0]:{} -return this.count.then((function(r){var n=f(r,t).map((function(t){return e.getById(t)})) -return Promise.all(n)}))}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(l) -e.exports=h},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(230) -t.decode=function(e){return[n.decode(e),n.decode.bytes]},t.encodeTo=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0 -return n.encode(e,t,r),t},t.encodingLength=function(e){return n.encodingLength(e)}},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(27),i=n.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=n.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}) -t.base58btc=i,t.base58flickr=o},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(27),i=n.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),o=n.rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),a=n.rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),s=n.rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}) -t.base64=i,t.base64pad=o,t.base64url=a,t.base64urlpad=s},function(e,t,r){"use strict" -function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(null!=r){var n,i,o=[],a=!0,s=!1 -try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed) -var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=a;l--)u=(u<<1)+n[l] -c.push(u)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++ -if(c>=0&&l++,u=u.dblp(l),c<0)break -var f=a[c] -s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,l=this._wnafT1,f=this._wnafT2,h=this._wnafT3,d=0 -for(s=0;s=1;s-=2){var m=s-1,y=s -if(1===l[m]&&1===l[y]){var v=[t[m],null,null,t[y]] -0===t[m].y.cmp(t[y].y)?(v[1]=t[m].add(t[y]),v[2]=t[m].toJ().mixedAdd(t[y].neg())):0===t[m].y.cmp(t[y].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[y]),v[2]=t[m].add(t[y].neg())):(v[1]=t[m].toJ().mixedAdd(t[y]),v[2]=t[m].toJ().mixedAdd(t[y].neg())) -var b=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[m],r[y]) -for(d=Math.max(g[0].length,d),h[m]=new Array(d),h[y]=new Array(d),u=0;u=0;s--){for(var O=0;s>=0;){var E=!0 -for(u=0;u=0&&O++,x=x.dblp(O),s<0)break -for(u=0;u0?c=f[u][S-1>>1]:S<0&&(c=f[u][-S-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles -for(var r=[this],n=this,i=0;i=64;){var d=r,p=n,m=i,y=o,v=a,b=s,g=u,w=c,_=void 0,x=void 0,k=void 0,O=void 0,E=void 0 -for(x=0;x<16;x++)k=f+4*x,l[x]=(255&e[k])<<24|(255&e[k+1])<<16|(255&e[k+2])<<8|255&e[k+3] -for(x=16;x<64;x++)O=((_=l[x-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,E=((_=l[x-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,l[x]=(O+l[x-7]|0)+(E+l[x-16]|0)|0 -for(x=0;x<64;x++)O=(((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&b^~v&g)|0)+(w+(t[x]+l[x]|0)|0)|0,E=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&m^p&m)|0,w=g,g=b,b=v,v=y+O|0,y=m,m=p,p=d,d=O+E|0 -r=r+d|0,n=n+p|0,i=i+m|0,o=o+y|0,a=a+v|0,s=s+b|0,u=u+g|0,c=c+w|0,f+=64,h-=64}}f(e) -var h,d=e.length%64,p=e.length/536870912|0,m=e.length<<3,y=d<56?56:120,v=e.slice(e.length-d,e.length) -for(v.push(128),h=d+1;h>>24&255),v.push(p>>>16&255),v.push(p>>>8&255),v.push(p>>>0&255),v.push(m>>>24&255),v.push(m>>>16&255),v.push(m>>>8&255),v.push(m>>>0&255),f(v),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,r){e=e.length<=64?e:n(e) -var i,o=64+t.length+4,a=new Array(o),s=new Array(64),u=[] -for(i=0;i<64;i++)a[i]=54 -for(i=0;i=o-4;e--){if(a[e]++,a[e]<=255)return -a[e]=0}}for(;r>=32;)c(),u=u.concat(n(s.concat(n(a)))),r-=32 -return r>0&&(c(),u=u.concat(n(s.concat(n(a))).slice(0,r))),u}function o(e,t,r,n,i){var o -for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(e,16*o,i,16),s(i,n),c(i,0,e,t+16*o,16) -for(o=0;o>>32-t}function s(e,t){c(e,0,t,0,16) -for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18) -for(var n=0;n<16;++n)e[n]+=t[n]}function u(e,t,r,n){for(var i=0;i=256)return!1}return!0}function f(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t) -return e}function h(e,r,n,a,s,h,d){if(n=f(n,"N"),a=f(a,"r"),s=f(s,"p"),h=f(h,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2") -if(n>2147483647/128/a)throw new Error("N too large") -if(a>2147483647/128/s)throw new Error("r too large") -if(!l(e))throw new Error("password must be an array or buffer") -if(e=Array.prototype.slice.call(e),!l(r))throw new Error("salt must be an array or buffer") -r=Array.prototype.slice.call(r) -for(var p=i(e,r,128*s*a),m=new Uint32Array(32*s*a),y=0;yT&&(r=T) -for(var l=0;lT&&(r=T) -for(var y=0;y>0&255),p.push(m[I]>>8&255),p.push(m[I]>>16&255),p.push(m[I]>>24&255) -var N=i(e,p,h) -return d&&d(null,1,N),N}d&&R(t)} -if(!d)for(;;){var I=C() -if(null!=I)return I}C()}var d={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,u){var c=0 -a&&a(0),h(e,t,r,n,i,o,(function(e,t,r){if(e)u(e) -else if(r)a&&1!==c&&a(1),s(new Uint8Array(r)) -else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(h(e,t,r,n,i,o))}} -e.exports=d}()}).call(this,r(105).setImmediate)},,,function(e,t,r){var n=r(212),i=r(213),o=r(214) -e.exports={contribution:n,contributor:i,expense:o}},function(e,t,r){var n=r(215).freshApi() -n.addFormat({date:function(e){return/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(e)?null:"A valid ISO 8601 full-date string is expected"},time:function(e){return/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/.test(e)?null:"A valid ISO 8601 full-time string is expected"}}),e.exports=n},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(27),i=n.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=n.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=n.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=n.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=n.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=n.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=n.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),f=n.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),h=n.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}) -t.base32=i,t.base32hex=u,t.base32hexpad=l,t.base32hexpadupper=f,t.base32hexupper=c,t.base32pad=a,t.base32padupper=s,t.base32upper=o,t.base32z=h},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(109),i=r(117),o=r(13) -t.encode=n.encode,t.decode=i.decode,t.Token=o.Token,t.Type=o.Type},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(18),o=r(28),a=r(33) -function s(e,t,r,o){i.assertEnoughData(e,t,r+o) -var s=a.slice(e,t+r,t+r+o) -return new n.Token(n.Type.bytes,s,r+o)}function u(e){return void 0===e.encodedBytes&&(e.encodedBytes=e.type===n.Type.string?a.fromString(e.value):e.value),e.encodedBytes}function c(e,t){var r=u(t) -o.encodeUintValue(e,t.type.majorEncoded,r.length),e.push(r)}function l(e,t){return e.lengtht.length?1:a.compare(e,t)}c.encodedSize=function(e){var t=u(e) -return o.encodeUintValue.encodedSize(t.length)+t.length},c.compareTokens=function(e,t){return l(u(e),u(t))},t.compareBytes=l,t.decodeBytes16=function(e,t,r,n){return s(e,t,3,o.readUint16(e,t+1,n))},t.decodeBytes32=function(e,t,r,n){return s(e,t,5,o.readUint32(e,t+1,n))},t.decodeBytes64=function(e,t,r,n){var a=o.readUint64(e,t+1,n) -if("bigint"==typeof a)throw new Error("".concat(i.decodeErrPrefix," 64-bit integer bytes lengths not supported")) -return s(e,t,9,a)},t.decodeBytes8=function(e,t,r,n){return s(e,t,2,o.readUint8(e,t+1,n))},t.decodeBytesCompact=function(e,t,r,n){return s(e,t,1,r)},t.encodeBytes=c},function(e,t,r){"use strict" -function n(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},n={} -if("string"==typeof r||b.Multiaddr.isMultiaddr(r))e=new URL(O.toUrlString(r)) -else if(r instanceof URL)e=r -else if("string"==typeof r.url||b.Multiaddr.isMultiaddr(r.url))e=new URL(O.toUrlString(r.url)),n=r -else if(r.url instanceof URL)e=r.url,n=r -else{var i=((n=r||{}).protocol||I).replace(":",""),o=(n.host||N).split(":")[0],a=n.port||D -e=new URL("".concat(i,"://").concat(o,":").concat(a))}if(n.apiPath?e.pathname=n.apiPath:"/"!==e.pathname&&void 0!==e.pathname||(e.pathname="api/v0"),g.isNode){var s=T.default(e) -t=n.agent||new s({keepAlive:!0,maxSockets:6})}return m(m({},n),{},{host:e.host,protocol:e.protocol.replace(":",""),port:Number(e.port),apiPath:e.pathname,url:e,agent:t})},B=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,n,i -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t.headers.get("Content-Type")||"").startsWith("application/json")){e.next=9 -break}return e.next=4,t.json() -case 4:n=e.sent,R(n),r=n.Message||n.message,e.next=12 -break -case 9:return e.next=11,t.text() -case 11:r=e.sent -case 12:e.next=18 -break -case 14:e.prev=14,e.t0=e.catch(0),R("Failed to parse error response",e.t0),r=e.t0.message -case 18:throw i=new j.default.HTTPError(t),r&&(r.includes("deadline has elapsed")&&(i=new j.default.TimeoutError),r&&r.includes("context deadline exceeded")&&(i=new j.default.TimeoutError)),r&&r.includes("request timed out")&&(i=new j.default.TimeoutError),r&&(i.message=r),i -case 23:case"end":return e.stop()}}),e,null,[[0,14]])})),function(){var t=this,r=arguments -return new Promise((function(n,i){var o=e.apply(t,r) -function a(e){d(o,n,i,a,s,"next",e)}function s(e){d(o,n,i,a,s,"throw",e)}a(void 0)}))}) -return function(e){return t.apply(this,arguments)}}(),F=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,U=function(e){return e.replace(F,(function(e){return"-"+e.toLowerCase()}))},z=function(e){return"string"==typeof e?P.default(e):e},H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") -e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(o,e) -var t,r=c(o) -function o(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{} -s(this,o) -var a=L(t) -delete(e=r.call(this,{timeout:z(a.timeout||0)||void 0,headers:a.headers,base:"".concat(a.url),handleError:B,transformSearchParams:function(e){var t,r=new URLSearchParams,o=i(e) -try{for(o.s();!(t=o.n()).done;){var a=n(t.value,2),s=a[0],u=a[1] -"undefined"!==u&&"null"!==u&&"signal"!==s&&r.append(U(s),u),"timeout"!==s||isNaN(u)||r.append(U(s),u)}}catch(e){o.e(e)}finally{o.f()}return r},agent:a.agent})).get,delete e.put,delete e.delete,delete e.options -var u=e.fetch -return e.fetch=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return"string"!=typeof t||t.startsWith("/")||(t="".concat(a.url,"/").concat(t)),u.call(f(e),t,C(r,{method:"POST"}))},e}return t=o,Object.defineProperty(t,"prototype",{writable:!1}),t}(j.default),q=j.default.HTTPError -t.Client=H,t.HTTPError=q,t.errorHandler=B},function(e,t,r){"use strict" -function n(e){if("number"==typeof e){if(n.codes[e])return n.codes[e] -throw new Error("no protocol with code: "+e)}if("string"==typeof e){if(n.names[e])return n.names[e] -throw new Error("no protocol with name: "+e)}throw new Error("invalid protocol id type: "+e)}var i=-1 -function o(e,t,r,n,i){return{code:e,size:t,name:r,resolvable:Boolean(n),path:Boolean(i)}}n.lengthPrefixedVarSize=i,n.V=i,n.table=[[4,32,"ip4"],[6,16,"tcp"],[33,16,"dccp"],[41,128,"ip6"],[42,i,"ip6zone"],[53,i,"dns","resolvable"],[54,i,"dns4","resolvable"],[55,i,"dns6","resolvable"],[56,i,"dnsaddr","resolvable"],[132,16,"sctp"],[273,16,"udp"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[277,0,"p2p-stardust"],[290,0,"p2p-circuit"],[301,0,"udt"],[302,0,"utp"],[400,i,"unix",!1,"path"],[421,i,"ipfs"],[421,i,"p2p"],[443,0,"https"],[444,96,"onion"],[445,296,"onion3"],[446,i,"garlic64"],[460,0,"quic"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[480,0,"http"],[777,i,"memory"]],n.names={},n.codes={},n.table.map((function(e){var t=o.apply(null,e) -return n.codes[t.code]=t,n.names[t.name]=t,null})),n.object=o,e.exports=n},function(e,t,r){e.exports={encode:r(262),decode:r(263),encodingLength:r(264)}},function(e,t,r){"use strict" -function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var n=0,o=function(){} -return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r=t} -return new Promise((function(n,o){var a=setTimeout((function(){i()&&(o(new x),r.abort())}),t),s=function(e){return function(t){clearTimeout(a),i()?o(new x):e(t)}} -e.then(s(n),s(o))}))},A={throwHttpErrors:!0,credentials:"same-origin"},T=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{} -u(this,e),this.opts=O(A,t)}var t,r,n,i -return t=e,(r=[{key:"fetch",value:(n=regeneratorRuntime.mark((function e(t){var r,n,i,a,s,u,c,f,d,m,v=arguments -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=v.length>1&&void 0!==v[1]?v[1]:{},n=O(this.opts,r),i=new w(n.headers),"string"==typeof t||t instanceof S||t instanceof g){e.next=5 -break}throw new TypeError("`resource` must be a string, URL, or Request") -case 5:return a=new S(t.toString(),n.base),s=n.searchParams,u=n.transformSearchParams,c=n.json,s&&(a.search="function"==typeof u?u(new P(n.searchParams)):new P(n.searchParams)),c&&(n.body=JSON.stringify(n.json),i.set("content-type","application/json")),f=new AbortController,d=M([f.signal,n.signal]),e.next=13,j(b(a.toString(),o(o({},n),{},{signal:d,timeout:void 0,headers:i})),n.timeout,f) -case 13:if((m=e.sent).ok||!n.throwHttpErrors){e.next=19 -break}if(!n.handleError){e.next=18 -break}return e.next=18,n.handleError(m) -case 18:throw new k(m) -case 19:return m.iterator=l(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(y(p(C(m.body)),h),"t0",1) -case 1:case"end":return e.stop()}}),e)}))),m.ndjson=l(regeneratorRuntime.mark((function e(){var t,n,i,o,a,s -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!1,n=!1,e.prev=2,o=p(R(m.iterator())) -case 4:return e.next=6,h(o.next()) -case 6:if(!(t=!(a=e.sent).done)){e.next=18 -break}if(s=a.value,!r.transform){e.next=13 -break}return e.next=11,r.transform(s) -case 11:e.next=15 -break -case 13:return e.next=15,s -case 15:t=!1,e.next=4 -break -case 18:e.next=24 -break -case 20:e.prev=20,e.t0=e.catch(2),n=!0,i=e.t0 -case 24:if(e.prev=24,e.prev=25,!t||null==o.return){e.next=29 -break}return e.next=29,h(o.return()) -case 29:if(e.prev=29,!n){e.next=32 -break}throw i -case 32:return e.finish(29) -case 33:return e.finish(24) -case 34:case"end":return e.stop()}}),e,null,[[2,20,24,34],[25,,29,33]])}))),e.abrupt("return",m) -case 22:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments -return new Promise((function(r,i){var o=n.apply(e,t) -function a(e){s(o,r,i,a,u,"next",e)}function u(e){s(o,r,i,a,u,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return this.fetch(e,o(o({},t),{},{method:"POST"}))}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return this.fetch(e,o(o({},t),{},{method:"GET"}))}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return this.fetch(e,o(o({},t),{},{method:"PUT"}))}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return this.fetch(e,o(o({},t),{},{method:"DELETE"}))}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return this.fetch(e,o(o({},t),{},{method:"OPTIONS"}))}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),R=function(){var e=l(regeneratorRuntime.mark((function e(t){var r,n,i,o,a,s,u,c,l,f,d -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new TextDecoder,n="",i=!1,o=!1,e.prev=4,s=p(t) -case 6:return e.next=8,h(s.next()) -case 8:if(!(i=!(u=e.sent).done)){e.next=25 -break}c=u.value,n+=r.decode(c,{stream:!0}),l=n.split(/\r?\n/),f=0 -case 13:if(!(f0)){e.next=18 -break}return e.next=18,JSON.parse(d) -case 18:f++,e.next=13 -break -case 21:n=l[l.length-1] -case 22:i=!1,e.next=6 -break -case 25:e.next=31 -break -case 27:e.prev=27,e.t0=e.catch(4),o=!0,a=e.t0 -case 31:if(e.prev=31,e.prev=32,!i||null==s.return){e.next=36 -break}return e.next=36,h(s.return()) -case 36:if(e.prev=36,!o){e.next=39 -break}throw a -case 39:return e.finish(36) -case 40:return e.finish(31) -case 41:if(0===(n=(n+=r.decode()).trim()).length){e.next=46 -break}return e.next=46,JSON.parse(n) -case 46:case"end":return e.stop()}}),e,null,[[4,27,31,41],[32,,36,40]])}))) -return function(t){return e.apply(this,arguments)}}(),C=function(e){if(D(e)){var t=e[Symbol.asyncIterator]() -return a({},Symbol.asyncIterator,(function(){return{next:t.next.bind(t),return:function(r){return e.destroy(),"function"==typeof t.return?t.return():Promise.resolve({done:!0,value:r})}}}))}if(N(e)){var r=e.getReader() -return l(regeneratorRuntime.mark((function e(){var t,n,i -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0 -case 1:return e.next=4,h(r.read()) -case 4:if(t=e.sent,n=t.done,i=t.value,!n){e.next=9 -break}return e.abrupt("return") -case 9:if(!i){e.next=12 -break}return e.next=12,i -case 12:e.next=1 -break -case 14:return e.prev=14,r.releaseLock(),e.finish(14) -case 17:case"end":return e.stop()}}),e,null,[[0,,14,17]])})))()}if(I(e))return e -throw new TypeError("Body can't be converted to AsyncIterable")},I=function(e){return"object"===n(e)&&null!==e&&"function"==typeof e[Symbol.asyncIterator]},N=function(e){return e&&"function"==typeof e.getReader},D=function(e){return Object.prototype.hasOwnProperty.call(e,"readable")&&Object.prototype.hasOwnProperty.call(e,"writable")} -T.HTTPError=k,T.TimeoutError=x,T.streamToAsyncIterator=C,T.post=function(e,t){return new T(t).post(e,t)},T.get=function(e,t){return new T(t).get(e,t)},T.put=function(e,t){return new T(t).put(e,t)},T.delete=function(e,t){return new T(t).delete(e,t)},T.options=function(e,t){return new T(t).options(e,t)},e.exports=T},function(e,t,r){"use strict" -function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var n=0,o=function(){} -return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r - * @license MIT - */function o(e,t){if(e===t)return 0 -for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;u--)if(l[u]!==f[u])return!1 -for(u=l.length-1;u>=0;u--)if(!w(e[a=l[u]],t[a],r,n))return!1 -return!0}(e,t,r,i))}return r?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function x(e,t){if(!e||!t)return!1 -if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e) -try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,r,n){var i -if("function"!=typeof t)throw new TypeError('"block" argument must be a function') -"string"==typeof r&&(n=r,r=null),i=function(e){var t -try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&b(i,r,"Missing expected exception"+n) -var o="string"==typeof n,a=!e&&i&&!r -if((!e&&s.isError(i)&&o&&x(i,r)||a)&&b(i,r,"Got unwanted exception"+n),e&&i&&r&&!x(i,r)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return y(v(e.actual),128)+" "+e.operator+" "+y(v(e.expected),128)}(this),this.generatedMessage=!0) -var t=e.stackStartFunction||b -if(Error.captureStackTrace)Error.captureStackTrace(this,t) -else{var r=new Error -if(r.stack){var n=r.stack,i=m(t),o=n.indexOf("\n"+i) -if(o>=0){var a=n.indexOf("\n",o+1) -n=n.substring(a+1)}this.stack=n}}},s.inherits(d.AssertionError,Error),d.fail=b,d.ok=g,d.equal=function(e,t,r){e!=t&&b(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&b(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){w(e,t,!1)||b(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){w(e,t,!0)||b(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){w(e,t,!1)&&b(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){w(t,r,!0)&&b(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&b(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&b(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){k(!0,e,t,r)},d.doesNotThrow=function(e,t,r){k(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=i((function e(t,r){t||b(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict -var O=Object.keys||function(e){var t=[] -for(var r in e)u.call(e,r)&&t.push(r) -return t}}).call(this,r(10))},function(e,t,r){"use strict" -var n,i=t,o=r(87),a=r(155),s=r(19).assert -function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t) -return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]}) -try{n=r(478)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){var n=t -n.utils=r(25),n.common=r(55),n.sha=r(472),n.ripemd=r(476),n.hmac=r(477),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0 -var n=r(487),i=r(503),o=r(29),a=r(36),s=r(68) -t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e) -case 256:return(0,n.keccak256)(e) -case 384:return(0,n.keccak384)(e) -case 512:return(0,n.keccak512)(e) -default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,s.assertIsString)(r) -var i=e.from(r,"utf8") -return(0,t.keccak)(i,n)},t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,a.toBuffer)(e),r)},t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,a.toBuffer)(e),r)} -var u=function(e){return e=(0,a.toBuffer)(e),i("sha256").update(e).digest()} -t.sha256=function(e){return(0,s.assertIsBuffer)(e),u(e)},t.sha256FromString=function(e){return(0,s.assertIsString)(e),u(e)},t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),u(e)} -var c=function(e,t){e=(0,a.toBuffer)(e) -var r=i("rmd160").update(e).digest() -return!0===t?(0,a.setLengthLeft)(r,32):r} -t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),c(e,t)},t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),c(e,t)},t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),c(e,t)},t.rlphash=function(e){return(0,t.keccak)(o.rlp.encode(e))}}).call(this,r(7).Buffer)},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e] -return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e -var n=!1 -return function(){if(!n){if(r("throwDeprecation"))throw new Error(t) -r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(10))},function(e,t,r){"use strict" -var n=r(43).codes.ERR_STREAM_PREMATURE_CLOSE -function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r) -r||(r={}),o=function(e){var t=!1 -return function(){if(!t){t=!0 -for(var r=arguments.length,n=new Array(r),i=0;i-1?n:o.nextTick -b.WritableState=v -var c=Object.create(r(56)) -c.inherits=r(6) -var l,f={deprecate:r(89)},h=r(177),d=r(16).Buffer,p=i.Uint8Array||function(){},m=r(178) -function y(){}function v(e,t){s=s||r(39),e=e||{} -var n=t instanceof s -this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode) -var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384 -this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1 -var f=!1===e.decodeStrings -this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb -if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),O(e,t))}(e,r,n,t,i) -else{var a=x(r) -a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(s=s||r(39),!(l.call(b,this)||this instanceof s))return new b(e) -this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function g(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function _(e,t){t.bufferProcessing=!0 -var r=t.bufferedRequest -if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree -o.entry=r -for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1 -i.allBuffers=u,g(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback -if(g(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=x(t) -return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(b,h),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next -return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===b&&e&&e._writableState instanceof v}})):l=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof p) -return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end") -e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1 -return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}(t,n,i) -n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length -t.length+=s -var u=t.length-1))throw new TypeError("Unknown encoding: "+e) -return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState -"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(8),r(105).setImmediate,r(10))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0 -var n,i=r(29),o=r(42),a=r(36) -function s(t){return(0,a.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null -if(void 0!==e){if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e)) -if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)") -var r=(0,a.toBuffer)(e) -if(t===n.Buffer)return r -if(t===n.BN)return new i.BN(r) -if(t===n.Number){var s=new i.BN(r),u=new i.BN(Number.MAX_SAFE_INTEGER.toString()) -if(s.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)") -return s.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(7).Buffer)},function(e,t,r){"use strict" -r.r(t),r.d(t,"ethers",(function(){return u})),r.d(t,"Signer",(function(){return vn})),r.d(t,"Wallet",(function(){return Ta})),r.d(t,"VoidSigner",(function(){return bn})),r.d(t,"getDefaultProvider",(function(){return pf})),r.d(t,"providers",(function(){return o})),r.d(t,"BaseContract",(function(){return vi})),r.d(t,"Contract",(function(){return bi})),r.d(t,"ContractFactory",(function(){return gi})),r.d(t,"BigNumber",(function(){return b})),r.d(t,"FixedNumber",(function(){return Ii})),r.d(t,"constants",(function(){return i})),r.d(t,"errors",(function(){return h.a})),r.d(t,"logger",(function(){return Rf})),r.d(t,"utils",(function(){return s})),r.d(t,"wordlists",(function(){return Oo})),r.d(t,"version",(function(){return Tf})),r.d(t,"Wordlist",(function(){return mo})) -var n={} -r.r(n),r.d(n,"encode",(function(){return K})),r.d(n,"decode",(function(){return Z})) -var i={} -r.r(i),r.d(i,"AddressZero",(function(){return Ia})),r.d(i,"NegativeOne",(function(){return _t})),r.d(i,"Zero",(function(){return xt})),r.d(i,"One",(function(){return kt})),r.d(i,"Two",(function(){return Ot})),r.d(i,"WeiPerEther",(function(){return Et})),r.d(i,"MaxUint256",(function(){return St})),r.d(i,"MinInt256",(function(){return Pt})),r.d(i,"MaxInt256",(function(){return Mt})),r.d(i,"HashZero",(function(){return Na})),r.d(i,"EtherSymbol",(function(){return Da})) -var o={} -r.r(o),r.d(o,"Provider",(function(){return nn})),r.d(o,"BaseProvider",(function(){return iu})),r.d(o,"Resolver",(function(){return tu})),r.d(o,"UrlJsonRpcProvider",(function(){return tc})),r.d(o,"FallbackProvider",(function(){return bl})),r.d(o,"AlchemyProvider",(function(){return pc})),r.d(o,"AlchemyWebSocketProvider",(function(){return dc})),r.d(o,"AnkrProvider",(function(){return Oc})),r.d(o,"CloudflareProvider",(function(){return Ic})),r.d(o,"EtherscanProvider",(function(){return Jc})),r.d(o,"InfuraProvider",(function(){return Rl})),r.d(o,"InfuraWebSocketProvider",(function(){return Tl})),r.d(o,"JsonRpcProvider",(function(){return Pu})),r.d(o,"JsonRpcBatchProvider",(function(){return Fl})),r.d(o,"NodesmithProvider",(function(){return Gl})),r.d(o,"PocketProvider",(function(){return tf})),r.d(o,"StaticJsonRpcProvider",(function(){return ec})),r.d(o,"Web3Provider",(function(){return hf})),r.d(o,"WebSocketProvider",(function(){return zu})),r.d(o,"IpcProvider",(function(){return gl})),r.d(o,"JsonRpcSigner",(function(){return Ou})),r.d(o,"getDefaultProvider",(function(){return pf})),r.d(o,"getNetwork",(function(){return Va})),r.d(o,"isCommunityResource",(function(){return Os})),r.d(o,"isCommunityResourcable",(function(){return ks})),r.d(o,"showThrottleMessage",(function(){return Ss})),r.d(o,"Formatter",(function(){return xs})) -var a={} -r.r(a),r.d(a,"decode",(function(){return us})),r.d(a,"encode",(function(){return cs})) -var s={} -r.r(s),r.d(s,"AbiCoder",(function(){return Ar})),r.d(s,"defaultAbiCoder",(function(){return Tr})),r.d(s,"Fragment",(function(){return dr})),r.d(s,"ConstructorFragment",(function(){return br})),r.d(s,"ErrorFragment",(function(){return _r})),r.d(s,"EventFragment",(function(){return pr})),r.d(s,"FunctionFragment",(function(){return gr})),r.d(s,"ParamType",(function(){return fr})),r.d(s,"FormatTypes",(function(){return cr})),r.d(s,"checkResultErrors",(function(){return B})),r.d(s,"Logger",(function(){return h.b})),r.d(s,"RLP",(function(){return n})),r.d(s,"_fetchData",(function(){return ms})),r.d(s,"fetchJson",(function(){return ys})),r.d(s,"poll",(function(){return vs})),r.d(s,"checkProperties",(function(){return j})),r.d(s,"deepCopy",(function(){return R})),r.d(s,"defineReadOnly",(function(){return S})),r.d(s,"getStatic",(function(){return P})),r.d(s,"resolveProperties",(function(){return M})),r.d(s,"shallowCopy",(function(){return A})),r.d(s,"arrayify",(function(){return c.a})),r.d(s,"concat",(function(){return c.b})),r.d(s,"stripZeros",(function(){return c.o})),r.d(s,"zeroPad",(function(){return c.p})),r.d(s,"isBytes",(function(){return c.j})),r.d(s,"isBytesLike",(function(){return c.k})),r.d(s,"defaultPath",(function(){return Io})),r.d(s,"HDNode",(function(){return No})),r.d(s,"SigningKey",(function(){return On})),r.d(s,"Interface",(function(){return Gr})),r.d(s,"LogDescription",(function(){return zr})),r.d(s,"TransactionDescription",(function(){return Hr})),r.d(s,"base58",(function(){return no})),r.d(s,"base64",(function(){return a})),r.d(s,"hexlify",(function(){return c.i})),r.d(s,"isHexString",(function(){return c.l})),r.d(s,"hexConcat",(function(){return c.c})),r.d(s,"hexStripZeros",(function(){return c.f})),r.d(s,"hexValue",(function(){return c.g})),r.d(s,"hexZeroPad",(function(){return c.h})),r.d(s,"hexDataLength",(function(){return c.d})),r.d(s,"hexDataSlice",(function(){return c.e})),r.d(s,"nameprep",(function(){return ts})),r.d(s,"_toEscapedUtf8String",(function(){return ge})),r.d(s,"toUtf8Bytes",(function(){return ve})),r.d(s,"toUtf8CodePoints",(function(){return xe})),r.d(s,"toUtf8String",(function(){return _e})),r.d(s,"Utf8ErrorFuncs",(function(){return me})),r.d(s,"formatBytes32String",(function(){return xf})),r.d(s,"parseBytes32String",(function(){return kf})),r.d(s,"dnsEncode",(function(){return ss})),r.d(s,"hashMessage",(function(){return Li})),r.d(s,"namehash",(function(){return as})),r.d(s,"isValidName",(function(){return os})),r.d(s,"id",(function(){return ke})),r.d(s,"_TypedDataEncoder",(function(){return Xi})),r.d(s,"getAddress",(function(){return ae})),r.d(s,"getIcapAddress",(function(){return ue})),r.d(s,"getContractAddress",(function(){return ce})),r.d(s,"getCreate2Address",(function(){return le})),r.d(s,"isAddress",(function(){return se})),r.d(s,"formatEther",(function(){return jf})),r.d(s,"parseEther",(function(){return Af})),r.d(s,"formatUnits",(function(){return Pf})),r.d(s,"parseUnits",(function(){return Mf})),r.d(s,"commify",(function(){return Sf})),r.d(s,"computeHmac",(function(){return lo})),r.d(s,"keccak256",(function(){return V})),r.d(s,"ripemd160",(function(){return so})),r.d(s,"sha256",(function(){return uo})),r.d(s,"sha512",(function(){return co})),r.d(s,"randomBytes",(function(){return zo.a})),r.d(s,"shuffled",(function(){return Zc})),r.d(s,"solidityPack",(function(){return gf})),r.d(s,"solidityKeccak256",(function(){return wf})),r.d(s,"soliditySha256",(function(){return _f})),r.d(s,"splitSignature",(function(){return c.n})),r.d(s,"joinSignature",(function(){return c.m})),r.d(s,"accessListify",(function(){return Ln})),r.d(s,"parseTransaction",(function(){return qn})),r.d(s,"serializeTransaction",(function(){return zn})),r.d(s,"TransactionTypes",(function(){return Pn})),r.d(s,"getJsonWalletAddress",(function(){return _a})),r.d(s,"computeAddress",(function(){return Cn})),r.d(s,"recoverAddress",(function(){return In})),r.d(s,"computePublicKey",(function(){return Sn})),r.d(s,"recoverPublicKey",(function(){return En})),r.d(s,"verifyMessage",(function(){return Ra})),r.d(s,"verifyTypedData",(function(){return Ca})),r.d(s,"getAccountPath",(function(){return Uo})),r.d(s,"mnemonicToEntropy",(function(){return Lo})),r.d(s,"entropyToMnemonic",(function(){return Bo})),r.d(s,"isValidMnemonic",(function(){return Fo})),r.d(s,"mnemonicToSeed",(function(){return Do})),r.d(s,"SupportedAlgorithm",(function(){return to})),r.d(s,"UnicodeNormalizationForm",(function(){return fe})),r.d(s,"Utf8ErrorReason",(function(){return he})),r.d(s,"Indexed",(function(){return Vr})) -var u={} -r.r(u),r.d(u,"Signer",(function(){return vn})),r.d(u,"Wallet",(function(){return Ta})),r.d(u,"VoidSigner",(function(){return bn})),r.d(u,"getDefaultProvider",(function(){return pf})),r.d(u,"providers",(function(){return o})),r.d(u,"BaseContract",(function(){return vi})),r.d(u,"Contract",(function(){return bi})),r.d(u,"ContractFactory",(function(){return gi})),r.d(u,"BigNumber",(function(){return b})),r.d(u,"FixedNumber",(function(){return Ii})),r.d(u,"constants",(function(){return i})),r.d(u,"errors",(function(){return h.a})),r.d(u,"logger",(function(){return Rf})),r.d(u,"utils",(function(){return s})),r.d(u,"wordlists",(function(){return Oo})),r.d(u,"version",(function(){return Tf})),r.d(u,"Wordlist",(function(){return mo})) -var c=r(0),l=r(4),f=r.n(l),h=r(1) -function d(e,t){for(var r=0;r=9007199254740991||t<=-9007199254740991)&&x("overflow","BigNumber.from",t),e.from(String(t)) -var r=t -if("bigint"==typeof r)return e.from(r.toString()) -if(Object(c.j)(r))return e.from(Object(c.i)(r)) -if(r)if(r.toHexString){var n=r.toHexString() -if("string"==typeof n)return e.from(n)}else{var i=r._hex -if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"==typeof i&&(Object(c.l)(i)||"-"===i[0]&&Object(c.l)(i.substring(1))))return e.from(i)}return m.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}],(r=[{key:"fromTwos",value:function(e){return w(_(this).fromTwos(e))}},{key:"toTwos",value:function(e){return w(_(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return w(_(this).add(_(e)))}},{key:"sub",value:function(e){return w(_(this).sub(_(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&x("division-by-zero","div"),w(_(this).div(_(t)))}},{key:"mul",value:function(e){return w(_(this).mul(_(e)))}},{key:"mod",value:function(e){var t=_(e) -return t.isNeg()&&x("division-by-zero","mod"),w(_(this).umod(t))}},{key:"pow",value:function(e){var t=_(e) -return t.isNeg()&&x("negative-power","pow"),w(_(this).pow(t))}},{key:"and",value:function(e){var t=_(e) -return(this.isNegative()||t.isNeg())&&x("unbound-bitwise-result","and"),w(_(this).and(t))}},{key:"or",value:function(e){var t=_(e) -return(this.isNegative()||t.isNeg())&&x("unbound-bitwise-result","or"),w(_(this).or(t))}},{key:"xor",value:function(e){var t=_(e) -return(this.isNegative()||t.isNeg())&&x("unbound-bitwise-result","xor"),w(_(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&x("negative-width","mask"),w(_(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&x("negative-width","shl"),w(_(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&x("negative-width","shr"),w(_(this).shrn(e))}},{key:"eq",value:function(e){return _(this).eq(_(e))}},{key:"lt",value:function(e){return _(this).lt(_(e))}},{key:"lte",value:function(e){return _(this).lte(_(e))}},{key:"gt",value:function(e){return _(this).gt(_(e))}},{key:"gte",value:function(e){return _(this).gte(_(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return _(this).isZero()}},{key:"toNumber",value:function(){try{return _(this).toNumber()}catch(e){x("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return m.throwError("this platform does not support BigInt",h.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?v||(v=!0,m.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?m.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.b.errors.UNEXPECTED_ARGUMENT,{}):m.throwError("BigNumber.toString does not accept parameters",h.b.errors.UNEXPECTED_ARGUMENT,{})),_(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() -function g(e){if("string"!=typeof e)return g(e.toString(16)) -if("-"===e[0])return"-"===(e=e.substring(1))[0]&&m.throwArgumentError("invalid hex","value",e),"0x00"===(e=g(e))?e:"-"+e -if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00" -for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4) -return e}function w(e){return b.from(g(e))}function _(e){var t=b.from(e).toHexString() -return"-"===t[0]?new p("-"+t.substring(3),16):new p(t.substring(2),16)}function x(e,t,r){var n={fault:e,operation:t} -return null!=r&&(n.value=r),m.throwError(e,h.b.errors.NUMERIC_FAULT,n)}function k(e,t){for(var r=0;rthis.wordSize&&L.throwError("value out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(c.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length -return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),z=function(){function e(t,r,n,i){I(this,e),S(this,"_data",Object(c.a)(t)),S(this,"wordSize",r||32),S(this,"_coerceFunc",n),S(this,"allowLoose",i),this._offset=0}return D(e,[{key:"data",get:function(){return Object(c.i)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize -return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:L.throwError("data out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t) -return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return b.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$") -return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),H=r(181),q=r.n(H) -function V(e){return"0x"+q.a.keccak_256(Object(c.a)(e))}var W=new h.b("rlp/5.6.0") -function Y(e){for(var t=[];e;)t.unshift(255&e),e>>=8 -return t}function G(e,t,r){for(var n=0,i=0;it+1+n&&W.throwError("child data too short",h.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function J(e,t){if(0===e.length&&W.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247 -t+1+r>e.length&&W.throwError("data short segment too short",h.b.errors.BUFFER_OVERRUN,{}) -var n=G(e,t+1,r) -return t+1+r+n>e.length&&W.throwError("data long segment too short",h.b.errors.BUFFER_OVERRUN,{}),$(e,t,t+1+r,r+n)}if(e[t]>=192){var i=e[t]-192 -return t+1+i>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),$(e,t,t+1,i)}if(e[t]>=184){var o=e[t]-183 -t+1+o>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}) -var a=G(e,t+1,o) -return t+1+o+a>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+o+a,result:Object(c.i)(e.slice(t+1+o,t+1+o+a))}}if(e[t]>=128){var s=e[t]-128 -return t+1+s>e.length&&W.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+s,result:Object(c.i)(e.slice(t+1,t+1+s))}}return{consumed:1,result:Object(c.i)(e[t])}}function Z(e){var t=Object(c.a)(e),r=J(t,0) -return r.consumed!==t.length&&W.throwArgumentError("invalid rlp data","data",e),r.result}var Q=new h.b("address/5.6.0") -function X(e){Object(c.l)(e,20)||Q.throwArgumentError("invalid address","address",e) -for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0) -for(var i=Object(c.a)(V(r)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(t[o]=t[o].toUpperCase()),(15&i[o>>1])>=8&&(t[o+1]=t[o+1].toUpperCase()) -return"0x"+t.join("")}for(var ee={},te=0;te<10;te++)ee[String(te)]=String(te) -for(var re=0;re<26;re++)ee[String.fromCharCode(65+re)]=String(10+re) -var ne,ie=Math.floor((ne=9007199254740991,Math.log10?Math.log10(ne):Math.log(ne)/Math.LN10)) -function oe(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return ee[e]})).join("");t.length>=ie;){var r=t.substring(0,ie) -t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n -return n}function ae(e){var t,r=null -if("string"!=typeof e&&Q.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),r=X(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==e&&Q.throwArgumentError("bad address checksum","address",e) -else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==oe(e)&&Q.throwArgumentError("bad icap checksum","address",e),t=e.substring(4),r=new p(t,36).toString(16);r.length<40;)r="0"+r -r=X("0x"+r)}else Q.throwArgumentError("invalid address","address",e) -return r}function se(e){try{return ae(e),!0}catch(e){}return!1}function ue(e){for(var t,r=(t=ae(e).substring(2),new p(t,16).toString(36)).toUpperCase();r.length<30;)r="0"+r -return"XE"+oe("XE00"+r)+r}function ce(e){var t=null -try{t=ae(e.from)}catch(t){Q.throwArgumentError("missing from address","transaction",e)}var r=Object(c.o)(Object(c.a)(b.from(e.nonce).toHexString())) -return ae(Object(c.e)(V(K([t,r])),12))}function le(e,t,r){return 32!==Object(c.d)(t)&&Q.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(c.d)(r)&&Q.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),ae(Object(c.e)(V(Object(c.b)(["0xff",ae(e),t,r])),12))}var fe,he,de=new h.b("strings/5.6.0") -function pe(e,t,r,n,i){if(e===he.BAD_PREFIX||e===he.UNEXPECTED_CONTINUE){for(var o=0,a=t+1;a>6==2;a++)o++ -return o}return e===he.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(fe||(fe={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(he||(he={})) -var me=Object.freeze({error:function(e,t,r,n,i){return de.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:pe,replace:function(e,t,r,n,i){return e===he.OVERLONG?(n.push(i),0):(n.push(65533),pe(e,t,r))}}) -function ye(e,t){null==t&&(t=me.error),e=Object(c.a)(e) -for(var r=[],n=0;n>7!=0){var o=null,a=null -if(192==(224&i))o=1,a=127 -else if(224==(240&i))o=2,a=2047 -else{if(240!=(248&i)){n+=t(128==(192&i)?he.UNEXPECTED_CONTINUE:he.BAD_PREFIX,n-1,e,r) -continue}o=3,a=65535}if(n-1+o>=e.length)n+=t(he.OVERRUN,n-1,e,r) -else{for(var s=i&(1<<8-o-1)-1,u=0;u1114111?n+=t(he.OUT_OF_RANGE,n-1-o,e,r,s):s>=55296&&s<=57343?n+=t(he.UTF16_SURROGATE,n-1-o,e,r,s):s<=a?n+=t(he.OVERLONG,n-1-o,e,r,s):r.push(s))}}else r.push(i)}return r}function ve(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.current -t!=fe.current&&(de.checkNormalize(),e=e.normalize(t)) -for(var r=[],n=0;n>6|192),r.push(63&i|128) -else if(55296==(64512&i)){n++ -var o=e.charCodeAt(n) -if(n>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string") -var a=65536+((1023&i)<<10)+(1023&o) -r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return Object(c.a)(r)}function be(e){var t="0000"+e.toString(16) -return"\\u"+t.substring(t.length-4)}function ge(e,t){return'"'+ye(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b" -case 9:return"\\t" -case 10:return"\\n" -case 13:return"\\r" -case 34:return'\\"' -case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?be(e):be(55296+((e-=65536)>>10&1023))+be(56320+(1023&e))})).join("")+'"'}function we(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function _e(e,t){return we(ye(e,t))}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.current -return ye(ve(e,t))}function ke(e){return V(ve(e))}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var r=0;r=0?t:"")+"]",s=-1===t||e.dynamic -return(o=n.call(this,"array",a,r,s)).coder=e,o.length=t,o}return t=i,(r=[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;re._data.length&&ze.throwError("insufficient data length",h.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}) -for(var r=[],n=0;n=0||"tuple"===e)&&ar[t])return!0 -return(or[t]||"payable"===t)&&nr.throwArgumentError("invalid modifier","name",t),!1}function ur(e,t){for(var r in t)S(e,r,t[r])}var cr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),lr=new RegExp(/^(.*)\[([0-9]*)\]$/),fr=function(){function e(t,r){er(this,e),t!==ir&&nr.throwError("use fromString",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ur(this,r) -var n=this.type.match(lr) -ur(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return rr(e,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0} -return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="" -return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==cr.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+")"):r+=this.type,e!==cr.sighash&&(!0===this.indexed&&(r+=" indexed"),e===cr.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(ir,{name:t.name||null,type:xr(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e -function n(t){nr.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var r={type:"",name:"",parent:e,state:{allowType:!0}} -return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ") -for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s2&&nr.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||nr.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=b.from(r[1]),r[0]):e}function yr(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0 -break -case"payable":t.payable=!0,t.stateMutability="payable" -break -case"nonpayable":t.payable=!1,t.stateMutability="nonpayable" -break -case"pure":t.constant=!0,t.stateMutability="pure" -break -case"view":t.constant=!0,t.stateMutability="view" -break -case"external":case"public":case"":break -default:console.log("unknown modifier: "+e)}}))}function vr(e){var t={constant:!1,payable:!0,stateMutability:"payable"} -return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&nr.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&nr.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||nr.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&nr.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&nr.throwArgumentError("unable to determine stateMutability","value",e),t}var br=function(e){Jt(r,e) -var t=Zt(r) -function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))}) -e===cr.sighash&&nr.throwError("cannot format a constructor for sighash",h.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"}) -var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") " -return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e -"constructor"!==e.type&&nr.throwArgumentError("invalid constructor object","value",e) -var t=vr(e) -t.constant&&nr.throwArgumentError("constructor cannot be constant","value",e) -var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(fr.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?b.from(e.gas):null} -return new r(ir,n)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=mr(e,t)).match(Er) -return n&&"constructor"===n[1].trim()||nr.throwArgumentError("invalid constructor string","value",e),t.inputs=hr(n[2].trim(),!1),yr(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(dr),gr=function(e){Jt(r,e) -var t=Zt(r) -function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))}) -var t="" -return e!==cr.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") ",e!==cr.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e -"function"!==e.type&&nr.throwArgumentError("invalid function object","value",e) -var t=vr(e),n={type:e.type,name:Or(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(fr.fromObject):[],outputs:e.outputs?e.outputs.map(fr.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?b.from(e.gas):null} -return new r(ir,n)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=mr(e,t)).split(" returns ") -n.length>2&&nr.throwArgumentError("invalid function string","value",e) -var i=n[0].match(Er) -if(i||nr.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&Or(t.name),t.inputs=hr(i[2],!1),yr(i[3].trim(),t),n.length>1){var o=n[1].match(Er) -""==o[1].trim()&&""==o[3].trim()||nr.throwArgumentError("unexpected tokens","value",e),t.outputs=hr(o[2],!1)}else t.outputs=[] -return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(br) -function wr(e){var t=e.format() -return"Error(string)"!==t&&"Panic(uint256)"!==t||nr.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var _r=function(e){Jt(r,e) -var t=Zt(r) -function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))}) -var t="" -return e!==cr.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e -"error"!==e.type&&nr.throwArgumentError("invalid error object","value",e) -var t={type:e.type,name:Or(e.name),inputs:e.inputs?e.inputs.map(fr.fromObject):[]} -return wr(new r(ir,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(Er) -return n||nr.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Or(t.name),t.inputs=hr(n[2],!1),wr(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(dr) -function xr(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var kr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$") -function Or(e){return e&&e.match(kr)||nr.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var Er=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$") -function Sr(e,t){for(var r=0;r256||n%8!=0)&&Pr.throwArgumentError("invalid "+r[1]+" bit length","param",e),new It(n/8,"int"===r[1],e.name)}if(r=e.type.match(Mr)){var i=parseInt(r[1]) -return(0===i||i>32)&&Pr.throwArgumentError("invalid bytes length","param",e),new pt(i,e.name)}return Pr.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new z(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new U(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(fr.from(e))})) -return new Kt(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this -e.length!==t.length&&Pr.throwError("types/values length mismatch",h.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}}) -var n=e.map((function(e){return r._getCoder(fr.from(e))})),i=new Kt(n,"_"),o=this._getWriter() -return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,i=e.map((function(e){return n._getCoder(fr.from(e))})) -return new Kt(i,"_").decode(this._getReader(Object(c.a)(t),r))}}])&&Sr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Tr=new Ar -function Rr(e){return(Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cr(e,t){for(var r=0;r1&&Ur.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[gr.fromString(e).format()] -return i||Ur.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if(Object(c.l)(e)){var t=e.toLowerCase() -for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r] -Ur.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n})) -return 0===i.length?Ur.throwArgumentError("no matching event","name",n):i.length>1&&Ur.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[pr.fromString(e).format()] -return o||Ur.throwArgumentError("no matching event","signature",e),o}},{key:"getError",value:function(e){if(Object(c.l)(e)){var t=P(this.constructor,"getSighash") -for(var r in this.errors)if(e===t(this.errors[r]))return this.errors[r] -Ur.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n})) -return 0===i.length?Ur.throwArgumentError("no matching error","name",n):i.length>1&&Ur.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[gr.fromString(e).format()] -return o||Ur.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return P(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),P(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e)) -var r=Object(c.a)(t) -return Object(c.i)(r.slice(0,4))!==this.getSighash(e)&&Ur.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(c.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(c.i)(Object(c.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e)) -var r=Object(c.a)(t) -return Object(c.i)(r.slice(0,4))!==this.getSighash(e)&&Ur.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(c.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(c.i)(Object(c.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e)) -var r=Object(c.a)(t),n=null,i="",o=null,a=null,s=null -switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(f){}break -case 4:var u=Object(c.i)(r.slice(0,4)),l=Wr[u] -if(l)o=this._abiCoder.decode(l.inputs,r.slice(4)),a=l.name,s=l.signature,l.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0])) -else try{var f=this.getError(u) -o=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,s=f.format()}catch(f){}}return Ur.throwError("call revert exception"+i,h.b.errors.CALL_EXCEPTION,{method:e.format(),data:Object(c.i)(t),errorArgs:o,errorName:a,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(c.i)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this -"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Ur.throwError("too many arguments for "+e.format(),h.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t}) -var n=[] -e.anonymous||n.push(this.getEventTopic(e)) -var i=function(e,t){return"string"===e.type?ke(t):"bytes"===e.type?V(Object(c.i)(t)):("address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(c.h)(Object(c.i)(t),32))} -for(t.forEach((function(t,r){var o=e.inputs[r] -o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?Ur.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((function(e){return i(o,e)}))):n.push(i(o,t)):null!=t&&Ur.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop() -return n}},{key:"encodeEventLog",value:function(e,t){var r=this -"string"==typeof e&&(e=this.getEvent(e)) -var n=[],i=[],o=[] -return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Ur.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a] -if(e.indexed)if("string"===e.type)n.push(ke(s)) -else if("bytes"===e.type)n.push(V(s)) -else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented") -n.push(r._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e) -Object(c.l)(r[0],32)&&r[0].toLowerCase()===n||Ur.throwError("fragment/topic mismatch",h.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[] -e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(fr.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))})) -var s=null!=r?this._abiCoder.decode(i,Object(c.b)(r)):null,u=this._abiCoder.decode(o,t,!0),l=[],f=0,d=0 -e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)l[t]=new Vr({_isIndexed:!0,hash:null}) -else if(a[t])l[t]=new Vr({_isIndexed:!0,hash:s[d++]}) -else try{l[t]=s[d++]}catch(e){l[t]=e}else try{l[t]=u[f++]}catch(e){l[t]=e}if(e.name&&null==l[e.name]){var r=l[t] -r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw Yr("property ".concat(JSON.stringify(e.name)),r)}}):l[e.name]=r}})) -for(var p=function(e){var t=l[e] -t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw Yr("index ".concat(e),t)}})},m=0;m=0)throw e -return pn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&pn.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,M(r) -case 23:return t.abrupt("return",t.sent) -case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||pn.throwError("missing provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") -e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(r,e) -var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 -if(Reflect.construct.sham)return!1 -if("function"==typeof Proxy)return!0 -try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() -return function(){var r,n=cn(e) -if(t){var i=cn(this).constructor -r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) -return sn(this,r)}}(r) -function r(e,n){var i -return ln(this,r),pn.checkNew(this instanceof r?this.constructor:void 0,r),S(un(i=t.call(this)),"address",e),S(un(i),"provider",n||null),i}return hn(r,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){pn.throwError(e,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new r(this.address,e)}}]),r}(vn),gn=r(180) -function wn(e,t){for(var r=0;r32&&Mn.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function Dn(e,t){return{address:ae(e),storageKeys:(t||[]).map((function(t,r){return 32!==Object(c.d)(t)&&Mn.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function Ln(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&Mn.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),Dn(e[0],e[1])):Dn(e.address,e.storageKeys)})) -var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{}) -return Dn(t,Object.keys(r).sort())})) -return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function Bn(e){return Ln(e).map((function(e){return[e.address,e.storageKeys]}))}function Fn(e,t){if(null!=e.gasPrice){var r=b.from(e.gasPrice),n=b.from(e.maxFeePerGas||0) -r.eq(n)||Mn.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[Nn(e.chainId||0,"chainId"),Nn(e.nonce||0,"nonce"),Nn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Nn(e.maxFeePerGas||0,"maxFeePerGas"),Nn(e.gasLimit||0,"gasLimit"),null!=e.to?ae(e.to):"0x",Nn(e.value||0,"value"),e.data||"0x",Bn(e.accessList||[])] -if(t){var o=Object(c.n)(t) -i.push(Nn(o.recoveryParam,"recoveryParam")),i.push(Object(c.o)(o.r)),i.push(Object(c.o)(o.s))}return Object(c.c)(["0x02",K(i)])}function Un(e,t){var r=[Nn(e.chainId||0,"chainId"),Nn(e.nonce||0,"nonce"),Nn(e.gasPrice||0,"gasPrice"),Nn(e.gasLimit||0,"gasLimit"),null!=e.to?ae(e.to):"0x",Nn(e.value||0,"value"),e.data||"0x",Bn(e.accessList||[])] -if(t){var n=Object(c.n)(t) -r.push(Nn(n.recoveryParam,"recoveryParam")),r.push(Object(c.o)(n.r)),r.push(Object(c.o)(n.s))}return Object(c.c)(["0x01",K(r)])}function zn(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&Mn.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){j(e,Rn) -var r=[] -Tn.forEach((function(t){var n=e[t.name]||[],i={} -t.numeric&&(i.hexPad="left"),n=Object(c.a)(Object(c.i)(n,i)),t.length&&n.length!==t.length&&n.length>0&&Mn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(c.o)(n)).length>t.maxLength&&Mn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push(Object(c.i)(n))})) -var n=0 -if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&Mn.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(c.k)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(c.i)(n)),r.push("0x"),r.push("0x")),!t)return K(r) -var i=Object(c.n)(t),o=27+i.recoveryParam -return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&Mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&Mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(c.i)(o)),r.push(Object(c.o)(Object(c.a)(i.r))),r.push(Object(c.o)(Object(c.a)(i.s))),K(r)}(e,t) -switch(e.type){case 1:return Un(e,t) -case 2:return Fn(e,t)}return Mn.throwError("unsupported transaction type: ".concat(e.type),h.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function Hn(e,t,r){try{var n=An(t[0]).toNumber() -if(0!==n&&1!==n)throw new Error("bad recid") -e.v=n}catch(e){Mn.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(c.h)(t[1],32),e.s=Object(c.h)(t[2],32) -try{var i=V(r(e)) -e.from=In(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){console.log(e)}}function qn(e){var t=Object(c.a)(e) -if(t[0]>127)return function(e){var t=Z(e) -9!==t.length&&6!==t.length&&Mn.throwArgumentError("invalid raw transaction","rawTransaction",e) -var r={nonce:An(t[0]).toNumber(),gasPrice:An(t[1]),gasLimit:An(t[2]),to:jn(t[3]),value:An(t[4]),data:t[5],chainId:0} -if(6===t.length)return r -try{r.v=b.from(t[6]).toNumber()}catch(e){return console.log(e),r}if(r.r=Object(c.h)(t[7],32),r.s=Object(c.h)(t[8],32),b.from(r.r).isZero()&&b.from(r.s).isZero())r.chainId=r.v,r.v=0 -else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0) -var n=r.v-27,i=t.slice(0,6) -0!==r.chainId&&(i.push(Object(c.i)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8) -var o=V(K(i)) -try{r.from=In(o,{r:Object(c.i)(r.r),s:Object(c.i)(r.s),recoveryParam:n})}catch(e){console.log(e)}r.hash=V(e)}return r.type=null,r}(t) -switch(t[0]){case 1:return function(e){var t=Z(e.slice(1)) -8!==t.length&&11!==t.length&&Mn.throwArgumentError("invalid component count for transaction type: 1","payload",Object(c.i)(e)) -var r={type:1,chainId:An(t[0]).toNumber(),nonce:An(t[1]).toNumber(),gasPrice:An(t[2]),gasLimit:An(t[3]),to:jn(t[4]),value:An(t[5]),data:t[6],accessList:Ln(t[7])} -return 8===t.length||(r.hash=V(e),Hn(r,t.slice(8),Un)),r}(t) -case 2:return function(e){var t=Z(e.slice(1)) -9!==t.length&&12!==t.length&&Mn.throwArgumentError("invalid component count for transaction type: 2","payload",Object(c.i)(e)) -var r=An(t[2]),n=An(t[3]),i={type:2,chainId:An(t[0]).toNumber(),nonce:An(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:An(t[4]),to:jn(t[5]),value:An(t[6]),data:t[7],accessList:Ln(t[8])} -return 9===t.length||(i.hash=V(e),Hn(i,t.slice(9),Fn)),i}(t)}return Mn.throwError("unsupported transaction type: ".concat(t[0]),h.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function Vn(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wn(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wn(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r1)){e=e.substring(1) -var r=t[0] -try{null==i[e]&&S(i,e,i[r])}catch(e){}null==i.functions[e]&&S(i.functions,e,i.functions[r]),null==i.callStatic[e]&&S(i.callStatic,e,i.callStatic[r]),null==i.populateTransaction[e]&&S(i.populateTransaction,e,i.populateTransaction[r]),null==i.estimateGas[e]&&S(i.estimateGas,e,i.estimateGas[r])}}))}return ti(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this -return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&ii.throwError("contract not deployed",h.b.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this -this.signer||ii.throwError("sending a transactions require a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"}) -var r=A(e||{}) -return["from","to"].forEach((function(e){null!=r[e]&&ii.throwError("cannot override "+e,h.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))}},{key:"connect",value:function(e){"string"==typeof e&&(e=new bn(e,this.provider)) -var t=new this.constructor(this.address,this.interface,e) -return this.deployTransaction&&S(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new pi) -if("event"===e)return this._normalizeRunningEvent(new di("event",null)) -if("*"===e)return this._normalizeRunningEvent(new yi(this.address,this.interface)) -var t=this.interface.getEvent(e) -return this._normalizeRunningEvent(new mi(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0] -if("string"!=typeof r)throw new Error("invalid topic") -var n=this.interface.getEvent(r) -return this._normalizeRunningEvent(new mi(this.address,this.interface,n,e.topics))}catch(e){}var i={address:this.address,topics:e.topics} -return this._normalizeRunningEvent(new di(hi(i),i))}return this._normalizeRunningEvent(new yi(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag] -var t=this._wrappedEmits[e.tag] -t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,r){var n=this,i=R(t) -return i.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},i.getBlock=function(){return n.provider.getBlock(t.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,r){var n=this -if(this.provider||ii.throwError("events require a provider or a signer with a provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(r){var i=n._wrapEvent(e,r,t) -if(null==i.decodeError)try{var o=e.getEmit(i) -n.emit.apply(n,[e.filter].concat(Vn(o)))}catch(e){i.decodeError=e.error}null!=e.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)} -this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,r){var n=this,i=this._getRunningEvent(e),o=A(i.filter) -return"string"==typeof t&&Object(c.l)(t,32)?(null!=r&&ii.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=r?r:"latest"),this.provider.getLogs(o).then((function(e){return e.map((function(e){return n._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1 -for(var t=this._getRunningEvent(e),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i0 -return this._checkRunningEvents(t),o}},{key:"listenerCount",value:function(e){var t=this -return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){var t=this -if(!this.provider)return[] -if(null==e){var r=function(){var e=[] -for(var r in t._runningEvents)t._runningEvents[r].listeners().forEach((function(t){e.push(t)})) -return{v:e}}() -if("object"===ri(r))return r.v}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this -if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t] -r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e) -return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(e,t){if(!this.provider)return this -var r=this._getRunningEvent(e) -return r.removeListener(t),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return ce(e)}},{key:"getInterface",value:function(e){return Gr.isInterface(e)?e:new Gr(e)}},{key:"isIndexed",value:function(e){return Vr.isIndexed(e)}}]),e}(),bi=function(e){Kn(r,e) -var t=$n(r) -function r(){return Xn(this,r),t.apply(this,arguments)}return ti(r)}(vi),gi=function(){function e(t,r,n){Xn(this,e) -var i=null -"0x"!==(i="string"==typeof r?r:Object(c.j)(r)?Object(c.i)(r):r&&"string"==typeof r.object?r.object:"!").substring(0,2)&&(i="0x"+i),(!Object(c.l)(i)||i.length%2)&&ii.throwArgumentError("invalid bytecode","bytecode",r),n&&!vn.isSigner(n)&&ii.throwArgumentError("invalid signer","signer",n),S(this,"bytecode",i),S(this,"interface",P(this instanceof e?this.constructor:void 0,"getInterface")(t)),S(this,"signer",n||null)}return ti(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n=0&&e<=256&&!(e%1)?"1"+ji.substring(0,e):Oi.throwArgumentError("invalid decimal size","decimals",e)}function Ti(e,t){null==t&&(t=0) -var r=Ai(t),n=(e=b.from(e)).lt(Si) -n&&(e=e.mul(Pi)) -for(var i=e.mod(r).toString();i.length2&&Oi.throwArgumentError("too many decimal points","value",e) -var o=i[0],a=i[1] -for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1) -for(a.length>r.length-1&&Mi("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length80&&Oi.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(Ei,r,n,i)}}]),e}(),Ii=function(){function e(t,r,n,i){_i(this,e),Oi.checkNew(this instanceof e?this.constructor:void 0,e),t!==Ei&&Oi.throwError("cannot use FixedNumber constructor; use FixedNumber.from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return ki(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&Oi.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t) -var r=Ri(this._value,this.format.decimals),n=Ri(t._value,t.format.decimals) -return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t) -var r=Ri(this._value,this.format.decimals),n=Ri(t._value,t.format.decimals) -return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t) -var r=Ri(this._value,this.format.decimals),n=Ri(t._value,t.format.decimals) -return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t) -var r=Ri(this._value,this.format.decimals),n=Ri(t._value,t.format.decimals) -return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".") -1===t.length&&t.push("0") -var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/) -return this.isNegative()&&n&&(r=r.subUnsafe(Ni.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".") -1===t.length&&t.push("0") -var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/) -return!this.isNegative()&&n&&(r=r.addUnsafe(Ni.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0) -var r=this.toString().split(".") -if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&Oi.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this -var n=e.from("1"+ji.substring(0,t),this.format),i=Di.toFormat(this.format) -return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex -e%8&&Oi.throwArgumentError("invalid byte width","width",e) -var t=b.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString() -return Object(c.h)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||function(e){return null!=e&&(b.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(c.l)(e)||"bigint"==typeof e||Object(c.j)(e))}(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(Ti(t,r),Ci.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed") -var n=Ci.from(r),i=Ri(t,n.decimals) -!n.signed&&i.lt(Si)&&Mi("unsigned value cannot be negative","overflow","value",t) -var o=null -n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=Object(c.h)(o,n.width/8)) -var a=Ti(i,n.decimals) -return new e(Ei,o,a,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed") -var n=Ci.from(r) -if(Object(c.a)(t).length>n.width/8)throw new Error("overflow") -var i=b.from(t) -n.signed&&(i=i.fromTwos(n.width)) -var o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=Ti(i,n.decimals) -return new e(Ei,o,a,n)}},{key:"from",value:function(t,r){if("string"==typeof t)return e.fromString(t,r) -if(Object(c.j)(t))return e.fromBytes(t,r) -try{return e.fromValue(t,0,r)}catch(e){if(e.code!==h.b.errors.INVALID_ARGUMENT)throw e}return Oi.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),Ni=Ii.from(1),Di=Ii.from("0.5") -function Li(e){return"string"==typeof e&&(e=ve(e)),V(Object(c.b)([ve("Ethereum Signed Message:\n"),ve(String(e.length)),e]))}function Bi(e,t){for(var r=0;r256||t[2]&&t[2]!==String(n))&&Fi.throwArgumentError("invalid numeric width","type",e) -var i=Vi.mask(r?n-1:n),o=r?i.add(qi).mul(zi):Hi -return function(t){var r=b.from(t) -return(r.lt(o)||r.gt(i))&&Fi.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(c.h)(r.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/) -if(a){var s=parseInt(a[1]) -return(0===s||s>32||a[1]!==String(s))&&Fi.throwArgumentError("invalid bytes width","type",e),function(t){return Object(c.a)(t).length!==s&&Fi.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(c.a)(e),r=t.length%32 -return r?Object(c.c)([t,Ui.slice(r)]):Object(c.i)(t)}(t)}}switch(e){case"address":return function(e){return Object(c.h)(ae(e),32)} -case"bool":return function(e){return e?Wi:Yi} -case"bytes":return function(e){return V(e)} -case"string":return function(e){return ke(e)}}return null}function Qi(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name -return e.type+" "+t})).join(","),")")}var Xi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,"types",Object.freeze(R(t))),S(this,"_encoderCache",{}),S(this,"_types",{}) -var r={},n={},i={} -Object.keys(t).forEach((function(e){r[e]={},n[e]=[],i[e]={}})) -var o=function(e){var i={} -t[e].forEach((function(o){i[o.name]&&Fi.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0 -var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1] -a===e&&Fi.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),Zi(a)||(n[a]||Fi.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),n[a].push(e),r[e][a]=!0)}))} -for(var a in t)o(a) -var s=Object.keys(n).filter((function(e){return 0===n[e].length})) -for(var u in 0===s.length?Fi.throwArgumentError("missing primary type","types",t):s.length>1&&Fi.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),S(this,"primaryType",s[0]),function e(o,a){a[o]&&Fi.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),a[o]=!0,Object.keys(r[o]).forEach((function(t){n[t]&&(e(t,a),Object.keys(a).forEach((function(e){i[e][t]=!0})))})),delete a[o]}(this.primaryType,{}),i){var c=Object.keys(i[u]) -c.sort(),this._types[u]=Qi(u,t[u])+c.map((function(e){return Qi(e,t[e])})).join("")}}var t,r,n -return t=e,n=[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[] -for(var n in t){var i=Gi[n] -i||Fi.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:i})}return r.sort((function(e,t){return Ki.indexOf(e.name)-Ki.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return Object(c.c)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return V(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,i){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t -e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function o(){var a,s,u -return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=A(t),a={},t.verifyingContract&&!Object(c.l)(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),(s=e.from(r)).visit(n,(function(e,t){return"address"!==e||Object(c.l)(t,20)||(a[t]="0x"),t})),o.t0=regeneratorRuntime.keys(a) -case 6:if((o.t1=o.t0()).done){o.next=13 -break}return u=o.t1.value,o.next=10,i(u) -case 10:a[u]=o.sent,o.next=6 -break -case 13:return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),n=s.visit(n,(function(e,t){return"address"===e&&a[t]?a[t]:t})),o.abrupt("return",{domain:t,value:n}) -case 16:case"end":return o.stop()}}),o)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t) -var i={},o=[] -Ki.forEach((function(e){var r=t[e] -null!=r&&(i[e]=Ji[e](r),o.push({name:e,type:Gi[e]}))})) -var a=e.from(r),s=A(r) -return s.EIP712Domain?Fi.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(c.i)(Object(c.a)(t)) -if(e.match(/^u?int/))return b.from(t).toString() -switch(e){case"address":return t.toLowerCase() -case"bool":return!!t -case"string":return"string"!=typeof t&&Fi.throwArgumentError("invalid string","value",t),t}return Fi.throwArgumentError("unsupported type","type",e)}))}}}],(r=[{key:"getEncoder",value:function(e){var t=this._encoderCache[e] -return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=Zi(e) -if(r)return r -var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/) -if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]) -return function(e){a>=0&&e.length!==a&&Fi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e) -var r=e.map(o) -return t._types[i]&&(r=r.map(V)),V(Object(c.c)(r))}}var s=this.types[e] -if(s){var u=ke(this._types[e]) -return function(e){var r=s.map((function(r){var n=r.name,i=r.type,o=t.getEncoder(i)(e[n]) -return t._types[i]?V(o):o})) -return r.unshift(u),Object(c.c)(r)}}return Fi.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e] -return t||Fi.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return V(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this -if(Zi(e))return r(e,t) -var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/) -if(i){var o=i[1],a=parseInt(i[3]) -return a>=0&&t.length!==a&&Fi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(o,e,r)}))}var s=this.types[e] -return s?s.reduce((function(e,i){var o=i.name,a=i.type -return e[o]=n._visit(a,t[o],r),e}),{}):Fi.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}])&&Bi(t.prototype,r),n&&Bi(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() -function eo(e,t){for(var r=0;r0;)r.push(i%this.base),i=i/this.base|0}for(var a="",s=0;0===t[s]&&s=0;--u)a+=this.alphabet[r[u]] -return a}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String") -var t=[] -if(0===e.length)return new Uint8Array(t) -t.push(0) -for(var r=0;r>=8 -for(;i>0;)t.push(255&i),i>>=8}for(var a=0;e[a]===this._leader&&a>24&255,f[t.length+1]=h>>16&255,f[t.length+2]=h>>8&255,f[t.length+3]=255&h -var d=Object(c.a)(lo(i,e,f)) -o||(o=d.length,s=new Uint8Array(o),a=n-((u=Math.ceil(n/o))-1)*o),s.set(d) -for(var p=1;p64)throw new Error("invalid seed") -var i=Object(c.a)(lo(to.sha512,Mo,n)) -return new e(Co,Ao(i.slice(0,32)),null,"0x00000000",Ao(i.slice(32)),0,0,r)}},{key:"fromMnemonic",value:function(t,r,n){return t=Bo(Lo(t,n=Ro(n)),n),e._fromSeed(Do(t,r),{phrase:t,path:"m",locale:n.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var r=no.decode(t) -82===r.length&&To(r.slice(0,78))===t||So.throwArgumentError("invalid extended key","extendedKey","[REDACTED]") -var n=r[4],i=Object(c.i)(r.slice(5,9)),o=parseInt(Object(c.i)(r.slice(9,13)).substring(2),16),a=Object(c.i)(r.slice(13,45)),s=r.slice(45,78) -switch(Object(c.i)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(Co,null,Object(c.i)(s),i,a,o,n,null) -case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break -return new e(Co,Object(c.i)(s.slice(1)),null,i,a,o,n,null)}return So.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}],(r=[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!") -return To(Object(c.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(c.i)(this.depth),this.parentFingerprint,Object(c.h)(Object(c.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(c.b)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(Co,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t)) -var r=this.path -r&&(r+="/"+(2147483647&t)) -var n=new Uint8Array(37) -if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node") -n.set(Object(c.a)(this.privateKey),1),r&&(r+="'")}else n.set(Object(c.a)(this.publicKey)) -for(var i=24;i>=0;i-=8)n[33+(i>>3)]=t>>24-i&255 -var o=Object(c.a)(lo(to.sha512,this.chainCode,n)),a=o.slice(0,32),s=o.slice(32),u=null,l=null -this.privateKey?u=Ao(b.from(a).add(this.privateKey).mod(Po)):l=new On(Object(c.i)(a))._addPoint(this.publicKey) -var f=r,h=this.mnemonic -return h&&(f=Object.freeze({phrase:h.phrase,path:r,locale:h.locale||"en"})),new e(Co,u,l,this.fingerprint,Ao(s),t,this.depth+1,f)}},{key:"derivePath",value:function(e){var t=e.split("/") -if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e) -"m"===t[0]&&t.shift() -for(var r=this,n=0;n=2147483648)throw new Error("invalid path index - "+i) -r=r._derive(2147483648+o)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i) -var a=parseInt(i) -if(a>=2147483648)throw new Error("invalid path index - "+i) -r=r._derive(a)}}return r}}])&&Eo(t.prototype,r),n&&Eo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() -function Do(e,t){t||(t="") -var r=ve("mnemonic"+t,fe.NFKD) -return fo(ve(e,fe.NFKD),r,2048,64,"sha512")}function Lo(e,t){t=Ro(t),So.checkNormalize() -var r=t.split(e) -if(r.length%3!=0)throw new Error("invalid mnemonic") -for(var n=Object(c.a)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,o=0;o>3]|=1<<7-i%8),i++}var u=32*r.length/3,l=jo(r.length/3) -if((Object(c.a)(uo(n.slice(0,u/8)))[0]&l)!=(n[n.length-1]&l))throw new Error("invalid checksum") -return Object(c.i)(n.slice(0,u/8))}function Bo(e,t){if(t=Ro(t),(e=Object(c.a)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy") -for(var r=[0],n=11,i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3) -var o=e.length/4,a=Object(c.a)(uo(e))[0]&jo(o) -return r[r.length-1]<<=o,r[r.length-1]|=a>>8-o,t.join(r.map((function(e){return t.getWord(e)})))}function Fo(e,t){try{return Lo(e,t),!0}catch(e){}return!1}function Uo(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&So.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}var zo=r(539),Ho=r(20),qo=r.n(Ho),Vo=r(70),Wo=r.n(Vo) -function Yo(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(c.a)(e)}function Go(e,t){for(e=String(e);e.length=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue -return i}}return null}var Ka=Ya("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),$a="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),Ja=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Za=Wa("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Qa=Wa("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Xa=Wa("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data") -for(var t=[],r=0;r=0||e>=65024&&e<=65039?[]:function(e){var t=Ga(e,Ja) -if(t)return[e+t.s] -var r=Za[e] -if(r)return r -var n=Qa[e] -return n?[e+n[0]]:Xa[e]||null}(e)||[e]})),(r=xe(we(r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[])),fe.NFKC)).forEach((function(e){if(Ga(e,es))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(Ga(e,Ka))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")})) -var n=we(r) -if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen") -if(n.length>63)throw new Error("too long") -return n}var rs=new h.b("hash/5.6.0"),ns=new Uint8Array(32) -ns.fill(0) -var is=new RegExp("^((.*)\\.)?([^.]+)$") -function os(e){try{for(var t=e.split("."),r=0;r0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n) -var i="object"===fs(e)?e.throttleCallback:null,o="object"===fs(e)&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100 -hs.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o) -var a="object"===fs(e)&&!!e.errorPassThrough,s={},u=null,c={method:"GET"},l=!1,f=12e4 -if("string"==typeof e)u=e -else if("object"===fs(e)){if(null!=e&&null!=e.url||hs.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(f=e.timeout),e.headers)for(var d in e.headers)s[d.toLowerCase()]={key:d,value:String(e.headers[d])},["if-none-match","if-modified-since"].indexOf(d.toLowerCase())>=0&&(l=!0) -if(c.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&hs.throwError("basic authentication requires a secure https url",h.b.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"}) -var p=e.user+":"+e.password -s.authorization={key:"Authorization",value:"Basic "+cs(ve(p))}}null!=e.skipFetchSetup&&(c.skipFetchSetup=!!e.skipFetchSetup)}var m=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),y=u?u.match(m):null -if(y)try{var v={statusCode:200,statusMessage:"OK",headers:{"content-type":y[1]},body:us(y[2])},b=v.body -return r&&(b=r(v.body,v)),Promise.resolve(b)}catch(e){hs.throwError("processing response error",h.b.errors.SERVER_ERROR,{body:ps(y[1],y[2]),error:e,requestBody:null,requestMethod:"GET",url:u})}t&&(c.method="POST",c.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)})) -var g={} -Object.keys(s).forEach((function(e){var t=s[e] -g[t.key]=t.value})),c.headers=g -var w,_=(w=null,{promise:new Promise((function(e,t){f&&(w=setTimeout((function(){null!=w&&(w=null,t(hs.makeError("timeout",h.b.errors.TIMEOUT,{requestBody:ps(c.body,g["content-type"]),requestMethod:c.method,timeout:f,url:u})))}),f))})),cancel:function(){null!=w&&(clearTimeout(w),w=null)}}),x=function(){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t -e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,s,f,d,p,m,y,v,b,w -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0 -case 1:if(!(t=300)&&(_.cancel(),hs.throwError("bad response",h.b.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:ps(y,s.headers?s.headers["content-type"]:null),requestBody:ps(c.body,g["content-type"]),requestMethod:c.method,url:u})),!r){e.next=60 -break}return e.prev=37,e.next=40,r(y,s) -case 40:return v=e.sent,_.cancel(),e.abrupt("return",v) -case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(a()&&n(new Error("retry limit reached"))) -var c=t.interval*parseInt(String(Math.random()*Math.pow(2,u))) -ct.ceiling&&(c=t.ceiling),setTimeout(i,c)}return null}),(function(e){a()&&n(e)}))}()}))}var bs=r(96),gs=r.n(bs) -function ws(e,t){for(var r=0;r0&&null==e[e.length-1];)e.pop() -return e.map((function(e){if(Array.isArray(e)){var t={} -e.forEach((function(e){t[Ls(e)]=!0})) -var r=Object.keys(t) -return r.sort(),r.join("|")}return Ls(e)})).join("&")}function Fs(e){if("string"==typeof e){if(e=e.toLowerCase(),32===Object(c.d)(e))return"tx:"+e -if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+Bs(e) -if(rn.isForkEvent(e))throw Ds.warn("not implemented"),new Error("not implemented") -if(e&&"object"===Is(e))return"filter:"+(e.address||"*")+":"+Bs(e.topics||[])}throw new Error("invalid event - "+e)}function Us(){return(new Date).getTime()}function zs(e){return new Promise((function(t){setTimeout(t,e)}))}var Hs=["block","network","pending","poll"],qs=function(){function e(t,r,n){Ts(this,e),S(this,"tag",t),S(this,"listener",r),S(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Cs(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash -case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":") -return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":") -if("filter"!==e[0])return null -var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[] -var t=e.split("|").map((function(e){return"null"===e?null:e})) -return 1===t.length?t[0]:t})),i={} -return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||Hs.indexOf(this.tag)>=0}}]),e}(),Vs={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}} -function Ws(e){return Object(c.h)(b.from(e).toHexString(),32)}function Ys(e){return no.encode(Object(c.b)([e,Object(c.e)(uo(uo(e)),0,4)]))}var Gs=new RegExp("^(ipfs)://(.*)$","i"),Ks=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Gs,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")] -function $s(e,t){try{return _e(Js(e,t))}catch(e){}return null}function Js(e,t){if("0x"===e)return null -var r=b.from(Object(c.e)(e,t,t+32)).toNumber(),n=b.from(Object(c.e)(e,r,r+32)).toNumber() -return Object(c.e)(e,r+32,r+32+n)}function Zs(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Ds.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function Qs(e){var t=Object(c.a)(e) -if(t.length>32)throw new Error("internal; should not happen") -var r=new Uint8Array(32) -return r.set(t,32-t.length),r}function Xs(e){if(e.length%32==0)return e -var t=new Uint8Array(32*Math.ceil(e.length/32)) -return t.set(e),t}function eu(e){for(var t=[],r=0,n=0;n=1&&o<=75)return Ys(Object(c.b)([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/) -if(a){var s=parseInt(a[1],16) -if(a[2].length===2*s&&s>=1&&s<=75)return Ys(Object(c.b)([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var u=n[1],l=n[0] -if(0===l?20!==u&&32!==u&&(l=-1):l=-1,l>=0&&n.length===2+u&&u>=1&&u<=75){var f=gs.a.toWords(n.slice(2)) -return f.unshift(l),gs.a.encode(r.prefix,f)}}return null}},{key:"getAddress",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16 -break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de") -case 5:if("0x"!==(r=t.sent)&&r!==Na){t.next=8 -break}return t.abrupt("return",null) -case 8:return t.abrupt("return",this.provider.formatter.callAddress(r)) -case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==h.b.errors.CALL_EXCEPTION){t.next=15 -break}return t.abrupt("return",null) -case 15:throw t.t0 -case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",Ws(e)) -case 18:if(null!=(n=t.sent)&&"0x"!==n){t.next=21 -break}return t.abrupt("return",null) -case 21:return null==(i=this._getAddress(e,n))&&Ds.throwError("invalid or unsupported coin data",h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:n}),t.abrupt("return",i) -case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l,f,h,d,p,m,y,v -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar") -case 4:if(null!=(r=e.sent)){e.next=7 -break}return e.abrupt("return",null) -case 7:n=0 -case 8:if(!(n=0?null:JSON.stringify({data:o,sender:i}),n.next=12,ys({url:c,errorPassThrough:!0},l,(function(e,t){return e.status=t.statusCode,e})) -case 12:if(!(f=n.sent).data){n.next=15 -break}return n.abrupt("return",f.data) -case 15:if(d=f.message||"unknown error",!(f.status>=400&&f.status<500)){n.next=18 -break}return n.abrupt("return",Ds.throwError("response not found during CCIP fetch: ".concat(d),h.b.errors.SERVER_ERROR,{url:u,errorMessage:d})) -case 18:a.push(d) -case 19:s++,n.next=6 -break -case 22:return n.abrupt("return",Ds.throwError("error encountered during CCIP fetch: ".concat(a.map((function(e){return JSON.stringify(e)})).join(", ")),h.b.errors.SERVER_ERROR,{urls:r,errorMessages:a})) -case 23:case"end":return n.stop()}}),n,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o,a=this -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready() -case 2:if(!(e>0)){t.next=20 -break}case 3:if(!this._internalBlockNumber){t.next=20 -break}return r=this._internalBlockNumber,t.prev=5,t.next=8,r -case 8:if(n=t.sent,!(Us()-n.respTime<=e)){t.next=11 -break}return t.abrupt("return",n.blockNumber) -case 11:return t.abrupt("break",20) -case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==r){t.next=18 -break}return t.abrupt("break",20) -case 18:t.next=3 -break -case 20:return i=Us(),o=M({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError -if(r)throw a._internalBlockNumber===o&&(a._internalBlockNumber=null),r -var n=Us() -return(t=b.from(t).toNumber())1e3)Ds.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",Ds.makeError("network block skew detected",h.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n) -else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i) -return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=o._emitted[e] -"pending"!==t&&n-t>12&&delete o._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=o.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(o._emitted["t:"+t]=e.blockNumber,o.emit(t,e),null):null})).catch((function(e){o.emit("error",e)})) -r.push(i) -break -case"filter":if(!e._inflight){e._inflight=!0 -var a=e.filter -a.fromBlock=e._lastBlockNumber+1,a.toBlock=n,a.toBlock-o._maxFilterBlockRange>a.fromBlock&&(a.fromBlock=a.toBlock-o._maxFilterBlockRange) -var s=o.getLogs(a).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),o._emitted["b:"+t.blockHash]=t.blockNumber,o._emitted["t:"+t.transactionHash]=t.blockNumber,o.emit(a,t)}))})).catch((function(t){o.emit("error",t),e._inflight=!1})) -r.push(s)}}})),this._lastBlockNumber=n,Promise.all(r).then((function(){o.emit("didPoll",t)})).catch((function(e){o.emit("error",e)})),e.abrupt("return") -case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ds.throwError("provider does not support network detection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})) -case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,n -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready() -case 2:return t=e.sent,e.next=5,this.detectNetwork() -case 5:if(r=e.sent,t.chainId===r.chainId){e.next=23 -break}if(!this.anyNetwork){e.next=20 -break}return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,t),e.next=19,zs(0) -case 19:return e.abrupt("return",this._network) -case 20:throw n=Ds.makeError("underlying network changed",h.b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r}),this.emit("error",n),n -case 23:return e.abrupt("return",t) -case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this -return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this -e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this -if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval") -this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=Us() -return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(e,null==t?1:t,r||0,null)) -case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(e,t,r,n){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a=this -return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(e) -case 2:if(!(((o=i.sent)?o.confirmations:0)>=t)){i.next=5 -break}return i.abrupt("return",o) -case 5:return i.abrupt("return",new Promise((function(i,o){var s=[],u=!1,c=function(){return!!u||(u=!0,s.forEach((function(e){e()})),!1)},l=function(e){e.confirmations0){var m=setTimeout((function(){c()||o(Ds.makeError("timeout exceeded",h.b.errors.TIMEOUT,{timeout:r}))}),r) -m.unref&&m.unref(),s.push((function(){clearTimeout(m)}))}}))) -case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0)) -case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork() -case 2:return e.next=4,this.perform("getGasPrice",{}) -case 4:return t=e.sent,e.prev=5,e.abrupt("return",b.from(t)) -case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0})) -case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() -case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) -case 4:return n=r.sent,r.next=7,this.perform("getBalance",n) -case 7:return i=r.sent,r.prev=8,r.abrupt("return",b.from(i)) -case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:r.t0})) -case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() -case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) -case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n) -case 7:return i=r.sent,r.prev=8,r.abrupt("return",b.from(i).toNumber()) -case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:r.t0})) -case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() -case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) -case 4:return n=r.sent,r.next=7,this.perform("getCode",n) -case 7:return i=r.sent,r.prev=8,r.abrupt("return",Object(c.i)(i)) -case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:r.t0})) -case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o -return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork() -case 2:return n.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return Object(c.g)(e)}))}) -case 4:return i=n.sent,n.next=7,this.perform("getStorageAt",i) -case 7:return o=n.sent,n.prev=8,n.abrupt("return",Object(c.i)(o)) -case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:n.t0})) -case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,r){var n=this -if(null!=t&&32!==Object(c.d)(t))throw new Error("invalid response - sendTransaction") -var i=e -return null!=t&&e.hash!==t&&Ds.throwError("Transaction hash mismatch from Provider.sendTransaction.",h.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=function(t,i){return Ns(n,void 0,void 0,regeneratorRuntime.mark((function n(){var o,a -return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t=1),null==i&&(i=0),o=void 0,0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),n.next=6,this._waitForTransaction(e.hash,t,i,o) -case 6:if(null!=(a=n.sent)||0!==t){n.next=9 -break}return n.abrupt("return",null) -case 9:return this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&Ds.throwError("transaction failed",h.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),n.abrupt("return",a) -case 12:case"end":return n.stop()}}),n,this)})))},i}},{key:"sendTransaction",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork() -case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(c.i)(e)})) -case 4:return r=t.sent,null==(n=this.formatter.transaction(e)).confirmations&&(n.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval) -case 9:return i=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:r}) -case 13:return o=t.sent,t.abrupt("return",this._wrapTransaction(n,o,i)) -case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=n,t.t0.transactionHash=n.hash,t.t0 -case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i=this -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e -case 2:return r=t.sent,n={},["from","to"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?b.from(e):null})))})),["type"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return null!=e?e:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?Object(c.i)(e):null})))})),t.t0=this.formatter,t.next=12,M(n) -case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1)) -case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n=this -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e -case 2:return e=t.sent,r={},null!=e.address&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(r[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(r[t]=n._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,M(r) -case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1)) -case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,l,f,d,p,m,y,v,g,w,_ -return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r>=10&&Ds.throwError("CCIP read exceeded maximum redirections",h.b.errors.SERVER_ERROR,{redirects:r,transaction:e}),i=e.to,n.next=4,this.perform("call",{transaction:e,blockTag:t}) -case 4:if(o=n.sent,!(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&Object(c.d)(o)%32==4)){n.next=31 -break}for(n.prev=6,a=Object(c.e)(o,4),s=Object(c.e)(a,0,32),b.from(s).eq(i)||Ds.throwError("CCIP Read sender did not match",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),u=[],l=b.from(Object(c.e)(a,32,64)).toNumber(),f=b.from(Object(c.e)(a,l,l+32)).toNumber(),d=Object(c.e)(a,l+32),p=0;pthis._emitted.block)){e.next=10 -break}return e.abrupt("return",null) -case 10:return e.abrupt("return",void 0) -case 11:if(!t){e.next=34 -break}o=null,a=0 -case 14:if(!(a0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,r){var n=new qs(Fs(e),t,r) -return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&vu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}function wu(e){return new Promise((function(t){setTimeout(t,e)}))}function _u(e){if(e.error){var t=new Error(e.error.message) -throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function xu(e){return e?e.toLowerCase():e}var ku={},Ou=function(e){lu(r,e) -var t=fu(r) -function r(e,n,i){var o -if(su(this,r),vu.checkNew(this instanceof r?this.constructor:void 0,r),o=t.call(this),e!==ku)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner") -return S(du(o),"provider",n),null==i&&(i=0),"string"==typeof i?(S(du(o),"_address",o.provider.formatter.address(i)),S(du(o),"_index",null)):"number"==typeof i?(S(du(o),"_index",i),S(du(o),"_address",null)):vu.throwArgumentError("invalid address or index","addressOrIndex",i),o}return cu(r,[{key:"connect",value:function(e){return vu.throwError("cannot alter JSON-RPC Signer connection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new Eu(ku,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this -return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&vu.throwError("unknown account #"+e._index,h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this -e=A(e) -var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e})) -if(null==e.gasLimit){var n=A(e) -n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return yu(t,void 0,void 0,regeneratorRuntime.mark((function t(){var r -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2 -break}return t.abrupt("return",null) -case 2:return t.next=4,this.provider.resolveName(e) -case 4:return null==(r=t.sent)&&vu.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r) -case 7:case"end":return t.stop()}}),t,this)})))}))),M({tx:M(e),sender:r}).then((function(r){var n=r.tx,i=r.sender -null!=n.from?n.from.toLowerCase()!==i&&vu.throwArgumentError("from address mismatch","transaction",e):n.from=i -var o=t.provider.constructor.hexlifyTransaction(n,{from:!0}) -return t.provider.send("eth_sendTransaction",[o]).then((function(e){return e}),(function(e){return gu("sendTransaction",e,o)}))}))}},{key:"signTransaction",value:function(e){return vu.throwError("signing transactions is unsupported",h.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return yu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i=this -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval) -case 2:return r=t.sent,t.next=5,this.sendUncheckedTransaction(e) -case 5:return n=t.sent,t.prev=6,t.next=9,vs((function(){return yu(i,void 0,void 0,regeneratorRuntime.mark((function e(){var t -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(n) -case 2:if(null!==(t=e.sent)){e.next=5 -break}return e.abrupt("return",void 0) -case 5:return e.abrupt("return",this.provider._wrapTransaction(t,n,r)) -case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider}) -case 9:return t.abrupt("return",t.sent) -case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=n,t.t0 -case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return yu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?ve(e):e,t.next=3,this.getAddress() -case 3:return n=t.sent,t.next=6,this.provider.send("personal_sign",[Object(c.i)(r),n.toLowerCase()]) -case 6:return t.abrupt("return",t.sent) -case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_legacySignMessage",value:function(e){return yu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?ve(e):e,t.next=3,this.getAddress() -case 3:return n=t.sent,t.next=6,this.provider.send("eth_sign",[n.toLowerCase(),Object(c.i)(r)]) -case 6:return t.abrupt("return",t.sent) -case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,r){return yu(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a=this -return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Xi.resolveNames(e,t,r,(function(e){return a.provider.resolveName(e)})) -case 2:return i=n.sent,n.next=5,this.getAddress() -case 5:return o=n.sent,n.next=8,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(Xi.getPayload(i.domain,t,i.value))]) -case 8:return n.abrupt("return",n.sent) -case 9:case"end":return n.stop()}}),n,this)})))}},{key:"unlock",value:function(e){return yu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.provider,t.next=3,this.getAddress() -case 3:return n=t.sent,t.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),e,null])) -case 5:case"end":return t.stop()}}),t,this)})))}}]),r}(vn),Eu=function(e){lu(r,e) -var t=fu(r) -function r(){return su(this,r),t.apply(this,arguments)}return cu(r,[{key:"sendTransaction",value:function(e){var t=this -return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))}}]),r}(Ou),Su={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},Pu=function(e){lu(r,e) -var t=fu(r) -function r(e,n){var i -su(this,r),vu.checkNew(this instanceof r?this.constructor:void 0,r) -var o=n -return null==o&&(o=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),i=t.call(this,o),e||(e=P(i.constructor,"defaultUrl")()),S(du(i),"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(A(e))),i._nextId=42,i}return cu(r,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this -return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return yu(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wu(0) -case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]) -case 6:t=e.sent,e.next=19 -break -case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]) -case 14:t=e.sent,e.next=19 -break -case 17:e.prev=17,e.t1=e.catch(11) -case 19:if(null==t){e.next=28 -break}return r=P(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",r(b.from(t).toNumber())) -case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",vu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2})) -case 28:return e.abrupt("return",vu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{event:"noNetwork"})) -case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new Ou(ku,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this -return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"} -this.emit("debug",{action:"request",request:R(n),provider:this}) -var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0 -if(i&&this._cache[e])return this._cache[e] -var o=ys(this.connection,JSON.stringify(n),_u).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e})) -return i&&(this._cache[e]=o,setTimeout((function(){r._cache[e]=null}),0)),o}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]] -case"getGasPrice":return["eth_gasPrice",[]] -case"getBalance":return["eth_getBalance",[xu(t.address),t.blockTag]] -case"getTransactionCount":return["eth_getTransactionCount",[xu(t.address),t.blockTag]] -case"getCode":return["eth_getCode",[xu(t.address),t.blockTag]] -case"getStorageAt":return["eth_getStorageAt",[xu(t.address),t.position,t.blockTag]] -case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]] -case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null -case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]] -case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]] -case"call":return["eth_call",[P(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]] -case"estimateGas":return["eth_estimateGas",[P(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]] -case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=xu(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return yu(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==e&&"estimateGas"!==e){r.next=8 -break}if(!(n=t.transaction)||null==n.type||!b.from(n.type).isZero()){r.next=8 -break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8 -break}return r.next=6,this.getFeeData() -case 6:null==(i=r.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((t=A(t)).transaction=A(n),delete t.transaction.type) -case 8:return null==(o=this.prepareRequest(e,t))&&vu.throwError(e+" not implemented",h.b.errors.NOT_IMPLEMENTED,{operation:e}),r.prev=10,r.next=13,this.send(o[0],o[1]) -case 13:return r.abrupt("return",r.sent) -case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",gu(e,r.t0,t)) -case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),ou(pu(r.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]) -this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null -var n=Promise.resolve() -return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return wu(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null -e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),ou(pu(r.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var r=A(Su) -if(t)for(var n in t)t[n]&&(r[n]=!0) -j(e,r) -var i={} -return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=Object(c.g)(e[t]) -"gasLimit"===t&&(t="gas"),i[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=Object(c.i)(e[t]))})),e.accessList&&(i.accessList=Ln(e.accessList)),i}}]),r}(iu),Mu=null -try{if(null==(Mu=WebSocket))throw new Error("inject please")}catch(e){var ju=new h.b("providers/5.6.4") -Mu=function(){ju.throwError("WebSockets not supported in this environment",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}function Au(e){return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tu(e,t){for(var r=0;r=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=u(e,r) +return r-1>=t&&(n|=u(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) +if("object"===t(e))return this._initArray(e,r,n) +"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36) +var o=0 +"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length) +for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8 +else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8 +this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1 +for(var n=0,i=1;i<=67108863;i*=t)n++ +n--,i=i/t|0 +for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length-- +return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""} +var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] +function p(e,t,r){r.negative=t.negative^e.negative +var n=e.length+t.length|0 +r.length=n,n=n-1|0 +var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 +r.words[0]=s +for(var c=1;c>>26,f=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0 +l+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r +if(t=0|t||1,16===(e=e||10)||"hex"===e){r="" +for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=d[e] +r="" +var p=this.clone() +for(p.negative=0;!p.isZero();){var m=p.modn(l).toString(e) +r=(p=p.idivn(l)).isZero()?m+r:f[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0] +return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n) +i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip() +var a,s,u="le"===t,c=new e(o),l=this.clone() +if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a +for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26 +var t=e,r=0 +return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e) +return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0 +for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t +t=this.length>e.length?e:this +for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r +this.length>e.length?(t=this,r=e):(t=e,r=this) +for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0) +var t=0|Math.ceil(e/26),r=e%26 +this._expand(t),r>0&&t-- +for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0) +var r=e/26|0,n=e%26 +return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this) +for(var i=0,o=0;o>>26 +for(;0!==i&&o>>26 +if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++ +else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0 +var t=this.iadd(e) +return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign() +var r,n,i=this.cmp(e) +if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this +i>0?(r=this,n=e):(r=e,n=this) +for(var o=0,a=0;a>26,this.words[a]=67108863&t +for(;0!==o&&a>26,this.words[a]=67108863&t +if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +r.negative=e.negative^t.negative,r.length=19 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 +var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 +c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +function v(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=p),a.prototype.mulTo=function(e,t){var r=this.length+e.length +return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length +for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 +return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e) +if(0===t.length)return new a(1) +for(var r=this,n=0;n=0) +var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r +if(0!==r){var a=0 +for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t] +for(t=0;t=0),n=t?(t-t%26)/26:0 +var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=n);c--){var f=0|this.words[c] +this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0) +var t=e%26,r=(e-t)/26,n=1<=0) +var t=e%26,r=(e-t)/26 +if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this +if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++ +return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e) +if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this +if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1 +else for(var t=0;t>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o +if(0===s)return this.strip() +for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o +return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1] +0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]) +var s,u=n.length-i.length +if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length) +for(var c=0;c=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]) +for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1) +s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t) +var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e) +if(t.mod.isZero())return t.div +var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n) +return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863) +for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e +return r},a.prototype.idivn=function(e){i(e<=67108863) +for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t +this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c +for(var l=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(l),o.isub(f)),n.iushrn(1),o.iushrn(1) +for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1) +t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(c)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1) +for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1) +t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs() +if(e.isZero())return this.abs() +var t=this.clone(),r=e.clone() +t.negative=0,r.negative=0 +for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1) +for(;;){for(;t.isEven();)t.iushrn(1) +for(;r.isEven();)r.iushrn(1) +var i=t.cmp(r) +if(i<0){var o=t +t=r,r=o}else if(0===i||0===r.cmpn(1))break +t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e) +var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0 +if(0!==this.negative&&!r)return-1 +if(0===this.negative&&r)return 1 +if(this.strip(),this.length>1)t=1 +else{r&&(e=-e),i(e<=67108863,"Number is too big") +var n=0|this.words[0] +t=n===e?0:ne.length)return 1 +if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r] +if(n!==i){ni&&(t=1) +break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new O(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} +var b={k256:null,p224:null,p192:null,p25519:null} +function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null) +return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e +do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) +var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},o(w,g),w.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 +for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e] +var t +if("k256"===e)t=new w +else if("p224"===e)t=new _ +else if("p192"===e)t=new k +else{if("p25519"!==e)throw new Error("Unknown prime "+e) +t=new x}return b[e]=t,t},O.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t) +var r=e.add(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t) +var r=e.iadd(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(e,t){this._verify2(e,t) +var r=e.sub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t) +var r=e.isub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone() +var t=this.m.andln(3) +if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) +return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) +i(!n.isZero()) +var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() +for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) +for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr() +i(v=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1 +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new E(e)},o(E,O),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e +var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) +var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t +var r=function(){} +r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var n=r(245),i=r(246),o=r(120) +function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes") +return 0|e}function p(e,t){if(u.isBuffer(e))return e.length +if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength +"string"!=typeof e&&(e=""+e) +var r=e.length +if(0===r)return 0 +for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r +case"utf8":case"utf-8":case void 0:return U(e).length +case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r +case"hex":return r>>>1 +case"base64":return z(e).length +default:if(n)return U(e).length +t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=!1 +if((void 0===t||t<0)&&(t=0),t>this.length)return"" +if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"" +if((r>>>=0)<=(t>>>=0))return"" +for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r) +case"utf8":case"utf-8":return S(this,t,r) +case"ascii":return P(this,t,r) +case"latin1":case"binary":return M(this,t,r) +case"base64":return E(this,t,r) +case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r) +default:if(n)throw new TypeError("Unknown encoding: "+e) +e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t] +e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1 +if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1 +r=e.length-1}else if(r<0){if(!i)return-1 +r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i) +if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i) +throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,a=1,s=e.length,u=t.length +if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1 +a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1 +for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var f=!0,h=0;hi&&(n=i):n=i +var o=t.length +if(o%2!=0)throw new TypeError("Invalid hex string") +n>o/2&&(n=o/2) +for(var a=0;a>8,i=r%256,o.push(i),o.push(n) +return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r) +for(var n=[],i=t;i239?4:c>223?3:c>191?2:1 +if(i+f<=r)switch(f){case 1:c<128&&(l=c) break -case"debug":case"poll":case"willPoll":case"didPoll":case"error":break -default:console.log("unhandled:",e)}}},{key:"_stopEvent",value:function(e){var t=this,r=e.tag -if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return -r="tx"}else if(this.listenerCount(e.event))return -var n=this._subIds[r] -n&&(delete this._subIds[r],n.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return Bu(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t=this -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.websocket.readyState!==Mu.CONNECTING){e.next=3 -break}return e.next=3,new Promise((function(e){t.websocket.onopen=function(){e(!0)},t.websocket.onerror=function(){e(!1)}})) -case 3:this.websocket.close(1e3) -case 4:case"end":return e.stop()}}),e,this)})))}}])&&Tu(t.prototype,r),n&&Tu(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(Pu) -function Hu(e){return(Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vu(e,t){for(var r=0;r127&&(l=u) break -case"ropsten":r="eth-ropsten.alchemyapi.io/v2/" +case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u) break -case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/" +case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length +if(t<=4096)return String.fromCharCode.apply(String,e) +for(var r="",n=0;nn)&&(r=n) +for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance') +if(t>i||te.length)throw new RangeError("Index out of range")}function C(e,t,r,n){t<0&&(t=65535+t+1) +for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1) +for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range") +if(r<0)throw new RangeError("Index out of range")}function D(e,t,r,n,o){return o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,o){return o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1) +return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers") +if(e===t)return 0 +for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer") +if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index") +if(n>=i&&t>=r)return 0 +if(n>=i)return-1 +if(t>=r)return 1 +if(this===e)return 0 +for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(n,i),l=e.slice(t,r),f=0;fi)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds") +n||(n="utf8") +for(var o=!1;;)switch(n){case"hex":return g(this,e,t,r) +case"utf8":case"utf-8":return w(this,e,t,r) +case"ascii":return _(this,e,t,r) +case"latin1":case"binary":return k(this,e,t,r) +case"base64":return x(this,e,t,r) +case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r) +default:if(o)throw new TypeError("Unknown encoding: "+n) +n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}} +u.prototype.slice=function(e,t){var r,n=this.length +if((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),t0&&(i*=256);)n+=this[e+--t]*i +return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length) +for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length) +for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i +return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length) +var r=this[e]|this[e+1]<<8 +return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length) +var r=this[e+1]|this[e]<<8 +return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||T(this,e,t,r,Math.pow(2,8*r)-1,0) +var i=1,o=0 +for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255 +return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1) +T(this,e,t,r,i-1,-i)}var o=0,a=1,s=0 +for(this[t]=255&e;++o>0)-s&255 +return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1) +T(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0 +for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255 +return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds") +if(n<0)throw new RangeError("sourceEnd out of bounds") +n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r] +else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189) +continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189) +continue}i=r +continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r +continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189) +if(i=null,r<128){if((t-=1)<0)break +o.push(r)}else if(r<2048){if((t-=2)<0)break +o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break +o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point") +if((t-=4)<0)break +o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"" +for(;e.length%4!=0;)e+="=" +return e}(e))}function q(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i] +return i}}).call(this,r(11))},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n +n=function(){return this}() +try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t){var r,n,i=e.exports={} +function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0) +if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0) +try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}() +var u,c=[],l=!1,f=-1 +function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(h) +l=!0 +for(var t=c.length;t;){for(u=c,c=[];++f1)for(var r=1;re.major?1:0}}]),e}() +a.uint=new a(0,"uint",!0),a.negint=new a(1,"negint",!0),a.bytes=new a(2,"bytes",!0),a.string=new a(3,"string",!0),a.array=new a(4,"array",!1),a.map=new a(5,"map",!1),a.tag=new a(6,"tag",!1),a.float=new a(7,"float",!0),a.false=new a(7,"false",!0),a.true=new a(7,"true",!0),a.null=new a(7,"null",!0),a.undefined=new a(7,"undefined",!0),a.break=new a(7,"break",!0) +var s=function(){function e(t,r,i){n(this,e),this.type=t,this.value=r,this.encodedLength=i,this.encodedBytes=void 0,this.byteValue=void 0}return o(e,[{key:"toString",value:function(){return"Token[".concat(this.type,"].").concat(this.value)}}]),e}() +t.Token=s,t.Type=a},function(e,t,r){"use strict" +function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e,t){for(var r=0;r0&&"/"!==t.charAt(0))throw new Error('multiaddr "'.concat(t,'" must start with a "/"')) +this.bytes=o.fromString(t)}else{if(!e.isMultiaddr(t))throw new Error("addr must be a string, Buffer, or another Multiaddr") +this.bytes=o.fromBytes(t.bytes)}}var t,r,v,y,b +return t=e,v=[{key:"fromNodeAddress",value:function(t,r){if(!t)throw new Error("requires node address object") +if(!r)throw new Error("requires transport protocol") +var n +switch(t.family){case 4:n="ip4" break -case"goerli":r="eth-goerli.alchemyapi.io/v2/" +case 6:n="ip6" break -case"kovan":r="eth-kovan.alchemyapi.io/v2/" +default:throw Error("Invalid addr family. Got '".concat(t.family,"' instead of 4 or 6"))}return new e("/"+[n,t.address,r,t.port].join("/"))}},{key:"isName",value:function(t){return!!e.isMultiaddr(t)&&t.protos().some((function(e){return e.resolvable}))}},{key:"isMultiaddr",value:function(t){return t instanceof e||Boolean(t&&t[m])}}],(r=[{key:"toString",value:function(){return o.bytesToString(this.bytes)}},{key:"toJSON",value:function(){return this.toString()}},{key:"toOptions",value:function(){var e={},t=this.toString().split("/") +return e.family="ip4"===t[1]?4:6,e.host=t[2],e.transport=t[3],e.port=parseInt(t[4]),e}},{key:"protos",value:function(){return this.protoCodes().map((function(e){return Object.assign({},a(e))}))}},{key:"protoCodes",value:function(){for(var e=[],t=this.bytes,r=0;r=0;n--)if(r[n][0]===t)return new e(o.tuplesToBytes(r.slice(0,n))) +return this}},{key:"getPeerId",value:function(){try{var e=this.stringTuples().filter((function(e){return e[0]===a.names.ipfs.code})).pop() +if(e&&e[1]){var t=e[1] +return"Q"===t[0]||"1"===t[0]?h(c.decode("z".concat(t)),"base58btc"):h(u.parse(t).multihash.bytes,"base58btc")}return null}catch(e){return null}}},{key:"getPath",value:function(){var e=null +try{(e=this.stringTuples().filter((function(e){return!!a(e[0]).path}))[0][1])||(e=null)}catch(t){e=null}return e}},{key:"equals",value:function(e){return d(this.bytes,e.bytes)}},{key:"resolve",value:(y=regeneratorRuntime.mark((function t(){var r,n,i +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.protos().find((function(e){return e.resolvable}))){t.next=3 +break}return t.abrupt("return",[this]) +case 3:if(n=p.get(r.name)){t.next=6 +break}throw l(new Error("no available resolver for ".concat(r.name)),"ERR_NO_AVAILABLE_RESOLVER") +case 6:return t.next=8,n(this) +case 8:return i=t.sent,t.abrupt("return",i.map((function(t){return new e(t)}))) +case 10:case"end":return t.stop()}}),t,this)})),b=function(){var e=this,t=arguments +return new Promise((function(r,i){var o=y.apply(e,t) +function a(e){n(o,r,i,a,s,"next",e)}function s(e){n(o,r,i,a,s,"throw",e)}a(void 0)}))},function(){return b.apply(this,arguments)})},{key:"nodeAddress",value:function(){var e=this.protoCodes(),t=this.protoNames(),r=this.toString().split("/").slice(1) +if(r.length<4)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6}/{address}/{tcp, udp}/{port}".') +if(4!==e[0]&&41!==e[0]&&54!==e[0]&&55!==e[0])throw new Error("no protocol with name: \"'".concat(t[0],'\'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".')) +if("tcp"!==r[2]&&"udp"!==r[2])throw new Error("no protocol with name: \"'".concat(t[1],'\'". Must have a valid transport protocol: "{tcp, udp}".')) +return{family:41===e[0]||55===e[0]?6:4,address:r[1],port:parseInt(r[3])}}},{key:"isThinWaistAddress",value:function(e){var t=(e||this).protos() +return!(2!==t.length||4!==t[0].code&&41!==t[0].code||6!==t[1].code&&273!==t[1].code)}},{key:f,value:function(){return""}},{key:"inspect",value:function(){return""}}])&&i(t.prototype,r),v&&i(t,v),Object.defineProperty(t,"prototype",{writable:!1}),e}() +v.protocols=a,v.resolvers=p,e.exports={Multiaddr:v,multiaddr:function(e){return new v(e)},protocols:a,resolvers:p}},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0}) +return e}e.exports=function(e,t,r){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code") +r||(r={}),"object"===n(t)&&(r=t,t=""),t&&(r.code=t) +try{return i(e,r)}catch(t){r.message=e.message,r.stack=e.stack +var o=function(){} +return o.prototype=Object.create(Object.getPrototypeOf(e)),i(new o,r)}}},function(e,t,r){var n=r(10),i=n.Buffer +function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number") +return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number") +var n=i(e) +return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") +return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") +return n.SlowBuffer(e)}},,,function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=[] +n[23]=1,n[24]=2,n[25]=3,n[26]=5,n[27]=9,t.assertEnoughData=function(e,t,r){if(e.length-t(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]] +e=e.clone(),t=t.clone() +for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3 +3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t +e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict" +!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1 +for(var t=0;t255)return!1 +return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e +if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e) +return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e) +throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var s,u={toBytes:function(e){var t=[],r=0 +for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},c=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+s[15&n])}return t.join("")}}),l={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],v=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],k=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],x=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] +function S(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t] +for(var a,s=0,u=i;u>16&255]<<24^h[a>>8&255]<<16^h[255&a]<<8^h[a>>24&255]^f[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^h[a>>16&255]<<16^h[a>>24&255]<<24,t=i/2+1;t>2,d=u%4,this._Ke[c][d]=o[t],this._Kd[e-c][d]=o[t++],u++}for(var c=1;c>24&255]^x[a>>16&255]^O[a>>8&255]^E[255&a]},P.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") +for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] +for(var a=1;a>24&255]^m[n[(i+1)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^y[255&n[(i+3)%4]]^this._Ke[a][i] +n=r.slice()}var s,u=o(16) +for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(h[n[i]>>24&255]^s>>24),u[4*i+1]=255&(h[n[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(h[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(h[255&n[(i+3)%4]]^s) +return u},P.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)") +for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] +for(var a=1;a>24&255]^g[n[(i+3)%4]>>16&255]^w[n[(i+2)%4]>>8&255]^_[255&n[(i+1)%4]]^this._Kd[a][i] +n=r.slice()}var s,u=o(16) +for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(d[n[i]>>24&255]^s>>24),u[4*i+1]=255&(d[n[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&n[(i+1)%4]]^s) +return u} +var M=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`") +this.description="Electronic Code Block",this.name="ecb",this._aes=new P(t)} +M.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)") +for(var t=o(e.length),r=o(16),n=0;n=0;--t)this._counter[t]=e%256,e>>=8},T.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)") +this._counter=e},T.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++ +break}this._counter[e]=0}} +var C=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`") +this.description="Counter",this.name="ctr",r instanceof T||(r=new T(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new P(t)} +C.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range") +for(var r=e.length-t,n=0;n255)return!1 +return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e +if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e) +return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e) +throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,r,n,i){null==n&&null==i||(e=e.slice?e.slice(n,i):Array.prototype.slice.call(e,n,i)),t.set(e,r)}var s,u={toBytes:function(e){var t=[],r=0 +for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},c=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+s[15&n])}return t.join("")}}),l={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],v=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],k=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],x=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925] +function S(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t] +for(var a,s=0,u=i;u>16&255]<<24^h[a>>8&255]<<16^h[255&a]<<8^h[a>>24&255]^f[s]<<24,s+=1,8!=i)for(t=1;t>8&255]<<8^h[a>>16&255]<<16^h[a>>24&255]<<24,t=i/2+1;t>2,d=u%4,this._Ke[c][d]=o[t],this._Kd[e-c][d]=o[t++],u++}for(var c=1;c>24&255]^x[a>>16&255]^O[a>>8&255]^E[255&a]},P.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)") +for(var t=this._Ke.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Ke[0][i] +for(var a=1;a>24&255]^m[n[(i+1)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^y[255&n[(i+3)%4]]^this._Ke[a][i] +n=r.slice()}var s,u=o(16) +for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(h[n[i]>>24&255]^s>>24),u[4*i+1]=255&(h[n[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(h[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(h[255&n[(i+3)%4]]^s) +return u},P.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)") +for(var t=this._Kd.length-1,r=[0,0,0,0],n=S(e),i=0;i<4;i++)n[i]^=this._Kd[0][i] +for(var a=1;a>24&255]^g[n[(i+3)%4]>>16&255]^w[n[(i+2)%4]>>8&255]^_[255&n[(i+1)%4]]^this._Kd[a][i] +n=r.slice()}var s,u=o(16) +for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(d[n[i]>>24&255]^s>>24),u[4*i+1]=255&(d[n[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[n[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&n[(i+1)%4]]^s) +return u} +var M=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`") +this.description="Electronic Code Block",this.name="ecb",this._aes=new P(t)} +M.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)") +for(var t=o(e.length),r=o(16),n=0;n=0;--t)this._counter[t]=e%256,e>>=8},T.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)") +this._counter=e},T.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++ +break}this._counter[e]=0}} +var C=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`") +this.description="Counter",this.name="ctr",r instanceof T||(r=new T(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new P(t)} +C.prototype.encrypt=function(e){for(var t=i(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range") +for(var r=e.length-t,n=0;n=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() +if(!e)return[] +var r=[] +if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t +return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t +return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict" +function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments +return new Promise((function(i,o){var a=e.apply(t,r) +function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e){var t,r,n,i=2 +for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e) +if(n&&null!=(t=e[n]))return new a(t.call(e)) +r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function a(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object.")) +var t=e.done +return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(a=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return +return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return +return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new a(e)}Object.defineProperty(t,"__esModule",{value:!0}) +var s=r(306),u=r(325) +function c(){return(c=i(regeneratorRuntime.mark((function e(t,r){var n,i,a,c,l,f,h,d,p,m,v,y,b,g,w,_,k,x,O,E,S,P,M=arguments +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=M.length>2&&void 0!==M[2]?M[2]:{},i=[],a=new FormData,c=0,l=0,f=!1,h=!1,e.prev=7,p=o(s.normaliseInput(t)) +case 9:return e.next=11,p.next() +case 11:if(!(f=!(m=e.sent).done)){e.next=37 +break}if(v=m.value,y=v.content,b=v.path,g=v.mode,w=v.mtime,_="",k=y?"file":"dir",c>0&&(_="-".concat(c)),x=k+_,O=[],null!=g&&O.push("mode=".concat(u.modeToString(g))),null!=w&&(E=w.secs,S=w.nsecs,O.push("mtime=".concat(E)),null!=S&&O.push("mtime-nsecs=".concat(S))),O.length&&(x="".concat(x,"?").concat(O.join("&"))),!y){e.next=28 +break}a.set(x,y,null!=b?encodeURIComponent(b):void 0),P=l+y.size,i.push({name:b,start:l,end:P}),l=P,e.next=33 break -case"matic":r="polygon-mainnet.g.alchemy.com/v2/" +case 28:if(null==b){e.next=32 +break}a.set(x,new File([""],encodeURIComponent(b),{type:"application/x-directory"})),e.next=33 break -case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/" +case 32:throw new Error("path or content or both must be set") +case 33:c++ +case 34:f=!1,e.next=9 break -case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/" +case 37:e.next=43 break -case"arbitrum-rinkeby":r="arb-rinkeby.g.alchemy.com/v2/" +case 39:e.prev=39,e.t0=e.catch(7),h=!0,d=e.t0 +case 43:if(e.prev=43,e.prev=44,!f||null==p.return){e.next=48 +break}return e.next=48,p.return() +case 48:if(e.prev=48,!h){e.next=51 +break}throw d +case 51:return e.finish(48) +case 52:return e.finish(43) +case 53:return e.abrupt("return",{total:l,parts:i,headers:n,body:a}) +case 54:case"end":return e.stop()}}),e,null,[[7,39,43,53],[44,,48,52]])})))).apply(this,arguments)}t.multipartRequest=function(e,t){return c.apply(this,arguments)}},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(140) +function i(e){return e.filter(Boolean)}t.abortSignal=function(){for(var e=arguments.length,t=new Array(e),r=0;r=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() +if(!e)return[] +var r=[] +if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t +return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t +return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict" +var n=r(16),i=r(9) +function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() +if(!e)return[] +var r=[] +if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t +return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t +return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict" +var n=r(16),i=r(9) +function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice() +if(!e)return[] +var r=[] +if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>8,a=255&i +o?r.push(o,a):r.push(a)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t +return u+=(c=c+n>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t +return l+=(f=f+n>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){var n=t +n.utils=r(32),n.common=r(65),n.sha=r(469),n.ripemd=r(473),n.hmac=r(474),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict" +function n(e,t){var r=Object.keys(e) +if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) +t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;tr;)o+=t[i&s>>(a-=r)] +if(a&&(o+=t[i&s<=8&&(u-=8,s[l++]=255&c>>u)}if(u>=r||255&c<<8-u)throw new SyntaxError("Unexpected end of data") +return s}(e,i,n,t)}})}},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(24),o=[24,256,65536,4294967296,BigInt("18446744073709551616")] +function a(e,t,r){i.assertEnoughData(e,t,1) +var n=e[t] +if(!0===r.strict&&n>>8,255&s])}else if(r>>24&255,u>>>16&255,u>>>8&255,255&u])}else{var c=BigInt(r) +if(!(c>BigInt(32)&BigInt(4294967295)) +l[8]=255&f,f>>=8,l[7]=255&f,f>>=8,l[6]=255&f,f>>=8,l[5]=255&f,l[4]=255&h,h>>=8,l[3]=255&h,h>>=8,l[2]=255&h,h>>=8,l[1]=255&h,e.push(l)}}l.encodedSize=function(e){return f.encodedSize(e.value)},f.encodedSize=function(e){return et.value?1:0},t.decodeUint16=function(e,t,r,i){return new n.Token(n.Type.uint,s(e,t+1,i),3)},t.decodeUint32=function(e,t,r,i){return new n.Token(n.Type.uint,u(e,t+1,i),5)},t.decodeUint64=function(e,t,r,i){return new n.Token(n.Type.uint,c(e,t+1,i),9)},t.decodeUint8=function(e,t,r,i){return new n.Token(n.Type.uint,a(e,t+1,i),2)},t.encodeUint=l,t.encodeUintValue=f,t.readUint16=s,t.readUint32=u,t.readUint64=c,t.readUint8=a,t.uintBoundaries=o},function(e,t,r){"use strict" +var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e +var t={} +if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r) +return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} +Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0 +var s=a(r(490)) +t.BN=s.default +var u=o(r(492)) +t.rlp=u},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=new Uint8Array(0) +t.coerce=function(e){if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e +if(e instanceof ArrayBuffer)return new Uint8Array(e) +if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength) +throw new Error("Unknown type, must be binary type")},t.empty=n,t.equals=function(e,t){if(e===t)return!0 +if(e.byteLength!==t.byteLength)return!1 +for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"utf8",r=n[t] +if(!r)throw new Error('Unsupported encoding "'.concat(t,'"')) +return r.encoder.encode(e).substring(1)}},function(e,t,r){"use strict" +function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var n=0,o=function(){} +return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r64?globalThis.Buffer.from(e.subarray(t,r)).toString("utf8"):g(e,t,r)}:function(e,t,r){return r-t>64?a.decode(e.subarray(t,r)):g(e,t,r)},f=o?function(e){return e.length>64?globalThis.Buffer.from(e):b(e)}:function(e){return e.length>64?s.encode(e):b(e)},h=o?function(e,t,r){return u(e)?new Uint8Array(e.subarray(t,r)):e.slice(t,r)}:function(e,t,r){return e.slice(t,r)},d=o?function(e,t){return e=e.map((function(e){return e instanceof Uint8Array?e:globalThis.Buffer.from(e)})),c(globalThis.Buffer.concat(e,t))}:function(e,t){var r,i=new Uint8Array(t),o=0,a=n(e) +try{for(a.s();!(r=a.n()).done;){var s=r.value +o+s.length>i.length&&(s=s.subarray(0,i.length-o)),i.set(s,o),o+=s.length}}catch(e){a.e(e)}finally{a.f()}return i},p=o?function(e){return globalThis.Buffer.allocUnsafe(e)}:function(e){return new Uint8Array(e)},m=o?function(e){return"string"==typeof e?e:globalThis.Buffer.from(y(e)).toString("hex")}:function(e){return"string"==typeof e?e:Array.prototype.reduce.call(y(e),(function(e,t){return"".concat(e).concat(t.toString(16).padStart(2,"0"))}),"")},v=o?function(e){return e instanceof Uint8Array?e:globalThis.Buffer.from(e,"hex")}:function(e){return e instanceof Uint8Array?e:e.length?new Uint8Array(e.split("").map((function(e,t,r){return t%2==0?"0x".concat(e).concat(r[t+1]):""})).filter(Boolean).map((function(e){return parseInt(e,16)}))):new Uint8Array(0)} +function y(e){if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e +if(e instanceof ArrayBuffer)return new Uint8Array(e) +if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength) +throw new Error("Unknown type, must be binary type")}function b(e){for(var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=e.length,i=null,o=[],a=0;a55295&&t<57344){if(!i){if(t>56319){(r-=3)>-1&&o.push(239,191,189) +continue}if(a+1===n){(r-=3)>-1&&o.push(239,191,189) +continue}i=t +continue}if(t<56320){(r-=3)>-1&&o.push(239,191,189),i=t +continue}t=65536+(i-55296<<10|t-56320)}else i&&(r-=3)>-1&&o.push(239,191,189) +if(i=null,t<128){if((r-=1)<0)break +o.push(t)}else if(t<2048){if((r-=2)<0)break +o.push(t>>6|192,63&t|128)}else if(t<65536){if((r-=3)<0)break +o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point") +if((r-=4)<0)break +o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function g(e,t,r){for(var n=[];t239?4:i>223?3:i>191?2:1 +if(t+a<=r){var s=void 0,u=void 0,c=void 0,l=void 0 +switch(a){case 1:i<128&&(o=i) break -case"optimism":r="opt-mainnet.g.alchemy.com/v2/" +case 2:128==(192&(s=e[t+1]))&&(l=(31&i)<<6|63&s)>127&&(o=l) break -case"optimism-kovan":r="opt-kovan.g.alchemy.com/v2/" +case 3:s=e[t+1],u=e[t+2],128==(192&s)&&128==(192&u)&&(l=(15&i)<<12|(63&s)<<6|63&u)>2047&&(l<55296||l>57343)&&(o=l) break -default:fc.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:function(e,r){return t===hc&&Ss(),Promise.resolve(!0)}}}}]),r}(tc) -function mc(e){return(mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vc(e,t){for(var r=0;r65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),t+=a}return w(n)}function w(e){var t=e.length +if(t<=4096)return String.fromCharCode.apply(String,e) +for(var r="",n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8",r=n[t] +if(!r)throw new Error('Unsupported encoding "'.concat(t,'"')) +return r.decoder.decode("".concat(r.prefix).concat(e))}},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=t +function o(e,t,r){for(var n=Object.keys(t),i=0;i0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer +return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e) +return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},i.merge=o,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=a,i.ProtocolError=a("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}} +throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator] +if(!r)return e +var n,i,o=r.call(e),a=[] +try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a} +Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0 +var o=r(38),a=r(50),s=r(80) +t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e)) +return"0x".concat(e.toString(16))},t.intToBuffer=function(r){var n=(0,t.intToHex)(r) +return e.from((0,a.padToEven)(n.slice(2)),"hex")},t.zeros=function(t){return e.allocUnsafe(t).fill(0)} +var u=function(e,r,n){var i=(0,t.zeros)(r) +return n?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0] +return e} +t.unpadBuffer=function(e){return(0,s.assertIsBuffer)(e),c(e)},t.unpadArray=function(e){return(0,s.assertIsArray)(e),c(e)},t.unpadHexString=function(e){return(0,s.assertIsHexString)(e),e=(0,a.stripHexPrefix)(e),c(e)},t.toBuffer=function(r){if(null==r)return e.allocUnsafe(0) +if(e.isBuffer(r))return e.from(r) +if(Array.isArray(r)||r instanceof Uint8Array)return e.from(r) +if("string"==typeof r){if(!(0,a.isHexString)(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(r)) +return e.from((0,a.padToEven)((0,a.stripHexPrefix)(r)),"hex")}if("number"==typeof r)return(0,t.intToBuffer)(r) +if(o.BN.isBN(r)){if(r.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(r)) +return r.toArrayLike(e)}if(r.toArray)return e.from(r.toArray()) +if(r.toBuffer)return e.from(r.toBuffer()) +throw new Error("invalid type")},t.bufferToInt=function(e){return new o.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new o.BN(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,a.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(t){if((t=(0,a.stripHexPrefix)(t)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided") +return e.from(t.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(r){if(e.isBuffer(r))return"0x".concat(r.toString("hex")) +if(r instanceof Array){for(var n=[],i=0;i0&&0===c[0])throw new Error("".concat(u," cannot have leading zeroes, received: ").concat(c.toString("hex")))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},t.arrToBufArr=function t(r){return Array.isArray(r)?r.map((function(e){return t(e)})):e.from(r)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}}).call(this,r(10).Buffer)},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o="object"===("undefined"==typeof Reflect?"undefined":n(Reflect))?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)} +i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)} +var s=Number.isNaN||function(e){return e!=e} +function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}b(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&b(e,"error",t,{once:!0})}(e,i)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0 +var c=10 +function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(e))}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function h(e,t,r,n){var i,o,a,s +if(l(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount +else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=f(e))>0&&a.length>i&&!a.warned){a.warned=!0 +var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit") +u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n) +return i.listener=r,n.wrapFn=i,i}function m(e,t,r){var n=e._events +if(void 0===n)return[] +var i=n[t] +return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o +var s=new Error("Unhandled error."+(o?" ("+o.message+")":"")) +throw s.context=o,s}var u=i[e] +if(void 0===u)return!1 +if("function"==typeof u)a(u,this,t) +else{var c=u.length,l=y(u,c) +for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o +break}if(i<0)return this +0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]) +return this},u.prototype.listeners=function(e){return m(this,e,!0)},u.prototype.rawListeners=function(e){return m(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,r){"use strict" +var n=r(530).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0 +default:return!1}} +function o(e){var t +switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8" +for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8" +case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le" +case"latin1":case"binary":return"latin1" +case"base64":case"ascii":case"hex":return e +default:if(t)return +e=(""+e).toLowerCase(),t=!0}}(e) +if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e) +return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4 break -default:Cc.throwArgumentError("unsupported network","network",arguments[0])}return r}}],(r=[{key:"perform",value:function(e,t){var r=this,n=Object.create(null,{perform:{get:function(){return Mc(Rc(o.prototype),"perform",r)}}}) -return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t -e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("getBlockNumber"!==e){r.next=5 -break}return r.next=3,n.perform.call(this,"getBlock",{blockTag:"latest"}) -case 3:return i=r.sent,r.abrupt("return",i.number) -case 5:return r.abrupt("return",n.perform.call(this,e,t)) -case 6:case"end":return r.stop()}}),r,this)})))}}])&&Pc(t.prototype,r),n&&Pc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(tc) -function Nc(e){return(Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dc(e,t){for(var r=0;r=0&&(t.throttleRetry=!0),t}return e.result}function Gc(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response") -throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var r=new Error("invalid response") -throw r.result=JSON.stringify(e),r}if(e.error){var n=new Error(e.error.message||"unknown error") -throw e.error.code&&(n.code=e.error.code),e.error.data&&(n.data=e.error.data),n}return e.result}function Kc(e){if("pending"===e)throw new Error("pending not supported") -return"latest"===e?e:parseInt(e.substring(2),16)}function $c(e,t,r){if("call"===e&&t.code===h.b.errors.SERVER_ERROR){var n=t.error -if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var i=n.data -if(i&&(i="0x"+i.replace(/^.*0x/i,"")),Object(c.l)(i))return i -Vc.throwError("missing revert data in call exception",h.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var o=t.message -throw t.code===h.b.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText)),(o=(o||"").toLowerCase()).match(/insufficient funds/)&&Vc.throwError("insufficient funds for intrinsic transaction cost",h.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Vc.throwError("nonce has already been used",h.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),o.match(/another transaction with same nonce/)&&Vc.throwError("replacement fee too low",h.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),o.match(/execution failed due to an exception|execution reverted/)&&Vc.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var Jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") -e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fc(e,t)}(i,e) -var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 -if(Reflect.construct.sham)return!1 -if("function"==typeof Proxy)return!0 -try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() -return function(){var r,n=Hc(e) -if(t){var i=Hc(this).constructor -r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) -return Uc(this,r)}}(i) -function i(e,t){var r -return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Vc.checkNew(this instanceof i?this.constructor:void 0,i),S(zc(r=n.call(this,e)),"baseUrl",r.getBaseUrl()),S(zc(r),"apiKey",t||"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"),r}return t=i,(r=[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io" -case"ropsten":return"https://api-ropsten.etherscan.io" -case"rinkeby":return"https://api-rinkeby.etherscan.io" -case"kovan":return"https://api-kovan.etherscan.io" -case"goerli":return"https://api-goerli.etherscan.io"}return Vc.throwArgumentError("unsupported network","network",name)}},{key:"getUrl",value:function(e,t){var r=Object.keys(t).reduce((function(e,r){var n=t[r] -return null!=n&&(e+="&".concat(r,"=").concat(n)),e}),""),n=this.apiKey?"&apikey=".concat(this.apiKey):"" -return"".concat(this.baseUrl,"/api?module=").concat(e).concat(r).concat(n)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,r){return qc(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,c,l=this -return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,a="proxy"===e?Gc:Yc,this.emit("debug",{action:"request",request:i,provider:this}),s={url:i,throttleSlotInterval:1e3,throttleCallback:function(e,t){return l.isCommunityResource()&&Ss(),Promise.resolve(!0)}},u=null,o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(o).map((function(e){return"".concat(e,"=").concat(o[e])})).join("&")),n.next=9,ys(s,u,a||Gc) -case 9:return c=n.sent,this.emit("debug",{action:"response",request:i,response:R(c),provider:this}),n.abrupt("return",c) -case 12:case"end":return n.stop()}}),n,this)})))}},{key:"detectNetwork",value:function(){return qc(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network) -case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,n=Object.create(null,{perform:{get:function(){return Lc(Hc(i.prototype),"perform",r)}}}) -return qc(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a,s,u,c,l,f,d -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next="getBlockNumber"===r.t0?3:"getGasPrice"===r.t0?4:"getBalance"===r.t0?5:"getTransactionCount"===r.t0?6:"getCode"===r.t0?7:"getStorageAt"===r.t0?8:"sendTransaction"===r.t0?9:"getBlock"===r.t0?10:"getTransaction"===r.t0?13:"getTransactionReceipt"===r.t0?14:"call"===r.t0?15:"estimateGas"===r.t0?29:"getLogs"===r.t0?41:"getEtherPrice"===r.t0?65:72 +case"utf8":this.fillLast=s,t=4 break -case 3:return r.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"})) -case 4:return r.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"})) -case 5:return r.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag})) -case 6:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag})) -case 7:return r.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag})) -case 8:return r.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag})) -case 9:return r.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return $c("sendTransaction",e,t.signedTransaction)}))) -case 10:if(!t.blockTag){r.next=12 -break}return r.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"})) -case 12:throw new Error("getBlock by blockHash not implemented") -case 13:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash})) -case 14:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash})) -case 15:if("latest"===t.blockTag){r.next=17 -break}throw new Error("EtherscanProvider does not support blockTag for call") -case 17:return(i=Wc(t.transaction)).module="proxy",i.action="eth_call",r.prev=20,r.next=23,this.fetch("proxy",i,!0) -case 23:return r.abrupt("return",r.sent) -case 26:return r.prev=26,r.t1=r.catch(20),r.abrupt("return",$c("call",r.t1,t.transaction)) -case 29:return(o=Wc(t.transaction)).module="proxy",o.action="eth_estimateGas",r.prev=32,r.next=35,this.fetch("proxy",o,!0) -case 35:return r.abrupt("return",r.sent) -case 38:return r.prev=38,r.t2=r.catch(32),r.abrupt("return",$c("estimateGas",r.t2,t.transaction)) -case 41:return a={action:"getLogs"},t.filter.fromBlock&&(a.fromBlock=Kc(t.filter.fromBlock)),t.filter.toBlock&&(a.toBlock=Kc(t.filter.toBlock)),t.filter.address&&(a.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Vc.throwError("unsupported topic count",h.b.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"==typeof(s=t.filter.topics[0])&&66===s.length||Vc.throwError("unsupported topic format",h.b.errors.UNSUPPORTED_OPERATION,{topic0:s}),a.topic0=s)),r.next=48,this.fetch("logs",a) -case 48:u=r.sent,c={},l=0 -case 51:if(!(l0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t] -e[t]=e[r],e[r]=n}return e}function Qc(e,t){for(var r=0;rt?null:(n+i)/2}function cl(e){if(null===e)return"null" -if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e) -if("string"==typeof e)return e -if(b.isBigNumber(e))return e.toString() -if(Array.isArray(e))return JSON.stringify(e.map((function(e){return cl(e)}))) -if("object"===nl(e)){var t=Object.keys(e) -return t.sort(),"{"+t.map((function(t){var r=e[t] -return r="function"==typeof r?"[function]":cl(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+nl(e))}var ll=1 -function fl(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)})) -return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var hl=[h.b.errors.CALL_EXCEPTION,h.b.errors.INSUFFICIENT_FUNDS,h.b.errors.NONCE_EXPIRED,h.b.errors.REPLACEMENT_UNDERPRICED,h.b.errors.UNPREDICTABLE_GAS_LIMIT],dl=["address","args","errorArgs","errorSignature","method","transaction"] -function pl(e,t){var r={weight:e.weight} -return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function ml(e,t,r){var n=cl -switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=ul(t.map((function(e){return e.result})),2) -if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber} -case"getGasPrice":return function(e){var t=e.map((function(e){return e.result})) -return t.sort(),t[Math.floor(t.length/2)]} -case"getEtherPrice":return function(e){return ul(e.map((function(e){return e.result})))} -case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break -case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=A(e)).confirmations=-1,cl(e))} +default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�" +if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�" +if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e) +return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t) +if(r){var n=r.charCodeAt(r.length-1) +if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"" +if(this.lastNeed){var r=this.lastTotal-this.lastNeed +return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3 +return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"" +return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"" +var t,r +if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"" +r=this.lastNeed,this.lastNeed=0}else r=0 +return r=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t) +if(!this.lastNeed)return e.toString("utf8",t) +this.lastTotal=r +var n=e.length-(r-this.lastNeed) +return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal) +e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict" +var n=r(81),i=Object.keys||function(e){var t=[] +for(var r in e)t.push(r) +return t} +e.exports=f +var o=Object.create(r(68)) +o.inherits=r(9) +var a=r(195),s=r(109) +o.inherits(f,a) +for(var u=i(s.prototype),c=0;ce.length)&&(t=e.length) +for(var r=0,n=new Array(t);r=0}))},t.toAscii=function(e){var t="",r=0,n=e.length +for("0x"===e.substring(0,2)&&(r=2);r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s +if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type")) +else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument" +s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat(n(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[] +for(var r in e)t.push(r) +return t} +e.exports=c +var i=r(180),o=r(184) +r(9)(c,i) +for(var a=n(o.prototype),s=0;s2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,s +if("string"==typeof t&&(o="not ",t.substr(0,o.length)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(a(t,"type")) +else{var u=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument" +s='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(a(t,"type"))}return s+". Received type ".concat(n(r))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[] +for(var r in e)t.push(r) +return t} +e.exports=c +var i=r(187),o=r(191) +r(9)(c,i) +for(var a=n(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0)) +var r=8*this._len +if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4) +else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296 +this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block) +var o=this._hash() +return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n=t +n.utils=r(33),n.common=r(66),n.sha=r(475),n.ripemd=r(479),n.hmac=r(480),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},,,,,function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict" +var n=r(29),i=r(61) +function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8 +this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) +for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o1&&void 0!==a[1]?a[1]:{},i=t.getReader(),e.prev=2 +case 3:return e.next=6,n(i.read()) +case 6:if(!(o=e.sent).done){e.next=9 +break}return e.abrupt("return") +case 9:return e.next=11,o.value +case 11:e.next=3 break -case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=A(e)).transactions=e.transactions.map((function(e){return(e=A(e)).confirmations=-1,e})),cl(e))}:function(e){return null==e?null:cl(e)} +case 13:return e.prev=13,!0!==r.preventCancel&&i.cancel(),i.releaseLock(),e.finish(13) +case 17:case"end":return e.stop()}}),e,null,[[2,,13,17]])})))).apply(this,arguments)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return s.apply(this,arguments)}},function(e,t,r){"use strict" +var n=r(32),i=r(16) +function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8 +this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) +for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8 +this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) +for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o=this._delta8){var r=(e=this.pending).length%this._delta8 +this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian) +for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o2&&void 0!==arguments[2]?arguments[2]:0 +return n.encode(e,t,r),t},t.encodingLength=function(e){return n.encodingLength(e)}},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(36),i=n.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=n.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}) +t.base58btc=i,t.base58flickr=o},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(36),i=n.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),o=n.rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),a=n.rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),s=n.rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}) +t.base64=i,t.base64pad=o,t.base64url=a,t.base64urlpad=s},function(e,t,r){"use strict" +function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(null!=r){var n,i,o=[],a=!0,s=!1 +try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r=t)return a.result}}}(n,e.quorum)}function yl(e,t){return il(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null!=(n=e.provider).blockNumber&&n.blockNumber>=t||-1===t)){r.next=3 -break}return r.abrupt("return",n) -case 3:return r.abrupt("return",vs((function(){return new Promise((function(r,i){setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}))}),{oncePoll:n})) -case 4:case"end":return r.stop()}}),r)})))}function vl(e,t,r,n){return il(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a -return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=e.provider,i.t0=r,i.next="getBlockNumber"===i.t0||"getGasPrice"===i.t0?4:"getEtherPrice"===i.t0?5:"getBalance"===i.t0||"getTransactionCount"===i.t0||"getCode"===i.t0?8:"getStorageAt"===i.t0?13:"getBlock"===i.t0?18:"call"===i.t0||"estimateGas"===i.t0?23:"getTransaction"===i.t0||"getTransactionReceipt"===i.t0?28:"getLogs"===i.t0?29:35 +case 12:e.next=18 break -case 4:return i.abrupt("return",o[r]()) -case 5:if(!o.getEtherPrice){i.next=7 -break}return i.abrupt("return",o.getEtherPrice()) -case 7:return i.abrupt("break",35) -case 8:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=12 -break}return i.next=11,yl(e,t) -case 11:o=i.sent -case 12:return i.abrupt("return",o[r](n.address,n.blockTag||"latest")) -case 13:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=17 -break}return i.next=16,yl(e,t) -case 16:o=i.sent -case 17:return i.abrupt("return",o.getStorageAt(n.address,n.position,n.blockTag||"latest")) -case 18:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=22 -break}return i.next=21,yl(e,t) -case 21:o=i.sent -case 22:return i.abrupt("return",o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)) -case 23:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=27 -break}return i.next=26,yl(e,t) -case 26:o=i.sent -case 27:return i.abrupt("return",o[r](n.transaction)) -case 28:return i.abrupt("return",o[r](n.transactionHash)) -case 29:if(!((a=n.filter).fromBlock&&Object(c.l)(a.fromBlock)||a.toBlock&&Object(c.l)(a.toBlock))){i.next=34 -break}return i.next=33,yl(e,t) -case 33:o=i.sent -case 34:return i.abrupt("return",o.getLogs(a)) -case 35:return i.abrupt("return",ol.throwError("unknown method error",h.b.errors.UNKNOWN_ERROR,{method:r,params:n})) -case 36:case"end":return i.stop()}}),i)})))}var bl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") -e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xc(e,t)}(i,e) -var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +case 14:e.prev=14,e.t0=e.catch(2),o=!0,a=e.t0 +case 18:if(e.prev=18,e.prev=19,!n||null==s.return){e.next=23 +break}return e.next=23,s.return() +case 23:if(e.prev=23,!o){e.next=26 +break}throw a +case 26:return e.finish(23) +case 27:return e.finish(18) +case 28:return e.abrupt("return",r) +case 29:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})),function(){var t=this,r=arguments +return new Promise((function(i,o){var a=e.apply(t,r) +function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}) +return function(e){return t.apply(this,arguments)}}() +e.exports=a},function(e,t,r){"use strict" +function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var n=0,o=function(){} +return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed) +var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=a;l--)u=(u<<1)+n[l] +c.push(u)}for(var f=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(a=0;a=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++ +if(c>=0&&l++,u=u.dblp(l),c<0)break +var f=a[c] +s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,l=this._wnafT1,f=this._wnafT2,h=this._wnafT3,d=0 +for(s=0;s=1;s-=2){var m=s-1,v=s +if(1===l[m]&&1===l[v]){var y=[t[m],null,null,t[v]] +0===t[m].y.cmp(t[v].y)?(y[1]=t[m].add(t[v]),y[2]=t[m].toJ().mixedAdd(t[v].neg())):0===t[m].y.cmp(t[v].y.redNeg())?(y[1]=t[m].toJ().mixedAdd(t[v]),y[2]=t[m].add(t[v].neg())):(y[1]=t[m].toJ().mixedAdd(t[v]),y[2]=t[m].toJ().mixedAdd(t[v].neg())) +var b=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[m],r[v]) +for(d=Math.max(g[0].length,d),h[m]=new Array(d),h[v]=new Array(d),u=0;u=0;s--){for(var O=0;s>=0;){var E=!0 +for(u=0;u=0&&O++,k=k.dblp(O),s<0)break +for(u=0;u0?c=f[u][S-1>>1]:S<0&&(c=f[u][-S-1>>1].neg()),k="affine"===c.type?k.mixedAdd(c):k.add(c))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles +for(var r=[this],n=this,i=0;i=64;){var d=r,p=n,m=i,v=o,y=a,b=s,g=u,w=c,_=void 0,k=void 0,x=void 0,O=void 0,E=void 0 +for(k=0;k<16;k++)x=f+4*k,l[k]=(255&e[x])<<24|(255&e[x+1])<<16|(255&e[x+2])<<8|255&e[x+3] +for(k=16;k<64;k++)O=((_=l[k-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,E=((_=l[k-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,l[k]=(O+l[k-7]|0)+(E+l[k-16]|0)|0 +for(k=0;k<64;k++)O=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&g)|0)+(w+(t[k]+l[k]|0)|0)|0,E=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&m^p&m)|0,w=g,g=b,b=y,y=v+O|0,v=m,m=p,p=d,d=O+E|0 +r=r+d|0,n=n+p|0,i=i+m|0,o=o+v|0,a=a+y|0,s=s+b|0,u=u+g|0,c=c+w|0,f+=64,h-=64}}f(e) +var h,d=e.length%64,p=e.length/536870912|0,m=e.length<<3,v=d<56?56:120,y=e.slice(e.length-d,e.length) +for(y.push(128),h=d+1;h>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),y.push(m>>>24&255),y.push(m>>>16&255),y.push(m>>>8&255),y.push(m>>>0&255),f(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,r){e=e.length<=64?e:n(e) +var i,o=64+t.length+4,a=new Array(o),s=new Array(64),u=[] +for(i=0;i<64;i++)a[i]=54 +for(i=0;i=o-4;e--){if(a[e]++,a[e]<=255)return +a[e]=0}}for(;r>=32;)c(),u=u.concat(n(s.concat(n(a)))),r-=32 +return r>0&&(c(),u=u.concat(n(s.concat(n(a))).slice(0,r))),u}function o(e,t,r,n,i){var o +for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(e,16*o,i,16),s(i,n),c(i,0,e,t+16*o,16) +for(o=0;o>>32-t}function s(e,t){c(e,0,t,0,16) +for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18) +for(var n=0;n<16;++n)e[n]+=t[n]}function u(e,t,r,n){for(var i=0;i=256)return!1}return!0}function f(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t) +return e}function h(e,r,n,a,s,h,d){if(n=f(n,"N"),a=f(a,"r"),s=f(s,"p"),h=f(h,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2") +if(n>2147483647/128/a)throw new Error("N too large") +if(a>2147483647/128/s)throw new Error("r too large") +if(!l(e))throw new Error("password must be an array or buffer") +if(e=Array.prototype.slice.call(e),!l(r))throw new Error("salt must be an array or buffer") +r=Array.prototype.slice.call(r) +for(var p=i(e,r,128*s*a),m=new Uint32Array(32*s*a),v=0;vR&&(r=R) +for(var l=0;lR&&(r=R) +for(var v=0;v>0&255),p.push(m[I]>>8&255),p.push(m[I]>>16&255),p.push(m[I]>>24&255) +var N=i(e,p,h) +return d&&d(null,1,N),N}d&&T(t)} +if(!d)for(;;){var I=C() +if(null!=I)return I}C()}var d={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,u){var c=0 +a&&a(0),h(e,t,r,n,i,o,(function(e,t,r){if(e)u(e) +else if(r)a&&1!==c&&a(1),s(new Uint8Array(r)) +else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(h(e,t,r,n,i,o))}} +e.exports=d}()}).call(this,r(88).setImmediate)},function(e,t,r){"use strict";(function(t){!function(r){function n(e){var t=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]),r=1779033703,n=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,u=528734635,c=1541459225,l=new Uint32Array(64) +function f(e){for(var f=0,h=e.length;h>=64;){var d=r,p=n,m=i,v=o,y=a,b=s,g=u,w=c,_=void 0,k=void 0,x=void 0,O=void 0,E=void 0 +for(k=0;k<16;k++)x=f+4*k,l[k]=(255&e[x])<<24|(255&e[x+1])<<16|(255&e[x+2])<<8|255&e[x+3] +for(k=16;k<64;k++)O=((_=l[k-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,E=((_=l[k-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,l[k]=(O+l[k-7]|0)+(E+l[k-16]|0)|0 +for(k=0;k<64;k++)O=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&g)|0)+(w+(t[k]+l[k]|0)|0)|0,E=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&m^p&m)|0,w=g,g=b,b=y,y=v+O|0,v=m,m=p,p=d,d=O+E|0 +r=r+d|0,n=n+p|0,i=i+m|0,o=o+v|0,a=a+y|0,s=s+b|0,u=u+g|0,c=c+w|0,f+=64,h-=64}}f(e) +var h,d=e.length%64,p=e.length/536870912|0,m=e.length<<3,v=d<56?56:120,y=e.slice(e.length-d,e.length) +for(y.push(128),h=d+1;h>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),y.push(m>>>24&255),y.push(m>>>16&255),y.push(m>>>8&255),y.push(m>>>0&255),f(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,r){e=e.length<=64?e:n(e) +var i,o=64+t.length+4,a=new Array(o),s=new Array(64),u=[] +for(i=0;i<64;i++)a[i]=54 +for(i=0;i=o-4;e--){if(a[e]++,a[e]<=255)return +a[e]=0}}for(;r>=32;)c(),u=u.concat(n(s.concat(n(a)))),r-=32 +return r>0&&(c(),u=u.concat(n(s.concat(n(a))).slice(0,r))),u}function o(e,t,r,n,i){var o +for(c(e,16*(2*r-1),i,0,16),o=0;o<2*r;o++)u(e,16*o,i,16),s(i,n),c(i,0,e,t+16*o,16) +for(o=0;o>>32-t}function s(e,t){c(e,0,t,0,16) +for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18) +for(var n=0;n<16;++n)e[n]+=t[n]}function u(e,t,r,n){for(var i=0;i=256)return!1}return!0}function f(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t) +return e}function h(e,r,n,a,s,h,d){if(n=f(n,"N"),a=f(a,"r"),s=f(s,"p"),h=f(h,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2") +if(n>2147483647/128/a)throw new Error("N too large") +if(a>2147483647/128/s)throw new Error("r too large") +if(!l(e))throw new Error("password must be an array or buffer") +if(e=Array.prototype.slice.call(e),!l(r))throw new Error("salt must be an array or buffer") +r=Array.prototype.slice.call(r) +for(var p=i(e,r,128*s*a),m=new Uint32Array(32*s*a),v=0;vR&&(r=R) +for(var l=0;lR&&(r=R) +for(var v=0;v>0&255),p.push(m[I]>>8&255),p.push(m[I]>>16&255),p.push(m[I]>>24&255) +var N=i(e,p,h) +return d&&d(null,1,N),N}d&&T(t)} +if(!d)for(;;){var I=C() +if(null!=I)return I}C()}var d={scrypt:function(e,t,r,n,i,o,a){return new Promise((function(s,u){var c=0 +a&&a(0),h(e,t,r,n,i,o,(function(e,t,r){if(e)u(e) +else if(r)a&&1!==c&&a(1),s(new Uint8Array(r)) +else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,r,n,i,o){return new Uint8Array(h(e,t,r,n,i,o))}} +e.exports=d}()}).call(this,r(88).setImmediate)},,,,function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply +function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId) +var t=e._idleTimeout +t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(223),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(11))},function(e,t,r){var n=r(234),i=r(235),o=r(236) +e.exports={contribution:n,contributor:i,expense:o}},,function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(36),i=n.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=n.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=n.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=n.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=n.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=n.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=n.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),f=n.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),h=n.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}) +t.base32=i,t.base32hex=u,t.base32hexpad=l,t.base32hexpadupper=f,t.base32hexupper=c,t.base32pad=a,t.base32padupper=s,t.base32upper=o,t.base32z=h},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(121),i=r(129),o=r(18) +t.encode=n.encode,t.decode=i.decode,t.Token=o.Token,t.Type=o.Type},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(24),o=r(37),a=r(41) +function s(e,t,r,o){i.assertEnoughData(e,t,r+o) +var s=a.slice(e,t+r,t+r+o) +return new n.Token(n.Type.bytes,s,r+o)}function u(e){return void 0===e.encodedBytes&&(e.encodedBytes=e.type===n.Type.string?a.fromString(e.value):e.value),e.encodedBytes}function c(e,t){var r=u(t) +o.encodeUintValue(e,t.type.majorEncoded,r.length),e.push(r)}function l(e,t){return e.lengtht.length?1:a.compare(e,t)}c.encodedSize=function(e){var t=u(e) +return o.encodeUintValue.encodedSize(t.length)+t.length},c.compareTokens=function(e,t){return l(u(e),u(t))},t.compareBytes=l,t.decodeBytes16=function(e,t,r,n){return s(e,t,3,o.readUint16(e,t+1,n))},t.decodeBytes32=function(e,t,r,n){return s(e,t,5,o.readUint32(e,t+1,n))},t.decodeBytes64=function(e,t,r,n){var a=o.readUint64(e,t+1,n) +if("bigint"==typeof a)throw new Error("".concat(i.decodeErrPrefix," 64-bit integer bytes lengths not supported")) +return s(e,t,9,a)},t.decodeBytes8=function(e,t,r,n){return s(e,t,2,o.readUint8(e,t+1,n))},t.decodeBytesCompact=function(e,t,r,n){return s(e,t,1,r)},t.encodeBytes=c},function(e,t,r){"use strict" +function n(e,t){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r512||i<1)&&ol.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),i),Object.freeze(n)})),a=o.reduce((function(e,t){return e+t.weight}),0) -null==t?t=a/2:t>a&&ol.throwArgumentError("quorum will always fail; larger than total weight","quorum",t) -var s=sl(o.map((function(e){return e.provider.network}))) -return null==s&&(s=new Promise((function(e,t){setTimeout((function(){r.detectNetwork().then(e,t)}),0)}))),S(tl(r=n.call(this,s)),"providerConfigs",Object.freeze(o)),S(tl(r),"quorum",t),r._highestBlockNumber=-1,r}return t=i,(r=[{key:"detectNetwork",value:function(){return il(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()}))) -case 2:return t=e.sent,e.abrupt("return",sl(t)) -case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return il(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o,a,s,u,c,l,f,d,p=this -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("sendTransaction"!==e){r.next=13 -break}return r.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))}))) -case 3:n=r.sent,i=0 -case 5:if(!(i0&&void 0!==arguments[0]?arguments[0]:{},n={} +if("string"==typeof r||b.Multiaddr.isMultiaddr(r))e=new URL(O.toUrlString(r)) +else if(r instanceof URL)e=r +else if("string"==typeof r.url||b.Multiaddr.isMultiaddr(r.url))e=new URL(O.toUrlString(r.url)),n=r +else if(r.url instanceof URL)e=r.url,n=r +else{var i=((n=r||{}).protocol||I).replace(":",""),o=(n.host||N).split(":")[0],a=n.port||D +e=new URL("".concat(i,"://").concat(o,":").concat(a))}if(n.apiPath?e.pathname=n.apiPath:"/"!==e.pathname&&void 0!==e.pathname||(e.pathname="api/v0"),g.isNode){var s=R.default(e) +t=n.agent||new s({keepAlive:!0,maxSockets:6})}return m(m({},n),{},{host:e.host,protocol:e.protocol.replace(":",""),port:Number(e.port),apiPath:e.pathname,url:e,agent:t})},L=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,n,i +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t.headers.get("Content-Type")||"").startsWith("application/json")){e.next=9 +break}return e.next=4,t.json() +case 4:n=e.sent,T(n),r=n.Message||n.message,e.next=12 break -case 12:throw n[0] -case 13:if(-1!==this._highestBlockNumber||"getBlockNumber"===e){r.next=16 -break}return r.next=16,this.getBlockNumber() -case 16:a=ml(this,e,t),(s=Zc(this.providerConfigs.map(A))).sort((function(e,t){return e.priority-t.priority})),u=this._highestBlockNumber,c=0,l=!0,f=regeneratorRuntime.mark((function r(){var n,i,o,f,h,d,m -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=al(),i=s.filter((function(e){return e.runner&&n-e.start=p.quorum)){r.next=19 -break}if(void 0===(d=a(h))){r.next=15 -break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",{v:d}) -case 15:if(l){r.next=18 -break}return r.next=18,fl(100).getPromise() -case 18:l=!1 -case 19:if(m=s.reduce((function(e,t){if(!t.done||null==t.error)return e -var r=t.error.code -return hl.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(m).forEach((function(e){var t=m[e] -if(!(t.weight0&&void 0!==arguments[0]?arguments[0]:{} +s(this,o) +var a=B(t) +delete(e=r.call(this,{timeout:z(a.timeout||0)||void 0,headers:a.headers,base:"".concat(a.url),handleError:L,transformSearchParams:function(e){var t,r=new URLSearchParams,o=i(e) +try{for(o.s();!(t=o.n()).done;){var a=n(t.value,2),s=a[0],u=a[1] +"undefined"!==u&&"null"!==u&&"signal"!==s&&r.append(U(s),u),"timeout"!==s||isNaN(u)||r.append(U(s),u)}}catch(e){o.e(e)}finally{o.f()}return r},agent:a.agent})).get,delete e.put,delete e.delete,delete e.options +var u=e.fetch +return e.fetch=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return"string"!=typeof t||t.startsWith("/")||(t="".concat(a.url,"/").concat(t)),u.call(f(e),t,C(r,{method:"POST"}))},e}return t=o,Object.defineProperty(t,"prototype",{writable:!1}),t}(A.default),H=A.default.HTTPError +t.Client=q,t.HTTPError=H,t.errorHandler=L},function(e,t,r){"use strict" +function n(e){if("number"==typeof e){if(n.codes[e])return n.codes[e] +throw new Error("no protocol with code: "+e)}if("string"==typeof e){if(n.names[e])return n.names[e] +throw new Error("no protocol with name: "+e)}throw new Error("invalid protocol id type: "+e)}var i=-1 +function o(e,t,r,n,i){return{code:e,size:t,name:r,resolvable:Boolean(n),path:Boolean(i)}}n.lengthPrefixedVarSize=i,n.V=i,n.table=[[4,32,"ip4"],[6,16,"tcp"],[33,16,"dccp"],[41,128,"ip6"],[42,i,"ip6zone"],[53,i,"dns","resolvable"],[54,i,"dns4","resolvable"],[55,i,"dns6","resolvable"],[56,i,"dnsaddr","resolvable"],[132,16,"sctp"],[273,16,"udp"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[277,0,"p2p-stardust"],[290,0,"p2p-circuit"],[301,0,"udt"],[302,0,"utp"],[400,i,"unix",!1,"path"],[421,i,"ipfs"],[421,i,"p2p"],[443,0,"https"],[444,96,"onion"],[445,296,"onion3"],[446,i,"garlic64"],[460,0,"quic"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[480,0,"http"],[777,i,"memory"]],n.names={},n.codes={},n.table.map((function(e){var t=o.apply(null,e) +return n.codes[t.code]=t,n.names[t.name]=t,null})),n.object=o,e.exports=n},function(e,t,r){e.exports={encode:r(284),decode:r(285),encodingLength:r(286)}},function(e,t,r){"use strict" +function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var n=0,o=function(){} +return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r=t} +return new Promise((function(n,o){var a=setTimeout((function(){i()&&(o(new _),r.abort())}),t),s=function(e){return function(t){clearTimeout(a),i()?o(new _):e(t)}} +e.then(s(n),s(o))}))},A={throwHttpErrors:!0,credentials:"same-origin"},j=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{} +u(this,e),this.opts=x(A,t)}var t,r,n,i +return t=e,(r=[{key:"fetch",value:(n=regeneratorRuntime.mark((function e(t){var r,n,i,a,s,u,c,h,d,m,v=arguments +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=v.length>1&&void 0!==v[1]?v[1]:{},n=x(this.opts,r),i=new g(n.headers),"string"==typeof t||t instanceof E||t instanceof b){e.next=5 +break}throw new TypeError("`resource` must be a string, URL, or Request") +case 5:return a=new E(t.toString(),n.base),s=n.searchParams,u=n.transformSearchParams,c=n.json,s&&(a.search="function"==typeof u?u(new S(n.searchParams)):new S(n.searchParams)),c&&(n.body=JSON.stringify(n.json),i.set("content-type","application/json")),h=new AbortController,d=P([h.signal,n.signal]),e.next=13,M(y(a.toString(),o(o({},n),{},{signal:d,timeout:void 0,headers:i})),n.timeout,h) +case 13:if((m=e.sent).ok||!n.throwHttpErrors){e.next=19 +break}if(!n.handleError){e.next=18 +break}return e.next=18,n.handleError(m) +case 18:throw new k(m) +case 19:return m.iterator=function(){return T(m.body)},m.ndjson=f(regeneratorRuntime.mark((function e(){var t,n,i,o,a,s +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!1,n=!1,e.prev=2,o=p(R(m.iterator())) +case 4:return e.next=6,l(o.next()) +case 6:if(!(t=!(a=e.sent).done)){e.next=18 +break}if(s=a.value,!r.transform){e.next=13 +break}return e.next=11,r.transform(s) +case 11:e.next=15 +break +case 13:return e.next=15,s +case 15:t=!1,e.next=4 +break +case 18:e.next=24 +break +case 20:e.prev=20,e.t0=e.catch(2),n=!0,i=e.t0 +case 24:if(e.prev=24,e.prev=25,!t||null==o.return){e.next=29 +break}return e.next=29,l(o.return()) +case 29:if(e.prev=29,!n){e.next=32 +break}throw i +case 32:return e.finish(29) +case 33:return e.finish(24) +case 34:case"end":return e.stop()}}),e,null,[[2,20,24,34],[25,,29,33]])}))),e.abrupt("return",m) +case 22:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments +return new Promise((function(r,i){var o=n.apply(e,t) +function a(e){s(o,r,i,a,u,"next",e)}function u(e){s(o,r,i,a,u,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return this.fetch(e,o(o({},t),{},{method:"POST"}))}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return this.fetch(e,o(o({},t),{},{method:"GET"}))}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return this.fetch(e,o(o({},t),{},{method:"PUT"}))}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return this.fetch(e,o(o({},t),{},{method:"DELETE"}))}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} +return this.fetch(e,o(o({},t),{},{method:"OPTIONS"}))}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),R=function(){var e=f(regeneratorRuntime.mark((function e(t){var r,n,i,o,a,s,u,c,f,h,d +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=new TextDecoder,n="",i=!1,o=!1,e.prev=4,s=p(t) +case 6:return e.next=8,l(s.next()) +case 8:if(!(i=!(u=e.sent).done)){e.next=25 +break}c=u.value,n+=r.decode(c,{stream:!0}),f=n.split(/\r?\n/),h=0 +case 13:if(!(h0)){e.next=18 +break}return e.next=18,JSON.parse(d) +case 18:h++,e.next=13 +break +case 21:n=f[f.length-1] +case 22:i=!1,e.next=6 +break +case 25:e.next=31 +break +case 27:e.prev=27,e.t0=e.catch(4),o=!0,a=e.t0 +case 31:if(e.prev=31,e.prev=32,!i||null==s.return){e.next=36 +break}return e.next=36,l(s.return()) +case 36:if(e.prev=36,!o){e.next=39 +break}throw a +case 39:return e.finish(36) +case 40:return e.finish(31) +case 41:if(0===(n=(n+=r.decode()).trim()).length){e.next=46 +break}return e.next=46,JSON.parse(n) +case 46:case"end":return e.stop()}}),e,null,[[4,27,31,41],[32,,36,40]])}))) +return function(t){return e.apply(this,arguments)}}(),T=function(e){if(N(e)){var t=e[Symbol.asyncIterator]() +return a({},Symbol.asyncIterator,(function(){return{next:t.next.bind(t),return:function(r){return e.destroy(),"function"==typeof t.return?t.return():Promise.resolve({done:!0,value:r})}}}))}if(I(e)){var r=e.getReader() +return f(regeneratorRuntime.mark((function e(){var t,n,i +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0 +case 1:return e.next=4,l(r.read()) +case 4:if(t=e.sent,n=t.done,i=t.value,!n){e.next=9 +break}return e.abrupt("return") +case 9:if(!i){e.next=12 +break}return e.next=12,i +case 12:e.next=1 +break +case 14:return e.prev=14,r.releaseLock(),e.finish(14) +case 17:case"end":return e.stop()}}),e,null,[[0,,14,17]])})))()}if(C(e))return e +throw new TypeError("Body can't be converted to AsyncIterable")},C=function(e){return"object"===n(e)&&null!==e&&"function"==typeof e[Symbol.asyncIterator]},I=function(e){return e&&"function"==typeof e.getReader},N=function(e){return Object.prototype.hasOwnProperty.call(e,"readable")&&Object.prototype.hasOwnProperty.call(e,"writable")} +j.HTTPError=k,j.TimeoutError=_,j.streamToAsyncIterator=T,j.post=function(e,t){return new j(t).post(e,t)},j.get=function(e,t){return new j(t).get(e,t)},j.put=function(e,t){return new j(t).put(e,t)},j.delete=function(e,t){return new j(t).delete(e,t)},j.options=function(e,t){return new j(t).options(e,t)},e.exports=j},function(e,t,r){"use strict" +function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var n=0,o=function(){} +return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r + * @license MIT + */function o(e,t){if(e===t)return 0 +for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i=0;u--)if(l[u]!==f[u])return!1 +for(u=l.length-1;u>=0;u--)if(!w(e[a=l[u]],t[a],r,n))return!1 +return!0}(e,t,r,i))}return r?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function k(e,t){if(!e||!t)return!1 +if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e) +try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e,t,r,n){var i +if("function"!=typeof t)throw new TypeError('"block" argument must be a function') +"string"==typeof r&&(n=r,r=null),i=function(e){var t +try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&b(i,r,"Missing expected exception"+n) +var o="string"==typeof n,a=!e&&i&&!r +if((!e&&s.isError(i)&&o&&k(i,r)||a)&&b(i,r,"Got unwanted exception"+n),e&&i&&r&&!k(i,r)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return v(y(e.actual),128)+" "+e.operator+" "+v(y(e.expected),128)}(this),this.generatedMessage=!0) +var t=e.stackStartFunction||b +if(Error.captureStackTrace)Error.captureStackTrace(this,t) +else{var r=new Error +if(r.stack){var n=r.stack,i=m(t),o=n.indexOf("\n"+i) +if(o>=0){var a=n.indexOf("\n",o+1) +n=n.substring(a+1)}this.stack=n}}},s.inherits(d.AssertionError,Error),d.fail=b,d.ok=g,d.equal=function(e,t,r){e!=t&&b(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&b(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){w(e,t,!1)||b(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){w(e,t,!0)||b(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){w(e,t,!1)&&b(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){w(t,r,!0)&&b(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&b(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&b(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){x(!0,e,t,r)},d.doesNotThrow=function(e,t,r){x(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=i((function e(t,r){t||b(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict +var O=Object.keys||function(e){var t=[] +for(var r in e)u.call(e,r)&&t.push(r) +return t}}).call(this,r(11))},function(e,t,r){"use strict" +var n,i=t,o=r(103),a=r(174),s=r(25).assert +function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t) +return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]}) +try{n=r(513)}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){var n=t +n.utils=r(34),n.common=r(67),n.sha=r(507),n.ripemd=r(511),n.hmac=r(512),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0 +var n=r(522),i=r(538),o=r(38),a=r(44),s=r(80) +t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,s.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e) +case 256:return(0,n.keccak256)(e) +case 384:return(0,n.keccak384)(e) +case 512:return(0,n.keccak512)(e) +default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(r,n){void 0===n&&(n=256),(0,s.assertIsString)(r) +var i=e.from(r,"utf8") +return(0,t.keccak)(i,n)},t.keccakFromHexString=function(e,r){return void 0===r&&(r=256),(0,s.assertIsHexString)(e),(0,t.keccak)((0,a.toBuffer)(e),r)},t.keccakFromArray=function(e,r){return void 0===r&&(r=256),(0,s.assertIsArray)(e),(0,t.keccak)((0,a.toBuffer)(e),r)} +var u=function(e){return e=(0,a.toBuffer)(e),i("sha256").update(e).digest()} +t.sha256=function(e){return(0,s.assertIsBuffer)(e),u(e)},t.sha256FromString=function(e){return(0,s.assertIsString)(e),u(e)},t.sha256FromArray=function(e){return(0,s.assertIsArray)(e),u(e)} +var c=function(e,t){e=(0,a.toBuffer)(e) +var r=i("rmd160").update(e).digest() +return!0===t?(0,a.setLengthLeft)(r,32):r} +t.ripemd160=function(e,t){return(0,s.assertIsBuffer)(e),c(e,t)},t.ripemd160FromString=function(e,t){return(0,s.assertIsString)(e),c(e,t)},t.ripemd160FromArray=function(e,t){return(0,s.assertIsArray)(e),c(e,t)},t.rlphash=function(e){return(0,t.keccak)(o.rlp.encode(e))}}).call(this,r(10).Buffer)},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e] +return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e +var n=!1 +return function(){if(!n){if(r("throwDeprecation"))throw new Error(t) +r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(11))},function(e,t,r){"use strict" +var n=r(51).codes.ERR_STREAM_PREMATURE_CLOSE +function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r) +r||(r={}),o=function(e){var t=!1 +return function(){if(!t){t=!0 +for(var r=arguments.length,n=new Array(r),i=0;i-1?n:o.nextTick +b.WritableState=y +var c=Object.create(r(68)) +c.inherits=r(9) +var l,f={deprecate:r(105)},h=r(196),d=r(21).Buffer,p=i.Uint8Array||function(){},m=r(197) +function v(){}function y(e,t){s=s||r(47),e=e||{} +var n=t instanceof s +this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode) +var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384 +this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1 +var f=!1===e.decodeStrings +this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb +if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),O(e,t))}(e,r,n,t,i) +else{var a=k(r) +a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?u(w,e,r,a,i):w(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(s=s||r(47),!(l.call(b,this)||this instanceof s))return new b(e) +this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function g(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function _(e,t){t.bufferProcessing=!0 +var r=t.bufferedRequest +if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree +o.entry=r +for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1 +i.allBuffers=u,g(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,l=r.encoding,f=r.callback +if(g(e,t,!1,t.objectMode?1:c.length,c,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=k(t) +return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(b,h),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next +return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===b&&e&&e._writableState instanceof y}})):l=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,d.isBuffer(n)||n instanceof p) +return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=v),i.ended?function(e,t){var r=new Error("write after end") +e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1 +return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}(t,n,i) +n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length +t.length+=s +var u=t.length-1))throw new TypeError("Unknown encoding: "+e) +return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState +"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(12),r(88).setImmediate,r(11))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0 +var n,i=r(38),o=r(50),a=r(44) +function s(t){return(0,a.unpadBuffer)(t.toArrayLike(e))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=s,t.bnToRlp=function(e){return s(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(n=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null +if(void 0!==e){if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e)) +if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)") +var r=(0,a.toBuffer)(e) +if(t===n.Buffer)return r +if(t===n.BN)return new i.BN(r) +if(t===n.Number){var s=new i.BN(r),u=new i.BN(Number.MAX_SAFE_INTEGER.toString()) +if(s.gt(u))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)") +return s.toNumber()}return"0x".concat(r.toString("hex"))}}}).call(this,r(10).Buffer)},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}for(var i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},a=0;a>25 +return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")" +t=u(t)^n>>5}for(t=u(t),r=0;rt)return"Exceeds length limit" +var r=e.toLowerCase(),n=e.toUpperCase() +if(e!==r&&e!==n)return"Mixed-case string "+e +var i=(e=r).lastIndexOf("1") +if(-1===i)return"No separator character for "+e +if(0===i)return"Missing prefix for "+e +var a=e.slice(0,i),s=e.slice(i+1) +if(s.length<6)return"Data too short" +var l=c(a) +if("string"==typeof l)return l +for(var f=[],h=0;h=s.length||f.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:a,words:f}}function f(e,t,r,n){for(var i=0,o=0,a=(1<=r;)o-=r,s.push(i>>o&a) +if(n)o>0&&s.push(i<=t)return"Excess padding" +if(i<r)throw new TypeError("Exceeds length limit") +var n=c(e=e.toLowerCase()) +if("string"==typeof n)throw new Error(n) +for(var o=e+"1",a=0;a>5!=0)throw new Error("Non 5-bit word") +n=u(n)^s,o+=i.charAt(s)}for(a=0;a<6;++a)n=u(n) +for(n^=1,a=0;a<6;++a)o+=i.charAt(n>>5*(5-a)&31) +return o},toWordsUnsafe:function(e){var t=f(e,8,5,!0) +if(Array.isArray(t))return t},toWords:function(e){var t=f(e,8,5,!0) +if(Array.isArray(t))return t +throw new Error(t)},fromWordsUnsafe:function(e){var t=f(e,5,8,!1) +if(Array.isArray(t))return t},fromWords:function(e){var t=f(e,5,8,!1) +if(Array.isArray(t))return t +throw new Error(t)}}},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}for(var i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},a=0;a>25 +return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")" +t=u(t)^n>>5}for(t=u(t),r=0;rt)return"Exceeds length limit" +var r=e.toLowerCase(),n=e.toUpperCase() +if(e!==r&&e!==n)return"Mixed-case string "+e +var i=(e=r).lastIndexOf("1") +if(-1===i)return"No separator character for "+e +if(0===i)return"Missing prefix for "+e +var a=e.slice(0,i),s=e.slice(i+1) +if(s.length<6)return"Data too short" +var l=c(a) +if("string"==typeof l)return l +for(var f=[],h=0;h=s.length||f.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:a,words:f}}function f(e,t,r,n){for(var i=0,o=0,a=(1<=r;)o-=r,s.push(i>>o&a) +if(n)o>0&&s.push(i<=t)return"Excess padding" +if(i<r)throw new TypeError("Exceeds length limit") +var n=c(e=e.toLowerCase()) +if("string"==typeof n)throw new Error(n) +for(var o=e+"1",a=0;a>5!=0)throw new Error("Non 5-bit word") +n=u(n)^s,o+=i.charAt(s)}for(a=0;a<6;++a)n=u(n) +for(n^=1,a=0;a<6;++a)o+=i.charAt(n>>5*(5-a)&31) +return o},toWordsUnsafe:function(e){var t=f(e,8,5,!0) +if(Array.isArray(t))return t},toWords:function(e){var t=f(e,8,5,!0) +if(Array.isArray(t))return t +throw new Error(t)},fromWordsUnsafe:function(e){var t=f(e,5,8,!1) +if(Array.isArray(t))return t},fromWords:function(e){var t=f(e,5,8,!1) +if(Array.isArray(t))return t +throw new Error(t)}}},,,function(e,t,r){"use strict" +var n=r(29).rotr32 +function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" +var n=r(29),i=r(62),o=r(115),a=r(61),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b +v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,v),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] +for(;n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r=0?new s.Token(s.Type.uint,e):new s.Token(s.Type.negint,e):new s.Token(s.Type.float,e)},bigint:function(e,t,r,n){return e>=BigInt(0)?new s.Token(s.Type.uint,e):new s.Token(s.Type.negint,e)},Uint8Array:function(e,t,r,n){return new s.Token(s.Type.bytes,e)},string:function(e,t,r,n){return new s.Token(s.Type.string,e)},boolean:function(e,t,r,n){return e?E.true:E.false},null:function(e,t,r,n){return E.null},undefined:function(e,t,r,n){return E.undefined},ArrayBuffer:function(e,t,r,n){return new s.Token(s.Type.bytes,new Uint8Array(e))},DataView:function(e,t,r,n){return new s.Token(s.Type.bytes,new Uint8Array(e.buffer,e.byteOffset,e.byteLength))},Array:function(e,t,r,i){if(!e.length)return!0===r.addBreakTokens?[E.emptyArray,new s.Token(s.Type.break)]:E.emptyArray +i=O.createCheck(i,e) +var o,a=[],u=0,c=n(e) +try{for(c.s();!(o=c.n()).done;){var l=o.value +a[u++]=j(l,r,i)}}catch(e){c.e(e)}finally{c.f()}return r.addBreakTokens?[new s.Token(s.Type.array,e.length),a,new s.Token(s.Type.break)]:[new s.Token(s.Type.array,e.length),a]},Object:function(e){function t(t,r,n,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,r,i){var o="Object"!==t,a=o?e.keys():Object.keys(e),u=o?e.size:a.length +if(!u)return!0===r.addBreakTokens?[E.emptyMap,new s.Token(s.Type.break)]:E.emptyMap +i=O.createCheck(i,e) +var c,l=[],f=0,h=n(a) +try{for(h.s();!(c=h.n()).done;){var d=c.value +l[f++]=[j(d,r,i),j(o?e.get(d):e[d],r,i)]}}catch(e){h.e(e)}finally{h.f()}return function(e,t){t.mapSorter&&e.sort(t.mapSorter)}(l,r),r.addBreakTokens?[new s.Token(s.Type.map,u),l,new s.Token(s.Type.break)]:[new s.Token(s.Type.map,u),l]}))} +S.Map=S.Object,S.Buffer=S.Uint8Array +var P,M=n("Uint8Clamped Uint16 Uint32 Int8 Int16 Int32 BigUint64 BigInt64 Float32 Float64".split(" ")) +try{for(M.s();!(P=M.n()).done;){var A=P.value +S["".concat(A,"Array")]=S.DataView}}catch(e){M.e(e)}finally{M.f()}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=a.is(e),i=t&&t.typeEncoders&&t.typeEncoders[n]||S[n] +if("function"==typeof i){var o=i(e,n,t,r) +if(null!=o)return o}var s=S[n] +if(!s)throw new Error("".concat(c.encodeErrPrefix," unsupported type: ").concat(n)) +return s(e,n,t,r)}function R(e,t,r){var i=j(e,r) +if(!Array.isArray(i)&&r.quickEncodeToken){var o=r.quickEncodeToken(i) +if(o)return o +var a=t[i.type.major] +if(a.encodedSize){var s=a.encodedSize(i,r),c=new u.Bl(s) +if(a(c,i,r),1!==c.chunks.length)throw new Error("Unexpected error: pre-calculated length for ".concat(i," was wrong")) +return f.asU8A(c.chunks[0])}}return x.reset(),function e(t,r,i,o){if(Array.isArray(r)){var a,s=n(r) +try{for(s.s();!(a=s.n()).done;)e(t,a.value,i,o)}catch(e){s.e(e)}finally{s.f()}}else i[r.type.major](t,r,o)}(x,i,t,r),x.toBytes(!0)}t.Ref=O,t.encode=function(e,t){return t=Object.assign({},w,t),R(e,k,t)},t.encodeCustom=R,t.makeCborEncoders=_,t.objectToTokens=j},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(37),o=r(123),a=r(93),s=r(124),u=r(125),c=r(126),l=r(127),f=r(128),h=r(24),d=r(41) +function p(e,t,r){throw new Error("".concat(h.decodeErrPrefix," encountered invalid minor (").concat(r,") for major ").concat(e[t]>>>5))}function m(e){return function(){throw new Error("".concat(h.decodeErrPrefix," ").concat(e))}}for(var v=[],y=0;y<=23;y++)v[y]=p +v[24]=i.decodeUint8,v[25]=i.decodeUint16,v[26]=i.decodeUint32,v[27]=i.decodeUint64,v[28]=p,v[29]=p,v[30]=p,v[31]=p +for(var b=32;b<=55;b++)v[b]=p +v[56]=o.decodeNegint8,v[57]=o.decodeNegint16,v[58]=o.decodeNegint32,v[59]=o.decodeNegint64,v[60]=p,v[61]=p,v[62]=p,v[63]=p +for(var g=64;g<=87;g++)v[g]=a.decodeBytesCompact +v[88]=a.decodeBytes8,v[89]=a.decodeBytes16,v[90]=a.decodeBytes32,v[91]=a.decodeBytes64,v[92]=p,v[93]=p,v[94]=p,v[95]=m("indefinite length bytes/strings are not supported") +for(var w=96;w<=119;w++)v[w]=s.decodeStringCompact +v[120]=s.decodeString8,v[121]=s.decodeString16,v[122]=s.decodeString32,v[123]=s.decodeString64,v[124]=p,v[125]=p,v[126]=p,v[127]=m("indefinite length bytes/strings are not supported") +for(var _=128;_<=151;_++)v[_]=u.decodeArrayCompact +v[152]=u.decodeArray8,v[153]=u.decodeArray16,v[154]=u.decodeArray32,v[155]=u.decodeArray64,v[156]=p,v[157]=p,v[158]=p,v[159]=u.decodeArrayIndefinite +for(var k=160;k<=183;k++)v[k]=c.decodeMapCompact +v[184]=c.decodeMap8,v[185]=c.decodeMap16,v[186]=c.decodeMap32,v[187]=c.decodeMap64,v[188]=p,v[189]=p,v[190]=p,v[191]=c.decodeMapIndefinite +for(var x=192;x<=215;x++)v[x]=l.decodeTagCompact +v[216]=l.decodeTag8,v[217]=l.decodeTag16,v[218]=l.decodeTag32,v[219]=l.decodeTag64,v[220]=p,v[221]=p,v[222]=p,v[223]=p +for(var O=224;O<=243;O++)v[O]=m("simple values are not supported") +v[244]=p,v[245]=p,v[246]=p,v[247]=f.decodeUndefined,v[248]=m("simple values are not supported"),v[249]=f.decodeFloat16,v[250]=f.decodeFloat32,v[251]=f.decodeFloat64,v[252]=p,v[253]=p,v[254]=p,v[255]=f.decodeBreak +for(var E=[],S=0;S<24;S++)E[S]=new n.Token(n.Type.uint,S,1) +for(var P=-1;P>=-24;P--)E[31-P]=new n.Token(n.Type.negint,P,1) +E[64]=new n.Token(n.Type.bytes,new Uint8Array(0),1),E[96]=new n.Token(n.Type.string,"",1),E[128]=new n.Token(n.Type.array,0,1),E[160]=new n.Token(n.Type.map,0,1),E[244]=new n.Token(n.Type.false,!1,1),E[245]=new n.Token(n.Type.true,!0,1),E[246]=new n.Token(n.Type.null,null,1),t.jump=v,t.quick=E,t.quickEncodeToken=function(e){switch(e.type){case n.Type.false:return d.fromArray([244]) +case n.Type.true:return d.fromArray([245]) +case n.Type.null:return d.fromArray([246]) +case n.Type.bytes:return e.value.length?void 0:d.fromArray([64]) +case n.Type.string:return""===e.value?d.fromArray([96]):void 0 +case n.Type.array:return 0===e.value?d.fromArray([128]):void 0 +case n.Type.map:return 0===e.value?d.fromArray([160]):void 0 +case n.Type.uint:return e.value<24?d.fromArray([Number(e.value)]):void 0 +case n.Type.negint:if(e.value>=-24)return d.fromArray([31-Number(e.value)])}}},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(37),o=r(24),a=BigInt(-1),s=BigInt(1) +function u(e,t){var r=t.value,n="bigint"==typeof r?r*a-s:-1*r-1 +i.encodeUintValue(e,t.type.majorEncoded,n)}u.encodedSize=function(e){var t=e.value,r="bigint"==typeof t?t*a-s:-1*t-1 +return rt.value?-1:0},t.decodeNegint16=function(e,t,r,o){return new n.Token(n.Type.negint,-1-i.readUint16(e,t+1,o),3)},t.decodeNegint32=function(e,t,r,o){return new n.Token(n.Type.negint,-1-i.readUint32(e,t+1,o),5)},t.decodeNegint64=function(e,t,r,s){var u=i.readUint64(e,t+1,s) +if("bigint"!=typeof u){var c=-1-u +if(c>=Number.MIN_SAFE_INTEGER)return new n.Token(n.Type.negint,c,9)}if(!0!==s.allowBigInt)throw new Error("".concat(o.decodeErrPrefix," integers outside of the safe integer range are not supported")) +return new n.Token(n.Type.negint,a-BigInt(u),9)},t.decodeNegint8=function(e,t,r,o){return new n.Token(n.Type.negint,-1-i.readUint8(e,t+1,o),2)},t.encodeNegint=u},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(24),o=r(37),a=r(93),s=r(41) +function u(e,t,r,o,a){var u=r+o +i.assertEnoughData(e,t,u) +var c=new n.Token(n.Type.string,s.toString(e,t+r,t+u),u) +return!0===a.retainStringBytes&&(c.byteValue=s.slice(e,t+r,t+u)),c}var c=a.encodeBytes +t.decodeString16=function(e,t,r,n){return u(e,t,3,o.readUint16(e,t+1,n),n)},t.decodeString32=function(e,t,r,n){return u(e,t,5,o.readUint32(e,t+1,n),n)},t.decodeString64=function(e,t,r,n){var a=o.readUint64(e,t+1,n) +if("bigint"==typeof a)throw new Error("".concat(i.decodeErrPrefix," 64-bit integer string lengths not supported")) +return u(e,t,9,a,n)},t.decodeString8=function(e,t,r,n){return u(e,t,2,o.readUint8(e,t+1,n),n)},t.decodeStringCompact=function(e,t,r,n){return u(e,t,1,r,n)},t.encodeString=c},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(37),o=r(24) +function a(e,t,r,i){return new n.Token(n.Type.array,i,r)}function s(e,t){i.encodeUintValue(e,n.Type.array.majorEncoded,t.value)}s.compareTokens=i.encodeUint.compareTokens,s.encodedSize=function(e){return i.encodeUintValue.encodedSize(e.value)},t.decodeArray16=function(e,t,r,n){return a(0,0,3,i.readUint16(e,t+1,n))},t.decodeArray32=function(e,t,r,n){return a(0,0,5,i.readUint32(e,t+1,n))},t.decodeArray64=function(e,t,r,n){var s=i.readUint64(e,t+1,n) +if("bigint"==typeof s)throw new Error("".concat(o.decodeErrPrefix," 64-bit integer array lengths not supported")) +return a(0,0,9,s)},t.decodeArray8=function(e,t,r,n){return a(0,0,2,i.readUint8(e,t+1,n))},t.decodeArrayCompact=function(e,t,r,n){return a(0,0,1,r)},t.decodeArrayIndefinite=function(e,t,r,n){if(!1===n.allowIndefinite)throw new Error("".concat(o.decodeErrPrefix," indefinite length items not allowed")) +return a(0,0,1,1/0)},t.encodeArray=s},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(37),o=r(24) +function a(e,t,r,i){return new n.Token(n.Type.map,i,r)}function s(e,t){i.encodeUintValue(e,n.Type.map.majorEncoded,t.value)}s.compareTokens=i.encodeUint.compareTokens,s.encodedSize=function(e){return i.encodeUintValue.encodedSize(e.value)},t.decodeMap16=function(e,t,r,n){return a(0,0,3,i.readUint16(e,t+1,n))},t.decodeMap32=function(e,t,r,n){return a(0,0,5,i.readUint32(e,t+1,n))},t.decodeMap64=function(e,t,r,n){var s=i.readUint64(e,t+1,n) +if("bigint"==typeof s)throw new Error("".concat(o.decodeErrPrefix," 64-bit integer map lengths not supported")) +return a(0,0,9,s)},t.decodeMap8=function(e,t,r,n){return a(0,0,2,i.readUint8(e,t+1,n))},t.decodeMapCompact=function(e,t,r,n){return a(0,0,1,r)},t.decodeMapIndefinite=function(e,t,r,n){if(!1===n.allowIndefinite)throw new Error("".concat(o.decodeErrPrefix," indefinite length items not allowed")) +return a(0,0,1,1/0)},t.encodeMap=s},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(37) +function o(e,t){i.encodeUintValue(e,n.Type.tag.majorEncoded,t.value)}o.compareTokens=i.encodeUint.compareTokens,o.encodedSize=function(e){return i.encodeUintValue.encodedSize(e.value)},t.decodeTag16=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint16(e,t+1,o),3)},t.decodeTag32=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint32(e,t+1,o),5)},t.decodeTag64=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint64(e,t+1,o),9)},t.decodeTag8=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint8(e,t+1,o),2)},t.decodeTagCompact=function(e,t,r,i){return new n.Token(n.Type.tag,r,1)},t.encodeTag=o},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(18),i=r(24),o=r(37) +function a(e,t,r){if(r){if(!1===r.allowNaN&&Number.isNaN(e))throw new Error("".concat(i.decodeErrPrefix," NaN values are not supported")) +if(!1===r.allowInfinity&&(e===1/0||e===-1/0))throw new Error("".concat(i.decodeErrPrefix," Infinity values are not supported"))}return new n.Token(n.Type.float,e,t)}function s(e,t,r){var i,o=t.value +if(!1===o)e.push([20|n.Type.float.majorEncoded]) +else if(!0===o)e.push([21|n.Type.float.majorEncoded]) +else if(null===o)e.push([22|n.Type.float.majorEncoded]) +else if(void 0===o)e.push([23|n.Type.float.majorEncoded]) +else{var a=!1 +r&&!0===r.float64||(f(o),o===h(l,1)||Number.isNaN(o)?(l[0]=249,e.push(l.slice(0,3)),a=!0):(d(o),o===p(l,1)&&(l[0]=250,e.push(l.slice(0,5)),a=!0))),a||(i=o,c.setFloat64(0,i,!1),m(l,1),l[0]=251,e.push(l.slice(0,9)))}}s.encodedSize=function(e,t){var r=e.value +if(!1===r||!0===r||null==r)return 1 +if(!t||!0!==t.float64){f(r) +var n=h(l,1) +if(r===n||Number.isNaN(r))return 3 +if(d(r),r===(n=p(l,1)))return 5}return 9} +var u=new ArrayBuffer(9),c=new DataView(u,1),l=new Uint8Array(u,0) +function f(e){if(e===1/0)c.setUint16(0,31744,!1) +else if(e===-1/0)c.setUint16(0,64512,!1) +else if(Number.isNaN(e))c.setUint16(0,32256,!1) +else{c.setFloat32(0,e) +var t=c.getUint32(0),r=(2139095040&t)>>23,n=8388607&t +if(255===r)c.setUint16(0,31744,!1) +else if(0===r)c.setUint16(0,(2147483648&e)>>16|n>>13,!1) +else{var i=r-127 +i<-24?c.setUint16(0,0):i<-14?c.setUint16(0,(2147483648&t)>>16|1<<24+i,!1):c.setUint16(0,(2147483648&t)>>16|i+15<<10|n>>13,!1)}}}function h(e,t){if(e.length-t<2)throw new Error("".concat(i.decodeErrPrefix," not enough data for float16")) +var r=(e[t]<<8)+e[t+1] +if(31744===r)return 1/0 +if(64512===r)return-1/0 +if(32256===r)return NaN +var n,o=r>>10&31,a=1023&r +return n=0===o?a*Math.pow(2,-24):31!==o?(a+1024)*Math.pow(2,o-25):0===a?1/0:NaN,32768&r?-n:n}function d(e){c.setFloat32(0,e,!1)}function p(e,t){if(e.length-t<4)throw new Error("".concat(i.decodeErrPrefix," not enough data for float32")) +var r=(e.byteOffset||0)+t +return new DataView(e.buffer,r,4).getFloat32(0,!1)}function m(e,t){if(e.length-t<8)throw new Error("".concat(i.decodeErrPrefix," not enough data for float64")) +var r=(e.byteOffset||0)+t +return new DataView(e.buffer,r,8).getFloat64(0,!1)}s.compareTokens=o.encodeUint.compareTokens,t.decodeBreak=function(e,t,r,o){if(!1===o.allowIndefinite)throw new Error("".concat(i.decodeErrPrefix," indefinite length items not allowed")) +return new n.Token(n.Type.break,void 0,1)},t.decodeFloat16=function(e,t,r,n){return a(h(e,t+1),3,n)},t.decodeFloat32=function(e,t,r,n){return a(p(e,t+1),5,n)},t.decodeFloat64=function(e,t,r,n){return a(m(e,t+1),9,n)},t.decodeUndefined=function(e,t,r,o){if(!1===o.allowUndefined)throw new Error("".concat(i.decodeErrPrefix," undefined values are not supported")) +return!0===o.coerceUndefinedToNull?new n.Token(n.Type.null,null,1):new n.Token(n.Type.undefined,void 0,1)},t.encodeFloat=s},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{} +i(this,e),this.pos=0,this.data=t,this.options=r}var t,r +return t=e,(r=[{key:"done",value:function(){return this.pos>=this.data.length}},{key:"next",value:function(){var e=this.data[this.pos],t=u.quick[e] +if(void 0===t){var r=u.jump[e] +if(!r)throw new Error("".concat(a.decodeErrPrefix," no decoder for major type ").concat(e>>>5," (byte 0x").concat(e.toString(16).padStart(2,"0"),")")) +var n=31&e +t=r(this.data,this.pos,n,this.options)}return this.pos+=t.encodedLength,t}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f=Symbol.for("DONE"),h=Symbol.for("BREAK") +function d(e,t){if(e.done())return f +var r=e.next() +if(r.type===s.Type.break)return h +if(r.type.terminal)return r.value +if(r.type===s.Type.array)return function(e,t,r){for(var n=[],i=0;i=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(290)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,r(12))},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"Request timed out" +return a(this,r),(e=t.call(this,n)).name="TimeoutError",e}return o(r)}(l(Error)) +t.TimeoutError=m +var v=function(e){s(r,e) +var t=u(r) +function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The operation was aborted." +return a(this,r),(e=t.call(this,n)).name="AbortError",e}return o(r)}(l(Error)) +t.AbortError=v +var y=function(e){s(r,e) +var t=u(r) +function r(e){var n +return a(this,r),(n=t.call(this,e.statusText)).name="HTTPError",n.response=e,n}return o(r)}(l(Error)) +t.HTTPError=y},function(e,t,r){"use strict" +function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var n=0,o=function(){} +return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s +n(this,e),this.super=new a(t,r),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}var t,r,o +return t=e,o=[{key:"createObjectURL",value:function(e){return a.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){a.revokeObjectURL(e)}}],(r=[{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}() +e.exports={URLWithLegacySupport:u,URLSearchParams:self.URLSearchParams,defaultBase:s,format:function(e){if("string"==typeof e)return new a(e).toString() +if(!(e instanceof a)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",r=e.auth?e.auth+"@":"",n=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",f=e.path||l+u +return"".concat(i).concat(t||r).concat(o||s+n).concat(f).concat(c)}}}},function(e,t){function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var i=0,o=function(){} +return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r999999999))throw i.default(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS") +return t}}}},function(e,t,r){"use strict" +function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments +return new Promise((function(i,o){var a=e.apply(t,r) +function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) +var o=r(7),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("bitswap/stat",{searchParams:s.toUrlSearchParams(r),signal:r.signal,headers:r.headers}) +case 3:return n=t.sent,t.t0=c,t.next=7,n.json() +case 7:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1)) +case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) +function c(e){return{provideBufLen:e.ProvideBufLen,wantlist:(e.Wantlist||[]).map((function(e){return o.CID.parse(e["/"])})),peers:e.Peers||[],blocksReceived:BigInt(e.BlocksReceived),dataReceived:BigInt(e.DataReceived),blocksSent:BigInt(e.BlocksSent),dataSent:BigInt(e.DataSent),dupBlksReceived:BigInt(e.DupBlksReceived),dupDataReceived:BigInt(e.DupDataReceived)}}t.createStat=u},function(e,t,r){"use strict" +function n(e,t){var r=Object.keys(e) +if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) +t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("block/get",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers}) +case 3:return o=t.sent,t.t0=Uint8Array,t.next=7,o.arrayBuffer() +case 7:return t.t1=t.sent,t.abrupt("return",new t.t0(t.t1)) +case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) +t.createGet=l},function(e,t,r){"use strict" +function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){var t,r,n,i=2 +for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e) +if(n&&null!=(t=e[n]))return new o(t.call(e)) +r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function o(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object.")) +var t=e.done +return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(o=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return +return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return +return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new o(e)}var a=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,n,o,a,s,u,c +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=!1,o=!1,e.prev=3,s=i(t) +case 5:return e.next=7,s.next() +case 7:if(!(n=!(u=e.sent).done)){e.next=13 +break}c=u.value,r.push(c) +case 10:n=!1,e.next=5 break -case"maticmum":r="polygon-mumbai.infura.io" +case 13:e.next=19 break -case"optimism":r="optimism-mainnet.infura.io" +case 15:e.prev=15,e.t0=e.catch(3),o=!0,a=e.t0 +case 19:if(e.prev=19,e.prev=20,!n||null==s.return){e.next=24 +break}return e.next=24,s.return() +case 24:if(e.prev=24,!o){e.next=27 +break}throw a +case 27:return e.finish(24) +case 28:return e.finish(19) +case 29:return e.abrupt("return",r) +case 30:case"end":return e.stop()}}),e,null,[[3,15,19,29],[20,,24,28]])})),function(){var t=this,r=arguments +return new Promise((function(i,o){var a=e.apply(t,r) +function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}) +return function(e){return t.apply(this,arguments)}}() +e.exports=a},function(e,t,r){"use strict" +function n(e){return new o(e)}function i(e){var t,r +function n(t,r){try{var a=e[t](r),s=a.value,u=s instanceof o +Promise.resolve(u?s.wrapped:s).then((function(e){u?n("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0}) break -case"optimism-kovan":r="optimism-kovan.infura.io" +case"throw":t.reject(i) break -case"arbitrum":r="arbitrum-mainnet.infura.io" +default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null} +r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(e){this.wrapped=e}function a(e){var t,r,n,i=2 +for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e) +if(n&&null!=(t=e[n]))return new s(t.call(e)) +r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function s(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object.")) +var t=e.done +return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(s=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return +return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return +return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new s(e)}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)} +var u=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var i,o,s,u,c,l +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=!1,o=!1,e.prev=2,u=a(t) +case 4:return e.next=6,n(u.next()) +case 6:if(!(i=!(c=e.sent).done)){e.next=13 +break}return l=c.value,e.next=10,r(l) +case 10:i=!1,e.next=4 break -case"arbitrum-rinkeby":r="arbitrum-rinkeby.infura.io" +case 13:e.next=19 break -default:jl.throwError("unsupported network",h.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:function(e,r){return t.projectId===Al&&Ss(),Promise.resolve(!0)}} -return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}]),r}(tc) -function Cl(e){return(Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var r=0;r999999999))throw u.default(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS") +return t}}}var v=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"file"} +n(this,e) +var r=t.type,i=t.data,o=t.blockSizes,a=t.hashType,s=t.fanout,c=t.mtime,f=t.mode +if(r&&!l.includes(r))throw u.default(new Error("Type: "+r+" is not valid"),"ERR_INVALID_TYPE") +this.type=r||"file",this.data=i,this.hashType=a,this.fanout=s,this.blockSizes=o||[],this._originalMode=0,this.mode=p(f),c&&(this.mtime=m(c),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}var t,r,o +return t=e,o=[{key:"unmarshal",value:function(t){var r=c.decode(t),n=c.toObject(r,{defaults:!1,arrays:!0,longs:Number,objects:!1}),i=new e({type:l[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0}) +return i._originalMode=n.mode||0,i}}],(r=[{key:"mode",get:function(){return this._mode},set:function(e){this._mode=this.isDirectory()?d:h +var t=p(e) +void 0!==t&&(this._mode=t)}},{key:"isDirectory",value:function(){return Boolean(this.type&&f.includes(this.type))}},{key:"addBlockSize",value:function(e){this.blockSizes.push(e)}},{key:"removeBlockSize",value:function(e){this.blockSizes.splice(e,1)}},{key:"fileSize",value:function(){if(this.isDirectory())return 0 +var e=0 +return this.blockSizes.forEach((function(t){e+=t})),this.data&&(e+=this.data.length),e}},{key:"marshal",value:function(){var e +switch(this.type){case"raw":e=c.DataType.Raw break -case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc" +case"directory":e=c.DataType.Directory break -case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc" +case"file":e=c.DataType.File break -case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc" +case"metadata":e=c.DataType.Metadata break -case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc" +case"symlink":e=c.DataType.Symlink break -default:Yl.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}],null&&Hl(t.prototype,null),r&&Hl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(tc) -function Kl(e){return(Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $l(e,t){for(var r=0;r>>7|e.hi<<25)>>>0,e.hi>>>=7 +for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7 +t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=h(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},p.prototype=Object.create(u.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7 +t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(m,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e) +return this._push(m,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode() +return this._push(m,t.length(),t)},f.prototype.bool=function(e){return this._push(d,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e) +return this._push(v,4,t.lo)._push(v,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)} +var y=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0 +if(!t)return this._push(d,1,0) +if(i.isString(e)){var r=f.alloc(t=a.length(e)) +a.decode(e,r,0),e=r}return this.uint32(t)._push(y,t,e)},f.prototype.string=function(e){var t=s.length(e) +return t?this.uint32(t)._push(s.write,t,e):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len +return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next +return t},f._configure=function(e){n=e,f.create=h(),n._configure()}},function(e,t,r){"use strict" +e.exports=u +var n,i=r(43),o=i.LongBits,a=i.utf8 +function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e) +throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e) +throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l} +function h(){var e=new o(0,0),t=0 +if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this) +if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e +if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e +if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this) +if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8) +return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c +if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c +if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c +if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c +if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c +if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10) +return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32() +return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4) +return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4) +return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4) +var e=i.float.readFloatLE(this.buf,this.pos) +return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4) +var e=i.float.readDoubleLE(this.buf,this.pos) +return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e +if(r>this.len)throw s(this,e) +return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes() +return a.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e) +this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]) +return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip() break -case"rinkeby":r="eth-rinkeby.gateway.pokt.network" +case 1:this.skip(8) break -case"goerli":r="eth-goerli.gateway.pokt.network" +case 2:this.skip(this.uint32()) break -default:Xl.throwError("unsupported network",h.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={url:t.loadBalancer?"https://".concat(r,"/v1/lb/").concat(t.applicationId):"https://".concat(r,"/v1/").concat(t.applicationId),headers:{}} -return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}}],(r=[{key:"isCommunityResource",value:function(){return this.applicationId===ef[this.network.name]}}])&&$l(t.prototype,r),n&&$l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(tc) -function rf(e){return(rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nf(e,t){for(var r=0;r256)&&bf.throwArgumentError("invalid number type","type",t),n&&(o=256),r=b.from(r).toTwos(o),Object(c.p)(r,o/8)}if(i=t.match(mf)){var a=parseInt(i[1]) -return(String(a)!==i[1]||0===a||a>32)&&bf.throwArgumentError("invalid bytes type","type",t),Object(c.a)(r).byteLength!==a&&bf.throwArgumentError("invalid value for ".concat(t),"value",r),n?Object(c.a)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=t.match(vf))&&Array.isArray(r)){var s=i[1] -parseInt(i[2]||String(r.length))!=r.length&&bf.throwArgumentError("invalid array length for ".concat(t),"value",r) -var u=[] -return r.forEach((function(t){u.push(e(s,t,!0))})),Object(c.b)(u)}return bf.throwArgumentError("invalid type","type",t)}(e,t[n]))})),Object(c.i)(Object(c.b)(r))}function wf(e,t){return V(gf(e,t))}function _f(e,t){return uo(gf(e,t))}function xf(e){var t=ve(e) -if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes") -return Object(c.i)(Object(c.b)([t,Na]).slice(0,32))}function kf(e){var t=Object(c.a)(e) -if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long") -if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator") -for(var r=31;0===t[r-1];)r-- -return _e(t.slice(0,r))}var Of=new h.b("units/5.6.0"),Ef=["wei","kwei","mwei","gwei","szabo","finney","ether"] -function Sf(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Of.throwArgumentError("invalid value","value",e) -var r=t[0],n="" -for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1) -""===r&&(r="0") -var i="" -for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1) -for(var o=[];r.length;){if(r.length<=3){o.unshift(r) -break}var a=r.length-3 -o.unshift(r.substring(a)),r=r.substring(0,a)}return n+o.join(",")+i}function Pf(e,t){if("string"==typeof t){var r=Ef.indexOf(t);-1!==r&&(t=3*r)}return Ti(e,null!=t?t:18)}function Mf(e,t){if("string"!=typeof e&&Of.throwArgumentError("value must be a string","value",e),"string"==typeof t){var r=Ef.indexOf(t);-1!==r&&(t=3*r)}return Ri(e,null!=t?t:18)}function jf(e){return Pf(e,18)}function Af(e){return Mf(e,18)}var Tf="ethers/5.6.4",Rf=new h.b(Tf) -try{var Cf=window -null==Cf._ethers&&(Cf._ethers=u)}catch(e){}},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}for(var i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},a=0;a>25 -return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")" -t=u(t)^n>>5}for(t=u(t),r=0;rt)return"Exceeds length limit" -var r=e.toLowerCase(),n=e.toUpperCase() -if(e!==r&&e!==n)return"Mixed-case string "+e -var i=(e=r).lastIndexOf("1") -if(-1===i)return"No separator character for "+e -if(0===i)return"Missing prefix for "+e -var a=e.slice(0,i),s=e.slice(i+1) -if(s.length<6)return"Data too short" -var l=c(a) -if("string"==typeof l)return l -for(var f=[],h=0;h=s.length||f.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:a,words:f}}function f(e,t,r,n){for(var i=0,o=0,a=(1<=r;)o-=r,s.push(i>>o&a) -if(n)o>0&&s.push(i<=t)return"Excess padding" -if(i<r)throw new TypeError("Exceeds length limit") -var n=c(e=e.toLowerCase()) -if("string"==typeof n)throw new Error(n) -for(var o=e+"1",a=0;a>5!=0)throw new Error("Non 5-bit word") -n=u(n)^s,o+=i.charAt(s)}for(a=0;a<6;++a)n=u(n) -for(n^=1,a=0;a<6;++a)o+=i.charAt(n>>5*(5-a)&31) -return o},toWordsUnsafe:function(e){var t=f(e,8,5,!0) -if(Array.isArray(t))return t},toWords:function(e){var t=f(e,8,5,!0) -if(Array.isArray(t))return t -throw new Error(t)},fromWordsUnsafe:function(e){var t=f(e,5,8,!1) -if(Array.isArray(t))return t},fromWords:function(e){var t=f(e,5,8,!1) -if(Array.isArray(t))return t -throw new Error(t)}}},,function(e,t,r){"use strict" -var n=r(21).rotr32 -function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" -var n=r(21),i=r(51),o=r(98),a=r(12),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,y=i.BlockHash,v=[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 b(){if(!(this instanceof b))return new b -y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,y),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] -for(;n>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" -var n=r(22),i=r(52),o=r(102),a=r(12),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,y=i.BlockHash,v=[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 b(){if(!(this instanceof b))return new b -y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,y),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] -for(;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(201),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(10))},function(e,t,r){function n(e,t){for(var r=0;r1&&void 0!==y[1]?y[1]:{},!(a=i({storeCodec:"dag-cbor",hashAlg:"sha2-256"},o)).inputCodec){r.next=8 +break}if(n instanceof Uint8Array){r.next=5 +break}throw new Error("Can only inputCodec on raw bytes that can be decoded") +case 5:u=n,r.next=13 +break +case 8:return r.next=10,e.getCodec(a.storeCodec) +case 10:h=r.sent,u=h.encode(n),a.inputCodec=a.storeCodec +case 13:return d=new AbortController,p=f.abortSignal(d.signal,a.signal),r.t0=t,r.t1=i,r.t2={timeout:a.timeout,signal:p,searchParams:l.toUrlSearchParams(a)},r.next=20,c.multipartRequest([u],d,a.headers) +case 20:return r.t3=r.sent,r.t4=(0,r.t1)(r.t2,r.t3),r.next=24,r.t0.post.call(r.t0,"dag/put",r.t4) +case 24:return m=r.sent,r.next=27,m.json() +case 27:return v=r.sent,r.abrupt("return",s.CID.parse(v.Cid["/"])) +case 29:case"end":return r.stop()}}),r)}))) +return function(e){return r.apply(this,arguments)}}()}))(t)}},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(15) +t.objectToCamelWithMetadata=function(e){var t=n.objectToCamel(e) +return Object.prototype.hasOwnProperty.call(t,"mode")&&(t.mode=parseInt(t.mode,8)),Object.prototype.hasOwnProperty.call(t,"mtime")&&(t.mtime={secs:t.mtime,nsecs:t.mtimeNsecs||0},delete t.mtimeNsecs),t}},function(e,t,r){"use strict" +function n(e,t){var r=Object.keys(e) +if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) +t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("files/stat",{signal:n.signal,searchParams:f.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) +case 3:return o=t.sent,t.next=6,o.json() +case 6:return(a=t.sent).WithLocality=a.WithLocality||!1,t.abrupt("return",d(c.objectToCamelWithMetadata(a))) +case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) +function d(e){return e.cid=u.CID.parse(e.hash),delete e.hash,e}t.createStat=h},function(e,t,r){"use strict" +function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] +if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) +var n=0,o=function(){} +return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 +return{s:function(){r=r.call(e)},n:function(){var e=r.next() +return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r1&&void 0!==j[1]?j[1]:{},o=!1,s=!1,t.prev=3,l=h(v.normaliseInput(r)) +case 5:return t.next=7,u(l.next()) +case 7:if(!(o=!(f=t.sent).done)){t.next=63 +break}return d=f.value,m=d.path,b=d.recursive,g=d.metadata,t.next=11,u(e.post("pin/add",{signal:i.signal,searchParams:y.toUrlSearchParams(a(a({},i),{},{arg:m,recursive:b,metadata:g?JSON.stringify(g):void 0,stream:!0})),headers:i.headers})) +case 11:w=t.sent,_=!1,k=!1,t.prev=14,O=h(w.ndjson()) +case 16:return t.next=18,u(O.next()) +case 18:if(!(_=!(E=t.sent).done)){t.next=44 +break}if(!(S=E.value).Pins){t.next=39 +break}P=n(S.Pins),t.prev=22,P.s() +case 24:if((M=P.n()).done){t.next=30 +break}return A=M.value,t.next=28,p.CID.parse(A) +case 28:t.next=24 +break +case 30:t.next=35 +break +case 32:t.prev=32,t.t0=t.catch(22),P.e(t.t0) +case 35:return t.prev=35,P.f(),t.finish(35) +case 38:return t.abrupt("continue",41) +case 39:return t.next=41,p.CID.parse(S) +case 41:_=!1,t.next=16 +break +case 44:t.next=50 +break +case 46:t.prev=46,t.t1=t.catch(14),k=!0,x=t.t1 +case 50:if(t.prev=50,t.prev=51,!_||null==O.return){t.next=55 +break}return t.next=55,u(O.return()) +case 55:if(t.prev=55,!k){t.next=58 +break}throw x +case 58:return t.finish(55) +case 59:return t.finish(50) +case 60:o=!1,t.next=5 +break +case 63:t.next=69 +break +case 65:t.prev=65,t.t2=t.catch(3),s=!0,c=t.t2 +case 69:if(t.prev=69,t.prev=70,!o||null==l.return){t.next=74 +break}return t.next=74,u(l.return()) +case 74:if(t.prev=74,!s){t.next=77 +break}throw c +case 77:return t.finish(74) +case 78:return t.finish(69) +case 79:case"end":return t.stop()}}),t,null,[[3,65,69,79],[14,46,50,60],[22,32,35,38],[51,,55,59],[70,,74,78]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) +t.createAddAll=b},function(e,t,r){"use strict" function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) @@ -11680,1326 +10452,4049 @@ return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:f return{s:function(){r=r.call(e)},n:function(){var e=r.next() return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r=0?new s.Token(s.Type.uint,e):new s.Token(s.Type.negint,e):new s.Token(s.Type.float,e)},bigint:function(e,t,r,n){return e>=BigInt(0)?new s.Token(s.Type.uint,e):new s.Token(s.Type.negint,e)},Uint8Array:function(e,t,r,n){return new s.Token(s.Type.bytes,e)},string:function(e,t,r,n){return new s.Token(s.Type.string,e)},boolean:function(e,t,r,n){return e?E.true:E.false},null:function(e,t,r,n){return E.null},undefined:function(e,t,r,n){return E.undefined},ArrayBuffer:function(e,t,r,n){return new s.Token(s.Type.bytes,new Uint8Array(e))},DataView:function(e,t,r,n){return new s.Token(s.Type.bytes,new Uint8Array(e.buffer,e.byteOffset,e.byteLength))},Array:function(e,t,r,i){if(!e.length)return!0===r.addBreakTokens?[E.emptyArray,new s.Token(s.Type.break)]:E.emptyArray -i=O.createCheck(i,e) -var o,a=[],u=0,c=n(e) -try{for(c.s();!(o=c.n()).done;){var l=o.value -a[u++]=A(l,r,i)}}catch(e){c.e(e)}finally{c.f()}return r.addBreakTokens?[new s.Token(s.Type.array,e.length),a,new s.Token(s.Type.break)]:[new s.Token(s.Type.array,e.length),a]},Object:function(e){function t(t,r,n,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,r,i){var o="Object"!==t,a=o?e.keys():Object.keys(e),u=o?e.size:a.length -if(!u)return!0===r.addBreakTokens?[E.emptyMap,new s.Token(s.Type.break)]:E.emptyMap -i=O.createCheck(i,e) -var c,l=[],f=0,h=n(a) -try{for(h.s();!(c=h.n()).done;){var d=c.value -l[f++]=[A(d,r,i),A(o?e.get(d):e[d],r,i)]}}catch(e){h.e(e)}finally{h.f()}return function(e,t){t.mapSorter&&e.sort(t.mapSorter)}(l,r),r.addBreakTokens?[new s.Token(s.Type.map,u),l,new s.Token(s.Type.break)]:[new s.Token(s.Type.map,u),l]}))} -S.Map=S.Object,S.Buffer=S.Uint8Array -var P,M=n("Uint8Clamped Uint16 Uint32 Int8 Int16 Int32 BigUint64 BigInt64 Float32 Float64".split(" ")) -try{for(M.s();!(P=M.n()).done;){var j=P.value -S["".concat(j,"Array")]=S.DataView}}catch(e){M.e(e)}finally{M.f()}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=a.is(e),i=t&&t.typeEncoders&&t.typeEncoders[n]||S[n] -if("function"==typeof i){var o=i(e,n,t,r) -if(null!=o)return o}var s=S[n] -if(!s)throw new Error("".concat(c.encodeErrPrefix," unsupported type: ").concat(n)) -return s(e,n,t,r)}function T(e,t,r){var i=A(e,r) -if(!Array.isArray(i)&&r.quickEncodeToken){var o=r.quickEncodeToken(i) -if(o)return o -var a=t[i.type.major] -if(a.encodedSize){var s=a.encodedSize(i,r),c=new u.Bl(s) -if(a(c,i,r),1!==c.chunks.length)throw new Error("Unexpected error: pre-calculated length for ".concat(i," was wrong")) -return f.asU8A(c.chunks[0])}}return k.reset(),function e(t,r,i,o){if(Array.isArray(r)){var a,s=n(r) -try{for(s.s();!(a=s.n()).done;)e(t,a.value,i,o)}catch(e){s.e(e)}finally{s.f()}}else i[r.type.major](t,r,o)}(k,i,t,r),k.toBytes(!0)}t.Ref=O,t.encode=function(e,t){return t=Object.assign({},w,t),T(e,x,t)},t.encodeCustom=T,t.makeCborEncoders=_,t.objectToTokens=A},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(28),o=r(111),a=r(77),s=r(112),u=r(113),c=r(114),l=r(115),f=r(116),h=r(18),d=r(33) -function p(e,t,r){throw new Error("".concat(h.decodeErrPrefix," encountered invalid minor (").concat(r,") for major ").concat(e[t]>>>5))}function m(e){return function(){throw new Error("".concat(h.decodeErrPrefix," ").concat(e))}}for(var y=[],v=0;v<=23;v++)y[v]=p -y[24]=i.decodeUint8,y[25]=i.decodeUint16,y[26]=i.decodeUint32,y[27]=i.decodeUint64,y[28]=p,y[29]=p,y[30]=p,y[31]=p -for(var b=32;b<=55;b++)y[b]=p -y[56]=o.decodeNegint8,y[57]=o.decodeNegint16,y[58]=o.decodeNegint32,y[59]=o.decodeNegint64,y[60]=p,y[61]=p,y[62]=p,y[63]=p -for(var g=64;g<=87;g++)y[g]=a.decodeBytesCompact -y[88]=a.decodeBytes8,y[89]=a.decodeBytes16,y[90]=a.decodeBytes32,y[91]=a.decodeBytes64,y[92]=p,y[93]=p,y[94]=p,y[95]=m("indefinite length bytes/strings are not supported") -for(var w=96;w<=119;w++)y[w]=s.decodeStringCompact -y[120]=s.decodeString8,y[121]=s.decodeString16,y[122]=s.decodeString32,y[123]=s.decodeString64,y[124]=p,y[125]=p,y[126]=p,y[127]=m("indefinite length bytes/strings are not supported") -for(var _=128;_<=151;_++)y[_]=u.decodeArrayCompact -y[152]=u.decodeArray8,y[153]=u.decodeArray16,y[154]=u.decodeArray32,y[155]=u.decodeArray64,y[156]=p,y[157]=p,y[158]=p,y[159]=u.decodeArrayIndefinite -for(var x=160;x<=183;x++)y[x]=c.decodeMapCompact -y[184]=c.decodeMap8,y[185]=c.decodeMap16,y[186]=c.decodeMap32,y[187]=c.decodeMap64,y[188]=p,y[189]=p,y[190]=p,y[191]=c.decodeMapIndefinite -for(var k=192;k<=215;k++)y[k]=l.decodeTagCompact -y[216]=l.decodeTag8,y[217]=l.decodeTag16,y[218]=l.decodeTag32,y[219]=l.decodeTag64,y[220]=p,y[221]=p,y[222]=p,y[223]=p -for(var O=224;O<=243;O++)y[O]=m("simple values are not supported") -y[244]=p,y[245]=p,y[246]=p,y[247]=f.decodeUndefined,y[248]=m("simple values are not supported"),y[249]=f.decodeFloat16,y[250]=f.decodeFloat32,y[251]=f.decodeFloat64,y[252]=p,y[253]=p,y[254]=p,y[255]=f.decodeBreak -for(var E=[],S=0;S<24;S++)E[S]=new n.Token(n.Type.uint,S,1) -for(var P=-1;P>=-24;P--)E[31-P]=new n.Token(n.Type.negint,P,1) -E[64]=new n.Token(n.Type.bytes,new Uint8Array(0),1),E[96]=new n.Token(n.Type.string,"",1),E[128]=new n.Token(n.Type.array,0,1),E[160]=new n.Token(n.Type.map,0,1),E[244]=new n.Token(n.Type.false,!1,1),E[245]=new n.Token(n.Type.true,!0,1),E[246]=new n.Token(n.Type.null,null,1),t.jump=y,t.quick=E,t.quickEncodeToken=function(e){switch(e.type){case n.Type.false:return d.fromArray([244]) -case n.Type.true:return d.fromArray([245]) -case n.Type.null:return d.fromArray([246]) -case n.Type.bytes:return e.value.length?void 0:d.fromArray([64]) -case n.Type.string:return""===e.value?d.fromArray([96]):void 0 -case n.Type.array:return 0===e.value?d.fromArray([128]):void 0 -case n.Type.map:return 0===e.value?d.fromArray([160]):void 0 -case n.Type.uint:return e.value<24?d.fromArray([Number(e.value)]):void 0 -case n.Type.negint:if(e.value>=-24)return d.fromArray([31-Number(e.value)])}}},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(28),o=r(18),a=BigInt(-1),s=BigInt(1) -function u(e,t){var r=t.value,n="bigint"==typeof r?r*a-s:-1*r-1 -i.encodeUintValue(e,t.type.majorEncoded,n)}u.encodedSize=function(e){var t=e.value,r="bigint"==typeof t?t*a-s:-1*t-1 -return rt.value?-1:0},t.decodeNegint16=function(e,t,r,o){return new n.Token(n.Type.negint,-1-i.readUint16(e,t+1,o),3)},t.decodeNegint32=function(e,t,r,o){return new n.Token(n.Type.negint,-1-i.readUint32(e,t+1,o),5)},t.decodeNegint64=function(e,t,r,s){var u=i.readUint64(e,t+1,s) -if("bigint"!=typeof u){var c=-1-u -if(c>=Number.MIN_SAFE_INTEGER)return new n.Token(n.Type.negint,c,9)}if(!0!==s.allowBigInt)throw new Error("".concat(o.decodeErrPrefix," integers outside of the safe integer range are not supported")) -return new n.Token(n.Type.negint,a-BigInt(u),9)},t.decodeNegint8=function(e,t,r,o){return new n.Token(n.Type.negint,-1-i.readUint8(e,t+1,o),2)},t.encodeNegint=u},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(18),o=r(28),a=r(77),s=r(33) -function u(e,t,r,o,a){var u=r+o -i.assertEnoughData(e,t,u) -var c=new n.Token(n.Type.string,s.toString(e,t+r,t+u),u) -return!0===a.retainStringBytes&&(c.byteValue=s.slice(e,t+r,t+u)),c}var c=a.encodeBytes -t.decodeString16=function(e,t,r,n){return u(e,t,3,o.readUint16(e,t+1,n),n)},t.decodeString32=function(e,t,r,n){return u(e,t,5,o.readUint32(e,t+1,n),n)},t.decodeString64=function(e,t,r,n){var a=o.readUint64(e,t+1,n) -if("bigint"==typeof a)throw new Error("".concat(i.decodeErrPrefix," 64-bit integer string lengths not supported")) -return u(e,t,9,a,n)},t.decodeString8=function(e,t,r,n){return u(e,t,2,o.readUint8(e,t+1,n),n)},t.decodeStringCompact=function(e,t,r,n){return u(e,t,1,r,n)},t.encodeString=c},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(28),o=r(18) -function a(e,t,r,i){return new n.Token(n.Type.array,i,r)}function s(e,t){i.encodeUintValue(e,n.Type.array.majorEncoded,t.value)}s.compareTokens=i.encodeUint.compareTokens,s.encodedSize=function(e){return i.encodeUintValue.encodedSize(e.value)},t.decodeArray16=function(e,t,r,n){return a(0,0,3,i.readUint16(e,t+1,n))},t.decodeArray32=function(e,t,r,n){return a(0,0,5,i.readUint32(e,t+1,n))},t.decodeArray64=function(e,t,r,n){var s=i.readUint64(e,t+1,n) -if("bigint"==typeof s)throw new Error("".concat(o.decodeErrPrefix," 64-bit integer array lengths not supported")) -return a(0,0,9,s)},t.decodeArray8=function(e,t,r,n){return a(0,0,2,i.readUint8(e,t+1,n))},t.decodeArrayCompact=function(e,t,r,n){return a(0,0,1,r)},t.decodeArrayIndefinite=function(e,t,r,n){if(!1===n.allowIndefinite)throw new Error("".concat(o.decodeErrPrefix," indefinite length items not allowed")) -return a(0,0,1,1/0)},t.encodeArray=s},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(28),o=r(18) -function a(e,t,r,i){return new n.Token(n.Type.map,i,r)}function s(e,t){i.encodeUintValue(e,n.Type.map.majorEncoded,t.value)}s.compareTokens=i.encodeUint.compareTokens,s.encodedSize=function(e){return i.encodeUintValue.encodedSize(e.value)},t.decodeMap16=function(e,t,r,n){return a(0,0,3,i.readUint16(e,t+1,n))},t.decodeMap32=function(e,t,r,n){return a(0,0,5,i.readUint32(e,t+1,n))},t.decodeMap64=function(e,t,r,n){var s=i.readUint64(e,t+1,n) -if("bigint"==typeof s)throw new Error("".concat(o.decodeErrPrefix," 64-bit integer map lengths not supported")) -return a(0,0,9,s)},t.decodeMap8=function(e,t,r,n){return a(0,0,2,i.readUint8(e,t+1,n))},t.decodeMapCompact=function(e,t,r,n){return a(0,0,1,r)},t.decodeMapIndefinite=function(e,t,r,n){if(!1===n.allowIndefinite)throw new Error("".concat(o.decodeErrPrefix," indefinite length items not allowed")) -return a(0,0,1,1/0)},t.encodeMap=s},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(28) -function o(e,t){i.encodeUintValue(e,n.Type.tag.majorEncoded,t.value)}o.compareTokens=i.encodeUint.compareTokens,o.encodedSize=function(e){return i.encodeUintValue.encodedSize(e.value)},t.decodeTag16=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint16(e,t+1,o),3)},t.decodeTag32=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint32(e,t+1,o),5)},t.decodeTag64=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint64(e,t+1,o),9)},t.decodeTag8=function(e,t,r,o){return new n.Token(n.Type.tag,i.readUint8(e,t+1,o),2)},t.decodeTagCompact=function(e,t,r,i){return new n.Token(n.Type.tag,r,1)},t.encodeTag=o},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(13),i=r(18),o=r(28) -function a(e,t,r){if(r){if(!1===r.allowNaN&&Number.isNaN(e))throw new Error("".concat(i.decodeErrPrefix," NaN values are not supported")) -if(!1===r.allowInfinity&&(e===1/0||e===-1/0))throw new Error("".concat(i.decodeErrPrefix," Infinity values are not supported"))}return new n.Token(n.Type.float,e,t)}function s(e,t,r){var i,o=t.value -if(!1===o)e.push([20|n.Type.float.majorEncoded]) -else if(!0===o)e.push([21|n.Type.float.majorEncoded]) -else if(null===o)e.push([22|n.Type.float.majorEncoded]) -else if(void 0===o)e.push([23|n.Type.float.majorEncoded]) -else{var a=!1 -r&&!0===r.float64||(f(o),o===h(l,1)||Number.isNaN(o)?(l[0]=249,e.push(l.slice(0,3)),a=!0):(d(o),o===p(l,1)&&(l[0]=250,e.push(l.slice(0,5)),a=!0))),a||(i=o,c.setFloat64(0,i,!1),m(l,1),l[0]=251,e.push(l.slice(0,9)))}}s.encodedSize=function(e,t){var r=e.value -if(!1===r||!0===r||null==r)return 1 -if(!t||!0!==t.float64){f(r) -var n=h(l,1) -if(r===n||Number.isNaN(r))return 3 -if(d(r),r===(n=p(l,1)))return 5}return 9} -var u=new ArrayBuffer(9),c=new DataView(u,1),l=new Uint8Array(u,0) -function f(e){if(e===1/0)c.setUint16(0,31744,!1) -else if(e===-1/0)c.setUint16(0,64512,!1) -else if(Number.isNaN(e))c.setUint16(0,32256,!1) -else{c.setFloat32(0,e) -var t=c.getUint32(0),r=(2139095040&t)>>23,n=8388607&t -if(255===r)c.setUint16(0,31744,!1) -else if(0===r)c.setUint16(0,(2147483648&e)>>16|n>>13,!1) -else{var i=r-127 -i<-24?c.setUint16(0,0):i<-14?c.setUint16(0,(2147483648&t)>>16|1<<24+i,!1):c.setUint16(0,(2147483648&t)>>16|i+15<<10|n>>13,!1)}}}function h(e,t){if(e.length-t<2)throw new Error("".concat(i.decodeErrPrefix," not enough data for float16")) -var r=(e[t]<<8)+e[t+1] -if(31744===r)return 1/0 -if(64512===r)return-1/0 -if(32256===r)return NaN -var n,o=r>>10&31,a=1023&r -return n=0===o?a*Math.pow(2,-24):31!==o?(a+1024)*Math.pow(2,o-25):0===a?1/0:NaN,32768&r?-n:n}function d(e){c.setFloat32(0,e,!1)}function p(e,t){if(e.length-t<4)throw new Error("".concat(i.decodeErrPrefix," not enough data for float32")) -var r=(e.byteOffset||0)+t -return new DataView(e.buffer,r,4).getFloat32(0,!1)}function m(e,t){if(e.length-t<8)throw new Error("".concat(i.decodeErrPrefix," not enough data for float64")) -var r=(e.byteOffset||0)+t -return new DataView(e.buffer,r,8).getFloat64(0,!1)}s.compareTokens=o.encodeUint.compareTokens,t.decodeBreak=function(e,t,r,o){if(!1===o.allowIndefinite)throw new Error("".concat(i.decodeErrPrefix," indefinite length items not allowed")) -return new n.Token(n.Type.break,void 0,1)},t.decodeFloat16=function(e,t,r,n){return a(h(e,t+1),3,n)},t.decodeFloat32=function(e,t,r,n){return a(p(e,t+1),5,n)},t.decodeFloat64=function(e,t,r,n){return a(m(e,t+1),9,n)},t.decodeUndefined=function(e,t,r,o){if(!1===o.allowUndefined)throw new Error("".concat(i.decodeErrPrefix," undefined values are not supported")) -return!0===o.coerceUndefinedToNull?new n.Token(n.Type.null,null,1):new n.Token(n.Type.undefined,void 0,1)},t.encodeFloat=s},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{} -i(this,e),this.pos=0,this.data=t,this.options=r}var t,r -return t=e,(r=[{key:"done",value:function(){return this.pos>=this.data.length}},{key:"next",value:function(){var e=this.data[this.pos],t=u.quick[e] -if(void 0===t){var r=u.jump[e] -if(!r)throw new Error("".concat(a.decodeErrPrefix," no decoder for major type ").concat(e>>>5," (byte 0x").concat(e.toString(16).padStart(2,"0"),")")) -var n=31&e -t=r(this.data,this.pos,n,this.options)}return this.pos+=t.encodedLength,t}}])&&o(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f=Symbol.for("DONE"),h=Symbol.for("BREAK") -function d(e,t){if(e.done())return f -var r=e.next() -if(r.type===s.Type.break)return h -if(r.type.terminal)return r.value -if(r.type===s.Type.array)return function(e,t,r){for(var n=[],i=0;i1&&void 0!==P[1]?P[1]:{},o=!1,a=!1,t.prev=3,c=f(m.normaliseInput(r)) +case 5:return t.next=7,u(c.next()) +case 7:if(!(o=!(h=t.sent).done)){t.next=50 +break}return p=h.value,y=p.path,b=p.recursive,(g=new URLSearchParams(n.searchParams)).append("arg","".concat(y)),null!=b&&g.set("recursive",String(b)),t.next=14,u(e.post("pin/rm",{signal:n.signal,headers:n.headers,searchParams:v.toUrlSearchParams(i(i({},n),{},{arg:"".concat(y),recursive:b}))})) +case 14:w=t.sent,_=!1,k=!1,t.prev=17,O=f(w.ndjson()) +case 19:return t.next=21,u(O.next()) +case 21:if(!(_=!(E=t.sent).done)){t.next=31 +break}if(!(S=E.value).Pins){t.next=26 +break}return t.delegateYield(l(f(S.Pins.map((function(e){return d.CID.parse(e)}))),u),"t0",25) +case 25:return t.abrupt("continue",28) +case 26:return t.next=28,d.CID.parse(S) +case 28:_=!1,t.next=19 +break +case 31:t.next=37 +break +case 33:t.prev=33,t.t1=t.catch(17),k=!0,x=t.t1 +case 37:if(t.prev=37,t.prev=38,!_||null==O.return){t.next=42 +break}return t.next=42,u(O.return()) +case 42:if(t.prev=42,!k){t.next=45 +break}throw x +case 45:return t.finish(42) +case 46:return t.finish(37) +case 47:o=!1,t.next=5 +break +case 50:t.next=56 +break +case 52:t.prev=52,t.t2=t.catch(3),a=!0,s=t.t2 +case 56:if(t.prev=56,t.prev=57,!o||null==c.return){t.next=61 +break}return t.next=61,u(c.return()) +case 61:if(t.prev=61,!a){t.next=64 +break}throw s +case 64:return t.finish(61) +case 65:return t.finish(56) +case 66:case"end":return t.stop()}}),t,null,[[3,52,56,66],[17,33,37,47],[38,,42,46],[57,,61,65]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) +t.createRmAll=y},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(121) -function a(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}var s=a("utf8","u",(function(e){return"u"+new TextDecoder("utf8").decode(e)}),(function(e){return(new TextEncoder).encode(e.substring(1))})),u=a("ascii","a",(function(e){for(var t="a",r=0;r=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(i=!1,function(){i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=r(269)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,r(8))},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("repo/stat",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) +case 3:return n=t.sent,t.next=6,n.json() +case 6:return i=t.sent,t.abrupt("return",{numObjects:BigInt(i.NumObjects),repoSize:BigInt(i.RepoSize),repoPath:i.RepoPath,version:i.Version,storageMax:BigInt(i.StorageMax)}) +case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) +t.createStat=s},function(e,t,r){"use strict" +function n(e,t){var r=Object.keys(e) +if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) +t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length) +for(var r=0,n=new Array(t);r1&&void 0!==T[1]?T[1]:{},o=new AbortController,s=g.abortSignal(o.signal,n.signal),t.next=5,u(y.multipartRequest(r,o,n.headers)) +case 5:return c=t.sent,l=c.headers,f=c.body,d=c.total,p=c.parts,v="function"==typeof n.progress?_(d,p,n.progress):[void 0,void 0],w=a(v,2),k=w[0],O=w[1],t.next=13,u(e.post("add",{searchParams:b.toUrlSearchParams(i(i({"stream-channels":!0},n),{},{progress:Boolean(k)})),onUploadProgress:O,signal:s,headers:l,body:f})) +case 13:E=t.sent,S=!1,P=!1,t.prev=16,A=h(E.ndjson()) +case 18:return t.next=20,u(A.next()) +case 20:if(!(S=!(j=t.sent).done)){t.next=32 +break}if(R=j.value,void 0===(R=m.objectToCamel(R)).hash){t.next=28 +break}return t.next=26,x(R) +case 26:t.next=29 +break +case 28:k&&k(R.bytes||0,R.name) +case 29:S=!1,t.next=18 +break +case 32:t.next=38 +break +case 34:t.prev=34,t.t0=t.catch(16),P=!0,M=t.t0 +case 38:if(t.prev=38,t.prev=39,!S||null==A.return){t.next=43 +break}return t.next=43,u(A.return()) +case 43:if(t.prev=43,!P){t.next=46 +break}throw M +case 46:return t.finish(43) +case 47:return t.finish(38) +case 48:case"end":return t.stop()}}),t,null,[[16,34,38,48],[39,,43,47]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})),_=function(e,t,r){return t?[void 0,k(e,t,r)]:[r,void 0]},k=function(e,t,r){var n=0,i=t.length +return function(o){for(var a=o.loaded,s=o.total,u=Math.floor(a/s*e);n0&&void 0!==s[0]?s[0]:{},t.next=3,e.post("id",{signal:r.signal,searchParams:f.toUrlSearchParams(i({arg:r.peerId?r.peerId.toString():void 0},r)),headers:r.headers}) +case 3:return n=t.sent,t.next=6,n.json() +case 6:return o=t.sent,(a=i({},u.objectToCamel(o))).addresses&&(a.addresses=a.addresses.map((function(e){return new c.Multiaddr(e)}))),t.abrupt("return",a) +case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) +t.createId=h},function(e,t,r){"use strict" +var n=r(32).rotr32 +function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" +var n=r(32),i=r(65),o=r(160),a=r(16),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b +v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,v),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] +for(;n>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" +var n=r(33),i=r(66),o=r(163),a=r(16),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b +v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,v),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] +for(;n7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1 +return!0},p=function(e){var t="" +e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("") +for(var r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16)) +return"0x"+t.join("")},isHex:g,isHexStrict:b,stripHexPrefix:function(e){return 0!==e&&g(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 +return(n?"0x":"")+new Array(i).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 +return(n?"0x":"")+e+new Array(i).join(r||"0")},toTwosComplement:function(e){return"0x"+f(e).toTwos(256).toString(16,64)},sha3:_,sha3Raw:function(e){return null===(e=_(e))?w:e},toNumber:function(e){return"number"==typeof e?e:m(y(e))}}}).call(this,r(10).Buffer)},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0 +var n=r(10),i=r(38) +t.MAX_UINT64=new i.BN("ffffffffffffffff",16),t.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator] +if(!r)return e +var n,i,o=r.call(e),a=[] +try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} +Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0 +var o=i(r(101)),a=r(38),s=r(170),u=r(50),c=r(168),l=r(44),f=r(104),h=r(80),d=r(110),p=function(){function e(e,t,r,n){void 0===e&&(e=new a.BN(0)),void 0===t&&(t=new a.BN(0)),void 0===r&&(r=c.KECCAK256_RLP),void 0===n&&(n=c.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,i=t.stateRoot,o=t.codeHash +return new e(r?new a.BN((0,l.toBuffer)(r)):void 0,n?new a.BN((0,l.toBuffer)(n)):void 0,i?(0,l.toBuffer)(i):void 0,o?(0,l.toBuffer)(o):void 0)},e.fromRlpSerializedAccount=function(e){var t=a.rlp.decode(e) +if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array") +return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),i=r[0],o=r[1],s=r[2],u=r[3] +return new e(new a.BN(i),new a.BN(o),s,u)},e.prototype._validate=function(){if(this.nonce.lt(new a.BN(0)))throw new Error("nonce must be greater than zero") +if(this.balance.lt(new a.BN(0)))throw new Error("balance must be greater than zero") +if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32") +if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,d.bnToUnpaddedBuffer)(this.nonce),(0,d.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return a.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(c.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(c.KECCAK256_NULL)},e}() +t.Account=p,t.isValidAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,h.assertIsHexString)(e) +var r=(0,u.stripHexPrefix)(e).toLowerCase(),n="" +t&&(n=(0,d.toType)(t,d.TypeOutput.BN).toString()+"0x") +for(var i=(0,f.keccakFromString)(n+r).toString("hex"),o="0x",a=0;a=8?o+=r[a].toUpperCase():o+=r[a] +return o},t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e},t.generateAddress=function(t,r){(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r) +var n=new a.BN(r) +return n.isZero()?(0,f.rlphash)([t,null]).slice(-20):(0,f.rlphash)([t,e.from(n.toArray())]).slice(-20)},t.generateAddress2=function(t,r,n){return(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r),(0,h.assertIsBuffer)(n),(0,o.default)(20===t.length),(0,o.default)(32===r.length),(0,f.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,f.keccak256)(n)])).slice(-20)},t.isValidPrivate=function(e){return(0,s.privateKeyVerify)(e)},t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,h.assertIsBuffer)(t),64===t.length?(0,s.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,s.publicKeyVerify)(t)},t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,h.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,s.publicKeyConvert)(t,!1).slice(1))),(0,o.default)(64===t.length),(0,f.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(t){return(0,h.assertIsBuffer)(t),e.from((0,s.publicKeyCreate)(t,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(t){return(0,h.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,s.publicKeyConvert)(t,!1).slice(1))),t},t.zeroAddress=function(){var e=(0,l.zeros)(20) +return(0,l.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(10).Buffer)},function(e,t,r){"use strict" +var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t +e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1] +return i[1]},trys:[],ops:[]} +return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o +function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.") +for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i +switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o +break +case 4:return a.label++,{value:o[1],done:!1} +case 5:a.label++,n=o[1],o=[0] +continue +case 7:o=a.ops.pop(),a.trys.pop() +continue +default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0 +continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>8,a=255&i +o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i +function o(e){this.rand=e}if(e.exports=function(e){return i||(i=new o(null)),i.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e) +for(var t=new Uint8Array(e),r=0;r>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" +var n=r(34),i=r(67),o=r(175),a=r(16),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,y=[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 b(){if(!(this instanceof b))return new b +v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,v),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] +for(;n4294967295)throw new RangeError("requested too many random bytes") +var r=i.allocUnsafe(e) +if(e>0)if(e>65536)for(var a=0;a0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?k(e,new _):P(e,s,t,!0) +else if(s.ended)k(e,new g) +else{if(s.destroyed)return!1 +s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):R(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,R(e,s)) +return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState +o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState +o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(T,e,t))}function T(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +var r}function L(e){var t=e._readableState +o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null +if(0===(e=M(e,t))&&t.ended)return 0===t.length&&L(this),null +var n,i=t.needReadable +return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){k(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,i=this._readableState +switch(i.pipesCount){case 0:i.pipes=e +break +case 1:i.pipes=[i.pipes,e] +break +default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t) +var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u +function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())})) +var c=function(e){return function(){var t=e._readableState +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +e.on("drain",c) +var l=!1 +function f(t){o("ondata") +var n=e.write(t) +o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),m(),e.removeListener("error",h),0===a(e,"error")&&k(e,t)}function d(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",d),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r) +e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1} +if(0===t.pipesCount)return this +if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this +if(!e){var n=t.pipes,i=t.pipesCount +t.pipes=null,t.pipesCount=0,t.flowing=!1 +for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?A(this):i.reading||n.nextTick(I,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t) +return"readable"===e&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments) +return"readable"!==e&&void 0!==e||n.nextTick(C,this),t},E.prototype.resume=function(){var e=this._readableState +return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1 +for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() +e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) +for(var a=0;a-1))throw new _(e) +return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState +return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,R(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,r(11),r(12))},function(e,t,r){"use strict" +e.exports=l +var n=r(51).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(52) +function c(e,t){var r=this._transformState +r.transforming=!1 +var n=r.writecb +if(null===n)return this.emit("error",new o) +r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e) +var i=this._readableState +i.reading=!1,(i.needReadable||i.length=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s) +return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called") +this._finalized=!0 +var t=this._digest() +void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0 +for(var r=0;r<4;++r)this._length[r]=0 +return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i +e.exports=E,E.ReadableState=O,r(45).EventEmitter +var o,a=function(e,t){return e.listeners(t).length},s=r(188),u=r(10).Buffer,c=t.Uint8Array||function(){},l=r(542) +o=l&&l.debuglog?l.debuglog("stream"):function(){} +var f,h,d,p=r(543),m=r(189),v=r(190).getHighWaterMark,y=r(53).codes,b=y.ERR_INVALID_ARG_TYPE,g=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT +r(9)(E,s) +var k=m.errorOrDestroy,x=["error","close","destroy","pause","resume"] +function O(e,t,n){i=i||r(54),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(46).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function E(e){if(i=i||r(54),!(this instanceof E))return new E(e) +var t=this instanceof i +this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t) +var a,s=e._readableState +if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end() +r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s) +else if(i||(a=function(e,t){var r,n +return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)k(e,a) +else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?k(e,new _):P(e,s,t,!0) +else if(s.ended)k(e,new g) +else{if(s.destroyed)return!1 +s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):R(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,R(e,s)) +return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState +o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(j,e))}function j(e){var t=e._readableState +o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function R(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(T,e,t))}function T(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState +for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) +var r}function L(e){var t=e._readableState +o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null +if(0===(e=M(e,t))&&t.ended)return 0===t.length&&L(this),null +var n,i=t.needReadable +return o("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){k(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,i=this._readableState +switch(i.pipesCount){case 0:i.pipes=e +break +case 1:i.pipes=[i.pipes,e] +break +default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t) +var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u +function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())})) +var c=function(e){return function(){var t=e._readableState +o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) +e.on("drain",c) +var l=!1 +function f(t){o("ondata") +var n=e.write(t) +o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),m(),e.removeListener("error",h),0===a(e,"error")&&k(e,t)}function d(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",d),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r) +e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1} +if(0===t.pipesCount)return this +if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this +if(!e){var n=t.pipes,i=t.pipesCount +t.pipes=null,t.pipesCount=0,t.flowing=!1 +for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?A(this):i.reading||n.nextTick(I,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t) +return"readable"===e&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments) +return"readable"!==e&&void 0!==e||n.nextTick(C,this),t},E.prototype.resume=function(){var e=this._readableState +return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1 +for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() +e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) +for(var a=0;a-1))throw new _(e) +return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState +return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,R(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,r(11),r(12))},function(e,t,r){"use strict" +e.exports=l +var n=r(53).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(54) +function c(e,t){var r=this._transformState +r.transforming=!1 +var n=r.writecb +if(null===n)return this.emit("error",new o) +r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e) +var i=this._readableState +i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y) +for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+d(r[y-15])+r[y-16] +for(var b=0;b<64;++b){var g=v+h(u)+c(u,p,m)+a[b]+r[b]|0,w=f(n)+l(n,i,o)|0 +v=m,m=p,p=u,u=s+g|0,s=o,o=i,i=n,n=g+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32) +return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){var n=r(9),i=r(55),o=r(21).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160) +function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,x=0|this._dl,O=0|this._el,E=0|this._fl,S=0|this._gl,P=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4) +for(;M<160;M+=2){var A=t[M-30],j=t[M-30+1],R=d(A,j),T=p(j,A),C=m(A=t[M-4],j=t[M-4+1]),I=v(j,A),N=t[M-14],D=t[M-14+1],B=t[M-32],L=t[M-32+1],F=T+D|0,U=R+N+y(F,T)|0 +U=(U=U+C+y(F=F+I|0,I)|0)+B+y(F=F+L|0,L)|0,t[M]=U,t[M+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1] +var q=l(r,n,i),H=l(w,_,k),V=f(r,w),W=f(w,r),G=h(s,O),Y=h(O,s),K=a[z],J=a[z+1],$=c(s,u,b),Z=c(O,E,S),Q=P+Y|0,X=g+G+y(Q,P)|0 +X=(X=(X=X+$+y(Q=Q+Z|0,Z)|0)+K+y(Q=Q+J|0,J)|0)+U+y(Q=Q+F|0,F)|0 +var ee=W+H|0,te=V+q+y(ee,W)|0 +g=b,P=S,b=u,S=E,u=s,E=O,s=o+X+y(O=x+Q|0,x)|0,o=i,x=k,i=n,k=_,n=r,_=w,r=X+te+y(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+x|0,this._el=this._el+O|0,this._fl=this._fl+E|0,this._gl=this._gl+S|0,this._hl=this._hl+P|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,_)|0,this._ch=this._ch+i+y(this._cl,k)|0,this._dh=this._dh+o+y(this._dl,x)|0,this._eh=this._eh+s+y(this._el,O)|0,this._fh=this._fh+u+y(this._fl,E)|0,this._gh=this._gh+b+y(this._gl,S)|0,this._hh=this._hh+g+y(this._hl,P)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64) +function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){"use strict";(function(t,n){var i=r(81) +e.exports=g +var o,a=r(120) +g.ReadableState=b,r(45).EventEmitter +var s=function(e,t){return e.listeners(t).length},u=r(196),c=r(21).Buffer,l=t.Uint8Array||function(){},f=Object.create(r(68)) +f.inherits=r(9) +var h=r(557),d=void 0 +d=h&&h.debuglog?h.debuglog("stream"):function(){} +var p,m=r(558),v=r(197) +f.inherits(g,u) +var y=["error","close","destroy","pause","resume"] +function b(e,t){e=e||{} +var n=t instanceof(o=o||r(47)) +this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode) +var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384 +this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(46).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function g(e){if(o=o||r(47),!(this instanceof g))return new g(e) +this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState +return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end() +r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,x(e)}}(e,a)):(i||(o=function(e,t){var r,n +return n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState +t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){d("emit readable"),e.emit("readable"),A(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n +return eo.length?o.length:e +if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a)) +break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1 +for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e +if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a)) +break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r) +var r}function R(e){var t=e._readableState +if(t.length>0)throw new Error('"endReadable()" called on non-empty stream') +t.endEmitted||(t.ended=!0,i.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):x(this),null +if(0===(e=k(e,t))&&t.ended)return 0===t.length&&R(this),null +var n,i=t.needReadable +return d("need readable",i),(0===t.length||t.length-e0?j(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var r=this,o=this._readableState +switch(o.pipesCount){case 0:o.pipes=e +break +case 1:o.pipes=[o.pipes,e] +break +default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,t) +var u=t&&!1===t.end||e===n.stdout||e===n.stderr?b:c +function c(){d("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",(function t(n,i){d("onunpipe"),n===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())})) +var l=function(e){return function(){var t=e._readableState +d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,A(e))}}(r) +e.on("drain",l) +var f=!1,h=!1 +function p(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==C(o.pipes,e))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",v),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r) +e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",v),e.once("finish",y),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1} +if(0===t.pipesCount)return this +if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this +if(!e){var n=t.pipes,i=t.pipesCount +t.pipes=null,t.pipesCount=0,t.flowing=!1 +for(var o=0;o=9007199254740991||t<=-9007199254740991)&&k("overflow","BigNumber.from",t),e.from(String(t)) +var r=t +if("bigint"==typeof r)return e.from(r.toString()) +if(Object(c.j)(r))return e.from(Object(c.i)(r)) +if(r)if(r.toHexString){var n=r.toHexString() +if("string"==typeof n)return e.from(n)}else{var i=r._hex +if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"==typeof i&&(Object(c.l)(i)||"-"===i[0]&&Object(c.l)(i.substring(1))))return e.from(i)}return m.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}],(r=[{key:"fromTwos",value:function(e){return w(_(this).fromTwos(e))}},{key:"toTwos",value:function(e){return w(_(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return w(_(this).add(_(e)))}},{key:"sub",value:function(e){return w(_(this).sub(_(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&k("division-by-zero","div"),w(_(this).div(_(t)))}},{key:"mul",value:function(e){return w(_(this).mul(_(e)))}},{key:"mod",value:function(e){var t=_(e) +return t.isNeg()&&k("division-by-zero","mod"),w(_(this).umod(t))}},{key:"pow",value:function(e){var t=_(e) +return t.isNeg()&&k("negative-power","pow"),w(_(this).pow(t))}},{key:"and",value:function(e){var t=_(e) +return(this.isNegative()||t.isNeg())&&k("unbound-bitwise-result","and"),w(_(this).and(t))}},{key:"or",value:function(e){var t=_(e) +return(this.isNegative()||t.isNeg())&&k("unbound-bitwise-result","or"),w(_(this).or(t))}},{key:"xor",value:function(e){var t=_(e) +return(this.isNegative()||t.isNeg())&&k("unbound-bitwise-result","xor"),w(_(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&k("negative-width","mask"),w(_(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&k("negative-width","shl"),w(_(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&k("negative-width","shr"),w(_(this).shrn(e))}},{key:"eq",value:function(e){return _(this).eq(_(e))}},{key:"lt",value:function(e){return _(this).lt(_(e))}},{key:"lte",value:function(e){return _(this).lte(_(e))}},{key:"gt",value:function(e){return _(this).gt(_(e))}},{key:"gte",value:function(e){return _(this).gte(_(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return _(this).isZero()}},{key:"toNumber",value:function(){try{return _(this).toNumber()}catch(e){k("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return m.throwError("this platform does not support BigInt",h.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?y||(y=!0,m.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?m.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.b.errors.UNEXPECTED_ARGUMENT,{}):m.throwError("BigNumber.toString does not accept parameters",h.b.errors.UNEXPECTED_ARGUMENT,{})),_(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() +function g(e){if("string"!=typeof e)return g(e.toString(16)) +if("-"===e[0])return"-"===(e=e.substring(1))[0]&&m.throwArgumentError("invalid hex","value",e),"0x00"===(e=g(e))?e:"-"+e +if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00" +for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4) +return e}function w(e){return b.from(g(e))}function _(e){var t=b.from(e).toHexString() +return"-"===t[0]?new p("-"+t.substring(3),16):new p(t.substring(2),16)}function k(e,t,r){var n={fault:e,operation:t} +return null!=r&&(n.value=r),m.throwError(e,h.b.errors.NUMERIC_FAULT,n)}function x(e,t){for(var r=0;rthis.wordSize&&B.throwError("value out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(c.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length +return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),z=function(){function e(t,r,n,i){I(this,e),S(this,"_data",Object(c.a)(t)),S(this,"wordSize",r||32),S(this,"_coerceFunc",n),S(this,"allowLoose",i),this._offset=0}return D(e,[{key:"data",get:function(){return Object(c.i)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize +return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:B.throwError("data out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t) +return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return b.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$") +return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),q=r(201),H=r.n(q) +function V(e){return"0x"+H.a.keccak_256(Object(c.a)(e))}var W=new h.b("rlp/5.6.0") +function G(e){for(var t=[];e;)t.unshift(255&e),e>>=8 +return t}function Y(e,t,r){for(var n=0,i=0;it+1+n&&W.throwError("child data too short",h.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function $(e,t){if(0===e.length&&W.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247 +t+1+r>e.length&&W.throwError("data short segment too short",h.b.errors.BUFFER_OVERRUN,{}) +var n=Y(e,t+1,r) +return t+1+r+n>e.length&&W.throwError("data long segment too short",h.b.errors.BUFFER_OVERRUN,{}),J(e,t,t+1+r,r+n)}if(e[t]>=192){var i=e[t]-192 +return t+1+i>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),J(e,t,t+1,i)}if(e[t]>=184){var o=e[t]-183 +t+1+o>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}) +var a=Y(e,t+1,o) +return t+1+o+a>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+o+a,result:Object(c.i)(e.slice(t+1+o,t+1+o+a))}}if(e[t]>=128){var s=e[t]-128 +return t+1+s>e.length&&W.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+s,result:Object(c.i)(e.slice(t+1,t+1+s))}}return{consumed:1,result:Object(c.i)(e[t])}}function Z(e){var t=Object(c.a)(e),r=$(t,0) +return r.consumed!==t.length&&W.throwArgumentError("invalid rlp data","data",e),r.result}var Q=new h.b("address/5.6.0") +function X(e){Object(c.l)(e,20)||Q.throwArgumentError("invalid address","address",e) +for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0) +for(var i=Object(c.a)(V(r)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(t[o]=t[o].toUpperCase()),(15&i[o>>1])>=8&&(t[o+1]=t[o+1].toUpperCase()) +return"0x"+t.join("")}for(var ee={},te=0;te<10;te++)ee[String(te)]=String(te) +for(var re=0;re<26;re++)ee[String.fromCharCode(65+re)]=String(10+re) +var ne,ie=Math.floor((ne=9007199254740991,Math.log10?Math.log10(ne):Math.log(ne)/Math.LN10)) +function oe(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return ee[e]})).join("");t.length>=ie;){var r=t.substring(0,ie) +t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n +return n}function ae(e){var t,r=null +if("string"!=typeof e&&Q.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),r=X(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==e&&Q.throwArgumentError("bad address checksum","address",e) +else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==oe(e)&&Q.throwArgumentError("bad icap checksum","address",e),t=e.substring(4),r=new p(t,36).toString(16);r.length<40;)r="0"+r +r=X("0x"+r)}else Q.throwArgumentError("invalid address","address",e) +return r}function se(e){try{return ae(e),!0}catch(e){}return!1}function ue(e){for(var t,r=(t=ae(e).substring(2),new p(t,16).toString(36)).toUpperCase();r.length<30;)r="0"+r +return"XE"+oe("XE00"+r)+r}function ce(e){var t=null +try{t=ae(e.from)}catch(t){Q.throwArgumentError("missing from address","transaction",e)}var r=Object(c.o)(Object(c.a)(b.from(e.nonce).toHexString())) +return ae(Object(c.e)(V(K([t,r])),12))}function le(e,t,r){return 32!==Object(c.d)(t)&&Q.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(c.d)(r)&&Q.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),ae(Object(c.e)(V(Object(c.b)(["0xff",ae(e),t,r])),12))}var fe,he,de=new h.b("strings/5.6.0") +function pe(e,t,r,n,i){if(e===he.BAD_PREFIX||e===he.UNEXPECTED_CONTINUE){for(var o=0,a=t+1;a>6==2;a++)o++ +return o}return e===he.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(fe||(fe={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(he||(he={})) +var me=Object.freeze({error:function(e,t,r,n,i){return de.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:pe,replace:function(e,t,r,n,i){return e===he.OVERLONG?(n.push(i),0):(n.push(65533),pe(e,t,r))}}) +function ve(e,t){null==t&&(t=me.error),e=Object(c.a)(e) +for(var r=[],n=0;n>7!=0){var o=null,a=null +if(192==(224&i))o=1,a=127 +else if(224==(240&i))o=2,a=2047 +else{if(240!=(248&i)){n+=t(128==(192&i)?he.UNEXPECTED_CONTINUE:he.BAD_PREFIX,n-1,e,r) +continue}o=3,a=65535}if(n-1+o>=e.length)n+=t(he.OVERRUN,n-1,e,r) +else{for(var s=i&(1<<8-o-1)-1,u=0;u1114111?n+=t(he.OUT_OF_RANGE,n-1-o,e,r,s):s>=55296&&s<=57343?n+=t(he.UTF16_SURROGATE,n-1-o,e,r,s):s<=a?n+=t(he.OVERLONG,n-1-o,e,r,s):r.push(s))}}else r.push(i)}return r}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.current +t!=fe.current&&(de.checkNormalize(),e=e.normalize(t)) +for(var r=[],n=0;n>6|192),r.push(63&i|128) +else if(55296==(64512&i)){n++ +var o=e.charCodeAt(n) +if(n>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string") +var a=65536+((1023&i)<<10)+(1023&o) +r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return Object(c.a)(r)}function be(e){var t="0000"+e.toString(16) +return"\\u"+t.substring(t.length-4)}function ge(e,t){return'"'+ve(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b" +case 9:return"\\t" +case 10:return"\\n" +case 13:return"\\r" +case 34:return'\\"' +case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?be(e):be(55296+((e-=65536)>>10&1023))+be(56320+(1023&e))})).join("")+'"'}function we(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function _e(e,t){return we(ve(e,t))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.current +return ve(ye(e,t))}function xe(e){return V(ye(e))}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var r=0;r=0?t:"")+"]",s=-1===t||e.dynamic +return(o=n.call(this,"array",a,r,s)).coder=e,o.length=t,o}return t=i,(r=[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;re._data.length&&ze.throwError("insufficient data length",h.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}) +for(var r=[],n=0;n=0||"tuple"===e)&&ar[t])return!0 +return(or[t]||"payable"===t)&&nr.throwArgumentError("invalid modifier","name",t),!1}function ur(e,t){for(var r in t)S(e,r,t[r])}var cr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),lr=new RegExp(/^(.*)\[([0-9]*)\]$/),fr=function(){function e(t,r){er(this,e),t!==ir&&nr.throwError("use fromString",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ur(this,r) +var n=this.type.match(lr) +ur(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return rr(e,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0} +return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="" +return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==cr.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+")"):r+=this.type,e!==cr.sighash&&(!0===this.indexed&&(r+=" indexed"),e===cr.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(ir,{name:t.name||null,type:kr(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e +function n(t){nr.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var r={type:"",name:"",parent:e,state:{allowType:!0}} +return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ") +for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s2&&nr.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||nr.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=b.from(r[1]),r[0]):e}function vr(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0 +break +case"payable":t.payable=!0,t.stateMutability="payable" +break +case"nonpayable":t.payable=!1,t.stateMutability="nonpayable" +break +case"pure":t.constant=!0,t.stateMutability="pure" +break +case"view":t.constant=!0,t.stateMutability="view" +break +case"external":case"public":case"":break +default:console.log("unknown modifier: "+e)}}))}function yr(e){var t={constant:!1,payable:!0,stateMutability:"payable"} +return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&nr.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&nr.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||nr.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&nr.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&nr.throwArgumentError("unable to determine stateMutability","value",e),t}var br=function(e){$t(r,e) +var t=Zt(r) +function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))}) +e===cr.sighash&&nr.throwError("cannot format a constructor for sighash",h.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"}) +var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") " +return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e +"constructor"!==e.type&&nr.throwArgumentError("invalid constructor object","value",e) +var t=yr(e) +t.constant&&nr.throwArgumentError("constructor cannot be constant","value",e) +var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(fr.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?b.from(e.gas):null} +return new r(ir,n)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=mr(e,t)).match(Er) +return n&&"constructor"===n[1].trim()||nr.throwArgumentError("invalid constructor string","value",e),t.inputs=hr(n[2].trim(),!1),vr(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(dr),gr=function(e){$t(r,e) +var t=Zt(r) +function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))}) +var t="" +return e!==cr.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") ",e!==cr.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e +"function"!==e.type&&nr.throwArgumentError("invalid function object","value",e) +var t=yr(e),n={type:e.type,name:Or(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(fr.fromObject):[],outputs:e.outputs?e.outputs.map(fr.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?b.from(e.gas):null} +return new r(ir,n)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=mr(e,t)).split(" returns ") +n.length>2&&nr.throwArgumentError("invalid function string","value",e) +var i=n[0].match(Er) +if(i||nr.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&Or(t.name),t.inputs=hr(i[2],!1),vr(i[3].trim(),t),n.length>1){var o=n[1].match(Er) +""==o[1].trim()&&""==o[3].trim()||nr.throwArgumentError("unexpected tokens","value",e),t.outputs=hr(o[2],!1)}else t.outputs=[] +return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(br) +function wr(e){var t=e.format() +return"Error(string)"!==t&&"Panic(uint256)"!==t||nr.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var _r=function(e){$t(r,e) +var t=Zt(r) +function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))}) +var t="" +return e!==cr.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e +"error"!==e.type&&nr.throwArgumentError("invalid error object","value",e) +var t={type:e.type,name:Or(e.name),inputs:e.inputs?e.inputs.map(fr.fromObject):[]} +return wr(new r(ir,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(Er) +return n||nr.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Or(t.name),t.inputs=hr(n[2],!1),wr(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(dr) +function kr(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var xr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$") +function Or(e){return e&&e.match(xr)||nr.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var Er=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$") +function Sr(e,t){for(var r=0;r256||n%8!=0)&&Pr.throwArgumentError("invalid "+r[1]+" bit length","param",e),new It(n/8,"int"===r[1],e.name)}if(r=e.type.match(Mr)){var i=parseInt(r[1]) +return(0===i||i>32)&&Pr.throwArgumentError("invalid bytes length","param",e),new pt(i,e.name)}return Pr.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new z(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new U(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(fr.from(e))})) +return new Kt(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this +e.length!==t.length&&Pr.throwError("types/values length mismatch",h.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}}) +var n=e.map((function(e){return r._getCoder(fr.from(e))})),i=new Kt(n,"_"),o=this._getWriter() +return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,i=e.map((function(e){return n._getCoder(fr.from(e))})) +return new Kt(i,"_").decode(this._getReader(Object(c.a)(t),r))}}])&&Sr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Rr=new jr +function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cr(e,t){for(var r=0;r1&&Ur.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[gr.fromString(e).format()] +return i||Ur.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if(Object(c.l)(e)){var t=e.toLowerCase() +for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r] +Ur.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n})) +return 0===i.length?Ur.throwArgumentError("no matching event","name",n):i.length>1&&Ur.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[pr.fromString(e).format()] +return o||Ur.throwArgumentError("no matching event","signature",e),o}},{key:"getError",value:function(e){if(Object(c.l)(e)){var t=P(this.constructor,"getSighash") +for(var r in this.errors)if(e===t(this.errors[r]))return this.errors[r] +Ur.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n})) +return 0===i.length?Ur.throwArgumentError("no matching error","name",n):i.length>1&&Ur.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[gr.fromString(e).format()] +return o||Ur.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return P(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),P(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e)) +var r=Object(c.a)(t) +return Object(c.i)(r.slice(0,4))!==this.getSighash(e)&&Ur.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(c.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(c.i)(Object(c.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e)) +var r=Object(c.a)(t) +return Object(c.i)(r.slice(0,4))!==this.getSighash(e)&&Ur.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(c.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(c.i)(Object(c.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e)) +var r=Object(c.a)(t),n=null,i="",o=null,a=null,s=null +switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(f){}break +case 4:var u=Object(c.i)(r.slice(0,4)),l=Wr[u] +if(l)o=this._abiCoder.decode(l.inputs,r.slice(4)),a=l.name,s=l.signature,l.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0])) +else try{var f=this.getError(u) +o=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,s=f.format()}catch(f){}}return Ur.throwError("call revert exception"+i,h.b.errors.CALL_EXCEPTION,{method:e.format(),data:Object(c.i)(t),errorArgs:o,errorName:a,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(c.i)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this +"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Ur.throwError("too many arguments for "+e.format(),h.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t}) +var n=[] +e.anonymous||n.push(this.getEventTopic(e)) +var i=function(e,t){return"string"===e.type?xe(t):"bytes"===e.type?V(Object(c.i)(t)):("address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(c.h)(Object(c.i)(t),32))} +for(t.forEach((function(t,r){var o=e.inputs[r] +o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?Ur.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((function(e){return i(o,e)}))):n.push(i(o,t)):null!=t&&Ur.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop() +return n}},{key:"encodeEventLog",value:function(e,t){var r=this +"string"==typeof e&&(e=this.getEvent(e)) +var n=[],i=[],o=[] +return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Ur.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a] +if(e.indexed)if("string"===e.type)n.push(xe(s)) +else if("bytes"===e.type)n.push(V(s)) +else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented") +n.push(r._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e) +Object(c.l)(r[0],32)&&r[0].toLowerCase()===n||Ur.throwError("fragment/topic mismatch",h.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[] +e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(fr.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))})) +var s=null!=r?this._abiCoder.decode(i,Object(c.b)(r)):null,u=this._abiCoder.decode(o,t,!0),l=[],f=0,d=0 +e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)l[t]=new Vr({_isIndexed:!0,hash:null}) +else if(a[t])l[t]=new Vr({_isIndexed:!0,hash:s[d++]}) +else try{l[t]=s[d++]}catch(e){l[t]=e}else try{l[t]=u[f++]}catch(e){l[t]=e}if(e.name&&null==l[e.name]){var r=l[t] +r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw Gr("property ".concat(JSON.stringify(e.name)),r)}}):l[e.name]=r}})) +for(var p=function(e){var t=l[e] +t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw Gr("index ".concat(e),t)}})},m=0;m=0)throw e +return pn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&pn.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,M(r) +case 23:return t.abrupt("return",t.sent) +case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||pn.throwError("missing provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(r,e) +var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +if(Reflect.construct.sham)return!1 +if("function"==typeof Proxy)return!0 +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=cn(e) +if(t){var i=cn(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return sn(this,r)}}(r) +function r(e,n){var i +return ln(this,r),pn.checkNew(this instanceof r?this.constructor:void 0,r),S(un(i=t.call(this)),"address",e),S(un(i),"provider",n||null),i}return hn(r,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){pn.throwError(e,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new r(this.address,e)}}]),r}(yn),gn=r(200) +function wn(e,t){for(var r=0;r32&&Mn.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function Dn(e,t){return{address:ae(e),storageKeys:(t||[]).map((function(t,r){return 32!==Object(c.d)(t)&&Mn.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function Bn(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&Mn.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),Dn(e[0],e[1])):Dn(e.address,e.storageKeys)})) +var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{}) +return Dn(t,Object.keys(r).sort())})) +return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function Ln(e){return Bn(e).map((function(e){return[e.address,e.storageKeys]}))}function Fn(e,t){if(null!=e.gasPrice){var r=b.from(e.gasPrice),n=b.from(e.maxFeePerGas||0) +r.eq(n)||Mn.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[Nn(e.chainId||0,"chainId"),Nn(e.nonce||0,"nonce"),Nn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Nn(e.maxFeePerGas||0,"maxFeePerGas"),Nn(e.gasLimit||0,"gasLimit"),null!=e.to?ae(e.to):"0x",Nn(e.value||0,"value"),e.data||"0x",Ln(e.accessList||[])] +if(t){var o=Object(c.n)(t) +i.push(Nn(o.recoveryParam,"recoveryParam")),i.push(Object(c.o)(o.r)),i.push(Object(c.o)(o.s))}return Object(c.c)(["0x02",K(i)])}function Un(e,t){var r=[Nn(e.chainId||0,"chainId"),Nn(e.nonce||0,"nonce"),Nn(e.gasPrice||0,"gasPrice"),Nn(e.gasLimit||0,"gasLimit"),null!=e.to?ae(e.to):"0x",Nn(e.value||0,"value"),e.data||"0x",Ln(e.accessList||[])] +if(t){var n=Object(c.n)(t) +r.push(Nn(n.recoveryParam,"recoveryParam")),r.push(Object(c.o)(n.r)),r.push(Object(c.o)(n.s))}return Object(c.c)(["0x01",K(r)])}function zn(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&Mn.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){A(e,Tn) +var r=[] +Rn.forEach((function(t){var n=e[t.name]||[],i={} +t.numeric&&(i.hexPad="left"),n=Object(c.a)(Object(c.i)(n,i)),t.length&&n.length!==t.length&&n.length>0&&Mn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(c.o)(n)).length>t.maxLength&&Mn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push(Object(c.i)(n))})) +var n=0 +if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&Mn.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(c.k)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(c.i)(n)),r.push("0x"),r.push("0x")),!t)return K(r) +var i=Object(c.n)(t),o=27+i.recoveryParam +return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&Mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&Mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(c.i)(o)),r.push(Object(c.o)(Object(c.a)(i.r))),r.push(Object(c.o)(Object(c.a)(i.s))),K(r)}(e,t) +switch(e.type){case 1:return Un(e,t) +case 2:return Fn(e,t)}return Mn.throwError("unsupported transaction type: ".concat(e.type),h.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function qn(e,t,r){try{var n=jn(t[0]).toNumber() +if(0!==n&&1!==n)throw new Error("bad recid") +e.v=n}catch(e){Mn.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(c.h)(t[1],32),e.s=Object(c.h)(t[2],32) +try{var i=V(r(e)) +e.from=In(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){console.log(e)}}function Hn(e){var t=Object(c.a)(e) +if(t[0]>127)return function(e){var t=Z(e) +9!==t.length&&6!==t.length&&Mn.throwArgumentError("invalid raw transaction","rawTransaction",e) +var r={nonce:jn(t[0]).toNumber(),gasPrice:jn(t[1]),gasLimit:jn(t[2]),to:An(t[3]),value:jn(t[4]),data:t[5],chainId:0} +if(6===t.length)return r +try{r.v=b.from(t[6]).toNumber()}catch(e){return console.log(e),r}if(r.r=Object(c.h)(t[7],32),r.s=Object(c.h)(t[8],32),b.from(r.r).isZero()&&b.from(r.s).isZero())r.chainId=r.v,r.v=0 +else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0) +var n=r.v-27,i=t.slice(0,6) +0!==r.chainId&&(i.push(Object(c.i)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8) +var o=V(K(i)) +try{r.from=In(o,{r:Object(c.i)(r.r),s:Object(c.i)(r.s),recoveryParam:n})}catch(e){console.log(e)}r.hash=V(e)}return r.type=null,r}(t) +switch(t[0]){case 1:return function(e){var t=Z(e.slice(1)) +8!==t.length&&11!==t.length&&Mn.throwArgumentError("invalid component count for transaction type: 1","payload",Object(c.i)(e)) +var r={type:1,chainId:jn(t[0]).toNumber(),nonce:jn(t[1]).toNumber(),gasPrice:jn(t[2]),gasLimit:jn(t[3]),to:An(t[4]),value:jn(t[5]),data:t[6],accessList:Bn(t[7])} +return 8===t.length||(r.hash=V(e),qn(r,t.slice(8),Un)),r}(t) +case 2:return function(e){var t=Z(e.slice(1)) +9!==t.length&&12!==t.length&&Mn.throwArgumentError("invalid component count for transaction type: 2","payload",Object(c.i)(e)) +var r=jn(t[2]),n=jn(t[3]),i={type:2,chainId:jn(t[0]).toNumber(),nonce:jn(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:jn(t[4]),to:An(t[5]),value:jn(t[6]),data:t[7],accessList:Bn(t[8])} +return 9===t.length||(i.hash=V(e),qn(i,t.slice(9),Fn)),i}(t)}return Mn.throwError("unsupported transaction type: ".concat(t[0]),h.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function Vn(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wn(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wn(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r1)){e=e.substring(1) +var r=t[0] +try{null==i[e]&&S(i,e,i[r])}catch(e){}null==i.functions[e]&&S(i.functions,e,i.functions[r]),null==i.callStatic[e]&&S(i.callStatic,e,i.callStatic[r]),null==i.populateTransaction[e]&&S(i.populateTransaction,e,i.populateTransaction[r]),null==i.estimateGas[e]&&S(i.estimateGas,e,i.estimateGas[r])}}))}return ti(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this +return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&ii.throwError("contract not deployed",h.b.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this +this.signer||ii.throwError("sending a transactions require a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"}) +var r=j(e||{}) +return["from","to"].forEach((function(e){null!=r[e]&&ii.throwError("cannot override "+e,h.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))}},{key:"connect",value:function(e){"string"==typeof e&&(e=new bn(e,this.provider)) +var t=new this.constructor(this.address,this.interface,e) +return this.deployTransaction&&S(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new pi) +if("event"===e)return this._normalizeRunningEvent(new di("event",null)) +if("*"===e)return this._normalizeRunningEvent(new vi(this.address,this.interface)) +var t=this.interface.getEvent(e) +return this._normalizeRunningEvent(new mi(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0] +if("string"!=typeof r)throw new Error("invalid topic") +var n=this.interface.getEvent(r) +return this._normalizeRunningEvent(new mi(this.address,this.interface,n,e.topics))}catch(e){}var i={address:this.address,topics:e.topics} +return this._normalizeRunningEvent(new di(hi(i),i))}return this._normalizeRunningEvent(new vi(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag] +var t=this._wrappedEmits[e.tag] +t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,r){var n=this,i=T(t) +return i.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},i.getBlock=function(){return n.provider.getBlock(t.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,r){var n=this +if(this.provider||ii.throwError("events require a provider or a signer with a provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(r){var i=n._wrapEvent(e,r,t) +if(null==i.decodeError)try{var o=e.getEmit(i) +n.emit.apply(n,[e.filter].concat(Vn(o)))}catch(e){i.decodeError=e.error}null!=e.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)} +this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,r){var n=this,i=this._getRunningEvent(e),o=j(i.filter) +return"string"==typeof t&&Object(c.l)(t,32)?(null!=r&&ii.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=r?r:"latest"),this.provider.getLogs(o).then((function(e){return e.map((function(e){return n._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1 +for(var t=this._getRunningEvent(e),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i0 +return this._checkRunningEvents(t),o}},{key:"listenerCount",value:function(e){var t=this +return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){var t=this +if(!this.provider)return[] +if(null==e){var r=function(){var e=[] +for(var r in t._runningEvents)t._runningEvents[r].listeners().forEach((function(t){e.push(t)})) +return{v:e}}() +if("object"===ri(r))return r.v}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this +if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t] +r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e) +return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(e,t){if(!this.provider)return this +var r=this._getRunningEvent(e) +return r.removeListener(t),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return ce(e)}},{key:"getInterface",value:function(e){return Yr.isInterface(e)?e:new Yr(e)}},{key:"isIndexed",value:function(e){return Vr.isIndexed(e)}}]),e}(),bi=function(e){Kn(r,e) +var t=Jn(r) +function r(){return Xn(this,r),t.apply(this,arguments)}return ti(r)}(yi),gi=function(){function e(t,r,n){Xn(this,e) +var i=null +"0x"!==(i="string"==typeof r?r:Object(c.j)(r)?Object(c.i)(r):r&&"string"==typeof r.object?r.object:"!").substring(0,2)&&(i="0x"+i),(!Object(c.l)(i)||i.length%2)&&ii.throwArgumentError("invalid bytecode","bytecode",r),n&&!yn.isSigner(n)&&ii.throwArgumentError("invalid signer","signer",n),S(this,"bytecode",i),S(this,"interface",P(this instanceof e?this.constructor:void 0,"getInterface")(t)),S(this,"signer",n||null)}return ti(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n=0&&e<=256&&!(e%1)?"1"+Ai.substring(0,e):Oi.throwArgumentError("invalid decimal size","decimals",e)}function Ri(e,t){null==t&&(t=0) +var r=ji(t),n=(e=b.from(e)).lt(Si) +n&&(e=e.mul(Pi)) +for(var i=e.mod(r).toString();i.length2&&Oi.throwArgumentError("too many decimal points","value",e) +var o=i[0],a=i[1] +for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1) +for(a.length>r.length-1&&Mi("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length80&&Oi.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(Ei,r,n,i)}}]),e}(),Ii=function(){function e(t,r,n,i){_i(this,e),Oi.checkNew(this instanceof e?this.constructor:void 0,e),t!==Ei&&Oi.throwError("cannot use FixedNumber constructor; use FixedNumber.from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return xi(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&Oi.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".") +1===t.length&&t.push("0") +var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/) +return this.isNegative()&&n&&(r=r.subUnsafe(Ni.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".") +1===t.length&&t.push("0") +var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/) +return!this.isNegative()&&n&&(r=r.addUnsafe(Ni.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0) +var r=this.toString().split(".") +if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&Oi.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this +var n=e.from("1"+Ai.substring(0,t),this.format),i=Di.toFormat(this.format) +return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex +e%8&&Oi.throwArgumentError("invalid byte width","width",e) +var t=b.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString() +return Object(c.h)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||function(e){return null!=e&&(b.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(c.l)(e)||"bigint"==typeof e||Object(c.j)(e))}(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(Ri(t,r),Ci.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed") +var n=Ci.from(r),i=Ti(t,n.decimals) +!n.signed&&i.lt(Si)&&Mi("unsigned value cannot be negative","overflow","value",t) +var o=null +n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=Object(c.h)(o,n.width/8)) +var a=Ri(i,n.decimals) +return new e(Ei,o,a,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed") +var n=Ci.from(r) +if(Object(c.a)(t).length>n.width/8)throw new Error("overflow") +var i=b.from(t) +n.signed&&(i=i.fromTwos(n.width)) +var o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=Ri(i,n.decimals) +return new e(Ei,o,a,n)}},{key:"from",value:function(t,r){if("string"==typeof t)return e.fromString(t,r) +if(Object(c.j)(t))return e.fromBytes(t,r) +try{return e.fromValue(t,0,r)}catch(e){if(e.code!==h.b.errors.INVALID_ARGUMENT)throw e}return Oi.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),Ni=Ii.from(1),Di=Ii.from("0.5") +function Bi(e){return"string"==typeof e&&(e=ye(e)),V(Object(c.b)([ye("Ethereum Signed Message:\n"),ye(String(e.length)),e]))}function Li(e,t){for(var r=0;r256||t[2]&&t[2]!==String(n))&&Fi.throwArgumentError("invalid numeric width","type",e) +var i=Vi.mask(r?n-1:n),o=r?i.add(Hi).mul(zi):qi +return function(t){var r=b.from(t) +return(r.lt(o)||r.gt(i))&&Fi.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(c.h)(r.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/) +if(a){var s=parseInt(a[1]) +return(0===s||s>32||a[1]!==String(s))&&Fi.throwArgumentError("invalid bytes width","type",e),function(t){return Object(c.a)(t).length!==s&&Fi.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(c.a)(e),r=t.length%32 +return r?Object(c.c)([t,Ui.slice(r)]):Object(c.i)(t)}(t)}}switch(e){case"address":return function(e){return Object(c.h)(ae(e),32)} +case"bool":return function(e){return e?Wi:Gi} +case"bytes":return function(e){return V(e)} +case"string":return function(e){return xe(e)}}return null}function Qi(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name +return e.type+" "+t})).join(","),")")}var Xi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,"types",Object.freeze(T(t))),S(this,"_encoderCache",{}),S(this,"_types",{}) +var r={},n={},i={} +Object.keys(t).forEach((function(e){r[e]={},n[e]=[],i[e]={}})) +var o=function(e){var i={} +t[e].forEach((function(o){i[o.name]&&Fi.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0 +var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1] +a===e&&Fi.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),Zi(a)||(n[a]||Fi.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),n[a].push(e),r[e][a]=!0)}))} +for(var a in t)o(a) +var s=Object.keys(n).filter((function(e){return 0===n[e].length})) +for(var u in 0===s.length?Fi.throwArgumentError("missing primary type","types",t):s.length>1&&Fi.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),S(this,"primaryType",s[0]),function e(o,a){a[o]&&Fi.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),a[o]=!0,Object.keys(r[o]).forEach((function(t){n[t]&&(e(t,a),Object.keys(a).forEach((function(e){i[e][t]=!0})))})),delete a[o]}(this.primaryType,{}),i){var c=Object.keys(i[u]) +c.sort(),this._types[u]=Qi(u,t[u])+c.map((function(e){return Qi(e,t[e])})).join("")}}var t,r,n +return t=e,n=[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[] +for(var n in t){var i=Yi[n] +i||Fi.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:i})}return r.sort((function(e,t){return Ki.indexOf(e.name)-Ki.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return Object(c.c)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return V(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,i){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t +e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function o(){var a,s,u +return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=j(t),a={},t.verifyingContract&&!Object(c.l)(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),(s=e.from(r)).visit(n,(function(e,t){return"address"!==e||Object(c.l)(t,20)||(a[t]="0x"),t})),o.t0=regeneratorRuntime.keys(a) +case 6:if((o.t1=o.t0()).done){o.next=13 +break}return u=o.t1.value,o.next=10,i(u) +case 10:a[u]=o.sent,o.next=6 +break +case 13:return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),n=s.visit(n,(function(e,t){return"address"===e&&a[t]?a[t]:t})),o.abrupt("return",{domain:t,value:n}) +case 16:case"end":return o.stop()}}),o)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t) +var i={},o=[] +Ki.forEach((function(e){var r=t[e] +null!=r&&(i[e]=$i[e](r),o.push({name:e,type:Yi[e]}))})) +var a=e.from(r),s=j(r) +return s.EIP712Domain?Fi.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(c.i)(Object(c.a)(t)) +if(e.match(/^u?int/))return b.from(t).toString() +switch(e){case"address":return t.toLowerCase() +case"bool":return!!t +case"string":return"string"!=typeof t&&Fi.throwArgumentError("invalid string","value",t),t}return Fi.throwArgumentError("unsupported type","type",e)}))}}}],(r=[{key:"getEncoder",value:function(e){var t=this._encoderCache[e] +return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=Zi(e) +if(r)return r +var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/) +if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]) +return function(e){a>=0&&e.length!==a&&Fi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e) +var r=e.map(o) +return t._types[i]&&(r=r.map(V)),V(Object(c.c)(r))}}var s=this.types[e] +if(s){var u=xe(this._types[e]) +return function(e){var r=s.map((function(r){var n=r.name,i=r.type,o=t.getEncoder(i)(e[n]) +return t._types[i]?V(o):o})) +return r.unshift(u),Object(c.c)(r)}}return Fi.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e] +return t||Fi.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return V(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this +if(Zi(e))return r(e,t) +var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/) +if(i){var o=i[1],a=parseInt(i[3]) +return a>=0&&t.length!==a&&Fi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(o,e,r)}))}var s=this.types[e] +return s?s.reduce((function(e,i){var o=i.name,a=i.type +return e[o]=n._visit(a,t[o],r),e}),{}):Fi.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}])&&Li(t.prototype,r),n&&Li(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() +function eo(e,t){for(var r=0;r0;)r.push(i%this.base),i=i/this.base|0}for(var a="",s=0;0===t[s]&&s=0;--u)a+=this.alphabet[r[u]] +return a}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String") +var t=[] +if(0===e.length)return new Uint8Array(t) +t.push(0) +for(var r=0;r>=8 +for(;i>0;)t.push(255&i),i>>=8}for(var a=0;e[a]===this._leader&&a>24&255,f[t.length+1]=h>>16&255,f[t.length+2]=h>>8&255,f[t.length+3]=255&h +var d=Object(c.a)(lo(i,e,f)) +o||(o=d.length,s=new Uint8Array(o),a=n-((u=Math.ceil(n/o))-1)*o),s.set(d) +for(var p=1;p64)throw new Error("invalid seed") +var i=Object(c.a)(lo(to.sha512,Mo,n)) +return new e(Co,jo(i.slice(0,32)),null,"0x00000000",jo(i.slice(32)),0,0,r)}},{key:"fromMnemonic",value:function(t,r,n){return t=Lo(Bo(t,n=To(n)),n),e._fromSeed(Do(t,r),{phrase:t,path:"m",locale:n.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var r=no.decode(t) +82===r.length&&Ro(r.slice(0,78))===t||So.throwArgumentError("invalid extended key","extendedKey","[REDACTED]") +var n=r[4],i=Object(c.i)(r.slice(5,9)),o=parseInt(Object(c.i)(r.slice(9,13)).substring(2),16),a=Object(c.i)(r.slice(13,45)),s=r.slice(45,78) +switch(Object(c.i)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(Co,null,Object(c.i)(s),i,a,o,n,null) +case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break +return new e(Co,Object(c.i)(s.slice(1)),null,i,a,o,n,null)}return So.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}],(r=[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!") +return Ro(Object(c.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(c.i)(this.depth),this.parentFingerprint,Object(c.h)(Object(c.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(c.b)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(Co,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t)) +var r=this.path +r&&(r+="/"+(2147483647&t)) +var n=new Uint8Array(37) +if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node") +n.set(Object(c.a)(this.privateKey),1),r&&(r+="'")}else n.set(Object(c.a)(this.publicKey)) +for(var i=24;i>=0;i-=8)n[33+(i>>3)]=t>>24-i&255 +var o=Object(c.a)(lo(to.sha512,this.chainCode,n)),a=o.slice(0,32),s=o.slice(32),u=null,l=null +this.privateKey?u=jo(b.from(a).add(this.privateKey).mod(Po)):l=new On(Object(c.i)(a))._addPoint(this.publicKey) +var f=r,h=this.mnemonic +return h&&(f=Object.freeze({phrase:h.phrase,path:r,locale:h.locale||"en"})),new e(Co,u,l,this.fingerprint,jo(s),t,this.depth+1,f)}},{key:"derivePath",value:function(e){var t=e.split("/") +if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e) +"m"===t[0]&&t.shift() +for(var r=this,n=0;n=2147483648)throw new Error("invalid path index - "+i) +r=r._derive(2147483648+o)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i) +var a=parseInt(i) +if(a>=2147483648)throw new Error("invalid path index - "+i) +r=r._derive(a)}}return r}}])&&Eo(t.prototype,r),n&&Eo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() +function Do(e,t){t||(t="") +var r=ye("mnemonic"+t,fe.NFKD) +return fo(ye(e,fe.NFKD),r,2048,64,"sha512")}function Bo(e,t){t=To(t),So.checkNormalize() +var r=t.split(e) +if(r.length%3!=0)throw new Error("invalid mnemonic") +for(var n=Object(c.a)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,o=0;o>3]|=1<<7-i%8),i++}var u=32*r.length/3,l=Ao(r.length/3) +if((Object(c.a)(uo(n.slice(0,u/8)))[0]&l)!=(n[n.length-1]&l))throw new Error("invalid checksum") +return Object(c.i)(n.slice(0,u/8))}function Lo(e,t){if(t=To(t),(e=Object(c.a)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy") +for(var r=[0],n=11,i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3) +var o=e.length/4,a=Object(c.a)(uo(e))[0]&Ao(o) +return r[r.length-1]<<=o,r[r.length-1]|=a>>8-o,t.join(r.map((function(e){return t.getWord(e)})))}function Fo(e,t){try{return Bo(e,t),!0}catch(e){}return!1}function Uo(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&So.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}var zo=r(575),qo=r(26),Ho=r.n(qo),Vo=r(82),Wo=r.n(Vo) +function Go(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(c.a)(e)}function Yo(e,t){for(e=String(e);e.length=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue +return i}}return null}var Ka=Ga("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Ja="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),$a=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Za=Wa("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Qa=Wa("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Xa=Wa("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data") +for(var t=[],r=0;r=0||e>=65024&&e<=65039?[]:function(e){var t=Ya(e,$a) +if(t)return[e+t.s] +var r=Za[e] +if(r)return r +var n=Qa[e] +return n?[e+n[0]]:Xa[e]||null}(e)||[e]})),(r=ke(we(r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[])),fe.NFKC)).forEach((function(e){if(Ya(e,es))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(Ya(e,Ka))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")})) +var n=we(r) +if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen") +if(n.length>63)throw new Error("too long") +return n}var rs=new h.b("hash/5.6.0"),ns=new Uint8Array(32) +ns.fill(0) +var is=new RegExp("^((.*)\\.)?([^.]+)$") +function os(e){try{for(var t=e.split("."),r=0;r0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n) +var i="object"===fs(e)?e.throttleCallback:null,o="object"===fs(e)&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100 +hs.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o) +var a="object"===fs(e)&&!!e.errorPassThrough,s={},u=null,c={method:"GET"},l=!1,f=12e4 +if("string"==typeof e)u=e +else if("object"===fs(e)){if(null!=e&&null!=e.url||hs.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(f=e.timeout),e.headers)for(var d in e.headers)s[d.toLowerCase()]={key:d,value:String(e.headers[d])},["if-none-match","if-modified-since"].indexOf(d.toLowerCase())>=0&&(l=!0) +if(c.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&hs.throwError("basic authentication requires a secure https url",h.b.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"}) +var p=e.user+":"+e.password +s.authorization={key:"Authorization",value:"Basic "+cs(ye(p))}}null!=e.skipFetchSetup&&(c.skipFetchSetup=!!e.skipFetchSetup)}var m=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),v=u?u.match(m):null +if(v)try{var y={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]},body:us(v[2])},b=y.body +return r&&(b=r(y.body,y)),Promise.resolve(b)}catch(e){hs.throwError("processing response error",h.b.errors.SERVER_ERROR,{body:ps(v[1],v[2]),error:e,requestBody:null,requestMethod:"GET",url:u})}t&&(c.method="POST",c.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)})) +var g={} +Object.keys(s).forEach((function(e){var t=s[e] +g[t.key]=t.value})),c.headers=g +var w,_=(w=null,{promise:new Promise((function(e,t){f&&(w=setTimeout((function(){null!=w&&(w=null,t(hs.makeError("timeout",h.b.errors.TIMEOUT,{requestBody:ps(c.body,g["content-type"]),requestMethod:c.method,timeout:f,url:u})))}),f))})),cancel:function(){null!=w&&(clearTimeout(w),w=null)}}),k=function(){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t +e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,s,f,d,p,m,v,y,b,w +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0 +case 1:if(!(t=300)&&(_.cancel(),hs.throwError("bad response",h.b.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:ps(v,s.headers?s.headers["content-type"]:null),requestBody:ps(c.body,g["content-type"]),requestMethod:c.method,url:u})),!r){e.next=60 +break}return e.prev=37,e.next=40,r(v,s) +case 40:return y=e.sent,_.cancel(),e.abrupt("return",y) +case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(a()&&n(new Error("retry limit reached"))) +var c=t.interval*parseInt(String(Math.random()*Math.pow(2,u))) +ct.ceiling&&(c=t.ceiling),setTimeout(i,c)}return null}),(function(e){a()&&n(e)}))}()}))}var bs=r(111),gs=r.n(bs) +function ws(e,t){for(var r=0;r0&&null==e[e.length-1];)e.pop() +return e.map((function(e){if(Array.isArray(e)){var t={} +e.forEach((function(e){t[Bs(e)]=!0})) +var r=Object.keys(t) +return r.sort(),r.join("|")}return Bs(e)})).join("&")}function Fs(e){if("string"==typeof e){if(e=e.toLowerCase(),32===Object(c.d)(e))return"tx:"+e +if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+Ls(e) +if(rn.isForkEvent(e))throw Ds.warn("not implemented"),new Error("not implemented") +if(e&&"object"===Is(e))return"filter:"+(e.address||"*")+":"+Ls(e.topics||[])}throw new Error("invalid event - "+e)}function Us(){return(new Date).getTime()}function zs(e){return new Promise((function(t){setTimeout(t,e)}))}var qs=["block","network","pending","poll"],Hs=function(){function e(t,r,n){Rs(this,e),S(this,"tag",t),S(this,"listener",r),S(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Cs(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash +case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":") +return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":") +if("filter"!==e[0])return null +var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[] +var t=e.split("|").map((function(e){return"null"===e?null:e})) +return 1===t.length?t[0]:t})),i={} +return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||qs.indexOf(this.tag)>=0}}]),e}(),Vs={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}} +function Ws(e){return Object(c.h)(b.from(e).toHexString(),32)}function Gs(e){return no.encode(Object(c.b)([e,Object(c.e)(uo(uo(e)),0,4)]))}var Ys=new RegExp("^(ipfs)://(.*)$","i"),Ks=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Ys,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")] +function Js(e,t){try{return _e($s(e,t))}catch(e){}return null}function $s(e,t){if("0x"===e)return null +var r=b.from(Object(c.e)(e,t,t+32)).toNumber(),n=b.from(Object(c.e)(e,r,r+32)).toNumber() +return Object(c.e)(e,r+32,r+32+n)}function Zs(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Ds.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function Qs(e){var t=Object(c.a)(e) +if(t.length>32)throw new Error("internal; should not happen") +var r=new Uint8Array(32) +return r.set(t,32-t.length),r}function Xs(e){if(e.length%32==0)return e +var t=new Uint8Array(32*Math.ceil(e.length/32)) +return t.set(e),t}function eu(e){for(var t=[],r=0,n=0;n=1&&o<=75)return Gs(Object(c.b)([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/) +if(a){var s=parseInt(a[1],16) +if(a[2].length===2*s&&s>=1&&s<=75)return Gs(Object(c.b)([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var u=n[1],l=n[0] +if(0===l?20!==u&&32!==u&&(l=-1):l=-1,l>=0&&n.length===2+u&&u>=1&&u<=75){var f=gs.a.toWords(n.slice(2)) +return f.unshift(l),gs.a.encode(r.prefix,f)}}return null}},{key:"getAddress",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16 +break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de") +case 5:if("0x"!==(r=t.sent)&&r!==Na){t.next=8 +break}return t.abrupt("return",null) +case 8:return t.abrupt("return",this.provider.formatter.callAddress(r)) +case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==h.b.errors.CALL_EXCEPTION){t.next=15 +break}return t.abrupt("return",null) +case 15:throw t.t0 +case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",Ws(e)) +case 18:if(null!=(n=t.sent)&&"0x"!==n){t.next=21 +break}return t.abrupt("return",null) +case 21:return null==(i=this._getAddress(e,n))&&Ds.throwError("invalid or unsupported coin data",h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:n}),t.abrupt("return",i) +case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l,f,h,d,p,m,v,y +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar") +case 4:if(null!=(r=e.sent)){e.next=7 +break}return e.abrupt("return",null) +case 7:n=0 +case 8:if(!(n0&&void 0!==arguments[0]?arguments[0]:"Request timed out" -return a(this,r),(e=t.call(this,n)).name="TimeoutError",e}return o(r)}(l(Error)) -t.TimeoutError=m -var y=function(e){s(r,e) -var t=u(r) -function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The operation was aborted." -return a(this,r),(e=t.call(this,n)).name="AbortError",e}return o(r)}(l(Error)) -t.AbortError=y -var v=function(e){s(r,e) -var t=u(r) +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=js(e) +if(t){var i=js(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return Ms(this,r)}}(r) function r(e){var n -return a(this,r),(n=t.call(this,e.statusText)).name="HTTPError",n.response=e,n}return o(r)}(l(Error)) -t.HTTPError=v},function(e,t,r){"use strict" -function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var n=0,o=function(){} -return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s -n(this,e),this.super=new a(t,r),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}var t,r,o -return t=e,o=[{key:"createObjectURL",value:function(e){return a.createObjectURL(e)}},{key:"revokeObjectURL",value:function(e){a.revokeObjectURL(e)}}],(r=[{key:"hash",get:function(){return this.super.hash},set:function(e){this.super.hash=e}},{key:"host",get:function(){return this.super.host},set:function(e){this.super.host=e}},{key:"hostname",get:function(){return this.super.hostname},set:function(e){this.super.hostname=e}},{key:"href",get:function(){return this.super.href},set:function(e){this.super.href=e}},{key:"origin",get:function(){return this.super.origin}},{key:"password",get:function(){return this.super.password},set:function(e){this.super.password=e}},{key:"pathname",get:function(){return this.super.pathname},set:function(e){this.super.pathname=e}},{key:"port",get:function(){return this.super.port},set:function(e){this.super.port=e}},{key:"protocol",get:function(){return this.super.protocol},set:function(e){this.super.protocol=e}},{key:"search",get:function(){return this.super.search},set:function(e){this.super.search=e}},{key:"searchParams",get:function(){return this.super.searchParams}},{key:"username",get:function(){return this.super.username},set:function(e){this.super.username=e}},{key:"toJSON",value:function(){return this.super.toJSON()}},{key:"toString",value:function(){return this.super.toString()}},{key:"format",value:function(){return this.toString()}}])&&i(t.prototype,r),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}() -e.exports={URLWithLegacySupport:u,URLSearchParams:self.URLSearchParams,defaultBase:s,format:function(e){if("string"==typeof e)return new a(e).toString() -if(!(e instanceof a)){var t=e.username&&e.password?"".concat(e.username,":").concat(e.password,"@"):"",r=e.auth?e.auth+"@":"",n=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",o=e.host||"",s=e.hostname||"",u=e.search||(e.query?"?"+e.query:""),c=e.hash||"",l=e.pathname||"",f=e.path||l+u -return"".concat(i).concat(t||r).concat(o||s+n).concat(f).concat(c)}}}},function(e,t){function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var i=0,o=function(){} -return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r999999999))throw i.default(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS") -return t}}}},function(e,t,r){"use strict" -function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments -return new Promise((function(i,o){var a=e.apply(t,r) -function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(5),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("bitswap/stat",{searchParams:s.toUrlSearchParams(r),signal:r.signal,headers:r.headers}) -case 3:return n=t.sent,t.t0=c,t.next=7,n.json() -case 7:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1)) -case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) -function c(e){return{provideBufLen:e.ProvideBufLen,wantlist:(e.Wantlist||[]).map((function(e){return o.CID.parse(e["/"])})),peers:e.Peers||[],blocksReceived:BigInt(e.BlocksReceived),dataReceived:BigInt(e.DataReceived),blocksSent:BigInt(e.BlocksSent),dataSent:BigInt(e.DataSent),dupBlksReceived:BigInt(e.DupBlksReceived),dupDataReceived:BigInt(e.DupDataReceived)}}t.createStat=u},function(e,t,r){"use strict" -function n(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("block/get",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers}) -case 3:return o=t.sent,t.t0=Uint8Array,t.next=7,o.arrayBuffer() -case 7:return t.t1=t.sent,t.abrupt("return",new t.t0(t.t1)) -case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -t.createGet=l},function(e,t,r){"use strict" -function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){var t,r,n,i=2 -for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e) -if(n&&null!=(t=e[n]))return new o(t.call(e)) -r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function o(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object.")) -var t=e.done -return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(o=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return -return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return -return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new o(e)}var a=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,n,o,a,s,u,c -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=!1,o=!1,e.prev=3,s=i(t) -case 5:return e.next=7,s.next() -case 7:if(!(n=!(u=e.sent).done)){e.next=13 -break}c=u.value,r.push(c) -case 10:n=!1,e.next=5 +if(Rs(this,r),Ds.checkNew(this instanceof r?this.constructor:void 0,nn),(n=t.call(this))._events=[],n._emitted={block:-2},n.disableCcipRead=!1,n.formatter=(this instanceof r?this.constructor:void 0).getFormatter(),S(As(n),"anyNetwork","any"===e),n.anyNetwork&&(e=n.detectNetwork()),e instanceof Promise)n._networkPromise=e,e.catch((function(e){})),n._ready().catch((function(e){})) +else{var i=P(this instanceof r?this.constructor:void 0,"getNetwork")(e) +i?(S(As(n),"_network",i),n.emit("network",i,null)):Ds.throwArgumentError("invalid network","network",e)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._maxFilterBlockRange=10,n._pollingInterval=4e3,n._fastQueryDate=0,n}return Cs(r,[{key:"_ready",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this._network){e.next=17 +break}if(t=null,!this._networkPromise){e.next=11 +break}return e.prev=3,e.next=6,this._networkPromise +case 6:t=e.sent,e.next=11 +break +case 9:e.prev=9,e.t0=e.catch(3) +case 11:if(null!=t){e.next=15 +break}return e.next=14,this.detectNetwork() +case 14:t=e.sent +case 15:t||Ds.throwError("no network detected",h.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:S(this,"_network",t),this.emit("network",t,null)) +case 17:return e.abrupt("return",this._network) +case 18:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"ready",get:function(){var e=this +return ys((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code!==h.b.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}))}},{key:"ccipReadFetch",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,c,l,f,d +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.disableCcipRead&&0!==r.length){n.next=2 +break}return n.abrupt("return",null) +case 2:i=e.to.toLowerCase(),o=t.toLowerCase(),a=[],s=0 +case 6:if(!(s=0?null:JSON.stringify({data:o,sender:i}),n.next=12,vs({url:c,errorPassThrough:!0},l,(function(e,t){return e.status=t.statusCode,e})) +case 12:if(!(f=n.sent).data){n.next=15 +break}return n.abrupt("return",f.data) +case 15:if(d=f.message||"unknown error",!(f.status>=400&&f.status<500)){n.next=18 +break}return n.abrupt("return",Ds.throwError("response not found during CCIP fetch: ".concat(d),h.b.errors.SERVER_ERROR,{url:u,errorMessage:d})) +case 18:a.push(d) +case 19:s++,n.next=6 break -case 13:e.next=19 +case 22:return n.abrupt("return",Ds.throwError("error encountered during CCIP fetch: ".concat(a.map((function(e){return JSON.stringify(e)})).join(", ")),h.b.errors.SERVER_ERROR,{urls:r,errorMessages:a})) +case 23:case"end":return n.stop()}}),n,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o,a=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready() +case 2:if(!(e>0)){t.next=20 +break}case 3:if(!this._internalBlockNumber){t.next=20 +break}return r=this._internalBlockNumber,t.prev=5,t.next=8,r +case 8:if(n=t.sent,!(Us()-n.respTime<=e)){t.next=11 +break}return t.abrupt("return",n.blockNumber) +case 11:return t.abrupt("break",20) +case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==r){t.next=18 +break}return t.abrupt("break",20) +case 18:t.next=3 break -case 15:e.prev=15,e.t0=e.catch(3),o=!0,a=e.t0 -case 19:if(e.prev=19,e.prev=20,!n||null==s.return){e.next=24 -break}return e.next=24,s.return() -case 24:if(e.prev=24,!o){e.next=27 -break}throw a -case 27:return e.finish(24) -case 28:return e.finish(19) -case 29:return e.abrupt("return",r) -case 30:case"end":return e.stop()}}),e,null,[[3,15,19,29],[20,,24,28]])})),function(){var t=this,r=arguments -return new Promise((function(i,o){var a=e.apply(t,r) -function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}) -return function(e){return t.apply(this,arguments)}}() -e.exports=a},function(e,t,r){"use strict" -function n(e){return new o(e)}function i(e){var t,r -function n(t,r){try{var a=e[t](r),s=a.value,u=s instanceof o -Promise.resolve(u?s.wrapped:s).then((function(e){u?n("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0}) +case 20:return i=Us(),o=M({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError +if(r)throw a._internalBlockNumber===o&&(a._internalBlockNumber=null),r +var n=Us() +return(t=b.from(t).toNumber())1e3)Ds.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",Ds.makeError("network block skew detected",h.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n) +else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i) +return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=o._emitted[e] +"pending"!==t&&n-t>12&&delete o._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=o.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(o._emitted["t:"+t]=e.blockNumber,o.emit(t,e),null):null})).catch((function(e){o.emit("error",e)})) +r.push(i) break -default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null} -r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function o(e){this.wrapped=e}function a(e){var t,r,n,i=2 -for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(r&&null!=(t=e[r]))return t.call(e) -if(n&&null!=(t=e[n]))return new s(t.call(e)) -r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}function s(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object.")) -var t=e.done -return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(s=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return -return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return -return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new s(e)}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)} -var u=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var i,o,s,u,c,l -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=!1,o=!1,e.prev=2,u=a(t) -case 4:return e.next=6,n(u.next()) -case 6:if(!(i=!(c=e.sent).done)){e.next=13 -break}return l=c.value,e.next=10,r(l) -case 10:i=!1,e.next=4 +case"filter":if(!e._inflight){e._inflight=!0 +var a=e.filter +a.fromBlock=e._lastBlockNumber+1,a.toBlock=n,a.toBlock-o._maxFilterBlockRange>a.fromBlock&&(a.fromBlock=a.toBlock-o._maxFilterBlockRange) +var s=o.getLogs(a).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),o._emitted["b:"+t.blockHash]=t.blockNumber,o._emitted["t:"+t.transactionHash]=t.blockNumber,o.emit(a,t)}))})).catch((function(t){o.emit("error",t),e._inflight=!1})) +r.push(s)}}})),this._lastBlockNumber=n,Promise.all(r).then((function(){o.emit("didPoll",t)})).catch((function(e){o.emit("error",e)})),e.abrupt("return") +case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ds.throwError("provider does not support network detection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})) +case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,n +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready() +case 2:return t=e.sent,e.next=5,this.detectNetwork() +case 5:if(r=e.sent,t.chainId===r.chainId){e.next=23 +break}if(!this.anyNetwork){e.next=20 +break}return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,t),e.next=19,zs(0) +case 19:return e.abrupt("return",this._network) +case 20:throw n=Ds.makeError("underlying network changed",h.b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r}),this.emit("error",n),n +case 23:return e.abrupt("return",t) +case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this +return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this +e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this +if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval") +this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=Us() +return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(e,null==t?1:t,r||0,null)) +case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(e,t,r,n){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a=this +return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(e) +case 2:if(!(((o=i.sent)?o.confirmations:0)>=t)){i.next=5 +break}return i.abrupt("return",o) +case 5:return i.abrupt("return",new Promise((function(i,o){var s=[],u=!1,c=function(){return!!u||(u=!0,s.forEach((function(e){e()})),!1)},l=function(e){e.confirmations999999999))throw u.default(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS") -return t}}}var y=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"file"} -n(this,e) -var r=t.type,i=t.data,o=t.blockSizes,a=t.hashType,s=t.fanout,c=t.mtime,f=t.mode -if(r&&!l.includes(r))throw u.default(new Error("Type: "+r+" is not valid"),"ERR_INVALID_TYPE") -this.type=r||"file",this.data=i,this.hashType=a,this.fanout=s,this.blockSizes=o||[],this._originalMode=0,this.mode=p(f),c&&(this.mtime=m(c),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}var t,r,o -return t=e,o=[{key:"unmarshal",value:function(t){var r=c.decode(t),n=c.toObject(r,{defaults:!1,arrays:!0,longs:Number,objects:!1}),i=new e({type:l[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0}) -return i._originalMode=n.mode||0,i}}],(r=[{key:"mode",get:function(){return this._mode},set:function(e){this._mode=this.isDirectory()?d:h -var t=p(e) -void 0!==t&&(this._mode=t)}},{key:"isDirectory",value:function(){return Boolean(this.type&&f.includes(this.type))}},{key:"addBlockSize",value:function(e){this.blockSizes.push(e)}},{key:"removeBlockSize",value:function(e){this.blockSizes.splice(e,1)}},{key:"fileSize",value:function(){if(this.isDirectory())return 0 -var e=0 -return this.blockSizes.forEach((function(t){e+=t})),this.data&&(e+=this.data.length),e}},{key:"marshal",value:function(){var e -switch(this.type){case"raw":e=c.DataType.Raw +case 38:d++,s.next=12 +break +case 41:if(!u){s.next=43 +break}return s.abrupt("return") +case 43:this.once("block",r) +case 44:case"end":return s.stop()}}),s,this)})))}),(function(e){u||s.once("block",r)})) +case 5:case"end":return a.stop()}}),a,this)})))} +if(u)return +a.once("block",p),s.push((function(){a.removeListener("block",p)}))}if("number"==typeof r&&r>0){var m=setTimeout((function(){c()||o(Ds.makeError("timeout exceeded",h.b.errors.TIMEOUT,{timeout:r}))}),r) +m.unref&&m.unref(),s.push((function(){clearTimeout(m)}))}}))) +case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0)) +case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork() +case 2:return e.next=4,this.perform("getGasPrice",{}) +case 4:return t=e.sent,e.prev=5,e.abrupt("return",b.from(t)) +case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0})) +case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() +case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) +case 4:return n=r.sent,r.next=7,this.perform("getBalance",n) +case 7:return i=r.sent,r.prev=8,r.abrupt("return",b.from(i)) +case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:r.t0})) +case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() +case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) +case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n) +case 7:return i=r.sent,r.prev=8,r.abrupt("return",b.from(i).toNumber()) +case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:r.t0})) +case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() +case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) +case 4:return n=r.sent,r.next=7,this.perform("getCode",n) +case 7:return i=r.sent,r.prev=8,r.abrupt("return",Object(c.i)(i)) +case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:r.t0})) +case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork() +case 2:return n.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return Object(c.g)(e)}))}) +case 4:return i=n.sent,n.next=7,this.perform("getStorageAt",i) +case 7:return o=n.sent,n.prev=8,n.abrupt("return",Object(c.i)(o)) +case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:n.t0})) +case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,r){var n=this +if(null!=t&&32!==Object(c.d)(t))throw new Error("invalid response - sendTransaction") +var i=e +return null!=t&&e.hash!==t&&Ds.throwError("Transaction hash mismatch from Provider.sendTransaction.",h.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=function(t,i){return Ns(n,void 0,void 0,regeneratorRuntime.mark((function n(){var o,a +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t=1),null==i&&(i=0),o=void 0,0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),n.next=6,this._waitForTransaction(e.hash,t,i,o) +case 6:if(null!=(a=n.sent)||0!==t){n.next=9 +break}return n.abrupt("return",null) +case 9:return this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&Ds.throwError("transaction failed",h.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),n.abrupt("return",a) +case 12:case"end":return n.stop()}}),n,this)})))},i}},{key:"sendTransaction",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork() +case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(c.i)(e)})) +case 4:return r=t.sent,null==(n=this.formatter.transaction(e)).confirmations&&(n.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval) +case 9:return i=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:r}) +case 13:return o=t.sent,t.abrupt("return",this._wrapTransaction(n,o,i)) +case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=n,t.t0.transactionHash=n.hash,t.t0 +case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e +case 2:return r=t.sent,n={},["from","to"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?b.from(e):null})))})),["type"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return null!=e?e:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?Object(c.i)(e):null})))})),t.t0=this.formatter,t.next=12,M(n) +case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1)) +case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e +case 2:return e=t.sent,r={},null!=e.address&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(r[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(r[t]=n._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,M(r) +case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1)) +case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,l,f,d,p,m,v,y,g,w,_ +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r>=10&&Ds.throwError("CCIP read exceeded maximum redirections",h.b.errors.SERVER_ERROR,{redirects:r,transaction:e}),i=e.to,n.next=4,this.perform("call",{transaction:e,blockTag:t}) +case 4:if(o=n.sent,!(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&Object(c.d)(o)%32==4)){n.next=31 +break}for(n.prev=6,a=Object(c.e)(o,4),s=Object(c.e)(a,0,32),b.from(s).eq(i)||Ds.throwError("CCIP Read sender did not match",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),u=[],l=b.from(Object(c.e)(a,32,64)).toNumber(),f=b.from(Object(c.e)(a,l,l+32)).toNumber(),d=Object(c.e)(a,l+32),p=0;pthis._emitted.block)){e.next=10 +break}return e.abrupt("return",null) +case 10:return e.abrupt("return",void 0) +case 11:if(!t){e.next=34 +break}o=null,a=0 +case 14:if(!(a>>7|e.hi<<25)>>>0,e.hi>>>=7 -for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7 -t[r++]=e.lo}function y(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=h(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},p.prototype=Object.create(u.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7 -t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(m,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e) -return this._push(m,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode() -return this._push(m,t.length(),t)},f.prototype.bool=function(e){return this._push(d,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e) -return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)} -var v=i.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n>>0 -if(!t)return this._push(d,1,0) -if(i.isString(e)){var r=f.alloc(t=a.length(e)) -a.decode(e,r,0),e=r}return this.uint32(t)._push(v,t,e)},f.prototype.string=function(e){var t=s.length(e) -return t?this.uint32(t)._push(s.write,t,e):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len -return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next -return t},f._configure=function(e){n=e,f.create=h(),n._configure()}},function(e,t,r){"use strict" -e.exports=u -var n,i=r(35),o=i.LongBits,a=i.utf8 -function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e) -throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e) -throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(u.create=function(e){return i.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l} -function h(){var e=new o(0,0),t=0 -if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this) -if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e -if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e -if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this) -if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8) -return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c -if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c -if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c -if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c -if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c -if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10) -return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32() -return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4) -return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4) -return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4) -var e=i.float.readFloatLE(this.buf,this.pos) -return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4) -var e=i.float.readDoubleLE(this.buf,this.pos) -return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e -if(r>this.len)throw s(this,e) -return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes() -return a.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e) -this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]) -return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip() +case 33:if(t.prev=33,t.t3=t.catch(22),t.t3.code===h.b.errors.CALL_EXCEPTION){t.next=37 +break}throw t.t3 +case 37:return t.abrupt("return",null) +case 38:t.next=45 break -case 1:this.skip(8) +case 40:return t.next=42,this.getResolver(e) +case 42:if(r=t.sent){t.next=45 +break}return t.abrupt("return",null) +case 45:return t.next=47,r.getAvatar() +case 47:if(null!=(u=t.sent)){t.next=50 +break}return t.abrupt("return",null) +case 50:return t.abrupt("return",u.url) +case 51:case"end":return t.stop()}}),t,this,[[10,18],[22,33]])})))}},{key:"perform",value:function(e,t){return Ds.throwError(e+" not implemented",h.b.errors.NOT_IMPLEMENTED,{operation:e})}},{key:"_startEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,r){var n=new Hs(Fs(e),t,r) +return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&yu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}function wu(e){return new Promise((function(t){setTimeout(t,e)}))}function _u(e){if(e.error){var t=new Error(e.error.message) +throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function ku(e){return e?e.toLowerCase():e}var xu={},Ou=function(e){lu(r,e) +var t=fu(r) +function r(e,n,i){var o +if(su(this,r),yu.checkNew(this instanceof r?this.constructor:void 0,r),o=t.call(this),e!==xu)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner") +return S(du(o),"provider",n),null==i&&(i=0),"string"==typeof i?(S(du(o),"_address",o.provider.formatter.address(i)),S(du(o),"_index",null)):"number"==typeof i?(S(du(o),"_index",i),S(du(o),"_address",null)):yu.throwArgumentError("invalid address or index","addressOrIndex",i),o}return cu(r,[{key:"connect",value:function(e){return yu.throwError("cannot alter JSON-RPC Signer connection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new Eu(xu,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this +return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&yu.throwError("unknown account #"+e._index,h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this +e=j(e) +var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e})) +if(null==e.gasLimit){var n=j(e) +n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return vu(t,void 0,void 0,regeneratorRuntime.mark((function t(){var r +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2 +break}return t.abrupt("return",null) +case 2:return t.next=4,this.provider.resolveName(e) +case 4:return null==(r=t.sent)&&yu.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r) +case 7:case"end":return t.stop()}}),t,this)})))}))),M({tx:M(e),sender:r}).then((function(r){var n=r.tx,i=r.sender +null!=n.from?n.from.toLowerCase()!==i&&yu.throwArgumentError("from address mismatch","transaction",e):n.from=i +var o=t.provider.constructor.hexlifyTransaction(n,{from:!0}) +return t.provider.send("eth_sendTransaction",[o]).then((function(e){return e}),(function(e){return gu("sendTransaction",e,o)}))}))}},{key:"signTransaction",value:function(e){return yu.throwError("signing transactions is unsupported",h.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval) +case 2:return r=t.sent,t.next=5,this.sendUncheckedTransaction(e) +case 5:return n=t.sent,t.prev=6,t.next=9,ys((function(){return vu(i,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(n) +case 2:if(null!==(t=e.sent)){e.next=5 +break}return e.abrupt("return",void 0) +case 5:return e.abrupt("return",this.provider._wrapTransaction(t,n,r)) +case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider}) +case 9:return t.abrupt("return",t.sent) +case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=n,t.t0 +case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?ye(e):e,t.next=3,this.getAddress() +case 3:return n=t.sent,t.next=6,this.provider.send("personal_sign",[Object(c.i)(r),n.toLowerCase()]) +case 6:return t.abrupt("return",t.sent) +case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_legacySignMessage",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?ye(e):e,t.next=3,this.getAddress() +case 3:return n=t.sent,t.next=6,this.provider.send("eth_sign",[n.toLowerCase(),Object(c.i)(r)]) +case 6:return t.abrupt("return",t.sent) +case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,r){return vu(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a=this +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Xi.resolveNames(e,t,r,(function(e){return a.provider.resolveName(e)})) +case 2:return i=n.sent,n.next=5,this.getAddress() +case 5:return o=n.sent,n.next=8,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(Xi.getPayload(i.domain,t,i.value))]) +case 8:return n.abrupt("return",n.sent) +case 9:case"end":return n.stop()}}),n,this)})))}},{key:"unlock",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.provider,t.next=3,this.getAddress() +case 3:return n=t.sent,t.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),e,null])) +case 5:case"end":return t.stop()}}),t,this)})))}}]),r}(yn),Eu=function(e){lu(r,e) +var t=fu(r) +function r(){return su(this,r),t.apply(this,arguments)}return cu(r,[{key:"sendTransaction",value:function(e){var t=this +return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))}}]),r}(Ou),Su={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},Pu=function(e){lu(r,e) +var t=fu(r) +function r(e,n){var i +su(this,r),yu.checkNew(this instanceof r?this.constructor:void 0,r) +var o=n +return null==o&&(o=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),i=t.call(this,o),e||(e=P(i.constructor,"defaultUrl")()),S(du(i),"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(j(e))),i._nextId=42,i}return cu(r,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this +return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return vu(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wu(0) +case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]) +case 6:t=e.sent,e.next=19 break -case 2:this.skip(this.uint32()) +case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]) +case 14:t=e.sent,e.next=19 break -case 3:for(;4!=(e=7&this.uint32());)this.skipType(e) +case 17:e.prev=17,e.t1=e.catch(11) +case 19:if(null==t){e.next=28 +break}return r=P(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",r(b.from(t).toNumber())) +case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",yu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2})) +case 28:return e.abrupt("return",yu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{event:"noNetwork"})) +case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new Ou(xu,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this +return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"} +this.emit("debug",{action:"request",request:T(n),provider:this}) +var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0 +if(i&&this._cache[e])return this._cache[e] +var o=vs(this.connection,JSON.stringify(n),_u).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e})) +return i&&(this._cache[e]=o,setTimeout((function(){r._cache[e]=null}),0)),o}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]] +case"getGasPrice":return["eth_gasPrice",[]] +case"getBalance":return["eth_getBalance",[ku(t.address),t.blockTag]] +case"getTransactionCount":return["eth_getTransactionCount",[ku(t.address),t.blockTag]] +case"getCode":return["eth_getCode",[ku(t.address),t.blockTag]] +case"getStorageAt":return["eth_getStorageAt",[ku(t.address),t.position,t.blockTag]] +case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]] +case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null +case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]] +case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]] +case"call":return["eth_call",[P(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]] +case"estimateGas":return["eth_estimateGas",[P(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]] +case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=ku(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return vu(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==e&&"estimateGas"!==e){r.next=8 +break}if(!(n=t.transaction)||null==n.type||!b.from(n.type).isZero()){r.next=8 +break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8 +break}return r.next=6,this.getFeeData() +case 6:null==(i=r.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((t=j(t)).transaction=j(n),delete t.transaction.type) +case 8:return null==(o=this.prepareRequest(e,t))&&yu.throwError(e+" not implemented",h.b.errors.NOT_IMPLEMENTED,{operation:e}),r.prev=10,r.next=13,this.send(o[0],o[1]) +case 13:return r.abrupt("return",r.sent) +case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",gu(e,r.t0,t)) +case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),ou(pu(r.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]) +this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null +var n=Promise.resolve() +return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return wu(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null +e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),ou(pu(r.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var r=j(Su) +if(t)for(var n in t)t[n]&&(r[n]=!0) +A(e,r) +var i={} +return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=Object(c.g)(e[t]) +"gasLimit"===t&&(t="gas"),i[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=Object(c.i)(e[t]))})),e.accessList&&(i.accessList=Bn(e.accessList)),i}}]),r}(iu),Mu=null +try{if(null==(Mu=WebSocket))throw new Error("inject please")}catch(e){var Au=new h.b("providers/5.6.4") +Mu=function(){Au.throwError("WebSockets not supported in this environment",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}function ju(e){return(ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ru(e,t){for(var r=0;r1&&void 0!==v[1]?v[1]:{},!(a=i({storeCodec:"dag-cbor",hashAlg:"sha2-256"},o)).inputCodec){r.next=8 -break}if(n instanceof Uint8Array){r.next=5 -break}throw new Error("Can only inputCodec on raw bytes that can be decoded") -case 5:u=n,r.next=13 +case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(r){null==r.removed&&(r.removed=!1),t.emit(e.filter,t.formatter.filterLog(r))})) break -case 8:return r.next=10,e.getCodec(a.storeCodec) -case 10:h=r.sent,u=h.encode(n),a.inputCodec=a.storeCodec -case 13:return d=new AbortController,p=f.abortSignal(d.signal,a.signal),r.t0=t,r.t1=i,r.t2={timeout:a.timeout,signal:p,searchParams:l.toUrlSearchParams(a)},r.next=20,c.multipartRequest([u],d,a.headers) -case 20:return r.t3=r.sent,r.t4=(0,r.t1)(r.t2,r.t3),r.next=24,r.t0.post.call(r.t0,"dag/put",r.t4) -case 24:return m=r.sent,r.next=27,m.json() -case 27:return y=r.sent,r.abrupt("return",s.CID.parse(y.Cid["/"])) -case 29:case"end":return r.stop()}}),r)}))) -return function(e){return r.apply(this,arguments)}}()}))(t)}},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(11) -t.objectToCamelWithMetadata=function(e){var t=n.objectToCamel(e) -return Object.prototype.hasOwnProperty.call(t,"mode")&&(t.mode=parseInt(t.mode,8)),Object.prototype.hasOwnProperty.call(t,"mtime")&&(t.mtime={secs:t.mtime,nsecs:t.mtimeNsecs||0},delete t.mtimeNsecs),t}},function(e,t,r){"use strict" -function n(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("files/stat",{signal:n.signal,searchParams:f.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) -case 3:return o=t.sent,t.next=6,o.json() -case 6:return(a=t.sent).WithLocality=a.WithLocality||!1,t.abrupt("return",d(c.objectToCamelWithMetadata(a))) -case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -function d(e){return e.cid=u.CID.parse(e.hash),delete e.hash,e}t.createStat=h},function(e,t,r){"use strict" -function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var n=0,o=function(){} -return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r1&&void 0!==A[1]?A[1]:{},o=!1,s=!1,t.prev=3,l=h(y.normaliseInput(r)) -case 5:return t.next=7,u(l.next()) -case 7:if(!(o=!(f=t.sent).done)){t.next=63 -break}return d=f.value,m=d.path,b=d.recursive,g=d.metadata,t.next=11,u(e.post("pin/add",{signal:i.signal,searchParams:v.toUrlSearchParams(a(a({},i),{},{arg:m,recursive:b,metadata:g?JSON.stringify(g):void 0,stream:!0})),headers:i.headers})) -case 11:w=t.sent,_=!1,x=!1,t.prev=14,O=h(w.ndjson()) -case 16:return t.next=18,u(O.next()) -case 18:if(!(_=!(E=t.sent).done)){t.next=44 -break}if(!(S=E.value).Pins){t.next=39 -break}P=n(S.Pins),t.prev=22,P.s() -case 24:if((M=P.n()).done){t.next=30 -break}return j=M.value,t.next=28,p.CID.parse(j) -case 28:t.next=24 +case"ropsten":r="eth-ropsten.alchemyapi.io/v2/" break -case 30:t.next=35 +case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/" break -case 32:t.prev=32,t.t0=t.catch(22),P.e(t.t0) -case 35:return t.prev=35,P.f(),t.finish(35) -case 38:return t.abrupt("continue",41) -case 39:return t.next=41,p.CID.parse(S) -case 41:_=!1,t.next=16 +case"goerli":r="eth-goerli.alchemyapi.io/v2/" break -case 44:t.next=50 +case"kovan":r="eth-kovan.alchemyapi.io/v2/" break -case 46:t.prev=46,t.t1=t.catch(14),x=!0,k=t.t1 -case 50:if(t.prev=50,t.prev=51,!_||null==O.return){t.next=55 -break}return t.next=55,u(O.return()) -case 55:if(t.prev=55,!x){t.next=58 -break}throw k -case 58:return t.finish(55) -case 59:return t.finish(50) -case 60:o=!1,t.next=5 +case"matic":r="polygon-mainnet.g.alchemy.com/v2/" break -case 63:t.next=69 +case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/" break -case 65:t.prev=65,t.t2=t.catch(3),s=!0,c=t.t2 -case 69:if(t.prev=69,t.prev=70,!o||null==l.return){t.next=74 -break}return t.next=74,u(l.return()) -case 74:if(t.prev=74,!s){t.next=77 -break}throw c -case 77:return t.finish(74) -case 78:return t.finish(69) -case 79:case"end":return t.stop()}}),t,null,[[3,65,69,79],[14,46,50,60],[22,32,35,38],[51,,55,59],[70,,74,78]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -t.createAddAll=b},function(e,t,r){"use strict" -function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] -if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) -var r=Object.prototype.toString.call(e).slice(8,-1) -return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r) -var n=0,o=function(){} -return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1 -return{s:function(){r=r.call(e)},n:function(){var e=r.next() -return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length) -for(var r=0,n=new Array(t);r=0&&(t.throttleRetry=!0),t}return e.result}function Yc(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response") +throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var r=new Error("invalid response") +throw r.result=JSON.stringify(e),r}if(e.error){var n=new Error(e.error.message||"unknown error") +throw e.error.code&&(n.code=e.error.code),e.error.data&&(n.data=e.error.data),n}return e.result}function Kc(e){if("pending"===e)throw new Error("pending not supported") +return"latest"===e?e:parseInt(e.substring(2),16)}function Jc(e,t,r){if("call"===e&&t.code===h.b.errors.SERVER_ERROR){var n=t.error +if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var i=n.data +if(i&&(i="0x"+i.replace(/^.*0x/i,"")),Object(c.l)(i))return i +Vc.throwError("missing revert data in call exception",h.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var o=t.message +throw t.code===h.b.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText)),(o=(o||"").toLowerCase()).match(/insufficient funds/)&&Vc.throwError("insufficient funds for intrinsic transaction cost",h.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Vc.throwError("nonce has already been used",h.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),o.match(/another transaction with same nonce/)&&Vc.throwError("replacement fee too low",h.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),o.match(/execution failed due to an exception|execution reverted/)&&Vc.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var $c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fc(e,t)}(i,e) +var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +if(Reflect.construct.sham)return!1 +if("function"==typeof Proxy)return!0 +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=qc(e) +if(t){var i=qc(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return Uc(this,r)}}(i) +function i(e,t){var r +return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Vc.checkNew(this instanceof i?this.constructor:void 0,i),S(zc(r=n.call(this,e)),"baseUrl",r.getBaseUrl()),S(zc(r),"apiKey",t||"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"),r}return t=i,(r=[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io" +case"ropsten":return"https://api-ropsten.etherscan.io" +case"rinkeby":return"https://api-rinkeby.etherscan.io" +case"kovan":return"https://api-kovan.etherscan.io" +case"goerli":return"https://api-goerli.etherscan.io"}return Vc.throwArgumentError("unsupported network","network",name)}},{key:"getUrl",value:function(e,t){var r=Object.keys(t).reduce((function(e,r){var n=t[r] +return null!=n&&(e+="&".concat(r,"=").concat(n)),e}),""),n=this.apiKey?"&apikey=".concat(this.apiKey):"" +return"".concat(this.baseUrl,"/api?module=").concat(e).concat(r).concat(n)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,r){return Hc(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,c,l=this +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,a="proxy"===e?Yc:Gc,this.emit("debug",{action:"request",request:i,provider:this}),s={url:i,throttleSlotInterval:1e3,throttleCallback:function(e,t){return l.isCommunityResource()&&Ss(),Promise.resolve(!0)}},u=null,o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(o).map((function(e){return"".concat(e,"=").concat(o[e])})).join("&")),n.next=9,vs(s,u,a||Yc) +case 9:return c=n.sent,this.emit("debug",{action:"response",request:i,response:T(c),provider:this}),n.abrupt("return",c) +case 12:case"end":return n.stop()}}),n,this)})))}},{key:"detectNetwork",value:function(){return Hc(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network) +case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,n=Object.create(null,{perform:{get:function(){return Bc(qc(i.prototype),"perform",r)}}}) +return Hc(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a,s,u,c,l,f,d +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next="getBlockNumber"===r.t0?3:"getGasPrice"===r.t0?4:"getBalance"===r.t0?5:"getTransactionCount"===r.t0?6:"getCode"===r.t0?7:"getStorageAt"===r.t0?8:"sendTransaction"===r.t0?9:"getBlock"===r.t0?10:"getTransaction"===r.t0?13:"getTransactionReceipt"===r.t0?14:"call"===r.t0?15:"estimateGas"===r.t0?29:"getLogs"===r.t0?41:"getEtherPrice"===r.t0?65:72 break -case 55:e.prev=55,e.t1=e.catch(45),h.e(e.t1) -case 58:return e.prev=58,h.f(),e.finish(58) -case 61:return e.abrupt("return") -case 62:throw p.default(new Error("Unexpected input: "+o(t)),"ERR_UNEXPECTED_INPUT") -case 63:if(!(Symbol.asyncIterator in t)){e.next=137 -break}return b=t[Symbol.asyncIterator](),e.next=67,a(b.next()) -case 67:if(!(g=e.sent).done){e.next=70 -break}return e.abrupt("return",b) -case 70:if(!(d.CID.asCID(g.value)||g.value instanceof String||"string"==typeof g.value)){e.next=103 -break}return e.next=73,y({cid:g.value}) -case 73:w=!1,_=!1,e.prev=75,k=l(b) -case 77:return e.next=79,a(k.next()) -case 79:if(!(w=!(O=e.sent).done)){e.next=86 -break}return E=O.value,e.next=83,y({cid:E}) -case 83:w=!1,e.next=77 +case 3:return r.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"})) +case 4:return r.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"})) +case 5:return r.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag})) +case 6:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag})) +case 7:return r.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag})) +case 8:return r.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag})) +case 9:return r.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return Jc("sendTransaction",e,t.signedTransaction)}))) +case 10:if(!t.blockTag){r.next=12 +break}return r.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"})) +case 12:throw new Error("getBlock by blockHash not implemented") +case 13:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash})) +case 14:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash})) +case 15:if("latest"===t.blockTag){r.next=17 +break}throw new Error("EtherscanProvider does not support blockTag for call") +case 17:return(i=Wc(t.transaction)).module="proxy",i.action="eth_call",r.prev=20,r.next=23,this.fetch("proxy",i,!0) +case 23:return r.abrupt("return",r.sent) +case 26:return r.prev=26,r.t1=r.catch(20),r.abrupt("return",Jc("call",r.t1,t.transaction)) +case 29:return(o=Wc(t.transaction)).module="proxy",o.action="eth_estimateGas",r.prev=32,r.next=35,this.fetch("proxy",o,!0) +case 35:return r.abrupt("return",r.sent) +case 38:return r.prev=38,r.t2=r.catch(32),r.abrupt("return",Jc("estimateGas",r.t2,t.transaction)) +case 41:return a={action:"getLogs"},t.filter.fromBlock&&(a.fromBlock=Kc(t.filter.fromBlock)),t.filter.toBlock&&(a.toBlock=Kc(t.filter.toBlock)),t.filter.address&&(a.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Vc.throwError("unsupported topic count",h.b.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"==typeof(s=t.filter.topics[0])&&66===s.length||Vc.throwError("unsupported topic format",h.b.errors.UNSUPPORTED_OPERATION,{topic0:s}),a.topic0=s)),r.next=48,this.fetch("logs",a) +case 48:u=r.sent,c={},l=0 +case 51:if(!(l0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t] +e[t]=e[r],e[r]=n}return e}function Qc(e,t){for(var r=0;rt?null:(n+i)/2}function cl(e){if(null===e)return"null" +if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e) +if("string"==typeof e)return e +if(b.isBigNumber(e))return e.toString() +if(Array.isArray(e))return JSON.stringify(e.map((function(e){return cl(e)}))) +if("object"===nl(e)){var t=Object.keys(e) +return t.sort(),"{"+t.map((function(t){var r=e[t] +return r="function"==typeof r?"[function]":cl(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+nl(e))}var ll=1 +function fl(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)})) +return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var hl=[h.b.errors.CALL_EXCEPTION,h.b.errors.INSUFFICIENT_FUNDS,h.b.errors.NONCE_EXPIRED,h.b.errors.REPLACEMENT_UNDERPRICED,h.b.errors.UNPREDICTABLE_GAS_LIMIT],dl=["address","args","errorArgs","errorSignature","method","transaction"] +function pl(e,t){var r={weight:e.weight} +return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function ml(e,t,r){var n=cl +switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=ul(t.map((function(e){return e.result})),2) +if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber} +case"getGasPrice":return function(e){var t=e.map((function(e){return e.result})) +return t.sort(),t[Math.floor(t.length/2)]} +case"getEtherPrice":return function(e){return ul(e.map((function(e){return e.result})))} +case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break +case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=j(e)).confirmations=-1,cl(e))} break -case 88:e.prev=88,e.t2=e.catch(75),_=!0,x=e.t2 -case 92:if(e.prev=92,e.prev=93,!w||null==k.return){e.next=97 -break}return e.next=97,a(k.return()) -case 97:if(e.prev=97,!_){e.next=100 -break}throw x -case 100:return e.finish(97) -case 101:return e.finish(92) -case 102:return e.abrupt("return") -case 103:if(null==g.value.cid&&null==g.value.path){e.next=136 -break}return e.next=106,y(g.value) -case 106:S=!1,P=!1,e.prev=108,j=l(b) -case 110:return e.next=112,a(j.next()) -case 112:if(!(S=!(A=e.sent).done)){e.next=119 -break}return T=A.value,e.next=116,y(T) -case 116:S=!1,e.next=110 +case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=j(e)).transactions=e.transactions.map((function(e){return(e=j(e)).confirmations=-1,e})),cl(e))}:function(e){return null==e?null:cl(e)} break -case 119:e.next=125 +default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){var n={} +r.forEach((function(t){var r=e(t.result) +n[r]||(n[r]={count:0,result:t.result}),n[r].count++})) +for(var i=Object.keys(n),o=0;o=t)return a.result}}}(n,e.quorum)}function vl(e,t){return il(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null!=(n=e.provider).blockNumber&&n.blockNumber>=t||-1===t)){r.next=3 +break}return r.abrupt("return",n) +case 3:return r.abrupt("return",ys((function(){return new Promise((function(r,i){setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}))}),{oncePoll:n})) +case 4:case"end":return r.stop()}}),r)})))}function yl(e,t,r,n){return il(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a +return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=e.provider,i.t0=r,i.next="getBlockNumber"===i.t0||"getGasPrice"===i.t0?4:"getEtherPrice"===i.t0?5:"getBalance"===i.t0||"getTransactionCount"===i.t0||"getCode"===i.t0?8:"getStorageAt"===i.t0?13:"getBlock"===i.t0?18:"call"===i.t0||"estimateGas"===i.t0?23:"getTransaction"===i.t0||"getTransactionReceipt"===i.t0?28:"getLogs"===i.t0?29:35 break -case 121:e.prev=121,e.t3=e.catch(108),P=!0,M=e.t3 -case 125:if(e.prev=125,e.prev=126,!S||null==j.return){e.next=130 -break}return e.next=130,a(j.return()) -case 130:if(e.prev=130,!P){e.next=133 -break}throw M -case 133:return e.finish(130) -case 134:return e.finish(125) -case 135:return e.abrupt("return") -case 136:case 137:throw p.default(new Error("Unexpected input: "+o(t)),"ERR_UNEXPECTED_INPUT") -case 138:case"end":return e.stop()}}),e,null,[[24,34,37,40],[45,55,58,61],[75,88,92,102],[93,,97,101],[108,121,125,135],[126,,130,134]])})))).apply(this,arguments)}function y(e){var t=e.cid||"".concat(e.path) -if(!t)throw p.default(new Error("Unexpected input: Please path either a CID or an IPFS path"),"ERR_UNEXPECTED_INPUT") -var r={path:t,recursive:!1!==e.recursive} -return null!=e.metadata&&(r.metadata=e.metadata),r}t.normaliseInput=function(e){return m.apply(this,arguments)}},function(e,t,r){"use strict" -function n(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t512||i<1)&&ol.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),i),Object.freeze(n)})),a=o.reduce((function(e,t){return e+t.weight}),0) +null==t?t=a/2:t>a&&ol.throwArgumentError("quorum will always fail; larger than total weight","quorum",t) +var s=sl(o.map((function(e){return e.provider.network}))) +return null==s&&(s=new Promise((function(e,t){setTimeout((function(){r.detectNetwork().then(e,t)}),0)}))),S(tl(r=n.call(this,s)),"providerConfigs",Object.freeze(o)),S(tl(r),"quorum",t),r._highestBlockNumber=-1,r}return t=i,(r=[{key:"detectNetwork",value:function(){return il(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()}))) +case 2:return t=e.sent,e.abrupt("return",sl(t)) +case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return il(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o,a,s,u,c,l,f,d,p=this +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("sendTransaction"!==e){r.next=13 +break}return r.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))}))) +case 3:n=r.sent,i=0 +case 5:if(!(i=p.quorum)){r.next=19 +break}if(void 0===(d=a(h))){r.next=15 +break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",{v:d}) +case 15:if(l){r.next=18 +break}return r.next=18,fl(100).getPromise() +case 18:l=!1 +case 19:if(m=s.reduce((function(e,t){if(!t.done||null==t.error)return e +var r=t.error.code +return hl.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(m).forEach((function(e){var t=m[e] +if(!(t.weight1&&void 0!==P[1]?P[1]:{},o=!1,a=!1,t.prev=3,c=f(m.normaliseInput(r)) -case 5:return t.next=7,u(c.next()) -case 7:if(!(o=!(h=t.sent).done)){t.next=50 -break}return p=h.value,v=p.path,b=p.recursive,(g=new URLSearchParams(n.searchParams)).append("arg","".concat(v)),null!=b&&g.set("recursive",String(b)),t.next=14,u(e.post("pin/rm",{signal:n.signal,headers:n.headers,searchParams:y.toUrlSearchParams(i(i({},n),{},{arg:"".concat(v),recursive:b}))})) -case 14:w=t.sent,_=!1,x=!1,t.prev=17,O=f(w.ndjson()) -case 19:return t.next=21,u(O.next()) -case 21:if(!(_=!(E=t.sent).done)){t.next=31 -break}if(!(S=E.value).Pins){t.next=26 -break}return t.delegateYield(l(f(S.Pins.map((function(e){return d.CID.parse(e)}))),u),"t0",25) -case 25:return t.abrupt("continue",28) -case 26:return t.next=28,d.CID.parse(S) -case 28:_=!1,t.next=19 +case 32:return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",ol.throwError("failed to meet quorum",h.b.errors.SERVER_ERROR,{method:e,params:t,results:s.map((function(e){return pl(e)})),provider:this})) +case 34:case"end":return r.stop()}}),r,this)})))}}])&&Qc(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(iu),gl=null +function wl(e){return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kl(e,t){for(var r=0;r0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("repo/stat",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) -case 3:return n=t.sent,t.next=6,n.json() -case 6:return i=t.sent,t.abrupt("return",{numObjects:BigInt(i.NumObjects),repoSize:BigInt(i.RepoSize),repoPath:i.RepoPath,version:i.Version,storageMax:BigInt(i.StorageMax)}) -case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) -t.createStat=s},function(e,t,r){"use strict" -function n(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length) -for(var r=0,n=new Array(t);r1&&void 0!==R[1]?R[1]:{},o=new AbortController,s=g.abortSignal(o.signal,n.signal),t.next=5,u(v.multipartRequest(r,o,n.headers)) -case 5:return c=t.sent,l=c.headers,f=c.body,d=c.total,p=c.parts,y="function"==typeof n.progress?_(d,p,n.progress):[void 0,void 0],w=a(y,2),x=w[0],O=w[1],t.next=13,u(e.post("add",{searchParams:b.toUrlSearchParams(i(i({"stream-channels":!0},n),{},{progress:Boolean(x)})),onUploadProgress:O,signal:s,headers:l,body:f})) -case 13:E=t.sent,S=!1,P=!1,t.prev=16,j=h(E.ndjson()) -case 18:return t.next=20,u(j.next()) -case 20:if(!(S=!(A=t.sent).done)){t.next=32 -break}if(T=A.value,void 0===(T=m.objectToCamel(T)).hash){t.next=28 -break}return t.next=26,k(T) -case 26:t.next=29 +case"maticmum":r="polygon-mumbai.infura.io" break -case 28:x&&x(T.bytes||0,T.name) -case 29:S=!1,t.next=18 +case"optimism":r="optimism-mainnet.infura.io" break -case 32:t.next=38 +case"optimism-kovan":r="optimism-kovan.infura.io" break -case 34:t.prev=34,t.t0=t.catch(16),P=!0,M=t.t0 -case 38:if(t.prev=38,t.prev=39,!S||null==j.return){t.next=43 -break}return t.next=43,u(j.return()) -case 43:if(t.prev=43,!P){t.next=46 -break}throw M -case 46:return t.finish(43) -case 47:return t.finish(38) -case 48:case"end":return t.stop()}}),t,null,[[16,34,38,48],[39,,43,47]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})),_=function(e,t,r){return t?[void 0,x(e,t,r)]:[r,void 0]},x=function(e,t,r){var n=0,i=t.length -return function(o){for(var a=o.loaded,s=o.total,u=Math.floor(a/s*e);n0&&void 0!==s[0]?s[0]:{},t.next=3,e.post("id",{signal:r.signal,searchParams:f.toUrlSearchParams(i({arg:r.peerId?r.peerId.toString():void 0},r)),headers:r.headers}) -case 3:return n=t.sent,t.next=6,n.json() -case 6:return o=t.sent,(a=i({},u.objectToCamel(o))).addresses&&(a.addresses=a.addresses.map((function(e){return new c.Multiaddr(e)}))),t.abrupt("return",a) -case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) -t.createId=h},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(450),o=r(451) -e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new i(1),r=String(e).toLowerCase().trim(),a="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),s=o(r) -if("-"===s.substr(0,1)&&(s=o(s.slice(1)),t=new i(-1,10)),!(s=""===s?"0":s).match(/^-?[0-9]+$/)&&s.match(/^[0-9A-Fa-f]+$/)||s.match(/^[a-fA-F]+$/)||!0===a&&s.match(/^[0-9A-Fa-f]+$/))return new i(s,16).mul(t) -if((s.match(/^-?[0-9]+$/)||""===s)&&!1===a)return new i(s,10).mul(t)}else if("object"===n(e)&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new i(e.toString(10),10) -throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(4),o=r(147),a=r(453),s=r(454),u=r(533),c=function(e){return i.isBN(e)},l=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},f=function(e){try{return o.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},h=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||d(e))},d=function(e){e=e.replace(/^0x/i,"") -for(var t=_(e.toLowerCase()).replace(/^0x/i,""),r=0;r<40;r++)if(parseInt(t[r],16)>7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1 -return!0},p=function(e){var t="" -e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("") -for(var r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16)) -return"0x"+t.join("")},isHex:g,isHexStrict:b,stripHexPrefix:function(e){return 0!==e&&g(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 -return(n?"0x":"")+new Array(i).join(r||"0")+e},rightPad:function(e,t,r){var n=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 -return(n?"0x":"")+e+new Array(i).join(r||"0")},toTwosComplement:function(e){return"0x"+f(e).toTwos(256).toString(16,64)},sha3:_,sha3Raw:function(e){return null===(e=_(e))?w:e},toNumber:function(e){return"number"==typeof e?e:m(v(e))}}}).call(this,r(7).Buffer)},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0 -var n=r(7),i=r(29) -t.MAX_UINT64=new i.BN("ffffffffffffffff",16),t.MAX_INTEGER=new i.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new i.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=n.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=n.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=n.Buffer.from(t.KECCAK256_RLP_S,"hex")},function(e,t,r){"use strict";(function(e){var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator] -if(!r)return e -var n,i,o=r.call(e),a=[] -try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} -Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0 -var o=i(r(85)),a=r(29),s=r(151),u=r(42),c=r(149),l=r(36),f=r(88),h=r(68),d=r(94),p=function(){function e(e,t,r,n){void 0===e&&(e=new a.BN(0)),void 0===t&&(t=new a.BN(0)),void 0===r&&(r=c.KECCAK256_RLP),void 0===n&&(n=c.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=n,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,n=t.balance,i=t.stateRoot,o=t.codeHash -return new e(r?new a.BN((0,l.toBuffer)(r)):void 0,n?new a.BN((0,l.toBuffer)(n)):void 0,i?(0,l.toBuffer)(i):void 0,o?(0,l.toBuffer)(o):void 0)},e.fromRlpSerializedAccount=function(e){var t=a.rlp.decode(e) -if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array") -return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),i=r[0],o=r[1],s=r[2],u=r[3] -return new e(new a.BN(i),new a.BN(o),s,u)},e.prototype._validate=function(){if(this.nonce.lt(new a.BN(0)))throw new Error("nonce must be greater than zero") -if(this.balance.lt(new a.BN(0)))throw new Error("balance must be greater than zero") -if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32") -if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,d.bnToUnpaddedBuffer)(this.nonce),(0,d.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return a.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(c.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(c.KECCAK256_NULL)},e}() -t.Account=p,t.isValidAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,h.assertIsHexString)(e) -var r=(0,u.stripHexPrefix)(e).toLowerCase(),n="" -t&&(n=(0,d.toType)(t,d.TypeOutput.BN).toString()+"0x") -for(var i=(0,f.keccakFromString)(n+r).toString("hex"),o="0x",a=0;a=8?o+=r[a].toUpperCase():o+=r[a] -return o},t.isValidChecksumAddress=function(e,r){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,r)===e},t.generateAddress=function(t,r){(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r) -var n=new a.BN(r) -return n.isZero()?(0,f.rlphash)([t,null]).slice(-20):(0,f.rlphash)([t,e.from(n.toArray())]).slice(-20)},t.generateAddress2=function(t,r,n){return(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r),(0,h.assertIsBuffer)(n),(0,o.default)(20===t.length),(0,o.default)(32===r.length),(0,f.keccak256)(e.concat([e.from("ff","hex"),t,r,(0,f.keccak256)(n)])).slice(-20)},t.isValidPrivate=function(e){return(0,s.privateKeyVerify)(e)},t.isValidPublic=function(t,r){return void 0===r&&(r=!1),(0,h.assertIsBuffer)(t),64===t.length?(0,s.publicKeyVerify)(e.concat([e.from([4]),t])):!!r&&(0,s.publicKeyVerify)(t)},t.pubToAddress=function(t,r){return void 0===r&&(r=!1),(0,h.assertIsBuffer)(t),r&&64!==t.length&&(t=e.from((0,s.publicKeyConvert)(t,!1).slice(1))),(0,o.default)(64===t.length),(0,f.keccak)(t).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(t){return(0,h.assertIsBuffer)(t),e.from((0,s.publicKeyCreate)(t,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(t){return(0,h.assertIsBuffer)(t),64!==t.length&&(t=e.from((0,s.publicKeyConvert)(t,!1).slice(1))),t},t.zeroAddress=function(){var e=(0,l.zeros)(20) -return(0,l.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}}).call(this,r(7).Buffer)},function(e,t,r){"use strict" -var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t -e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1] -return i[1]},trys:[],ops:[]} -return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o -function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.") -for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i -switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o +case"arbitrum":r="arbitrum-mainnet.infura.io" break -case 4:return a.label++,{value:o[1],done:!1} -case 5:a.label++,n=o[1],o=[0] -continue -case 7:o=a.ops.pop(),a.trys.pop() -continue -default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0 -continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]>8,a=255&i -o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i -function o(e){this.rand=e}if(e.exports=function(e){return i||(i=new o(null)),i.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e) -for(var t=new Uint8Array(e),r=0;r>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict" -var n=r(25),i=r(55),o=r(156),a=r(12),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,m=o.g1_256,y=i.BlockHash,v=[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 b(){if(!(this instanceof b))return new b -y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,y),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] -for(;n4294967295)throw new RangeError("requested too many random bytes") -var r=i.allocUnsafe(e) -if(e>0)if(e>65536)for(var a=0;a0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):P(e,s,t,!0) -else if(s.ended)x(e,new g) -else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):T(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,T(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState -o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(A,e))}function A(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) -var r}function B(e){var t=e._readableState -o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):j(this),null -if(0===(e=M(e,t))&&t.ended)return 0===t.length&&B(this),null -var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){x(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,i=this._readableState -switch(i.pipesCount){case 0:i.pipes=e +case"arbitrum-rinkeby":r="arbitrum-rinkeby.infura.io" +break +default:Al.throwError("unsupported network",h.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:function(e,r){return t.projectId===jl&&Ss(),Promise.resolve(!0)}} +return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}]),r}(tc) +function Cl(e){return(Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Il(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nl(e,t){for(var r=0;r1&&-1!==U(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),m(),e.removeListener("error",h),0===a(e,"error")&&x(e,t)}function d(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",d),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r) -e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1} -if(0===t.pipesCount)return this -if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this -if(!e){var n=t.pipes,i=t.pipesCount -t.pipes=null,t.pipesCount=0,t.flowing=!1 -for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?j(this):i.reading||n.nextTick(I,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t) -return"readable"===e&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments) -return"readable"!==e&&void 0!==e||n.nextTick(C,this),t},E.prototype.resume=function(){var e=this._readableState -return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1 -for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() -e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) -for(var a=0;a-1))throw new _(e) -return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState -return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,r(10),r(8))},function(e,t,r){"use strict" -e.exports=l -var n=r(43).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(44) -function c(e,t){var r=this._transformState -r.transforming=!1 -var n=r.writecb -if(null===n)return this.emit("error",new o) -r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e) -var i=this._readableState -i.reading=!1,(i.needReadable||i.length=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s) -return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called") -this._finalized=!0 -var t=this._digest() -void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0 -for(var r=0;r<4;++r)this._length[r]=0 -return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){"use strict";(function(t,n){var i -e.exports=E,E.ReadableState=O,r(37).EventEmitter -var o,a=function(e,t){return e.listeners(t).length},s=r(169),u=r(7).Buffer,c=t.Uint8Array||function(){},l=r(507) -o=l&&l.debuglog?l.debuglog("stream"):function(){} -var f,h,d,p=r(508),m=r(170),y=r(171).getHighWaterMark,v=r(45).codes,b=v.ERR_INVALID_ARG_TYPE,g=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT -r(6)(E,s) -var x=m.errorOrDestroy,k=["error","close","destroy","pause","resume"] -function O(e,t,n){i=i||r(46),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(38).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function E(e){if(i=i||r(46),!(this instanceof E))return new E(e) -var t=this instanceof i -this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t) -var a,s=e._readableState -if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end() -r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,A(e)))}}(e,s) -else if(i||(a=function(e,t){var r,n -return n=t,u.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a) -else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n)s.endEmitted?x(e,new _):P(e,s,t,!0) -else if(s.ended)x(e,new g) -else{if(s.destroyed)return!1 -s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):T(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,T(e,s)) -return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState -o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(A,e))}function A(e){var t=e._readableState -o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function T(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(R,e,t))}function R(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function I(e){o("readable nexttick read 0"),e.read(0)}function N(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState -for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r) -var r}function B(e){var t=e._readableState -o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function U(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):j(this),null -if(0===(e=M(e,t))&&t.ended)return 0===t.length&&B(this),null -var n,i=t.needReadable -return o("need readable",i),(0===t.length||t.length-e0?L(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){x(this,new w("_read()"))},E.prototype.pipe=function(e,t){var r=this,i=this._readableState -switch(i.pipesCount){case 0:i.pipes=e +case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc" break -case 1:i.pipes=[i.pipes,e] +case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc" break -default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t) -var s=t&&!1===t.end||e===n.stdout||e===n.stderr?m:u -function u(){o("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,a){o("onunpipe"),n===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",t),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",f),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c())})) -var c=function(e){return function(){var t=e._readableState -o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,D(e))}}(r) -e.on("drain",c) -var l=!1 -function f(t){o("ondata") -var n=e.write(t) -o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==U(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(t){o("onerror",t),m(),e.removeListener("error",h),0===a(e,"error")&&x(e,t)}function d(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",d),m()}function m(){o("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r) -e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",d),e.once("finish",p),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1} -if(0===t.pipesCount)return this -if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this -if(!e){var n=t.pipes,i=t.pipesCount -t.pipes=null,t.pipesCount=0,t.flowing=!1 -for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?j(this):i.reading||n.nextTick(I,this))),r},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t) -return"readable"===e&&n.nextTick(C,this),r},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments) -return"readable"!==e&&void 0!==e||n.nextTick(C,this),t},E.prototype.resume=function(){var e=this._readableState -return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1 -for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end() -e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i)) -for(var a=0;a-1))throw new _(e) -return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState -return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,r(10),r(8))},function(e,t,r){"use strict" -e.exports=l -var n=r(45).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(46) -function c(e,t){var r=this._transformState -r.transforming=!1 -var n=r.writecb -if(null===n)return this.emit("error",new o) -r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e) -var i=this._readableState -i.reading=!1,(i.needReadable||i.length>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,y=0|this._h,v=0;v<16;++v)r[v]=e.readInt32BE(4*v) -for(;v<64;++v)r[v]=0|(((t=r[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[v-7]+d(r[v-15])+r[v-16] -for(var b=0;b<64;++b){var g=y+h(u)+c(u,p,m)+a[b]+r[b]|0,w=f(n)+l(n,i,o)|0 -y=m,m=p,p=u,u=s+g|0,s=o,o=i,i=n,n=g+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32) -return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){var n=r(6),i=r(47),o=r(16).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160) -function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,g=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,k=0|this._dl,O=0|this._el,E=0|this._fl,S=0|this._gl,P=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4) -for(;M<160;M+=2){var j=t[M-30],A=t[M-30+1],T=d(j,A),R=p(A,j),C=m(j=t[M-4],A=t[M-4+1]),I=y(A,j),N=t[M-14],D=t[M-14+1],L=t[M-32],B=t[M-32+1],F=R+D|0,U=T+N+v(F,R)|0 -U=(U=U+C+v(F=F+I|0,I)|0)+L+v(F=F+B|0,B)|0,t[M]=U,t[M+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1] -var H=l(r,n,i),q=l(w,_,x),V=f(r,w),W=f(w,r),Y=h(s,O),G=h(O,s),K=a[z],$=a[z+1],J=c(s,u,b),Z=c(O,E,S),Q=P+G|0,X=g+Y+v(Q,P)|0 -X=(X=(X=X+J+v(Q=Q+Z|0,Z)|0)+K+v(Q=Q+$|0,$)|0)+U+v(Q=Q+F|0,F)|0 -var ee=W+q|0,te=V+H+v(ee,W)|0 -g=b,P=S,b=u,S=E,u=s,E=O,s=o+X+v(O=k+Q|0,k)|0,o=i,k=x,i=n,x=_,n=r,_=w,r=X+te+v(w=Q+ee|0,Q)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+O|0,this._fl=this._fl+E|0,this._gl=this._gl+S|0,this._hl=this._hl+P|0,this._ah=this._ah+r+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,x)|0,this._dh=this._dh+o+v(this._dl,k)|0,this._eh=this._eh+s+v(this._el,O)|0,this._fh=this._fh+u+v(this._fl,E)|0,this._gh=this._gh+b+v(this._gl,S)|0,this._hh=this._hh+g+v(this._hl,P)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64) -function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){"use strict";(function(t,n){var i=r(69) -e.exports=g -var o,a=r(108) -g.ReadableState=b,r(37).EventEmitter -var s=function(e,t){return e.listeners(t).length},u=r(177),c=r(16).Buffer,l=t.Uint8Array||function(){},f=Object.create(r(56)) -f.inherits=r(6) -var h=r(522),d=void 0 -d=h&&h.debuglog?h.debuglog("stream"):function(){} -var p,m=r(523),y=r(178) -f.inherits(g,u) -var v=["error","close","destroy","pause","resume"] -function b(e,t){e=e||{} -var n=t instanceof(o=o||r(39)) -this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode) -var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384 -this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(38).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function g(e){if(o=o||r(39),!(this instanceof g))return new g(e) -this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,r,n,i){var o,a=e._readableState -return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end() -r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n -return n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState -t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(O,e):O(e))}function O(e){d("emit readable"),e.emit("readable"),j(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n -return eo.length?o.length:e -if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a)) -break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1 -for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e -if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a)) -break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r) -var r}function T(e){var t=e._readableState -if(t.length>0)throw new Error('"endReadable()" called on non-empty stream') -t.endEmitted||(t.ended=!0,i.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function C(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):k(this),null -if(0===(e=x(e,t))&&t.ended)return 0===t.length&&T(this),null -var n,i=t.needReadable -return d("need readable",i),(0===t.length||t.length-e0?A(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&T(this)),null!==n&&this.emit("data",n),n},g.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(e,t){var r=this,o=this._readableState -switch(o.pipesCount){case 0:o.pipes=e +default:Gl.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}],null&&ql(t.prototype,null),r&&ql(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(tc) +function Kl(e){return(Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jl(e,t){for(var r=0;r1&&-1!==C(o.pipes,e))&&!f&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,h=!0),r.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",v),b()}function v(){d("onfinish"),e.removeListener("close",y),b()}function b(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r) -e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",y),e.once("finish",v),e.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),e},g.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1} -if(0===t.pipesCount)return this -if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this -if(!e){var n=t.pipes,i=t.pipesCount -t.pipes=null,t.pipesCount=0,t.flowing=!1 -for(var o=0;o256)&&bf.throwArgumentError("invalid number type","type",t),n&&(o=256),r=b.from(r).toTwos(o),Object(c.p)(r,o/8)}if(i=t.match(mf)){var a=parseInt(i[1]) +return(String(a)!==i[1]||0===a||a>32)&&bf.throwArgumentError("invalid bytes type","type",t),Object(c.a)(r).byteLength!==a&&bf.throwArgumentError("invalid value for ".concat(t),"value",r),n?Object(c.a)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=t.match(yf))&&Array.isArray(r)){var s=i[1] +parseInt(i[2]||String(r.length))!=r.length&&bf.throwArgumentError("invalid array length for ".concat(t),"value",r) +var u=[] +return r.forEach((function(t){u.push(e(s,t,!0))})),Object(c.b)(u)}return bf.throwArgumentError("invalid type","type",t)}(e,t[n]))})),Object(c.i)(Object(c.b)(r))}function wf(e,t){return V(gf(e,t))}function _f(e,t){return uo(gf(e,t))}function kf(e){var t=ye(e) +if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes") +return Object(c.i)(Object(c.b)([t,Na]).slice(0,32))}function xf(e){var t=Object(c.a)(e) +if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long") +if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator") +for(var r=31;0===t[r-1];)r-- +return _e(t.slice(0,r))}var Of=new h.b("units/5.6.0"),Ef=["wei","kwei","mwei","gwei","szabo","finney","ether"] +function Sf(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Of.throwArgumentError("invalid value","value",e) +var r=t[0],n="" +for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1) +""===r&&(r="0") +var i="" +for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1) +for(var o=[];r.length;){if(r.length<=3){o.unshift(r) +break}var a=r.length-3 +o.unshift(r.substring(a)),r=r.substring(0,a)}return n+o.join(",")+i}function Pf(e,t){if("string"==typeof t){var r=Ef.indexOf(t);-1!==r&&(t=3*r)}return Ri(e,null!=t?t:18)}function Mf(e,t){if("string"!=typeof e&&Of.throwArgumentError("value must be a string","value",e),"string"==typeof t){var r=Ef.indexOf(t);-1!==r&&(t=3*r)}return Ti(e,null!=t?t:18)}function Af(e){return Pf(e,18)}function jf(e){return Mf(e,18)}var Rf="ethers/5.6.4",Tf=new h.b(Rf) +try{var Cf=window +null==Cf._ethers&&(Cf._ethers=u)}catch(e){}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return H})) +var n=r(8),i=r.n(n),o=r(17),a=r.n(o) +function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self +var c=l +function l(e,t){if(!e)throw new Error(t||"Assertion failed")}l.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)} +var f=u((function(e,t){var r=t +function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,a=255&i +o?r.push(o,a):r.push(a)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),h=u((function(e,t){var r=t +r.assert=c,r.toArray=f.toArray,r.zero2=f.zero2,r.toHex=f.toHex,r.encode=f.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1) +n.fill(0) +for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]] +e=e.clone(),t=t.clone() +for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3 +3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t +e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=h.getNAF,p=h.getJSF,m=h.assert +function v(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0 +var r=this.n&&this.p.div(this.n) +!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=v +function b(e,t){this.curve=e,this.type=t,this.precomputed=null}v.prototype.point=function(){throw new Error("Not implemented")},v.prototype.validate=function(){throw new Error("Not implemented")},v.prototype._fixedNafMul=function(e,t){m(e.precomputed) +var r=e._getDoubles(),n=d(t,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+n[u] +s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++ +if(s>=0&&u++,a=a.dblp(u),s<0)break +var c=o[s] +m(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},v.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,f=0 +for(o=0;o=1;o-=2){var m=o-1,v=o +if(1===u[m]&&1===u[v]){var y=[t[m],null,null,t[v]] +0===t[m].y.cmp(t[v].y)?(y[1]=t[m].add(t[v]),y[2]=t[m].toJ().mixedAdd(t[v].neg())):0===t[m].y.cmp(t[v].y.redNeg())?(y[1]=t[m].toJ().mixedAdd(t[v]),y[2]=t[m].add(t[v].neg())):(y[1]=t[m].toJ().mixedAdd(t[v]),y[2]=t[m].toJ().mixedAdd(t[v].neg())) +var b=[-3,-1,-5,-7,0,7,5,1,3],g=p(r[m],r[v]) +for(f=Math.max(g[0].length,f),l[m]=new Array(f),l[v]=new Array(f),a=0;a=0;o--){for(var O=0;o>=0;){var E=!0 +for(a=0;a=0&&O++,k=k.dblp(O),o<0)break +for(a=0;a0?s=c[a][S-1>>1]:S<0&&(s=c[a][-S-1>>1].neg()),k="affine"===s.type?k.mixedAdd(s):k.add(s))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},b.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles +for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b) +return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},_.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red)) +var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt() +if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point") +var o=n.fromRed().isOdd() +return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},_.prototype.validate=function(e){if(e.inf)return!0 +var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b) +return 0===r.redSqr().redISub(i).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},x.prototype.isInfinity=function(){return this.inf},x.prototype.add=function(e){if(this.inf)return e +if(e.inf)return this +if(this.eq(e))return this.dbl() +if(this.neg().eq(e))return this.curve.point(null,null) +if(0===this.x.cmp(e.x))return this.curve.point(null,null) +var t=this.y.redSub(e.y) +0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm())) +var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y) +return this.curve.point(r,n)},x.prototype.dbl=function(){if(this.inf)return this +var e=this.y.redAdd(this.y) +if(0===e.cmpn(0))return this.curve.point(null,null) +var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y) +return this.curve.point(o,a)},x.prototype.getX=function(){return this.x.fromRed()},x.prototype.getY=function(){return this.y.fromRed()},x.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},x.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r] +return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},x.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r] +return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},x.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},x.prototype.neg=function(e){if(this.inf)return this +var t=this.curve.point(this.x,this.y.redNeg()) +if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()} +t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},x.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(O,y.BasePoint),_.prototype.jpoint=function(e,t,r){return new O(this,e,t,r)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null) +var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e) +return this.curve.point(r,n)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(e){if(this.isInfinity())return e +if(e.isInfinity())return this +var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a) +if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl() +var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s) +return this.curve.jpoint(h,d,p)},O.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ() +if(e.isInfinity())return this +var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o) +if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl() +var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a) +return this.curve.jpoint(f,h,d)},O.prototype.dblp=function(e){if(0===e)return this +if(this.isInfinity())return this +if(!e)return this.dbl() +var t +if(this.curve.zeroA||this.curve.threeA){var r=this +for(t=0;t=0)return!1 +if(r.redIAdd(i),0===this.x.cmp(r))return!0}},O.prototype.inspect=function(){return this.isInfinity()?"":""},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)} +var E=u((function(e,t){var r=t +r.base=y,r.short=k,r.mont=null,r.edwards=null})),S=u((function(e,t){var r,n=t,i=h.assert +function o(e){"short"===e.type?this.curve=new E.short(e):"edwards"===e.type?this.curve=new E.edwards(e):this.curve=new E.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t) +return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]}) +try{r=null.crash()}catch(e){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})})) +function P(e){if(!(this instanceof P))return new P(e) +this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null +var t=f.toArray(e.entropy,e.entropyEnc||"hex"),r=f.toArray(e.nonce,e.nonceEnc||"hex"),n=f.toArray(e.pers,e.persEnc||"hex") +c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var M=P +P.prototype._init=function(e,t,r){var n=e.concat(t).concat(r) +this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8) +for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},P.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required") +"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=f.toArray(r,n||"hex"),this._update(r)) +for(var i=[];i.length"} +var T=h.assert +function C(e,t){if(e instanceof C)return e +this._importDER(e,t)||(T(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var I=C +function N(){this.place=0}function D(e,t){var r=e[t.place++] +if(!(128&r))return r +var n=15&r +if(0===n||n>4)return!1 +for(var i=0,o=0,a=t.place;o>>=0 +return!(i<=127)&&(t.place=a,i)}function B(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3) +for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255) +e.push(t)}}C.prototype._importDER=function(e,t){e=h.toArray(e,t) +var r=new N +if(48!==e[r.place++])return!1 +var n=D(e,r) +if(!1===n)return!1 +if(n+r.place!==e.length)return!1 +if(2!==e[r.place++])return!1 +var o=D(e,r) +if(!1===o)return!1 +var a=e.slice(r.place,o+r.place) +if(r.place+=o,2!==e[r.place++])return!1 +var s=D(e,r) +if(!1===s)return!1 +if(e.length!==s+r.place)return!1 +var u=e.slice(r.place,s+r.place) +if(0===a[0]){if(!(128&a[1]))return!1 +a=a.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1 +u=u.slice(1)}return this.r=new i.a(a),this.s=new i.a(u),this.recoveryParam=null,!0},C.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray() +for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=B(t),r=B(r);!(r[0]||128&r[1]);)r=r.slice(1) +var n=[2] +L(n,t.length),(n=n.concat(t)).push(2),L(n,r.length) +var i=n.concat(r),o=[48] +return L(o,i.length),o=o.concat(i),h.encode(o,e)} +var F=function(){throw new Error("unsupported")},U=h.assert +function z(e){if(!(this instanceof z))return new z(e) +"string"==typeof e&&(U(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var q=z +z.prototype.keyPair=function(e){return new R(this,e)},z.prototype.keyFromPrivate=function(e,t){return R.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return R.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={}) +for(var t=new M({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||F(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(r)) +if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},z.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength() +return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},z.prototype.sign=function(e,t,r,n){"object"===s(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i.a(e,16)) +for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),u=e.toArray("be",o),c=new M({hash:this.hash,entropy:a,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),l=this.n.sub(new i.a(1)),f=0;;f++){var h=n.k?n.k(f):new i.a(c.generate(this.n.byteLength())) +if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(l)>=0)){var d=this.g.mul(h) +if(!d.isInfinity()){var p=d.getX(),m=p.umod(this.n) +if(0!==m.cmpn(0)){var v=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e)) +if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==p.cmp(m)?2:0) +return n.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new I({r:m,s:v,recoveryParam:y})}}}}}},z.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i.a(e,16)),r=this.keyFromPublic(r,n) +var o=(t=new I(t,"hex")).r,a=t.s +if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1 +if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1 +var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(o).umod(this.n) +return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),l)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},z.prototype.recoverPubKey=function(e,t,r,n){U((3&r)===r,"The recovery param is more than two bits"),t=new I(t,n) +var o=this.n,a=new i.a(e),s=t.r,u=t.s,c=1&r,l=r>>1 +if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate") +s=l?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c) +var f=t.r.invm(o),h=o.sub(a).mul(f).umod(o),d=u.mul(f).umod(o) +return this.g.mulAdd(h,s,d)},z.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new I(t,n)).recoveryParam)return t.recoveryParam +for(var i=0;i<4;i++){var o +try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")} +var H=u((function(e,t){var r=t +r.version="6.5.4",r.utils=h,r.rand=function(){throw new Error("unsupported")},r.curve=E,r.curves=S,r.ec=q,r.eddsa=null})).ec}).call(this,r(11))},function(e,t,r){(function(e,n,i){var o +function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} +/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.8.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */!function(){"use strict" +var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":a(window)),c=u?window:{} +c.JS_SHA3_NO_WINDOW&&(u=!1) +var l=!u&&"object"===("undefined"==typeof self?"undefined":a(self)) +!c.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":a(e))&&e.versions&&e.versions.node?c=n:l&&(c=self) +var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=r(87),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],v=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],g=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136} +!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===a(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer}) +for(var k=function(e,t,r){return function(n){return new B(e,t,e).update(n)[r]()}},x=function(e,t,r){return function(n,i){return new B(e,t,i).update(n)[r]()}},O=function(e,t,r){return function(t,n,i,o){return A["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return A["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 +for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){B.call(this,e,t,r)}B.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") +var t,r=a(e) +if("string"!==r){if("object"!==r)throw new Error(s) +if(null===e)throw new Error(s) +if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) +else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) +t=!0}for(var n,i,o=this.blocks,u=this.byteCount,c=e.length,l=this.blockCount,f=0,h=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n +return t?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(e){var t,r=a(e) +if("string"!==r){if("object"!==r)throw new Error(s) +if(null===e)throw new Error(s) +if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) +else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) +t=!0}var n=0,i=e.length +if(t)n=i +else for(var o=0;o=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},B.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15] +a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},B.prototype.arrayBuffer=function(){this.finalize() +var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3 +e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s) +for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 +s%r==0&&F(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},L.prototype=new B,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)} +var F=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,v,b,g,w,_,k,x,O,E,S,P,M,A,j,R,T,C,I,N,D,B,L,F,U,z,q,H,V,W,G,Y,K,J,$,Z,Q,X,ee,te,re,ne,ie,oe,ae,se,ue,ce,le +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],Y=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,I=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,O=e[49]<<14|e[48]>>>18,e[0]=p^~v&g,e[1]=m^~b&w,e[10]=E^~P&A,e[11]=S^~M&j,e[20]=N^~B&F,e[21]=D^~L&U,e[30]=W^~Y&J,e[31]=G^~K&$,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=v^~g&_,e[3]=b^~w&k,e[12]=P^~A&R,e[13]=M^~j&T,e[22]=B^~F&z,e[23]=L^~U&q,e[32]=Y^~J&Z,e[33]=K^~$&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=g^~_&x,e[5]=w^~k&O,e[14]=A^~R&C,e[15]=j^~T&I,e[24]=F^~z&H,e[25]=U^~q&V,e[34]=J^~Z&X,e[35]=$^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=_^~x&p,e[7]=k^~O&m,e[16]=R^~C&E,e[17]=T^~I&S,e[26]=z^~H&N,e[27]=q^~V&D,e[36]=Z^~X&W,e[37]=Q^~ee&G,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=x^~p&v,e[9]=O^~m&b,e[18]=C^~E&P,e[19]=I^~S&M,e[28]=H^~N&B,e[29]=V^~D&L,e[38]=X^~W&Y,e[39]=ee^~G&K,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=y[n],e[1]^=y[n+1]} +if(f)i.exports=A +else{for(R=0;R=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function c(e,t,r){var n=u(e,r) +return r-1>=t&&(n|=u(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) +if("object"===t(e))return this._initArray(e,r,n) +"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36) +var o=0 +"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +else if("le"===r)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++) +return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length) +for(var n=0;n=t;n-=2)i=c(e,t,n)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8 +else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8 +this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1 +for(var n=0,i=1;i<=67108863;i*=t)n++ +n--,i=i/t|0 +for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length-- +return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""} +var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] +function p(e,t,r){r.negative=t.negative^e.negative +var n=e.length+t.length|0 +r.length=n,n=n-1|0 +var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 +r.words[0]=s +for(var c=1;c>>26,f=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0 +l+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){var r +if(t=0|t||1,16===(e=e||10)||"hex"===e){r="" +for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],l=d[e] +r="" +var p=this.clone() +for(p.negative=0;!p.isZero();){var m=p.modn(l).toString(e) +r=(p=p.idivn(l)).isZero()?m+r:f[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r +return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0] +return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),o=r||Math.max(1,n) +i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip() +var a,s,u="le"===t,c=new e(o),l=this.clone() +if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a +for(;s=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26 +var t=e,r=0 +return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e) +return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0 +for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t +t=this.length>e.length?e:this +for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r +this.length>e.length?(t=this,r=e):(t=e,r=this) +for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0) +var t=0|Math.ceil(e/26),r=e%26 +this._expand(t),r>0&&t-- +for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0) +var r=e/26|0,n=e%26 +return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this) +for(var i=0,o=0;o>>26 +for(;0!==i&&o>>26 +if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++ +else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0 +var t=this.iadd(e) +return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign() +var r,n,i=this.cmp(e) +if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this +i>0?(r=this,n=e):(r=e,n=this) +for(var o=0,a=0;a>26,this.words[a]=67108863&t +for(;0!==o&&a>26,this.words[a]=67108863&t +if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +r.negative=e.negative^t.negative,r.length=19 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 +var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 +c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +function v(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=p),a.prototype.mulTo=function(e,t){var r=this.length+e.length +return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length +for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 +return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i}return t}(e) +if(0===t.length)return new a(1) +for(var r=this,n=0;n=0) +var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r +if(0!==r){var a=0 +for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t] +for(t=0;t=0),n=t?(t-t%26)/26:0 +var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=n);c--){var f=0|this.words[c] +this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0) +var t=e%26,r=(e-t)/26,n=1<=0) +var t=e%26,r=(e-t)/26 +if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this +if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++ +return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e) +if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this +if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1 +else for(var t=0;t>26)-(u/67108864|0),this.words[n+r]=67108863&o}for(;n>26,this.words[n+r]=67108863&o +if(0===s)return this.strip() +for(i(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o +return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1] +0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]) +var s,u=n.length-i.length +if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length) +for(var c=0;c=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]) +for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1) +s&&(s.words[f]=h)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return i(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t) +var n,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e) +if(t.mod.isZero())return t.div +var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n) +return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863) +for(var t=(1<<26)%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e +return r},a.prototype.idivn=function(e){i(e<=67108863) +for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t +this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c +for(var l=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(l),o.isub(f)),n.iushrn(1),o.iushrn(1) +for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1) +t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(c)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero()) +var t=this,r=e.clone() +t=0!==t.negative?t.umod(e):t.clone() +for(var n,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1) +for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1) +t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(n=0===t.cmpn(1)?o:s).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs() +if(e.isZero())return this.abs() +var t=this.clone(),r=e.clone() +t.negative=0,r.negative=0 +for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1) +for(;;){for(;t.isEven();)t.iushrn(1) +for(;r.isEven();)r.iushrn(1) +var i=t.cmp(r) +if(i<0){var o=t +t=r,r=o}else if(0===i||0===r.cmpn(1))break +t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e) +var t=e%26,r=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0 +if(0!==this.negative&&!r)return-1 +if(0===this.negative&&r)return 1 +if(this.strip(),this.length>1)t=1 +else{r&&(e=-e),i(e<=67108863,"Number is too big") +var n=0|this.words[0] +t=n===e?0:ne.length)return 1 +if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r] +if(n!==i){ni&&(t=1) +break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new O(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} +var b={k256:null,p224:null,p192:null,p25519:null} +function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null) +return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e +do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) +var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},o(w,g),w.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 +for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(b[e])return b[e] +var t +if("k256"===e)t=new w +else if("p224"===e)t=new _ +else if("p192"===e)t=new k +else{if("p25519"!==e)throw new Error("Unknown prime "+e) +t=new x}return b[e]=t,t},O.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t) +var r=e.add(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t) +var r=e.iadd(t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},O.prototype.sub=function(e,t){this._verify2(e,t) +var r=e.sub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t) +var r=e.isub(t) +return r.cmpn(0)<0&&r.iadd(this.m),r},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone() +var t=this.m.andln(3) +if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) +return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) +i(!n.isZero()) +var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() +for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) +for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr() +i(v=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1 +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new E(e)},o(E,O),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e +var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) +var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},function(e,t,r){"use strict" +r.d(t,"a",(function(){return n})) +var n="random/5.6.0"},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return H})) +var n=r(6),i=r.n(n),o=r(35),a=r.n(o) function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self var c=l function l(e,t){if(!e)throw new Error(t||"Assertion failed")}l.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)} @@ -13020,36 +14515,36 @@ e=e.clone(),t=t.clone() for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3 3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!=(n=e.andln(7)+i&7)&&5!==n||2!==c?u:-u,r[0].push(a),s=0==(1&c)?0:3!=(n=t.andln(7)+o&7)&&5!==n||2!==u?c:-c,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=h.getNAF,p=h.getJSF,m=h.assert -function y(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0 +function v(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0 var r=this.n&&this.p.div(this.n) -!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var v=y -function b(e,t){this.curve=e,this.type=t,this.precomputed=null}y.prototype.point=function(){throw new Error("Not implemented")},y.prototype.validate=function(){throw new Error("Not implemented")},y.prototype._fixedNafMul=function(e,t){m(e.precomputed) +!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var y=v +function b(e,t){this.curve=e,this.type=t,this.precomputed=null}v.prototype.point=function(){throw new Error("Not implemented")},v.prototype.validate=function(){throw new Error("Not implemented")},v.prototype._fixedNafMul=function(e,t){m(e.precomputed) var r=e._getDoubles(),n=d(t,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+n[u] s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++ if(s>=0&&u++,a=a.dblp(u),s<0)break var c=o[s] -m(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},y.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,f=0 +m(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},v.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,f=0 for(o=0;o=1;o-=2){var m=o-1,y=o -if(1===u[m]&&1===u[y]){var v=[t[m],null,null,t[y]] -0===t[m].y.cmp(t[y].y)?(v[1]=t[m].add(t[y]),v[2]=t[m].toJ().mixedAdd(t[y].neg())):0===t[m].y.cmp(t[y].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[y]),v[2]=t[m].add(t[y].neg())):(v[1]=t[m].toJ().mixedAdd(t[y]),v[2]=t[m].toJ().mixedAdd(t[y].neg())) -var b=[-3,-1,-5,-7,0,7,5,1,3],g=p(r[m],r[y]) -for(f=Math.max(g[0].length,f),l[m]=new Array(f),l[y]=new Array(f),a=0;a=1;o-=2){var m=o-1,v=o +if(1===u[m]&&1===u[v]){var y=[t[m],null,null,t[v]] +0===t[m].y.cmp(t[v].y)?(y[1]=t[m].add(t[v]),y[2]=t[m].toJ().mixedAdd(t[v].neg())):0===t[m].y.cmp(t[v].y.redNeg())?(y[1]=t[m].toJ().mixedAdd(t[v]),y[2]=t[m].add(t[v].neg())):(y[1]=t[m].toJ().mixedAdd(t[v]),y[2]=t[m].toJ().mixedAdd(t[v].neg())) +var b=[-3,-1,-5,-7,0,7,5,1,3],g=p(r[m],r[v]) +for(f=Math.max(g[0].length,f),l[m]=new Array(f),l[v]=new Array(f),a=0;a=0;o--){for(var O=0;o>=0;){var E=!0 -for(a=0;a=0&&O++,x=x.dblp(O),o<0)break -for(a=0;a0?s=c[a][S-1>>1]:S<0&&(s=c[a][-S-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(o=0;o=0&&O++,k=k.dblp(O),o<0)break +for(a=0;a0?s=c[a][S-1>>1]:S<0&&(s=c[a][-S-1>>1].neg()),k="affine"===s.type?k.mixedAdd(s):k.add(s))}}for(o=0;o=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b) return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},_.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red)) @@ -13091,15 +14586,15 @@ return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},_.prototype.validate=funct var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b) return 0===r.redSqr().redISub(i).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(e){if(this.inf)return e +return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},x.prototype.inspect=function(){return this.isInfinity()?"":""},x.prototype.isInfinity=function(){return this.inf},x.prototype.add=function(e){if(this.inf)return e if(e.inf)return this if(this.eq(e))return this.dbl() if(this.neg().eq(e))return this.curve.point(null,null) @@ -13107,16 +14602,16 @@ if(0===this.x.cmp(e.x))return this.curve.point(null,null) var t=this.y.redSub(e.y) 0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm())) var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y) -return this.curve.point(r,n)},k.prototype.dbl=function(){if(this.inf)return this +return this.curve.point(r,n)},x.prototype.dbl=function(){if(this.inf)return this var e=this.y.redAdd(this.y) if(0===e.cmpn(0))return this.curve.point(null,null) var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y) -return this.curve.point(o,a)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r] -return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},k.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r] -return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},k.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},k.prototype.neg=function(e){if(this.inf)return this +return this.curve.point(o,a)},x.prototype.getX=function(){return this.x.fromRed()},x.prototype.getY=function(){return this.y.fromRed()},x.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},x.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r] +return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},x.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r] +return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},x.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},x.prototype.neg=function(e){if(this.inf)return this var t=this.curve.point(this.x,this.y.redNeg()) if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()} -t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(O,v.BasePoint),_.prototype.jpoint=function(e,t,r){return new O(this,e,t,r)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null) +t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},x.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(O,y.BasePoint),_.prototype.jpoint=function(e,t,r){return new O(this,e,t,r)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null) var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e) return this.curve.point(r,n)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(e){if(this.isInfinity())return e if(e.isInfinity())return this @@ -13135,17 +14630,17 @@ var t if(this.curve.zeroA||this.curve.threeA){var r=this for(t=0;t=0)return!1 if(r.redIAdd(i),0===this.x.cmp(r))return!0}},O.prototype.inspect=function(){return this.isInfinity()?"":""},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)} var E=u((function(e,t){var r=t -r.base=v,r.short=x,r.mont=null,r.edwards=null})),S=u((function(e,t){var r,n=t,i=h.assert +r.base=y,r.short=k,r.mont=null,r.edwards=null})),S=u((function(e,t){var r,n=t,i=h.assert function o(e){"short"===e.type?this.curve=new E.short(e):"edwards"===e.type?this.curve=new E.edwards(e):this.curve=new E.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t) return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]}) try{r=null.crash()}catch(e){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})})) @@ -13196,21 +14691,21 @@ e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest() for(var i=[];i.length"} -var R=h.assert +var A=h.assert +function j(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var R=j +j.fromPublic=function(e,t,r){return t instanceof j?t:new j(e,{pub:t,pubEnc:r})},j.fromPrivate=function(e,t,r){return t instanceof j?t:new j(e,{priv:t,privEnc:r})},j.prototype.validate=function(){var e=this.getPublic() +return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},j.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},j.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},j.prototype._importPrivate=function(e,t){this.priv=new i.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},j.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?A(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||A(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y)) +this.pub=this.ec.curve.decodePoint(e,t)},j.prototype.derive=function(e){return e.validate()||A(e.validate(),"public point not validated"),e.mul(this.priv).getX()},j.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},j.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},j.prototype.inspect=function(){return""} +var T=h.assert function C(e,t){if(e instanceof C)return e -this._importDER(e,t)||(R(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var I=C +this._importDER(e,t)||(T(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var I=C function N(){this.place=0}function D(e,t){var r=e[t.place++] if(!(128&r))return r var n=15&r if(0===n||n>4)return!1 for(var i=0,o=0,a=t.place;o>>=0 -return!(i<=127)&&(t.place=a,i)}function L(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3) for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255) e.push(t)}}C.prototype._importDER=function(e,t){e=h.toArray(e,t) @@ -13231,24 +14726,24 @@ var u=e.slice(r.place,s+r.place) if(0===a[0]){if(!(128&a[1]))return!1 a=a.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1 u=u.slice(1)}return this.r=new i.a(a),this.s=new i.a(u),this.recoveryParam=null,!0},C.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray() -for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=L(t),r=L(r);!(r[0]||128&r[1]);)r=r.slice(1) +for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=B(t),r=B(r);!(r[0]||128&r[1]);)r=r.slice(1) var n=[2] -B(n,t.length),(n=n.concat(t)).push(2),B(n,r.length) +L(n,t.length),(n=n.concat(t)).push(2),L(n,r.length) var i=n.concat(r),o=[48] -return B(o,i.length),o=o.concat(i),h.encode(o,e)} +return L(o,i.length),o=o.concat(i),h.encode(o,e)} var F=function(){throw new Error("unsupported")},U=h.assert function z(e){if(!(this instanceof z))return new z(e) -"string"==typeof e&&(U(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var H=z -z.prototype.keyPair=function(e){return new T(this,e)},z.prototype.keyFromPrivate=function(e,t){return T.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return T.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={}) +"string"==typeof e&&(U(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var q=z +z.prototype.keyPair=function(e){return new R(this,e)},z.prototype.keyFromPrivate=function(e,t){return R.fromPrivate(this,e,t)},z.prototype.keyFromPublic=function(e,t){return R.fromPublic(this,e,t)},z.prototype.genKeyPair=function(e){e||(e={}) for(var t=new M({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||F(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(r)) if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},z.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength() return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},z.prototype.sign=function(e,t,r,n){"object"===s(r)&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i.a(e,16)) for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),u=e.toArray("be",o),c=new M({hash:this.hash,entropy:a,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),l=this.n.sub(new i.a(1)),f=0;;f++){var h=n.k?n.k(f):new i.a(c.generate(this.n.byteLength())) if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(l)>=0)){var d=this.g.mul(h) if(!d.isInfinity()){var p=d.getX(),m=p.umod(this.n) -if(0!==m.cmpn(0)){var y=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e)) -if(0!==(y=y.umod(this.n)).cmpn(0)){var v=(d.getY().isOdd()?1:0)|(0!==p.cmp(m)?2:0) -return n.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),v^=1),new I({r:m,s:y,recoveryParam:v})}}}}}},z.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i.a(e,16)),r=this.keyFromPublic(r,n) +if(0!==m.cmpn(0)){var v=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e)) +if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==p.cmp(m)?2:0) +return n.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new I({r:m,s:v,recoveryParam:y})}}}}}},z.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i.a(e,16)),r=this.keyFromPublic(r,n) var o=(t=new I(t,"hex")).r,a=t.s if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1 if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1 @@ -13261,8 +14756,8 @@ var f=t.r.invm(o),h=o.sub(a).mul(f).umod(o),d=u.mul(f).umod(o) return this.g.mulAdd(h,s,d)},z.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new I(t,n)).recoveryParam)return t.recoveryParam for(var i=0;i<4;i++){var o try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")} -var q=u((function(e,t){var r=t -r.version="6.5.4",r.utils=h,r.rand=function(){throw new Error("unsupported")},r.curve=E,r.curves=S,r.ec=H,r.eddsa=null})).ec}).call(this,r(10))},function(e,t,r){(function(e,n,i){var o +var H=u((function(e,t){var r=t +r.version="6.5.4",r.utils=h,r.rand=function(){throw new Error("unsupported")},r.curve=E,r.curves=S,r.ec=q,r.eddsa=null})).ec}).call(this,r(11))},function(e,t,r){(function(e,n,i){var o function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} /** * [js-sha3]{@link https://github.com/emn178/js-sha3} @@ -13276,29 +14771,29 @@ var s="input is invalid type",u="object"===("undefined"==typeof window?"undefine c.JS_SHA3_NO_WINDOW&&(u=!1) var l=!u&&"object"===("undefined"==typeof self?"undefined":a(self)) !c.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":a(e))&&e.versions&&e.versions.node?c=n:l&&(c=self) -var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=r(101),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],y=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],g=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136} +var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=r(87),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],v=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],g=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136} !c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===a(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer}) -for(var x=function(e,t,r){return function(n){return new L(e,t,e).update(n)[r]()}},k=function(e,t,r){return function(n,i){return new L(e,t,i).update(n)[r]()}},O=function(e,t,r){return function(t,n,i,o){return j["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return j["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 -for(var n=0;n<50;++n)this.s[n]=0}function B(e,t,r){L.call(this,e,t,r)}L.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") +for(var k=function(e,t,r){return function(n){return new B(e,t,e).update(n)[r]()}},x=function(e,t,r){return function(n,i){return new B(e,t,i).update(n)[r]()}},O=function(e,t,r){return function(t,n,i,o){return A["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return A["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 +for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){B.call(this,e,t,r)}B.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") var t,r=a(e) if("string"!==r){if("object"!==r)throw new Error(s) if(null===e)throw new Error(s) if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) t=!0}for(var n,i,o=this.blocks,u=this.byteCount,c=e.length,l=this.blockCount,f=0,h=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n -return t?i.push(n):i.unshift(n),this.update(i),i.length},L.prototype.encodeString=function(e){var t,r=a(e) +return t?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(e){var t,r=a(e) if("string"!==r){if("object"!==r)throw new Error(s) if(null===e)throw new Error(s) if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) @@ -13306,97 +14801,56 @@ else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) t=!0}var n=0,i=e.length if(t)n=i else for(var o=0;o=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},L.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},B.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15] -a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},L.prototype.arrayBuffer=function(){this.finalize() +a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},B.prototype.arrayBuffer=function(){this.finalize() var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3 e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s) for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 -s%r==0&&F(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},B.prototype=new L,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),L.prototype.finalize.call(this)} -var F=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,y,b,g,w,_,x,k,O,E,S,P,M,j,A,T,R,C,I,N,D,L,B,F,U,z,H,q,V,W,Y,G,K,$,J,Z,Q,X,ee,te,re,ne,ie,oe,ae,se,ue,ce,le -for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,A=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,I=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S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i.exports=j -else{for(T=0;T1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},L.prototype=new B,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)} +var F=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,v,b,g,w,_,k,x,O,E,S,P,M,A,j,R,T,C,I,N,D,B,L,F,U,z,q,H,V,W,G,Y,K,J,$,Z,Q,X,ee,te,re,ne,ie,oe,ae,se,ue,ce,le +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],Y=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,I=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,O=e[49]<<14|e[48]>>>18,e[0]=p^~v&g,e[1]=m^~b&w,e[10]=E^~P&A,e[11]=S^~M&j,e[20]=N^~B&F,e[21]=D^~L&U,e[30]=W^~Y&J,e[31]=G^~K&$,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=v^~g&_,e[3]=b^~w&k,e[12]=P^~A&R,e[13]=M^~j&T,e[22]=B^~F&z,e[23]=L^~U&q,e[32]=Y^~J&Z,e[33]=K^~$&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=g^~_&x,e[5]=w^~k&O,e[14]=A^~R&C,e[15]=j^~T&I,e[24]=F^~z&H,e[25]=U^~q&V,e[34]=J^~Z&X,e[35]=$^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=_^~x&p,e[7]=k^~O&m,e[16]=R^~C&E,e[17]=T^~I&S,e[26]=z^~H&N,e[27]=q^~V&D,e[36]=Z^~X&W,e[37]=Q^~ee&G,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=x^~p&v,e[9]=O^~m&b,e[18]=C^~E&P,e[19]=I^~S&M,e[28]=H^~N&B,e[29]=V^~D&L,e[38]=X^~W&Y,e[39]=ee^~G&K,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=y[n],e[1]^=y[n+1]} +if(f)i.exports=A +else{for(R=0;Re.length)&&(t=e.length) -for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:{} -n(this,e) -var o=i.addresses,a=i.abis,s=i.ipfsConfig -this.provider=t,this.signer=r,this.options=i,this.addresses=o||{},this.abis=a||l,this.ipfs=new d(s),this.contracts={}}var t,r,a -return t=e,a=[{key:"setup",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null -return c("Kredits.setup() is deprecated use new Kredits().init() instead"),new e(t,r,{ipfsConfig:n}).init()}},{key:"for",value:function(t,r){var n,i,o=t.network,a=t.rpcUrl,u=t.wallet -return a||"local"!==o||(a="http://localhost:8545"),n=a?new s.providers.JsonRpcProvider(a):new s.getDefaultProvider(o),u?i=u.connect(n):n.getSigner&&(i=n.getSigner("0xfa77675540E550b911a6AABF3805ac17C6641ec1")),new e(n,i,r)}},{key:"availableNetworks",value:function(){return Object.keys(f)}}],(r=[{key:"init",value:function(){var e=this -return this.provider.getNetwork().then((function(t){return 0===Object.keys(e.addresses).length&&(e.addresses=f[t.chainId.toString()]),e}))}},{key:"Contributor",get:function(){return this.contractFor("Contributor")}},{key:"Contributors",get:function(){return c("Contributors is deprecated use Contributor instead"),this.contractFor("Contributor")}},{key:"Operator",get:function(){return this.Proposal}},{key:"Token",get:function(){return this.contractFor("Token")}},{key:"Contribution",get:function(){return this.contractFor("Contribution")}},{key:"Reimbursement",get:function(){return this.contractFor("Reimbursement")}},{key:"contractFor",value:function(e){if(this.contracts[e])return this.contracts[e] -var t,r,n,i=(r=(t=o(e))[0],n=t.slice(1),"".concat(r.toUpperCase()).concat(n.join(""))),a=this.addresses[i],u=this.abis[i] -if(!a||!u)throw new Error("Address or ABI not found for ".concat(i)) -var c=this.signer||this.provider,l=new s.Contract(a,u,c) -return this.contracts[e]=new h[i](l),this.contracts[e].ipfs=this.ipfs,this.contracts[e]}},{key:"preflightChecks",value:function(){return new u(this).check()}}])&&i(t.prototype,r),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}() -e.exports=p},,function(e,t,r){"use strict" -t.sha1=r(190),t.sha224=r(191),t.sha256=r(99),t.sha384=r(192),t.sha512=r(100)},function(e,t,r){"use strict" -var n=r(21),i=r(51),o=r(98),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782] -function h(){if(!(this instanceof h))return new h -l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,l),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] -for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize) -for(var t=e.length;tthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize) for(var t=e.length;te.length)&&(t=e.length) -for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:"filter" -return this.all().then((function(r){var n=Object.entries(e) -return r[t]((function(e){return!!e.accounts&&e.accounts.find((function(e){return n.every((function(t){var r=a(t,2),n=r[0],i=r[1] -return e[n]===i}))}))}))}))}},{key:"add",value:(n=o(regeneratorRuntime.mark((function e(t){var r,n,i,o=this,a=arguments -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},n=new v(t),e.prev=2,e.next=5,n.validate() -case 5:e.next=10 -break -case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0)) -case 10:return i=n.serialize(),e.abrupt("return",this.ipfs.add(i).then((function(e){var n,i=[t.account,e.hashDigest,e.hashFunction,e.hashSize] -return(n=o.contract).addContributor.apply(n,i.concat([r]))}))) -case 12:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(e){return n.apply(this,arguments)})},{key:"updateProfile",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{} -return this.getById(e).then(function(){var i=o(regeneratorRuntime.mark((function i(o){var a,s,u -return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=Object.assign(o,t),s=new v(a),i.prev=2,i.next=5,s.validate() -case 5:i.next=10 -break -case 7:return i.prev=7,i.t0=i.catch(2),i.abrupt("return",Promise.reject(i.t0)) -case 10:return u=s.serialize(),i.abrupt("return",r.ipfs.add(u).then((function(t){return r.contract.updateContributorProfileHash(e,t.hashDigest,t.hashFunction,t.hashSize,n)}))) -case 12:case"end":return i.stop()}}),i,null,[[2,7]])}))) -return function(e){return i.apply(this,arguments)}}())}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(y) -e.exports=g},function(e,t){function r(e,t,r){var n=Math.ceil(r/t) -return(e=(e=parseInt(e)||1)>n?n:e)<1?1:e}function n(e,t,r,n){var i,o,a=r*(t-1) -"asc"===e?(i=1+a,o=function(e,t){return i+t}):(i=n-a,o=function(e,t){return i-t}) -var s=a+r -return s>n&&(r-=s-n),Array.from({length:r},o)}e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.order,o=t.page -i=i||"desc",o=o||{} -var a=parseInt(o.size)||25,s=r(o.number,a,e) -return n(i,s,a,e)}},function(e,t,r){function n(e,t){for(var r=0;r0&&(t+=f.suffices["*"]&&r||",",f.suffices["*"]&&c&&(t+=f.name+"=")),t+=u?encodeURIComponent(h[p]).replace(/!/g,"%21"):s(h[p])}else if("object"===o(h)){c&&!f.suffices["*"]&&(t+=f.name+"=") var m=!0 -for(var y in h)m||(t+=f.suffices["*"]&&r||","),m=!1,t+=u?encodeURIComponent(y).replace(/!/g,"%21"):s(y),t+=f.suffices["*"]?"=":",",t+=u?encodeURIComponent(h[y]).replace(/!/g,"%21"):s(h[y])}else c&&(t+=f.name,l&&""===h||(t+="=")),null!=f.truncate&&(h=h.substring(0,f.truncate)),t+=u?encodeURIComponent(h).replace(/!/g,"%21"):s(h)}return t} +for(var v in h)m||(t+=f.suffices["*"]&&r||","),m=!1,t+=u?encodeURIComponent(v).replace(/!/g,"%21"):s(v),t+=f.suffices["*"]?"=":",",t+=u?encodeURIComponent(h[v]).replace(/!/g,"%21"):s(h[v])}else c&&(t+=f.name,l&&""===h||(t+="=")),null!=f.truncate&&(h=h.substring(0,f.truncate)),t+=u?encodeURIComponent(h).replace(/!/g,"%21"):s(h)}return t} return _.varNames=f,{prefix:n,substitution:_}}function c(e){if(!(this instanceof c))return new c(e) for(var t=e.split("{"),r=[t.shift()],n=[],i=[],o=[];t.length>0;){var a=t.shift(),s=a.split("}")[0],l=a.substring(s.length+1),f=u(s) i.push(f.substitution),n.push(f.prefix),r.push(l),o=o.concat(f.substitution.varNames)}this.fill=function(e){for(var t=r[0],n=0;n0&&"/"===t.charAt(e.length-1)||"#"===r.charAt(0)||"?"===r.charAt(0))return!0}return!1}(t,e.id)&&void 0===this.schemas[e.id]&&(this.schemas[e.id]=e),e)if("enum"!==n)if("object"===o(e[n]))this.searchSchemas(e[n],t) -else if("$ref"===n){var i=y(e[n]) +else if("$ref"===n){var i=v(e[n]) i&&void 0===this.schemas[i]&&void 0===this.missingMap[i]&&(this.missingMap[i]=i)}},l.prototype.addSchema=function(e,t){if("string"!=typeof e||void 0===t){if("object"!==o(e)||"string"!=typeof e.id)return -e=(t=e).id}e===y(e)+"#"&&(e=y(e)),this.schemas[e]=t,delete this.missingMap[e],v(t,e),this.searchSchemas(t,e)},l.prototype.getSchemaMap=function(){var e={} +e=(t=e).id}e===v(e)+"#"&&(e=v(e)),this.schemas[e]=t,delete this.missingMap[e],y(t,e),this.searchSchemas(t,e)},l.prototype.getSchemaMap=function(){var e={} for(var t in this.schemas)e[t]=this.schemas[t] return e},l.prototype.getSchemaUris=function(e){var t=[] for(var r in this.schemas)e&&!e.test(r)||t.push(r) @@ -13544,15 +14931,15 @@ return t},l.prototype.getMissingUris=function(e){var t=[] for(var r in this.missingMap)e&&!e.test(r)||t.push(r) return t},l.prototype.dropSchemas=function(){this.schemas={},this.reset()},l.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},l.prototype.validateAll=function(e,t,r,n,i){var a if(!(t=this.resolveRefs(t)))return null -if(t instanceof k)return this.errors.push(t),t +if(t instanceof x)return this.errors.push(t),t var s,u=this.errors.length,c=null,l=null if(this.checkRecursive&&e&&"object"===o(e)){if(a=!this.scanned.length,e[this.validatedSchemasKey]){var f=e[this.validatedSchemasKey].indexOf(t) if(-1!==f)return this.errors=this.errors.concat(e[this.validationErrorsKey][f]),null}if(Object.isFrozen(e)&&-1!==(s=this.scannedFrozen.indexOf(e))){var h=this.scannedFrozenSchemas[s].indexOf(t) if(-1!==h)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[s][h]),null}if(this.scanned.push(e),Object.isFrozen(e))-1===s&&(s=this.scannedFrozen.length,this.scannedFrozen.push(e),this.scannedFrozenSchemas.push([])),c=this.scannedFrozenSchemas[s].length,this.scannedFrozenSchemas[s][c]=t,this.scannedFrozenValidationErrors[s][c]=[] else{if(!e[this.validatedSchemasKey])try{Object.defineProperty(e,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(e,this.validationErrorsKey,{value:[],configurable:!0})}catch(t){e[this.validatedSchemasKey]=[],e[this.validationErrorsKey]=[]}l=e[this.validatedSchemasKey].length,e[this.validatedSchemasKey][l]=t,e[this.validationErrorsKey][l]=[]}}var d=this.errors.length,p=this.validateBasic(e,t,i)||this.validateNumeric(e,t,i)||this.validateString(e,t,i)||this.validateArray(e,t,i)||this.validateObject(e,t,i)||this.validateCombinations(e,t,i)||this.validateHypermedia(e,t,i)||this.validateFormat(e,t,i)||this.validateDefinedKeywords(e,t,i)||null if(a){for(;this.scanned.length;)delete this.scanned.pop()[this.validatedSchemasKey] -this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(p||d!==this.errors.length)for(;r&&r.length||n&&n.length;){var m=r&&r.length?""+r.pop():null,y=n&&n.length?""+n.pop():null -p&&(p=p.prefixWith(m,y)),this.prefixErrors(d,m,y)}return null!==c?this.scannedFrozenValidationErrors[s][c]=this.errors.slice(u):null!==l&&(e[this.validationErrorsKey][l]=this.errors.slice(u)),this.handleError(p)},l.prototype.validateFormat=function(e,t){if("string"!=typeof t.format||!this.formatValidators[t.format])return null +this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(p||d!==this.errors.length)for(;r&&r.length||n&&n.length;){var m=r&&r.length?""+r.pop():null,v=n&&n.length?""+n.pop():null +p&&(p=p.prefixWith(m,v)),this.prefixErrors(d,m,v)}return null!==c?this.scannedFrozenValidationErrors[s][c]=this.errors.slice(u):null!==l&&(e[this.validationErrorsKey][l]=this.errors.slice(u)),this.handleError(p)},l.prototype.validateFormat=function(e,t){if("string"!=typeof t.format||!this.formatValidators[t.format])return null var r=this.formatValidators[t.format].call(null,e,t) return"string"==typeof r||"number"==typeof r?this.createError(g.FORMAT_CUSTOM,{message:r},"","/format",null,e,t):r&&"object"===o(r)?this.createError(g.FORMAT_CUSTOM,{message:r.message||"?"},r.dataPath||"",r.schemaPath||"/format",null,e,t):null},l.prototype.validateDefinedKeywords=function(e,t,r){for(var n in this.definedKeywords)if(void 0!==t[n])for(var i=this.definedKeywords[n],a=0;a 10000") -if(void 0!==g[e])throw new Error("Error already defined: "+e+" as "+g[e]) -if(void 0!==w[t])throw new Error("Error code already used: "+w[t]+" as "+t) -for(var n in g[e]=t,w[t]=e,x[e]=x[t]=r,O){var i=O[n] -i[e]&&(i[t]=i[t]||i[e])}},reset:function(){i.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:v,resolveUrl:m,getDocumentUri:y,errorCodes:g} -return o.language(t||"en"),o}() -return E.addLanguage("en-gb",x),E.tv4=E,E})?n.apply(t,[]):n)||(e.exports=i)},function(e,t,r){var n=r(95).utils -e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.formatEther(e) -return t.asFloat?parseFloat(r):parseInt(r)}},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e){return function(){var t=this,r=arguments -return new Promise((function(n,o){var a=e.apply(t,r) -function s(e){i(a,n,o,s,u,"next",e)}function u(e){i(a,n,o,s,u,"throw",e)}s(void 0)}))}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r1&&void 0!==a[1]?a[1]:{},n=new d(t),e.prev=2,e.next=5,n.validate() -case 5:e.next=10 -break -case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0)) -case 10:return i=n.serialize(),e.abrupt("return",this.ipfs.add(i).then((function(e){var n,i=[t.amount,t.contributorId,e.hashDigest,e.hashFunction,e.hashSize] -return(n=o.contract).add.apply(n,i.concat([0,!1,r]))}))) -case 12:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(e){return n.apply(this,arguments)})},{key:"addContribution",value:function(){return p("The function `addContribution()` is deprecated and will be removed in the next major version. Use `add()` instead"),this.add.apply(this,arguments)}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),l}(h) -e.exports=m},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r1&&void 0!==a[1]?a[1]:{},n=new h(t),e.prev=2,e.next=5,n.validate() -case 5:e.next=10 -break -case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0)) -case 10:return i=n.serialize(),e.abrupt("return",this.ipfs.add(i).then((function(e){var n,i=[t.contributorId,t.amount,e.hashDigest,e.hashFunction,e.hashSize] -return(n=o.contract).addProposal.apply(n,i.concat([r]))}))) -case 12:case"end":return e.stop()}}),e,this,[[2,7]])})),c=function(){var e=this,t=arguments -return new Promise((function(r,o){var a=n.apply(e,t) -function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)}))},function(e){return c.apply(this,arguments)})},{key:"addProposal",value:function(){return d("The function `addProposal()` is deprecated and will be removed in the next major version. Use `add()` instead"),this.add.apply(this,arguments)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(f) -e.exports=p},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 -if(Reflect.construct.sham)return!1 -if("function"==typeof Proxy)return!0 -try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() -return function(){var r,n=u(e) -if(t){var i=u(this).constructor -r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) -return s(this,r)}}function s(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t -if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined") -return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") -return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") -e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)}(n,e) -var t,r=a(n) -function n(){return i(this,n),r.apply(this,arguments)}return t=n,Object.defineProperty(t,"prototype",{writable:!1}),t}(r(106)) -e.exports=c},function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r1&&void 0!==c[1]?c[1]:{},n=parseInt(t.amount),i=t.token,o=t.recipientId,a=t.expenses.map((function(e){return new h(e)})),("number"!=typeof n||n<=0)&&(s="Invalid data: amount must be a positive number."),i&&""!==i||(s="Invalid data: token must be a token address."),o&&""!==o||(s="Invalid data: recipientId is required."),0===a.length&&(s="Invalid data: at least one expense item is required."),!s){e.next=11 -break}return e.abrupt("return",Promise.reject(new Error(s))) -case 11:return e.abrupt("return",Promise.all(a.map((function(e){return e.validate()}))).then((function(){var e=JSON.stringify(a.map((function(e){return e.data})),null,2) -return u.ipfs.add(e).then((function(e){var t,a=[n,i,parseInt(o),e.hashDigest,e.hashFunction,e.hashSize] -return(t=u.contract).add.apply(t,a.concat([r]))}))}))) -case 12:case"end":return e.stop()}}),e)})),c=function(){var e=this,t=arguments -return new Promise((function(r,o){var a=n.apply(e,t) -function s(e){i(a,r,o,s,u,"next",e)}function u(e){i(a,r,o,s,u,"throw",e)}s(void 0)}))},function(e){return c.apply(this,arguments)})}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),f}(f) -e.exports=d},function(e,t,r){function n(e,t){for(var r=0;r 10000") +if(void 0!==g[e])throw new Error("Error already defined: "+e+" as "+g[e]) +if(void 0!==w[t])throw new Error("Error code already used: "+w[t]+" as "+t) +for(var n in g[e]=t,w[t]=e,k[e]=k[t]=r,O){var i=O[n] +i[e]&&(i[t]=i[t]||i[e])}},reset:function(){i.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:y,resolveUrl:m,getDocumentUri:v,errorCodes:g} +return o.language(t||"en"),o}() +return E.addLanguage("en-gb",k),E.tv4=E,E})?n.apply(t,[]):n)||(e.exports=i)},,,,,,,,function(e,t,r){"use strict" t.byteLength=function(e){var t=c(e),r=t[0],n=t[1] return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=c(e),a=n[0],s=n[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t @@ -13830,16 +15065,16 @@ else{if(o===u)return a?NaN:1/0*(d?-1:1) a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?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,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*m}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var i=r(226),o=r(227),a=r(228),s=r(229),u=r(235),c=r(238),l=r(242),f=r(120),h=r(121),d=r(255),p=r(282),m=r(306),y=r(312),v=r(320),b=r(327),g=r(335),w=r(339),_=r(351),x=r(359),k=r(363),O=r(370),E=r(382),S=r(395),P=r(402),M=r(404),j=r(407),A=r(409),T=r(415),R=r(145),C=r(420),I=r(421),N=r(422),D=r(423),L=r(424),B=r(146),F=r(425),U=r(426),z=r(427),H=r(428),q=r(429),V=r(430),W=r(431),Y=r(432),G=r(433),K=r(5),$=r(14),J=r(434) +var i=r(248),o=r(249),a=r(250),s=r(251),u=r(257),c=r(260),l=r(264),f=r(132),h=r(133),d=r(277),p=r(304),m=r(328),v=r(334),y=r(342),b=r(349),g=r(357),w=r(361),_=r(373),k=r(381),x=r(385),O=r(392),E=r(404),S=r(417),P=r(424),M=r(426),A=r(429),j=r(431),R=r(437),T=r(158),C=r(442),I=r(443),N=r(444),D=r(445),B=r(446),L=r(159),F=r(447),U=r(448),z=r(449),q=r(450),H=r(451),V=r(452),W=r(453),G=r(454),Y=r(455),K=r(7),J=r(19),$=r(456) function Z(e){return e&&"object"===n(e)&&"default"in e?e:{default:e}}function Q(e){if(e&&e.__esModule)return e var t=Object.create(null) return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r) -Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var X=Q(s),ee=Q(u),te=Q(c),re=Q(l),ne=Z(G),ie=Z(J),oe=ne.default -Object.defineProperty(t,"CID",{enumerable:!0,get:function(){return K.CID}}),Object.defineProperty(t,"multiaddr",{enumerable:!0,get:function(){return $.Multiaddr}}),Object.defineProperty(t,"urlSource",{enumerable:!0,get:function(){return ie.default}}),t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={name:f.identity.name,code:f.identity.code,encode:function(e){return e},decode:function(e){return e}},r=Object.values(h.bases);(e.ipld&&e.ipld.bases?e.ipld.bases:[]).forEach((function(e){return r.push(e)})) +Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var X=Q(s),ee=Q(u),te=Q(c),re=Q(l),ne=Z(Y),ie=Z($),oe=ne.default +Object.defineProperty(t,"CID",{enumerable:!0,get:function(){return K.CID}}),Object.defineProperty(t,"multiaddr",{enumerable:!0,get:function(){return J.Multiaddr}}),Object.defineProperty(t,"urlSource",{enumerable:!0,get:function(){return ie.default}}),t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={name:f.identity.name,code:f.identity.code,encode:function(e){return e},decode:function(e){return e}},r=Object.values(h.bases);(e.ipld&&e.ipld.bases?e.ipld.bases:[]).forEach((function(e){return r.push(e)})) var n=new i.Multibases({bases:r,loadBase:e.ipld&&e.ipld.loadBase}),s=Object.values(h.codecs);[X,ee,te,re,t].concat(e.ipld&&e.ipld.codecs||[]).forEach((function(e){return s.push(e)})) var u=new o.Multicodecs({codecs:s,loadCodec:e.ipld&&e.ipld.loadCodec}),c=Object.values(h.hashes);(e.ipld&&e.ipld.hashers?e.ipld.hashers:[]).forEach((function(e){return c.push(e)})) -var l=new a.Multihashes({hashers:c,loadHasher:e.ipld&&e.ipld.loadHasher}),G={add:T.createAdd(e),addAll:R.createAddAll(e),bitswap:d.createBitswap(e),block:p.createBlock(e),bootstrap:m.createBootstrap(e),cat:C.createCat(e),commands:I.createCommands(e),config:y.createConfig(e),dag:v.createDag(u,e),dht:b.createDht(e),diag:g.createDiag(e),dns:N.createDns(e),files:w.createFiles(e),get:L.createGet(e),getEndpointConfig:D.createGetEndpointConfig(e),id:B.createId(e),isOnline:F.createIsOnline(e),key:_.createKey(e),log:x.createLog(e),ls:U.createLs(e),mount:z.createMount(e),name:k.createName(e),object:O.createObject(u,e),pin:E.createPin(e),ping:H.createPing(e),pubsub:S.createPubsub(e),refs:P.createRefs(e),repo:M.createRepo(e),resolve:q.createResolve(e),start:V.createStart(e),stats:j.createStats(e),stop:W.createStop(e),swarm:A.createSwarm(e),version:Y.createVersion(e),bases:n,codecs:u,hashers:l} -return G},t.globSource=oe},function(e,t,r){"use strict" +var l=new a.Multihashes({hashers:c,loadHasher:e.ipld&&e.ipld.loadHasher}),Y={add:R.createAdd(e),addAll:T.createAddAll(e),bitswap:d.createBitswap(e),block:p.createBlock(e),bootstrap:m.createBootstrap(e),cat:C.createCat(e),commands:I.createCommands(e),config:v.createConfig(e),dag:y.createDag(u,e),dht:b.createDht(e),diag:g.createDiag(e),dns:N.createDns(e),files:w.createFiles(e),get:B.createGet(e),getEndpointConfig:D.createGetEndpointConfig(e),id:L.createId(e),isOnline:F.createIsOnline(e),key:_.createKey(e),log:k.createLog(e),ls:U.createLs(e),mount:z.createMount(e),name:x.createName(e),object:O.createObject(u,e),pin:E.createPin(e),ping:q.createPing(e),pubsub:S.createPubsub(e),refs:P.createRefs(e),repo:M.createRepo(e),resolve:H.createResolve(e),start:V.createStart(e),stats:A.createStats(e),stop:W.createStop(e),swarm:j.createSwarm(e),version:G.createVersion(e),bases:n,codecs:u,hashers:l} +return Y},t.globSource=oe},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) @@ -13918,7 +15153,7 @@ return new Promise((function(r,i){var a=o.apply(e,t) function s(e){n(a,r,i,s,u,"next",e)}function u(e){n(a,r,i,s,u,"throw",e)}s(void 0)}))},function(e){return u.apply(this,arguments)})},{key:"listHashers",value:function(){return Object.values(this._hashersByName)}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}() t.Multihashes=u},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(5),i=r(232),o=r(233),a=r(234) +var n=r(7),i=r(254),o=r(255),a=r(256) t.createLink=a.createLink,t.createNode=a.createNode,t.prepare=a.prepare,t.validate=a.validate,t.code=112,t.decode=function(e){var t=i.decodeNode(e),r={} return t.Data&&(r.Data=t.Data),t.Links&&(r.Links=t.Links.map((function(e){var t={} try{t.Hash=n.CID.decode(e.Hash)}catch(e){}if(!t.Hash)throw new Error("Invalid Hash field found in link, expected CID") @@ -14000,8 +15235,8 @@ if(a)throw new Error("protobuf: (PBNode) duplicate Links section") t||(t=[]) var p,m=n(s(e,o),2) p=m[0],o=m[1],t.push(c(p))}}if(o>i)throw new Error("protobuf: (PBNode) unexpected end of data") -var y={} -return r&&(y.Data=r),y.Links=t||[],y}},function(e,t,r){"use strict" +var v={} +return r&&(v.Data=r),v.Links=t||[],v}},function(e,t,r){"use strict" function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"] if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) @@ -14032,7 +15267,7 @@ t+=1+a+f(a)}}catch(e){o.e(e)}finally{o.f()}}return t}(e),r=new Uint8Array(t),i=t if(e.Data&&(i-=e.Data.length,r.set(e.Data,i),r[i=l(r,i,e.Data.length)-1]=10),e.Links)for(var o=e.Links.length-1;o>=0;o--){var a=u(e.Links[o],r.subarray(0,i)) r[i=l(r,i-=a,a)-1]=18}return r}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var i=r(5),o=["Data","Links"],a=["Hash","Name","Tsize"],s=new TextEncoder +var i=r(7),o=["Data","Links"],a=["Hash","Name","Tsize"],s=new TextEncoder function u(e,t){if(e===t)return 0 for(var r=e.Name?s.encode(e.Name):[],n=t.Name?s.encode(t.Name):[],i=r.length,o=n.length,a=0,u=Math.min(i,o);a0&&-1===u(r,e.Links[t-1]))throw new TypeError("Invalid DAG-PB form (links must be sorted by Name bytes)")}}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(76),i=r(5) +var n=r(92),i=r(7) var o=function(e){if(e&&e.__esModule)return e var t=Object.create(null) return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r) @@ -14084,7 +15319,7 @@ return i.includes(t)?t:"function"===t?"Function":Array.isArray(e)?"Array":functi if(o.includes(t))return t}(e)||"Object"}},function(e,t,r){"use strict" function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:256 +var o=r(41),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:256 n(this,e),this.chunkSize=t,this.cursor=0,this.maxCursor=-1,this.chunks=[],this._initReuseChunk=null}var t,r return t=e,(r=[{key:"reset",value:function(){this.cursor=0,this.maxCursor=-1,this.chunks.length&&(this.chunks=[]),null!==this._initReuseChunk&&(this.chunks.push(this._initReuseChunk),this.maxCursor=this._initReuseChunk.length-1)}},{key:"push",value:function(e){var t=this.chunks[this.chunks.length-1] if(this.cursor+e.length<=this.maxCursor+1){var r=t.length-(this.maxCursor-this.cursor)-1 @@ -14108,19 +15343,19 @@ return c(this,r)}}function c(e,t){if(t&&("object"===n(t)||"function"==typeof t)) if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined") return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var f=r(118),h=r(61),d=r(76) +var f=r(130),h=r(73),d=r(92) var p=function(e){if(e&&e.__esModule)return e var t=Object.create(null) return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r) -Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}(r(239)) +Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}(r(261)) function m(e){var t=h.base64.encode(e).slice(1) -return[new d.Token(d.Type.map,1/0,1),new d.Token(d.Type.string,"/",1),new d.Token(d.Type.map,1/0,1),new d.Token(d.Type.string,"bytes",5),new d.Token(d.Type.string,t,t.length),new d.Token(d.Type.break,void 0,1),new d.Token(d.Type.break,void 0,1)]}var y={typeEncoders:{Object:function(e){if(e.asCID!==e)return null +return[new d.Token(d.Type.map,1/0,1),new d.Token(d.Type.string,"/",1),new d.Token(d.Type.map,1/0,1),new d.Token(d.Type.string,"bytes",5),new d.Token(d.Type.string,t,t.length),new d.Token(d.Type.break,void 0,1),new d.Token(d.Type.break,void 0,1)]}var v={typeEncoders:{Object:function(e){if(e.asCID!==e)return null var t=f.CID.asCID(e) if(!t)return null var r=t.toString() return[new d.Token(d.Type.map,1/0,1),new d.Token(d.Type.string,"/",1),new d.Token(d.Type.string,r,r.length),new d.Token(d.Type.break,void 0,1)]},Uint8Array:m,Buffer:m,undefined:function(){throw new Error("`undefined` is not supported by the IPLD Data Model and cannot be encoded")},number:function(e){if(Number.isNaN(e))throw new Error("`NaN` is not supported by the IPLD Data Model and cannot be encoded") if(e===1/0||e===-1/0)throw new Error("`Infinity` and `-Infinity` is not supported by the IPLD Data Model and cannot be encoded") -return null}}},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +return null}}},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(a,e) var t,r,n=u(a) function a(e,t){var r @@ -14133,10 +15368,10 @@ if(n.type===d.Type.string&&"bytes"===n.value){var i=this._next() if(i.type===d.Type.string){for(var o=0;o<2;o++)if(this._next().type!==d.Type.break)throw new Error("Invalid encoded Bytes form") var a=h.base64.decode("m".concat(i.value)) return new d.Token(d.Type.bytes,a,i.value.length)}this.tokenBuffer.push(i)}this.tokenBuffer.push(n)}this.tokenBuffer.push(r)}this.tokenBuffer.push(t)}return e}}])&&i(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(p.Tokenizer),b={allowIndefinite:!1,allowUndefined:!1,allowNaN:!1,allowInfinity:!1,allowBigInt:!0,strict:!0,useMaps:!1,tags:[]} -b.tags[42]=f.CID.parse,t.code=297,t.decode=function(e){var t=Object.assign(b,{tokenizer:new v(e,b)}) -return p.decode(e,t)},t.encode=function(e){return p.encode(e,y)},t.name="dag-json"},function(e,t,r){"use strict" +b.tags[42]=f.CID.parse,t.code=297,t.decode=function(e){var t=Object.assign(b,{tokenizer:new y(e,b)}) +return p.decode(e,t)},t.encode=function(e){return p.encode(e,v)},t.name="dag-json"},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(240),i=r(241) +var n=r(262),i=r(263) t.encode=n.encode,t.Tokenizer=i.Tokenizer,t.decode=i.decode},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r32?p.asU8A(r):r)}},{key:s,value:function(e,t){this.prefix(e),this.inRecursive.push({type:f.Type.array,elements:0}),e.push([91])}},{key:h,value:function(e,t){this.prefix(e),this.inRecursive.push({type:f.Type.map,elements:0}),e.push([123])}},{key:m,value:function(e,t){}},{key:y,value:function(e,t){if("break"===t.type.name){var r=this.inRecursive.pop() +e.push(r.length>32?p.asU8A(r):r)}},{key:s,value:function(e,t){this.prefix(e),this.inRecursive.push({type:f.Type.array,elements:0}),e.push([91])}},{key:h,value:function(e,t){this.prefix(e),this.inRecursive.push({type:f.Type.map,elements:0}),e.push([123])}},{key:m,value:function(e,t){}},{key:v,value:function(e,t){if("break"===t.type.name){var r=this.inRecursive.pop() if(r){if(r.type===f.Type.array)e.push([93]) else{if(r.type!==f.Type.map)throw new Error("Unexpected recursive type; this should not happen!") e.push([125])}return}throw new Error("Unexpected break; this should not happen!")}if(void 0===t.value)throw new Error("".concat(d.encodeErrPrefix," unsupported type: undefined")) if(this.prefix(e),"true"!==t.type.name)if("false"!==t.type.name)if("null"!==t.type.name){for(var n=String(t.value),i=[],o=!1,a=0;an)return 1 throw new Error("".concat(d.encodeErrPrefix," unexpected duplicate map keys, this is not supported"))}} -t.encode=function(e,t){return t=Object.assign({},y,t),h.encodeCustom(e,new m,t)}},function(e,t,r){"use strict" +t.encode=function(e,t){return t=Object.assign({},v,t),h.encodeCustom(e,new m,t)}},function(e,t,r){"use strict" function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t) var r=Object.prototype.toString.call(e).slice(8,-1) return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{} +var s=r(129),u=r(18),c=r(41),l=r(24),f=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} o(this,e),this.pos=0,this.data=t,this.options=r,this.modeStack=["value"],this.lastToken=""}var t,r return t=e,(r=[{key:"done",value:function(){return this.pos>=this.data.length}},{key:"ch",value:function(){return this.data[this.pos]}},{key:"currentMode",value:function(){return this.modeStack[this.modeStack.length-1]}},{key:"skipWhitespace",value:function(){for(var e=this.ch();32===e||9===e||13===e||10===e;)e=this.data[++this.pos]}},{key:"expect",value:function(e){if(this.data.length-this.pose.length)&&(t=e.length) for(var r=0,n=new Array(t);re.length)&&(t=e.length) for(var r=0,n=new Array(t);r0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("bitswap/wantlist",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return t.next=5,t.sent.json() case 5:return n=t.sent,t.abrupt("return",(n.Keys||[]).map((function(e){return o.CID.parse(e["/"])}))) case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createWantlist=u},function(e,t,r){"use strict" -var n=r(258),i=r(80),o=r(81),a=r(82).concat,s=r(31).toString +var n=r(280),i=r(96),o=r(97),a=r(98).concat,s=r(40).toString function u(e){var t=[],r=e.split("/").slice(1) if(1===r.length&&""===r[0])return[] for(var n=0;n1&&t.push(e[1]),null})),b(t.join("/"))}function l(e){return e.map((function(e){Array.isArray(e)||(e=[e]) var t=w(e) return e.length>1?[t.code,n.toBytes(t.code,e[1])]:[t.code]}))}function f(e){return e.map((function(e){var t=w(e) -return e[1]?[t.code,n.toString(t.code,e[1])]:[t.code]}))}function h(e){return y(a(e.map((function(e){var t=w(e),r=Uint8Array.from(o.encode(t.code)) +return e[1]?[t.code,n.toString(t.code,e[1])]:[t.code]}))}function h(e){return v(a(e.map((function(e){var t=w(e),r=Uint8Array.from(o.encode(t.code)) return e.length>1&&(r=a([r,e[1]])),r}))))}function d(e,t){return e.size>0?e.size/8:0===e.size?0:o.decode(t)+o.decode.bytes}function p(e){for(var t=[],r=0;re.length)throw g("Invalid address Uint8Array: "+s(e,"base16")) -t.push([n,c])}else t.push([n]),r+=a}return t}function m(e){return h(l(u(e=b(e))))}function y(e){var t=v(e) +t.push([n,c])}else t.push([n]),r+=a}return t}function m(e){return h(l(u(e=b(e))))}function v(e){var t=y(e) if(t)throw t -return Uint8Array.from(e)}function v(e){try{p(e)}catch(e){return e}}function b(e){return"/"+e.trim().split("/").filter((function(e){return e})).join("/")}function g(e){return new Error("Error parsing address: "+e)}function w(e){return i(e[0])}e.exports={stringToStringTuples:u,stringTuplesToString:c,tuplesToStringTuples:f,stringTuplesToTuples:l,bytesToTuples:p,tuplesToBytes:h,bytesToString:function(e){return c(f(p(e)))},stringToBytes:m,fromString:function(e){return m(e)},fromBytes:y,validateBytes:v,isValidBytes:function(e){return void 0===v(e)},cleanPath:b,ParseError:g,protoFromTuple:w,sizeForAddr:d}},function(e,t,r){"use strict" -var n=r(259),i=r(80),o=r(5).CID,a=r(75).base32,s=r(60).base58btc,u=r(40),c=r(81),l=r(31).toString,f=r(34).fromString,h=r(82).concat +return Uint8Array.from(e)}function y(e){try{p(e)}catch(e){return e}}function b(e){return"/"+e.trim().split("/").filter((function(e){return e})).join("/")}function g(e){return new Error("Error parsing address: "+e)}function w(e){return i(e[0])}e.exports={stringToStringTuples:u,stringTuplesToString:c,tuplesToStringTuples:f,stringTuplesToTuples:l,bytesToTuples:p,tuplesToBytes:h,bytesToString:function(e){return c(f(p(e)))},stringToBytes:m,fromString:function(e){return m(e)},fromBytes:v,validateBytes:y,isValidBytes:function(e){return void 0===y(e)},cleanPath:b,ParseError:g,protoFromTuple:w,sizeForAddr:d}},function(e,t,r){"use strict" +var n=r(281),i=r(96),o=r(7).CID,a=r(91).base32,s=r(72).base58btc,u=r(48),c=r(97),l=r(40).toString,f=r(42).fromString,h=r(98).concat function d(e,t){return t instanceof Uint8Array?d.toString(e,t):d.toBytes(e,t)}function p(e){var t=new ArrayBuffer(2) return new DataView(t).setUint16(0,e),new Uint8Array(t)}function m(e){return new DataView(e.buffer).getUint16(e.byteOffset)}e.exports=d,d.toString=function(e,t){switch(i(e).code){case 4:case 41:return function(e){var t=n.toString(e) if(!t||!n.isIP(t))throw new Error("invalid ip address") @@ -14416,7 +15651,7 @@ if(n<1||n>65536)throw new Error("Port number is not in range(1, 65536)") var i=p(n) return h([r,i],r.length+i.length)}(t) default:return f(t,"base16")}}},function(e,t,r){"use strict" -var n=r(260),i=r(31).toString,o=n,a=n.v4,s=n.v6 +var n=r(282),i=r(40).toString,o=n,a=n.v4,s=n.v6 e.exports={isIP:o,isV4:a,isV6:s,toBytes:function e(t,r,n){var o if(n=~~n,a(t))o=r||new Uint8Array(n+4),t.split(/\./g).map((function(e){o[n++]=255&parseInt(e,10)})) else if(s(t)){var u,c=t.split(":",8) @@ -14432,7 +15667,7 @@ var n,i=[],o=new DataView(e.buffer) if(4===r){for(var a=0;aNumber.MAX_SAFE_INTEGER)throw e.bytes=0,new RangeError("Could not encode varint") @@ -14448,8 +15683,7 @@ e.exports=function(e){return e=0}}).call(this,r(8))},function(e,t,r){"use strict" +return!0}},function(e,t,r){(function(t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){return"undefined"!=typeof window&&"object"===r(window.process)&&"renderer"===window.process.type||!(void 0===t||"object"!==r(t.versions)||!t.versions.electron)||"object"===("undefined"==typeof navigator?"undefined":r(navigator))&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}}).call(this,r(12))},function(e,t,r){"use strict" r.r(t) let n=/(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([\p{L}]*)/giu function i(e="",t="ms"){var r=null @@ -14477,7 +15711,7 @@ for(r=0;r=1.5*r return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{} @@ -14517,43 +15751,44 @@ return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r var r=Object.prototype.toString.call(e).slice(8,-1) return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length) for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{},r=new XMLHttpRequest +return n}var d=r(137),p=d.TimeoutError,m=d.AbortError,v=r(293),y=v.Response,b=v.Request,g=v.Headers,w=v.default,_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new XMLHttpRequest r.open(t.method||"GET",e.toString(),!0) var n=t.timeout,i=t.headers if(n&&n>0&&n<1/0&&(r.timeout=n),null!=t.overrideMimeType&&r.overrideMimeType(t.overrideMimeType),i){var o,a=l(new g(i)) try{for(a.s();!(o=a.n()).done;){var s=c(o.value,2),u=s[0],f=s[1] -r.setRequestHeader(u,f)}}catch(e){a.e(e)}finally{a.f()}}return t.signal&&(t.signal.onabort=function(){return r.abort()}),t.onUploadProgress&&(r.upload.onprogress=t.onUploadProgress),r.responseType="arraybuffer",new Promise((function(e,n){var i=function(t){switch(t.type){case"error":e(v.error()) +r.setRequestHeader(u,f)}}catch(e){a.e(e)}finally{a.f()}}return t.signal&&(t.signal.onabort=function(){return r.abort()}),t.onUploadProgress&&(r.upload.onprogress=t.onUploadProgress),r.responseType="arraybuffer",new Promise((function(e,n){var i=function(t){switch(t.type){case"error":e(y.error()) break -case"load":e(new O(r.responseURL,r.response,{status:r.status,statusText:r.statusText,headers:k(r.getAllResponseHeaders())})) +case"load":e(new O(r.responseURL,r.response,{status:r.status,statusText:r.statusText,headers:x(r.getAllResponseHeaders())})) break case"timeout":n(new p) break case"abort":n(new m)}} -r.onerror=i,r.onload=i,r.ontimeout=i,r.onabort=i,r.send(t.body)}))},x=w,k=function(e){var t,r=new g,n=l(e.trim().split(/[\r\n]+/)) +r.onerror=i,r.onload=i,r.ontimeout=i,r.onabort=i,r.send(t.body)}))},k=w,x=function(e){var t,r=new g,n=l(e.trim().split(/[\r\n]+/)) try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.indexOf(": ") o>0&&r.set(i.slice(0,o),i.slice(o+1))}}catch(e){n.e(e)}finally{n.f()}return r},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(n,e) var t,r=o(n) function n(e,t,i){var o -return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o=r.call(this,t,i),Object.defineProperty(s(o),"url",{value:e}),o}return t=n,Object.defineProperty(t,"prototype",{writable:!1}),t}(v) +return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o=r.call(this,t,i),Object.defineProperty(s(o),"url",{value:e}),o}return t=n,Object.defineProperty(t,"prototype",{writable:!1}),t}(y) e.exports={fetch:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{} -return null!=t.onUploadProgress?_(e,t):x(e,t)},Request:b,Headers:g}},function(e,t,r){"use strict" -e.exports=r(273)},function(e,t,r){"use strict" -globalThis.fetch&&globalThis.Headers&&globalThis.Request&&globalThis.Response?e.exports={default:globalThis.fetch,Headers:globalThis.Headers,Request:globalThis.Request,Response:globalThis.Response}:e.exports={default:r(53).default,Headers:r(53).Headers,Request:r(53).Request,Response:r(53).Response}},function(e,t,r){"use strict" +return null!=t.onUploadProgress?_(e,t):k(e,t)},Request:b,Headers:g}},function(e,t,r){"use strict" +var n=r(135).isElectronMain +e.exports=r(n?294:295)},,function(e,t,r){"use strict" +globalThis.fetch&&globalThis.Headers&&globalThis.Request&&globalThis.Response?e.exports={default:globalThis.fetch,Headers:globalThis.Headers,Request:globalThis.Request,Response:globalThis.Response}:e.exports={default:r(63).default,Headers:r(63).Headers,Request:r(63).Request,Response:r(63).Response}},function(e,t,r){"use strict" e.exports=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1 var t=Object.getPrototypeOf(e) return null===t||t===Object.prototype}},function(e,t,r){"use strict" -var n=r(126),i=n.URLWithLegacySupport,o=n.format,a=n.URLSearchParams,s=n.defaultBase,u=r(276) +var n=r(139),i=n.URLWithLegacySupport,o=n.format,a=n.URLSearchParams,s=n.defaultBase,u=r(298) e.exports={URL:i,URLSearchParams:a,format:o,relative:u,defaultBase:s}},function(e,t,r){"use strict" -var n=r(126),i=n.URLWithLegacySupport,o=n.format +var n=r(139),i=n.URLWithLegacySupport,o=n.format e.exports=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,s=r.protocol?r.protocol.replace(":",""):"http" s=(n[s]||a||s)+":" try{t=new i(e)}catch(e){t={}}var u=Object.assign({},r,{protocol:s||t.protocol,host:r.host||t.host}) return new i(e,o(u)).toString()}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var i=r(14) -var o=function(e){return e&&"object"===n(e)&&"default"in e?e:{default:e}}(r(278)) -t.toUrlString=function(e){try{e=o.default(new i.Multiaddr(e))}catch(e){}return e.toString()}},function(e,t,r){var n=r(14).Multiaddr,i=function(e,t){return t},o={ip4:i,ip6:function(e,t,r,n){return 1===n.length&&"ip6"===n[0].protocol?t:"[".concat(t,"]")},tcp:function(e,t,r,n,i){return n.some((function(e){return["http","https","ws","wss"].includes(e.protocol)}))?"".concat(e,":").concat(t):function(e,t,r,n){if(n&&!1===n.assumeHttp)return"tcp://".concat(e,":").concat(t) +var i=r(19) +var o=function(e){return e&&"object"===n(e)&&"default"in e?e:{default:e}}(r(300)) +t.toUrlString=function(e){try{e=o.default(new i.Multiaddr(e))}catch(e){}return e.toString()}},function(e,t,r){var n=r(19).Multiaddr,i=function(e,t){return t},o={ip4:i,ip6:function(e,t,r,n){return 1===n.length&&"ip6"===n[0].protocol?t:"[".concat(t,"]")},tcp:function(e,t,r,n,i){return n.some((function(e){return["http","https","ws","wss"].includes(e.protocol)}))?"".concat(e,":").concat(t):function(e,t,r,n){if(n&&!1===n.assumeHttp)return"tcp://".concat(e,":").concat(t) var i="tcp",o=":".concat(t) return"tcp"===r[r.length-1].protocol&&(i="443"===t?"https":"http",o="443"===t||"80"===t?"":o),"".concat(i,"://").concat(e).concat(o)}(e,t,n,i)},udp:function(e,t){return"udp://".concat(e,":").concat(t)},dnsaddr:i,dns4:i,dns6:i,ipfs:function(e,t){return"".concat(e,"/ipfs/").concat(t)},p2p:function(e,t){return"".concat(e,"/p2p/").concat(t)},http:function(e){return"http://".concat(e)},https:function(e){return"https://".concat(e)},ws:function(e){return"ws://".concat(e)},wss:function(e){return"wss://".concat(e)},"p2p-websocket-star":function(e){return"".concat(e,"/p2p-websocket-star")},"p2p-webrtc-star":function(e){return"".concat(e,"/p2p-webrtc-star")},"p2p-webrtc-direct":function(e){return"".concat(e,"/p2p-webrtc-direct")}} e.exports=function(e,t){var r=new n(e),i=e.toString().split("/").slice(1) @@ -14567,7 +15802,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("bitswap/wantlist",{signal:n.signal,searchParams:l.toUrlSearchParams(i(i({},n),{},{peer:r.toString()})),headers:n.headers}) case 3:return t.next=5,t.sent.json() case 5:return o=t.sent,t.abrupt("return",(o.Keys||[]).map((function(e){return u.CID.parse(e["/"])}))) @@ -14579,13 +15814,13 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("bitswap/unwant",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers}) case 3:return o=t.sent,t.abrupt("return",o.json()) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createUnwant=l},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(131),i=r(283),o=r(304),a=r(305) +var n=r(144),i=r(305),o=r(326),a=r(327) t.createBlock=function(e){return{get:n.createGet(e),put:i.createPut(e),rm:o.createRm(e),stat:a.createStat(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -14593,7 +15828,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(23),l=r(2),f=r(3),h=r(24),d=l.configure((function(e){function t(e){return r.apply(this,arguments)}function r(){return(r=s(regeneratorRuntime.mark((function r(n){var o,a,s,l,d,p=arguments +var u=r(7),c=r(30),l=r(4),f=r(5),h=r(31),d=l.configure((function(e){function t(e){return r.apply(this,arguments)}function r(){return(r=s(regeneratorRuntime.mark((function r(n){var o,a,s,l,d,p=arguments return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=p.length>1&&void 0!==p[1]?p[1]:{},a=new AbortController,s=h.abortSignal(a.signal,o.signal),r.prev=3,r.t0=e,r.t1=i,r.t2={signal:s,searchParams:f.toUrlSearchParams(o)},r.next=9,c.multipartRequest([n],a,o.headers) case 9:return r.t3=r.sent,r.t4=(0,r.t1)(r.t2,r.t3),r.next=13,r.t0.post.call(r.t0,"block/put",r.t4) case 13:return d=r.sent,r.next=16,d.json() @@ -14608,7 +15843,7 @@ case 28:return r.abrupt("return",u.CID.parse(l.Key)) case 29:case"end":return r.stop()}}),r,null,[[3,19]])})))).apply(this,arguments)}return t})) t.createPut=d},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(285),i=r(286) +var n=r(307),i=r(308) t.normaliseInput=function(e){return i.normaliseCandidateMultiple(e,n.normaliseContent,!0)}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -14620,8 +15855,8 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(s=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new s(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(15),c=r(62),l=r(54),f=r(132),h=r(63) -function d(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var p=d(u),m=d(c),y=d(l),v=d(f) +var u=r(20),c=r(74),l=r(64),f=r(145),h=r(75) +function d(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var p=d(u),m=d(c),v=d(l),y=d(f) function b(){return(b=i(regeneratorRuntime.mark((function e(t){var r,n,i return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h.isBytes(t)){e.next=2 break}return e.abrupt("return",new Blob([t])) @@ -14629,12 +15864,12 @@ case 2:if(!("string"==typeof t||t instanceof String)){e.next=4 break}return e.abrupt("return",new Blob([t.toString()])) case 4:if(!h.isBlob(t)){e.next=6 break}return e.abrupt("return",t) -case 6:if(h.isReadableStream(t)&&(t=y.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=28 +case 6:if(h.isReadableStream(t)&&(t=v.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=28 break}return r=m.default(t),e.next=11,r.peek() case 11:if(n=e.sent,i=n.value,!n.done){e.next=16 break}return e.abrupt("return",g(r)) case 16:if(r.push(i),!Number.isInteger(i)){e.next=26 -break}return e.t0=Blob,e.t1=Uint8Array,e.next=22,v.default(r) +break}return e.t0=Blob,e.t1=Uint8Array,e.next=22,y.default(r) case 22:return e.t2=e.sent,e.t3=e.t1.from.call(e.t1,e.t2),e.t4=[e.t3],e.abrupt("return",new e.t0(e.t4)) case 26:if(!(h.isBytes(i)||"string"==typeof i||i instanceof String)){e.next=28 break}return e.abrupt("return",g(r)) @@ -14676,28 +15911,28 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}function h(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var d=r(15),p=r(54),m=r(62),y=r(133),v=r(63),b=r(134) -function g(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var w=g(d),_=g(p),x=g(m),k=g(y) +var d=r(20),p=r(64),m=r(74),v=r(146),y=r(75),b=r(147) +function g(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var w=g(d),_=g(p),k=g(m),x=g(v) function O(){return(O=a(regeneratorRuntime.mark((function e(t,r){var n,i,a -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("string"==typeof t||t instanceof String||v.isBytes(t)||v.isBlob(t)||t._readableState)){e.next=2 +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("string"==typeof t||t instanceof String||y.isBytes(t)||y.isBlob(t)||t._readableState)){e.next=2 break}throw w.default(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT") -case 2:if(v.isReadableStream(t)&&(t=_.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=26 -break}return n=x.default(t),e.next=7,u(n.peek()) +case 2:if(y.isReadableStream(t)&&(t=_.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=26 +break}return n=k.default(t),e.next=7,u(n.peek()) case 7:if(i=e.sent,a=i.value,!i.done){e.next=13 break}return e.delegateYield(h(l([]),u),"t0",12) case 12:return e.abrupt("return") case 13:if(n.push(a),!Number.isInteger(a)){e.next=16 break}throw w.default(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT") case 16:if(!a._readableState){e.next=19 -break}return e.delegateYield(h(l(k.default(n,(function(e){return E({content:e},r)}))),u),"t1",18) +break}return e.delegateYield(h(l(x.default(n,(function(e){return E({content:e},r)}))),u),"t1",18) case 18:return e.abrupt("return") -case 19:if(!v.isBytes(a)){e.next=23 +case 19:if(!y.isBytes(a)){e.next=23 break}return e.next=22,E({content:n},r) case 22:return e.abrupt("return") -case 23:if(!(v.isFileObject(a)||a[Symbol.iterator]||a[Symbol.asyncIterator]||v.isReadableStream(a)||v.isBlob(a))){e.next=26 -break}return e.delegateYield(h(l(k.default(n,(function(e){return E(e,r)}))),u),"t2",25) +case 23:if(!(y.isFileObject(a)||a[Symbol.iterator]||a[Symbol.asyncIterator]||y.isReadableStream(a)||y.isBlob(a))){e.next=26 +break}return e.delegateYield(h(l(x.default(n,(function(e){return E(e,r)}))),u),"t2",25) case 25:return e.abrupt("return") -case 26:if(!v.isFileObject(t)){e.next=28 +case 26:if(!y.isFileObject(t)){e.next=28 break}throw w.default(new Error("Unexpected input: single item passed - if you are using ipfs.addAll, please use ipfs.add instead"),"ERR_UNEXPECTED_INPUT") case 28:throw w.default(new Error("Unexpected input: "+o(t)),"ERR_UNEXPECTED_INPUT") case 29:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e,t){return S.apply(this,arguments)}function S(){return(S=i(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s @@ -14711,7 +15946,7 @@ case 11:s.content=e.sent case 12:return e.abrupt("return",s) case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.normaliseCandidateMultiple=function(e,t){return O.apply(this,arguments)}},function(e,t,r){"use strict" function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var i=function(e){return e&&"object"===n(e)&&"default"in e?e:{default:e}}(r(288)),o=i.default.Reader,a=i.default.Writer,s=i.default.util,u=i.default.roots["ipfs-unixfs"]||(i.default.roots["ipfs-unixfs"]={}),c=u.Data=function(){function e(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),r=0;r>>0,i,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,i,o+r)}}}function r(e,t,r,n,i){var o=e(n,i+t),a=e(n,i+r),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+o return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,i,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=r.bind(null,a,0,4),e.readDoubleBE=r.bind(null,s,4,0)}(),e}function i(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function o(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=n(n)},function(module,exports,__webpack_require__){"use strict" function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName) -if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},function(e,t,r){"use strict" +if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},function(e,t,r){"use strict" var n=t n.length=function(e){for(var t=0,r=0,n=0;nn&&(o=e(n),a=0) var s=t.call(o,a,a+=r) return 7&a&&(a=1+(7|a)),s}}},function(e,t,r){"use strict" e.exports=i -var n=r(35) +var n=r(43) function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0) o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1} var a=i.zeroHash="\0\0\0\0\0\0\0\0" @@ -14862,21 +16097,21 @@ return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24 return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},function(e,t,r){"use strict" e.exports=o -var n=r(135);(o.prototype=Object.create(n.prototype)).constructor=o -var i=r(35) +var n=r(148);(o.prototype=Object.create(n.prototype)).constructor=o +var i=r(43) function o(){n.call(this)}function a(e,t,r){e.length<40?i.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length) else for(var n=0;n>>0 return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e) return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},function(e,t,r){"use strict" e.exports=o -var n=r(136);(o.prototype=Object.create(n.prototype)).constructor=o -var i=r(35) +var n=r(149);(o.prototype=Object.create(n.prototype)).constructor=o +var i=r(43) function o(e){n.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32() return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},function(e,t,r){"use strict" -t.Service=r(301)},function(e,t,r){"use strict" +t.Service=r(323)},function(e,t,r){"use strict" e.exports=i -var n=r(35) +var n=r(43) function i(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function") n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,r,i,o,a){if(!o)throw TypeError("request must be specified") var s=this @@ -14903,12 +16138,12 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(5),d=r(2),p=r(3),m=d.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,d,m=arguments +var h=r(7),d=r(4),p=r(5),m=d.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,d,m=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=m.length>1&&void 0!==m[1]?m[1]:{},Array.isArray(r)||(r=[r]),t.next=4,a(e.post("block/rm",{signal:n.signal,searchParams:p.toUrlSearchParams(i({arg:r.map((function(e){return e.toString()})),"stream-channels":!0},n)),headers:n.headers})) case 4:o=t.sent,s=!1,u=!1,t.prev=7,f=l(o.ndjson()) case 9:return t.next=11,a(f.next()) case 11:if(!(s=!(h=t.sent).done)){t.next=18 -break}return d=h.value,t.next=15,y(d) +break}return d=h.value,t.next=15,v(d) case 15:s=!1,t.next=9 break case 18:t.next=24 @@ -14921,7 +16156,7 @@ break}throw c case 32:return t.finish(29) case 33:return t.finish(24) case 34:case"end":return t.stop()}}),t,null,[[7,20,24,34],[25,,29,33]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -function y(e){var t={cid:h.CID.parse(e.Hash)} +function v(e){var t={cid:h.CID.parse(e.Hash)} return e.Error&&(t.error=new Error(e.Error)),t}t.createRm=m},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -14929,14 +16164,14 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("block/stat",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",{cid:u.CID.parse(a.Key),size:a.Size}) case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createStat=f},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(307),i=r(308),o=r(309),a=r(310),s=r(311) +var n=r(329),i=r(330),o=r(331),a=r(332),s=r(333) t.createBootstrap=function(e){return{add:n.createAdd(e),clear:i.createClear(e),list:o.createList(e),reset:a.createReset(e),rm:s.createRm(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -14944,7 +16179,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=r(14),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments +var u=r(4),c=r(5),l=r(19),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("bootstrap/add",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,s=a.Peers,t.abrupt("return",{Peers:s.map((function(e){return new l.Multiaddr(e)}))}) @@ -14956,7 +16191,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=r(14),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,a,s=arguments +var u=r(4),c=r(5),l=r(19),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:{},t.next=3,e.post("bootstrap/rm",{signal:r.signal,searchParams:c.toUrlSearchParams(i(i({},r),{},{all:!0})),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return o=t.sent,a=o.Peers,t.abrupt("return",{Peers:a.map((function(e){return new l.Multiaddr(e)}))}) @@ -14965,7 +16200,7 @@ t.createClear=f},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=r(14),u=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o,u=arguments +var o=r(4),a=r(5),s=r(19),u=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>0&&void 0!==u[0]?u[0]:{},t.next=3,e.post("bootstrap/list",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,o=i.Peers,t.abrupt("return",{Peers:o.map((function(e){return new s.Multiaddr(e)}))}) @@ -14977,7 +16212,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=r(14),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,a,s=arguments +var u=r(4),c=r(5),l=r(19),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:{},t.next=3,e.post("bootstrap/add",{signal:r.signal,searchParams:c.toUrlSearchParams(i(i({},r),{},{default:!0})),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return o=t.sent,a=o.Peers,t.abrupt("return",{Peers:a.map((function(e){return new l.Multiaddr(e)}))}) @@ -14989,17 +16224,17 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=r(14),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments +var u=r(4),c=r(5),l=r(19),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("bootstrap/rm",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,s=a.Peers,t.abrupt("return",{Peers:s.map((function(e){return new l.Multiaddr(e)}))}) case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createRm=f},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(313),i=r(316),o=r(317),a=r(318),s=r(319) +var n=r(335),i=r(338),o=r(339),a=r(340),s=r(341) t.createConfig=function(e){return{getAll:o.createGetAll(e),get:i.createGet(e),set:s.createSet(e),replace:a.createReplace(e),profiles:n.createProfiles(e)}}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(314),i=r(315) +var n=r(336),i=r(337) t.createProfiles=function(e){return{apply:n.createApply(e),list:i.createList(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15007,7 +16242,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("config/profile/apply",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",{original:a.OldCfg,updated:a.NewCfg}) @@ -15016,7 +16251,7 @@ t.createApply=l},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(11),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a=arguments +var o=r(15),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},t.next=3,e.post("config/profile/list",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,t.abrupt("return",i.map((function(e){return o.objectToCamel(e)}))) @@ -15026,7 +16261,7 @@ function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==s[1]?s[1]:{},r){t.next=3 break}throw new Error("key argument is required") case 3:return t.next=5,e.post("config",{signal:n.signal,searchParams:u.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) @@ -15041,7 +16276,7 @@ function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0&&void 0!==a[0]?a[0]:{},t.next=3,e.post("config/show",{signal:r.signal,searchParams:u.toUrlSearchParams(i({},r)),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return o=t.sent,t.abrupt("return",o) @@ -15054,7 +16289,7 @@ function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==h[1]?h[1]:{},o=new AbortController,a=f.abortSignal(o.signal,n.signal),t.t0=e,t.t1=i,t.t2={signal:a,searchParams:l.toUrlSearchParams(n)},t.next=8,u.multipartRequest([s.fromString(JSON.stringify(r))],o,n.headers) case 8:return t.t3=t.sent,t.t4=(0,t.t1)(t.t2,t.t3),t.next=12,t.t0.post.call(t.t0,"config/replace",t.t4) case 12:return c=t.sent,t.next=15,c.text() @@ -15067,7 +16302,7 @@ function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterat if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t2&&void 0!==u[2]?u[2]:{},"string"==typeof r){t.next=3 break}throw new Error("Invalid key type") case 3:return a=o(o({},i),f(r,n)),t.next=6,e.post("config",{signal:i.signal,searchParams:c.toUrlSearchParams(a),headers:i.headers}) @@ -15080,7 +16315,7 @@ case"string":return{arg:[e,t]} default:return{arg:[e,JSON.stringify(t)],json:!0}}} t.createSet=l},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(321),i=r(322),o=r(325),a=r(137),s=r(326) +var n=r(343),i=r(344),o=r(347),a=r(150),s=r(348) t.createDag=function(e,t){return{export:n.createExport(t),get:i.createGet(e,t),import:o.createImport(t),put:a.createPut(e,t),resolve:s.createResolve(t)}}},function(e,t,r){"use strict" function n(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r function n(t,r){try{var o=e[t](r),s=o.value,u=s instanceof a @@ -15099,13 +16334,13 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}function c(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(2),f=r(3),h=l.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(r){var n,i,a=arguments +var l=r(4),f=r(5),h=l.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(r){var n,i,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,o(e.post("dag/export",{signal:n.signal,searchParams:f.toUrlSearchParams({arg:r.toString()}),headers:n.headers})) case 3:return i=t.sent,t.delegateYield(c(s(i.iterator()),o),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createExport=h},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(323),s=r(324),u=r(64),c=r(15),l=r(131) +var o=r(4),a=r(345),s=r(346),u=r(76),c=r(20),l=r(144) function f(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}var h=f(s),d=f(u),p=f(c) t.createGet=function(e,t){return o.configure((function(t,r){var i=l.createGet(r) return function(){var t=function(e){return function(){var t=this,r=arguments @@ -15136,8 +16371,8 @@ case"throw":t.reject(i) break default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null} r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function c(e){this.wrapped=e}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(5) -var f=function(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}(r(15)) +var l=r(7) +var f=function(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}(r(20)) function h(){return(h=s(regeneratorRuntime.mark((function e(t,r,n,o,s){var u,c,h,d,p,m return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=function(){var e=i(regeneratorRuntime.mark((function e(t){var r,i return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getCodec(t.code) @@ -15205,22 +16440,22 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(u=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var c=r(2),l=r(3),f=r(24),h=r(23),d=r(5),p=c.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(r){var i,o,a,u,c,p,m,y,v,b,g,w,_,x,k,O=arguments +var c=r(4),l=r(5),f=r(31),h=r(30),d=r(7),p=c.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(r){var i,o,a,u,c,p,m,v,y,b,g,w,_,k,x,O=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=O.length>1&&void 0!==O[1]?O[1]:{},o=new AbortController,a=f.abortSignal(o.signal,i.signal),t.next=5,n(h.multipartRequest(r,o,i.headers)) case 5:return u=t.sent,c=u.headers,p=u.body,t.next=10,n(e.post("dag/import",{signal:a,headers:c,body:p,searchParams:l.toUrlSearchParams({"pin-roots":i.pinRoots})})) -case 10:m=t.sent,y=!1,v=!1,t.prev=13,g=s(m.ndjson()) +case 10:m=t.sent,v=!1,y=!1,t.prev=13,g=s(m.ndjson()) case 15:return t.next=17,n(g.next()) -case 17:if(!(y=!(w=t.sent).done)){t.next=26 +case 17:if(!(v=!(w=t.sent).done)){t.next=26 break}if(void 0===(_=w.value.Root)){t.next=23 -break}return x=_.Cid["/"],k=_.PinErrorMsg,t.next=23,{root:{cid:d.CID.parse(x),pinErrorMsg:k}} -case 23:y=!1,t.next=15 +break}return k=_.Cid["/"],x=_.PinErrorMsg,t.next=23,{root:{cid:d.CID.parse(k),pinErrorMsg:x}} +case 23:v=!1,t.next=15 break case 26:t.next=32 break -case 28:t.prev=28,t.t0=t.catch(13),v=!0,b=t.t0 -case 32:if(t.prev=32,t.prev=33,!y||null==g.return){t.next=37 +case 28:t.prev=28,t.t0=t.catch(13),y=!0,b=t.t0 +case 32:if(t.prev=32,t.prev=33,!v||null==g.return){t.next=37 break}return t.next=37,n(g.return()) -case 37:if(t.prev=37,!v){t.next=40 +case 37:if(t.prev=37,!y){t.next=40 break}throw b case 40:return t.finish(37) case 41:return t.finish(32) @@ -15230,7 +16465,7 @@ function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("dag/resolve",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:"".concat(r).concat(n.path?"/".concat(n.path).replace(/\/[/]+/g,"/"):"")},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",{cid:s.CID.parse(a.Cid["/"]),remainderPath:a.RemPath}) @@ -15240,7 +16475,7 @@ function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void return function(e){return r.apply(this,arguments)}}()})) t.createResolve=l},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(328),i=r(330),o=r(331),a=r(332),s=r(333),u=r(334) +var n=r(350),i=r(352),o=r(353),a=r(354),s=r(355),u=r(356) t.createDht=function(e){return{findPeer:n.createFindPeer(e),findProvs:i.createFindProvs(e),get:o.createGet(e),provide:a.createProvide(e),put:s.createPut(e),query:u.createQuery(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15260,8 +16495,8 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(2),d=r(3),p=r(41),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,y=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=y.length>1&&void 0!==y[1]?y[1]:{},t.next=3,a(e.post("dht/findpeer",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r},n)),headers:n.headers})) +var h=r(4),d=r(5),p=r(49),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,v=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=3,a(e.post("dht/findpeer",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r},n)),headers:n.headers})) case 3:o=t.sent,s=!1,u=!1,t.prev=6,f=l(o.ndjson()) case 8:return t.next=10,a(f.next()) case 10:if(!(s=!(h=t.sent).done)){t.next=17 @@ -15298,8 +16533,8 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(2),d=r(3),p=r(41),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,y=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=y.length>1&&void 0!==y[1]?y[1]:{},t.next=3,a(e.post("dht/findprovs",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers})) +var h=r(4),d=r(5),p=r(49),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,v=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=3,a(e.post("dht/findprovs",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers})) case 3:o=t.sent,s=!1,u=!1,t.prev=6,f=l(o.ndjson()) case 8:return t.next=10,a(f.next()) case 10:if(!(s=!(h=t.sent).done)){t.next=17 @@ -15335,12 +16570,12 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(2),d=r(3),p=r(41),m=r(31),y=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,y,v=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=3,a(e.post("dht/get",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r instanceof Uint8Array?m.toString(r):r.toString()},n)),headers:n.headers})) +var h=r(4),d=r(5),p=r(49),m=r(40),v=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,v,y=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=y.length>1&&void 0!==y[1]?y[1]:{},t.next=3,a(e.post("dht/get",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r instanceof Uint8Array?m.toString(r):r.toString()},n)),headers:n.headers})) case 3:o=t.sent,s=!1,u=!1,t.prev=6,f=l(o.ndjson()) case 8:return t.next=10,a(f.next()) case 10:if(!(s=!(h=t.sent).done)){t.next=17 -break}return y=h.value,t.next=14,p.mapEvent(y) +break}return v=h.value,t.next=14,p.mapEvent(v) case 14:s=!1,t.next=8 break case 17:t.next=23 @@ -15353,7 +16588,7 @@ break}throw c case 31:return t.finish(28) case 32:return t.finish(23) case 33:case"end":return t.stop()}}),t,null,[[6,19,23,33],[24,,28,32]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -t.createGet=y},function(e,t,r){"use strict" +t.createGet=v},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==v[1]?v[1]:{recursive:!1},o=Array.isArray(r)?r:[r],t.next=4,a(e.post("dht/provide",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:o.map((function(e){return e.toString()}))},n)),headers:n.headers})) +var h=r(4),d=r(5),p=r(49),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,v,y=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=y.length>1&&void 0!==y[1]?y[1]:{recursive:!1},o=Array.isArray(r)?r:[r],t.next=4,a(e.post("dht/provide",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:o.map((function(e){return e.toString()}))},n)),headers:n.headers})) case 4:s=t.sent,u=!1,c=!1,t.prev=7,h=l(s.ndjson()) case 9:return t.next=11,a(h.next()) case 11:if(!(u=!(m=t.sent).done)){t.next=18 -break}return y=m.value,t.next=15,p.mapEvent(y) +break}return v=m.value,t.next=15,p.mapEvent(v) case 15:u=!1,t.next=9 break case 18:t.next=24 @@ -15409,13 +16644,13 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(2),d=r(3),p=r(23),m=r(24),y=r(31),v=r(41),b=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,s,u,c,f,h,b,g,w,_,x=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=x.length>2&&void 0!==x[2]?x[2]:{},s=new AbortController,u=m.abortSignal(s.signal,o.signal),t.t0=a,t.t1=e,t.t2=i,t.t3={signal:u,searchParams:d.toUrlSearchParams(i({arg:r instanceof Uint8Array?y.toString(r):r.toString()},o))},t.next=9,a(p.multipartRequest([n],s,o.headers)) +var h=r(4),d=r(5),p=r(30),m=r(31),v=r(40),y=r(49),b=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,s,u,c,f,h,b,g,w,_,k=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=k.length>2&&void 0!==k[2]?k[2]:{},s=new AbortController,u=m.abortSignal(s.signal,o.signal),t.t0=a,t.t1=e,t.t2=i,t.t3={signal:u,searchParams:d.toUrlSearchParams(i({arg:r instanceof Uint8Array?v.toString(r):r.toString()},o))},t.next=9,a(p.multipartRequest([n],s,o.headers)) case 9:return t.t4=t.sent,t.t5=(0,t.t2)(t.t3,t.t4),t.t6=t.t1.post.call(t.t1,"dht/put",t.t5),t.next=14,(0,t.t0)(t.t6) case 14:c=t.sent,f=!1,h=!1,t.prev=17,g=l(c.ndjson()) case 19:return t.next=21,a(g.next()) case 21:if(!(f=!(w=t.sent).done)){t.next=28 -break}return _=w.value,t.next=25,v.mapEvent(_) +break}return _=w.value,t.next=25,y.mapEvent(_) case 25:f=!1,t.next=19 break case 28:t.next=34 @@ -15447,8 +16682,8 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(2),d=r(3),p=r(41),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,y=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=y.length>1&&void 0!==y[1]?y[1]:{},t.next=3,a(e.post("dht/query",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers})) +var h=r(4),d=r(5),p=r(49),m=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,m,v=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=3,a(e.post("dht/query",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers})) case 3:o=t.sent,s=!1,u=!1,t.prev=6,f=l(o.ndjson()) case 8:return t.next=10,a(f.next()) case 10:if(!(s=!(h=t.sent).done)){t.next=17 @@ -15467,12 +16702,12 @@ case 32:return t.finish(23) case 33:case"end":return t.stop()}}),t,null,[[6,19,23,33],[24,,28,32]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createQuery=m},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(336),i=r(337),o=r(338) +var n=r(358),i=r(359),o=r(360) t.createDiag=function(e){return{cmds:n.createCmds(e),net:i.createNet(e),sys:o.createSys(e)}}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("diag/cmds",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.abrupt("return",n.json()) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) @@ -15480,7 +16715,7 @@ t.createCmds=s},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("diag/net",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.abrupt("return",n.json()) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) @@ -15488,13 +16723,13 @@ t.createNet=s},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("diag/sys",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.abrupt("return",n.json()) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createSys=s},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(340),i=r(341),o=r(342),a=r(343),s=r(344),u=r(345),c=r(346),l=r(348),f=r(139),h=r(349),d=r(350) +var n=r(362),i=r(363),o=r(364),a=r(365),s=r(366),u=r(367),c=r(368),l=r(370),f=r(152),h=r(371),d=r(372) t.createFiles=function(e){return{chmod:n.createChmod(e),cp:i.createCp(e),flush:o.createFlush(e),ls:a.createLs(e),mkdir:s.createMkdir(e),mv:u.createMv(e),read:c.createRead(e),rm:l.createRm(e),stat:f.createStat(e),touch:h.createTouch(e),write:d.createWrite(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15502,7 +16737,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.length>2&&void 0!==s[2]?s[2]:{},t.next=3,e.post("files/chmod",{signal:o.signal,searchParams:c.toUrlSearchParams(i({arg:r,mode:n},o)),headers:o.headers}) case 3:return a=t.sent,t.next=6,a.text() case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r){return t.apply(this,arguments)}})) @@ -15513,7 +16748,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,c=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,c=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=c.length>2&&void 0!==c[2]?c[2]:{},a=Array.isArray(r)?r:[r],t.next=4,e.post("files/cp",{signal:o.signal,searchParams:l.toUrlSearchParams(i({arg:a.concat(n).map((function(e){return u.CID.asCID(e)?"/ipfs/".concat(e):e}))},o)),headers:o.headers}) case 4:return s=t.sent,t.next=7,s.text() case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r){return t.apply(this,arguments)}})) @@ -15524,7 +16759,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:{},r&&"string"==typeof r){t.next=3 break}throw new Error("ipfs.files.flush requires a path") case 3:return t.next=5,e.post("files/flush",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) @@ -15559,15 +16794,15 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(d=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new d(e)}l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var p=r(5),m=r(138),y=r(2),v=r(3),b=y.configure((function(e){function t(){return(t=c(regeneratorRuntime.mark((function t(r){var i,o,s,c,l,f,d,y,b,w,_,x=arguments -return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=x.length>1&&void 0!==x[1]?x[1]:{},r){t.next=3 +var p=r(7),m=r(151),v=r(4),y=r(5),b=v.configure((function(e){function t(){return(t=c(regeneratorRuntime.mark((function t(r){var i,o,s,c,l,f,d,v,b,w,_,k=arguments +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=k.length>1&&void 0!==k[1]?k[1]:{},r){t.next=3 break}throw new Error("ipfs.files.ls requires a path") -case 3:return t.next=5,u(e.post("files/ls",{signal:i.signal,searchParams:v.toUrlSearchParams(a(a({arg:p.CID.asCID(r)?"/ipfs/".concat(r):r,long:!0},i),{},{stream:!0})),headers:i.headers})) +case 3:return t.next=5,u(e.post("files/ls",{signal:i.signal,searchParams:y.toUrlSearchParams(a(a({arg:p.CID.asCID(r)?"/ipfs/".concat(r):r,long:!0},i),{},{stream:!0})),headers:i.headers})) case 5:o=t.sent,s=!1,c=!1,t.prev=8,f=h(o.ndjson()) case 10:return t.next=12,u(f.next()) case 12:if(!(s=!(d=t.sent).done)){t.next=39 -break}if(!("Entries"in(y=d.value))){t.next=34 -break}b=n(y.Entries||[]),t.prev=16,b.s() +break}if(!("Entries"in(v=d.value))){t.next=34 +break}b=n(v.Entries||[]),t.prev=16,b.s() case 18:if((w=b.n()).done){t.next=24 break}return _=w.value,t.next=22,g(m.objectToCamelWithMetadata(_)) case 22:t.next=18 @@ -15578,7 +16813,7 @@ case 26:t.prev=26,t.t0=t.catch(16),b.e(t.t0) case 29:return t.prev=29,b.f(),t.finish(29) case 32:t.next=36 break -case 34:return t.next=36,g(m.objectToCamelWithMetadata(y)) +case 34:return t.next=36,g(m.objectToCamelWithMetadata(v)) case 36:s=!1,t.next=10 break case 39:t.next=45 @@ -15598,7 +16833,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("files/mkdir",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.text() case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) @@ -15609,7 +16844,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.length>2&&void 0!==s[2]?s[2]:{},Array.isArray(r)||(r=[r]),t.next=4,e.post("files/mv",{signal:o.signal,searchParams:c.toUrlSearchParams(i({arg:r.concat(n)},o)),headers:o.headers}) case 4:return a=t.sent,t.next=7,a.text() case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r){return t.apply(this,arguments)}})) @@ -15634,12 +16869,12 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new h(e)}function d(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var p=r(2),m=r(3) -var y=function(e){return e&&"object"===a(e)&&"default"in e?e:{default:e}}(r(347)),v=p.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var p=r(4),m=r(5) +var v=function(e){return e&&"object"===a(e)&&"default"in e?e:{default:e}}(r(369)),y=p.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,c(e.post("files/read",{signal:n.signal,searchParams:m.toUrlSearchParams(i({arg:r,count:n.length},n)),headers:n.headers})) -case 3:return o=t.sent,t.delegateYield(d(f(y.default(o.body)),c),"t0",5) +case 3:return o=t.sent,t.delegateYield(d(f(v.default(o.body)),c),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -t.createRead=v},function(e,t,r){function n(e){return new o(e)}function i(e){var t,r +t.createRead=y},function(e,t,r){function n(e){return new o(e)}function i(e){var t,r function n(t,r){try{var a=e[t](r),s=a.value,u=s instanceof o Promise.resolve(u?s.wrapped:s).then((function(e){u?n("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0}) break @@ -15665,8 +16900,8 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var c=r(2),l=r(3) -var f=function(e){return e&&"object"===u(e)&&"default"in e?e:{default:e}}(r(83)),h=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments +var c=r(4),l=r(5) +var f=function(e){return e&&"object"===u(e)&&"default"in e?e:{default:e}}(r(99)),h=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("files/rm",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.text() case 6:if(""===(a=t.sent)){t.next=11 @@ -15679,7 +16914,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("files/touch",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.text() case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) @@ -15690,18 +16925,18 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(128),c=r(129),l=r(2),f=r(23),h=r(3),d=r(24),p=l.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,l,p=arguments +var u=r(141),c=r(142),l=r(4),f=r(30),h=r(5),d=r(31),p=l.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,l,p=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=p.length>2&&void 0!==p[2]?p[2]:{},a=new AbortController,s=d.abortSignal(a.signal,o.signal),t.t0=e,t.t1=i,t.t2={signal:s,searchParams:h.toUrlSearchParams(i({arg:r,streamChannels:!0,count:o.length},o))},t.next=8,f.multipartRequest([{content:n,path:"arg",mode:u.modeToString(o.mode),mtime:c.parseMtime(o.mtime)}],a,o.headers) case 8:return t.t3=t.sent,t.t4=(0,t.t1)(t.t2,t.t3),t.next=12,t.t0.post.call(t.t0,"files/write",t.t4) case 12:return l=t.sent,t.next=15,l.text() case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r){return t.apply(this,arguments)}})) t.createWrite=p},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(352),i=r(353),o=r(354),a=r(355),s=r(356),u=r(357),c=r(358) +var n=r(374),i=r(375),o=r(376),a=r(377),s=r(378),u=r(379),c=r(380) t.createKey=function(e){return{export:n.createExport(e),gen:i.createGen(e),import:o.createImport(e),info:a.createInfo(e),list:s.createList(e),rename:u.createRename(e),rm:c.createRm(e)}}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2) -var a=function(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}(r(15)),s=o.configure((function(e){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var n=arguments +var o=r(4) +var a=function(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}(r(20)),s=o.configure((function(e){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var n=arguments return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw n.length>2&&void 0!==n[2]&&n[2],a.default(new Error("Not implemented"),"ERR_NOT_IMPLEMENTED") case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -15714,7 +16949,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{type:"rsa",size:2048},t.next=3,e.post("key/gen",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",u.objectToCamel(a)) @@ -15726,15 +16961,15 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n,o){var a,s,c,f=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n,o){var a,s,c,f=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=f.length>3&&void 0!==f[3]?f[3]:{},t.next=3,e.post("key/import",{signal:a.signal,searchParams:l.toUrlSearchParams(i({arg:r,pem:n,password:o},a)),headers:a.headers}) case 3:return s=t.sent,t.next=6,s.json() case 6:return c=t.sent,t.abrupt("return",u.objectToCamel(c)) case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r,n){return t.apply(this,arguments)}})) t.createImport=f},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2) -var a=function(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}(r(15)),s=o.configure((function(e){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r=arguments +var o=r(4) +var a=function(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}(r(20)),s=o.configure((function(e){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r=arguments return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw r.length>1&&void 0!==r[1]&&r[1],a.default(new Error("Not implemented"),"ERR_NOT_IMPLEMENTED") case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -15744,7 +16979,7 @@ t.createInfo=s},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(11),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a=arguments +var o=r(15),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:{},t.next=3,e.post("key/list",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,t.abrupt("return",(i.Keys||[]).map((function(e){return o.objectToCamel(e)}))) @@ -15756,7 +16991,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.length>2&&void 0!==s[2]?s[2]:{},t.next=3,e.post("key/rename",{signal:o.signal,searchParams:l.toUrlSearchParams(i({arg:[r,n]},o)),headers:o.headers}) case 3:return a=t.sent,t.t0=u,t.next=7,a.json() case 7:return t.t1=t.sent,t.abrupt("return",t.t0.objectToCamel.call(t.t0,t.t1)) @@ -15768,14 +17003,14 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("key/rm",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",u.objectToCamel(a.Keys[0])) case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createRm=f},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(360),i=r(361),o=r(362) +var n=r(382),i=r(383),o=r(384) t.createLog=function(e){return{level:n.createLevel(e),ls:i.createLs(e),tail:o.createTail(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15783,7 +17018,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.length>2&&void 0!==s[2]?s[2]:{},t.next=3,e.post("log/level",{signal:o.signal,searchParams:l.toUrlSearchParams(i({arg:[r,n]},o)),headers:o.headers}) case 3:return a=t.sent,t.t0=u,t.next=7,a.json() case 7:return t.t1=t.sent,t.abrupt("return",t.t0.objectToCamel.call(t.t0,t.t1)) @@ -15792,7 +17027,7 @@ t.createLevel=f},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("log/ls",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,t.abrupt("return",i.Strings) @@ -15815,13 +17050,13 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}function c(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(2),f=r(3),h=l.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var l=r(4),f=r(5),h=l.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,o(e.post("log/tail",{signal:r.signal,searchParams:f.toUrlSearchParams(r),headers:r.headers})) case 3:return n=t.sent,t.delegateYield(c(s(n.ndjson()),o),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createTail=h},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(364),i=r(365),o=r(366) +var n=r(386),i=r(387),o=r(388) t.createName=function(e){return{publish:n.createPublish(e),resolve:i.createResolve(e),pubsub:o.createPubsub(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15829,7 +17064,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("name/publish",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:"".concat(r)},n)),headers:n.headers}) case 3:return o=t.sent,t.t0=u,t.next=7,o.json() case 7:return t.t1=t.sent,t.abrupt("return",t.t0.objectToCamel.call(t.t0,t.t1)) @@ -15853,7 +17088,7 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(2),d=r(3),p=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,p,m=arguments +var h=r(4),d=r(5),p=h.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,s,u,c,f,h,p,m=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=m.length>1&&void 0!==m[1]?m[1]:{},t.next=3,a(e.post("name/resolve",{signal:n.signal,searchParams:d.toUrlSearchParams(i({arg:r,stream:!0},n)),headers:n.headers})) case 3:o=t.sent,s=!1,u=!1,t.prev=6,f=l(o.ndjson()) case 8:return t.next=10,a(f.next()) @@ -15873,7 +17108,7 @@ case 32:return t.finish(23) case 33:case"end":return t.stop()}}),t,null,[[6,19,23,33],[24,,28,32]])})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createResolve=p},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(367),i=r(368),o=r(369) +var n=r(389),i=r(390),o=r(391) t.createPubsub=function(e){return{cancel:n.createCancel(e),state:i.createState(e),subs:o.createSubs(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15881,7 +17116,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,e.post("name/pubsub/cancel",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.t0=u,t.next=7,o.json() case 7:return t.t1=t.sent,t.abrupt("return",t.t0.objectToCamel.call(t.t0,t.t1)) @@ -15890,7 +17125,7 @@ t.createCancel=f},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(11),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(15),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("name/pubsub/state",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.t0=o,t.next=7,n.json() case 7:return t.t1=t.sent,t.abrupt("return",t.t0.objectToCamel.call(t.t0,t.t1)) @@ -15899,14 +17134,14 @@ t.createState=u},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("name/pubsub/subs",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,t.abrupt("return",i.Strings||[]) case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createSubs=s},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(371),i=r(372),o=r(373),a=r(374),s=r(375),u=r(376),c=r(377) +var n=r(393),i=r(394),o=r(395),a=r(396),s=r(397),u=r(398),c=r(399) t.createObject=function(e,t){return{data:n.createData(t),get:i.createGet(t),links:o.createLinks(t),new:a.createNew(t),put:s.createPut(e,t),stat:u.createStat(t),patch:c.createPatch(t)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15914,7 +17149,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("object/data",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:"".concat(r instanceof Uint8Array?u.CID.decode(r):r)},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.arrayBuffer() case 6:return a=t.sent,t.abrupt("return",new Uint8Array(a,0,a.byteLength)) @@ -15926,7 +17161,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=r(34),h=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=r(42),h=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("object/get",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:"".concat(r instanceof Uint8Array?u.CID.decode(r):r),dataEncoding:"base64"},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",{Data:f.fromString(a.Data,"base64pad"),Links:(a.Links||[]).map((function(e){return{Name:e.Name,Hash:u.CID.parse(e.Hash),Tsize:e.Size}}))}) @@ -15938,7 +17173,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("object/links",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:"".concat(r instanceof Uint8Array?u.CID.decode(r):r)},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",(a.Links||[]).map((function(e){return{Name:e.Name,Tsize:e.Size,Hash:u.CID.parse(e.Hash)}}))) @@ -15950,7 +17185,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:{},t.next=3,e.post("object/new",{signal:r.signal,searchParams:l.toUrlSearchParams(i({arg:r.template},r)),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return o=t.sent,a=o.Hash,t.abrupt("return",u.CID.parse(a)) @@ -15962,7 +17197,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(137) +var u=r(4),c=r(150) t.createPut=function(e,t){return u.configure((function(r){var n=c.createPut(e,t) function o(){return(o=s(regeneratorRuntime.mark((function e(t){var r,o=arguments return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.abrupt("return",n(t,i(i({},r),{},{storeCodec:"dag-pb",hashAlg:"sha2-256",version:1}))) @@ -15973,14 +17208,14 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("object/stat",{signal:n.signal,searchParams:l.toUrlSearchParams(i({arg:"".concat(r)},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",i(i({},a),{},{Hash:u.CID.parse(a.Hash)})) case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createStat=f},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(378),i=r(379),o=r(380),a=r(381) +var n=r(400),i=r(401),o=r(402),a=r(403) t.createPatch=function(e){return{addLink:n.createAddLink(e),appendData:i.createAppendData(e),rmLink:o.createRmLink(e),setData:a.createSetData(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -15988,7 +17223,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,c,f=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,c,f=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>2&&void 0!==f[2]?f[2]:{},t.next=3,e.post("object/patch/add-link",{signal:o.signal,searchParams:l.toUrlSearchParams(i({arg:["".concat(r),n.Name||n.name||"",(n.Hash||n.cid||"").toString()||null]},o)),headers:o.headers}) case 3:return a=t.sent,t.next=6,a.json() case 6:return s=t.sent,c=s.Hash,t.abrupt("return",u.CID.parse(c)) @@ -16000,7 +17235,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(23),l=r(2),f=r(3),h=r(24),d=l.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,l,d,p,m=arguments +var u=r(7),c=r(30),l=r(4),f=r(5),h=r(31),d=l.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,l,d,p,m=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=m.length>2&&void 0!==m[2]?m[2]:{},a=new AbortController,s=h.abortSignal(a.signal,o.signal),t.t0=e,t.t1=i,t.t2={signal:s,searchParams:f.toUrlSearchParams(i({arg:"".concat(r)},o))},t.next=8,c.multipartRequest([n],a,o.headers) case 8:return t.t3=t.sent,t.t4=(0,t.t1)(t.t2,t.t3),t.next=12,t.t0.post.call(t.t0,"object/patch/append-data",t.t4) case 12:return l=t.sent,t.next=15,l.json() @@ -16013,7 +17248,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,c,f=arguments +var u=r(7),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,c,f=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>2&&void 0!==f[2]?f[2]:{},t.next=3,e.post("object/patch/rm-link",{signal:o.signal,searchParams:l.toUrlSearchParams(i({arg:["".concat(r),n.Name||n.name||null]},o)),headers:o.headers}) case 3:return a=t.sent,t.next=6,a.json() case 6:return s=t.sent,c=s.Hash,t.abrupt("return",u.CID.parse(c)) @@ -16025,7 +17260,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(5),c=r(23),l=r(2),f=r(3),h=r(24),d=l.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,l,d,p,m=arguments +var u=r(7),c=r(30),l=r(4),f=r(5),h=r(31),d=l.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,l,d,p,m=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=m.length>2&&void 0!==m[2]?m[2]:{},a=new AbortController,s=h.abortSignal(a.signal,o.signal),t.t0=e,t.t1=i,t.t2={signal:s,searchParams:f.toUrlSearchParams(i({arg:["".concat(r)]},o))},t.next=8,c.multipartRequest([n],a,o.headers) case 8:return t.t3=t.sent,t.t4=(0,t.t1)(t.t2,t.t3),t.next=12,t.t0.post.call(t.t0,"object/patch/set-data",t.t4) case 12:return l=t.sent,t.next=15,l.json() @@ -16033,7 +17268,7 @@ case 15:return d=t.sent,p=d.Hash,t.abrupt("return",u.CID.parse(p)) case 18:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r){return t.apply(this,arguments)}})) t.createSetData=d},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(140),i=r(383),o=r(384),a=r(142),s=r(385),u=r(386) +var n=r(153),i=r(405),o=r(406),a=r(155),s=r(407),u=r(408) t.createPin=function(e){return{addAll:n.createAddAll(e),add:i.createAdd(e),ls:o.createLs(e),rmAll:a.createRmAll(e),rm:s.createRm(e),remote:u.createRemote(e)}}},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) @@ -16041,7 +17276,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var c=r(140),l=r(64),f=r(2) +var c=r(153),l=r(76),f=r(4) var h=function(e){return e&&"object"===u(e)&&"default"in e?e:{default:e}}(l) t.createAdd=function(e){var t=c.createAddAll(e) return f.configure((function(){function e(){return(e=s(regeneratorRuntime.mark((function e(r){var n,o=arguments @@ -16065,18 +17300,18 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(f=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(5),d=r(2),p=r(3) +var h=r(7),d=r(4),p=r(5) function m(e,t,r){var n={type:e,cid:h.CID.parse(t)} -return r&&(n.metadata=r),n}var y=d.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,s,u,c,f,h,d,y,v,b,g=arguments +return r&&(n.metadata=r),n}var v=d.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o,s,u,c,f,h,d,v,y,b,g=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=g.length>0&&void 0!==g[0]?g[0]:{},n=[],r.paths&&(n=Array.isArray(r.paths)?r.paths:[r.paths]),t.next=5,a(e.post("pin/ls",{signal:r.signal,searchParams:p.toUrlSearchParams(i(i({},r),{},{arg:n.map((function(e){return"".concat(e)})),stream:!0})),headers:r.headers})) case 5:o=t.sent,s=!1,u=!1,t.prev=8,f=l(o.ndjson()) case 10:return t.next=12,a(f.next()) case 12:if(!(s=!(h=t.sent).done)){t.next=29 break}if(!(d=h.value).Keys){t.next=24 -break}y=0,v=Object.keys(d.Keys) -case 16:if(!(y1&&void 0!==o[1]?o[1]:{},e.abrupt("return",h.default(t([i({path:r},n)],n))) case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return function(t){return e.apply(this,arguments)}}))(e)}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(79),i=r(387),o=r(388),a=r(389),s=r(390),u=r(391) +var n=r(95),i=r(409),o=r(410),a=r(411),s=r(412),u=r(413) t.createRemote=function(e){var t=new n.Client(e) return{add:i.createAdd(t),ls:o.createLs(t),rm:a.createRm(t),rmAll:s.createRmAll(t),service:u.createService(e)}}},function(e,t,r){"use strict" var n=["timeout","signal","headers"] @@ -16122,7 +17357,7 @@ if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e) for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function c(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(65) +var l=r(77) t.createAdd=function(e){function t(){return(t=c(regeneratorRuntime.mark((function t(r,i){var a,u,c,f,h return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=i.timeout,u=i.signal,c=i.headers,f=s(i,n),t.next=3,e.post("pin/remote/add",{timeout:a,signal:u,headers:c,searchParams:l.encodeAddParams(o({cid:r},f))}) case 3:return h=t.sent,t.t0=l,t.next=7,h.json() @@ -16150,20 +17385,20 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(l=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new l(e)}s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var f=r(65) -t.createLs=function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var a,s,u,l,h,d,p,m,y,v,b +var f=r(77) +t.createLs=function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var a,s,u,l,h,d,p,m,v,y,b return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r.timeout,s=r.signal,u=r.headers,l=i(r,n),t.next=3,o(e.post("pin/remote/ls",{timeout:a,signal:s,headers:u,searchParams:f.encodeQuery(l)})) -case 3:h=t.sent,d=!1,p=!1,t.prev=6,y=c(h.ndjson()) -case 8:return t.next=10,o(y.next()) -case 10:if(!(d=!(v=t.sent).done)){t.next=17 -break}return b=v.value,t.next=14,f.decodePin(b) +case 3:h=t.sent,d=!1,p=!1,t.prev=6,v=c(h.ndjson()) +case 8:return t.next=10,o(v.next()) +case 10:if(!(d=!(y=t.sent).done)){t.next=17 +break}return b=y.value,t.next=14,f.decodePin(b) case 14:d=!1,t.next=8 break case 17:t.next=23 break case 19:t.prev=19,t.t0=t.catch(6),p=!0,m=t.t0 -case 23:if(t.prev=23,t.prev=24,!d||null==y.return){t.next=28 -break}return t.next=28,o(y.return()) +case 23:if(t.prev=23,t.prev=24,!d||null==v.return){t.next=28 +break}return t.next=28,o(v.return()) case 28:if(t.prev=28,!p){t.next=31 break}throw m case 31:return t.finish(28) @@ -16182,7 +17417,7 @@ if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e) for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function c(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(65) +var l=r(77) t.createRm=function(e){function t(){return(t=c(regeneratorRuntime.mark((function t(r){var i,a,u,c return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.timeout,a=r.signal,u=r.headers,c=s(r,n),t.next=3,e.post("pin/remote/rm",{timeout:i,signal:a,headers:u,searchParams:l.encodeQuery(o(o({},c),{},{all:!1}))}) case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}},function(e,t,r){"use strict" @@ -16199,25 +17434,25 @@ if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e) for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function u(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function c(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function a(e){u(o,n,i,a,s,"next",e)}function s(e){u(o,n,i,a,s,"throw",e)}a(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(65) +var l=r(77) t.createRmAll=function(e){function t(){return(t=c(regeneratorRuntime.mark((function t(r){var i,a,u,c return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.timeout,a=r.signal,u=r.headers,c=s(r,n),t.next=3,e.post("pin/remote/rm",{timeout:i,signal:a,headers:u,searchParams:l.encodeQuery(o(o({},c),{},{all:!0}))}) case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(79),i=r(392),o=r(393),a=r(394) +var n=r(95),i=r(414),o=r(415),a=r(416) t.createService=function(e){var t=new n.Client(e) return{add:i.createAdd(t),ls:o.createLs(t),rm:a.createRm(t)}}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(3),a=r(143) +var o=r(5),a=r(156) t.createAdd=function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(r,n){var i,s,u,c,l return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.endpoint,s=n.key,u=n.headers,c=n.timeout,l=n.signal,t.next=3,e.post("pin/remote/service/add",{timeout:c,signal:l,searchParams:o.toUrlSearchParams({arg:[r,a.encodeEndpoint(i),s]}),headers:u}) case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e,r){return t.apply(this,arguments)}}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(3),a=r(143) +var o=r(5),a=r(156) t.createLs=function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,s,u,c,l,f,h=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=h.length>0&&void 0!==h[0]?h[0]:{},n=r.stat,i=r.headers,s=r.timeout,u=r.signal,t.next=4,e.post("pin/remote/service/ls",{timeout:s,signal:u,headers:i,searchParams:!0===n?o.toUrlSearchParams({stat:n}):void 0}) case 4:return c=t.sent,t.next=7,c.json() @@ -16226,18 +17461,18 @@ case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return functi function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(3) +var o=r(5) t.createRm=function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(r){var n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},t.next=3,e.post("pin/remote/service/rm",{signal:n.signal,headers:n.headers,searchParams:o.toUrlSearchParams({arg:r})}) case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(396),i=r(397),o=r(398),a=r(399),s=r(400),u=r(401) +var n=r(418),i=r(419),o=r(420),a=r(421),s=r(422),u=r(423) t.createPubsub=function(e){var t=new u.SubscriptionTracker return{ls:n.createLs(e),peers:i.createPeers(e),publish:o.createPublish(e),subscribe:a.createSubscribe(e,t),unsubscribe:s.createUnsubscribe(e,t)}}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=r(66),u=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o=arguments +var o=r(4),a=r(5),s=r(78),u=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,o=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("pubsub/ls",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return t.next=5,t.sent.json() case 5:return n=t.sent,i=n.Strings,t.abrupt("return",s.rpcArrayToTextArray(i)||[]) @@ -16249,7 +17484,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=r(66),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments +var u=r(4),c=r(5),l=r(78),f=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("pubsub/peers",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:l.textToUrlSafeRpc(r)},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,s=a.Strings,t.abrupt("return",s||[]) @@ -16261,7 +17496,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=r(23),f=r(24),h=r(66),d=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,u,d,p=arguments +var u=r(4),c=r(5),l=r(30),f=r(31),h=r(78),d=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r,n){var o,a,s,u,d,p=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=p.length>2&&void 0!==p[2]?p[2]:{},a=c.toUrlSearchParams(i({arg:h.textToUrlSafeRpc(r)},o)),s=new AbortController,u=f.abortSignal(s.signal,o.signal),t.t0=e,t.t1=i,t.t2={signal:u,searchParams:a},t.next=9,l.multipartRequest([n],s,o.headers) case 9:return t.t3=t.sent,t.t4=(0,t.t1)(t.t2,t.t3),t.next=13,t.t0.post.call(t.t0,"pubsub/pub",t.t4) case 13:return d=t.sent,t.next=16,d.text() @@ -16280,9 +17515,9 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(l=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new l(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var f=r(123),h=r(2),d=r(3),p=r(66) +var f=r(136),h=r(4),d=r(5),p=r(78) var m=function(e){return e&&"object"===u(e)&&"default"in e?e:{default:e}}(f).default("ipfs-http-client:pubsub:subscribe") -function y(e,t){return v.apply(this,arguments)}function v(){return(v=s(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s,u,l,f,h +function v(e,t){return y.apply(this,arguments)}function y(){return(y=s(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s,u,l,f,h return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.onMessage,i=r.onEnd,o=(o=r.onError)||m,e.prev=2,a=!1,s=!1,e.prev=5,l=c(t.ndjson()) case 7:return e.next=9,l.next() case 9:if(!(a=!(f=e.sent).done)){e.next=24 @@ -16309,7 +17544,7 @@ case 45:return e.prev=45,i(),e.finish(45) case 48:case"end":return e.stop()}}),e,null,[[2,42,45,48],[5,26,30,40],[11,17],[31,,35,39]])})))).apply(this,arguments)}var b=function(e){switch(e.type){case"aborted":case"abort":return!0 default:return"AbortError"===e.name}} t.createSubscribe=function(e,t){return h.configure((function(e){function r(){return(r=s(regeneratorRuntime.mark((function r(n,o){var a,s,u,c,l,f=arguments -return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(a=f.length>2&&void 0!==f[2]?f[2]:{}).signal=t.subscribe(n,o,a.signal),c=new Promise((function(e,t){s=e,u=t})),l=setTimeout((function(){return s()}),1e3),e.post("pubsub/sub",{signal:a.signal,searchParams:d.toUrlSearchParams(i({arg:p.textToUrlSafeRpc(n)},a)),headers:a.headers}).catch((function(e){t.unsubscribe(n,o),u(e)})).then((function(e){clearTimeout(l),e&&(y(e,{onMessage:o,onEnd:function(){return t.unsubscribe(n,o)},onError:a.onError}),s())})),r.abrupt("return",c) +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(a=f.length>2&&void 0!==f[2]?f[2]:{}).signal=t.subscribe(n,o,a.signal),c=new Promise((function(e,t){s=e,u=t})),l=setTimeout((function(){return s()}),1e3),e.post("pubsub/sub",{signal:a.signal,searchParams:d.toUrlSearchParams(i({arg:p.textToUrlSafeRpc(n)},a)),headers:a.headers}).catch((function(e){t.unsubscribe(n,o),u(e)})).then((function(e){clearTimeout(l),e&&(v(e,{onMessage:o,onEnd:function(){return t.unsubscribe(n,o)},onError:a.onError}),s())})),r.abrupt("return",c) case 6:case"end":return r.stop()}}),r)})))).apply(this,arguments)}return function(e,t){return r.apply(this,arguments)}}))(e)}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -16344,13 +17579,13 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new l(e)}function f(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}a.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(e){return this._invoke("next",e)},a.prototype.throw=function(e){return this._invoke("throw",e)},a.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var h=r(5),d=r(11),p=r(2),m=r(3),y=r(403),v=p.configure((function(e,t){var r=function(){var t,r=(t=regeneratorRuntime.mark((function t(r){var n,o,a,u=arguments +var h=r(7),d=r(15),p=r(4),m=r(5),v=r(425),y=p.configure((function(e,t){var r=function(){var t,r=(t=regeneratorRuntime.mark((function t(r){var n,o,a,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},o=Array.isArray(r)?r:[r],t.next=4,s(e.post("refs",{signal:n.signal,searchParams:m.toUrlSearchParams(i({arg:o.map((function(e){return"".concat(e instanceof Uint8Array?h.CID.decode(e):e)}))},n)),headers:n.headers,transform:d.objectToCamel})) case 4:return a=t.sent,t.delegateYield(f(c(a.ndjson()),s),"t0",6) case 6:case"end":return t.stop()}}),t)})),function(){return new a(t.apply(this,arguments))}) return function(e){return r.apply(this,arguments)}}() -return Object.assign(r,{local:y.createLocal(t)})})) -t.createRefs=v},function(e,t,r){"use strict" +return Object.assign(r,{local:v.createLocal(t)})})) +t.createRefs=y},function(e,t,r){"use strict" function n(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r function n(t,r){try{var o=e[t](r),s=o.value,u=s instanceof a Promise.resolve(u?s.wrapped:s).then((function(e){u?n("return"===t?"return":"next",e):i(o.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0}) @@ -16368,13 +17603,13 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}function c(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(11),f=r(2),h=r(3),d=f.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var l=r(15),f=r(4),h=r(5),d=f.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,o(e.post("refs/local",{signal:r.signal,transform:l.objectToCamel,searchParams:h.toUrlSearchParams(r),headers:r.headers})) case 3:return n=t.sent,t.delegateYield(c(s(n.ndjson()),o),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createLocal=d},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(405),i=r(144),o=r(406) +var n=r(427),i=r(157),o=r(428) t.createRepo=function(e){return{gc:n.createGc(e),stat:i.createStat(e),version:o.createVersion(e)}}},function(e,t,r){"use strict" function n(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r function n(t,r){try{var o=e[t](r),s=o.value,u=s instanceof a @@ -16393,7 +17628,7 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}function c(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(5),f=r(2),h=r(3),d=f.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var l=r(7),f=r(4),h=r(5),d=f.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,o(e.post("repo/gc",{signal:r.signal,searchParams:h.toUrlSearchParams(r),headers:r.headers,transform:function(e){return{err:e.Error?new Error(e.Error):null,cid:(e.Key||{})["/"]?l.CID.parse(e.Key["/"]):null}}})) case 3:return n=t.sent,t.delegateYield(c(s(n.ndjson()),o),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) @@ -16401,14 +17636,14 @@ t.createGc=d},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("repo/version",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return t.next=5,t.sent.json() case 5:return n=t.sent,t.abrupt("return",n.Version) case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createVersion=s},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(130),i=r(144),o=r(408) +var n=r(143),i=r(157),o=r(430) t.createStats=function(e){return{bitswap:n.createStat(e),repo:i.createStat(e),bw:o.createBw(e)}}},function(e,t,r){"use strict" function n(e){return function(){return new i(e.apply(this,arguments))}}function i(e){var t,r function n(t,r){try{var o=e[t](r),s=o.value,u=s instanceof a @@ -16427,18 +17662,18 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}function c(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(2),f=r(3),h=l.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var l=r(4),f=r(5),h=l.configure((function(e){function t(){return(t=n(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,o(e.post("stats/bw",{signal:r.signal,searchParams:f.toUrlSearchParams(r),headers:r.headers,transform:function(e){return{totalIn:BigInt(e.TotalIn),totalOut:BigInt(e.TotalOut),rateIn:parseFloat(e.RateIn),rateOut:parseFloat(e.RateOut)}}})) case 3:return n=t.sent,t.delegateYield(c(s(n.ndjson()),o),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) t.createBw=h},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(410),i=r(411),o=r(412),a=r(413),s=r(414) +var n=r(432),i=r(433),o=r(434),a=r(435),s=r(436) t.createSwarm=function(e){return{addrs:n.createAddrs(e),connect:i.createConnect(e),disconnect:o.createDisconnect(e),localAddrs:a.createLocalAddrs(e),peers:s.createPeers(e)}}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(14),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a,u=arguments +var o=r(19),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>0&&void 0!==u[0]?u[0]:{},t.next=3,e.post("swarm/addrs",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,a=i.Addrs,t.abrupt("return",Object.keys(a).map((function(e){return{id:e,addrs:(a[e]||[]).map((function(e){return new o.Multiaddr(e)}))}}))) @@ -16450,7 +17685,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("swarm/connect",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,s=a.Strings,t.abrupt("return",s||[]) @@ -16462,7 +17697,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(2),c=r(3),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments +var u=r(4),c=r(5),l=u.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(r){var n,o,a,s,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("swarm/disconnect",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,s=a.Strings,t.abrupt("return",s||[]) @@ -16471,7 +17706,7 @@ t.createDisconnect=l},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(14),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a,u=arguments +var o=r(19),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>0&&void 0!==u[0]?u[0]:{},t.next=3,e.post("swarm/addrs/local",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,a=i.Strings,t.abrupt("return",(a||[]).map((function(e){return new o.Multiaddr(e)}))) @@ -16480,7 +17715,7 @@ t.createLocalAddrs=u},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(14),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a,u=arguments +var o=r(19),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i,a,u=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>0&&void 0!==u[0]?u[0]:{},t.next=3,e.post("swarm/peers",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.json() case 6:return i=t.sent,a=i.Peers,t.abrupt("return",(a||[]).map((function(e){return{addr:new o.Multiaddr(e.Addr),peer:e.Peer,muxer:e.Muxer,latency:e.Latency,streams:e.Streams,direction:null==e.Direction?void 0:0===e.Direction?"inbound":"outbound"}}))) @@ -16489,7 +17724,7 @@ t.createPeers=u},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var a=r(145),s=r(64),u=r(2),c=r(416) +var a=r(158),s=r(76),u=r(4),c=r(438) var l=function(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}(s) t.createAdd=function(e){var t=a.createAddAll(e) return u.configure((function(){function e(){return(e=i(regeneratorRuntime.mark((function e(r){var n,i=arguments @@ -16497,7 +17732,7 @@ return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0: case 3:return e.abrupt("return",e.sent) case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return function(t){return e.apply(this,arguments)}}))(e)}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(417),i=r(419) +var n=r(439),i=r(441) t.normaliseInput=function(e){return i.normaliseCandidateSingle(e,n.normaliseContent)}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -16509,28 +17744,28 @@ case"throw":t.reject(i) break default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null} r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function u(e){this.wrapped=e}s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var c=r(15),l=r(34),f=r(54),h=r(418),d=r(62),p=r(132),m=r(133),y=r(63) -function v(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var b=v(c),g=v(f),w=v(h),_=v(d),x=v(p),k=v(m) +var c=r(20),l=r(42),f=r(64),h=r(440),d=r(74),p=r(145),m=r(146),v=r(75) +function y(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var b=y(c),g=y(f),w=y(h),_=y(d),k=y(p),x=y(m) function O(e){return E.apply(this,arguments)}function E(){return(E=a(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){return(S=i(regeneratorRuntime.mark((function e(t){var r,n,i -return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y.isBytes(t)){e.next=2 +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v.isBytes(t)){e.next=2 break}return e.abrupt("return",O(P(t))) case 2:if(!("string"==typeof t||t instanceof String)){e.next=4 break}return e.abrupt("return",O(P(t.toString()))) -case 4:if(!y.isBlob(t)){e.next=6 +case 4:if(!v.isBlob(t)){e.next=6 break}return e.abrupt("return",w.default(t)) -case 6:if(y.isReadableStream(t)&&(t=g.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=27 +case 6:if(v.isReadableStream(t)&&(t=g.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=27 break}return r=_.default(t),e.next=11,r.peek() case 11:if(n=e.sent,i=n.value,!n.done){e.next=16 break}return e.abrupt("return",O(new Uint8Array(0))) case 16:if(r.push(i),!Number.isInteger(i)){e.next=25 -break}return e.t0=O,e.t1=Uint8Array,e.next=22,x.default(r) +break}return e.t0=O,e.t1=Uint8Array,e.next=22,k.default(r) case 22:return e.t2=e.sent,e.t3=e.t1.from.call(e.t1,e.t2),e.abrupt("return",(0,e.t0)(e.t3)) -case 25:if(!(y.isBytes(i)||"string"==typeof i||i instanceof String)){e.next=27 -break}return e.abrupt("return",k.default(r,P)) +case 25:if(!(v.isBytes(i)||"string"==typeof i||i instanceof String)){e.next=27 +break}return e.abrupt("return",x.default(r,P)) case 27:throw b.default(new Error("Unexpected input: ".concat(t)),"ERR_UNEXPECTED_INPUT") case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e instanceof ArrayBuffer?new Uint8Array(e):Array.isArray(e)?Uint8Array.from(e):l.fromString(e.toString())}t.normaliseContent=function(e){return S.apply(this,arguments)}},function(e,t,r){"use strict" -var n=r(54) +var n=r(64) e.exports=function(e){return"function"==typeof e.stream?n(e.stream()):n(new Response(e).body)}},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -16542,18 +17777,18 @@ case"throw":t.reject(i) break default:t.resolve({value:i,done:!1})}(t=t.next)?n(t.key,t.arg):r=null}this._invoke=function(e,i){return new Promise((function(o,a){var s={key:e,arg:i,resolve:o,reject:a,next:null} r?r=r.next=s:(t=r=s,n(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function c(e){this.wrapped=e}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var l=r(15),f=r(54),h=r(62),d=r(63),p=r(134) -function m(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var y=m(l),v=m(f),b=m(h) +var l=r(20),f=r(64),h=r(74),d=r(75),p=r(147) +function m(e){return e&&"object"===o(e)&&"default"in e?e:{default:e}}var v=m(l),y=m(f),b=m(h) function g(){return(g=s(regeneratorRuntime.mark((function e(t,r){var n,i,s return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2 -break}throw y.default(new Error("Unexpected input: ".concat(t)),"ERR_UNEXPECTED_INPUT") +break}throw v.default(new Error("Unexpected input: ".concat(t)),"ERR_UNEXPECTED_INPUT") case 2:if(!("string"==typeof t||t instanceof String)){e.next=6 break}return e.next=5,w(t.toString(),r) case 5:return e.abrupt("return") case 6:if(!d.isBytes(t)&&!d.isBlob(t)){e.next=10 break}return e.next=9,w(t,r) case 9:return e.abrupt("return") -case 10:if(d.isReadableStream(t)&&(t=v.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=28 +case 10:if(d.isReadableStream(t)&&(t=y.default(t)),!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t)){e.next=28 break}return n=b.default(t),e.next=15,a(n.peek()) case 15:if(i=e.sent,s=i.value,!i.done){e.next=22 break}return e.next=21,{content:[]} @@ -16561,11 +17796,11 @@ case 21:return e.abrupt("return") case 22:if(n.push(s),!(Number.isInteger(s)||d.isBytes(s)||"string"==typeof s||s instanceof String)){e.next=27 break}return e.next=26,w(n,r) case 26:return e.abrupt("return") -case 27:throw y.default(new Error("Unexpected input: multiple items passed - if you are using ipfs.add, please use ipfs.addAll instead"),"ERR_UNEXPECTED_INPUT") +case 27:throw v.default(new Error("Unexpected input: multiple items passed - if you are using ipfs.add, please use ipfs.addAll instead"),"ERR_UNEXPECTED_INPUT") case 28:if(!d.isFileObject(t)){e.next=32 break}return e.next=31,w(t,r) case 31:return e.abrupt("return") -case 32:throw y.default(new Error('Unexpected input: cannot convert "'+o(t)+'" into ImportCandidate'),"ERR_UNEXPECTED_INPUT") +case 32:throw v.default(new Error('Unexpected input: cannot convert "'+o(t)+'" into ImportCandidate'),"ERR_UNEXPECTED_INPUT") case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t){return _.apply(this,arguments)}function _(){return(_=i(regeneratorRuntime.mark((function e(t,r){var n,i,o,a,s return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.path,i=t.mode,o=t.mtime,a=t.content,s={path:n||"",mode:p.parseMode(i),mtime:p.parseMtime(o)},!a){e.next=8 break}return e.next=5,r(a) @@ -16596,13 +17831,13 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}function h(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var d=r(2),p=r(3),m=d.configure((function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var d=r(4),p=r(5),m=d.configure((function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,u(e.post("cat",{signal:n.signal,searchParams:p.toUrlSearchParams(i({arg:r.toString()},n)),headers:n.headers})) case 3:return o=t.sent,t.delegateYield(h(l(o.iterator()),u),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createCat=m},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}Object.defineProperty(t,"__esModule",{value:!0}) -var i=r(2),o=r(3),a=i.configure((function(e){return function(){var t,r=(t=regeneratorRuntime.mark((function t(){var r,n,i=arguments +var i=r(4),o=r(5),a=i.configure((function(e){return function(){var t,r=(t=regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("commands",{signal:r.signal,searchParams:o.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.abrupt("return",n.json()) case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments @@ -16614,7 +17849,7 @@ function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==s[1]?s[1]:{},t.next=3,e.post("dns",{signal:n.signal,searchParams:u.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,t.abrupt("return",a.Path) @@ -16624,7 +17859,7 @@ function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void return function(e){return r.apply(this,arguments)}}()})) t.createDns=c},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(2).configure((function(e){return function(){var t=new URL(e.opts.base||"") +var n=r(4).configure((function(e){return function(){var t=new URL(e.opts.base||"") return{host:t.hostname,port:t.port,protocol:t.protocol,pathname:t.pathname,"api-path":t.pathname}}})) t.createGetEndpointConfig=n},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) @@ -16647,15 +17882,15 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}function h(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var d=r(5),p=r(2),m=r(3),y=p.configure((function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments +var d=r(7),p=r(4),m=r(5),v=p.configure((function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var n,o,a,s=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},(o=i({arg:"".concat(r instanceof Uint8Array?d.CID.decode(r):r)},n)).compressionLevel&&(o["compression-level"]=o.compressionLevel,delete o.compressionLevel),t.next=5,u(e.post("get",{signal:n.signal,searchParams:m.toUrlSearchParams(o),headers:n.headers})) case 5:return a=t.sent,t.delegateYield(h(l(a.iterator()),u),"t0",7) case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -t.createGet=y},function(e,t,r){"use strict" +t.createGet=v},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(146) +var o=r(159) t.createIsOnline=function(e){var t=o.createId(e) function r(){return(r=i(regeneratorRuntime.mark((function e(){var r,n,i=arguments return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},e.next=3,t(r) @@ -16683,7 +17918,7 @@ var t=e.done return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(p=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new p(e)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(e){return this._invoke("next",e)},c.prototype.throw=function(e){return this._invoke("throw",e)},c.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var m=r(5),y=r(2),v=r(3),b=r(139),g=y.configure((function(e,t){function r(){return(r=u(regeneratorRuntime.mark((function r(n){var o,a,u,c,f,p,y,g,_,x,k,O,E=arguments +var m=r(7),v=r(4),y=r(5),b=r(152),g=v.configure((function(e,t){function r(){return(r=u(regeneratorRuntime.mark((function r(n){var o,a,u,c,f,p,v,g,_,k,x,O,E=arguments return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return c=function(){return(c=s(regeneratorRuntime.mark((function e(r){var n,i,o,s return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=r.Hash).includes("/")){e.next=9 break}return i=n.startsWith("/ipfs/")?n:"/ipfs/".concat(n),e.next=5,b.createStat(t)(i) @@ -16691,28 +17926,28 @@ case 5:o=e.sent,n=o.cid,e.next=10 break case 9:n=m.CID.parse(n) case 10:return s={name:r.Name,path:a+(r.Name?"/".concat(r.Name):""),size:r.Size,cid:n,type:w(r)},r.Mode&&(s.mode=parseInt(r.Mode,8)),void 0!==r.Mtime&&null!==r.Mtime&&(s.mtime={secs:r.Mtime},void 0!==r.MtimeNsecs&&null!==r.MtimeNsecs&&(s.mtime.nsecs=r.MtimeNsecs)),e.abrupt("return",s) -case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)},u=function(e){return c.apply(this,arguments)},o=E.length>1&&void 0!==E[1]?E[1]:{},a="".concat(n instanceof Uint8Array?m.CID.decode(n):n),r.next=6,l(e.post("ls",{signal:o.signal,searchParams:v.toUrlSearchParams(i({arg:a},o)),headers:o.headers})) -case 6:f=r.sent,p=!1,y=!1,r.prev=9,_=d(f.ndjson()) +case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)},u=function(e){return c.apply(this,arguments)},o=E.length>1&&void 0!==E[1]?E[1]:{},a="".concat(n instanceof Uint8Array?m.CID.decode(n):n),r.next=6,l(e.post("ls",{signal:o.signal,searchParams:y.toUrlSearchParams(i({arg:a},o)),headers:o.headers})) +case 6:f=r.sent,p=!1,v=!1,r.prev=9,_=d(f.ndjson()) case 11:return r.next=13,l(_.next()) -case 13:if(!(p=!(x=r.sent).done)){r.next=32 -break}if(k=(k=x.value).Objects){r.next=18 +case 13:if(!(p=!(k=r.sent).done)){r.next=32 +break}if(x=(x=k.value).Objects){r.next=18 break}throw new Error("expected .Objects in results") -case 18:if(k=k[0]){r.next=21 +case 18:if(x=x[0]){r.next=21 break}throw new Error("expected one array in results.Objects") -case 21:if(O=k.Links,Array.isArray(O)){r.next=24 +case 21:if(O=x.Links,Array.isArray(O)){r.next=24 break}throw new Error("expected one array in results.Objects[0].Links") case 24:if(O.length){r.next=28 -break}return r.next=27,u(k) +break}return r.next=27,u(x) case 27:return r.abrupt("return") case 28:return r.delegateYield(h(d(O.map(u)),l),"t0",29) case 29:p=!1,r.next=11 break case 32:r.next=38 break -case 34:r.prev=34,r.t1=r.catch(9),y=!0,g=r.t1 +case 34:r.prev=34,r.t1=r.catch(9),v=!0,g=r.t1 case 38:if(r.prev=38,r.prev=39,!p||null==_.return){r.next=43 break}return r.next=43,l(_.return()) -case 43:if(r.prev=43,!y){r.next=46 +case 43:if(r.prev=43,!v){r.next=46 break}throw g case 46:return r.finish(43) case 47:return r.finish(38) @@ -16722,7 +17957,7 @@ case 2:default:return"file"}}t.createLs=g},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(11),a=r(2),s=r(3),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(15),a=r(4),s=r(5),u=a.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("dns",{signal:r.signal,searchParams:s.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.t0=o,t.next=7,n.json() case 7:return t.t1=t.sent,t.abrupt("return",t.t0.objectToCamel.call(t.t0,t.t1)) @@ -16748,26 +17983,26 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new f(e)}function h(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}s.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(e){return this._invoke("next",e)},s.prototype.throw=function(e){return this._invoke("throw",e)},s.prototype.return=function(e){return this._invoke("return",e)},Object.defineProperty(t,"__esModule",{value:!0}) -var d=r(11),p=r(2),m=r(3),y=p.configure((function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var n,o,a=arguments +var d=r(15),p=r(4),m=r(5),v=p.configure((function(e){function t(){return(t=a(regeneratorRuntime.mark((function t(r){var n,o,a=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},t.next=3,u(e.post("ping",{signal:n.signal,searchParams:m.toUrlSearchParams(i({arg:"".concat(r)},n)),headers:n.headers,transform:d.objectToCamel})) case 3:return o=t.sent,t.delegateYield(h(l(o.ndjson()),u),"t0",5) case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) -t.createPing=y},function(e,t,r){"use strict" +t.createPing=v},function(e,t,r){"use strict" function n(e,t){var r=Object.keys(e) if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==u[1]?u[1]:{},t.next=3,e.post("resolve",{signal:n.signal,searchParams:c.toUrlSearchParams(i({arg:r},n)),headers:n.headers}) case 3:return o=t.sent,t.next=6,o.json() case 6:return a=t.sent,s=a.Path,t.abrupt("return",s) case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}})) t.createResolve=l},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2) -var a=function(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}(r(15)),s=o.configure((function(e){return function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t=arguments +var o=r(4) +var a=function(e){return e&&"object"===i(e)&&"default"in e?e:{default:e}}(r(20)),s=o.configure((function(e){return function(){var e,t=(e=regeneratorRuntime.mark((function e(){var t=arguments return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw t.length>0&&void 0!==t[0]&&t[0],a.default(new Error("Not implemented"),"ERR_NOT_IMPLEMENTED") case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) @@ -16777,7 +18012,7 @@ t.createStart=s},function(e,t,r){"use strict" function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments return new Promise((function(i,o){var a=e.apply(t,r) function s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var o=r(2),a=r(3),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments +var o=r(4),a=r(5),s=o.configure((function(e){function t(){return(t=i(regeneratorRuntime.mark((function t(){var r,n,i=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,e.post("shutdown",{signal:r.signal,searchParams:a.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.next=6,n.text() case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(){return t.apply(this,arguments)}})) @@ -16788,7 +18023,7 @@ t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerab t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function s(e){return function(){var t=this,r=arguments return new Promise((function(n,i){var o=e.apply(t,r) function s(e){a(o,n,i,s,u,"next",e)}function u(e){a(o,n,i,s,u,"throw",e)}s(void 0)}))}}Object.defineProperty(t,"__esModule",{value:!0}) -var u=r(11),c=r(2),l=r(3),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o=arguments +var u=r(15),c=r(4),l=r(5),f=c.configure((function(e){function t(){return(t=s(regeneratorRuntime.mark((function t(){var r,n,o=arguments return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},t.next=3,e.post("version",{signal:r.signal,searchParams:l.toUrlSearchParams(r),headers:r.headers}) case 3:return n=t.sent,t.t0=i,t.t1=i,t.t2={},t.t3=u,t.next=10,n.json() case 10:return t.t4=t.sent,t.t5=t.t3.objectToCamel.call(t.t3,t.t4),t.t6=(0,t.t1)(t.t2,t.t5),t.t7={},t.t8={"ipfs-http-client":"1.0.0"},t.abrupt("return",(0,t.t0)(t.t6,t.t7,t.t8)) @@ -16811,12 +18046,12 @@ return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments) return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new u(e)}function c(e,t){var r={},n=!1 function i(r,i){return n=!0,i=new Promise((function(t){t(e[r](i))})),{done:!1,value:t(i)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return n?(n=!1,e):i("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(n)throw n=!1,e return i("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return n?(n=!1,e):i("return",e)}),r}i.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},i.prototype.next=function(e){return this._invoke("next",e)},i.prototype.throw=function(e){return this._invoke("throw",e)},i.prototype.return=function(e){return this._invoke("return",e)} -var l=r(83) +var l=r(99) function f(e,t){return h.apply(this,arguments)}function h(){return(h=n(regeneratorRuntime.mark((function e(t,r){var n,i return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new l,e.next=3,o(n.get(t,r)) case 3:return i=e.sent,e.delegateYield(c(s(i.iterator()),o),"t0",5) case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}e.exports=function(e,t){return{path:decodeURIComponent(new URL(e).pathname.split("/").pop()||""),content:f(e,t)}}},function(e,t,r){"use strict" -var n=r(436),i=r(441),o=r(445).names,a=r(31).toString,s=r(34).fromString,u=r(82).concat,c={} +var n=r(458),i=r(463),o=r(467).names,a=r(40).toString,s=r(42).fromString,u=r(98).concat,c={} for(var l in o){var f=l c[o[f]]=f}function h(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array") if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.") @@ -16830,7 +18065,7 @@ return{code:t,name:c[t],length:r,digest:e}}function d(e){var t=e if("string"==typeof e){if(void 0===o[e])throw new Error("Unrecognized hash function named: ".concat(e)) t=o[e]}if("number"!=typeof t)throw new Error("Hash function code should be a number. Got: ".concat(t)) if(void 0===c[t]&&!p(t))throw new Error("Unrecognized function code: ".concat(t)) -return t}function p(e){return e>0&&e<16}function m(e){return!!p(e)||!!c[e]}function y(e){h(e)}Object.freeze(c),e.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array") +return t}function p(e){return e>0&&e<16}function m(e){return!!p(e)||!!c[e]}function v(e){h(e)}Object.freeze(c),e.exports={names:o,codes:c,toHexString:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array") return a(e,"base16")},fromHexString:function(e){return s(e,"base16")},toB58String:function(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array") return a(n.encode("base58btc",e)).slice(1)},fromB58String:function(e){var t=e instanceof Uint8Array?a(e):e return n.decode("z"+t)},decode:h,encode:function(e,t,r){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code") @@ -16838,8 +18073,8 @@ var n=d(t) if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array") if(null==r&&(r=e.length),r&&e.length!==r)throw new Error("digest length should be equal to specified length.") var o=i.encode(n),a=i.encode(r) -return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:p,validate:y,prefix:function(e){return y(e),e.subarray(0,2)},isValidCode:m}},function(e,t,r){"use strict" -var n=r(437),i=r(84),o=i.encodeText,a=i.decodeText,s=i.concat +return u([o,a,e],o.length+a.length+e.length)},coerceCode:d,isAppCode:p,validate:v,prefix:function(e){return v(e),e.subarray(0,2)},isValidCode:m}},function(e,t,r){"use strict" +var n=r(459),i=r(100),o=i.encodeText,a=i.decodeText,s=i.concat function u(e){if(Object.prototype.hasOwnProperty.call(n.names,e))return n.names[e] if(Object.prototype.hasOwnProperty.call(n.codes,e))return n.codes[e] throw new Error("Unsupported encoding: ".concat(e))}(t=e.exports=function(e,t){if(!t)throw new Error("requires an encoded Uint8Array") @@ -16851,7 +18086,7 @@ return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.to try{return u(e[0]).name}catch(e){return!1}},t.encoding=u,t.encodingFromData=function(e){return e instanceof Uint8Array&&(e=a(e)),u(e[0])} var c=Object.freeze(n.names),l=Object.freeze(n.codes) t.names=c,t.codes=l},function(e,t,r){"use strict" -var n=r(438),i=r(439),o=r(440).rfc4648,a=r(84),s=a.decodeText,u=a.encodeText,c=[["identity","\0",function(){return{encode:s,decode:u}},""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",n,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",n,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",n,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",n,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((function(e,t){return e[t[0]]=new i(t[0],t[1],t[2],t[3]),e}),{}),f=c.reduce((function(e,t){return e[t[1]]=l[t[0]],e}),{}) +var n=r(460),i=r(461),o=r(462).rfc4648,a=r(100),s=a.decodeText,u=a.encodeText,c=[["identity","\0",function(){return{encode:s,decode:u}},""],["base2","0",o(1),"01"],["base8","7",o(3),"01234567"],["base10","9",n,"0123456789"],["base16","f",o(4),"0123456789abcdef"],["base16upper","F",o(4),"0123456789ABCDEF"],["base32hex","v",o(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",o(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",o(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",o(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",o(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",o(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",o(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",n,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",n,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",n,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",n,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",o(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((function(e,t){return e[t[0]]=new i(t[0],t[1],t[2],t[3]),e}),{}),f=c.reduce((function(e,t){return e[t[1]]=l[t[0]],e}),{}) e.exports={names:l,codes:f}},function(e,t,r){"use strict" e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long") for(var t=new Uint8Array(256),r=0;re.length)&&(t=e.length) for(var r=0,n=new Array(t);r=8&&(s-=8,a[c++]=255&u>>s)}if(s>=r||255&u<<8-s)throw new SyntaxError("Unexpected end of data") -return a}(r,t,e)}}}}}},function(e,t,r){e.exports={encode:r(442),decode:r(443),encodingLength:r(444)}},function(e,t){e.exports=function e(t,n,i){n=n||[] +return a}(r,t,e)}}}}}},function(e,t,r){e.exports={encode:r(464),decode:r(465),encodingLength:r(466)}},function(e,t){e.exports=function e(t,n,i){n=n||[] for(var o=i=i||0;t>=r;)n[i++]=255&t|128,t/=128 for(;-128&t;)n[i++]=255&t|128,t>>>=7 return n[i]=0|t,e.bytes=i-o+1,n} @@ -16910,7 +18145,59 @@ n=t[a++],i+=o<28?(127&n)<=128) return e.bytes=a-r,i}},function(e,t){var r=Math.pow(2,7),n=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),u=Math.pow(2,49),c=Math.pow(2,56),l=Math.pow(2,63) e.exports=function(e){return ethis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize) +for(var t=e.length;tthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize) +for(var t=e.length;t=43)}})).catch((function(){return!1}))}(e).then((function(e){return h=e}))}function y(e){var t=d[e.name],r={} -r.promise=new a((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function v(e){var t=d[e.name].deferredOperations.pop() +t(r||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return h=e}))}function v(e){var t=d[e.name],r={} +r.promise=new a((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function y(e){var t=d[e.name].deferredOperations.pop() if(t)return t.resolve(),t.promise}function b(e,t){var r=d[e.name].deferredOperations.pop() if(r)return r.reject(t),r.promise}function g(e,t){return new a((function(r,n){if(d[e.name]=d[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return r(e.db) -y(e),e.db.close()}var o=[e.name] +v(e),e.db.close()}var o=[e.name] t&&o.push(e.version) var a=i.open.apply(i,o) t&&(a.onupgradeneeded=function(t){var r=a.result try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){var t=a.result -t.onversionchange=function(e){e.target.close()},r(t),v(e)}}))}function w(e){return g(e,!1)}function _(e){return g(e,!0)}function x(e,t){if(!e.db)return!0 +t.onversionchange=function(e){e.target.close()},r(t),y(e)}}))}function w(e){return g(e,!1)}function _(e){return g(e,!0)}function k(e,t){if(!e.db)return!0 var r=!e.db.objectStoreNames.contains(e.storeName),n=e.versione.db.version if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||r){if(r){var o=e.db.version+1 -o>e.version&&(e.version=o)}return!0}return!1}function k(e){return o([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;ie.version&&(e.version=o)}return!0}return!1}function x(e){return o([function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_(e)})).then((function(){return function(e){y(e) +r(null,i)}catch(i){if(n>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return a.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),_(e)})).then((function(){return function(e){v(e) for(var t=d[e.name],r=t.forages,n=0;n>2],n+=M[(3&r[t])<<4|r[t+1]>>4],n+=M[(15&r[t+1])<<2|r[t+2]>>6],n+=M[63&r[t+2]] return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var N={serialize:function(e,t){var r="" -if(e&&(r=R.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===R.call(e.buffer))){var n,i="__lfsc__:" +if(e&&(r=T.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===T.call(e.buffer))){var n,i="__lfsc__:" e instanceof ArrayBuffer?(n=e,i+="arbf"):(n=e.buffer,"[object Int8Array]"===r?i+="si08":"[object Uint8Array]"===r?i+="ui08":"[object Uint8ClampedArray]"===r?i+="uic8":"[object Int16Array]"===r?i+="si16":"[object Uint16Array]"===r?i+="ur16":"[object Int32Array]"===r?i+="si32":"[object Uint32Array]"===r?i+="ui32":"[object Float32Array]"===r?i+="fl32":"[object Float64Array]"===r?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+I(n))}else if("[object Blob]"===r){var o=new FileReader o.onload=function(){var r="~~local_forage_type~"+e.type+"~"+I(this.result) -t("__lfsc__:blob"+r)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,A))return JSON.parse(e) -var t,r=e.substring(T),n=e.substring(A,T) -if("blob"===n&&j.test(r)){var i=r.match(j) +t("__lfsc__:blob"+r)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,j))return JSON.parse(e) +var t,r=e.substring(R),n=e.substring(j,R) +if("blob"===n&&A.test(r)){var i=r.match(A) t=i[1],r=r.substring(i[0].length)}var a=C(r) switch(n){case"arbf":return a case"blob":return o([a],{type:t}) @@ -17106,38 +18393,38 @@ case"ui32":return new Uint32Array(a) case"fl32":return new Float32Array(a) case"fl64":return new Float64Array(a) default:throw new Error("Unkown type: "+n)}},stringToBuffer:C,bufferToString:I} -function D(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function L(e,t,r,n,i,o){e.executeSql(r,n,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):D(e,t,(function(){e.executeSql(r,n,i,o)}),o)}),o):o(e,a)}),o)}function B(e,t,r,n){var i=this +function D(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function B(e,t,r,n,i,o){e.executeSql(r,n,i,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?o(e,a):D(e,t,(function(){e.executeSql(r,n,i,o)}),o)}),o):o(e,a)}),o)}function L(e,t,r,n){var i=this e=l(e) var o=new a((function(o,a){i.ready().then((function(){void 0===t&&(t=null) var s=t,u=i._dbInfo -u.serializer.serialize(t,(function(t,c){c?a(c):u.db.transaction((function(r){L(r,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void o(B.apply(i,[e,s,r,n-1])) +u.serializer.serialize(t,(function(t,c){c?a(c):u.db.transaction((function(r){B(r,u,"INSERT OR REPLACE INTO "+u.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(n>0)return void o(L.apply(i,[e,s,r,n-1])) a(t)}}))}))})).catch(a)})) return u(o,r),o}function F(e){return new a((function(t,r){e.transaction((function(n){n.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var i=[],o=0;o0?(this._dbInfo=t,t.serializer=N,a.resolve()):a.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,i=n.length,o=localStorage.length,a=1,s=0;s=0;t--){var r=localStorage.key(t) -0===r.indexOf(e)&&localStorage.removeItem(r)}})):a.reject("Invalid arguments"),t),n}},q=function(e,t){for(var r,n,i=e.length,o=0;o=0&&(o=r.type.substring(a)) @@ -17234,7 +18521,7 @@ if("pending"==e)return 1 if("pending"==t)return-1 var r=new u(e),n=new u(t) return r.lt(n)?-1:r.eq(n)?0:1}return 0},toNumber:o.toNumber}},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(449),o=r(147),a=new i(0),s=new i(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"} +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(484),o=r(166),a=new i(0),s=new i(-1),u={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"} function c(e){var t=e?e.toLowerCase():"ether",r=u[t] if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(u,null,2)) return new i(r,10)}function l(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).") @@ -17262,7 +18549,7 @@ var r=function(){} r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s "object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 -try{s=r(7).Buffer}catch(e){}function u(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) if("object"===t(e))return this._initArray(e,r,n) @@ -17352,64 +18639,64 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,b=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,x=0|a[4],k=8191&x,O=x>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],j=8191&M,A=M>>>13,T=0|a[7],R=8191&T,C=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,F=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,q=0|s[1],V=8191&q,W=q>>>13,Y=0|s[2],G=8191&Y,K=Y>>>13,$=0|s[3],J=8191&$,Z=$>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 -var ye=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 -c=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) -var ve=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 -c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 -var be=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,G)|0))<<13)|0 -c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0 -var ge=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0 -c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 -c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 -var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 -var ke=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 -c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(F,G)|0,o=Math.imul(F,K),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Pe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0 -c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 -var je=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(O,pe)|0))<<13)|0 -c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 -var Ae=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 -c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 -var Te=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(A,pe)|0))<<13)|0 -c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 -var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(C,pe)|0))<<13)|0 -c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,fe),i=(i=Math.imul(B,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 -var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(F,pe)|0))<<13)|0 -return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=xe,u[7]=ke,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=je,u[14]=Ae,u[15]=Te,u[16]=Re,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} -function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +function m(e,t,r){return(new v).mulp(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 -return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ -return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 for(a=2*t;ae.l if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r] if(n!==i){ni&&(t=1) -break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} -var v={k256:null,p224:null,p192:null,p25519:null} -function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e) -this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null) +break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new x(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} +var y={k256:null,p224:null,p192:null,p25519:null} +function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null) return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) var n=t>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e] +t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(w,b),o(_,b),o(k,b),k.prototype.imulK=function(e){for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(y[e])return y[e] var t if("k256"===e)t=new g else if("p224"===e)t=new w else if("p192"===e)t=new _ else{if("p25519"!==e)throw new Error("Unknown prime "+e) -t=new x}return v[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t) +t=new k}return y[e]=t,t},x.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t) var r=e.add(t) -return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t) var r=e.iadd(t) -return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t) var r=e.sub(t) -return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t) var r=e.isub(t) -return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone() +return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone() var t=this.m.andln(3) if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) i(!n.isZero()) var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) -for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() -i(y=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1 -i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m) -return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone() -return t.red=null,t},a.mont=function(e){return new O(e)},o(O,k),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new O(e)},o(O,x),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(32)(e))},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t var r=function(){} r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s "object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 -try{s=r(7).Buffer}catch(e){}function u(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}a.isBN=function(e){return e instanceof a||null!==e&&"object"===t(e)&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) if("object"===t(e))return this._initArray(e,r,n) @@ -17657,64 +18944,64 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,b=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,x=0|a[4],k=8191&x,O=x>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],j=8191&M,A=M>>>13,T=0|a[7],R=8191&T,C=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,F=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,q=0|s[1],V=8191&q,W=q>>>13,Y=0|s[2],G=8191&Y,K=Y>>>13,$=0|s[3],J=8191&$,Z=$>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 -var ye=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 -c=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) -var ve=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 -c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 -var be=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,G)|0))<<13)|0 -c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0 -var ge=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0 -c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 -c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 -var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 -var ke=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 -c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(F,G)|0,o=Math.imul(F,K),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Pe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0 -c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 -var je=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(O,pe)|0))<<13)|0 -c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 -var Ae=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 -c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 -var Te=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(A,pe)|0))<<13)|0 -c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 -var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(C,pe)|0))<<13)|0 -c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,fe),i=(i=Math.imul(B,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 -var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(F,pe)|0))<<13)|0 -return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=xe,u[7]=ke,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=je,u[14]=Ae,u[15]=Te,u[16]=Re,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} -function m(e,t,r){return(new y).mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +function m(e,t,r){return(new v).mulp(e,t,r)}function v(e,t){this.x=e,this.y=t}Math.imul||(p=d),a.prototype.mulTo=function(e,t){var r=this.length+e.length return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):m(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 -return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ -return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 +return 1<>>=13,r[2*a+1]=8191&o,o>>>=13 for(a=2*t;ae.l if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r] if(n!==i){ni&&(t=1) -break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} -var v={k256:null,p224:null,p192:null,p25519:null} -function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e) -this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null) +break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new x(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} +var y={k256:null,p224:null,p192:null,p25519:null} +function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null) return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) var n=t>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(v[e])return v[e] +t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(w,b),o(_,b),o(k,b),k.prototype.imulK=function(e){for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(y[e])return y[e] var t if("k256"===e)t=new g else if("p224"===e)t=new w else if("p192"===e)t=new _ else{if("p25519"!==e)throw new Error("Unknown prime "+e) -t=new x}return v[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t) +t=new k}return y[e]=t,t},x.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){i(0==(e.negative|t.negative),"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t) var r=e.add(t) -return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t) +return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t) var r=e.iadd(t) -return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t) +return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t) var r=e.sub(t) -return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t) +return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t) var r=e.isub(t) -return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone() +return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone() var t=this.m.andln(3) if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2) return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1) i(!n.isZero()) var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) -for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() -i(y=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var f=c>>l&1 -i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m) -return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone() -return t.red=null,t},a.mont=function(e){return new O(e)},o(O,k),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) +i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m) +return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone() +return t.red=null,t},a.mont=function(e){return new O(e)},o(O,x),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv)) return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(32)(e))},function(e,t,r){var n=r(452) +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},function(e,t,r){var n=r(487) e.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+r(e)+", while checking isHexPrefixed.") return"0x"===e.slice(0,2)}},function(e,t,r){!function(e){var t,r,n,i=String.fromCharCode function o(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t) return o}(s)}}(t)},function(e,t,r){"use strict" var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)} -Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,i(r(149),t),i(r(150),t),i(r(530),t),i(r(88),t),i(r(531),t),i(r(36),t),i(r(532),t),i(r(29),t),i(r(94),t) -var o=r(42) +Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,i(r(168),t),i(r(169),t),i(r(565),t),i(r(104),t),i(r(566),t),i(r(44),t),i(r(567),t),i(r(38),t),i(r(110),t) +var o=r(50) Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return o.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return o.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return o.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return o.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return o.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return o.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return o.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return o.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return o.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return o.isHexString}})},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t var r=function(){} r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s "object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 -try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(456).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t) +try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(491).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t) return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function c(e,t,r){var n=u(e,r) return r-1>=t&&(n|=u(e,r-1)<<4),n}function l(e,t,r,n){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&a0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) @@ -17927,7 +19214,7 @@ return this.copy(e),e},a.prototype._expand=function(e){for(;this.length1&&0===this.words[this.length-1];)this.length-- return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(e){a.prototype.inspect=h}else a.prototype.inspect=h function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] -function y(e,t,r){r.negative=t.negative^e.negative +function v(e,t,r){r.negative=t.negative^e.negative var n=e.length+t.length|0 r.length=n,n=n-1|0 var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 @@ -17989,57 +19276,57 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,b=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,x=0|a[4],k=8191&x,O=x>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],j=8191&M,A=M>>>13,T=0|a[7],R=8191&T,C=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,F=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,q=0|s[1],V=8191&q,W=q>>>13,Y=0|s[2],G=8191&Y,K=Y>>>13,$=0|s[3],J=8191&$,Z=$>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var y=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 -var ye=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 -c=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) -var ve=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 -c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 -var be=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,G)|0))<<13)|0 -c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0 -var ge=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0 -c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 -c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 -var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 -var ke=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 -c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(F,G)|0,o=Math.imul(F,K),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Pe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0 -c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 -var je=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(O,pe)|0))<<13)|0 -c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 -var Ae=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 -c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 -var Te=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(A,pe)|0))<<13)|0 -c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 -var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(C,pe)|0))<<13)|0 -c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,fe),i=(i=Math.imul(B,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 -var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(F,pe)|0))<<13)|0 -return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=xe,u[7]=ke,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=je,u[14]=Ae,u[15]=Te,u[16]=Re,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(e,t,r){return b(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(v=y),a.prototype.mulTo=function(e,t){var r=this.length+e.length -return 10===this.length&&10===e.length?v(this,e,t):r<63?y(this,e,t):r<1024?b(this,e,t):g(this,e,t)},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(e,t,r){return b(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(y=v),a.prototype.mulTo=function(e,t){var r=this.length+e.length +return 10===this.length&&10===e.length?y(this,e,t):r<63?v(this,e,t):r<1024?b(this,e,t):g(this,e,t)},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 return n},w.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ return 1<=0;r--){var n=0|this.words[r],i=0|e.words[r] if(n!==i){ni&&(t=1) break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new P(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} var _={k256:null,p224:null,p192:null,p25519:null} -function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(e){if("string"==typeof e){var t=a._prime(e) -this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){P.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null) -return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e +function k(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){P.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var e=new a(null) +return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var t,r=e do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},o(k,x),k.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(e,t){e.iushrn(this.n,0,t)},k.prototype.imulK=function(e){return e.imul(this.k)},o(x,k),x.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 +e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e] var t -if("k256"===e)t=new k +if("k256"===e)t=new x else if("p224"===e)t=new O else if("p192"===e)t=new E else{if("p25519"!==e)throw new Error("Unknown prime "+e) @@ -18183,10 +19470,10 @@ return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o i(!n.isZero()) var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) -for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() -i(y=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(32)(e))},,function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},,function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0 -var i=n(r(458)) +var i=n(r(493)) function o(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros") return parseInt(e,t)}function a(t,r){if(t<56)return e.from([t+r]) var n=u(t),i=u(r+55+n.length/2) @@ -18240,13 +19527,13 @@ if(n<=183)return n-127 if(n<=191)return n-182 if(n<=247)return n-191 var i=n-246 -return i+o(r.slice(1,i).toString("hex"),16)}}).call(this,r(7).Buffer)},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" +return i+o(r.slice(1,i).toString("hex"),16)}}).call(this,r(10).Buffer)},function(e,t,r){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,n){"use strict" function i(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t var r=function(){} r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s "object"===t(e)?e.exports=a:n.BN=a,a.BN=a,a.wordSize=26 -try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(459).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t) +try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(494).Buffer}catch(e){}function u(e,t){var r=e.charCodeAt(t) return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function c(e,t,r){var n=u(e,r) return r-1>=t&&(n|=u(e,r-1)<<4),n}function l(e,t,r,n){for(var o=0,a=0,s=Math.min(e.length,r),u=t;u=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&a0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n) @@ -18277,7 +19564,7 @@ return this.copy(e),e},a.prototype._expand=function(e){for(;this.length1&&0===this.words[this.length-1];)this.length-- return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(e){a.prototype.inspect=h}else a.prototype.inspect=h function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176] -function y(e,t,r){r.negative=t.negative^e.negative +function v(e,t,r){r.negative=t.negative^e.negative var n=e.length+t.length|0 r.length=n,n=n-1|0 var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0 @@ -18339,57 +19626,57 @@ for(var o=0,a=0;a>26,this.wo for(;0!==o&&a>26,this.words[a]=67108863&t if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,y=0|a[2],v=8191&y,b=y>>>13,g=0|a[3],w=8191&g,_=g>>>13,x=0|a[4],k=8191&x,O=x>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],j=8191&M,A=M>>>13,T=0|a[7],R=8191&T,C=T>>>13,I=0|a[8],N=8191&I,D=I>>>13,L=0|a[9],B=8191&L,F=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,q=0|s[1],V=8191&q,W=q>>>13,Y=0|s[2],G=8191&Y,K=Y>>>13,$=0|s[3],J=8191&$,Z=$>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 +var y=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],y=8191&v,b=v>>>13,g=0|a[3],w=8191&g,_=g>>>13,k=0|a[4],x=8191&k,O=k>>>13,E=0|a[5],S=8191&E,P=E>>>13,M=0|a[6],A=8191&M,j=M>>>13,R=0|a[7],T=8191&R,C=R>>>13,I=0|a[8],N=8191&I,D=I>>>13,B=0|a[9],L=8191&B,F=B>>>13,U=0|s[0],z=8191&U,q=U>>>13,H=0|s[1],V=8191&H,W=H>>>13,G=0|s[2],Y=8191&G,K=G>>>13,J=0|s[3],$=8191&J,Z=J>>>13,Q=0|s[4],X=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13 r.negative=e.negative^t.negative,r.length=19 -var ye=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0 -c=((o=Math.imul(h,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H) -var ve=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 -c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 -var be=(c+(n=n+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,G)|0))<<13)|0 -c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(v,V)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,K)|0 -var ge=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0 -c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0 +var ve=(c+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(h,z)|0))<<13)|0 +c=((o=Math.imul(h,q))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(m,z)|0,o=Math.imul(m,q) +var ye=(c+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(h,V)|0))<<13)|0 +c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,q))+Math.imul(b,z)|0,o=Math.imul(b,q),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,V)|0,o=o+Math.imul(m,W)|0 +var be=(c+(n=n+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0 +c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0 +var ge=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,$)|0))<<13)|0 +c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,q))+Math.imul(O,z)|0,o=Math.imul(O,q),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Z)|0 var we=(c+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,X)|0))<<13)|0 -c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(k,V)|0,i=(i=i+Math.imul(k,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 +c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,q))+Math.imul(P,z)|0,o=Math.imul(P,q),n=n+Math.imul(x,V)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,$)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0 var _e=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0 -c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 -var xe=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 -c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(C,z)|0,o=Math.imul(C,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 -var ke=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 -c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(R,V)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,K)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 +c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,q))+Math.imul(j,z)|0,o=Math.imul(j,q),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0 +var ke=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0 +c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(C,z)|0,o=Math.imul(C,q),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0 +var xe=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0 +c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,o=Math.imul(D,q),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0 var Oe=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0 -c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 +c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(F,z)|0,o=Math.imul(F,q),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(D,V)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0 var Ee=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0 -c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,V),i=(i=Math.imul(B,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 +c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,V),i=(i=Math.imul(L,W))+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Z)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,n=n+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0 var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0 -c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,G),i=(i=Math.imul(B,K))+Math.imul(F,G)|0,o=Math.imul(F,K),n=n+Math.imul(N,J)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 -var Pe=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0 -c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,Z))+Math.imul(F,J)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(j,oe)|0,i=(i=i+Math.imul(j,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 +c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),n=n+Math.imul(N,$)|0,i=(i=i+Math.imul(N,Z)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,Z)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,ae)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0 +var Pe=(c+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,pe)|0))<<13)|0 +c=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,$),i=(i=Math.imul(L,Z))+Math.imul(F,$)|0,o=Math.imul(F,Z),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,he)|0 var Me=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0 -c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 -var je=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(O,pe)|0))<<13)|0 -c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0 -var Ae=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 -c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 -var Te=(c+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(A,pe)|0))<<13)|0 -c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 -var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(C,pe)|0))<<13)|0 -c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,fe),i=(i=Math.imul(B,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) +c=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(F,X)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=(i=i+Math.imul(N,ne)|0)+Math.imul(D,re)|0,o=o+Math.imul(D,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,ce)|0)+Math.imul(j,ue)|0,o=o+Math.imul(j,ce)|0,n=n+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(P,fe)|0,o=o+Math.imul(P,he)|0 +var Ae=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(O,pe)|0))<<13)|0 +c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,he)|0 +var je=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(P,pe)|0))<<13)|0 +c=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0 +var Re=(c+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(j,pe)|0))<<13)|0 +c=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,he)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,he)|0 +var Te=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(C,pe)|0))<<13)|0 +c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,he))+Math.imul(F,fe)|0,o=Math.imul(F,he) var Ce=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(D,pe)|0))<<13)|0 c=((o=o+Math.imul(D,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863 -var Ie=(c+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(F,pe)|0))<<13)|0 -return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=xe,u[7]=ke,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=je,u[14]=Ae,u[15]=Te,u[16]=Re,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} +var Ie=(c+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(F,pe)|0))<<13)|0 +return c=((o=Math.imul(F,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ye,u[2]=be,u[3]=ge,u[4]=we,u[5]=_e,u[6]=ke,u[7]=xe,u[8]=Oe,u[9]=Ee,u[10]=Se,u[11]=Pe,u[12]=Me,u[13]=Ae,u[14]=je,u[15]=Re,u[16]=Te,u[17]=Ce,u[18]=Ie,0!==c&&(u[19]=c,r.length++),r} function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(e,t,r){return b(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(v=y),a.prototype.mulTo=function(e,t){var r=this.length+e.length -return 10===this.length&&10===e.length?v(this,e,t):r<63?y(this,e,t):r<1024?b(this,e,t):g(this,e,t)},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function g(e,t,r){return b(e,t,r)}function w(e,t){this.x=e,this.y=t}Math.imul||(y=v),a.prototype.mulTo=function(e,t){var r=this.length+e.length +return 10===this.length&&10===e.length?y(this,e,t):r<63?v(this,e,t):r<1024?b(this,e,t):g(this,e,t)},w.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n>=1 return n},w.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++ return 1<=0;r--){var n=0|this.words[r],i=0|e.words[r] if(n!==i){ni&&(t=1) break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new P(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)} var _={k256:null,p224:null,p192:null,p25519:null} -function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(e){if("string"==typeof e){var t=a._prime(e) -this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){P.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null) -return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e +function k(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function O(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function P(e){if("string"==typeof e){var t=a._prime(e) +this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){P.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var e=new a(null) +return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var t,r=e do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n) var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},o(k,x),k.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(e,t){e.iushrn(this.n,0,t)},k.prototype.imulK=function(e){return e.imul(this.k)},o(x,k),x.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 +e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2 for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(_[e])return _[e] var t -if("k256"===e)t=new k +if("k256"===e)t=new x else if("p224"===e)t=new O else if("p192"===e)t=new E else{if("p25519"!==e)throw new Error("Unknown prime "+e) @@ -18533,10 +19820,10 @@ return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o i(!n.isZero()) var s=new a(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength() for(l=new a(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u) -for(var f=this.pow(l,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),p=o;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr() -i(y=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this) var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i -return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(32)(e))},,function(e,t,r){"use strict" +return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(28)(e))},,function(e,t,r){"use strict" ;/* object-assign @@ -18575,7 +19862,7 @@ for(var n=arguments,i=n.length,a=String(e).replace(o,(function(e){if("%%"===e)re if(r>=i)return e switch(e){case"%s":return String(n[r++]) case"%d":return Number(n[r++]) -case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.color return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function l(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e) return b(i)||(i=f(e,i,n)),i}var o=function(e,t){if(g(t))return e.stylize("undefined","undefined") if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'" -return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r) +return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,r) if(o)return o var a=Object.keys(r),s=function(e){var t={} return e.forEach((function(e,r){t[e]=!0})),t}(a) -if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r) +if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),x(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r) if(0===a.length){if(O(r)){var u=r.name?": "+r.name:"" return e.stylize("[Function"+u+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp") -if(x(r))return e.stylize(Date.prototype.toString.call(r),"date") -if(k(r))return h(r)}var c,l="",_=!1,E=["{","}"] -return p(r)&&(_=!0,E=["[","]"]),O(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(l=" "+RegExp.prototype.toString.call(r)),x(r)&&(l=" "+Date.prototype.toUTCString.call(r)),k(r)&&(l=" "+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,E)):E[0]+l+E[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,u -if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"===n(e)&&null!==e}function x(e){return _(e)&&"[object Date]"===E(e)}function k(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function O(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(g(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid +if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),A(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function b(e){return"string"==typeof e}function g(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===E(e)}function _(e){return"object"===n(e)&&null!==e}function k(e){return _(e)&&"[object Date]"===E(e)}function x(e){return _(e)&&("[object Error]"===E(e)||e instanceof Error)}function O(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(g(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid s[r]=function(){var e=t.format.apply(t,arguments) console.error("%s %d: %s",r,n,e)}}else s[r]=function(){} -return s[r]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=g,t.isRegExp=w,t.isObject=_,t.isDate=x,t.isError=k,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=r(462) +return s[r]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=b,t.isSymbol=function(e){return"symbol"===n(e)},t.isUndefined=g,t.isRegExp=w,t.isObject=_,t.isDate=k,t.isError=x,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===n(e)||void 0===e},t.isBuffer=r(497) var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"] function M(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":") -return[e.getDate(),P[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=r(463),t._extend=function(e,t){if(!t||!_(t))return e +return[e.getDate(),P[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",M(),t.format.apply(t,arguments))},t.inherits=r(498),t._extend=function(e,t){if(!t||!_(t))return e for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]] return e} -var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0 -function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value") +var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0 +function R(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value") r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function') -if(A&&e[A]){var t -if("function"!=typeof(t=e[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function') -return Object.defineProperty(t,A,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;oe.length)&&(t=e.length) for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0 -return"function"==typeof e&&(e=e(t)),y("output",e,t),e}function g(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){switch(m(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&y("seed",t,32),e.contextRandomize(t)){case 1:throw new Error("Unknow error on context randomization")}},privateKeyVerify:function(t){return y("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(y("private key",t,32),e.privateKeyNegate(t)){case 0:return t -case 1:throw new Error(i)}},privateKeyTweakAdd:function(t,r){switch(y("private key",t,32),y("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t -case 1:throw new Error(o)}},privateKeyTweakMul:function(t,r){switch(y("private key",t,32),y("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t -case 1:throw new Error(a)}},publicKeyVerify:function(t){return y("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0 -switch(y("private key",t,32),v(r),n=b(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n +m(t.length===r,o)}}function y(e){m("Boolean"===g(e),"Expected compressed to be a Boolean")}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0 +return"function"==typeof e&&(e=e(t)),v("output",e,t),e}function g(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){switch(m(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&v("seed",t,32),e.contextRandomize(t)){case 1:throw new Error("Unknow error on context randomization")}},privateKeyVerify:function(t){return v("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(v("private key",t,32),e.privateKeyNegate(t)){case 0:return t +case 1:throw new Error(i)}},privateKeyTweakAdd:function(t,r){switch(v("private key",t,32),v("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t +case 1:throw new Error(o)}},privateKeyTweakMul:function(t,r){switch(v("private key",t,32),v("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t +case 1:throw new Error(a)}},publicKeyVerify:function(t){return v("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0 +switch(v("private key",t,32),y(r),n=b(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n case 1:throw new Error(s) case 2:throw new Error(c)}},publicKeyConvert:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0 -switch(y("public key",t,[33,65]),v(r),n=b(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n +switch(v("public key",t,[33,65]),y(r),n=b(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n case 1:throw new Error(u) case 2:throw new Error(c)}},publicKeyNegate:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0 -switch(y("public key",t,[33,65]),v(r),n=b(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n +switch(v("public key",t,[33,65]),y(r),n=b(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n case 1:throw new Error(u) case 2:throw new Error(i) case 3:throw new Error(c)}},publicKeyCombine:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0 m(Array.isArray(t),"Expected public keys to be an Array"),m(t.length>0,"Expected public keys array will have more than zero items") var o,a=r(t) try{for(a.s();!(o=a.n()).done;){var s=o.value -y("public key",s,[33,65])}}catch(e){a.e(e)}finally{a.f()}switch(v(n),i=b(i,n?33:65),e.publicKeyCombine(i,t)){case 0:return i +v("public key",s,[33,65])}}catch(e){a.e(e)}finally{a.f()}switch(y(n),i=b(i,n?33:65),e.publicKeyCombine(i,t)){case 0:return i case 1:throw new Error(u) case 2:throw new Error(l) case 3:throw new Error(c)}},publicKeyTweakAdd:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0 -switch(y("public key",t,[33,65]),y("tweak",r,32),v(n),i=b(i,n?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i +switch(v("public key",t,[33,65]),v("tweak",r,32),y(n),i=b(i,n?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i case 1:throw new Error(u) case 2:throw new Error(o)}},publicKeyTweakMul:function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0 -switch(y("public key",t,[33,65]),y("tweak",r,32),v(n),i=b(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i +switch(v("public key",t,[33,65]),v("tweak",r,32),y(n),i=b(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i case 1:throw new Error(u) -case 2:throw new Error(a)}},signatureNormalize:function(t){switch(y("signature",t,64),e.signatureNormalize(t)){case 0:return t -case 1:throw new Error(f)}},signatureExport:function(t,r){y("signature",t,64) +case 2:throw new Error(a)}},signatureNormalize:function(t){switch(v("signature",t,64),e.signatureNormalize(t)){case 0:return t +case 1:throw new Error(f)}},signatureExport:function(t,r){v("signature",t,64) var n={output:r=b(r,72),outputlen:72} switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen) case 1:throw new Error(f) -case 2:throw new Error(i)}},signatureImport:function(t,r){switch(y("signature",t),r=b(r,64),e.signatureImport(r,t)){case 0:return r +case 2:throw new Error(i)}},signatureImport:function(t,r){switch(v("signature",t),r=b(r,64),e.signatureImport(r,t)){case 0:return r case 1:throw new Error(f) case 2:throw new Error(i)}},ecdsaSign:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0 -y("message",t,32),y("private key",r,32),m("Object"===g(n),"Expected options to be an Object"),void 0!==n.data&&y("options.data",n.data),void 0!==n.noncefn&&m("Function"===g(n.noncefn),"Expected options.noncefn to be a Function") +v("message",t,32),v("private key",r,32),m("Object"===g(n),"Expected options to be an Object"),void 0!==n.data&&v("options.data",n.data),void 0!==n.noncefn&&m("Function"===g(n.noncefn),"Expected options.noncefn to be a Function") var a={signature:o=b(o,64),recid:null} switch(e.ecdsaSign(a,t,r,n.data,n.noncefn)){case 0:return a case 1:throw new Error(h) -case 2:throw new Error(i)}},ecdsaVerify:function(t,r,n){switch(y("signature",t,64),y("message",r,32),y("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0 +case 2:throw new Error(i)}},ecdsaVerify:function(t,r,n){switch(v("signature",t,64),v("message",r,32),v("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0 case 3:return!1 case 1:throw new Error(f) case 2:throw new Error(u)}},ecdsaRecover:function(t,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0 -switch(y("signature",t,64),m("Number"===g(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),y("message",n,32),v(o),a=b(a,o?33:65),e.ecdsaRecover(a,t,r,n)){case 0:return a +switch(v("signature",t,64),m("Number"===g(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),v("message",n,32),y(o),a=b(a,o?33:65),e.ecdsaRecover(a,t,r,n)){case 0:return a case 1:throw new Error(f) case 2:throw new Error(d) case 3:throw new Error(i)}},ecdh:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0 -switch(y("public key",t,[33,65]),y("private key",r,32),m("Object"===g(n),"Expected options to be an Object"),void 0!==n.data&&y("options.data",n.data),void 0!==n.hashfn?(m("Function"===g(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&y("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&y("options.ybuf",n.ybuf,32),y("output",i)):i=b(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i +switch(v("public key",t,[33,65]),v("private key",r,32),m("Object"===g(n),"Expected options to be an Object"),void 0!==n.data&&v("options.data",n.data),void 0!==n.hashfn?(m("Function"===g(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&v("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&v("options.ybuf",n.ybuf,32),v("output",i)):i=b(i,32),e.ecdh(i,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return i case 1:throw new Error(u) -case 2:throw new Error(p)}}}}},function(e,t,r){var n=new(0,r(466).ec)("secp256k1"),i=n.curve,o=i.n.constructor +case 2:throw new Error(p)}}}}},function(e,t,r){var n=new(0,r(501).ec)("secp256k1"),i=n.curve,o=i.n.constructor function a(e){var t=e[0] switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new o(t) if(r.cmp(i.p)>=0)return null @@ -18767,29 +20054,29 @@ if(null===f)return 1 var h=new o(r) if(h.cmp(i.n)>=0||h.isZero())return 2 var d=f.getPublic().mul(h) -if(void 0===u)for(var p=d.encode(null,!0),m=n.hash().update(p).digest(),y=0;y<32;++y)e[y]=m[y] +if(void 0===u)for(var p=d.encode(null,!0),m=n.hash().update(p).digest(),v=0;v<32;++v)e[v]=m[v] else{c||(c=new Uint8Array(32)) -for(var v=d.getX().toArray("be",32),b=0;b<32;++b)c[b]=v[b] +for(var y=d.getX().toArray("be",32),b=0;b<32;++b)c[b]=y[b] l||(l=new Uint8Array(32)) for(var g=d.getY().toArray("be",32),w=0;w<32;++w)l[w]=g[w] var _=u(c,l,s) if(!(_ instanceof Uint8Array&&_.length===e.length))return 2 e.set(_)}return 0}}},function(e,t,r){"use strict" var n=t -n.version=r(467).version,n.utils=r(19),n.rand=r(154),n.curve=r(155),n.curves=r(86),n.ec=r(479),n.eddsa=r(483)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},,function(e,t,r){"use strict" -var n=r(19),i=r(4),o=r(6),a=r(67),s=n.assert +n.version=r(502).version,n.utils=r(25),n.rand=r(173),n.curve=r(174),n.curves=r(102),n.ec=r(514),n.eddsa=r(518)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},,function(e,t,r){"use strict" +var n=r(25),i=r(6),o=r(9),a=r(79),s=n.assert function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r if(e.beta)t=new i(e.beta,16).toRed(this.red) else{var n=this._getEndoRoots(this.p) t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16) else{var o=this._getEndoRoots(this.n) 0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r) -return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),p=new i(1),m=new i(0),y=new i(0),v=new i(1),b=0;0!==h.cmpn(0);){var g=d.div(h) -c=d.sub(g.mul(h)),l=y.sub(g.mul(p)) -var w=v.sub(g.mul(m)) +return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),y=new i(1),b=0;0!==h.cmpn(0);){var g=d.div(h) +c=d.sub(g.mul(h)),l=v.sub(g.mul(p)) +var w=y.sub(g.mul(m)) if(!n&&c.cmp(f)<0)t=u.neg(),r=p,n=c.neg(),o=l else if(n&&2==++b)break -u=c,d=h,h=c,y=p,p=l,v=m,m=w}a=c.neg(),s=l +u=c,d=h,h=c,v=p,p=l,y=m,m=w}a=c.neg(),s=l var _=n.sqr().add(o.sqr()) return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b) return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red)) @@ -18844,17 +20131,17 @@ var t if(this.curve.zeroA||this.curve.threeA){var r=this for(t=0;t=0)return!1 if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict" -var n=r(4),i=r(6),o=r(67),a=r(19) +var n=r(6),i=r(9),o=r(79),a=r(25) function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t) return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r))) return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr()) return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1)) for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl()) return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict" -var n=r(19),i=r(4),o=r(6),a=r(67),s=n.assert +var n=r(25),i=r(6),o=r(9),a=r(79),s=n.assert function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red)) var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt() if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point") @@ -18921,33 +20208,33 @@ return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.re if(0===this.x.cmp(t))return!0 for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1 if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(e,t,r){"use strict" -t.sha1=r(473),t.sha224=r(474),t.sha256=r(157),t.sha384=r(475),t.sha512=r(158)},function(e,t,r){"use strict" -var n=r(25),i=r(55),o=r(156),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782] +t.sha1=r(508),t.sha224=r(509),t.sha256=r(176),t.sha384=r(510),t.sha512=r(177)},function(e,t,r){"use strict" +var n=r(34),i=r(67),o=r(175),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782] function h(){if(!(this instanceof h))return new h l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,l),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n] for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize) for(var t=e.length;t0))return a.iaddn(1),this.keyFromPrivate(a)}},h.prototype._truncat return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},h.prototype.sign=function(e,t,r,a){"object"===n(r)&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16)) for(var s=this.n.byteLength(),u=t.getPrivate().toArray("be",s),c=e.toArray("be",s),l=new o({hash:this.hash,entropy:u,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var p=a.k?a.k(d):new i(l.generate(this.n.byteLength())) if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(h)>=0)){var m=this.g.mul(p) -if(!m.isInfinity()){var y=m.getX(),v=y.umod(this.n) -if(0!==v.cmpn(0)){var b=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e)) -if(0!==(b=b.umod(this.n)).cmpn(0)){var g=(m.getY().isOdd()?1:0)|(0!==y.cmp(v)?2:0) -return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),g^=1),new f({r:v,s:b,recoveryParam:g})}}}}}},h.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n) +if(!m.isInfinity()){var v=m.getX(),y=v.umod(this.n) +if(0!==y.cmpn(0)){var b=p.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e)) +if(0!==(b=b.umod(this.n)).cmpn(0)){var g=(m.getY().isOdd()?1:0)|(0!==v.cmp(y)?2:0) +return a.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),g^=1),new f({r:y,s:b,recoveryParam:g})}}}}}},h.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n) var o=(t=new f(t,"hex")).r,a=t.s if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1 if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1 @@ -18971,7 +20258,7 @@ var d=t.r.invm(o),p=o.sub(a).mul(d).umod(o),m=u.mul(d).umod(o) return this.g.mulAdd(p,s,m)},h.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam for(var i=0;i<4;i++){var o try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict" -var n=r(87),i=r(153),o=r(12) +var n=r(103),i=r(172),o=r(16) function a(e){if(!(this instanceof a))return new a(e) this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex") @@ -18984,11 +20271,11 @@ e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest() for(var o=[];o.length"}},function(e,t,r){"use strict" -var n=r(4),i=r(19),o=i.assert +var n=r(6),i=r(25),o=i.assert function a(e,t){if(e instanceof a)return e this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++] if(!(128&r))return r @@ -19022,7 +20309,7 @@ var n=[2] l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length) var o=n.concat(r),a=[48] return l(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict" -var n=r(87),i=r(86),o=r(19),a=o.assert,s=o.parseBytes,u=r(484),c=r(485) +var n=r(103),i=r(102),o=r(25),a=o.assert,s=o.parseBytes,u=r(519),c=r(520) function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e) e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e) var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n) @@ -19032,437 +20319,3047 @@ return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength) return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r) return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict" -var n=r(19),i=n.assert,o=n.parseBytes,a=n.cachedProperty +var n=r(25),i=n.assert,o=n.parseBytes,a=n.cachedProperty function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength) return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(4),o=r(19),a=o.assert,s=o.cachedProperty,u=o.parseBytes +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(6),o=r(25),a=o.assert,s=o.cachedProperty,u=o.parseBytes function c(e,t){this.eddsa=e,"object"!==n(t)&&(t=u(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(159) +var n=r(178) t.getRandomBytes=function(e){return new Promise((function(t,r){n(e,(function(e,n){e?r(e):t(n)}))}))},t.getRandomBytesSync=function(e){return n(e)}},function(e,t,r){"use strict" Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(488),i=r(489) -t.keccak224=n.createHashFunction((function(){return i("keccak224")})),t.keccak256=n.createHashFunction((function(){return i("keccak256")})),t.keccak384=n.createHashFunction((function(){return i("keccak384")})),t.keccak512=n.createHashFunction((function(){return i("keccak512")}))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(t){return function(r){var n=t() -return n.update(r),e.from(n.digest())}}}).call(this,r(7).Buffer)},function(e,t,r){e.exports=r(490)(r(501))},function(e,t,r){var n=r(491),i=r(500) -e.exports=function(e){var t=n(e),r=i(e) -return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n) -case"keccak256":return new t(1088,512,null,256,n) -case"keccak384":return new t(832,768,null,384,n) -case"keccak512":return new t(576,1024,null,512,n) -case"sha3-224":return new t(1152,448,6,224,n) -case"sha3-256":return new t(1088,512,6,256,n) -case"sha3-384":return new t(832,768,6,384,n) -case"sha3-512":return new t(576,1024,6,512,n) -case"shake128":return new r(1344,256,31,n) -case"shake256":return new r(1088,512,31,n) -default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head} +0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data +return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"" +for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data +return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0) +for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next +return i}},{key:"consume",value:function(e,t){var r +return ei.length?i.length:e +if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o)) +break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1 +for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e +if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o)) +break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t */ +var n=r(10),i=n.Buffer +function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number") +return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number") +var n=i(e) +return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") +return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") +return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var n +function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(106),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") +function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] +if(null!==t){var r=e[h].read() +null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}function m(e){t.nextTick(p,e)}var v=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] +if(null!==r)return Promise.reject(r) +if(this[c])return Promise.resolve(d(void 0,!0)) +if(this[h].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(d(void 0,!0))}))})) +var n,i=this[l] +if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(d(void 0,!0)):t[f](r,n)}),n)}}(i,this)) +else{var o=this[h].read() +if(null!==o)return Promise.resolve(d(o,!1)) +n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this +return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),n),v) +e.exports=function(e){var t,r=Object.create(y,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read() +n?(r[l]=null,r[a]=null,r[s]=null,e(d(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t)) +return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s] +return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a] +null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this,r(12))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict" +e.exports=i +var n=r(185) +function i(e){if(!(this instanceof i))return new i(e) +n.call(this,e)}r(9)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" +var n,i=r(51).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED +function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1 +return function(){t||(t=!0,e.apply(void 0,arguments))}}(o) +var s=!1 +e.on("close",(function(){s=!0})),void 0===n&&(n=r(106)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e) +s=!0,o()})) +var u=!1 +return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function l(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))})) +return t.reduce(l)}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0) +return r},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t] +e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,r(10).Buffer)},function(e,t){var r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648] +t.p1600=function(e){for(var t=0;t<24;++t){var n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],d=f^(o<<1|a>>>31),p=h^(a<<1|o>>>31),m=e[0]^d,v=e[1]^p,y=e[10]^d,b=e[11]^p,g=e[20]^d,w=e[21]^p,_=e[30]^d,k=e[31]^p,x=e[40]^d,O=e[41]^p +d=n^(s<<1|u>>>31),p=i^(u<<1|s>>>31) +var E=e[2]^d,S=e[3]^p,P=e[12]^d,M=e[13]^p,A=e[22]^d,j=e[23]^p,R=e[32]^d,T=e[33]^p,C=e[42]^d,I=e[43]^p +d=o^(c<<1|l>>>31),p=a^(l<<1|c>>>31) +var N=e[4]^d,D=e[5]^p,B=e[14]^d,L=e[15]^p,F=e[24]^d,U=e[25]^p,z=e[34]^d,q=e[35]^p,H=e[44]^d,V=e[45]^p +d=s^(f<<1|h>>>31),p=u^(h<<1|f>>>31) +var W=e[6]^d,G=e[7]^p,Y=e[16]^d,K=e[17]^p,J=e[26]^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e[41]=Te^~Ve&rt,e[2]=xe^~Ne&Ye,e[3]=Oe^~De&Ke,e[12]=Xe^~me&Pe,e[13]=et^~ve&Me,e[22]=Ce^~We&nt,e[23]=Ie^~Ge&it,e[32]=de^~Ee&Be,e[33]=pe^~Se&Le,e[42]=He^~tt&ye,e[43]=Ve^~rt&be,e[4]=Ne^~Ye&ot,e[5]=De^~Ke&at,e[14]=me^~Pe&Fe,e[15]=ve^~Me&Ue,e[24]=We^~nt&ge,e[25]=Ge^~it&we,e[34]=Ee^~Be&Je,e[35]=Se^~Le&$e,e[44]=tt^~ye&Ae,e[45]=rt^~be&je,e[6]=Ye^~ot&fe,e[7]=Ke^~at&he,e[16]=Pe^~Fe&ze,e[17]=Me^~Ue&qe,e[26]=nt^~ge&_e,e[27]=it^~we&ke,e[36]=Be^~Je&Ze,e[37]=Le^~$e&Qe,e[46]=ye^~Ae&Re,e[47]=be^~je&Te,e[8]=ot^~fe&xe,e[9]=at^~he&Oe,e[18]=Fe^~ze&Xe,e[19]=Ue^~qe&et,e[28]=ge^~_e&Ce,e[29]=we^~ke&Ie,e[38]=Je^~Ze&de,e[39]=$e^~Qe&pe,e[48]=Ae^~Re&He,e[49]=je^~Te&Ve,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},function(e,t,r){"use strict" +var n=r(9),i=r(539),o=r(549),a=r(550),s=r(555) +function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},function(e,t,r){"use strict" +var n=r(9),i=r(186),o=r(21).Buffer,a=new Array(16) +function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t) +var r=this._a,n=this._b,i=this._c,o=this._d +r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=l(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),r=f(r,n=l(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,r,n,i,e[8],2272392833,11),i=f(i,o,r,n,e[11],1839030562,16),n=f(n,i,o,r,e[14],4259657740,23),r=f(r,n,i,o,e[1],2763975236,4),o=f(o,r,n,i,e[4],1272893353,11),i=f(i,o,r,n,e[7],4139469664,16),n=f(n,i,o,r,e[10],3200236656,23),r=f(r,n,i,o,e[13],681279174,4),o=f(o,r,n,i,e[0],3936430074,11),i=f(i,o,r,n,e[3],3572445317,16),n=f(n,i,o,r,e[6],76029189,23),r=f(r,n,i,o,e[9],3654602809,4),o=f(o,r,n,i,e[12],3873151461,11),i=f(i,o,r,n,e[15],530742520,16),r=h(r,n=f(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update() +var e=o.allocUnsafe(16) +return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){ +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +var n=r(10),i=n.Buffer +function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number") +return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number") +var n=i(e) +return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") +return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") +return n.SlowBuffer(e)}},function(e,t,r){(t=e.exports=r(187)).Stream=t,t.Readable=t,t.Writable=r(191),t.Duplex=r(54),t.Transform=r(192),t.PassThrough=r(547),t.finished=r(107),t.pipeline=r(548)},,function(e,t,r){"use strict" +function n(e,t){var r=Object.keys(e) +if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) +t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head} +0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data +return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"" +for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data +return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0) +for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next +return i}},{key:"consume",value:function(e,t){var r +return ei.length?i.length:e +if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o)) +break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1 +for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e +if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o)) +break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))})) +return t.reduce(l)}},function(e,t,r){"use strict" +var n=r(10).Buffer,i=r(9),o=r(186),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0] +function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t) +for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,x=0|this._d,O=0|this._e,E=0;E<80;E+=1){var S,P +E<16?(S=m(r,n,i,o,d,e[s[E]],f[0],c[E]),P=g(w,_,k,x,O,e[u[E]],h[0],l[E])):E<32?(S=v(r,n,i,o,d,e[s[E]],f[1],c[E]),P=b(w,_,k,x,O,e[u[E]],h[1],l[E])):E<48?(S=y(r,n,i,o,d,e[s[E]],f[2],c[E]),P=y(w,_,k,x,O,e[u[E]],h[2],l[E])):E<64?(S=b(r,n,i,o,d,e[s[E]],f[3],c[E]),P=v(w,_,k,x,O,e[u[E]],h[3],l[E])):(S=g(r,n,i,o,d,e[s[E]],f[4],c[E]),P=m(w,_,k,x,O,e[u[E]],h[4],l[E])),r=d,d=o,o=p(i,10),i=n,n=S,w=O,O=x,x=p(k,10),k=_,_=P}var M=this._b+i+x|0 +this._b=this._c+o+O|0,this._c=this._d+d+w|0,this._d=this._e+r+_|0,this._e=this._a+n+k|0,this._a=M},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update() +var e=n.alloc?n.alloc(20):new n(20) +return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase() +var r=t[e] +if(!r)throw new Error(e+" is not supported (we accept pull requests)") +return new r}).sha=r(551),t.sha1=r(552),t.sha224=r(553),t.sha256=r(193),t.sha384=r(554),t.sha512=r(194)},function(e,t,r){var n=r(9),i=r(55),o=r(21).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) +function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f) +for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16] +for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=n)<<5|t>>>27)+l(d,i,o,s)+u+r[h]+a[d] +u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20) +return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(9),i=r(55),o=r(21).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) +function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h) +for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31 +for(var d=0;d<80;++d){var p=~~(d/20),m=c(n)+f(p,i,o,s)+u+r[d]+a[p]|0 +u=s,s=o,o=l(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20) +return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(9),i=r(193),o=r(55),a=r(21).Buffer,s=new Array(64) +function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28) +return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){var n=r(9),i=r(194),o=r(55),a=r(21).Buffer,s=new Array(160) +function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48) +function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,r){var n=r(21).Buffer,i=r(556).Transform,o=r(46).StringDecoder +function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(9)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t)) +var i=this._update(e) +return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n +try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t +try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0) +return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings") +var n=this._decoder.write(e) +return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){e.exports=i +var n=r(45).EventEmitter +function i(){n.call(this)}r(9)(i,n),i.Readable=r(108),i.Writable=r(561),i.Duplex=r(562),i.Transform=r(563),i.PassThrough=r(564),i.Stream=i,i.prototype.pipe=function(e,t){var r=this +function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u)) +var a=!1 +function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},,function(e,t,r){"use strict" +var n=r(21).Buffer,i=r(559) +e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null} +this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head} +0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data +return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"" +for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data +return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0) +if(1===this.length)return this.head.data +for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next +return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length}) +return this.constructor.name+" "+e})},,function(e,t,r){"use strict" +e.exports=o +var n=r(198),i=Object.create(r(68)) +function o(e){if(!(this instanceof o))return new o(e) +n.call(this,e)}i.inherits=r(9),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(109)},function(e,t,r){e.exports=r(47)},function(e,t,r){e.exports=r(108).Transform},function(e,t,r){e.exports=r(108).PassThrough},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} +Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0 +var i=n(r(101)),o=r(38),a=r(44),s=r(169),u=function(){function t(e){(0,i.default)(20===e.length,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,a.zeros)(20))},t.fromString=function(e){return(0,i.default)((0,s.isValidAddress)(e),"Invalid address"),new t((0,a.toBuffer)(e))},t.fromPublicKey=function(r){return(0,i.default)(e.isBuffer(r),"Public key should be Buffer"),new t((0,s.pubToAddress)(r))},t.fromPrivateKey=function(r){return(0,i.default)(e.isBuffer(r),"Private key should be Buffer"),new t((0,s.privateToAddress)(r))},t.generate=function(r,n){return(0,i.default)(o.BN.isBN(n)),new t((0,s.generateAddress)(r.buf,n.toArrayLike(e)))},t.generate2=function(r,n,o){return(0,i.default)(e.isBuffer(n)),(0,i.default)(e.isBuffer(o)),new t((0,s.generateAddress2)(r.buf,n,o))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new o.BN(this.buf),t=new o.BN(0),r=new o.BN("ffff","hex") +return e.gte(t)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return e.from(this.buf)},t}() +t.Address=u}).call(this,r(10).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0 +var n=r(170),i=r(38),o=r(44),a=r(104),s=r(80),u=r(110) +function c(e,t){var r=(0,u.toType)(e,u.TypeOutput.BN) +if(!t)return r.subn(27) +var n=(0,u.toType)(t,u.TypeOutput.BN) +return r.sub(n.muln(2).addn(35))}function l(e){var t=new i.BN(e) +return t.eqn(0)||t.eqn(1)}t.ecsign=function(t,r,i){var o=(0,n.ecdsaSign)(t,r),a=o.signature,s=o.recid,c=e.from(a.slice(0,32)),l=e.from(a.slice(32,64)) +if(!i||"number"==typeof i){if(i&&!Number.isSafeInteger(i))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)") +return{r:c,s:l,v:i?s+(2*i+35):s+27}}return{r:c,s:l,v:(0,u.toType)(i,u.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(e)}},t.ecrecover=function(t,r,i,a,s){var u=e.concat([(0,o.setLengthLeft)(i,32),(0,o.setLengthLeft)(a,32)],64),f=c(r,s) +if(!l(f))throw new Error("Invalid signature v value") +var h=(0,n.ecdsaRecover)(u,f.toNumber(),t) +return e.from((0,n.publicKeyConvert)(h,!1).slice(1))},t.toRpcSig=function(t,r,n,i){if(!l(c(t,i)))throw new Error("Invalid signature v value") +return(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(t)]))},t.toCompactSig=function(t,r,n,i){if(!l(c(t,i)))throw new Error("Invalid signature v value") +var a=(0,u.toType)(t,u.TypeOutput.Number),s=n +return(a>28&&a%2==1||1===a||28===a)&&((s=e.from(n))[0]|=128),(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(s,32)]))},t.fromRpcSig=function(e){var t,r,n,i=(0,o.toBuffer)(e) +if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(64)) +else{if(64!==i.length)throw new Error("Invalid signature length") +t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:t,s:r}},t.isValidSignature=function(e,t,r,n,o){void 0===n&&(n=!0) +var a=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16) +if(32!==t.length||32!==r.length)return!1 +if(!l(c(e,o)))return!1 +var u=new i.BN(t),f=new i.BN(r) +return!(u.isZero()||u.gt(s)||f.isZero()||f.gt(s)||n&&1===f.cmp(a))},t.hashPersonalMessage=function(t){(0,s.assertIsBuffer)(t) +var r=e.from("Ethereum Signed Message:\n".concat(t.length),"utf-8") +return(0,a.keccak)(e.concat([r,t]))}}).call(this,r(10).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} +Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0 +var o=i(r(101)),a=r(50),s=r(38),u=r(44) +t.defineProperties=function(t,r,i){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={} +return t._fields.forEach((function(e){r[e]="0x".concat(t[e].toString("hex"))})),r}return(0,u.baToJSON)(t.raw)},t.serialize=function(){return s.rlp.encode(t.raw)},r.forEach((function(r,n){function i(){return t.raw[n]}function a(i){"00"!==(i=(0,u.toBuffer)(i)).toString("hex")||r.allowZero||(i=e.allocUnsafe(0)),r.allowLess&&r.length?(i=(0,u.unpadBuffer)(i),(0,o.default)(r.length>=i.length,"The field ".concat(r.name," must not have more ").concat(r.length," bytes"))):r.allowZero&&0===i.length||!r.length||(0,o.default)(r.length===i.length,"The field ".concat(r.name," must have byte length of ").concat(r.length)),t.raw[n]=i}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:i,set:a}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:a,get:i})})),i)if("string"==typeof i&&(i=e.from((0,a.stripHexPrefix)(i),"hex")),e.isBuffer(i)&&(i=s.rlp.decode(i)),Array.isArray(i)){if(i.length>t._fields.length)throw new Error("wrong number of fields in data") +i.forEach((function(e,r){t[t._fields[r]]=(0,u.toBuffer)(e)}))}else{if("object"!==n(i))throw new Error("invalid data") +var c=Object.keys(i) +r.forEach((function(e){-1!==c.indexOf(e.name)&&(t[e.name]=i[e.name]),-1!==c.indexOf(e.alias)&&(t[e.alias]=i[e.alias])}))}}}).call(this,r(10).Buffer)},function(e,t,r){"use strict" +function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) +var i=r(569) +function o(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))}function a(e,t){"object"===n(t)&&t.constructor===Uint8Array&&(t=i.bytesToHex(t)) +for(var r=i.keccak256(t).replace("0x",""),o=0;o<12;o+=4){var a=(parseInt(r.substr(o,2),16)<<8)+parseInt(r.substr(o+2,2),16)&2047,u=1<=48&&e<=57)return e-48 +if(e>=65&&e<=70)return e-55 +if(e>=97&&e<=102)return e-87 +throw new Error("invalid bloom")}function u(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}function c(e){return!("string"!=typeof e||!e.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=o,t.isInBloom=a,t.isUserEthereumAddressInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given") +if(!c(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"')) +return a(e,i.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given") +if(!c(t))throw new Error('Invalid contract address given: "'.concat(t,'"')) +return a(e,t)},t.isTopicInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given") +if(!u(t))throw new Error("Invalid topic") +return a(e,t)},t.isTopic=u,t.isAddress=c},function(e,t,r){"use strict" +Object.defineProperty(t,"__esModule",{value:!0}) +var n=r(570) +function i(e){if(null==e)throw new Error("cannot convert null value to array") +if("string"==typeof e){var t=e.match(/^(0x)?[0-9a-fA-F]*$/) +if(!t)throw new Error("invalid hexidecimal string") +if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e) +for(var r=[],n=0;n=256||parseInt(String(r))!=r)return!1}return!0}(e))return o(new Uint8Array(e)) +throw new Error("invalid arrayify value")}function o(e){var t=arguments +return void 0!==e.slice||(e.slice=function(){var r=Array.prototype.slice.call(t) +return o(new Uint8Array(Array.prototype.slice.apply(e,r)))}),e}t.keccak256=function(e){return"0x"+n.keccak_256(i(e))},t.padLeft=function(e,t){var r=/^0x/i.test(e)||"number"==typeof e,n=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 +return(r?"0x":"")+new Array(n).join("0")+e},t.bytesToHex=function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16)) +return"0x".concat(t.join("").replace(/^0+/,""))},t.toByteArray=i},function(e,t,r){(function(e,n,i){var o +function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} +/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.8.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */!function(){"use strict" +var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":a(window)),c=u?window:{} +c.JS_SHA3_NO_WINDOW&&(u=!1) +var l=!u&&"object"===("undefined"==typeof self?"undefined":a(self)) +!c.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":a(e))&&e.versions&&e.versions.node?c=n:l&&(c=self) +var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=r(87),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],v=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],g=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136} +!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===a(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer}) +for(var k=function(e,t,r){return function(n){return new B(e,t,e).update(n)[r]()}},x=function(e,t,r){return function(n,i){return new B(e,t,i).update(n)[r]()}},O=function(e,t,r){return function(t,n,i,o){return A["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return A["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 +for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){B.call(this,e,t,r)}B.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") +var t,r=a(e) +if("string"!==r){if("object"!==r)throw new Error(s) +if(null===e)throw new Error(s) +if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) +else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) +t=!0}for(var n,i,o=this.blocks,u=this.byteCount,c=e.length,l=this.blockCount,f=0,h=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n +return t?i.push(n):i.unshift(n),this.update(i),i.length},B.prototype.encodeString=function(e){var t,r=a(e) +if("string"!==r){if("object"!==r)throw new Error(s) +if(null===e)throw new Error(s) +if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) +else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) +t=!0}var n=0,i=e.length +if(t)n=i +else for(var o=0;o=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},B.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15] +a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},B.prototype.arrayBuffer=function(){this.finalize() +var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3 +e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s) +for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 +s%r==0&&F(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},L.prototype=new B,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)} +var F=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,v,b,g,w,_,k,x,O,E,S,P,M,A,j,R,T,C,I,N,D,B,L,F,U,z,q,H,V,W,G,Y,K,J,$,Z,Q,X,ee,te,re,ne,ie,oe,ae,se,ue,ce,le +for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],Y=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,$=e[23]<<10|e[22]>>>22,R=e[33]<<13|e[32]>>>19,T=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,I=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,O=e[49]<<14|e[48]>>>18,e[0]=p^~v&g,e[1]=m^~b&w,e[10]=E^~P&A,e[11]=S^~M&j,e[20]=N^~B&F,e[21]=D^~L&U,e[30]=W^~Y&J,e[31]=G^~K&$,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=v^~g&_,e[3]=b^~w&k,e[12]=P^~A&R,e[13]=M^~j&T,e[22]=B^~F&z,e[23]=L^~U&q,e[32]=Y^~J&Z,e[33]=K^~$&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=g^~_&x,e[5]=w^~k&O,e[14]=A^~R&C,e[15]=j^~T&I,e[24]=F^~z&H,e[25]=U^~q&V,e[34]=J^~Z&X,e[35]=$^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=_^~x&p,e[7]=k^~O&m,e[16]=R^~C&E,e[17]=T^~I&S,e[26]=z^~H&N,e[27]=q^~V&D,e[36]=Z^~X&W,e[37]=Q^~ee&G,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=x^~p&v,e[9]=O^~m&b,e[18]=C^~E&P,e[19]=I^~S&M,e[28]=H^~N&B,e[29]=V^~D&L,e[38]=X^~W&Y,e[39]=ee^~G&K,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=y[n],e[1]^=y[n+1]} +if(f)i.exports=A +else{for(R=0;R32||n256)throw new Error("Invalid uint"+n+" size") +if((s=a(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+s.bitLength()) +if(s.lt(new i(0)))throw new Error("Supplied uint "+s.toString()+" is negative") +return n?o.leftPad(s.toString("hex"),n/8*2):s}if(e.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size") +if((s=a(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+s.bitLength()) +return s.lt(new i(0))?s.toTwos(n).toString("hex"):n?o.leftPad(s.toString("hex"),n/8*2):s}throw new Error("Unsupported or invalid type: "+e)},u=function(e){if(Array.isArray(e))throw new Error("Autodetection of array types is not supported.") +var t,r,a="" +if(e&&"object"===n(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,a=e.hasOwnProperty("v")?e.v:e.value):(t=o.toHex(e,!0),a=o.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),Array.isArray(a)){if((r=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e) +return t?parseInt(t[1],10):null}(t))&&a.length!==r)throw new Error(t+" is not matching the given array "+JSON.stringify(a)) +r=a.length}return Array.isArray(a)?a.map((function(e){return s(t,e,r).toString("hex").replace("0x","")})).join(""):s(t,a,r).toString("hex").replace("0x","")} +e.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments),t=e.map(u) +return o.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return o.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(u).join(""))},encodePacked:function(){var e=Array.prototype.slice.call(arguments),t=e.map(u) +return"0x"+t.join("").toLowerCase()}}},,,function(e,t,r){"use strict" +r.r(t),r.d(t,"ethers",(function(){return u})),r.d(t,"Signer",(function(){return yn})),r.d(t,"Wallet",(function(){return Ra})),r.d(t,"VoidSigner",(function(){return bn})),r.d(t,"getDefaultProvider",(function(){return pf})),r.d(t,"providers",(function(){return o})),r.d(t,"BaseContract",(function(){return yi})),r.d(t,"Contract",(function(){return bi})),r.d(t,"ContractFactory",(function(){return gi})),r.d(t,"BigNumber",(function(){return b})),r.d(t,"FixedNumber",(function(){return Ii})),r.d(t,"constants",(function(){return i})),r.d(t,"errors",(function(){return h.a})),r.d(t,"logger",(function(){return Tf})),r.d(t,"utils",(function(){return s})),r.d(t,"wordlists",(function(){return Oo})),r.d(t,"version",(function(){return Rf})),r.d(t,"Wordlist",(function(){return mo})) +var n={} +r.r(n),r.d(n,"encode",(function(){return K})),r.d(n,"decode",(function(){return Z})) +var i={} +r.r(i),r.d(i,"AddressZero",(function(){return Ia})),r.d(i,"NegativeOne",(function(){return _t})),r.d(i,"Zero",(function(){return kt})),r.d(i,"One",(function(){return xt})),r.d(i,"Two",(function(){return Ot})),r.d(i,"WeiPerEther",(function(){return Et})),r.d(i,"MaxUint256",(function(){return St})),r.d(i,"MinInt256",(function(){return Pt})),r.d(i,"MaxInt256",(function(){return Mt})),r.d(i,"HashZero",(function(){return Na})),r.d(i,"EtherSymbol",(function(){return Da})) +var o={} +r.r(o),r.d(o,"Provider",(function(){return nn})),r.d(o,"BaseProvider",(function(){return iu})),r.d(o,"Resolver",(function(){return tu})),r.d(o,"UrlJsonRpcProvider",(function(){return tc})),r.d(o,"FallbackProvider",(function(){return bl})),r.d(o,"AlchemyProvider",(function(){return pc})),r.d(o,"AlchemyWebSocketProvider",(function(){return dc})),r.d(o,"AnkrProvider",(function(){return Oc})),r.d(o,"CloudflareProvider",(function(){return Ic})),r.d(o,"EtherscanProvider",(function(){return $c})),r.d(o,"InfuraProvider",(function(){return Tl})),r.d(o,"InfuraWebSocketProvider",(function(){return Rl})),r.d(o,"JsonRpcProvider",(function(){return Pu})),r.d(o,"JsonRpcBatchProvider",(function(){return Fl})),r.d(o,"NodesmithProvider",(function(){return Yl})),r.d(o,"PocketProvider",(function(){return tf})),r.d(o,"StaticJsonRpcProvider",(function(){return ec})),r.d(o,"Web3Provider",(function(){return hf})),r.d(o,"WebSocketProvider",(function(){return zu})),r.d(o,"IpcProvider",(function(){return gl})),r.d(o,"JsonRpcSigner",(function(){return Ou})),r.d(o,"getDefaultProvider",(function(){return pf})),r.d(o,"getNetwork",(function(){return Va})),r.d(o,"isCommunityResource",(function(){return Os})),r.d(o,"isCommunityResourcable",(function(){return xs})),r.d(o,"showThrottleMessage",(function(){return Ss})),r.d(o,"Formatter",(function(){return ks})) +var a={} +r.r(a),r.d(a,"decode",(function(){return us})),r.d(a,"encode",(function(){return cs})) +var s={} +r.r(s),r.d(s,"AbiCoder",(function(){return jr})),r.d(s,"defaultAbiCoder",(function(){return Rr})),r.d(s,"Fragment",(function(){return dr})),r.d(s,"ConstructorFragment",(function(){return br})),r.d(s,"ErrorFragment",(function(){return _r})),r.d(s,"EventFragment",(function(){return pr})),r.d(s,"FunctionFragment",(function(){return gr})),r.d(s,"ParamType",(function(){return fr})),r.d(s,"FormatTypes",(function(){return cr})),r.d(s,"checkResultErrors",(function(){return L})),r.d(s,"Logger",(function(){return h.b})),r.d(s,"RLP",(function(){return n})),r.d(s,"_fetchData",(function(){return ms})),r.d(s,"fetchJson",(function(){return vs})),r.d(s,"poll",(function(){return ys})),r.d(s,"checkProperties",(function(){return A})),r.d(s,"deepCopy",(function(){return T})),r.d(s,"defineReadOnly",(function(){return S})),r.d(s,"getStatic",(function(){return P})),r.d(s,"resolveProperties",(function(){return M})),r.d(s,"shallowCopy",(function(){return j})),r.d(s,"arrayify",(function(){return c.a})),r.d(s,"concat",(function(){return c.b})),r.d(s,"stripZeros",(function(){return c.o})),r.d(s,"zeroPad",(function(){return c.p})),r.d(s,"isBytes",(function(){return c.j})),r.d(s,"isBytesLike",(function(){return c.k})),r.d(s,"defaultPath",(function(){return Io})),r.d(s,"HDNode",(function(){return No})),r.d(s,"SigningKey",(function(){return On})),r.d(s,"Interface",(function(){return Yr})),r.d(s,"LogDescription",(function(){return zr})),r.d(s,"TransactionDescription",(function(){return qr})),r.d(s,"base58",(function(){return no})),r.d(s,"base64",(function(){return a})),r.d(s,"hexlify",(function(){return c.i})),r.d(s,"isHexString",(function(){return c.l})),r.d(s,"hexConcat",(function(){return c.c})),r.d(s,"hexStripZeros",(function(){return c.f})),r.d(s,"hexValue",(function(){return c.g})),r.d(s,"hexZeroPad",(function(){return c.h})),r.d(s,"hexDataLength",(function(){return c.d})),r.d(s,"hexDataSlice",(function(){return c.e})),r.d(s,"nameprep",(function(){return ts})),r.d(s,"_toEscapedUtf8String",(function(){return ge})),r.d(s,"toUtf8Bytes",(function(){return ye})),r.d(s,"toUtf8CodePoints",(function(){return ke})),r.d(s,"toUtf8String",(function(){return _e})),r.d(s,"Utf8ErrorFuncs",(function(){return me})),r.d(s,"formatBytes32String",(function(){return kf})),r.d(s,"parseBytes32String",(function(){return xf})),r.d(s,"dnsEncode",(function(){return ss})),r.d(s,"hashMessage",(function(){return Bi})),r.d(s,"namehash",(function(){return as})),r.d(s,"isValidName",(function(){return os})),r.d(s,"id",(function(){return xe})),r.d(s,"_TypedDataEncoder",(function(){return Xi})),r.d(s,"getAddress",(function(){return ae})),r.d(s,"getIcapAddress",(function(){return ue})),r.d(s,"getContractAddress",(function(){return ce})),r.d(s,"getCreate2Address",(function(){return le})),r.d(s,"isAddress",(function(){return se})),r.d(s,"formatEther",(function(){return Af})),r.d(s,"parseEther",(function(){return jf})),r.d(s,"formatUnits",(function(){return Pf})),r.d(s,"parseUnits",(function(){return Mf})),r.d(s,"commify",(function(){return Sf})),r.d(s,"computeHmac",(function(){return lo})),r.d(s,"keccak256",(function(){return V})),r.d(s,"ripemd160",(function(){return so})),r.d(s,"sha256",(function(){return uo})),r.d(s,"sha512",(function(){return co})),r.d(s,"randomBytes",(function(){return zo.a})),r.d(s,"shuffled",(function(){return Zc})),r.d(s,"solidityPack",(function(){return gf})),r.d(s,"solidityKeccak256",(function(){return wf})),r.d(s,"soliditySha256",(function(){return _f})),r.d(s,"splitSignature",(function(){return c.n})),r.d(s,"joinSignature",(function(){return c.m})),r.d(s,"accessListify",(function(){return Bn})),r.d(s,"parseTransaction",(function(){return Hn})),r.d(s,"serializeTransaction",(function(){return zn})),r.d(s,"TransactionTypes",(function(){return Pn})),r.d(s,"getJsonWalletAddress",(function(){return _a})),r.d(s,"computeAddress",(function(){return Cn})),r.d(s,"recoverAddress",(function(){return In})),r.d(s,"computePublicKey",(function(){return Sn})),r.d(s,"recoverPublicKey",(function(){return En})),r.d(s,"verifyMessage",(function(){return Ta})),r.d(s,"verifyTypedData",(function(){return Ca})),r.d(s,"getAccountPath",(function(){return Uo})),r.d(s,"mnemonicToEntropy",(function(){return Bo})),r.d(s,"entropyToMnemonic",(function(){return Lo})),r.d(s,"isValidMnemonic",(function(){return Fo})),r.d(s,"mnemonicToSeed",(function(){return Do})),r.d(s,"SupportedAlgorithm",(function(){return to})),r.d(s,"UnicodeNormalizationForm",(function(){return fe})),r.d(s,"Utf8ErrorReason",(function(){return he})),r.d(s,"Indexed",(function(){return Vr})) +var u={} +r.r(u),r.d(u,"Signer",(function(){return yn})),r.d(u,"Wallet",(function(){return Ra})),r.d(u,"VoidSigner",(function(){return bn})),r.d(u,"getDefaultProvider",(function(){return pf})),r.d(u,"providers",(function(){return o})),r.d(u,"BaseContract",(function(){return yi})),r.d(u,"Contract",(function(){return bi})),r.d(u,"ContractFactory",(function(){return gi})),r.d(u,"BigNumber",(function(){return b})),r.d(u,"FixedNumber",(function(){return Ii})),r.d(u,"constants",(function(){return i})),r.d(u,"errors",(function(){return h.a})),r.d(u,"logger",(function(){return Tf})),r.d(u,"utils",(function(){return s})),r.d(u,"wordlists",(function(){return Oo})),r.d(u,"version",(function(){return Rf})),r.d(u,"Wordlist",(function(){return mo})) +var c=r(0),l=r(6),f=r.n(l),h=r(2) +function d(e,t){for(var r=0;r=9007199254740991||t<=-9007199254740991)&&k("overflow","BigNumber.from",t),e.from(String(t)) +var r=t +if("bigint"==typeof r)return e.from(r.toString()) +if(Object(c.j)(r))return e.from(Object(c.i)(r)) +if(r)if(r.toHexString){var n=r.toHexString() +if("string"==typeof n)return e.from(n)}else{var i=r._hex +if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"==typeof i&&(Object(c.l)(i)||"-"===i[0]&&Object(c.l)(i.substring(1))))return e.from(i)}return m.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}],(r=[{key:"fromTwos",value:function(e){return w(_(this).fromTwos(e))}},{key:"toTwos",value:function(e){return w(_(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return w(_(this).add(_(e)))}},{key:"sub",value:function(e){return w(_(this).sub(_(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&k("division-by-zero","div"),w(_(this).div(_(t)))}},{key:"mul",value:function(e){return w(_(this).mul(_(e)))}},{key:"mod",value:function(e){var t=_(e) +return t.isNeg()&&k("division-by-zero","mod"),w(_(this).umod(t))}},{key:"pow",value:function(e){var t=_(e) +return t.isNeg()&&k("negative-power","pow"),w(_(this).pow(t))}},{key:"and",value:function(e){var t=_(e) +return(this.isNegative()||t.isNeg())&&k("unbound-bitwise-result","and"),w(_(this).and(t))}},{key:"or",value:function(e){var t=_(e) +return(this.isNegative()||t.isNeg())&&k("unbound-bitwise-result","or"),w(_(this).or(t))}},{key:"xor",value:function(e){var t=_(e) +return(this.isNegative()||t.isNeg())&&k("unbound-bitwise-result","xor"),w(_(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&k("negative-width","mask"),w(_(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&k("negative-width","shl"),w(_(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&k("negative-width","shr"),w(_(this).shrn(e))}},{key:"eq",value:function(e){return _(this).eq(_(e))}},{key:"lt",value:function(e){return _(this).lt(_(e))}},{key:"lte",value:function(e){return _(this).lte(_(e))}},{key:"gt",value:function(e){return _(this).gt(_(e))}},{key:"gte",value:function(e){return _(this).gte(_(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return _(this).isZero()}},{key:"toNumber",value:function(){try{return _(this).toNumber()}catch(e){k("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return m.throwError("this platform does not support BigInt",h.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?y||(y=!0,m.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?m.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.b.errors.UNEXPECTED_ARGUMENT,{}):m.throwError("BigNumber.toString does not accept parameters",h.b.errors.UNEXPECTED_ARGUMENT,{})),_(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}])&&d(t.prototype,r),n&&d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() +function g(e){if("string"!=typeof e)return g(e.toString(16)) +if("-"===e[0])return"-"===(e=e.substring(1))[0]&&m.throwArgumentError("invalid hex","value",e),"0x00"===(e=g(e))?e:"-"+e +if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00" +for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4) +return e}function w(e){return b.from(g(e))}function _(e){var t=b.from(e).toHexString() +return"-"===t[0]?new p("-"+t.substring(3),16):new p(t.substring(2),16)}function k(e,t,r){var n={fault:e,operation:t} +return null!=r&&(n.value=r),m.throwError(e,h.b.errors.NUMERIC_FAULT,n)}function x(e,t){for(var r=0;rthis.wordSize&&B.throwError("value out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(c.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length +return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),z=function(){function e(t,r,n,i){I(this,e),S(this,"_data",Object(c.a)(t)),S(this,"wordSize",r||32),S(this,"_coerceFunc",n),S(this,"allowLoose",i),this._offset=0}return D(e,[{key:"data",get:function(){return Object(c.i)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize +return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:B.throwError("data out-of-bounds",h.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t) +return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return b.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$") +return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),q=r(205),H=r.n(q) +function V(e){return"0x"+H.a.keccak_256(Object(c.a)(e))}var W=new h.b("rlp/5.6.0") +function G(e){for(var t=[];e;)t.unshift(255&e),e>>=8 +return t}function Y(e,t,r){for(var n=0,i=0;it+1+n&&W.throwError("child data too short",h.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function $(e,t){if(0===e.length&&W.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247 +t+1+r>e.length&&W.throwError("data short segment too short",h.b.errors.BUFFER_OVERRUN,{}) +var n=Y(e,t+1,r) +return t+1+r+n>e.length&&W.throwError("data long segment too short",h.b.errors.BUFFER_OVERRUN,{}),J(e,t,t+1+r,r+n)}if(e[t]>=192){var i=e[t]-192 +return t+1+i>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),J(e,t,t+1,i)}if(e[t]>=184){var o=e[t]-183 +t+1+o>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}) +var a=Y(e,t+1,o) +return t+1+o+a>e.length&&W.throwError("data array too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+o+a,result:Object(c.i)(e.slice(t+1+o,t+1+o+a))}}if(e[t]>=128){var s=e[t]-128 +return t+1+s>e.length&&W.throwError("data too short",h.b.errors.BUFFER_OVERRUN,{}),{consumed:1+s,result:Object(c.i)(e.slice(t+1,t+1+s))}}return{consumed:1,result:Object(c.i)(e[t])}}function Z(e){var t=Object(c.a)(e),r=$(t,0) +return r.consumed!==t.length&&W.throwArgumentError("invalid rlp data","data",e),r.result}var Q=new h.b("address/5.6.0") +function X(e){Object(c.l)(e,20)||Q.throwArgumentError("invalid address","address",e) +for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0) +for(var i=Object(c.a)(V(r)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(t[o]=t[o].toUpperCase()),(15&i[o>>1])>=8&&(t[o+1]=t[o+1].toUpperCase()) +return"0x"+t.join("")}for(var ee={},te=0;te<10;te++)ee[String(te)]=String(te) +for(var re=0;re<26;re++)ee[String.fromCharCode(65+re)]=String(10+re) +var ne,ie=Math.floor((ne=9007199254740991,Math.log10?Math.log10(ne):Math.log(ne)/Math.LN10)) +function oe(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return ee[e]})).join("");t.length>=ie;){var r=t.substring(0,ie) +t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n +return n}function ae(e){var t,r=null +if("string"!=typeof e&&Q.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),r=X(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==e&&Q.throwArgumentError("bad address checksum","address",e) +else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==oe(e)&&Q.throwArgumentError("bad icap checksum","address",e),t=e.substring(4),r=new p(t,36).toString(16);r.length<40;)r="0"+r +r=X("0x"+r)}else Q.throwArgumentError("invalid address","address",e) +return r}function se(e){try{return ae(e),!0}catch(e){}return!1}function ue(e){for(var t,r=(t=ae(e).substring(2),new p(t,16).toString(36)).toUpperCase();r.length<30;)r="0"+r +return"XE"+oe("XE00"+r)+r}function ce(e){var t=null +try{t=ae(e.from)}catch(t){Q.throwArgumentError("missing from address","transaction",e)}var r=Object(c.o)(Object(c.a)(b.from(e.nonce).toHexString())) +return ae(Object(c.e)(V(K([t,r])),12))}function le(e,t,r){return 32!==Object(c.d)(t)&&Q.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(c.d)(r)&&Q.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),ae(Object(c.e)(V(Object(c.b)(["0xff",ae(e),t,r])),12))}var fe,he,de=new h.b("strings/5.6.0") +function pe(e,t,r,n,i){if(e===he.BAD_PREFIX||e===he.UNEXPECTED_CONTINUE){for(var o=0,a=t+1;a>6==2;a++)o++ +return o}return e===he.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(fe||(fe={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(he||(he={})) +var me=Object.freeze({error:function(e,t,r,n,i){return de.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:pe,replace:function(e,t,r,n,i){return e===he.OVERLONG?(n.push(i),0):(n.push(65533),pe(e,t,r))}}) +function ve(e,t){null==t&&(t=me.error),e=Object(c.a)(e) +for(var r=[],n=0;n>7!=0){var o=null,a=null +if(192==(224&i))o=1,a=127 +else if(224==(240&i))o=2,a=2047 +else{if(240!=(248&i)){n+=t(128==(192&i)?he.UNEXPECTED_CONTINUE:he.BAD_PREFIX,n-1,e,r) +continue}o=3,a=65535}if(n-1+o>=e.length)n+=t(he.OVERRUN,n-1,e,r) +else{for(var s=i&(1<<8-o-1)-1,u=0;u1114111?n+=t(he.OUT_OF_RANGE,n-1-o,e,r,s):s>=55296&&s<=57343?n+=t(he.UTF16_SURROGATE,n-1-o,e,r,s):s<=a?n+=t(he.OVERLONG,n-1-o,e,r,s):r.push(s))}}else r.push(i)}return r}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.current +t!=fe.current&&(de.checkNormalize(),e=e.normalize(t)) +for(var r=[],n=0;n>6|192),r.push(63&i|128) +else if(55296==(64512&i)){n++ +var o=e.charCodeAt(n) +if(n>=e.length||56320!=(64512&o))throw new Error("invalid utf-8 string") +var a=65536+((1023&i)<<10)+(1023&o) +r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return Object(c.a)(r)}function be(e){var t="0000"+e.toString(16) +return"\\u"+t.substring(t.length-4)}function ge(e,t){return'"'+ve(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b" +case 9:return"\\t" +case 10:return"\\n" +case 13:return"\\r" +case 34:return'\\"' +case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?be(e):be(55296+((e-=65536)>>10&1023))+be(56320+(1023&e))})).join("")+'"'}function we(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function _e(e,t){return we(ve(e,t))}function ke(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.current +return ve(ye(e,t))}function xe(e){return V(ye(e))}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){for(var r=0;r=0?t:"")+"]",s=-1===t||e.dynamic +return(o=n.call(this,"array",a,r,s)).coder=e,o.length=t,o}return t=i,(r=[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;re._data.length&&ze.throwError("insufficient data length",h.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}) +for(var r=[],n=0;n=0||"tuple"===e)&&ar[t])return!0 +return(or[t]||"payable"===t)&&nr.throwArgumentError("invalid modifier","name",t),!1}function ur(e,t){for(var r in t)S(e,r,t[r])}var cr=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),lr=new RegExp(/^(.*)\[([0-9]*)\]$/),fr=function(){function e(t,r){er(this,e),t!==ir&&nr.throwError("use fromString",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ur(this,r) +var n=this.type.match(lr) +ur(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return rr(e,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0} +return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="" +return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==cr.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+")"):r+=this.type,e!==cr.sighash&&(!0===this.indexed&&(r+=" indexed"),e===cr.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(ir,{name:t.name||null,type:kr(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e +function n(t){nr.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var r={type:"",name:"",parent:e,state:{allowType:!0}} +return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ") +for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s2&&nr.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||nr.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=b.from(r[1]),r[0]):e}function vr(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0 +break +case"payable":t.payable=!0,t.stateMutability="payable" +break +case"nonpayable":t.payable=!1,t.stateMutability="nonpayable" +break +case"pure":t.constant=!0,t.stateMutability="pure" +break +case"view":t.constant=!0,t.stateMutability="view" +break +case"external":case"public":case"":break +default:console.log("unknown modifier: "+e)}}))}function yr(e){var t={constant:!1,payable:!0,stateMutability:"payable"} +return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&nr.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&nr.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||nr.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&nr.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&nr.throwArgumentError("unable to determine stateMutability","value",e),t}var br=function(e){$t(r,e) +var t=Zt(r) +function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))}) +e===cr.sighash&&nr.throwError("cannot format a constructor for sighash",h.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"}) +var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") " +return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e +"constructor"!==e.type&&nr.throwArgumentError("invalid constructor object","value",e) +var t=yr(e) +t.constant&&nr.throwArgumentError("constructor cannot be constant","value",e) +var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(fr.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?b.from(e.gas):null} +return new r(ir,n)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=mr(e,t)).match(Er) +return n&&"constructor"===n[1].trim()||nr.throwArgumentError("invalid constructor string","value",e),t.inputs=hr(n[2].trim(),!1),vr(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(dr),gr=function(e){$t(r,e) +var t=Zt(r) +function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))}) +var t="" +return e!==cr.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") ",e!==cr.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e +"function"!==e.type&&nr.throwArgumentError("invalid function object","value",e) +var t=yr(e),n={type:e.type,name:Or(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(fr.fromObject):[],outputs:e.outputs?e.outputs.map(fr.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?b.from(e.gas):null} +return new r(ir,n)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=mr(e,t)).split(" returns ") +n.length>2&&nr.throwArgumentError("invalid function string","value",e) +var i=n[0].match(Er) +if(i||nr.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&Or(t.name),t.inputs=hr(i[2],!1),vr(i[3].trim(),t),n.length>1){var o=n[1].match(Er) +""==o[1].trim()&&""==o[3].trim()||nr.throwArgumentError("unexpected tokens","value",e),t.outputs=hr(o[2],!1)}else t.outputs=[] +return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(br) +function wr(e){var t=e.format() +return"Error(string)"!==t&&"Panic(uint256)"!==t||nr.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var _r=function(e){$t(r,e) +var t=Zt(r) +function r(){return er(this,r),t.apply(this,arguments)}return rr(r,[{key:"format",value:function(e){if(e||(e=cr.sighash),cr[e]||nr.throwArgumentError("invalid format type","format",e),e===cr.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))}) +var t="" +return e!==cr.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===cr.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e +"error"!==e.type&&nr.throwArgumentError("invalid error object","value",e) +var t={type:e.type,name:Or(e.name),inputs:e.inputs?e.inputs.map(fr.fromObject):[]} +return wr(new r(ir,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(Er) +return n||nr.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Or(t.name),t.inputs=hr(n[2],!1),wr(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(dr) +function kr(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var xr=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$") +function Or(e){return e&&e.match(xr)||nr.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var Er=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$") +function Sr(e,t){for(var r=0;r256||n%8!=0)&&Pr.throwArgumentError("invalid "+r[1]+" bit length","param",e),new It(n/8,"int"===r[1],e.name)}if(r=e.type.match(Mr)){var i=parseInt(r[1]) +return(0===i||i>32)&&Pr.throwArgumentError("invalid bytes length","param",e),new pt(i,e.name)}return Pr.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new z(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new U(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(fr.from(e))})) +return new Kt(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this +e.length!==t.length&&Pr.throwError("types/values length mismatch",h.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}}) +var n=e.map((function(e){return r._getCoder(fr.from(e))})),i=new Kt(n,"_"),o=this._getWriter() +return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,r){var n=this,i=e.map((function(e){return n._getCoder(fr.from(e))})) +return new Kt(i,"_").decode(this._getReader(Object(c.a)(t),r))}}])&&Sr(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Rr=new jr +function Tr(e){return(Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cr(e,t){for(var r=0;r1&&Ur.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[gr.fromString(e).format()] +return i||Ur.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if(Object(c.l)(e)){var t=e.toLowerCase() +for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r] +Ur.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n})) +return 0===i.length?Ur.throwArgumentError("no matching event","name",n):i.length>1&&Ur.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var o=this.events[pr.fromString(e).format()] +return o||Ur.throwArgumentError("no matching event","signature",e),o}},{key:"getError",value:function(e){if(Object(c.l)(e)){var t=P(this.constructor,"getSighash") +for(var r in this.errors)if(e===t(this.errors[r]))return this.errors[r] +Ur.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n})) +return 0===i.length?Ur.throwArgumentError("no matching error","name",n):i.length>1&&Ur.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var o=this.errors[gr.fromString(e).format()] +return o||Ur.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return P(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),P(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e)) +var r=Object(c.a)(t) +return Object(c.i)(r.slice(0,4))!==this.getSighash(e)&&Ur.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(c.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),Object(c.i)(Object(c.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e)) +var r=Object(c.a)(t) +return Object(c.i)(r.slice(0,4))!==this.getSighash(e)&&Ur.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(c.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(c.i)(Object(c.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e)) +var r=Object(c.a)(t),n=null,i="",o=null,a=null,s=null +switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(f){}break +case 4:var u=Object(c.i)(r.slice(0,4)),l=Wr[u] +if(l)o=this._abiCoder.decode(l.inputs,r.slice(4)),a=l.name,s=l.signature,l.reason&&(n=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0])) +else try{var f=this.getError(u) +o=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,s=f.format()}catch(f){}}return Ur.throwError("call revert exception"+i,h.b.errors.CALL_EXCEPTION,{method:e.format(),data:Object(c.i)(t),errorArgs:o,errorName:a,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(c.i)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this +"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&Ur.throwError("too many arguments for "+e.format(),h.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t}) +var n=[] +e.anonymous||n.push(this.getEventTopic(e)) +var i=function(e,t){return"string"===e.type?xe(t):"bytes"===e.type?V(Object(c.i)(t)):("address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(c.h)(Object(c.i)(t),32))} +for(t.forEach((function(t,r){var o=e.inputs[r] +o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?Ur.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map((function(e){return i(o,e)}))):n.push(i(o,t)):null!=t&&Ur.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));n.length&&null===n[n.length-1];)n.pop() +return n}},{key:"encodeEventLog",value:function(e,t){var r=this +"string"==typeof e&&(e=this.getEvent(e)) +var n=[],i=[],o=[] +return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Ur.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a] +if(e.indexed)if("string"===e.type)n.push(xe(s)) +else if("bytes"===e.type)n.push(V(s)) +else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented") +n.push(r._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e) +Object(c.l)(r[0],32)&&r[0].toLowerCase()===n||Ur.throwError("fragment/topic mismatch",h.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],o=[],a=[] +e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(fr.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))})) +var s=null!=r?this._abiCoder.decode(i,Object(c.b)(r)):null,u=this._abiCoder.decode(o,t,!0),l=[],f=0,d=0 +e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)l[t]=new Vr({_isIndexed:!0,hash:null}) +else if(a[t])l[t]=new Vr({_isIndexed:!0,hash:s[d++]}) +else try{l[t]=s[d++]}catch(e){l[t]=e}else try{l[t]=u[f++]}catch(e){l[t]=e}if(e.name&&null==l[e.name]){var r=l[t] +r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw Gr("property ".concat(JSON.stringify(e.name)),r)}}):l[e.name]=r}})) +for(var p=function(e){var t=l[e] +t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw Gr("index ".concat(e),t)}})},m=0;m=0)throw e +return pn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&pn.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,M(r) +case 23:return t.abrupt("return",t.sent) +case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||pn.throwError("missing provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&an(e,t)}(r,e) +var t=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +if(Reflect.construct.sham)return!1 +if("function"==typeof Proxy)return!0 +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=cn(e) +if(t){var i=cn(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return sn(this,r)}}(r) +function r(e,n){var i +return ln(this,r),pn.checkNew(this instanceof r?this.constructor:void 0,r),S(un(i=t.call(this)),"address",e),S(un(i),"provider",n||null),i}return hn(r,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){pn.throwError(e,h.b.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new r(this.address,e)}}]),r}(yn),gn=r(204) +function wn(e,t){for(var r=0;r32&&Mn.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function Dn(e,t){return{address:ae(e),storageKeys:(t||[]).map((function(t,r){return 32!==Object(c.d)(t)&&Mn.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function Bn(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&Mn.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),Dn(e[0],e[1])):Dn(e.address,e.storageKeys)})) +var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{}) +return Dn(t,Object.keys(r).sort())})) +return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function Ln(e){return Bn(e).map((function(e){return[e.address,e.storageKeys]}))}function Fn(e,t){if(null!=e.gasPrice){var r=b.from(e.gasPrice),n=b.from(e.maxFeePerGas||0) +r.eq(n)||Mn.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[Nn(e.chainId||0,"chainId"),Nn(e.nonce||0,"nonce"),Nn(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Nn(e.maxFeePerGas||0,"maxFeePerGas"),Nn(e.gasLimit||0,"gasLimit"),null!=e.to?ae(e.to):"0x",Nn(e.value||0,"value"),e.data||"0x",Ln(e.accessList||[])] +if(t){var o=Object(c.n)(t) +i.push(Nn(o.recoveryParam,"recoveryParam")),i.push(Object(c.o)(o.r)),i.push(Object(c.o)(o.s))}return Object(c.c)(["0x02",K(i)])}function Un(e,t){var r=[Nn(e.chainId||0,"chainId"),Nn(e.nonce||0,"nonce"),Nn(e.gasPrice||0,"gasPrice"),Nn(e.gasLimit||0,"gasLimit"),null!=e.to?ae(e.to):"0x",Nn(e.value||0,"value"),e.data||"0x",Ln(e.accessList||[])] +if(t){var n=Object(c.n)(t) +r.push(Nn(n.recoveryParam,"recoveryParam")),r.push(Object(c.o)(n.r)),r.push(Object(c.o)(n.s))}return Object(c.c)(["0x01",K(r)])}function zn(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&Mn.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){A(e,Tn) +var r=[] +Rn.forEach((function(t){var n=e[t.name]||[],i={} +t.numeric&&(i.hexPad="left"),n=Object(c.a)(Object(c.i)(n,i)),t.length&&n.length!==t.length&&n.length>0&&Mn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(c.o)(n)).length>t.maxLength&&Mn.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push(Object(c.i)(n))})) +var n=0 +if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&Mn.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(c.k)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(c.i)(n)),r.push("0x"),r.push("0x")),!t)return K(r) +var i=Object(c.n)(t),o=27+i.recoveryParam +return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&Mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&Mn.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(c.i)(o)),r.push(Object(c.o)(Object(c.a)(i.r))),r.push(Object(c.o)(Object(c.a)(i.s))),K(r)}(e,t) +switch(e.type){case 1:return Un(e,t) +case 2:return Fn(e,t)}return Mn.throwError("unsupported transaction type: ".concat(e.type),h.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function qn(e,t,r){try{var n=jn(t[0]).toNumber() +if(0!==n&&1!==n)throw new Error("bad recid") +e.v=n}catch(e){Mn.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(c.h)(t[1],32),e.s=Object(c.h)(t[2],32) +try{var i=V(r(e)) +e.from=In(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){console.log(e)}}function Hn(e){var t=Object(c.a)(e) +if(t[0]>127)return function(e){var t=Z(e) +9!==t.length&&6!==t.length&&Mn.throwArgumentError("invalid raw transaction","rawTransaction",e) +var r={nonce:jn(t[0]).toNumber(),gasPrice:jn(t[1]),gasLimit:jn(t[2]),to:An(t[3]),value:jn(t[4]),data:t[5],chainId:0} +if(6===t.length)return r +try{r.v=b.from(t[6]).toNumber()}catch(e){return console.log(e),r}if(r.r=Object(c.h)(t[7],32),r.s=Object(c.h)(t[8],32),b.from(r.r).isZero()&&b.from(r.s).isZero())r.chainId=r.v,r.v=0 +else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0) +var n=r.v-27,i=t.slice(0,6) +0!==r.chainId&&(i.push(Object(c.i)(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8) +var o=V(K(i)) +try{r.from=In(o,{r:Object(c.i)(r.r),s:Object(c.i)(r.s),recoveryParam:n})}catch(e){console.log(e)}r.hash=V(e)}return r.type=null,r}(t) +switch(t[0]){case 1:return function(e){var t=Z(e.slice(1)) +8!==t.length&&11!==t.length&&Mn.throwArgumentError("invalid component count for transaction type: 1","payload",Object(c.i)(e)) +var r={type:1,chainId:jn(t[0]).toNumber(),nonce:jn(t[1]).toNumber(),gasPrice:jn(t[2]),gasLimit:jn(t[3]),to:An(t[4]),value:jn(t[5]),data:t[6],accessList:Bn(t[7])} +return 8===t.length||(r.hash=V(e),qn(r,t.slice(8),Un)),r}(t) +case 2:return function(e){var t=Z(e.slice(1)) +9!==t.length&&12!==t.length&&Mn.throwArgumentError("invalid component count for transaction type: 2","payload",Object(c.i)(e)) +var r=jn(t[2]),n=jn(t[3]),i={type:2,chainId:jn(t[0]).toNumber(),nonce:jn(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:jn(t[4]),to:An(t[5]),value:jn(t[6]),data:t[7],accessList:Bn(t[8])} +return 9===t.length||(i.hash=V(e),qn(i,t.slice(9),Fn)),i}(t)}return Mn.throwError("unsupported transaction type: ".concat(t[0]),h.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function Vn(e){return function(e){if(Array.isArray(e))return Wn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wn(e,t) +var r=Object.prototype.toString.call(e).slice(8,-1) +return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wn(e,t){(null==t||t>e.length)&&(t=e.length) +for(var r=0,n=new Array(t);r1)){e=e.substring(1) +var r=t[0] +try{null==i[e]&&S(i,e,i[r])}catch(e){}null==i.functions[e]&&S(i.functions,e,i.functions[r]),null==i.callStatic[e]&&S(i.callStatic,e,i.callStatic[r]),null==i.populateTransaction[e]&&S(i.populateTransaction,e,i.populateTransaction[r]),null==i.estimateGas[e]&&S(i.estimateGas,e,i.estimateGas[r])}}))}return ti(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this +return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&ii.throwError("contract not deployed",h.b.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this +this.signer||ii.throwError("sending a transactions require a signer",h.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"}) +var r=j(e||{}) +return["from","to"].forEach((function(e){null!=r[e]&&ii.throwError("cannot override "+e,h.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))}},{key:"connect",value:function(e){"string"==typeof e&&(e=new bn(e,this.provider)) +var t=new this.constructor(this.address,this.interface,e) +return this.deployTransaction&&S(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new pi) +if("event"===e)return this._normalizeRunningEvent(new di("event",null)) +if("*"===e)return this._normalizeRunningEvent(new vi(this.address,this.interface)) +var t=this.interface.getEvent(e) +return this._normalizeRunningEvent(new mi(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0] +if("string"!=typeof r)throw new Error("invalid topic") +var n=this.interface.getEvent(r) +return this._normalizeRunningEvent(new mi(this.address,this.interface,n,e.topics))}catch(e){}var i={address:this.address,topics:e.topics} +return this._normalizeRunningEvent(new di(hi(i),i))}return this._normalizeRunningEvent(new vi(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag] +var t=this._wrappedEmits[e.tag] +t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,r){var n=this,i=T(t) +return i.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},i.getBlock=function(){return n.provider.getBlock(t.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,r){var n=this +if(this.provider||ii.throwError("events require a provider or a signer with a provider",h.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(r){var i=n._wrapEvent(e,r,t) +if(null==i.decodeError)try{var o=e.getEmit(i) +n.emit.apply(n,[e.filter].concat(Vn(o)))}catch(e){i.decodeError=e.error}null!=e.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)} +this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,r){var n=this,i=this._getRunningEvent(e),o=j(i.filter) +return"string"==typeof t&&Object(c.l)(t,32)?(null!=r&&ii.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=r?r:"latest"),this.provider.getLogs(o).then((function(e){return e.map((function(e){return n._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1 +for(var t=this._getRunningEvent(e),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i0 +return this._checkRunningEvents(t),o}},{key:"listenerCount",value:function(e){var t=this +return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){var t=this +if(!this.provider)return[] +if(null==e){var r=function(){var e=[] +for(var r in t._runningEvents)t._runningEvents[r].listeners().forEach((function(t){e.push(t)})) +return{v:e}}() +if("object"===ri(r))return r.v}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this +if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t] +r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e) +return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(e,t){if(!this.provider)return this +var r=this._getRunningEvent(e) +return r.removeListener(t),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return ce(e)}},{key:"getInterface",value:function(e){return Yr.isInterface(e)?e:new Yr(e)}},{key:"isIndexed",value:function(e){return Vr.isIndexed(e)}}]),e}(),bi=function(e){Kn(r,e) +var t=Jn(r) +function r(){return Xn(this,r),t.apply(this,arguments)}return ti(r)}(yi),gi=function(){function e(t,r,n){Xn(this,e) +var i=null +"0x"!==(i="string"==typeof r?r:Object(c.j)(r)?Object(c.i)(r):r&&"string"==typeof r.object?r.object:"!").substring(0,2)&&(i="0x"+i),(!Object(c.l)(i)||i.length%2)&&ii.throwArgumentError("invalid bytecode","bytecode",r),n&&!yn.isSigner(n)&&ii.throwArgumentError("invalid signer","signer",n),S(this,"bytecode",i),S(this,"interface",P(this instanceof e?this.constructor:void 0,"getInterface")(t)),S(this,"signer",n||null)}return ti(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n=0&&e<=256&&!(e%1)?"1"+Ai.substring(0,e):Oi.throwArgumentError("invalid decimal size","decimals",e)}function Ri(e,t){null==t&&(t=0) +var r=ji(t),n=(e=b.from(e)).lt(Si) +n&&(e=e.mul(Pi)) +for(var i=e.mod(r).toString();i.length2&&Oi.throwArgumentError("too many decimal points","value",e) +var o=i[0],a=i[1] +for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1) +for(a.length>r.length-1&&Mi("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length80&&Oi.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(Ei,r,n,i)}}]),e}(),Ii=function(){function e(t,r,n,i){_i(this,e),Oi.checkNew(this instanceof e?this.constructor:void 0,e),t!==Ei&&Oi.throwError("cannot use FixedNumber constructor; use FixedNumber.from",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return xi(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&Oi.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t) +var r=Ti(this._value,this.format.decimals),n=Ti(t._value,t.format.decimals) +return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".") +1===t.length&&t.push("0") +var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/) +return this.isNegative()&&n&&(r=r.subUnsafe(Ni.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".") +1===t.length&&t.push("0") +var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/) +return!this.isNegative()&&n&&(r=r.addUnsafe(Ni.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0) +var r=this.toString().split(".") +if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&Oi.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this +var n=e.from("1"+Ai.substring(0,t),this.format),i=Di.toFormat(this.format) +return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex +e%8&&Oi.throwArgumentError("invalid byte width","width",e) +var t=b.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString() +return Object(c.h)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||function(e){return null!=e&&(b.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||Object(c.l)(e)||"bigint"==typeof e||Object(c.j)(e))}(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(Ri(t,r),Ci.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed") +var n=Ci.from(r),i=Ti(t,n.decimals) +!n.signed&&i.lt(Si)&&Mi("unsigned value cannot be negative","overflow","value",t) +var o=null +n.signed?o=i.toTwos(n.width).toHexString():(o=i.toHexString(),o=Object(c.h)(o,n.width/8)) +var a=Ri(i,n.decimals) +return new e(Ei,o,a,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed") +var n=Ci.from(r) +if(Object(c.a)(t).length>n.width/8)throw new Error("overflow") +var i=b.from(t) +n.signed&&(i=i.fromTwos(n.width)) +var o=i.toTwos((n.signed?0:1)+n.width).toHexString(),a=Ri(i,n.decimals) +return new e(Ei,o,a,n)}},{key:"from",value:function(t,r){if("string"==typeof t)return e.fromString(t,r) +if(Object(c.j)(t))return e.fromBytes(t,r) +try{return e.fromValue(t,0,r)}catch(e){if(e.code!==h.b.errors.INVALID_ARGUMENT)throw e}return Oi.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),Ni=Ii.from(1),Di=Ii.from("0.5") +function Bi(e){return"string"==typeof e&&(e=ye(e)),V(Object(c.b)([ye("Ethereum Signed Message:\n"),ye(String(e.length)),e]))}function Li(e,t){for(var r=0;r256||t[2]&&t[2]!==String(n))&&Fi.throwArgumentError("invalid numeric width","type",e) +var i=Vi.mask(r?n-1:n),o=r?i.add(Hi).mul(zi):qi +return function(t){var r=b.from(t) +return(r.lt(o)||r.gt(i))&&Fi.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(c.h)(r.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/) +if(a){var s=parseInt(a[1]) +return(0===s||s>32||a[1]!==String(s))&&Fi.throwArgumentError("invalid bytes width","type",e),function(t){return Object(c.a)(t).length!==s&&Fi.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(c.a)(e),r=t.length%32 +return r?Object(c.c)([t,Ui.slice(r)]):Object(c.i)(t)}(t)}}switch(e){case"address":return function(e){return Object(c.h)(ae(e),32)} +case"bool":return function(e){return e?Wi:Gi} +case"bytes":return function(e){return V(e)} +case"string":return function(e){return xe(e)}}return null}function Qi(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name +return e.type+" "+t})).join(","),")")}var Xi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,"types",Object.freeze(T(t))),S(this,"_encoderCache",{}),S(this,"_types",{}) +var r={},n={},i={} +Object.keys(t).forEach((function(e){r[e]={},n[e]=[],i[e]={}})) +var o=function(e){var i={} +t[e].forEach((function(o){i[o.name]&&Fi.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0 +var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1] +a===e&&Fi.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),Zi(a)||(n[a]||Fi.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),n[a].push(e),r[e][a]=!0)}))} +for(var a in t)o(a) +var s=Object.keys(n).filter((function(e){return 0===n[e].length})) +for(var u in 0===s.length?Fi.throwArgumentError("missing primary type","types",t):s.length>1&&Fi.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),S(this,"primaryType",s[0]),function e(o,a){a[o]&&Fi.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),a[o]=!0,Object.keys(r[o]).forEach((function(t){n[t]&&(e(t,a),Object.keys(a).forEach((function(e){i[e][t]=!0})))})),delete a[o]}(this.primaryType,{}),i){var c=Object.keys(i[u]) +c.sort(),this._types[u]=Qi(u,t[u])+c.map((function(e){return Qi(e,t[e])})).join("")}}var t,r,n +return t=e,n=[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[] +for(var n in t){var i=Yi[n] +i||Fi.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:i})}return r.sort((function(e,t){return Ki.indexOf(e.name)-Ki.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return Object(c.c)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return V(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,i){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t +e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function o(){var a,s,u +return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=j(t),a={},t.verifyingContract&&!Object(c.l)(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),(s=e.from(r)).visit(n,(function(e,t){return"address"!==e||Object(c.l)(t,20)||(a[t]="0x"),t})),o.t0=regeneratorRuntime.keys(a) +case 6:if((o.t1=o.t0()).done){o.next=13 +break}return u=o.t1.value,o.next=10,i(u) +case 10:a[u]=o.sent,o.next=6 +break +case 13:return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),n=s.visit(n,(function(e,t){return"address"===e&&a[t]?a[t]:t})),o.abrupt("return",{domain:t,value:n}) +case 16:case"end":return o.stop()}}),o)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t) +var i={},o=[] +Ki.forEach((function(e){var r=t[e] +null!=r&&(i[e]=$i[e](r),o.push({name:e,type:Yi[e]}))})) +var a=e.from(r),s=j(r) +return s.EIP712Domain?Fi.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=o,a.encode(n),{types:s,domain:i,primaryType:a.primaryType,message:a.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(c.i)(Object(c.a)(t)) +if(e.match(/^u?int/))return b.from(t).toString() +switch(e){case"address":return t.toLowerCase() +case"bool":return!!t +case"string":return"string"!=typeof t&&Fi.throwArgumentError("invalid string","value",t),t}return Fi.throwArgumentError("unsupported type","type",e)}))}}}],(r=[{key:"getEncoder",value:function(e){var t=this._encoderCache[e] +return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=Zi(e) +if(r)return r +var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/) +if(n){var i=n[1],o=this.getEncoder(i),a=parseInt(n[3]) +return function(e){a>=0&&e.length!==a&&Fi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e) +var r=e.map(o) +return t._types[i]&&(r=r.map(V)),V(Object(c.c)(r))}}var s=this.types[e] +if(s){var u=xe(this._types[e]) +return function(e){var r=s.map((function(r){var n=r.name,i=r.type,o=t.getEncoder(i)(e[n]) +return t._types[i]?V(o):o})) +return r.unshift(u),Object(c.c)(r)}}return Fi.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e] +return t||Fi.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return V(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this +if(Zi(e))return r(e,t) +var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/) +if(i){var o=i[1],a=parseInt(i[3]) +return a>=0&&t.length!==a&&Fi.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(o,e,r)}))}var s=this.types[e] +return s?s.reduce((function(e,i){var o=i.name,a=i.type +return e[o]=n._visit(a,t[o],r),e}),{}):Fi.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}])&&Li(t.prototype,r),n&&Li(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() +function eo(e,t){for(var r=0;r0;)r.push(i%this.base),i=i/this.base|0}for(var a="",s=0;0===t[s]&&s=0;--u)a+=this.alphabet[r[u]] +return a}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String") +var t=[] +if(0===e.length)return new Uint8Array(t) +t.push(0) +for(var r=0;r>=8 +for(;i>0;)t.push(255&i),i>>=8}for(var a=0;e[a]===this._leader&&a>24&255,f[t.length+1]=h>>16&255,f[t.length+2]=h>>8&255,f[t.length+3]=255&h +var d=Object(c.a)(lo(i,e,f)) +o||(o=d.length,s=new Uint8Array(o),a=n-((u=Math.ceil(n/o))-1)*o),s.set(d) +for(var p=1;p64)throw new Error("invalid seed") +var i=Object(c.a)(lo(to.sha512,Mo,n)) +return new e(Co,jo(i.slice(0,32)),null,"0x00000000",jo(i.slice(32)),0,0,r)}},{key:"fromMnemonic",value:function(t,r,n){return t=Lo(Bo(t,n=To(n)),n),e._fromSeed(Do(t,r),{phrase:t,path:"m",locale:n.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var r=no.decode(t) +82===r.length&&Ro(r.slice(0,78))===t||So.throwArgumentError("invalid extended key","extendedKey","[REDACTED]") +var n=r[4],i=Object(c.i)(r.slice(5,9)),o=parseInt(Object(c.i)(r.slice(9,13)).substring(2),16),a=Object(c.i)(r.slice(13,45)),s=r.slice(45,78) +switch(Object(c.i)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(Co,null,Object(c.i)(s),i,a,o,n,null) +case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break +return new e(Co,Object(c.i)(s.slice(1)),null,i,a,o,n,null)}return So.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}],(r=[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!") +return Ro(Object(c.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(c.i)(this.depth),this.parentFingerprint,Object(c.h)(Object(c.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(c.b)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(Co,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t)) +var r=this.path +r&&(r+="/"+(2147483647&t)) +var n=new Uint8Array(37) +if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node") +n.set(Object(c.a)(this.privateKey),1),r&&(r+="'")}else n.set(Object(c.a)(this.publicKey)) +for(var i=24;i>=0;i-=8)n[33+(i>>3)]=t>>24-i&255 +var o=Object(c.a)(lo(to.sha512,this.chainCode,n)),a=o.slice(0,32),s=o.slice(32),u=null,l=null +this.privateKey?u=jo(b.from(a).add(this.privateKey).mod(Po)):l=new On(Object(c.i)(a))._addPoint(this.publicKey) +var f=r,h=this.mnemonic +return h&&(f=Object.freeze({phrase:h.phrase,path:r,locale:h.locale||"en"})),new e(Co,u,l,this.fingerprint,jo(s),t,this.depth+1,f)}},{key:"derivePath",value:function(e){var t=e.split("/") +if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e) +"m"===t[0]&&t.shift() +for(var r=this,n=0;n=2147483648)throw new Error("invalid path index - "+i) +r=r._derive(2147483648+o)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i) +var a=parseInt(i) +if(a>=2147483648)throw new Error("invalid path index - "+i) +r=r._derive(a)}}return r}}])&&Eo(t.prototype,r),n&&Eo(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}() +function Do(e,t){t||(t="") +var r=ye("mnemonic"+t,fe.NFKD) +return fo(ye(e,fe.NFKD),r,2048,64,"sha512")}function Bo(e,t){t=To(t),So.checkNormalize() +var r=t.split(e) +if(r.length%3!=0)throw new Error("invalid mnemonic") +for(var n=Object(c.a)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,o=0;o>3]|=1<<7-i%8),i++}var u=32*r.length/3,l=Ao(r.length/3) +if((Object(c.a)(uo(n.slice(0,u/8)))[0]&l)!=(n[n.length-1]&l))throw new Error("invalid checksum") +return Object(c.i)(n.slice(0,u/8))}function Lo(e,t){if(t=To(t),(e=Object(c.a)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy") +for(var r=[0],n=11,i=0;i8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3) +var o=e.length/4,a=Object(c.a)(uo(e))[0]&Ao(o) +return r[r.length-1]<<=o,r[r.length-1]|=a>>8-o,t.join(r.map((function(e){return t.getWord(e)})))}function Fo(e,t){try{return Bo(e,t),!0}catch(e){}return!1}function Uo(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&So.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}var zo=r(576),qo=r(27),Ho=r.n(qo),Vo=r(83),Wo=r.n(Vo) +function Go(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(c.a)(e)}function Yo(e,t){for(e=String(e);e.length=(r+=i.l)&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue +return i}}return null}var Ka=Ga("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),Ja="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),$a=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],Za=Wa("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),Qa=Wa("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),Xa=Wa("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data") +for(var t=[],r=0;r=0||e>=65024&&e<=65039?[]:function(e){var t=Ya(e,$a) +if(t)return[e+t.s] +var r=Za[e] +if(r)return r +var n=Qa[e] +return n?[e+n[0]]:Xa[e]||null}(e)||[e]})),(r=ke(we(r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[])),fe.NFKC)).forEach((function(e){if(Ya(e,es))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(Ya(e,Ka))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")})) +var n=we(r) +if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen") +if(n.length>63)throw new Error("too long") +return n}var rs=new h.b("hash/5.6.0"),ns=new Uint8Array(32) +ns.fill(0) +var is=new RegExp("^((.*)\\.)?([^.]+)$") +function os(e){try{for(var t=e.split("."),r=0;r0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n) +var i="object"===fs(e)?e.throttleCallback:null,o="object"===fs(e)&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100 +hs.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o) +var a="object"===fs(e)&&!!e.errorPassThrough,s={},u=null,c={method:"GET"},l=!1,f=12e4 +if("string"==typeof e)u=e +else if("object"===fs(e)){if(null!=e&&null!=e.url||hs.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(f=e.timeout),e.headers)for(var d in e.headers)s[d.toLowerCase()]={key:d,value:String(e.headers[d])},["if-none-match","if-modified-since"].indexOf(d.toLowerCase())>=0&&(l=!0) +if(c.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&hs.throwError("basic authentication requires a secure https url",h.b.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"}) +var p=e.user+":"+e.password +s.authorization={key:"Authorization",value:"Basic "+cs(ye(p))}}null!=e.skipFetchSetup&&(c.skipFetchSetup=!!e.skipFetchSetup)}var m=new RegExp("^data:([a-z0-9-]+/[a-z0-9-]+);base64,(.*)$","i"),v=u?u.match(m):null +if(v)try{var y={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]},body:us(v[2])},b=y.body +return r&&(b=r(y.body,y)),Promise.resolve(b)}catch(e){hs.throwError("processing response error",h.b.errors.SERVER_ERROR,{body:ps(v[1],v[2]),error:e,requestBody:null,requestMethod:"GET",url:u})}t&&(c.method="POST",c.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)})) +var g={} +Object.keys(s).forEach((function(e){var t=s[e] +g[t.key]=t.value})),c.headers=g +var w,_=(w=null,{promise:new Promise((function(e,t){f&&(w=setTimeout((function(){null!=w&&(w=null,t(hs.makeError("timeout",h.b.errors.TIMEOUT,{requestBody:ps(c.body,g["content-type"]),requestMethod:c.method,timeout:f,url:u})))}),f))})),cancel:function(){null!=w&&(clearTimeout(w),w=null)}}),k=function(){return function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t +e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,s,f,d,p,m,v,y,b,w +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0 +case 1:if(!(t=300)&&(_.cancel(),hs.throwError("bad response",h.b.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:ps(v,s.headers?s.headers["content-type"]:null),requestBody:ps(c.body,g["content-type"]),requestMethod:c.method,url:u})),!r){e.next=60 +break}return e.prev=37,e.next=40,r(v,s) +case 40:return y=e.sent,_.cancel(),e.abrupt("return",y) +case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(a()&&n(new Error("retry limit reached"))) +var c=t.interval*parseInt(String(Math.random()*Math.pow(2,u))) +ct.ceiling&&(c=t.ceiling),setTimeout(i,c)}return null}),(function(e){a()&&n(e)}))}()}))}var bs=r(112),gs=r.n(bs) +function ws(e,t){for(var r=0;r0&&null==e[e.length-1];)e.pop() +return e.map((function(e){if(Array.isArray(e)){var t={} +e.forEach((function(e){t[Bs(e)]=!0})) +var r=Object.keys(t) +return r.sort(),r.join("|")}return Bs(e)})).join("&")}function Fs(e){if("string"==typeof e){if(e=e.toLowerCase(),32===Object(c.d)(e))return"tx:"+e +if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+Ls(e) +if(rn.isForkEvent(e))throw Ds.warn("not implemented"),new Error("not implemented") +if(e&&"object"===Is(e))return"filter:"+(e.address||"*")+":"+Ls(e.topics||[])}throw new Error("invalid event - "+e)}function Us(){return(new Date).getTime()}function zs(e){return new Promise((function(t){setTimeout(t,e)}))}var qs=["block","network","pending","poll"],Hs=function(){function e(t,r,n){Rs(this,e),S(this,"tag",t),S(this,"listener",r),S(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Cs(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash +case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":") +return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":") +if("filter"!==e[0])return null +var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[] +var t=e.split("|").map((function(e){return"null"===e?null:e})) +return 1===t.length?t[0]:t})),i={} +return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||qs.indexOf(this.tag)>=0}}]),e}(),Vs={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}} +function Ws(e){return Object(c.h)(b.from(e).toHexString(),32)}function Gs(e){return no.encode(Object(c.b)([e,Object(c.e)(uo(uo(e)),0,4)]))}var Ys=new RegExp("^(ipfs)://(.*)$","i"),Ks=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Ys,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")] +function Js(e,t){try{return _e($s(e,t))}catch(e){}return null}function $s(e,t){if("0x"===e)return null +var r=b.from(Object(c.e)(e,t,t+32)).toNumber(),n=b.from(Object(c.e)(e,r,r+32)).toNumber() +return Object(c.e)(e,r+32,r+32+n)}function Zs(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Ds.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function Qs(e){var t=Object(c.a)(e) +if(t.length>32)throw new Error("internal; should not happen") +var r=new Uint8Array(32) +return r.set(t,32-t.length),r}function Xs(e){if(e.length%32==0)return e +var t=new Uint8Array(32*Math.ceil(e.length/32)) +return t.set(e),t}function eu(e){for(var t=[],r=0,n=0;n=1&&o<=75)return Gs(Object(c.b)([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/) +if(a){var s=parseInt(a[1],16) +if(a[2].length===2*s&&s>=1&&s<=75)return Gs(Object(c.b)([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var u=n[1],l=n[0] +if(0===l?20!==u&&32!==u&&(l=-1):l=-1,l>=0&&n.length===2+u&&u>=1&&u<=75){var f=gs.a.toWords(n.slice(2)) +return f.unshift(l),gs.a.encode(r.prefix,f)}}return null}},{key:"getAddress",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16 +break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de") +case 5:if("0x"!==(r=t.sent)&&r!==Na){t.next=8 +break}return t.abrupt("return",null) +case 8:return t.abrupt("return",this.provider.formatter.callAddress(r)) +case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==h.b.errors.CALL_EXCEPTION){t.next=15 +break}return t.abrupt("return",null) +case 15:throw t.t0 +case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",Ws(e)) +case 18:if(null!=(n=t.sent)&&"0x"!==n){t.next=21 +break}return t.abrupt("return",null) +case 21:return null==(i=this._getAddress(e,n))&&Ds.throwError("invalid or unsupported coin data",h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:n}),t.abrupt("return",i) +case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,n,i,o,a,s,u,l,f,h,d,p,m,v,y +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar") +case 4:if(null!=(r=e.sent)){e.next=7 +break}return e.abrupt("return",null) +case 7:n=0 +case 8:if(!(n=0?null:JSON.stringify({data:o,sender:i}),n.next=12,vs({url:c,errorPassThrough:!0},l,(function(e,t){return e.status=t.statusCode,e})) +case 12:if(!(f=n.sent).data){n.next=15 +break}return n.abrupt("return",f.data) +case 15:if(d=f.message||"unknown error",!(f.status>=400&&f.status<500)){n.next=18 +break}return n.abrupt("return",Ds.throwError("response not found during CCIP fetch: ".concat(d),h.b.errors.SERVER_ERROR,{url:u,errorMessage:d})) +case 18:a.push(d) +case 19:s++,n.next=6 +break +case 22:return n.abrupt("return",Ds.throwError("error encountered during CCIP fetch: ".concat(a.map((function(e){return JSON.stringify(e)})).join(", ")),h.b.errors.SERVER_ERROR,{urls:r,errorMessages:a})) +case 23:case"end":return n.stop()}}),n,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o,a=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready() +case 2:if(!(e>0)){t.next=20 +break}case 3:if(!this._internalBlockNumber){t.next=20 +break}return r=this._internalBlockNumber,t.prev=5,t.next=8,r +case 8:if(n=t.sent,!(Us()-n.respTime<=e)){t.next=11 +break}return t.abrupt("return",n.blockNumber) +case 11:return t.abrupt("break",20) +case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==r){t.next=18 +break}return t.abrupt("break",20) +case 18:t.next=3 +break +case 20:return i=Us(),o=M({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError +if(r)throw a._internalBlockNumber===o&&(a._internalBlockNumber=null),r +var n=Us() +return(t=b.from(t).toNumber())1e3)Ds.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",Ds.makeError("network block skew detected",h.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n) +else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i) +return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=o._emitted[e] +"pending"!==t&&n-t>12&&delete o._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=o.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(o._emitted["t:"+t]=e.blockNumber,o.emit(t,e),null):null})).catch((function(e){o.emit("error",e)})) +r.push(i) +break +case"filter":if(!e._inflight){e._inflight=!0 +var a=e.filter +a.fromBlock=e._lastBlockNumber+1,a.toBlock=n,a.toBlock-o._maxFilterBlockRange>a.fromBlock&&(a.fromBlock=a.toBlock-o._maxFilterBlockRange) +var s=o.getLogs(a).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),o._emitted["b:"+t.blockHash]=t.blockNumber,o._emitted["t:"+t.transactionHash]=t.blockNumber,o.emit(a,t)}))})).catch((function(t){o.emit("error",t),e._inflight=!1})) +r.push(s)}}})),this._lastBlockNumber=n,Promise.all(r).then((function(){o.emit("didPoll",t)})).catch((function(e){o.emit("error",e)})),e.abrupt("return") +case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ds.throwError("provider does not support network detection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})) +case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,n +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready() +case 2:return t=e.sent,e.next=5,this.detectNetwork() +case 5:if(r=e.sent,t.chainId===r.chainId){e.next=23 +break}if(!this.anyNetwork){e.next=20 +break}return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,t),e.next=19,zs(0) +case 19:return e.abrupt("return",this._network) +case 20:throw n=Ds.makeError("underlying network changed",h.b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r}),this.emit("error",n),n +case 23:return e.abrupt("return",t) +case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this +return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this +e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this +if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval") +this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=Us() +return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(e,null==t?1:t,r||0,null)) +case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(e,t,r,n){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a=this +return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(e) +case 2:if(!(((o=i.sent)?o.confirmations:0)>=t)){i.next=5 +break}return i.abrupt("return",o) +case 5:return i.abrupt("return",new Promise((function(i,o){var s=[],u=!1,c=function(){return!!u||(u=!0,s.forEach((function(e){e()})),!1)},l=function(e){e.confirmations0){var m=setTimeout((function(){c()||o(Ds.makeError("timeout exceeded",h.b.errors.TIMEOUT,{timeout:r}))}),r) +m.unref&&m.unref(),s.push((function(){clearTimeout(m)}))}}))) +case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0)) +case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork() +case 2:return e.next=4,this.perform("getGasPrice",{}) +case 4:return t=e.sent,e.prev=5,e.abrupt("return",b.from(t)) +case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0})) +case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() +case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) +case 4:return n=r.sent,r.next=7,this.perform("getBalance",n) +case 7:return i=r.sent,r.prev=8,r.abrupt("return",b.from(i)) +case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:r.t0})) +case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() +case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) +case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n) +case 7:return i=r.sent,r.prev=8,r.abrupt("return",b.from(i).toNumber()) +case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:r.t0})) +case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork() +case 2:return r.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(t)}) +case 4:return n=r.sent,r.next=7,this.perform("getCode",n) +case 7:return i=r.sent,r.prev=8,r.abrupt("return",Object(c.i)(i)) +case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:r.t0})) +case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork() +case 2:return n.next=4,M({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return Object(c.g)(e)}))}) +case 4:return i=n.sent,n.next=7,this.perform("getStorageAt",i) +case 7:return o=n.sent,n.prev=8,n.abrupt("return",Object(c.i)(o)) +case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",Ds.throwError("bad result from backend",h.b.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:n.t0})) +case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,r){var n=this +if(null!=t&&32!==Object(c.d)(t))throw new Error("invalid response - sendTransaction") +var i=e +return null!=t&&e.hash!==t&&Ds.throwError("Transaction hash mismatch from Provider.sendTransaction.",h.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=function(t,i){return Ns(n,void 0,void 0,regeneratorRuntime.mark((function n(){var o,a +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t=1),null==i&&(i=0),o=void 0,0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),n.next=6,this._waitForTransaction(e.hash,t,i,o) +case 6:if(null!=(a=n.sent)||0!==t){n.next=9 +break}return n.abrupt("return",null) +case 9:return this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&Ds.throwError("transaction failed",h.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),n.abrupt("return",a) +case 12:case"end":return n.stop()}}),n,this)})))},i}},{key:"sendTransaction",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i,o +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork() +case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(c.i)(e)})) +case 4:return r=t.sent,null==(n=this.formatter.transaction(e)).confirmations&&(n.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval) +case 9:return i=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:r}) +case 13:return o=t.sent,t.abrupt("return",this._wrapTransaction(n,o,i)) +case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=n,t.t0.transactionHash=n.hash,t.t0 +case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e +case 2:return r=t.sent,n={},["from","to"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?b.from(e):null})))})),["type"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return null!=e?e:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?Object(c.i)(e):null})))})),t.t0=this.formatter,t.next=12,M(n) +case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1)) +case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e +case 2:return e=t.sent,r={},null!=e.address&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(r[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(r[t]=n._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,M(r) +case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1)) +case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,r){return Ns(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,l,f,d,p,m,v,y,g,w,_ +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r>=10&&Ds.throwError("CCIP read exceeded maximum redirections",h.b.errors.SERVER_ERROR,{redirects:r,transaction:e}),i=e.to,n.next=4,this.perform("call",{transaction:e,blockTag:t}) +case 4:if(o=n.sent,!(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&Object(c.d)(o)%32==4)){n.next=31 +break}for(n.prev=6,a=Object(c.e)(o,4),s=Object(c.e)(a,0,32),b.from(s).eq(i)||Ds.throwError("CCIP Read sender did not match",h.b.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),u=[],l=b.from(Object(c.e)(a,32,64)).toNumber(),f=b.from(Object(c.e)(a,l,l+32)).toNumber(),d=Object(c.e)(a,l+32),p=0;pthis._emitted.block)){e.next=10 +break}return e.abrupt("return",null) +case 10:return e.abrupt("return",void 0) +case 11:if(!t){e.next=34 +break}o=null,a=0 +case 14:if(!(a0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,r){var n=new Hs(Fs(e),t,r) +return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&yu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}function wu(e){return new Promise((function(t){setTimeout(t,e)}))}function _u(e){if(e.error){var t=new Error(e.error.message) +throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function ku(e){return e?e.toLowerCase():e}var xu={},Ou=function(e){lu(r,e) +var t=fu(r) +function r(e,n,i){var o +if(su(this,r),yu.checkNew(this instanceof r?this.constructor:void 0,r),o=t.call(this),e!==xu)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner") +return S(du(o),"provider",n),null==i&&(i=0),"string"==typeof i?(S(du(o),"_address",o.provider.formatter.address(i)),S(du(o),"_index",null)):"number"==typeof i?(S(du(o),"_index",i),S(du(o),"_address",null)):yu.throwArgumentError("invalid address or index","addressOrIndex",i),o}return cu(r,[{key:"connect",value:function(e){return yu.throwError("cannot alter JSON-RPC Signer connection",h.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new Eu(xu,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this +return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&yu.throwError("unknown account #"+e._index,h.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this +e=j(e) +var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e})) +if(null==e.gasLimit){var n=j(e) +n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return vu(t,void 0,void 0,regeneratorRuntime.mark((function t(){var r +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2 +break}return t.abrupt("return",null) +case 2:return t.next=4,this.provider.resolveName(e) +case 4:return null==(r=t.sent)&&yu.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r) +case 7:case"end":return t.stop()}}),t,this)})))}))),M({tx:M(e),sender:r}).then((function(r){var n=r.tx,i=r.sender +null!=n.from?n.from.toLowerCase()!==i&&yu.throwArgumentError("from address mismatch","transaction",e):n.from=i +var o=t.provider.constructor.hexlifyTransaction(n,{from:!0}) +return t.provider.send("eth_sendTransaction",[o]).then((function(e){return e}),(function(e){return gu("sendTransaction",e,o)}))}))}},{key:"signTransaction",value:function(e){return yu.throwError("signing transactions is unsupported",h.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n,i=this +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval) +case 2:return r=t.sent,t.next=5,this.sendUncheckedTransaction(e) +case 5:return n=t.sent,t.prev=6,t.next=9,ys((function(){return vu(i,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(n) +case 2:if(null!==(t=e.sent)){e.next=5 +break}return e.abrupt("return",void 0) +case 5:return e.abrupt("return",this.provider._wrapTransaction(t,n,r)) +case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider}) +case 9:return t.abrupt("return",t.sent) +case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=n,t.t0 +case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?ye(e):e,t.next=3,this.getAddress() +case 3:return n=t.sent,t.next=6,this.provider.send("personal_sign",[Object(c.i)(r),n.toLowerCase()]) +case 6:return t.abrupt("return",t.sent) +case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_legacySignMessage",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"==typeof e?ye(e):e,t.next=3,this.getAddress() +case 3:return n=t.sent,t.next=6,this.provider.send("eth_sign",[n.toLowerCase(),Object(c.i)(r)]) +case 6:return t.abrupt("return",t.sent) +case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,r){return vu(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a=this +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Xi.resolveNames(e,t,r,(function(e){return a.provider.resolveName(e)})) +case 2:return i=n.sent,n.next=5,this.getAddress() +case 5:return o=n.sent,n.next=8,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(Xi.getPayload(i.domain,t,i.value))]) +case 8:return n.abrupt("return",n.sent) +case 9:case"end":return n.stop()}}),n,this)})))}},{key:"unlock",value:function(e){return vu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,n +return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.provider,t.next=3,this.getAddress() +case 3:return n=t.sent,t.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),e,null])) +case 5:case"end":return t.stop()}}),t,this)})))}}]),r}(yn),Eu=function(e){lu(r,e) +var t=fu(r) +function r(){return su(this,r),t.apply(this,arguments)}return cu(r,[{key:"sendTransaction",value:function(e){var t=this +return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))}}]),r}(Ou),Su={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},Pu=function(e){lu(r,e) +var t=fu(r) +function r(e,n){var i +su(this,r),yu.checkNew(this instanceof r?this.constructor:void 0,r) +var o=n +return null==o&&(o=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),i=t.call(this,o),e||(e=P(i.constructor,"defaultUrl")()),S(du(i),"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(j(e))),i._nextId=42,i}return cu(r,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this +return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return vu(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wu(0) +case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]) +case 6:t=e.sent,e.next=19 +break +case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]) +case 14:t=e.sent,e.next=19 +break +case 17:e.prev=17,e.t1=e.catch(11) +case 19:if(null==t){e.next=28 +break}return r=P(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",r(b.from(t).toNumber())) +case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",yu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2})) +case 28:return e.abrupt("return",yu.throwError("could not detect network",h.b.errors.NETWORK_ERROR,{event:"noNetwork"})) +case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new Ou(xu,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this +return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"} +this.emit("debug",{action:"request",request:T(n),provider:this}) +var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0 +if(i&&this._cache[e])return this._cache[e] +var o=vs(this.connection,JSON.stringify(n),_u).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e})) +return i&&(this._cache[e]=o,setTimeout((function(){r._cache[e]=null}),0)),o}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]] +case"getGasPrice":return["eth_gasPrice",[]] +case"getBalance":return["eth_getBalance",[ku(t.address),t.blockTag]] +case"getTransactionCount":return["eth_getTransactionCount",[ku(t.address),t.blockTag]] +case"getCode":return["eth_getCode",[ku(t.address),t.blockTag]] +case"getStorageAt":return["eth_getStorageAt",[ku(t.address),t.position,t.blockTag]] +case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]] +case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null +case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]] +case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]] +case"call":return["eth_call",[P(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]] +case"estimateGas":return["eth_estimateGas",[P(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]] +case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=ku(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return vu(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==e&&"estimateGas"!==e){r.next=8 +break}if(!(n=t.transaction)||null==n.type||!b.from(n.type).isZero()){r.next=8 +break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8 +break}return r.next=6,this.getFeeData() +case 6:null==(i=r.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((t=j(t)).transaction=j(n),delete t.transaction.type) +case 8:return null==(o=this.prepareRequest(e,t))&&yu.throwError(e+" not implemented",h.b.errors.NOT_IMPLEMENTED,{operation:e}),r.prev=10,r.next=13,this.send(o[0],o[1]) +case 13:return r.abrupt("return",r.sent) +case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",gu(e,r.t0,t)) +case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),ou(pu(r.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]) +this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null +var n=Promise.resolve() +return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return wu(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null +e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),ou(pu(r.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var r=j(Su) +if(t)for(var n in t)t[n]&&(r[n]=!0) +A(e,r) +var i={} +return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=Object(c.g)(e[t]) +"gasLimit"===t&&(t="gas"),i[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=Object(c.i)(e[t]))})),e.accessList&&(i.accessList=Bn(e.accessList)),i}}]),r}(iu),Mu=null +try{if(null==(Mu=WebSocket))throw new Error("inject please")}catch(e){var Au=new h.b("providers/5.6.4") +Mu=function(){Au.throwError("WebSockets not supported in this environment",h.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}function ju(e){return(ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ru(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head} -0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data -return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"" -for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data -return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0) -for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next -return i}},{key:"consume",value:function(e,t){var r -return ei.length?i.length:e -if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o)) -break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1 -for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e -if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o)) -break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t */ -var n=r(7),i=n.Buffer -function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number") -return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number") -var n=i(e) -return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") -return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") -return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t){var n -function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(90),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream") -function d(e,t){return{value:e,done:t}}function p(e){var t=e[a] -if(null!==t){var r=e[h].read() -null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}function m(e){t.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,r=this[u] -if(null!==r)return Promise.reject(r) -if(this[c])return Promise.resolve(d(void 0,!0)) -if(this[h].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[u]?n(e[u]):r(d(void 0,!0))}))})) -var n,i=this[l] -if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[c]?r(d(void 0,!0)):t[f](r,n)}),n)}}(i,this)) -else{var o=this[h].read() -if(null!==o)return Promise.resolve(d(o,!1)) -n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this -return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(d(void 0,!0))}))}))})),n),y) -e.exports=function(e){var t,r=Object.create(v,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[h].read() -n?(r[l]=null,r[a]=null,r[s]=null,e(d(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t)) -return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s] -return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[u]=e)}var n=r[a] -null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(d(void 0,!0))),r[c]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this,r(8))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict" -e.exports=i -var n=r(166) -function i(e){if(!(this instanceof i))return new i(e) -n.call(this,e)}r(6)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict" -var n,i=r(43).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED -function s(e){if(e)throw e}function u(e,t,i,o){o=function(e){var t=!1 -return function(){t||(t=!0,e.apply(void 0,arguments))}}(o) -var s=!1 -e.on("close",(function(){s=!0})),void 0===n&&(n=r(90)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e) -s=!0,o()})) -var u=!1 -return function(t){if(!s&&!u)return u=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function c(e){e()}function l(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))})) -return t.reduce(l)}},function(e,t,r){(function(t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r=0&&(t.throttleRetry=!0),t}return e.result}function Yc(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response") +throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var r=new Error("invalid response") +throw r.result=JSON.stringify(e),r}if(e.error){var n=new Error(e.error.message||"unknown error") +throw e.error.code&&(n.code=e.error.code),e.error.data&&(n.data=e.error.data),n}return e.result}function Kc(e){if("pending"===e)throw new Error("pending not supported") +return"latest"===e?e:parseInt(e.substring(2),16)}function Jc(e,t,r){if("call"===e&&t.code===h.b.errors.SERVER_ERROR){var n=t.error +if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var i=n.data +if(i&&(i="0x"+i.replace(/^.*0x/i,"")),Object(c.l)(i))return i +Vc.throwError("missing revert data in call exception",h.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var o=t.message +throw t.code===h.b.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText)),(o=(o||"").toLowerCase()).match(/insufficient funds/)&&Vc.throwError("insufficient funds for intrinsic transaction cost",h.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Vc.throwError("nonce has already been used",h.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),o.match(/another transaction with same nonce/)&&Vc.throwError("replacement fee too low",h.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),o.match(/execution failed due to an exception|execution reverted/)&&Vc.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",h.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var $c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fc(e,t)}(i,e) +var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +if(Reflect.construct.sham)return!1 +if("function"==typeof Proxy)return!0 +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=qc(e) +if(t){var i=qc(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return Uc(this,r)}}(i) +function i(e,t){var r +return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Vc.checkNew(this instanceof i?this.constructor:void 0,i),S(zc(r=n.call(this,e)),"baseUrl",r.getBaseUrl()),S(zc(r),"apiKey",t||"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"),r}return t=i,(r=[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io" +case"ropsten":return"https://api-ropsten.etherscan.io" +case"rinkeby":return"https://api-rinkeby.etherscan.io" +case"kovan":return"https://api-kovan.etherscan.io" +case"goerli":return"https://api-goerli.etherscan.io"}return Vc.throwArgumentError("unsupported network","network",name)}},{key:"getUrl",value:function(e,t){var r=Object.keys(t).reduce((function(e,r){var n=t[r] +return null!=n&&(e+="&".concat(r,"=").concat(n)),e}),""),n=this.apiKey?"&apikey=".concat(this.apiKey):"" +return"".concat(this.baseUrl,"/api?module=").concat(e).concat(r).concat(n)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,r){return Hc(this,void 0,void 0,regeneratorRuntime.mark((function n(){var i,o,a,s,u,c,l=this +return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,a="proxy"===e?Yc:Gc,this.emit("debug",{action:"request",request:i,provider:this}),s={url:i,throttleSlotInterval:1e3,throttleCallback:function(e,t){return l.isCommunityResource()&&Ss(),Promise.resolve(!0)}},u=null,o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(o).map((function(e){return"".concat(e,"=").concat(o[e])})).join("&")),n.next=9,vs(s,u,a||Yc) +case 9:return c=n.sent,this.emit("debug",{action:"response",request:i,response:T(c),provider:this}),n.abrupt("return",c) +case 12:case"end":return n.stop()}}),n,this)})))}},{key:"detectNetwork",value:function(){return Hc(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network) +case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,n=Object.create(null,{perform:{get:function(){return Bc(qc(i.prototype),"perform",r)}}}) +return Hc(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a,s,u,c,l,f,d +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next="getBlockNumber"===r.t0?3:"getGasPrice"===r.t0?4:"getBalance"===r.t0?5:"getTransactionCount"===r.t0?6:"getCode"===r.t0?7:"getStorageAt"===r.t0?8:"sendTransaction"===r.t0?9:"getBlock"===r.t0?10:"getTransaction"===r.t0?13:"getTransactionReceipt"===r.t0?14:"call"===r.t0?15:"estimateGas"===r.t0?29:"getLogs"===r.t0?41:"getEtherPrice"===r.t0?65:72 +break +case 3:return r.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"})) +case 4:return r.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"})) +case 5:return r.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag})) +case 6:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag})) +case 7:return r.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag})) +case 8:return r.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag})) +case 9:return r.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return Jc("sendTransaction",e,t.signedTransaction)}))) +case 10:if(!t.blockTag){r.next=12 +break}return r.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"})) +case 12:throw new Error("getBlock by blockHash not implemented") +case 13:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash})) +case 14:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash})) +case 15:if("latest"===t.blockTag){r.next=17 +break}throw new Error("EtherscanProvider does not support blockTag for call") +case 17:return(i=Wc(t.transaction)).module="proxy",i.action="eth_call",r.prev=20,r.next=23,this.fetch("proxy",i,!0) +case 23:return r.abrupt("return",r.sent) +case 26:return r.prev=26,r.t1=r.catch(20),r.abrupt("return",Jc("call",r.t1,t.transaction)) +case 29:return(o=Wc(t.transaction)).module="proxy",o.action="eth_estimateGas",r.prev=32,r.next=35,this.fetch("proxy",o,!0) +case 35:return r.abrupt("return",r.sent) +case 38:return r.prev=38,r.t2=r.catch(32),r.abrupt("return",Jc("estimateGas",r.t2,t.transaction)) +case 41:return a={action:"getLogs"},t.filter.fromBlock&&(a.fromBlock=Kc(t.filter.fromBlock)),t.filter.toBlock&&(a.toBlock=Kc(t.filter.toBlock)),t.filter.address&&(a.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Vc.throwError("unsupported topic count",h.b.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"==typeof(s=t.filter.topics[0])&&66===s.length||Vc.throwError("unsupported topic format",h.b.errors.UNSUPPORTED_OPERATION,{topic0:s}),a.topic0=s)),r.next=48,this.fetch("logs",a) +case 48:u=r.sent,c={},l=0 +case 51:if(!(l0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t] +e[t]=e[r],e[r]=n}return e}function Qc(e,t){for(var r=0;r>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0) -return r},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t] -e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,r(7).Buffer)},function(e,t){var r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648] -t.p1600=function(e){for(var t=0;t<24;++t){var n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],d=f^(o<<1|a>>>31),p=h^(a<<1|o>>>31),m=e[0]^d,y=e[1]^p,v=e[10]^d,b=e[11]^p,g=e[20]^d,w=e[21]^p,_=e[30]^d,x=e[31]^p,k=e[40]^d,O=e[41]^p -d=n^(s<<1|u>>>31),p=i^(u<<1|s>>>31) -var E=e[2]^d,S=e[3]^p,P=e[12]^d,M=e[13]^p,j=e[22]^d,A=e[23]^p,T=e[32]^d,R=e[33]^p,C=e[42]^d,I=e[43]^p -d=o^(c<<1|l>>>31),p=a^(l<<1|c>>>31) -var N=e[4]^d,D=e[5]^p,L=e[14]^d,B=e[15]^p,F=e[24]^d,U=e[25]^p,z=e[34]^d,H=e[35]^p,q=e[44]^d,V=e[45]^p -d=s^(f<<1|h>>>31),p=u^(h<<1|f>>>31) -var W=e[6]^d,Y=e[7]^p,G=e[16]^d,K=e[17]^p,$=e[26]^d,J=e[27]^p,Z=e[36]^d,Q=e[37]^p,X=e[46]^d,ee=e[47]^p -d=c^(n<<1|i>>>31),p=l^(i<<1|n>>>31) -var te=e[8]^d,re=e[9]^p,ne=e[18]^d,ie=e[19]^p,oe=e[28]^d,ae=e[29]^p,se=e[38]^d,ue=e[39]^p,ce=e[48]^d,le=e[49]^p,fe=m,he=y,de=b<<4|v>>>28,pe=v<<4|b>>>28,me=g<<3|w>>>29,ye=w<<3|g>>>29,ve=x<<9|_>>>23,be=_<<9|x>>>23,ge=k<<18|O>>>14,we=O<<18|k>>>14,_e=E<<1|S>>>31,xe=S<<1|E>>>31,ke=M<<12|P>>>20,Oe=P<<12|M>>>20,Ee=j<<10|A>>>22,Se=A<<10|j>>>22,Pe=R<<13|T>>>19,Me=T<<13|R>>>19,je=C<<2|I>>>30,Ae=I<<2|C>>>30,Te=D<<30|N>>>2,Re=N<<30|D>>>2,Ce=L<<6|B>>>26,Ie=B<<6|L>>>26,Ne=U<<11|F>>>21,De=F<<11|U>>>21,Le=z<<15|H>>>17,Be=H<<15|z>>>17,Fe=V<<29|q>>>3,Ue=q<<29|V>>>3,ze=W<<28|Y>>>4,He=Y<<28|W>>>4,qe=K<<23|G>>>9,Ve=G<<23|K>>>9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^=r[2*t+1]}}},function(e,t,r){"use strict" -var n=r(6),i=r(504),o=r(514),a=r(515),s=r(520) -function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},function(e,t,r){"use strict" -var n=r(6),i=r(167),o=r(16).Buffer,a=new Array(16) -function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function h(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t) -var r=this._a,n=this._b,i=this._c,o=this._d -r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=l(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),r=f(r,n=l(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,r,n,i,e[8],2272392833,11),i=f(i,o,r,n,e[11],1839030562,16),n=f(n,i,o,r,e[14],4259657740,23),r=f(r,n,i,o,e[1],2763975236,4),o=f(o,r,n,i,e[4],1272893353,11),i=f(i,o,r,n,e[7],4139469664,16),n=f(n,i,o,r,e[10],3200236656,23),r=f(r,n,i,o,e[13],681279174,4),o=f(o,r,n,i,e[0],3936430074,11),i=f(i,o,r,n,e[3],3572445317,16),n=f(n,i,o,r,e[6],76029189,23),r=f(r,n,i,o,e[9],3654602809,4),o=f(o,r,n,i,e[12],3873151461,11),i=f(i,o,r,n,e[15],530742520,16),r=h(r,n=f(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update() -var e=o.allocUnsafe(16) -return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){ -/*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var n=r(7),i=n.Buffer -function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number") -return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number") -var n=i(e) -return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") -return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number") -return n.SlowBuffer(e)}},function(e,t,r){(t=e.exports=r(168)).Stream=t,t.Readable=t,t.Writable=r(172),t.Duplex=r(46),t.Transform=r(173),t.PassThrough=r(512),t.finished=r(91),t.pipeline=r(513)},,function(e,t,r){"use strict" -function n(e,t){var r=Object.keys(e) -if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e) -t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head} -0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data -return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"" -for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data -return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0) -for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next -return i}},{key:"consume",value:function(e,t){var r -return ei.length?i.length:e -if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o)) -break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1 -for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e -if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o)) -break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return s(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&a.forEach(c),o||(a.forEach(c),i(n))}))})) -return t.reduce(l)}},function(e,t,r){"use strict" -var n=r(7).Buffer,i=r(6),o=r(167),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0] -function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t) -for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,k=0|this._d,O=0|this._e,E=0;E<80;E+=1){var S,P -E<16?(S=m(r,n,i,o,d,e[s[E]],f[0],c[E]),P=g(w,_,x,k,O,e[u[E]],h[0],l[E])):E<32?(S=y(r,n,i,o,d,e[s[E]],f[1],c[E]),P=b(w,_,x,k,O,e[u[E]],h[1],l[E])):E<48?(S=v(r,n,i,o,d,e[s[E]],f[2],c[E]),P=v(w,_,x,k,O,e[u[E]],h[2],l[E])):E<64?(S=b(r,n,i,o,d,e[s[E]],f[3],c[E]),P=y(w,_,x,k,O,e[u[E]],h[3],l[E])):(S=g(r,n,i,o,d,e[s[E]],f[4],c[E]),P=m(w,_,x,k,O,e[u[E]],h[4],l[E])),r=d,d=o,o=p(i,10),i=n,n=S,w=O,O=k,k=p(x,10),x=_,_=P}var M=this._b+i+k|0 -this._b=this._c+o+O|0,this._c=this._d+d+w|0,this._d=this._e+r+_|0,this._e=this._a+n+x|0,this._a=M},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update() -var e=n.alloc?n.alloc(20):new n(20) -return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=d},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase() -var r=t[e] -if(!r)throw new Error(e+" is not supported (we accept pull requests)") -return new r}).sha=r(516),t.sha1=r(517),t.sha224=r(518),t.sha256=r(174),t.sha384=r(519),t.sha512=r(175)},function(e,t,r){var n=r(6),i=r(47),o=r(16).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) -function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f) -for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16] -for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=n)<<5|t>>>27)+l(d,i,o,s)+u+r[h]+a[d] -u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20) -return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(6),i=r(47),o=r(16).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80) -function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h) -for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31 -for(var d=0;d<80;++d){var p=~~(d/20),m=c(n)+f(p,i,o,s)+u+r[d]+a[p]|0 -u=s,s=o,o=l(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20) -return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(6),i=r(174),o=r(47),a=r(16).Buffer,s=new Array(64) -function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28) -return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){var n=r(6),i=r(175),o=r(47),a=r(16).Buffer,s=new Array(160) -function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48) -function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,r){var n=r(16).Buffer,i=r(521).Transform,o=r(38).StringDecoder -function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(6)(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t)) -var i=this._update(e) -return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n -try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t -try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0) -return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings") -var n=this._decoder.write(e) -return r&&(n+=this._decoder.end()),n},e.exports=a},function(e,t,r){e.exports=i -var n=r(37).EventEmitter -function i(){n.call(this)}r(6)(i,n),i.Readable=r(92),i.Writable=r(526),i.Duplex=r(527),i.Transform=r(528),i.PassThrough=r(529),i.Stream=i,i.prototype.pipe=function(e,t){var r=this -function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u)) -var a=!1 -function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},,function(e,t,r){"use strict" -var n=r(16).Buffer,i=r(524) -e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null} -this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head} -0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data -return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"" -for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data -return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0) -if(1===this.length)return this.head.data -for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next -return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length}) -return this.constructor.name+" "+e})},,function(e,t,r){"use strict" -e.exports=o -var n=r(179),i=Object.create(r(56)) -function o(e){if(!(this instanceof o))return new o(e) -n.call(this,e)}i.inherits=r(6),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(93)},function(e,t,r){e.exports=r(39)},function(e,t,r){e.exports=r(92).Transform},function(e,t,r){e.exports=r(92).PassThrough},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} -Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0 -var i=n(r(85)),o=r(29),a=r(36),s=r(150),u=function(){function t(e){(0,i.default)(20===e.length,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,a.zeros)(20))},t.fromString=function(e){return(0,i.default)((0,s.isValidAddress)(e),"Invalid address"),new t((0,a.toBuffer)(e))},t.fromPublicKey=function(r){return(0,i.default)(e.isBuffer(r),"Public key should be Buffer"),new t((0,s.pubToAddress)(r))},t.fromPrivateKey=function(r){return(0,i.default)(e.isBuffer(r),"Private key should be Buffer"),new t((0,s.privateToAddress)(r))},t.generate=function(r,n){return(0,i.default)(o.BN.isBN(n)),new t((0,s.generateAddress)(r.buf,n.toArrayLike(e)))},t.generate2=function(r,n,o){return(0,i.default)(e.isBuffer(n)),(0,i.default)(e.isBuffer(o)),new t((0,s.generateAddress2)(r.buf,n,o))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new o.BN(this.buf),t=new o.BN(0),r=new o.BN("ffff","hex") -return e.gte(t)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return e.from(this.buf)},t}() -t.Address=u}).call(this,r(7).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0 -var n=r(151),i=r(29),o=r(36),a=r(88),s=r(68),u=r(94) -function c(e,t){var r=(0,u.toType)(e,u.TypeOutput.BN) -if(!t)return r.subn(27) -var n=(0,u.toType)(t,u.TypeOutput.BN) -return r.sub(n.muln(2).addn(35))}function l(e){var t=new i.BN(e) -return t.eqn(0)||t.eqn(1)}t.ecsign=function(t,r,i){var o=(0,n.ecdsaSign)(t,r),a=o.signature,s=o.recid,c=e.from(a.slice(0,32)),l=e.from(a.slice(32,64)) -if(!i||"number"==typeof i){if(i&&!Number.isSafeInteger(i))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)") -return{r:c,s:l,v:i?s+(2*i+35):s+27}}return{r:c,s:l,v:(0,u.toType)(i,u.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(e)}},t.ecrecover=function(t,r,i,a,s){var u=e.concat([(0,o.setLengthLeft)(i,32),(0,o.setLengthLeft)(a,32)],64),f=c(r,s) -if(!l(f))throw new Error("Invalid signature v value") -var h=(0,n.ecdsaRecover)(u,f.toNumber(),t) -return e.from((0,n.publicKeyConvert)(h,!1).slice(1))},t.toRpcSig=function(t,r,n,i){if(!l(c(t,i)))throw new Error("Invalid signature v value") -return(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(t)]))},t.toCompactSig=function(t,r,n,i){if(!l(c(t,i)))throw new Error("Invalid signature v value") -var a=(0,u.toType)(t,u.TypeOutput.Number),s=n -return(a>28&&a%2==1||1===a||28===a)&&((s=e.from(n))[0]|=128),(0,o.bufferToHex)(e.concat([(0,o.setLengthLeft)(r,32),(0,o.setLengthLeft)(s,32)]))},t.fromRpcSig=function(e){var t,r,n,i=(0,o.toBuffer)(e) -if(i.length>=65)t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(64)) -else{if(64!==i.length)throw new Error("Invalid signature length") -t=i.slice(0,32),r=i.slice(32,64),n=(0,o.bufferToInt)(i.slice(32,33))>>7,r[0]&=127}return n<27&&(n+=27),{v:n,r:t,s:r}},t.isValidSignature=function(e,t,r,n,o){void 0===n&&(n=!0) -var a=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16) -if(32!==t.length||32!==r.length)return!1 -if(!l(c(e,o)))return!1 -var u=new i.BN(t),f=new i.BN(r) -return!(u.isZero()||u.gt(s)||f.isZero()||f.gt(s)||n&&1===f.cmp(a))},t.hashPersonalMessage=function(t){(0,s.assertIsBuffer)(t) -var r=e.from("Ethereum Signed Message:\n".concat(t.length),"utf-8") -return(0,a.keccak)(e.concat([r,t]))}}).call(this,r(7).Buffer)},function(e,t,r){"use strict";(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}} -Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0 -var o=i(r(85)),a=r(42),s=r(29),u=r(36) -t.defineProperties=function(t,r,i){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={} -return t._fields.forEach((function(e){r[e]="0x".concat(t[e].toString("hex"))})),r}return(0,u.baToJSON)(t.raw)},t.serialize=function(){return s.rlp.encode(t.raw)},r.forEach((function(r,n){function i(){return t.raw[n]}function a(i){"00"!==(i=(0,u.toBuffer)(i)).toString("hex")||r.allowZero||(i=e.allocUnsafe(0)),r.allowLess&&r.length?(i=(0,u.unpadBuffer)(i),(0,o.default)(r.length>=i.length,"The field ".concat(r.name," must not have more ").concat(r.length," bytes"))):r.allowZero&&0===i.length||!r.length||(0,o.default)(r.length===i.length,"The field ".concat(r.name," must have byte length of ").concat(r.length)),t.raw[n]=i}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:i,set:a}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:a,get:i})})),i)if("string"==typeof i&&(i=e.from((0,a.stripHexPrefix)(i),"hex")),e.isBuffer(i)&&(i=s.rlp.decode(i)),Array.isArray(i)){if(i.length>t._fields.length)throw new Error("wrong number of fields in data") -i.forEach((function(e,r){t[t._fields[r]]=(0,u.toBuffer)(e)}))}else{if("object"!==n(i))throw new Error("invalid data") -var c=Object.keys(i) -r.forEach((function(e){-1!==c.indexOf(e.name)&&(t[e.name]=i[e.name]),-1!==c.indexOf(e.alias)&&(t[e.alias]=i[e.alias])}))}}}).call(this,r(7).Buffer)},function(e,t,r){"use strict" -function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}) -var i=r(534) -function o(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))}function a(e,t){"object"===n(t)&&t.constructor===Uint8Array&&(t=i.bytesToHex(t)) -for(var r=i.keccak256(t).replace("0x",""),o=0;o<12;o+=4){var a=(parseInt(r.substr(o,2),16)<<8)+parseInt(r.substr(o+2,2),16)&2047,u=1<=48&&e<=57)return e-48 -if(e>=65&&e<=70)return e-55 -if(e>=97&&e<=102)return e-87 -throw new Error("invalid bloom")}function u(e){return!("string"!=typeof e||!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}function c(e){return!("string"!=typeof e||!e.match(/^(0x)?[0-9a-fA-F]{40}$/)&&!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=o,t.isInBloom=a,t.isUserEthereumAddressInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given") -if(!c(t))throw new Error('Invalid ethereum address given: "'.concat(t,'"')) -return a(e,i.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given") -if(!c(t))throw new Error('Invalid contract address given: "'.concat(t,'"')) -return a(e,t)},t.isTopicInBloom=function(e,t){if(!o(e))throw new Error("Invalid bloom given") -if(!u(t))throw new Error("Invalid topic") -return a(e,t)},t.isTopic=u,t.isAddress=c},function(e,t,r){"use strict" -Object.defineProperty(t,"__esModule",{value:!0}) -var n=r(535) -function i(e){if(null==e)throw new Error("cannot convert null value to array") -if("string"==typeof e){var t=e.match(/^(0x)?[0-9a-fA-F]*$/) -if(!t)throw new Error("invalid hexidecimal string") -if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e) -for(var r=[],n=0;n=256||parseInt(String(r))!=r)return!1}return!0}(e))return o(new Uint8Array(e)) -throw new Error("invalid arrayify value")}function o(e){var t=arguments -return void 0!==e.slice||(e.slice=function(){var r=Array.prototype.slice.call(t) -return o(new Uint8Array(Array.prototype.slice.apply(e,r)))}),e}t.keccak256=function(e){return"0x"+n.keccak_256(i(e))},t.padLeft=function(e,t){var r=/^0x/i.test(e)||"number"==typeof e,n=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0 -return(r?"0x":"")+new Array(n).join("0")+e},t.bytesToHex=function(e){for(var t=[],r=0;r>>4).toString(16)),t.push((15&e[r]).toString(16)) -return"0x".concat(t.join("").replace(/^0+/,""))},t.toByteArray=i},function(e,t,r){(function(e,n,i){var o -function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)} -/** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.8.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */!function(){"use strict" -var s="input is invalid type",u="object"===("undefined"==typeof window?"undefined":a(window)),c=u?window:{} -c.JS_SHA3_NO_WINDOW&&(u=!1) -var l=!u&&"object"===("undefined"==typeof self?"undefined":a(self)) -!c.JS_SHA3_NO_NODE_JS&&"object"===(void 0===e?"undefined":a(e))&&e.versions&&e.versions.node?c=n:l&&(c=self) -var f=!c.JS_SHA3_NO_COMMON_JS&&"object"===a(i)&&i.exports,h=r(101),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),m=[4,1024,262144,67108864],y=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],b=[224,256,384,512],g=[128,256],w=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136} -!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===a(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer}) -for(var x=function(e,t,r){return function(n){return new L(e,t,e).update(n)[r]()}},k=function(e,t,r){return function(n,i){return new L(e,t,i).update(n)[r]()}},O=function(e,t,r){return function(t,n,i,o){return j["cshake"+e].update(t,n,i,o)[r]()}},E=function(e,t,r){return function(t,n,i,o){return j["kmac"+e].update(t,n,i,o)[r]()}},S=function(e,t,r,n){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3 -for(var n=0;n<50;++n)this.s[n]=0}function B(e,t,r){L.call(this,e,t,r)}L.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called") -var t,r=a(e) -if("string"!==r){if("object"!==r)throw new Error(s) -if(null===e)throw new Error(s) -if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) -else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) -t=!0}for(var n,i,o=this.blocks,u=this.byteCount,c=e.length,l=this.blockCount,f=0,h=this.s;f>2]|=e[f]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=u){for(this.start=n-u,this.block=o[l],n=0;n>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n -return t?i.push(n):i.unshift(n),this.update(i),i.length},L.prototype.encodeString=function(e){var t,r=a(e) -if("string"!==r){if("object"!==r)throw new Error(s) -if(null===e)throw new Error(s) -if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e) -else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s) -t=!0}var n=0,i=e.length -if(t)n=i -else for(var o=0;o=57344?n+=3:(u=65536+((1023&u)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},L.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15] -a%t==0&&(F(r),o=0)}return i&&(e=r[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},L.prototype.arrayBuffer=function(){this.finalize() -var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3 -e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s) -for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255 -s%r==0&&F(n)}return o&&(e=s<<2,t=n[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},B.prototype=new L,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),L.prototype.finalize.call(this)} -var F=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,y,b,g,w,_,x,k,O,E,S,P,M,j,A,T,R,C,I,N,D,L,B,F,U,z,H,q,V,W,Y,G,K,$,J,Z,Q,X,ee,te,re,ne,ie,oe,ae,se,ue,ce,le -for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|c>>>31),r=o^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|f>>>31),r=s^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=c^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(i<<1|o>>>31),r=f^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,j=e[20]<<3|e[21]>>>29,A=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,T=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,C=e[45]<<29|e[44]>>>3,I=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,Y=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,M=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,O=e[49]<<14|e[48]>>>18,e[0]=p^~y&g,e[1]=m^~b&w,e[10]=E^~P&j,e[11]=S^~M&A,e[20]=N^~L&F,e[21]=D^~B&U,e[30]=W^~G&$,e[31]=Y^~K&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=y^~g&_,e[3]=b^~w&x,e[12]=P^~j&T,e[13]=M^~A&R,e[22]=L^~F&z,e[23]=B^~U&H,e[32]=G^~$&Z,e[33]=K^~J&Q,e[42]=ne^~oe&se,e[43]=ie^~ae&ue,e[4]=g^~_&k,e[5]=w^~x&O,e[14]=j^~T&C,e[15]=A^~R&I,e[24]=F^~z&q,e[25]=U^~H&V,e[34]=$^~Z&X,e[35]=J^~Q&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=_^~k&p,e[7]=x^~O&m,e[16]=T^~C&E,e[17]=R^~I&S,e[26]=z^~q&N,e[27]=H^~V&D,e[36]=Z^~X&W,e[37]=Q^~ee&Y,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=k^~p&y,e[9]=O^~m&b,e[18]=C^~E&P,e[19]=I^~S&M,e[28]=q^~N&L,e[29]=V^~D&B,e[38]=X^~W&G,e[39]=ee^~Y&K,e[48]=ce^~te&ne,e[49]=le^~re&ie,e[0]^=v[n],e[1]^=v[n+1]} -if(f)i.exports=j -else{for(T=0;T32||n256)throw new Error("Invalid uint"+n+" size") -if((s=a(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+s.bitLength()) -if(s.lt(new i(0)))throw new Error("Supplied uint "+s.toString()+" is negative") -return n?o.leftPad(s.toString("hex"),n/8*2):s}if(e.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size") -if((s=a(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+s.bitLength()) -return s.lt(new i(0))?s.toTwos(n).toString("hex"):n?o.leftPad(s.toString("hex"),n/8*2):s}throw new Error("Unsupported or invalid type: "+e)},u=function(e){if(Array.isArray(e))throw new Error("Autodetection of array types is not supported.") -var t,r,a="" -if(e&&"object"===n(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,a=e.hasOwnProperty("v")?e.v:e.value):(t=o.toHex(e,!0),a=o.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),Array.isArray(a)){if((r=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e) -return t?parseInt(t[1],10):null}(t))&&a.length!==r)throw new Error(t+" is not matching the given array "+JSON.stringify(a)) -r=a.length}return Array.isArray(a)?a.map((function(e){return s(t,e,r).toString("hex").replace("0x","")})).join(""):s(t,a,r).toString("hex").replace("0x","")} -e.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments),t=e.map(u) -return o.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return o.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(u).join(""))},encodePacked:function(){var e=Array.prototype.slice.call(arguments),t=e.map(u) -return"0x"+t.join("").toLowerCase()}}},,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})) -var n=r(0),i=r(1),o=r(182),a=new i.b(o.a),s=function(){if("undefined"!=typeof self)return self +return tl(e)}function tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called") +return e}function rl(e){return(rl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nl(e){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var il=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t +e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},ol=new h.b("providers/5.6.4") +function al(){return(new Date).getTime()}function sl(e){for(var t=null,r=0;rt?null:(n+i)/2}function cl(e){if(null===e)return"null" +if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e) +if("string"==typeof e)return e +if(b.isBigNumber(e))return e.toString() +if(Array.isArray(e))return JSON.stringify(e.map((function(e){return cl(e)}))) +if("object"===nl(e)){var t=Object.keys(e) +return t.sort(),"{"+t.map((function(t){var r=e[t] +return r="function"==typeof r?"[function]":cl(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+nl(e))}var ll=1 +function fl(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)})) +return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var hl=[h.b.errors.CALL_EXCEPTION,h.b.errors.INSUFFICIENT_FUNDS,h.b.errors.NONCE_EXPIRED,h.b.errors.REPLACEMENT_UNDERPRICED,h.b.errors.UNPREDICTABLE_GAS_LIMIT],dl=["address","args","errorArgs","errorSignature","method","transaction"] +function pl(e,t){var r={weight:e.weight} +return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function ml(e,t,r){var n=cl +switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=ul(t.map((function(e){return e.result})),2) +if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber} +case"getGasPrice":return function(e){var t=e.map((function(e){return e.result})) +return t.sort(),t[Math.floor(t.length/2)]} +case"getEtherPrice":return function(e){return ul(e.map((function(e){return e.result})))} +case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break +case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=j(e)).confirmations=-1,cl(e))} +break +case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=j(e)).transactions=e.transactions.map((function(e){return(e=j(e)).confirmations=-1,e})),cl(e))}:function(e){return null==e?null:cl(e)} +break +default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){var n={} +r.forEach((function(t){var r=e(t.result) +n[r]||(n[r]={count:0,result:t.result}),n[r].count++})) +for(var i=Object.keys(n),o=0;o=t)return a.result}}}(n,e.quorum)}function vl(e,t){return il(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null!=(n=e.provider).blockNumber&&n.blockNumber>=t||-1===t)){r.next=3 +break}return r.abrupt("return",n) +case 3:return r.abrupt("return",ys((function(){return new Promise((function(r,i){setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}))}),{oncePoll:n})) +case 4:case"end":return r.stop()}}),r)})))}function yl(e,t,r,n){return il(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a +return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=e.provider,i.t0=r,i.next="getBlockNumber"===i.t0||"getGasPrice"===i.t0?4:"getEtherPrice"===i.t0?5:"getBalance"===i.t0||"getTransactionCount"===i.t0||"getCode"===i.t0?8:"getStorageAt"===i.t0?13:"getBlock"===i.t0?18:"call"===i.t0||"estimateGas"===i.t0?23:"getTransaction"===i.t0||"getTransactionReceipt"===i.t0?28:"getLogs"===i.t0?29:35 +break +case 4:return i.abrupt("return",o[r]()) +case 5:if(!o.getEtherPrice){i.next=7 +break}return i.abrupt("return",o.getEtherPrice()) +case 7:return i.abrupt("break",35) +case 8:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=12 +break}return i.next=11,vl(e,t) +case 11:o=i.sent +case 12:return i.abrupt("return",o[r](n.address,n.blockTag||"latest")) +case 13:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=17 +break}return i.next=16,vl(e,t) +case 16:o=i.sent +case 17:return i.abrupt("return",o.getStorageAt(n.address,n.position,n.blockTag||"latest")) +case 18:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=22 +break}return i.next=21,vl(e,t) +case 21:o=i.sent +case 22:return i.abrupt("return",o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)) +case 23:if(!n.blockTag||!Object(c.l)(n.blockTag)){i.next=27 +break}return i.next=26,vl(e,t) +case 26:o=i.sent +case 27:return i.abrupt("return",o[r](n.transaction)) +case 28:return i.abrupt("return",o[r](n.transactionHash)) +case 29:if(!((a=n.filter).fromBlock&&Object(c.l)(a.fromBlock)||a.toBlock&&Object(c.l)(a.toBlock))){i.next=34 +break}return i.next=33,vl(e,t) +case 33:o=i.sent +case 34:return i.abrupt("return",o.getLogs(a)) +case 35:return i.abrupt("return",ol.throwError("unknown method error",h.b.errors.UNKNOWN_ERROR,{method:r,params:n})) +case 36:case"end":return i.stop()}}),i)})))}var bl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function") +e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xc(e,t)}(i,e) +var t,r,n=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1 +if(Reflect.construct.sham)return!1 +if("function"==typeof Proxy)return!0 +try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}() +return function(){var r,n=rl(e) +if(t){var i=rl(this).constructor +r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments) +return el(this,r)}}(i) +function i(e,t){var r +!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),ol.checkNew(this instanceof i?this.constructor:void 0,i),0===e.length&&ol.throwArgumentError("missing providers","providers",e) +var o=e.map((function(e,t){if(nn.isProvider(e)){var r=Os(e)?2e3:750 +return Object.freeze({provider:e,weight:1,stallTimeout:r,priority:1})}var n=j(e) +null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=Os(e)?2e3:750),null==n.weight&&(n.weight=1) +var i=n.weight +return(i%1||i>512||i<1)&&ol.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),i),Object.freeze(n)})),a=o.reduce((function(e,t){return e+t.weight}),0) +null==t?t=a/2:t>a&&ol.throwArgumentError("quorum will always fail; larger than total weight","quorum",t) +var s=sl(o.map((function(e){return e.provider.network}))) +return null==s&&(s=new Promise((function(e,t){setTimeout((function(){r.detectNetwork().then(e,t)}),0)}))),S(tl(r=n.call(this,s)),"providerConfigs",Object.freeze(o)),S(tl(r),"quorum",t),r._highestBlockNumber=-1,r}return t=i,(r=[{key:"detectNetwork",value:function(){return il(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t +return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()}))) +case 2:return t=e.sent,e.abrupt("return",sl(t)) +case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return il(this,void 0,void 0,regeneratorRuntime.mark((function r(){var n,i,o,a,s,u,c,l,f,d,p=this +return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("sendTransaction"!==e){r.next=13 +break}return r.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))}))) +case 3:n=r.sent,i=0 +case 5:if(!(i=p.quorum)){r.next=19 +break}if(void 0===(d=a(h))){r.next=15 +break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",{v:d}) +case 15:if(l){r.next=18 +break}return r.next=18,fl(100).getPromise() +case 18:l=!1 +case 19:if(m=s.reduce((function(e,t){if(!t.done||null==t.error)return e +var r=t.error.code +return hl.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(m).forEach((function(e){var t=m[e] +if(!(t.weight256)&&bf.throwArgumentError("invalid number type","type",t),n&&(o=256),r=b.from(r).toTwos(o),Object(c.p)(r,o/8)}if(i=t.match(mf)){var a=parseInt(i[1]) +return(String(a)!==i[1]||0===a||a>32)&&bf.throwArgumentError("invalid bytes type","type",t),Object(c.a)(r).byteLength!==a&&bf.throwArgumentError("invalid value for ".concat(t),"value",r),n?Object(c.a)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=t.match(yf))&&Array.isArray(r)){var s=i[1] +parseInt(i[2]||String(r.length))!=r.length&&bf.throwArgumentError("invalid array length for ".concat(t),"value",r) +var u=[] +return r.forEach((function(t){u.push(e(s,t,!0))})),Object(c.b)(u)}return bf.throwArgumentError("invalid type","type",t)}(e,t[n]))})),Object(c.i)(Object(c.b)(r))}function wf(e,t){return V(gf(e,t))}function _f(e,t){return uo(gf(e,t))}function kf(e){var t=ye(e) +if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes") +return Object(c.i)(Object(c.b)([t,Na]).slice(0,32))}function xf(e){var t=Object(c.a)(e) +if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long") +if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator") +for(var r=31;0===t[r-1];)r-- +return _e(t.slice(0,r))}var Of=new h.b("units/5.6.0"),Ef=["wei","kwei","mwei","gwei","szabo","finney","ether"] +function Sf(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Of.throwArgumentError("invalid value","value",e) +var r=t[0],n="" +for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1) +""===r&&(r="0") +var i="" +for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1) +for(var o=[];r.length;){if(r.length<=3){o.unshift(r) +break}var a=r.length-3 +o.unshift(r.substring(a)),r=r.substring(0,a)}return n+o.join(",")+i}function Pf(e,t){if("string"==typeof t){var r=Ef.indexOf(t);-1!==r&&(t=3*r)}return Ri(e,null!=t?t:18)}function Mf(e,t){if("string"!=typeof e&&Of.throwArgumentError("value must be a string","value",e),"string"==typeof t){var r=Ef.indexOf(t);-1!==r&&(t=3*r)}return Ti(e,null!=t?t:18)}function Af(e){return Pf(e,18)}function jf(e){return Mf(e,18)}var Rf="ethers/5.6.4",Tf=new h.b(Rf) +try{var Cf=window +null==Cf._ethers&&(Cf._ethers=u)}catch(e){}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})) +var n=r(1),i=r(3),o=r(203),a=new i.b(o.a),s=function(){if("undefined"!=typeof self)return self +if("undefined"!=typeof window)return window +if(void 0!==e)return e +throw new Error("unable to locate global object")}(),u=s.crypto||s.msCrypto +function c(e){(e<=0||e>1024||e%1||e!=e)&&a.throwArgumentError("invalid length","length",e) +var t=new Uint8Array(e) +return u.getRandomValues(t),Object(n.a)(t)}u&&u.getRandomValues||(a.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return a.throwError("no secure random source avaialble",i.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(11))},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})) +var n=r(0),i=r(2),o=r(206),a=new i.b(o.a),s=function(){if("undefined"!=typeof self)return self if("undefined"!=typeof window)return window if(void 0!==e)return e throw new Error("unable to locate global object")}(),u=s.crypto||s.msCrypto function c(e){(e<=0||e>1024||e%1||e!=e)&&a.throwArgumentError("invalid length","length",e) var t=new Uint8Array(e) -return u.getRandomValues(t),Object(n.a)(t)}u&&u.getRandomValues||(a.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return a.throwError("no secure random source avaialble",i.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(10))}]]) +return u.getRandomValues(t),Object(n.a)(t)}u&&u.getRandomValues||(a.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return a.throwError("no secure random source avaialble",i.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(11))}]]) //# sourceMappingURL=vendor-b6c1985fa77fd791fa52e4512ecc5dca.map \ No newline at end of file diff --git a/release/index.html b/release/index.html index 67aa7cb..340f780 100644 --- a/release/index.html +++ b/release/index.html @@ -8,10 +8,10 @@ - + - + @@ -24,8 +24,8 @@ - - + +