import{y as e}from"./utils-BakkG8Vx.js";import{s as t,t as n}from"./options-CDt8ZGCW.js";var r=[{id:`new-layout`,name:t(`experimental_features.new_layout_name`),description:t(`experimental_features.new_layout_description`)},{id:`llm`,name:t(`experimental_features.llm_name`),description:t(`experimental_features.llm_description`)}],i=null;function a(t){return t===`new-layout`?e()||n.is(`newLayout`):c().has(t)}function o(){let t=[...c().values()];return(e()||n.is(`newLayout`))&&t.push(`new-layout`),t}async function s(e,t){let r=new Set(c());t?r.add(e):r.delete(e),await n.save(`experimentalFeatures`,JSON.stringify(Array.from(r)))}function c(){if(!i){let e=[];try{e=JSON.parse(n.get(`experimentalFeatures`))}catch(e){console.warn(`Failed to parse experimental features from options:`,e)}i=new Set(e),i.delete(`new-layout`)}return i}export{s as i,o as n,a as r,r as t};