var e=`xyxp_publish_markup_settings`;function t(){return{goofishDefaultPercent:0,otherDefaultPercent:20,goofishDefaultStock:888}}function n(e,t=888){let n=typeof e==`number`?e:Number(e);if(!Number.isFinite(n))return t;let r=Math.floor(n);return r<1?t:Math.min(r,99999)}function r(e,t=0){let n=typeof e==`number`?e:Number(e);return Number.isFinite(n)?Math.min(500,Math.max(0,Math.round(n*100)/100)):t}function i(e){let i=t();return e?{goofishDefaultPercent:r(e.goofishDefaultPercent,i.goofishDefaultPercent),otherDefaultPercent:r(e.otherDefaultPercent,i.otherDefaultPercent),goofishDefaultStock:n(e.goofishDefaultStock,i.goofishDefaultStock)}:i}async function a(){return i((await chrome.storage.local.get(e))[e])}async function o(t){await chrome.storage.local.set({[e]:i(t)})}function s(e,t){return e===`goofish`?t.goofishDefaultPercent:t.otherDefaultPercent}export{i as a,a as i,t as n,o,s as r,e as t};