var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,n,o,r,i){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},c="function"==typeof a[r]&&a[r],f=c.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function u(e,n){if(!f[e]){if(!t[e]){var o="function"==typeof a[r]&&a[r];if(!n&&o)return o(e,!0);if(c)return c(e,!0);if(l&&"string"==typeof e)return l(e);var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}s.resolve=function(n){var o=t[e][1][n];return null!=o?o:n},s.cache={};var d=f[e]=new u.Module(e);t[e][0].call(d.exports,s,d,d.exports,this)}return f[e].exports;function s(e){var t=s.resolve(e);return!1===t?{}:u(t)}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=t,u.cache=f,u.parent=c,u.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]},Object.defineProperty(u,"root",{get:function(){return a[r]}}),a[r]=u;for(var d=0;d<n.length;d++)u(n[d]);if(o){var s=u(o);"object"==typeof exports&&"undefined"!=typeof module?module.exports=s:"function"==typeof e&&e.amd?e(function(){return s}):i&&(this[i]=s)}}({bPD8T:[function(e,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(n),o.export(n,"config",()=>i);var r=e("../lib/crypto");let i={matches:["http://*/*","https://*/*"],run_at:"document_idle"},a=async()=>{if(!("undefined"!=typeof chrome&&chrome.storage?.local))return;let e=await chrome.storage.local.get(["activation_info","activation_info_v2","activation_info_v3","device_id"]);if(e.activation_info_v3)try{let t=await (0,r.decryptData)(e.activation_info_v3.e,e.activation_info_v3.i,e.device_id);localStorage.setItem("plugin_activation_info",JSON.stringify(t))}catch{localStorage.removeItem("plugin_activation_info")}else if(e.activation_info_v2)try{let t=await (0,r.decryptData)(e.activation_info_v2.e,e.activation_info_v2.i,e.device_id);localStorage.setItem("plugin_activation_info",JSON.stringify(t))}catch{localStorage.removeItem("plugin_activation_info")}else e.activation_info?localStorage.setItem("plugin_activation_info",JSON.stringify(e.activation_info)):localStorage.removeItem("plugin_activation_info")};"undefined"!=typeof chrome&&chrome.storage?.onChanged&&chrome.storage.onChanged.addListener((e,t)=>{"local"===t&&(e.activation_info||e.activation_info_v2||e.activation_info_v3)&&a()}),a(),setInterval(a,5e3)},{"../lib/crypto":"7MSam","@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],"7MSam":[function(e,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(n),o.export(n,"API_SALT",()=>r),o.export(n,"encryptLocalData",()=>c),o.export(n,"decryptData",()=>f);let r="XHS_NO_996_SECURE_API_SALT_V2_888!@#";function i(e){return new TextEncoder().encode(e)}async function a(e){let t=(e+r).padEnd(32,"0").slice(0,32),n=i(t);return await crypto.subtle.importKey("raw",n,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function c(e,t){let n=await a(t),o=crypto.getRandomValues(new Uint8Array(12)),r=i(JSON.stringify(e)),c=await crypto.subtle.encrypt({name:"AES-GCM",iv:o},n,r);return{e:btoa(String.fromCharCode(...new Uint8Array(c))),i:btoa(String.fromCharCode(...o))}}async function f(e,t,n){try{let o=await a(n),r=Uint8Array.from(atob(t),e=>e.charCodeAt(0)),i=Uint8Array.from(atob(e),e=>e.charCodeAt(0)),c=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},o,i);return JSON.parse(new TextDecoder().decode(c))}catch(e){throw Error("TAMPERED")}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"fRZO2"}],fRZO2:[function(e,t,n){n.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},n.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.exportAll=function(e,t){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t},n.export=function(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:n})}},{}]},["bPD8T"],"bPD8T","parcelRequire221a"),globalThis.define=t;