@engenty/wizards-runtime 0.20.2 → 0.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/README.md +1 -1
  2. package/apps/runtime/dist/docs/dev/licensing.md +11 -4
  3. package/apps/web/dist/assets/{AboutDialog-CSbCideu.js → AboutDialog-CQvfeGqA.js} +1 -1
  4. package/apps/web/dist/assets/{CapabilitiesPage-M2s68GkB.js → CapabilitiesPage-DJRpCw2_.js} +1 -1
  5. package/apps/web/dist/assets/{ChangelogDialog-BG3enhF_.js → ChangelogDialog-F7gj0WCW.js} +1 -1
  6. package/apps/web/dist/assets/{ConnectorsSection-C2ZKAYYg.js → ConnectorsSection-dXmTJOrm.js} +1 -1
  7. package/apps/web/dist/assets/{EditorPage-DrlMr_BY.js → EditorPage-DNox0Po-.js} +1 -1
  8. package/apps/web/dist/assets/{NewWizardChannels-5Nz8FBfp.js → NewWizardChannels-BugegWm1.js} +1 -1
  9. package/apps/web/dist/assets/{NewWizardPage-DZZx49Zp.js → NewWizardPage-Df359wgE.js} +1 -1
  10. package/apps/web/dist/assets/{ProtocolSection-D4pst4zv.js → ProtocolSection-B1tcJgJl.js} +1 -1
  11. package/apps/web/dist/assets/{ReadOnly-CcHDevY4.js → ReadOnly-DxC8kALr.js} +1 -1
  12. package/apps/web/dist/assets/{Results-DTEHveBZ.js → Results-D6ecFiSB.js} +1 -1
  13. package/apps/web/dist/assets/{RunDrawer-r6eFEs5D.js → RunDrawer-oPFk8yHt.js} +1 -1
  14. package/apps/web/dist/assets/{SettingsPage-DmZdkZJZ.js → SettingsPage-DueaPjW3.js} +2 -2
  15. package/apps/web/dist/assets/{SetupPage-KE6tcFO2.js → SetupPage-k61GmbIs.js} +1 -1
  16. package/apps/web/dist/assets/{SpacePage-BdB2lsHC.js → SpacePage-z66Mza2y.js} +1 -1
  17. package/apps/web/dist/assets/{StudioHome-Dc4vCVDX.js → StudioHome-q1f_vqAI.js} +1 -1
  18. package/apps/web/dist/assets/{TableEditor-DjIhH4Xp.js → TableEditor-Dfu5Qa-O.js} +1 -1
  19. package/apps/web/dist/assets/{UpdateCheck-C82R62Tc.js → UpdateCheck-y1StF2CW.js} +2 -2
  20. package/apps/web/dist/assets/changelog-DoEmFdnI.js +1 -0
  21. package/apps/web/dist/assets/{host-CA1dqZWL.js → host-Bh_WJbQv.js} +3 -3
  22. package/apps/web/dist/assets/{index-BtEYkDXF.js → index-CgSUfzBq.js} +3 -3
  23. package/apps/web/dist/assets/{oss-credits-B8LDQxiG.js → oss-credits-C4SGbRkz.js} +1 -1
  24. package/apps/web/dist/index.html +4 -4
  25. package/package.json +1 -1
  26. package/plugin/.claude-plugin/plugin.json +1 -1
  27. package/plugin/plugin.json +1 -1
  28. package/apps/web/dist/assets/changelog-BqBrvuEE.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicRunner-COatyxMi.js","assets/rolldown-runtime-XKyaHtl9.js","assets/ui-DkEhb2Rt.js","assets/jsx-runtime-C3cWAN_r.js","assets/i18n-WXeVnv7i.js","assets/marked.esm-BfGIZK7F.js","assets/preload-helper-Cj7BV335.js","assets/theme-23bNrOQh.js","assets/react-dom-BwXff0Px.js","assets/volume-2-Br71vpS5.js","assets/read-aloud-CRFt5q6k.js","assets/brand-BIT7AumL.js","assets/engenty-Cy7MbUxR.js","assets/logo-xL-sneZz.js","assets/phone-CG7Bz_ZL.js","assets/plug-CHvl1GhO.js","assets/theme-CbR9-ayl.css","assets/LangSwitch-BLB7dDce.js","assets/media-gjOIWMWK.js","assets/session-RDdtfee2.js","assets/SharePage-Drntg_oj.js","assets/EditorPage-DrlMr_BY.js","assets/useMutation-BSffqL6W.js","assets/eye-CG1LzvNI.js","assets/Marketplace-B3NoH5Va.js","assets/list-checks-D1zkXlZa.js","assets/host-CA1dqZWL.js","assets/scroll-text-DmK2IucJ.js","assets/floating-ui.dom-S_FT_s1L.js","assets/upload-BZThm-R6.js","assets/UpdateCheck-C82R62Tc.js","assets/with-selector-DNNxLmGI.js","assets/code-editor-CufyaUFC.js","assets/host-BrP-ENHg.css","assets/Skills-BcgxuD15.js","assets/esm-CpFD3UPd.js","assets/minus-OrLEfDzR.js","assets/code-xml-CdJeig44.js","assets/TableEditor-DjIhH4Xp.js","assets/table-BEbwD8ie.js","assets/code-hPTnSH4L.js","assets/ConnectorsSection-C2ZKAYYg.js","assets/Bundle-C0u5HUZL.js","assets/NewWizardChannels-5Nz8FBfp.js","assets/StudioHome-Dc4vCVDX.js","assets/Results-DTEHveBZ.js","assets/RunDrawer-r6eFEs5D.js","assets/list-ordered-B7aUqZdk.js","assets/OnboardingPage-RawpCO9J.js","assets/NewWizardPage-DZZx49Zp.js","assets/SettingsPage-DmZdkZJZ.js","assets/ProtocolSection-D4pst4zv.js","assets/ReadOnly-CcHDevY4.js","assets/SpacePage-BdB2lsHC.js","assets/link-DyYjkzYx.js","assets/CapabilitiesPage-M2s68GkB.js","assets/SetupPage-KE6tcFO2.js"])))=>i.map(i=>d[i]);
