import{DEFAULT_EDITOR_ORIGIN as e}from"./constants.js";const r={};let t=null;export const iframeSettings={get editorOrigin(){return null==t&&(t=new URL(globalThis.WEBCONTAINER_API_IFRAME_URL??e).origin),t},set editorOrigin(e){t=new URL(e).origin},setQueryParam(e,t){r[e]=t},get url(){const e=new URL(this.editorOrigin);e.pathname="/headless";for(const t in r)e.searchParams.set(t,r[t]);return e.searchParams.set("version","1.3.0"),e}};