!function e(t,n,s){function o(r,a){if(!n[r]){if(!t[r]){var c="function"==typeof require&&require;if(!a&&c)return c(r,!0);if(i)return i(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[r]={exports:{}};t[r][0].call(u.exports,function(e){return o(t[r][1][e]||e)},u,u.exports,e,t,n,s)}return n[r].exports}for(var i="function"==typeof require&&require,r=0;r<s.length;r++)o(s[r]);return o}({1:[function(e,t,n){"use strict";var s=e("../../shared/constants/ui-initialization"),o=e("./lib/extension-lazy-listener/extension-lazy-listener");const{chrome:i}=globalThis,r=new o.ExtensionLazyListener(i,{runtime:["onInstalled","onConnect"]});globalThis.stateHooks=globalThis.stateHooks||{},globalThis.stateHooks.lazyListener=r;let a=!1;const c=[];function l(...e){try{const t=(new Date).getTime();importScripts(...e);const n=(new Date).getTime();return c.push({name:e[0],value:n-t,children:[],startTime:t,endTime:n}),!0}catch(e){console.error(e)}return!1}function u(){if(a)return;a=!0;const e=[],t=t=>{e.push(t)},n=Date.now();t("../scripts/sentry-install.js");!self.document||t("../scripts/snow.js"),t("../scripts/use-snow.js");t("../scripts/runtime-lavamoat.js"),t("../scripts/lockdown-more.js"),t("../scripts/policy-load.js");"../common-0.js,../common-1.js,../common-2.js,../common-3.js,../common-4.js,../common-5.js,../common-6.js,../common-7.js,../common-8.js,../common-9.js,../common-10.js,../common-11.js,../common-12.js,../common-13.js,../common-14.js,../common-15.js,../common-16.js,../common-17.js,../common-18.js,../background-0.js,../background-1.js,../background-2.js,../background-3.js,../background-4.js,../background-5.js,../background-6.js,../background-7.js,../background-8.js".split(",").forEach(e=>t(e)),l(...e);Date.now();console.log("SCRIPTS IMPORT COMPLETE in Seconds: "+(Date.now()-n)/1e3)}self.addEventListener("install",u),i.runtime.onConnect.addListener(e=>{console.log("MetaMask service worker: Received connection from port",e.name);try{e.postMessage({data:{method:s.APP_INIT_LIVENESS_METHOD},name:"app-init-liveness"})}catch(e){console.error("MetaMask - app-init-liveness check: Failed to message to port",e)}}),"activated"===self.serviceWorker.state&&u()},{"../../shared/constants/ui-initialization":3,"./lib/extension-lazy-listener/extension-lazy-listener":2}],2:[function(e,t,n){"use strict";function s(e,t,n){o(e,t),t.set(e,n)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(r(e,t))}function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Object.defineProperty(n,"__esModule",{value:!0}),n.ExtensionLazyListener=void 0;var a=new WeakMap,c=new WeakMap,l=new WeakSet;function u(e){setTimeout(()=>{for(const[t,n]of i(c,this))for(const[s,{args:o}]of n){const n=`ExtensionLazyListener: Possible memory leak detected. The event "${t}.${s}" has been listened to, but no application code has added a listener after ${e}ms. There are currently ${o.length} buffered calls. If you are a developer of this extension, please ensure that you have added a listener for this event. If you are a user of this extension, please report this warning to the developers of the extension.`;console.warn(n)}},e)}function d(e,t){return i(a,this)[e][t]}n.ExtensionLazyListener=class{constructor(e,t={},n=2e4){var m,h;o(m=this,h=l),h.add(m),s(this,a,void 0),s(this,c,new Map),function(e,t,n){e.set(r(e,t),n)}(a,this,e);for(const[e,n]of Object.entries(t)){const t=new Map;for(const s of n){const n=[],o=(...e)=>{n.push(e)};r(l,this,d).call(this,e,s).addListener(o),t.set(s,{listener:o,args:n})}i(c,this).set(e,t)}r(l,this,u).call(this,n)}addListener(e,t,n){const s=r(l,this,d).call(this,e,t);s.addListener(n);const o=i(c,this).get(e);if(o){const r=o.get(t);if(r){s.removeListener(r.listener),o.delete(t),0===o.size&&i(c,this).delete(e);const{args:a}=r;for(let l=0,{length:u}=a;l<u;l++)try{if(n(...a[l]),!s.hasListener(n)){const n=l+1;n!==u&&(a.splice(0,n),o.set(t,r),i(c,this).set(e,o),s.addListener(r.listener));break}}catch(n){const d=l+1;throw d!==u&&(a.splice(0,d),o.set(t,r),i(c,this).set(e,o),s.addListener(r.listener)),n}}}}once(e,t){return new Promise(n=>{const s=r(l,this,d).call(this,e,t),o=i(c,this).get(e);if(o){const r=o.get(t),a=null==r?void 0:r.args.length;if(a)return n(r.args.shift()),s.removeListener(r.listener),void(1===a&&(o.delete(t),0===o.size&&i(c,this).delete(e)))}const a=(...e)=>{s.removeListener(a),n(e)};s.addListener(a)})}}},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.START_UI_SYNC=n.BACKGROUND_LIVENESS_METHOD=n.APP_INIT_LIVENESS_METHOD=void 0;n.APP_INIT_LIVENESS_METHOD="APP_INIT_ALIVE",n.BACKGROUND_LIVENESS_METHOD="ALIVE",n.START_UI_SYNC="START_UI_SYNC"},{}]},{},[1]);