import{p as r,g as n,c as t,b as e}from"./p-2c9dd7c4.js";function o(r){const n=e(r);if(t(n))return n;throw new Error("Expected value")}function a(t,e){return r(t,n((()=>e)))}function s(t,e="Option value is none."){return r(t,n((()=>{throw new Error(e)})))}function u(r){return r.map((r=>({label:String(r),value:r})))}export{s as a,o as b,a as g,u as t}