2
- import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{$ as n,$t as r,An as i,Ar as a,Br as o,C as s,Dn as c,Dr as l,Dt as u,Er as d,Fn as f,Gn as p,Gr as m,Hr as h,Jr as g,Kr as _,M as v,Mn as y,Mr as b,N as x,Nr as ee,Or as te,Qr as S,Rr as ne,Sr as re,Tr as ie,Un as ae,Ur as oe,V as se,Vr as ce,Wr as le,Xr as ue,Xt as de,Yr as fe,Z as pe,Zr as me,Zt as he,_ as ge,_r as _e,_t as ve,a as ye,an as C,bn as w,br as be,bt as xe,cn as Se,cr as T,ct as E,dn as Ce,dr as we,ei as Te,fn as Ee,fr as De,gn as D,gr as O,gt as Oe,hn as ke,hr as Ae,jr as je,kr as Me,kt as Ne,lr as Pe,mt as Fe,ni as Ie,nt as Le,on as Re,ot as ze,p as Be,pt as Ve,q as He,qr as Ue,rt as We,s as Ge,st as Ke,ti as qe,tt as Je,un as Ye,ut as Xe,vn as Ze,vt as Qe,wn as $e,wr as et,xn as k,xt as tt,yr as nt,zr as A}from"./ui-DkEhb2Rt.js";import{n as rt,t as it}from"./useMutation-BSffqL6W.js";import{n as at,t as ot}from"./jsx-runtime-C3cWAN_r.js";import{t as st}from"./react-dom-BwXff0Px.js";import{_ as ct,g as lt,n as ut}from"./brand-BIT7AumL.js";import{l as dt,s as ft}from"./read-aloud-CRFt5q6k.js";import{E as pt,O as mt,m as ht,n as gt,v as _t,y as vt}from"./Marketplace-B3NoH5Va.js";import{Et as yt,O as bt,at as xt,c as St,et as Ct,g as wt,ht as Tt,n as Et,ot as Dt,s as j}from"./i18n-WXeVnv7i.js";import{b as Ot,c as kt,d as At,h as jt,i as Mt,n as Nt,o as Pt,r as Ft,s as It,u as Lt}from"./session-RDdtfee2.js";import{C as Rt,Cn as zt,Gn as Bt,Rn as Vt,S as M,Sn as Ht,Tn as Ut,Ut as Wt,Vn as Gt,W as Kt,a as qt,d as Jt,f as Yt,fr as Xt,h as N,i as Zt,q as Qt,t as $t,w as en,xn as tn,zn as nn}from"./host-CA1dqZWL.js";import{d as rn,l as an,n as on,u as sn}from"./marked.esm-BfGIZK7F.js";import{g as cn}from"./UpdateCheck-C82R62Tc.js";import{n as ln,t as un}from"./logo-xL-sneZz.js";import{r as dn}from"./LangSwitch-BLB7dDce.js";import{C as fn,S as pn,T as mn,b as hn,d as gn,f as _n,r as vn,t as yn,w as bn,x as xn,y as Sn}from"./theme-23bNrOQh.js";import{t as Cn}from"./RunDrawer-r6eFEs5D.js";import{r as wn}from"./volume-2-Br71vpS5.js";import{t as Tn}from"./eye-CG1LzvNI.js";import{t as En}from"./preload-helper-Cj7BV335.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Dn=class extends ce{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new rt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=On(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){A.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){A.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return A.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}};function On(e){return e.options.scope?.id}function kn(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var An=class extends ce{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,A.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!S(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(kn(e,n).forEach(e=>{e.destroy()}),kn(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=ue(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new b(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&A.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},jn=class extends ce{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??le(r,t),a=this.get(i);return a||(a=new ee({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ue(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ue(e,t)):t}notify(e){A.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Mn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new jn,this.#t=e.mutationCache||new Dn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=o.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ne.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(me(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=h(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return A.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;A.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return A.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=A.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(g).catch(g)}invalidateQueries(e,t={}){return A.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=A.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(g)),r?Promise.resolve():t}));return Promise.all(r).then(g)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(me(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(me(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ne.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(oe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(oe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=le(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Te&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},P=e(at(),1);function Nn({queries:e,...t},n){let r=Ie(n),i=je(),o=a(),s=t.subscribed!==!1,c=P.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:s?`optimistic`:void 0,t}),[e,r,i,s]);c.forEach(e=>{et(e);let t=r.getQueryCache().get(e.queryHash);l(e,o,t)}),Me(o);let[u]=P.useState(()=>new An(r,c,t)),[f,p,m]=u.getOptimisticResult(c,t.combine);P.useEffect(()=>{u.setQueries(c,t)},[c,t,u]);let h=!i&&s;P.useSyncExternalStore(P.useCallback(e=>h?u.subscribe(A.batchCalls(e)):g,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult());let _=f.some((e,t)=>d(c[t],e))?f.flatMap((e,t)=>{let n=c[t];if(n&&d(n,e)){let e=new b(r,n);return ie(n,e,o)}return[]}):[];if(_.length>0)throw Promise.all(_);let v=f.find((e,t)=>{let n=c[t];return n&&te({result:e,errorResetBoundary:o,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(v)throw v.error;return p(m())}var Pn=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,ee||(ee=!0,ae());else{var t=n(l);t!==null&&ce(x,t.startTime-e)}}}var ee=!1,te=-1,S=5,ne=-1;function re(){return g?!0:!(e.unstable_now()-ne<S)}function ie(){if(g=!1,ee){var t=e.unstable_now();ne=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ae():ee=!1}}}var ae;if(typeof y==`function`)ae=function(){y(ie)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ie,ae=function(){se.postMessage(null)}}else ae=function(){_(ie,0)};function ce(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):S=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,ce(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,ae()))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Fn=t(((e,t)=>{t.exports=Pn()})),In=t((e=>{var t=Fn(),n=at(),r=st();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function ee(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function te(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var S=Object.assign,ne=Symbol.for(`react.element`),re=Symbol.for(`react.transitional.element`),ie=Symbol.for(`react.portal`),ae=Symbol.for(`react.fragment`),oe=Symbol.for(`react.strict_mode`),se=Symbol.for(`react.profiler`),ce=Symbol.for(`react.consumer`),le=Symbol.for(`react.context`),ue=Symbol.for(`react.forward_ref`),de=Symbol.for(`react.suspense`),fe=Symbol.for(`react.suspense_list`),pe=Symbol.for(`react.memo`),me=Symbol.for(`react.lazy`),he=Symbol.for(`react.activity`),ge=Symbol.for(`react.legacy_hidden`),_e=Symbol.for(`react.memo_cache_sentinel`),ve=Symbol.for(`react.view_transition`),ye=Symbol.for(`react.recoverable`),C=Symbol.iterator;function w(e){return typeof e!=`object`||!e?null:(e=C&&e[C]||e[`@@iterator`],typeof e==`function`?e:null)}var be=Symbol.for(`react.client.reference`);function xe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ae:return`Fragment`;case se:return`Profiler`;case oe:return`StrictMode`;case de:return`Suspense`;case fe:return`SuspenseList`;case he:return`Activity`;case ve:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ie:return`Portal`;case le:return e.displayName||`Context`;case ce:return(e._context.displayName||`Context`)+`.Consumer`;case ue:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case pe:return t=e.displayName||null,t===null?xe(e.type)||`Memo`:t;case me:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var Se=Array.isArray,T=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce={pending:!1,data:null,method:null,action:null},we=[],Te=-1;function Ee(e){return{current:e}}function De(e){0>Te||(e.current=we[Te],we[Te]=null,Te--)}function D(e,t){Te++,we[Te]=e.current,e.current=t}var O=Ee(null),Oe=Ee(null),ke=Ee(null),Ae=Ee(null);function je(e,t){switch(D(ke,t),D(Oe,e),D(O,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}De(O),D(O,e)}function Me(){De(O),De(Oe),De(ke)}function Ne(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,D(Ae,e)),t=O.current;var n=dp(t,e.type);t!==n&&(D(Oe,e),D(O,n))}function Pe(e){Oe.current===e&&(De(O),De(Oe)),Ae.current===e&&(De(Ae),sh._currentValue=Ce)}var Fe,Ie;function Le(e){if(Fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Fe=t&&t[1]||``,Ie=-1<e.stack.indexOf(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/PublicRunner-COatyxMi.js","assets/rolldown-runtime-XKyaHtl9.js","assets/ui-DkEhb2Rt.js","assets/jsx-runtime-C3cWAN_r.js","assets/i18n-WXeVnv7i.js","assets/marked.esm-BfGIZK7F.js","assets/preload-helper-Cj7BV335.js","assets/theme-23bNrOQh.js","assets/react-dom-BwXff0Px.js","assets/volume-2-Br71vpS5.js","assets/read-aloud-CRFt5q6k.js","assets/brand-BIT7AumL.js","assets/engenty-Cy7MbUxR.js","assets/logo-xL-sneZz.js","assets/phone-CG7Bz_ZL.js","assets/plug-CHvl1GhO.js","assets/theme-CbR9-ayl.css","assets/LangSwitch-BLB7dDce.js","assets/media-gjOIWMWK.js","assets/session-RDdtfee2.js","assets/SharePage-Drntg_oj.js","assets/EditorPage-DNox0Po-.js","assets/useMutation-BSffqL6W.js","assets/eye-CG1LzvNI.js","assets/Marketplace-B3NoH5Va.js","assets/list-checks-D1zkXlZa.js","assets/host-Bh_WJbQv.js","assets/scroll-text-DmK2IucJ.js","assets/floating-ui.dom-S_FT_s1L.js","assets/upload-BZThm-R6.js","assets/UpdateCheck-y1StF2CW.js","assets/with-selector-DNNxLmGI.js","assets/code-editor-CufyaUFC.js","assets/host-BrP-ENHg.css","assets/Skills-BcgxuD15.js","assets/esm-CpFD3UPd.js","assets/minus-OrLEfDzR.js","assets/code-xml-CdJeig44.js","assets/TableEditor-Dfu5Qa-O.js","assets/table-BEbwD8ie.js","assets/code-hPTnSH4L.js","assets/ConnectorsSection-dXmTJOrm.js","assets/Bundle-C0u5HUZL.js","assets/NewWizardChannels-BugegWm1.js","assets/StudioHome-q1f_vqAI.js","assets/Results-D6ecFiSB.js","assets/RunDrawer-oPFk8yHt.js","assets/list-ordered-B7aUqZdk.js","assets/OnboardingPage-RawpCO9J.js","assets/NewWizardPage-Df359wgE.js","assets/SettingsPage-DueaPjW3.js","assets/ProtocolSection-B1tcJgJl.js","assets/ReadOnly-DxC8kALr.js","assets/SpacePage-z66Mza2y.js","assets/link-DyYjkzYx.js","assets/CapabilitiesPage-DJRpCw2_.js","assets/SetupPage-k61GmbIs.js"])))=>i.map(i=>d[i]);
2
+ import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{$ as n,$t as r,An as i,Ar as a,Br as o,C as s,Dn as c,Dr as l,Dt as u,Er as d,Fn as f,Gn as p,Gr as m,Hr as h,Jr as g,Kr as _,M as v,Mn as y,Mr as b,N as x,Nr as ee,Or as te,Qr as S,Rr as ne,Sr as re,Tr as ie,Un as ae,Ur as oe,V as se,Vr as ce,Wr as le,Xr as ue,Xt as de,Yr as fe,Z as pe,Zr as me,Zt as he,_ as ge,_r as _e,_t as ve,a as ye,an as C,bn as w,br as be,bt as xe,cn as Se,cr as T,ct as E,dn as Ce,dr as we,ei as Te,fn as Ee,fr as De,gn as D,gr as O,gt as Oe,hn as ke,hr as Ae,jr as je,kr as Me,kt as Ne,lr as Pe,mt as Fe,ni as Ie,nt as Le,on as Re,ot as ze,p as Be,pt as Ve,q as He,qr as Ue,rt as We,s as Ge,st as Ke,ti as qe,tt as Je,un as Ye,ut as Xe,vn as Ze,vt as Qe,wn as $e,wr as et,xn as k,xt as tt,yr as nt,zr as A}from"./ui-DkEhb2Rt.js";import{n as rt,t as it}from"./useMutation-BSffqL6W.js";import{n as at,t as ot}from"./jsx-runtime-C3cWAN_r.js";import{t as st}from"./react-dom-BwXff0Px.js";import{_ as ct,g as lt,n as ut}from"./brand-BIT7AumL.js";import{l as dt,s as ft}from"./read-aloud-CRFt5q6k.js";import{E as pt,O as mt,m as ht,n as gt,v as _t,y as vt}from"./Marketplace-B3NoH5Va.js";import{Et as yt,O as bt,at as xt,c as St,et as Ct,g as wt,ht as Tt,n as Et,ot as Dt,s as j}from"./i18n-WXeVnv7i.js";import{b as Ot,c as kt,d as At,h as jt,i as Mt,n as Nt,o as Pt,r as Ft,s as It,u as Lt}from"./session-RDdtfee2.js";import{C as Rt,Cn as zt,Gn as Bt,Rn as Vt,S as M,Sn as Ht,Tn as Ut,Ut as Wt,Vn as Gt,W as Kt,a as qt,d as Jt,f as Yt,fr as Xt,h as N,i as Zt,q as Qt,t as $t,w as en,xn as tn,zn as nn}from"./host-Bh_WJbQv.js";import{d as rn,l as an,n as on,u as sn}from"./marked.esm-BfGIZK7F.js";import{g as cn}from"./UpdateCheck-y1StF2CW.js";import{n as ln,t as un}from"./logo-xL-sneZz.js";import{r as dn}from"./LangSwitch-BLB7dDce.js";import{C as fn,S as pn,T as mn,b as hn,d as gn,f as _n,r as vn,t as yn,w as bn,x as xn,y as Sn}from"./theme-23bNrOQh.js";import{t as Cn}from"./RunDrawer-oPFk8yHt.js";import{r as wn}from"./volume-2-Br71vpS5.js";import{t as Tn}from"./eye-CG1LzvNI.js";import{t as En}from"./preload-helper-Cj7BV335.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Dn=class extends ce{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new rt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=On(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=On(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){A.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>_(t,e))}findAll(e={}){return this.getAll().filter(t=>_(e,t))}notify(e){A.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return A.batch(()=>Promise.all(e.map(e=>e.continue().catch(g))))}};function On(e){return e.options.scope?.id}function kn(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var An=class extends ce{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,A.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!S(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(kn(e,n).forEach(e=>{e.destroy()}),kn(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=ue(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new b(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&A.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},jn=class extends ce{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??le(r,t),a=this.get(i);return a||(a=new ee({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Ue(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>Ue(e,t)):t}notify(e){A.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Mn=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new jn,this.#t=e.mutationCache||new Dn,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=o.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ne.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(me(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=h(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return A.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;A.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return A.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=A.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(g).catch(g)}invalidateQueries(e,t={}){return A.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=A.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(g)),r?Promise.resolve():t}));return Promise.all(r).then(g)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(me(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(me(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(g).catch(g)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(g).catch(g)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ne.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(oe(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(oe(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=le(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Te&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},P=e(at(),1);function Nn({queries:e,...t},n){let r=Ie(n),i=je(),o=a(),s=t.subscribed!==!1,c=P.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:s?`optimistic`:void 0,t}),[e,r,i,s]);c.forEach(e=>{et(e);let t=r.getQueryCache().get(e.queryHash);l(e,o,t)}),Me(o);let[u]=P.useState(()=>new An(r,c,t)),[f,p,m]=u.getOptimisticResult(c,t.combine);P.useEffect(()=>{u.setQueries(c,t)},[c,t,u]);let h=!i&&s;P.useSyncExternalStore(P.useCallback(e=>h?u.subscribe(A.batchCalls(e)):g,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult());let _=f.some((e,t)=>d(c[t],e))?f.flatMap((e,t)=>{let n=c[t];if(n&&d(n,e)){let e=new b(r,n);return ie(n,e,o)}return[]}):[];if(_.length>0)throw Promise.all(_);let v=f.find((e,t)=>{let n=c[t];return n&&te({result:e,errorResetBoundary:o,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(v)throw v.error;return p(m())}var Pn=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,ee||(ee=!0,ae());else{var t=n(l);t!==null&&ce(x,t.startTime-e)}}}var ee=!1,te=-1,S=5,ne=-1;function re(){return g?!0:!(e.unstable_now()-ne<S)}function ie(){if(g=!1,ee){var t=e.unstable_now();ne=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&re());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ce(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ae():ee=!1}}}var ae;if(typeof y==`function`)ae=function(){y(ie)};else if(typeof MessageChannel<`u`){var oe=new MessageChannel,se=oe.port2;oe.port1.onmessage=ie,ae=function(){se.postMessage(null)}}else ae=function(){_(ie,0)};function ce(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):S=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,ce(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,ae()))),r},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Fn=t(((e,t)=>{t.exports=Pn()})),In=t((e=>{var t=Fn(),n=at(),r=st();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function ee(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function te(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var S=Object.assign,ne=Symbol.for(`react.element`),re=Symbol.for(`react.transitional.element`),ie=Symbol.for(`react.portal`),ae=Symbol.for(`react.fragment`),oe=Symbol.for(`react.strict_mode`),se=Symbol.for(`react.profiler`),ce=Symbol.for(`react.consumer`),le=Symbol.for(`react.context`),ue=Symbol.for(`react.forward_ref`),de=Symbol.for(`react.suspense`),fe=Symbol.for(`react.suspense_list`),pe=Symbol.for(`react.memo`),me=Symbol.for(`react.lazy`),he=Symbol.for(`react.activity`),ge=Symbol.for(`react.legacy_hidden`),_e=Symbol.for(`react.memo_cache_sentinel`),ve=Symbol.for(`react.view_transition`),ye=Symbol.for(`react.recoverable`),C=Symbol.iterator;function w(e){return typeof e!=`object`||!e?null:(e=C&&e[C]||e[`@@iterator`],typeof e==`function`?e:null)}var be=Symbol.for(`react.client.reference`);function xe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ae:return`Fragment`;case se:return`Profiler`;case oe:return`StrictMode`;case de:return`Suspense`;case fe:return`SuspenseList`;case he:return`Activity`;case ve:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case ie:return`Portal`;case le:return e.displayName||`Context`;case ce:return(e._context.displayName||`Context`)+`.Consumer`;case ue:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case pe:return t=e.displayName||null,t===null?xe(e.type)||`Memo`:t;case me:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var Se=Array.isArray,T=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce={pending:!1,data:null,method:null,action:null},we=[],Te=-1;function Ee(e){return{current:e}}function De(e){0>Te||(e.current=we[Te],we[Te]=null,Te--)}function D(e,t){Te++,we[Te]=e.current,e.current=t}var O=Ee(null),Oe=Ee(null),ke=Ee(null),Ae=Ee(null);function je(e,t){switch(D(ke,t),D(Oe,e),D(O,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}De(O),D(O,e)}function Me(){De(O),De(Oe),De(ke)}function Ne(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,D(Ae,e)),t=O.current;var n=dp(t,e.type);t!==n&&(D(Oe,e),D(O,n))}function Pe(e){Oe.current===e&&(De(O),De(Oe)),Ae.current===e&&(De(Ae),sh._currentValue=Ce)}var Fe,Ie;function Le(e){if(Fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Fe=t&&t[1]||``,Ie=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+Fe+e+Ie}var Re=!1;function ze(e,t){if(!e||Re)return``;Re=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
5
  `),l=s.split(`
@@ -99,4 +99,4 @@ ul,ol{padding:0;list-style:none}
99
99
  .nothing p{font-size:16px;line-height:1.55;color:var(--ink-2)}
100
100
  @media (max-width:900px){.feat{grid-template-columns:1fr}.feat-side{border-radius:0 0 16px 16px}.row{grid-template-columns:1fr}.row .pill{justify-self:start}.foot-grid{grid-template-columns:1fr}.foot .two{grid-template-columns:1fr}}
101
101
  @media (max-width:640px){.wp{padding-left:16px;padding-right:16px}.hero{padding-top:40px;padding-bottom:120px}.main{margin-top:-72px}.feat-main{padding:24px 20px}.feat-side{padding:24px 20px}.perch{right:10px;top:-62px}.perch svg{width:104px;height:104px}.row{padding:20px}.row-main{padding-right:48px}.row h3{font-size:22px}.sec{margin-top:56px}}
