const a0h=a0b;(function(a,b){const g=a0b,c=a();while(!![]){try{const d=-parseInt(g(0xf8))/0x1*(parseInt(g(0xf7))/0x2)+-parseInt(g(0x103))/0x3*(parseInt(g(0xf2))/0x4)+-parseInt(g(0xfc))/0x5*(parseInt(g(0xfa))/0x6)+-parseInt(g(0x107))/0x7*(-parseInt(g(0xf9))/0x8)+-parseInt(g(0x104))/0x9*(parseInt(g(0xfe))/0xa)+parseInt(g(0xf4))/0xb*(parseInt(g(0xfb))/0xc)+-parseInt(g(0xff))/0xd*(-parseInt(g(0x102))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,0xa4aff));const DEFAULTS={'enabled':![],'stats':{'promptCount':0x0,'errorCount':0x0,'lastPromptAt':0x0},'intel':{},'featureFlags':{},'userEmail':'','licenseKey':'','lovableToken':'','lovableTokenAt':0x0,'lovableWorkspaceId':'','lovableCastleToken':'','lovableCastleTokenAt':0x0,'lovableSessionId':'','lovableClientGitSha':'','hiddenBadgesByProject':{},'tryToFixHistory':{},'chatModeByProject':{},'activeTab':a0h(0xf5),'theme':a0h(0x106),'licenseState':{'status':a0h(0x105),'plan':null,'expiresAt':null,'boundEmail':null,'config':null,'licenseHash':null,'lastChecked':0x0,'error':null}};export async function getSettings(){const i=a0h,a=await chrome['storage'][i(0xf6)][i(0x100)](i(0x10a));return deepMerge(DEFAULTS,a[i(0x10a)]||{});}function a0b(a,b){a=a-0xf2;const c=a0a();let d=c[a];if(a0b['geWloY']===undefined){var e=function(i){const j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let l='',m='';for(let n=0x0,o,p,q=0x0;p=i['charAt'](q++);~p&&(o=n%0x4?o*0x40+p:p,n++%0x4)?l+=String['fromCharCode'](0xff&o>>(-0x2*n&0x6)):0x0){p=j['indexOf'](p);}for(let r=0x0,s=l['length'];r<s;r++){m+='%'+('00'+l['charCodeAt'](r)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(m);};a0b['GqOBtY']=e,a0b['ikTEwi']={},a0b['geWloY']=!![];}const f=c[0x0],g=a+f,h=a0b['ikTEwi'][g];return!h?(d=a0b['GqOBtY'](d),a0b['ikTEwi'][g]=d):d=h,d;}function a0a(){const m=['mJeXmJbvwLH1zwS','mJi2ndCZAwznEwPg','z2v0','AxnbCNjHEq','mJe5oeT2svnbva','mJC5wLr3CLbi','mZm4ng1RB094qG','Dw5RBM93BG','zgfYAW','n3bkt3DdvG','C3rVCMfNzq','B2jQzwn0','C2v0DgLUz3m','ntq1mdHlrMr6s0O','C2v0','mtfgDhPhqMG','Ag9Tzq','Bg9JywW','mZHOsKzkBfq','ndqWnJvguK9brKC','ntG3otq4mgT6s2LhDW','nJa1ngvquNjJrW','nZq2mtCZmK9dEMHywa','mJu3mePdAvPTAq','A2v5CW'];a0a=function(){return m;};return a0a();}export async function setSettings(a){const j=a0h,b=await getSettings(),c=deepMerge(b,a);return await chrome[j(0x108)][j(0xf6)][j(0xf3)]({'settings':c}),c;}export async function resetSettings(){const k=a0h;return await chrome[k(0x108)][k(0xf6)]['remove'](k(0x10a)),getSettings();}function deepMerge(c,d){const l=a0h;if(d===null||d===undefined)return c;if(typeof c!==l(0x109)||typeof d!==l(0x109))return d;if(Array[l(0x101)](d))return d;const e={...c};for(const f of Object[l(0xfd)](d)){d[f]&&typeof d[f]==='object'&&!Array[l(0x101)](d[f])?e[f]=deepMerge(c[f]||{},d[f]):e[f]=d[f];}return e;}