try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98dec128-922e-4a6a-bd93-2cbb6971aac9",e._sentryDebugIdIdentifier="sentry-dbid-98dec128-922e-4a6a-bd93-2cbb6971aac9")}catch(e){}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"6602a33e5b7d22489a804b686135628dc18b30d6"};!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var a=t();for(var n in a)("object"==typeof exports?exports:e)[n]=a[n]}}(globalThis,(function(){return(()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};let a;e.r(t),function(e){e.ReceiveSessionToken="RECEIVE_SESSION_TOKEN",e.RequestSessionToken="REQUEST_SESSION_TOKEN",e.WebappMessaging="WEBAPP_MESSAGING"}(a||(a={}));const n=["WEBAPP_LOGOUT","UPDATE_THUMBNAIL_IN_ROW","UPDATE_VIDEO_THUMBNAIL","PURCHASE_SUCCESS","CHECKOUT_READY","SET_UPSELL_PLAN_ACK"];return globalThis.addEventListener("message",(e=>{var t;e.source===window&&e.data&&"vidiq-webapp"===e.data.source&&"vidiq-extension"===e.data.target&&("object"==typeof(t={type:a.WebappMessaging,action:e.data.action,data:e.data.data})&&null!==t&&"type"in t&&t.type===a.WebappMessaging&&"action"in t&&n.includes(t.action)&&(!("data"in t)||"object"==typeof t.data||void 0===t.data))&&chrome.runtime.sendMessage(chrome.runtime.id,{type:a.WebappMessaging,payload:{action:e.data.action,data:e.data.data}})})),t})()}));
//# sourceMappingURL=webappMessaging.bundle.js.map