102
- `,Ti={start:`Los geht's`,youGet:`Du bekommst`,youDo:`Du machst`,howItGoes:`So läuft es`,noAccount:`Kein Konto nötig`,wizards:e=>e===1?`1 Wizard`:`${e} Wizards`,minutes:e=>`etwa ${e} Min`,minutesLong:e=>`etwa ${e} Minuten`,minutesRange:(e,t)=>e===t?`etwa ${e} Minuten`:`${e} bis ${t} Minuten`,task:(e,t,n)=>{let r=[n?`Dateien hochladen`:``,e?`${e} ${e===1?`Frage`:`Fragen`} beantworten`:``,t?`${t===1?`einen Entwurf`:`${t} Entwürfe`} prüfen`:``].filter(Boolean);return r.length?Oi(r,`und`):`Nur starten`},short:(e,t)=>[t?`Dateien`:``,e?`${e} ${e===1?`Frage`:`Fragen`}`:``].filter(Boolean).join(`, `),all:`Alle Wizards`,kind:{text:`Text`,document:`Dokument`,table:`Tabelle`,image:`Bild`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`Beispiel ansehen`,exampleNote:`Ein Lauf, den das Team geteilt hat.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`,download:`Zum Herunterladen, oder du schickst sie direkt aus dem Wizard.`,imprint:`Impressum`,page:`Seite`,poweredBy:`Wizards von engenty`,nothing:`Hier ist noch nichts.`,nothingNote:`Diese Adresse hat noch keine öffentliche Seite. Teams bauen ihre Wizards mit engenty wizards und zeigen sie hier.`,whatIs:`Was ist engenty wizards?`,paused:`Diese Seite ist pausiert.`,pausedNote:`Das Team kümmert sich darum. Bitte später wieder vorbeischauen.`,down:`Diese Seite ist gerade nicht erreichbar.`,downNote:`Bitte in einer Minute noch einmal versuchen.`,notBuilt:`Demo: Dieser Wizard ist noch nicht gebaut.`,notBuiltNote:`Auf der echten Seite führt der Knopf zum Wizard.`,back:`Zurück zur Seite`},Ei={start:`Start`,youGet:`You get`,youDo:`You do`,howItGoes:`How it goes`,noAccount:`No account needed`,wizards:e=>e===1?`1 wizard`:`${e} wizards`,minutes:e=>`about ${e} min`,minutesLong:e=>`about ${e} minutes`,minutesRange:(e,t)=>e===t?`about ${e} minutes`:`${e} to ${t} minutes`,task:(e,t,n)=>{let r=[n?`upload your files`:``,e?`answer ${e} ${e===1?`question`:`questions`}`:``,t?`check ${t===1?`one draft`:`${t} drafts`}`:``].filter(Boolean),i=r.length?Oi(r,`and`):`just start`;return i.charAt(0).toUpperCase()+i.slice(1)},short:(e,t)=>[t?`Files`:``,e?`${e} ${e===1?`question`:`questions`}`:``].filter(Boolean).join(`, `),all:`All wizards`,kind:{text:`Text`,document:`Document`,table:`Table`,image:`Image`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`See an example`,exampleNote:`A run the team shared.`,pause:`You can stop at any time and continue on this device.`,download:`To download, or you send them straight from the wizard.`,imprint:`Imprint`,page:`Page`,poweredBy:`Wizards by engenty`,nothing:`There is nothing here yet.`,nothingNote:`This address has no public page yet. Teams build their wizards with engenty wizards and show them here.`,whatIs:`What is engenty wizards?`,paused:`This page is paused.`,pausedNote:`The team is looking into it. Come back later.`,down:`This page can't be reached right now.`,downNote:`Try again in a minute.`,notBuilt:`Demo: this wizard isn't built yet.`,notBuiltNote:`On a real page the button leads to the wizard.`,back:`Back to the page`},Di={youGet:`Sie bekommen`,youDo:`Sie machen`,download:`Zum Herunterladen, oder Sie schicken sie direkt aus dem Wizard.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`};function Oi(e,t){return e.length<2?e[0]??``:`${e.slice(0,-1).join(`, `)} ${t} ${e[e.length-1]}`}var ki=(e,t)=>e===`en`?Ei:t===`sie`?{...Ti,...Di}:Ti,Ai=e(st(),1),ji=e=>[`page-preview`,e];function Mi(e){(0,P.useEffect)(()=>{if(document.head.querySelector(`link[data-page-fonts="${e}"]`))return;let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,t.dataset.pageFonts=e,document.head.append(t)},[e])}function Ni({vars:e,children:t}){let[n,r]=(0,P.useState)(null),[i,a]=(0,P.useState)(null);return(0,P.useEffect)(()=>{n&&!i&&a(n.shadowRoot??n.attachShadow({mode:`open`}))},[n,i]),(0,F.jsx)(`div`,{ref:r,className:`min-h-full`,children:i?(0,Ai.createPortal)((0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{children:`${wi}\n.pg{${e};background:var(--ground);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;line-height:1.4;min-height:100%}.pg a{pointer-events:none}`}),(0,F.jsx)(`div`,{className:`pg`,children:t})]}),i):null})}function Pi({space:e,page:t,empty:r}){let i=re({queryKey:ji(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/page`)}),a=i.data?.organization?.space??null,o=a?.brand.name||i.data?.organization?.name||t.title,s=xi(a?.brand.theme??null);Mi(s.fontsHref);let c=ki(t.lang??`de`,t.form),l=a?.wizards??[],[u,...d]=l,f=l.map(e=>e.effort.minutes);return(0,F.jsxs)(Ni,{vars:s.vars,children:[(0,F.jsxs)(`div`,{className:`band`,children:[(0,F.jsx)(`header`,{className:`wp top`,children:(0,F.jsx)(`span`,{className:`brand`,children:a?.brand.logoUrl?(0,F.jsx)(`img`,{src:a.brand.logoUrl,alt:o}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`mark`,"aria-hidden":`true`,children:Nt(o)}),o]})})}),(0,F.jsxs)(`div`,{className:`wp hero`,children:[(0,F.jsxs)(`p`,{className:`lbl`,children:[(0,F.jsx)(`b`,{children:t.title}),o===t.title?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`i`,{"aria-hidden":`true`}),o]})]}),(0,F.jsx)(`h1`,{children:t.headline||t.title}),t.intro?(0,F.jsx)(`p`,{children:t.intro}):null,l.length?(0,F.jsxs)(`ul`,{className:`meta`,children:[(0,F.jsx)(`li`,{children:c.wizards(l.length)}),(0,F.jsx)(`li`,{children:c.minutesRange(Math.min(...f),Math.max(...f))}),(0,F.jsx)(`li`,{children:c.noAccount})]}):null]})]}),(0,F.jsxs)(`main`,{className:`wp main`,children:[u?(0,F.jsx)(Ii,{w:u,t:c}):(0,F.jsx)(`div`,{className:`card`,style:{padding:`28px 32px`,color:`var(--muted)`,fontSize:15},children:r}),d.length?(0,F.jsxs)(`section`,{className:`sec`,children:[(0,F.jsx)(`h2`,{children:c.all}),(0,F.jsx)(`ul`,{className:`rows`,children:d.map(e=>(0,F.jsx)(Li,{w:e,t:c},e.slug))})]}):null]})]})}function Fi({w:e}){return(0,F.jsx)(`div`,{className:`gets`,children:e.results.slice(0,4).map(e=>(0,F.jsx)(`span`,{style:{color:Ci(e.kind)},children:(0,F.jsx)(`span`,{style:{color:`var(--ink)`},children:e.title})},e.title))})}function Ii({w:e,t}){return(0,F.jsxs)(`article`,{className:`card feat`,children:[(0,F.jsx)(`div`,{className:`perch`,children:(0,F.jsx)(ut,{kind:e.avatar,size:150,interactive:!1})}),(0,F.jsxs)(`div`,{className:`feat-main`,children:[(0,F.jsx)(`h2`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`lead`,children:e.description}):null,(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youDo}),(0,F.jsxs)(`div`,{children:[t.task(e.effort.fields,e.effort.reviews,e.effort.uploads),` `,(0,F.jsxs)(`span`,{children:[`· `,t.minutesLong(e.effort.minutes)]})]})]}),e.results.length?(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youGet}),(0,F.jsx)(Fi,{w:e})]}):null,(0,F.jsxs)(`div`,{className:`cta`,children:[(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start}),(0,F.jsx)(`small`,{children:t.pause})]})]}),(0,F.jsxs)(`div`,{className:`feat-side`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.howItGoes}),(0,F.jsx)(`ul`,{className:`steps`,children:e.steps.map(e=>(0,F.jsx)(`li`,{style:{animation:`none`},children:e.title},e.title))})]})]})}function Li({w:e,t}){let n=t.short(e.effort.fields,e.effort.uploads);return(0,F.jsxs)(`li`,{className:`card row`,children:[(0,F.jsx)(`span`,{className:`peek`,children:(0,F.jsx)(ut,{kind:e.avatar,size:72,interactive:!1})}),(0,F.jsxs)(`div`,{className:`row-main`,children:[(0,F.jsx)(`h3`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`row-desc`,children:e.description}):null,e.results.length?(0,F.jsx)(Fi,{w:e}):null,(0,F.jsx)(`ul`,{className:`row-meta`,children:(0,F.jsx)(`li`,{children:[n,t.minutes(e.effort.minutes)].filter(Boolean).join(` · `)})})]}),(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start})]})}var Ri=`text-[0.8125rem] text-ink-3 leading-snug`;function zi(){let{space:e,spaces:t}=Lt();return{space:t.find(e=>e.page?.on)??t.find(e=>e.root)??e,spaces:t}}function Bi(e){return Nn({queries:e.filter(e=>e.kind!==`client`).map(e=>({queryKey:pe.spaceWizards(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/wizards`)}))}).flatMap(e=>e.data??[])}function Vi(){N([{label:j(`mode.shared`)}]);let e=jt().data,{space:t,spaces:n}=zi(),r=Bi(n),i=r.filter(e=>e.published&&e.shareEnabled),[a,o]=(0,P.useState)(!1),s=e?.tenant.pagesHost??null;if(!t)return null;if(!s)return(0,F.jsx)(`p`,{className:`py-24 text-center text-[0.9375rem] text-ink-3`,children:j(`page.cloudOnly`)});let c=t.page;if(c?.on)return(0,F.jsx)(Wi,{space:t,page:c,host:s,wizards:r,linked:i});let l=(0,F.jsx)(Ui,{open:a,onClose:()=>o(!1),space:t,host:s,wizards:r.filter(e=>e.spaceId===t.id)});return i.length?(0,F.jsxs)(`div`,{className:`mx-auto flex w-full max-w-3xl flex-col gap-8 px-4 py-8 sm:px-6`,children:[(0,F.jsxs)(Re,{className:`flex flex-wrap items-center gap-4 p-5`,children:[(0,F.jsx)(ut,{kind:`round`,size:44,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.0625rem] leading-tight`,children:j(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`mt-1 text-[0.875rem] text-ink-2`,children:j(`shared.emptyText`)})]}),(0,F.jsx)(C,{onClick:()=>o(!0),children:j(`shared.setUp`)})]}),(0,F.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.8125rem] text-ink-3`,children:j(`shared.byLink`)}),(0,F.jsx)(Re,{className:`divide-y divide-border-soft px-4`,children:i.map(e=>(0,F.jsx)(Hi,{wizard:e},e.id))})]}),l]}):(0,F.jsxs)(`div`,{className:`grid min-h-[60vh] place-items-center px-6 py-16`,children:[(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-3 text-center`,children:[(0,F.jsx)(ut,{kind:`round`,size:72,interactive:!1}),(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem] leading-tight`,children:j(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:j(`shared.emptyText`)}),(0,F.jsx)(C,{className:`mt-1`,onClick:()=>o(!0),children:j(`shared.setUp`)})]}),l]})}function Hi({wizard:e,compact:t}){let n=Kt(e),{copied:i,copy:a}=Xr(),[o,s]=(0,P.useState)(!1);return(0,F.jsxs)(`div`,{className:`flex items-center gap-3 py-3`,children:[t?null:(0,F.jsx)(ut,{kind:e.avatar,costume:e.costume,size:32,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`div`,{className:`truncate font-medium text-[0.875rem]`,children:e.title}),(0,F.jsx)(`div`,{className:`truncate font-mono text-[0.75rem] text-ink-3`,children:n.replace(/^https?:\/\//,``)})]}),(0,F.jsx)(Ye,{label:j(`shared.copyLink`),onClick:()=>a(n),children:i?(0,F.jsx)(sn,{className:`size-4`}):(0,F.jsx)(an,{className:`size-4`})}),(0,F.jsx)(Ye,{label:j(`shared.qr`),onClick:()=>s(!0),children:(0,F.jsx)(Gn,{className:`size-4`})}),(0,F.jsx)(Se,{open:o,onClose:()=>s(!1),title:e.title,children:(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,F.jsx)(r,{text:n,label:j(`shared.qrFor`,{name:e.title}),className:`size-56`}),(0,F.jsx)(`p`,{className:k(Ri,`break-all text-center font-mono`),children:n})]})})]})}function Ui({open:e,onClose:t,space:r,host:i,wizards:a}){let o=Ie(),s=jt().data?.tenant.name??``,c=r.page?.title||r.brand.name?.trim()||(r.root&&s?s:r.name),[l,u]=(0,P.useState)(c),[d,f]=(0,P.useState)(r.page?.slug||se(c)||`page`),p=it({mutationFn:()=>{let e=r.page?{...r.page,on:!0,title:l.trim(),slug:d}:{on:!0,slug:d,title:l.trim(),...Gr(Et===`de`?`de-du`:`en`),wizards:a.filter(e=>e.published&&e.shareEnabled).map(e=>e.id),examples:{}};return n.patch(`/api/studio/spaces/${r.id}`,{page:e})},onSuccess:async()=>{await o.invalidateQueries({queryKey:pe.spaces()}),t()}}),m=!!l.trim()&&x.test(d);return(0,F.jsx)(Se,{open:e,onClose:t,title:j(`shared.setUp`),children:(0,F.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:e=>{e.preventDefault(),m&&p.mutate()},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Ee,{children:j(`page.title`)}),(0,F.jsx)(Ce,{value:l,maxLength:120,onChange:e=>u(e.target.value)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Ee,{children:j(`page.address`)}),(0,F.jsx)(Qr,{host:i,value:d,onChange:f})]}),p.error?(0,F.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:p.error.message}):null,(0,F.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,F.jsx)(C,{variant:`ghost`,onClick:t,children:j(`common.cancel`)}),(0,F.jsx)(C,{type:`submit`,busy:p.isPending,disabled:!m,children:j(`shared.turnOn`)})]})]})})}function Wi({space:e,page:t,host:r,wizards:i,linked:a}){let o=Ie(),s=jt().data?.manageUrl??null,[c,l]=(0,P.useState)(`content`),u=async t=>{await n.patch(`/api/studio/spaces/${e.id}`,{page:t}),await o.invalidateQueries({queryKey:pe.spaces()}),await o.invalidateQueries({queryKey:ji(e.id)})},d=it({mutationFn:e=>u({...t,...e})}),f=i.filter(t=>t.spaceId===e.id),p=Ur(r,t.slug,s),m=(e,n)=>d.mutate({wizards:n?[...t.wizards,e]:t.wizards.filter(t=>t!==e)}),h=f.filter(e=>e.published&&e.shareEnabled);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Yt,{children:(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-3`,children:[(0,F.jsx)(Rr,{named:!0,label:j(`mode.shared`),value:c,onChange:l,options:[{id:`content`,label:j(`shared.content`)},{id:`settings`,label:j(`shared.settings`)}]}),c===`content`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 pb-1 font-medium text-[0.75rem] text-ink-3`,children:j(`shared.onPage`)}),h.length?h.map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-border-soft border-b px-1 py-2 last:border-b-0`,children:[(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[0.875rem]`,children:e.title}),(0,F.jsx)(Ze,{checked:t.wizards.includes(e.id),disabled:d.isPending,label:e.title,onChange:t=>m(e.id,t)})]},e.id)):(0,F.jsx)(`p`,{className:k(Ri,`px-1`),children:j(`shared.noneToShow`)}),t.wizards.length===0&&h.length?(0,F.jsx)(`p`,{className:k(Ri,`px-1 pt-2`),children:j(`shared.pickOne`)}):null]}),a.length?(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.75rem] text-ink-3`,children:j(`shared.byLink`)}),(0,F.jsx)(`div`,{className:`divide-y divide-border-soft px-1`,children:a.map(e=>(0,F.jsx)(Hi,{wizard:e,compact:!0},e.id))})]}):null]}):(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-5`,children:[(0,F.jsx)(mi,{host:r,page:t,disabled:!1,save:u,onState:()=>{}}),(0,F.jsx)(C,{variant:`ghost`,className:`mt-auto self-start text-rose`,busy:d.isPending,onClick:()=>d.mutate({on:!1}),children:j(`shared.turnOff`)})]})]})}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`a`,{href:p,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-1 self-end font-mono text-[0.75rem] text-ink-3 hover:text-ink`,children:[p.replace(/^https?:\/\//,``),(0,F.jsx)(Xt,{className:`size-3.5`})]}),(0,F.jsx)(`div`,{className:`overflow-hidden rounded-xl shadow-elevated`,children:(0,F.jsx)(Pi,{space:e,page:t,empty:j(`shared.previewEmpty`)})})]})]})}var Gi=(0,P.lazy)(()=>En(()=>import(`./PublicRunner-COatyxMi.js`).then(e=>({default:e.PublicRunner})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ki=(0,P.lazy)(()=>En(()=>import(`./SharePage-Drntg_oj.js`).then(e=>({default:e.SharePage})),__vite__mapDeps([20,1,2,3,4,5,6,11,12,13,7,8,9,10,14,15,16,0,17,18,19]))),qi=(0,P.lazy)(()=>En(()=>import(`./EditorPage-DrlMr_BY.js`).then(e=>({default:e.EditorPage})),__vite__mapDeps([21,1,2,3,4,5,6,22,23,24,9,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,34,35,36,7,14,16,37,38,39,40,41,42,43]))),Ji=(0,P.lazy)(()=>En(()=>import(`./host-CA1dqZWL.js`).then(e=>e.O).then(e=>({default:e.HomePage})),__vite__mapDeps([26,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),Yi=(0,P.lazy)(()=>En(()=>import(`./StudioHome-Dc4vCVDX.js`).then(e=>({default:e.StudioHome})),__vite__mapDeps([44,1,22,2,3,4,5,6,11,12,13,24,9,23,25,15,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,45,46,47])));function Xi(){return vt(`orgSpaces`)?(0,F.jsx)(Yi,{}):(0,F.jsx)(Ji,{})}var Zi=(0,P.lazy)(()=>En(()=>import(`./OnboardingPage-RawpCO9J.js`).then(e=>({default:e.OnboardingPage})),__vite__mapDeps([48,1,22,2,3,4,5,6,29,11,12,13,19,17,18]))),Qi=(0,P.lazy)(()=>En(()=>import(`./NewWizardPage-DZZx49Zp.js`).then(e=>({default:e.NewWizardPage})),__vite__mapDeps([49,1,4,3,24,2,5,6,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,43,14]))),$i=(0,P.lazy)(()=>En(()=>import(`./SettingsPage-DmZdkZJZ.js`).then(e=>({default:e.SettingsPage})),__vite__mapDeps([50,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,51,52]))),ea=(0,P.lazy)(()=>En(()=>import(`./SpacePage-BdB2lsHC.js`).then(e=>({default:e.SpacePage})),__vite__mapDeps([53,1,26,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33,38,39,45,46,47,34,52,54,7,14,16]))),ta=(0,P.lazy)(()=>En(()=>import(`./CapabilitiesPage-M2s68GkB.js`).then(e=>({default:e.CapabilitiesPage})),__vite__mapDeps([55,1,19,4,3,2,5,6,26,24,22,9,23,25,15,11,12,13,8,27,10,28,29,18,30,31,32,17,33,34,41,42,51,36]))),na=(0,P.lazy)(()=>En(()=>import(`./SetupPage-KE6tcFO2.js`).then(e=>({default:e.SetupPage})),__vite__mapDeps([56,1,22,2,3,4,5,6,26,24,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),ra=null;function ia(){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center`,children:(0,F.jsx)(ut,{kind:`round`,size:56})})}function I({children:e,bare:t,wide:n,full:r}){let i=jt(),a=nt();return kt(i.data),(0,P.useEffect)(()=>{i.data&&Zt(i.data)},[i.data]),i.isLoading?(0,F.jsx)(ia,{}):i.data?i.data.portalUrl?(0,F.jsx)(oa,{url:i.data.portalUrl}):i.data.mode===`local`&&!i.data.setupDone&&a.pathname!==`/setup`?(0,F.jsx)(Ae,{to:`/setup`,replace:!0}):i.data.onboarding&&a.pathname!==`/start`?(0,F.jsx)(Ae,{to:`/start`,replace:!0}):t?(0,F.jsxs)(F.Fragment,{children:[i.data.impersonation?(0,F.jsx)(dt,{name:i.data.user.name||i.data.user.email,until:i.data.impersonation.until}):null,e]}):(0,F.jsx)(Jt,{me:i.data,wide:n,full:r,children:(0,F.jsx)(rr,{me:i.data,children:e})}):(0,F.jsx)(fr,{})}function aa(){return St(),(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(_e,{children:[ra,(0,F.jsx)(O,{path:`/w/:token`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(O,{path:`/w/:token/steps`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(O,{path:`/w/:token/steps/:runId`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(O,{path:`/w/:token/chat`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(O,{path:`/w/:token/chat/:runId`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(O,{path:`/w/:token/talk`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(O,{path:`/w/:token/talk/:runId`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(O,{path:`/w/:token/video`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(O,{path:`/w/:token/video/:runId`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(O,{path:`/w/:token/:runId`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(O,{path:`/s/:token`,element:(0,F.jsx)(Ki,{})}),(0,F.jsx)(O,{path:`*`,element:(0,F.jsx)(L,{})})]})})}function oa({url:e}){return(0,P.useEffect)(()=>{window.location.replace(e)},[e]),(0,F.jsx)(ia,{})}function L(){return(0,P.useEffect)(()=>{window.location.replace(`${Ke}/`)},[]),(0,F.jsx)(ia,{})}function R(){let{search:e,hash:t}=nt();return vt(`capabilities`)?(0,F.jsx)(Ae,{to:{pathname:`/capabilities/skills`,search:e,hash:t},replace:!0}):(0,F.jsx)(ea,{place:`skills`})}function sa(){return qt().status===`ready`?(0,F.jsx)(Ae,{to:`/`,replace:!0}):(0,F.jsx)(ia,{})}function ca(){St(),(0,P.useEffect)(()=>(document.documentElement.dataset.studio=``,()=>{delete document.documentElement.dataset.studio}),[]);let e=qt();return(0,F.jsx)(Wt,{children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(_e,{children:[(0,F.jsx)(O,{path:`/`,element:(0,F.jsx)(I,{children:(0,F.jsx)(M,{mode:`studio`,children:(0,F.jsx)(Xi,{})})})}),(0,F.jsx)(O,{path:`/wizards`,element:(0,F.jsx)(I,{children:(0,F.jsx)(M,{mode:`studio`,children:(0,F.jsx)(Ji,{})})})}),(0,F.jsx)(O,{path:`/sign-in`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Ae,{to:`/`,replace:!0})})}),(0,F.jsx)(O,{path:`/new`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Qi,{})})}),(0,F.jsx)(O,{path:`/edit/:id`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(qi,{})})}),(0,F.jsx)(O,{path:`/space/:group?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ea,{})})}),(0,F.jsx)(O,{path:`/skills`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(R,{})})}),(0,F.jsx)(O,{path:`/capabilities/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ta,{})})}),(0,F.jsx)(O,{path:`/work`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/work/c/:chatId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/work/f/:folderId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/work/r/:runId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(en,{})})}),(0,F.jsx)(O,{path:`/work/:place`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/shared`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(M,{mode:`shared`,children:(0,F.jsx)(Vi,{})})})}),(0,F.jsx)(O,{path:`/settings/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{})})}),(0,F.jsx)(O,{path:`/account/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{scope:`account`})})}),(0,F.jsx)(O,{path:`/setup`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(na,{})})}),(0,F.jsx)(O,{path:`/start`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(Zi,{})})}),e.pages.map(e=>(0,F.jsx)(O,{path:e.path,element:(0,F.jsx)(I,{wide:e.wide,children:(0,F.jsx)($t,{of:e,children:(0,F.jsx)(e.component,{})})})},e.serial)),(0,F.jsx)(O,{path:`*`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(sa,{})})})]})})})}var la=class extends P.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){Je(`error`,e.message,e.stack)}render(){let{error:e}=this.state;return e?(0,F.jsxs)(`div`,{className:`flex min-h-dvh flex-col items-center justify-center p-6 text-center`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem]`,children:j(`report.crashed`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-md text-[0.9375rem] text-ink-3`,children:j(`report.crashedNote`)}),(0,F.jsxs)(`div`,{className:`mt-6 flex gap-3`,children:[(0,F.jsx)(C,{variant:`secondary`,onClick:()=>window.location.reload(),children:j(`report.reload`)}),(0,F.jsx)(C,{onClick:()=>zt({where:this.props.where,error:{message:e.message,stack:e.stack}}),children:j(`report.open`)})]}),(0,F.jsx)(Ht,{})]}):this.props.children}},ua=`wizards.organizationHint`,da=30;function fa(e){try{let t=JSON.parse(sessionStorage.getItem(ua)??`null`);return t?.slug===e&&Date.now()-t.at<da*1e3}catch{return!1}}function pa(e){try{sessionStorage.setItem(ua,JSON.stringify({slug:e,at:Date.now()}))}catch{}}function ma(e,t,n=!1){let r=e.slice(Ke.length),i=r.split(`/`)[1]??``;if(!t)return n?{kind:`here`,root:Ke}:{kind:`here`,root:E.has(i)?Ke:`${Ke}/${i}`};let a=t.mode===`managed`?t.tenant.slug:null;if(!a)return{kind:`here`,root:Ke};let o=`${Ke}/${a}`;return i===a?{kind:`here`,root:o}:t.organizations.some(e=>e.slug===i)&&!fa(i)?{kind:`switch`,slug:i}:E.has(i)?{kind:`move`,root:o,to:`${o}${r||`/`}`}:{kind:`foreign`,address:i,home:`${o}${r.slice(i.length+1)||`/`}`,me:t}}function ha({children:e}){let t=jt(),n=_t(),r=(0,P.useRef)(null);if(t.isLoading||!t.data&&n.isLoading)return(0,F.jsx)(ia,{});r.current||={place:ma(window.location.pathname,t.data,n.data?.mode===`local`),tenant:t.data?.tenant.id??null};let{place:i}=r.current,{pathname:a,search:o,hash:s}=window.location;if(i.kind===`switch`){pa(i.slug);let e=new URLSearchParams({organization:i.slug,return:`${a}${o}`});return window.location.replace(Fe(`/api/auth/login?${e}`)),(0,F.jsx)(ia,{})}if(i.kind===`foreign`)return(0,F.jsx)(ga,{address:i.address,home:i.home,me:i.me});i.kind===`move`&&(window.history.replaceState(window.history.state,``,`${i.to}${o}${s}`),r.current.place={kind:`here`,root:i.root});let c=i.root,l=t.data?.mode===`managed`?t.data.tenant.slug:null,u=l?`${Ke}/${l}`:c;if(c!==Ke&&u!==c&&t.data?.tenant.id===r.current.tenant){let e=a.startsWith(c)?a.slice(c.length):`/`;window.history.replaceState(window.history.state,``,`${u}${e}${o}${s}`),r.current.place={kind:`here`,root:u},c=u}return Ve(c),(0,F.jsx)(we,{basename:c,children:e},c)}function ga({address:e,home:t,me:n}){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center px-6`,children:(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-5 text-center`,children:[(0,F.jsx)(ut,{kind:`round`,size:56}),(0,F.jsxs)(`div`,{className:`rounded-md bg-paper-2 px-2.5 py-1 font-mono text-[0.8125rem] text-ink-2`,children:[`/studio/`,e]}),(0,F.jsx)(`h1`,{className:`text-balance font-display font-semibold text-2xl`,children:j(`address.foreign.title`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:j(`address.foreign.text`,{email:n.user.email})}),(0,F.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,F.jsxs)(C,{onClick:()=>window.location.assign(t),children:[j(`address.foreign.continue`,{name:n.tenant.name??``}),(0,F.jsx)(T,{className:`size-4`})]}),(0,F.jsxs)(C,{variant:`secondary`,onClick:()=>void It(),children:[(0,F.jsx)(Bt,{className:`size-4`}),j(`address.foreign.switchAccount`)]})]})]})})}function _a({view:e,failed:t}){let n=_t(),[r,i]=(0,P.useState)(null),[a,o]=(0,P.useState)(``),[s,c]=(0,P.useState)(!1);if(!n.data?.reports)return null;let l=(0,F.jsxs)(C,{variant:`ghost`,size:`sm`,onClick:()=>zt({where:`run`,runId:e.id,error:t&&e.error?{message:e.error}:null}),children:[(0,F.jsx)(mt,{className:`size-4`}),` `,j(`report.open`)]});if(t)return(0,F.jsx)(`div`,{className:`mt-4 flex justify-center`,children:l});let u=async(t,n)=>{i(t),await fetch(Fe(`/api/runs/${e.id}/feedback`),{method:`POST`,headers:{"content-type":`application/json`},credentials:`include`,body:JSON.stringify({good:t,...n?{comment:n}:{}})}).catch(()=>void 0),n!==void 0&&c(!0)};return(0,F.jsx)(`div`,{className:`mt-8 rounded-2xl border border-border bg-card p-4 sm:p-5`,children:s?(0,F.jsx)(`p`,{className:`text-ink-2 text-sm`,children:j(`feedback.thanks`)}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`mr-2 font-medium text-[0.9375rem]`,children:j(`feedback.ask`)}),(0,F.jsxs)(C,{size:`sm`,variant:r===!0?`quiet`:`secondary`,onClick:()=>void u(!0),children:[(0,F.jsx)(Zn,{className:`size-4`}),` `,j(`feedback.good`)]}),(0,F.jsxs)(C,{size:`sm`,variant:r===!1?`quiet`:`secondary`,onClick:()=>void u(!1),children:[(0,F.jsx)(Yn,{className:`size-4`}),` `,j(`feedback.bad`)]}),(0,F.jsx)(`span`,{className:`ml-auto`,children:l})]}),r===null?null:(0,F.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2 sm:flex-row sm:items-end`,children:[(0,F.jsx)(w,{rows:2,value:a,placeholder:j(`feedback.more`),onChange:e=>o(e.target.value),className:`flex-1`}),(0,F.jsx)(C,{size:`sm`,onClick:()=>void u(r,a.trim()),children:j(`feedback.send`)})]})]})})}de({lang:Et,runBase:e=>`/api/runs/${e}`,withBase:Fe,asset:Xe,serviceWorker:`${ze}/sw.js`,app:{can:ve,call:Oe,tell:xe,download:Qe},Mascot:ut,ShareResultButton:Sn,RunEnd:_a,onServerError:e=>Je(`error`,e)}),Le(),We();var va=`wizards.reloadedForBuild`;window.addEventListener(`vite:preloadError`,e=>{let t=0;try{if(t=Number(sessionStorage.getItem(va))||0,Date.now()-t<6e4)return;sessionStorage.setItem(va,String(Date.now()))}catch{return}e.preventDefault(),window.location.reload()}),`engentyDesktop`in window&&(document.documentElement.dataset.desktop=``);var ya=window.location.pathname,ba=ya===Ke||ya.startsWith(`${Ke}/`);ba&&`serviceWorker`in navigator&&navigator.serviceWorker.register(`${ze}/sw.js`).catch(()=>void 0);var xa=new Mn({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});(0,er.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(qe,{client:xa,children:ba?(0,F.jsx)(ha,{children:(0,F.jsxs)(la,{where:`studio`,children:[(0,F.jsx)(ca,{}),(0,F.jsx)(Ht,{})]})}):(0,F.jsx)(we,{basename:ze,children:(0,F.jsxs)(la,{where:`run`,children:[(0,F.jsx)(aa,{}),(0,F.jsx)(Ht,{})]})})})}));export{Un as S,Cr as _,Vr as a,tr as b,Pr as c,br as d,Er as f,yr as g,wr as h,Rr as i,gr as l,Dr as m,Hr as n,Ir as o,Or as p,Ur as r,Fr as s,hi as t,Tr as u,hr as v,Gn as x,mr as y};
102
+ `,Ti={start:`Los geht's`,youGet:`Du bekommst`,youDo:`Du machst`,howItGoes:`So läuft es`,noAccount:`Kein Konto nötig`,wizards:e=>e===1?`1 Wizard`:`${e} Wizards`,minutes:e=>`etwa ${e} Min`,minutesLong:e=>`etwa ${e} Minuten`,minutesRange:(e,t)=>e===t?`etwa ${e} Minuten`:`${e} bis ${t} Minuten`,task:(e,t,n)=>{let r=[n?`Dateien hochladen`:``,e?`${e} ${e===1?`Frage`:`Fragen`} beantworten`:``,t?`${t===1?`einen Entwurf`:`${t} Entwürfe`} prüfen`:``].filter(Boolean);return r.length?Oi(r,`und`):`Nur starten`},short:(e,t)=>[t?`Dateien`:``,e?`${e} ${e===1?`Frage`:`Fragen`}`:``].filter(Boolean).join(`, `),all:`Alle Wizards`,kind:{text:`Text`,document:`Dokument`,table:`Tabelle`,image:`Bild`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`Beispiel ansehen`,exampleNote:`Ein Lauf, den das Team geteilt hat.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`,download:`Zum Herunterladen, oder du schickst sie direkt aus dem Wizard.`,imprint:`Impressum`,page:`Seite`,poweredBy:`Wizards von engenty`,nothing:`Hier ist noch nichts.`,nothingNote:`Diese Adresse hat noch keine öffentliche Seite. Teams bauen ihre Wizards mit engenty wizards und zeigen sie hier.`,whatIs:`Was ist engenty wizards?`,paused:`Diese Seite ist pausiert.`,pausedNote:`Das Team kümmert sich darum. Bitte später wieder vorbeischauen.`,down:`Diese Seite ist gerade nicht erreichbar.`,downNote:`Bitte in einer Minute noch einmal versuchen.`,notBuilt:`Demo: Dieser Wizard ist noch nicht gebaut.`,notBuiltNote:`Auf der echten Seite führt der Knopf zum Wizard.`,back:`Zurück zur Seite`},Ei={start:`Start`,youGet:`You get`,youDo:`You do`,howItGoes:`How it goes`,noAccount:`No account needed`,wizards:e=>e===1?`1 wizard`:`${e} wizards`,minutes:e=>`about ${e} min`,minutesLong:e=>`about ${e} minutes`,minutesRange:(e,t)=>e===t?`about ${e} minutes`:`${e} to ${t} minutes`,task:(e,t,n)=>{let r=[n?`upload your files`:``,e?`answer ${e} ${e===1?`question`:`questions`}`:``,t?`check ${t===1?`one draft`:`${t} drafts`}`:``].filter(Boolean),i=r.length?Oi(r,`and`):`just start`;return i.charAt(0).toUpperCase()+i.slice(1)},short:(e,t)=>[t?`Files`:``,e?`${e} ${e===1?`question`:`questions`}`:``].filter(Boolean).join(`, `),all:`All wizards`,kind:{text:`Text`,document:`Document`,table:`Table`,image:`Image`,video:`Video`,audio:`Audio`,dashboard:`Widget`},example:`See an example`,exampleNote:`A run the team shared.`,pause:`You can stop at any time and continue on this device.`,download:`To download, or you send them straight from the wizard.`,imprint:`Imprint`,page:`Page`,poweredBy:`Wizards by engenty`,nothing:`There is nothing here yet.`,nothingNote:`This address has no public page yet. Teams build their wizards with engenty wizards and show them here.`,whatIs:`What is engenty wizards?`,paused:`This page is paused.`,pausedNote:`The team is looking into it. Come back later.`,down:`This page can't be reached right now.`,downNote:`Try again in a minute.`,notBuilt:`Demo: this wizard isn't built yet.`,notBuiltNote:`On a real page the button leads to the wizard.`,back:`Back to the page`},Di={youGet:`Sie bekommen`,youDo:`Sie machen`,download:`Zum Herunterladen, oder Sie schicken sie direkt aus dem Wizard.`,pause:`Pausieren geht jederzeit, auf diesem Gerät geht es weiter.`};function Oi(e,t){return e.length<2?e[0]??``:`${e.slice(0,-1).join(`, `)} ${t} ${e[e.length-1]}`}var ki=(e,t)=>e===`en`?Ei:t===`sie`?{...Ti,...Di}:Ti,Ai=e(st(),1),ji=e=>[`page-preview`,e];function Mi(e){(0,P.useEffect)(()=>{if(document.head.querySelector(`link[data-page-fonts="${e}"]`))return;let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,t.dataset.pageFonts=e,document.head.append(t)},[e])}function Ni({vars:e,children:t}){let[n,r]=(0,P.useState)(null),[i,a]=(0,P.useState)(null);return(0,P.useEffect)(()=>{n&&!i&&a(n.shadowRoot??n.attachShadow({mode:`open`}))},[n,i]),(0,F.jsx)(`div`,{ref:r,className:`min-h-full`,children:i?(0,Ai.createPortal)((0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`style`,{children:`${wi}\n.pg{${e};background:var(--ground);color:var(--ink);font-family:var(--f-body);-webkit-font-smoothing:antialiased;line-height:1.4;min-height:100%}.pg a{pointer-events:none}`}),(0,F.jsx)(`div`,{className:`pg`,children:t})]}),i):null})}function Pi({space:e,page:t,empty:r}){let i=re({queryKey:ji(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/page`)}),a=i.data?.organization?.space??null,o=a?.brand.name||i.data?.organization?.name||t.title,s=xi(a?.brand.theme??null);Mi(s.fontsHref);let c=ki(t.lang??`de`,t.form),l=a?.wizards??[],[u,...d]=l,f=l.map(e=>e.effort.minutes);return(0,F.jsxs)(Ni,{vars:s.vars,children:[(0,F.jsxs)(`div`,{className:`band`,children:[(0,F.jsx)(`header`,{className:`wp top`,children:(0,F.jsx)(`span`,{className:`brand`,children:a?.brand.logoUrl?(0,F.jsx)(`img`,{src:a.brand.logoUrl,alt:o}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`span`,{className:`mark`,"aria-hidden":`true`,children:Nt(o)}),o]})})}),(0,F.jsxs)(`div`,{className:`wp hero`,children:[(0,F.jsxs)(`p`,{className:`lbl`,children:[(0,F.jsx)(`b`,{children:t.title}),o===t.title?null:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(`i`,{"aria-hidden":`true`}),o]})]}),(0,F.jsx)(`h1`,{children:t.headline||t.title}),t.intro?(0,F.jsx)(`p`,{children:t.intro}):null,l.length?(0,F.jsxs)(`ul`,{className:`meta`,children:[(0,F.jsx)(`li`,{children:c.wizards(l.length)}),(0,F.jsx)(`li`,{children:c.minutesRange(Math.min(...f),Math.max(...f))}),(0,F.jsx)(`li`,{children:c.noAccount})]}):null]})]}),(0,F.jsxs)(`main`,{className:`wp main`,children:[u?(0,F.jsx)(Ii,{w:u,t:c}):(0,F.jsx)(`div`,{className:`card`,style:{padding:`28px 32px`,color:`var(--muted)`,fontSize:15},children:r}),d.length?(0,F.jsxs)(`section`,{className:`sec`,children:[(0,F.jsx)(`h2`,{children:c.all}),(0,F.jsx)(`ul`,{className:`rows`,children:d.map(e=>(0,F.jsx)(Li,{w:e,t:c},e.slug))})]}):null]})]})}function Fi({w:e}){return(0,F.jsx)(`div`,{className:`gets`,children:e.results.slice(0,4).map(e=>(0,F.jsx)(`span`,{style:{color:Ci(e.kind)},children:(0,F.jsx)(`span`,{style:{color:`var(--ink)`},children:e.title})},e.title))})}function Ii({w:e,t}){return(0,F.jsxs)(`article`,{className:`card feat`,children:[(0,F.jsx)(`div`,{className:`perch`,children:(0,F.jsx)(ut,{kind:e.avatar,size:150,interactive:!1})}),(0,F.jsxs)(`div`,{className:`feat-main`,children:[(0,F.jsx)(`h2`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`lead`,children:e.description}):null,(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youDo}),(0,F.jsxs)(`div`,{children:[t.task(e.effort.fields,e.effort.reviews,e.effort.uploads),` `,(0,F.jsxs)(`span`,{children:[`· `,t.minutesLong(e.effort.minutes)]})]})]}),e.results.length?(0,F.jsxs)(`div`,{className:`does`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.youGet}),(0,F.jsx)(Fi,{w:e})]}):null,(0,F.jsxs)(`div`,{className:`cta`,children:[(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start}),(0,F.jsx)(`small`,{children:t.pause})]})]}),(0,F.jsxs)(`div`,{className:`feat-side`,children:[(0,F.jsx)(`span`,{className:`lbl2`,children:t.howItGoes}),(0,F.jsx)(`ul`,{className:`steps`,children:e.steps.map(e=>(0,F.jsx)(`li`,{style:{animation:`none`},children:e.title},e.title))})]})]})}function Li({w:e,t}){let n=t.short(e.effort.fields,e.effort.uploads);return(0,F.jsxs)(`li`,{className:`card row`,children:[(0,F.jsx)(`span`,{className:`peek`,children:(0,F.jsx)(ut,{kind:e.avatar,size:72,interactive:!1})}),(0,F.jsxs)(`div`,{className:`row-main`,children:[(0,F.jsx)(`h3`,{children:e.title}),e.description?(0,F.jsx)(`p`,{className:`row-desc`,children:e.description}):null,e.results.length?(0,F.jsx)(Fi,{w:e}):null,(0,F.jsx)(`ul`,{className:`row-meta`,children:(0,F.jsx)(`li`,{children:[n,t.minutes(e.effort.minutes)].filter(Boolean).join(` · `)})})]}),(0,F.jsx)(`a`,{className:`pill`,href:e.runUrl,children:t.start})]})}var Ri=`text-[0.8125rem] text-ink-3 leading-snug`;function zi(){let{space:e,spaces:t}=Lt();return{space:t.find(e=>e.page?.on)??t.find(e=>e.root)??e,spaces:t}}function Bi(e){return Nn({queries:e.filter(e=>e.kind!==`client`).map(e=>({queryKey:pe.spaceWizards(e.id),queryFn:()=>n.get(`/api/studio/spaces/${e.id}/wizards`)}))}).flatMap(e=>e.data??[])}function Vi(){N([{label:j(`mode.shared`)}]);let e=jt().data,{space:t,spaces:n}=zi(),r=Bi(n),i=r.filter(e=>e.published&&e.shareEnabled),[a,o]=(0,P.useState)(!1),s=e?.tenant.pagesHost??null;if(!t)return null;if(!s)return(0,F.jsx)(`p`,{className:`py-24 text-center text-[0.9375rem] text-ink-3`,children:j(`page.cloudOnly`)});let c=t.page;if(c?.on)return(0,F.jsx)(Wi,{space:t,page:c,host:s,wizards:r,linked:i});let l=(0,F.jsx)(Ui,{open:a,onClose:()=>o(!1),space:t,host:s,wizards:r.filter(e=>e.spaceId===t.id)});return i.length?(0,F.jsxs)(`div`,{className:`mx-auto flex w-full max-w-3xl flex-col gap-8 px-4 py-8 sm:px-6`,children:[(0,F.jsxs)(Re,{className:`flex flex-wrap items-center gap-4 p-5`,children:[(0,F.jsx)(ut,{kind:`round`,size:44,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.0625rem] leading-tight`,children:j(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`mt-1 text-[0.875rem] text-ink-2`,children:j(`shared.emptyText`)})]}),(0,F.jsx)(C,{onClick:()=>o(!0),children:j(`shared.setUp`)})]}),(0,F.jsxs)(`section`,{className:`flex flex-col gap-2`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.8125rem] text-ink-3`,children:j(`shared.byLink`)}),(0,F.jsx)(Re,{className:`divide-y divide-border-soft px-4`,children:i.map(e=>(0,F.jsx)(Hi,{wizard:e},e.id))})]}),l]}):(0,F.jsxs)(`div`,{className:`grid min-h-[60vh] place-items-center px-6 py-16`,children:[(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-3 text-center`,children:[(0,F.jsx)(ut,{kind:`round`,size:72,interactive:!1}),(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem] leading-tight`,children:j(`shared.emptyTitle`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:j(`shared.emptyText`)}),(0,F.jsx)(C,{className:`mt-1`,onClick:()=>o(!0),children:j(`shared.setUp`)})]}),l]})}function Hi({wizard:e,compact:t}){let n=Kt(e),{copied:i,copy:a}=Xr(),[o,s]=(0,P.useState)(!1);return(0,F.jsxs)(`div`,{className:`flex items-center gap-3 py-3`,children:[t?null:(0,F.jsx)(ut,{kind:e.avatar,costume:e.costume,size:32,interactive:!1}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsx)(`div`,{className:`truncate font-medium text-[0.875rem]`,children:e.title}),(0,F.jsx)(`div`,{className:`truncate font-mono text-[0.75rem] text-ink-3`,children:n.replace(/^https?:\/\//,``)})]}),(0,F.jsx)(Ye,{label:j(`shared.copyLink`),onClick:()=>a(n),children:i?(0,F.jsx)(sn,{className:`size-4`}):(0,F.jsx)(an,{className:`size-4`})}),(0,F.jsx)(Ye,{label:j(`shared.qr`),onClick:()=>s(!0),children:(0,F.jsx)(Gn,{className:`size-4`})}),(0,F.jsx)(Se,{open:o,onClose:()=>s(!1),title:e.title,children:(0,F.jsxs)(`div`,{className:`flex flex-col items-center gap-3`,children:[(0,F.jsx)(r,{text:n,label:j(`shared.qrFor`,{name:e.title}),className:`size-56`}),(0,F.jsx)(`p`,{className:k(Ri,`break-all text-center font-mono`),children:n})]})})]})}function Ui({open:e,onClose:t,space:r,host:i,wizards:a}){let o=Ie(),s=jt().data?.tenant.name??``,c=r.page?.title||r.brand.name?.trim()||(r.root&&s?s:r.name),[l,u]=(0,P.useState)(c),[d,f]=(0,P.useState)(r.page?.slug||se(c)||`page`),p=it({mutationFn:()=>{let e=r.page?{...r.page,on:!0,title:l.trim(),slug:d}:{on:!0,slug:d,title:l.trim(),...Gr(Et===`de`?`de-du`:`en`),wizards:a.filter(e=>e.published&&e.shareEnabled).map(e=>e.id),examples:{}};return n.patch(`/api/studio/spaces/${r.id}`,{page:e})},onSuccess:async()=>{await o.invalidateQueries({queryKey:pe.spaces()}),t()}}),m=!!l.trim()&&x.test(d);return(0,F.jsx)(Se,{open:e,onClose:t,title:j(`shared.setUp`),children:(0,F.jsxs)(`form`,{className:`flex flex-col gap-5`,onSubmit:e=>{e.preventDefault(),m&&p.mutate()},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Ee,{children:j(`page.title`)}),(0,F.jsx)(Ce,{value:l,maxLength:120,onChange:e=>u(e.target.value)})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Ee,{children:j(`page.address`)}),(0,F.jsx)(Qr,{host:i,value:d,onChange:f})]}),p.error?(0,F.jsx)(`p`,{className:`text-[0.8125rem] text-rose`,children:p.error.message}):null,(0,F.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,F.jsx)(C,{variant:`ghost`,onClick:t,children:j(`common.cancel`)}),(0,F.jsx)(C,{type:`submit`,busy:p.isPending,disabled:!m,children:j(`shared.turnOn`)})]})]})})}function Wi({space:e,page:t,host:r,wizards:i,linked:a}){let o=Ie(),s=jt().data?.manageUrl??null,[c,l]=(0,P.useState)(`content`),u=async t=>{await n.patch(`/api/studio/spaces/${e.id}`,{page:t}),await o.invalidateQueries({queryKey:pe.spaces()}),await o.invalidateQueries({queryKey:ji(e.id)})},d=it({mutationFn:e=>u({...t,...e})}),f=i.filter(t=>t.spaceId===e.id),p=Ur(r,t.slug,s),m=(e,n)=>d.mutate({wizards:n?[...t.wizards,e]:t.wizards.filter(t=>t!==e)}),h=f.filter(e=>e.published&&e.shareEnabled);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Yt,{children:(0,F.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-3`,children:[(0,F.jsx)(Rr,{named:!0,label:j(`mode.shared`),value:c,onChange:l,options:[{id:`content`,label:j(`shared.content`)},{id:`settings`,label:j(`shared.settings`)}]}),c===`content`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 pb-1 font-medium text-[0.75rem] text-ink-3`,children:j(`shared.onPage`)}),h.length?h.map(e=>(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-border-soft border-b px-1 py-2 last:border-b-0`,children:[(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[0.875rem]`,children:e.title}),(0,F.jsx)(Ze,{checked:t.wizards.includes(e.id),disabled:d.isPending,label:e.title,onChange:t=>m(e.id,t)})]},e.id)):(0,F.jsx)(`p`,{className:k(Ri,`px-1`),children:j(`shared.noneToShow`)}),t.wizards.length===0&&h.length?(0,F.jsx)(`p`,{className:k(Ri,`px-1 pt-2`),children:j(`shared.pickOne`)}):null]}),a.length?(0,F.jsxs)(`section`,{className:`flex flex-col`,children:[(0,F.jsx)(`h2`,{className:`px-1 font-medium text-[0.75rem] text-ink-3`,children:j(`shared.byLink`)}),(0,F.jsx)(`div`,{className:`divide-y divide-border-soft px-1`,children:a.map(e=>(0,F.jsx)(Hi,{wizard:e,compact:!0},e.id))})]}):null]}):(0,F.jsxs)(`div`,{className:`flex flex-1 flex-col gap-5`,children:[(0,F.jsx)(mi,{host:r,page:t,disabled:!1,save:u,onState:()=>{}}),(0,F.jsx)(C,{variant:`ghost`,className:`mt-auto self-start text-rose`,busy:d.isPending,onClick:()=>d.mutate({on:!1}),children:j(`shared.turnOff`)})]})]})}),(0,F.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,F.jsxs)(`a`,{href:p,target:`_blank`,rel:`noreferrer`,className:`flex items-center gap-1 self-end font-mono text-[0.75rem] text-ink-3 hover:text-ink`,children:[p.replace(/^https?:\/\//,``),(0,F.jsx)(Xt,{className:`size-3.5`})]}),(0,F.jsx)(`div`,{className:`overflow-hidden rounded-xl shadow-elevated`,children:(0,F.jsx)(Pi,{space:e,page:t,empty:j(`shared.previewEmpty`)})})]})]})}var Gi=(0,P.lazy)(()=>En(()=>import(`./PublicRunner-COatyxMi.js`).then(e=>({default:e.PublicRunner})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),Ki=(0,P.lazy)(()=>En(()=>import(`./SharePage-Drntg_oj.js`).then(e=>({default:e.SharePage})),__vite__mapDeps([20,1,2,3,4,5,6,11,12,13,7,8,9,10,14,15,16,0,17,18,19]))),qi=(0,P.lazy)(()=>En(()=>import(`./EditorPage-DNox0Po-.js`).then(e=>({default:e.EditorPage})),__vite__mapDeps([21,1,2,3,4,5,6,22,23,24,9,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,34,35,36,7,14,16,37,38,39,40,41,42,43]))),Ji=(0,P.lazy)(()=>En(()=>import(`./host-Bh_WJbQv.js`).then(e=>e.O).then(e=>({default:e.HomePage})),__vite__mapDeps([26,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),Yi=(0,P.lazy)(()=>En(()=>import(`./StudioHome-q1f_vqAI.js`).then(e=>({default:e.StudioHome})),__vite__mapDeps([44,1,22,2,3,4,5,6,11,12,13,24,9,23,25,15,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,45,46,47])));function Xi(){return vt(`orgSpaces`)?(0,F.jsx)(Yi,{}):(0,F.jsx)(Ji,{})}var Zi=(0,P.lazy)(()=>En(()=>import(`./OnboardingPage-RawpCO9J.js`).then(e=>({default:e.OnboardingPage})),__vite__mapDeps([48,1,22,2,3,4,5,6,29,11,12,13,19,17,18]))),Qi=(0,P.lazy)(()=>En(()=>import(`./NewWizardPage-Df359wgE.js`).then(e=>({default:e.NewWizardPage})),__vite__mapDeps([49,1,4,3,24,2,5,6,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,43,14]))),$i=(0,P.lazy)(()=>En(()=>import(`./SettingsPage-DueaPjW3.js`).then(e=>({default:e.SettingsPage})),__vite__mapDeps([50,1,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,26,8,27,10,28,29,18,30,31,32,17,33,41,42,34,51,52]))),ea=(0,P.lazy)(()=>En(()=>import(`./SpacePage-z66Mza2y.js`).then(e=>({default:e.SpacePage})),__vite__mapDeps([53,1,26,3,2,4,5,6,24,22,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33,38,39,45,46,47,34,52,54,7,14,16]))),ta=(0,P.lazy)(()=>En(()=>import(`./CapabilitiesPage-DJRpCw2_.js`).then(e=>({default:e.CapabilitiesPage})),__vite__mapDeps([55,1,19,4,3,2,5,6,26,24,22,9,23,25,15,11,12,13,8,27,10,28,29,18,30,31,32,17,33,34,41,42,51,36]))),na=(0,P.lazy)(()=>En(()=>import(`./SetupPage-k61GmbIs.js`).then(e=>({default:e.SetupPage})),__vite__mapDeps([56,1,22,2,3,4,5,6,26,24,9,23,25,15,11,12,13,19,8,27,10,28,29,18,30,31,32,17,33]))),ra=null;function ia(){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center`,children:(0,F.jsx)(ut,{kind:`round`,size:56})})}function I({children:e,bare:t,wide:n,full:r}){let i=jt(),a=nt();return kt(i.data),(0,P.useEffect)(()=>{i.data&&Zt(i.data)},[i.data]),i.isLoading?(0,F.jsx)(ia,{}):i.data?i.data.portalUrl?(0,F.jsx)(oa,{url:i.data.portalUrl}):i.data.mode===`local`&&!i.data.setupDone&&a.pathname!==`/setup`?(0,F.jsx)(Ae,{to:`/setup`,replace:!0}):i.data.onboarding&&a.pathname!==`/start`?(0,F.jsx)(Ae,{to:`/start`,replace:!0}):t?(0,F.jsxs)(F.Fragment,{children:[i.data.impersonation?(0,F.jsx)(dt,{name:i.data.user.name||i.data.user.email,until:i.data.impersonation.until}):null,e]}):(0,F.jsx)(Jt,{me:i.data,wide:n,full:r,children:(0,F.jsx)(rr,{me:i.data,children:e})}):(0,F.jsx)(fr,{})}function aa(){return St(),(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(_e,{children:[ra,(0,F.jsx)(O,{path:`/w/:token`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(O,{path:`/w/:token/steps`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(O,{path:`/w/:token/steps/:runId`,element:(0,F.jsx)(Gi,{steps:!0})}),(0,F.jsx)(O,{path:`/w/:token/chat`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(O,{path:`/w/:token/chat/:runId`,element:(0,F.jsx)(Gi,{chat:!0})}),(0,F.jsx)(O,{path:`/w/:token/talk`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(O,{path:`/w/:token/talk/:runId`,element:(0,F.jsx)(Gi,{chat:!0,talk:!0})}),(0,F.jsx)(O,{path:`/w/:token/video`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(O,{path:`/w/:token/video/:runId`,element:(0,F.jsx)(Gi,{chat:!0,video:!0})}),(0,F.jsx)(O,{path:`/w/:token/:runId`,element:(0,F.jsx)(Gi,{})}),(0,F.jsx)(O,{path:`/s/:token`,element:(0,F.jsx)(Ki,{})}),(0,F.jsx)(O,{path:`*`,element:(0,F.jsx)(L,{})})]})})}function oa({url:e}){return(0,P.useEffect)(()=>{window.location.replace(e)},[e]),(0,F.jsx)(ia,{})}function L(){return(0,P.useEffect)(()=>{window.location.replace(`${Ke}/`)},[]),(0,F.jsx)(ia,{})}function R(){let{search:e,hash:t}=nt();return vt(`capabilities`)?(0,F.jsx)(Ae,{to:{pathname:`/capabilities/skills`,search:e,hash:t},replace:!0}):(0,F.jsx)(ea,{place:`skills`})}function sa(){return qt().status===`ready`?(0,F.jsx)(Ae,{to:`/`,replace:!0}):(0,F.jsx)(ia,{})}function ca(){St(),(0,P.useEffect)(()=>(document.documentElement.dataset.studio=``,()=>{delete document.documentElement.dataset.studio}),[]);let e=qt();return(0,F.jsx)(Wt,{children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(ia,{}),children:(0,F.jsxs)(_e,{children:[(0,F.jsx)(O,{path:`/`,element:(0,F.jsx)(I,{children:(0,F.jsx)(M,{mode:`studio`,children:(0,F.jsx)(Xi,{})})})}),(0,F.jsx)(O,{path:`/wizards`,element:(0,F.jsx)(I,{children:(0,F.jsx)(M,{mode:`studio`,children:(0,F.jsx)(Ji,{})})})}),(0,F.jsx)(O,{path:`/sign-in`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Ae,{to:`/`,replace:!0})})}),(0,F.jsx)(O,{path:`/new`,element:(0,F.jsx)(I,{children:(0,F.jsx)(Qi,{})})}),(0,F.jsx)(O,{path:`/edit/:id`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(qi,{})})}),(0,F.jsx)(O,{path:`/space/:group?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ea,{})})}),(0,F.jsx)(O,{path:`/skills`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(R,{})})}),(0,F.jsx)(O,{path:`/capabilities/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(ta,{})})}),(0,F.jsx)(O,{path:`/work`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/work/c/:chatId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/work/f/:folderId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/work/r/:runId`,element:(0,F.jsx)(I,{full:!0,children:(0,F.jsx)(en,{})})}),(0,F.jsx)(O,{path:`/work/:place`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(M,{mode:`work`,children:(0,F.jsx)(Rt,{})})})}),(0,F.jsx)(O,{path:`/shared`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)(M,{mode:`shared`,children:(0,F.jsx)(Vi,{})})})}),(0,F.jsx)(O,{path:`/settings/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{})})}),(0,F.jsx)(O,{path:`/account/:section?`,element:(0,F.jsx)(I,{wide:!0,children:(0,F.jsx)($i,{scope:`account`})})}),(0,F.jsx)(O,{path:`/setup`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(na,{})})}),(0,F.jsx)(O,{path:`/start`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(Zi,{})})}),e.pages.map(e=>(0,F.jsx)(O,{path:e.path,element:(0,F.jsx)(I,{wide:e.wide,children:(0,F.jsx)($t,{of:e,children:(0,F.jsx)(e.component,{})})})},e.serial)),(0,F.jsx)(O,{path:`*`,element:(0,F.jsx)(I,{bare:!0,children:(0,F.jsx)(sa,{})})})]})})})}var la=class extends P.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){Je(`error`,e.message,e.stack)}render(){let{error:e}=this.state;return e?(0,F.jsxs)(`div`,{className:`flex min-h-dvh flex-col items-center justify-center p-6 text-center`,children:[(0,F.jsx)(`h1`,{className:`font-display font-semibold text-[1.375rem]`,children:j(`report.crashed`)}),(0,F.jsx)(`p`,{className:`mt-2 max-w-md text-[0.9375rem] text-ink-3`,children:j(`report.crashedNote`)}),(0,F.jsxs)(`div`,{className:`mt-6 flex gap-3`,children:[(0,F.jsx)(C,{variant:`secondary`,onClick:()=>window.location.reload(),children:j(`report.reload`)}),(0,F.jsx)(C,{onClick:()=>zt({where:this.props.where,error:{message:e.message,stack:e.stack}}),children:j(`report.open`)})]}),(0,F.jsx)(Ht,{})]}):this.props.children}},ua=`wizards.organizationHint`,da=30;function fa(e){try{let t=JSON.parse(sessionStorage.getItem(ua)??`null`);return t?.slug===e&&Date.now()-t.at<da*1e3}catch{return!1}}function pa(e){try{sessionStorage.setItem(ua,JSON.stringify({slug:e,at:Date.now()}))}catch{}}function ma(e,t,n=!1){let r=e.slice(Ke.length),i=r.split(`/`)[1]??``;if(!t)return n?{kind:`here`,root:Ke}:{kind:`here`,root:E.has(i)?Ke:`${Ke}/${i}`};let a=t.mode===`managed`?t.tenant.slug:null;if(!a)return{kind:`here`,root:Ke};let o=`${Ke}/${a}`;return i===a?{kind:`here`,root:o}:t.organizations.some(e=>e.slug===i)&&!fa(i)?{kind:`switch`,slug:i}:E.has(i)?{kind:`move`,root:o,to:`${o}${r||`/`}`}:{kind:`foreign`,address:i,home:`${o}${r.slice(i.length+1)||`/`}`,me:t}}function ha({children:e}){let t=jt(),n=_t(),r=(0,P.useRef)(null);if(t.isLoading||!t.data&&n.isLoading)return(0,F.jsx)(ia,{});r.current||={place:ma(window.location.pathname,t.data,n.data?.mode===`local`),tenant:t.data?.tenant.id??null};let{place:i}=r.current,{pathname:a,search:o,hash:s}=window.location;if(i.kind===`switch`){pa(i.slug);let e=new URLSearchParams({organization:i.slug,return:`${a}${o}`});return window.location.replace(Fe(`/api/auth/login?${e}`)),(0,F.jsx)(ia,{})}if(i.kind===`foreign`)return(0,F.jsx)(ga,{address:i.address,home:i.home,me:i.me});i.kind===`move`&&(window.history.replaceState(window.history.state,``,`${i.to}${o}${s}`),r.current.place={kind:`here`,root:i.root});let c=i.root,l=t.data?.mode===`managed`?t.data.tenant.slug:null,u=l?`${Ke}/${l}`:c;if(c!==Ke&&u!==c&&t.data?.tenant.id===r.current.tenant){let e=a.startsWith(c)?a.slice(c.length):`/`;window.history.replaceState(window.history.state,``,`${u}${e}${o}${s}`),r.current.place={kind:`here`,root:u},c=u}return Ve(c),(0,F.jsx)(we,{basename:c,children:e},c)}function ga({address:e,home:t,me:n}){return(0,F.jsx)(`div`,{className:`flex min-h-dvh items-center justify-center px-6`,children:(0,F.jsxs)(`div`,{className:`flex max-w-md flex-col items-center gap-5 text-center`,children:[(0,F.jsx)(ut,{kind:`round`,size:56}),(0,F.jsxs)(`div`,{className:`rounded-md bg-paper-2 px-2.5 py-1 font-mono text-[0.8125rem] text-ink-2`,children:[`/studio/`,e]}),(0,F.jsx)(`h1`,{className:`text-balance font-display font-semibold text-2xl`,children:j(`address.foreign.title`)}),(0,F.jsx)(`p`,{className:`text-[0.9375rem] text-ink-2`,children:j(`address.foreign.text`,{email:n.user.email})}),(0,F.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,F.jsxs)(C,{onClick:()=>window.location.assign(t),children:[j(`address.foreign.continue`,{name:n.tenant.name??``}),(0,F.jsx)(T,{className:`size-4`})]}),(0,F.jsxs)(C,{variant:`secondary`,onClick:()=>void It(),children:[(0,F.jsx)(Bt,{className:`size-4`}),j(`address.foreign.switchAccount`)]})]})]})})}function _a({view:e,failed:t}){let n=_t(),[r,i]=(0,P.useState)(null),[a,o]=(0,P.useState)(``),[s,c]=(0,P.useState)(!1);if(!n.data?.reports)return null;let l=(0,F.jsxs)(C,{variant:`ghost`,size:`sm`,onClick:()=>zt({where:`run`,runId:e.id,error:t&&e.error?{message:e.error}:null}),children:[(0,F.jsx)(mt,{className:`size-4`}),` `,j(`report.open`)]});if(t)return(0,F.jsx)(`div`,{className:`mt-4 flex justify-center`,children:l});let u=async(t,n)=>{i(t),await fetch(Fe(`/api/runs/${e.id}/feedback`),{method:`POST`,headers:{"content-type":`application/json`},credentials:`include`,body:JSON.stringify({good:t,...n?{comment:n}:{}})}).catch(()=>void 0),n!==void 0&&c(!0)};return(0,F.jsx)(`div`,{className:`mt-8 rounded-2xl border border-border bg-card p-4 sm:p-5`,children:s?(0,F.jsx)(`p`,{className:`text-ink-2 text-sm`,children:j(`feedback.thanks`)}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(`span`,{className:`mr-2 font-medium text-[0.9375rem]`,children:j(`feedback.ask`)}),(0,F.jsxs)(C,{size:`sm`,variant:r===!0?`quiet`:`secondary`,onClick:()=>void u(!0),children:[(0,F.jsx)(Zn,{className:`size-4`}),` `,j(`feedback.good`)]}),(0,F.jsxs)(C,{size:`sm`,variant:r===!1?`quiet`:`secondary`,onClick:()=>void u(!1),children:[(0,F.jsx)(Yn,{className:`size-4`}),` `,j(`feedback.bad`)]}),(0,F.jsx)(`span`,{className:`ml-auto`,children:l})]}),r===null?null:(0,F.jsxs)(`div`,{className:`mt-3 flex flex-col gap-2 sm:flex-row sm:items-end`,children:[(0,F.jsx)(w,{rows:2,value:a,placeholder:j(`feedback.more`),onChange:e=>o(e.target.value),className:`flex-1`}),(0,F.jsx)(C,{size:`sm`,onClick:()=>void u(r,a.trim()),children:j(`feedback.send`)})]})]})})}de({lang:Et,runBase:e=>`/api/runs/${e}`,withBase:Fe,asset:Xe,serviceWorker:`${ze}/sw.js`,app:{can:ve,call:Oe,tell:xe,download:Qe},Mascot:ut,ShareResultButton:Sn,RunEnd:_a,onServerError:e=>Je(`error`,e)}),Le(),We();var va=`wizards.reloadedForBuild`;window.addEventListener(`vite:preloadError`,e=>{let t=0;try{if(t=Number(sessionStorage.getItem(va))||0,Date.now()-t<6e4)return;sessionStorage.setItem(va,String(Date.now()))}catch{return}e.preventDefault(),window.location.reload()}),`engentyDesktop`in window&&(document.documentElement.dataset.desktop=``);var ya=window.location.pathname,ba=ya===Ke||ya.startsWith(`${Ke}/`);ba&&`serviceWorker`in navigator&&navigator.serviceWorker.register(`${ze}/sw.js`).catch(()=>void 0);var xa=new Mn({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});(0,er.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(qe,{client:xa,children:ba?(0,F.jsx)(ha,{children:(0,F.jsxs)(la,{where:`studio`,children:[(0,F.jsx)(ca,{}),(0,F.jsx)(Ht,{})]})}):(0,F.jsx)(we,{basename:ze,children:(0,F.jsxs)(la,{where:`run`,children:[(0,F.jsx)(aa,{}),(0,F.jsx)(Ht,{})]})})})}));export{Un as S,Cr as _,Vr as a,tr as b,Pr as c,br as d,Er as f,yr as g,wr as h,Rr as i,gr as l,Dr as m,Hr as n,Ir as o,Or as p,Ur as r,Fr as s,hi as t,Tr as u,hr as v,Gn as x,mr as y};
@@ -1 +1 @@
1
- var e={shared:[{name:`@fontsource/bricolage-grotesque`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/bricolage-grotesque`},{name:`@fontsource/caveat`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/caveat`},{name:`@fontsource/creepster`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/creepster`},{name:`@fontsource/dm-sans`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/dm-sans`},{name:`@fontsource/figtree`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/figtree`},{name:`@fontsource/fraunces`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/fraunces`},{name:`@fontsource/fredoka`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/fredoka`},{name:`@fontsource/inter`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/inter`},{name:`@fontsource/lora`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/lora`},{name:`@fontsource/nosifer`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/nosifer`},{name:`@fontsource/nunito`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/nunito`},{name:`@fontsource/playfair-display`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/playfair-display`},{name:`@fontsource/young-serif`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/young-serif`},{name:`@hono/node-server`,version:`2.1.6`,license:`MIT`,homepage:`https://github.com/honojs/node-server`},{name:`@modelcontextprotocol/client`,version:`2.4.0`,license:`Apache-2.0`,homepage:`https://modelcontextprotocol.io`},{name:`@modelcontextprotocol/ext-apps`,version:`2.0.4`,license:`MIT`,homepage:`https://github.com/modelcontextprotocol/ext-apps`},{name:`ai`,version:`7.0.163`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`dompurify`,version:`3.4.17`,license:`(MPL-2.0 OR Apache-2.0)`,homepage:`https://github.com/cure53/DOMPurify`},{name:`fflate`,version:`0.8.3`,license:`MIT`,homepage:`https://101arrowz.github.io/fflate`},{name:`hono`,version:`4.13.16`,license:`MIT`,homepage:`https://hono.dev`},{name:`lucide-react`,version:`1.69.0`,license:`ISC`,homepage:`https://lucide.dev`},{name:`marked`,version:`18.1.3`,license:`MIT`,homepage:`https://marked.js.org`},{name:`pdfmake`,version:`0.3.13`,license:`MIT`,homepage:`http://pdfmake.org`},{name:`qr-scanner`,version:`1.4.2`,license:`MIT`,homepage:`https://github.com/nimiq/qr-scanner#readme`},{name:`undici`,version:`8.12.3`,license:`MIT`,homepage:`https://undici.nodejs.org`},{name:`zod`,version:`4.6.7`,license:`MIT`,homepage:`https://zod.dev`}],groups:[{id:`apps/runtime`,kind:`app`,label:`runtime`,packages:[{name:`@ai-sdk/anthropic`,version:`4.0.97`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/elevenlabs`,version:`3.0.80`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/fal`,version:`3.0.76`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/gateway`,version:`4.0.136`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/google`,version:`4.0.112`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/openai`,version:`4.0.109`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/replicate`,version:`3.0.76`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@clack/prompts`,version:`1.8.1`,license:`MIT`,homepage:`https://github.com/bombshell-dev/clack/tree/main/packages/prompts#readme`},{name:`@executor-js/plugin-openapi`,version:`1.6.11`,license:`MIT`,homepage:`https://github.com/UsefulSoftwareCo/executor/tree/main/packages/plugins/openapi`},{name:`@libsql/client`,version:`0.18.0`,license:`MIT`,homepage:`https://github.com/tursodatabase/libsql-client-ts#readme`},{name:`@llamaindex/liteparse`,version:`2.18.0`,license:`Apache-2.0`,homepage:`https://github.com/run-llama/liteparse#readme`},{name:`@lydell/node-pty`,version:`1.1.0`,license:`MIT`,homepage:`https://github.com/lydell/node-pty#readme`},{name:`@mastra/ai-sdk`,version:`1.11.3`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/core`,version:`1.82.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/docker`,version:`0.13.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/libsql`,version:`1.29.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/memory`,version:`1.41.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/quickjs`,version:`0.1.5`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@modelcontextprotocol/server`,version:`2.4.0`,license:`Apache-2.0`,homepage:`https://modelcontextprotocol.io`},{name:`@napi-rs/canvas`,version:`1.0.13`,license:`MIT`,homepage:`https://github.com/Brooooooklyn/canvas#readme`},{name:`@turbodocx/html-to-docx`,version:`1.23.3`,license:`MIT`,homepage:`https://github.com/TurboDocx/html-to-docx#readme`},{name:`aws4fetch`,version:`1.0.20`,license:`MIT`,homepage:`https://github.com/mhart/aws4fetch#readme`},{name:`cross-spawn`,version:`7.0.6`,license:`MIT`,homepage:`https://github.com/moxystudio/node-cross-spawn`},{name:`drizzle-orm`,version:`0.45.4`,license:`Apache-2.0`,homepage:`https://orm.drizzle.team`},{name:`effect`,version:`4.0.0-beta.59`,license:`MIT`,homepage:`https://effect.website`},{name:`exceljs`,version:`4.4.0`,license:`MIT`,homepage:`https://github.com/exceljs/exceljs#readme`},{name:`fast-xml-parser`,version:`5.12.0`,license:`MIT`,homepage:`https://github.com/NaturalIntelligence/fast-xml-parser#readme`},{name:`imapflow`,version:`2.10.2`,license:`MIT`,homepage:`https://imapflow.com/`},{name:`jiti`,version:`2.7.0`,license:`MIT`,homepage:`https://github.com/unjs/jiti#readme`},{name:`jose`,version:`6.2.15`,license:`MIT`,homepage:`https://github.com/panva/jose`},{name:`mammoth`,version:`1.13.0`,license:`BSD-2-Clause`,homepage:`https://github.com/mwilliamson/mammoth.js#readme`},{name:`nanoid`,version:`6.0.2`,license:`MIT`,homepage:`https://github.com/ai/nanoid#readme`},{name:`nodemailer`,version:`10.3.1`,license:`MIT-0`,homepage:`https://nodemailer.com/`},{name:`pdf-parse`,version:`2.4.5`,license:`Apache-2.0`,homepage:`https://mehmet-kozan.github.io/pdf-parse/`},{name:`playwright-core`,version:`1.64.1`,license:`Apache-2.0`,homepage:`https://playwright.dev`},{name:`postal-mime`,version:`4.2.0`,license:`MIT-0`,homepage:`https://postal-mime.postalsys.com`},{name:`rfc6902`,version:`5.4.0`,license:`MIT`,homepage:`https://github.com/chbrown/rfc6902`},{name:`turndown`,version:`7.2.5`,license:`MIT`,homepage:`https://github.com/mixmark-io/turndown#readme`},{name:`word-extractor`,version:`1.0.4`,license:`MIT`,homepage:`https://github.com/morungos/node-word-extractor`},{name:`yaml`,version:`2.9.1`,license:`ISC`,homepage:`https://eemeli.org/yaml/`}]},{id:`apps/web`,kind:`app`,label:`studio`,packages:[{name:`@ai-sdk/react`,version:`4.0.167`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@base-ui/react`,version:`1.9.0`,license:`MIT`,homepage:`https://base-ui.com`},{name:`@codemirror/autocomplete`,version:`6.20.4`,license:`MIT`},{name:`@codemirror/commands`,version:`6.11.1`,license:`MIT`},{name:`@codemirror/lang-json`,version:`6.0.2`,license:`MIT`,homepage:`https://github.com/codemirror/lang-json#readme`},{name:`@codemirror/lang-markdown`,version:`6.5.2`,license:`MIT`},{name:`@codemirror/language`,version:`6.13.1`,license:`MIT`},{name:`@codemirror/lint`,version:`6.9.7`,license:`MIT`},{name:`@codemirror/search`,version:`6.7.2`,license:`MIT`},{name:`@codemirror/state`,version:`6.7.6`,license:`MIT`},{name:`@codemirror/view`,version:`6.43.15`,license:`MIT`},{name:`@dagrejs/dagre`,version:`3.1.3`,license:`MIT`,homepage:`https://github.com/dagrejs/dagre#readme`},{name:`@floating-ui/dom`,version:`1.8.0`,license:`MIT`,homepage:`https://floating-ui.com`},{name:`@lezer/highlight`,version:`1.2.5`,license:`MIT`},{name:`@shadcn/react`,version:`0.3.1`,license:`MIT`,homepage:`https://ui.shadcn.com`},{name:`@tanstack/react-query`,version:`5.106.1`,license:`MIT`,homepage:`https://tanstack.com/query`},{name:`@tiptap/core`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-bubble-menu`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-image`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-list`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-table`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extensions`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/pm`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/react`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/starter-kit`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/suggestion`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@xterm/addon-fit`,version:`0.11.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js/tree/master#readme`},{name:`@xterm/addon-web-links`,version:`0.12.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js/tree/master#readme`},{name:`@xterm/xterm`,version:`6.0.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js#readme`},{name:`@xyflow/react`,version:`12.12.1`,license:`MIT`,homepage:`https://reactflow.dev`},{name:`class-variance-authority`,version:`0.7.1`,license:`Apache-2.0`,homepage:`https://github.com/joe-bell/cva#readme`},{name:`cn`,version:`0.5.2`,license:`MIT`,homepage:`https://github.com/shadcn-ui/cn#readme`},{name:`modern-screenshot`,version:`4.7.0`,license:`MIT`,homepage:`https://github.com/qq15725/modern-screenshot`},{name:`pdfjs-dist`,version:`6.5.438`,license:`Apache-2.0`,homepage:`https://mozilla.github.io/pdf.js/`},{name:`react`,version:`19.3.1`,license:`MIT`,homepage:`https://react.dev/`},{name:`react-dom`,version:`19.3.1`,license:`MIT`,homepage:`https://react.dev/`},{name:`react-router`,version:`8.5.1`,license:`MIT`,homepage:`https://github.com/remix-run/react-router#readme`},{name:`tw-animate-css`,version:`1.4.0`,license:`MIT`,homepage:`https://github.com/Wombosvideo/tw-animate-css#readme`},{name:`uqr`,version:`0.1.3`,license:`MIT`,homepage:`https://github.com/unjs/uqr#readme`},{name:`xlsx`,version:`0.20.3`,license:`Apache-2.0`,homepage:`https://sheetjs.com/`}]}]};export{e as default};
1
+ var e={shared:[{name:`@fontsource/bricolage-grotesque`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/bricolage-grotesque`},{name:`@fontsource/caveat`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/caveat`},{name:`@fontsource/creepster`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/creepster`},{name:`@fontsource/dm-sans`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/dm-sans`},{name:`@fontsource/figtree`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/figtree`},{name:`@fontsource/fraunces`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/fraunces`},{name:`@fontsource/fredoka`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/fredoka`},{name:`@fontsource/inter`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/inter`},{name:`@fontsource/lora`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/lora`},{name:`@fontsource/nosifer`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/nosifer`},{name:`@fontsource/nunito`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/nunito`},{name:`@fontsource/playfair-display`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/playfair-display`},{name:`@fontsource/young-serif`,version:`5.3.0`,license:`OFL-1.1`,homepage:`https://fontsource.org/fonts/young-serif`},{name:`@hono/node-server`,version:`2.1.6`,license:`MIT`,homepage:`https://github.com/honojs/node-server`},{name:`@modelcontextprotocol/client`,version:`2.4.0`,license:`Apache-2.0`,homepage:`https://modelcontextprotocol.io`},{name:`@modelcontextprotocol/ext-apps`,version:`2.0.4`,license:`MIT`,homepage:`https://github.com/modelcontextprotocol/ext-apps`},{name:`ai`,version:`7.0.163`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`dompurify`,version:`3.4.17`,license:`(MPL-2.0 OR Apache-2.0)`,homepage:`https://github.com/cure53/DOMPurify`},{name:`fflate`,version:`0.8.3`,license:`MIT`,homepage:`https://101arrowz.github.io/fflate`},{name:`hono`,version:`4.13.16`,license:`MIT`,homepage:`https://hono.dev`},{name:`lucide-react`,version:`1.69.0`,license:`ISC`,homepage:`https://lucide.dev`},{name:`marked`,version:`18.1.3`,license:`MIT`,homepage:`https://marked.js.org`},{name:`pdfmake`,version:`0.3.13`,license:`MIT`,homepage:`http://pdfmake.org`},{name:`qr-scanner`,version:`1.4.2`,license:`MIT`,homepage:`https://github.com/nimiq/qr-scanner#readme`},{name:`undici`,version:`8.12.3`,license:`MIT`,homepage:`https://undici.nodejs.org`},{name:`zod`,version:`4.6.7`,license:`MIT`,homepage:`https://zod.dev`}],groups:[{id:`apps/runtime`,kind:`app`,label:`runtime`,packages:[{name:`@ai-sdk/anthropic`,version:`4.0.97`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/elevenlabs`,version:`3.0.80`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/fal`,version:`3.0.76`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/gateway`,version:`4.0.136`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/google`,version:`4.0.112`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/openai`,version:`4.0.109`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@ai-sdk/replicate`,version:`3.0.76`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@clack/prompts`,version:`1.8.1`,license:`MIT`,homepage:`https://github.com/bombshell-dev/clack/tree/main/packages/prompts#readme`},{name:`@executor-js/plugin-openapi`,version:`1.6.11`,license:`MIT`,homepage:`https://github.com/UsefulSoftwareCo/executor/tree/main/packages/plugins/openapi`},{name:`@libsql/client`,version:`0.18.0`,license:`MIT`,homepage:`https://github.com/tursodatabase/libsql-client-ts#readme`},{name:`@llamaindex/liteparse`,version:`2.18.0`,license:`Apache-2.0`,homepage:`https://github.com/run-llama/liteparse#readme`},{name:`@lydell/node-pty`,version:`1.1.0`,license:`MIT`,homepage:`https://github.com/lydell/node-pty#readme`},{name:`@mastra/ai-sdk`,version:`1.11.3`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/core`,version:`1.82.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/docker`,version:`0.13.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/libsql`,version:`1.29.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/memory`,version:`1.41.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@mastra/quickjs`,version:`0.1.5`,license:`Apache-2.0`,homepage:`https://mastra.ai`},{name:`@modelcontextprotocol/server`,version:`2.4.0`,license:`Apache-2.0`,homepage:`https://modelcontextprotocol.io`},{name:`@napi-rs/canvas`,version:`1.0.13`,license:`MIT`,homepage:`https://github.com/Brooooooklyn/canvas#readme`},{name:`@turbodocx/html-to-docx`,version:`1.23.3`,license:`MIT`,homepage:`https://github.com/TurboDocx/html-to-docx#readme`},{name:`aws4fetch`,version:`1.0.20`,license:`MIT`,homepage:`https://github.com/mhart/aws4fetch#readme`},{name:`cross-spawn`,version:`7.0.6`,license:`MIT`,homepage:`https://github.com/moxystudio/node-cross-spawn`},{name:`drizzle-orm`,version:`0.45.4`,license:`Apache-2.0`,homepage:`https://orm.drizzle.team`},{name:`effect`,version:`4.0.0-beta.59`,license:`MIT`,homepage:`https://effect.website`},{name:`exceljs`,version:`4.4.0`,license:`MIT`,homepage:`https://github.com/exceljs/exceljs#readme`},{name:`fast-xml-parser`,version:`5.12.0`,license:`MIT`,homepage:`https://github.com/NaturalIntelligence/fast-xml-parser#readme`},{name:`imapflow`,version:`2.10.2`,license:`MIT`,homepage:`https://imapflow.com/`},{name:`jiti`,version:`2.7.0`,license:`MIT`,homepage:`https://github.com/unjs/jiti#readme`},{name:`jose`,version:`6.2.15`,license:`MIT`,homepage:`https://github.com/panva/jose`},{name:`mammoth`,version:`1.13.0`,license:`BSD-2-Clause`,homepage:`https://github.com/mwilliamson/mammoth.js#readme`},{name:`nanoid`,version:`6.0.2`,license:`MIT`,homepage:`https://github.com/ai/nanoid#readme`},{name:`nodemailer`,version:`10.3.1`,license:`MIT-0`,homepage:`https://nodemailer.com/`},{name:`pdf-parse`,version:`2.4.5`,license:`Apache-2.0`,homepage:`https://mehmet-kozan.github.io/pdf-parse/`},{name:`playwright-core`,version:`1.64.1`,license:`Apache-2.0`,homepage:`https://playwright.dev`},{name:`postal-mime`,version:`4.2.0`,license:`MIT-0`,homepage:`https://postal-mime.postalsys.com`},{name:`rfc6902`,version:`5.4.0`,license:`MIT`,homepage:`https://github.com/chbrown/rfc6902`},{name:`turndown`,version:`7.2.5`,license:`MIT`,homepage:`https://github.com/mixmark-io/turndown#readme`},{name:`word-extractor`,version:`1.0.4`,license:`MIT`,homepage:`https://github.com/morungos/node-word-extractor`},{name:`yaml`,version:`2.9.1`,license:`ISC`,homepage:`https://eemeli.org/yaml/`}]},{id:`apps/web`,kind:`app`,label:`studio`,packages:[{name:`@ai-sdk/react`,version:`4.0.167`,license:`Apache-2.0`,homepage:`https://ai-sdk.dev/docs`},{name:`@base-ui/react`,version:`1.9.0`,license:`MIT`,homepage:`https://base-ui.com`},{name:`@codemirror/autocomplete`,version:`6.20.4`,license:`MIT`},{name:`@codemirror/commands`,version:`6.11.1`,license:`MIT`},{name:`@codemirror/lang-json`,version:`6.0.2`,license:`MIT`,homepage:`https://github.com/codemirror/lang-json#readme`},{name:`@codemirror/lang-markdown`,version:`6.5.2`,license:`MIT`},{name:`@codemirror/language`,version:`6.13.1`,license:`MIT`},{name:`@codemirror/lint`,version:`6.9.7`,license:`MIT`},{name:`@codemirror/search`,version:`6.7.2`,license:`MIT`},{name:`@codemirror/state`,version:`6.7.6`,license:`MIT`},{name:`@codemirror/view`,version:`6.43.15`,license:`MIT`},{name:`@dagrejs/dagre`,version:`3.1.3`,license:`MIT`,homepage:`https://github.com/dagrejs/dagre#readme`},{name:`@floating-ui/dom`,version:`1.8.0`,license:`MIT`,homepage:`https://floating-ui.com`},{name:`@lezer/highlight`,version:`1.2.5`,license:`MIT`},{name:`@shadcn/react`,version:`0.3.1`,license:`MIT`,homepage:`https://ui.shadcn.com`},{name:`@tanstack/react-query`,version:`5.106.1`,license:`MIT`,homepage:`https://tanstack.com/query`},{name:`@tiptap/core`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-bubble-menu`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-image`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-list`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extension-table`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/extensions`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/pm`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/react`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/starter-kit`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@tiptap/suggestion`,version:`3.32.2`,license:`MIT`,homepage:`https://tiptap.dev`},{name:`@xterm/addon-fit`,version:`0.11.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js/tree/master#readme`},{name:`@xterm/addon-web-links`,version:`0.12.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js/tree/master#readme`},{name:`@xterm/xterm`,version:`6.0.0`,license:`MIT`,homepage:`https://github.com/xtermjs/xterm.js#readme`},{name:`@xyflow/react`,version:`12.12.1`,license:`MIT`,homepage:`https://reactflow.dev`},{name:`class-variance-authority`,version:`0.7.1`,license:`Apache-2.0`,homepage:`https://github.com/joe-bell/cva#readme`},{name:`cn`,version:`0.5.2`,license:`MIT`,homepage:`https://github.com/shadcn-ui/cn#readme`},{name:`modern-screenshot`,version:`4.7.0`,license:`MIT`,homepage:`https://github.com/qq15725/modern-screenshot`},{name:`pdfjs-dist`,version:`6.5.438`,license:`Apache-2.0`,homepage:`https://mozilla.github.io/pdf.js/`},{name:`react`,version:`19.3.1`,license:`MIT`,homepage:`https://react.dev/`},{name:`react-dom`,version:`19.3.1`,license:`MIT`,homepage:`https://react.dev/`},{name:`react-router`,version:`8.5.1`,license:`MIT`,homepage:`https://github.com/remix-run/react-router#readme`},{name:`tw-animate-css`,version:`1.4.0`,license:`MIT`,homepage:`https://github.com/Wombosvideo/tw-animate-css#readme`},{name:`uqr`,version:`0.1.3`,license:`MIT`,homepage:`https://github.com/unjs/uqr#readme`},{name:`xlsx`,version:`0.20.3`,license:`Apache-2.0`,homepage:`https://sheetjs.com/`}]},{id:`packages/browser`,kind:`package`,label:`packages/browser`,packages:[{name:`@mastra/agent-browser`,version:`0.6.0`,license:`Apache-2.0`,homepage:`https://mastra.ai`}]},{id:`packages/vault`,kind:`package`,label:`packages/vault`,packages:[{name:`tldts`,version:`7.4.24`,license:`MIT`,homepage:`https://github.com/remusao/tldts#readme`}]}]};export{e as default};
@@ -34,7 +34,7 @@
34
34
  dispatchEvent(new Event("wizard-install"));
35
35
  });
36
36
  </script>
37
- <script type="module" crossorigin src="/studio/assets/index-BtEYkDXF.js"></script>
37
+ <script type="module" crossorigin src="/studio/assets/index-CgSUfzBq.js"></script>
38
38
  <link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-XKyaHtl9.js">
39
39
  <link rel="modulepreload" crossorigin href="/studio/assets/jsx-runtime-C3cWAN_r.js">
40
40
  <link rel="modulepreload" crossorigin href="/studio/assets/i18n-WXeVnv7i.js">
@@ -57,15 +57,15 @@
57
57
  <link rel="modulepreload" crossorigin href="/studio/assets/floating-ui.dom-S_FT_s1L.js">
58
58
  <link rel="modulepreload" crossorigin href="/studio/assets/upload-BZThm-R6.js">
59
59
  <link rel="modulepreload" crossorigin href="/studio/assets/media-gjOIWMWK.js">
60
- <link rel="modulepreload" crossorigin href="/studio/assets/UpdateCheck-C82R62Tc.js">
60
+ <link rel="modulepreload" crossorigin href="/studio/assets/UpdateCheck-y1StF2CW.js">
61
61
  <link rel="modulepreload" crossorigin href="/studio/assets/with-selector-DNNxLmGI.js">
62
62
  <link rel="modulepreload" crossorigin href="/studio/assets/code-editor-CufyaUFC.js">
63
63
  <link rel="modulepreload" crossorigin href="/studio/assets/LangSwitch-BLB7dDce.js">
64
- <link rel="modulepreload" crossorigin href="/studio/assets/host-CA1dqZWL.js">
64
+ <link rel="modulepreload" crossorigin href="/studio/assets/host-Bh_WJbQv.js">
65
65
  <link rel="modulepreload" crossorigin href="/studio/assets/phone-CG7Bz_ZL.js">
66
66
  <link rel="modulepreload" crossorigin href="/studio/assets/theme-23bNrOQh.js">
67
67
  <link rel="modulepreload" crossorigin href="/studio/assets/list-ordered-B7aUqZdk.js">
68
- <link rel="modulepreload" crossorigin href="/studio/assets/RunDrawer-r6eFEs5D.js">
68
+ <link rel="modulepreload" crossorigin href="/studio/assets/RunDrawer-oPFk8yHt.js">
69
69
  <link rel="stylesheet" crossorigin href="/studio/assets/host-BrP-ENHg.css">
70
70
  <link rel="stylesheet" crossorigin href="/studio/assets/theme-CbR9-ayl.css">
71
71
  <link rel="stylesheet" crossorigin href="/studio/assets/index-D1iL3986.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engenty/wizards-runtime",
3
- "version": "0.20.2",
3
+ "version": "0.20.4",
4
4
  "description": "Make a wish. Get your wizard. It guides you step by step. Let AI do the work. Runs on your machine, on the AI subscription you already have. The runtime, which `npx wizards` installs.",
5
5
  "license": "FSL-1.1-MIT AND CC-BY-4.0",
6
6
  "homepage": "https://engenty.ai",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wizards",
3
3
  "displayName": "engenty wizards",
4
- "version": "0.20.2",
4
+ "version": "0.20.4",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link — designed, tested and published from Claude Code — run your published ones in the chat, and keep them in a pane beside it.",
6
6
  "author": {
7
7
  "name": "engenty"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "engenty-wizards",
4
- "version": "0.20.2",
4
+ "version": "0.20.4",
5
5
  "description": "Build page-by-page AI wizards that people open on a shared link, test and publish them from the chat, and run your published ones here.",
6
6
  "author": {
7
7
  "name": "engenty",